Next Article in Journal
Evaluating the Clinical Utility of Robotic Systems in Plastic and Reconstructive Surgery: A Systematic Review
Previous Article in Journal
Simulative Analysis of Stimulated Raman Scattering Effects on WDM-PON Based 5G Fronthaul Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fault Diagnosis of Switching Power Supplies Using Dynamic Wavelet Packet Transform and Optimized SVM

School of Intelligent Manufacturing and Control Engineering, Shanghai Polytechnic University, Shanghai 201209, China
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(10), 3236; https://doi.org/10.3390/s25103236
Submission received: 10 March 2025 / Revised: 3 May 2025 / Accepted: 12 May 2025 / Published: 21 May 2025
(This article belongs to the Section Fault Diagnosis & Sensors)

Abstract

:
Switch mode power supplies (SMPSs) are prone to various faults under complex operating environments and variable load conditions. To improve the accuracy and reliability of fault diagnosis, this paper proposes an intelligent diagnosis method based on Dynamic Wavelet Packet Transform (DWPT) and Improved Artificial Bee Colony Optimized Support Vector Machine (APABC-SVM). First, an adaptive wavelet packet decomposition mechanism is used to refine the time–frequency feature extraction of the signal to improve the feature differentiation. Then, a dynamic window statistics method is introduced to construct comprehensive dynamic feature vectors to capture the transient changes in fault signals. Finally, the APABC is used to optimize the SVM classifier parameters to improve the classification performance and avoid the local optimum problem. The experimental results show that the method achieves an average accuracy of 99.091% in the complex fault diagnosis of switching power supplies, which is 21.8 percentage points higher than that of the traditional spectrum analysis method (77.273%). This study provides an efficient solution for the accurate diagnosis of complex fault modes in switching power supplies.

1. Introduction

As a critical component of modern electronic equipment, the stability and reliability of power supplies directly affect the operating efficiency of the entire system [1]. However, under a complex operating environment and variable load conditions, SMPSs may suffer from various failures [2], such as aging of semiconductor devices, short circuits, errors in control algorithms, and so on [2,3,4]. These failures can lead to degradation of equipment performance or even complete failure. Therefore, timely and accurate fault diagnosis and maintenance of SMPSs are of great importance to ensure the normal operation of the system.
One paper presented a new approach to nuclear power plant (NPP) fault detection and classification using wavelet transform-based artificial neural networks (ANNs). Firstly, 10 design basis accidents (DBAs) of VVER-1000 containing 15 input parameters were simulated using a multilayer perceptron (MLP) neural network and a resilient backpropagation (RBP) algorithm. Then, the time-shift properties and multi-resolution analysis properties of the wavelet transform were introduced to reduce the disturbing noise in the input training set data. The artificial neural network and wavelet transform were simulated using MATLAB R2022b software. The results show that the method improves the accuracy and speed of fault detection with high robustness [5].
To solve the problem of hard and soft fault diagnosis of active power factor correction (APFC) power supplies, another study analyzed failure modes due to the aging and failure of various sensitive components. The power supply fault waveform patterns were first analyzed based on the total harmonic distortion (THD), current ripple, and RMS of the circuit. Then, inductor current signals under various failure modes were utilized to extract and construct time–frequency fusion fault characteristics of the APFC power supply. Finally, these features were down-converted and optimized using RF algorithms. The SOA-KELM model of the APFC converter was proposed, and the feature vectors under different fault modes were utilized for fault classification and diagnosis to achieve hard and soft fault detection of the converter. The experiments showed that the method achieves 100% hard fault diagnosis accuracy and 96.36% soft fault diagnosis accuracy for the converter, which is a high diagnosis accuracy [6].
In recent years, model-based fault detection (MBFD) methods have faced diagnostic risks from multiple sources of uncertainty, such as modeling errors, measurement errors, and operational disturbances. To this end, Liao et al. constructed a risk-aware MBFD analysis framework for multilevel converters, quantitatively evaluated the probability of misdiagnosis using Monte Carlo analysis, and introduced a disturbance observer (DOB) to compensate for system parameter deviations online to achieve the robust detection of IGBT open-circuit faults. The method has strong theoretical support and practical accuracy advantages and is suitable for use in systems with clear modeling and well-developed sensors, but there are limitations in applying it to power-type systems that lack models or are difficult to calibrate [7].
The vector-constrained fault-tolerant control (FTC) method proposed in [8] is mainly applied to the operation control of single-phase cascaded H-bridge multilevel converters (CHBMCs) under open-circuit fault scenarios. The method realizes the dynamic adjustment of the voltage of healthy battery cells through online vector calculation and constraint mechanisms so as to achieve fault-tolerant operation without increasing hardware and to ensure the DC voltage balance and low harmonic output of the grid current. Its advantages are that it is insensitive to voltage level, has good scalability and real-time performance, and is especially suitable for medium- and high-voltage scenarios. However, the control strategy of this method is complicated, depends on the accurate estimation of the system state, and lacks the ability of self-adaptation and self-learning, which makes it difficult to maintain the optimal performance under the frequently changing operating conditions.
To balance the physical interpretability of model-driven methods with the strong robustness of data-driven methods, a hybrid fault detection method based on model–data fusion has been proposed. The method uses system models and historical data to jointly construct a hybrid estimator, which in turn achieves effective monitoring of sensor and actuator faults and adapts to new fault scenarios by self-updating the dataset. Experimental validation of the method on vehicle lateral acceleration sensors and motors has demonstrated its strong environmental adaptability and generalizability. However, its implementation architecture is relatively complex and places high demands on model accuracy and parameter calibration, making it difficult to deploy on low-cost devices [9].
The dynamic adaptability of feature extraction is insufficient [10,11,12]; unified methods mostly adopt fixed-parameter feature decomposition strategies, which have difficulty in effectively capturing the time-varying characteristics of fault signals under complex operating conditions [13,14]. The parameter optimization of classification algorithms is inefficient. Swarm intelligence algorithms tend to fall into local optimization, which affects the ability to discriminate multiple types of faults [15]; in addition, the reliability of multi-fault coupled diagnosis is weak [16,17,18], and the existing feature system has limited ability to characterize the scenarios of simultaneous occurrence of hard/soft faults, resulting in a high misdiagnosis rate [19].
In recent years, deep neural networks (DNNs) have been widely used in fault diagnosis due to their strong automatic feature extraction capabilities. However, such methods typically require a large number of labeled samples for training and are prone to overfitting when data are limited or expensive to obtain. In contrast, Support Vector Machines (SVMs) show stable performance in small sample scenarios, offer fast training speed, and have a simple model structure, making them suitable for use on resource-constrained devices such as embedded controllers. Therefore, this study combines Dynamic Wavelet Packet feature extraction with an Improved Artificial Bee Colony (ABC) algorithm Optimized SVM model to construct a lightweight algorithm framework suitable for switch power supply fault diagnosis. To address the above bottlenecks, we propose an intelligent diagnosis method that integrates Dynamic Wavelet Packet and Improved Swarm Support Vector Machine: (1) an adaptive wavelet packet decomposition mechanism is designed to dynamically optimize the time–frequency feature extraction process; (2) the artificial swarm algorithm is improved to enhance the parameter optimization efficiency of the Support Vector Machine.

