In the realm of modern energy storage and electric mobility, the li ion battery stands as a cornerstone technology. Accurate estimation of the State of Charge (SOC) is paramount for ensuring the safety, longevity, and reliable performance of these power sources. Traditional methods for SOC estimation often grapple with challenges related to nonlinear dynamics, temperature dependencies, and long-term temporal correlations inherent in battery operation data. In this comprehensive study, I present a novel data-driven approach leveraging Temporal Convolutional Networks (TCN) for high-fidelity SOC estimation. This method capitalizes on the exceptional sequential modeling capabilities of TCNs to process time-series data from li ion batteries, specifically voltage, current, and temperature, under varying environmental conditions. The performance is rigorously evaluated across multiple temperatures and compared against established neural network architectures.
The significance of precise SOC management for li ion battery systems cannot be overstated. It directly influences battery lifespan, prevents overcharge and deep discharge, and is critical for energy management in electric vehicles and grid storage. However, the electrochemical processes within a li ion battery are highly complex and influenced by factors such as aging, load profiles, and notably, operating temperature. This complexity renders simple coulomb counting or model-based filters like Kalman filters less effective, especially when battery parameters drift over time. Data-driven methods, particularly deep learning models, have emerged as powerful alternatives. Among these, Recurrent Neural Networks (RNNs) and Long Short-Term Memory (LSTM) networks have been explored. However, they can suffer from issues like gradient vanishing/exploding and limited parallelization during training. The TCN architecture, with its dilated causal convolutions and residual connections, offers a compelling solution by providing a receptive field that can capture long-range dependencies efficiently while maintaining stable gradients.

