Abstract
Electrochemical batteries are ubiquitous devices in our society. When they are employed in mission-critical applications, the ability to precisely predict the end of discharge under highly variable environmental and operating conditions is of paramount importance in order to support operational decision-making. While there are accurate predictive models of the processes underlying the charge and discharge phases of batteries, the modelling of ageing and its effect on performance remains poorly understood. Such a lack of understanding often leads to inaccurate models or the need for time-consuming calibration procedures whenever the battery ages or its conditions change significantly. This represents a major obstacle to the real-world deployment of efficient and robust battery management systems. In this paper, we propose for the first time an approach that can predict the voltage discharge curve for batteries of any degradation level without the need for calibration. In particular, we introduce Dynaformer, a novel Transformer-based deep learning architecture which is able to simultaneously infer the ageing state from a limited number of voltage/current samples and predict the full voltage discharge curve for real batteries with high precision. Our experiments show that the trained model is effective for input current profiles of different complexities and is robust to a wide range of degradation levels. In addition to evaluating the performance of the proposed framework on simulated data, we demonstrate that a minimal amount of fine-tuning allows the model to bridge the simulation-to-real gap between simulations and real data collected from a set of batteries. The proposed methodology enables the utilization of battery-powered systems until the end of discharge in a controlled and predictable way, thereby significantly prolonging the operating cycles and reducing costs.
Introduction
Predicting exactly when a battery will reach its End-of-Discharge (EoD) point is a critical challenge for mission-critical systems, ranging from electric vehicles to autonomous drones. This task is complicated by two primary factors: variable operational loads and battery aging. As batteries age, their internal chemistry changes—capacity fades and internal resistance increases—making their behavior a moving target for traditional models. While physics-based models are accurate, they are computationally intensive and require frequent recalibration. Standard data-driven approaches often struggle with long-term dependencies or require prohibitive amounts of labeled real-world data.
Methodology
The researchers introduce Dynaformer, an encoder-decoder Transformer model designed specifically for time-series battery data. The architecture is built to handle the complexities of aging without requiring explicit "State of Health" labels during training.
Architecture and Training
- The Encoder (Aging Inference): Processes a small "context window" of initial voltage and current data to extract a latent representation of the battery's degradation state.
- The Decoder (Discharge Prediction): Conditioned on the encoder’s output and a planned future current profile, the decoder predicts the remaining voltage curve.
- Sequence Patching: To manage the computational complexity of long time series, the model utilizes sequence patching (similar to Vision Transformers), subdividing inputs into manageable tokens.
- Sim-to-Real Transfer: The model is pre-trained on a massive synthetic dataset of over 600,000 profiles generated by a high-fidelity electrochemical simulator. It is then fine-tuned on a minimal subset of real-world data from the NASA Ames Prognostics Data Repository to bridge the simulation-to-real gap.
Key Results and Insights
Dynaformer demonstrates superior performance in both simulated and real-world environments. A key finding is the interpretability of the model's latent space; Principal Component Analysis (PCA) revealed that the encoder's internal representations correlate almost perfectly (0.96 and 0.98) with physical parameters like capacity and resistance, effectively turning the "black box" model into a more transparent "gray box."
Performance Metrics
- Simulation Accuracy: On unseen simulated data, Dynaformer achieved a median Relative Temporal Error (RTE) of 0.02, significantly outperforming baseline LSTMs and Feed-Forward Networks (FNNs), which exhibited errors 3–5 times higher.
- Real-World Robustness: Direct application to real NASA battery data yielded a ~6% error. However, with minimal fine-tuning (using as few as 10–20 discharge curves), the median RTE dropped to approximately 0.03—a 50% improvement.
- Complexity Handling: The model remained robust even when the complexity of current profiles (number of transitions) was increased beyond the training distribution.
Conclusion and Future Work
Dynaformer represents a significant advancement in battery management, providing high-precision EoD predictions across varying degradation levels without extensive recalibration. While currently dependent on high-quality simulators for pre-training, future work aims to develop universal models across multiple battery chemistries. Additionally, the differentiable nature of the model opens the door for optimizing current profiles to maximize operational battery life.
Summary updated