2. Materials and Methods

2.1. Fault Set Acquisition

In this paper, a phase-shifted full-bridge (PSFB) DC-DC converter is selected as the object of study. This topology is widely used in medium- and high-power switching power supplies due to its strong control flexibility, high conversion efficiency, and high transformer utilization. The PSFB converter is highly representative due to the frequent on–off operations of the switching devices during operation, which places higher requirements on the timing identification capability and high-frequency dynamic response in fault diagnosis. Compared with the traditional buck, boost, and other simple topologies, the PSFB converter fault mode is more complex, especially when the main switching devices have short-circuit or open-circuit and other transient faults, where the impact on system operation is more significant. Although the same power device failure problem exists in other topologies, their waveform characteristics and fault propagation paths are significantly different, making it difficult to directly reuse the same set of diagnostic methods. Therefore, the selection of a PSFB converter as a research object is not only challenging but also has high research value and practical application significance.
This experiment uses a phase-shifted full-bridge switching power supply development board as the module to be tested; the power module primary side of the phase-shifted full-bridge structure uses low-voltage input and output methods. The full-bridge topology switching power supply core lies in the four switching tubes alternating conduction and high-frequency transformer energy transfer [20,21,22]—this is the secondary use of the center-tap full-wave rectifier, with the development of the board’s topology as shown in Figure 1.
A Tektronix MDO3054 oscilloscope from Tektronix, Germany was utilized in the experimental design to accurately capture the excitation response waveforms of the experimental circuits at the output end, and the waveform data were stored with the help of a USB (Lenovo, Fuzhou, China); drive. The experimental signal data acquisition environment and data acquisition flow of this section of the experiment are shown in Figure 2.
The system is in a fault-free operation in the interval where the variation in the parameter values of the circuit components is within 20%, while the system enters the fault phase when the variation is outside the 20% range. According to the failure mode shown in the figure, the test point is the change in voltage value at the output.
The present study focuses on the modeling and identification of typical failure modes. In the process of fault modeling, priority is given to the selection of key devices that have a large impact on the output waveform and high diagnostic value for fault injection. Specifically, diode D2 is in the continuity loop, its failure probability is low, and it is usually designed with a certain degree of redundancy in various control strategies. Consequently, no faults are set for it in this study. As a passive device, the performance changes of inductor L are mostly manifested as slow aging rather than sudden failures. Furthermore, its impact on the short-term response waveforms is limited. Thus, it is not included in the scope of this fault modeling.
For the primary switching components, while Q2 and Q4 are also pivotal switching elements analogous to Q1 and Q3, they form diagonally symmetric bridge arms within the phase-shifted full-bridge configuration. These components exhibit remarkably symmetrical turn-on logics, conduction pathways, and duty cycle regulation. In the empirical test, it was ascertained that the output response of Q2 and Q4 faults is highly analogous to that of Q1 and Q3 faults, and the distribution in the feature space exhibits a greater degree of overlap. In the event that Q2 and Q4 faults are configured concurrently within the sample set, there will be a substantial augmentation in the inter-class overlap. This, in turn, will result in escalated challenges during model training, the introduction of diagnostic bias, and a concomitant reduction in overall classification performance. Consequently, the short-circuit faults of Q1 and Q3 are selected as the representative fault modes in this paper. This ensures the stability and generalization ability of the model while taking into account the fault coverage and feature separability. The failure mode codes are enumerated in Table 1.
According to the classification of the failure modes of the experimental circuit, Figure 3 shows the output waveform data obtained from the experimental circuit in the no-fault state and ten fault states. The response signal is obtained by taking the acquired waveform data with a period of 5 s.

2.2. Fault Feature Extraction Method

