Research on IGBT Fault Diagnosis of Photovoltaic Grid-connected Inverter Based on Deep Learning

Photovoltaic power generation has emerged as a pivotal technology in the global transition towards sustainable energy systems. The solar inverter serves as the core interface between the photovoltaic array and the electrical grid, playing an essential role in energy conversion and system stability. However, the Insulated Gate Bipolar Transistor (IGBT), a critical component within the solar inverter, is highly susceptible to failures due to its frequent switching operations and harsh operating conditions. Ensuring the reliable operation of the solar inverter necessitates rapid and accurate fault diagnosis, which is vital for avoiding safety hazards and minimizing economic losses. This paper presents a comprehensive study on the fault diagnosis of IGBT open-circuit faults in a three-phase voltage source solar inverter, focusing on feature extraction, operational mechanisms, fault detection, and classification. The research provides new solutions and technical support for the intelligent maintenance of photovoltaic systems.

1. Introduction

The escalating global energy demand and the urgent need to mitigate environmental pollution have accelerated the development of renewable energy sources. Solar energy, as a clean and inexhaustible resource, has established a core position in the field of new energy power generation. According to recent data, the installed capacity of solar power has witnessed a significant year-on-year growth, underscoring its importance in the global energy mix. The solar inverter is the central component in this process, responsible for converting the DC power generated by photovoltaic arrays into grid-compatible AC power. The efficiency and reliability of the solar inverter directly impact the overall performance of the photovoltaic system. However, the IGBT power semiconductor devices within the solar inverter are prone to failures, particularly open-circuit faults, which can lead to current waveform distortion, reduced power quality, and in severe cases, system shutdown. Therefore, the development of effective fault diagnosis techniques for solar inverters is of paramount importance.

Fault diagnosis methodologies for solar inverters can be broadly categorized into three classes: signal processing-based methods, model-based methods, and data-driven methods. Signal processing techniques, such as Fourier Transform, Park’s Vector, and Wavelet Transform, extract fault features from measured signals. Model-based approaches utilize mathematical models and observers like Kalman filters to generate residuals for fault detection. Data-driven methods, particularly those employing deep learning, have gained significant traction due to their ability to automatically learn complex features from raw data, thus avoiding the need for precise mathematical models. This paper focuses on the application of advanced deep learning architectures for the diagnosis of IGBT open-circuit faults in a solar inverter.

2. Photovoltaic Inverter Modeling and Fault Analysis

To conduct a thorough investigation of IGBT fault diagnosis, precise modeling and simulation of the solar inverter are essential. This study employs a three-phase two-level voltage source inverter topology, which is widely used in grid-connected photovoltaic systems. The overall system model includes a photovoltaic array, a DC-DC boost converter, a three-phase inverter bridge, an LCL filter, and a dual-closed-loop control strategy.

2.1 Main Circuit Topology and Mathematical Model

The main circuit topology consists of six IGBTs (VT1-VT6), each with an anti-parallel diode, arranged in a three-phase bridge configuration. The LCL filter ensures high-quality current injection into the grid. The dynamic behavior of the inverter can be described by a set of differential equations in the stationary abc reference frame. By applying the Clarke transformation, the model can be simplified into the α-β coordinate system. Further applying the Park transformation, we obtain the mathematical model in the synchronous d-q reference frame.

In the d-q coordinate system, the inverter model is expressed as:

$$ L_1 \frac{d}{dt} \begin{bmatrix} i_{1d} \\ i_{1q} \end{bmatrix} = -\begin{bmatrix} R_1 & -\omega_0 L_1 \\ \omega_0 L_1 & R_1 \end{bmatrix} \begin{bmatrix} i_{1d} \\ i_{1q} \end{bmatrix} + \begin{bmatrix} u_{Cd} \\ u_{Cq} \end{bmatrix} – \begin{bmatrix} u_{d} \\ u_{q} \end{bmatrix} $$
$$ L_2 \frac{d}{dt} \begin{bmatrix} i_{2d} \\ i_{2q} \end{bmatrix} = -\begin{bmatrix} R_2 & -\omega_0 L_2 \\ \omega_0 L_2 & R_2 \end{bmatrix} \begin{bmatrix} i_{2d} \\ i_{2q} \end{bmatrix} + \begin{bmatrix} u_{Cd} \\ u_{Cq} \end{bmatrix} – \begin{bmatrix} e_{d} \\ e_{q} \end{bmatrix} $$

