State of Charge Prediction of Mine-Used LiFePO4 Battery Based on PSO-Catboost
Abstract
:1. Introduction
2. SOC Prediction Model
2.1. GBDT Algorithm
2.2. Catboost Algorithm
Algorithm 1: Updating the models and calculating model values for gradient estimation |
2.3. Particle Swarm Optimization
2.4. PSO-Catboost Model
- (1)
- Data preprocessing and dividing the dataset into training and test sets.
- (2)
- Each particle component is initialized according to the value range of the parameter range.
- (3)
- Start the iterative calculation and update each particle’s velocity and position components according to Equations (5) and (6).
- (4)
- Fit value comparison. Firstly, whether the fitness value is more excellent than the individual optimum is judged, and if the fitness value is more excellent than the individual optimum, the model is updated; otherwise, the individual optimum remains unchanged. Secondly, whether the fitness value is more excellent than the global optimum is judged and the model is updated if the fitness value is greater than the global optimum; otherwise, the global variable remains unchanged.
- (5)
- Determining whether to terminate the iteration according to the iteration termination condition and performing the following operation if the iteration is terminated; otherwise, continue to iterate.
- (6)
- Finally, output the predicted SOC result.
3. Dataset
- (1)
- Fully charge the battery. The criterion of full charge is that when a single battery in the battery pack reaches the limited voltage value (3.5 V), the system sends an instruction to stop charging.
- (2)
- Drive the vehicle to a designated closed road for a driving test at a speed not exceeding 25 km/H. The test road is a circular route with a slight slope.
- (3)
- In the driving process, the SOC is reduced by 10%, the vehicle is stopped for 0.5 h, and the voltage of the single battery is sampled and measured.
- (4)
- When the SOC value drops below 30%, stop the test and return to charging.
4. Accuracy Standard
4.1. Mean Absolute Error—MAE
4.2. Root Mean Square Error—RMSE
4.3. Coefficient of Determination of Linear Regression—R2
5. Results and Analysis
5.1. Comparison with the Catboost Model
5.2. Comparison with Other Models
6. Conclusions
- (1)
- The cat boost model optimized via PSO can obtain a prediction value close to the actual value, and the SOC prediction accuracy and robustness of the optimized model are better than those of the unoptimized single model.
- (2)
- PSO optimized the Catboost, RF, and XGBoost models to predict the SOC values of the battery charge and discharge process, and the performance of different integrated models was compared horizontally. Through the experiment and comparison, the PSO-Catboost model performed better and better matched the actual value. The comparison results of the R2 values are PSO-CatBoost > PSO-XGBoost > PSO-RF.
- (3)
- The experimental results show that the optimization model can select the parameters more intelligently, reduce the error caused by artificial experience when adjusting the parameters, and have better theoretical value and practical significance.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Yuan, Y. Safety Analysis and Management Measures of In-service Large Capacity Lithium Battery for Underground Mining. Saf. Coal Mines 2020, 51, 143–146. [Google Scholar] [CrossRef]
- Chengdong, L.; Taolin, L.; Jingying, X.; Shiyi, F.; Lei, W. Overview of electric vehicle battery management system algorithms. Chin. J. Power Sources 2021, 45, 1371–1375. [Google Scholar]
- Wang, Y.; Li, J.; Zhang, J.; Pecht, M. Lithium-iron-phosphate battery electrochemical modelling under a wide range of ambient temperatures. J. Electroanal. Chem. 2021, 882, 115041. [Google Scholar] [CrossRef]
- Ying, H.; Genpeng, Z.; Yi, C. Research on SOC estimation of lithium-ion power battery based on feature combination and stacking fusion ensemble Learning. Energy Storage Sci. Technol. 2020, 9, 1548–1557. [Google Scholar] [CrossRef]
- Shu, X.; Li, G.; Shen, J.; Yan, W.; Chen, Z.; Liu, Y. An adaptive fusion estimation algorithm for state of charge of lithium-ion batteries considering wide operating temperature and degradation. J. Power Sources 2020, 462, 228132. [Google Scholar] [CrossRef]
- Shu, X.; Shen, J.; Li, G.; Zhang, Y.; Chen, Z.; Liu, Y. A Flexible State-of-Health Prediction Scheme for Lithium-Ion Battery Packs with Long Short-Term Memory Network and Transfer Learning. IEEE Trans. Transp. Electrif. 2021, 7, 2238–2248. [Google Scholar] [CrossRef]
- Liu, K.; Li, Y.; Hu, X.; Lucu, M.; Widanage, W.D. Gaussian Process Regression with Automatic Relevance Determination Kernel for Calendar Aging Prediction of Lithium-Ion Batteries. IEEE Trans. Ind. Inform. 2020, 16, 3767–3777. [Google Scholar] [CrossRef]
- Song, Y.; Liu, D.; Liao, H.; Peng, Y. A hybrid statistical data-driven method for on-line joint state estimation of lithium-ion batteries. Appl. Energy 2020, 261, 114408. [Google Scholar] [CrossRef]
- Deng, Z.; Hu, X.; Lin, X.; Che, Y.; Xu, L.; Guo, W. Data-driven state of charge estimation for lithium-ion battery packs based on Gaussian process regression. Energy 2020, 205, 118000. [Google Scholar] [CrossRef]
- Lipu, M.S.H.; Hannan, M.A.; Hussain, A.; Ansari, S.; Rahman, S.A.; Saad, M.H.M.; Muttaqi, K.M. Real-Time State of Charge Estimation of Lithium-Ion Batteries Using Optimized Random Forest Regression Algorithm. IEEE Trans. Intell. Veh. 2023, 8, 639–648. [Google Scholar] [CrossRef]
- Ipek, E.; Eren, M.K.; Yilmaz, M. State-of-Charge Estimation of Li-ion Battery Cell using Support Vector Regression and Gradient Boosting Techniques. In Proceedings of the 2019 International Aegean Conference on Electrical Machines and Power Electronics (ACEMP) & 2019 International Conference on Optimization of Electrical and Electronic Equipment (OPTIM), Istanbul, Turkey, 27–29 August 2019; pp. 604–609. [Google Scholar]
- Prokhorenkova, L.; Gusev, G.; Vorobev, A.; Dorogush, A.V.; Gulin, A. CatBoost: Unbiased boosting with categorical features. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, Montréal, QC, Canada, 3–8 December 2018; pp. 6639–6649. [Google Scholar]
- Dorogush, A.V.; Ershov, V.; Gulin, A. CatBoost: Gradient boosting with categorical features support. arXiv 2018, arXiv:1810.11363. [Google Scholar]
- Mao, X.; Song, S.; Ding, F. Optimal BP neural network algorithm for state of charge estimation of lithium-ion battery using PSO with Levy flight. J. Energy Storage 2022, 49, 104139. [Google Scholar] [CrossRef]
Project | Content |
---|---|
Model | 3.2 V 60 Ah |
Battery type | Lithium iron phosphate battery |
Rated capacity | 60 Ah |
Rated voltage | 562.3 V |
Charge and discharge cut-off voltage | 492.8 V~633.6 V |
Operating temperature | Charge: 0–65 °C/Discharge: −20–65 °C |
Hyperparameter | Description | Catboost | PSO-Catboost |
---|---|---|---|
iterations | The number of trees | 500 | (50, 1000) |
learning_rate | Learning rate | 0.1 | (0.01, 0.5) |
depth | Maximum depth of the tree | 10 | (1, 16) |
l2_leaf_reg | The weight of the L2 regularization term | 5 | (1, 10) |
Algorithm | MAE | RMSE | R2 | |
---|---|---|---|---|
Charge | Catboost | 0.3451 | 0.5602 | 0.9980 |
PSO-Catboost | 0.3023 | 0.4179 | 0.9985 | |
Discharge | Catboost | 0.4712 | 0.7430 | 0.9941 |
PSO-Catboost | 0.4452 | 0.6524 | 0.9956 |
Algorithm | Hyperparameters | Description | Range |
---|---|---|---|
PSO-XGBoost | learning_rate | Learning rate | (0.01, 0.3) |
n_estimators | The number of trees | (10, 1000) | |
max_depth | Maximum depth of the tree | (1, 100) | |
colsample_bytree | Proportion of features used when training each tree | (0, 1) | |
min_child_weight | Minimum sum of weights among child nodes | (1, 6) | |
subsample | Proportion of samples used when training each tree | (0.5, 1) | |
gamma | Controls the growth of the tree. Higher values are more conservative | (0, 1) | |
PSO-RF | max_features | Maximum number of features considered when each node is split | (0.1, 1) |
n_estimators | The number of trees | (10, 1000) | |
max_depth | Maximum depth of the tree | (1, 100) | |
min_samples_split | Minimum number of samples required for point splitting | (2, 20) | |
min_samples_leaf | Minimum number of samples required for leaf nodes | (1, 20) |
Algorithm | MAE | RMSE | R2 | |
---|---|---|---|---|
Charge | PSO-Catboost | 0.3023 | 0.4179 | 0.9985 |
PSO-RF | 0.3263 | 0.5035 | 0.9966 | |
PSO-XGBoost | 0.4488 | 0.6542 | 0.9934 | |
Discharge | PSO-Catboost | 0.4452 | 0.6524 | 0.9956 |
PSO-RF | 0.4928 | 0.7848 | 0.9899 | |
PSO-XGBoost | 0.4970 | 0.7582 | 0.9923 |
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. |
© 2024 by the authors. 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
Wang, D.; Chang, Y.; Ji, P.; Suo, Y.; Chen, N. State of Charge Prediction of Mine-Used LiFePO4 Battery Based on PSO-Catboost. Energies 2024, 17, 5920. https://doi.org/10.3390/en17235920
Wang D, Chang Y, Ji P, Suo Y, Chen N. State of Charge Prediction of Mine-Used LiFePO4 Battery Based on PSO-Catboost. Energies. 2024; 17(23):5920. https://doi.org/10.3390/en17235920
Chicago/Turabian StyleWang, Dazhong, Yinghui Chang, Pengfei Ji, Yanchun Suo, and Ning Chen. 2024. "State of Charge Prediction of Mine-Used LiFePO4 Battery Based on PSO-Catboost" Energies 17, no. 23: 5920. https://doi.org/10.3390/en17235920
APA StyleWang, D., Chang, Y., Ji, P., Suo, Y., & Chen, N. (2024). State of Charge Prediction of Mine-Used LiFePO4 Battery Based on PSO-Catboost. Energies, 17(23), 5920. https://doi.org/10.3390/en17235920