A Data-Driven Transformer–BiLSTM Multi-Task Learning Framework for Joint State-of-Charge and State-of-Health Estimation in Lithium-Ion Battery Energy Systems
Main Article Content
Abstract
Reliable operation of lithium-ion battery energy storage systems requires continuous, data-driven monitoring of two internal states that cannot be measured directly: State-of-Charge (SOC), which reflects instantaneous energy availability, and State-of-Health (SOH), which reflects long-term capacity degradation. Digital battery management systems increasingly rely on machine learning to extract these states from routinely logged voltage, current, and temperature measurements, yet most existing approaches estimate SOC and SOH independently, missing the shared temporal information embedded in a common measurement stream. This paper puts forward a Transformer–BiLSTM multi-task learning framework that jointly estimates SOC and SOH from a single shared representation of battery operating data: a linear embedding layer projects the three input channels into a 32-dimensional space, a two-layer Transformer encoder with four attention heads models dependencies across a 50-step measurement window, and a Bidirectional Long Short-Term Memory (BiLSTM) layer captures forward and backward temporal structure, producing a 64-dimensional representation shared by two task-specific prediction heads. The framework used here is trained and evaluated on the publicly available NASA lithium-ion battery dataset (cells B0005, B0006, B0007, and B0018; 636 discharge battery-cycle combinations), with SOC references generated via Coulomb counting and SOH references derived from smoothed capacity-degradation trajectories. On a held-out test partition, it reaches an SOC RMSE of 0.01659 (MAE 0.00901, R2 0.99592) and an SOH RMSE of 0.01821 (MAE 0.01205, R2 0.97095), with lower prediction error than ten baseline deep-learning architectures across both SOC and SOH estimation on all reported metrics, and notable differences confirmed under the adopted paired-window evaluation protocol using Wilcoxon signed-rank tests with Holm correction. These results show that a shared Transformer–BiLSTM representation gives an effective, computationally efficient data-driven pathway for joint battery-state monitoring, with a measured average inference processing time of 0.04564 ms per test sample under the adopted batched inference configuration. An additional target-battery few-shot adaptation study further shows that updating only 1.766% of the model’s parameters matches or beats full-model fine-tuning when adapting to a specific battery with as little as 1% additional data. The reported cycle-level train/validation/test partitioning strategy, and what it means for cross-battery generalization, are discussed as a point worth keeping in mind for deployment-oriented battery informatics systems. Keywords: Lithium-ion battery, State of Charge, State of Health, Transformer, BiLSTM, Multi-task learning, Data-driven energy systems, Battery informatics
