Safety monitoring method and system for operating status of battery exchange cabinet
Through data cleaning and multi-scale decomposition of the voltage, current, and temperature signals of the power exchange cabinet, combined with the deep belief network, an anomaly identification model was established, which solved the problem of low fault identification accuracy in the existing technology and achieved a higher Monitoring accuracy and system security.
Patent Information
- Application Number
- CN202410879325.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing power-swapping cabinet operation status monitoring technology is difficult to accurately identify early, weak or intermittent fault characteristics, resulting in missed or false alarms, and has low accuracy when processing complex signals.
Filtering and denoising algorithms are used to clean the voltage, current, and temperature signals. Multi-scale decomposition is performed through the double-enhanced sparse decomposition algorithm, features are extracted and feature weights are assigned, and an anomaly identification model is established using a double-layer deep belief network to achieve real-time faults. Identify.
It improves the accuracy and reliability of the operating status monitoring of the power swap cabinet, reduces false alarms and omissions, enables timely detection and handling of faults, and ensures system security.
Smart Images

Figure CN118427762B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of safety monitoring of power swap cabinets, and in particular to a method and system for safety monitoring of the operating status of a power swap cabinet. Background Art
[0002] The battery swap cabinet is an important part of the charging infrastructure for electric two-wheelers. Its main function is to provide fast and safe battery replacement services for electric two-wheelers. With the popularity of electric two-wheelers, the frequency of use of battery swap cabinets has continued to increase, and the safety monitoring of their operating status has become an important part of ensuring the normal use of electric two-wheelers and maintaining public safety. However, due to the complex working environment of the battery swap cabinet, its operating status monitoring faces many technical challenges.
[0003] At present, the monitoring of the operating status of the battery swap cabinet mainly relies on traditional sensors and simple threshold judgment methods. Although these methods can capture some obvious fault signals, they have limited ability to identify some early, weak or intermittent fault characteristics, which can easily lead to missed faults or false alarms. In addition, when processing large-scale, multi-dimensional data, traditional methods have difficulty coping with the nonlinear and non-stationary characteristics of complex signals, and cannot fully and accurately reflect the actual operating status of the battery swap cabinet, which leads to the low accuracy of existing technologies. Summary of the invention
[0004] The present application provides a method and system for safely monitoring the operating status of a battery swap cabinet, which are used to improve the accuracy of safely monitoring the operating status of a battery swap cabinet.
[0005] In a first aspect, the present application provides a method for safely monitoring the operating status of a power exchange cabinet, and the method for safely monitoring the operating status of a power exchange cabinet includes:
[0006] Collect historical operating status of the voltage signal, current signal and temperature signal of the power exchange cabinet to obtain a first voltage signal, a first current signal and a first temperature signal;
[0007] Using filtering and denoising algorithms to perform data cleaning and noise suppression on the first voltage signal, the first current signal and the first temperature signal respectively, to obtain a second voltage signal, a second current signal and a second temperature signal;
[0008] Using a double-enhanced sparse decomposition algorithm to perform multi-scale decomposition on the second voltage signal, the second current signal, and the second temperature signal, respectively, to obtain a plurality of first intrinsic mode components of the second voltage signal, a plurality of second intrinsic mode components of the second current signal, and a plurality of third intrinsic mode components of the second temperature signal;
[0009] Performing feature extraction and feature weight assignment on the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set;
[0010] Input the weighted feature data set into a two-layer deep belief network for model training to establish a battery swap cabinet abnormality recognition model;
[0011] The real-time voltage signal, real-time current signal and real-time temperature signal of the power swap cabinet are obtained, and the power swap cabinet abnormality identification is performed through the power swap cabinet abnormality identification model to obtain abnormality identification and classification results.
[0012] In a second aspect, the present application provides a safety monitoring system for the operating status of a power exchange cabinet, and the safety monitoring system for the operating status of a power exchange cabinet includes:
[0013] An acquisition module is used to collect historical operating status of the voltage signal, current signal and temperature signal of the power exchange cabinet to obtain a first voltage signal, a first current signal and a first temperature signal;
[0014] a cleaning module, configured to perform data cleaning and noise suppression on the first voltage signal, the first current signal and the first temperature signal respectively by using a filtering and denoising algorithm to obtain a second voltage signal, a second current signal and a second temperature signal;
[0015] a decomposition module, configured to perform multi-scale decomposition on the second voltage signal, the second current signal, and the second temperature signal respectively by using a double-enhanced sparse decomposition algorithm to obtain a plurality of first intrinsic mode components of the second voltage signal, a plurality of second intrinsic mode components of the second current signal, and a plurality of third intrinsic mode components of the second temperature signal;
[0016] An extraction module, configured to perform feature extraction and feature weight assignment on the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set;
[0017] A training module, used to input the weighted feature data set into a double-layer deep belief network for model training, and establish an abnormality recognition model for a battery swap cabinet;
[0018] The identification module is used to obtain the real-time voltage signal, real-time current signal and real-time temperature signal of the power swap cabinet, and perform abnormal identification of the power swap cabinet through the power swap cabinet abnormal identification model to obtain abnormal identification and classification results.
[0019] The third aspect of the present application provides a safety monitoring device for the operating status of a power swap cabinet, comprising: 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 safety monitoring device for the operating status of the power swap cabinet executes the above-mentioned safety monitoring method for the operating status of the power swap cabinet.
[0020] The fourth aspect of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computer, the computer executes the above-mentioned method for safely monitoring the operating status of a power exchange cabinet.
[0021] In the technical solution provided in this application, filtering and denoising algorithms are used to clean and suppress the voltage signal, current signal and temperature signal of the battery swap cabinet, which effectively improves the clarity and accuracy of the signal and reduces the noise interference in the data. The preprocessed signal is decomposed at multiple scales through a double-enhanced sparse decomposition algorithm to obtain multiple intrinsic mode components, which can carefully decompose the complex components in the signal, capture the weak features and detailed changes in the operating state of the battery swap cabinet, perform detailed feature extraction on each intrinsic mode component, calculate a variety of time domain and frequency domain features, and perform feature weight allocation to obtain a weighted feature data set. It can comprehensively reflect the key features in the operating state of the battery swap cabinet and improve the accuracy of fault identification. A two-layer deep belief network is used for model training and fault identification. Through layer-by-layer feature learning and training, a fault identification model with high accuracy and strong robustness is established, which can effectively identify and classify various abnormal conditions during the operation of the battery swap cabinet. By collecting the voltage, current and temperature signals of the power-swap cabinet in real time, and inputting these signals into the fault identification model after preprocessing, multi-scale decomposition and feature extraction, the real-time monitoring and dynamic response of the operating status of the power-swap cabinet are realized, and faults can be discovered and handled in a timely manner to improve the safety of the system. Due to the use of a variety of signal processing and deep learning technologies, the fault identification process has higher accuracy and reliability, which can effectively reduce false alarms and missed alarms, and ensure accurate monitoring of the operating status of the power-swap cabinet. 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 A schematic diagram of an embodiment of a method for safely monitoring the operating status of a power exchange cabinet in an embodiment of the present application;
[0024] Figure 2This is a schematic diagram of an embodiment of a safety monitoring system for the operating status of 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 safely monitoring the operating status of a battery exchange cabinet. 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 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 a method for safely monitoring the operating status of a power exchange cabinet in an embodiment of the present application includes:
[0027] Step S101, collecting historical operating status of the voltage signal, current signal and temperature signal of the power exchange cabinet to obtain a first voltage signal, a first current signal and a first temperature signal;
[0028] It is understandable that the execution subject of the present application can be a safety monitoring system for the operation status of the power exchange cabinet, or a terminal or a server, which is not limited here. The present application embodiment is described by taking the server as the execution subject as an example.
[0029] Specifically, appropriate sensors are installed inside and around the power exchange cabinet, including voltage sensors, current sensors, and temperature sensors. The voltage sensor is used to monitor the voltage changes inside the power exchange cabinet in real time, the current sensor is used to measure the current flow through the power exchange cabinet, and the temperature sensor is responsible for monitoring the temperature changes inside the power exchange cabinet and key components. The sensor performs preliminary processing on the data collected in real time through the data acquisition module. The data acquisition module usually contains a signal conditioning circuit for amplifying, filtering, and analog-to-digital conversion of the analog signal output by the sensor, and converting it into a digital signal. This process can effectively reduce noise and interference during signal transmission and ensure the accuracy and stability of the data. The converted digital signal is transmitted to the data storage device through the data bus for storage, which can be a local memory or a remote server. In order to ensure the continuity and integrity of data acquisition, a data acquisition frequency is set, and the sampling rate is set according to the monitoring requirements. For example, in the monitoring of rapidly changing voltage and current, the sampling rate may be set to several thousand hertz to tens of thousands of hertz, while the sampling rate of the temperature signal can be relatively low due to its slow change. The data acquisition module will continuously collect signals at the set sampling rate and record these data according to the timestamp to form a complete time series data. Finally, the first voltage signal, the first current signal and the first temperature signal of the power exchange cabinet are obtained.
[0030] Step S102, using a filtering and denoising algorithm to perform data cleaning and noise suppression on the first voltage signal, the first current signal and the first temperature signal, respectively, to obtain a second voltage signal, a second current signal and a second temperature signal;
[0031] Specifically, the first voltage signal is subjected to wavelet transform decomposition and threshold denoising. By selecting appropriate wavelet basis functions and decomposition layers, the voltage signal is decomposed into details and approximate parts of different frequency bands. Then, each decomposition layer is subjected to threshold denoising to eliminate noise components. The denoised signals of each layer are subjected to wavelet reconstruction to obtain a second voltage signal. At the same time, for the first current signal, a short-time Fourier transform is used to convert it into a time-frequency domain representation to obtain a time-frequency energy distribution image, which can more intuitively show the energy distribution of the current signal in time and frequency. According to the image features of the time-frequency energy distribution image, a median filter is performed to remove isolated noise points, and then an adaptive filter is used to more finely suppress noise and retain useful signals. The filtered time-frequency energy distribution image is returned to the time domain by an inverse Fourier transform to obtain a second current signal. The first temperature signal is subjected to differential processing to obtain a temperature change rate sequence, which can more sensitively reflect the temperature change trend. According to the statistical model of the temperature change rate sequence, a Gaussian filter is performed to smooth the random fluctuations in the sequence, and then a Kalman filter is performed to further improve the smoothness and accuracy of the signal. The filtered temperature change rate sequence is restored to the filtered temperature sequence through integration processing. The filtered temperature sequence is subjected to outlier replacement and interpolation processing to eliminate mutation points and missing values in the data to obtain a second temperature signal.
[0032] Step S103, using a double enhanced sparse decomposition algorithm to perform multi-scale decomposition on the second voltage signal, the second current signal, and the second temperature signal, respectively, to obtain a plurality of first intrinsic mode components of the second voltage signal, a plurality of second intrinsic mode components of the second current signal, and a plurality of third intrinsic mode components of the second temperature signal;
[0033] Specifically, the second voltage signal is decomposed by wavelet transform, and the voltage signal is decomposed into a sequence of voltage components of multiple scales by selecting appropriate wavelet basis functions and decomposition layers. According to the sequence of voltage components of multiple scales, a first overcomplete dictionary matrix is constructed, which contains a large number of basis functions and is used to describe the sparse characteristics of the signal. The first overcomplete dictionary matrix is processed by a column alternating soft threshold shrinkage operator to obtain a sparse coefficient matrix, which is processed by a column alternating soft threshold shrinkage operator so that the noise component of the signal is effectively suppressed while retaining the main features of the signal. According to the sparse coefficient matrix and the first overcomplete dictionary matrix, multiple first intrinsic mode components of the second voltage signal are reconstructed, and these mode components reflect the characteristic information of the signal at different scales. At the same time, for the second current signal, wavelet packet transform is used to decompose it and decompose it into a sequence of current components of multiple scales. According to the sequence of current components of multiple scales, a second overcomplete dictionary matrix is constructed, which also contains a large number of basis functions and is used to describe the sparse characteristics of the current signal. The second overcomplete dictionary matrix is subjected to row cyclic projection matching pursuit analysis to obtain a sparse representation matrix. Row-loop projection matching pursuit is an efficient sparse representation algorithm that iteratively selects the basis function that best represents the signal and updates the sparse representation matrix. Based on the sparse representation matrix and the second overcomplete dictionary matrix, multiple second intrinsic mode components of the second current signal are reconstructed. These modal components can better capture the local characteristics and change trends of the signal. For the second temperature signal, empirical mode decomposition is used to decompose it into multiple sequences of eigenfunction components. Empirical mode decomposition is an adaptive signal decomposition method that can decompose complex signals into several eigenfunction components, each of which represents an inherent mode of the signal. Based on multiple sequences of eigenfunction components, a third overcomplete dictionary matrix is constructed, which is used to describe the sparse characteristics of the temperature signal. Orthogonal matching pursuit analysis is performed on the third overcomplete dictionary matrix to obtain a sparse projection coefficient matrix. Orthogonal matching pursuit is an efficient sparse representation algorithm that gradually selects the basis function that best represents the signal and updates the sparse projection coefficient matrix, making the sparse representation of the signal more accurate. According to the sparse projection coefficient matrix and the third overcomplete dictionary matrix, multiple third eigenmode components of the second temperature signal are reconstructed, and these modal components can effectively describe the variation law and trend of the temperature signal.
[0034] The voltage component sequences of multiple scales are standardized to ensure that the voltage components of different scales are compared and processed under the same dimension. The standardization process is to obtain a normalized voltage component sequence by subtracting the mean of each voltage component sequence and dividing it by its standard deviation. According to the normalized voltage component sequence, the principal component vector set is extracted by the principal component analysis method. The principal component analysis method reduces the dimension of high-dimensional data to low-dimensional data through linear transformation and retains the main information of the data as much as possible. According to the principal component vector set, a basic dictionary matrix is constructed, and the basic dictionary matrix contains the main eigenvectors of the voltage signal. The basic dictionary matrix is subjected to singular value decomposition, and the basic dictionary matrix is decomposed into three parts: a left singular matrix, a singular value matrix, and a right singular matrix. These three parts represent the orthogonal basis, eigenvalues, and rotation relationship of the orthogonal basis of the matrix, respectively. Singular value decomposition is an important method in matrix decomposition, which can decompose the characteristic information of a complex matrix into a simple linear combination. According to the left singular matrix and the right singular matrix, a rotation matrix is constructed, and the basic dictionary matrix is subjected to rotation transformation to obtain a rotated dictionary matrix. The construction of the rotation matrix is to perform appropriate transformations on the left singular matrix and the right singular matrix so that the basic dictionary matrix can better represent the characteristics of the original signal after the rotation transformation. The dictionary matrix after the rotation transformation can enhance the representation ability of the dictionary matrix while retaining the original feature information. The rotated dictionary matrix is column normalized to ensure that the norm of each column vector is 1, and a normalized dictionary matrix is obtained. The normalization process is to ensure that each atom in the dictionary matrix has the same scale, so that atoms can be selected more fairly during sparse representation and avoid deviations caused by scale differences. According to the normalized dictionary matrix and a set of preset atomic dictionary matrices, dictionary splicing is performed to obtain the first overcomplete dictionary matrix. The preset atomic dictionary matrix contains some commonly used atomic vectors, which have good sparse representation capabilities in signal processing. Splicing the normalized dictionary matrix with the preset atomic dictionary matrix can further enhance the representation ability of the dictionary, so that the dictionary matrix can better adapt to the feature representation requirements of different signals.
[0035] The row vector norm of the sparse coefficient matrix is calculated to obtain the coefficient norm vector. The row vector norm calculation is to evaluate the size of each vector for subsequent sorting and screening. The coefficient norm vector is arranged in descending order according to its size to obtain the sorted coefficient index vector, and the coefficients that contribute most to the signal are identified to ensure that these important components are given priority during reconstruction. According to the sorted coefficient index vector, the corresponding atom dictionary is extracted from the first overcomplete dictionary matrix. The atom dictionary is linearly superimposed to obtain the first initial reconstruction component. The linear superposition operation uses the sparse coefficients to perform weighted summation on the atoms in the dictionary to form an initial signal reconstruction result. According to the first initial reconstruction component, the second voltage signal is residually calculated to obtain the first residual component, and the difference between the current reconstruction component and the actual signal is determined. Repeat the above steps to reconstruct the remaining initial reconstruction components and residual components in turn. This cyclic process gradually reduces the residual in the signal and improves the reconstruction accuracy. All residual components are accumulated to obtain the final residual component. The accumulation operation integrates all residual information and provides a basis for determining the accuracy of the reconstruction and the termination condition. The termination condition of the reconstructed component is determined according to the energy threshold of the final residual component. The energy threshold sets the accuracy standard of the reconstruction process, ensuring that important signal features are not missed during the reconstruction process, while avoiding the introduction of noise caused by over-reconstruction. All initial reconstructed components that meet the termination condition are output as multiple first intrinsic mode components of the second voltage signal.
[0036] Step S104, performing feature extraction and feature weight assignment on the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set;
[0037] Specifically, wavelet packet energy feature extraction is performed on multiple first intrinsic mode components to obtain a voltage feature vector set. Wavelet packet energy feature extraction captures the energy distribution characteristics of the signal in different frequency bands by calculating the energy of the wavelet packet coefficients of each frequency band. Dimensionality reduction analysis is performed on the voltage feature vector set, and redundant features are removed and feature dimensions are reduced by methods such as principal component analysis to obtain a voltage feature matrix after dimensionality reduction. At the same time, wavelet packet entropy feature extraction is performed on multiple second intrinsic mode components to obtain a current feature vector set. Wavelet packet entropy feature extraction reflects the complexity and uncertainty of the signal by calculating the entropy value after wavelet packet decomposition. Dimensionality reduction analysis is performed on the current feature vector set, and the feature space is simplified by methods such as principal component analysis to obtain a current feature matrix after dimensionality reduction. When processing temperature signals, empirical mode decomposition (EMD) energy feature extraction is performed on multiple third intrinsic mode components to obtain a temperature feature vector set. EMD energy feature extraction decomposes the signal into several intrinsic mode functions (IMFs) and calculates the energy of each IMF to capture the intrinsic characteristics of the temperature signal. The temperature feature vector set is mapped to an isometric method, which is a nonlinear dimensionality reduction method that can retain the geometric characteristics of high-dimensional data and obtain the temperature feature matrix after dimensionality reduction. The voltage feature matrix after dimensionality reduction, the current feature matrix after dimensionality reduction and the temperature feature matrix after dimensionality reduction are concatenated to obtain a feature fusion matrix. Matrix concatenation merges different types of feature matrices by columns or rows so that all features can be processed and analyzed in a unified matrix. The weight coefficient vector of each feature in the feature fusion matrix is calculated. The weight coefficient vector evaluates the importance of each feature to the final classification or prediction through methods such as information gain, entropy method or weighted regression, and assigns weights accordingly. According to the weight coefficient vector, the feature fusion matrix is weighted to obtain a weighted feature matrix. The weighted operation highlights the contribution of important features and weakens the influence of minor features by multiplying each feature by its corresponding weight. The weighted feature matrix is concatenated by row vectors to obtain a one-dimensional weighted feature vector set. Each row of the weighted feature matrix is concatenated into a one-dimensional vector so that all eigenvalues can be concentrated in one vector for subsequent processing and analysis. Output the one-dimensional weighted feature vector set as a weighted feature dataset.
[0038] Step S105: input the weighted feature data set into a double-layer deep belief network for model training to establish a battery swap cabinet abnormality recognition model;
[0039] Specifically, a weighted feature data set is sampled in small batches to obtain multiple small batch feature subsets. Small batch sampling randomly selects a certain number of data subsets to improve the efficiency and stability of training and reduce the gradient oscillation that may occur during training. Based on multiple small batch feature subsets, the visible units and hidden units of the first layer restricted Boltzmann machine (RBM) in the two-layer deep belief network are constructed. RBM is an unsupervised learning model whose visible units correspond to input data and hidden units are used to capture high-order features of the data. The first layer RBM is trained using the contrastive divergence algorithm to obtain the first layer weight matrix and bias vector. The contrastive divergence algorithm is a fast and effective method for training RBM. By minimizing the reconstruction error and adjusting the weight matrix and bias vector, the model can better capture the essential characteristics of the data. After obtaining the weight matrix of the first layer RBM, multiple small batch feature subsets are encoded according to the first layer weight matrix to obtain the first layer feature representation. The encoding process extracts higher-level feature representations by transforming the input data through the weight matrix of the first layer RBM. According to the first-layer feature representation, the visible units and hidden units of the second-layer RBM in the two-layer deep belief network are constructed. The second-layer RBM further extracts high-order features from the features extracted in the first layer to enhance the expressiveness of the model. The second-layer RBM is trained with the small-batch continuous contrastive divergence algorithm to obtain the second-layer weight matrix and bias vector. The small-batch continuous contrastive divergence algorithm is an improved contrastive divergence algorithm that makes the training process more stable and efficient by continuously updating the parameters of the model. After the training is completed, the first-layer feature representation is encoded according to the second-layer weight matrix to obtain the second-layer feature representation. The first-layer weight matrix, the first-layer bias vector, the second-layer weight matrix, and the second-layer bias vector are combined into the initial parameters of the two-layer deep belief network. These initial parameters provide a good starting point for the training of the supervised fine-tuning layer, ensuring that the model can converge quickly and achieve high performance. According to the second-layer feature representation, the input and output labels of the supervised fine-tuning layer are constructed. The supervised fine-tuning layer is a fully connected neural network layer used to map the extracted features to the target label to achieve the final classification task. The supervised fine-tuning layer is trained with a small batch gradient descent algorithm to obtain the classifier weight matrix and bias vector. Small batch gradient descent continuously updates the model parameters to minimize the prediction error and improve the classification performance of the model. The classifier weight matrix and bias vector are combined with the initial parameters to obtain the training parameters of the two-layer deep belief network, and the battery swap cabinet abnormality recognition model is established based on the training parameters.
[0040] Step S106: obtain the real-time voltage signal, real-time current signal and real-time temperature signal of the battery swap cabinet, and perform abnormal identification of the battery swap cabinet through the battery swap cabinet abnormal identification model to obtain abnormal identification and classification results.
[0041] Specifically, high-precision voltage sensors, current sensors and temperature sensors are installed at key parts of the power exchange cabinet to monitor the operating status of the power exchange cabinet in real time. The voltage sensor is used to detect the voltage changes of each circuit inside the power exchange cabinet, the current sensor is used to monitor the current flow, and the temperature sensor is responsible for monitoring the temperature changes inside the power exchange cabinet and its key components. The analog signals collected by these sensors are preliminarily processed by the data acquisition module. The data acquisition module contains a signal conditioning circuit for amplification, filtering and analog-to-digital conversion to convert analog signals into digital signals. The converted digital signals are transmitted to the data processing unit through a high-speed data bus for further processing and analysis. In the data processing unit, the real-time voltage signal, real-time current signal and real-time temperature signal are preprocessed, including denoising, filtering and normalization, to eliminate interference and outliers and ensure the quality and consistency of the data. The preprocessed signal is input into the trained power exchange cabinet abnormality recognition model for analysis. The model is based on the previously trained two-layer deep belief network, has powerful feature extraction and classification capabilities, and can accurately identify abnormal patterns in the signal. The model extracts features from the input real-time signal and extracts high-level feature representations through the first and second layers of restricted Boltzmann machines. These high-level features can effectively capture complex patterns and changing trends in the signal. The extracted features are classified and identified through the supervised fine-tuning layer. The model maps the input real-time signal to a predetermined classification label based on the weight matrix and bias vector learned in the previous training. The classification results output by the model include normal state and multiple abnormal states, such as abnormal voltage, abnormal current, and abnormal temperature. Each classification result is also accompanied by a corresponding confidence level, indicating the degree of certainty of the model for the classification result. These classification results are transmitted to the monitoring system in real time through the data interface for reference and decision-making by operation and maintenance personnel. At the same time, the anomaly recognition model can also continuously update and optimize its parameters through a continuous learning mechanism to adapt to emerging abnormal patterns and changing trends. This includes comparing the newly collected data with the prediction results of the model. If the prediction error is found to be large, these data are added to the training set of the model. The parameters of the model are updated through incremental training to improve its accuracy and robustness.
[0042] In the embodiment of the present application, filtering and denoising algorithms are used to clean and suppress the voltage signal, current signal and temperature signal of the battery swap cabinet, which effectively improves the clarity and accuracy of the signal and reduces the noise interference in the data. The preprocessed signal is decomposed at multiple scales through a double-enhanced sparse decomposition algorithm to obtain multiple intrinsic mode components, which can carefully decompose the complex components in the signal, capture the weak features and detailed changes in the operating state of the battery swap cabinet, perform detailed feature extraction on each intrinsic mode component, calculate a variety of time domain and frequency domain features, and perform feature weight assignment to obtain a weighted feature data set. It can comprehensively reflect the key features in the operating state of the battery swap cabinet and improve the accuracy of fault identification. A two-layer deep belief network is used for model training and fault identification. Through layer-by-layer feature learning and training, a fault identification model with high accuracy and strong robustness is established, which can effectively identify and classify various abnormal conditions during the operation of the battery swap cabinet. By collecting the voltage, current and temperature signals of the power-swap cabinet in real time, and inputting these signals into the fault identification model after preprocessing, multi-scale decomposition and feature extraction, the real-time monitoring and dynamic response of the operating status of the power-swap cabinet are realized, and faults can be discovered and handled in a timely manner to improve the safety of the system. Due to the use of a variety of signal processing and deep learning technologies, the fault identification process has higher accuracy and reliability, which can effectively reduce false alarms and missed alarms, and ensure accurate monitoring of the operating status of the power-swap cabinet.
[0043] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0044] (1) performing wavelet transform decomposition and threshold denoising on the first voltage signal to obtain a denoised voltage signal; performing wavelet reconstruction on the denoised voltage signal to obtain a second voltage signal;
[0045] (2) performing a short-time Fourier transform on the first current signal to obtain a time-frequency energy distribution image; performing median filtering and adaptive filtering according to image features of the time-frequency energy distribution image to obtain a filtered time-frequency energy distribution image; performing an inverse transform on the filtered time-frequency energy distribution image to obtain a second current signal;
[0046] (3) Performing differential processing on the first temperature signal to obtain a temperature change rate sequence; performing Gaussian filtering and Kalman filtering according to a statistical model of the temperature change rate sequence to obtain a filtered temperature change rate sequence; performing integration processing on the filtered temperature change rate sequence to obtain a filtered temperature sequence; performing outlier replacement and interpolation processing on the filtered temperature sequence to obtain a second temperature signal.
[0047] Specifically, the first voltage signal is decomposed by wavelet transform, and the voltage signal is decomposed into details and approximate parts of different frequency bands by selecting a suitable wavelet basis function (such as Daubechies wavelet) and the number of decomposition layers. The formula of wavelet transform is:
[0048] ;
[0049] in, represents the wavelet coefficients, is the original signal, is the wavelet basis function, and They are scale parameter and translation parameter respectively. Threshold denoising is performed on each layer after decomposition, a threshold is set, and coefficients smaller than the threshold are set to zero to eliminate noise. The signal after threshold denoising is reconstructed by wavelet formula:
[0050] ;
[0051] The denoised voltage signal is obtained, i.e., the second voltage signal. For the first current signal, short-time Fourier transform (STFT) is used for analysis to obtain a time-frequency energy distribution image. The formula of STFT is:
[0052] ;
[0053] in, is the input signal, is a window function, is the time displacement, is the frequency. STFT divides the signal into multiple small segments, performs Fourier transform on each segment, and obtains the representation in the time-frequency domain. After obtaining the time-frequency energy distribution image, median filtering and adaptive filtering are performed according to the characteristics of the image. Median filtering is used to remove isolated noise points, while adaptive filtering dynamically adjusts the filtering parameters according to the local characteristics of the image to enhance the smoothness of the signal. The filtered time-frequency energy distribution image is transformed back to the time domain through the inverse STFT to obtain the second current signal. The first temperature signal is differentially processed, the temperature change rate between consecutive time points is calculated, and Gaussian filtering and Kalman filtering are performed according to the statistical model. Gaussian filtering smoothes the data by weighted average, and the formula is:
[0054] ;
[0055] in, is the filtered temperature change rate, is the standard deviation. Kalman filtering optimizes the signal through recursive estimation, the formula is:
[0056] ;
[0057] in, is the state estimate, is the Kalman gain, is the measured value, is the observation matrix. The filtered temperature change rate sequence is processed by integration to obtain the filtered temperature sequence, the formula is:
[0058] ;
[0059] The filtered temperature sequence is subjected to outlier replacement and interpolation processing, the obviously abnormal values are replaced, and the missing data are filled by the interpolation method to obtain the second temperature signal.
[0060] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0061] (1) performing wavelet transform decomposition on the second voltage signal to obtain a voltage component sequence of multiple scales; constructing a first over-complete dictionary matrix based on the voltage component sequence of multiple scales; performing column-alternating soft threshold shrinkage operator processing on the first over-complete dictionary matrix to obtain a sparse coefficient matrix; reconstructing multiple first intrinsic mode components of the second voltage signal based on the sparse coefficient matrix and the first over-complete dictionary matrix;
[0062] (2) performing wavelet packet transform decomposition on the second current signal to obtain a current component sequence of multiple scales; constructing a second over-complete dictionary matrix based on the current component sequence of multiple scales; performing row cyclic projection matching pursuit analysis on the second over-complete dictionary matrix to obtain a sparse representation matrix; reconstructing multiple second intrinsic mode components of the second current signal based on the sparse representation matrix and the second over-complete dictionary matrix;
[0063] (3) Performing empirical mode decomposition on the second temperature signal to obtain multiple eigenfunction component sequences; constructing a third over-complete dictionary matrix based on the multiple eigenfunction component sequences; performing orthogonal matching pursuit analysis on the third over-complete dictionary matrix to obtain a sparse projection coefficient matrix; and reconstructing multiple third eigenmode components of the second temperature signal based on the sparse projection coefficient matrix and the third over-complete dictionary matrix.
[0064] Specifically, the second voltage signal is decomposed by wavelet transform, and the voltage signal is decomposed into voltage component sequences of multiple scales by selecting appropriate wavelet basis functions (such as Daubechies wavelet) and decomposition layers. Wavelet transform can decompose the signal into details and approximate parts of different frequency bands, thereby effectively extracting characteristic information from the signal. Based on these multiple-scale voltage component sequences, a first overcomplete dictionary matrix is constructed. The overcomplete dictionary matrix contains a large number of basis functions and can better represent the sparse characteristics of the signal. The dictionary matrix is processed by a column-alternating soft threshold shrinkage operator, and the formula is:
[0065] ;
[0066] in, is the matrix after soft threshold processing, is the threshold, and soft threshold processing can effectively remove noise and retain the sparse characteristics of the signal. According to the processed sparse coefficient matrix and the first over-complete dictionary matrix, multiple first intrinsic mode components of the second voltage signal are reconstructed. These modal components can effectively reflect the characteristics of the signal at different scales. The second current signal is decomposed by wavelet packet transform, and the current component sequence of multiple scales is obtained by decomposing the signal into details and approximate parts of different frequency bands. According to the current component sequence, the second over-complete dictionary matrix is constructed. The dictionary matrix is subjected to row cyclic projection matching pursuit analysis, and the formula is:
[0067] ;
[0068] in, is the original signal, is a dictionary matrix, is a sparse representation matrix, is noise. The row cyclic projection matching pursuit algorithm gradually selects the basis function that best represents the signal and updates the sparse representation matrix to make the sparse representation of the signal more accurate. According to the sparse representation matrix and the second over-complete dictionary matrix, multiple second intrinsic mode components of the second current signal are reconstructed. These modal components can capture the characteristic information of the signal in different frequency bands. For the second temperature signal, empirical mode decomposition is performed to decompose the signal into several intrinsic function components (IMF). EMD is an adaptive signal decomposition method that can decompose complex signals into several intrinsic mode functions, each of which represents an inherent mode of the signal. According to the sequence of eigenfunction components, the third over-complete dictionary matrix is constructed. The orthogonal matching pursuit analysis is performed on the dictionary matrix, and the formula is:
[0069] ;
[0070] in, It is The orthogonal matching pursuit algorithm gradually selects the basis function that best represents the signal and updates the sparse projection coefficient matrix for the sparse projection coefficients of the iterations, making the sparse representation of the signal more accurate. Based on the sparse projection coefficient matrix and the third overcomplete dictionary matrix, multiple third intrinsic mode components of the second temperature signal are reconstructed. These mode components can effectively describe the change law and trend of the temperature signal. For example, by analyzing the multiple intrinsic mode components of the second voltage signal, different sources of voltage fluctuations, such as power grid fluctuations and equipment failures, can be identified; by analyzing the multiple intrinsic mode components of the second current signal, abnormal conditions such as current overload and short circuit can be detected; by analyzing the multiple intrinsic mode components of the second temperature signal, the trend of temperature change can be monitored, and possible overheating faults can be warned in advance.
[0071] In a specific embodiment, the process of executing the step of constructing a first overcomplete dictionary matrix according to the voltage component sequences of multiple scales may specifically include the following steps:
[0072] (1) Standardizing the voltage component sequences of multiple scales to obtain a normalized voltage component sequence;
[0073] (2) Based on the normalized voltage component sequence, the principal component vector set is extracted by principal component analysis method;
[0074] (3) Based on the principal component vector set, a basic dictionary matrix is constructed, and singular value decomposition is performed on the basic dictionary matrix to obtain a left singular matrix, a singular value matrix, and a right singular matrix;
[0075] (4) Construct a rotation matrix based on the left singular matrix and the right singular matrix, and perform a rotation transformation on the basic dictionary matrix to obtain the rotated dictionary matrix;
[0076] (5) Perform column normalization on the rotated dictionary matrix to obtain a normalized dictionary matrix;
[0077] (6) Based on the normalized dictionary matrix and a set of preset atomic dictionary matrices, dictionary concatenation is performed to obtain the first overcomplete dictionary matrix.
[0078] Specifically, the voltage component sequences of multiple scales are standardized. The voltage component sequences of different scales are normalized so that they have the same mean and variance, thereby eliminating the impact of scale differences on subsequent processing and obtaining a normalized voltage component sequence. According to the normalized voltage component sequence, the principal component vector set is extracted by the principal component analysis method. Principal component analysis is a dimensionality reduction technique that projects the original high-dimensional data into a low-dimensional space by performing a linear transformation on the data while retaining the main information of the data as much as possible. The formula for principal component analysis is:
[0079] ;
[0080] in, is the original normalized voltage component sequence matrix, is a left singular matrix containing the set of principal component vectors, is a singular value matrix, containing the weights of each principal component, It is a right singular matrix, which contains the projection of the original data on the principal components. Through principal component analysis, the main feature vector set of the data is extracted. The basic dictionary matrix is constructed according to the principal component vector set. The basic dictionary matrix contains the principal component vectors, which can effectively represent the main features of the original data. The basic dictionary matrix is subjected to singular value decomposition, and the decomposition formula is as follows:
[0081] ;
[0082] in, is the base dictionary matrix, is a left singular matrix, is the singular value matrix, is a right singular matrix. The basic dictionary matrix can be decomposed into three parts by singular value decomposition, where the left singular matrix and the right singular matrix represent the orthogonal basis and the rotation relationship respectively. A rotation matrix is constructed according to the left singular matrix and the right singular matrix, and the basic dictionary matrix is rotated to obtain the rotated dictionary matrix. The rotation matrix is constructed by combining the left singular matrix and the right singular matrix, so that the basic dictionary matrix can better represent the feature information of the original data after the rotation transformation. The rotation transformation formula is:
[0083] ;
[0084] in, It is the rotated dictionary matrix. Through the rotation transformation, the dictionary matrix can more flexibly represent the change pattern of the data. The rotated dictionary matrix is column normalized to ensure that the norm of each column vector is 1, and a normalized dictionary matrix is obtained. The goal of column normalization is to make each dictionary atom have the same scale, so that atoms can be selected more fairly in the sparse representation process and avoid deviations caused by scale differences. Dictionary splicing is performed based on the normalized dictionary matrix and a set of preset atomic dictionary matrices to obtain the first overcomplete dictionary matrix. The preset atomic dictionary matrix contains some commonly used atomic vectors, which have good sparse representation capabilities in signal processing. Dictionary splicing enhances the representation capability of the dictionary by merging the normalized dictionary matrix with the preset atomic dictionary matrix, so that the dictionary matrix can better adapt to the feature representation requirements of different signals.
[0085] In a specific embodiment, the process of reconstructing a plurality of first intrinsic mode components of the second voltage signal according to the sparse coefficient matrix and the first overcomplete dictionary matrix may specifically include the following steps:
[0086] S1: Calculate the row vector norm of the sparse coefficient matrix to obtain the coefficient norm vector;
[0087] S2: Arrange the coefficient norm vector in descending order to obtain the sorted coefficient index vector;
[0088] S3: extracting the corresponding atom dictionary from the first overcomplete dictionary matrix according to the sorted coefficient index vector;
[0089] S4: perform linear superposition operation on the atomic dictionary to obtain the first initial reconstruction component;
[0090] S5: performing residual calculation on the second voltage signal according to the first initial reconstruction component to obtain a first residual component;
[0091] S6: Repeat steps S1 to S5 to sequentially reconstruct the remaining initial reconstruction components and residual components;
[0092] S7: perform accumulation operation on all residual components to obtain the final residual component;
[0093] S8: Determine the termination condition of the reconstructed component according to the energy threshold of the final residual component;
[0094] S9: Outputting all initial reconstructed components that meet the termination condition as multiple first intrinsic mode components of the second voltage signal.
[0095] Specifically, the row vector norm is calculated for the sparse coefficient matrix. The sparse coefficient matrix represents the sparse representation of each signal segment in the dictionary during the sparse coding process. The row vector norm is used to measure the size of each sparse coefficient vector. The formula for calculating the row vector norm is:
[0096] ;
[0097] in, The sparse coefficient matrix OK, It is Line The elements of the column, It is The bi-norm of the row vector. The coefficient norm vector is obtained by calculating the bi-norm of each row. The coefficient norm vector is arranged in descending order according to its size to obtain a sorted coefficient index vector. The purpose of sorting is to identify the sparse coefficients that contribute most to signal reconstruction, so as to give priority to using the dictionary atoms corresponding to these important coefficients for signal reconstruction. The sorted coefficient index vector indicates which rows in the sparse coefficient matrix have the largest norm, and the dictionary atoms corresponding to these rows will be used first. According to the sorted coefficient index vector, the corresponding atom dictionary is extracted from the first overcomplete dictionary matrix. The overcomplete dictionary matrix contains a large number of basis functions, which are used to represent the characteristics of the signal. The extracted atom dictionary contains the basis functions indicated by the sorted coefficient index vector, which are the most important when reconstructing the signal. The extracted atom dictionary is linearly superimposed to obtain the first initial reconstruction component. The linear superposition operation obtains the initial reconstruction component by weighted summing the corresponding coefficients in the sparse coefficient matrix with the atom dictionary. The formula for the linear superposition operation is:
[0098] ;
[0099] in, is the first initial reconstruction component, is the sparse coefficient, is the basis function in the atomic dictionary. According to the first initial reconstruction component, the second voltage signal is subjected to residual calculation to obtain the first residual component. The residual calculation is used to measure the difference between the initial reconstruction component and the original signal, and the formula is:
[0100] ;
[0101] in, is the first residual component, is the original signal, is the initial reconstruction component. Repeat the above steps to reconstruct the remaining initial reconstruction components and residual components in turn. Through iteration, the residual is gradually reduced to improve the accuracy of signal reconstruction. In each iteration, according to the current residual component, continue to extract important sparse coefficients and corresponding dictionary atoms, perform linear superposition operations, and calculate new initial reconstruction components and residual components. Accumulate all residual components to obtain the final residual component. According to the energy threshold of the final residual component, determine the termination condition of the reconstructed component. The energy threshold is used to determine whether the reconstruction process can be terminated. When the energy of the residual is lower than the preset threshold, it means that the signal has been fully reconstructed and the iteration can be terminated. All initial reconstruction components that meet the termination conditions are output as multiple first intrinsic mode components of the second voltage signal. These intrinsic mode components represent the characteristic information of the signal at different scales and can effectively capture the main mode and change trend of the signal.
[0102] In a specific embodiment, the process of executing step S104 may specifically include the following steps:
[0103] (1) Perform wavelet packet energy feature extraction on multiple first eigenmode components to obtain a voltage feature vector set, and perform dimensionality reduction analysis on the voltage feature vector set to obtain a voltage feature matrix after dimensionality reduction;
[0104] (2) Perform wavelet packet entropy feature extraction on multiple second eigenmode components to obtain a current feature vector set, and perform dimensionality reduction analysis on the current feature vector set to obtain a current feature matrix after dimensionality reduction;
[0105] (3) Performing empirical mode decomposition energy feature extraction on multiple third eigenmode components to obtain a temperature feature vector set, and performing isometric mapping on the temperature feature vector set to obtain a temperature feature matrix after dimensionality reduction;
[0106] (4) Concatenate the reduced-dimensional voltage feature matrix, the reduced-dimensional current feature matrix, and the reduced-dimensional temperature feature matrix to obtain a feature fusion matrix;
[0107] (5) Calculate the weight coefficient vector of each feature in the feature fusion matrix, and perform weighted operation on the feature fusion matrix according to the weight coefficient vector to obtain a weighted feature matrix;
[0108] (6) Perform row vector concatenation on the weighted feature matrix to obtain a one-dimensional weighted feature vector set, and output the one-dimensional weighted feature vector set as a weighted feature data set.
[0109] Specifically, wavelet packet energy feature extraction is performed on multiple first eigenmode components. Wavelet packet transform is a more fine-grained decomposition method that can decompose signals into details and approximate parts at different scales and frequency bands. By calculating the energy of the wavelet packet coefficients of each frequency band, the energy distribution characteristics of the signal in different frequency bands are captured. The formula is as follows:
[0110] ;
[0111] in, Indicates Tier The wavelet packet energy of each node is Represents the wavelet packet coefficient. In this way, the voltage feature vector set is obtained. The voltage feature vector set is subjected to dimensionality reduction analysis. Dimensionality reduction analysis can be achieved through the principal component analysis (PCA) method. PCA projects high-dimensional data into a low-dimensional space through linear transformation while retaining the main information of the data as much as possible. The formula of PCA is:
[0112] ;
[0113] in, is the original feature matrix, is a left singular matrix containing the principal components, is a singular value matrix, representing the weights of each principal component It is a right singular matrix, which represents the projection of the original data on the principal component. The voltage feature vector set is reduced in dimension by PCA to obtain the voltage feature matrix after dimensionality reduction. Wavelet packet entropy feature extraction is performed on multiple second eigenmode components. Wavelet packet entropy reflects the complexity and uncertainty of the signal by calculating the entropy value after wavelet packet decomposition. The formula of wavelet packet entropy is:
[0114] ;
[0115] in, Indicates Tier The wavelet packet entropy of nodes is It is Tier The probability distribution of the wavelet packet coefficients of the nodes. In this way, the current feature vector set is obtained. PCA is used to reduce the dimension of the current feature vector set to obtain the current feature matrix after dimensionality reduction. For multiple third intrinsic mode components, empirical mode decomposition (EMD) energy feature extraction is performed. EMD is an adaptive signal processing method that decomposes the signal into several intrinsic mode functions (IMFs), each of which represents an inherent mode of the signal. By calculating the energy of each IMF, the change characteristics of the temperature signal are captured. The formula is:
[0116] ;
[0117] in, Indicates The energy of an eigenmode function, It is The sample values of IMFs. In this way, the temperature feature vector set is obtained. The temperature feature vector set is reduced in dimension using the isometric mapping method. Isometric mapping is a nonlinear dimensionality reduction method that projects data into a low-dimensional space by maintaining the geometric relationship between points in a high-dimensional space. The reduced-dimensional temperature feature matrix is obtained by isometric mapping. The reduced-dimensional voltage feature matrix, the reduced-dimensional current feature matrix, and the reduced-dimensional temperature feature matrix are concatenated to obtain a feature fusion matrix. The feature fusion matrix combines different types of features to provide a comprehensive feature representation. Calculate the weight coefficient vector of each feature in the feature fusion matrix. The weight coefficient vector is used to measure the importance of each feature and can be calculated using methods such as information gain, entropy method, or weighted regression. According to the weight coefficient vector, the feature fusion matrix is weighted to obtain a weighted feature matrix. The formula for weighted operation is:
[0118] ;
[0119] in, is the weighted feature matrix, is the weight coefficient vector, is the feature fusion matrix, Represents element product. Through weighted operations, the contribution of important features is highlighted and the influence of minor features is weakened. Row vectors of the weighted feature matrix are concatenated to obtain a one-dimensional weighted feature vector set. Each row of the weighted feature matrix is concatenated into a one-dimensional vector so that all eigenvalues are concentrated in one vector for subsequent processing and analysis. The one-dimensional weighted feature vector set is output as a weighted feature data set.
[0120] In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0121] (1) Perform small batch sampling on the weighted feature data set to obtain multiple small batch feature subsets;
[0122] (2) Based on multiple mini-batch feature subsets, construct the visible units and hidden units of the first layer of the restricted Boltzmann machine in the two-layer deep belief network;
[0123] (3) Perform contrastive divergence algorithm training on the first layer restricted Boltzmann machine to obtain the first layer weight matrix and bias vector;
[0124] (4) According to the first-layer weight matrix, multiple small batch feature subsets are encoded to obtain the first-layer feature representation;
[0125] (5) Based on the first-layer feature representation, construct the visible units and hidden units of the second-layer restricted Boltzmann machine in the two-layer deep belief network;
[0126] (6) Perform small batch continuous contrast algorithm training on the second layer restricted Boltzmann machine to obtain the second layer weight matrix and bias vector;
[0127] (7) Encode the first layer feature representation according to the second layer weight matrix to obtain the second layer feature representation;
[0128] (8) Combining the first layer weight matrix, the first layer bias vector, the second layer weight matrix, and the second layer bias vector into the initial parameters of the two-layer deep belief network;
[0129] (9) Based on the second layer feature representation, construct the input and output labels of the supervised fine-tuning layer;
[0130] (10) Perform mini-batch gradient descent training on the supervised fine-tuning layer to obtain the classifier weight matrix and bias vector;
[0131] (11) The classifier weight matrix and bias vector are combined with the initial parameters to obtain the training parameters of the two-layer deep belief network, and a battery swap cabinet abnormality recognition model is established based on the training parameters.
[0132] Specifically, the weighted feature dataset is sampled in small batches to obtain multiple small batch feature subsets. Small batch sampling means dividing the dataset into several small batches and using a small batch of data for training each time to improve the efficiency and stability of training. Assume that the weighted feature dataset is , each mini-batch feature subset is . Based on multiple small batch feature subsets, the visible units and hidden units of the first layer of the restricted Boltzmann machine in the two-layer deep belief network are constructed. The visible units of the first layer of the restricted Boltzmann machine are the input data, that is, the small batch feature subsets , the hidden unit is calculated through the weight matrix and bias vector connected to the visible unit. The contrastive divergence algorithm is used to train the first layer of restricted Boltzmann machine to obtain the first layer weight matrix and bias vector. The contrastive divergence algorithm iteratively optimizes the parameters of RBM so that it can better reconstruct the input data. The energy function of RBM is:
[0133] ;
[0134] in, and are the states of visible and hidden units, respectively. and is the bias vector, is the weight matrix. By minimizing the contrast divergence, the weight matrix and the bias vector are updated to obtain the parameters of the first layer. According to the first layer weight matrix, multiple small batch feature subsets are encoded to obtain the first layer feature representation. The first layer feature representation is obtained by calculating the activation value of the hidden unit, and the formula is:
[0135] ;
[0136] in, is an activation function, usually a sigmoid function. According to the first-layer feature representation, the visible units and hidden units of the second-layer restricted Boltzmann machine in the two-layer deep belief network are constructed. The visible units of the second-layer restricted Boltzmann machine are the first-layer feature representation, and the hidden units are calculated through the weight matrix and bias vector connected to the visible units. The second-layer restricted Boltzmann machine is trained with a small batch continuous contrastive divergence algorithm to obtain the second-layer weight matrix and bias vector. The continuous contrastive divergence algorithm is an improved contrastive divergence algorithm that improves the stability and efficiency of training by continuously updating the parameters of the restricted Boltzmann machine in each iteration. According to the second-layer weight matrix, the first-layer feature representation is encoded to obtain the second-layer feature representation. The second-layer feature representation is obtained by calculating the activation value of the hidden unit, and the formula is similar to that of the first layer:
[0137] ;
[0138] The first layer weight matrix, the first layer bias vector, the second layer weight matrix, and the second layer bias vector are combined into the initial parameters of the two-layer deep belief network. These parameters provide a good starting point for the training of the supervised fine-tuning layer. According to the second layer feature representation, the input and output labels of the supervised fine-tuning layer are constructed. The supervised fine-tuning layer is a fully connected neural network layer used to map the extracted features to the target label to achieve the final classification task. The input of the supervised fine-tuning layer is the second layer feature representation, and the output is the corresponding label. The supervised fine-tuning layer is trained with a small batch gradient descent algorithm to obtain the classifier weight matrix and bias vector. The gradient descent algorithm updates the parameters of the model by minimizing the prediction error and improving the classification performance. The classifier weight matrix and bias vector are combined with the initial parameters to obtain the training parameters of the two-layer deep belief network. According to these training parameters, a battery swap cabinet abnormality recognition model is established. The model can accurately identify abnormal conditions in the operation of the battery swap cabinet and improve the safety and reliability of the equipment.
[0139] The above describes the safety monitoring method for the operating status of the power exchange cabinet in the embodiment of the present application. The following describes the safety monitoring system for the operating status of the power exchange cabinet in the embodiment of the present application. Figure 2In the embodiment of the present application, an embodiment of the safety monitoring system for the operation status of the power exchange cabinet includes:
[0140] The acquisition module 201 is used to collect the historical operation status of the voltage signal, current signal and temperature signal of the power exchange cabinet to obtain a first voltage signal, a first current signal and a first temperature signal;
[0141] A cleaning module 202, configured to perform data cleaning and noise suppression on the first voltage signal, the first current signal, and the first temperature signal by using filtering and denoising algorithms, respectively, to obtain a second voltage signal, a second current signal, and a second temperature signal;
[0142] A decomposition module 203 is used to perform multi-scale decomposition on the second voltage signal, the second current signal, and the second temperature signal respectively using a double-enhanced sparse decomposition algorithm to obtain a plurality of first intrinsic mode components of the second voltage signal, a plurality of second intrinsic mode components of the second current signal, and a plurality of third intrinsic mode components of the second temperature signal;
[0143] An extraction module 204 is used to perform feature extraction and feature weight assignment on the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set;
[0144] The training module 205 is used to input the weighted feature data set into the double-layer deep belief network for model training and establish a battery swap cabinet abnormality recognition model;
[0145] The identification module 206 is used to obtain the real-time voltage signal, real-time current signal and real-time temperature signal of the battery swap cabinet, and perform abnormal identification of the battery swap cabinet through the battery swap cabinet abnormal identification model to obtain abnormal identification and classification results.
[0146] Through the cooperation of the above components, the filtering and denoising algorithms are used to clean and suppress the voltage, current and temperature signals of the power-swap cabinet, which effectively improves the clarity and accuracy of the signal and reduces the noise interference in the data. The pre-processed signal is decomposed at multiple scales through the double-enhanced sparse decomposition algorithm to obtain multiple intrinsic mode components, which can carefully decompose the complex components in the signal, capture the weak features and detailed changes in the operation state of the power-swap cabinet, extract the features of each intrinsic mode component in detail, calculate a variety of time domain and frequency domain features, and assign feature weights to obtain a weighted feature data set. It can fully reflect the key features in the operation state of the power-swap cabinet and improve the accuracy of fault identification. A two-layer deep belief network is used for model training and fault identification. Through layer-by-layer feature learning and training, a fault identification model with high accuracy and strong robustness is established, which can effectively identify and classify various abnormal conditions in the operation of the power-swap cabinet. By collecting the voltage, current and temperature signals of the power-swap cabinet in real time, and inputting these signals into the fault identification model after preprocessing, multi-scale decomposition and feature extraction, the real-time monitoring and dynamic response of the operating status of the power-swap cabinet are realized, and faults can be discovered and handled in a timely manner to improve the safety of the system. Due to the use of a variety of signal processing and deep learning technologies, the fault identification process has higher accuracy and reliability, which can effectively reduce false alarms and missed alarms, and ensure accurate monitoring of the operating status of the power-swap cabinet.
[0147] The present application also provides a safety monitoring device for the operating status of 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 safety monitoring method for the operating status of the power swap cabinet in the above-mentioned embodiments.
[0148] 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 safely monitoring the operating status of the power exchange cabinet.
[0149] 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.
[0150] 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.
[0151] 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 safely monitoring the operating status of a power exchange cabinet, characterized in that: The method for safely monitoring the operating status of the power exchange cabinet includes: Collect historical operating status of the voltage signal, current signal and temperature signal of the power exchange cabinet to obtain a first voltage signal, a first current signal and a first temperature signal; Using filtering and denoising algorithms to perform data cleaning and noise suppression on the first voltage signal, the first current signal and the first temperature signal respectively, to obtain a second voltage signal, a second current signal and a second temperature signal; A double-enhanced sparse decomposition algorithm is used to perform multi-scale decomposition on the second voltage signal, the second current signal and the second temperature signal, respectively, to obtain multiple first intrinsic mode components of the second voltage signal, multiple second intrinsic mode components of the second current signal and multiple third intrinsic mode components of the second temperature signal; specifically comprising: performing wavelet transform decomposition on the second voltage signal to obtain a voltage component sequence of multiple scales; constructing a first over-complete dictionary matrix according to the voltage component sequence of multiple scales; performing column alternating soft threshold shrinkage operator processing on the first over-complete dictionary matrix to obtain a sparse coefficient matrix; reconstructing multiple first intrinsic mode components of the second voltage signal according to the sparse coefficient matrix and the first over-complete dictionary matrix; performing wavelet transform on the second current signal to obtain a voltage component sequence of multiple scales; constructing a first over-complete dictionary matrix according to the voltage component sequence of multiple scales; performing column alternating soft threshold shrinkage operator processing on the first over-complete dictionary matrix to obtain a sparse coefficient ... Decomposing the second temperature signal by wave packet transform to obtain a sequence of current components of multiple scales; constructing a second overcomplete dictionary matrix according to the sequence of current components of multiple scales; performing row cyclic projection matching pursuit analysis on the second overcomplete dictionary matrix to obtain a sparse representation matrix; reconstructing a plurality of second intrinsic mode components of the second current signal according to the sparse representation matrix and the second overcomplete dictionary matrix; performing empirical mode decomposition on the second temperature signal to obtain a plurality of sequences of intrinsic function components; constructing a third overcomplete dictionary matrix according to the plurality of sequences of intrinsic function components; performing orthogonal matching pursuit analysis on the third overcomplete dictionary matrix to obtain a sparse projection coefficient matrix; reconstructing a plurality of third intrinsic mode components of the second temperature signal according to the sparse projection coefficient matrix and the third overcomplete dictionary matrix; Performing feature extraction and feature weight assignment on the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set; Input the weighted feature data set into a two-layer deep belief network for model training to establish a battery swap cabinet abnormality recognition model; The real-time voltage signal, real-time current signal and real-time temperature signal of the power swap cabinet are obtained, and the power swap cabinet abnormality identification is performed through the power swap cabinet abnormality identification model to obtain abnormality identification and classification results.
2. The method for safely monitoring the operating status of a power exchange cabinet according to claim 1 is characterized in that: The adopting of filtering and denoising algorithms to perform data cleaning and noise suppression on the first voltage signal, the first current signal and the first temperature signal respectively to obtain a second voltage signal, a second current signal and a second temperature signal comprises: Performing wavelet transform decomposition and threshold denoising on the first voltage signal to obtain a denoised voltage signal; performing wavelet reconstruction on the denoised voltage signal to obtain a second voltage signal; Performing short-time Fourier transform on the first current signal to obtain a time-frequency energy distribution image; performing median filtering and adaptive filtering according to image features of the time-frequency energy distribution image to obtain a filtered time-frequency energy distribution image; performing inverse transform on the filtered time-frequency energy distribution image to obtain a second current signal; The first temperature signal is differentially processed to obtain a temperature change rate sequence; Gaussian filtering and Kalman filtering are performed according to the statistical model of the temperature change rate sequence to obtain a filtered temperature change rate sequence; integration processing is performed on the filtered temperature change rate sequence to obtain a filtered temperature sequence; outlier replacement and interpolation processing are performed on the filtered temperature sequence to obtain a second temperature signal.
3. The method for safely monitoring the operating status of a power exchange cabinet according to claim 1 is characterized in that: The step of constructing a first overcomplete dictionary matrix according to the voltage component sequences of the multiple scales includes: Standardizing the voltage component sequences of the multiple scales to obtain a normalized voltage component sequence; Extracting a principal component vector set by a principal component analysis method according to the normalized voltage component sequence; According to the principal component vector set, a basic dictionary matrix is constructed, and a singular value decomposition is performed on the basic dictionary matrix to obtain a left singular matrix, a singular value matrix, and a right singular matrix; Constructing a rotation matrix according to the left singular matrix and the right singular matrix, and performing a rotation transformation on the basic dictionary matrix to obtain a rotated dictionary matrix; Performing column normalization processing on the rotated dictionary matrix to obtain a normalized dictionary matrix; Dictionary concatenation is performed according to the normalized dictionary matrix and a set of preset atomic dictionary matrices to obtain a first overcomplete dictionary matrix.
4. The method for safely monitoring the operating status of a power exchange cabinet according to claim 1, characterized in that: The reconstructing a plurality of first intrinsic mode components of the second voltage signal according to the sparse coefficient matrix and the first overcomplete dictionary matrix comprises: S1: Calculate the row vector norm of the sparse coefficient matrix to obtain a coefficient norm vector; S2: Arrange the coefficient norm vectors in descending order to obtain a sorted coefficient index vector; S3: extracting a corresponding atom dictionary from the first overcomplete dictionary matrix according to the sorted coefficient index vector; S4: performing a linear superposition operation on the atomic dictionary to obtain a first initial reconstruction component; S5: performing residual calculation on the second voltage signal according to the first initial reconstruction component to obtain a first residual component; S6: Repeat steps S1 to S5 to sequentially reconstruct the remaining initial reconstruction components and residual components; S7: perform accumulation operation on all residual components to obtain the final residual component; S8: Determine a termination condition of the reconstructed component according to the energy threshold of the final residual component; S9: Outputting all initial reconstructed components that meet the termination condition as multiple first intrinsic mode components of the second voltage signal.
5. The method for safely monitoring the operating status of a power exchange cabinet according to claim 1, characterized in that: The extracting features and assigning feature weights to the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set includes: Performing wavelet packet energy feature extraction on the plurality of first eigenmode components to obtain a voltage feature vector set, and performing dimensionality reduction analysis on the voltage feature vector set to obtain a voltage feature matrix after dimensionality reduction; Performing wavelet packet entropy feature extraction on the plurality of second eigenmode components to obtain a current feature vector set, and performing dimensionality reduction analysis on the current feature vector set to obtain a current feature matrix after dimensionality reduction; Performing empirical mode decomposition energy feature extraction on the multiple third eigenmode components to obtain a temperature feature vector set, and performing isometric mapping on the temperature feature vector set to obtain a temperature feature matrix after dimensionality reduction; Performing matrix concatenation on the voltage feature matrix after dimensionality reduction, the current feature matrix after dimensionality reduction, and the temperature feature matrix after dimensionality reduction to obtain a feature fusion matrix; Calculating a weight coefficient vector of each feature in the feature fusion matrix, and performing a weighted operation on the feature fusion matrix according to the weight coefficient vector to obtain a weighted feature matrix; The weighted feature matrix is subjected to row vector concatenation to obtain a one-dimensional weighted feature vector set, and the one-dimensional weighted feature vector set is output as the weighted feature data set.
6. The method for safely monitoring the operating status of a power exchange cabinet according to claim 1, characterized in that: The step of inputting the weighted feature data set into a double-layer deep belief network for model training and establishing a battery swap cabinet abnormality recognition model includes: Performing small batch sampling on the weighted feature data set to obtain multiple small batch feature subsets; Constructing visible units and hidden units of a first layer of restricted Boltzmann machines in the two-layer deep belief network according to the multiple small batch feature subsets; Performing contrastive divergence algorithm training on the first layer restricted Boltzmann machine to obtain a first layer weight matrix and a bias vector; Encoding the plurality of mini-batch feature subsets according to the first-layer weight matrix to obtain a first-layer feature representation; Constructing visible units and hidden units of a second layer restricted Boltzmann machine in the two-layer deep belief network according to the first layer feature representation; Performing small batch continuous contrast algorithm training on the second layer restricted Boltzmann machine to obtain a second layer weight matrix and bias vector; Encoding the first layer feature representation according to the second layer weight matrix to obtain a second layer feature representation; Combining the first layer weight matrix, the first layer bias vector, the second layer weight matrix and the second layer bias vector into initial parameters of the two-layer deep belief network; Based on the second layer feature representation, construct the input and output labels of the supervised fine-tuning layer; Performing a small batch gradient descent algorithm training on the supervised fine-tuning layer to obtain a classifier weight matrix and a bias vector; The classifier weight matrix and bias vector are combined with the initial parameters to obtain the training parameters of the double-layer deep belief network, and a battery swap cabinet abnormality recognition model is established based on the training parameters.
7. A safety monitoring system for the operating status of a power exchange cabinet, used to execute the safety monitoring method for the operating status of a power exchange cabinet as claimed in claim 1, characterized in that: The safety monitoring system for the operation status of the power exchange cabinet includes: An acquisition module is used to collect historical operating status of the voltage signal, current signal and temperature signal of the power exchange cabinet to obtain a first voltage signal, a first current signal and a first temperature signal; a cleaning module, configured to perform data cleaning and noise suppression on the first voltage signal, the first current signal and the first temperature signal respectively by using a filtering and denoising algorithm to obtain a second voltage signal, a second current signal and a second temperature signal; a decomposition module, for performing multi-scale decomposition on the second voltage signal, the second current signal and the second temperature signal respectively by using a double-enhanced sparse decomposition algorithm to obtain a plurality of first intrinsic mode components of the second voltage signal, a plurality of second intrinsic mode components of the second current signal and a plurality of third intrinsic mode components of the second temperature signal; specifically comprising: performing wavelet transform decomposition on the second voltage signal to obtain a voltage component sequence of multiple scales; constructing a first over-complete dictionary matrix according to the voltage component sequence of multiple scales; performing column-alternating soft threshold shrinkage operator processing on the first over-complete dictionary matrix to obtain a sparse coefficient matrix; reconstructing a plurality of first intrinsic mode components of the second voltage signal according to the sparse coefficient matrix and the first over-complete dictionary matrix; and reconstructing a plurality of first intrinsic mode components of the second current signal according to the sparse coefficient matrix. The signal is decomposed by wavelet packet transform to obtain a current component sequence of multiple scales; a second over-complete dictionary matrix is constructed according to the current component sequence of multiple scales; a row cyclic projection matching pursuit analysis is performed on the second over-complete dictionary matrix to obtain a sparse representation matrix; a plurality of second intrinsic mode components of the second current signal are reconstructed according to the sparse representation matrix and the second over-complete dictionary matrix; an empirical mode decomposition is performed on the second temperature signal to obtain a plurality of eigenfunction component sequences; a third over-complete dictionary matrix is constructed according to the plurality of eigenfunction component sequences; an orthogonal matching pursuit analysis is performed on the third over-complete dictionary matrix to obtain a sparse projection coefficient matrix; a plurality of third intrinsic mode components of the second temperature signal are reconstructed according to the sparse projection coefficient matrix and the third over-complete dictionary matrix; An extraction module, configured to perform feature extraction and feature weight assignment on the plurality of first eigenmode components, the plurality of second eigenmode components, and the plurality of third eigenmode components to obtain a weighted feature data set; A training module, used to input the weighted feature data set into a double-layer deep belief network for model training, and establish an abnormality recognition model for a battery swap cabinet; The identification module is used to obtain the real-time voltage signal, real-time current signal and real-time temperature signal of the power swap cabinet, and perform abnormal identification of the power swap cabinet through the power swap cabinet abnormal identification model to obtain abnormal identification and classification results.
8. A safety monitoring device for the operating status of a power exchange cabinet, characterized in that: The safety monitoring device for the operation status 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 safety monitoring device for the operating status of the power swap cabinet executes the safety monitoring method for the operating status of the power swap cabinet as described in any one of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, a method for safely monitoring the operating status of a power exchange cabinet as described in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Abnormal signal identification method and system of electric control cabinet
CN121682637A
An abnormal signal identification method and system for an electric control cabinet
CN121682637B
