Fault diagnosis method, device, electronic equipment and storage medium for battery swap cabinet
Through the current signal data collected by wireless sensors and compressed sensing processing, combined with the spatio-temporal graph convolution network and chaotic quantum particle swarm optimization algorithm, a high-precision fault diagnosis model is formed, which solves the accuracy and difficulty of fault diagnosis of power swap cabinets in the existing technology. Reliability issues, enabling rapid fault location and severity analysis.
Patent Information
- Application Number
- CN202410869564.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Existing fault diagnosis methods for power swapping cabinets rely on manual inspections and simple automated monitoring, which cannot achieve high-precision and high-reliability fault diagnosis. It is especially difficult to accurately identify fault types and severity in complex power systems.
Wireless sensors are used to collect historical current signal data of power exchange cabinets, fault diagnosis training is performed through compressed sensing processing and a two-layer spatiotemporal graph convolution network, and network parameters are optimized using a chaotic quantum particle swarm optimization algorithm to form a high-precision fault diagnosis model. Feature identification and vector encoding are performed through real-time current signal data sets to achieve fault node location, type identification and severity analysis.
It improves the accuracy and reliability of fault diagnosis of the power exchange cabinet, can quickly locate the fault point, reduces the troubleshooting time, and has good adaptability and robustness in different working environments.
Smart Images

