Deep Learning-Based IGBT Fault Diagnosis in Solar Inverters

In the context of global energy transformation, solar power has become one of the fastest-growing renewable energy sources. As the core interface between photovoltaic arrays and the utility grid, solar inverters must ensure high efficiency, reliability, and safety. However, the power semiconductor devices inside solar inverters, especially IGBTs, are highly stressed by repetitive switching actions and harsh environmental conditions. IGBT open-circuit faults represent one of the most common failure modes, leading to current waveform distortion, reduced power quality, and even cascading system shutdowns. In this thesis, I focus on developing intelligent fault diagnosis methods for IGBT open-circuit faults in three-phase grid-connected solar inverters, based on deep learning and time-series image encoding techniques. My research aims to improve diagnostic accuracy, robustness, and applicability by combining Markov Transition Field (MTF) with advanced neural network architectures, including an improved AlexNet and a Swin Transformer model.

Solar inverter reliability is critical for the stable operation of photovoltaic power plants. According to statistical analyses, power switching devices account for a large proportion of inverter component failures, and among them IGBT failures are the most frequent. A short-circuit fault often triggers protective circuits and transforms into an open-circuit fault, which may not immediately halt the inverter but causes unsymmetrical current outputs and increases thermal stress on other components. Therefore, rapid and accurate detection and classification of IGBT open-circuit faults are essential for preventive maintenance and safe operation. Traditional fault diagnosis approaches include signal processing methods, model-based methods, and knowledge-based methods. Although effective in many cases, these techniques often rely on expert experience or complex analytical models. In contrast, deep learning methods can automatically learn hierarchical features from raw data and have shown excellent performance in fault classification.

In my work, I first establish a comprehensive simulation platform for a three-phase photovoltaic grid-connected inverter in MATLAB/Simulink. The model includes a photovoltaic array, a boost converter with MPPT, a two-level voltage source inverter, LCL filters, and a double closed-loop control system based on synchronous reference frames. I incorporate fault injection mechanisms to simulate open-circuit failures of IGBTs. A total of 21 fault scenarios plus the normal condition are considered, covering single-switch faults, two-switch faults in the same leg, two-switch faults on the same side, two-switch faults on opposite sides, and two-switch faults in different legs. The inverter’s A-phase output current is sampled to form the raw dataset. All fault types are labelled and categorized for supervised learning.

One of the key challenges in applying convolutional neural networks (CNNs) to fault diagnosis is converting one-dimensional time-domain signals into suitable two-dimensional representations. In this thesis, I adopt the Markov Transition Field (MTF) coding method. MTF encodes the dynamic transition statistics of a time series into an image while preserving temporal dependencies. Compared with other encoding methods such as Gramian Angular Summation Field (GASF), Gramian Angular Difference Field (GADF), and Recurrence Plots (RP), MTF images provide richer and more discriminative features for IGBT fault classification. I systematically compare four encoding approaches under the same deep learning framework and find that MTF yields the highest accuracy.

The first diagnostic model I propose combines MTF with an improved AlexNet architecture. AlexNet is a classic deep CNN known for its strong feature extraction capability. To further enhance its performance for solar inverter fault diagnosis, I introduce several modifications: (1) replacing the ReLU activation function with Leaky ReLU to avoid dead neurons and preserve more fault-relevant information; (2) adding batch normalization layers after each convolution layer to accelerate convergence and stabilize training; and (3) inserting a Squeeze-and-Excitation (SE) channel attention module to adaptively recalibrate feature responses. Experimental results show that the improved AlexNet achieves a test accuracy of 93.7%, which is 3.9% higher than the original AlexNet. The loss converges to a lower value as well, indicating better generalization and feature representation.

Although CNNs can extract local spatial features effectively, they have limitations in modeling global context and long-range dependencies. To address this issue, I also develop a fault diagnosis framework based on the Swin Transformer. Swin Transformer is a hierarchical vision transformer that combines the advantages of CNNs and transformers. It uses shifted windows to enable cross-window information exchange while maintaining linear computational complexity. The model processes MTF images through a patch embedding layer, several transformer stages, and finally a classification head. In my experiments, the Swin Transformer achieves a training accuracy of 95.2% and a validation accuracy of 95.4%, outperforming the improved AlexNet by 1.5%. It also demonstrates stronger noise robustness under different signal-to-noise ratios.