where \(L_1\) and \(L_2\) are the filter inductances, \(R_1\) and \(R_2\) are the resistances, \(C\) is the filter capacitance, \(u_{Cd}, u_{Cq}\) are capacitor voltages, \(i_{1d}, i_{1q}\) are currents through \(L_1\), \(i_{2d}, i_{2q}\) are currents through \(L_2\), and \(e_{d}, e_{q}\) are the grid voltages. The control strategy typically employs a dual-loop control scheme with an outer DC voltage loop and an inner current loop. The current loop PI controllers are designed based on the model, with feedforward decoupling to handle the cross-coupling terms. The control output is then used to generate SVPWM signals that drive the IGBTs.

2.2 Fault Type Analysis

IGBT failures can be categorized into short-circuit and open-circuit faults. While short-circuit faults often trigger protective circuits that convert them into open-circuit faults, this study focuses on open-circuit faults due to their subtle impact on the system, which makes detection challenging. The open-circuit faults of the IGBTs in a three-phase inverter can be classified into several types:

  • Single-switch open-circuit fault (6 types)
  • Same-side two-switch open-circuit fault (6 types)
  • Cross-side two-switch open-circuit fault (6 types)
  • Same-phase two-switch open-circuit fault (3 types)

Together with the normal operating state, this results in a total of 22 distinct fault classes. Table 1 summarizes these classes and their corresponding labels.

Table 1: Fault Types and Labels
Fault Number Fault Switch Fault Type Label
0 None Normal ZC
1 VT1 Single-tube Open Circuit VT1
2 VT2 VT2
3 VT3 VT3
4 VT4 VT4
5 VT5 VT5
6 VT6 VT6
7 VT1, VT3 Same-side Two-tube Open Circuit VT13
8 VT1, VT5 VT15
9 VT3, VT5 VT35
10 VT2, VT6 VT26
11 VT4, VT6 VT46
12 VT2, VT4 VT24
13 VT1, VT6 Cross-side Two-tube Open Circuit VT16
14 VT1, VT2 VT12
15 VT3, VT4 VT34
16 VT2, VT3 VT23
17 VT4, VT5 VT45
18 VT5, VT6 VT56
19 VT1, VT4 Same-phase Two-tube Open Circuit VT14
20 VT3, VT6 VT36
21 VT2, VT5 VT25

2.3 Simulation Setup and Data Acquisition

A detailed simulation model of the photovoltaic grid-connected inverter was developed using MATLAB/Simulink. To emulate an open-circuit fault in a specific IGBT, its gate drive signal is suppressed by a timer block, causing the switch to turn off and remain in a high-impedance state. The simulation parameters are listed in Table 2. The sampling frequency is set to 5 kHz, and the fundamental grid frequency is 50 Hz. For each of the 22 fault conditions, the A-phase output current is recorded. The analysis primarily focuses on the current waveforms during a stable operating period (0.1s to 0.3s). This collected current data forms the primary dataset for the subsequent fault diagnosis analysis.

Table 2: Inverter Simulation Parameters
Parameter Value
DC Voltage 700V
Switching Frequency 5 kHz
Grid Frequency 50 Hz
Filter Inductance \(L_r\) 0.5 mH
Filter Inductance \(L_g\) 0.5 mH
Filter Capacitance \(C\) 100 μF

The simulation results demonstrate distinct waveform characteristics for each fault type. Under normal operation, the output current is a clean sinusoidal wave. A single-tube fault, such as VT1, leads to the disappearance of the positive half-cycle of the A-phase current, while a VT2 fault results in a missing negative half-cycle. These observations align well with theoretical analysis and validate the accuracy of the simulation model in reproducing the dynamics of the solar inverter under faulty conditions.

3. Data Preprocessing and Feature Extraction using Markov Transition Field

