Online data monitoring method and system for battery swap cabinet
Through real-time data collection and multi-scale feature extraction, combined with sparse autoencoders and echo state networks, the accuracy and real-time problems in power swap cabinet monitoring are solved, and accurate identification and efficient diagnosis of complex faults are achieved.
Patent Information
- Application Number
- CN202410879131.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-02
AI Technical Summary
When faced with complex fault modes and changing environments, the existing power exchange cabinet monitoring methods are insufficient in accuracy and sensitivity, which can easily lead to missed fault reports and false alarms. In addition, they consume huge amounts of computing resources when processing large-scale data, making it difficult to meet the requirements of modern systems. The power system requires real-time and high efficiency.
Real-time data acquisition, wavelet transform, wavelet packet decomposition, sparse autoencoder processing and echo state network technologies are used to extract multi-scale features of current and voltage signals, perform feature fusion and fault classification, and improve monitoring accuracy and response speed.
It achieves accurate identification and real-time monitoring of power swap cabinet faults, improves the efficiency and accuracy of data processing, and enhances the reliability and response speed of fault diagnosis.
Smart Images

Figure CN118427670B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of online monitoring of power exchange cabinets, and in particular to a method and system for online data monitoring of power exchange cabinets. Background Art
[0002] The battery swap cabinet is a vital device. Its main function is to achieve rapid energy replenishment of two wheels at low speed and reduce the risk of charging lithium batteries separately, ensuring that the lithium battery charging process is safer and users are more efficient when swapping batteries. However, with the increasing complexity and automation of the power system, various faults may occur in the battery swap cabinet during long-term operation, affecting the overall reliability and safety of the system. These faults include but are not limited to electrical and mechanical faults caused by abnormal current and voltage fluctuations, component aging, and environmental factors. If these problems are not detected and handled in time, they may cause serious power supply interruptions and even cause larger-scale power system accidents.
[0003] Existing monitoring methods for power exchange cabinets mainly rely on traditional monitoring methods. Although simple threshold alarms and basic signal analysis techniques can achieve simple background monitoring and intelligent management, they are difficult to cope with complex fault modes and changing working environments. Especially when faced with small abnormal changes in current and voltage signals, the accuracy and sensitivity of traditional methods are obviously insufficient, which easily leads to missed reports and false alarms of faults. In addition, when processing large-scale data, existing methods consume huge computing resources and have slow response speeds, making it difficult to meet the requirements of modern power systems for real-time and high efficiency. Summary of the invention
[0004] The present application provides a method and system for online data monitoring of a power swap cabinet, which are used to improve the accuracy of online data monitoring of a power swap cabinet.
[0005] In a first aspect, the present application provides a method for online monitoring of data of a power swap cabinet, and the method for online monitoring of data of a power swap cabinet comprises:
[0006] Perform real-time data collection on the current signal and voltage signal of the power exchange cabinet to obtain an initial data set;
[0007] Performing wavelet transform on the initial data set to obtain a wavelet detail coefficient set and calculating the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient to obtain a characteristic parameter set;
[0008] Performing wavelet packet decomposition on the initial data set and extracting wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set;
[0009] Performing sparse autoencoder processing and feature fusion on the feature parameter set and the sub-band feature vector set to obtain a deep feature set;
[0010] Performing feature enhancement mapping on the deep feature set to minimize the intra-class distance in the deep feature set to obtain an enhanced feature set;
[0011] The enhanced feature set is input into a preset echo state network for fault classification to obtain the target fault type of the power exchange cabinet.
[0012] In a second aspect, the present application provides an online data monitoring system for a power exchange cabinet, and the online data monitoring system for a power exchange cabinet includes:
[0013] The acquisition module is used to collect the current signal and voltage signal of the power exchange cabinet in real time to obtain an initial data set;
[0014] A calculation module is used to perform wavelet transform on the initial data set to obtain a wavelet detail coefficient set and calculate the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient to obtain a characteristic parameter set;
[0015] An extraction module, used for performing wavelet packet decomposition on the initial data set and extracting wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set;
[0016] A processing module, used for performing sparse autoencoder processing and feature fusion on the feature parameter set and the sub-band feature vector set to obtain a deep feature set;
[0017] A mapping module, used for performing feature enhancement mapping on the deep feature set to minimize the intra-class distance in the deep feature set to obtain an enhanced feature set;
[0018] A classification module is used to input the enhanced feature set into a preset echo state network for fault classification to obtain the target fault type of the power exchange cabinet.
[0019] The third aspect of the present application provides an online data monitoring device for a power swap cabinet, 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 online data monitoring device for the power swap cabinet executes the above-mentioned online data monitoring method for the power swap cabinet.
[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 method for online data monitoring of a power exchange cabinet.
[0021] In the technical solution provided by the present application, real-time data collection is performed on the current signal and voltage signal of the power exchange cabinet, which ensures the continuity and real-time nature of the data and can quickly capture and reflect the operating status and changes of the power exchange cabinet. Bandpass filtering and resampling processing in the data acquisition process effectively remove noise and redundant information, and improve the quality and reliability of the data. Using wavelet transform technology, the wavelet detail coefficient, wavelet energy skewness and wavelet energy spectrum information entropy are calculated for the initial data set, which can extract the multi-scale characteristics of the signal and accurately reflect the detailed changes of the current and voltage signals. Wavelet packet decomposition further refines the frequency analysis of the signal. By extracting the wavelet packet subband energy, energy entropy and energy skewness, richer and more detailed frequency domain features are obtained, providing multi-dimensional data support for fault diagnosis. The application of sparse autoencoders to process feature parameter sets and subband feature vector sets can effectively reduce dimensions and remove redundancy, and extract deep feature information. Feature fusion technology comprehensively processes multiple features to generate a deep feature set with higher recognition and representativeness, enhancing the expression ability of fault features. Through feature enhancement mapping, the intra-class distance in the deep feature set is minimized, the clustering effect of similar features is improved, and the feature differentiation is enhanced. The redundancy between features is effectively reduced, the efficiency and accuracy of data processing are improved, and more reliable input data is provided for subsequent fault classification. The use of echo state network to classify the enhanced feature set fully utilizes the time series data processing capability of the echo state network and can accurately identify the fault type of the power exchange cabinet. The good generalization performance and efficient computing power of the echo state network ensure the real-time and accuracy of fault classification, and effectively improve the response speed of the online monitoring system and the reliability of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0023] Figure 1 This is a schematic diagram of an embodiment of a method for online monitoring of data of a power exchange cabinet in an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of an embodiment of an online data monitoring system for a battery swap cabinet in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiments of the present application provide a method and system for online monitoring of data of a battery swap cabinet. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present 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 are interchangeable 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 online monitoring of data of a power exchange cabinet in an embodiment of the present application includes:
[0027] Step S101, real-time data collection of current signals and voltage signals of the power exchange cabinet is performed to obtain an initial data set;
[0028] It is understandable that the execution subject of the present application can be the online data monitoring system of the power exchange cabinet, or it can be a terminal or a server, which is not limited here. The embodiment of the present application is described by taking the server as the execution subject as an example.
[0029] Specifically, real-time data acquisition is performed on the current signal and voltage signal of the power exchange cabinet to obtain the initial current signal and the initial voltage signal. Bandpass filtering is performed on the initial current signal and the initial voltage signal to obtain the purified current signal and the purified voltage signal, and high-frequency noise and low-frequency interference in the signal are removed to retain useful signal components. The purified current signal and the purified voltage signal are resampled to obtain a resampled current sequence and a resampled voltage sequence to ensure that the signal has a consistent time interval. The resampled current sequence and the resampled voltage sequence are segmented according to the time window T to obtain multiple time window current data and multiple time window voltage data. The continuous signal is divided into several small segments for easy analysis. Fast Fourier transform is performed on each time window current data and each time window voltage data to obtain multiple frequency domain current data and multiple frequency domain voltage data. Fast Fourier transform can convert time domain signals to frequency domain, thereby revealing the frequency components in the signal. The fundamental frequency, harmonic frequency and amplitude are extracted from multiple frequency domain current data and multiple frequency domain voltage data to construct a frequency feature vector. The frequency feature vector can reflect the main frequency components and their strengths of the signal, and is an important basis for fault diagnosis. The frequency feature vectors are standardized to obtain standardized frequency feature vectors to eliminate the dimensional differences between different features and improve the comparability and processing effect of feature vectors. Multiple standardized frequency feature vectors are used to construct a feature matrix, which brings together the standardized frequency feature vectors of all time windows to form a comprehensive data set. Pattern recognition and time series analysis are performed on the feature matrix to obtain the initial data set. Through pattern recognition, different fault modes can be identified from the feature matrix, while time series analysis can reveal the change pattern of the signal over time, helping to accurately diagnose the operating status and potential faults of the battery swap cabinet.
[0030] Step S102, performing wavelet transform on the initial data set to obtain a wavelet detail coefficient set and calculating the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient to obtain a characteristic parameter set;
[0031] Specifically, the initial data set is decomposed by the Mallat algorithm to obtain the wavelet approximation coefficients and the wavelet detail coefficients. The M×N-dimensional wavelet detail coefficient matrix C is constructed according to the wavelet detail coefficients, and the decomposed wavelet detail coefficients are arranged in a matrix form in an orderly manner for subsequent processing. The l2 norm is calculated for each row vector ci of the wavelet detail coefficient matrix C to obtain the root mean square value vector r of the N-dimensional wavelet detail coefficient. By calculating the root mean square value, the energy of each row vector is obtained, which helps to evaluate the energy distribution of the signal in different frequency bands. The energy of the wavelet detail coefficient matrix C is calculated to obtain the M×N-dimensional wavelet energy matrix E. By calculating the square sum of the wavelet detail coefficients, the energy distribution of the signal in each frequency band is reflected. The energy skewness is calculated according to each column of the wavelet energy matrix E to obtain the N-dimensional wavelet energy skewness vector s. By calculating the skewness of each column of data, the asymmetry and concentration trend of the energy distribution are revealed. The wavelet energy matrix E is normalized by columns to obtain an M×N dimensional normalized energy matrix En. Normalization helps to eliminate the influence of dimensions between different columns, making the data in each column comparable. The wavelet energy spectrum is calculated according to each row of the normalized energy matrix En to obtain an M×N dimensional wavelet energy spectrum matrix P. The energy distribution of each row after normalization is calculated to obtain the distribution of energy in different frequency bands. The information entropy is calculated for each column of the wavelet energy spectrum matrix P to obtain an N-dimensional wavelet energy spectrum information entropy vector h. The calculation of information entropy can reflect the complexity and uncertainty of the signal. The root mean square value vector r, the wavelet energy skewness vector s and the wavelet energy spectrum information entropy vector h are concatenated to construct an M×3N dimensional feature parameter matrix F, and the corresponding feature parameter set is generated according to the feature parameter matrix F.
[0032] Step S103, performing wavelet packet decomposition on the initial data set and extracting the wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set;
[0033] Specifically, the wavelet packet analysis algorithm is used to perform multi-scale decomposition on the initial data set, decompose the signal into sub-bands of different frequency bands, and obtain a multi-layer wavelet packet decomposition coefficient matrix. According to each layer of the wavelet packet decomposition coefficient matrix, a wavelet packet energy matrix set is constructed, and each layer of decomposition coefficients is converted into energy form, which is convenient for extracting energy features. Each wavelet packet energy matrix set is normalized to obtain a normalized wavelet packet energy matrix set. Through normalization, the scale difference between different matrices is eliminated. According to the normalized wavelet packet energy matrix set, the energy of each layer of wavelet packet subband is calculated to obtain a subband energy vector set. The energy vector reflects the energy distribution of the signal in each frequency band. According to the subband energy vector set, the energy entropy of each layer of wavelet packet subband is calculated to obtain a subband energy entropy vector set. Energy entropy is an important indicator to measure signal complexity and can reflect the energy distribution state of each subband signal. According to the subband energy vector set, the energy skewness of each layer of wavelet packet subband is calculated to obtain a subband energy skewness vector set. Energy skewness is used to describe the asymmetry of energy distribution and is an important basis for judging signal characteristics. The subband energy vector set, subband energy entropy vector set and subband energy skewness vector set are concatenated to construct the feature matrix of each layer of wavelet packet subband. The feature matrix of each layer of wavelet packet subband is subjected to feature dimensionality reduction and row vector concatenation to obtain a one-dimensional subband feature vector set. By reducing the feature dimensionality, the dimension of the feature is reduced, and the simplicity and effectiveness of the feature representation are improved. Row vector concatenation integrates the feature vectors of each layer into a one-dimensional vector set, making the final feature set more compact and efficient.
[0034] Step S104, performing sparse autoencoder processing and feature fusion on the feature parameter set and the sub-band feature vector set to obtain a deep feature set;
[0035] Specifically, the L1 norm sparse constraint is applied to the feature parameter set. By introducing the L1 norm sparse constraint, most elements in the feature matrix tend to zero, a sparse feature matrix is obtained, redundant information is reduced, and the efficiency and accuracy of feature extraction are improved. A first sparse autoencoder is constructed according to the sparse feature matrix, and a first encoder weight matrix and a first decoder weight matrix are obtained through training. A sparse autoencoder is a deep learning model that can extract high-dimensional features from data through encoding and decoding processes. The subband feature vector set is input into the first encoder in the first sparse autoencoder for processing to obtain a first encoding feature, and the first encoding feature is input into the first decoder in the first sparse autoencoder for reverse reconstruction to obtain a reconstructed feature. A second sparse autoencoder is constructed according to the reconstructed feature, and a second encoder weight matrix and a second decoder weight matrix are obtained through training. The first encoding feature is input into the second encoder in the second sparse autoencoder for processing to obtain a second encoding feature, and the second encoding feature is input into the second decoder in the second sparse autoencoder for processing to obtain a reconstructed encoding feature. Through the processing of the second layer of sparse autoencoders, the feature vector is further extracted and optimized to make it more refined and hierarchical. The third sparse autoencoder is constructed based on the reconstructed coding features, and the third encoder weight matrix and the third decoder weight matrix are obtained by training. The second coding features are input into the third sparse autoencoder for processing to obtain the third coding features, and the third coding features are output as the deep feature set. Through the processing of the third layer of sparse autoencoder, the feature set finally obtained is not only highly sparse, but also can fully reflect the deep-level features of the data. The structure of the multi-layer sparse autoencoder realizes the effective fusion of the feature parameter set and the sub-band feature vector set by extracting and optimizing features layer by layer.
[0036] Step S105, performing feature enhancement mapping on the deep feature set to minimize the intra-class distance in the deep feature set to obtain an enhanced feature set;
[0037] Specifically, the deep feature set is sample labeled to obtain the labeled feature matrix and the category label vector, ensuring that the supervised learning in the feature enhancement process can accurately reflect the feature differences of different categories. The intra-class scatter matrix and the inter-class scatter matrix are calculated based on the category label vector. The intra-class scatter matrix reflects the distance between samples of the same category, while the inter-class scatter matrix reflects the distance between samples of different categories. By constructing a generalized Rayleigh quotient criterion function, the feature mapping process is optimized under the principle of minimum intra-class scatter and maximum inter-class scatter. The criterion function is solved using the generalized Rayleigh quotient algorithm to obtain a projection matrix, and the labeled feature matrix is projected onto the projection matrix to obtain a low-dimensional projection feature matrix. The intra-class scatter matrix is constructed based on the low-dimensional projection feature matrix, and the intra-class scatter matrix is decomposed by eigenvalue to obtain eigenvalues and eigenvectors. A new mapping space is constructed through eigenvalues and eigenvectors, so that the features have better discrimination in the space. A diagonal matrix is constructed based on the eigenvalues, a target matrix is constructed based on the eigenvectors, and a mapping matrix is calculated based on the diagonal matrix and the target matrix. The mapping matrix is the core of feature enhancement. Through the mapping matrix, the features are projected into a new space to minimize the intra-class distance and maximize the inter-class distance. The low-dimensional projection feature matrix is multiplied by the mapping matrix to obtain the enhanced feature matrix, and the enhanced feature matrix is output as the enhanced feature set. Through matrix operations, the enhanced mapping of features is realized, so that the enhanced features have better discrimination ability and distinction.
[0038] Step S106: input the enhanced feature set into a preset echo state network for fault classification to obtain the target fault type of the power swap cabinet.
[0039] Specifically, the enhanced feature set is standardized to eliminate the dimensional differences between different features and obtain a normalized enhanced feature matrix. The normalized enhanced feature matrix is input into the input gate of the echo state network. The echo state network is a special recursive neural network that uses a randomly generated, fixed hidden layer weight matrix to improve the training efficiency and performance of the network. In the input gate, the forgetting value of the forgetting gate, the input value of the input gate, and the output value of the output gate are calculated according to the input features. These values are used to control the transmission and update of information in the network to ensure that the network can effectively capture the temporal relationship between features. The current state is calculated according to the forgetting value, the input value, and the previous state, and the current hidden layer output is calculated according to the current state and the output value. The calculation of the current state takes into account the information of the previous state and the influence of the current input. Through the adjustment of the forgetting gate, the selective forgetting and memory of historical information are realized. The current hidden layer output is a high-dimensional nonlinear mapping of the input features at the current moment, which contains rich temporal information and feature relationships. The current hidden layer output is passed to the echo state network unit of the next time step for processing to obtain a hidden layer output sequence. Through multi-level recursive calculations, the hidden layer output sequence can fully capture the dynamic characteristics of the input features over time. The hidden layer output sequence is input into the fully connected layer, and affine transformation and nonlinear activation are performed in the fully connected layer to obtain the classification score vector. The affine transformation of the fully connected layer combines the features linearly through linear transformation combined with the bias term, while the nonlinear activation function increases the expressive power of the model and can capture complex feature relationships. The classification score vector is input into the Softmax classification layer, which normalizes the classification score vector to obtain the fault type probability vector. Through the Softmax function, the classification score is converted into a probability distribution to reflect the probability value of each category. The category with the largest probability value is taken as the target fault type output.
[0040] In the embodiment of the present application, real-time data collection is performed on the current signal and voltage signal of the power exchange cabinet, which ensures the continuity and real-time nature of the data and can quickly capture and reflect the operating status and changes of the power exchange cabinet. Bandpass filtering and resampling processing in the data acquisition process effectively remove noise and redundant information, and improve the quality and reliability of the data. Using wavelet transform technology, the wavelet detail coefficient, wavelet energy skewness and wavelet energy spectrum information entropy are calculated for the initial data set, which can extract the multi-scale characteristics of the signal and accurately reflect the detailed changes of the current and voltage signals. Wavelet packet decomposition further refines the frequency analysis of the signal. By extracting the wavelet packet subband energy, energy entropy and energy skewness, richer and more detailed frequency domain features are obtained, providing multi-dimensional data support for fault diagnosis. The sparse autoencoder is used to process the feature parameter set and the subband feature vector set, which can effectively reduce the dimension and remove redundancy, and extract deep feature information. Feature fusion technology comprehensively processes multiple features to generate a deep feature set with higher recognition and representativeness, and enhances the expression ability of fault features. Through feature enhancement mapping, the intra-class distance in the deep feature set is minimized, the clustering effect of similar features is improved, and the feature differentiation is enhanced. The redundancy between features is effectively reduced, the efficiency and accuracy of data processing are improved, and more reliable input data is provided for subsequent fault classification. The use of echo state network to classify the enhanced feature set fully utilizes the time series data processing capability of the echo state network and can accurately identify the fault type of the power exchange cabinet. The good generalization performance and efficient computing power of the echo state network ensure the real-time and accuracy of fault classification, and effectively improve the response speed of the online monitoring system and the reliability of fault diagnosis.
[0041] In a specific embodiment, the process of executing step S101 may specifically include the following steps:
[0042] (1) Perform real-time data collection on the current signal and voltage signal of the power exchange cabinet to obtain the initial current signal and initial voltage signal;
[0043] (2) performing band-pass filtering on the initial current signal and the initial voltage signal to obtain a purified current signal and a purified voltage signal;
[0044] (3) Resampling the purified current signal and the purified voltage signal to obtain a resampled current sequence and a resampled voltage sequence;
[0045] (4) segmenting the resampled current sequence and the resampled voltage sequence according to the time window T to obtain multiple time window current data and multiple time window voltage data;
[0046] (5) performing fast Fourier transform on the current data in each time window and the voltage data in each time window to obtain a plurality of frequency domain current data and a plurality of frequency domain voltage data;
[0047] (6) Extract fundamental frequency, harmonic frequency and amplitude from multiple frequency domain current data and multiple frequency domain voltage data, and construct frequency feature vector;
[0048] (7) Standardizing the frequency feature vector to obtain a standardized frequency feature vector, and constructing a feature matrix using multiple standardized frequency feature vectors;
[0049] (8) Perform pattern recognition and time series analysis on the feature matrix to obtain the initial data set.
[0050] Specifically, the current and voltage signals of the battery swap cabinet are collected in real time through sensors. These sensors convert physical signals into electrical signals to form initial current signals. and the initial voltage signal . For the initial current signal and the initial voltage signal Perform bandpass filtering to obtain a purified current signal and clean voltage signal The bandpass filter is used to remove high-frequency noise and low-frequency interference and retain the effective frequency components in the signal. Suppose the transfer function of the bandpass filter is , then the purified signal can be expressed as:
[0051] ;
[0052] (t)=V(t)*h(t);
[0053] Among them, * represents the convolution operation, is the time domain response of the bandpass filter. and clean voltage signal Resample. Convert the signal to a uniform sampling rate to obtain a resampled current sequence and the resampled voltage series Assume that the sampling rate of the original signal is The sampling rate after resampling is , then the resampling process can be expressed as:
[0054] ;
[0055] ;
[0056] in, is the sampling period after resampling. and the resampled voltage series By time window Segment to obtain current data in multiple time windows and multiple time window voltage data For each time window current data And the voltage data in each time window Perform fast Fourier transform (FFT) to obtain multiple frequency domain current data and multiple frequency domain voltage data The formula for the fast Fourier transform is:
[0057] ;
[0058] ;
[0059] in, is an imaginary unit, Represents the frequency index. From multiple frequency domain current data and multiple frequency domain voltage data Extract the fundamental frequency, harmonic frequency and amplitude from the equation to construct the frequency feature vector. Usually the main frequency of the signal, harmonic frequency It is an integer multiple of the fundamental frequency. It reflects the energy of the signal at each frequency component. The frequency eigenvector can be expressed as:
[0060] ;
[0061] Standardize the frequency feature vector to obtain a standardized frequency feature vector so that each eigenvalue is on the same scale for subsequent processing. Construct a feature matrix with multiple standardized frequency feature vectors. Each row of the feature matrix corresponds to a feature vector of a time window, and each column corresponds to a feature component. Perform pattern recognition and time series analysis on the feature matrix to obtain an initial data set. Pattern recognition can use clustering algorithms such as K-means or classification algorithms such as support vector machines to identify patterns and regularities in the feature matrix. Time series analysis can use autoregressive models or long short-term memory networks to capture the dynamics of feature changes over time.
[0062] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0063] (1) Use the Mallat algorithm to perform wavelet decomposition on the initial data set to obtain wavelet approximation coefficients and wavelet detail coefficients;
[0064] (2) Construct an M×N dimensional wavelet detail coefficient matrix C based on the wavelet detail coefficients;
[0065] (3) Calculate the l2 norm of each row vector ci of the wavelet detail coefficient matrix C to obtain the root mean square value vector r of the N-dimensional wavelet detail coefficient;
[0066] (4) Calculate the energy of the wavelet detail coefficient matrix C to obtain the M×N dimensional wavelet energy matrix E;
[0067] (5) Calculate the energy skewness according to each column of the wavelet energy matrix E to obtain the N-dimensional wavelet energy skewness vector s;
[0068] (6) Perform column normalization on the wavelet energy matrix E to obtain an M×N dimensional normalized energy matrix En;
[0069] (7) Calculate the wavelet energy spectrum according to each row of the normalized energy matrix En to obtain an M×N dimensional wavelet energy spectrum matrix P;
[0070] (8) Calculate the information entropy of each column of the wavelet energy spectrum matrix P to obtain the N-dimensional wavelet energy spectrum information entropy vector h;
[0071] (9) The root mean square value vector r, the wavelet energy skewness vector s, and the wavelet energy spectrum information entropy vector h are concatenated to construct an M×3N dimensional feature parameter matrix F, and the corresponding feature parameter set is generated according to the feature parameter matrix F.
[0072] Specifically, the initial data set is decomposed by the Mallat algorithm. The Mallat algorithm is a fast wavelet transform algorithm that decomposes the signal by decomposing and reconstructing filters to obtain wavelet approximation coefficients and wavelet detail coefficients. Assume that the initial data set is ,in is the data length. The Mallat algorithm decomposes the data into components of different frequency bands and obtains the wavelet approximation coefficients and wavelet detail coefficients ,in Represents the decomposition level. According to the obtained wavelet detail coefficients, construct dimensional wavelet detail coefficient matrix ,in is the number of decomposition levels, is the length of the wavelet detail coefficients at each level. The matrix Each row corresponds to a detail coefficient of a decomposition level, and each column corresponds to the detail coefficient value at a different time point. Each row vector of conduct Norm calculation, we get The root mean square value vector of the detail coefficients of the dimensional wavelet The formula for calculating the RMS value is:
[0073] ;
[0074] in, It is The root mean square value of the row, It is Line The coefficient values of the columns. For the wavelet detail coefficient matrix Perform energy calculation and get dimensional wavelet energy matrix The energy is calculated by squaring each coefficient and summing them up, i.e.:
[0075] ;
[0076] in, is the energy matrix No. Line The elements of the column. According to the wavelet energy matrix Calculate the energy skewness for each column of dimensional wavelet energy skewness vector The energy skewness measures the symmetry of the energy distribution and is calculated as:
[0077] ;
[0078] in, It is The mean of the columns. For the wavelet energy matrix Perform column normalization to obtain dimensional normalized energy matrix The normalization is done by dividing each energy value by the total energy of the column, i.e.:
[0079] ;
[0080] According to the normalized energy matrix Calculate the wavelet energy spectrum for each row of dimensional wavelet spectrum matrix The wavelet energy spectrum reflects the distribution of energy in different frequency bands, and its calculation formula is:
[0081] ;
[0082] Wavelet spectrum matrix Calculate the information entropy for each column of dimensional wavelet spectrum information entropy vector Information entropy is used to measure signal complexity, and its calculation formula is:
[0083] ;
[0084] The RMS value vector , wavelet energy skewness vector and wavelet spectrum information entropy vector Splicing construction dimensional feature parameter matrix , and according to the characteristic parameter matrix Generate a corresponding feature parameter set. The feature parameter set contains multiple features extracted from the initial data set and can fully reflect the time-frequency characteristics of the signal.
[0085] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0086] (1) Using the wavelet packet analysis algorithm to perform multi-scale decomposition on the initial data set, a multi-layer wavelet packet decomposition coefficient matrix is obtained;
[0087] (2) Construct a set of wavelet packet energy matrices based on each layer of the wavelet packet decomposition coefficient matrix;
[0088] (3) Normalize each wavelet packet energy matrix set to obtain a normalized wavelet packet energy matrix set;
[0089] (4) Calculate the energy of each layer of wavelet packet subband according to the normalized wavelet packet energy matrix set to obtain the subband energy vector set;
[0090] (5) Calculate the energy entropy of each layer of wavelet packet subband according to the subband energy vector set to obtain the subband energy entropy vector set;
[0091] (6) Calculate the energy skewness of each layer of wavelet packet subband according to the subband energy vector set to obtain the subband energy skewness vector set;
[0092] (7) Concatenate the subband energy vector set, subband energy entropy vector set, and subband energy skewness vector set into matrices to construct the characteristic matrix of each layer of wavelet packet subband;
[0093] (8) Perform feature dimension reduction and row vector concatenation on the feature matrix of each layer of wavelet packet subband to obtain a one-dimensional subband feature vector set.
[0094] Specifically, the wavelet packet analysis algorithm is used to perform multi-scale decomposition on the initial data set to obtain a multi-layer wavelet packet decomposition coefficient matrix. Assume that the initial data set is ,in is the data length. Wavelet packet analysis recursively decomposes the signal into multiple frequency bands, each of which is further subdivided, and finally obtains multiple wavelet packet decomposition coefficients. Suppose the number of layers of wavelet packet decomposition is , then each layer contains subbands, forming a multi-layer wavelet packet decomposition coefficient matrix According to the wavelet packet decomposition coefficient matrix For each layer, a wavelet packet energy matrix set is constructed. For each subband of each layer, its energy is calculated. The energy is defined as the sum of the squares of the coefficients, that is:
[0095] ;
[0096] in, Indicates Tier The energy of the sub-band, represents the number of coefficients in this subband, Indicates Tier In the subband Each wavelet packet energy matrix set is normalized to obtain a normalized wavelet packet energy matrix set, eliminating the energy difference between different sub-bands so that the energy features are on the same scale. The normalization formula is:
[0097] ;
[0098] in, is the normalized energy, indicating the Tier The normalized energy of each subband. The energy of each wavelet packet subband is calculated based on the normalized wavelet packet energy matrix set to obtain a subband energy vector set. The energy vector of each wavelet packet subband can be expressed as:
[0099] ;
[0100] in, It is The energy vector of a layer contains the normalized energy of all subbands of the layer. The energy entropy of each wavelet packet subband is calculated based on the subband energy vector set to obtain the subband energy entropy vector set. Energy entropy is used to measure the complexity of energy distribution, and its calculation formula is:
[0101] ;
[0102] in, It is Energy entropy of the layer. The energy skewness of each layer of wavelet packet subband is calculated according to the subband energy vector set to obtain the subband energy skewness vector set. Energy skewness is used to describe the symmetry of energy distribution, and its calculation formula is:
[0103] ;
[0104] in, It is The mean of the layer energy. The subband energy vector set, subband energy entropy vector set and subband energy skewness vector set are concatenated to construct the feature matrix of each layer of wavelet packet subband. Each row of the feature matrix is the feature of a subband, including energy, energy entropy and energy skewness. These features reflect the energy distribution and complexity of the signal in different frequency bands. The concatenated feature matrix can be expressed as:
[0105] ;
[0106] in, It is The wavelet packet subband feature matrix of each layer is obtained by performing feature dimension reduction and row vector concatenation on the feature matrix of each layer of wavelet packet subband to obtain a one-dimensional subband feature vector set. Feature dimension reduction can be performed using methods such as principal component analysis or linear discriminant analysis, with the aim of reducing the dimension of features and improving the compactness and expressiveness of features.
[0107] In a specific embodiment, the process of executing step S104 may specifically include the following steps:
[0108] (1) Apply L1 norm sparse constraints to the feature parameter set to obtain a sparse feature matrix;
[0109] (2) constructing a first sparse autoencoder according to the sparse feature matrix to obtain a first encoder weight matrix and a first decoder weight matrix;
[0110] (3) inputting the subband feature vector set into the first encoder in the first sparse autoencoder for processing to obtain a first encoding feature, and inputting the first encoding feature into the first decoder in the first sparse autoencoder to obtain a reconstructed feature;
[0111] (4) constructing a second sparse autoencoder based on the reconstructed features to obtain a second encoder weight matrix and a second decoder weight matrix;
[0112] (5) inputting the first coding feature into a second encoder in the second sparse autoencoder for processing to obtain a second coding feature, and inputting the second coding feature into a second decoder in the second sparse autoencoder for processing to obtain a reconstructed coding feature;
[0113] (6) constructing a third sparse autoencoder based on the reconstructed coding features to obtain a third encoder weight matrix and a third decoder weight matrix;
[0114] (7) Input the second encoded features into the third sparse autoencoder for processing to obtain third encoded features, and output the third encoded features as a deep feature set.
[0115] Specifically, the L1 norm sparse constraint is applied to the feature parameter set to obtain a sparse feature matrix. The L1 norm sparse constraint introduces a sparsity penalty term so that most elements in the feature matrix tend to zero, thereby highlighting important features and reducing redundancy. Assume that the feature parameter set is , the sparse constrained optimization problem can be expressed as:
[0116] ;
[0117] in, is a sparse feature matrix, is the sparsity penalty parameter, represents the L1 norm, represents the L2 norm. By optimizing this problem, we get the sparse feature matrix . The first sparse autoencoder is constructed based on the sparse feature matrix. The sparse autoencoder consists of an encoder and a decoder. The encoder is used to map the input data to a low-dimensional sparse representation, and the decoder is used to reconstruct the sparse representation back to the original data. The goal of the first sparse autoencoder is to learn the sparse representation of the input data by optimizing the following problems:
[0118] ;
[0119] in, and are the weight matrices of the encoder and decoder respectively, represents the activation function (such as ReLU or Sigmoid). By optimizing this problem, the first encoder weight matrix is obtained and the first decoder weight matrix The subband feature vector set is input into the first encoder in the first sparse autoencoder for processing to obtain the first encoding feature. Assume that the subband feature vector set is , the first encoding feature can be expressed as:
[0120] ;
[0121] And input the first encoded feature into the first decoder in the first sparse autoencoder to obtain the reconstructed feature:
[0122] ;
[0123] Construct the second sparse autoencoder based on the reconstructed features, optimize and extract features, and solve the optimization problem:
[0124] ;
[0125] Get the second encoder weight matrix and the second decoder weight matrix . The first encoding feature Input the second encoder in the second sparse autoencoder for processing to obtain the second encoding feature:
[0126] ;
[0127] The second encoded feature is input into the second decoder in the second sparse autoencoder for processing to obtain the reconstructed encoded feature:
[0128] ;
[0129] The third sparse autoencoder is constructed based on the reconstructed coding features to optimize and extract deep features. By optimizing the problem:
[0130] ;
[0131] Get the third encoder weight matrix and the third decoder weight matrix . The second encoding feature Input the third sparse autoencoder for processing to obtain the third encoding feature:
[0132] ;
[0133] And the third encoded feature is output as a deep feature set.
[0134] In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0135] (1) Label samples of the deep feature set to obtain the labeled feature matrix and category label vector;
[0136] (2) Calculate the intra-class scatter matrix and inter-class scatter matrix based on the class label vector, and construct the generalized Rayleigh quotient criterion function;
[0137] (3) The criterion function is solved using the generalized Rayleigh quotient algorithm to obtain the projection matrix, and the labeled feature matrix is projected onto the projection matrix to obtain a low-dimensional projection feature matrix;
[0138] (4) Construct the intra-class scatter matrix based on the low-dimensional projection feature matrix, and perform eigenvalue decomposition on the intra-class scatter matrix to obtain eigenvalues and eigenvectors;
[0139] (5) Construct a diagonal matrix based on the eigenvalues, construct a target matrix based on the eigenvectors, and calculate a mapping matrix based on the diagonal matrix and the target matrix;
[0140] (6) Multiply the low-dimensional projection feature matrix by the mapping matrix to obtain an enhanced feature matrix, and output the enhanced feature matrix as an enhanced feature set.
[0141] Specifically, the deep feature set is sample labeled to obtain the labeled feature matrix and category label vector. Assume that the deep feature set is ,in is the number of samples, each feature vector Corresponding to a category label Through sample annotation, we get the annotation feature matrix and the class label vector . Calculate the intra-class scatter matrix based on the class label vector and the between-class scatter matrix The intra-class scatter matrix reflects the distance between samples of the same category, while the inter-class scatter matrix reflects the distance between samples of different categories. The calculation formula is:
[0142] ;
[0143] in, is the number of categories, For the Class sample set, For the Mean vector of the class. Scatter matrix between classes The calculation formula is:
[0144] ;
[0145] in, For the The number of class samples, is the global mean vector. A generalized Rayleigh quotient criterion function is constructed to maximize the ratio of the inter-class scatter matrix and minimize the intra-class scatter matrix. The optimization objective can be expressed as:
[0146] ;
[0147] Among them, tr( ) represents the trace of the matrix, is the projection matrix. The optimization problem is solved by the generalized Rayleigh quotient algorithm to obtain the projection matrix . The feature matrix will be labeled Projection to the projection matrix On the top, we get the low-dimensional projection feature matrix , and its calculation formula is:
[0148] ;
[0149] Next, the intra-class scatter matrix is constructed based on the low-dimensional projection feature matrix, and the eigenvalue decomposition of the intra-class scatter matrix is performed. Assume that the low-dimensional projection feature matrix is Z, and the intra-class scatter matrix is The calculation formula is:
[0150] ;
[0151] in, is the mean vector of the cth class in the low-dimensional space. Through eigenvalue decomposition, the eigenvalues and eigenvectors are obtained. According to the eigenvalues, a diagonal matrix is constructed. , construct the target matrix based on the eigenvector Assume that the eigenvalue is , the eigenvector is , then the diagonal matrix The construction formula is:
[0152] diag ;
[0153] Target Matrix The construction formula is:
[0154] ;
[0155] According to the diagonal matrix and the target matrix Calculate the mapping matrix The calculation formula is:
[0156] ;
[0157] The low-dimensional projection feature matrix Multiply the mapping matrix M on the left to obtain the enhanced feature matrix F, which is calculated as follows:
[0158]
[0159] Finally, the enhanced feature matrix F is output as an enhanced feature set.
[0160] In a specific embodiment, the process of executing step S106 may specifically include the following steps:
[0161] (1) Standardize the enhanced feature set to obtain a normalized enhanced feature matrix;
[0162] (2) Input the normalized enhanced feature matrix into the input gate of the echo state network, and calculate according to the input gate to obtain the forgetting value of the forgetting gate, the input value of the input gate, and the output value of the output gate;
[0163] (3) Calculate the current state based on the forgotten value, input value and previous state, and calculate the current hidden layer output based on the current state and output value;
[0164] (4) The current hidden layer output is passed to the echo state network unit of the next time step for processing to obtain the hidden layer output sequence;
[0165] (5) Input the hidden layer output sequence into the fully connected layer, and perform affine transformation and nonlinear activation in the fully connected layer to obtain the classification score vector;
[0166] (6) Input the classification score vector into the Softmax classification layer to obtain the fault type probability vector, and take the category with the largest probability value as the target fault type output.
[0167] Specifically, the enhanced feature set is standardized to obtain a normalized enhanced feature matrix. The normalization process is performed by subtracting the mean of each feature value and dividing it by its standard deviation, so that the distribution of the feature value has zero mean and unit variance, eliminating the dimension difference between the feature values, and obtaining a standardized feature matrix. The normalized enhanced feature matrix is input into the input gate of the echo state network. The echo state network consists of an input layer, a hidden layer, and an output layer, wherein the hidden layer contains a large number of randomly connected neurons. The input gate is calculated according to the input features to obtain the forgetting value of the forgetting gate, the input value of the input gate, and the output value of the output gate. Assuming that the input feature vector is the feature of the current time step, the calculation of the input gate, the forgetting gate, and the output gate is performed through a set of weight matrices and activation functions, the purpose of which is to adjust the transmission and memory of information in the network. The current state is calculated according to the forgetting value, the input value, and the previous hidden layer state. The current state takes into account the combined influence of the information of the previous time step and the current input. According to the current state and the output value, the current hidden layer output is calculated. The hidden layer output reflects the representation of the features of the current time step in the network and contains the temporal relationship of the input features. The current hidden layer output is passed to the echo state network unit of the next time step for processing to obtain the hidden layer output sequence. By recursively processing each time step of the input sequence, the temporal modeling and dynamic representation of the input features are realized. The hidden layer output sequence is input into the fully connected layer, and affine transformation and nonlinear activation are performed in the fully connected layer to obtain the classification score vector. Assume that the hidden layer output sequence is , the calculation formula of the fully connected layer is:
[0168] ;
[0169] in, is the weight matrix of the fully connected layer, is the bias term. Through a nonlinear activation function (such as ReLU or Tanh), the activated classification score vector is obtained. The classification score vector is input into the Softtmax classification layer, and the Softmax classification layer normalizes the classification score to obtain the fault type probability vector. The Softmax function converts the classification score into a probability distribution, and the formula is:
[0170] ;
[0171] in, is the classification score vector Quantity, is the number of categories. Through the Softmax function, the probability value of each category is obtained. The category with the largest probability value is taken as the target fault type output.
[0172] The above describes the online data monitoring method of the power exchange cabinet in the embodiment of the present application. The following describes the online data monitoring system of the power exchange cabinet in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the online data monitoring system of the power exchange cabinet includes:
[0173] The acquisition module 201 is used to perform real-time data acquisition of the current signal and voltage signal of the power exchange cabinet to obtain an initial data set;
[0174] The calculation module 202 is used to perform wavelet transformation on the initial data set to obtain a wavelet detail coefficient set and calculate the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient to obtain a characteristic parameter set;
[0175] An extraction module 203 is used to perform wavelet packet decomposition on the initial data set and extract the wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set;
[0176] A processing module 204 is used to perform sparse autoencoder processing and feature fusion on the feature parameter set and the sub-band feature vector set to obtain a deep feature set;
[0177] A mapping module 205 is used to perform feature enhancement mapping on the deep feature set to minimize the intra-class distance in the deep feature set to obtain an enhanced feature set;
[0178] The classification module 206 is used to input the enhanced feature set into a preset echo state network for fault classification to obtain the target fault type of the power exchange cabinet.
[0179] Through the cooperation of the above components, the current signal and voltage signal of the power exchange cabinet are collected in real time, ensuring the continuity and real-time nature of the data, and can quickly capture and reflect the operating status and changes of the power exchange cabinet. Bandpass filtering and resampling processing in the data collection process effectively remove noise and redundant information, and improve the quality and reliability of the data. Using wavelet transform technology, the wavelet detail coefficient, wavelet energy skewness and wavelet energy spectrum information entropy are calculated for the initial data set, which can extract the multi-scale characteristics of the signal and accurately reflect the detailed changes of the current and voltage signals. Wavelet packet decomposition further refines the frequency analysis of the signal. By extracting the wavelet packet subband energy, energy entropy and energy skewness, richer and more detailed frequency domain features are obtained, providing multi-dimensional data support for fault diagnosis. The sparse autoencoder is used to process the feature parameter set and the subband feature vector set, which can effectively reduce the dimension and remove redundancy, and extract deep feature information. Feature fusion technology comprehensively processes multiple features to generate a deep feature set with higher recognition and representativeness, enhancing the expression ability of fault features. Through feature enhancement mapping, the intra-class distance in the deep feature set is minimized, the clustering effect of similar features is improved, and the feature differentiation is enhanced. The redundancy between features is effectively reduced, the efficiency and accuracy of data processing are improved, and more reliable input data is provided for subsequent fault classification. The use of echo state network to classify the enhanced feature set fully utilizes the time series data processing capability of the echo state network and can accurately identify the fault type of the power exchange cabinet. The good generalization performance and efficient computing power of the echo state network ensure the real-time and accuracy of fault classification, and effectively improve the response speed of the online monitoring system and the reliability of fault diagnosis.
[0180] The present application also provides an online data monitoring device for a power swap cabinet, which includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the online data monitoring method for the power swap cabinet in the above-mentioned embodiments.
[0181] 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 method for online data monitoring of the power exchange cabinet.
[0182] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0183] 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 a computer device (which can be a personal computer, server, or network device, etc.) to execute 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 and other media that can store program codes.
[0184] 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 online data monitoring of a power exchange cabinet, characterized in that: The data online monitoring method of the power exchange cabinet includes: Perform real-time data collection on the current signal and voltage signal of the power exchange cabinet to obtain an initial data set; Performing wavelet transform on the initial data set to obtain a wavelet detail coefficient set and calculating the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient to obtain a characteristic parameter set; Performing wavelet packet decomposition on the initial data set and extracting wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set; The feature parameter set and the sub-band feature vector set are subjected to sparse autoencoder processing and feature fusion to obtain a deep feature set; specifically comprising: performing L1 norm sparse constraint on the feature parameter set to obtain a sparse feature matrix; constructing a first sparse autoencoder according to the sparse feature matrix to obtain a first encoder weight matrix and a first decoder weight matrix; inputting the sub-band feature vector set into the first encoder in the first sparse autoencoder for processing to obtain a first encoding feature, and inputting the first encoding feature into the first decoder in the first sparse autoencoder to obtain a reconstructed feature; constructing a second sparse autoencoder according to the reconstructed feature to obtain a second encoder weight matrix and a second decoder weight matrix; inputting the first encoding feature into the second encoder in the second sparse autoencoder for processing to obtain a second encoding feature, and inputting the second encoding feature into the second decoder in the second sparse autoencoder for processing to obtain a reconstructed encoding feature; constructing a third sparse autoencoder according to the reconstructed encoding feature to obtain a third encoder weight matrix and a third decoder weight matrix; inputting the second encoding feature into the third sparse autoencoder for processing to obtain a third encoding feature, and outputting the third encoding feature as a deep feature set; Performing feature enhancement mapping on the deep feature set to minimize the intra-class distance in the deep feature set to obtain an enhanced feature set; specifically comprising: performing sample annotation on the deep feature set to obtain an annotation feature matrix and a category label vector; calculating an intra-class scatter matrix and an inter-class scatter matrix according to the category label vector, and constructing a generalized Rayleigh quotient criterion function; solving the criterion function using a generalized Rayleigh quotient algorithm to obtain a projection matrix, and projecting the annotation feature matrix onto the projection matrix to obtain a low-dimensional projection feature matrix; constructing an intra-class scatter matrix according to the low-dimensional projection feature matrix, and performing eigenvalue decomposition on the intra-class scatter matrix to obtain eigenvalues and eigenvectors; constructing a diagonal matrix according to the eigenvalues, constructing a target matrix according to the eigenvectors, and calculating a mapping matrix according to the diagonal matrix and the target matrix; left-multiplying the low-dimensional projection feature matrix by the mapping matrix to obtain an enhanced feature matrix, and outputting the enhanced feature matrix as an enhanced feature set; The enhanced feature set is input into a preset echo state network for fault classification to obtain the target fault type of the power exchange cabinet.
2. The method for online data monitoring of a power exchange cabinet according to claim 1 is characterized in that: The real-time data collection of the current signal and the voltage signal of the power exchange cabinet is performed to obtain an initial data set, including: Perform real-time data collection on the current signal and voltage signal of the power exchange cabinet to obtain the initial current signal and initial voltage signal; Performing band-pass filtering on the initial current signal and the initial voltage signal to obtain a purified current signal and a purified voltage signal; Resampling the purification current signal and the purification voltage signal to obtain a resampled current sequence and a resampled voltage sequence; Segmenting the resampled current sequence and the resampled voltage sequence according to the time window T to obtain a plurality of time window current data and a plurality of time window voltage data; Performing a fast Fourier transform on each time window current data and each time window voltage data to obtain a plurality of frequency domain current data and a plurality of frequency domain voltage data; Extract fundamental frequency, harmonic frequency and amplitude from the plurality of frequency domain current data and the plurality of frequency domain voltage data, and construct a frequency feature vector; Standardizing the frequency feature vector to obtain a standardized frequency feature vector, and constructing a feature matrix from multiple standardized frequency feature vectors; Pattern recognition and time series analysis are performed on the feature matrix to obtain an initial data set.
3. The method for online data monitoring of a power exchange cabinet according to claim 1 is characterized in that: The initial data set is subjected to wavelet transformation to obtain a wavelet detail coefficient set and the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient are calculated to obtain a characteristic parameter set, including: Using Mallat algorithm to perform wavelet decomposition on the initial data set to obtain wavelet approximation coefficients and wavelet detail coefficients; Constructing an M×N dimensional wavelet detail coefficient matrix C according to the wavelet detail coefficients; Performing l2-norm calculation on each row vector ci of the wavelet detail coefficient matrix C to obtain a root mean square value vector r of the N-dimensional wavelet detail coefficient; Performing energy calculation on the wavelet detail coefficient matrix C to obtain an M×N dimensional wavelet energy matrix E; Calculate the energy skewness according to each column of the wavelet energy matrix E to obtain an N-dimensional wavelet energy skewness vector s; Performing column normalization processing on the wavelet energy matrix E to obtain an M×N dimensional normalized energy matrix En; Calculate the wavelet energy spectrum according to each row of the normalized energy matrix En to obtain an M×N dimensional wavelet energy spectrum matrix P; Calculate the information entropy of each column of the wavelet energy spectrum matrix P to obtain an N-dimensional wavelet energy spectrum information entropy vector h; The root mean square value vector r, the wavelet energy skewness vector s, and the wavelet energy spectrum information entropy vector h are concatenated to construct an M×3N dimensional feature parameter matrix F, and according to the feature parameter matrix F, a corresponding feature parameter set is generated.
4. The method for online data monitoring of a power exchange cabinet according to claim 1 is characterized in that: The step of performing wavelet packet decomposition on the initial data set and extracting wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set includes: Using a wavelet packet analysis algorithm to perform multi-scale decomposition on the initial data set to obtain a multi-layer wavelet packet decomposition coefficient matrix; Constructing a wavelet packet energy matrix set according to each layer of the wavelet packet decomposition coefficient matrix; Normalizing each wavelet packet energy matrix set to obtain a normalized wavelet packet energy matrix set; Calculating the energy of each layer of wavelet packet subband according to the normalized wavelet packet energy matrix set to obtain a subband energy vector set; Calculate the energy entropy of each layer of wavelet packet subband according to the subband energy vector set to obtain a subband energy entropy vector set; Calculate the energy skewness of each layer of wavelet packet subband according to the subband energy vector set to obtain a subband energy skewness vector set; Performing matrix concatenation on the subband energy vector set, the subband energy entropy vector set, and the subband energy skewness vector set to construct a characteristic matrix of each layer of wavelet packet subband; The feature matrix of each layer of wavelet packet subband is subjected to feature dimension reduction and row vector concatenation to obtain a one-dimensional subband feature vector set.
5. The method for online data monitoring of a power exchange cabinet according to claim 1 is characterized in that: The step of inputting the enhanced feature set into a preset echo state network for fault classification to obtain a target fault type of the power exchange cabinet includes: Normalizing the enhanced feature set to obtain a normalized enhanced feature matrix; Inputting the normalized enhanced feature matrix into the input gate of the echo state network, and calculating according to the input gate to obtain a forgetting value of the forgetting gate, an input value of the input gate, and an output value of the output gate; Calculate the current state according to the forgotten value, the input value and the previous state, and calculate the current hidden layer output according to the current state and the output value; Passing the current hidden layer output to the echo state network unit of the next time step for processing to obtain a hidden layer output sequence; Inputting the hidden layer output sequence into a fully connected layer, and performing affine transformation and nonlinear activation in the fully connected layer to obtain a classification score vector; The classification score vector is input into the Softmax classification layer to obtain a fault type probability vector, and the category with the largest probability value is taken as the target fault type output.
6. A data online monitoring system for a power-swap cabinet, used to execute the data online monitoring method for a power-swap cabinet according to claim 1, characterized in that: The data online monitoring system of the power exchange cabinet includes: The acquisition module is used to collect the current signal and voltage signal of the power exchange cabinet in real time to obtain an initial data set; A calculation module is used to perform wavelet transform on the initial data set to obtain a wavelet detail coefficient set and calculate the root mean square value, wavelet energy skewness and wavelet energy spectrum information entropy of the wavelet detail coefficient to obtain a characteristic parameter set; An extraction module, used for performing wavelet packet decomposition on the initial data set and extracting wavelet packet subband energy, energy entropy and energy skewness to obtain a subband feature vector set; A processing module, used for performing sparse autoencoder processing and feature fusion on the feature parameter set and the subband feature vector set to obtain a deep feature set; specifically comprising: performing L1 norm sparse constraint on the feature parameter set to obtain a sparse feature matrix; constructing a first sparse autoencoder according to the sparse feature matrix to obtain a first encoder weight matrix and a first decoder weight matrix; inputting the subband feature vector set into the first encoder in the first sparse autoencoder for processing to obtain a first encoding feature, and inputting the first encoding feature into the first decoder in the first sparse autoencoder to obtain a reconstructed feature; constructing a second sparse autoencoder according to the reconstructed feature to obtain a second encoder weight matrix and a second decoder weight matrix; inputting the first encoding feature into the second encoder in the second sparse autoencoder for processing to obtain a second encoding feature, and inputting the second encoding feature into the second decoder in the second sparse autoencoder for processing to obtain a reconstructed encoding feature; constructing a third sparse autoencoder according to the reconstructed encoding feature to obtain a third encoder weight matrix and a third decoder weight matrix; inputting the second encoding feature into the third sparse autoencoder for processing to obtain a third encoding feature, and outputting the third encoding feature as a deep feature set; A mapping module is used to perform feature enhancement mapping on the deep feature set to minimize the intra-class distance in the deep feature set and obtain an enhanced feature set; specifically comprising: performing sample annotation on the deep feature set to obtain an annotation feature matrix and a category label vector; calculating an intra-class scatter matrix and an inter-class scatter matrix according to the category label vector, and constructing a generalized Rayleigh quotient criterion function; solving the criterion function using a generalized Rayleigh quotient algorithm to obtain a projection matrix, and projecting the annotation feature matrix onto the projection matrix to obtain a low-dimensional projection feature matrix; constructing an intra-class scatter matrix according to the low-dimensional projection feature matrix, and performing eigenvalue decomposition on the intra-class scatter matrix to obtain eigenvalues and eigenvectors; constructing a diagonal matrix according to the eigenvalues, constructing a target matrix according to the eigenvectors, and calculating a mapping matrix according to the diagonal matrix and the target matrix; left-multiplying the low-dimensional projection feature matrix by the mapping matrix to obtain an enhanced feature matrix, and outputting the enhanced feature matrix as an enhanced feature set; A classification module is used to input the enhanced feature set into a preset echo state network for fault classification to obtain the target fault type of the power exchange cabinet.
7. An online data monitoring device for a power exchange cabinet, characterized in that: The data online monitoring device of the power exchange cabinet includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instruction in the memory so that the online data monitoring device of the power exchange cabinet executes the online data monitoring method of the power exchange cabinet 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 online data monitoring method of the power exchange cabinet as described in any one of claims 1-5 is implemented.
