Skip to content
AI.info

Research

FlowBatt: Flow Matching for Probabilistic Battery Degradation Prediction

Overview Research area: Machine learning for battery health prognostics — specifically probabilistic generative modeling of lithium-ion battery degradation, intersecting with scientific machine learni

arXiv
2611.03150
Published
2026-11-02
Authors
Hamidreza Eivazi, Eslam Sharaawy, Stefan Wittek, André Hebenbrock, Raphael Ginster, Steffen Blömeke

AI summary

Overview

Research area: Machine learning for battery health prognostics — specifically probabilistic generative modeling of lithium-ion battery degradation, intersecting with scientific machine learning (diffusion models, flow matching, diffusion transformers).

Technical level: Advanced. The paper assumes familiarity with diffusion models, flow matching, ODE-based generative modeling, transformer architectures, and battery health metrics (SOH, RUL, EOL). The conceptual narrative is accessible, but the methodology section is written for readers who already know the generative modeling literature.

Scope: FlowBatt is a conditional generative framework that adapts flow matching with a diffusion transformer backbone to generate full state-of-health (SOH) degradation trajectories for lithium-ion cells, conditioned on early-cycle capacity matrices, and evaluated across five standardized public benchmark settings spanning multiple chemistries.

What This Paper Is About

Battery degradation is complex and heterogeneous, driven by cycling behavior, operating conditions, and cell chemistry, which makes forecasting how a cell's capacity will fade over its life difficult. Most existing machine-learning approaches make deterministic point predictions — a single remaining-useful-life (RUL) number or a single SOH value at one cycle — and probabilistic modeling of entire SOH trajectories across different chemistries has remained underexplored. The paper's goal is to reframe battery health prediction as a generative problem: given only the first 20 or 100 cycles of data, produce many plausible full degradation curves rather than one number, and derive both trajectory forecasts and prediction intervals from them.

Key Contributions

  1. FlowBatt framework: A use-inspired conditional generative model that adapts flow matching — not a new flow-matching objective, but a new formulation of battery health prediction as conditional full-trajectory SOH generation from early-cycle capacity data. It uses a diffusion transformer (DiT) backbone with adaLN-Zero conditioning to model degradation as a probabilistic, trajectory-level process.

  2. Explainable-AI-guided encoder repair: Using Grad-CAM analysis, the authors diagnose initialization-sensitive failure modes in a ReLU-based CNN encoder that maps early-cycle capacity matrices into conditioning vectors — including cases with inactive gradients — and replace ReLU with LeakyReLU to obtain a more robust encoder.

  3. Benchmark comparison against diffusion and supervised models: FlowBatt is benchmarked against a supervised Transformer baseline, a diffusion-based counterpart (DiffBatt), and established RUL baselines (BatLiNet, Random Forest, MLP, and others) on five public benchmark settings under shared data splits, achieving the best trajectory-wise SOH accuracy on all five.

  4. A unified probabilistic model: A single trained model that covers SOH trajectory forecasting, empirical uncertainty quantification through prediction intervals, and synthetic degradation-curve generation for data augmentation — rather than requiring separate task-specific training. Source code and pre-trained models are released publicly.