The core innovation of this work lies in the tailored application of TCN for the temporal regression problem of SOC estimation. A li ion battery’s operational data is a multivariate time series where past states heavily influence the present SOC. The TCN model is designed to exploit this temporal causality. The fundamental operation in a TCN layer is the dilated causal convolution. For a one-dimensional sequence input x and a filter f, the dilated convolution operation F at sequence element s is mathematically defined as:
$$F(s) = \sum_{i=0}^{k-1} f(i) \cdot x_{s-d \cdot i}$$
Here, k represents the filter size, and d is the dilation factor. When d=1, this simplifies to a standard convolution. The causal property is enforced by ensuring the output at time s depends only on inputs at times s – d·i (i.e., current and past inputs). By stacking multiple layers with exponentially increasing dilation factors (e.g., d = 1, 2, 4, 8, …), the network’s receptive field grows rapidly, allowing it to capture dependencies over very long sequences without a proportional increase in parameters. This is crucial for modeling the entire discharge/charge cycle of a li ion battery.
To facilitate the training of deep TCN architectures for li ion battery SOC estimation, residual blocks are incorporated. A residual block allows the input to bypass one or more convolutional layers via a shortcut connection, which helps mitigate the degradation problem in deep networks. The output of a residual block with input xL is given by:
$$x_{L+1} = x_L + F(x_L, W_L)$$
where F(xL, WL) represents the transformation learned by the convolutional layers within the block with weights WL. If the dimensions of xL and xL+1 mismatch, a 1×1 convolution is used to adjust the dimensionality:
$$x_{L+1} = h(x_L) + F(x_L, W_L) = W’ x_L + F(x_L, W_L)$$
where W’ is the weight matrix for the 1×1 convolution. This structure ensures stable gradient flow and enables the construction of very deep networks capable of learning hierarchical features from li ion battery data.
The specific TCN model constructed for SOC estimation of a li ion battery consists of an input layer followed by a sequence of residual blocks. Each block contains multiple layers of dilated causal convolutions with ReLU activations and dropout for regularization. The input to the network at each time step k is a feature vector comprising the measured voltage, current, and temperature:
$$x(k) = [U(k), I(k), T(k)]$$
These features are chosen as they are readily measurable and encapsulate the instantaneous state of the li ion battery. The output of the network is the estimated SOC at that time step. To ensure numerical stability and accelerate convergence, all input features are normalized to the range [-1, 1] using min-max scaling:
$$x_{\text{norm}} = \frac{2(x – x_{\text{min}})}{x_{\text{max}} – x_{\text{min}}} – 1$$
The model is trained to minimize the difference between the estimated SOC and the reference SOC, which is typically obtained through precise laboratory-grade coulomb counting under controlled conditions.
The training process employs the Adam optimizer, which adapts the learning rate for each parameter. The update rules for Adam involve computing the first and second moment estimates of the gradients. For a parameter vector θ and loss function J, the gradient at time step t is gt = ∇θJ(θt-1). The Adam update is more complex than simple SGD, but a simplified view of the learning rate adaptation can be seen in algorithms like ReduceLROnPlateau, which was used in this work. This scheduler reduces the learning rate by a factor (e.g., 0.5) when the validation loss plateaus, mathematically expressed as a conditional update:
$$\alpha_{t+1} = \begin{cases} \alpha_t \cdot \gamma & \text{if } \text{validation\_loss}_{t-n:t} \text{ does not improve} \\ \alpha_t & \text{otherwise} \end{cases}$$
where α is the learning rate and γ is the reduction factor. This helps in fine-tuning the model for li ion battery SOC estimation and avoiding overfitting.
To validate the proposed TCN-based approach, extensive experiments were conducted on commercial 18650-type li ion batteries. The key experimental conditions are summarized in the table below:
| Parameter | Specification |
|---|---|
| Battery Type | 18650 Li-ion (NMC/Graphite) |
| Nominal Capacity | 3.2 Ah |
| Nominal Voltage | 3.7 V |
| Charge Protocol | CC-CV: 1C to 4.2V, CV to 0.05C cutoff |
| Discharge Protocol | 1C constant current discharge |
| Test Temperatures | 5°C, 10°C, 15°C, 20°C, 25°C |
| Sampling Interval | 1 second |
| Pre-conditioning | 5-hour rest for stabilization |
Data was collected for multiple complete charge-discharge cycles at each temperature. For each cycle, the voltage (U), current (I), and surface temperature (T) of the li ion battery were recorded. The reference SOC was calculated by integrating the current over time (coulomb counting) with careful correction for efficiency and measurement noise, providing a ground truth for supervised learning. The dataset was then partitioned into training, validation, and test sets to ensure robust evaluation.
The performance of the TCN model for li ion battery SOC estimation was quantified using three standard regression metrics: Mean Absolute Error (MAE), Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). Their formulas are as follows, where m is the number of samples, SOCref is the reference SOC, and SOCpre is the predicted SOC:
$$E_{\text{MAE}} = \frac{1}{m} \sum_{i=1}^{m} | \text{SOC}_{\text{ref}}(i) – \text{SOC}_{\text{pre}}(i) | \times 100\%$$
$$E_{\text{MSE}} = \frac{1}{m} \sum_{i=1}^{m} (\text{SOC}_{\text{ref}}(i) – \text{SOC}_{\text{pre}}(i))^2 \times 100\%$$
$$E_{\text{RMSE}} = \sqrt{ \frac{1}{m} \sum_{i=1}^{m} (\text{SOC}_{\text{ref}}(i) – \text{SOC}_{\text{pre}}(i))^2 } \times 100\%$$
The primary results demonstrating the impact of temperature on the estimation accuracy of the TCN model for the li ion battery are presented in the table below. The values are averages over multiple test cycles at each temperature.
| Temperature (°C) | MAE (%) | MSE (%) | RMSE (%) |
|---|---|---|---|
| 5 | 0.39 | 0.25 | 0.50 |
| 10 | 0.32 | 0.16 | 0.40 |
| 15 | 0.48 | 0.36 | 0.60 |
| 20 | 0.22 | 0.08 | 0.27 |
| 25 | 0.16 | 0.04 | 0.20 |
The table reveals a clear trend: the estimation accuracy for the li ion battery SOC improves as the operating temperature increases, particularly in the room temperature range of 20°C and 25°C. At 25°C, the MAE reaches a remarkably low value of 0.16%. This can be attributed to more favorable electrochemical kinetics at higher temperatures, leading to less voltage polarization and more stable internal resistance, which in turn generates cleaner voltage and current signatures for the model to learn from. The performance dip at 15°C is noteworthy and aligns with known characteristics of li ion batteries where certain temperature ranges can cause increased electrolyte viscosity and slower ion diffusion, introducing nonlinearities that are more challenging to model. The TCN’s ability to maintain relatively low error even at 5°C (MAE of 0.39%) underscores its robustness.
To place these results in context, a comparative analysis was performed against three other prominent neural network models commonly used for time-series prediction: a standard Recurrent Neural Network (RNN), a Long Short-Term Memory network (LSTM), and a Backpropagation Neural Network (BPNN). All models were trained and tested on the same dataset from the li ion battery experiments under identical conditions. The aggregated performance metrics across all temperature tests are summarized in the following table.
| Model | MAE (%) | MSE (%) | RMSE (%) |
|---|---|---|---|
| RNN | 1.11 | 1.77 | 1.31 |
| LSTM | 0.76 | 1.15 | 1.06 |
| BPNN | 1.62 | 9.05 | 2.98 |
| Proposed TCN | 0.53 | 0.41 | 0.64 |
The superiority of the TCN model for li ion battery SOC estimation is evident. It significantly outperforms all benchmark models across all error metrics. The BPNN, being a feedforward network with no inherent temporal memory, performs the worst, as it fails to capture the sequential dependencies crucial for a li ion battery’s state evolution. The RNN shows better performance than BPNN but is hampered by its difficulty in learning long-term dependencies due to gradient vanishing. The LSTM, designed to mitigate this issue, shows considerable improvement but still falls short of the TCN. The TCN’s architectural advantages—specifically, its dilated convolutions that provide a large, stable receptive field and its fully convolutional nature that allows parallel processing of the entire input sequence—enable it to learn more precise and stable mappings from the operational data of a li ion battery to its SOC.
Further insight can be gained by analyzing the mathematical behavior of the models during prediction. The TCN’s operation can be viewed as applying a series of nonlinear transformations to the input sequence. The final layer performs a linear combination of high-level features extracted by the convolutional layers. The learning objective is to minimize the prediction error e(k) = SOCref(k) – SOCpre(k). The backpropagation through time for RNNs involves repeated multiplication of gradient matrices, which can lead to exploding or vanishing gradients, described by:
$$\frac{\partial \mathcal{L}}{\partial \theta} = \sum_{k=1}^{T} \frac{\partial \mathcal{L}_k}{\partial \theta} \quad \text{with potential growth/decay of } \prod_{j=k}^{T-1} \frac{\partial h_{j+1}}{\partial h_j}$$
where h represents the hidden state. In contrast, the backpropagation in a TCN is as stable as in a standard CNN, with gradients flowing through skip connections and avoiding the multiplicative chain across many time steps. This stability is a key factor in its reliable performance for estimating the SOC of a li ion battery.
The sensitivity of the li ion battery’s electrical parameters to temperature is a critical aspect. The discharge capacity, for instance, varies significantly. A simplified empirical model for capacity as a function of temperature T (in °C) can be expressed as:
$$C_{\text{discharge}}(T) \approx C_{25} \cdot [1 + \beta (T – 25)]$$
where C25 is the capacity at 25°C and β is a temperature coefficient. This variation directly impacts the SOC calculation. The TCN model inherently learns these correlations from the input temperature data, allowing it to adapt its estimates accordingly without an explicit physical model. This is a significant advantage for practical BMS (Battery Management System) applications where the li ion battery operates in fluctuating thermal environments.
In addition to the core estimation results, an ablation study was conducted to understand the contribution of different input features to the TCN model’s performance for the li ion battery SOC task. The results, averaged over all temperatures, are shown below:
| Input Features | MAE (%) | Remarks |
|---|---|---|
| Voltage (U) only | 1.85 | Poor performance due to lack of current integration info. |
| Current (I) only | 2.10 | Similar to coulomb counting, drifts without voltage reference. |
| U & I | 0.68 | Good baseline, but sensitive to temperature variations. |
| U, I & Temperature (T) | 0.53 | Best performance, TCN effectively uses T for compensation. |
This clearly demonstrates the importance of including temperature as an input feature for accurate SOC estimation in a li ion battery, and the TCN’s capability to synthesize information from all three channels.
The proposed TCN-based framework is not just accurate but also computationally efficient for potential real-time deployment in BMS hardware. The inference time for a single SOC estimation step is minimal due to the convolutional operations, which can be highly optimized. For a sequence length of L and a network with N layers, the complexity of a forward pass in a TCN is approximately O(N · L · k), where k is the kernel size. In contrast, a sequential RNN/LSTM has a complexity of O(N · L) per step but cannot be fully parallelized across time steps. This makes the TCN a promising candidate for high-frequency SOC estimation in dynamic applications involving li ion batteries, such as electric vehicles.
Looking beyond static temperature conditions, the generalizability of the model was tested on a dynamic drive cycle profile derived from urban driving data, where the discharge current varied rapidly. The li ion battery was tested at an ambient temperature of 20°C. The TCN model, trained on the constant current discharge data, was able to estimate SOC with an MAE of 0.31% on this unseen dynamic profile, demonstrating good transfer learning ability. This suggests that the features learned by the TCN are robust to variations in load patterns, a crucial requirement for real-world li ion battery management.
In conclusion, this work establishes Temporal Convolutional Networks as a highly effective and robust deep learning architecture for the State of Charge estimation of li ion batteries. The method directly processes raw, measurable time-series data—voltage, current, and temperature—without requiring intricate electrochemical model parameters. Through comprehensive experimentation across a temperature spectrum from 5°C to 25°C, the TCN model demonstrated superior accuracy and stability compared to RNN, LSTM, and BPNN benchmarks. Its architectural strengths, including dilated causal convolutions for long-range dependency modeling and residual connections for training stability, make it particularly well-suited for capturing the complex temporal dynamics of a li ion battery. The integration of temperature as an explicit input feature allows the model to naturally compensate for thermal effects, leading to excellent performance in the room temperature range and respectable accuracy even at lower temperatures. Future research directions include adapting the TCN framework for joint estimation of SOC and State of Health (SOH) for li ion batteries, investigating online learning mechanisms to adapt to battery aging, and exploring model compression techniques for deployment on resource-constrained BMS hardware. The continuous evolution of li ion battery technology demands equally advanced estimation algorithms, and TCN-based approaches offer a powerful, data-driven pathway forward.
The mathematical foundation, experimental validation, and comparative analysis presented herein collectively affirm the potential of Temporal Convolutional Networks to enhance the accuracy and reliability of battery management systems, ultimately contributing to the safer and more efficient utilization of li ion batteries across a myriad of applications. The li ion battery remains a pivotal component in the energy transition, and advancements in intelligent state estimation techniques like the one described are essential for unlocking its full potential.
