Robust State of Charge Estimation for Li-ion Batteries: Mitigating Sensor Noise Through Data Augmentation in Neural Networks

The precise and reliable estimation of the State of Charge (SOC) remains a cornerstone function within the Battery Management System (BMS) of modern electric vehicles. The li ion battery, as the dominant energy storage technology, exhibits a highly non-linear relationship between its terminal voltage, current, and its internal SOC, especially under dynamic load profiles and varying environmental conditions. An accurate SOC reading is crucial not only for optimizing vehicle range and user experience but also for ensuring the safety and longevity of the li ion battery pack by preventing overcharge and deep discharge. While numerous estimation algorithms, from traditional Coulomb counting to advanced model-based filters and data-driven approaches, have been developed with impressive accuracy in controlled settings, their performance in real-world automotive applications is invariably degraded by a pervasive factor: sensor noise.

In cost-sensitive, high-volume production like automotive BMS, there exists a fundamental trade-off between sensor precision and system cost. Consequently, the voltage and current sensors employed possess inherent measurement inaccuracies. For instance, a typical automotive-grade voltage sensor might have a maximum error band of ±10 mV, while a current shunt sensor could exhibit noise up to ±150 mA. When fed into sophisticated SOC estimation algorithms, this seemingly small sensor noise propagates through the system, leading to significant estimation errors and reduced robustness. This practical challenge is often underexplored in academic research that frequently assumes ideal, noise-free measurement data. Therefore, developing estimation methods that are inherently robust to such sensor imperfections is of paramount importance for the real-world deployment of BMS technology.

This work investigates the impact of voltage and current sensor noise on the SOC estimation performance of a data-driven approach, specifically a Backpropagation (BP) neural network. Furthermore, we propose and validate a simple yet effective data augmentation strategy to enhance the neural network’s resilience to such noise, effectively “teaching” the estimator to recognize and filter out sensor-induced artifacts. We systematically evaluate the method under various simulated noise conditions and benchmark its performance against a classical model-based approach, the Extended Kalman Filter (EKF).

Data Acquisition and Preprocessing

The experimental data utilized for training and validation in this study originates from a publicly available dataset focused on characterizing li ion battery behavior. The tests were performed on a commercial 3Ah LG 18650HG2 LiNiMnCoO2 (NMC) cell using a Digatron battery tester with high precision (±0.1% of full scale for voltage and current). Data was logged at a 1 Hz sampling frequency.

Two primary driving schedules were selected to represent distinct aspects of li ion battery operation:

  1. Hybrid Pulse Power Characterization (HPPC) Test at 25°C: This test provides a rich characterization of the battery’s dynamic response across the entire SOC range. At specific SOC points (from 100% down to 0% in decrements as described in the source material), the cell is subjected to a series of short-duration charge and discharge pulses at multiple C-rates (e.g., 1C, 2C, 4C, 6C discharge; 0.5C, 1C, 1.5C, 2C charge). This data captures the non-linear voltage response to a wide range of current excitations at different SOC levels, making it ideal for training a data-driven model. This HPPC dataset was designated as the primary training set.
  2. Urban Dynamometer Driving Schedule (UDDS) Cycle at 25°C: This standard driving profile simulates urban driving with frequent start-stop events and acceleration/deceleration phases. Its dynamic and realistic current profile makes it an excellent candidate for validating the SOC estimation algorithm’s performance under conditions resembling actual vehicle operation. This UDDS dataset was used as the independent test set.

The measured signals are terminal voltage \( V_{bat} \) (V) and current \( I_{bat} \) (A), where charging current is defined as positive. The true SOC for training is calculated offline using high-precision Coulomb counting with a known initial SOC and the cell’s rated capacity.

Methodology: BP Neural Network and Noise Simulation

Neural Network Architecture