Main Findings

  • Best trajectory-wise SOH prediction on all five benchmarks: FlowBatt achieves mean RMSE of 0.87 ± 0.02 on MATR-1, 1.77 ± 0.04 on MATR-2, 2.10 ± 0.12 on HUST, 0.88 ± 0.03 on MIX-20, and 1.41 ± 0.02 on MIX-100, with errors below 2.5% in all cases. The diffusion-based DiffBatt is second-best on all five (0.92, 1.85, 2.44, 1.15, 1.71), and the supervised Transformer is consistently behind.

  • Generative modeling beats purely supervised trajectory prediction: The supervised Transformer is reasonable on some datasets (1.09 ± 0.07 on MATR-1, 1.42 ± 0.10 on MIX-20) but degrades on harder ones (3.18 ± 0.16 on HUST), while both generative models improve on it everywhere.

  • Baseline adaptation is not a like-for-like contest for trajectory accuracy: BatLiNet, RF, and MLP were designed for RUL and had to be adapted to emit full SOH trajectories, producing notably higher trajectory RMSE — for example RF reaches 5.45 ± 0.04 on MIX-100 and MLP 4.11 ± 0.13 on HUST.

  • Prediction intervals are informative but slightly under-cover: With 100 generated samples, empirical coverage of a nominal 90% interval reaches 88.0% on MATR-1, 87.0% on MIX-20, and 86.0% on MIX-100, with average widths below one percentage point on those datasets. Coverage is weaker on MATR-2 (70.0%) and HUST (73.0%), where widths are 0.51% and 1.65%. Widening to a 95% interval with 500 samples raises coverage to 90.5%, 72.5%, 76.1%, 89.6%, and 88.4% respectively.

  • Competitive RUL as a downstream product: Deriving RUL from generated trajectories, FlowBatt is best on HUST (222 ± 12 cycles, 9% MAPE) and second-best on MATR-1 (67 ± 2), MIX-100 (179 ± 6), and MIX-20 (229 ± 12). On MATR-2 it reaches 175 ± 4, close to the RUL-specialized BatLiNet (163 ± 12) and better than DiffBatt (202 ± 5) and Transformer (226 ± 39).

  • Only two models are consistently top-three: FlowBatt is the only model besides BatLiNet that ranks among the top three on every dataset — notable given that BatLiNet is trained specifically for the scalar RUL task.

  • Error correlates with predictive variance: The per-sample RUL standard deviation across ten generated trajectories shows a general tendency for samples with larger prediction errors to also exhibit higher predictive variance.

  • Synthetic data improves downstream RUL models: Generating five synthetic SOH curves per training sample on MATR-1 and training a random forest on them reduces RUL RMSE from 136 to 101 cycles and MAPE from 12% to 10% at guidance strength w = 1.0 (roughly 26% lower RMSE and 19% lower MAPE). FID drops from 0.129 at w = 0.5 to 0.001 at w = 1.0 and w = 2.0, then rises to 0.003 at w = 4.0; recall is highest at w = 1.0 (0.98) and falls to 0.54 at w = 4.0, while precision is 1.00 for all settings with w ≥ 1.0. All synthetic settings beat the no-synthetic baseline.

  • Faster sampling than diffusion: Flow matching solves the ODE over [0,1], whereas the diffusion comparison requires 1000 reverse steps; the paper's Figure 2 visualizes this faster denoising on a MATR-1 test sample.

Methodology in Plain English

The authors take a publicly curated set of battery cycling datasets and reformulate health prediction as an image-generation-style problem, where the "image" is a one-dimensional curve of capacity fade over cycle life.

The representation. Each battery's SOH trajectory is discretized to 256 points (one SOH value every ten physical cycles), lifted to a token sequence by a 1×1 convolution, and given sinusoidal positional embeddings so the model knows the cycle order.

The generative machinery. Instead of the thousands of noisy denoising steps used in diffusion models, flow matching learns a continuous vector field that smoothly transports random Gaussian noise into realistic degradation curves. A neural network is trained to regress the target velocity along straight-line interpolation paths between noise and real data; at inference, integrating the learned ODE from 0 to 1 produces a sample. The backbone is a stack of diffusion transformer blocks using adaptive layer normalization (adaLN-Zero), where per-channel scale, shift, and residual-gating parameters are produced from a single global conditioning vector. Residual scalars are initialized to zero so every block starts as an identity mapping, which stabilizes training.

The conditioning. The model is steered by a capacity matrix — a cycle-by-voltage array of baseline-subtracted discharge-capacity curves taken from only the first 20 or 100 cycles. A small CNN encoder compresses this matrix into a compact embedding that is added to the timestep embedding. The authors used Grad-CAM to inspect how this encoder behaves, found ReLU-based versions failing under some initializations with dead gradients, and switched to LeakyReLU with two convolutional layers, average pooling, and a final projection.

The evaluation protocol. They follow the BatLiNet benchmark, which defines five settings: MATR-1, MATR-2, HUST, MIX-100 (predict the 80% end-of-life point from the first 100 cycles), and MIX-20 (predict the cycle count until 90% capacity from the first 20 cycles). The same splits are reused for both SOH trajectory prediction and RUL, preserving comparability with prior work. For trajectory RMSE, error is computed over the curve up to end-of-life with the remainder padded by the final observed value. Probabilistic models generate ten trajectories from independent noise draws; the deterministic Transformer baseline is trained with ten random initializations instead.

Uncertainty and synthesis. Prediction intervals are built empirically from multiple generated trajectories. For synthesis, the conditioning vector is dropped with probability 0.2 during training to enable classifier-free guidance, and generated curves with varying guidance strength w are used to augment random-forest and MLP training, scored with FID (in a PCA latent space rather than the Inception model), precision, recall, and downstream RUL error.

Why This Matters

