TY - JOUR
T1 - XGBoost–random forest stacking with dual-state Kalman filtering for real-time battery SOC estimation
AU - Tau, Robin K.E.
AU - Yahya, Abid
AU - Mangwala, Mmoloki
AU - Ditshego, Nonofo M.J.
N1 - Publisher Copyright:
© 2025 The Author(s)
PY - 2025/9
Y1 - 2025/9
N2 - Accurate real-time state-of-charge estimation remains a bottleneck for e-bike battery management because firmware must deliver sub-[Figure presented] updates while drawing less than [Figure presented]. Classical observers drift under sensor bias, and purely data-driven models exceed the timing and memory ceilings of low-cost microcontrollers. This study therefore proposes the Hybrid Ensemble Dual-State Kalman Filter (HEAD-KF), which fuses Extreme Gradient Boosting and Random-Forest regressors through non-negative ridge stacking and smooths the fused output with a dual-state Kalman filter whose noise covariances are tuned online from residual statistics. The pipeline runs end-to-end on a Raspberry Pi 4 and is validated on a 20S Samsung INR18650-25R pack that uses NCA chemistry and is cycled between [Figure presented] and [Figure presented]. HEAD-KF yields a global mean-absolute error of [Figure presented] SOC, keeps dynamic-discharge error to [Figure presented], and updates in [Figure presented] while consuming [Figure presented] per prediction. Covariance-perturbation and sensor-noise injections hold the estimator inside the ISO-12405 [Figure presented] band, and ablation tests show that removing either the ensemble fusion or the adaptive Kalman loop doubles the error. These results indicate that HEAD-KF satisfies the accuracy, timing, and energy constraints of embedded battery-management systems on commodity hardware, and they motivate future work on cross-chemistry retraining, aggressive model compression for sub-[Figure presented] targets, and on-device drift detection to preserve accuracy as packs age.
AB - Accurate real-time state-of-charge estimation remains a bottleneck for e-bike battery management because firmware must deliver sub-[Figure presented] updates while drawing less than [Figure presented]. Classical observers drift under sensor bias, and purely data-driven models exceed the timing and memory ceilings of low-cost microcontrollers. This study therefore proposes the Hybrid Ensemble Dual-State Kalman Filter (HEAD-KF), which fuses Extreme Gradient Boosting and Random-Forest regressors through non-negative ridge stacking and smooths the fused output with a dual-state Kalman filter whose noise covariances are tuned online from residual statistics. The pipeline runs end-to-end on a Raspberry Pi 4 and is validated on a 20S Samsung INR18650-25R pack that uses NCA chemistry and is cycled between [Figure presented] and [Figure presented]. HEAD-KF yields a global mean-absolute error of [Figure presented] SOC, keeps dynamic-discharge error to [Figure presented], and updates in [Figure presented] while consuming [Figure presented] per prediction. Covariance-perturbation and sensor-noise injections hold the estimator inside the ISO-12405 [Figure presented] band, and ablation tests show that removing either the ensemble fusion or the adaptive Kalman loop doubles the error. These results indicate that HEAD-KF satisfies the accuracy, timing, and energy constraints of embedded battery-management systems on commodity hardware, and they motivate future work on cross-chemistry retraining, aggressive model compression for sub-[Figure presented] targets, and on-device drift detection to preserve accuracy as packs age.
KW - Battery management systems (BMS)
KW - Edge AI
KW - Embedded systems
KW - Lithium-ion batteries
KW - Machine learning
KW - Raspberry Pi
KW - SOC estimation
UR - https://www.scopus.com/pages/publications/105012821002
UR - https://www.scopus.com/inward/citedby.url?scp=105012821002&partnerID=8YFLogxK
U2 - 10.1016/j.rineng.2025.106428
DO - 10.1016/j.rineng.2025.106428
M3 - Article
AN - SCOPUS:105012821002
SN - 2590-1230
VL - 27
JO - Results in Engineering
JF - Results in Engineering
M1 - 106428
ER -