Raw one-dimensional time-series current signals often lack intuitive visual clarity for classifying different fault types. To effectively leverage the powerful feature extraction capabilities of deep learning models, especially Convolutional Neural Networks (CNNs), it is advantageous to transform these signals into a 2D image format. This work employs the Markov Transition Field (MTF) method to encode the time-series data into images, preserving temporal dependencies and providing a rich visual representation.

3.1 Principle of Markov Transition Field

Markov Transition Field is a method to encode time-series data into a 2D image based on the notion of a first-order Markov chain. The transformation process is carried out in several steps. First, the given time series \(X = \{x_1, x_2, …, x_n\}\) is divided into \(Q\) quantile bins. Each data point \(x_i\) is then mapped to its corresponding quantile bin \(q_i\) \((i \in [1, Q])\). Next, a transition probability matrix \(W\) is constructed, where each element \(w_{ij}\) represents the probability of a data point transitioning from quantile bin \(q_i\) to quantile bin \(q_j\). The transition matrix \(W\) is defined as:

$$ W = \begin{bmatrix} w_{1,1} & w_{1,2} & \cdots & w_{1,Q} \\ w_{2,1} & w_{2,2} & \cdots & w_{2,Q} \\ \vdots & \vdots & \ddots & \vdots \\ w_{Q,1} & w_{Q,2} & \cdots & w_{Q,Q} \end{bmatrix} $$

where \(w_{ij} = P(x_t \in q_i | x_{t-1} \in q_j)\). To incorporate the temporal dependency across time steps, the transition matrix is extended to form the Markov Transition Field \(M\). This is achieved by placing the transition probabilities at the corresponding positions according to the time indices \(i\) and \(j\). The final MTF image \(M\) is defined as:

$$ M = \begin{bmatrix} m_{1,1} | w_{i,j} & m_{1,2} | w_{i,j} & \cdots & m_{1,n} | w_{i,j} \\ m_{2,1} | w_{i,j} & m_{2,2} | w_{i,j} & \cdots & m_{2,n} | w_{i,j} \\ \vdots & \vdots & \ddots & \vdots \\ m_{n,1} | w_{i,j} & m_{n,2} | w_{i,j} & \cdots & m_{n,n} | w_{i,j} \end{bmatrix} $$

The MTF encoding method offers several advantages for fault diagnosis: it effectively captures both time and state transition dependencies, maintains high visual quality of the transformed data, and prevents loss of information from the original signal. In this study, the A-phase current signal is segmented into samples, each representing one fundamental period (0.02 seconds equivalent to 2000 data points). Each sample is converted into a distinct MTF image, forming the basis for the image-based fault diagnosis. The dataset comprises 800 images per fault type, yielding a total dataset of 17,600 images. Examples of MTF images for various fault states are generated for model training and testing.

4. Fault Diagnosis based on Convolutional Neural Network

Convolutional Neural Networks are a class of deep learning models that have achieved remarkable success in image classification tasks. Their architecture is characterized by convolutional layers, pooling layers, and fully connected layers, which enable the automatic and hierarchical extraction of features from raw images. This section details the application of an improved AlexNet model for the fault diagnosis of the solar inverter.

4.1 Convolutional Neural Network Theory

A typical CNN framework is composed of the following core components:

  • Convolutional Layer: This layer performs the core feature extraction operation. Learnable filters, known as convolution kernels, are applied across the input image to produce spatial feature maps. The operation is mathematically expressed as:
    $$x_j^l = f\left(\sum_{i \in M_j} x_i^{l-1} \ast k_{ij}^l + b_j^l\right)$$
    where \(x_j^l\) is the j-th feature map in layer \(l\), \(k_{ij}^l\) is the convolution kernel, \(b_j^l\) is the bias, and \(f\) is a non-linear activation function.
  • Activation Function: Non-linear activations are introduced to help the network learn complex patterns. While Sigmoid and Tanh functions have been used, the Rectified Linear Unit (ReLU) is preferred due to its ability to mitigate the vanishing gradient problem and accelerate convergence. Its leaky variant, Leaky ReLU, is given by:
    $$f(x) = \begin{cases} x & \text{if } x > 0 \\ 0.01x & \text{otherwise} \end{cases}$$
  • Pooling Layer: Pooling layers reduce the spatial dimensions of feature maps, which helps control overfitting and reduce computational load. Max pooling is a common type of pooling, which selects the maximum value in a window:
    $$f(x) = \max_{i,j} x_{ij}$$
  • Fully Connected Layer: This layer flattens the high-level features from previous layers into a one-dimensional vector. It is typically connected to a final Softmax classifier to perform the classification task. The Softmax function outputs a probability distribution over the classes:
    $$\text{Softmax}(z_i) = \frac{e^{z_i}}{\sum_{j=1}^{C} e^{z_j}}$$
  • Dropout Layer: A regularization technique that randomly deactivates a fraction of neurons during training to prevent co-adaptation and reduce overfitting.

