1. Introduction
With environmental pollution and the consumption of fossil fuels, the development of green and sustainable energy has become a global priority [
1]. Due to their high energy density, long cycle life, and environmental friendliness, lithium-ion batteries have seen unprecedented opportunities for development in both research and application, and are widely used in energy storage systems and electric vehicles (EVs) [
2]. In electric vehicles, the Battery Management System (BMS) serves as a key component responsible for maintaining battery safety and operational reliability. By continuously supervising and regulating battery conditions, including the State of Charge (SOC), State of Energy (SOE), and State of Health (SOH) [
3], the BMS contributes to improved battery utilization and prolonged service life. SOC not only serves as a prediction target but also reflects the electrochemical state of the battery. It quantifies the charge stored in the electrodes and correlates with open-circuit voltage (OCV) under equilibrium conditions, providing a physically interpretable measure of battery energy content. Furthermore, SOC dynamics are influenced by internal polarization effects and temperature-dependent lithium-ion transport, which affect the voltage response and charge–discharge efficiency. Voltage, current, and temperature measurements therefore capture the combined effects of SOC, polarization, and thermal dynamics, forming the basis for both physical interpretation and data-driven SOC estimation models.
However, in practical applications, SOC is easily affected by battery nonlinearity, making it impossible to measure directly [
4,
5,
6]; it must therefore be estimated using measurable parameters such as voltage, current, and temperature. Furthermore, battery performance is significantly affected by temperature fluctuations and variations in charging and discharging times [
7,
8]. In winter in certain high-latitude regions, where temperatures can drop as low as −20 °C, batteries may exhibit reduced capacity, resulting in overestimated SOC values. Conversely, during summer in regions near the equator, where maximum temperatures can reach 40 °C, battery capacity may experience intermittent increases, resulting in underestimated SOC values. This poses significant challenges to the accurate estimation of SOC.
Direct SOC estimation is commonly performed using ampere-hour counting and energy integration approaches [
9]. Nevertheless, the accuracy of these methods strongly depends on the precision of the initial SOC value and sensor measurements. Any deviation in these inputs may accumulate over time, resulting in progressively larger estimation errors. Another widely adopted technique is the open-circuit voltage (OCV) method [
10], which determines SOC according to the relationship between SOC and battery terminal voltage under equilibrium conditions. However, the requirement for a prolonged rest period before voltage measurement limits its applicability in real-time battery monitoring and control systems [
11].
To overcome the shortcomings of direct estimation methods, researchers have developed model-based approaches that describe battery behavior through mathematical or equivalent circuit models. For instance, Oluwole et al. [
12] proposed a fractional-order extended Kalman filter (IFO-EKF) derived from the conventional integer-order extended Kalman filter (IO-EKF), enabling dynamic SOC estimation under different operating conditions. Despite its improved estimation capability, the relatively slow response speed restricts its practical implementation. In addition, the Volterra integral dynamic model employs adaptive mechanisms to address battery load-balancing problems. Through load analysis experiments, Sidorov et al. [
13] demonstrated the effectiveness of the Volterra-based framework for battery modeling and state estimation.
Unlike model-based approaches, data-driven methods estimate SOC directly from measurable operating data without requiring detailed knowledge of battery electrochemical characteristics or the establishment of complicated equivalent-circuit models [
14,
15,
16]. By learning the relationship between historical operating information and battery states, these methods have become an important research direction in SOC estimation. Existing data-driven approaches can generally be divided into machine learning and deep learning categories. Representative machine learning algorithms include Gaussian Process Regression (GPR) [
17], Support Vector Machines (SVM) [
18], and Random Forests (RF) [
19]. However, conventional machine learning techniques often exhibit limited capability when dealing with highly nonlinear battery behaviors, large-scale datasets, and long-term temporal dependencies, which restricts their estimation performance in practical applications.
To address these limitations, deep learning methods have been increasingly adopted for battery state estimation. Among them, Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks are widely used as fundamental architectures, with numerous studies introducing hybrid structures to further enhance prediction accuracy. For example, Fan et al. [
20] integrated LSTM with Adaptive Unscented Kalman Filtering (AUKF), while Jiao et al. [
21] developed a momentum-gradient-based GRU-RNN framework. Hu et al. [
22] combined Temporal Convolutional Networks (TCN) and LSTM to exploit both local and sequential information. Experimental results demonstrated that these hybrid strategies generally outperform individual network models. Nevertheless, recurrent neural networks mainly emphasize short-term temporal patterns and often struggle to effectively model long-range dependencies in battery degradation sequences. To overcome this issue, attention mechanisms have been introduced into SOC estimation tasks. Tian et al. [
23] incorporated an attention mechanism into an LSTM framework to better capture the interaction between voltage and current sequences, demonstrating the effectiveness of attention-assisted architectures. Similarly, Zou et al. [
24] proposed a CNN-Informer hybrid model that utilizes attention mechanisms to extract spatial-temporal features from battery data and employs a Laplace-distribution-based loss function to improve robustness against measurement noise and outliers while enabling uncertainty quantification. Furthermore, Bian et al. [
25] adopted an encoder–decoder framework for SOC prediction within the temperature range of 0–20 °C and achieved an MAE below 2.6%; however, further improvements in estimation accuracy remain desirable.
Despite the extensive research that has been conducted on the State of Charge (SOC) of lithium-ion batteries, maintaining a satisfactory balance between temperature adaptability and estimation accuracy remains challenging for existing methods, which may limit their effectiveness in practical forecasting applications [
26,
27]. In order to address this issue, the present study proposes a Window Attention Sinks Transformer (WASFormer) model. The integration of Rotary Positional Encoding (RoPE) with the Window Attention Sinks (WAS) mechanism within the PatchTST [
28] architecture results in the construction of a forecasting framework that combines both local feature perception and global degradation modeling capabilities. Finally, the model’s estimation accuracy under different temperatures and operating conditions was validated using fit metrics and accuracy performance indicators, and it was compared with other advanced timeseries forecasting models. The findings demonstrate that WASFormer consistently exhibits superior estimation accuracy and can adapt to different temperature ranges across various operating conditions, exhibiting strong generalization capabilities. Moreover, experimental studies undertaken on the model corroborated the indispensability of each essential element and their collaborative effects.
3. Experiments and Analysis
3.1. Dataset and Correlation Analysist
The lithium-ion battery dataset used in this study originates from experiments conducted at the University of Wisconsin–Madison, using a brand-new 2.9 Ah NCA Panasonic 18650PF cell (Panasonic Corporation, Osaka, Japan), whose specifications are listed in
Table 1. The cell was charged at a 1C current until the voltage reached 4.2 V, followed by a constant-current–constant-voltage charge until the current tapered to 50 mA; this CC–CV protocol was repeated in every cycle. During testing, the battery underwent ten large charge–discharge loops. The dataset records cycling data under five driving schedules—HWFET, UDDS, LA92, US06, and NN—at ambient temperatures of −20 °C, −10 °C, 0 °C, 10 °C and 25 °C.
These operating conditions were selected to represent realistic battery usage scenarios in electric vehicles. Specifically, UDDS represents urban low-speed driving with frequent stop-and-go behavior, resulting in highly fluctuating current profiles. LA92 corresponds to a mixed urban/suburban driving condition with more aggressive acceleration and a wider current dynamic range. HWFET simulates highway cruising conditions characterized by relatively smooth current variations. US06 represents an aggressive high-speed driving cycle that includes rapid acceleration and deceleration events, leading to severe current transients. The NN cycle is a composite dynamic profile constructed from segments of US06 and LA92 with additional dynamic perturbations, incorporating characteristics of both urban and highway driving.
All voltage, current, temperature, and SOE signals were synchronously sampled at a fixed interval of 0.1 s, resulting in a total of 382,952 time steps. A sliding-window strategy with a window length of 12 and a stride of 1 was employed to construct the dataset. Each sample consists of 12 consecutive time steps of voltage, current, temperature, and SOE measurements, while the SOC value at the current time step serves as the prediction target. This procedure generated approximately 382,940 sample sequences.
The NN driving cycle data collected under five temperature conditions were used for training, whereas the HWFET, UDDS, LA92, and US06 datasets were used for testing. Each sample contains four input channels, namely voltage, current, temperature, and SOE. With a sampling interval of 0.1 s, the input window corresponds to 1.2 s of historical observations, which is sufficient to capture short-term battery dynamics under varying operating conditions while maintaining computational efficiency.
The SOC labels provided in the dataset were calculated using the ampere-hour integration (coulomb counting) method. The voltage, current, temperature, and state of energy (SOE) data from the lithium-ion battery are used as model inputs to accurately estimate the SOC. It should be noted that the State of Energy (SOE) used as an input feature is computed from the measured voltage, current, and temperature sequences according to standard BMS energy integration procedures. While SOC and SOE are related, SOE reflects cumulative energy dynamics over time rather than instantaneous charge, providing complementary temporal information. By treating SOE as an independent input channel, the model leverages additional energy-related features without introducing direct redundancy with SOC. To ensure consistency and training stability, the training data is normalized to the range of 0–1. Taking the UDDS as an example, its voltage, current, and temperature distributions are shown in
Figure 6. All voltage, current, and temperature data are sampled every 0.1 s.
The formulas defining and SOE are as follows:
where
represents the current moment,
represents the initial discharge time,
is the load current at the current moment,
is the terminal voltage of the battery,
represents the rated total energy of the battery. SOE is more concerned with the energy that the battery can provide under the current operating conditions, providing a decision basis for energy optimization and power scheduling.
Figure 7 shows the results of the Spearman rank correlation analysis between the various input features. It can be seen that SOC and voltage as well as SOE and voltage exhibit strong positive correlations, while the correlations between current and temperature and the other features are relatively weak. This indicates that each feature describes the battery state from a different dimension. The relatively weak correlations of current and temperature with SOC can be attributed to the fact that these variables primarily act as external operating factors that influence battery dynamics rather than directly determining the SOC value itself. Their effects on SOC are often indirect and nonlinear, resulting in relatively low pairwise correlation coefficients.
Although SOC and SOE show a strong positive correlation overall, the scatter plot does not converge into a single straight line but instead exhibits a distinct multi-band distribution. This indicates that SOE takes on different values at the same SOC level, reflecting the impact of operational conditions such as temperature and internal resistance on the actual available energy. This high correlation stems from their shared monotonically decreasing trend rather than redundant information; SOE still provides irreplaceable complementary information for SOC estimation. Furthermore, the relatively weak correlations of current and temperature demonstrate that feature importance cannot be evaluated solely based on correlation coefficients, highlighting the necessity of deep learning models for extracting complex nonlinear relationships among battery variables.
3.2. Experimental Setup
This study evaluates the overall performance of the proposed WASFormer model through three aspects: model comparison experiments, generalization tests, and ablation study. To quantitatively assess prediction performance from different perspectives, four commonly adopted regression metrics are employed. In all experiments, the data values are presented as percentages. The formulas for these evaluation metrics are as follows:
Here, is the number of cycles from the start of prediction to termination; denotes the true capacity value, the predicted capacity, and the mean of the true values. Smaller MAE, RMSE, and MAPE indicate higher predictive accuracy, while an R2 closer to 1 signifies better predictions.
To minimize loss, we adopt the AdamW optimizer and introduce the weight-decay coefficient as a hyperparameter to promote better convergence and generalization. To further accelerate convergence and boost training efficiency, we employ the OneCycleLR learning-rate scheduler, which divides the full training horizon into a warm-up phase and a decay phase. During warm-up, the learning rate increases linearly from the initial value
to the maximum value
; the fraction of total steps spent in this phase is controlled by parameter
(default 30%). During decay, the learning rate follows a cosine schedule down to the final value
, computed as
divided by factor
(default 10,000). The learning rate scheduling formula can be expressed as:
Here, denotes the total number of training steps, obtained by multiplying the number of epochs with the steps per epoch (defaulting to the length of the training set); is the current step. It is worth noting that and represent the initial learning rate and the upper limit of the learning rate in the hyperparameters, respectively. The results in this paper are based on the average of 10 experiments conducted with different random seeds. This is a widely used and rigorous experimental method in the field of time series forecasting, which helps mitigate experimental randomness and variability.
During model training, the proper configuration of hyperparameters is crucial to model performance. Adaptive optimization algorithms can often identify the optimal combination of network hyperparameters, thereby making the network architecture more rational and efficient. These algorithms also prevent the model from getting stuck in local optima due to manual parameter tuning. In this study, we used the probability-based Tree-structured Parzen Estimator (TPE) [
36] method to perform hyperparameter optimization on all models included in the experiments. The search spaces for each hyperparameter are shown in
Table 2. In all experiments, Train Parameters were optimized, while the model proposed in this study additionally optimized the WASFormer model hyperparameters listed under Model Parameters. Furthermore, the number of trials was fixed at 500, the batch size was set to 32, and the number of epochs was set to 500. To accelerate the training process, an early stopping mechanism was implemented.
3.3. Experimental Analysis
3.3.1. Comparative Experiment
To investigate the performance of hybrid deep learning models for SOC estimation under varying temperature conditions, this study compares the proposed WASFormer model with several state-of-the-art time series forecasting models, including iTransformer [
37], Informer [
38], GRU [
39], NLinear, and DLinear [
40]. To further evaluate the practical relevance of the proposed method, a conventional SOC estimation approach based on the Extended Kalman Filter (EKF) is introduced as a benchmark. The EKF method is widely used in battery SOC estimation and represents a typical physics-based estimation framework.
Specifically, all models are evaluated at five temperature conditions (−20 °C, −10 °C, 0 °C, 10 °C, and 25 °C) to assess their ability to estimate SOC under diverse environmental conditions.
Table 3 presents a comparison of error metrics for all models under these temperature conditions in the US06 driving cycle.
Figure 8 illustrates the SOC estimation performance of the proposed model and representative baseline models at −20 °C.
Figure 8 and
Table 3 provide a detailed analysis, leading to the following conclusion: Under the US06 driving conditions, WASFormer consistently demonstrates the highest SOC estimation accuracy and the smallest error fluctuations across the entire temperature range, from low to high temperatures. In contrast, while iTransformer employs a method of applying attention mechanisms and feedforward networks to the inverted dimension to better capture the correlation of the same variable across different timestamps, it performs poorly in SOC estimation tasks involving long time series, with the bias in later estimates being particularly pronounced. Although Informer’s ProbSparse attention reduces computational complexity, it tends to lose critical information in short-sequence scenarios, limiting its ability to capture sudden changes. This results in pronounced local error fluctuations during the estimation process. In contrast, while the GRU exhibits smaller local errors and a very stable estimation process, the model struggles to accurately track the overall trend of SOC degradation. Consequently, the estimation curve exhibits lag and offset, which affects the overall estimation accuracy.
Notably, while linear derivative models such as NLiner and DLiner feature simple structures and fast training speeds, they lack nonlinear expressive power and have weak resistance to noise. Although they generally outperform the previous categories of models in terms of estimation accuracy—particularly NLiner, whose MAE remains within 0.6% across all five temperature ranges—they still lag significantly behind the model proposed in this study. Looking at the average RMSE from the five temperature estimation tests, compared to iTransformer (2.604%), Informer (4.126%), GRU (1.967%), NLiner (0.539%), and DLiner (1.372%), WASFormer (0.099%) exhibits a significantly lower error. The fitting results demonstrate that it can accurately track the SOC variation curve of lithium-ion batteries and adapt to different temperature conditions. It can be observed that the EKF method shows increased estimation errors under low-temperature conditions and exhibits sensitivity to operating variations. In contrast, the proposed WASFormer model maintains consistently high accuracy and stability across all temperature conditions, demonstrating improved robustness under dynamic scenarios.
In addition, a comparative analysis of computational cost and model complexity is conducted under the −20 °C US06 condition, as shown in
Table 4. To provide a more comprehensive evaluation, multiple metrics are considered, including the number of floating-point operations (FLOPs), model parameter size, memory usage, training time, and inference time. Among these, FLOPs represent the number of floating-point operations required to process a single sample and serve as a theoretical measure of computational complexity.
The results indicate that lightweight models such as DLinear, NLinear, and GRU achieve high computational efficiency due to their simple architectures and small parameter sizes. In contrast, Transformer-based models generally involve higher computational cost because of the attention mechanisms used to capture long-term dependencies.
The proposed WASFormer model requires a longer training time (1672.63 s), which is attributed to its more detailed feature extraction process. However, its model size (266,761 parameters) and memory usage (1.02 MB) are effectively controlled, remaining lower than those of Informer and comparable to iTransformer.
In terms of inference efficiency, the WASFormer model achieves a total inference time of 3.12 s for the complete test dataset, which is comparable to other Transformer-based models. Considering the large number of testing samples, the average inference time per sample is substantially smaller than the reported aggregate value, indicating that the proposed model can satisfy the real-time requirements of battery management systems while maintaining competitive estimation performance. Overall, the results demonstrate that the proposed method achieves a balance between model accuracy and computational cost.
3.3.2. SOC Estimation of the WASFormer Model Under Various Operating Conditions
To further evaluate the generalization capability of the WASFormer model, this study conducted tests across four operating condition datasets at temperatures of −20 °C, −10 °C, 0 °C, 10 °C, and 25 °C. The performance metrics of the SOC estimation results are presented in
Table 5. Taking the −20 °C test results as an example, the goodness-of-fit between the estimated SOC values and the actual values, along with the local error curves, are illustrated in
Figure 9.
Analysis of
Table 5 and
Figure 9 clearly shows that under different operating conditions and temperature levels, the SOC estimation error of the WASFormer model generally increases with rising temperature. Overall, regardless of operating condition, the model exhibits relatively high estimation accuracy in low-temperature environments. As temperature rises, corresponding error metrics generally increase. Nevertheless, the model’s R
2 values remain near 100% across all operating conditions, demonstrating excellent data fitting capability. Specifically, under the HWFET operating condition at −20 °C, the model achieves its lowest SOC estimation error: MAE is only 0.025%, RMSE is 0.027%, MAPE is 0.036%, and R
2 reaches an exceptionally high 99.99978%. Even under the US06 operating condition at 25 °C, which exhibits the highest estimation error, the model maintains satisfactory accuracy with MAE of 0.188%, RMSE of 0.190%, MAPE of 0.533%, and R
2 of 99.9502%. In summary, the WASFormer model demonstrates outstanding SOC estimation accuracy and generalization capability across diverse operating conditions and temperatures. The relatively small magnitude of the reported errors is largely due to the characteristics of the dataset: a high sampling frequency of 0.1 s and a large number of samples (over 380,000) provide dense and informative sequences for model training. As a result, prediction errors naturally fall within a small numerical range. Therefore, the main focus of the comparative experiments is to evaluate the relative performance of WASFormer against baseline models, rather than the absolute error magnitude. This emphasizes the effectiveness and generalization capability of the proposed model under diverse operating conditions.
3.3.3. Robustness Analysis
To further evaluate the robustness of the proposed model, an additional noise perturbation experiment is conducted. Specifically, zero-mean Gaussian noise with different standard deviations (σ = 0.01 and σ = 0.1) is injected into the input feature sequences under multiple driving cycles and temperature conditions.
This experiment aims to simulate measurement uncertainties and assess the stability of the model under degraded data quality. The results are summarized in
Table 6.
The results in
Table 6 show that the RMSE values increase as the noise level rises from σ = 0 to σ = 0.1 across all driving cycles and temperature conditions. This trend is expected, as higher noise levels introduce greater uncertainty in the input features. Under moderate noise (σ = 0.01), the model maintains relatively low error levels, indicating stable performance under realistic measurement perturbations. When the noise level increases to σ = 0.1, the error growth remains gradual rather than abrupt, suggesting that the model does not exhibit instability under noisy conditions. In addition, the model demonstrates consistent behavior across different driving cycles, including HWFET, UDDS, LA92, and US06, as well as across a wide temperature range. This indicates that the model retains its generalization capability under varying operating conditions.
Overall, these results support the robustness of the proposed method against input noise and confirm its stability under different environmental and operational scenarios.
3.3.4. Ablation Study
In this section, an ablation study is conducted on WASFormer to investigate not only the contribution of each component to the overall prediction accuracy, but also its role in addressing key challenges in SOC estimation under complex operating conditions. Specifically, RoPE is intended to enhance temporal positional modeling, the WAS mechanism improves the capture of both local and long-range temporal dependencies, Attention Sinks strengthen the preservation of global contextual information, and Huber Loss increases robustness to outliers and measurement noise. By selectively removing these components, the ablation study helps reveal their individual contributions to SOC estimation performance and provides insight into the design rationale of the proposed framework.
Specifically, we conducted ablation tests on four components—Huber Loss, RoPE, the WAS mechanism, and its Attention Sinks—under the −20 °C condition across various scenarios. The strategies defined are: w/o A (Huber Loss) replaces the loss function with MSE Loss; w/o B (RoPE) uses the WASFormer model with traditional absolute position encoding only; w/o C (WAS) refers to removing the WAS mechanism and replacing it with a multi-head attention mechanism; w/o D (AS) denotes the WAS mechanism with Attention Sinks removed, while other components remain unchanged; Ours (WASFormer) represents the strategy proposed in this study.
Table 7 details the SOC estimation results after ablation of each component.
Ablation study results show that each component of the WASFormer model plays a significant positive role in overall prediction performance. As shown in
Table 7, removing the RoPE component generally leads to a decrease in performance; only under the UDDS operating conditions does performance see a slight increase. Under all other operating conditions, removing any single component results in a significant increase in prediction error.
Specifically, replacing the Huber loss with the MSE loss generally resulted in a slight decline in the model’s estimation accuracy. The MAE, RMSE, and MAPE increased by approximately 75%, 67%, and 79%, respectively. Meanwhile, removing RoPE significantly reduced the model’s ability to perceive temporal positions. The average increase in RMSE was 119%, reaching 0.164% under the HWFET operating conditions with the highest error. This indicates that the relative position encoding provided by RoPE plays a crucial role in capturing both short-term and long-term temporal dependencies.
In contrast, the absence of Attention Sinks and the WAS mechanism leads to a more severe decline in prediction performance. Specifically, after removing Attention Sinks, the model’s ability to capture global trends is significantly weakened, with the average MAE and RMSE across the four operating conditions increasing by 316% and 301%, respectively. Notably, under the UDDS operating condition, the MAE and RMSE reached 0.192% and 0.193%, These findings indicate that Attention Sinks play a crucial role in absorbing noise and stabilizing the performance of the WAS mechanism; conversely, when the WAS mechanism is completely removed, the model’s inability to accurately capture both local details and global features results in the most severe decline in prediction accuracy. Overall, MAE increased by an average of 377%, and RMSE rose by approximately 355% on average. The large relative percentage increases are mainly due to the extremely low baseline errors of the full WASFormer model. Because the baseline is near zero, even small absolute changes result in large relative percentages. The increase in prediction error was particularly significant under the UDDS condition, fully demonstrating that the WAS mechanism’s strategy of combining local window attention with Attention Sinks can effectively capture multiscale information ranging from local abrupt changes to global degradation trends, thereby significantly improving the model’s prediction accuracy.
4. Conclusions
In this study, we proposed a SOC estimation strategy for lithium-ion batteries based on the Window Attention Sinks Transformer (WASFormer) model to address the challenges of accurate SOC estimation under multiple operating conditions and a wide temperature range. The model integrates Rotary Positional Encoding (RoPE) and the Window Attention Sinks (WAS) mechanism within the PatchTST architecture, allowing it to capture both local feature variations and global degradation trends. Additionally, Huber Loss and Reversible Instance Normalization (RevIN) were employed to improve robustness against noise and distribution shifts. Furthermore, the Tree-structured Parzen Estimator (TPE) algorithm was used to fine-tune the network hyperparameters, further optimizing the model’s performance.
The model was trained and evaluated using high-resolution (0.1 s) cycling data under multiple driving cycles and temperatures, including HWFET, UDDS, LA92, US06, and NN profiles at −20 °C, −10 °C, 0 °C, 10 °C, and 25 °C. Results demonstrate that WASFormer consistently achieves superior SOC estimation accuracy and strong generalization across diverse operating conditions.
The quantitative improvements over baseline models are clear: the WASFormer model achieves an average RMSE of 0.099%, compared with iTransformer (2.604%), Informer (4.126%), GRU (1.967%), NLiner (0.539%), and DLiner (1.372%). For the US06 scenario at 25 °C, the model shows MAE, RMSE, and MAPE of approximately 0.2%, 0.2%, and 0.6%, respectively, illustrating the estimation performance under the tested condition. The inclusion of the EKF benchmark further demonstrates that the proposed method achieves improved performance compared to conventional model-based approaches under the same operating conditions.
The ablation study highlights the importance of each model component, particularly the WAS mechanism and Attention Sinks, in capturing multi-scale temporal features and mitigating noise. Removing these components leads to noticeable increases in estimation errors, confirming their contribution to accurate SOC prediction.
The WASFormer model is designed to be efficient for real-time inference, as it requires only a forward pass once trained. Its attention-based mechanism allows it to focus on informative signals from voltage, current, temperature, and SOE sequences, providing robustness to measurement noise. In addition, the computational cost analysis demonstrates that the proposed model maintains a favorable balance between estimation accuracy and deployment requirements, with a memory consumption of 1.02 MB, 266,761 parameters, and an inference time of 3.12 s. These characteristics indicate that the model can be deployed for online SOC estimation within practical battery management systems (BMSs), supporting real-time operation in electric vehicles and energy storage systems. Although the present study was conducted using the Panasonic 18650PF dataset, the proposed framework is not inherently restricted to a specific battery type and can be adapted to other commercial batteries through retraining or fine-tuning using data collected from the target battery.
In summary, the WASFormer model provides an efficient and robust approach for SOC estimation in lithium-ion batteries across the examined conditions. Its performance and generalization under the tested datasets indicate potential applicability for battery health management in electric vehicles and energy storage systems. Nevertheless, the present study does not systematically investigate the minimum amount of training data required to achieve satisfactory estimation performance. Future work will focus on data-efficiency analysis and cross-battery transferability to further enhance the practical applicability of the proposed framework.