The reliable operation of photovoltaic (PV) systems is paramount for the stability and efficiency of modern renewable energy grids. At the heart of these systems, solar inverters perform the critical function of converting the direct current (DC) generated by PV panels into grid-compliant alternating current (AC). Given their continuous operation under demanding electrical and thermal stresses, solar inverters are susceptible to various failure modes. While catastrophic hard faults (open or short circuits) are relatively easier to detect due to their pronounced signatures, incipient soft faults, characterized by gradual parameter degradation (e.g., in capacitors), present a significant diagnostic challenge. These soft faults often manifest as subtle, non-linear changes in output waveforms, making their early detection and identification crucial for preventing complete system failure and ensuring operational longevity. This article presents a robust methodology for diagnosing soft faults in multi-level solar inverters, focusing on a novel feature extraction technique that synergistically combines Variational Mode Decomposition (VMD) and wavelet energy analysis.

The topology under investigation is a three-level Neutral Point Clamped (NPC) inverter, a common architecture in medium-power solar inverter applications due to its superior harmonic performance. A critical vulnerability in this topology lies in its DC-link, which is typically split by two series-connected electrolytic capacitors (C1 and C2) to create a mid-point. These capacitors are prone to aging, leading to a gradual decrease in their capacitance—a quintessential soft fault. This degradation disrupts the voltage balance across the capacitors, inducing stress on switching devices and distorting the output waveform, ultimately compromising the power quality and reliability of the entire PV system.
Traditional time-domain analysis of output voltages (e.g., line-to-line voltages U_ab, U_bc, U_ca) is inadequate for distinguishing between different degrees of this soft fault, as the waveforms appear visually similar even under significant parameter drift. This necessitates advanced signal processing techniques capable of extracting subtle, discriminative features embedded within these non-stationary signals. While methods like Empirical Mode Decomposition (EMD) and wavelet transforms have been employed, they possess limitations such as mode mixing (in EMD) or fixed basis functions. To overcome these, we propose a diagnostic framework centered on Variational Mode Decomposition, an adaptive and non-recursive signal decomposition technique, followed by a permutation entropy-optimized wavelet energy feature extraction.
1. Theoretical Foundation of Variational Mode Decomposition (VMD)
VMD is a fully non-recursive decomposition technique that intrinsically seeks to decompose a real-valued input signal \( f(t) \) into a discrete number of band-limited intrinsic mode functions (IMFs) or sub-signals \( u_k(t) \), each with a specific sparsity property. Its core strength lies in formulating the decomposition as a constrained variational optimization problem, which is more robust against noise and sampling compared to heuristic methods like EMD.
The fundamental objective of VMD is to find a set of modes \( \{u_k(t)\} = \{u_1, u_2, …, u_K\} \) and their corresponding center frequencies \( \{\omega_k\} = \{\omega_1, \omega_2, …, \omega_K\} \) such that the sum of the bandwidths of all modes is minimized, with the constraint that the sum of all modes exactly reconstructs the original signal. This is mathematically expressed as:
$$
\min_{\{u_k\},\{\omega_k\}} \left\{ \sum_{k=1}^{K} \left\| \partial_t \left[ \left( \delta(t) + \frac{j}{\pi t} \right) * u_k(t) \right] e^{-j\omega_k t} \right\|_2^2 \right\}
$$
$$
\text{s.t.} \quad \sum_{k=1}^{K} u_k = f
$$
Here, \( \partial_t \) denotes the partial derivative with respect to time, \( \delta(t) \) is the Dirac delta function, \( * \) represents convolution, and \( j \) is the imaginary unit. The term inside the norm approximates the analytic signal of \( u_k(t) \) and shifts its frequency spectrum to baseband around \( \omega_k \). Minimizing its derivative ensures the mode is compact around its center frequency.
To solve this constrained problem, VMD introduces an augmented Lagrangian function \( \mathcal{L} \), transforming it into an unconstrained optimization:
$$
\mathcal{L}(\{u_k\},\{\omega_k\},\lambda) := \alpha \sum_{k=1}^{K} \left\| \partial_t \left[ \left( \delta(t) + \frac{j}{\pi t} \right) * u_k(t) \right] e^{-j\omega_k t} \right\|_2^2 + \left\| f(t) – \sum_{k=1}^{K} u_k(t) \right\|_2^2 + \left\langle \lambda(t), f(t) – \sum_{k=1}^{K} u_k(t) \right\rangle
$$
where \( \alpha \) is the quadratic penalty factor (balancing reconstruction fidelity), and \( \lambda(t) \) is the Lagrange multiplier. The solution is found iteratively using the Alternate Direction Method of Multipliers (ADMM). In the frequency domain, the updates for the mode \( u_k \) and its center frequency \( \omega_k \) at iteration \( n+1 \) are:
$$
\hat{u}_k^{n+1}(\omega) = \frac{\hat{f}(\omega) – \sum_{i \neq k} \hat{u}_i(\omega) + \frac{\hat{\lambda}(\omega)}{2}}{1 + 2\alpha (\omega – \omega_k)^2}
$$
$$
\omega_k^{n+1} = \frac{\int_0^\infty \omega |\hat{u}_k(\omega)|^2 d\omega}{\int_0^\infty |\hat{u}_k(\omega)|^2 d\omega}
$$
The algorithm iterates until a convergence criterion is met, yielding \( K \) narrowband IMFs. This formulation ensures a rigorous separation of frequency components, making it highly effective for analyzing the complex, modulated signals produced by faulty solar inverters.
2. Key Challenge: Determining the Optimal Number of Modes (K)
A critical parameter in VMD is the number of decomposition modes \( K \). An improperly chosen \( K \) can lead to under-decomposition (loss of information) or over-decomposition (redundant, noisy modes). To determine \( K \) objectively, we employ Permutation Entropy (PE), a measure of time series complexity and randomness. A mode containing coherent signal information (like fault characteristics) will have lower PE, while noise or irrelevant components will have higher PE.
For a given time series, PE is calculated by: 1) constructing ordinal patterns from embedded vectors, 2) counting the relative frequency \( p_\pi \) of each possible permutation \( \pi \), and 3) computing the normalized Shannon entropy:
$$
H_{PE} = -\frac{1}{\ln(m!)} \sum_{\pi=1}^{m!} p_\pi \ln(p_\pi)
$$
where \( m \) is the embedding dimension. We compute the mean PE \( S_p \) of all modes resulting from a VMD decomposition with a trial \( K \):
$$
S_p(K) = \frac{1}{K} \sum_{i=1}^{K} H_{PE}(u_i)
$$
The optimal \( K \) is selected as the one that minimizes this mean permutation entropy, indicating the decomposition yields the most “ordered” or information-rich set of modes. Empirical analysis on fault signals from the NPC solar inverter led to the selection of \( K=7 \). Other VMD parameters were set as \( \alpha = 2000 \) and noise tolerance \( \tau = 0 \). The following table illustrates the relationship between \( K \) and the mean PE for a representative fault signal:
| Number of Modes (K) | Mean Permutation Entropy (S_p) |
|---|---|
| 4 | 0.791 |
| 5 | 0.740 |
| 6 | 0.746 |
| 7 | 0.736 |
| 8 | 0.759 |
3. Fault Feature Extraction via Wavelet Energy of VMD Modes
While VMD successfully decomposes the signal into intrinsic modes, the raw IMFs themselves are high-dimensional and not directly suitable for classifier input. We need a compact, discriminative feature set. The energy distribution across different frequency bands is a highly sensitive indicator of fault conditions in solar inverters. Wavelet Transform (WT) provides an excellent tool for local time-frequency energy analysis.
The procedure is as follows: Each of the \( K \) IMFs (for each of the three line voltages) is subjected to a multi-level discrete wavelet transform (DWT). Using the Daubechies 3 (‘db3’) wavelet and a decomposition level of 3, each IMF \( u_k(t) \) is broken down into approximation coefficients \( A_3 \) (low-frequency) and detail coefficients \( D_3, D_2, D_1 \) (high-frequency, from coarse to fine). The energy associated with each set of coefficients is computed as:
$$
E_k^{(j)} = \sum_{x=1}^{N_j} |d_{j,x}|^2
$$
where \( d_{j,x} \) represents the \( x \)-th coefficient in decomposition level \( j \), and \( N_j \) is the total number of coefficients at that level. Thus, for each IMF, we obtain a 4-dimensional energy vector: \( \mathbf{T}_k = [E_k^{(A3)}, E_k^{(D3)}, E_k^{(D2)}, E_k^{(D1)}] \).
For a single line voltage signal, concatenating the energy vectors from all \( K \) IMFs results in a \( 4K \)-dimensional feature vector. With three line voltages, the raw feature space dimension becomes \( 12K \) (84 dimensions for \( K=7 \)). To combat the “curse of dimensionality” and enhance computational efficiency for the subsequent classifier, we apply a simple yet effective dimensionality reduction: for each IMF, we retain only the largest energy coefficient among its four values. This is based on the observation that for a given IMF, the fault information tends to concentrate in one specific frequency sub-band (either the approximation or one of the detail levels). This process reduces the final feature vector to \( 3K \) dimensions (21 dimensions for \( K=7 \)), effectively capturing the most salient energy signatures of the soft fault. An example of the feature extraction for one line voltage’s IMFs is shown below:
| IMF Component | Energy A3 | Energy D3 | Energy D2 | Energy D1 | Selected Feature |
|---|---|---|---|---|---|
| IMF1 | 52.6169 | 1.0443 | 0.1791 | 0.0308 | 52.6169 (A3) |
| IMF2 | 18.8666 | 37.2062 | 12.3386 | 1.9723 | 37.2062 (D3) |
| IMF3 | 3.3173 | 32.0495 | 28.5188 | 6.1871 | 32.0495 (D3) |
| IMF4 | 1.2802 | 1.0791 | 24.5984 | 21.5936 | 24.5984 (D2) |
| IMF5 | 0.9374 | 0.5949 | 24.0019 | 34.3662 | 34.3662 (D1) |
| IMF6 | 2.1106 | 3.0701 | 16.7056 | 41.3186 | 41.3186 (D1) |
| IMF7 | 0.3283 | 0.1836 | 0.2191 | 49.3061 | 49.3061 (D1) |
The resulting 21-dimensional feature vector forms a distinctive “energy fingerprint” for each specific soft fault condition in the solar inverter.
4. Comprehensive Fault Diagnosis Framework
We define a comprehensive set of 25 distinct operational states for the NPC solar inverter, including one healthy state and 24 soft fault states involving the DC-link capacitors C1 and C2. The capacitor’s nominal value is 3300 μF, and a variation within ±10% is considered normal. Soft faults are defined as capacitance degradation between 10% and 50% of the nominal value, categorized into four severity levels: Level 1 (10-20% loss), Level 2 (20-30%), Level 3 (30-40%), and Level 4 (40-50%). The fault modes include single-capacitor faults (C1 or C2 at any level) and concurrent dual-capacitor faults (C1 at level *i* and C2 at level *j*).
| Fault Category | Fault Mode Label | Capacitor C1 Degradation | Capacitor C2 Degradation |
|---|---|---|---|
| Single Soft Faults | f0 (Healthy) | 0-10% | 0-10% |
| f11 | 10-20% | 0-10% | |
| f12 | 20-30% | 0-10% | |
| f13 | 30-40% | 0-10% | |
| f14 | 40-50% | 0-10% | |
| f21 | 0-10% | 10-20% | |
| f22 | 0-10% | 20-30% | |
| f23 | 0-10% | 30-40% | |
| f24 | 0-10% | 40-50% | |
| Dual Soft Faults | f11f21 | 10-20% | 10-20% |
| f11f22 | 10-20% | 20-30% | |
| … (14 other combinations) … | … | … | |
| f14f24 | 40-50% | 40-50% |
The complete diagnostic workflow is as follows:
Step 1: Data Acquisition. Under each of the 25 states, the three line-to-line voltages (U_ab, U_bc, U_ca) at the inverter’s output are sampled at a high frequency (e.g., 100 kHz).
Step 2: Signal Decomposition. Each acquired voltage signal is decomposed using VMD with the optimized parameter \( K=7 \), yielding 7 IMFs per signal.
Step 3: Feature Extraction. The wavelet energy-based dimensionality reduction process described above is applied to the IMFs of all three voltage signals, resulting in a consolidated 21-dimensional feature vector for each operating condition sample.
Step 4: Classifier Training & Diagnosis. A Support Vector Machine (SVM) with a Radial Basis Function (RBF) kernel is employed as the classifier. Its parameters (penalty factor \( C \) and kernel parameter \( \gamma \)) are optimized via cross-validation. A dataset comprising multiple samples per fault mode is split into training and testing sets. The SVM is trained on the labeled feature vectors from the training set. In the diagnostic phase, the feature vector extracted from an unknown condition is fed to the trained SVM model, which outputs the identified fault mode label.
5. Experimental Validation and Comparative Analysis
To validate the proposed VMD-Wavelet Energy method, a detailed simulation study of the NPC solar inverter was conducted under all 25 defined states. For each state, 50 independent samples were generated with capacitor values randomly varied within their defined degradation ranges, resulting in a total of 1,250 signal samples. For each sample, the proposed method (VMD + PE-optimized K + Wavelet Energy + Dimensionality Reduction) was applied to extract the 21-D feature vector.
The dataset was partitioned, using 40 samples per fault mode (1,000 total) for training the SVM and the remaining 10 samples per mode (250 total) for testing. The performance was compared against two established benchmark methods:
1. Standard Wavelet Energy (WE): Direct 3-level DWT applied to the three raw line voltage signals, extracting a 12-dimensional energy feature vector (4 coefficients per signal).
2. EMD-Wavelet Energy (EMD-WE): EMD decomposes each signal into 5 IMFs (to match complexity), followed by the same 3-level DWT and energy calculation per IMF, resulting in a 60-D vector later reduced to 12-D using the same “max energy per component” rule.
The diagnostic performance comparison is summarized in the table below:
| Feature Extraction Method | Diagnostic Accuracy | Classifier Training Time (s) | Testing Time per Sample (s) |
|---|---|---|---|
| Proposed VMD-Wavelet Energy | 94.4% | 0.049 | 0.007 |
| Standard Wavelet Energy (WE) | 73.2% | 0.056 | 0.016 |
| EMD-Wavelet Energy (EMD-WE) | 59.6% | 0.323 | 0.021 |
The results unequivocally demonstrate the superiority of the proposed approach. The VMD-based method achieved a significantly higher diagnostic accuracy (94.4%) compared to the standard wavelet (73.2%) and EMD-based (59.6%) methods. This superior accuracy stems from VMD’s ability to provide a cleaner, more robust separation of frequency components, which in turn yields more discriminative energy features. Furthermore, the proposed method exhibited the shortest training and testing times. The faster training is attributed to the more separable feature space, allowing the SVM to converge quickly. The rapid testing time highlights the computational efficiency of the optimized feature extraction and reduction pipeline, making it suitable for potential real-time or online monitoring applications in solar inverter systems.
6. Conclusion
This article has presented a novel and highly effective methodology for diagnosing incipient soft faults in solar inverters, with a specific focus on DC-link capacitor degradation in NPC three-level topologies. The core innovation lies in the fusion of Variational Mode Decomposition (VMD) with wavelet energy analysis, preceded by an intelligent optimization of the VMD’s mode count using Permutation Entropy. VMD’s non-recursive, variational framework effectively overcomes the mode-mixing limitations of traditional EMD, providing a precise and adaptive time-frequency decomposition of the inverter’s output line voltages. The extraction of wavelet energy from these decomposed modes captures the subtle shifts in spectral energy distribution caused by different soft fault severities and locations. The subsequent dimensionality reduction step ensures the feature set is both compact and highly informative.
Experimental validation on a comprehensive set of 25 capacitor-related soft fault modes confirmed the method’s exceptional performance, achieving a diagnostic accuracy of 94.4%. It significantly outperformed conventional wavelet energy and EMD-based methods in both accuracy and computational speed. The proposed framework offers a powerful tool for condition monitoring and predictive maintenance of solar inverters, enabling early detection of component degradation before it escalates into a catastrophic failure, thereby enhancing the reliability, safety, and economic viability of photovoltaic power generation systems. Future work will involve extending this method to diagnose soft faults in other components (e.g., power switches) and validating its performance on hardware-in-the-loop (HIL) testbeds and field data from operational solar inverters.
