Abnormality detection method and system for relay current balancing
By performing short-term sine wave analysis and local convergence coefficient correction on the relay current signal, the interference component is removed, and the problem of low current detection accuracy is solved, and higher detection accuracy and signal fidelity is achieved.
Patent Information
- Application Number
- CN202411109933.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In the prior art, in relay current abnormality detection, the collected current signals are easily disturbed by circuit or power system environment, resulting in poor detection accuracy, and data filtering and denoising may lead to information loss and signal distortion.
By obtaining the current signal released by the relay, performing sine wave set and phase determination in the short-term window, calculating the factor to be demodulated and the local convergence coefficient, correcting the frequency modulation function of the first PF component, removing the target interference component, and improving the current detection signal accuracy.
It improves the accuracy of relay current abnormality detection, reduces signal information loss, enhances the accuracy of interference removal, and ensures the authenticity of the detection results.
Smart Images

Figure CN118625120B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of measuring electric variables, and in particular to an abnormality detection method and system for relay current balance. Background Art
[0002] During the charging process, the relay assumes the important function of protecting the circuit, including overcurrent protection, overvoltage protection, and overtemperature protection, etc., to protect the battery pack and circuit from damage, and it is often necessary to detect abnormal charging current. As a common electrical protection device, relays are usually used to protect circuits or monitor abnormal current conditions in power systems. During the operation of the relay, the relay's ability to balance the current is crucial to ensure the normal operation of the circuit. At present, the performance of the relay is evaluated by measuring the voltage and current released by the relay when the current changes at different times, in order to ensure that the relay has the ability to provide stable and reliable electrical control functions. Therefore, the accuracy of detecting the current released by the relay is particularly important.
[0003] At present, when detecting current anomalies, the commonly used method is: using a current sensor to collect current signals and perform current anomaly detection through the current signals. However, when collecting current signals through current sensors and performing current anomaly detection through the current signals, the collected current signals may be interfered by factors such as the charging equipment in the circuit or power system, or the complex internal environment of the power supply device, resulting in the collected current signals being unable to represent the real current information, resulting in poor accuracy in current anomaly detection. Therefore, it is often necessary to remove interference information from the collected current signals.
[0004] At present, data interference removal is often achieved by data filtering and denoising. However, when data filtering and denoising is used to remove interference information from current signals, it may cause information loss of current signals, thereby causing signal distortion, and further causing the current signal after data filtering and denoising to be unable to represent the true current information. Summary of the invention
[0005] In order to solve the technical problem of poor accuracy in detecting abnormal current released by a relay, the present invention proposes an abnormality detection method and system for relay current balance.
[0006] The present invention provides an abnormality detection method for relay current balancing, the method comprising:
[0007] Acquire the current signal released by the relay, and convert the released current signal to obtain a set of sinusoidal waves corresponding to the current signal segment in each short-time window and a phase corresponding to each sinusoidal wave;
[0008] Determine the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment;
[0009] Determine the local convergence coefficient corresponding to each current signal segment according to the target steady-state factor, the Gaussian weight corresponding to each current signal segment, and the factor to be demodulated, wherein the target steady-state factor is used to characterize the distribution uniformity of the phase type in all short-time windows;
[0010] According to the local convergence coefficients corresponding to all current signal segments, the frequency modulation function of the first PF component of the released current signal is modified to obtain a target interference component;
[0011] The target interference component is removed from the released current signal to obtain a current detection signal, and abnormality detection is performed on the current released by the relay based on the current detection signal.
[0012] Optionally, determining the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment includes:
[0013] Determine the initial demodulation index corresponding to each current signal segment according to the maximum value and the minimum value in the phase corresponding to all the sine waves corresponding to each current signal segment;
[0014] The demodulation factor corresponding to each current signal segment is determined according to the number of sinusoidal waves in the sinusoidal wave set corresponding to each current signal segment, the initial demodulation index corresponding to each current signal segment and the standard deviation of all amplitudes on its corresponding mean envelope.
[0015] Optionally, the formula corresponding to the factor to be demodulated corresponding to the current signal segment is: ; ;in, is the factor to be demodulated corresponding to the i-th current signal segment; i is the sequence number of the current signal segment; is the sum normalization function; is the initial demodulation index corresponding to the i-th current signal segment; is the number of sine waves in the sine wave set corresponding to the i-th current signal segment; is the hyperbolic tangent function; is the standard deviation of all amplitudes on the mean envelope corresponding to the i-th current signal segment; is a sine function; It is the maximum value among the phases corresponding to all sine waves in the set of sine waves corresponding to the i-th current signal segment; It is the minimum value of the phases corresponding to all sine waves in the set of sine waves corresponding to the i-th current signal segment; It is a radian value of 180°.
[0016] Optionally, the method for obtaining the target steady-state factor includes:
[0017] The target steady-state factor corresponding to the battery cell of the module to be detected is determined according to the number of different phases corresponding to all sine waves in all sine wave sets, the total number of sine waves in all sine wave sets and the number of short-time windows corresponding to different phases.
[0018] Optionally, the formula corresponding to the target steady-state factor is: ; Where P is the target steady-state factor; k is the number of different phases corresponding to all sine waves in the set of all sine waves; s is the total number of sine waves in the set of all sine waves; r is the number of different phases corresponding to all sine waves in the set of all sine waves; is the number of short-time windows corresponding to the rth phase.
[0019] Optionally, a method for determining the Gaussian weight corresponding to each current signal segment includes:
[0020] The probability of each different signal amplitude appearing in all signal amplitudes in all current signal segments is determined as the target probability corresponding to each signal amplitude;
[0021] Determine a first Gaussian factor corresponding to each current signal segment according to target probabilities corresponding to different signal amplitudes in each current signal segment;
[0022] Determine the second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments;
[0023] The Gaussian weight corresponding to each current signal segment is determined according to the second Gaussian factor and the first Gaussian factor corresponding to each current signal segment, wherein both the first Gaussian factor and the second Gaussian factor are positively correlated with the Gaussian weight.
[0024] Optionally, determining the second Gaussianity factor according to target probabilities corresponding to different signal amplitudes in all current signal segments includes:
[0025] The second Gaussian factor is determined according to the target probabilities corresponding to different signal amplitudes in all current signal segments and the mean and standard deviation of the target probabilities corresponding to all different signal amplitudes in all current signal segments.
[0026] Optionally, the formula corresponding to the Gaussian weight corresponding to the current signal segment is: ; ; ;in, is the Gaussian weight corresponding to the i-th current signal segment; i is the sequence number of the current signal segment; is the first Gaussian factor corresponding to the i-th current signal segment; T is the second Gaussianity factor; is the number of different signal amplitudes in the i-th current signal segment; n is the type number of different signal amplitudes in the i-th current signal segment; is the target probability corresponding to the nth signal amplitude in the i-th current signal segment; N is the number of different signal amplitudes within all current signal segments; f It is the type number of different signal amplitudes in all current signal segments; It is the first in all current signal segments. f The target probability corresponding to the signal amplitude; It is the mean of the target probabilities corresponding to all different signal amplitudes in all current signal segments; is the standard deviation of the target probability corresponding to all different signal amplitudes in all current signal segments; is a pre-set factor greater than 0.
[0027] Optionally, the step of modifying the frequency modulation function of the first PF component of the released current signal according to the local convergence coefficients corresponding to all current signal segments to obtain the target interference component includes:
[0028] Perform nonlinear fitting on the local convergence coefficients corresponding to all current signal segments to obtain a local convergence curve, and normalize the slopes corresponding to all coordinate points on the local convergence curve to form a convergence slope sequence;
[0029] Obtaining a local mean function corresponding to the current signal released by the relay, and determining a differential function between the current signal released by the relay and the corresponding local mean function as a target differential function corresponding to the current signal released by the relay;
[0030] Obtaining a mean envelope function corresponding to the current signal released by the relay, and demodulating the corresponding target differential function according to the mean envelope function corresponding to the current signal released by the relay to obtain a component signal to be determined;
[0031] Obtaining the mean envelope function corresponding to the undetermined component signal, and forming a candidate slope sequence corresponding to the undetermined component signal by normalizing the slopes corresponding to all coordinate points on the curve represented by the mean envelope function corresponding to the undetermined component signal;
[0032] Determine the mean square error between the converged slope sequence and the candidate slope sequence corresponding to the undetermined component signal as the target error corresponding to the undetermined component signal;
[0033] The current signal released by the relay is updated to the pending component signal, and the pending component signal generation step is repeated until the function characterized by the latest pending component signal is a pure frequency modulation function, and the corresponding pending component signal with the smallest target error is screened out from all pending component signals as the target component signal, and the frequency modulation function of the first PF component is updated to the function characterized by the target component signal, and all mean envelope functions obtained in all repeated processes are multiplied to obtain the first envelope signal, and the product of the updated frequency modulation function and the first envelope signal is determined as the target interference component.
[0034] The present invention provides an abnormality detection system for relay current balancing, the system comprising:
[0035] An acquisition module is used to acquire the current signal released by the relay and convert the released current signal to obtain a set of sinusoidal waves corresponding to the current signal segment in each short-time window and a phase corresponding to each sinusoidal wave;
[0036] A first calculation module is used to determine the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment;
[0037] A second calculation module is used to determine the local convergence coefficient corresponding to each current signal segment according to the target steady-state factor, the Gaussian weight corresponding to each current signal segment and the factor to be demodulated, wherein the target steady-state factor is used to characterize the distribution uniformity of the phase type in all short-time windows;
[0038] A correction module, used for correcting the frequency modulation function of the first PF component of the released current signal according to the local convergence coefficients corresponding to all current signal segments, to obtain a target interference component;
[0039] The detection module is used to remove the target interference component from the released current signal to obtain a current detection signal, and perform abnormality detection on the current released by the relay according to the current detection signal.
[0040] The present invention has the following beneficial effects:
[0041] The present invention provides an abnormality detection method and system for relay current balance, which realizes current abnormality detection by measuring current, solves the technical problem of poor accuracy in detecting abnormal current released by relays, and improves the accuracy of current abnormality detection. The first PF component is a component in the LMD algorithm. Decomposing the signal by using a decomposition algorithm and removing the interference component is a commonly used signal preprocessing method. Compared with using a filter to filter and denoise the data, the information loss is smaller and the flexibility is higher. The LMD algorithm can separate the interference components in the signal by signal demodulation, and the damage to the real signal is smaller. Generally, the first signal component is mostly an interference component, but when the first PF component is decomposed in LMD, the conventional convergence condition essentially only retains the signal trend term component, and does not pay attention to whether the decomposed frequency modulation function is an interference component or whether there is valid information. Therefore, the present invention corrects the frequency modulation function of the first PF component, which can better obtain the target interference component that characterizes the interference component, thereby improving the accuracy of removing interference from the current signal released by the relay, and further improving the accuracy of detecting abnormal current released by the relay. Secondly, when correcting the frequency modulation function of the first PF component, the present invention comprehensively considers multiple indicators related to signal interference, such as the target steady-state factor, Gaussian weight, factor to be demodulated and local convergence coefficient, thereby improving the accuracy of interference removal of the current signal released by the relay, and further improving the accuracy of detecting abnormal current released by the relay. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] 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.
[0043] Figure 1 is a flow chart of an abnormality detection method for relay current balancing of the present invention;
[0044] Figure 2 It is a structural schematic diagram of the abnormality detection system for relay current balancing of the present invention. DETAILED DESCRIPTION
[0045] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the technical solutions proposed by the present invention are described in detail below in conjunction 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.
[0046] 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.
[0047] refer to Figure 1 , shows the process of some embodiments of the abnormality detection method for relay current balancing according to the present invention. The abnormality detection method for relay current balancing comprises the following steps:
[0048] Step S1, obtaining the current signal released by the relay, and converting the current signal to obtain a set of sinusoidal waves corresponding to the current signal segment in each short-time window and a phase corresponding to each sinusoidal wave.
[0049] Among them, the current signal segments in all short-time windows constitute the current signal released by the relay. The current signal released by the relay may include: the current signal released by the relay in the process of gradually reducing the power supply voltage in the relay performance test collected within the preset time period. The preset time period may be a pre-set time period with the end time being the current time period. For example, the duration corresponding to the preset time period may be 10 minutes. Short-Time Fourier Transform (STFT) is a classic signal analysis method for localizing the signal in time and frequency. In STFT, the signal is divided into multiple short-time windows, and the signal segment in each short-time window is Fourier transformed to obtain local information in the frequency domain; that is, in an embodiment of the present invention, the current signal released by the relay is divided into multiple short-time windows, and the current signal segment in each short-time window is Fourier transformed to obtain local information in the frequency domain. The current signal segment is a sub-signal of the current signal released by the relay. The short-time window is a window in the STFT, and its length can be preset. For example, the length corresponding to the short-time window can be the length of 20 acquisition moments. At this time, the current signal segment in the short-time window can include current data at 20 acquisition moments. The sine wave in the sine wave set corresponding to the current signal segment can be: the sine wave obtained when the short-time Fourier transform is performed on the current signal segment.
[0050] It should be noted that in the performance test of the relay, the process of measuring the release current is to gradually reduce the power supply voltage and observe the current value when the relay is released from the energized state. However, in this process, it is often necessary to accurately detect the released current signal to ensure the accuracy of the relay performance test results. Once the performance of the relay is not enough to provide protection, it is often necessary to immediately replace the relay with good performance. When detecting the release current flowing through the relay, there is often a large environmental interference. The temperature change, line resistance, internal impedance and electromagnetic effect inside the relay or in the circuit where the relay is located often cause the collected current signal to be seriously distorted, and the relay performance cannot be accurately detected. Therefore, it is often necessary to pre-process the interference components first. Therefore, the current signal released by the relay is converted to obtain the sine wave set corresponding to the current signal segment in each short-time window and the phase corresponding to each sine wave, which can facilitate the subsequent removal of interference information from the released current signal.
[0051] As an example, this step may include the following steps:
[0052] The first step is to obtain the current signal released by the relay.
[0053] For example, a current sensor installed on the relay can collect the release current flowing through the relay during the test every 1 second within a preset time period, and all the release currents collected within the preset time period can constitute the current signal of the relay release.
[0054] The second step is to convert the current signal released by the relay through short-time Fourier transform, that is, to perform Fourier transform on the current signal segment within the short-time window to obtain multiple sine waves. These multiple sine waves can constitute a set of sine waves corresponding to the current signal segment, and calculate the phase of each sine wave as the phase corresponding to each sine wave.
[0055] Step S2, determining the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment.
[0056] The mean envelope may be a curve represented by a mean envelope function. The method for obtaining the mean envelope corresponding to the current signal segment may be: obtaining all the maximum and minimum points on the current signal segment, performing nonlinear fitting on all the maximum points on the current signal segment to obtain an upper envelope, performing nonlinear fitting on all the minimum points on the current signal segment to obtain a lower envelope, and averaging the upper and lower envelopes to obtain the mean envelope.
[0057] As an example, this step may include the following steps:
[0058] In the first step, an initial demodulation index corresponding to each current signal segment is determined according to the maximum value and the minimum value in the phase corresponding to all sine waves corresponding to each current signal segment.
[0059] In the second step, the demodulation factor corresponding to each current signal segment is determined according to the number of sinusoidal waves in the sinusoidal wave set corresponding to each current signal segment, the initial demodulation index corresponding to each current signal segment and the standard deviation of all amplitudes on its corresponding mean envelope.
[0060] Among them, the amplitude on the mean envelope line is the function value of the mean envelope function corresponding to the mean envelope line.
[0061] For example, the formula for determining the factor to be demodulated corresponding to the current signal segment may be: ; ;in, is the demodulated factor corresponding to the i-th current signal segment. i is the sequence number of the current signal segment. is the sum normalization function. It is the initial demodulation index corresponding to the i-th current signal segment. is the number of sinusoidal waves in the sinusoidal wave set corresponding to the i-th current signal segment. is the hyperbolic tangent function. is the standard deviation of all amplitudes on the mean envelope corresponding to the i-th current signal segment. yes The square of . is a sine function. It is the maximum value among the phases corresponding to all sine waves in the set of sine waves corresponding to the i-th current signal segment. It is the minimum value of the phases corresponding to all sine waves in the sine wave set corresponding to the i-th current signal segment. It is a radian value of 180°.
[0062] It should be noted that The value range of can be [0, 1]. The larger the value, the greater the time lag difference within the i-th current signal segment. The larger the value is, the more different signal components are contained in the i-th current signal segment. When is larger, it often indicates that the signal components in the i-th current signal segment are complex and the time lags between them are quite different, and more demodulation is required in the decomposition process. The smaller it is, the smoother the signal in the i-th current signal segment is. It can characterize the expected demodulation factor of the ith current signal segment. The larger its value is, the smoother the baseline is within the ith current signal segment, but the signal components are very complex, which often means that the expected demodulation factor of the ith current signal segment is larger.
[0063] Step S3, determining the local convergence coefficient corresponding to each current signal segment according to the target steady-state factor, the Gaussian weight corresponding to each current signal segment and the factor to be demodulated.
[0064] Among them, the target steady-state factor can be used to characterize the uniformity of the distribution of phase types in all short-time windows. The target steady-state factor can be positively correlated with the local convergence coefficient. The Gaussian weight corresponding to the current signal segment can be positively correlated with its corresponding local convergence coefficient. The demodulated factor corresponding to the current signal segment can be negatively correlated with its corresponding local convergence coefficient.
[0065] As an example, the target steady-state factor corresponding to the battery cell of the module to be tested can be determined based on the number of different phases corresponding to all sine waves in all sine wave sets, the total number of sine waves in all sine wave sets, and the number of short-time windows corresponding to different phases.
[0066] Among them, the same phase can constitute the same phase, that is, the same phase can be used as a phase. The number of different phases corresponding to all sine waves in the set of all sine waves, that is, the number of different phases obtained by converting the current signal released by the relay through short-time Fourier transform. The short-time windows corresponding to different phases are short-time windows in which different phases appear. For example, if there are sine waves with corresponding phases equal to the first phase in the sine wave sets corresponding to the current signal segments in the first short-time window, the second short-time window, and the third short-time window, then the number of short-time windows corresponding to the first phase is 3, and these 3 short-time windows are the first short-time window, the second short-time window, and the third short-time window, respectively.
[0067] It should be noted that the larger the quantized target steady-state factor is, the smaller the demodulation amount is, the more likely the convergence node is to be advanced during the signal decomposition process, and the larger the convergence coefficient of all positions in the current signal released by the relay is often required.
[0068] For example, the formula for determining the target steady-state factor can be: ; Where P is the target steady-state factor. k is the number of different phases corresponding to all sine waves in the set of all sine waves. s is the total number of sine waves in the set of all sine waves. r is the number of different phases corresponding to all sine waves in the set of all sine waves. is the number of short-time windows corresponding to the rth phase.
[0069] It should be noted that The heterogeneity index represents the distribution of all phase types in all short-time windows. Its value range is between 0 and 1. This value is used to evaluate the uniformity of the distribution of phase types in all short-time windows. When the phase types appearing in each short-time window are closer to consistency, the heterogeneity index is closer to 1, indicating that the signal components are fixed; conversely, when the heterogeneity index is close to 0, it means that there are more non-uniform steady-state components in the signal components.
[0070] As another example, the Gaussian weight corresponding to each current signal segment can be determined based on the probability of different signal amplitudes in each current signal segment appearing in all signal amplitudes, and the probability of different signal amplitudes in all current signal segments appearing in all signal amplitudes, wherein the signal amplitude in the current signal segment can characterize the release current of the relay. It should be noted that the interference component often has random and sudden characteristics, and the randomness represents that the interference component in the signal often has the characteristics of Gaussian distribution, but the Gaussian distribution is not uniformly distributed in the signal. Therefore, for each short-time window, the Gaussian weight of the current signal segment therein can be calculated, wherein the specific method for determining the Gaussian weight corresponding to the current signal segment can include the following steps:
[0071] In the first step, the probability of each different signal amplitude appearing in all signal amplitudes in all current signal segments is determined as the target probability corresponding to each signal amplitude.
[0072] The same signal amplitude can constitute the same kind of signal amplitude, that is, the same signal amplitude can be used as a kind of signal amplitude.
[0073] In the second step, the first Gaussian factor corresponding to each current signal segment is determined according to the target probability corresponding to different signal amplitudes in each current signal segment.
[0074] The third step is to determine the second Gaussian factor according to the target probability corresponding to different signal amplitudes in all current signal segments.
[0075] For example, the second Gaussianity factor may be determined according to the target probabilities corresponding to different signal amplitudes in all current signal segments, and the mean and standard deviation of the target probabilities corresponding to all different signal amplitudes in all current signal segments.
[0076] In the fourth step, the Gaussian weight corresponding to each current signal segment is determined according to the second Gaussian factor and the first Gaussian factor corresponding to each current signal segment.
[0077] Wherein, both the first Gaussian factor and the second Gaussian factor may be positively correlated with the Gaussian weight.
[0078] For example, the formula for determining the Gaussian weight corresponding to the current signal segment may be: ; ; ;in, is the Gaussian weight corresponding to the i-th current signal segment. i is the sequence number of the current signal segment. is the first Gaussian factor corresponding to the i-th current signal segment. T is the second Gaussian factor. is the number of different signal amplitudes in the i-th current signal segment. n is the type number of different signal amplitudes in the i-th current signal segment. is the target probability corresponding to the nth signal amplitude in the i-th current signal segment. N is the number of different signal amplitudes in all current signal segments. f is the type number of different signal amplitudes in all current signal segments. is the target probability corresponding to the fth signal amplitude in all current signal segments. It is the mean of the target probabilities corresponding to all different signal amplitudes in all current signal segments. It is the standard deviation of the target probability corresponding to all different signal amplitudes in all current signal segments. It is a pre-set factor greater than 0, mainly used to prevent the denominator from being 0, for example, It may be 0.001. It should be noted that, in the embodiment of the present invention, in order to prevent the denominator from being 0, a relatively small preset factor greater than 0 may be added to the denominator.
[0079] It should be noted that It can represent the sum of the distribution probabilities of all types of signal amplitudes in the i-th current signal segment. The larger its value is, the more likely the signal component corresponding to the current signal segment is to be a commonly occurring signal amplitude. Therefore, the corresponding Gaussian weight is lower. It can represent the kurtosis of the amplitude distribution probability of the current signal released by the relay. Since the standard Gaussian kurtosis is 3, Normalization is achieved, and its value can be [0, 1], and the closer T is to 1, the stronger the Gaussianity of the current signal released by the relay. Therefore, It can represent the product of the sum of the distribution probabilities of all types of signal amplitudes in the i-th current signal segment and the kurtosis of the amplitude distribution probability of the current signal released by the relay. The larger the value, the higher the Gaussian weight of the i-th current signal segment, and the greater the demodulation amount of the i-th current signal segment.
[0080] As another example, the formula for determining the local convergence coefficient corresponding to the current signal segment may be: ;in, is the local convergence coefficient corresponding to the i-th current signal segment. i is the sequence number of the current signal segment. P is the target steady-state factor. is the Gaussian weight corresponding to the i-th current signal segment. is the factor to be demodulated corresponding to the i-th current signal segment.
[0081] It should be noted that the larger the target steady-state factor, the smaller the demodulation amount, the earlier the convergence node in the signal decomposition process, and the larger the convergence coefficient of all positions in the signal. The higher the Gaussian weight and the larger the factor to be demodulated, the larger the demodulation amount at the local signal position, the later the convergence node at the local signal position, and the smaller the convergence coefficient of all positions in the signal. Therefore, It can represent the local convergence coefficient in the i-th current signal segment. The larger the target steady-state factor, the lower the Gaussian weight, and the smaller the factor to be demodulated, the larger the local convergence coefficient.
[0082] Step S4, according to the local convergence coefficients corresponding to all current signal segments, the frequency modulation function of the first PF component of the current signal released by the relay is modified to obtain the target interference component.
[0083] The first PF (Prony Analysis Function, a component in a signal model) component of the current signal released by the relay may be: the first PF component in a process of performing LMD (Local Mean Decomposition, local mean decomposition) decomposition on the current signal released by the relay.
[0084] As an example, this step may include the following steps:
[0085] In the first step, nonlinear fitting is performed on the local convergence coefficients corresponding to all current signal segments to obtain a local convergence curve, and the normalized values of the slopes corresponding to all coordinate points on the local convergence curve are used to form a convergence slope sequence.
[0086] Among them, the ordinate of the coordinate point on the local convergence curve can be the local convergence coefficient. The number of coordinate points on the local convergence curve can be equal to the number of local convergence coefficients. The function corresponding to the local convergence curve can be recorded as the local convergence function. The slope corresponding to the coordinate point on the curve is the slope of the coordinate point on the curve. The method for obtaining the normalized value of the slope corresponding to the coordinate point can be: normalize the slope to the maximum value, and the value obtained is the normalized value of the slope.
[0087] The second step is to obtain the local mean function corresponding to the current signal released by the relay, and determine the differential function between the current signal released by the relay and its corresponding local mean function as the target differential function corresponding to the current signal released by the relay.
[0088] The third step is to obtain the mean envelope function corresponding to the current signal released by the relay, and demodulate the corresponding target differential function according to the mean envelope function corresponding to the current signal released by the relay to obtain the component signal to be determined.
[0089] The fourth step is to obtain the mean envelope function corresponding to the undetermined component signal, and to construct a candidate slope sequence corresponding to the undetermined component signal by normalizing the slopes of all coordinate points on the curve represented by the mean envelope function corresponding to the undetermined component signal.
[0090] The number of coordinate points on the curve represented by the mean envelope function corresponding to the undetermined component signal may be equal to the number of charging currents in the current signal released by the relay.
[0091] The fifth step is to determine the mean square error between the above converged slope sequence and the candidate slope sequence corresponding to the undetermined component signal as the target error corresponding to the undetermined component signal.
[0092] In the sixth step, the current signal released by the relay is updated to the pending component signal, and the pending component signal generation step is repeated until the function representing the latest pending component signal is a pure frequency modulation function, and the corresponding pending component signal with the smallest target error is selected from all pending component signals as the target component signal, and the frequency modulation function of the first PF component is updated to the function representing the target component signal, and all mean envelope functions obtained in all repeated processes are multiplied to obtain the first envelope signal, and the product of the updated frequency modulation function and the first envelope signal is determined as the target interference component.
[0093] Among them, the step of generating the undetermined component signal can include: obtaining the local mean function corresponding to the current signal released by the relay, and determining the differential function between the current signal released by the relay and the corresponding local mean function as the target differential function corresponding to the current signal released by the relay; obtaining the mean envelope function corresponding to the current signal released by the relay, and demodulating the corresponding target differential function according to the mean envelope function corresponding to the current signal released by the relay to obtain the undetermined component signal.
[0094] Step S5, removing the target interference component from the current signal released by the relay to obtain a current detection signal, and performing an abnormality detection on the current released by the relay during the relay performance test according to the current detection signal.
[0095] As an example, if there is a current greater than a preset safety threshold in the current detection signal, it is determined that the current released by the relay is abnormal, the flow through the relay is unbalanced, and the performance of the relay is in a poor state. At this time, the relay can be disconnected and replaced with a relay with good performance to continue to provide protection functions. The preset safety threshold can be a pre-set threshold. For example, the preset safety threshold can be 32 amperes.
[0096] Optionally, each relay on the circuit can be tested for abnormal current when released. If the current signal released by a relay is abnormal, the relay is disconnected and replaced. By taking any relay on the circuit as a relay for performance testing and executing steps S1 to S5, abnormal current release detection of each relay on the circuit can be achieved, and the performance of the relay balancing current can be evaluated.
[0097] In summary, the present invention corrects the frequency modulation function of the first PF component, which can better obtain the target interference component that characterizes the interference component, thereby improving the accuracy of interference removal of the current signal released by the relay, and further improving the accuracy of current anomaly detection released by the relay. Secondly, when correcting the frequency modulation function of the first PF component, the present invention comprehensively considers multiple indicators related to signal interference, such as the target steady-state factor, Gaussian weight, factor to be demodulated, and local convergence coefficient, thereby improving the accuracy of interference removal of the current signal released by the relay, and further improving the accuracy of current anomaly detection released by the relay.
[0098] In another aspect, the present invention provides an abnormality detection system for relay current balancing, such as Figure 2 As shown, the system 200 includes:
[0099] An acquisition module 201 is used to acquire a current signal released by a relay and convert the released current signal to obtain a set of sinusoidal waves corresponding to a current signal segment in each short-time window and a phase corresponding to each sinusoidal wave;
[0100] A first calculation module 202, configured to determine a to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment;
[0101] A second calculation module 203 is used to determine a local convergence coefficient corresponding to each current signal segment according to a target steady-state factor, a Gaussian weight corresponding to each current signal segment, and a factor to be demodulated, wherein the target steady-state factor is used to characterize the distribution uniformity of the phase type in all short-time windows;
[0102] A correction module 204, configured to correct the frequency modulation function of the first PF component of the released current signal according to the local convergence coefficients corresponding to all current signal segments, to obtain a target interference component;
[0103] The detection module 205 is used to remove the target interference component from the released current signal to obtain a current detection signal, and perform abnormality detection on the current released by the relay according to the current detection signal.
[0104] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for detecting anomalies in relay current balancing, characterized in that: The following steps are involved: Acquire the current signal released by the relay, and convert the released current signal to obtain a set of sinusoidal waves corresponding to the current signal segment in each short-time window and a phase corresponding to each sinusoidal wave; Determine the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment; The method of determining the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment includes: Determine the initial demodulation index corresponding to each current signal segment according to the maximum value and the minimum value in the phase corresponding to all the sine waves corresponding to each current signal segment; Determine the to-be-demodulated factor corresponding to each current signal segment according to the number of sinusoidal waves in the sinusoidal wave set corresponding to each current signal segment, the initial demodulation index corresponding to each current signal segment, and the standard deviation of all amplitudes on the corresponding mean envelope; The formula for the demodulation factor corresponding to the current signal segment is: ; ;in, It is i The factors to be demodulated corresponding to the current signal segments; i is the serial number of the current signal segment; is the sum normalization function; It is i The initial demodulation index corresponding to each current signal segment; It is i The number of sine waves in the sine wave set corresponding to the current signal segment; is the hyperbolic tangent function; It is i The standard deviation of all amplitudes on the mean envelope corresponding to each current signal segment; is a sine function; It is i The maximum value among the phases corresponding to all sine waves in the set of sine waves corresponding to the current signal segments; It is i The minimum value of the phases corresponding to all sine waves in the set of sine waves corresponding to the current signal segments; is the arc value of 180°; Determine the local convergence coefficient corresponding to each current signal segment according to the target steady-state factor, the Gaussian weight corresponding to each current signal segment, and the factor to be demodulated, wherein the target steady-state factor is used to characterize the distribution uniformity of the phase type in all short-time windows; The method for obtaining the target steady-state factor comprises: Determine the corresponding target steady-state factor according to the number of different phases corresponding to all sine waves in the set of all sine waves, the total number of sine waves in the set of all sine waves, and the number of short-time windows corresponding to different phases; The formula corresponding to the target steady-state factor is: ;in, P is the target homeostatic factor; k is the number of different phases corresponding to all sine waves in the set of all sine waves; s is the total number of sine waves in the set of all sine waves; r It is the type number of different phases corresponding to all sine waves in the set of all sine waves; It is r The number of short-time windows corresponding to the phase; The method for determining the Gaussian weight corresponding to each current signal segment includes: determining the probability of each different signal amplitude appearing in all signal amplitudes in all current signal segments as the target probability corresponding to each signal amplitude; Determine a first Gaussian factor corresponding to each current signal segment according to target probabilities corresponding to different signal amplitudes in each current signal segment; Determine the second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments; Determine a Gaussian weight corresponding to each current signal segment according to the second Gaussian factor and the first Gaussian factor corresponding to each current signal segment, wherein both the first Gaussian factor and the second Gaussian factor are positively correlated with the Gaussian weight; The determining of the second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments includes: Determine a second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments and the mean and standard deviation of the target probabilities corresponding to all different signal amplitudes in all current signal segments; The formula corresponding to the Gaussian weight of the current signal segment is: ; ; ;in, It is i Gaussian weight corresponding to each current signal segment; i is the serial number of the current signal segment; It is i The first Gaussian factor corresponding to the current signal segment; T is the second Gaussianity factor; It is i The number of different signal amplitudes within a current signal segment; n It is i Type serial number of different signal amplitudes in a current signal segment; It is i In the current signal segment n The target probability corresponding to the signal amplitude; N is the number of different signal amplitudes within all current signal segments; f It is the type number of different signal amplitudes in all current signal segments; It is the first in all current signal segments. f The target probability corresponding to the signal amplitude; It is the mean of the target probabilities corresponding to all different signal amplitudes in all current signal segments; is the standard deviation of the target probability corresponding to all different signal amplitudes in all current signal segments; is a pre-set factor greater than 0; According to the local convergence coefficients corresponding to all current signal segments, the frequency modulation function of the first PF component of the released current signal is modified to obtain a target interference component; The target interference component is removed from the released current signal to obtain a current detection signal, and abnormality detection is performed on the current released by the relay based on the current detection signal.
2. The abnormality detection method for relay current balancing according to claim 1, characterized in that: The method of modifying the frequency modulation function of the first PF component of the released current signal according to the local convergence coefficients corresponding to all current signal segments to obtain the target interference component includes: Perform nonlinear fitting on the local convergence coefficients corresponding to all current signal segments to obtain a local convergence curve, and normalize the slopes corresponding to all coordinate points on the local convergence curve to form a convergence slope sequence; Obtaining a local mean function corresponding to the current signal released by the relay, and determining a differential function between the current signal released by the relay and the corresponding local mean function as a target differential function corresponding to the current signal released by the relay; Obtaining a mean envelope function corresponding to the current signal released by the relay, and demodulating the corresponding target differential function according to the mean envelope function corresponding to the current signal released by the relay to obtain a component signal to be determined; Obtaining the mean envelope function corresponding to the undetermined component signal, and forming a candidate slope sequence corresponding to the undetermined component signal by normalizing the slopes corresponding to all coordinate points on the curve represented by the mean envelope function corresponding to the undetermined component signal; Determine the mean square error between the converged slope sequence and the candidate slope sequence corresponding to the undetermined component signal as the target error corresponding to the undetermined component signal; The current signal released by the relay is updated to the pending component signal, and the pending component signal generation step is repeated until the function characterized by the latest pending component signal is a pure frequency modulation function, and the corresponding pending component signal with the smallest target error is screened out from all pending component signals as the target component signal, and the frequency modulation function of the first PF component is updated to the function characterized by the target component signal, and all mean envelope functions obtained in all repeated processes are multiplied to obtain the first envelope signal, and the product of the updated frequency modulation function and the first envelope signal is determined as the target interference component.
3. An anomaly detection system for relay current balancing, characterized in that, The system comprises: An acquisition module is used to acquire the current signal released by the relay and convert the released current signal to obtain a set of sinusoidal waves corresponding to the current signal segment in each short-time window and a phase corresponding to each sinusoidal wave; A first calculation module is used to determine the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment; The method of determining the to-be-demodulated factor corresponding to each current signal segment according to the phases corresponding to all sine waves in the sine wave set corresponding to each current signal segment and the mean envelope corresponding to each current signal segment includes: Determine the initial demodulation index corresponding to each current signal segment according to the maximum value and the minimum value in the phase corresponding to all the sine waves corresponding to each current signal segment; Determine the to-be-demodulated factor corresponding to each current signal segment according to the number of sinusoidal waves in the sinusoidal wave set corresponding to each current signal segment, the initial demodulation index corresponding to each current signal segment, and the standard deviation of all amplitudes on the corresponding mean envelope; The formula for the demodulation factor corresponding to the current signal segment is: ; ;in, It is i The factors to be demodulated corresponding to the current signal segments; i is the serial number of the current signal segment; is the sum normalization function; It is i The initial demodulation index corresponding to each current signal segment; It is i The number of sine waves in the sine wave set corresponding to the current signal segment; is the hyperbolic tangent function; It is i The standard deviation of all amplitudes on the mean envelope corresponding to each current signal segment; is a sine function; It is i The maximum value among the phases corresponding to all sine waves in the set of sine waves corresponding to the current signal segments; It is i The minimum value of the phases corresponding to all sine waves in the set of sine waves corresponding to the current signal segments; is the arc value of 180°; A second calculation module is used to determine the local convergence coefficient corresponding to each current signal segment according to the target steady-state factor, the Gaussian weight corresponding to each current signal segment and the factor to be demodulated, wherein the target steady-state factor is used to characterize the distribution uniformity of the phase type in all short-time windows; The method for obtaining the target steady-state factor comprises: Determine the corresponding target steady-state factor according to the number of different phases corresponding to all sine waves in the set of all sine waves, the total number of sine waves in the set of all sine waves, and the number of short-time windows corresponding to different phases; The formula corresponding to the target steady-state factor is: ;in, P is the target homeostatic factor; k is the number of different phases corresponding to all sine waves in the set of all sine waves; s is the total number of sine waves in the set of all sine waves; r It is the type number of different phases corresponding to all sine waves in the set of all sine waves; It is r The number of short-time windows corresponding to the phase; The method for determining the Gaussian weight corresponding to each current signal segment includes: determining the probability of each different signal amplitude appearing in all signal amplitudes in all current signal segments as the target probability corresponding to each signal amplitude; Determine a first Gaussian factor corresponding to each current signal segment according to target probabilities corresponding to different signal amplitudes in each current signal segment; Determine the second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments; Determine a Gaussian weight corresponding to each current signal segment according to the second Gaussian factor and the first Gaussian factor corresponding to each current signal segment, wherein both the first Gaussian factor and the second Gaussian factor are positively correlated with the Gaussian weight; The determining of the second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments includes: Determine a second Gaussianity factor according to the target probabilities corresponding to different signal amplitudes in all current signal segments and the mean and standard deviation of the target probabilities corresponding to all different signal amplitudes in all current signal segments; The formula corresponding to the Gaussian weight of the current signal segment is: ; ; ;in, It is i Gaussian weight corresponding to each current signal segment; i is the serial number of the current signal segment; It is i The first Gaussian factor corresponding to the current signal segment; T is the second Gaussianity factor; It is i The number of different signal amplitudes within a current signal segment; n It is i Type serial number of different signal amplitudes in a current signal segment; It is i In the current signal segment n The target probability corresponding to the signal amplitude; N is the number of different signal amplitudes within all current signal segments; f It is the type number of different signal amplitudes in all current signal segments; It is the first in all current signal segments. f The target probability corresponding to the signal amplitude; It is the mean of the target probabilities corresponding to all different signal amplitudes in all current signal segments; is the standard deviation of the target probability corresponding to all different signal amplitudes in all current signal segments; is a pre-set factor greater than 0; A correction module, used for correcting the frequency modulation function of the first PF component of the released current signal according to the local convergence coefficients corresponding to all current signal segments, to obtain a target interference component; The detection module is used to remove the target interference component from the released current signal to obtain a current detection signal, and perform abnormality detection on the current released by the relay according to the current detection signal.