In the following sections, I detail the system modelling, fault analysis, feature encoding, network architectures, and experimental results. I also provide extensive comparisons among different encoding methods, different network backbones, and noisy environments. The findings confirm that the proposed MTF-Swin Transformer method is a reliable and accurate solution for IGBT open-circuit fault diagnosis in solar inverters.

Fault Type Faulty IGBTs Label
Normal None ZC
Single switch VT1 VT1
Single switch VT2 VT2
Single switch VT3 VT3
Single switch VT4 VT4
Single switch VT5 VT5
Single switch VT6 VT6
Same-side double VT1, VT3 VT13
Same-side double VT1, VT5 VT15
Same-side double VT3, VT5 VT35
Same-side double VT2, VT6 VT26
Same-side double VT4, VT6 VT46
Same-side double VT2, VT4 VT24
Opposite-side double VT1, VT6 VT16
Opposite-side double VT1, VT2 VT12
Opposite-side double VT3, VT4 VT34
Opposite-side double VT2, VT3 VT23
Opposite-side double VT4, VT5 VT45
Opposite-side double VT5, VT6 VT56
Same-leg double VT1, VT4 VT14
Same-leg double VT3, VT6 VT36
Same-leg double VT2, VT5 VT25

To model the solar inverter, I use the following dynamic equations in the stationary αβ reference frame. After applying Clarke transformation to the three-phase output circuit, the inverter model can be expressed as:

$$
\begin{cases}
L_1 \frac{di_{\alpha 1}}{dt} = -R_1 i_{\alpha 1} + u_{\alpha C} – e_{\alpha} \\
L_1 \frac{di_{\beta 1}}{dt} = -R_1 i_{\beta 1} + u_{\beta C} – e_{\beta} \\
L_2 \frac{di_{\alpha 2}}{dt} = -R_2 i_{\alpha 2} + u_{\alpha C} – u_{\alpha g} \\
L_2 \frac{di_{\beta 2}}{dt} = -R_2 i_{\beta 2} + u_{\beta C} – u_{\beta g} \\
C \frac{du_{\alpha C}}{dt} = i_{\alpha 1} – i_{\alpha 2} \\
C \frac{du_{\beta C}}{dt} = i_{\beta 1} – i_{\beta 2}
\end{cases}
$$

For grid-connected control, the double closed-loop strategy is implemented in the synchronous dq reference frame. The current controllers are designed with PI regulators and decoupling terms. The voltage equations are:

$$
\begin{cases}
u_d = K_p (i_d^* – i_d) + K_i \int (i_d^* – i_d) dt – \omega L_1 i_q + e_d \\
u_q = K_p (i_q^* – i_q) + K_i \int (i_q^* – i_q) dt + \omega L_1 i_d + e_q
\end{cases}
$$

The simulation parameters used in my study are listed in the following table. The sampling frequency is 5 kHz, and the fundamental grid frequency is 50 Hz.

Parameter Value
DC bus voltage 700 V
Switching frequency 5 kHz
Grid frequency 50 Hz
LCL filter inductor L_r 0.5 mH
LCL filter inductor L_g 0.5 mH
LCL filter capacitor C 100 μF

After collecting the current signals for all 22 operating conditions, I divide the continuous signal into non-overlapping segments. Each segment contains exactly one fundamental period (0.02 s), corresponding to 1000 sampling points at 5 kHz. I then apply the MTF algorithm to each segment. The MTF process begins by discretizing the time series into Q quantile bins. A first-order Markov chain is assumed, and the transition probability from bin q_i at time step i to bin q_j at time step j is calculated. The full Markov Transition Field matrix is defined as:

$$
M = \begin{bmatrix}
w_{ij | x_1 \in q_i, x_1 \in q_j} & w_{ij | x_1 \in q_i, x_2 \in q_j} & \cdots & w_{ij | x_1 \in q_i, x_n \in q_j} \\
w_{ij | x_2 \in q_i, x_1 \in q_j} & w_{ij | x_2 \in q_i, x_2 \in q_j} & \cdots & w_{ij | x_2 \in q_i, x_n \in q_j} \\
\vdots & \vdots & \ddots & \vdots \\
w_{ij | x_n \in q_i, x_1 \in q_j} & w_{ij | x_n \in q_i, x_2 \in q_j} & \cdots & w_{ij | x_n \in q_i, x_n \in q_j}
\end{bmatrix}
$$

