Abstract
In view of the issues of sample imbalance and low diagnostic accuracy associated with traditional methods for oil-immersed power transformer fault diagnosis, an ensemble support vector machine (SVM)-based fault diagnosis model is proposed, which incorporates the Tomek link removal (TLR)–weighted SMOTE (WSMOTE) oversampling technique and the hybrid Improved Animated Oat Optimization (IAOO) algorithm. First, the dataset is divided into training and testing sets, and TLR-WSMOTE is applied exclusively to the training set to alleviate class imbalance and reduce the influence of overlapping boundary samples. Second, the AOO algorithm is enhanced by introducing Latin hypercube sampling and Thinking Innovation Strategy to strengthen its global exploration and local exploitation ability. The performance of the IAOO algorithm is verified using six typical test functions, demonstrating competitive optimization performance and stability on the selected benchmark functions; the algorithm is then applied to optimize the penalty factor and kernel parameters of the SVM. Finally, multiple SVM weak classifiers are integrated via the AdaBoost framework to further boost the classification performance and generalization ability of the model. Experimental results indicate that the proposed method achieves an accuracy of 97.17% for transformer fault diagnosis, markedly outperforming traditional and other comparative methods, which validates its effectiveness in enhancing diagnostic accuracy and stability. Validation on an additional DGA dataset further demonstrated the generalization capability of the proposed method, achieving a mean accuracy of 94.24%.
1. Introduction
With the expansion of modern power systems and the advancement of intelligence, power supply stability and reliability have become increasingly critical. As critical power system equipment, oil-immersed transformers connect different voltage levels and play an essential role in power transmission, voltage transformation, and distribution [1]. Transformer faults may trigger regional outages and threaten grid stability [2]. Therefore, timely and accurate health assessment enables rapid fault location and prevents accident escalation, ensuring a reliable power supply [3].
Dissolved Gas Analysis (DGA) is the most widely used method for transformer fault diagnosis [4]. By analyzing concentrations of H2, CH4, C2H6, C2H4, and C2H2, DGA can identify transformer fault types, detect potential hazards and provide key information for equipment maintenance. Traditional DGA methods, including the Rogers ratio method [5], Duval triangle method [6], and Cartesian plane method [7], rely on historical data and expert experience. These methods employ rigid criteria and incomplete coding, resulting in relatively high misclassification rates and limited diagnostic precision [8]. Although these approaches are simple and interpretable, their rule-based nature limits their ability to adapt to complex nonlinear relationships among dissolved gases and diverse fault patterns. This limitation has motivated the development of data-driven intelligent diagnostic methods.
The rapid development of computer technology and artificial intelligence has promoted the development of intelligent methods for transformer fault diagnosis [9]. Various machine-learning methods have been applied, including extreme learning machines (ELM), artificial neural networks (ANN), random forests (RF), and support vector machines (SVM). References [10,11] employed ELM as the base classifier and enhanced its diagnostic performance through parameter optimization and ensemble learning. Reference [12] proposed an improved gray wolf optimization–probabilistic neural network (GWO-PNN) model to improve classification performance and robustness through enhanced search strategies. Reference [13] developed a K-means RBF-genetic backpropagation (GA-BP) model to improve feature mapping and fault diagnosis accuracy through feature clustering and parameter optimization. References [14,15] adopted random forests and combined feature expansion, KPCA, density clustering, and distance-based feature selection to reduce data redundancy and to establish more effective feature-fault mappings. Collectively, these studies demonstrate that machine-learning methods can improve transformer fault diagnosis by combining nonlinear classification, feature selection, parameter optimization, and ensemble learning. However, their effectiveness still depends strongly on data quality, feature representation, model configuration, and the characteristics of the available fault samples.
The above methods can achieve high accuracy, but each model still has limitations. Although ELM has fast learning speed and strong generalization ability, its randomly initialized and fixed input–hidden layer weights and thresholds result in poor stability [16]. ANN demands large training datasets, resulting in slow convergence and high learning costs [17]. The training time and space of RF depend on the number of decision trees, and may degrade in the presence of substantial noise and redundant features [18]. These characteristics highlight the importance of selecting a classifier that can provide robust nonlinear modeling while remaining suitable for limited-sample diagnostic scenarios. Compared with the above models, SVM based on statistical learning theory exhibits better robustness and generalization, matching the characteristics of limited transformer fault samples [19]. By mapping original features into a high-dimensional space via kernel functions, SVM can effectively capture complex nonlinear fault patterns in DGA data. However, owing to the independent training process, a single SVM cannot ensure high diagnostic accuracy for all sample types simultaneously. Ensemble learning integrates the outputs of all base classifiers to further improve accuracy and stability. Ensemble learning provides a potential solution by combining multiple base classifiers to improve the robustness and generalization of the final decision. Therefore, this paper adopts the AdaBoost-based integrated SVM as the fault classifier [20].
Recently, deep learning (DL)-based methods have become a trending approach for transformer fault diagnosis. Reference [21] proposed a multi-model fusion method based on TimesNet and Informer, which captures multi-period temporal features of DGA data via one-dimensional-to-two-dimensional transformation and parallel feature extraction, achieving 96.15% accuracy on a public DGA dataset. Reference [22] developed an interpretable deep learning framework (GAN-CNN-BILSTM-Attention), in which a generative adversarial network enriches limited fault samples, the GOOSE optimization algorithm tunes hyperparameters, and SHAP analysis reveals the contributions of C2H2 and C2H4 to arcing and thermal faults, respectively. Reference [23] combined GAN-VAE data augmentation with an improved energy valley optimization (IEVO) for CNN parameter refinement and random forest-based feature selection, reporting a diagnostic accuracy of 91.63%. Reference [24] proposed a multi-kernel graph convolution network with dual-channel classifiers (DM-DC), which constructs supplementary DGA ratio features and uses binary pre-classification and sample-level reweighting to alleviate imbalance bias, achieving accuracy and Kappa above 95%.
Taken together, these studies demonstrate the increasing capability of DL-based approaches to learn nonlinear representations, temporal dependencies, and inter-gas relationships directly from DGA-related features. Different architectures address different aspects of the diagnostic problem: temporal models focus on sequential and multi-scale dependencies and generative models alleviate the scarcity of fault samples, while graph-based models explicitly exploit relationships among gas-related features. However, these improvements are generally accompanied by increased model complexity and training requirements. Many DL approaches benefit from relatively large labeled datasets and substantial computational resources, while their performance can be sensitive to network architecture, hyperparameter settings, and data distribution. Moreover, although attention mechanisms, SHAP, and other interpretability techniques can provide useful explanations, the internal decision processes of complex DL models may still be difficult to fully interpret. Therefore, for transformer fault diagnosis under small-sample and resource-constrained conditions, improving model complexity alone may not be sufficient. A practical diagnostic framework should simultaneously consider data quality, class imbalance, parameter optimization, classification robustness, and computational efficiency. This provides motivation for investigating lightweight ensemble-learning strategies based on SVM.
Beyond the aforementioned deep learning architectures based on CNNs, GANs, and graph convolutional networks, transformer- and foundation-model-based approaches have also attracted increasing attention in the field of transformer fault diagnosis in recent years. Reference [25] proposed a robust multi-scale transformer (RMT) network that integrates an invariant feature enhancement module, a learnable wavelet patch embedding module, and a cross-gas relationship mixer. This architecture enables stable feature representations under sampling bias and environmental drift while capturing multi-scale time–frequency fault patterns in DGA signals. Reference [26] developed a multi-agent large language model (LLM) framework that couples a fault-case knowledge graph with three collaborative agents to simulate expert diagnostic reasoning. The framework achieved an accuracy of 86% on 100 fault cases, representing a 33% improvement over the BERT baseline. Reference [27] developed SubstationAI, a multimodal foundation model based on LLaVA-1.5-7B and fine-tuned on a dataset containing 40,000 substation fault records. The model demonstrated better performance than general-purpose large language models such as GPT-4 in fault-cause analysis and maintenance recommendation. A recent review further indicated that LLM-based fault diagnosis in power systems still faces challenges related to insufficient domain-knowledge integration, limited real-time response capability, and high computational costs [28]. Overall, the evolution from conventional DL models to transformer- and foundation-model-based approaches reflects a shift from automatic feature extraction toward long-range dependency modeling, knowledge-guided reasoning, and multimodal interaction. These developments substantially expand the potential capabilities of intelligent fault diagnosis. However, they also introduce new challenges, including increasing data and computational requirements, domain adaptation, real-time deployment, and model interpretability. In particular, the advantages of increasingly complex architectures may not be fully realized when the available DGA fault samples are limited. Thus, the development of intelligent diagnostic methods should consider not only predictive capability but also the characteristics of the available data and the practical constraints of field deployment.
In addition, SVM classification accuracy is closely related to penalty factor c and kernel parameter g. Optimization algorithms are widely used to optimize SVM parameters. Common methods include the sparrow search algorithm (SSA) [29], gray wolf optimizer (GWO) [30], genetic algorithm (GA) [31], and particle swarm optimization (PSO) [32]. However, these algorithms suffer from poor population diversity, a tendency to fall into local optima, and slow convergence, thus reducing fault classification accuracy. The Animated Oat Optimization Algorithm (AOO) was first proposed in 2025 and performs well in solving complex optimization problems and engineering applications. Compared with PSO, GWO, and other algorithms, AOO shows significant advantages in global search ability and stability [33]. However, AOO still suffers from poor population diversity and a tendency to become trapped in local optima. This paper improves AOO by introducing Latin hypercube sampling and Thinking Innovation Strategy. Latin hypercube sampling enhances the randomness and traversal of the search, and the Thinking Innovation Strategy balances global exploration and local exploitation, guiding the algorithm to escape local optima. The combination of these strategies makes the improved AOO perform excellently in SVM parameter optimization, effectively overcoming the drawbacks of traditional algorithms.
Most intelligent methods are data-driven, so the training data distribution significantly affects model construction. In practice, power transformer faults are rare, leading to scarce fault samples and imbalanced datasets. Highly imbalanced training data causes classifiers to favor majority-class samples and neglect minority-class samples, reducing minority-class recognition accuracy and severely limiting model training performance [34]. Oversampling algorithms are commonly used for imbalanced data processing, such as SMOTE [35], ADASYN [36], and K-means-SMOTE [37]. These algorithms balance datasets to some extent but still have drawbacks. SMOTE tends to generate noise and blur class boundaries. ADASYN focuses on sample boundaries but ignores intra-class distribution and noise interference. K-means-SMOTE performs augmentation based on clustering to improve intra-class aggregation but neglects sample boundary features. To address these limitations, this study employs a weighted SMOTE (WSMOTE) strategy to assign different weights to minority-class samples during oversampling. Tomek link removal (TLR) is further introduced to remove overlapping or boundary samples before oversampling. The resulting TLR-WSMOTE strategy is applied exclusively to the training set after data partitioning, thereby improving class balance while avoiding information leakage from the test set.
In summary, to address the challenges of class imbalance, SVM hyperparameter selection, and limited diagnostic robustness in transformer fault diagnosis, this study proposes a fault diagnosis framework based on TLR-WSMOTE and IAOO-SVM-AdaBoost. First, the dataset is divided into training and testing sets, and TLR-WSMOTE is applied exclusively to the training set to alleviate class imbalance and reduce the influence of overlapping boundary samples. Second, LHS and TIS are introduced into AOO to improve population diversity and the exploration–exploitation balance, and the resulting IAOO is used to optimize the SVM hyperparameters. Finally, multiple optimized SVM weak classifiers are integrated through AdaBoost to improve classification robustness. The proposed framework is evaluated through data-balancing experiments, CEC2022 benchmark tests, comparative diagnostic experiments, ablation studies, runtime analysis, and validation on an additional DGA dataset.
2. SVM-ADABOOST
2.1. Support Vector Machines
SVM is a binary classification model whose basic form is the linear classifier with maximum margin in the feature space. The learning strategy of SVM is margin maximization, which can be formalized as solving a convex quadratic programming problem and is equivalent to minimizing the regularized hinge loss function. The formula is as follows:
where denotes the normal vector of the separating hyperplane, is the feature vector, represents the class label, is the bias term, is the number of samples, and is introduced to construct the maximum-margin classifier. is the penalty factor that balances model complexity and classification error.
2.2. AdaBoost
AdaBoost is a type of ensemble boosting method that trains multiple weak classifiers on the same training set and combines them to construct a strong classifier. It can not only improve diagnostic accuracy but also enhance the stability of diagnostic results. This paper uses SVM as the weak classifier, and the workflow is as follows.
Input data samples and initialize sample weights as follows:
Iterative training is performed on the sample data to calculate the classification error rate and corresponding weight of each weak classifier. The expression is as follows:
Based on the diagnostic error rate and the weights of weak classifiers, the weights of the sample data are updated as follows:
The sample weights are normalized using the following formula:
Final strong classifier :
Transformer fault diagnosis is a six-class multi-classification task, so this binary-class formulation cannot be directly applied. The multi-class AdaBoost-SVM constructed in this paper is a scenario-adaptive extension of the classical binary-class AdaBoost. Its core iterative mechanism is fully inherited from the original binary-class AdaBoost, and only the output form of weak classifiers, the statistical object of error rate, and the decision fusion rule are modified.
During iterative training, the calculation formulas for the sample-weight update and weak-learner weight coefficient remain unchanged.
For binary-class tasks, labels take values of . For multi-class fault recognition, the label set is extended to , while the judgment logic of the indicator function stays unchanged.
To realize multi-class outputs, the Error-Correcting Output-Codes with the One-vs-All coding strategies are adopted to construct multi-class SVM weak classifiers. The kernel function is utilized. The penalty factor and kernel width are optimized by the IAOO algorithm. Feature standardization is completed in the data pre-processing stage, and repeated standardization inside weak classifiers is omitted. During training, sample weights are embedded into the loss function to realize weighted training.
After training each weak classifier, predictions are made on the training set to compute the weighted misclassification error rate for the multi-class scenario:
Classical binary-class AdaBoost conducts weighted voting for discrete labels via the sign function , which cannot be directly applied to the six-class task. Accordingly, a weighted-fusion strategy for category-wise continuous decision scores is adopted in this work. During training, the continuous decision score for each category output by the -th weak classifier is recorded. For an unseen test sample, category-wise scores are weighted and summed using the corresponding weak-classifier weight .
where stands for the decision score of a sample belonging to category , which is output by the -th weak classifier; is the total number of weak classifiers. The fault category with the maximum weighted score is selected as the final predicted label of the model .
All iterative-training and sample-weight-update operations are performed exclusively on the stratified training subset. The test set is only used for forward inference and does not participate in weak-classifier training or sample-weight updating, so as to avoid data leakage.
3. Tomek Link Removal–Weighted SMOTE
3.1. Limitations of Existing Oversampling Algorithms
As reviewed in the Introduction [31,32,33], conventional oversampling algorithms have well-known inherent drawbacks for imbalanced-learning tasks.
For original SMOTE, the equal-probability seed-sampling mechanism cannot distinguish informative boundary samples, safe interior samples and noisy outliers in DGA datasets. It is prone to generate invalid cross-boundary synthetic samples and blur fault-class decision boundaries.
Although ADASYN strengthens the generation of hard boundary samples, it operates on raw DGA data without prior noise filtering. Since DGA datasets naturally contain overlapping noisy samples near fault boundaries, ADASYN will amplify such noise during oversampling and impair subsequent classification performance.
3.2. WSMOTE
A weight mechanism is introduced into the traditional SMOTE algorithm. Minority-class samples near the decision boundary are identified by calculating their distances to majority-class samples, and higher weights are assigned to these samples to sharpen the decision boundary. The updated formula for synthetic samples is as follows:
is the set of minority-class samples. denotes the set of majority-class samples. For each minority-class sample, the average Euclidean distance to its k nearest majority-class neighbors is calculated within the majority-class set, .
denotes the boundary-relevance score. The boundary-relevance score is calculated from the average Euclidean distance. A smaller distance corresponds to a higher score. The constant 1 is added to the denominator for numerical stability, which prevents division-by-zero errors caused by complete overlap between minority-class samples and majority-class samples.
Max-value normalization is performed on the raw boundary-relevance scores of all minority-class samples to obtain the final interpolation-scaling weights.
Search the k intra-minority-class neighbors of the seed sample within the minority-class set . One neighbor sample is randomly selected from these neighbors, and linear interpolation is implemented subsequently.
The weighted SMOTE oversampling method adopts an adaptive weight allocation mechanism and weighted interpolation strategy to intelligently generate synthetic samples. These samples maintain reasonable similarity with the majority class while retaining the key features of the minority class. It not only strengthens samples that significantly affect the classification boundary, but also reduces the interference of potential noise. Compared with the traditional SMOTE algorithm, this weighting mechanism can more effectively increase the sample density near the decision boundary, thereby improving the model’s minority-class recognition ability.
3.3. TLR-WSMOTE
Despite the boundary-oriented weighting capability of original weighted SMOTE (WSMOTE), it exhibits two critical drawbacks for transformer DGA datasets. Weighted oversampling is directly conducted on raw data, in which inherent Tomek link-based inter-class overlapping samples may gain high weights and produce misleading synthetic fault samples. In addition, noise filtering and weight calculation are decoupled; noise cannot be suppressed prior to weight assignment.
To mitigate the above problems, this work proposes TLR-WSMOTE, a two-stage pipeline that inserts Tomek link removal (TLR) as a denoising preprocessor before weighted oversampling. Tomek link removal is an under-sampling method for class-imbalanced data. Its core idea is to identify and remove samples in the majority class that form nearest neighbor pairs with minority-class samples, so as to optimize the classification boundary. This process effectively reduces redundant or interfering samples in the majority class while retaining the information of minority-class samples as much as possible. It thus refines the decision boundary of the classifier, alleviates overfitting and bias, and ultimately improves the performance of the classification model on imbalanced data.
After TLR processing, only majority-class samples within Tomek link pairs are discarded, and purified minority-class samples are delivered to the oversampling module. This architecture excludes noise outliers from weight computation and sample synthesis, focusing calculation on real boundary-informative samples. The core novelties are summarized below:
- Two-stage synergistic pipeline (denoising-first strategy).
Unlike the original WSMOTE operating on noisy raw datasets, TLR-WSMOTE applies TLR to remove cross-class overlapping samples in advance, refining class boundaries and suppressing invalid synthetic samples triggered by noisy outliers.
- 2.
- Boundary-aware weighting for minority-class sample synthesis.
After TLR denoising, boundary-relevance weights are computed based on distances from minority samples to majority-class samples. Boundary-proximate samples obtain larger weights, which scale the interpolation step size (rather than roulette-wheel seed selection) to enhance synthetic-sample density near decision boundaries.
- 3.
- Anti-data-leakage guarantee and model compatibility.
TLR-WSMOTE inherits SMOTE’s linear-interpolation rule and can be readily combined with SVM and ensemble-learning frameworks. Critically, TLR-WSMOTE is only applied to the training set after stratified splitting. Internal and external test datasets are kept untouched without denoising or oversampling to eliminate data leakage risks.
The steps of the TLR-WSMOTE algorithm are as follows:
- Data denoising. Tomek link removal is used to identify and remove boundary interference data in the majority class that forms nearest neighbor pairs with minority-class samples. Noise and outliers are removed, and noisy data are prevented from being involved in synthetic sample generation.
- Weight calculation. The corresponding weights of denoised minority-class samples are calculated, and different synthesis ratios are assigned to each sample.
- Sample synthesis. The minority-class samples are synthesized by Equation (14) to generate a new dataset.
4. Hybrid Improved Animated Oat Optimization
4.1. Animated Oat Optimization
4.1.1. Initialization
The AOO algorithm employs random initialization, as shown in Equation (15):
where are uniform random numbers, and are the upper and lower bounds of the j-th dimension, and is the problem dimension.
4.1.2. Exploration
The algorithm simulates the dispersal of part of the Animated Oat seeds after they detach from the plant. Driven by natural factors such as wind, water and organisms, this dispersal mechanism has significant randomness, enabling extensive exploration of the search space. The position update is shown as follows:
where is the position of the i-th individual in generation t + 1, is the dynamic adjustment factor, and is the optimal position of the population.
4.1.3. Exploitation
Undiffused oat seeds are divided into two propagation modes according to the presence or absence of obstacles, with equal probability for both modes. When there are no obstacles in the propagation path, the spatial position of the seed changes via moisture absorption and rolling. This motion is simulated by critical curvature, and the rolling mechanism is described as eccentric rotation based on the torque formula:
where is a random matrix from to , whose dimension matches the dimension of the target problem, is the seed quality, is the main awn length, and is the number of iterations.
When encountering obstacles, the main beam is ejected after storing energy. The entire seed propagation process is characterized by projectile motion, and the position update formula is as follows:
where is the gravitational acceleration and represents the coefficient of eccentric rotation.
4.2. The Hybridization Strategy
4.2.1. Latin Hypercube Sampling
Random sampling is adopted for population position initialization in the algorithm, leading to large variations in the initial position quality and insufficient coverage of the search space. This results in degraded optimization performance and slow convergence. To address this issue, Latin hypercube sampling is introduced for population initialization, as shown in Equation (24):
where is the i-th sample in dimension j, is the interval number of the i-th sample in dimension j, is a random number sampled from a uniform distribution, and N is the population size.
As shown in Figure 1, the improved initialization method achieves a more uniform population distribution, which facilitates the subsequent search process of the algorithm.
Figure 1.
Comparison of population initialization distribution before and after Latin hypercube sampling improvement.
4.2.2. Thinking Innovation Strategy
In iterative optimization, the original AOO algorithm lacks an adaptive switching mechanism between global exploration and local exploitation, failing to dynamically allocate computational resources throughout the search process. For complex high-dimensional and multi-modal optimization problems, it suffers from rapid population diversity loss and low convergence accuracy. To address these defects and boost the overall optimization performance, this paper improves the AOO algorithm via a thinking innovation strategy. By simulating dynamic human cognitive and innovative decision-making behaviors, the modified algorithm can adaptively switch search modes and escape local optima.
Thinking Innovation Strategy (TIS) is a heuristic strategy based on human thinking phenomena, aiming to improve global search capability and convergence speed by dynamically adjusting algorithm behavior. Its core ideas include the following:
Information event (IE) mechanism: By storing individuals with good fitness and their fitness, it guides the subsequent search process. In the initial stage of the algorithm, a single successful individual is randomly selected and stored in IE. With the advancement of algorithms, adopting the method of survival of the fittest to retain more successful individuals significantly provides information for subsequent innovative thinking processes.
Depth of knowledge (DOK) and imagination (IM): By calculating the depth of knowledge and imagination, diverse candidate solutions are generated to enhance the innovative capability of search.
where is an individual randomly selected from the set of information events, is the current number of function evaluations, and is the total number of function evaluations.
Dynamically adjust the algorithm to balance exploration and exploitation based on iteration progress and individual fitness. The improved probability calculation formula is as follows:
where the individual fitness and current optimal fitness are defined accordingly as and . By integrating the global iteration progress and individual local performance, the adaptive adjustment of exploration and exploitation is realized. The exponential decay term supports early exploration and late exploitation. Its nonlinear decay feature guarantees adequate search in the early optimization stage and a smooth transition to local fine exploitation in the later stage. The fitness reward assigns extra exploration probability to individuals far from the optimal solution, allocating more resources to inferior individuals and forming a differentiated decision-making mechanism. This mechanism transforms the algorithm from fixed probability decision-making to adaptive intelligent decision-making, reduces the reliance on manual parameter configuration, and enhances the robustness for various optimization problems.
In the exploration stage, the enhanced perturbation term optimizes the original random perturbation by introducing TIS mechanism. IM utilizes the nonlinear property of the tangent function to provide strong jumping capability, generating extreme perturbations in the search space and effectively preventing local optima. With DOK as the denominator, the knowledge depth parameter increases monotonically with iterations, which gradually weakens the enhancement intensity from global exploration to local exploitation and realizes adaptive search balance. The fixed coefficient of 0.5 controls the intervention degree of the TIS mechanism, balancing the original search performance and intelligent enhancement. This improvement converts the memoryless pure random perturbation into an information-driven, nonlinearly modulated and adaptive intelligent search operator.
In the exploitation phase, successful individuals or global optimal solutions in information events are used for guidance, and the modified exploitation formula is as follows:
where is the random disturbance, c is the scaling factor, is the vector generated by Lévy flight, and is the successful individual or global optimal solution in the selected information event.
The guiding individual selection strategy adopts the equal-probability random switching mechanism in Equation (29) to dynamically select the guidance direction between the optimal individual of the information event set and the global optimal solution. By taking it as the alternative guidance source, the population can conduct parallel searches toward multiple high-quality historical regions, which effectively maintains population diversity and avoids premature convergence caused by all individuals converging to a single optimum in the original AOO algorithm. When falls into local optima, provides alternative search directions for the population to escape local traps, improves the algorithm’s performance in solving multimodal functions, and balances population diversity and global convergence ability.
The full iterative procedure of IAOO derived from the above improvement steps is depicted in Figure 2.
Figure 2.
The workflow of IAOO.
5. Method Implementation Process
5.1. Dataset
This article collected a total of 504 data samples [38], including the concentrations of dissolved gases in the insulation oil of faulty transformers (H2, CH4, C2H6, C2H4, C2H2) and corresponding fault types. According to the different temperatures and discharge energies of transformer faults, the operating states of transformers can be divided into medium and low-temperature overheating (T1), high-temperature overheating (T2), partial discharge (PD), low-energy discharge (D1), high-energy discharge (D2) and normal state (NC). The corresponding fault codes are shown in Table 1.
Table 1.
Transformer fault types and corresponding codes.
For each instance in the dataset, the data are first stratified and randomly divided into training and test sets, with 80% of the samples allocated to the training set and the remaining 20% to the test set. Tomek link removal and WSMOTE are then applied exclusively to the training set. Specifically, Tomek link removal is used to eliminate overlapping or boundary samples, followed by WSMOTE to synthesize minority-class samples and obtain a more balanced training dataset. The test set is kept unchanged throughout the preprocessing procedure to avoid data leakage.
5.2. Sample Feature Selection
In transformer fault diagnosis, selecting features from DGA data is essential because the feature information provided by the original five gas concentrations is not comprehensive enough, which can lead to low model diagnostic accuracy and large errors, affecting the diagnostic results. In order to ensure that the machine learning model more accurately reflects the feature correlation between gas data and fault types, based on the reference to traditional ratio methods and the corresponding literature on fault symptoms, a total of 24 candidate ratio symptoms for transformer faults are selected in this paper, as shown in Table 2.
Table 2.
Ratio of symptoms of transformer faults.
The combined gas characteristic quantities are defined as
Standardize the features using the Z-score method. The mean and standard deviation were estimated from the training set only, and the same parameters were used to standardize the test set.
where , , and , respectively, represent the original data value, mean, and standard deviation of the i-th feature, and / represents the standardized result.
Due to the curse of dimensionality in high-dimensional data, it can easily lead to model overfitting and data sparsity issues, thereby weakening the reliability of distance measurements. To overcome this problem, this paper uses Kernel Principal Component Analysis (KPCA) for feature dimensionality reduction, and the resulting Pareto diagram is shown.
As shown in Figure 3, when the retained feature dimension reaches 15, the cumulative contribution reaches 98.8%. Therefore, dimensionality reduction to 15 can be chosen as the final feature input.
Figure 3.
Pareto chart of KPCA feature dimensionality reduction.
5.3. Transformer Fault Diagnosis
This paper uses the radial basis function (RBF) as the kernel function of SVM, and uses IAOO to optimize the penalty factor c of SVM and the kernel parameters of the Gaussian radial basis function. Through 5-fold cross validation, the generalization ability of the optimized SVM is ensured. The parameter settings of the IAOO SVM AdaBoost model are shown in Table 3.
Table 3.
Parameter settings of IAOO-SVM-AdaBoost.
The structure of the IAOO-SVM-AdaBoost transformer fault diagnosis model based on improved oversampling technology is shown in Figure 4, and the specific steps are as follows:
Figure 4.
Structure diagram of IAOO-SVM-AdaBoost transformer fault diagnosis model.
Step 1: The dataset is first divided into training and testing sets in an 8:2 ratio, using stratified random sampling. TLR and WSMOTE are then applied exclusively to the training set, while the testing set remains unchanged.
Step 2: Perform KPCA dimensionality reduction on the output dataset, select the top 15 dimensions as feature inputs for the model, and normalize them.
Step 3: Set the population size and number of iterations for IAOO, along with the hyperparameter optimization range for the SVM and the weak classifier weights.
Step 4: Use the IAOO algorithm to optimize the parameters of SVM; initialize weak classifier weights.
Step 5: Input training samples to train SVM weak classifiers one by one, calculate classification error rates and weights, determine whether the maximum number of iterations has been reached; if so, obtain the optimal solution and input the obtained hyperparameters. If not satisfied, return to Step 3 to continue iterating.
Step 6: Determine whether each weak classifier has been trained. If so, integrate based on the weights of the weak classifier and output the result; otherwise, return to the loop.
Step 7: Input the test sample into the final IAOO SVM AdaBoost test results.
5.4. Evaluation Indicators
The confusion matrix is a commonly used evaluation metric in machine learning, which displays the correspondence between model prediction results and actual labels in matrix form. According to the confusion matrix, five evaluation metrics can be calculated: accuracy, precision, recall, F1 score, and Kappa coefficient.
TP was correctly predicted as a positive sample, TN was correctly predicted as a negative sample, FP was incorrectly predicted as a positive sample, and FN was incorrectly predicted as a negative sample. P(E) is the expected accuracy calculated in the equation, representing the performance under random conditions. The formula is as follows:
Recall reflects the model’s sensitivity when identifying positive samples, precision measures the proportion of predicted positive samples that are correctly classified, and F1 score, as the harmonic average of the two, evaluates the overall model performance. The Kappa coefficient measures the consistency between predicted and actual classification results.
6. Results and Discussion
6.1. Effectiveness of TLR-WSMOTE
To verify the effectiveness of the balancing method proposed in this paper, the collected raw data samples were input into the IAOO SVM AdaBoost fault diagnosis model, with data processed using ADASYN, SMOTE, WSMOTE, and TLR-WSMOTE, respectively. The diagnostic results are presented in Table 4, and the corresponding confusion matrix is shown in Figure 5.
Table 4.
Comparison of diagnostic performance under different data balancing methods.
Figure 5.
Simulation experiment results.
By comparing confusion matrices across the original dataset, ADASYN, SMOTE, WSMOTE and TLR-WSMOTE, traditional ADASYN and SMOTE relieve class imbalance via basic minority sample synthesis and show limited ability to distinguish inter-class boundaries. They produce severe misclassification for Classes 3 and 5, with the accuracy of Class 3 as low as 68.2% using ADASYN.
By comparing the confusion matrices of the raw dataset, ADASYN, SMOTE, WSMOTE and TLR-WSMOTE, it can be observed that conventional ADASYN and SMOTE only synthesize minority samples via simple interpolation to alleviate class imbalance, without weighting samples or handling overlapping boundary noise, leading to severe boundary ambiguity. As reflected in the confusion matrices, these two methods yield poor recognition performance for fault Classes 3 and 5. Specifically, ADASYN achieves only 68.2% accuracy for Class 3 with substantial misclassification of boundary samples.
As an improved strategy, WSMOTE introduces a weighting mechanism for boundary samples. When generating synthetic minority samples, higher weights are assigned to boundary samples with high information value to optimize the spatial distribution of minority classes. Compared with vanilla SMOTE, WSMOTE raises the classification accuracy of Class 3 to 90.9% and nearly eliminates the misclassification of Class 5. On this basis, TLR-WSMOTE further incorporates the TLR (Tomek links) denoising module, which removes inter-class overlapping noise before oversampling and suppresses classification interference from overlapping regions. This design addresses the inherent drawback of noise amplification that remains even when using weighted oversampling alone, achieving more stable identification for noise-sensitive Classes 3 and 4.
Combining quantitative metrics and confusion matrix visualization, TLR-WSMOTE achieves the best overall performance, yielding a total diagnostic accuracy of 98.33%, and 100% per-class accuracy for fault Classes 2, 3, 4 and 6. The raw dataset only reaches an accuracy of 84.00% and a Kappa coefficient of 0.81, while the proposed TLR-WSMOTE boosts these two metrics to 98.33% and 0.98, respectively. The TLR boundary denoising and WSMOTE weighted oversampling form a synergistic combination: they eliminate boundary blurring while synthesizing minority samples and avoid the noise-amplification limitation of traditional oversampling algorithms. Overall, TLR-WSMOTE can effectively handle imbalanced transformer fault datasets, reduce the majority-class bias of classifiers, and maintain outstanding and stable recognition performance for multi-class fault diagnosis.
6.2. IAOO Algorithm Performance
6.2.1. Benchmark Function Evaluation
In order to objectively evaluate the effectiveness of the improved algorithm, some test functions in the CEC2022 function were selected for performance testing and compared with traditional PSO, GWO, DBO, SSA, and the initial version AOO of the algorithm. Among them, f1 is a unimodal function with only one global optimal solution, f2 and f3 are multimodal functions, f8 is a mixed function used to test the robustness of the algorithm, and f10 and f12 are combination functions used to test the algorithm’s ability to escape from local optima. Table 5 provides an introduction to six test functions. Figure 6 shows the 3D surface plot of the test function.
Table 5.
Introduction of CEC2022 test functions.
Figure 6.
3D distribution diagram of CEC2022 test functions.
Six test functions are adopted to conduct independent simulation experiments on the MATLAB platform. For a fair evaluation of the IAOO algorithm, the maximum iteration is set to 500, the population size is 30, the dimension is 10, and each algorithm runs 50 independent trials. To reduce random interference, the minimum, worst value, median, average, and standard deviation of the optimization results are recorded to evaluate the reliability and accuracy of the algorithm. The simulation results are illustrated in Figure 7, and the comparison between IAOO and other algorithms is presented in Table 6.
Figure 7.
Convergence curves of various algorithms for test functions.
Table 6.
Comparison of performance metrics of different algorithms on test functions.
Based on a comprehensive analysis of multiple test functions, the IAOO proposed in this paper demonstrates good comprehensive performance and stable generalization ability. On the unimodal function F1, the optimal value of IAOO at 300 and the average value at 300.8 are both close to the theoretical optimum, with a standard deviation of 0.8905 performing well, maintaining high convergence accuracy and stability. IAOO exhibits strong optimization ability and robustness in multimodal functions F2 and F3. In F2, the optimal value of IAOO is 400, with an average of 408.8 and a standard deviation of 13.78. In F3, the optimal value of IAOO reached 600, with an average value of 600.3 and a standard deviation of only 0.8903. Among the six algorithms, it performed the best overall, verifying its superiority in multimodal problems. When dealing with the mixed function F8, IAOO performs robustly: the optimal value is 2203, the average value is 2228, and the standard deviation is 18.21. All indicators are in the forefront, indicating that the algorithm has good convergence stability in mixed function optimization. IAOO exhibits excellent overall performance when handling combination functions F10 and F12. In F10, the optimal IAOO value reached 2500, with an average of 2556 and a standard deviation of 68.03, indicating good performance. In F12, IAOO performs particularly well, with an optimal value of 2859, an average value of 2864, and a standard deviation of only 1.821, leading all comparison algorithms in multiple indicators, fully demonstrating IAOO’s powerful ability when used in complex combinatorial optimization problems and demonstrating its good convergence stability and resistance to extreme values.
From further observation of the convergence curve, it can be seen that benefiting from the high-quality initial population generated by LHS, IAOO rapidly enters an efficient search state in the early iteration stage, demonstrating stronger global traversal. In the later stages of iteration, the algorithm avoided premature convergence, such as in PSO and GWO, and continued to optimize, verifying the effectiveness of the improvement strategy in balancing exploration and exploitation, and escaping local optima. In the end, IAOO achieved high convergence accuracy on multiple functions, especially in the complex combination function F12, highlighting the strengthening effect of the improvement strategy on local search ability.
In summary, the collaborative integration of various improvement strategies enables IAOO to achieve a good balance between convergence speed, accuracy, stability, and generalization ability when solving complex optimization problems, effectively overcoming some of the shortcomings of traditional algorithms and becoming a reliable and highly generalizable optimization tool.
6.2.2. SVM Parameter Optimization
The above CEC2022 test function results have verified the excellent optimization performance of the IAOO algorithm in complex optimization problems. To further apply the algorithm to transformer fault diagnosis scenarios, this section uses IAOO for adaptive optimization of SVM key parameters (penalty factor C and kernel parameter g) and compares the fitness convergence curves of different optimization algorithms in the SVM parameter optimization process, intuitively reflecting the convergence speed, optimization accuracy, and stability of the algorithm, providing parameter optimization basis for subsequent high-precision fault diagnosis models. The corresponding convergence curves are shown in Figure 8.
Figure 8.
The fitness curve of the algorithm optimization model.
The convergence curves of different optimization algorithms clearly demonstrate the significant advantages of the IAOO algorithm proposed in this paper. Compared with PSO, GWO, DBO, and the original AOO algorithms, IAOO-SVM has advantages in convergence speed, accuracy, and stability. From the trend of the curve, IAOO-SVM shows the fastest decline in the early stages of iteration, completing convergence in only seven iterations, far faster than other algorithms, demonstrating extremely high global search efficiency. Its converged fitness value stabilizes at 0.047, the minimum among all comparative algorithms, which is approximately 17.5% lower than that of the original AOO-SVM. This indicates that it can find a better parameter combination for SVM and effectively reduce the model’s generalization error.
6.3. Diagnostic Performance Comparison
In order to comprehensively evaluate the diagnostic performance of the proposed IAOO-SVM-AdaBoost model, a total of six comparative models of SVM, SVM-AdaBoost, PSO-SVM-AdaBoost, GWO-SVM-AdaBoost, DBO-SVM-AdaBoost, and AOO-SVM-AdaBoost were selected, and comparative experiments were carried out under the same data-processing methods and characteristics. All models were independently repeated 20 times, and the mean and standard deviation of the three indicators of accuracy, precision, and recall were calculated. The results are shown in Table 7.
Table 7.
Comparison of performance evaluation metrics of different diagnostic models.
As can be observed from Table 7, the proposed IAOO-SVM-AdaBoost model achieves the best performance in accuracy, precision, and recall, with an average accuracy of 97.17%, a precision of 97.17%, and a recall of 96.60%. Compared with the baseline SVM model, it yields accuracy and recall improvements of 7.71 and 9.25 percentage points, respectively, demonstrating the prominent fault-identification capability of the constructed integrated diagnostic framework. Relative to SVM-AdaBoost without meta-heuristic optimization, the accuracy rises by 4.17 percentage points, which validates the effectiveness of meta-heuristic optimization for SVM hyperparameter search.
Among the five swarm-intelligence-driven models (PSO, GWO, DBO, AOO, and IAOO), the improved IAOO algorithm delivers the highest diagnostic accuracy, surpassing the original AOO by 1.21 percentage points. This result indicates that Latin hypercube sampling initialization and the thinking-innovation strategy effectively enhance global search capability and facilitate the acquisition of optimal values for the SVM penalty factor and kernel-function parameters.
In terms of stability, IAOO-SVM-AdaBoost achieves the smallest accuracy standard deviation of merely 1.78%, alongside the lowest standard deviations for precision (1.78%) and recall (2.14%). By contrast, the baseline SVM exhibits a large accuracy standard deviation of 2.84%, and both DBO-SVM-AdaBoost and AOO-SVM-AdaBoost show standard deviations greater than 2.2%. These observations reveal that the proposed model not only obtains superior average performance but also exhibits minimal result fluctuations across multiple independent runs, demonstrating favorable robustness and repeatability.
Figure 9 presents box plots of accuracy distributions over 20 independent runs for all models. For each box, the upper and lower bounds represent the upper and lower quartiles; the horizontal line inside the box indicates the median, and black hollow circles mark the mean values. Dashed whiskers extend outward from each box, and data points lying beyond the whiskers are plotted as hollow circles to denote outliers.
Figure 9.
Accuracy boxplot over 20 independent runs.
It can be intuitively observed from Figure 9 that the box for the IAOO-SVM-AdaBoost model is positioned at the top, with its median close to 98% and the smallest box height, which implies concentrated data distribution and low dispersion. Meanwhile, this model has the narrowest whisker range without extreme outliers, further confirming the stability of its prediction results. By comparison, the box of the baseline SVM model lies at the lowest position with a median of approximately 89.5%, and its whiskers span the broadest range from roughly 83.3% to 94.2%, indicating poor performance and substantial result fluctuations of the standalone SVM classifier. The box for SVM-AdaBoost shifts upward relative to that of SVM, demonstrating that ensemble learning can effectively boost classification performance. The boxes of the four optimized models, namely PSO, GWO, DBO and AOO, are located at similar positions, mostly within the 95–96% interval. Nevertheless, they exhibit larger box heights and wider whisker spans than the IAOO-SVM-AdaBoost model, reflecting certain randomness in the hyperparameter-search procedure of these optimizers and insufficient stability across multiple repeated runs.
To statistically verify the significance of performance differences among various models, the Friedman test combined with the Nemenyi post hoc test is adopted for multiple comparisons based on the accuracy results obtained from 20 repeated experiments, with the significance level set at . The Friedman test rejects the null hypothesis , indicating that statistically significant overall performance differences exist among the seven models. Therefore, pairwise comparisons are further conducted via the Nemenyi post hoc test.
The Nemenyi critical-difference (cD) diagram is shown in Figure 10. The horizontal axis represents the average rank, where a smaller value corresponds to better model performance. The critical difference value is set to . A significant statistical difference is considered to exist between two models if the difference in their average ranks exceeds the value. Model groups connected by thick horizontal lines at the bottom indicate that no significant difference is observed within each group.
Figure 10.
Nemenyi critical difference diagram.
As can be seen from Figure 10, IAOO-SVM-AdaBoost achieves the lowest average rank, obtaining the first overall rank with the best performance. By contrast, the SVM model yields the highest average rank. The difference in average rank between IAOO-SVM-AdaBoost and SVM is about 5.35, which is much larger than the critical difference value , indicating a statistically significant difference between the two models. The rank difference relative to SVM-AdaBoost reaches approximately 3.90, which also exceeds CD and denotes a significant difference. This demonstrates that the performance improvement of the proposed model over the baseline and non-optimized models is statistically significant rather than resulting from random fluctuations.
The average-rank differences between IAOO-SVM-AdaBoost and the four optimized models (GWO, AOO, PSO, DBO) are all smaller than CD, and these models are connected by the thick horizontal line at the bottom of the CD diagram. This reveals that under the current experimental conditions, no statistically significant difference is detected between the proposed model and these swarm-intelligence-optimized counterparts. Nevertheless, the proposed method still exhibits obvious advantages in terms of average accuracy, standard deviation and other metrics, leading to superior comprehensive performance.
Combining the analytical results from Table 7, Figure 9 and Figure 10, it can be concluded that the proposed IAOO-SVM-AdaBoost model outperforms all other comparative models in terms of diagnostic accuracy, precision, recall and result stability. Moreover, its performance improvement against baseline models is statistically significant, which verifies the effectiveness of the proposed method for transformer DGA-based fault-diagnosis tasks.
6.4. Ablation Study of the Proposed Framework
To quantitatively evaluate the individual contributions of the four core components, namely TLR noise filtering, WSMOTE weighted oversampling, the IAOO algorithm, and AdaBoost ensemble learning, a series of single-variable-controlled ablation experiments were conducted. The complete model, denoted as G-Full (Proposed), which incorporates all four modules, was used as the baseline. In each ablation experiment, only one module was removed or replaced with its corresponding baseline method, while all other experimental conditions, including the dataset partitioning, feature selection, hyperparameter search ranges, and 20 independent runs, were kept strictly identical. The results of the ablation experiments are presented in Table 8.
Table 8.
Contribution analysis of individual components.
G-Full (Proposed) represents the complete proposed framework, in which TLR, WSMOTE, IAOO, and AdaBoost are simultaneously employed. It achieved the best overall performance, with a diagnostic accuracy of 98.83% and a Kappa coefficient of 0.98.
A comparison between G-ΔTLR and G-Full (Proposed) shows that removing the TLR-based preprocessing denoising module resulted in a substantial performance degradation. With the remaining modules unchanged, the diagnostic accuracy decreased to 93.18%, while the Kappa coefficient dropped to 0.92. This result indicates that TLR can effectively eliminate class-overlapping noise in the DGA feature space, thereby reducing the adverse effects of noisy samples during minority-class synthesis. Consequently, TLR contributes significantly to improving sample quality and the overall fault diagnosis performance.
In G-SMOTE, the proposed WSMOTE was replaced with conventional SMOTE while all other modules remained unchanged. The resulting diagnostic accuracy was 95.00%, with a Kappa coefficient of 0.94. Compared with the complete model, a clear decline in diagnostic performance was observed. This finding verifies the effectiveness of the proposed WSMOTE strategy over conventional SMOTE. By assigning greater sampling weights to minority samples located near class boundaries, WSMOTE can more effectively address the class imbalance in transformer fault diagnosis data and facilitate the formation of a more discriminative classification boundary.
For G-AOO, the proposed IAOO was replaced by the original AOO algorithm, with all other components retained. The diagnostic accuracy decreased to 94.17%, accompanied by a Kappa coefficient of 0.93, making G-AOO one of the lowest-performing ablation variants. This result demonstrates that the incorporation of Latin hypercube initialization and the proposed thought innovation strategy substantially enhances the global exploration capability of AOO. The improved IAOO is therefore more capable of identifying favorable SVM hyperparameters, particularly the penalty factor and kernel parameters, thereby making a prominent contribution to the overall diagnostic performance.
Finally, G-ΔAdaBoost removes the AdaBoost ensemble structure and reduces the framework to a single IAOO-SVM classifier. Although its diagnostic accuracy remained relatively high at 97.50%, with a Kappa coefficient of 0.97, a slight performance degradation was still observed compared with G-Full (Proposed). This finding suggests that AdaBoost ensemble learning can further improve diagnostic performance by assigning appropriate weights to and aggregating multiple SVM weak classifiers, thereby reducing the risk of misclassification associated with an individual classifier and enhancing the robustness of the proposed diagnostic framework.
Overall, the removal or replacement of any individual module resulted in a certain degree of degradation in both diagnostic accuracy and the Kappa coefficient. These results demonstrate that TLR, WSMOTE, IAOO, and AdaBoost each provide a positive performance gain. The ablation study therefore provides quantitative evidence for the effectiveness and complementary contributions of the individual components, further validating the rationality and overall design of the proposed diagnostic framework.
6.5. Validation on an Additional DGA Dataset
To further evaluate the overall performance of the proposed IAOO-SVM-AdaBoost method for transformer fault diagnosis, three representative models, namely PSO-RF, COA-ELM, and PSO-CNN-BiLSTM-Attention, were selected for comparative experiments. The experimental dataset was constructed by combining the publicly available DGA fault dataset [39] with a subset of normal-operation samples reported in [40], as the original public DGA dataset does not contain samples corresponding to normal transformer operation. To ensure a fair comparison, all models were evaluated using the same feature set and identical training–test data partitions. TLR-WSMOTE was applied to address the class-imbalance problem, and each model was independently evaluated over 10 repeated runs. The resulting diagnostic performance and training time are summarized in Table 9.
Table 9.
Performance comparison of different models on the additional DGA dataset.
In terms of diagnostic performance, the proposed IAOO-SVM-AdaBoost achieved the best overall results, with a mean accuracy of 94.24%, a macro-averaged precision of 94.88%, and a macro-averaged recall of 94.24%. These values outperform those obtained by PSO-RF (93.18%), PSO-CNN-BiLSTM-Attention (92.73%), and COA-ELM (81.21%). Although COA-ELM exhibited the shortest training time, requiring only 0.90 s per run, its diagnostic performance was substantially inferior to that of the other models, indicating limited classification capability for transformer fault diagnosis. PSO-RF and PSO-CNN-BiLSTM-Attention also achieved competitive diagnostic performance; however, both incurred considerably higher computational costs, with average training times of 1141.43 s and 1059.56 s per run, respectively. In contrast, the proposed IAOO-SVM-AdaBoost achieved the highest diagnostic performance with a training time of only 19.07 s, demonstrating a favorable balance between diagnostic accuracy and computational efficiency.
The standard deviations further indicate that IAOO-SVM-AdaBoost and PSO-CNN-BiLSTM-Attention exhibited relatively small fluctuations across repeated runs, suggesting good robustness and stability. In comparison, PSO-RF and COA-ELM showed relatively larger standard deviations, indicating greater sensitivity to variations in the data partitioning. Overall, the comparative results demonstrate that IAOO-SVM-AdaBoost is well suited to transformer DGA fault diagnosis, achieving superior diagnostic performance while substantially reducing the computational cost.
6.6. Computational Complexity and Runtime Analysis
To comprehensively evaluate the computational overhead of the proposed TLR-WSMOTE-IAOO-SVM-AdaBoost fault-diagnosis framework, both theoretical asymptotic time-complexity derivation and practical runtime measurement experiments are carried out in this section. The complete diagnostic pipeline is decomposed into individual functional modules for theoretical complexity analysis. All runtime tests are implemented under unified hardware conditions: CPU: Intel-i7-10750H, RAM: 16 GB, and software: MATLAB R2024a. Each timing experiment is independently repeated 10 times, and the average runtime is recorded to eliminate timing errors caused by program random fluctuations.
6.6.1. Theoretical Asymptotic Time-Complexity Analysis
- (1)
- TLR denoising module
The TLR algorithm calculates pairwise Euclidean distances among all samples to identify Tomek link sample pairs for screening boundary-noise samples. Its theoretical asymptotic time complexity is expressed as follows:
where denotes the total number of training samples.
- (2)
- WSMOTE weighted oversampling module
The WSMOTE algorithm consists of two computational phases. The first phase calculates nearest-neighbor distances to compute boundary-relevance weights by measuring distances from minority-class samples to majority-class samples. The second phase generates synthetic minority-class samples via weighted linear interpolation. The computational complexity of searching k-nearest neighbors for minority-class samples is , and the computational cost of sample generation is linearly proportional to the total number of synthetic samples, . Accordingly, the overall theoretical complexity of WSMOTE is formulated as follows:
where denotes the number of minority-class samples and represents the number of synthetic samples generated by the algorithm.
- (3)
- Meta-heuristic optimization module (PSO, GWO, DBO, AOO, IAOO)
For population-based meta-heuristic algorithms, the major computational overhead arises from iterative population updating and fitness-function evaluation. In this work, the fitness function corresponds to the 5-fold cross-validation training of SVM. The unified baseline asymptotic complexity for all population-based optimizers is written as
where denotes the computational cost of a single fitness evaluation via 5-fold cross-validation of SVM; denotes the population size of metaheuristic algorithms; and denotes the maximum number of iterations.
For PSO, GWO, DBO and original AOO, only basic population-individual position-update operations are performed in each iteration.
By contrast, IAOO introduces extra computational overhead from two components: population initialization using Latin hypercube sampling (LHS), and candidate-solution generation operators of the Thinking Innovation Strategy (TIS). Therefore, the per-iteration theoretical overhead of IAOO is slightly higher than that of original AOO. Nevertheless, the TIS accelerates the optimization convergence. For the practical SVM hyperparameter-search task, it can reduce the number of effective iterations and partially offset the extra per-iteration overhead in engineering applications.
- (4)
- SVM-AdaBoost ensemble classification module
AdaBoost iteratively trains K ECOC multi-class SVM weak classifiers. The training asymptotic complexity of a single ECOC-SVM model is approximately . The theoretical time complexity of the entire AdaBoost ensemble module is given by the following:
where stands for the number of weak classifiers within the AdaBoost ensemble.
6.6.2. Practical Runtime-Measurement Experiments
Two groups of comparative timing experiments are designed with identical hardware environments, raw datasets and hyperparameter configurations:
- Component-level decomposition timing test. The average runtime of each individual component, including TLR denoising, WSMOTE weighted oversampling, IAOO hyperparameter optimization, and AdaBoost-SVM ensemble training, is measured to locate the primary computational bottleneck of the whole diagnostic pipeline.
- Cross-comparison of runtime among different meta-heuristic algorithms. With a fixed population size of and a maximum iteration number of , the fitness function and training dataset remain completely consistent. The practical computational overhead of the complete optimization workflow is compared among PSO, GWO, DBO, the original AOO and the proposed IAOO.
Table 10 summarizes the decomposed runtime results of each functional component. The average total runtime of the complete diagnostic pipeline reaches 19.30 s. The runtimes of the TLR denoising module and the WSMOTE weighted oversampling module are 0.05 s and 0.04 s, respectively, which jointly account for only 0.47% of the total runtime. Although the theoretical asymptotic complexity of TLR is , the computational overhead of preprocessing modules is negligible under the dataset scale adopted in this work. The IAOO hyperparameter optimization module consumes 16.98 s, accounting for up to 87.96% of the total runtime, which constitutes the primary computational bottleneck of the entire framework. Such high computational cost originates from numerous fitness evaluations based on SVM 5-fold cross-validation. The training of the AdaBoost-SVM ensemble takes 1.86 s, occupying 9.63% of the total runtime, and its computational burden is considerably lower than that of the optimization phase.
Table 10.
Average runtime of each functional component.
The experimental results demonstrate that the computational burden of the proposed model is highly concentrated in the meta-heuristic hyperparameter optimization stage. Future lightweight optimization should give priority to the IAOO workflow. An early-stopping criterion can be introduced to eliminate redundant fitness evaluations. By contrast, the TLR-WSMOTE data-balancing module and the AdaBoost ensemble module possess relatively low optimization priorities.
Table 11 summarizes the runtime comparison among different meta-heuristic optimizers under identical hyperparameter search settings. The average runtime of IAOO reaches 5.52 s, which is slightly higher than that of PSO, GWO, DBO and original AOO. The modest extra overhead mainly originates from the Latin hypercube sampling initialization and the Thinking Innovation Strategy (TIS) candidate-solution generation operator.
Table 11.
Runtime comparison of different meta-heuristic algorithms.
It should be emphasized that runtime only reflects the computational cost of a complete optimization loop. As illustrated in Figure 8, IAOO achieves faster convergence and can obtain higher-quality hyperparameter solutions. Therefore, there exists a trade-off between computational overhead and optimization performance. The slight increase in runtime is acceptable in return for better global search capability and higher diagnostic accuracy.
7. Conclusions
To address the challenges of class imbalance, hyperparameter selection, and classification robustness in transformer DGA fault diagnosis, this study proposed a hybrid fault diagnosis framework integrating TLR-WSMOTE, IAOO, SVM, and AdaBoost. The main conclusions are summarized as follows.
- (1)
- The proposed TLR-WSMOTE strategy effectively improves the quality and balance of the training data. By combining Tomek link removal with weighted oversampling, overlapping or boundary samples are reduced while minority-class samples are selectively synthesized. Experimental results show that TLR-WSMOTE achieves an accuracy of 98.33% and a Kappa coefficient of 0.98, compared with 84.00% and 0.81 obtained from the original imbalanced data, respectively.
- (2)
- The proposed IAOO improves the original AOO by incorporating Latin hypercube sampling and the Thinking Innovation Strategy. The benchmark experiments demonstrate its competitive optimization performance and stability on the selected CEC2022 functions. IAOO is further applied to optimize the SVM penalty factor and kernel parameters, providing an effective data-driven parameter selection mechanism for the diagnostic model.
- (3)
- The integration of optimized SVM weak classifiers through AdaBoost further improves the diagnostic performance of the proposed framework. The ablation experiments show that removing or replacing TLR, WSMOTE, IAOO, or AdaBoost results in a certain degree of performance degradation, confirming the complementary contributions of these components to the overall framework.
- (4)
- Comparative experiments demonstrate that the proposed IAOO-SVM-AdaBoost achieves competitive diagnostic performance while maintaining a relatively low computational cost. In particular, compared with computationally intensive models such as PSO-RF and PSO-CNN-BiLSTM-Attention, the proposed method provides a more favorable balance between diagnostic performance and training efficiency.
- (5)
- The independent DGA dataset validation further demonstrates the generalization capability of the proposed method. Across 10 repeated runs, IAOO-SVM-AdaBoost achieved a mean accuracy of 94.24%, a macro-averaged precision of 94.88%, and a macro-averaged recall of 94.24%, with an average training time of 19.07 s. These results indicate that the proposed framework maintains competitive diagnostic performance on an independent dataset rather than only on the dataset used for the primary experiments.
Overall, the proposed TLR-WSMOTE-IAOO-SVM-AdaBoost framework provides an effective approach for transformer DGA fault diagnosis by jointly addressing data imbalance, hyperparameter optimization, and classification robustness. Future work will focus on incorporating multi-source transformer monitoring data, developing lightweight model structures, and investigating deployment strategies for practical field applications.
Author Contributions
Conceptualization, Y.Z. and J.W.; methodology, Y.Z.; software, J.W.; validation, Y.Z., J.W. and B.Z.; formal analysis, J.W.; investigation, J.W.; resources, B.Z.; data curation, B.Z.; writing—original draft preparation, J.W.; writing—review and editing, Y.Z.; visualization, J.W.; supervision, Y.Z.; project administration, Y.Z.; funding acquisition, Y.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The datasets supporting the transformer fault diagnosis experiments in this study were obtained from the sources reported in References [34,35,36]. The dataset in Reference [35] is publicly available at the GitHub repository: [https://github.com/Saleh860/DGA] accessed on 1 August 2026. The datasets reported in References [34,36] are provided in the appendices of the corresponding master’s theses.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AOO | Animated Oat Optimization |
| ANN | Artificial Neural Network |
| DGA | Dissolved Gas Analysis |
| DOK | Depth of Knowledge |
| IAOO | Improved Animated Oat Optimization |
| IE | Information Event |
| IM | Imagination |
| LHS | Latin Hypercube Sampling |
| SMOTE | Synthetic Minority Oversampling Technique |
| SVM | Support Vector Machine |
| TIS | Thinking Innovation Strategy |
| TLR | Tomek Link Removal |
| WSMOTE | Weighted Synthetic Minority Oversampling Technique |
References
- Faiz, J.; Soleimani, M. Dissolved gas analysis evaluation in electric power transformers using conventional methods a review. IEEE Trans. Dielectr. Electr. Insul. 2017, 24, 1239–1248. [Google Scholar] [CrossRef] [Scilit]
- Cai Chen, H.; Zhang, Y. Dissolved Gas Analysis Using Knowledge-Filtered Oversampling-Based Diverse Stack Learning. IEEE Trans. Instrum. Meas. 2025, 74, 2505211. [Google Scholar] [CrossRef] [Scilit]
- Wani, S.A.; Khan, S.A.; Prashal, G. Smart Diagnosis of Incipient Faults Using Dissolved Gas Analysis-Based Fault Interpretation Matrix (FIM). Arab J. Sci. Eng. 2019, 44, 6977–6985. [Google Scholar] [CrossRef] [Scilit]
- Yan, P.C.; Wang, J.; Wang, W.; Li, G.; Zhao, Y.; Wen, Z. Transformer Fault Diagnosis Based on DBO-BiLSTM Algorithm and LIF Technology. Meas. Sci. Technol. 2024, 35, 115202. [Google Scholar] [CrossRef] [Scilit]
- Rogers, R.R. IEEE and IEC codes to interpret incipient faults in transformers, using gas in oil analysis. IEEE Trans. Electr. Insul. 1978, EI-13, 349–354. [Google Scholar] [CrossRef] [Scilit]
- Duval, M.; Depabla, A. Interpretation of gas-in-oil analysis using new IEC publication 60599 and IEC TC 10 databases. IEEE Electr. Insul. Mag. 2001, 17, 31–41. [Google Scholar] [CrossRef] [Scilit]
- Selim, F.F.; Hassan, M.A.; Azmy, A.M.; Atiya, E.G. Graphical shape in cartesian plane based on dissolved gas analysis for power transformer incipient faults discrimination. IEEE Trans. Dielectr. Electr. Insul. 2025, 32, 589–597. [Google Scholar] [CrossRef] [Scilit]
- Al-Sakini, S.R.; Bilal, G.A.; Sadiq, A.T.; Al-Maliki, W.A.K. Dissolved gas analysis for fault prediction in power transformers using machine learning techniques. Appl. Sci. 2024, 15, 118. [Google Scholar] [CrossRef] [Scilit]
- Song, Y.; Wang, R.; Wang, J.; Lin, B.; Xie, C. GCS-EN-SCNs-wd: A generalized class-specific cost-sensitive mechanism to regulate stochastic configuration networks with direct link for transformer fault diagnosis. Meas. Sci. Technol. 2025, 36, 086137. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Wang, Y.-C.; Zhao, H.-S. Power transformer fault diagnosis method based on AdaBoost.M2-ISSA-ELM algorithm. Power Autom. Equip. 2024, 44, 205–211. [Google Scholar]
- Sun, S.-M.; Cen, H.-X.; Bai, J.-M. Transformer fault diagnosis method based on ensemble SAO optimized cross-correntropy extreme learning machine. Electr. Meas. Instrum. 2024, 61, 56–64. [Google Scholar]
- Zhou, Y.; Yang, X.; Tao, L.; Yang, L. Transformer fault diagnosis model based on improved gray wolf optimizer and probabilistic neural network. Energies 2021, 14, 3029. [Google Scholar] [CrossRef] [Scilit]
- Mi, X.; Subramani, G.; Chan, M. The application of RBF neural network optimized by K-means and genetic-backpropagation in fault diagnosis of power transformer. E3S Web Conf. 2021, 242, 03002. [Google Scholar] [CrossRef] [Scilit]
- Lu, T.; Ma, H.; Zhang, Y.; Qin, X. Fault diagnosis of power transformer based on KPCA-RF. In Proceedings of the IEEE International Conference on Signal Processing, Zhuhai, China, 22–24 November 2024; pp. 1698–1702. [Google Scholar]
- Haque, N.; Jamshed, A.; Chatterjee, K.; Chatterjee, S. Accurate sensing of power transformer faults from dissolved gas data using random forest classifier aided by data clustering method. IEEE Sens. J. 2022, 22, 5902–5910. [Google Scholar] [CrossRef] [Scilit]
- Xie, G.; Lin, X. Transformer fault diagnosis method based on improved SSA optimized MDS-SVM. Control Decis. 2023, 38, 459–467. [Google Scholar]
- Ahmadi, S.-A.; Sanaye-Pasand, M. A robust multi-layer framework based on ANN for online condition assessment of power transformers. IEEE Trans. Power Del. 2022, 37, 947–954. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Han, T. Transformer fault diagnosis based on Bayesian optimized random forest. Electr. Meas. Instrum. 2021, 58, 167–173. [Google Scholar]
- Fu, H.; Liu, Y. Research on transformer fault diagnosis based on IGJO optimized SVM. In Proceedings of the IEEE International Conference on Measurement and Signal Processing, Chengdu, China, 19–21 May 2023; pp. 627–630. [Google Scholar]
- Zhou, L.; Fu, Z.; Li, K.; Wang, Y.; Rao, H. Power transformer fault diagnosis based on random forest and improved particle swarm optimization–backpropagation–AdaBoost. Electronics 2024, 13, 4149. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.; Yang, K.; Zheng, L. Transformer Fault Diagnosis Method Based on Times Net and Informer. Actuators 2024, 13, 74. [Google Scholar] [CrossRef] [Scilit]
- Lin, Y.; Yeo, L.Y.; Afrouzi, H.N.; Ektesabi, M.M.; Tavalaei, J. From limited data to reliable diagnosis: An interpretable deep learning framework for transformer fault analysis. Int. J. Electr. Power Energy Syst. 2025, 172, 111227. [Google Scholar] [CrossRef] [Scilit]
- Shang, L.; Meng, X.; Tian, Y.; An, D. Transformer Fault Diagnosis Based on IEVO-CNN With GAN-VAE Data Augmentation. IEEE Trans. Instrum. Meas. 2025, 74, 3537615. [Google Scholar] [CrossRef] [Scilit]
- Lv, X.; Liu, F.; Jiang, M.; Zhang, F.; Jia, L. Fault Diagnosis of Power Transformers Based on Dissolved Gas Analysis and Multi-Kernel Graph Convolution Network Integrated with Dual-Channel Classifiers. J. Appl. Sci. Eng. 2025, 28, 2217–2226. [Google Scholar]
- Li, Y.; Jia, Z.; Zhao, Y. RMT: A robust multi-scale transformer network for power transformer fault diagnosis. Int. J. Inf. Technol. Syst. Approach 2026, 19, 400273. [Google Scholar]
- Lin, J.; Li, Y.; Fang, Q.; Liu, Z.; Li, C.; Zhang, G. Construction and application of multi-agent large language model for power transformer fault diagnosis. J. Xi’an Jiaotong Univ. 2025, 59, 22–31. [Google Scholar]
- Wang, J.; Song, Q.; Qian, L.; Li, H.; Peng, Q.; Zhang, J. SubstationAI: Multimodal large model-based approaches for analyzing substation equipment faults. arXiv 2024, arXiv:2412.17077. [Google Scholar]
- Zhang, J.; Zhang, X.; Ma, J.; Yu, B.; Han, T.; Ji, R. Review of the fault diagnosis technology for new power systems (Part II): Machine learning and large language model techniques. Exp. Technol. Manag. 2025, 42, 54–70. [Google Scholar]
- Li, H.; Zhang, Y.; Zhang, Y. Study of transformer fault diagnosis based on improved sparrow search algorithm optimized support vector machine. J. Electron. Meas. Instrum. 2021, 35, 123–129. [Google Scholar]
- Huang, X.; Huang, X.; Wang, B.; Xie, Z. Fault diagnosis of transformer based on modified grey wolf optimization algorithm and support vector machine. IEEJ Trans. Electr. Electron. Eng. 2020, 15, 409–417. [Google Scholar] [CrossRef] [Scilit]
- Zhu, M.W.; Fu, B.R.; Yang, H.S. Research on failure detection such as high-pressure pipeline puncture and fracture based on GA-improved SVM algorithm. China High New Technol. 2024, 15, 48–50. [Google Scholar]
- Illias, H.A.; Liang, W.Z. Identification of transformer fault based on dissolved gas analysis using hybrid support vector machine-modified evolutionary particle swarm optimisation. PLoS ONE 2018, 13, e0191366. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, R.B.; Hu, R.B.; Geng, F.D.; Xu, L.; Chu, S.-C.; Pan, J.-S.; Meng, Z.-Y.; Mirjalili, S. The animated oat optimization algorithm: A nature-inspired metaheuristic for engineering optimization and a case study on wireless sensor networks. Knowl. Based Syst. 2025, 318, 113589. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Awang, N. MKC-SMOTE: A novel synthetic oversampling method for multi-class imbalanced data classification. IEEE Access 2024, 12, 196929–196938. [Google Scholar] [CrossRef] [Scilit]
- Yusoff, M.; Mahmud, Y.; Azmi, P.A.R.; Fofana, I.; Paramane, A. Improvement of SMOTE-ENN-XGBoost based on Yeo-Johnson strategy on dissolved gas analysis datasets. Energy Rep. 2025, 13, 6281–6290. [Google Scholar] [CrossRef] [Scilit]
- Rajesh, K.N.V.P.S.; Rao, U.M.; Fofana, I.; Rozga, P.; Paramane, A. Influence of data balancing on transformer DGA fault classification with machine learning algorithms. IEEE Trans. Dielectr. Electr. Insul. 2023, 30, 385–392. [Google Scholar] [CrossRef] [Scilit]
- Luo, B.W.; Tan, J.J.; Feng, J.Q. Self-organizing map optimized k-means clustering synthetic minority oversampling algorithm and its application. J. Guangxi Univ. (Nat. Sci. Ed.) 2025, 50, 679–689. [Google Scholar]
- Mei, T. Research on Power Transformer Fault Diagnosis Method Based on Improved ISOMAP and WkNN. Master’s Thesis, XiHua University, Chengdu, China, 2020. [Google Scholar]
- Ibrahim, S.I.; Ghoneim, S.S.M.; Taha, I.B.M. DGALab: An Extensible Software Implementation for DGA. IET Gener. Transm. Distrib. 2018, 12, 4117–4124. [Google Scholar] [CrossRef] [Scilit]
- Yin, J.L. Research on Fault Diagnosis Method for Oil-Immersed Power Transformer Based on Relevance Vector Machine. Master’s Thesis, North China Electric Power University, Beijing, China, 2013. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