A standard multi-layer perceptron (BP neural network) was chosen for its universal function approximation capability and widespread use. The network topology is designed to be simple yet effective for the SOC estimation task. The network takes two input features: the measured battery voltage and current at time step \( k \), \( \mathbf{x}_k = [V_{bat}(k), I_{bat}(k)] \). Its output is the estimated SOC at the same time step, \( \widehat{SOC}(k) \). The network structure is summarized below:

Network Layer Number of Neurons Activation Function
Input Layer 2 –
Hidden Layer 1 4 Hyperbolic Tangent (tanh)
Hidden Layer 2 2 Hyperbolic Tangent (tanh)
Output Layer 1 Sigmoid (to bound output between 0 and 1)

The network is trained using the backpropagation algorithm with a Mean Squared Error (MSE) loss function:
$$ L(\theta) = \frac{1}{N} \sum_{k=1}^{N} (SOC_{ref}(k) – \widehat{SOC}(k))^2 $$
where \( \theta \) represents all network weights and biases, \( N \) is the number of training samples, and \( SOC_{ref} \) is the reference SOC. A small, stable learning rate of \( 1 \times 10^{-5} \) was used for training.

Sensor Noise Modeling and Injection

To simulate real-world BMS sensor imperfections, noise was synthetically added to the pristine test data. The noise levels were chosen based on specifications of common automotive-grade sensors, as detailed in the following table:

Sensor Type Full Scale (FS) Typical Accuracy Modeled Maximum Error (Noise Amplitude)
Voltage Sensor 0 – 5 V ±0.2% FS \( \epsilon_V = \pm 10 \text{ mV} \)
Current Sensor ±30 A ±0.5% FS \( \epsilon_I = \pm 150 \text{ mA} \)

Two primary noise models were employed:

  1. Bounded Uniform Noise (Maximum Noise): Represents a worst-case scenario where the sensor error is constantly at its maximum positive or negative limit. The noise value for each sample is \( +\epsilon \) or \( -\epsilon \) (chosen with equal probability).
  2. Zero-Mean Gaussian Noise: Represents a more realistic scenario where noise is randomly distributed around the true value. The noise is modeled as \( \mathcal{N}(0, \sigma^2) \), where \( \sigma \) is set such that \( 3\sigma \approx \epsilon \), meaning 99.7% of errors fall within the ±ϵ band. For example, voltage Gaussian noise has \( \sigma_V \approx 3.33 \text{ mV} \).

Four distinct noise-corrupted test sets were created from the original clean UDDS data to evaluate the estimator’s robustness:

  1. Max-Noise: Both voltage and current signals are corrupted with their respective maximum bounded uniform noise (\( \pm10\text{mV}, \pm150\text{mA} \)).
  2. Gaussian-Noise: Both signals are corrupted with their respective Gaussian noise distributions.
  3. Current-Only-Noise: Only the current signal has maximum bounded uniform noise (\( \pm150\text{mA} \)), voltage is clean.
  4. Voltage-Only-Noise: Only the voltage signal has maximum bounded uniform noise (\( \pm10\text{mV} \)), current is clean.

The corrupted measurement \( z_{noisy}(k) \) is generated as:
$$ z_{noisy}(k) = z_{clean}(k) + \eta(k) $$
where \( \eta(k) \) is the noise sample at time \( k \) according to the chosen model.

Data Augmentation for Robust Training

The core idea for improving noise robustness is to expose the neural network to a wide variety of noise patterns during its training phase. This is achieved through a systematic data augmentation procedure applied to the original clean HPPC training set. Instead of training only on pristine data, we generate multiple noisy versions of the entire training set. All combinations of the defined voltage and current noise levels (including the zero-noise case) are applied, effectively creating a new, much larger, and more diverse training corpus. The augmentation strategy is outlined below:

Augmented Dataset # Voltage Noise Injection Current Noise Injection
1 (Original Clean) 0 mV 0 mA
2 +10 mV 0 mA
3 +10 mV +150 mA
4 +10 mV -150 mA
5 -10 mV 0 mA
6 -10 mV +150 mA
7 -10 mV -150 mA
8 0 mV +150 mA
9 0 mV -150 mA