4.2 Improved AlexNet Model

The AlexNet model is a classic deep CNN that was a turning point in deep learning. Its structure consists of five convolutional layers and three fully connected layers. While AlexNet is powerful, its performance can be enhanced through several targeted improvements. In this work, the following modifications were made to create an improved AlexNet model for solar inverter fault diagnosis:

  • Leaky ReLU Activation: The standard ReLU activation function in the original AlexNet is replaced with the Leaky ReLU function. This helps prevent “dead neurons” and retains more information, leading to better model training accuracy and stability.
  • Batch Normalization: Batch normalization layers are added after each convolutional layer. This technique normalizes the inputs to each layer, which accelerates the training process, reduces sensitivity to network initialization, and has a regularizing effect, thus improving the overall performance of the network.
  • SENet Attention Mechanism: The Squeeze-and-Excitation (SE) module, a channel attention mechanism, is integrated into the network. This module adaptively recalibrates channel-wise feature responses. The SE module has two main operations: squeeze, which aggregates global spatial information via global average pooling, and excitation, which learns channel-wise dependencies using two fully connected layers. The final output \(\tilde{X}\) is calculated as:
    $$\tilde{X}_c = F_{scale}(u_c, s_c) = s_c \cdot u_c$$
    where \(u_c\) is the c-th channel of the feature map \(U\) and \(s_c\) is the corresponding weight learned by the SE module. This mechanism allows the network to focus on the most informative features, enhancing its discriminative power for fault identification.

4.3 Experimental Setup and Results

The experiments are conducted using a Python environment with TensorFlow backend. The MTF images are resized to 224×224×3 to be compatible with the input layer of the improved AlexNet. The dataset is partitioned into a training set (70%), a testing set (30%), and a separate validation set. The network is trained using the Adam optimizer with an initial learning rate of \(10^{-3}\), a batch size of 32, and a Dropout rate of 0.5 for 100 epochs. The performance of the models is evaluated using classification accuracy.

To validate the effectiveness of the MTF encoding, its diagnostic performance was compared with other popular image encoding methods, namely Gramian Angular Summation Field (GASF), Gramian Angular Difference Field (GADF), and Recurrence Plots (RP). The results of this comparison, using the improved AlexNet as the classifier, are presented in Table 3.

Table 3: Comparison of Different Image Encoding Methods
Encoding Method Training Accuracy (%) Testing Accuracy (%) Loss Value
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 demonstrate that the MTF encoding method achieves the highest fault diagnosis accuracy, reaching 93.75% on the test set, and the lowest loss value. The MTF images effectively capture the dynamic characteristics of the fault current signals, making them more distinguishable for the CNN model.

Next, the performance of the improved AlexNet was compared against the original AlexNet model using the MTF dataset. The training and validation accuracy and loss curves are plotted. The final testing accuracies are shown in Table 4.

Table 4: Comparison of Original and Improved AlexNet
Network Recognition Accuracy (%) Loss Value
AlexNet 89.84 0.128
Improved AlexNet 93.7 0.07

The improved AlexNet model demonstrates a significant improvement of 3.9 percentage points in accuracy over the original network, reaching 93.7% and achieving a lower loss. This improvement can be attributed to the incorporation of the Leaky ReLU activation, batch normalization layers, and the SE attention mechanism, which together enhance the model’s feature extraction and generalization capabilities. A confusion matrix for the improved AlexNet with the MTF dataset was generated to provide a detailed analysis of the classification performance. The matrix shows that the model correctly classifies the vast majority of the fault instances, with very few misclassifications, which proves its reliability in identifying faults of the solar inverter. To evaluate the robustness of the proposed method, a noise interference test is performed by adding Gaussian white noise with different Signal-to-Noise Ratios (SNR) of 40dB, 30dB, and 25dB to the test set. The model’s accuracy under different noise levels is summarized in Table 5.