In this paper, multi-scale decomposition is performed based on adaptive Dynamic Wavelet Packet Transform, and time–frequency fusion features are constructed by combining sliding window statistics such as mean, variance, kurtosis, etc., which can effectively take into account the local time-domain variations in the signals and the global frequency-domain characteristics. The feature extraction method shows strong sensitivity to the transient disturbances and high-frequency abnormal responses commonly found in switching power supplies, and at the same time has good noise immunity and robustness, which helps to improve the accuracy of fault identification and the stability of the model. Compared with the traditional fixed-parameter wavelet transform method, the proposed DWPT has obvious advantages. Its decomposition depth and node selection have adaptive ability, and the structure is dynamically adjusted according to the actual spectrum of the signal, which can better capture the transient characteristics of the fault signal; moreover, DWPT has better time–frequency localization, which can still maintain a higher resolution when dealing with non-smooth signals and significantly improves the feature expression ability and diagnostic accuracy of the subsequent classification model.
This study makes innovative improvements in the feature extraction stage and constructs a more comprehensive fault feature vector by combining wavelet packet decomposition and dynamic feature extraction to improve the accuracy and robustness of fault diagnosis.

2.2.1. Feature Extraction with Wavelet Packet Decomposition

(1)
Banding for wavelet packet decomposition
A multilevel wavelet packet decomposition technique is implemented on the target voltage signal using the db4 type in Daubechies wavelet. With the help of the three-level decomposition technique, the original signal is accurately divided into eight independent frequency bands, and each node signal represents the local features of a specific frequency band, which can capture the fault features more effectively.
(2)
Node energy feature extraction
The energy is calculated for each node obtained by decomposing the wavelet packet [23] according to the following formula:
E i = n = 1 N ( w p i ( n ) ) 2
where N is the length of the node signal, i is the node number, and w p i is the wavelet packet coefficient. These node energies reflect the strength information of the signals in different frequency bands and help to identify different failure modes.

2.2.2. Dynamic Feature Extraction

To capture the time-varying characteristics and dynamic trends of the signal, the sliding window method is introduced to calculate the dynamic characteristics, including the dynamic mean and dynamic standard deviation. This method is able to reflect the variation in the statistical characteristics of the signal in a local time range, which helps to identify small error characteristics.
(1)
Sliding window settings
The window size W is set to 100 and the step size S to 50 according to the signal length and sampling frequency.
(2)
Dynamic Mean Calculation
The sliding window method extracts the statistical characteristics of the local signal within each window, such as mean, standard deviation, peak value, etc., by setting a fixed-length window on the time series signal and gradually sliding it. This method can effectively reflect the energy fluctuation, the degree of mutation and the dynamic characteristics of the signal in the local time period, thus realizing the real-time detection and quantification of abnormal events in non-stationary signals, which is especially effective in identifying the transient characteristics of disturbances.
The dynamic average within each window is calculated using the following formula:
μ k = 1 W j = 1 W w p i j + k 1 · S
where k is the window number and w p i is the signal at the ith node. The dynamic mean reflects the local trend of the signal amplitude.
(3)
Dynamic standard deviation calculation
Within each window, the following equation is used to calculate the dynamic standard deviation:
σ k = 1 W j = 1 W ( w p i j + k 1 · S μ k ) 2
The dynamic standard deviation reflects the degree of variation in the signal over a localized period of time and is effective in capturing anomalous changes.
(4)
Skewness calculation
Skewness [24,25], as a statistical measure of deviation from the symmetry of a probability distribution, is designed to quantify the degree of asymmetry of the distribution pattern and to reveal the extent and direction of its deviation from the ideal symmetric distribution. Its mathematical definition is:
S k = E X μ 3 σ 3
where X is the random variable, mean is μ, the standard deviation is σ, and E is the expectation operation. The positive skewness distribution has a longer tail on the right side and the data are concentrated on the left side, indicating the presence of more high-value outliers. Negative skewness has a longer tail on the left side of the distribution and the data are concentrated on the right side, indicating the presence of more low-value outliers. Zero skewness is symmetrically distributed. By analyzing the change in skewness, the type of error and its effect on the signal distribution can be identified.
(5)
Kurtosis calculation
Kurtosis is a statistic that describes the sharpness of a probability distribution or the thickness of the tails [26,27] and is a measure of the steepness of the peaks of the distribution. It is mathematically defined as
k K = E X μ 4 σ 4 3
where minus 3 is used to make the kurtosis of the normal distribution 0. A high kurtosis distribution with steep peaks and thicker tails indicates that there are more extreme values in the data; the low kurtosis distribution has a smooth peak and thinner tails, indicating a more even distribution of the data. Zero kurtosis corresponds to the kurtosis of a normal distribution. Kurtosis can reflect the extreme value characteristics of the signal distribution. Under normal operating conditions of the power supply, the signal kurtosis is low and the distribution is close to normal.

2.2.3. Fault Feature Vector Construction

The node energy features from the wavelet packet decomposition are combined with the dynamic features to construct the final fault feature vector, F:
F = E 0 , E 1 , , E i , μ 1 , μ 2 , , μ k , σ 1 , σ 2 , , σ k , S 1 , S 2 , , S k , k 1 , k 2 , , k K
This feature vector, which integrates the frequency domain and time domain features, can comprehensively reflect the fault information of the signal and improve the accuracy of fault diagnosis.
The features are selected using LASSO to filter out the most useful features for classification. LASSO (Least Absolute Shrinkage and Selection Operator) is a regression method with an L1 regular term, which realizes the automatic screening of redundant or invalid features by constraining some regression coefficients to 0 in feature selection. In this paper, LASSO is used for the dimensionality reduction of extracted high-dimensional statistical feature vectors to improve the performance and stability of the diagnostic system. It not only reduces the computational complexity of the model and the risk of overfitting but also retains the key features that are most discriminative for the classification task.
Figure 4 shows a workflow of the proposed feature extraction method. The raw data are merged with the normalized node energy of wavelet packet decomposition and the features extracted from the dynamic window, and the feature vector and visualization are constructed by t-SNE.