The final augmented training set is the concatenation of all 9 datasets, making it 9 times larger than the original. The same BP neural network architecture is then trained from scratch on this augmented set. The objective is for the network to learn the underlying mapping from (voltage, current) to SOC that is invariant to these specific sensor noise artifacts.

Experimental Results and Analysis

Performance Metrics

The SOC estimation performance is evaluated using three standard metrics calculated over the entire test sequence:

  1. Maximum Absolute Error (MaxAE): $$ MaxAE = \max_k |SOC_{ref}(k) – \widehat{SOC}(k)| $$
  2. Mean Absolute Error (MAE): $$ MAE = \frac{1}{N} \sum_{k=1}^{N} |SOC_{ref}(k) – \widehat{SOC}(k)| $$
  3. Root Mean Square Error (RMSE): $$ RMSE = \sqrt{ \frac{1}{N} \sum_{k=1}^{N} (SOC_{ref}(k) – \widehat{SOC}(k))^2 } $$

MAE indicates the average estimation accuracy, while RMSE penalizes larger errors more heavily, indicating overall precision and stability.

Baseline: Performance with Clean Training and Clean Testing

Initially, the BP network was trained exclusively on the clean HPPC data and tested on the clean UDDS data. This establishes the best-possible baseline performance in an ideal, noise-free environment. The network achieved an MAE of 0.5886% and an RMSE of 0.8280%, demonstrating its inherent capability to model the SOC dynamics of the li ion battery under dynamic loads when data is perfect.

Impact of Sensor Noise on a Naïve Estimator

The pre-trained network (from the clean baseline) was then evaluated on the four noise-corrupted UDDS test sets. The results starkly illustrate the vulnerability of a model trained on perfect data to real-world sensor imperfections. The key performance metrics are compiled below:

Test Condition (Noise on Test Data) MAE (%) RMSE (%) Degradation in MAE vs. Clean (%)
Clean (Baseline) 0.5886 0.8280 0.0
Max-Noise 0.9575 1.1209 +62.7%
Gaussian-Noise 0.8605 1.0486 +46.2%
Current-Only-Noise 0.7079 0.9725 +20.3%
Voltage-Only-Noise 1.2135 1.3761 +106.2%

The degradation is significant across all noisy conditions. The “Max-Noise” scenario, representing a worst-case sensor fault, causes the MAE to increase by over 60%. Critically, the analysis of single-source noise reveals that the SOC estimate is far more sensitive to voltage sensor noise (MAE increase of 106.2%) than to current sensor noise (20.3% increase). This aligns with the fundamental electrochemical principle that the open-circuit voltage (OCV) of a li ion battery has a direct, non-linear correspondence with its SOC. Noise on the voltage measurement directly distorts this primary relationship, leading to larger estimation errors.

Enhanced Robustness via Data-Augmented Training

The same BP network architecture was then retrained from scratch using the 9x augmented training set. This network, now “experienced” with various noise patterns, was evaluated on the same four noisy test sets. The results demonstrate a remarkable improvement in robustness:

Test Condition (Noise on Test Data) MAE (%) – Augmented Model RMSE (%) – Augmented Model Improvement in MAE vs. Naïve Model (%)
Max-Noise 0.7608 0.9504 -20.5% (MAE reduced by 0.1967 p.p.)
Gaussian-Noise 0.6570 0.8911 -23.7% (MAE reduced by 0.2035 p.p.)
Current-Only-Noise 0.6345 0.8911 -10.4% (MAE reduced by 0.0734 p.p.)
Voltage-Only-Noise 0.8272 1.0039 -31.8% (MAE reduced by 0.3863 p.p.)

The data-augmented model consistently outperforms the naïve model across all noise scenarios. The MAE and RMSE are significantly lower. Notably, the most substantial relative improvement is observed for the voltage-only noise condition, where the MAE was reduced by nearly a third. This confirms that the augmentation strategy successfully teaches the network to be less sensitive to the specific noise artifacts introduced during training, effectively learning a more generalized and robust mapping for the li ion battery SOC.

