SambaMixer - State of Health Prediction of Li-ion Batteries using Mamba State Space Models


The state of health (SOH) of a Li-ion battery is determined by complex interactions among its internal components and external factors. Approaches leveraging deep learning architectures have been proposed to predict the SOH using convolutional networks, recurrent networks, and transformers. Recently, Mamba selective state space models have emerged as a new sequence model that combines fast parallel training with data efficiency and fast sampling. In this paper, we propose SambaMixer, a Mamba-based model for predicting the SOH of Li-ion batteries using multivariate time signals measured during the battery’s discharge cycle. Our model is designed to handle analog signals with irregular sampling rates and recuperation effects of Li-ion batteries. We introduce a novel anchor-based resampling method as an augmentation technique. Additionally, we improve performance and learn recuperation effects by conditioning the prediction on the sample time and cycle time difference using positional encodings. We evaluate our model on the NASA battery discharge dataset, reporting MAE, RMSE, and MAPE. Our model outperforms previous methods based on CNNs and recurrent networks, reducing MAE by 52%, RMSE by 43%, and MAPE by 7%.

Authors:
Sascha Kirch, José Ignacio Olalde-Verano , Sergio Martín & Clara Pérez-Molina

arXiv

[Code] [BibTex]

Contribution

  1. Introducing Mamba state space models to the problem of Li-Ion battery SOH prediction.
  2. Using an anchor-based resampling scheme to resample time signals to have the same number of samples while serving as a data augmentation method.
  3. Applying a sample time-based positional encoding scheme to the input sequence to tackle sample jitter, time signals of varying length and recuperation effects of Li-ion batteries.

Framework

SambaMixer Architecture
SambaMixer architecture. We input a multivariate time series of current, voltage, temperature, and sample time. First, we resample the time signals using our anchor-based resampling technique. Then, we feed the resampled sample time into the sample time positional encoding layer. Additionally, we feed the time difference between two discharge cycles in hours into the cycle time difference positional encoding layer. The other signals, namely current, voltage, and temperature, are fed into the input projection. The projected signals are added to the sample time embeddings and the cycle time difference embeddings. Optionally, a class (CLS) token can be inserted at any position. The embedded tokens are then fed into the SambaMixer Encoder, which consists of M stacked SambaMixer Encoder blocks. Finally, the output of the encoder is fed into the head, which predicts the state of health of the current cycle k for battery bψ.

Results

soh_prediction_bat6 soh_prediction_bat7 soh_prediction_bat47
Battery Model MAE RMSE MAPE
#06 Mazzi et al. (2024) 2.448 3.177 1.579
  SambaMixer (ours) 1.173 2.068 1.406
#07 Mazzi et al. (2024) 1.861 2.252 1.114
  SambaMixer (ours) 1.197 1.285 1.498
#47 Mazzi et al. (2024) 2.549 3.094 1.969
  SambaMixer (ours) 0.512 0.645 0.822

Never heard of Mamba Selective State Space models?

Here we provide free access to Sascha’s series: Towards Mamba State Space Models Images, Videos and Time Series.

And here free access to all his other articles

Citation

If you find our work helpful for your research, please consider citing the following BibTeX entry.

@ARTICLE{olalde_kirch_sambamixer_2025,
  author={Olalde-Verano, José Ignacio and Kirch, Sascha and Pérez-Molina, Clara and Martín, Sergio},
  journal={IEEE Access}, 
  title={SambaMixer: State of Health Prediction of Li-Ion Batteries Using Mamba State Space Models}, 
  year={2025},
  volume={13},
  number={},
  pages={2313-2327},
  keywords={Lithium-ion batteries;Predictive models;Transformers;Temperature measurement;Discharges (electric);Voltage measurement;Lithium;Battery charge measurement;State of charge;NASA;Li-ion battery;mamba;state space model;state of health prediction;multivariate time series;deep learning},
  doi={10.1109/ACCESS.2024.3524321}}