2.3. Troubleshooting Methods

APABC is used to optimize the penalty coefficient C and the kernel function parameter γ of the SVM. They are used to control the error tolerance of the classification hyperplane and the distribution range of the Gaussian kernel, respectively. The classification accuracy of the SVM is used as a fitness function to find the parameter combination that gives the highest classification accuracy. The APABC algorithm flow for SVM optimization is as follows, and the flowchart is shown in Figure 5:
Step 1: initialization phase. Input the feature matrix to initialize the APABC algorithm, including setting the algorithm parameters, initializing the swarm position, and determining the dynamic adjustment factor (AP).
Step 2: guide bee phase. Guide the bees to perform a neighborhood search near the current nectar source location. A dynamic AP neighborhood search strategy is used, and part of the search uses polynomial difference learning to update the bee position. The updated nectar location is used in the following observation bee stage.
Step 3: observing bee phase. Observing bees select the honey source by a roulette based on the information provided by the leader bee. A dynamic AP neighborhood search strategy is used, and part of the search uses polynomial difference learning to further update the nectar source location.
Step 4: scout bee stage. For nectar sources that have not been updated for a long time or have low fitness, scout bees will reset their positions and randomly generate new positions to explore new potential solutions.
Step 5: updating optimization information. Evaluate whether the maximum iteration time has been reached or the system has met the convergence criteria. If the condition is met, the current optimal solution and its fitness value should be output; if the condition is not met, the iteration continues.
Step 6: training the SVM classifier. A multi-classification SVM model with RBF as the kernel is constructed using the penalty factor C optimized by the APABC algorithm and the kernel width γ of the Gaussian kernel function (RBF). The SVM training uses the SMO algorithm to automatically control the number of iterations until convergence, so there is no need to manually set the number of training rounds. The average error is calculated as a performance metric by 5-fold cross-validation after training.
Step 7: prediction and evaluation. Perform prediction on the test set and calculate the confusion matrix and evaluation metrics to evaluate the model performance.
Among them, the APABC algorithm optimizes SVM with the following features.
(1)
Adaptive step-size adjustment strategy
The fixed search step size of the traditional ABC algorithm is prone to over-exploration in the late iteration, which reduces the convergence efficiency. To solve this problem, this paper proposes an adaptive step-size adjustment strategy based on exponential decreasing to balance the algorithm’s global exploration and local exploitation capabilities. By dynamically adjusting the AP factor, it allows the execution of extensive and comprehensive global search in the initial stage, followed by the transition to precise and local search in the later stage, as a way to improve the search efficiency and the quality of the optimal solution. The step factor a(t) decays dynamically with the number of iterations, defined by the formula
A P t = A P max e ln A P min / A P max N I · t
where t is the number of iterations and NI denotes the maximum number of iterations. AP decreases exponentially with time from the initial maximum value and approaches a minimum at t close to NI; amax and amin are the initial and minimum step size coefficients, respectively. T m a x is the maximum number of iterations, and t is the current iteration. This design allows the algorithm to maintain a large step size early (when t is small) to improve the global search capability and to reduce the step size later (as t approaches T m a x ) to improve the local evolution accuracy.
(2)
Global optimal guidance search mechanism
The traditional ABC algorithm’s following bee only relies on random neighboring individuals for the search, ignoring the historical optimal information of the population. Therefore, this paper introduces a global optimal individual guidance mechanism in the following bee stage to speed up convergence. In the following bee stage, the traditional neighborhood search is performed with 70% probability, and the search towards the current fitness optimal individuals is performed with 30% probability.
n e w b e e . P o s i t i o n = x i + θ · x i x k ,   if   rand < 0 . 7 x i + 2 * r a n d · ( x b e s t x i ) ,   otherwise
where x b e s t is the position of the optimally adapted individual in the current population and θ is the adaptive step size coefficient. This strategy preserves the population diversity through the probabilistic hybrid search mode and also uses historical optimal information to guide the population to cluster towards the high-quality solution region.
(3)
Designing exponential mapping fitness functions
A linear fitness function F i is used in a traditional ABC:
F i = 1 1 + f x i
When dealing with high-dimensional complex problems, the range of the objective function value is too large, resulting in insufficient differentiation of the fitness. In this paper, we propose an exponential-function-based adaptation degree calculation method.
F i = exp f ( x i ) M e a n C o s t
where M e a n C o s t is the current objective function mean of the population. The design is normalized to make the distribution of fitness values smoother and to avoid the dominance of extreme values on the selection probabilities.
(4)
Scout Bee Local Reboot Strategy
Traditional scout bees generate new solutions completely randomly, which tends to destroy the discovered potential optimal regions. In this paper, we propose a local restart strategy based on individual history parameters to limit the search area. In the observation bee stage, the searched nectar sources are randomly crossed to learn the most nectar source locations, and the jth = 1,2, …, Nth dimensional component of the new nectar source vector is dynamically generated, i.e.
x j n e w = x j min + r a n d 0 , 1 · x j max x j min
where x j max represents the j-th dimensional component in the optimal nectar source vector and x j min represents the j-th dimensional component in the worst nectar source vector. The method uses stochastic learning of the bee colony, which searches for the worst food source on its neighboring symmetric intervals to efficiently mine the information of its neighboring nectar sources. After three cycles of updating the nectar sources, when the algorithm completes its predetermined maximum iteration period, the global optimal solution is generated as the output. The new solution is generated within the individual history search area, which preserves the local exploitation information and avoids the computational waste caused by the global blind search.

