Bidirectional inverter open-circuit fault diagnosis method based on neural network
Through a neural network-based method, CNN is used to extract the fault characteristics of the bidirectional inverter voltage signal and MLP is used for classification, which solves the problem of inaccurate bidirectional inverter open circuit fault diagnosis in the existing technology and achieves fast and accurate fault diagnosis. Detection and positioning improve the reliability and safety of the system.
Patent Information
- Application Number
- CN202410646735.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology cannot diagnose the open circuit fault of the bidirectional inverter in a timely and accurate manner, resulting in inaccurate or unstable detection and diagnosis results, and requires an in-depth understanding of the working principle of the bidirectional inverter or a large amount of data for training.
Using a neural network-based method, the fault characteristics in the voltage signal are extracted through the convolutional neural network (CNN) and input into the multi-layer perceptron (MLP) for fault classification to achieve fast and accurate detection of bidirectional inverter open circuit faults. Accurate detection and positioning. This method does not require the establishment of mathematical models or the use of additional sensor hardware, and uses existing output voltage data for diagnosis.
It improves the accuracy and stability of fault detection and diagnosis of bidirectional inverters, reduces data dimensions and computational complexity, enhances the generalization ability of the model, and achieves fast and accurate detection and location of open circuit faults.
Smart Images

Figure CN118606818A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of deep learning technology, and more specifically, to a bidirectional inverter open circuit fault diagnosis method based on neural network. Background Art
[0002] A bidirectional inverter is a power electronic device that can realize bidirectional energy conversion between DC power supply and AC power supply. It is widely used in photovoltaic energy storage systems, electric vehicle charging and discharging systems, microgrid systems and other fields. The reliability and stability of bidirectional inverters are of great significance to ensure the normal operation of the system and improve energy utilization efficiency. However, various faults may occur in bidirectional inverters during operation. One of the most common faults is open circuit fault, that is, one or more switch tubes in the bidirectional inverter fail, resulting in distortion or interruption of output voltage or current, thus affecting the performance and safety of the system. Therefore, timely and accurate detection and diagnosis of open circuit faults of bidirectional inverters is of great significance to avoid secondary faults, reduce maintenance costs and improve system reliability.
[0003] At present, many methods for detecting and diagnosing open-circuit faults of bidirectional inverters have been proposed, which can be mainly divided into model-based methods and data-based methods. Model-based methods require the establishment of a mathematical model or physical model of the bidirectional inverter, and judge whether a fault has occurred and the fault location based on the deviation between the model output and the actual output. The advantage of this type of method is that it does not require additional sensors or hardware, but the disadvantage is that it requires an in-depth understanding of the working principle and parameters of the bidirectional inverter, and the model may have errors or uncertainties, resulting in inaccurate or unstable detection and diagnosis results. Data-based methods do not require the establishment of a model of the bidirectional inverter, but use existing data to train a fault detection and diagnosis algorithm, and judge whether a fault has occurred and the fault location based on the algorithm output. The advantage of this type of method is that it does not require an in-depth understanding of the internal structure and working mechanism of the bidirectional inverter, and can adapt to bidirectional inverters of different types and sizes, but the disadvantage is that a large amount of data is required to train the algorithm, and there may be problems such as data quality, data labeling, and data generalization, which affect the performance and robustness of the algorithm. Summary of the invention
[0004] In view of the defect that the open circuit fault of a bidirectional inverter cannot be diagnosed in a timely and accurate manner in the prior art, a method is provided to quickly, accurately and effectively detect and locate the open circuit fault of a bidirectional inverter, thereby improving the reliability and safety of the bidirectional inverter. The purpose of the present invention is to achieve the above purpose, and the technical solution adopted by the present invention is:
[0005] A method for diagnosing an open circuit fault of a bidirectional inverter based on a neural network comprises the following steps:
[0006] S1. Data collection and preprocessing: Collect the output voltage signals of the bidirectional inverter under different working conditions and perform preprocessing operations;
[0007] S2. Feature extraction: The preprocessed voltage signal is input into a fault feature extraction model based on a convolutional neural network (CNN) to obtain a trained convolutional neural network (CNN) fault feature extraction model; the model consists of multiple convolutional layers, pooling layers, and fully connected layers, and can automatically learn and extract fault features from voltage signals;
[0008] S3. Fault classification: The extracted fault features are input into a fault classification model based on a multi-layer perceptron (MLP) to obtain a trained multi-layer perceptron (MLP) fault classification model, which consists of multiple fully connected layers and activation functions and can determine whether the bidirectional inverter has an open circuit fault and on which switch device the fault occurs according to the fault features;
[0009] S4. Real-time diagnosis: The real-time output voltage signal of the bidirectional inverter to be diagnosed is applied to the trained convolutional neural network (CNN) fault feature extraction model and multi-layer perceptron (MLP) fault classification model to output the fault diagnosis result.
[0010] Furthermore, the bidirectional inverter is a single-phase bidirectional inverter, a two-phase bidirectional inverter or a three-phase bidirectional inverter.
[0011] Furthermore, in the neural network-based bidirectional inverter open circuit fault diagnosis method, in step S1, the different working states include a rectification working state and an inverter working state.
[0012] Furthermore, in the bidirectional inverter open circuit fault diagnosis method based on a neural network, in step S1, the operation of collecting the output voltage signal of the bidirectional inverter includes:
[0013] a) collecting the voltage amplitude of the output voltage signal of the bidirectional inverter;
[0014] b) Collecting the voltage harmonic content of the output voltage signal of the bidirectional inverter;
[0015] c) Collect the voltage imbalance of the output voltage signal of the bidirectional inverter.
[0016] Furthermore, in the bidirectional inverter open circuit fault diagnosis method based on neural network, in step S1, the preprocessing operation includes:
[0017] a) Perform low-pass filtering on the voltage signal to remove high-frequency noise;
[0018] b) Perform mean filtering on the voltage signal to remove the DC component;
[0019] c) Normalize the voltage signal so that its range is between [0,1].
[0020] 6 Further, in the bidirectional inverter open circuit fault diagnosis method based on neural network, the fault feature extraction model based on convolutional neural network (CNN) in step S2 has the following structure:
[0021] a) The first layer is the input layer, which receives the preprocessed voltage signal;
[0022] b) The second layer is a convolutional layer, which uses multiple convolution kernels to perform convolution operations on the input signal and uses the ReLU function as the activation function;
[0023] c) The third layer is the pooling layer, which uses the maximum pooling method to downsample the output of the convolutional layer;
[0024] d) The fourth layer is the convolution layer, which uses multiple convolution kernels to perform convolution operations on the output of the pooling layer and uses the ReLU function as the activation function;
[0025] e) The fifth layer is the pooling layer, which uses the maximum pooling method to downsample the output of the convolutional layer;
[0026] f) The sixth layer is a fully connected layer, which flattens the output of the pooling layer into a one-dimensional vector and uses the ReLU function as the activation function; g) The seventh layer is the output layer, which maps the output of the fully connected layer into a fault feature vector.
[0027] Furthermore, in the bidirectional inverter open circuit fault diagnosis method based on neural network, the fault classification model based on multilayer perceptron (MLP) in step S3 has the following structure:
[0028] a) The first layer is the input layer, which receives the output of the convolutional neural network (CNN) fault feature extraction model;
[0029] b) The second layer is a fully connected layer and uses the ReLU function as the activation function;
[0030] c) The third layer is a fully connected layer, and the ReLU function is used as the activation function;
[0031] d) The fourth layer is the output layer, which uses the Softmax function as the activation function and outputs the fault classification probability.
[0032] Furthermore, in the bidirectional inverter open circuit fault diagnosis method based on neural network, the switching device described in step S3 includes an insulated gate bipolar transistor (IGBT) and a metal oxide semiconductor field effect transistor (MOSFET).
[0033] Furthermore, in the neural network-based bidirectional inverter open circuit fault diagnosis method, the training mentioned in steps S2 and S3 is to select appropriate optimizers, loss functions, and evaluation indicators for the convolutional neural network (CNN) fault feature extraction model and the multilayer perceptron (MLP) fault classification model.
[0034] Furthermore, in the neural network-based bidirectional inverter open circuit fault diagnosis method, the convolutional neural network (CNN) fault feature extraction model and the multilayer perceptron (MLP) fault classification model are both trained using a supervised learning method, and the back propagation algorithm and Adam optimizer are used for parameter update, and the cross entropy loss function is used as the optimization target.
[0035] Furthermore, the rectification working state and the inversion working state include a normal working state and an open circuit fault working state in the rectification working state; and a normal working state and an open circuit fault working state in the inversion working state.
[0036] On the basis of the above technical scheme, compared with the prior art, the advantages of the present invention are: the present invention adopts a bidirectional inverter open circuit fault diagnosis method based on neural network, which does not need to establish a mathematical model or physical model of the bidirectional inverter, nor does it need additional sensors or hardware. It only needs to use the existing output voltage data to realize the detection and diagnosis of the bidirectional inverter open circuit fault; and the present invention uses a combination of CNN model and MLP model. The CNN model can automatically learn and extract useful fault feature signals from the output voltage data, and the MLP model can effectively classify the fault feature signals, thereby improving the accuracy and stability of fault detection and diagnosis; the present invention uses methods such as information entropy or correlation coefficient to perform feature selection on the fault feature signal, and screens out the feature subset with the most distinguishing ability, thereby reducing data dimension and redundancy, reducing calculation complexity and training time, and enhancing the generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 This is a flow chart of a neural network-based bidirectional inverter open circuit fault diagnosis method described in Example 1.
[0039] Figure 2 This is a schematic diagram of the structure of the open circuit fault diagnosis model based on neural network described in Example 1.
[0040] Figure 3 This is a structural schematic diagram of the convolutional neural network (CNN) fault feature extraction model described in Example 1.
[0041] Figure 4 Schematic diagram of the structure of the fault classification model of the multilayer perceptron (MLP) described in Example 1. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0043] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0044] Example 1
[0045] This embodiment relates to a bidirectional inverter open circuit fault diagnosis method based on a neural network, which is suitable for detecting and locating the open circuit fault of a three-phase full-bridge bidirectional inverter. The specific implementation of the present invention is as follows:
[0046] First, the output voltage signal of the bidirectional inverter in different working states is collected and preprocessed. Specifically, the different working states include the rectification working state and the inversion working state, which correspond to the two modes of the bidirectional inverter converting AC power into DC power and converting DC power into AC power. In the rectification working state, the output voltage signal of the bidirectional inverter is a DC voltage signal; in the inversion working state, the output voltage signal of the bidirectional inverter is an AC voltage signal. The operation of collecting the output voltage signal of the bidirectional inverter includes the following three aspects:
[0047] a) Collect the voltage amplitude of the output voltage signal of the bidirectional inverter, that is, measure the peak value or effective value of the output voltage signal of each phase;
[0048] b) Collect the voltage harmonic content of the output voltage signal of the bidirectional inverter, that is, analyze the harmonic components in the output voltage signal of each phase through methods such as Fourier transform or wavelet transform, and calculate its total harmonic distortion (THD); c) Collect the voltage imbalance of the output voltage signal of the bidirectional inverter, that is, calculate the imbalance degree between the output voltage signals of each phase through the symmetrical component method or other methods, and express it as a percentage.
[0049] The preprocessing operation includes the following three aspects:
[0050] a) low-pass filtering the voltage signal to remove high-frequency noise; for example, using a Butterworth filter or other types of filters to filter the voltage signal;
[0051] b) performing mean filtering on the voltage signal to remove the DC component; for example, performing mean filtering on the voltage signal using a moving average method or other methods;
[0052] c) Normalizing the voltage signal so that its range is between [0, 1]; for example, using a maximum-minimum normalization method or other methods to normalize the voltage signal.
[0053] Secondly, the preprocessed voltage signal is input into a fault feature extraction model based on a convolutional neural network (CNN) to obtain a trained convolutional neural network (CNN) fault feature extraction model. Specifically, the fault feature extraction model based on a convolutional neural network (CNN) has the following structure:
[0054] a) The first layer is the input layer, which receives the pre-processed voltage signal; for example, the input layer can receive data of any one or more phases of the three-phase output voltage signal;
[0055] b) The second layer is a convolutional layer, which uses multiple convolution kernels to perform convolution operations on the input signal and uses the ReLU function as the activation function; for example, the convolutional layer can use 16 convolution kernels of size 3×3 and use zero padding and a stride of 1 to perform convolution operations;
[0056] c) The third layer is the pooling layer, which uses the maximum pooling method to downsample the output of the convolutional layer; for example, the pooling layer can use a pooling window of size 2×2 and perform the pooling operation with a stride of 2;
[0057] d) The fourth layer is a convolutional layer, which uses multiple convolution kernels to perform convolution operations on the output of the pooling layer, and uses the ReLU function as the activation function; for example, the convolutional layer can use 32 convolution kernels of size 3×3, and use zero padding and a stride of 1 to perform convolution operations;
[0058] e) The fifth layer is a pooling layer, which uses the maximum pooling method to downsample the output of the convolutional layer; for example, the pooling layer can use a pooling window of size 2×2 and perform pooling operations with a stride of 2;
[0059] f) The sixth layer is a fully connected layer, which flattens the output of the pooling layer into a one-dimensional vector and uses the ReLU function as the activation function; for example, the fully connected layer can map the flattened vector into a 128-dimensional feature vector;
[0060] g) The seventh layer is the output layer, which maps the output of the fully connected layer to a fault feature vector; for example, the output layer can map the feature vector to an 8-dimensional fault feature vector, where each dimension corresponds to the open circuit fault state of a switch device in the bidirectional inverter. The fault feature extraction model based on the convolutional neural network (CNN) is trained using a supervised learning method, using the back propagation algorithm and the Adam optimizer for parameter update, and using the cross entropy loss function as the optimization target. The training data consists of the output voltage signals of the bidirectional inverter under different working states and different open circuit fault conditions and their corresponding fault labels. The fault label is represented by an 8-bit binary number, where each bit corresponds to the open circuit fault state of a switch device in the bidirectional inverter, 0 for normal, and 1 for open circuit. For example, 00000000 means no fault, 00000001 means the first switch device is open, 10000000 means the eighth switch device is open, and 01000010 means the second and seventh switch devices are open at the same time. Again, the extracted fault features are input into a fault classification model based on a multi-layer perceptron (MLP) to obtain a trained multi-layer perceptron (MLP) fault classification model. Specifically, the fault classification model based on a multi-layer perceptron (MLP) has the following structure:
[0061] a) The first layer is an input layer, which receives the output of a convolutional neural network (CNN) fault feature extraction model; for example, the input layer may receive an 8-dimensional fault feature vector;
[0062] b) The second layer is a fully connected layer and uses the ReLU function as the activation function; for example, the fully connected layer can map the input vector to a 64-dimensional hidden vector;
[0063] c) The third layer is a fully connected layer and uses the ReLU function as the activation function; for example, the fully connected layer can map the hidden vector to a 32-dimensional hidden vector;
[0064] d) The fourth layer is the output layer, which uses the Softmax function as the activation function and outputs the fault classification probability; for example, the output layer can map the hidden vector to a 9-dimensional probability vector, where each dimension corresponds to whether there is an open circuit fault in the bidirectional inverter and on which switch device the fault occurs. Specifically, the first dimension represents the probability of no fault, and the second to ninth dimensions represent the probability of the first to eighth switch devices being open circuit respectively. The fault classification model based on the multi-layer perceptron (MLP) is trained using a supervised learning method, using the back propagation algorithm and the Adam optimizer for parameter update, and using the cross entropy loss function as the optimization target. The training data consists of the output of the convolutional neural network (CNN) fault feature extraction model and its corresponding fault label. The fault label is represented by a 9-bit binary number, where the first bit represents the no-fault state, the second to ninth bits represent the open circuit states of the first to eighth switch devices respectively, 0 represents normal, and 1 represents open circuit. For example, 000000000 indicates no fault, 000000001 indicates that the first switch device is open, 100000000 indicates that the eighth switch device is open, and 010000010 indicates that the second and seventh switch devices are open at the same time.
[0065] The specific settings are based on actual construction requirements and are not specifically limited in this application.
[0066] It should be noted that, in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0067] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for diagnosing open circuit faults of bidirectional inverters based on neural networks, characterized in that: The following steps are involved: S1. Data collection and preprocessing: Collect the output voltage signals of the bidirectional inverter under different working conditions and perform preprocessing operations; S2. Feature extraction: The preprocessed voltage signal is input into a fault feature extraction model based on a convolutional neural network (CNN) to obtain a trained convolutional neural network (CNN) fault feature extraction model; the model consists of multiple convolutional layers, pooling layers, and fully connected layers, and can automatically learn and extract fault features from voltage signals; S3. Fault classification: The extracted fault features are input into a fault classification model based on a multi-layer perceptron (MLP) to obtain a trained multi-layer perceptron (MLP) fault classification model, which consists of multiple fully connected layers and activation functions and can determine whether the bidirectional inverter has an open circuit fault and on which switch device the fault occurs according to the fault features; S4. Real-time diagnosis: The real-time output voltage signal of the bidirectional inverter to be diagnosed is applied to the trained convolutional neural network (CNN) fault feature extraction model and multi-layer perceptron (MLP) fault classification model to output the fault diagnosis result.
2. The bidirectional inverter according to claim 1, characterized in that The bidirectional inverter is a single-phase bidirectional inverter, a two-phase bidirectional inverter or a three-phase bidirectional inverter.
3. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: In step S1, different working states include a rectification working state and an inverter working state.
4. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: In step S1, the operation of collecting the output voltage signal of the bidirectional inverter includes: a) collecting the voltage amplitude of the output voltage signal of the bidirectional inverter; b) Collecting the voltage harmonic content of the output voltage signal of the bidirectional inverter; c) Collect the voltage imbalance of the output voltage signal of the bidirectional inverter.
5. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: In step S1, the preprocessing operation includes: a) Perform low-pass filtering on the voltage signal to remove high-frequency noise; b) Perform mean filtering on the voltage signal to remove the DC component; c) Normalize the voltage signal so that its range is between [0,1].
6. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: The fault feature extraction model based on convolutional neural network (CNN) in step S2 has the following structure: a) The first layer is the input layer, which receives the preprocessed voltage signal; b) The second layer is a convolutional layer, which uses multiple convolution kernels to perform convolution operations on the input signal and uses the ReLU function as the activation function; c) The third layer is the pooling layer, which uses the maximum pooling method to downsample the output of the convolutional layer; d) The fourth layer is the convolution layer, which uses multiple convolution kernels to perform convolution operations on the output of the pooling layer and uses the ReLU function as the activation function; e) The fifth layer is the pooling layer, which uses the maximum pooling method to downsample the output of the convolutional layer; f) The sixth layer is a fully connected layer, which flattens the output of the pooling layer into a one-dimensional vector and uses the ReLU function as the activation function; g) The seventh layer is the output layer, which maps the output of the fully connected layer into a fault feature vector.
7. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: The fault classification model based on multi-layer perceptron (MLP) in step S3 has the following structure: a) The first layer is the input layer, which receives the output of the convolutional neural network (CNN) fault feature extraction model; b) The second layer is a fully connected layer and uses the ReLU function as the activation function; c) The third layer is a fully connected layer, and the ReLU function is used as the activation function; d) The fourth layer is the output layer, which uses the Softmax function as the activation function and outputs the fault classification probability.
8. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: The switching device described in step S3 includes an insulated gate bipolar transistor (IGBT) and a metal oxide semiconductor field effect transistor (MOSFET).
9. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: The training mentioned in steps S2 and S3 is to select appropriate optimizers, loss functions, and evaluation indicators for the convolutional neural network (CNN) fault feature extraction model and the multi-layer perceptron (MLP) fault classification model.
10. The method for diagnosing open circuit faults of bidirectional inverters based on neural networks according to claim 1, characterized in that: The convolutional neural network (CNN) fault feature extraction model and the multi-layer perceptron (MLP) fault classification model are both trained using a supervised learning method, using a back propagation algorithm and an Adam optimizer for parameter update, and using a cross entropy loss function as an optimization target.
11. The rectification working state and the inversion working state according to claim 3 are characterized in that: It includes the normal working state and the open circuit fault working state in the rectification working state; and the normal working state and the open circuit fault working state in the inverter working state.