In my experiments, I set the number of quantile bins Q to 64 and the MTF image size to 64×64. The resulting images are resized to 224×224×3 to match the input requirements of the deep networks. For every fault type, 800 images are generated, yielding 17,600 samples in total. The dataset is split into 70% training, 20% testing and 10% extra validation samples for noise tests. All models are trained with a batch size of 32 and a maximum of 100 epochs. The initial learning rate is set to 0.001 and Adam optimizer is used. For the Swin Transformer, AdamW is employed with a learning rate of 0.0001.

The convolutional layers in my models perform feature extraction through the following operation:

$$
x_j^l = f\left( \sum_{i \in M_j} x_i^{l-1} * k_{ij}^l + b_j^l \right)
$$

where $f$ is the activation function, $k_{ij}^l$ denotes the convolution kernel, and $b_j^l$ is the bias term. For improved AlexNet, I adopt Leaky ReLU given by:

$$
f(x) = \begin{cases}
x, & x \ge 0 \\
0.01x, & x < 0
\end{cases}
$$

Batch normalization is applied after each convolution layer to normalize the feature maps. The SE attention module computes channel-wise weights as:

$$
s = \sigma \left( W_2 \delta \left( W_1 z \right) \right)
$$

where $z$ is the global average pooled feature vector, $W_1$ and $W_2$ are fully connected layers, $\delta$ is ReLU, and $\sigma$ is sigmoid. These weights rescale the original feature maps, emphasizing informative channels and suppressing less relevant ones.

To validate the choice of MTF encoding, I compare it with GASF, GADF, and RP under the same improved AlexNet architecture. The resulting accuracy and loss values are summarized below.

Encoding Method Training Accuracy (%) Testing Accuracy (%) Loss
MTF 95.14 93.75 0.071
GADF 90.84 90.17 0.126
GASF 89.65 88.94 0.146
RP 93.18 91.93 0.142

The results clearly indicate that MTF offers the best classification accuracy and the smallest cross-entropy loss. The MTF images preserve temporal transition information, which is crucial for distinguishing between similar IGBT fault patterns. In contrast, GAF methods mainly capture angular correlations and may lose some dynamic information. RP images are also informative but less stable for this application.

I then compare the improved AlexNet with the standard AlexNet using the same MTF image dataset. The table below lists the final accuracies after 100 epochs.

Network Accuracy (%) Loss
AlexNet 89.84 0.128
Improved AlexNet 93.70 0.071

The improved network achieves a 3.9% higher accuracy and a much lower loss. This demonstrates the effectiveness of batch normalization, Leaky ReLU, and SE attention in extracting fault features from MTF images of solar inverters.

To further investigate the model’s generalization ability, I apply Gaussian white noise to the raw current signals at signal-to-noise ratios (SNR) of 40 dB, 30 dB, and 25 dB before MTF encoding. The improved AlexNet model is retrained on the noisy MTF images. Interestingly, the accuracies under these noisy conditions are higher than that on clean data, as shown in the next table. This can be attributed to the regularizing effect of noise, which reduces overfitting and forces the network to learn more robust features.

Condition Accuracy (%)
Clean (no noise) 94.0
40 dB SNR 99.8
30 dB SNR 99.7
25 dB SNR 99.5

These results demonstrate that the MTF-CNN method possesses strong noise immunity, which is essential for real-world solar inverter monitoring where sensor noise and electromagnetic interference are inevitable.

Although CNNs achieve good performance, I am interested in exploring Transformer-based architectures to fully exploit global feature dependencies. In the second phase of my research, I construct a Swin Transformer model for IGBT fault diagnosis. The Swin Transformer introduces a hierarchical feature pyramid and shifted window attention. Unlike the standard Vision Transformer (ViT) which computes global self-attention with quadratic complexity, Swin Transformer restricts self-attention computation to non-overlapping local windows and then shifts the window partition between consecutive blocks. This design significantly reduces computational cost while maintaining cross-window information propagation. The architecture consists of four stages. Each stage begins with a patch merging layer that downsamples spatial resolution and doubles the channel dimension, followed by several Swin Transformer blocks. The core operations of a Swin Transformer block are represented as:

$$
\hat{z}^l = \text{W-MSA}(\text{LN}(z^{l-1})) + z^{l-1}
$$

$$
z^l = \text{MLP}(\text{LN}(\hat{z}^l)) + \hat{z}^l
$$

$$
\hat{z}^{l+1} = \text{SW-MSA}(\text{LN}(z^l)) + z^l
$$

$$
z^{l+1} = \text{MLP}(\text{LN}(\hat{z}^{l+1})) + \hat{z}^{l+1}
$$