3. Results and Discussion

To ensure a fair comparison of different algorithms, the same circuit structure and operating parameters are uniformly used in the experimental process, including an input voltage set to 24 V, a PWM duty cycle of 50%, and a transformer ratio of 1:1. At the same time, all the fault data are sampled from the same experimental platform with a sampling rate of 10 kHz, and the length of each fault sample is 1024 points, while the feature extraction method and pre-processing process are the same. The feature extraction method is consistent with the pre-processing process. All data processing experiments are performed on the same computer, the MATLAB version is R2022a, the datasets used are 330 sample sets covering 11 typical types, and about one-third of each type is used as a test set for model performance evaluation.

3.1. Fault Feature Extraction

As a comparison experiment, in this section, four different feature extraction strategies are used in parallel to process the acquired excitation response signals of the test points of the experimental circuits, the signal decomposition based on WPT, the signal decomposition based on WT, and the signal decomposition based on FFT. The results of the energy analysis of the four decomposition methods are taken as the key feature indexes of the signals of the test points, and the following diagrams of the experimental circuits for different types of faults are constructed The feature vector system of the experimental circuit for each type of fault mode is constructed as shown in the figure below.
As shown in Figure 6, the weak separation between WT classes, the obvious overlap between DWPT fault categories, and the large intra-class dispersion indicate that the feature differentiation ability is insufficient. The global distribution of the FFT is loose, some of the fault categories are completely mixed, and independent clusters cannot be formed. After the features extracted based on DWPT are downscaled by t-SNE, different fault categories show significant separation in 3D space, and the contour coefficients [28,29] of DWPT are 0.83 and 1.28 with the average intra-class distance, and those of WPT are 0.75 and 1.34. The contour coefficients of DWPT are improved by about 10.67% compared with those of WPT, indicating that its clustering effect is better, and similar samples are tighter and clearer inter-class boundaries. The intra-class distance of DWPT decreases by 4.48%, indicating that the clustering of similar faulty samples is significantly improved. This verifies the improved extraction capability of DWPT for fault-sensitive features from a visualization perspective, and the feature extraction capability of these four methods will be verified with classifiers later.

3.2. Troubleshooting Experiment Results

The samples obtained from the experiments are divided into one-third as the test set and two-thirds as the training set. Four fault diagnosis methods with different classifiers, ABC-SVM, APABC-SVM, SVM, PSO-SVM, and Decision Tree combined with DWPT feature extraction, are compared to evaluate their performance differences in fault diagnosis. The swarm size npop of the APABC algorithm and ABC algorithm is set to 20, and the maximum number of iterations NI is 100 for both. The particle swarm size of the PSO algorithm is set to 20, and the maximum number of iterations is 100. The g and γ of the SVM are set to a constant 1 and 0.5, respectively. The correct rates are obtained as shown in Table 2.
Figure 7a shows the test set classification results of the DWPT + APABC-SVM method for 11 classes of defect patterns (F0–F10). The horizontal axis is the number of test samples, and the vertical axis is the fault category label. The results show that the overall classification accuracy is as high as 99.091%, which verifies the reliability of the method in multi-class fault diagnosis. The separability between fault classes is significant, and the sample points of key faults, such as capacitor aging, MOS tube breakdown, etc., are all tightly clustered in the corresponding class area without cross-class overlap; the sample number F10 simultaneous faults are still accurately classified thanks to the decoupling ability of DWPT for time–frequency coupling features. The diagonal elements of the confusion matrix in Figure 7b account for >98%, indicating that the majority of the predicted categories are consistent with the real categories; the main misclassification is focused on the resistance change, which results from the partial overlap of the frequency bands of the two fault features.
In a comparison of the four different feature extraction methods, DWPT outperforms all classification methods. When combined with APABC-SVM, the accuracy rate is 99.091%, which is significantly better than other feature extraction methods. Even when using the basic classification method, the accuracy rate is still higher than the traditional methods. This is because DWPT is able to adaptively capture the transient features of the signal by dynamically adjusting the number of decomposition levels, which improves the ability to characterize complex fault modes. WPT has the worst performance. The fixed decomposition structure of WPT leads to a weak correlation between features and fault modes, resulting in feature redundancy or information loss, which weakens the classifier’s discriminative ability. It makes APABC-SVM overfitting noise on low-quality feature sets. FFT only provides global frequency domain information and cannot localize the transient features of time-varying faults, so the correct rate is lower. WT performs moderately well. Wavelet transform has time–frequency localization, but the basis function is fixed, which is insufficiently sensitive to high-frequency transient features.
In addition to the accuracy rate, this paper further analyzes the training time and testing time as complementary evaluation metrics, as shown in Table 2. The DWPT + APABC SVM method proposed in this paper achieves excellent overall performance. Although APABC is slightly more computationally intensive, it maintains low training and testing times and achieves the highest classification accuracy, balancing diagnostic accuracy with computational efficiency. In contrast, the traditional SVM performs poorly in terms of diagnostic ability with an accuracy of 72.73%, while the Decision Tree, although fast in testing, has a significantly lower accuracy of 86.364%, showing signs of overfitting. Other classifiers, such as PSO-SVM or Unoptimized SVM, although faster to train, did not have good accuracy.
For different classifiers, APABC-SVM achieves the highest correct rate in DWPT, and the optimization algorithm improves the accuracy by 26.36% compared to the base SVM. The correct rate of ABC-SVM is slightly inferior to that of APABC-SVM, although its performance is excellent, indicating that the improved strategy further enhances the efficiency of parameter optimization. The correct rate of PSO-SVM is 91.818%, indicating that the particle swarm algorithm has certain limitations, easily falls into local optimization, and has weak adaptability to complex feature distribution. The correct rate of the basic SVM is only 72.73%, and its kernel function parameters are fixed, which makes it difficult to adapt to the multi-scale characteristics of dynamic features.
Furthermore, under the same classification framework, different feature extraction methods are compared. The results show that DWPT is the key to improving diagnostic accuracy by providing highly discriminative local time–frequency features. The combination of DWPT and APABC-SVM forms an effective feature–classifier synergy. Traditional methods like FFT + APABC-SVM only reach 77.273% accuracy; even with advanced classifiers, poor feature quality remains a bottleneck.
The experimental results show that the method in this paper demonstrates balanced performance, adaptability, and diagnostic accuracy under the given dataset, verifying its potential for application in the intelligent diagnosis of small samples of power supply faults. The synergistic optimization of feature extraction methods and classifiers is the core of improving fault diagnosis accuracy.