Impact on research. The paper shifts the benchmark conversation from scalar endpoint prediction toward probabilistic trajectory modeling — a harder, more informative target that standard RUL leaderboards do not capture. It also supplies a directly comparable diffusion-versus-flow-matching contrast (DiffBatt versus FlowBatt) under shared data splits and architecture, which is a cleaner ablation of the generative objective than most scientific-ML papers provide. The XAI-guided discovery that a widely reused CNN encoder has initialization-sensitive failure modes is a caution for the whole battery-ML subfield, since that encoder lineage underlies several published RUL models.

Real-world applications:

  • Continuous health monitoring and degradation-aware operation of battery packs in electric vehicles and stationary storage.
  • Warranty assessment, where prediction intervals communicate risk to manufacturers and customers rather than a single misleading number.
  • Long-term maintenance planning and battery replacement scheduling, using RUL derived from generated trajectories at a practical threshold such as 80% of nominal capacity.
  • Data augmentation for cell chemistries or cycling protocols where long-term aging tests are too slow or expensive to run at scale.

Industry relevance. Battery testing takes years and substantial resources; the paper explicitly motivates using the first 20 or 100 cycles precisely because long-term testing is costly. A model that produces calibrated uncertainty bands and plausible synthetic aging curves at this data budget speaks directly to qualification workflows, second-life assessment, and reducing experimental burden in cell development.

Future Directions

  • Improving interval calibration on hard datasets: Coverage stays meaningfully below the nominal 90% level on MATR-2 (70.0%) and HUST (73.0%) even at 500 samples, and a 95% interval only reaches 72.5% and 76.1% there — so the uncertainty estimates need recalibration or better handling of chemistry shift.

  • Closing the RUL gap to task-specific models: BatLiNet still wins on MATR-1 (59 ± 2 versus 67 ± 2), MATR-2 (163 ± 12 versus 175 ± 4), MIX-100 (158 ± 7 versus 179 ± 6), and MIX-20 (201 ± 18 versus 229 ± 12). Whether trajectory-trained models can match or exceed RUL-specialized ones, or whether a hybrid objective helps, is open.

  • Extending beyond the benchmarked chemistries and conditions: The five settings cover LFP, LCO, NMC, NCA, and NMC_LCO across varied temperatures and protocols, but generalization to chemistries, form factors, and real-world (non-laboratory) usage profiles outside this set is not established.

  • Scaling and refining the conditioning pathway: The XAI-guided encoder fix suggests further room to improve how early-life information is injected; the paper positions FlowBatt as a framework intended for adaptation across energy-storage applications, including broader use of synthesis for data augmentation.

Target Audience

Researchers and practitioners in scientific machine learning and generative modeling who work on time-series or trajectory generation, battery engineers and prognostics specialists familiar with SOH/RUL benchmarking, and industry teams building battery management, warranty, or qualification pipelines. Readers evaluating whether flow matching is a practical alternative to diffusion for physical-systems forecasting will find the head-to-head DiffBatt/FlowBatt comparison most useful; readers new to generative modeling will need to consult the cited diffusion and flow-matching literature first.

Authors’ abstract

Battery degradation remains a central challenge in the development and broad application of sustainable energy technologies. Accurate degradation prediction is challenging, as battery aging emerges from complex and heterogeneous interactions among cycling behavior, operating conditions, and cell chemistry. Existing machine-learning approaches typically focus on deterministic end-of-life predictions or modeling degradation curves within fixed chemistry settings, leaving probabilistic state of health (SOH) trajectory modeling across heterogeneous chemistries underexplored. We introduce FlowBatt, a use-inspired conditional generative framework that adapts flow matching with a diffusion transformer (DiT) backbone to battery degradation trajectory modeling. FlowBatt models full SOH trajectories as probabilistic degradation processes conditioned on early-cycle capacity data. To strengthen this conditioning pathway, we use explainable AI analysis to diagnose and improve the encoder that maps early-cycle capacity matrices into conditioning vectors. We evaluate FlowBatt on five public benchmark settings spanning diverse chemistries and aging conditions, comparing it with supervised and diffusion-based trajectory models as well as established baselines for remaining useful life (RUL) prediction under shared data splits. FlowBatt achieves the best trajectory-wise SOH prediction performance on all five datasets, with errors below 2.5%, and delivers competitive RUL prediction performance. By generating multiple plausible trajectories, FlowBatt provides empirical prediction intervals for battery degradation modeling. These results indicate that flow-matching-based trajectory modeling is a promising framework for probabilistic battery health prediction.

Read the original paper