where W-MSA is window-based multi-head self-attention and SW-MSA is shifted-window multi-head self-attention. The complexity comparison between standard MSA and W-MSA is given by:

$$
\Omega(\text{MSA}) = 4hwC^2 + 2(hw)^2C
$$

$$
\Omega(\text{W-MSA}) = 4hwC^2 + 2M^2 h w C
$$

where $h$ and $w$ are feature map height and width, $C$ is the channel count, and $M$ is the window size. In my model, I use the Swin Transformer-T variant with the following configuration:

Stage Output Size Configuration
Stage 1 56×56 2 blocks, dim=96, heads=3
Stage 2 28×28 2 blocks, dim=192, heads=6
Stage 3 14×14 6 blocks, dim=384, heads=12
Stage 4 7×7 2 blocks, dim=768, heads=24

The input MTF images are first processed by a patch partition layer that splits each 224×224 image into non-overlapping 4×4 patches. Each patch is linearly embedded into a 96-dimensional vector. The resulting token sequence is then passed through the four stages. At the end, a global average pooling and a fully connected layer produce the 22-class output.

I train the Swin Transformer model on the same MTF dataset for 100 epochs. The training accuracy reaches 95.2% and the loss decreases to about 0.069. The confusion matrix on the validation set reveals that only a small number of samples are misclassified, and the overall validation accuracy is 95.4%. This is a noticeable improvement over the improved AlexNet and other CNN models.

To provide a fair comparison, I evaluate various state-of-the-art backbones on the MTF dataset using identical training conditions. The results are summarized below.

Network Model Accuracy (%) Loss
Improved AlexNet 93.7 0.080
Swin Transformer 95.2 0.071
MobileViT 94.9 0.141
VGGNet11 93.2 0.278
VGGNet16 90.1 0.470
GoogLeNet 92.6 0.278

Among all the compared models, Swin Transformer achieves the highest accuracy and the lowest loss. Even MobileViT, which is a lightweight transformer-based hybrid model, performs well but still lags behind Swin Transformer. This demonstrates that the hierarchical shifted-window design is particularly effective for recognizing the complex patterns embedded in MTF images of solar inverter fault currents.

I also compare the MTF encoding with other encoding methods under the Swin Transformer framework. The results are shown in the following table.

Encoding Method Testing Accuracy (%) Loss
MTF 95.2 0.069
GADF 90.6 0.126
GASF 89.7 0.136
RP 94.9 0.127

Again, MTF provides the best classification performance. The RP method also shows surprisingly good accuracy, close to MTF, but has a higher loss. The combination of MTF and Swin Transformer yields the most robust and accurate diagnostic system.

For noise robustness evaluation of the Swin Transformer, I add Gaussian white noise at 40 dB, 30 dB, and 25 dB SNR to the fault current data and then generate MTF images. The Swin Transformer is trained on these noisy datasets, and its performance is compared with the improved AlexNet and other CNN models. The average accuracies are listed below.

Model 40 dB Accuracy (%) 30 dB Accuracy (%) 25 dB Accuracy (%)
Improved AlexNet 99.8 99.7 99.5
VGGNet11 99.1 98.8 98.2
VGGNet16 98.7 98.2 97.6
GoogLeNet 98.9 98.5 97.9
Swin Transformer 99.9 99.8 99.6

Swin Transformer consistently outperforms the CNN variants under all noise levels. Even under the strongest 25 dB noise, it maintains an accuracy above 99.6%, while GoogLeNet drops to 97.9%. This confirms that the transformer’s global attention mechanism and hierarchical structure provide superior feature extraction stability in noisy environments.

In conclusion, my research demonstrates that the combination of Markov Transition Field encoding and deep neural networks, especially Swin Transformer, is a highly effective approach for IGBT open-circuit fault diagnosis in solar inverters. The MTF method captures essential dynamic characteristics of fault currents and transforms them into informative images that can be processed by powerful deep learning models. The improved AlexNet offers a solid baseline with high accuracy and robustness. The Swin Transformer further improves the diagnostic precision through its shifted window attention and hierarchical representation. The proposed methods have been thoroughly validated through extensive simulations and comparisons, highlighting their potential for real-time condition monitoring and intelligent maintenance of solar inverters.

Future work may extend the proposed approach to other types of power converters, integrate more realistic fault data from hardware platforms, and investigate lightweight transformer variants for edge computing. I believe that the deep learning-based fault diagnosis framework presented in this thesis can contribute to the reliable and intelligent operation of solar photovoltaic systems.

Scroll to Top