4. Conclusions

This study draws the following innovative conclusions by systematically comparing the combined performance of various feature extraction and classification methods.
At the feature extraction level, DWPT effectively solves the frequency band aliasing problem of traditional static decomposition methods in non-smooth signal processing by introducing an adaptive decomposition mechanism. Experiments show that the method can significantly improve the feature differentiation, improve the contour coefficient by 10.67%, reduce the intra-class distance by 4.48%, and successfully separate the complex failure modes, such as the saturation of the magnetic element and the open circuit of the rectifier bridge, through the time–frequency analysis of the voltage dip signal in the fault diagnosis of switching power supply components. At the classifier optimization level, the proposed APABC-SVM algorithm improves the neighborhood search strategy and dynamically adjusts the selection probability so that the SVM achieves an accuracy of 99.091% in the multi-class fault classification of the switching power supply, which is 26.361% higher than the standard SVM.
DWPT significantly improves the feature quality through adaptive decomposition, which is the key to improving the diagnostic accuracy, and APABC-SVM improves the search strategy to bring the classification performance of SVM close to the theoretical limit. The combination of DWPT and APABC-SVM realizes the closed-loop optimization of “dynamic feature-intelligent classification” and provides a new paradigm for complex fault diagnosis.
Due to experimental limitations, the test set contains a relatively small number of samples per fault type. However, since all algorithms are evaluated under identical conditions, the comparison remains fair. The results confirm that the proposed DWPT + APABC-SVM method maintains high accuracy even with limited data, proving its effectiveness.
Future work will focus on the fusion of multi-physical field signals, such as heat and magnetism, with DWPT to further enrich the feature dimensions and develop lightweight APABC-SVM algorithms to meet the real-time requirements of edge computing devices.

Author Contributions

Conceptualization, J.X. and J.Z.; methodology, J.Z.; software, J.Z.; validation, J.X. and Z.W.; formal analysis, Z.W.; investigation, J.X.; resources, Z.W.; data curation, J.Z.; writing—original draft preparation, J.Z.; writing—review and editing, J.X.; visualization, J.Z.; supervision, Z.W.; project administration, J.X.; funding acquisition, Z.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Data are contained within the article.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author. The data are not publicly available due to privacy restrictions.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SMPSSwitching Mode Power Supply
SVMSupport Vector Machine
DWPTDynamic Wavelet Packet Transform
FFTFast Fourier Transform
WPTWavelet Packet Transform
WTWavelet Transform
PSO-SVMParticle Swarm Optimized Support Vector Machine
APABC-SVMAdaptive Improved Artificial Bee Colony Optimized Support Vector Machine
ABC-SVMArtificial Bee Colony Optimized Support Vector Machine

