3.1. Data Introduction
This study used three publicly available lithium-ion battery cycling datasets for model training and evaluation: MATR [
52,
53,
54], HUST [
55,
56], and CALCE [
57,
58]. Together, these datasets cover LFP and LCO cathode systems and include different operating conditions. They therefore provide a heterogeneous benchmark for evaluating ResCNN under multiple degradation scenarios. Detailed descriptions of the three datasets follow.
The MATR dataset, derived from the MIT–Stanford–Toyota Research Institute fast-charging battery datasets and standardized in BatteryML, is widely used for lithium-ion battery state-of-health and RUL studies. It contains 180 LFP/graphite cells with a rated capacity of 1.1 Ah. The cells were aged under multiple cycling rates and temperature conditions, including constant-current/constant-voltage (CC–CV) charging protocols. Its broad lifetime distribution and diverse degradation curves make it suitable for training data-driven models.
The HUST dataset, provided by Huazhong University of Science and Technology, contains degradation measurements from 77 LFP/graphite cells with a rated capacity of 1.1 Ah. It covers different discharge rates, ambient temperatures, and cycling strategies. Compared with MATR, HUST contains longer lifetime scales and nonlinear degradation patterns under more varied operating conditions. These characteristics make it useful for testing model robustness across protocols.
The CALCE dataset originates from the Center for Advanced Life Cycle Engineering (CALCE) at the University of Maryland. It contains 13 LCO/graphite cells with a rated capacity of 1.1 Ah tested under standardized protocols. Although the dataset is small, its controlled experimental conditions make it a useful benchmark for assessing prediction behavior under a different cathode system. The discharge capacity of each dataset as a function of cycle number is shown in
Figure 6.
As shown in
Figure 6, the datasets differ in degradation trajectory morphology, lifetime scale, and sample consistency. MATR exhibits a dispersed lifetime distribution, phased degradation behavior, and pronounced cell-to-cell variation. Some samples show rapid degradation during the early or middle cycling stages. In contrast, HUST contains longer overall lifetimes and more concentrated capacity-decay curves.
Unlike the two LFP datasets, CALCE uses an LCO cathode system and shows a different degradation pattern. Its cells have shorter lifetimes, more monotonic nonlinear capacity decline, and smaller fluctuations among samples.
Table 1 summarizes the battery counts, chemistries, voltage ranges, and lifetime distributions of the datasets. Even within the LFP cathode system, different experimental conditions and acquisition protocols produce distinct degradation distributions. The additional chemistry difference between LFP and LCO further changes the statistical properties and temporal structure of capacity profiles. These differences motivate the evaluation of whether ResCNN can maintain stable performance across heterogeneous datasets.
3.2. Experiment Settings
The ResCNN implementation used 64 base channels, three residual convolutional blocks, a
convolution kernel, ReLU activation, a dropout rate of 0.15, an SE reduction ratio of 8, and the Adam optimizer for parameter updates. The model receives one 100 × 1000 voltage–capacity feature matrix as input and outputs one scalar RUL prediction. A complete layer-by-layer architecture is provided in
Appendix A to support reproducibility.
Before feature extraction, all raw battery cycling records were processed using the same deterministic screening procedure. For each dataset, records were first ordered by battery identifier and cycle index. Cycles lacking complete voltage, current, time, or discharge-capacity measurements were excluded. Records with non-physical values, including negative time increments, non-positive discharge capacity, or voltage values outside the dataset-specific nominal ranges in
Table 1, were also removed. Duplicate cycle indices and incomplete charge–discharge records were discarded so that each retained observation corresponded to one valid cycle.
During feature extraction, the VoltageCapacityMatrixFeatureExtractor was used to extract voltage–capacity curve features. A window-level prediction record denotes one RUL label paired with one feature matrix generated from an eligible observation window of a battery. Each record was converted into a 100 × 1000 two-dimensional feature matrix. The differential baseline cycle was set to the 9th cycle, and the maximum cycle index was set to 99, corresponding to the first 100 cycles. Precomputed Qdlin (discharge capacity) was used for feature extraction. To improve numerical stability and comparability, the feature matrix was normalized by Z-score scaling. Because RUL values showed a long-tailed distribution, labels were first logarithmically transformed and then Z-score normalized.
After raw-data screening, the remaining voltage–capacity trajectories were converted into a unified input representation. Voltage–capacity curves were aligned to a common voltage–capacity grid and interpolated to form fixed-size feature matrices. In the cross-dataset experiments, target-domain records were not used to estimate cleaning, normalization, or feature-scaling parameters. Deterministic integrity checks were applied before the battery-level split. Normalization statistics for model input scaling were fitted only on the corresponding training subset or source training domain to avoid information leakage.
All dataset splits were performed at the battery level to avoid information leakage. MATR was divided into training, validation, and test sets at an 8:1:1 ratio, yielding approximately 18 held-out test batteries. HUST was divided at a 7:1.5:1.5 ratio, yielding approximately 12 held-out test batteries after integer rounding. After the battery-level split, window-level prediction records were generated only within their assigned subset. No record derived from a validation or test battery was used for model training. Because CALCE contains only 13 batteries, leave-one-out cross-validation was used. Each iteration reserved one battery for testing and used the remaining batteries for training.
To assess source-to-target cross-dataset generalization, three zero-target-training transfer experiments were designed. In the first experiment, ResCNN was trained on the MATR source-domain training split and evaluated directly on all HUST batteries (MATR → HUST). In the second experiment, the direction was reversed, with training on HUST and direct evaluation on MATR (HUST → MATR). These tests assess transferability between two LFP/graphite datasets with different cycling protocols and degradation distributions. In the third experiment, ResCNN was trained on the two LFP datasets (MATR + HUST) and evaluated directly on the LCO/graphite CALCE dataset (LFP → CALCE). No CALCE cell was used for training or fine-tuning. For all cross-dataset tests, the feature extractor, label definition, normalization strategy, and evaluation metrics were kept consistent with the within-dataset experiments. Feature and label normalization parameters were fitted only on the source training domain and applied unchanged to the target domain. No target-domain battery was used for training, validation, hyperparameter selection, normalization-parameter fitting, or model selection.
For the comparative experiments, the same training strategy, preprocessing pipeline, and evaluation metrics were applied to all baseline models. The baselines included Baseline CNN(a standard convolutional neural network without residual connections or attention mechanisms), LSTM (Long Short-Term Memory network), SVR (Support Vector Regression), and Random Forest.
To analyze the contribution of each ResCNN component, ablation experiments were performed using the configurations shown in
Table 2.
3.3. Experimental Implementation Environment
All experiments were implemented in Python 3.10.13 with PyTorch 2.1.2. GPU acceleration was enabled through CUDA 11.8. Model training, validation, testing, ablation experiments, and baseline comparisons were conducted under the same software environment, preprocessing pipeline, dataset splitting strategy, and evaluation metrics.
The experiments were run on a workstation equipped with an Intel Core i9-12900K CPU operating at 3.20 GHz, 64 GB RAM, and an NVIDIA GeForce RTX 3090 GPU with 24 GB memory. This configuration was used for model training and for the non-embedded inference-time measurements reported in
Table 3. These hardware details support reproducibility and clarify that the reported runtime values reflect the experimental computing platform rather than deployment on embedded BMS hardware.
3.4. Evaluation Metrics
Three regression metrics were used to evaluate battery RUL prediction performance.
(1) Root mean square error (RMSE) measures the square-root average of squared prediction errors. Lower RMSE indicates better prediction performance. It is defined as:
(2) Mean absolute error (MAE) measures the average absolute prediction error. Lower MAE indicates better prediction performance. It is defined as:
(3) The coefficient of determination (R
2) measures the proportion of target variability explained by the model. Values closer to 1 indicate better fit. Negative values can occur when a model performs worse than predicting the target mean, especially under severe cross-dataset distribution shift. It is defined as:
Here, n denotes the number of evaluated window-level prediction records, is the true RUL value of the ith record, and is the predicted RUL value. For MATR and HUST, this record-level count differs from the number of independent test batteries because the split was conducted at the battery level before record generation. is the mean of the true RUL values.
Statistical significance was assessed using the same held-out prediction records used to calculate the regression metrics. For each dataset and model comparison, absolute prediction errors were paired by evaluation record. Two-sided Wilcoxon signed-rank tests were then used to test whether paired error distributions differed. This non-parametric paired test was selected because normality of the error distributions was not assumed. A statistically significant result was reported as an improvement only when ResCNN also had a lower median absolute error than the comparison model. In
Table 3, ResCNN was compared with CNN and with the best-performing non-ResCNN baseline on the same test records. When multiple comparisons were made within a table,
p values were adjusted using the Holm–Bonferroni procedure. Statistical annotations therefore indicate adjusted
p values, with * denoting
and ** denoting
.