Figure CN118427690B
Abstract
Description
Technical Field
[0001] The present application relates to the field of fault diagnosis technology, and in particular to a method, device, electronic device and storage medium for diagnosing faults in a battery swap cabinet. Background Art
[0002] As an important device for replacing and charging electric vehicle batteries, the stability and reliability of the battery swap cabinet are crucial. However, the existing battery swap cabinets are prone to various faults during long-term operation, such as abnormal current, equipment aging, and line damage. If these faults cannot be detected and handled in time, they will not only affect the normal operation of the battery swap cabinet, but may also cause more serious safety problems and even cause the electric vehicle to be unable to be used normally.
[0003] At present, the traditional fault diagnosis method of power exchange cabinets mainly relies on manual inspections and regular maintenance. This method is not only time-consuming and labor-intensive, but also easily affected by human factors, resulting in the failure to detect and handle faults in a timely manner. In addition, although some existing automated monitoring systems can collect current signals in real time, they still have many deficiencies in data processing and fault diagnosis. For example, most existing monitoring systems can only perform simple threshold alarms, lack the ability to deeply analyze fault types and fault severity, and cannot meet the needs of complex power systems for high-precision and high-reliability fault diagnosis. Summary of the invention
[0004] The present application provides a method, device, electronic device and storage medium for diagnosing faults in a battery swap cabinet, thereby improving the accuracy of diagnosing faults in a battery swap cabinet.
[0005] The first aspect of the present application provides a method for diagnosing a fault in a power-swap cabinet, and the method for diagnosing a fault in a power-swap cabinet includes:
[0006] The historical current signal of multiple key nodes in the power exchange cabinet is collected through wireless sensors to obtain the historical current signal data of each key node;
[0007] Performing compressed sensing processing on the historical current signal data of each key node respectively to obtain compressed sample signal data of each key node;
[0008] Input the compressed sample signal data of each key node into a preset two-layer spatiotemporal graph convolutional network for fault diagnosis training, and optimize the network parameters of the two-layer spatiotemporal graph convolutional network by using a chaotic quantum particle swarm optimization algorithm to obtain a target fault diagnosis model;
[0009] Acquire a real-time current signal data set of multiple key nodes in the power exchange cabinet, and perform feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector;
[0010] Inputting the current signal encoding vector into the first layer of the spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtaining the fault node and fault type label;
[0011] The fault node, the fault type label and the current signal encoding vector are input into the second-layer spatiotemporal graph convolutional network in the target fault diagnosis model to perform fault severity identification and obtain a fault severity label.
[0012] A second aspect of the present application provides a power exchange cabinet fault diagnosis device, the power exchange cabinet fault diagnosis device comprising:
[0013] The acquisition module is used to collect historical current signals from multiple key nodes in the power exchange cabinet through wireless sensors to obtain historical current signal data of each key node;
[0014] A processing module, used to perform compressed sensing processing on the historical current signal data of each key node to obtain compressed sample signal data of each key node;
[0015] A training module is used to input the compressed sample signal data of each key node into a preset two-layer space-time graph convolution network for fault diagnosis training, and optimize the network parameters of the two-layer space-time graph convolution network respectively through a chaotic quantum particle swarm optimization algorithm to obtain a target fault diagnosis model;
[0016] An encoding module, used to obtain a real-time current signal data set of multiple key nodes in the power exchange cabinet, and perform feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector;
[0017] A fault type identification module, used for inputting the current signal encoding vector into the first layer of the spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtain the fault node and fault type label;
[0018] The severity identification module is used to input the fault node, the fault type label and the current signal encoding vector into the second layer spatiotemporal graph convolutional network in the target fault diagnosis model to identify the fault severity and obtain the fault severity label.
[0019] The third aspect of the present application provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the electronic device executes the above-mentioned battery exchange cabinet fault diagnosis method.
[0020] A fourth aspect of the present application provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned power exchange cabinet fault diagnosis method.
[0021] In the technical solution provided by the present application, wireless sensors are used to collect historical current signals of multiple key nodes in the power exchange cabinet, realizing seamless real-time monitoring. Compressed sensing processing technology compresses the historical current signal data of each key node, greatly reducing the amount of data and improving the efficiency of data transmission and processing. A two-layer spatiotemporal graph convolutional network is used for fault diagnosis training, and the network parameters are optimized in combination with the chaotic quantum particle swarm optimization algorithm to form a high-precision target fault diagnosis model. This model can accurately identify the fault node and fault type, and can analyze the severity of the fault to provide detailed fault information for maintenance personnel. A two-layer spatiotemporal graph convolutional network is used to locate the fault node and identify the fault type, and the accuracy and reliability of the fault diagnosis results are ensured by feature recognition and vector encoding of the real-time current signal data set. This method can quickly locate the fault point and identify the fault type, reducing the fault processing time. In the diagnosis model, a second layer of spatiotemporal graph convolutional network is set to identify the fault severity, and the gated cyclic unit is combined for timing modeling, which can refine the fault analysis and provide fault severity labels. The real-time current signal data in the power-swap cabinet is fully preprocessed and feature extracted, and the autoencoder network is used for vector conversion to ensure the comprehensiveness and accuracy of data analysis. The spatiotemporal graph convolutional network is optimized through the chaotic quantum particle swarm optimization algorithm, so that the diagnostic model has good adaptability and robustness in different working environments and conditions. This optimization algorithm can dynamically adjust the model parameters, thereby improving the accuracy of power-swap cabinet fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a schematic diagram of an embodiment of a method for diagnosing faults in a power exchange cabinet in an embodiment of the present application;
[0023] Figure 2 It is a schematic diagram of an embodiment of a battery swap cabinet fault diagnosis device in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The embodiments of the present application provide a method, device, electronic device and storage medium for diagnosing faults in a battery swap cabinet, thereby improving the accuracy of diagnosing faults in the battery swap cabinet.
[0025] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the method for diagnosing faults of a power exchange cabinet in the embodiment of the present application includes:
[0027] Step 101: collect historical current signals of multiple key nodes in the power exchange cabinet through wireless sensors to obtain historical current signal data of each key node;
[0028] It is understandable that the execution subject of the present application may be a fault diagnosis device for a power exchange cabinet, or a terminal or a server, which is not limited here. The present application embodiment is described by taking a server as the execution subject as an example.
[0029] Specifically, an electromagnetic field scan is performed on multiple key nodes in the power exchange cabinet to determine the spatial coordinates of each key node, and these coordinate information is summarized to form a key node coordinate set. According to the key node coordinate set, wireless current sensors are accurately arranged at each key node. These sensors need to be time synchronized to ensure that the data collected by all sensors have consistent timestamps, thereby eliminating data errors caused by asynchronization and obtaining synchronized timestamps. The current data at each key node is transmitted to the data acquisition center according to the synchronized timestamp using a wireless transmission protocol. The wireless transmission protocol can select a low-power, anti-interference protocol such as ZigBee, LoRa or Wi-Fi to ensure the reliability and real-time nature of data transmission. In the process of data transmission, considering the integrity and accuracy of the data, technical means such as data encryption and error checking are used to ensure the security and accuracy of the data during transmission. After the data is transmitted to the data acquisition center, the received current data is cleaned and classified. Data cleaning is to remove noise and outliers in the data and ensure the purity and credibility of the data. Data classification is to sort and classify the current data of different key nodes separately for subsequent analysis and processing. Data cleaning can be achieved by using filtering algorithms and anomaly detection algorithms, while data classification requires the establishment of a complete data management system to identify and store data from different nodes. Through the above steps, the historical current signal data of each key node is finally obtained.
[0030] Step 102: Performing compressed sensing processing on the historical current signal data of each key node to obtain compressed sample signal data of each key node;
[0031] Specifically, the historical current signal data of each key node is subjected to wavelet transform, and the original signal data is decomposed into wavelet coefficient matrices of different scales and frequencies, so as to retain the time-frequency characteristics of the signal and reduce the redundancy of the data. According to the multi-scale wavelet coefficient matrix, a measurement matrix is constructed, and the measurement matrix is orthogonally projected to obtain a projection matrix, which maps high-dimensional data to a low-dimensional space, reduces the data dimension, and retains the important characteristics of the signal. The multi-scale wavelet coefficient matrix is multiplied by the projection matrix to obtain a compressed observation value matrix, and the signal is compressed and sampled through the projection operation to obtain low-dimensional compressed observation values. The compressed observation value matrix is sparsely encoded, and the data is further compressed through sparse coding technology to obtain a sparse coding matrix. On this basis, an optimization objective function is constructed, the purpose of which is to retain the information of the original signal to the maximum extent under the premise of satisfying sparsity. The compressed sensing reconstruction algorithm is used to solve the optimization objective function to obtain a reconstructed wavelet coefficient matrix. The reconstructed wavelet coefficient matrix is subjected to inverse wavelet transform to restore the reconstructed historical current signal data. The reconstructed historical current signal data is subjected to statistical feature extraction and vector encoding. By extracting the statistical features of the signal and vector encoding these features, a feature vector is obtained, and the original signal is converted into a representative feature vector, which is convenient for subsequent fault diagnosis and analysis. The feature vector is input into the preset autoencoder network for vector conversion. The feature vector is compressed through the autoencoder network, and more compact feature information is extracted, and finally the compressed sample signal data of each key node is obtained.
[0032] Step 103: Input the compressed sample signal data of each key node into a preset two-layer spatiotemporal graph convolutional network for fault diagnosis training, and optimize the network parameters of the two-layer spatiotemporal graph convolutional network by using a chaotic quantum particle swarm optimization algorithm to obtain a target fault diagnosis model;
[0033] It should be noted that, according to the key node coordinate set, a spatial adjacency matrix between multiple key nodes is constructed, and the interconnected graph structure is established through the spatial relationship between the nodes. The compressed sample signal data of each key node is tensorized, and these data are converted into a format suitable for input into the deep learning network to obtain an input tensor. The input tensor is combined with the corresponding spatial adjacency matrix as the first input data of the first layer of the spatiotemporal graph convolution network. In the first layer of the spatiotemporal graph convolution network, a spatiotemporal convolution operation is performed on the first input data to extract the time features of the data, and the spatial relationship features between the nodes are extracted in combination with the spatial adjacency matrix to extract the first training spatiotemporal feature vector. The first training spatiotemporal feature vector is pooled, and the pooling operation can effectively reduce the dimension of the feature vector, extract more important feature information, and obtain the first training pooled feature vector. The first training pooled feature vector is input into the first fully connected layer for fault location training and fault type recognition training to obtain the first training output result. The first training output result is combined with the input tensor as the second input data of the second-layer spatiotemporal graph convolutional network; in the second-layer spatiotemporal graph convolutional network, the second input data is subjected to spatiotemporal convolution operation, and the spatiotemporal features are extracted again to obtain the second training spatiotemporal feature vector; the second training spatiotemporal feature vector is pooled to obtain the second training pooled feature vector, and the second training pooled feature vector is input into the second fully connected layer for fault severity recognition training. Through this layer of training, the severity of the fault can be classified to obtain the second training output result. Based on the chaotic quantum particle swarm optimization algorithm and the second training output result, the network parameters of the two-layer spatiotemporal graph convolutional network are optimized respectively. The chaotic quantum particle swarm optimization algorithm takes advantage of chaos theory and quantum computing, and can quickly find the optimal solution in a larger search space, thereby effectively optimizing the network parameters, so that the final target fault diagnosis model has higher accuracy and stability.
[0034] Step 104: obtaining a real-time current signal data set of multiple key nodes in the battery swap cabinet, and performing feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector;
[0035] Specifically, real-time current data is collected for multiple key nodes in the power exchange cabinet. By arranging sensors at each key node, the current signal data of each node can be obtained in real time, and these data are collected into a real-time current signal data set. The real-time current signal data set is preprocessed, and the preprocessing process includes denoising, filtering and normalizing the data to obtain a standard current signal data set. According to the standard current signal data set, the current effective value (RMS value) of each key node is calculated. The current effective value is an important indicator of the energy of the current signal. By performing RMS calculation on the current signal of each key node, a real-time current effective value sequence can be obtained, which reflects the current change of each node in a certain period of time. According to the real-time current effective value sequence, a real-time current signal feature vector is constructed. The feature vector is a vector obtained after the original signal is reduced in dimension, which can effectively extract the key features in the signal. The real-time current signal feature vector is input into the autoencoder network for encoding conversion to obtain a current signal encoding vector. The autoencoder is an unsupervised learning neural network. Through training, it can map the input high-dimensional data to a low-dimensional space and retain the main features of the data in the low-dimensional space.
[0036] Step 105: input the current signal encoding vector into the first-layer spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtain the fault node and fault type label;
[0037] Specifically, the current signal encoding vector is input into the input layer of the first spatiotemporal graph convolution network. In this layer, the current signal encoding vector is subjected to spatiotemporal convolution operation, and the temporal and spatial features of the current signal are extracted simultaneously through the spatiotemporal convolution operation to obtain the first target spatiotemporal feature vector. The first target spatiotemporal feature vector is subjected to batch normalization processing, and batch normalization can effectively accelerate the training process of the network, stabilize the convergence of the model, and improve the generalization ability of the model. Through normalization processing, the dimensions of the feature vector are made on the same scale, thereby avoiding the gradient disappearance or explosion phenomenon caused by excessive differences in eigenvalues. After obtaining the normalized feature vector, it is subjected to activation function processing. Commonly used activation functions include ReLU, Sigmoid, etc. Through the nonlinear transformation of the activation function, the expression ability of the model can be enhanced to obtain the activated feature vector. The activated feature vector is subjected to spatiotemporal pooling operation, and the spatiotemporal pooling operation can extract the main information of the feature, reduce the dimension of the feature vector, and retain the key features to obtain the first target pooled feature vector. Afterwards, the first target pooled feature vector is input into the first fully connected layer for processing. Through the linear transformation and nonlinear activation of the fully connected layer, the high-dimensional feature vector is mapped to a low-dimensional fault node probability distribution vector. According to the fault node probability distribution vector, the threshold decision strategy is adopted to determine the fault node. By setting a reasonable threshold, when the probability exceeds the threshold, the node can be judged as a fault node. At the same time, the fault type probability distribution vector of the first target pooled feature vector is constructed. According to the fault type probability distribution vector, the maximum probability principle is adopted to determine the fault type label, and the fault type with the highest probability value is selected as the final fault type label. The fault node and the fault type label are output as the output result of the first layer of spatiotemporal graph convolutional network.
[0038] Step 106: input the fault node, fault type label and current signal encoding vector into the second-layer spatiotemporal graph convolutional network in the target fault diagnosis model to identify the fault severity and obtain the fault severity label.
[0039] Specifically, according to the fault node, the corresponding fault node encoding vector is extracted from the current signal encoding vector. The fault node encoding vector is concatenated with the fault type label, and the features of the current signal are fused with the fault type information to obtain the fault information encoding vector. The fault information encoding vector is input into the input layer of the second-layer spatiotemporal graph convolution network. In the second-layer spatiotemporal graph convolution network, the fault information encoding vector is subjected to spatiotemporal convolution operation, and the second target spatiotemporal feature vector is extracted through spatiotemporal convolution. These feature vectors can capture the changes of fault information in time and space, so as to more comprehensively reflect the fault situation. The second target spatiotemporal feature vector is processed by the spatial attention mechanism. The spatial attention mechanism assigns different weights according to the importance of each feature vector, so as to highlight the key features and obtain the weighted feature vector. The weighted feature vector is subjected to spatiotemporal pooling operation, which can further extract important features and reduce the dimension of the feature vector to obtain the second target pooled feature vector. The second target pooled feature vector is input into the gated recurrent unit (GRU) for time series modeling. GRU is a commonly used recurrent neural network unit that can effectively capture the temporal relationship in sequence data. Through the temporal modeling of GRU, a temporal feature vector containing time information is obtained. The temporal feature vector is input into the second fully connected layer, and the fault severity probability distribution vector is obtained through further processing of the fully connected layer. According to the fault severity probability distribution vector, the fault severity label is determined by the threshold decision strategy. The threshold decision strategy determines the severity of the fault according to the result of the probability distribution by setting a reasonable threshold and obtaining an accurate fault severity label. The fault severity label is output as the output result of the second layer of the spatiotemporal graph convolutional network.
[0040] In the embodiment of the present application, wireless sensors are used to collect historical current signals of multiple key nodes in the power exchange cabinet, realizing seamless real-time monitoring. Compressed sensing processing technology compresses the historical current signal data of each key node, greatly reducing the amount of data and improving the efficiency of data transmission and processing. A two-layer spatiotemporal graph convolutional network is used for fault diagnosis training, and the network parameters are optimized in combination with the chaotic quantum particle swarm optimization algorithm to form a high-precision target fault diagnosis model. This model can accurately identify the fault node and fault type, and can analyze the severity of the fault to provide detailed fault information for maintenance personnel. A two-layer spatiotemporal graph convolutional network is used to locate the fault node and identify the fault type, and the accuracy and reliability of the fault diagnosis results are ensured by feature recognition and vector encoding of the real-time current signal data set. This method can quickly locate the fault point and identify the fault type, reducing the fault processing time. In the diagnosis model, a second layer of spatiotemporal graph convolutional network is set to identify the fault severity, and the gated cyclic unit is combined for timing modeling, which can refine the fault analysis and provide fault severity labels. The real-time current signal data in the power-swap cabinet is fully preprocessed and feature extracted, and the autoencoder network is used for vector conversion to ensure the comprehensiveness and accuracy of data analysis. The spatiotemporal graph convolutional network is optimized through the chaotic quantum particle swarm optimization algorithm, so that the diagnostic model has good adaptability and robustness in different working environments and conditions. This optimization algorithm can dynamically adjust the model parameters, thereby improving the accuracy of power-swap cabinet fault diagnosis.
[0041] In a specific embodiment, the process of executing step 101 may specifically include the following steps:
[0042] (1) Perform electromagnetic field scanning on multiple key nodes in the power exchange cabinet, determine the spatial coordinates of each key node, and obtain the key node coordinate set;
[0043] (2) According to the key node coordinate set, a wireless flow sensor is arranged at each key node, and the wireless flow sensor is time synchronized to obtain a synchronization timestamp;
[0044] (3) Using wireless transmission protocol, the current data at each key node is transmitted to the data acquisition center according to the synchronized timestamp;
[0045] (4) At the data acquisition center, the received current data is cleaned and classified to obtain the historical current signal data of each key node.
[0046] Specifically, electromagnetic field scanning is performed on multiple key nodes in the power exchange cabinet. The spatial coordinates of each key node are detected and recorded by a special electromagnetic field scanning device. This device usually uses the propagation characteristics of electromagnetic waves to scan inside and around the power exchange cabinet to measure the reflection and refraction of electromagnetic waves, thereby determining the exact position of each node. Through multiple scans and measurements, a three-dimensional spatial coordinate set is formed to record the specific position of each key node. These data are sorted and stored to form a complete key node coordinate set. Afterwards, according to the key node coordinate set, wireless current sensors are arranged at each key node, and the wireless current sensors are time synchronized to ensure that the data recorded by all sensors have a unified timestamp. Using a wireless transmission protocol, the current data at each key node is transmitted to the data acquisition center according to the synchronized timestamp. The selection of wireless transmission protocols needs to consider factors such as transmission distance, data transmission rate, and anti-interference ability. Commonly used wireless transmission protocols include Wi-Fi, ZigBee, and LoRa, etc. These protocols have their own advantages and disadvantages and can be selected according to actual needs. For example, if the power exchange cabinet is located in a relatively closed environment and the data transmission distance is short, the Wi-Fi protocol can be selected; if a larger area needs to be covered and low power consumption is required, the LoRa protocol can be selected. Through the wireless transmission protocol, the current data collected at each key node is sent to the data acquisition center according to the synchronized timestamp to ensure that the data can be transmitted in real time and accurately. At the data acquisition center, the received current data needs to be cleaned and classified. Data cleaning refers to removing noise and outliers in the data to ensure the purity and credibility of the data. Common data cleaning methods include filtering, denoising, and anomaly detection. Filtering can remove high-frequency noise in the data and smooth the data curve; denoising methods such as wavelet denoising can effectively eliminate random noise in the data; anomaly detection is to identify and remove anomalies in the data to ensure the continuity and consistency of the data. After data cleaning, the data is classified. The data of different key nodes are sorted and classified according to the timestamp for subsequent analysis and processing. Through data classification, the historical current signal data of each key node is independently stored and managed, which is convenient for detailed fault diagnosis and analysis.
[0047] In a specific embodiment, the process of executing step 102 may specifically include the following steps:
[0048] (1) Perform wavelet transform on the historical current signal data of each key node to obtain a multi-scale wavelet coefficient matrix;
[0049] (2) Construct a measurement matrix based on the multi-scale wavelet coefficient matrix, and perform orthogonal projection on the measurement matrix to obtain a projection matrix;
[0050] (3) Multiply the multi-scale wavelet coefficient matrix by the projection matrix to obtain the compressed observation value matrix;
[0051] (4) Sparsely encode the compressed observation value matrix to obtain a sparse coding matrix, and construct an optimization objective function based on the sparse coding matrix;
[0052] (5) Using the compressed sensing reconstruction algorithm to solve the optimization objective function, obtain the reconstructed wavelet coefficient matrix, and perform inverse wavelet transform on the reconstructed wavelet coefficient matrix to obtain the reconstructed historical current signal data;
[0053] (6) Performing statistical feature extraction and vector encoding on the reconstructed historical current signal data to obtain a feature vector;
[0054] (7) The feature vector is input into the preset autoencoder network for vector conversion to obtain the compressed sample signal data of each key node.
[0055] Specifically, the historical current signal data of each key node is subjected to wavelet transform. Wavelet transform is a time-frequency analysis method that can decompose the signal into components of different frequencies and analyze them at different scales. Assume that the historical current signal data is , the multi-scale wavelet coefficient matrix can be obtained through wavelet transform. Specifically, the wavelet transform can be expressed as:
[0056] ;
[0057] in, are the wavelet coefficients, is the scale parameter, is the translation parameter, is a wavelet function, and * represents complex conjugate. By performing wavelet transform on the current signal, we can get the multi-scale wavelet coefficient matrix: According to the multi-scale wavelet coefficient matrix , construct the measurement matrix The measurement matrix is used to map high-dimensional signals to low-dimensional space. Common construction methods include random matrix generation and deterministic matrix generation. Orthogonal projection is performed on the measurement matrix to obtain the projection matrix , where the purpose of orthogonal projection is to ensure that the projected signal still retains the important features of the original signal. Specifically, the orthogonal projection can be expressed as:
[0058] ;
[0059] in, is the transpose of the measurement matrix, is the inverse matrix of the measurement matrix. Through orthogonal projection, we get the projection matrix . The multi-scale wavelet coefficient matrix With the projection matrix Multiply them together to get the compressed observation matrix
[0060] ;
[0061] Compressed observation matrix is the signal representation in low-dimensional space, and sparse coding technology is used to Encode and get the sparse coding matrix The goal of sparse coding is to represent the signal as a linear combination of a few non-zero values, thereby improving the efficiency of signal processing. According to the sparse coding matrix , construct the optimization objective function. The optimization objective function can be expressed as:
[0062] ;
[0063] in, represents the two-norm, represents a norm, is the regularization parameter. The objective function aims to make the sparse coding matrix as sparse as possible while minimizing the reconstruction error. The compressed sensing reconstruction algorithm is used to solve the optimization objective function and obtain the reconstructed wavelet coefficient matrix Commonly used compressed sensing reconstruction algorithms include basis pursuit algorithm, minimum angle regression algorithm, etc. After that, the inverse wavelet transform is performed to restore the reconstructed historical current signal data. . Statistical features are extracted and vector encoded for the reconstructed historical current signal data. The extracted statistical features may include mean, variance, kurtosis, skewness, etc. These features can effectively describe the statistical properties of the signal and provide important information for subsequent signal analysis. These statistical features are vector encoded to obtain feature vectors. The feature vectors are input into a preset autoencoder network for vector conversion. An autoencoder is a neural network that can map high-dimensional data to a low-dimensional space through unsupervised learning while retaining the main features of the data. The autoencoder network consists of two parts: an encoder and a decoder. The encoder converts the input feature vector into a low-dimensional representation, and the decoder remaps it back to a high-dimensional space. By training the autoencoder network, compressed sample signal data for each key node is obtained.
[0064] In a specific embodiment, the process of executing step 103 may specifically include the following steps:
[0065] (1) Construct a spatial adjacency matrix between multiple key nodes based on the key node coordinate set;
[0066] (2) Perform tensor quantization on the compressed sample signal data of each key node to obtain the input tensor;
[0067] (3) Combine the input tensor with the corresponding spatial adjacency matrix as the first input data of the first layer of the spatiotemporal graph convolutional network;
[0068] (4) In the first layer of the spatiotemporal graph convolutional network, performing a spatiotemporal convolution operation on the first input data to extract a first training spatiotemporal feature vector;
[0069] (5) performing a pooling operation on the first training spatiotemporal feature vector to obtain a first training pooled feature vector, and inputting the first training pooled feature vector into a first fully connected layer to perform fault location training and fault type identification training to obtain a first training output result;
[0070] (6) Combining the first training output result with the input tensor as the second input data of the second layer of the spatiotemporal graph convolutional network;
[0071] (7) In the second layer of the spatiotemporal graph convolutional network, performing a spatiotemporal convolution operation on the second input data to extract a second training spatiotemporal feature vector;
[0072] (8) performing a pooling operation on the second training spatiotemporal feature vector to obtain a second training pooled feature vector, and inputting the second training pooled feature vector into a second fully connected layer for fault severity recognition training to obtain a second training output result;
[0073] (9) Based on the chaotic quantum particle swarm optimization algorithm and the second training output results, the network parameters of the two-layer spatiotemporal graph convolutional network are optimized respectively to obtain the target fault diagnosis model.
[0074] Specifically, a spatial adjacency matrix between multiple key nodes is constructed based on the key node coordinate set. The spatial adjacency matrix is used to represent the connection relationship between the key nodes, and each element of the matrix represents the connection weight between two nodes. For example, the adjacency matrix can be constructed by the inverse distance, that is, the weight between two nodes is inversely proportional to their distance. Assume that the key node coordinate set is a set of three-dimensional coordinates, which can be represented as multiple points, each of which has its position in space. The formula for constructing the adjacency matrix is:
[0075] ;
[0076] in, represents the elements in the adjacency matrix, Representation Node and nodes The distance between them. By calculating the distance between each pair of nodes and taking its reciprocal, we get the adjacency matrix . The compressed sample signal data of each key node is tensorized to obtain the input tensor. Tensorization processing is to convert the original signal data into a multi-dimensional array form for subsequent neural network processing. The dimension of the input tensor depends on the characteristics of the signal data, which can be in various forms such as time series and frequency characteristics. Through tensorization processing, the signal data of all key nodes are integrated into a high-dimensional tensor. The input tensor is combined with the corresponding spatial adjacency matrix as the first input data of the first layer of the spatiotemporal graph convolutional network. In this process, the connection relationship between each node data in the input tensor and the adjacency matrix is combined to form a new data structure, ensuring that the network considers both the temporal and spatial features during the processing. In the first layer of the spatiotemporal graph convolutional network, a spatiotemporal convolution operation is performed on the first input data. The spatiotemporal convolution operation can simultaneously extract the temporal and spatial features of the signal, and extract the first training spatiotemporal feature vector through convolution calculations in the time and space dimensions. The formula is:
[0077] ;
[0078] in, Indicates The input feature matrix of the layer, Indicates The convolution kernel of the layer, Represents the activation function. Through the spatiotemporal convolution operation, the input feature matrix and the adjacency matrix Combined, higher-level features are extracted. Pooling operation is performed on the first training spatiotemporal feature vector. Pooling operation can reduce the dimension of the feature vector while retaining the main feature information to obtain the first training pooled feature vector. The first training pooled feature vector is input into the first fully connected layer for fault location training and fault type recognition training. Through the calculation of the fully connected layer, the feature vector is mapped to the specific fault type and fault location to obtain the first training output result. The first training output result is combined with the input tensor as the second input data of the second layer of spatiotemporal graph convolution network. In the second layer of spatiotemporal graph convolution network, the second input data is subjected to spatiotemporal convolution operation, and the spatiotemporal features are extracted again to obtain the second training spatiotemporal feature vector. Pooling operation is performed on the second training spatiotemporal feature vector to obtain the second training pooled feature vector, and it is input into the second fully connected layer for fault severity recognition training. Through the calculation of this layer, the severity of the fault can be determined to obtain the second training output result. Based on the chaotic quantum particle swarm optimization algorithm and the second training output result, the network parameters of the two layers of spatiotemporal graph convolution network are optimized respectively to obtain the target fault diagnosis model. The chaotic quantum particle swarm optimization algorithm combines the advantages of chaos theory and quantum computing. It can find the optimal solution in a wider search space and improve the accuracy and stability of the fault diagnosis model by optimizing network parameters.
[0079] In a specific embodiment, the process of executing step 104 may specifically include the following steps:
[0080] (1) Collect real-time current data from multiple key nodes in the power exchange cabinet to obtain a real-time current signal data set;
[0081] (2) Preprocessing the real-time current signal data set to obtain a standard current signal data set;
[0082] (3) Based on the standard current signal data set, the current effective value of each key node is calculated to obtain the real-time current effective value sequence;
[0083] (4) Constructing a real-time current signal feature vector based on the real-time current effective value sequence;
[0084] (5) The real-time current signal feature vector is input into the autoencoder network for encoding conversion to obtain the current signal encoding vector.
[0085] Specifically, real-time current data is collected for multiple key nodes in the power exchange cabinet. High-precision current sensors are installed on each key node. These sensors can monitor the current signal in real time and transmit the data to the data acquisition center to obtain a data set containing the real-time current signals of all key nodes, that is, the real-time current signal data set. The real-time current signal data set is preprocessed. The preprocessing methods include denoising, filtering, and normalization. Denoising can be achieved by using a low-pass filter or wavelet denoising technology. Filtering can be achieved by using a bandpass filter to retain the main frequency band of the signal. Normalization is to scale the data to a uniform scale to avoid the impact of data of different scales on the analysis results. Through these preprocessing steps, a standardized current signal data set is obtained. According to the standard current signal data set, the effective value of the current is calculated for each key node. The effective value of current (RMS value) is a statistic that represents the strength of the current signal, which can reflect the energy of the signal within a certain time window. The calculation formula for the effective value of current is:
[0086] ;
[0087] Among them, RMS represents the effective value of current, represents the total number of sampling points, Indicates The current value of each sampling point. By calculating the effective value of the current at each key node, a time-varying current effective value sequence is obtained. According to the real-time current effective value sequence, the real-time current signal feature vector is constructed. The feature vector is the result of quantifying the statistical characteristics of the signal, which can effectively represent the main characteristics of the signal. In order to construct the real-time current signal feature vector, a set of appropriate statistics, such as mean, variance, kurtosis and skewness, are selected. These statistics can be obtained by calculating the current effective value sequence to form a multidimensional feature vector. The real-time current signal feature vector is input into the autoencoder network for encoding conversion. The autoencoder is a neural network model that can map high-dimensional data to low-dimensional space through unsupervised learning while retaining the main features of the original data as much as possible. The autoencoder consists of two parts: an encoder and a decoder. The encoder converts the input feature vector into a low-dimensional representation, and the decoder reconstructs the low-dimensional representation back to a high-dimensional space. By training the autoencoder network, a model that can effectively compress and reconstruct signal features is obtained. The real-time current signal feature vector is input into the encoder part of the autoencoder to obtain the current signal encoding vector.
[0088] In a specific embodiment, the process of executing step 105 may specifically include the following steps:
[0089] (1) Input the current signal encoding vector into the input layer of the first spatiotemporal graph convolutional network;
[0090] (2) In the first layer of the spatiotemporal graph convolutional network, a spatiotemporal convolution operation is performed on the current signal encoding vector to extract the first target spatiotemporal feature vector;
[0091] (3) performing batch normalization on the first target spatiotemporal feature vector to obtain a normalized feature vector;
[0092] (4) Apply activation function to the normalized feature vector to obtain an activated feature vector;
[0093] (5) Performing spatiotemporal pooling on the activated feature vector to obtain the first target pooled feature vector;
[0094] (6) Input the first target pooling feature vector into the first fully connected layer for processing to obtain the fault node probability distribution vector;
[0095] (7) According to the probability distribution vector of the faulty node, the threshold decision strategy is used to determine the faulty node;
[0096] (8) Constructing the fault type probability distribution vector of the first target pooling feature vector, and determining the fault type label using the maximum probability principle based on the fault type probability distribution vector;
[0097] (9) The faulty nodes and fault type labels are output as the output results of the first layer of the spatiotemporal graph convolutional network.
[0098] Specifically, the current signal encoding vector is input into the input layer of the first layer of the spatiotemporal graph convolutional network. The current signal encoding vector is a low-dimensional representation extracted from the autoencoder network, which contains the main features of the original current signal. These vectors are input into the input layer of the first layer of the spatiotemporal graph convolutional network as initial data. In the first layer of the spatiotemporal graph convolutional network, the current signal encoding vector is subjected to a spatiotemporal convolution operation. The spatiotemporal convolution operation can simultaneously extract the temporal and spatial features of the signal. Assume that the input current signal encoding vector is , the adjacency matrix is , the convolution kernel is , then the formula for the spatiotemporal convolution operation is:
[0099] ;
[0100] in, Indicates The input feature matrix of the layer, Indicates The convolution kernel of the layer, Represents the activation function. Through this formula, the first target spatiotemporal feature vector is extracted . Perform batch normalization on the first target spatiotemporal feature vector. Batch normalization is a method to accelerate neural network training and improve stability. It adjusts and scales the activation values so that the input of each layer remains within a fixed distribution range. The formula for batch normalization is:
[0101] ;
[0102] in, represents the normalized eigenvector, and are the mean and variance of the batch data, respectively. is a small constant used to prevent division by zero errors. After normalization, a normalized feature vector is obtained. The normalized feature vector is processed by the activation function. The activation function introduces nonlinear characteristics, allowing the neural network to learn and represent more complex features. Commonly used activation functions include ReLU, Sigmoid, etc. Assuming that the ReLU activation function is used, the formula for the activation function processing is:
[0103] ;
[0104] Through this process, we get the activation feature vector . Perform spatiotemporal pooling on the activated feature vector. Spatiotemporal pooling can further extract important features and reduce the dimension of the feature vector. The pooling operation can be achieved by taking the maximum value or average value of the local area. Assuming that the maximum pooling is used, the formula for spatiotemporal pooling is:
[0105] ;
[0106] Through this operation, the first target pooling feature vector is obtained The first target pooled feature vector is input into the first fully connected layer for processing. The fully connected layer maps the feature vector to a higher dimensional representation space through linear transformation and nonlinear activation, thereby extracting deeper features. Through the processing of the fully connected layer, the probability distribution vector of the fault node can be obtained. , the formula is:
[0107] ;
[0108] in, and are the weight and bias parameters of the fully connected layer respectively. The softmax function converts the result of the linear transformation into a probability distribution. According to the probability distribution vector of the faulty node, the threshold decision strategy is used to determine the faulty node. The threshold decision strategy is to set a predetermined threshold. When the probability value exceeds the threshold, it is determined to be a faulty node. Construct the fault type probability distribution vector of the first target pooling feature vector. Through the processing of the fully connected layer, the fault type probability distribution vector can be obtained. , the formula is:
[0109] softmax ;
[0110] in, and are the weight and bias parameters of the second fully connected layer, respectively. According to the fault type probability distribution vector, the maximum probability principle is used to determine the fault type label. The maximum probability principle is to select the type with the largest probability value as the fault type label. The fault node and fault type label are output as the output result of the first layer of spatiotemporal graph convolutional network.
[0111] In a specific embodiment, the process of executing step 106 may specifically include the following steps:
[0112] (1) According to the fault node, extract the corresponding fault node encoding vector from the current signal encoding vector;
[0113] (2) Concatenate the fault node encoding vector and the fault type label to obtain the fault information encoding vector;
[0114] (3) Input the fault information encoding vector into the input layer of the second-layer spatiotemporal graph convolutional network;
[0115] (4) In the second layer of the spatiotemporal graph convolutional network, a spatiotemporal convolution operation is performed on the fault information encoding vector to extract the second target spatiotemporal feature vector;
[0116] (5) Perform spatial attention on the second target spatiotemporal feature vector to obtain a weighted feature vector;
[0117] (6) Performing a spatiotemporal pooling operation on the weighted feature vector to obtain a second target pooled feature vector;
[0118] (7) Inputting the second target pooled feature vector into the gated recurrent unit for time series modeling to obtain a time series feature vector;
[0119] (8) Input the time series feature vector into the second fully connected layer to obtain the fault severity probability distribution vector;
[0120] (9) According to the fault severity probability distribution vector, a threshold decision strategy is used to determine the fault severity label;
[0121] (10) The fault severity label is output as the output result of the second layer spatiotemporal graph convolutional network.
[0122] Specifically, according to the fault node, the corresponding fault node encoding vector is extracted from the current signal encoding vector. Assume that the current signal encoding vector is , where each row represents the data of a node. When a node is determined to be faulty, the encoding vector of the node is directly extracted through the index, which is recorded as . Encode the faulty node vector It is concatenated with the fault type label to obtain the fault information encoding vector. Assume that the fault type label is a one-hot encoding vector , whose length is the number of fault types. and Splice to form a new fault information encoding vector :
[0123] ;
[0124] in, is the concatenated vector, which contains the encoding information of the faulty node and the fault type information. Input the input layer of the second-layer spatiotemporal graph convolutional network. The second-layer spatiotemporal graph convolutional network is used to further extract deeper features, thereby providing more accurate data support for fault severity identification. In the second-layer spatiotemporal graph convolutional network, the fault information encoding vector Perform a spatiotemporal convolution operation to extract the second target spatiotemporal feature vector. The spatiotemporal convolution operation can capture the temporal and spatial characteristics of the data. The formula is as follows:
[0125] ;
[0126] in, Indicates The input feature matrix of the layer, Indicates The convolution kernel of the layer, Represents the activation function. Through this operation, the second target spatiotemporal feature vector is obtained . For the second target spatiotemporal feature vector Perform spatial attention mechanism processing. The spatial attention mechanism can assign different weights to each feature according to its importance, thereby highlighting the key features. The specific formula is as follows:
[0127] Attention ;
[0128] in, Represents the weighted feature vector after attention mechanism processing. Perform spatiotemporal pooling. Spatiotemporal pooling can further extract important features and reduce dimensions. The formula is as follows:
[0129] ;
[0130] Through this operation, the second target pooling feature vector is obtained . Pool the second target feature vector Input gated recurrent unit (GRU) for time series modeling. GRU is a recurrent neural network unit that can capture long-term and short-term dependencies in sequence data. Through time series modeling, the time series feature formula can be further extracted as follows:
[0131] GRU ;
[0132] in, Represents the time series feature vector after GRU processing. Input the second fully connected layer to obtain the probability distribution vector of fault severity. The fully connected layer maps the feature vector to a specific output space through linear transformation and nonlinear activation, thereby predicting the probability distribution of fault severity. The formula is as follows:
[0133] softmax ;
[0134] in, represents the probability distribution vector of fault severity, and are the weight and bias parameters of the fully connected layer respectively. According to the probability distribution vector of fault severity ,The threshold decision strategy is used to determine the fault severity label. The threshold decision strategy sets a predetermined threshold. When the probability value exceeds the threshold, it is judged as a certain severity. The fault severity label is output as the output result of the second layer spatiotemporal graph convolutional network.
[0135] The above describes the fault diagnosis method of the battery swap cabinet in the embodiment of the present application. The following describes the fault diagnosis device of the battery swap cabinet in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the fault diagnosis device for the power exchange cabinet includes:
[0136] The acquisition module 201 is used to collect historical current signals of multiple key nodes in the power exchange cabinet through wireless sensors to obtain historical current signal data of each key node;
[0137] The processing module 202 is used to perform compressed sensing processing on the historical current signal data of each key node to obtain compressed sample signal data of each key node;
[0138] The training module 203 is used to input the compressed sample signal data of each key node into a preset two-layer spatiotemporal graph convolutional network for fault diagnosis training, and optimize the network parameters of the two-layer spatiotemporal graph convolutional network respectively through a chaotic quantum particle swarm optimization algorithm to obtain a target fault diagnosis model;
[0139] The encoding module 204 is used to obtain the real-time current signal data set of multiple key nodes in the power exchange cabinet, and perform feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector;
[0140] The fault type identification module 205 is used to input the current signal encoding vector into the first layer of the spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtain the fault node and fault type label;
[0141] The severity identification module 206 is used to input the fault node, fault type label and current signal encoding vector into the second layer spatiotemporal graph convolutional network in the target fault diagnosis model to identify the fault severity and obtain the fault severity label.
[0142] Through the cooperation of the above components, wireless sensors are used to collect historical current signals of multiple key nodes in the power exchange cabinet, realizing seamless real-time monitoring. Compressed sensing processing technology compresses the historical current signal data of each key node, greatly reducing the amount of data and improving the efficiency of data transmission and processing. A two-layer spatiotemporal graph convolutional network is used for fault diagnosis training, and the network parameters are optimized in combination with the chaotic quantum particle swarm optimization algorithm to form a high-precision target fault diagnosis model. This model can accurately identify fault nodes and fault types, and can analyze the severity of faults to provide detailed fault information for maintenance personnel. A two-layer spatiotemporal graph convolutional network is used to locate fault nodes and identify fault types. The accuracy and reliability of fault diagnosis results are ensured by feature recognition and vector encoding of real-time current signal data sets. This method can quickly locate fault points and identify fault types, reducing fault processing time. In the diagnosis model, a second layer of spatiotemporal graph convolutional network is set for fault severity identification, and combined with gated recurrent units for timing modeling, it can refine fault analysis and provide fault severity labels. The real-time current signal data in the power-swap cabinet is fully preprocessed and feature extracted, and the autoencoder network is used for vector conversion to ensure the comprehensiveness and accuracy of data analysis. The spatiotemporal graph convolutional network is optimized through the chaotic quantum particle swarm optimization algorithm, so that the diagnostic model has good adaptability and robustness in different working environments and conditions. This optimization algorithm can dynamically adjust the model parameters, thereby improving the accuracy of power-swap cabinet fault diagnosis.
[0143] The present application also provides an electronic device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the power exchange cabinet fault diagnosis method in the above-mentioned embodiments.
[0144] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the power exchange cabinet fault diagnosis method.
[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0147] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for diagnosing faults in a power exchange cabinet, characterized in that: The power exchange cabinet fault diagnosis method comprises: The historical current signal of multiple key nodes in the power exchange cabinet is collected through wireless sensors to obtain the historical current signal data of each key node; Performing compressed sensing processing on the historical current signal data of each key node respectively to obtain compressed sample signal data of each key node; specifically including: performing wavelet transform on the historical current signal data of each key node to obtain a multi-scale wavelet coefficient matrix; constructing a measurement matrix based on the multi-scale wavelet coefficient matrix, and orthogonally projecting the measurement matrix to obtain a projection matrix; multiplying the multi-scale wavelet coefficient matrix with the projection matrix to obtain a compressed observation value matrix; sparsely encoding the compressed observation value matrix to obtain a sparse coding matrix, and constructing an optimization objective function based on the sparse coding matrix; using a compressed sensing reconstruction algorithm to solve the optimization objective function to obtain a reconstructed wavelet coefficient matrix, and performing an inverse wavelet transform on the reconstructed wavelet coefficient matrix to obtain reconstructed historical current signal data; performing statistical feature extraction and vector encoding on the reconstructed historical current signal data to obtain a feature vector; inputting the feature vector into a preset autoencoder network for vector conversion to obtain compressed sample signal data of each key node; The compressed sample signal data of each key node is input into a preset two-layer space-time graph convolution network for fault diagnosis training, and the network parameters of the two-layer space-time graph convolution network are optimized by the chaotic quantum particle swarm optimization algorithm to obtain a target fault diagnosis model; specifically including: constructing a spatial adjacency matrix between the multiple key nodes according to the key node coordinate set; performing tensorization processing on the compressed sample signal data of each key node to obtain an input tensor; combining the input tensor with the corresponding spatial adjacency matrix as the first input data of the first layer of space-time graph convolution network; in the first layer of space-time graph convolution network, performing a space-time convolution operation on the first input data to extract a first training space-time feature vector; performing a pooling operation on the first training space-time feature vector to obtain a first training pooling feature vector , and input the first training pooled feature vector into the first fully connected layer for fault location training and fault type identification training to obtain a first training output result; combine the first training output result with the input tensor as the second input data of the second layer of spatiotemporal graph convolutional network; in the second layer of spatiotemporal graph convolutional network, perform a spatiotemporal convolution operation on the second input data to extract a second training spatiotemporal feature vector; perform a pooling operation on the second training spatiotemporal feature vector to obtain a second training pooled feature vector, and input the second training pooled feature vector into the second fully connected layer for fault severity identification training to obtain a second training output result; based on the chaotic quantum particle swarm optimization algorithm and the second training output result, respectively optimize the network parameters of the two layers of spatiotemporal graph convolutional networks to obtain a target fault diagnosis model; Acquire a real-time current signal data set of multiple key nodes in the power exchange cabinet, and perform feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector; Inputting the current signal encoding vector into the first layer of the spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtaining the fault node and fault type label; The fault node, the fault type label and the current signal encoding vector are input into the second-layer spatiotemporal graph convolutional network in the target fault diagnosis model to perform fault severity identification and obtain a fault severity label.
2. The method for diagnosing faults in a power exchange cabinet according to claim 1, characterized in that: The method of collecting historical current signals of multiple key nodes in the power exchange cabinet through wireless sensors to obtain historical current signal data of each key node includes: Perform electromagnetic field scanning on multiple key nodes in the power exchange cabinet, determine the spatial coordinates of each key node, and obtain a key node coordinate set; Arranging a radio current sensor at each key node according to the key node coordinate set, and performing time synchronization on the radio current sensor to obtain a synchronization timestamp; Using a wireless transmission protocol, the current data at each key node is transmitted to a data acquisition center according to the synchronization timestamp; In the data acquisition center, the received current data is cleaned and classified to obtain the historical current signal data of each key node.
3. The method for diagnosing faults of a power exchange cabinet according to claim 1, characterized in that: The step of acquiring a real-time current signal data set of a plurality of key nodes in the power exchange cabinet, and performing feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector includes: Collect real-time current data from multiple key nodes in the power exchange cabinet to obtain a real-time current signal data set; Preprocessing the real-time current signal data set to obtain a standard current signal data set; According to the standard current signal data set, current effective value calculation is performed on each key node to obtain a real-time current effective value sequence; Constructing a real-time current signal feature vector according to the real-time current effective value sequence; The real-time current signal feature vector is input into the autoencoder network for encoding conversion to obtain a current signal encoding vector.
4. The method for diagnosing faults of a power exchange cabinet according to claim 3, characterized in that: The step of inputting the current signal encoding vector into the first-layer spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtaining the fault node and the fault type label, comprises: Inputting the current signal encoding vector into the input layer of the first layer of spatiotemporal graph convolutional network; In the first layer of the spatiotemporal graph convolutional network, a spatiotemporal convolution operation is performed on the current signal encoding vector to extract a first target spatiotemporal feature vector; Performing batch normalization processing on the first target spatiotemporal feature vector to obtain a normalized feature vector; Performing activation function processing on the normalized feature vector to obtain an activated feature vector; Performing a spatiotemporal pooling operation on the activated feature vector to obtain a first target pooled feature vector; Inputting the first target pooled feature vector into the first fully connected layer for processing to obtain a fault node probability distribution vector; According to the probability distribution vector of the faulty node, a threshold decision strategy is adopted to determine the faulty node; Constructing a fault type probability distribution vector of the first target pooling feature vector, and determining a fault type label using a maximum probability principle according to the fault type probability distribution vector; The fault node and the fault type label are output as the output result of the first layer of the spatiotemporal graph convolutional network.
5. The method for diagnosing faults of a power exchange cabinet according to claim 4, characterized in that: The step of inputting the fault node, the fault type label and the current signal encoding vector into the second-layer spatiotemporal graph convolutional network in the target fault diagnosis model to identify the fault severity and obtain the fault severity label comprises: According to the fault node, extracting a corresponding fault node encoding vector from the current signal encoding vector; Concatenate the fault node encoding vector with the fault type label to obtain a fault information encoding vector; Inputting the fault information encoding vector into the input layer of the second-layer spatiotemporal graph convolutional network; In the second layer of the spatiotemporal graph convolutional network, a spatiotemporal convolution operation is performed on the fault information encoding vector to extract a second target spatiotemporal feature vector; Performing spatial attention mechanism processing on the second target spatiotemporal feature vector to obtain a weighted feature vector; Performing a spatiotemporal pooling operation on the weighted feature vector to obtain a second target pooled feature vector; Inputting the second target pooling feature vector into a gated recurrent unit for time series modeling to obtain a time series feature vector; Inputting the time series feature vector into the second fully connected layer to obtain a fault severity probability distribution vector; According to the fault severity probability distribution vector, a threshold decision strategy is adopted to determine the fault severity label; The fault severity label is output as the output result of the second layer spatiotemporal graph convolutional network.
6. A fault diagnosis device for a power exchange cabinet, characterized in that: The power exchange cabinet fault diagnosis device comprises: The acquisition module is used to collect historical current signals from multiple key nodes in the power exchange cabinet through wireless sensors to obtain historical current signal data of each key node; A processing module is used to perform compressed sensing processing on the historical current signal data of each key node respectively to obtain compressed sample signal data of each key node; specifically comprising: performing wavelet transform on the historical current signal data of each key node to obtain a multi-scale wavelet coefficient matrix; constructing a measurement matrix based on the multi-scale wavelet coefficient matrix, and orthogonally projecting the measurement matrix to obtain a projection matrix; multiplying the multi-scale wavelet coefficient matrix with the projection matrix to obtain a compressed observation value matrix; sparsely encoding the compressed observation value matrix to obtain a sparse coding matrix, and constructing an optimization objective function based on the sparse coding matrix; solving the optimization objective function using a compressed sensing reconstruction algorithm to obtain a reconstructed wavelet coefficient matrix, and performing an inverse wavelet transform on the reconstructed wavelet coefficient matrix to obtain reconstructed historical current signal data; performing statistical feature extraction and vector encoding on the reconstructed historical current signal data to obtain a feature vector; inputting the feature vector into a preset autoencoder network for vector conversion to obtain compressed sample signal data of each key node; The training module is used to input the compressed sample signal data of each key node into a preset two-layer space-time graph convolution network for fault diagnosis training, and optimize the network parameters of the two-layer space-time graph convolution network respectively through the chaotic quantum particle swarm optimization algorithm to obtain a target fault diagnosis model; specifically includes: constructing a spatial adjacency matrix between the multiple key nodes according to the key node coordinate set; performing tensorization processing on the compressed sample signal data of each key node to obtain an input tensor; combining the input tensor with the corresponding spatial adjacency matrix as the first input data of the first layer of space-time graph convolution network; in the first layer of space-time graph convolution network, performing a space-time convolution operation on the first input data to extract a first training space-time feature vector; performing a pooling operation on the first training space-time feature vector to obtain a first training pooling vector. feature vector, and input the first training pooled feature vector into the first fully connected layer for fault location training and fault type identification training to obtain a first training output result; combine the first training output result with the input tensor as the second input data of the second layer of spatiotemporal graph convolution network; in the second layer of spatiotemporal graph convolution network, perform a spatiotemporal convolution operation on the second input data to extract a second training spatiotemporal feature vector; perform a pooling operation on the second training spatiotemporal feature vector to obtain a second training pooled feature vector, and input the second training pooled feature vector into the second fully connected layer for fault severity identification training to obtain a second training output result; based on the chaotic quantum particle swarm optimization algorithm and the second training output result, respectively optimize the network parameters of the two layers of spatiotemporal graph convolution network to obtain a target fault diagnosis model; An encoding module, used to obtain a real-time current signal data set of multiple key nodes in the power exchange cabinet, and perform feature recognition and vector encoding on the real-time current signal data set to obtain a current signal encoding vector; A fault type identification module, used for inputting the current signal encoding vector into the first layer of the spatiotemporal graph convolutional network in the target fault diagnosis model to locate the fault node and identify the fault type, and obtain the fault node and fault type label; The severity identification module is used to input the fault node, the fault type label and the current signal encoding vector into the second layer spatiotemporal graph convolutional network in the target fault diagnosis model to identify the fault severity and obtain the fault severity label.
7. An electronic device, characterized in that: The electronic device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory so that the electronic device executes the power exchange cabinet fault diagnosis method as described in any one of claims 1-5.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, the power exchange cabinet fault diagnosis method as described in any one of claims 1-5 is implemented.