Table 5: Model Accuracy Under Different Noise Levels
Model 0dB 40dB 30dB 25dB
Improved AlexNet 94% 99.8% 99.7% 99.5%

The model exhibits exceptional robustness against noise, with accuracy exceeding 99.5% under all tested noise levels. The increase in accuracy compared to the noiseless test set is likely due to the regularization effect of noise, which helps the model generalize better. This further confirms the effectiveness and noise resistance of the MTF-CNN model for solar inverter IGBT fault diagnosis.

5. Fault Diagnosis based on Swin Transformer

While Convolutional Neural Networks are adept at capturing local features, they can sometimes struggle to model long-range dependencies and global context effectively. To address this, the Swin Transformer, a hierarchical vision transformer based on shifted windows, is explored in this chapter. This novel architecture efficiently computes self-attention within local windows and facilitates cross-window connections, achieving a superior balance between computational efficiency and representation power.

5.1 Vision Transformer Foundation

The Transformer model, originally designed for natural language processing, has been successfully adapted for computer vision tasks. The Vision Transformer (ViT) is a pioneering model that treats an image as a sequence of patches and employs self-attention mechanisms to model global dependencies. The core of the Transformer is the multi-head self-attention (MSA) mechanism, which maps a query and a set of key-value pairs to an output. The scaled dot-product attention is defined as:

