Real-time Li-Ion state of health estimation using LSTMS (Proof Of Concept)
This notebook presents my implementation of a real-time battery health estimation system developed during my internship at Serma Technologies.
In this system, the model utilizes battery signals, specifically the voltage first derivative recorded during the charging process, to predict battery cell capacity. It is referred to as real-time because the capacity variations between charges are minimal, typically less than 0.001% of the total capacity.
The model architecture consists of two LSTM cells followed by a final linear layer. The training process is as follows:
We define a fixed window size and sample windowed versions of the input signal. These windowed signals are used to train the model.To evaluate the model's performance, two test cells are utilized.
Test cell 1 | Test cell 2 |
---|---|
![]() |
![]() |
However, the model faces challenges when predicting the value 0. This difficulty arises from the near-zero slope (-∞) of the Sigmoid function, which significantly diminishes gradients and slows down parameter updates for this type of output.
During inference, the model's performance improves by averaging its predictions across multiple samples from the same signal.