References

  1. Machowski, J.; Lubosny, Z.; Bialek, J.W.; Bumby, J.R. Power System Dynamics: Stability and Control; John Wiley & Sons: Hoboken, NJ, USA, 2020. [Google Scholar]
  2. Kareem, A.B.; Akpudo, U.E.; Hur, J.W. An Integrated Cost-Aware Dual Monitoring Framework for SMPS Switching Device Diagnosis. Electronics 2021, 10, 2487. [Google Scholar] [CrossRef]
  3. Wang, F.; Wu, Y.; Bu, Y.; Pan, F.; Chen, D.; Lin, Z. Fault diagnosis of DCS SMPSs in nuclear power plants based on machine learning. Arab. J. Sci. Eng. 2024, 49, 6903–6922. [Google Scholar] [CrossRef]
  4. Kareem, A.B.; Hur, J.-W. Towards Data-Driven Fault Diagnostics Framework for SMPS-AEC Using Supervised Learning Algorithms. Electronics 2022, 11, 2492. Available online: https://www.mdpi.com/2079-9292/11/16/2492 (accessed on 6 March 2025). [CrossRef]
  5. Hadad, K.; Pourahmadi, M.; Majidi-Maraghi, H. Fault diagnosis and classification based on wavelet transform and neural network. Prog. Nucl. Energy 2011, 53, 41–47. [Google Scholar] [CrossRef]
  6. Tang, S.; Wang, H.; Wang, W.; Liu, C. A fault diagnosis method for active power factor correction power supply based on seagull algorithm optimized kernel-based extreme learning machine. Int. J. Circuit Theory Appl. 2024, 52, 1116–1135. [Google Scholar] [CrossRef]
  7. Liao, Y.; Zhang, Y. Rethinking Model-Based Fault Detection: Uncertainties, Risks, and Optimization Based on a Multilevel Converter Case Study. IEEE Trans. Power Electron. 2024, 39, 14229–14239. [Google Scholar] [CrossRef]
  8. Xie, D.; Lin, C.; Deng, Q.; Lin, H.; Cai, C.; Basler, T.; Ge, X. Simple Vector Calculation and Constraint-Based Fault-Tolerant Control for a Single-Phase CHBMC. IEEE Trans. Power Electron. 2025, 40, 2028–2041. [Google Scholar] [CrossRef]
  9. Zabihi, M.; Mehrizi, R.V.; Kasaiezadeh, A.; Pirani, M.; Khajepour, A. A Hybrid Model-Data Vehicle Sensor and Actuator Fault Detection and Diagnosis System. IEEE Trans. Intell. Transp. Syst. 2024, 25, 8121–8133. [Google Scholar] [CrossRef]
  10. Zheng, L.; Jiang, Y.; Jiang, H.; Tang, C.; Jiao, W.; Shi, Z.; Rehman, A.U. Adaptive Dynamic Threshold Graph Neural Network: A Novel Deep Learning Framework for Cross-Condition Bearing Fault Diagnosis. Machines 2024, 12, 18. [Google Scholar] [CrossRef]
  11. Yang, W.; Qin, Y.; Huang, R.; Chen, Y. Adaptive feature extraction for entity relation extraction. Comput. Speech Lang. 2025, 89, 101712. [Google Scholar] [CrossRef]
  12. Jia, W.; Shi, H.; Dong, Z.; Zhang, X. A rolling bearing fault diagnosis framework under variable working conditions considers dynamic feature extraction. Eng. Appl. Artif. Intell. 2025, 146, 110255. [Google Scholar] [CrossRef]
  13. Zhan, Z.-H.; Shi, L.; Tan, K.C.; Zhang, J. A Survey on Evolutionary Computation for Complex Continuous Optimization. Artif. Intell. Rev. 2021, 55, 59–110. [Google Scholar] [CrossRef]
  14. Yang, X.; Huang, W.; Ye, M. Dynamic Personalized Federated Learning with Adaptive Differential Privacy. In Proceedings of the NeurIPS 2023 Conference, New Orleans, LA, USA, 10 December 2023; Available online: https://proceedings.neurips.cc/paper_files/paper/2023/hash/e4724af0e2a0d52ce5a0a4e084b87f59-Abstract-Conference.html (accessed on 6 March 2025).
  15. Qin, C.; Zhang, Y.; Bao, F.; Zhang, C.; Liu, P.; Liu, P. XGBoost Optimized by Adaptive Particle Swarm Optimization for Credit Scoring-qin-2021-Mathematical Problems in Engineering. Math. Probl. Eng. 2021, 2021, 6655510. [Google Scholar] [CrossRef]
  16. Kumar, S.; Kolekar, T.; Patil, S.; Bongale, A.; Kotecha, K.; Zaguia, A.; Prakash, C. A Low-Cost Multi-Sensor Data Acquisition System for Fault Detection in Fused Deposition Modelling. Sensors 2022, 22, 517. [Google Scholar] [CrossRef] [PubMed]
  17. Ai, S.; Song, J.; Cai, G.; Zhao, K. Active Fault-Tolerant Control for Quadrotor UAV Against Sensor Fault Diagnosed by the Auto Sequential Random Forest. Aerospace 2022, 9, 518. [Google Scholar] [CrossRef]
  18. Khemani, V.; Azarian, M.H.; Pecht, M.G. Learnable Wavelet Scattering Networks: Applications to Fault Diagnosis of Analog Circuits and Rotating Machinery. Electronics 2022, 11, 451. [Google Scholar] [CrossRef]
  19. He, Z.; Chu, P.; Li, C.; Zhang, K.; Wei, H.; Hu, Y. Compound fault diagnosis for photovoltaic arrays based on multi-label learning considering multiple faults coupling. Energy Convers. Manag. 2023, 279, 116742. [Google Scholar] [CrossRef]
  20. Dai, X.; Sun, M.; Deng, P.; Wang, R.; Su, Y. Asymmetric bidirectional capacitive power transfer method with push–pull full-bridge hybrid topology. IEEE Trans. Power Electron. 2022, 37, 13902–13913. [Google Scholar] [CrossRef]
  21. Musumeci, S.; Stella, F.; Mandrile, F.; Armando, E.; Fratta, A. Soft-Switching Full-Bridge Topology with AC Distribution Solution in Power Converters’ Auxiliary Power Supplies. Electronics 2022, 11, 884. [Google Scholar] [CrossRef]
  22. Chen, J.; Xu, J.; Wang, Y. Seamless control of full-bridge and half-bridge topology morphing LLC converter based on state plane analysis. IEEE Trans. Power Electron. 2024, 39, 198–211. [Google Scholar] [CrossRef]
  23. Ekici, S.; Yildirim, S.; Poyraz, M. Energy and entropy-based feature extraction for locating fault on transmission lines by using neural network and wavelet packet decomposition. Expert Syst. Appl. 2008, 34, 2937–2944. [Google Scholar] [CrossRef]
  24. Parmar, U.; Pandya, D.H. Comparison of the Supervised Machine Learning Techniques Using WPT for the Fault Diagnosis of Cylindrical Roller Bearing. Int. J. Eng. Sci. Technol. 2021, 13, 2. [Google Scholar] [CrossRef]
  25. Wang, X.; Shi, T.; Liao, G.; Zhang, Y.; Hong, Y.; Chen, K. Using Wavelet Packet Transform for Surface Roughness Evaluation and Texture Extraction. Sensors 2017, 17, 933. [Google Scholar] [CrossRef]
  26. Smith, W.A.; Fan, Z.Q.; Peng, Z.X.; Li, H.Z.; Randall, R.B. Optimised Spectral Kurtosis for Bearing Diagnostics Under Electromagnetic Interference-ScienceDirect. Mech. Syst. Signal Process. 2016, 75, 371–394. [Google Scholar] [CrossRef]
  27. Yang, D.M. The detection of motor bearing fault with maximal overlap discrete wavelet packet transform and teager energy adaptive spectral kurtosis. Sensors 2021, 21, 6895. [Google Scholar] [CrossRef]
  28. Yang, C.Z.; Fang, L.C.; Fei, B.J.; Yu, Q.; Wei, H. Multi-Level Contour Combination Features for Shape Recognition-ScienceDirect. Comput. Vis. Image Underst. 2023, 229, 103650. [Google Scholar] [CrossRef]
  29. Shi, Q.; Fan, Y.; Zhang, D.; Guo, H.; Liu, J. K-means ship trajectory clustering algorithm based on trajectory image similarity. In Proceedings of the Third International Conference on Digital Signal and Computer Communications (DSCC 2023), Xi’an, China, 21–23 April 2023; SPIE: Bellingham, WA, USA, 2023; Volume 12716, pp. 30–38. [Google Scholar]
