Electric Vehicle Charging Load Forecasting Method Based on Improved Long Short-Term Memory Model with Particle Swarm Optimization
<p>The three-dimensional spatial–temporal distribution of charging load in the winter season.</p> "> Figure 2
<p>The three-dimensional spatial–temporal distribution of charging load during the winter–spring transition period.</p> "> Figure 3
<p>The three-dimensional spatial–temporal distribution of charging load in the spring season.</p> "> Figure 4
<p>A structural diagram of the LSTM network.</p> "> Figure 5
<p>A diagram of the improved model structure.</p> "> Figure 6
<p>Diagram of particle global and historical optimal solutions, velocity, and position.</p> "> Figure 7
<p>The overall framework of the PSO-LSTM model.</p> "> Figure 8
<p>Winter charging load prediction comparison (1 January 2023–3 February 2023).</p> "> Figure 9
<p>Winter–spring transition charging load prediction comparison (4 February 2023–4 March 2023).</p> "> Figure 10
<p>Spring charging load prediction comparison (5 March 2023–29 April 2023).</p> ">
Abstract
:1. Introduction
2. Model Description
2.1. Parameters and Data
- Winter Period (1 January–3 February): During this period, low temperatures may lead to reduced battery performance and changes in user charging behavior, potentially affecting the charging load.
- Winter–Spring Transition Period (4 February–4 March): As temperatures gradually rise, the charging load may exhibit transitional characteristics.
- Spring Period (5 March–29 April): In this period, temperatures are moderate, and the charging load is likely to stabilize, reflecting typical spring user behavior patterns.
2.2. Improved LSTM Prediction Model
2.2.1. Basic Structure of LSTM
- Forget Gate:
- 2.
- Input Gate:
- 3.
- Output Gate:
- Forgetting and Memory: The input information and stored information are multiplied by weight matrices, and after adding the bias term, they pass through a sigmoid function for normalization to obtain the final input information.
- New Information Input: During the input phase, the data are processed by passing them through the weight matrix and multiplying them with the activation matrix, producing the information that will be transferred to the memory unit.
- Cell State Update and Information Output: The results of the first two steps are combined to compute the current cell state. This cell state is then multiplied by the output matrix to generate the final output.
2.2.2. Improvements to the LSTM Model
2.3. LSTM Core Parameter Optimization Based on PSO Algorithm
2.4. Development of the Electric Vehicle Load Forecasting Model
3. Experimental Results and Analysis
3.1. Experimental Setup
3.1.1. Experimental Environment Setup
3.1.2. Model Parameter Settings
3.2. Comparative Analysis of Experimental Results
- MAE is the average of the absolute errors:
- 2.
- MSE is the average of the squared errors:
- 3.
- RMSE is the square root of the Mean Squared Error (MSE):
- Winter Period (1 January–3 February): The MAE of the PSO-LSTM is 3.896, which is a reduction of 6.6% compared to LSTM (4.170) and 10.1% compared to GRU (4.335). Its RMSE (5.359) is significantly lower than those of both LSTM (5.450) and GRU (5.760), indicating stronger stability in high-variance load scenarios.
- Winter–Spring Transition Period (4 February–4 March): PSO-LSTM achieves the lowest MAE (3.806) and RMSE (5.386), demonstrating its adaptability to dynamic change patterns.
- Spring Period (5 March–29 April): Although the performance differences between models are narrow, the RMSE of PSO-LSTM (5.458) still outperforms GRU (5.572), indicating its competitiveness in stable scenarios.
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Lee, Z.J. Large-Scale Adaptive Electric Vehicle Charging. In Proceedings of the 2018 IEEE Global Conference on Signal and Information Processing (GlobalSIP), Anaheim, CA, USA, 26–28 November 2018; pp. 863–864. [Google Scholar] [CrossRef]
- Wei, J.Z.; Ma, Z.P. Monte-Carlo-algorithm-based Load Prediction of Electric Vehicles Large-scale Charging. Electr. Eng. 2024, 3, 49–53. [Google Scholar] [CrossRef]
- Shi, W.Q.; Wu, K.Y.; Wang, D.X. Eclectic Power System Short-Term Load Forecasting Model Based on Time Series Analysis and Kalman Filter Algorithm. Control Theory Appl. 2018, 37, 9–12+23. [Google Scholar]
- Zhang, X.; Li, L. Seasonal Electric Vehicle Charging Load Prediction Based on Random Forest. Softw. Eng. 2024, 27, 11–14+37. [Google Scholar]
- Song, M.S.; Li, Z.W.; Song, S. Research on the Optimization Strategy of Electric Vehicle OrderlyCharge and Discharge in Intelligent Community. Tech. Autom. Appl. 2022, 41, 17–22+27. [Google Scholar] [CrossRef]
- Geng, P.; Yang, H.J.; Shi, Z.X. Electric Vehicle Forecasting Charging Demand Based on Spatiotemporal Graph Convolutional Networks. J. Transp. Eng. 2024, 24, 37–45. [Google Scholar]
- Pei, Z.; Zhang, Z.; Chen, J. KAN-CNN: A Novel Framework for Electric Vehicle Load Forecasting with Enhanced Engineering Applicability and Simplified Neural Network Tuning. Electronics 2025, 14, 414. [Google Scholar] [CrossRef]
- Liu, Y.X.; Gao, H. Load Prediction Method of Charging Station Based on SSA-VMD-BiLSTM Model. Guangdong Electr. Power 2024, 37, 53–61. [Google Scholar]
- Lin, X.; Zhang, H.; Ma, Y.L. Electric vehicle charging load prediction based on improved LSTM neural network. Mod. Electron. Tech. 2024, 47, 97–101. [Google Scholar]
- Huang, Y.X.; Xiao, S.W. Forecasting of electric vehicle charging load in highway service areas considering meteorological factors. Appl. Energy 2025, 383, 125337. [Google Scholar]
- Yin, W.; Ji, J. Research on EV charging load forecasting and orderly charging scheduling based on model fusion. Energy 2024, 290, 130126. [Google Scholar] [CrossRef]
- Ma, S.; Ning, J.; Mao, N.; Liu, J.; Shi, R. Research on Machine Learning-Based Method for Predicting Industrial Park Electric Vehicle Charging Load. Sustainability 2024, 16, 7258. [Google Scholar] [CrossRef]
- Ge, Q.; Guo, C.; Jiang, H. Industrial power load forecasting method based on reinforcement learning and PSO-LSSVM. IEEE Trans. Cybern. 2020, 52, 1112–1124. [Google Scholar] [CrossRef] [PubMed]
- Jin, Y.; Guo, H.; Wang, J. A hybrid system based on LSTM for short-term power load forecasting. Energies 2020, 13, 6241. [Google Scholar] [CrossRef]
- Saoud, A.; Recioui, A. Load Energy Forecasting based on a Hybrid PSO LSTM-AE Model. Alger. J. Environ. Sci. Technol. 2023, 9, 2938–2946. [Google Scholar]
- Liu, X.; Ma, Z.; Guo, H. Short-term power load forecasting based on DE-IHHO optimized BiLSTM. IEEE Access 2024, 12, 145341–145349. [Google Scholar] [CrossRef]
- Lai, Y.; Wang, Q.; Chen, G. Short-term Power Load Prediction Method based on VMD and EDE-BiLSTM. IEEE Access 2024, 13, 10481–10488. [Google Scholar] [CrossRef]
- Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95-International Conference on Neural Networks, Perth, WA, Australia, 27 November—1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
- Liu, Z.; Chen, X.; Liang, X.; Huang, S.; Zhao, Y. Research on Sustainable Form Design of NEV Vehicle Based on Particle Swarm Algorithm Optimized Support Vector Regression. Sustainability 2024, 16, 7812. [Google Scholar] [CrossRef]
- Dai, X.; Sheng, K.; Shu, F. Ship power load forecasting based on PSO-SVM. Math. Biosci. Eng. 2022, 19, 4547–4567. [Google Scholar] [CrossRef]
- Geng, G.; He, Y.; Zhang, J. Short-term power load forecasting based on PSO-optimized VMD-TCN-attention mechanism. Energies 2023, 16, 4616. [Google Scholar] [CrossRef]
- Fan, W.; Hu, Z.; Veerasamy, V. PSO-based model predictive control for load frequency regulation with wind turbines. Energies 2022, 15, 8219. [Google Scholar] [CrossRef]
- Jain, M.; Saihjpal, V.; Singh, N. An overview of variants and advancements of PSO algorithm. Appl. Sci. 2022, 12, 8392. [Google Scholar] [CrossRef]
- Kim, H.J.; Kim, M.K. Spatial-Temporal Graph Convolutional-Based Recurrent Network for Electric Vehicle Charging Stations Demand Forecasting in Energy Market. IEEE Trans. Smart Grid 2024, 15, 3979–3993. [Google Scholar] [CrossRef]
- Güven, A.F. Integrating electric vehicles into hybrid microgrids: A stochastic approach to future-ready renewable energy solutions and management. Energy 2024, 303, 131968. [Google Scholar] [CrossRef]
- Ding, L.; Ke, S.; Zhang, F. Forecasting of electric-vehicle charging load considering travel demand and guidance strategy. Electr. Power Constr. 2024, 45, 10–26. [Google Scholar]
- Zhang, Q.; Lu, J.; Kuang, W.; Wu, L.; Wang, Z. Short-Term Charging Load Prediction of Electric Vehicles with Dynamic Traffic Information Based on a Support Vector Machine. World Electr. Veh. J. 2024, 15, 189. [Google Scholar] [CrossRef]
- Qian, Y.; Kong, Y.; Huang, C. Review of Power Load Forecasting. Sichuan Electr. Power Technol. 2023, 46, 37–43+58. [Google Scholar] [CrossRef]
- Zhang, X.W.; Liang, J.; Wang, Y.G.; Han, J. Overview of Research on Spatiotemporal Distribution Prediction of Electric Vehicle Charging. Electr. Power Constr. 2023, 44, 161–173. [Google Scholar]
Parameter | Definition | Unit |
---|---|---|
D | The search space dimension of the PSO algorithm | |
N | The number of particles in the PSO algorithm | |
The inertia weight of the PSO algorithm | ||
num | The number of iterations for the PSO algorithm | |
The acceleration coefficient for personal best position in PSO | ||
The acceleration coefficient for the global best position in PSO | ||
Random numbers within the range [0, 1] | ||
P | Total energy consumption of EV charging stations | kWh |
Hidden Units1 | The number of neurons in the first hidden layer | |
Hidden Units2 | The number of neurons in the second hidden layer | |
Dropout | The dropout rate | |
Batch Size | Batch size | |
Epochs | The number of training iterations |
Abbreviation | Full Form |
---|---|
PSO | Particle Swarm Optimization |
LSTM | Long Short-Term Memory |
PSO-LSTM | Particle Swarm Optimization Long Short-Term Memory |
GRU | Gated Recurrent Unit |
EV | Electric vehicle |
BP | Backpropagation |
CNN | Convolutional neural network |
KAN | Kolmogorov-Arnold network |
RNN | Recurrent neural network |
GCN | Graph convolutional network |
GNN | Graph neural networks |
BiLSTM | Bidirectional LSTM |
SSA | Sparrow Search Algorithm |
VMD | Variational mode decomposition |
MAE | Mean Absolute Error |
MSE | Mean Squared Error |
RMSE | Root Mean Squared Error |
Parameter | Initial Range |
---|---|
Population size, N | 10 |
Number of iterations, num | 30 |
2.05 | |
2.05 | |
Hidden Units1 | 64 |
Hidden Units2 | 32 |
Dropout | 0.3 |
Batch size | 32 |
Epochs | 50 |
Operating System | Windows 10 |
---|---|
CPU | 13th Gen Intel(R) Core (TM) i7-1360P 2.20 GHz |
System RAM | 32 GB |
Learning framework | Tensorflow |
Editor | PyCharm |
Programming language | Python3.9 |
Model | Hidden Units1 | Hidden Units2 | Dropout | Batch Size | Epochs |
---|---|---|---|---|---|
GRU | 64 | 32 | 0.3 | 32 | 50 |
LSTM | 64 | 32 | 0.3 | 32 | 50 |
PSO-LSTM (Winter) | 115 | 57 | 0.2 | 16 | 43 |
PSO-LSTM (Winter–Spring Transition) | 110 | 28 | 0.1 | 16 | 51 |
PSO-LSTM (Spring) | 128 | 61 | 0.1 | 17 | 24 |
Model | Season | MAE | MSE | RMSE |
---|---|---|---|---|
GRU | Winter | 4.335 | 33.171 | 5.760 |
Winter–spring transition | 4.365 | 33.382 | 5.778 | |
Spring | 4.219 | 31.046 | 5.572 | |
LSTM | Winter | 4.170 | 29.701 | 5.450 |
Winter–spring transition | 4.050 | 30.625 | 5.534 | |
Spring | 4.019 | 31.292 | 5.594 | |
PSO-LSTM | Winter | 3.896 | 28.717 | 5.359 |
Winter–spring transition | 3.806 | 29.012 | 5.386 | |
Spring | 3.910 | 29.796 | 5.458 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Published by MDPI on behalf of the World Electric Vehicle Association. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Yang, X.; Zhang, L.; Han, X. Electric Vehicle Charging Load Forecasting Method Based on Improved Long Short-Term Memory Model with Particle Swarm Optimization. World Electr. Veh. J. 2025, 16, 150. https://doi.org/10.3390/wevj16030150
Yang X, Zhang L, Han X. Electric Vehicle Charging Load Forecasting Method Based on Improved Long Short-Term Memory Model with Particle Swarm Optimization. World Electric Vehicle Journal. 2025; 16(3):150. https://doi.org/10.3390/wevj16030150
Chicago/Turabian StyleYang, Xiaomeng, Lidong Zhang, and Xiangyun Han. 2025. "Electric Vehicle Charging Load Forecasting Method Based on Improved Long Short-Term Memory Model with Particle Swarm Optimization" World Electric Vehicle Journal 16, no. 3: 150. https://doi.org/10.3390/wevj16030150
APA StyleYang, X., Zhang, L., & Han, X. (2025). Electric Vehicle Charging Load Forecasting Method Based on Improved Long Short-Term Memory Model with Particle Swarm Optimization. World Electric Vehicle Journal, 16(3), 150. https://doi.org/10.3390/wevj16030150