$$\text{Attention}(Q, K, V) = \text{Softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V$$

where Q, K, V are the query, key, and value matrices. The MSA mechanism runs this attention operation in parallel across multiple heads, allowing the model to jointly attend to information from different representation subspaces.

5.2 Swin Transformer Architecture

The Swin Transformer introduces several key innovations over the standard ViT to make it more efficient and effective for visual recognition. Its architecture is hierarchical, with stages operating at different resolutions, which is similar in spirit to a feature pyramid network.

  • Hierarchical Architecture: The input image is first partitioned into non-overlapping patches (e.g., 4×4 pixels each). The first stage (Stage 1) processes these patches using a linear embedding layer and a set of Swin Transformer blocks. The subsequent stages (Stage 2, 3, 4) employ a Patch Merging layer to reduce the spatial resolution by a factor of 2 while increasing the channel dimension. This creates a hierarchical representation with feature maps at various scales.
  • Shifted Window-based Self-Attention: The key innovation of the Swin Transformer is its use of self-attention within local windows. In the standard Window-based MSA (W-MSA), the feature map is divided into non-overlapping windows, and self-attention is computed only within each window. To enable cross-window information exchange, a shifting mechanism (Shifted Window MSA, SW-MSA) is applied between successive transformer blocks. This approach significantly reduces computational complexity compared to global self-attention, while still allowing for the modeling of global dependencies through the layer-by-layer shifting.

The structure of a Swin Transformer block involves a sequence of Layer Normalization (LN), W-MSA or SW-MSA, MLP, and residual connections. The computational complexity of W-MSA, \(\Omega(W\text{-}MSA)\), is given by:

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

where \(h\) and \(w\) are the height and width of the input feature map, \(C\) is the channel dimension, and \(M\) is the size of the local window. This is in contrast to the global MSA, which has a complexity of \(O((hw)^2)\), making the Swin Transformer scalable to larger images.

5.3 MTF-Swin Transformer Fault Diagnosis Framework

The proposed MTF-Swin Transformer fault diagnosis framework integrates the MTF image encoding with the Swin Transformer model. The workflow is as follows: first, the one-dimensional current fault data is converted into 2D MTF images as described in section 3. These images are then used as input to the Swin Transformer-T (Tiny) model. The model configuration consists of the following hyperparameters:

Table 6: Swin Transformer-T Model Settings
Parameter Value
Input image size 224×224×3
Attention heads 8
Learning rate 0.0001
Iterations 100
Dropout 0.5
Batch size 8
Optimizer AdamW
Loss Function Cross Entropy

This model variant, Swin Transformer-T, utilizes a configuration with window size 7, embedding dimension of 96 in Stage 1, 192 in Stage 2, 384 in Stage 3, and 768 in Stage 4. The number of Swin Transformer blocks in each stage is 2, 2, 6, and 2, with the number of attention heads being 3, 6, 12, and 24, respectively.

5.4 Results and Analysis

The MTF-Swin Transformer model was trained on the prepared MTF dataset for 100 epochs. The training and validation loss and accuracy curves are shown in a figure. The model demonstrates good convergence, reaching a steady state after about 30 epochs, with a final training accuracy of approximately 95.2%. A confusion matrix was created for the Swin Transformer model to provide a more detailed analysis of the classification results on the test set. The overall validation accuracy is 95.4%, which further confirms the model’s high performance.

To benchmark the Swin Transformer model, its performance was compared with several other state-of-the-art models using the same MTF dataset, including the improved AlexNet, MobileViT, VGGNet-11, VGGNet-16, and GoogLeNet. The results are summarized in Table 7.

Table 7: Comparison of Different Models on MTF Dataset
Network Model Accuracy (%) Loss Value
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

The Swin Transformer model achieves the highest fault diagnosis accuracy of 95.2%, which is an improvement of 1.5 percentage points over the improved AlexNet model and significantly outperforms other traditional CNN models. This demonstrates the superior feature extraction and global modeling capabilities of the Swin Transformer architecture, making it highly suitable for complex fault diagnosis tasks in a solar inverter.

To further evaluate the robustness and generalization capability of the proposed model, a noise immunity test was conducted. Gaussian white noise at different SNR levels (40dB, 30dB, 25dB) was added to the test data. The model’s performance under these noisy conditions is presented in Table 8.

Table 8: Swin Transformer Performance Under Different Noise Levels
Noise Level Accuracy (%)
40dB >99.6
30dB >99.6
25dB >99.6

As can be seen, the Swin Transformer model exhibits outstanding noise resistance, achieving an average accuracy of over 99.6% across all tested noise levels. This robustness is a critical feature for real-world applications where sensor noise and environmental interference are inevitable, proving the reliability of the proposed MTF-Swin Transformer method for the reliable fault diagnosis of solar inverters.

Conclusion

This research provides a comprehensive study on the application of deep learning methods for the IGBT open-circuit fault diagnosis of a three-phase photovoltaic grid-connected inverter, also referred to throughout as a solar inverter. The key findings and contributions can be summarized as follows:

  • A high-fidelity simulation model for the solar inverter was established, and the full spectrum of IGBT open-circuit faults was analyzed. The collected current signals under various fault conditions form a foundational benchmark dataset for model development and validation. This fault dataset is essential for exploring the different fault states of the solar inverter.
  • A diagnostic approach based on the Markov Transition Field (MTF) and an improved AlexNet model was proposed. The MTF method proved to be an effective tool for transforming raw one-dimensional current signals into detailed 2D images, preserving vital temporal information that is beneficial for image-based classification. The improved AlexNet, incorporating Leaky ReLU, batch normalization, and the SENet attention mechanism, achieved a diagnostic accuracy of 93.7%, which is 3.9% higher than the original network. The MTF encoding also outperformed other encoding methods, demonstrating its superiority for solar inverter fault classification tasks.
  • To further improve accuracy, a novel diagnostic framework combining MTF and the Swin Transformer was developed. The Swin Transformer, with its shifted window-based hierarchical attention, proved to be exceptionally powerful, achieving a diagnostic accuracy of 95.2% on the test set and 95.4% on the validation set. This represents a substantial improvement of 1.5% over the improved AlexNet model. The model also demonstrated exceptional robustness, maintaining over 99.6% average accuracy under severe noise conditions.

The research concludes that deep learning, particularly the Swin Transformer, offers a highly effective and reliable solution for IGBT fault diagnosis in solar inverters. These advanced techniques enable more accurate, robust, and efficient condition monitoring, enhancing the operational safety and economic viability of photovoltaic power plants. Future work will focus on extending the proposed methods to other types of solar inverter topologies, such as multilevel inverters, and validating the approach with data from hardware-in-the-loop experiments to further enhance its practical applicability.

Scroll to Top