Figure 1. Full-bridge topology switching power supply.
Figure 1. Full-bridge topology switching power supply.
Sensors 25 03236 g001
Figure 2. Experimental data acquisition.
Figure 2. Experimental data acquisition.
Sensors 25 03236 g002
Figure 3. Output voltage waveform of switching power supply in each fault state.
Figure 3. Output voltage waveform of switching power supply in each fault state.
Sensors 25 03236 g003
Figure 4. Schematic of feature extraction pipeline.
Figure 4. Schematic of feature extraction pipeline.
Sensors 25 03236 g004
Figure 5. Troubleshooting method flowchart.
Figure 5. Troubleshooting method flowchart.
Sensors 25 03236 g005
Figure 6. t-SNE 3D plots of the four feature extraction methods.
Figure 6. t-SNE 3D plots of the four feature extraction methods.
Sensors 25 03236 g006
Figure 7. Plot of test sample results for the methodology of this paper: (a) Comparison of DWPT + APABC-SVM classification prediction results; (b) DWPT + APABC-SVM Fault Classification Confusion Matrix.
Figure 7. Plot of test sample results for the methodology of this paper: (a) Comparison of DWPT + APABC-SVM classification prediction results; (b) DWPT + APABC-SVM Fault Classification Confusion Matrix.
Sensors 25 03236 g007
Table 1. Failure mode codes.
Table 1. Failure mode codes.
Trouble CodeDefective ElementFailure Mode
F0-trouble free
F1MOSFET Q1short circuit
F2MOSFET Q1open circuit
F3Diode D1short circuit
F4Diode D1open circuit
F5Capacitor Copen circuit
F6Capacitor Creduced capacity
F7Capacitor Cincreased capacity
F8Resistor Rreduced resistance
F9Resistor Rincreased resistance
F10MOSFET Q1Q3short circuit
Table 2. Result of fault diagnosis by methods.
Table 2. Result of fault diagnosis by methods.
Feature Extraction MethodsClassification MethodTraining Time/sTest Time/sAccuracy
DWPTDecision Tree0.54020.050386.364%
DWPTSVM0.29090.107072.73%
DWPTPSO-SVM0.23760.111791.818%
DWPTABC-SVM0.30720.110898.182%
DWPTAPABC-SVM0.23090.101899.091%
FFTAPABC-SVM0.16750.013577.273%
WPTAPABC-SVM0.17140.015259.091%
WTAPABC-SVM0.17890.015379.091%
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.

Share and Cite

MDPI and ACS Style

Xu, J.; Zhu, J.; Wang, Z. Fault Diagnosis of Switching Power Supplies Using Dynamic Wavelet Packet Transform and Optimized SVM. Sensors 2025, 25, 3236. https://doi.org/10.3390/s25103236

AMA Style

Xu J, Zhu J, Wang Z. Fault Diagnosis of Switching Power Supplies Using Dynamic Wavelet Packet Transform and Optimized SVM. Sensors. 2025; 25(10):3236. https://doi.org/10.3390/s25103236

Chicago/Turabian Style

Xu, Jie, Jingjing Zhu, and Zhifeng Wang. 2025. "Fault Diagnosis of Switching Power Supplies Using Dynamic Wavelet Packet Transform and Optimized SVM" Sensors 25, no. 10: 3236. https://doi.org/10.3390/s25103236

APA Style

Xu, J., Zhu, J., & Wang, Z. (2025). Fault Diagnosis of Switching Power Supplies Using Dynamic Wavelet Packet Transform and Optimized SVM. Sensors, 25(10), 3236. https://doi.org/10.3390/s25103236

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop