
As a response to the global climate challenge, the development of new energy vehicles has become a strategic pillar in China’s “Fourteenth Five-Year Plan”. Traction batteries, as the core energy storage and supply units of these vehicles, directly determine driving safety, user experience, and the overall reliability of the vehicle. However, the safety of traction batteries remains a critical concern. Statistical data show that the fire rate of new energy vehicles between 2021 and 2023 was approximately two to three times higher than that of conventional fuel vehicles, and most fire incidents were closely related to traction battery failures. Thermal runaway triggered by overcharging, over-discharging, internal short circuits, mechanical abuse, thermal abuse, and management system faults can lead to catastrophic consequences. Therefore, developing a precise and early intelligent fault detection and diagnosis system for traction batteries is of utmost importance for safeguarding lives, reducing property loss, and accelerating the transition to a low-carbon transportation ecosystem.
This thesis aims to tackle the two major challenges in traction battery fault diagnosis: (i) poor data quality with extreme class imbalance, and (ii) insufficient accuracy and generalization ability of single prediction models. To address these challenges, I propose an integrated methodology that combines advanced data preprocessing, fault tree analysis, two distinct data augmentation strategies, and a Stacking heterogeneous ensemble learning model. Through comprehensive experiments on real-world vehicle operation data, the proposed framework demonstrates superior performance and offers a promising technical route for traction battery health management.
1. Fault Severity Classification Based on Fault Tree Analysis
The experimental data used in this study were collected from ten pure electric passenger vehicles over a period of nearly six months. The original dataset contains approximately 5.51 million records with a sampling frequency of 0.1 Hz. The raw data fields include time, vehicle state, charging status, vehicle speed, operating mode, national standard state of charge (SOC), voltage and temperature measurements, cumulative mileage, insulation resistance, and general alarm flags. A sample of the original data structure is presented in the table below.
| Field Name | Definition | Description |
|---|---|---|
| vid | Vehicle ID | Unique identifier for each vehicle |
| time | Data collection time | Year-month-day hour:minute:second |
| vehicle_state | Vehicle state | 1: start, 2: off, 3: others, 254: abnormal, 255: invalid |
| charging_status | Charging state | 1: parking charging, 2: driving charging, 3: no charging, 4: charging complete |
| speed | Vehicle speed | 0–220 km/h |
| soc | State of charge | 0–100 (%) |
| mileage | Odometer | 0–999999.9 km |
| insulation_res | Insulation resistance | 0–60000 KΩ |
| alarm_level | Maximum alarm level | 0–3, defined by the manufacturer |
| alarm_flag | General alarm flag | Binary-coded alarm bits (0–31) |
Preliminary data inspection revealed several issues: duplicate samples, missing values, infinite values, timestamp disorder, and irrelevant alarm information. To ensure the data quality and to faithfully model the vehicle’s physical operational states, I first performed the following pre-processing steps:
(1) Driving segment division. According to the physical characteristics of vehicle speed and charging state, I divided the continuous vehicle data into three types of segments: stationary parking, parking with charging, and driving with discharging. Specifically, charging state code “04” was merged into “01”, and vehicle state code “03” was merged into “02”. When both indicators remained unchanged but the time interval exceeded 3 minutes, a segment boundary was set. Segments shorter than 3 minutes (e.g., waiting at traffic lights) were discarded as they carry no statistical significance.
(2) Outlier removal. Duplicate records were directly removed. For columns with missing values, if the missing ratio was large, the column was deleted entirely; otherwise, the missing values were filled with the most recent valid observation. Infinite values were eliminated row-wise. All records were re-ordered chronologically to maintain temporal continuity.
After the initial cleaning process, the dataset contained about 1.34 million normal records, 69.2 thousand level-1 fault records, 42.8 thousand level-2 fault records, and 44.6 thousand level-3 fault records, yielding an overall fault proportion of approximately 10.47%.
The original alarm codes were found to be complicated and sometimes inconsistent with actual battery conditions. Some alarm bits never appeared in practice, while others were delayed, missed, or falsely triggered. I needed to reconstruct a meaningful fault classification system. To achieve this, I employed the Fault Tree Analysis method. Fault tree analysis is a top-down deductive reliability analysis technique that starts with an undesirable top event and breaks it down into intermediate events and basic events through logical gates such as AND and OR. This systematic approach enables the identification of all plausible root causes and the logical relationships between them.
The fault tree analysis pathway for a traction battery is shown in the following tree diagram. I defined the top event as “abnormal alarm of the traction battery system”. The intermediate events included electrical abuse, thermal abuse, mechanical abuse, and management failures. The basic events included overvoltage, undervoltage, SOC high, SOC low, SOC jump, insulation failure, cell inconsistency, temperature difference, and so on. Based on the fault tree structure, the raw alarm information was systematically classified into four severity levels, aligning with the Chinese national standard for electric vehicle remote service and management system telemetry data.
| Fault Severity Level | Definition | Operational Meaning |
|---|---|---|
| 0 | No fault | Normal operation |
| 1 | Slight fault | No impact on normal driving |
| 2 | Moderate fault | Limits vehicle performance; battery inspection recommended |
| 3 | Severe fault | Vehicle must stop and wait for maintenance |
After analyzing the binary alarm codes, I reconstructed a more meaningful fault alarm standard by removing irrelevant alarms (such as braking system and motor temperature alarms) and keeping only battery-related critical indicators. The revised fault alarm definitions are presented below.
| Bit Position | Alarm Description | Threshold | Assigned Level |
|---|---|---|---|
| 0 | Temperature difference alarm | >5°C | 1 |
| 1 | High temperature alarm | >53°C | 3 |
| 2 | Overvoltage of energy storage system | >rated upper limit | 3 |
| 3 | Low SOC alarm | <10% | 1 |
| 4 | Cell overvoltage alarm | >4500 mV | 3 |
| 5 | Cell undervoltage alarm | <3540 mV | 2 |
| 6 | SOC high alarm | >defined threshold | 2 |
| 7 | SOC jump alarm | >2%/min | 1 |
| 8 | Cell inconsistency alarm | >80 mV | 2 |
| 9 | Insulation alarm | <100 Ω/V | 3 |
| 10 | DC-DC temperature alarm | >85°C | 1 |
| 11 | DC-DC state alarm | DC-DC off while not turned off | 2 |
A fixed observation window was established to capture the trend of features before fault occurrence. Considering the computational cost and the need to avoid noise introduction from an excessively long window or information loss from a short window, I set the observation window to 25 minutes (i.e., 150 data points). To construct a balanced training set while maintaining the natural occurrence of normal samples, I applied stratified random sampling to select normal samples from different time periods across all vehicles, and merged them with the fault samples. The final dataset contained about 1.5 million records in total.
2. Feature Engineering
Feature engineering plays a crucial role in any data-driven diagnostic system. The safety of a traction battery heavily depends on the accurate monitoring of temperature, voltage, current, insulation resistance, and SOC. However, these variables do not evolve independently; their interactions, such as large current under high load causing temperature rise and subsequent voltage and SOC variations, contain rich diagnostic information. Therefore, I extracted features from multiple dimensions beyond the raw measurements.
(1) Cell consistency features. To quantify the inconsistency among individual cells in a traction battery, I calculated the coefficient of variation and the maximum deviation ratio for both temperature and voltage. The coefficient of variation \(C_v\) and the maximum deviation ratio \(D_v\) are given by
$$C_v = \frac{\sqrt{\frac{1}{n}\sum_{m=1}^{n}\left(K_t^m – \overline{K_t}\right)^2}}{\overline{K_t}} \times 100\%$$
$$D_v = \frac{K_t^{\max} – K_t^{\min}}{\overline{K_t}} \times 100\%$$
where \(K_t^m\) represents the temperature or voltage value of the m-th cell at time t, \(\overline{K_t}\) is the average value, and n is the number of cells. Increasing values of \(C_v\) and \(D_v\) indicate worsening consistency among cells, which is a precursor of battery failure.
(2) Driving behavior features. The operating patterns of the vehicle, such as start-stop cycles, vehicle speed, acceleration and deceleration intensity, and their standard deviations, reflect the load demand of the traction battery. Since driving habits directly shape the current and voltage profiles experienced by the battery, I computed statistical summaries of vehicle speed and acceleration as additional features.
(3) Temporal context features. To realistically emulate actual usage, I derived time-related attributes from the timestamp, including season, workday/non-workday, and four daily time periods (morning 00:00–05:59, forenoon 06:00–11:59, afternoon 12:00–17:59, evening 18:00–23:59). These features implicitly correlate with ambient temperature and driving patterns, providing extra insight into the traction battery’s thermal and electrical loads.
After the multidimensional feature extraction, I performed a two-stage feature selection procedure. First, the Pearson correlation coefficient \(\rho\) was computed for each pair of features to evaluate their linear relationship. For two variables X and Y, the sample Pearson coefficient is defined as
$$r_{XY} = \frac{\sum_{i=1}^{n}(X_i – \overline{X})(Y_i – \overline{Y})}{\sqrt{\sum_{i=1}^{n}(X_i – \overline{X})^2 \cdot \sum_{i=1}^{n}(Y_i – \overline{Y})^2}}$$
The values of \(r_{XY}\) lie between −1 and +1, where +1 indicates a perfect positive linear relationship, −1 indicates a perfect negative linear relationship, and values close to 0 indicate no linear relationship. Second, the mutual information \(MI(X;Y)\), which captures both linear and nonlinear dependencies, was computed as
$$MI(X;Y) = \sum_{x \in X}\sum_{y \in Y} p(x,y) \log\left(\frac{p(x,y)}{p(x)p(y)}\right)$$
where \(p(x,y)\) is the joint probability distribution, and \(p(x)\), \(p(y)\) are the marginal probability distributions. For continuous variables, I approximated the distributions using histograms and kernel density estimation. Based on the combined scores of Pearson correlation and mutual information, I selected the top 20 features. A heatmap correlation matrix was then built to inspect the inter-feature redundancy. After removing features with negligible discriminative power (correlation with fault level smaller than 0.04), I retained 13 key features as the final input set. These features are listed in the following table.
| Feature Dimension | Feature Name | Description |
|---|---|---|
| Battery state | total_volt | Total voltage of the traction battery |
| Battery state | max_temp_diff | Maximum temperature difference inside the battery pack |
| Battery state | max_temp | Maximum temperature |
| Battery state | mileage | Odometer reading |
| Battery state | total_current | Total current |
| Battery state | insulation_res | Insulation resistance |
| Consistency | cell_temp_CV | Coefficient of variation of cell temperature |
| Consistency | cell_volt_DV | Maximum deviation ratio of cell voltage |
| Consistency | cell_volt_CV | Coefficient of variation of cell voltage |
| Consistency | cell_volt_CV_std | Standard deviation of voltage coefficient of variation |
| Driving behavior | speed | Vehicle speed |
| Temporal context | day_section_0 | Early morning indicator (00:00–05:59) |
| Temporal context | day_section_1 | Forenoon indicator (06:00–11:59) |
These 13 features were selected because they effectively summarize the internal state, consistency behavior, external load, and environmental context of the traction battery. This compact yet informative feature set was used throughout all subsequent experiments, ensuring a fair and consistent comparison of the diagnostic models.
3. Fault Diagnosis with an Improved SMOTE Strategy
The initial cleaned dataset, despite a fault proportion of roughly 10.47%, still exhibited a moderate level of class imbalance. Although simple classification models might produce a high overall accuracy, they could fail to identify rare but critical fault events. To increase the model’s sensitivity to minority-class faults, I adopted an improved synthetic minority oversampling technique called Borderline-SMOTE, as depicted in the oversampling illustration. Borderline-SMOTE has a distinct advantage over the classic SMOTE algorithm because it selectively generates synthetic samples only for minority-class instances that are close to the class boundary, where the risk of misclassification is the highest.
The classic SMOTE method creates synthetic samples for any minority instance by interpolating between the selected instance and one of its k nearest neighbors. Given a minority sample \(x_i\), the new synthetic sample \(x_{new}\) is computed as
$$x_{new} = x_i + \alpha \cdot (x_{zi} – x_i)$$
where \(x_{zi}\) is a randomly chosen nearest neighbor from the minority class and \(\alpha\) is a random number in the interval \([0,1]\). Although this method avoids simple replication and enhances diversity, it blindly interpolates for all minority samples, which can generate noisy samples when outliers are present. It also fails to focus on borderline samples that are responsible for shaping the decision boundary.
Borderline-SMOTE overcomes these defects by first identifying “dangerous” minority samples. For each minority sample, I compute its k nearest neighbors in the whole training set, and count the number of majority-class neighbors \(k’\). The samples are then categorized as follows:
| Category | Condition | Action |
|---|---|---|
| Noise or isolated | \(k’ = k\) | Ignore; no samples generated |
| Boundary instances | \(k/2 \le k’ < k\) | Label as dangerous and generate synthetic samples |
| Safe instances | \(0 \le k’ < k/2\) | Ignore; not critical for classification boundary |
Among the two variants, I exploited the Borderline-SMOTE2 strategy. In this strategy, for each dangerous boundary sample, I find k nearest neighbors in both the minority class and the majority class. Synthetic samples are interpolated with the minority neighbors along the entire segment, while for majority neighbors only a very short interpolation is allowed (i.e., the random factor \(\lambda \in [0, 0.5]\)). This conservative strategy reinforces the boundary region without invading the majority area, thereby reducing the chance of generating misleading samples. The resulting augmented dataset showed that the distribution of each of the 13 features nearly perfectly overlapped with the original, as verified by probability density curves and cumulative distribution functions. This demonstrated that the generated data are statistically consistent with the real fault data.
After balancing the data, I constructed a Stacking heterogeneous ensemble diagnostic model. Stacking is a powerful ensemble learning technique that combines the outputs of multiple diverse base learners through a meta-learner. In the first layer, I selected three high-performing yet structurally different base learners: LightGBM, XGBoost, and Random Forest. LightGBM uses histogram-based optimization and leaf-wise tree growth, making it extremely efficient on large-scale data. XGBoost incorporates L1/L2 regularization and second-order derivative information, showing robust performance on noisy and complex datasets. Random Forest reduces variance by averaging many decision tree predictions and thus improves generalization. The complementary strengths of these learners enable the ensemble to capture diverse patterns in the data.
In the second layer, logistic regression was used as the meta-learner to integrate the probability outputs of the base learners. The whole Stacking framework was trained using a five-fold cross-validation strategy to avoid information leakage between the training and meta-training phases. The process is outlined as follows:
Step 1: Divide the training data into five folds. For each base learner, train on four folds and make predictions on the remaining fold. Repeat five times so that every sample in the training set receives an out-of-fold prediction.
Step 2: Use the out-of-fold predictions from all three base learners as the new features for the meta-learner. For the test data, base learners make predictions on each fold, and the average prediction is used to construct the meta-features.
Step 3: Train the logistic regression meta-learner on the meta-features and output the final classification results. This two-level architecture substantially reduces the bias and variance compared with any single model.
I evaluated the models using the macro-averaged metrics over the four classes (severity 0, 1, 2, 3). The metrics are defined as follows. Let TP, TN, FP, FN denote true positive, true negative, false positive, and false negative counts for a given class. The accuracy, recall, precision, and F1 score for that class are computed by:
$$A = \frac{TP + TN}{TP + TN + FP + FN}$$
$$R = \frac{TP}{TP + FN}$$
$$P = \frac{TP}{TP + FP}$$
$$F1 = \frac{2 \cdot P \cdot R}{P + R}$$
The macro-average precision and macro-average F1 are calculated as the arithmetic mean of the per-class metrics.
$$P_{ave} = \frac{1}{n}\sum_{i=1}^{n} P_i \;\;\; \text{and} \;\;\; F1_{ave} = \frac{1}{n}\sum_{i=1}^{n} F1_i$$
which gives an unbiased measure of performance under class imbalance. For hyperparameter tuning, I adopted Bayesian optimization with a five-fold cross-validation framework, which explores the hyperparameter space more efficiently than grid search while yielding stable and reproducible model configurations.
Table below compares the performance of the three single models and the Stacking ensemble trained on the Borderline-SMOTE augmented data.
| Model | A% | P-1% | P-2% | P-3% | P-ave% | F1-1% | F1-2% | F1-3% | F1-ave% | R-ave% | t/s |
|---|---|---|---|---|---|---|---|---|---|---|---|
| LightGBM | 94.41 | 96.61 | 91.79 | 93.15 | 94.09 | 93.82 | 93.00 | 94.42 | 94.20 | 94.38 | 14 |
| XGBoost | 94.50 | 95.79 | 95.58 | 97.13 | 95.06 | 95.11 | 94.53 | 94.54 | 94.55 | 94.10 | 11 |
| Random Forest | 91.94 | 91.30 | 96.13 | 97.18 | 93.21 | 92.89 | 94.23 | 90.15 | 92.05 | 91.22 | 48 |
| Stacking | 97.20 | 98.56 | 96.21 | 97.79 | 97.22 | 98.43 | 96.19 | 97.48 | 97.17 | 97.13 | 85 |
From the table, the Stacking ensemble achieved the best performance on every single metric. The accuracy of 97.20% was 2.70 percentage points higher than the best single model, XGBoost, whose accuracy was 94.50%. The macro-average precision improved from 95.06% to 97.22%, while the macro-average F1 increased from 94.55% to 97.17%. The confusion matrices further supported these findings. The Stacking model showed a noticeably higher recall for level-1 faults than all base learners: the recall of class 1 rose by 3.7% relative to LightGBM. The recall rates for class 2 and class 3 were 96.18% and 97.18% respectively, outperforming the weakest base model by 3.6 and 13.1 percentage points. These results clearly confirmed that the Stacking heterogeneous ensemble could exploit the complementarity of diverse algorithms and provide a more reliable diagnosis of traction battery faults.
I also performed a direct comparison between the classic SMOTE and the improved Borderline-SMOTE under the same Stacking architecture. The results are shown in the following table.
| Method | Accuracy (%) | Precision (%) | Recall (%) | F1 Score (%) | Training time (s) |
|---|---|---|---|---|---|
| SMOTE | 96.06 | 96.20 | 95.90 | 96.04 | 91 |
| Borderline-SMOTE | 97.20 | 97.22 | 97.13 | 97.17 | 85 |
The Borderline-SMOTE strategy improved the accuracy, precision, recall, and F1 score by more than 1% each compared with the classic SMOTE. The improvement is particularly beneficial for detecting level-2 and level-3 faults, where false negatives could lead to serious safety risks. The advanced sampling method not only improved the diagnostic accuracy but also reduced the training time because synthetic samples were generated more selectively.
4. Fault Diagnosis with the WGAN-GP Strategy
Although the improved Borderline-SMOTE strategy showed remarkable performance, it still shares the inherent limitations of interpolation-based oversampling: synthetic samples are linear combinations of existing samples, which may not fully represent the complex nonlinear distribution of the minority class. Additionally, interpolation-based methods are prone to overfitting when the dataset size is large or when the minority class has highly irregular boundaries.
To overcome these limitations and to further improve the data quality, I introduced an advanced generative model known as WGAN-GP, i.e., Wasserstein Generative Adversarial Network with Gradient Penalty. The original Generative Adversarial Network uses the Jensen–Shannon divergence to measure the discrepancy between the generated distribution \(P_g\) and the real distribution \(P_r\). The objective function of the original GAN is formulated as the following min-max game:
$$\min_{G}\max_{D} \ V(D,G) = \mathbb{E}_{x \sim P_{data}}[\log D(x)] + \mathbb{E}_{z \sim P_z}[\log(1 – D(G(z)))]$$
The optimal discriminator is given by:
$$D^*(x) = \frac{P_r(x)}{P_r(x) + P_g(x)}$$
where \(D^*(x)\) denotes the probability that sample \(x\) originates from the real distribution. However, when the real distribution and the generated distribution do not overlap, which is common in high-dimensional spaces, the JS divergence remains constant and gives almost zero gradient to the generator. This causes gradient vanishing and mode collapse, making the training extremely unstable.
WGAN introduced the Wasserstein distance (also called the earth-mover distance) as an alternative to the JS divergence. The Wasserstein distance between two distributions measures the minimum cost of transporting mass from one distribution to the other. This distance can provide a smooth gradient even when the supports of the two distributions are disjoint. The WGAN objective is
$$\min_{G}\max_{D \in \mathcal{L}} \ \mathbb{E}_{x \sim P_r}[D(x)] – \mathbb{E}_{z \sim P_z}[D(G(z))]$$
where \(D\) is constrained to be a 1-Lipschitz function, written as \(D \in \mathcal{L}\). In the original WGAN, the Lipschitz constraint is enforced by weight clipping. However, weight clipping suffers from severe side effects such as gradient explosion or vanishing depending on the clipping parameter, and it limits the model capacity of the critic.
WGAN-GP replaces weight clipping with a gradient penalty term. The gradient penalty directly punishes the discriminator whenever its gradient norm deviates from 1, thereby enforcing the Lipschitz constraint in a smoother and more stable manner. The WGAN-GP discriminator loss function is defined as:
$$\min_{G}\max_{D} \ \mathbb{E}_{x \sim P_r}[D(x)] – \mathbb{E}_{z \sim P_z}[D(G(z))] + \lambda \ \mathbb{E}_{\hat{x} \sim P_{\hat{x}}}\left[(\|\nabla_{\hat{x}} D(\hat{x})\|_2 – 1)^2\right]$$
where \(\lambda\) is the gradient penalty coefficient, and \(\hat{x}\) are random interpolation points sampled uniformly along straight lines between pairs of real and generated data points. More precisely,
$$\hat{x} = \epsilon x + (1 – \epsilon) G(z)$$
with \(\epsilon \sim U[0,1]\). The gradient penalty term makes the optimization landscape much smoother than weight clipping and contributes to a fully stable adversarial training process. In my experiments, the discriminator’s gradient norm remained very close to 1.002, satisfying the 1-Lipschitz condition. In addition, the Wasserstein distance showed a continuous downward trend when the generator was improving, clearly confirming healthy learning dynamics.
The following table compares the key features of the original GAN, WGAN, and WGAN-GP architectures:
| Characteristic | GAN | WGAN | WGAN-GP |
|---|---|---|---|
| Discriminator output | Probability in [0,1] with sigmoid | Real number score without sigmoid | Real number score without sigmoid |
| Loss function | JS divergence (log-loss) | Wasserstein distance | Wasserstein distance + gradient penalty |
| Lipschitz enforcement | None | Weight clipping | Gradient penalty |
| Training stability | Poor, prone to mode collapse | Good | Excellent |
| Convergence speed | Fast but unstable | Slow | Moderate and smooth |
Using the trained WGAN-GP generator, I synthesized traction battery fault data for each fault level. The generated samples were statistically validated against the real fault samples. The results showed that the probability density functions of all 13 selected features were highly consistent with those of the real samples, and the Wasserstein distance between the generated and real distributions was reduced dramatically. The visual inspection of the feature distributions confirmed that WGAN-GP generated samples were not simple interpolations but captured the full variability of the genuine fault patterns.
After augmenting the original training set with the WGAN-GP-generated samples, I performed the same set of modelling and evaluation experiments as in Chapter 3. The table below presents the performance of LightGBM, XGBoost, Random Forest, and the Stacking model on the WGAN-GP augmented dataset.
| Model | A% | P-1% | P-2% | P-3% | P-ave% | F1-1% | F1-2% | F1-3% | F1-ave% | R-ave% |
|---|---|---|---|---|---|---|---|---|---|---|
| LightGBM | 93.08 | 92.66 | 95.28 | 95.26 | 93.56 | 93.20 | 93.66 | 95.15 | 93.37 | 93.23 |
| XGBoost | 99.17 | 99.03 | 99.41 | 99.49 | 99.23 | 99.06 | 99.45 | 99.35 | 99.22 | 99.21 |
| Random Forest | 98.82 | 99.11 | 99.41 | 99.51 | 98.97 | 99.09 | 99.27 | 98.55 | 98.85 | 98.73 |
| Stacking | 99.81 | 99.90 | 99.70 | 99.65 | 99.79 | 99.90 | 99.80 | 99.63 | 99.80 | 99.81 |
The results indicate a striking improvement. The Stacking model achieved an accuracy of 99.81%, with the average precision and average F1 scores both above 99.7%. More importantly, the single models also benefited enormously from the high-quality WGAN-GP-generated data. XGBoost attained 99.17% accuracy, and Random Forest reached 98.82%. This near-saturation of single-model performance reveals a fascinating insight: when the data quality is sufficiently high, even relatively simple models are able to achieve nearly perfect diagnosis. Therefore, the need for a complex ensemble model becomes less critical, although the Stacking model still maintained the best overall performance and the smallest gap between different fault levels.
To explore this observation further, I tested three additional representative base models — AdaBoost (ADA), Gradient Boosting Decision Tree (GBDT), and Multilayer Perceptron (MLP) — on the same WGAN-GP augmented dataset. The results are summarized below.
| Model | A% | P-1% | P-2% | P-3% | P-ave% | F1-1% | F1-2% | F1-3% | F1-ave% | R-ave% |
|---|---|---|---|---|---|---|---|---|---|---|
| AdaBoost | 97.73 | 98.83 | 98.37 | 97.03 | 97.79 | 97.63 | 97.79 | 97.86 | 97.70 | 97.64 |
| GBDT | 99.71 | 99.79 | 99.68 | 99.54 | 99.69 | 99.79 | 99.71 | 99.58 | 99.70 | 99.71 |
| MLP | 99.32 | 99.57 | 98.67 | 99.03 | 99.22 | 99.63 | 98.91 | 99.14 | 99.27 | 99.31 |
| Stacking | 99.81 | 99.90 | 99.70 | 99.65 | 99.79 | 99.90 | 99.80 | 99.63 | 99.80 | 99.81 |
From this extended comparison, I observed that GBDT achieved 99.71% accuracy, which is only 0.10 percentage points lower than the Stacking model. MLP attained 99.32%, and AdaBoost reached 97.73%. These results further substantiate the conclusion that the WGAN-GP augmentation strategy is remarkably powerful in generating discriminative and realistic synthetic samples. With such a high-quality feature space, the fault-separability is almost perfect, and the additional gain from model ensembling diminishes. Nevertheless, the Stacking model still held the highest accuracy and the most balanced per-class metrics across all experiments, so it remains a reliable choice for maximum safety margins in traction battery diagnostics.
The confusion matrices on the WGAN-GP dataset showed that almost all test samples were correctly classified. The recall rates for the Stacking model were above 99.6% for every fault level, while the false-negative and false-positive counts were extremely low. This indicates that the combination of WGAN-GP data augmentation and the Stacking ensemble is capable of detecting even subtle early signs of battery faults, thereby enabling proactive maintenance and timely avoidance of thermal runaway.
5. Conclusion and Outlook
In this thesis, I have developed a systematic data-driven fault detection and diagnosis framework for traction batteries in new energy vehicles. The work addresses three major bottlenecks: insufficient data quality, extreme class imbalance, and the limited generalization of single models.
First, I applied fault tree analysis to reconstruct the fault severity levels from raw and noisy alarm data. By combining the Chinese national standards with custom rules, the traction battery faults were reclassified into four meaningful levels from 0 to 3. I removed irrelevant alarms and performed multidimensional feature engineering, culminating in 13 key features selected through Pearson correlation, mutual information, and heatmap analysis. The final dataset contained a realistic fault proportion of about 10.47%.
Second, I proposed an improved Borderline-SMOTE strategy to oversample the boundary minority-class samples. Using this data enhancement, I constructed a Stacking heterogeneous ensemble model composed of LightGBM, XGBoost, and Random Forest as base learners, with logistic regression as the meta-learner. The experimental results showed that the proposed model achieved an accuracy of 97.20%, a macro-average precision of 97.22%, and a macro-average F1 score of 97.17%, outperforming every single model. The Borderline-SMOTE method proved superior to the classic SMOTE in all evaluation metrics.
Third, I introduced the WGAN-GP strategy to overcome the limitations of interpolation-based oversampling. The gradient-penalty mechanism enforced a smooth 1-Lipschitz constraint on the discriminator, which enabled a stable adversarial training process and high-quality synthetic data generation. After WGAN-GP augmentation, all models achieved significantly higher diagnostic accuracy. The Stacking model hit 99.81% accuracy, with macro-average precision, recall, and F1 all exceeding 99.7%. It is noteworthy that on the WGAN-GP-augmented dataset, many single models such as XGBoost, GBDT, and Random Forest also achieved near-optimal performance, narrowing the gap to the Stacking model to about 0.5% or less. This finding underscores the dominant impact of data quality over algorithm complexity in high-quality classification tasks.
The main contribution of this work lies in the combination of a clear fault-tree-based data labelling schema, two data augmentation strategies with different underlying principles, and a robust Stacking ensemble architecture. The proposed framework has proven to be effective and practical for the fault diagnosis of traction batteries using real-world cloud-server vehicle data. Future research could extend the framework in several directions. First, I plan to investigate the integration of physical models, electrochemical models, and thermal models with data-driven approaches to enhance the explainability and generalization of fault diagnosis. Second, the coupling relationships among different battery fault types should be further explored using multi-source data such as driving behavior, weather, and road conditions. Finally, the development of adaptive online learning algorithms that can update the diagnostic model continuously across the full life-cycle of a traction battery remains a critical and challenging topic. The continuous collection of standardized, open battery fault datasets under diverse operating conditions will further facilitate the deployment of artificial intelligence techniques in electric vehicle safety management.
