Overview
BatteryML is a novel open-source platform designed to bridge the gap between battery researchers and machine learning (ML) experts by standardizing battery degradation modeling. It provides a unified data format, automated feature extraction, and a comprehensive suite of baseline models for predicting battery life and health. By streamlining the ML pipeline, BatteryML facilitates fair model benchmarking and accelerates research in energy storage.
The Challenge of Battery Degradation Modeling
Predicting how lithium-ion batteries degrade over time is crucial for applications ranging from electric vehicles (preventing "range anxiety") to grid storage reliability. While machine learning is a powerful tool for this, a massive knowledge gap exists between two isolated camps. ML experts often lack the electrochemical domain knowledge needed to engineer effective features, while battery scientists struggle to implement and fine-tune complex neural networks.
Furthermore, battery data is notoriously messy. Different testing machines output different formats, terminologies vary, and degradation patterns change wildly depending on the battery's chemistry (e.g., LFP vs. NMC) and charging protocols. Until now, there hasn't been a standardized framework or unified benchmark to fairly compare different predictive models, making it difficult to determine which algorithms actually perform best across diverse scenarios.
The BatteryML Platform
To address these challenges, the authors introduce BatteryML, an end-to-end, open-source Python platform. Its core innovation is a modular pipeline that decouples data processing from model training.
The platform's architecture is built on several key pillars:
- Unified Data Representation (
BatteryData): BatteryML automatically converts messy, heterogeneous raw data from various cyclers into a standardized format. This includes metadata (materials, capacities) and time-series cycle records (voltage, current, temperature). - Feature Engineering: The platform supports both "within-cycle" features (like Coulombic efficiency and internal resistance) and "between-cycle" features (like capacity decay dynamics). It allows users to easily mix hand-crafted domain features with raw data tensors.
- Automated Labeling: It automatically calculates targets for key predictive tasks: Remaining Useful Life (RUL), State of Health (SOH), and State of Charge (SOC).
- Model Zoo: BatteryML integrates a wide range of models, from domain-expert linear models and traditional statistical methods (Random Forest, XGBoost, Gaussian Processes) to deep learning architectures (CNNs, LSTMs, Transformers).
Standardized Datasets and Benchmarks
The platform standardizes several well-known public battery datasets encompassing various chemistries (LCO, LFP, NMC, NCA), including CALCE, MATR, HUST, HNEI, RWTH, SNL, and UL_PUR.
To test how models handle highly diverse data, the authors created newly synthesized benchmark datasets: CRUH (4 datasets combined), CRUSH (5 datasets), and MIX (all datasets combined). MIX represents one of the largest and most diverse battery degradation datasets available for benchmarking.
Key Insights
- Domain Knowledge Has Limits: Hand-crafted features designed by battery experts work incredibly well on specific, uniform battery types (like the LFP cells in the MATR dataset). However, these domain-specific models struggle when applied to highly diverse datasets (like MIX) that contain multiple chemistries and aging conditions.
- Tree Models Are Highly Robust: Traditional tree-based models (Random Forest, XGBoost, LightGBM) excel at capturing complex, non-linear degradation patterns across diverse battery types without needing the massive amounts of data that deep learning requires.
- Deep Learning Requires Tuning: While neural networks (CNNs, Transformers) can automatically learn representations from raw data, they showed high variance based on random initialization and often underperformed compared to tree-based models. They require more data and architectural tuning to truly shine in this domain.
- No Single Model Rules Them All: Benchmark results clearly show that different models excel on different datasets and tasks, highlighting the absolute necessity of a unified benchmarking platform like BatteryML.
Performance Results
- State of Charge (SOC): LightGBM consistently outperformed all other models (including deep learning) across almost all datasets, establishing tree-based models as the current state-of-the-art for SOC prediction.
- Remaining Useful Life (RUL): On the massive, diverse MIX dataset, Random Forest achieved the lowest error (RMSE of 197), massively outperforming domain-expert linear models (RMSE > 500) and deep learning models like CNNs (RMSE of 272).
- State of Health (SOH): Tree-based models again provided the most consistent and robust baselines across diverse datasets, whereas deep learning models struggled with generalization when charging strategies varied widely between batteries.
Limitations and Future Work
The authors acknowledge a fundamental challenge in battery ML: true SOH and SOC labels require standardized reference performance tests (RPTs), which aren't practical to run constantly in real-world dynamic workloads. Therefore, the models currently rely on approximations that don't perfectly reflect real-world driving or grid conditions.
For future work, the authors plan to expand BatteryML to handle real-world data, such as Battery Management System (BMS) records from actual electric vehicles, rather than just controlled lab data. They also aim to include lower-level materials data (like half-cell tests) and develop a more user-friendly UI with "one-click" prediction capabilities to make the tool accessible to an even wider audience.
Summary updated