A method and system for intelligent diagnosis of energy storage equipment fault status
The voltage data of energy storage equipment is analyzed through wavelet decomposition and clustering technology, and the number of neighbors of the SOS algorithm is adaptively adjusted to solve the problem of low detection accuracy in traditional methods and achieve more accurate fault detection.
Patent Information
- Application Number
- CN202410798755.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-20
AI Technical Summary
When the traditional SOS algorithm detects energy storage equipment faults, the fixed number of neighbors cannot specifically reflect the randomness, volatility, and intermittency of distributed power sources, resulting in low anomaly detection accuracy.
By obtaining the input and output voltage data sequences of energy storage devices, use wavelet decomposition and clustering to divide them into time clusters, construct a hierarchical aliasing matrix within the cluster, analyze the envelope gradient, and adaptively adjust the number of neighbors to improve detection. Accuracy.
It improves the accuracy of energy storage equipment fault detection, avoids noise misjudgments and local information neglect caused by a fixed number of neighbors, and enhances the ability to identify abnormalities.
Smart Images

Figure CN118362820B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric energy fault diagnosis, and in particular to an intelligent diagnosis method and system for a fault state of an energy storage device. Background Art
[0002] With the large-scale integration of clean energy into the power grid, such as wind power, photovoltaic power generation and tidal power generation, the distribution network has higher and higher requirements for power quality and voltage stability. However, clean energy generation has the characteristics of randomness, volatility and intermittency, which has a certain impact on the access of distributed power generation to the power grid. In order to ensure the high quality conditions of the distribution network voltage, the energy storage equipment of the distributed power source must stably output a fixed voltage signal under any working conditions, which puts higher requirements on the high-quality operation of the energy storage equipment.
[0003] Therefore, it is necessary to detect operational faults for energy storage equipment. The traditional Stochastic Outlier Selection (SOS) algorithm is a statistical anomaly detection algorithm that is widely used due to its high flexibility and real-time performance. However, the traditional SOS algorithm usually uses a fixed number of nearest neighbors. However, due to the randomness, volatility and intermittency of distributed power generation, the use of a fixed number of nearest neighbors cannot specifically reflect the local relative density of energy storage equipment data, resulting in low anomaly detection accuracy. Summary of the invention
[0004] In order to solve the technical problem of low detection accuracy caused by randomness, the present invention provides an intelligent diagnosis method and system for the fault state of energy storage equipment. The technical solution adopted is as follows:
[0005] In a first aspect, the present invention provides an intelligent diagnosis method for a fault state of an energy storage device, the method comprising the following steps:
[0006] Obtaining voltage data sequences at the input and output ends;
[0007] The voltage data sequence of the input end is divided into time windows of preset size, and an input window voltage sequence is obtained for each time window; the input window voltage sequence is clustered into a number of time clusters, each time cluster corresponds to an input time cluster voltage sequence, and the input time cluster voltage sequence is decomposed by wavelet to obtain a number of wavelet coefficient sequences; the hierarchical highlight coefficient of the wavelet coefficient sequence is obtained according to the wavelet coefficient value of each data point in the wavelet coefficient sequence and the mean and standard deviation of the wavelet coefficient value after removing the data point; the wavelet hierarchical disorder coefficient of the wavelet coefficient sequence is obtained according to the hierarchical highlight coefficient of the wavelet coefficient sequence and the information entropy of the wavelet coefficient sequence;
[0008] Construct an intra-cluster hierarchical aliasing matrix based on the wavelet hierarchical disorder coefficients of all wavelet coefficient sequences in the time cluster; perform nonlinear fitting on the input time cluster voltage sequence, and obtain the upper envelope variation coefficient and the lower envelope variation coefficient based on the voltage difference and time difference of the extreme points of the fitting curve; obtain the envelope variation deviation coefficient of the input time cluster voltage sequence of each time cluster in the time window based on the upper envelope variation coefficient, the lower envelope variation coefficient and the intra-cluster hierarchical aliasing matrix;
[0009] The envelope variation deviation coefficient of the voltage sequence corresponding to the output end time cluster is obtained by using the calculation method of the envelope variation deviation coefficient of the input time cluster voltage sequence; the double-end fault diagnosis coefficient of the output end time window is obtained according to the envelope variation deviation coefficients of the input end and the output end and the voltage of the output end; the minimum value of the double-end fault diagnosis coefficient and the preset constant is used as the adaptive neighbor number;
[0010] The outlier rate is obtained according to the adaptive neighbor number and the output window voltage sequence, and fault detection is completed according to the outlier rate.
[0011] Preferably, the input window voltage sequence is clustered into a plurality of time clusters, each time cluster corresponds to an input time cluster voltage sequence, and a method for obtaining a plurality of wavelet coefficient sequences by using wavelet decomposition for the input time cluster voltage sequence is:
[0012] The input window voltage sequence of the time window is divided into several time clusters using the DTC time series clustering model. The voltage value corresponding to the time of each time cluster constitutes an input time cluster voltage sequence.
[0013] For each input time cluster voltage sequence, wavelet decomposition is performed using a preset wavelet decomposition layer number to obtain a wavelet coefficient sequence with the preset wavelet decomposition layer number plus one, wherein the wavelet basis of the wavelet decomposition is sym2.
[0014] Preferably, the method for obtaining the hierarchical salient coefficient of the wavelet coefficient sequence according to the wavelet coefficient value of each data point in the wavelet coefficient sequence and the mean and standard deviation of the wavelet coefficient value after removing the data point is:
[0015] For any data point of each wavelet coefficient sequence, it is recorded as the target data point. The mean and standard deviation of the wavelet coefficient values of all the remaining data points in the wavelet coefficient sequence after removing the target data point are calculated. The difference between the wavelet coefficient value of the target data point and the mean is calculated and recorded as the first wavelet difference. The absolute value of the ratio of the first wavelet difference to the standard deviation is taken as the first wavelet absolute value of the target data point. The cumulative sum of the first wavelet absolute values of all data points in the wavelet coefficient sequence is taken as the hierarchical highlight coefficient of the wavelet coefficient sequence.
[0016] Preferably, the method for obtaining the wavelet level disorder coefficient of the wavelet coefficient sequence according to the level highlight coefficient of the wavelet coefficient sequence and the information entropy of the wavelet coefficient sequence is:
[0017]
[0018] In the formula, Represents the hierarchical highlight coefficient of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window, represents the wavelet coefficient sequence of the jth layer of the input time cluster voltage sequence in the mth time cluster within the time window, represents the information entropy function, It represents the wavelet level disorder coefficient of the j-th wavelet coefficient sequence of the m-th time cluster in the time window, and j represents the j-th wavelet decomposition level.
[0019] Preferably, the method for constructing the intra-cluster hierarchical aliasing matrix according to the wavelet hierarchical disorder coefficients of all wavelet coefficient sequences in the time cluster is:
[0020] Each wavelet coefficient sequence is recorded as a target wavelet coefficient sequence, the target wavelet coefficient sequence and the wavelet level disorder coefficient of each wavelet coefficient sequence are subtracted, the absolute value of the difference is calculated using a preset exponential function to obtain a first index, and the product of the first index and the mean of all wavelet coefficient values in the target wavelet coefficient sequence is used as the intra-cluster level aliasing factor of the target wavelet coefficient sequence and each wavelet coefficient sequence;
[0021] The intra-cluster level aliasing factors are used as elements of the intra-cluster level aliasing matrix to construct the intra-cluster level aliasing matrix, where the intra-cluster level aliasing factors of the wavelet coefficient sequence with the lowest frequency are the first row, and the intra-cluster level aliasing factors of the wavelet coefficient sequence with the highest frequency are the last row.
[0022] Preferably, the method for obtaining the upper envelope variation coefficient and the lower envelope variation coefficient according to the voltage difference and time difference of the extreme points of the fitting curve is:
[0023] The maximum and minimum values of the fitting curve are numbered starting from 1, and the maximum and minimum values with the same sequence number in the fitting curve are recorded as a tuple; all the maximum values are connected to obtain the upper extreme value line, and all the minimum values are connected to obtain the lower extreme value line;
[0024] For the upper extreme value line, any maximum value is recorded as the target maximum value, the difference in voltage between the target maximum value and the next maximum value is recorded as the first voltage difference, the time interval between the target maximum value and the next maximum value is recorded as the first time interval, the ratio of the first voltage difference and the first time interval is recorded as the first ratio, and the first ratio is calculated using a preset exponential function to obtain the upper envelope variation coefficient; the lower extreme value line is processed using the method for obtaining the upper envelope variation coefficient to obtain the lower envelope variation coefficient.
[0025] Preferably, the method of obtaining the envelope variation deviation coefficient of the input time cluster voltage sequence of each time cluster in the time window according to the upper envelope variation coefficient, the lower envelope variation coefficient and the intra-cluster hierarchical aliasing matrix is:
[0026]
[0027] In the formula, represents the vth upper envelope variation coefficient of the mth time cluster in the time window, represents the vth lower envelope variation coefficient of the mth time cluster in the time window, represents the number of tuples of the mth time cluster in the time window, represents the intra-cluster level aliasing matrix corresponding to the mth time cluster in the time window, represents the F-norm, Represents the envelope variation deviation coefficient of the input time cluster voltage sequence of the mth time cluster within the time window.
[0028] Preferably, the method for obtaining the double-terminal fault diagnosis coefficient of the output end time window according to the envelope variation deviation coefficient of the input end and the output end and the voltage of the output end is:
[0029]
[0030] In the formula, It represents the output envelope variation deviation coefficient of the mth time cluster in the time window, It represents the input envelope variation deviation coefficient of the mth time cluster at the output end within the time window, represents the mean value of all voltage values of the mth time cluster in the time window at the output end, Indicates the output The mean of all voltage values in a time window, Indicates the output terminal The number of time clusters divided by time windows, Indicates The double-terminal fault diagnosis coefficient of a time window.
[0031] Preferably, the method for obtaining the outlier rate according to the adaptive neighbor number and the output window voltage sequence is:
[0032] The SOS algorithm is used to detect outliers on the voltage signal at the output end and output the outlier score at each sampling moment. The input of the SOS algorithm is the output window voltage sequence and the adaptive neighbor number within the time window.
[0033] The ratio of the number of sampling moments with outlier scores greater than a preset outlier threshold to the number of all sampling moments in the time window is taken as the outlier rate of the time window.
[0034] In a second aspect, an embodiment of the present invention further provides an intelligent diagnosis system for fault states of energy storage devices, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the steps of any one of the above-mentioned intelligent diagnosis methods for fault states of energy storage devices are implemented.
[0035] The present invention has the following beneficial effects: the present invention constructs a cluster-internal hierarchical aliasing matrix by performing wavelet decomposition on the voltage signals at the input and output ends of the energy storage device, and constructs upper and lower envelopes for the voltage signal, analyzes the envelope variation to obtain the envelope variation deviation coefficient, combines the voltage distribution at the input and output ends to obtain the double-end fault diagnosis coefficient, and finally adaptively adjusts the number of neighbors of the SOS algorithm. Compared with the traditional SOS algorithm, the present invention solves the problem that a fixed number of neighbors may cause the model to be overly sensitive to local noise and cause noise misjudgment, or that an excessively large number of neighbors may lead to the inability to accurately identify abnormalities of the energy storage device by measuring more global information, making the SOS algorithm detection process more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flow chart of an intelligent diagnosis method for energy storage device fault status provided by one embodiment of the present invention;
[0038] Figure 2 A flowchart of an implementation method for intelligent diagnosis of energy storage device fault status provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of an intelligent diagnosis method and system for the fault state of an energy storage device proposed by the present invention, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0040] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0041] An intelligent diagnosis method and system embodiment of energy storage device fault status:
[0042] The specific scheme of the intelligent diagnosis method and system for energy storage device fault status provided by the present invention is described in detail below with reference to the accompanying drawings.
[0043] See also Figure 1 , which shows a flow chart of an intelligent diagnosis method for energy storage device fault status provided by an embodiment of the present invention, the method comprising the following steps:
[0044] Step S001, obtaining voltage data sequences of the input end and the output end.
[0045] The clean energy power generation system mainly consists of two parts, namely distributed power supply and energy storage equipment. Distributed power supply refers to the power generation equipment of clean renewable energy, and energy storage equipment mainly connects the energy storage of distributed power supply to the distribution network to realize energy transmission. This embodiment takes wind power generation deployed in the mountains as an example. Since wind power generation is uncertain, the wind force, wind speed and wind direction are uncertain, so the generated electricity will also have a certain degree of randomness, which is more likely to cause failure of energy storage equipment. Therefore, it is necessary to perform fault detection based on the operating data of the energy storage equipment. The specific process of fault detection is as follows: Figure 2 shown.
[0046] The input end of the energy storage device is connected to the electric energy output of the wind power generation, and the efficiency of wind power generation is related to wind energy; the output end is connected to the distribution network equipment; voltage sensors are placed at the input end and output end of the energy storage device to collect the voltage signals of the input end and the output end. In order to accurately obtain the operating status of the energy storage device, this embodiment sets the sampling interval to continuously obtain the working status of the energy storage device, and sets the sampling interval to 1ms, based on which the voltage data sequence of the input end and the output end is obtained.
[0047] At this point, the voltage data sequences of the input and output terminals are acquired.
[0048] Step S002, divide the voltage data sequence of the input end, cluster the divided time windows into time clusters, obtain the wavelet coefficient sequence of the time cluster voltage sequence, obtain the level highlighting coefficient according to the wavelet coefficient value of the data point in the wavelet coefficient sequence, and obtain the wavelet level disorder coefficient according to the level highlighting coefficient.
[0049] The voltage signal at the input end of the energy storage device is related to the power output of wind power generation, which is related to the change of wind speed and the turbine. Therefore, there is a certain fluctuation in the voltage and frequency of the input voltage signal, so the input voltage signal is an AC signal. The voltage signal at the output end is directly output by the energy storage device, so the output voltage signal is a DC signal. The output voltage signal is transmitted to a suitable distribution network through a rectifier and a transformer for energy transmission.
[0050] Since the wind speed is random, the voltage signal at the input end will fluctuate at any time, which will affect the energy conversion of the energy storage device and cause the voltage signal at the output end to fluctuate slightly. Therefore, it is necessary to adjust the parameters of the SOS algorithm for the voltage signal of the energy storage device. In the SOS anomaly detection algorithm, a too small number of neighbors will cause the algorithm to only consider smaller neighborhood data when calculating the relative density, which is easily disturbed by local noise and misjudges normal data points as abnormalities; a too large number of neighbors will cause the algorithm to involve a wider area in the calculation of relative density, reducing the sensitivity of local values, making the algorithm's perception of the overall structure too vague, and smaller changes in abnormal values may be ignored, thereby affecting the accuracy of the anomaly detection algorithm. Therefore, choosing an appropriate number of neighbors can help the algorithm better adapt to the local structure of the data and improve the performance of anomaly detection.
[0051] When the wind power generation system is successfully installed and deployed, the voltage sensor will continuously collect data. Therefore, when the system runs for a long enough time, the voltage sequence detected will be close to infinite, which is not conducive to signal analysis and processing. Therefore, this embodiment sets a time window, using The time window converts the infinitely long voltage data sequence into a window sequence, that is, the voltage data sequence is divided into several time windows, the length of the time window is 1s, and each time window corresponds to a window voltage sequence.
[0052] The DTC timing clustering model is used to divide the time clusters in the time window, and the window voltage sequence in a window is divided into several time clusters. Since the DTC timing clustering model is a well-known technology in the field of timing clustering, it will not be described in detail in this embodiment. Here, the input terminal voltage signal is taken as an example. It represents the voltage value of the input voltage signal at the kth sampling moment in the mth time cluster in the time window. The voltage signal at the output end adopts the same division method as the input end.
[0053] Since there is a certain random fluctuation in the voltage signal at both ends of the energy storage device, the fault information of the device is hidden in the fluctuation. In order to better analyze the data, this embodiment uses discrete wavelet transform for signal processing, uses the sym2 wavelet basis, and sets the wavelet decomposition layer number to The implementer can change the wavelet basis and the number of decomposition layers according to their own needs. Since discrete wavelet transform is a well-known technology in the field of signal processing, the present invention will not go into details.
[0054] Taking the input voltage signal as an example, each time window corresponds to the input window voltage sequence, and the voltage sequence corresponding to each time cluster of each time window is recorded as the input time cluster voltage sequence. The input time cluster voltage sequence is decomposed by wavelet to obtain An input wavelet coefficient sequence, It represents the wavelet coefficient sequence of the jth layer of the input time cluster voltage sequence in the mth time cluster within the time window. Different wavelet coefficient sequences indicate the frequency components and energy size of the signal, and contain the fluctuation information of the original signal.
[0055] For any data point in the wavelet coefficient sequence, after removing the data point, calculate the mean and standard deviation of the wavelet coefficient values of the remaining data points in the wavelet coefficient sequence, and obtain the hierarchical highlight coefficient of each layer of the wavelet coefficient sequence according to the wavelet coefficient value of each data point in the wavelet coefficient sequence and the mean and standard deviation of the wavelet coefficient value after removing the data point. The formula is as follows:
[0056]
[0057] In the formula, Represents the wavelet coefficient value of the kth data point in the jth layer wavelet coefficient sequence of the mth time cluster in the time window, It represents the mean value of the wavelet coefficient value of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window after removing the wavelet coefficient value of the k-th data point. It represents the standard deviation of the wavelet coefficient value of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window after removing the wavelet coefficient value of the k-th data point. represents the number of data points in the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window, It represents the hierarchical highlight coefficient of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window, and j represents the j-th layer wavelet coefficient sequence.
[0058] When the wind power generation is more stable, the voltage signal of the energy storage device at the input end is more stable and pure. Therefore, after wavelet decomposition, the wavelet coefficients only fluctuate in a small range around a smaller mean. Therefore, after removing the wavelet coefficient value at the current position, the mean and standard deviation of the entire wavelet coefficient sequence do not change much, and the difference between the wavelet coefficient value at the current position and the mean is also small, which makes the hierarchical highlight coefficient The value of is smaller.
[0059] The wavelet level disorder coefficient of the wavelet coefficient sequence is obtained according to the level highlight coefficient of each wavelet coefficient sequence and the information entropy of the wavelet coefficient sequence. The formula is as follows:
[0060]
[0061] In the formula, Represents the hierarchical highlight coefficient of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window, represents the wavelet coefficient sequence of the jth layer of the input time cluster voltage sequence in the mth time cluster within the time window, represents the information entropy function, Represents the wavelet level disorder coefficient of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window.
[0062] When the level highlight coefficient The smaller the wavelet level disorder coefficient is, the smaller the wavelet level disorder coefficient is; when the fluctuation of the wavelet coefficient sequence is small, the information entropy of the wavelet information sequence is also small, which makes the wavelet level disorder coefficient smaller. On the contrary, if the wind power generation is unstable, there will be more abnormal values in the wavelet coefficients of each level, resulting in and The value of becomes larger, and finally In addition, due to the different energy differences of wavelet coefficients at different levels, we add The purpose is to balance the energy differences between the levels.
[0063] At this point, the wavelet level disorder coefficient of the wavelet coefficient sequence is obtained.
[0064] Step S003, construct an intra-cluster hierarchical aliasing matrix based on the wavelet hierarchical disorder coefficients of the wavelet coefficient sequence, perform nonlinear fitting on the input time cluster voltage sequence to obtain extreme points, obtain the upper envelope variation coefficient and the lower envelope variation coefficient based on the voltage difference and time difference of the extreme points; obtain the envelope line variation deviation coefficient based on the upper envelope variation coefficient, the lower envelope variation coefficient and the intra-cluster hierarchical aliasing matrix.
[0065] For the input window voltage sequence, the wavelet coefficient sequence of each layer of each time cluster in the time window is calculated to obtain the wavelet level disorder coefficient; the intra-cluster level aliasing matrix is constructed according to the wavelet level disorder coefficient of each layer of wavelet coefficient sequence. Each element of the intra-cluster level aliasing matrix is the intra-cluster level aliasing factor of any two layers of wavelet coefficient sequences. The method of obtaining the intra-cluster level aliasing factor is as follows:
[0066]
[0067] In the formula, The wavelet level disorder coefficient representing the j-th wavelet coefficient sequence of the m-th time cluster in the time window, The wavelet level disorder coefficient representing the wavelet coefficient sequence of the i-th layer of the m-th time cluster in the time window, Represents the mean of the wavelet coefficient values of the i-th layer wavelet coefficient sequence of the m-th time cluster in the time window, represents an exponential function with a natural constant as base, represents the number of wavelet coefficient sequences for each time cluster within the time window, It represents the intra-cluster level aliasing factor between the wavelet coefficient sequence of the i-th layer and the wavelet coefficient sequence of the j-th layer of the m-th time cluster in the time window, and i represents the wavelet coefficient sequence of the i-th layer.
[0068] When the wind power generation is more stable, the voltage signal at the output end is more stable. Therefore, after the voltage signal is decomposed by wavelet, the difference in the wavelet level disorder coefficients of the wavelet coefficient sequences of different layers is small, that is, The value of is small, making the intra-cluster level aliasing factor On the contrary, when the voltage signal fluctuates greatly, the difference between the levels is large, which eventually makes In addition, each coefficient is multiplied by the mean of the wavelet coefficient sequence of its own level in order to avoid the intra-cluster level aliasing matrix. The matrix is a symmetric matrix, which can reflect more level information.
[0069] Since the number of wavelet decomposition layers in this embodiment is set to 5, there are 6 wavelet coefficient sequences, and the resulting intra-cluster hierarchical aliasing matrix is is a A matrix in which each wavelet coefficient sequence and the wavelet level disorder coefficients of all other wavelet coefficient sequences are taken as a row or a column, the wavelet coefficient sequence with the smallest frequency is taken as the first row and the first column, and the wavelet coefficient sequence with the largest frequency is taken as the last row and the last column.
[0070] Although the stability of the voltage signal on each frequency component can be obtained through wavelet decomposition, direct time series data can more directly reflect the distribution of the signal. Therefore, the nonlinear least squares method is used to perform nonlinear fitting on the window voltage sequence of the time cluster in the time window to obtain a continuous voltage sequence. The continuous voltage sequence is calculated using derivatives to obtain the extreme points in the continuous voltage sequence. The maximum and minimum values of the fitting curve are numbered starting from 1, and the maximum and minimum values with the same sequence number in the continuous voltage sequence are recorded as a binary group. For example, the first maximum point and the first minimum point constitute a binary group, and the second maximum point and the second minimum point constitute a binary group. The binary group is expressed as , connect all the maximum values to get the upper extreme value line, connect all the minimum values to get the lower extreme value line, and obtain the upper envelope variation coefficient and the lower envelope variation coefficient according to the voltage value difference and time difference of the adjacent extreme value points of the upper extreme value line and the lower extreme value line. The formula is as follows:
[0071]
[0072]
[0073] In the formula, represents the voltage value of the vth maximum point, represents the voltage value of the v+1th maximum point, represents the voltage value of the vth minimum point, represents the voltage value of the v+1th minimum point, represents an exponential function with a natural constant as base, Indicates the time interval between two extreme points. represents the vth upper envelope variation coefficient of the mth time cluster in the time window, Represents the vth lower envelope variation coefficient of the mth time cluster in the time window.
[0074] By obtaining the extreme points of continuous voltage signals, the upper and lower envelopes of the signal are obtained. When the voltage signal is stable, the upper and lower envelopes should be two parallel lines. Therefore, the difference between the adjacent upper and lower envelope variation coefficients should be small. Therefore, the envelope variation deviation coefficient of the input time cluster voltage sequence of each time cluster is obtained according to the difference between the upper envelope variation coefficient and the lower envelope variation coefficient of the same binary group combined with the intra-cluster hierarchical aliasing matrix. The formula is as follows:
[0075]
[0076] In the formula, represents the vth upper envelope variation coefficient of the mth time cluster in the time window, represents the vth lower envelope variation coefficient of the mth time cluster in the time window, represents the number of tuples of the mth time cluster in the time window, represents the intra-cluster level aliasing matrix corresponding to the mth time cluster in the time window, represents the F-norm, Represents the envelope variation deviation coefficient of the input time cluster voltage sequence of the mth time cluster within the time window.
[0077] The envelope variation coefficient between two adjacent extreme points is small, and the fluctuation changes are consistent, thus obtaining In addition, when the signal is stable, the intra-cluster level aliasing matrix is obtained The value of the inner element is also small, which eventually makes the envelope curve gradually change the deviation coefficient On the contrary, when the voltage signal is unstable, the upper and lower envelopes have large fluctuations, and the envelope variation deviation coefficient is obtained. The value of is larger.
[0078] So far, the envelope variation deviation coefficient of the input time cluster voltage sequence of each time cluster in the time window is obtained.
[0079] Step S004, obtaining a double-terminal fault diagnosis coefficient according to the envelope variation deviation coefficient of the input end and the output end and the voltage of the output end, and obtaining an adaptive neighbor number according to the double-terminal fault diagnosis coefficient.
[0080] The envelope variation deviation coefficient of the output window voltage sequence of each time cluster in the time window is obtained by obtaining the envelope variation deviation coefficient of the input window voltage sequence. The envelope variation deviation coefficient of the input window voltage sequence is recorded as the input envelope variation deviation coefficient, and the envelope variation deviation coefficient of the output window voltage sequence is recorded as the output envelope variation deviation coefficient.
[0081] The double-terminal fault diagnosis coefficient of the time window is obtained according to the input envelope variation deviation coefficient, the output envelope variation deviation coefficient, the mean voltage value in the time cluster, and the mean voltage value at the output end of the entire time window. The formula is as follows:
[0082]
[0083] In the formula, It represents the output envelope variation deviation coefficient of the mth time cluster in the time window, It represents the input envelope variation deviation coefficient of the mth time cluster at the output end within the time window, represents the mean value of all voltage values of the mth time cluster at the output end within the time window, Indicates the output The mean of all voltage values in a time window, Indicates the output terminal The number of time clusters divided by time windows, Indicates The double-terminal fault diagnosis coefficient of a time window.
[0084] The adaptive neighbor number is obtained according to the double-end fault diagnosis coefficient of the time window. The formula is as follows:
[0085]
[0086] In the formula, Indicates The double-terminal fault diagnosis coefficient of a time window, is the neighbor adjustment factor, which is set to 7 in this embodiment. represents the minimum function, Indicates Adaptive number of neighbors for a time window.
[0087] The voltage signal at the output end of the energy storage device directly reflects the working condition of the energy storage device. When the output voltage signal fluctuates greatly, the output envelope variation deviation coefficient is obtained. The value of is large, and the mean value of the voltage signal in each time cluster is different from the voltage mean value in the time window, and finally a large double-terminal fault diagnosis coefficient is obtained. as well as , thus selecting a larger number of nearest neighbors makes the anomaly detection algorithm focus on the overall structure of the larger data sample; on the contrary, when the voltage signal band at the input end of the energy storage device is large, it indicates that part of the band at the output end is determined by the wind power generation equipment, so it is necessary to reduce and ,At this time, the smaller number of neighbors makes the algorithm pay more attention to the local data structure and improves the sensitivity to anomalies.
[0088] So far, the number of adaptive neighbors for each time window has been obtained.
[0089] Step S005 , obtaining an outlier rate according to the adaptive neighbor number and the output window voltage sequence, and completing fault detection according to the outlier rate.
[0090] Through the above steps, the adaptive neighbor number of each time window can be obtained, and adaptive adjustment can be made according to the fluctuation distribution of the voltage signal at the input and output of the energy storage device. Since the signal at the output of the energy storage device directly reflects the operating status of the device, the SOS algorithm is used to detect abnormal values for the voltage signal at the output. The algorithm input is the output window voltage sequence and the adaptive neighbor number within the time window, and an outlier score is output for the voltage value at each sampling moment. This embodiment sets the outlier threshold , the outlier rate in the time window is obtained by the number of outlier scores greater than the outlier threshold in a single time window, and the outlier rate is the ratio of the number of voltage values greater than the outlier threshold to the number of all voltage values in the time window. When the outlier rate increases in a preset number of time windows in a row, it indicates that the operating state of the energy storage device may be abnormal, that is, the energy storage device fails, and it needs to be reported to the technical operator for inspection and maintenance to ensure the normal and stable operation of the equipment. In this embodiment, the number of consecutive time windows is 3. When the outlier rate is greater than the previous one in 3 consecutive time windows, the energy storage device fails.
[0091] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0092] This embodiment provides an intelligent diagnosis system for energy storage device fault status, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the method of steps S001 to S005 above is implemented.
[0093] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An intelligent diagnosis method for energy storage device fault status, characterized in that: The method comprises the following steps: Obtaining voltage data sequences at the input and output ends; The voltage data sequence of the input end is divided into time windows of preset size, and an input window voltage sequence is obtained for each time window; the input window voltage sequence is clustered into a number of time clusters, each time cluster corresponds to an input time cluster voltage sequence, and the input time cluster voltage sequence is decomposed by wavelet to obtain a number of wavelet coefficient sequences; the hierarchical highlight coefficient of the wavelet coefficient sequence is obtained according to the wavelet coefficient value of each data point in the wavelet coefficient sequence and the mean and standard deviation of the wavelet coefficient value after removing the data point; the wavelet hierarchical disorder coefficient of the wavelet coefficient sequence is obtained according to the hierarchical highlight coefficient of the wavelet coefficient sequence and the information entropy of the wavelet coefficient sequence; Construct an intra-cluster hierarchical aliasing matrix based on the wavelet hierarchical disorder coefficients of all wavelet coefficient sequences in the time cluster; perform nonlinear fitting on the input time cluster voltage sequence, and obtain the upper envelope variation coefficient and the lower envelope variation coefficient based on the voltage difference and time difference of the extreme points of the fitting curve; obtain the envelope variation deviation coefficient of the input time cluster voltage sequence of each time cluster in the time window based on the upper envelope variation coefficient, the lower envelope variation coefficient and the intra-cluster hierarchical aliasing matrix; The envelope variation deviation coefficient of the voltage sequence corresponding to the output end time cluster is obtained by using the calculation method of the envelope variation deviation coefficient of the input time cluster voltage sequence; the double-end fault diagnosis coefficient of the output end time window is obtained according to the envelope variation deviation coefficients of the input end and the output end and the voltage of the output end; the minimum value of the double-end fault diagnosis coefficient and the preset constant is used as the adaptive neighbor number; The outlier rate is obtained according to the adaptive neighbor number and the output window voltage sequence, and fault detection is completed according to the outlier rate.
2. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method of clustering the input window voltage sequence into a number of time clusters, each time cluster corresponds to an input time cluster voltage sequence, and using wavelet decomposition to obtain a number of wavelet coefficient sequences for the input time cluster voltage sequence is as follows: The input window voltage sequence of the time window is divided into several time clusters using the DTC time series clustering model. The voltage value corresponding to the time of each time cluster constitutes an input time cluster voltage sequence. For each input time cluster voltage sequence, wavelet decomposition is performed using a preset wavelet decomposition layer number to obtain a wavelet coefficient sequence with the preset wavelet decomposition layer number plus one, wherein the wavelet basis of the wavelet decomposition is sym2.
3. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for obtaining the hierarchical highlight coefficient of the wavelet coefficient sequence according to the wavelet coefficient value of each data point in the wavelet coefficient sequence and the mean and standard deviation of the wavelet coefficient value after removing the data point is: For any data point of each wavelet coefficient sequence, it is recorded as the target data point. The mean and standard deviation of the wavelet coefficient values of all the remaining data points in the wavelet coefficient sequence after removing the target data point are calculated. The difference between the wavelet coefficient value of the target data point and the mean is calculated and recorded as the first wavelet difference. The absolute value of the ratio of the first wavelet difference to the standard deviation is taken as the first wavelet absolute value of the target data point. The cumulative sum of the first wavelet absolute values of all data points in the wavelet coefficient sequence is taken as the hierarchical highlight coefficient of the wavelet coefficient sequence.
4. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for obtaining the wavelet level disorder coefficient of the wavelet coefficient sequence according to the level highlight coefficient of the wavelet coefficient sequence and the information entropy of the wavelet coefficient sequence is: In the formula, Represents the hierarchical highlight coefficient of the j-th layer wavelet coefficient sequence of the m-th time cluster in the time window, represents the wavelet coefficient sequence of the jth layer of the input time cluster voltage sequence in the mth time cluster within the time window, represents the information entropy function, It represents the wavelet level disorder coefficient of the j-th wavelet coefficient sequence of the m-th time cluster in the time window, and j represents the j-th wavelet coefficient sequence.
5. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for constructing the intra-cluster hierarchical aliasing matrix according to the wavelet hierarchical disorder coefficients of all wavelet coefficient sequences in the time cluster is: Each wavelet coefficient sequence is recorded as a target wavelet coefficient sequence, the target wavelet coefficient sequence and the wavelet level disorder coefficient of each wavelet coefficient sequence are subtracted, the absolute value of the difference is calculated using a preset exponential function to obtain a first index, and the product of the first index and the mean of all wavelet coefficient values in the target wavelet coefficient sequence is used as the intra-cluster level aliasing factor of the target wavelet coefficient sequence and each wavelet coefficient sequence; The intra-cluster level aliasing factors are used as elements of the intra-cluster level aliasing matrix to construct the intra-cluster level aliasing matrix, where the intra-cluster level aliasing factors of the wavelet coefficient sequence with the lowest frequency are the first row, and the intra-cluster level aliasing factors of the wavelet coefficient sequence with the highest frequency are the last row.
6. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for obtaining the upper envelope variation coefficient and the lower envelope variation coefficient according to the voltage difference and time difference of the extreme value points of the fitting curve is: The maximum and minimum values of the fitting curve are numbered starting from 1, and the maximum and minimum values with the same sequence number in the fitting curve are recorded as a tuple; all the maximum values are connected to obtain the upper extreme value line, and all the minimum values are connected to obtain the lower extreme value line; For the upper extreme value line, any maximum value is recorded as the target maximum value, the difference in voltage between the target maximum value and the next maximum value is recorded as the first voltage difference, the time interval between the target maximum value and the next maximum value is recorded as the first time interval, the ratio of the first voltage difference and the first time interval is recorded as the first ratio, and the first ratio is calculated using a preset exponential function to obtain the upper envelope variation coefficient; the lower extreme value line is processed using the method for obtaining the upper envelope variation coefficient to obtain the lower envelope variation coefficient.
7. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for obtaining the envelope variation deviation coefficient of the input time cluster voltage sequence of each time cluster in the time window according to the upper envelope variation coefficient, the lower envelope variation coefficient and the intra-cluster hierarchical aliasing matrix is: In the formula, represents the vth upper envelope variation coefficient of the mth time cluster in the time window, represents the vth lower envelope variation coefficient of the mth time cluster in the time window, represents the number of tuples of the mth time cluster in the time window, represents the intra-cluster level aliasing matrix corresponding to the mth time cluster in the time window, represents the F-norm, Represents the envelope variation deviation coefficient of the input time cluster voltage sequence of the mth time cluster within the time window.
8. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for obtaining the double-terminal fault diagnosis coefficient of the output terminal time window according to the envelope variation deviation coefficient of the input terminal and the output terminal and the voltage of the output terminal is: In the formula, It represents the output envelope variation deviation coefficient of the mth time cluster in the time window, It represents the input envelope variation deviation coefficient of the mth time cluster at the output end within the time window, represents the mean value of all voltage values of the mth time cluster in the time window at the output end, Indicates the output The mean of all voltage values in a time window, Indicates the output terminal The number of time clusters divided by time windows, Indicates The double-terminal fault diagnosis coefficient of a time window.
9. The intelligent diagnosis method for energy storage device fault status according to claim 1, characterized in that: The method for obtaining the outlier rate according to the adaptive neighbor number and the output window voltage sequence is: The SOS algorithm is used to detect outliers on the voltage signal at the output end and output the outlier score at each sampling moment. The input of the SOS algorithm is the output window voltage sequence and the adaptive neighbor number within the time window. The ratio of the number of sampling moments with outlier scores greater than a preset outlier threshold to the number of all sampling moments in the time window is taken as the outlier rate of the time window.
10. An intelligent diagnosis system for energy storage device fault status, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the intelligent diagnosis method for the fault state of an energy storage device as described in any one of claims 1-9 are implemented.
