Advanced battery diagnostics for electric vehicles using CAN based BMS data with EKF and data driven predictive models
- PMID: 40999003
- PMCID: PMC12464234
- DOI: 10.1038/s41598-025-18042-6
Advanced battery diagnostics for electric vehicles using CAN based BMS data with EKF and data driven predictive models
Abstract
Accurate evaluations of battery State of Health (SoH) and State of Charge (SoC) are critical for Electric Vehicles (EVs) safety, performance, and durability. This study proposes a novel hybrid diagnostic framework that combines statistical analysis, machine learning, and model-based estimation to improve battery monitoring capabilities. The cell-level voltage, temperature, current, and SoC were measured on 15S2P LiFePO4 battery pack utilizing a CAN interface. By implemting the Extended Kalman Filter (EKF), the impact of sensor noise and model errors was reduced in-comarision with the convetional Coulomb Counting techniques. The Random Forest regression model was used to train for SoH assessment with duty cycles, cycle duration, temperature gradient, and voltage spread, the model performed better than linear regression techniques with projected accuracy. The k-means clustering is used to group the cells with comparable behaviors, and the cells with outlier behaviors were identified using dynamic time warping (DTW) based on temporal deviation. The principal component analysis (PCA) is used for voltage imbalance trends identification and analysis. With the data-driven algorithms, the battery health assessments can be made reliable and interpretable by combining physical estimating techniques. This is a practical and expandable solution for improved EV battery diagnostics and life-cycle management.
Keywords: Charge monitoring; Dynamic time warping; Electric vehicle; Kalman filter; Lifespan assessment; ML Random Forest; Principal component analysis; Real-time BMS.
© 2025. The Author(s).
Conflict of interest statement
Declarations. Competing interests: The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Figures










References
-
- Arévalo, P., Ochoa-Correa, D. & Villa-Ávila, E. A systematic review on the integration of artificial intelligence into energy management systems for electric vehicles: Recent advances and future perspectives. World Electric Veh. J.15(8), 364 (2024).
-
- Li, S. & Wang, H. Battery health prognostics and management in electric vehicles. IEEE Trans. Transp. Electrific.7(3), 1235–1245 (2021).
-
- Nour, A., et al., A comprehensive review on lithium iron phosphate batteries for EV applications. J. Energy Storage31 (2020).
-
- Chen, M., et al. Safety and performance of LiFePO4 batteries in EVs. J. Power Sources. 450 (2020)
-
- Lee, J. & Kim, K. State of charge estimation in electric vehicle batteries. IEEE Trans. Ind. Electron.67(8), 6644–6653 (2020).
LinkOut - more resources
Full Text Sources