Benchmarking Against a Model-Based Approach: Extended Kalman Filter

To place the performance of the data-driven approach in context, a conventional model-based algorithm, the Extended Kalman Filter (EKF), was implemented for comparison. The EKF requires a state-space model of the li ion battery. A first-order RC equivalent circuit model (Thevenin model) was employed, parameterized from the same HPPC test data. The model’s state vector is \( \mathbf{x}_k = [SOC_k, V_{rc,k}]^T \), where \( V_{rc} \) is the voltage across the RC polarization network. The state-space equations are:
$$ SOC_{k+1} = SOC_k – \frac{\eta \Delta t}{C_n} I_k + w_{1,k} $$
$$ V_{rc,k+1} = \exp(-\frac{\Delta t}{\tau}) V_{rc,k} + R_p (1-\exp(-\frac{\Delta t}{\tau})) I_k + w_{2,k} $$
$$ V_{t,k} = OCV(SOC_k) – V_{rc,k} – R_0 I_k + v_k $$
where \( C_n \) is nominal capacity, \( \eta \) is coulombic efficiency, \( R_0 \), \( R_p \), \( \tau (=R_p C_p) \) are model parameters, \( OCV(\cdot) \) is the SOC-OCV function, and \( w_k \), \( v_k \) are process and measurement noise terms. The EKF was tuned and executed on the Gaussian-Noise test set. The results are compared with those of the data-augmented BP network:

Algorithm Test Condition MAE (%) RMSE (%)
EKF (1st Order RC Model) Gaussian-Noise 1.0238 1.2617
BP Network (Augmented) Gaussian-Noise 0.6570 0.8911

The data-augmented BP network demonstrates superior estimation accuracy and stability compared to the EKF under the same sensor noise conditions. The MAE is approximately 0.37 percentage points lower, representing a 35.8% improvement in accuracy. The EKF’s performance is limited by the inherent inaccuracy of the simplified first-order model in capturing the full dynamics of the li ion battery, especially under highly dynamic profiles like UDDS, and its susceptibility to measurement noise in the update step. In contrast, the neural network, trained on a vast and varied dataset, learns a more comprehensive representation of the battery behavior that is less perturbed by the noise.

Conclusion and Discussion

This investigation conclusively demonstrates that sensor noise is a critical, non-negligible factor that can severely degrade the performance of SOC estimation algorithms for li ion battery packs in practical BMS applications. A neural network trained exclusively on high-fidelity laboratory data experiences a substantial increase in estimation error—exceeding 60% in MAE under worst-case noise—when deployed with realistic, noisy sensor inputs. The analysis further identifies voltage sensor noise as the more detrimental influence due to its direct impact on the key OCV-SOC relationship.

The proposed data augmentation strategy presents an effective and computationally efficient solution to this challenge. By artificially expanding the training dataset to include systematically generated noise patterns, the neural network estimator learns to discern the underlying electrochemical state from corrupted measurements. This approach enhances the model’s robustness, leading to significant reductions in estimation error across all tested noise scenarios. When benchmarked against a classical EKF based on a simplified equivalent circuit model, the noise-resistant neural network estimator shows markedly better accuracy and precision.

The implications for BMS design are clear: to achieve reliable real-world performance, algorithm development must account for front-end sensor imperfections. For data-driven methods like neural networks, incorporating domain knowledge about potential disturbances (like sensor noise ranges) into the training data pipeline is a powerful tool for improving robustness. This study focused on a standard BP network for clarity, but the augmentation principle is directly applicable to more advanced architectures like Long Short-Term Memory (LSTM) or Transformer networks, promising even greater performance. Future work will involve testing this methodology on more complex battery models, multi-cell pack scenarios, and across wider temperature ranges to further validate its utility for next-generation BMS in li ion battery applications.

Scroll to Top