[Paper Review] Short-term forecast of EV charging stations occupancy probability using big data streaming analysis
This paper proposes a big data streaming architecture using Apache Spark and streaming logistic regression to forecast electric vehicle (EV) charging station occupancy probabilities in real time. By combining historical charge data with live occupancy streams, the model improves prediction accuracy over batch-only approaches, especially during unexpected events, with a threshold of 0.35 yielding balanced precision and recall (0.63–0.67).
The widespread diffusion of electric mobility requires a contextual expansion of the charging infrastructure. An extended collection and processing of information regarding charging of electric vehicles may turn each electric vehicle charging station into a valuable source of streaming data. Charging point operators may profit from all these data for optimizing their operation and planning activities. In such a scenario, big data and machine learning techniques would allow valorizing real-time data coming from electric vehicle charging stations. This paper presents an architecture able to deal with data streams from a charging infrastructure, with the final aim to forecast electric charging station availability after a set amount of minutes from present time. Both batch data regarding past charges and real-time data streams are used to train a streaming logistic regression model, to take into account recurrent past situations and unexpected actual events. The streaming model performs better than a model trained only using historical data. The results highlight the importance of constantly updating the predictive model parameters in order to adapt to changing conditions and always provide accurate forecasts.
Motivation & Objective
- Address the challenge of accurately forecasting short-term occupancy of EV charging stations amid dynamic and unpredictable usage patterns.
- Develop a scalable big data streaming architecture to process real-time and historical EV charging data for improved forecasting.
- Integrate both recurrent historical trends and real-time anomalies (e.g., events, pandemics) into a single predictive model.
- Evaluate the performance of a streaming machine learning model against traditional batch models in predicting charging station availability.
- Optimize model parameters and threshold selection to balance precision and recall for practical deployment in real-world applications.
Proposed method
- Implement a big data streaming pipeline using Apache Spark Streaming and Apache Kafka to ingest real-time occupancy data from EV charging stations.
- Train a Streaming Logistic Regression model initialized with three years of historical charge data and continuously updated with live occupancy streams.
- Use feature engineering to encode temporal patterns (e.g., weekday vs. weekend, hourly trends) and charge duration distributions into the model input.
- Apply a threshold-based classification to convert occupancy probabilities into binary predictions (occupied or available) for each 15-minute interval.
- Evaluate model performance using precision, recall, and F1-score across a range of threshold values (0.30–0.50) on a test set of 525,601 minutes.
- Compare the streaming model’s performance against a standard batch-trained logistic regression model using precision/recall curves and F1-score metrics.
Experimental results
Research questions
- RQ1Can a streaming machine learning model that combines historical and real-time data improve short-term occupancy forecasts for EV charging stations compared to batch models?
- RQ2How does the inclusion of real-time data streams affect model accuracy during unexpected events such as temporary surges in charging demand?
- RQ3What threshold value for occupancy probability optimally balances precision and recall in the prediction of charging station availability?
- RQ4How do model parameters such as regularization, gradient descent step, and streaming window size influence forecast performance?
- RQ5What is the comparative performance of streaming logistic regression versus other classifiers (e.g., Random Forest, Gradient-Boosted Trees) in this forecasting context?
Key findings
- The streaming logistic regression model outperforms the batch model in terms of precision across all threshold values between 0.30 and 0.50, particularly for high-occupancy predictions.
- The model achieves a balanced F1-score of 0.63–0.67 when using a threshold of 0.35, indicating a good trade-off between precision and recall.
- The model shows improved performance during long charging events, where occupancy probabilities exceed 0.8, due to real-time updates reflecting actual usage.
- Occupancy probabilities are generally below 0.5, suggesting that a standard 0.5 threshold may not be optimal and a lower threshold (e.g., 0.35) is more appropriate.
- The model’s ability to adapt to real-time changes significantly enhances its predictive accuracy, especially during non-recurring or disruptive events such as those seen during the COVID-19 pandemic.
- The integration of both historical patterns and live data streams enables the model to capture both routine trends (e.g., weekday peaks) and sudden anomalies, making it more robust than static models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.