A method and system for automatically switching and monitoring a low-voltage dual-power switch cabinet
By calculating the characteristics of voltage and frequency data and adaptively adjusting the radius threshold of the clustering algorithm, the problem of low monitoring accuracy for automatic switching of low-voltage dual power supply switch cabinet power is solved, the accuracy of monitoring is improved, and economic losses are reduced.
Patent Information
- Application Number
- CN202410042216.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-01-11
AI Technical Summary
The automatic power switching monitoring accuracy of low-voltage dual power switch cabinets is low, resulting in large errors in power switching judgment, resulting in economic losses.
By obtaining the voltage data sequence and frequency data sequence, calculate the voltage deviation judgment sequence, floating threshold and frequency floating characteristics, calculate the floating deviation coefficient and disorder value of the voltage data, calculate the threshold regulation factor based on these characteristics, and adaptively adjust the clustering algorithm Radius threshold for power switching judgment.
The accuracy of power switching monitoring is improved, errors are reduced, and economic losses are reduced.
Smart Images

Figure CN117833441B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for automatically switching and monitoring a low-voltage dual-power switch cabinet. Background Art
[0002] With the development of power grids, the requirements for power supply reliability are getting higher and higher. Power supply failures will cause huge economic losses. Low-voltage dual-power switchgear is a device that can automatically switch power supplies according to circuit conditions. The device has the advantages of simple structure, easy operation and high reliability, and is widely used in power supply systems.
[0003] The use of low-voltage dual-power switchgear can effectively solve the problem of the time required to restore power supply, restore power supply in a shorter time, and reduce the losses caused by power outages. Although low-voltage dual-power switchgear has many advantages, it also has some problems, among which the low accuracy of automatic power switching monitoring is one of the more important problems. Traditional clustering algorithms can be used to analyze the relevant data of power monitoring, but the failure of the main power supply will cause abnormal changes in the floating threshold of the output voltage signal waveform and waveform distortion. When the density clustering algorithm based on DBSCAN is used to analyze the power switching monitoring data, the clustering processing of the monitoring data collected in different time periods will result in a large error when the same radius threshold is selected, resulting in a large error in the judgment of automatic power switching, which will cause a large deviation in the monitoring of automatic switching of the low-voltage dual-power switchgear, resulting in a large economic loss. Summary of the invention
[0004] The present invention provides a method and system for automatic switching monitoring of a low-voltage dual-power switch cabinet to solve the problem of low automatic switching monitoring accuracy of a low-voltage dual-power switch cabinet. The technical solution adopted is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for automatically switching and monitoring a low-voltage dual-power switch cabinet, the method comprising the following steps:
[0006] Acquire a voltage data sequence and a frequency data sequence;
[0007] The voltage deviation judgment sequence is obtained based on the voltage waveform analysis of the voltage data sequence; the floating threshold and frequency floating characteristics are calculated based on the difference between adjacent peaks of the voltage deviation judgment sequence; the floating deviation coefficient of the voltage data is calculated based on the floating threshold and frequency floating characteristics between adjacent peaks; the periodic time difference sequence is obtained based on the voltage signal period of the voltage deviation judgment sequence; the disorder degree value of the voltage data is calculated based on the curve change characteristics of the periodic time difference sequence;
[0008] The disorder coefficient of the voltage data is calculated based on the periodic time difference sequence and the disorder degree value of the voltage data; the threshold control factor is obtained based on the persistence characteristics of the voltage anomaly impact and the disorder coefficient of the voltage data; the radius threshold is calculated based on the threshold control factor, and the clustering result of the voltage data is obtained by using the clustering algorithm based on the radius threshold;
[0009] The power switching judgment coefficient is calculated according to the clustering results of the voltage data, and the low-voltage dual-power switch cabinet is monitored based on the power switching judgment coefficient to complete automatic switching.
[0010] Preferably, the method for obtaining the voltage deviation judgment sequence according to the voltage waveform analysis of the voltage data sequence is:
[0011] According to the voltage waveform diagram of the collected voltage data sequence, the voltage data corresponding to the peaks and troughs in the diagram are obtained, and the voltage data corresponding to the peaks and troughs are sorted in ascending time order, and adjacent data in the sorting result are taken as data pairs, and the sequence formed by the data pairs is taken as the voltage deviation judgment sequence of the voltage data.
[0012] Preferably, the method for calculating the floating threshold and the frequency floating feature according to the difference between adjacent peaks of the voltage deviation judgment sequence is:
[0013] The difference between the voltage data corresponding to the peak and the trough of the data pair in the voltage deviation judgment sequence is calculated as the floating threshold of the data pair, and the frequency sequence corresponding to the data pair is obtained according to the frequency data of each collection moment in the time interval between the collection time of the voltage data corresponding to the peak and the trough of the data pair, and the mean of the values in the frequency sequence is calculated as the frequency floating feature of the data pair.
[0014] Preferably, the method for calculating the floating deviation coefficient of voltage data according to the characteristics of floating threshold and frequency floating performance between adjacent peaks is:
[0015]
[0016] In the formula, τ i It represents the frequency fluctuation characteristics between adjacent peaks of the i-th data pair in the voltage deviation judgment sequence, τ i-1 represents the frequency fluctuation characteristics between adjacent peaks of the i-1th group of data in the voltage deviation judgment sequence; γ i represents the floating threshold calculated from the adjacent peak values of the i-th data pair in the voltage deviation judgment sequence, γ i-1 represents the floating threshold calculated from the adjacent peak values of the i-1th group of data pairs in the voltage deviation judgment sequence; n represents the number of data pairs in the voltage deviation judgment sequence, and Pc represents the floating deviation coefficient of the voltage data.
[0017] Preferably, the method for obtaining the period time difference sequence according to the voltage signal period of the voltage deviation judgment sequence is:
[0018] The difference in acquisition time of voltage data corresponding to adjacent peaks in the voltage deviation judgment sequence is calculated as the cycle time difference of the voltage signal, and a cycle time difference sequence of voltage data is constructed according to the cycle time difference and the arrangement order of adjacent peaks in the voltage deviation judgment sequence.
[0019] Preferably, the method for calculating the disorder degree value of voltage data according to the curve change characteristics of the periodic time difference sequence is:
[0020] The position of the value in the cycle time difference sequence is used as the abscissa, and the value in the cycle time difference sequence is used as the ordinate, and a change curve of the cycle time difference sequence is obtained according to the abscissa and the ordinate, and the corresponding value when the value starts to change drastically is obtained according to the cycle time change curve as a sudden cycle time difference, and the adjacent peaks of the sudden cycle time difference are obtained according to the sudden cycle time difference;
[0021] The earlier acquisition time in the voltage data corresponding to the adjacent peaks is used as the first acquisition time of the voltage distortion, and the acquisition time corresponding to the last value in the voltage deviation judgment sequence is used as the second acquisition time of the voltage distortion. The ratio of the difference between the second acquisition time and the first acquisition time of the voltage distortion and the acquisition cycle time of the voltage data sequence is calculated as the first deviation coefficient of the voltage data, and the product of the first deviation coefficient of the voltage data and the floating deviation coefficient is calculated as the disorder degree value of the voltage data.
[0022] Preferably, the method for calculating the disorder coefficient of the voltage data according to the periodic time difference sequence and the disorder degree value of the voltage data is:
[0023] The difference between the maximum value of the value in the voltage deviation data sequence and the maximum value of the stable voltage threshold is used as the numerator, the maximum value of the stable voltage threshold is used as the denominator, and the ratio of the numerator to the denominator is used as the first stability coefficient of the voltage data; the difference between the minimum value of the stable voltage threshold and the minimum value of the value in the voltage deviation data sequence is used as the numerator, the minimum value of the stable voltage threshold is used as the denominator, and the ratio of the numerator to the denominator is used as the second stability coefficient of the voltage data;
[0024] The product of the sum of the first stability coefficient of the voltage data and the second stability coefficient of the voltage data and the disorder degree value of the voltage data is calculated as the disorder coefficient of the voltage data.
[0025] Preferably, the method for obtaining the threshold control factor according to the persistence characteristics of the voltage anomaly impact and the disorder coefficient of the voltage data is:
[0026]
[0027] In the formula, α x and α x-1 They represent the xth and x-1th data in the voltage deviation judgment sequence F respectively, θ(D) represents the distortion rate of the waveform in the voltage signal distortion time period D, δ represents the disorder coefficient of the voltage data, and ε represents the threshold control factor.
[0028] Preferably, the method of calculating the radius threshold according to the threshold control factor and obtaining the clustering result of the voltage data by using a clustering algorithm based on the radius threshold is:
[0029] Eps=ω+[1-norm(ε)]
[0030] Where ω represents the adjustment parameter, norm( ) represents the normalization function, ε represents the threshold control factor, and Eps represents the radius threshold.
[0031] In the second aspect, an embodiment of the present invention also provides a low-voltage dual-power switch cabinet automatic switching monitoring system, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of any one of the above methods when executing the computer program.
[0032] The beneficial effects of the present invention are as follows: through the distortion characteristics and frequency instability characteristics of the voltage signal deviating from the stable range when the main power supply fails, a disorder coefficient of the voltage data is constructed, a threshold control factor is constructed according to the disorder coefficient of the voltage data, and the radius threshold is calculated based on the threshold control factor. The beneficial effects of the present invention are that the influence of the main power failure on the data characteristics can be analyzed at different collection times, the radius threshold can be adaptively adjusted, and a more accurate cluster analysis can be performed on the power switching monitoring data to obtain an accurate power switching signal, thereby improving the accuracy of automatic switching monitoring of low-voltage dual-power switchgear. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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 labor.
[0034] Figure 1 A schematic flow chart of a method for automatic switching monitoring of a low-voltage dual-power switch cabinet provided by one embodiment of the present invention;
[0035] Figure 2 A schematic diagram of obtaining a voltage deviation judgment sequence provided by an embodiment of the present invention;
[0036] Figure 3 A schematic diagram of a variation curve of a periodic time difference sequence provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] See also Figure 1 , which shows a flow chart of a method for automatic switching monitoring of a low-voltage dual-power switch cabinet provided by an embodiment of the present invention, the method comprising the following steps:
[0039] Step S001, collecting scene data to obtain a voltage data sequence and a frequency data sequence.
[0040] By setting sensors in the low-voltage dual-power switch cabinet, the relevant monitoring data of the main power supply is collected. The specific operation is to set the voltage sensor and frequency sensor to collect the output voltage and output frequency of the main power supply, and obtain the waveform of the voltage signal through the oscilloscope. The models of the voltage sensor, oscilloscope and frequency sensor can be selected by the implementer. The set sensors can collect voltage and frequency data in real time. The sequence length of the voltage data and frequency data obtained in one collection cycle is 600, and the time interval for collecting data is 1s. The voltage data sequence Y and the frequency data sequence P in one collection cycle are obtained.
[0041] At this point, the voltage data sequence and the frequency data sequence have been acquired.
[0042] Step S002, obtaining a voltage deviation judgment sequence according to a voltage data sequence, calculating a floating deviation coefficient according to deviation characteristics shown by the voltage deviation sequence, and calculating a disorder degree value according to the floating deviation coefficient and voltage waveform characteristics.
[0043] According to the monitoring data of the automatic switching management of the switch cabinet, the output voltage and frequency of the main power supply in the power supply system are analyzed. When the main power supply fails, the periodicity of its voltage signal is destroyed, which is mainly manifested in unstable voltage data and its output voltage deviates from the normal output voltage range. Therefore, the time of the fault is random, resulting in the monitoring data of different collection cycles may show large differences in data characteristics.
[0044] Specifically, according to the collected voltage data sequence Y and frequency data sequence P, the DBSCAN-based density clustering algorithm is used to analyze the collected voltage data sequence. According to the change characteristics of the output voltage and frequency when the main power supply fails, the radius threshold of the density clustering algorithm is adjusted. The value of the minimum number of neighborhood data points MinPts is 10, the radius threshold is Eps, and the radius threshold is determined by the threshold control factor.
[0045] First, the voltage output by the main power supply is an AC voltage, so the waveform of the voltage data obtained through the oscilloscope has the characteristics of periodic changes during stable operation. When the monitoring data changes abnormally and the low-voltage dual power supply needs to be switched, the change in the voltage signal waveform no longer shows periodic changes. When there is no need to switch the low-voltage dual power supply, the output voltage waveform is stable; when the main power supply is abnormal, its voltage signal will deviate from the normal range. Therefore, according to the voltage waveform of the collected voltage data sequence Y, the voltage data corresponding to the peak value is selected. The specific selection process is as follows: Figure 2 As shown. Two adjacent peaks constitute a set of data pairs [α, β], and the voltage deviation judgment sequence F = [α1, β1, α2, β2, …, α n ,β n ], calculate the deviation of the floating threshold of the voltage signal, the specific calculation formula is as follows:
[0046] γ i =|α i -β i |
[0047] In the formula, α i and β i represents the voltage value corresponding to the i-th group of adjacent peaks in the voltage signal waveform, γ i is the floating threshold calculated based on the adjacent peak values of the voltage signal waveform, that is, the floating threshold of the ith data pair in the voltage deviation judgment sequence. i ,β i ], the frequency sequence p at the corresponding acquisition time can be obtained. i , calculate the frequency floating characteristics according to the frequency sequence, the specific calculation formula is as follows:
[0048]
[0049] In the formula, represents the uth data in the frequency sequence, and v represents the sequence p i The number of data in , τ i It represents the frequency floating characteristics between the i-th group of adjacent peaks. The floating threshold deviation of the voltage data can be further calculated based on the floating threshold and frequency floating characteristics. The specific calculation formula is as follows:
[0050]
[0051] In the formula, τ i It represents the frequency fluctuation characteristics between adjacent peaks of the i-th data pair in the voltage deviation judgment sequence, τ i-1 represents the frequency fluctuation characteristics between adjacent peaks of the i-1th group of data in the voltage deviation judgment sequence; γ i represents the floating threshold calculated from the adjacent peak values of the i-th data pair in the voltage deviation judgment sequence, γ i-1 represents the floating threshold calculated from the adjacent peak values of the i-1th group of data pairs in the voltage deviation judgment sequence; n represents the number of data pairs in the voltage deviation judgment sequence, and Pc represents the floating deviation coefficient of the voltage data sequence. When the main power supply fails, the output voltage signal will exceed the stable threshold range and destroy the periodic change characteristics. The larger the deviation of the calculated floating threshold, that is, (γ i -γ i-1 ) value is larger; when the main power fails, its output frequency will be unstable, and the floating threshold deviation of the voltage signal will be larger, so the calculated |τ i -τ i-1 The larger the value of | is, the larger the value of the floating deviation coefficient Pc is, which means that the disorder characteristics of the output of the main power supply monitoring data are more obvious, and the main power supply failure operation may cause a large error in the data clustering analysis.
[0052] Further analysis shows that the occurrence of main power failure may lead to voltage drop and signal distortion. The voltage signal waveform shows the characteristics of non-periodic changes. According to the obtained sequence F, the time when the voltage signal distortion occurs is determined by the periodic characteristics, that is, the difference between adjacent α in the sequence is calculated to obtain the time difference of the voltage signal peak. Under normal operating conditions, each cycle of the voltage signal is fixed, but when abnormal deviations occur, its cycle time changes are unstable. Therefore, by calculating the time difference between adjacent α, the cycle time difference sequence B=[b1,b2,…,b c ], project the values in sequence B into the rectangular coordinate system, the horizontal axis is the position of the value in the sequence, the vertical axis is the size of the value, and the corresponding points are connected to obtain the change curve. The change curve of the periodic time difference sequence is as follows: Figure 3 According to the cycle time difference change curve, the cycle time difference at the beginning of the change is obtained. If the corresponding data at the beginning of the change is b x , then b x It can correspond to the adjacent data [α x ,α x+1 ], so according to the voltage signal peak α x The voltage waveform distortion occurs at the corresponding moment and the disorder degree value is calculated. The specific calculation formula is as follows:
[0053]
[0054] In the formula, T(α x ) represents the voltage signal α x The corresponding acquisition time, that is, the time when the voltage waveform distortion occurs, T(β n ) represents the voltage signal β n At the corresponding acquisition time, Pc represents the floating deviation coefficient of the voltage signal, and θ represents the disorder value of the voltage data. Analyzing the signal waveform of the collected voltage data, the time period of signal distortion is T(α x ) to T(β n ), the entire time of collecting voltage data is T, so the impact range of voltage anomaly can be roughly determined by the waveform; if the impact range of the anomaly is larger, The larger the value of is, the greater the possibility of main power failure is. The larger the value of Pc is, the larger the obtained disorder degree value θ is, indicating that the abnormal disorder characteristics of the data are more obvious.
[0055] At this point, the disorder level value of the voltage data is obtained.
[0056] Step S003, calculating the disorder coefficient according to the disorder degree value, calculating the threshold control factor based on the continuity analysis of the disorder coefficient and abnormal impact, and calculating the radius threshold according to the threshold control factor to complete clustering.
[0057] According to the moment when the voltage waveform becomes abnormal, analyze whether the abnormal stage of the voltage signal is affected by continuous disorder. The moment when the voltage waveform distortion occurs is the voltage signal α x The corresponding time T(α x ). According to the voltage deviation judgment sequence F=[α1,β1,α2,β2,…,α n ,β n ], the time period for waveform analysis can be determined to be T(α1) to T(β n ), so according to the acquisition time T(α x ), the voltage signal is divided into time periods from T(α1) to T(α x ) and T(α x ) to T(β n ), where according to the time period T(α x ) to T(β n ) Determine the voltage signal distortion time period D. Calculate the disorder coefficient of the voltage data according to the distortion influence range of the main power supply operation output parameters. The specific calculation formula is as follows:
[0058]
[0059] In the formula, max(F) and min(F) represent the maximum and minimum values in the voltage deviation judgment sequence F, y1 and y2 represent the maximum and minimum values of the stable voltage threshold, θ represents the disorder degree value of the collected voltage data, and δ represents the disorder coefficient of the voltage data. If the output parameters of the main power supply are affected by the distortion in a larger range, that is, the greater the abnormality of the voltage signal relative to the stable voltage, the calculated The larger the value of ; the more obvious the abnormal disorder characteristics of the voltage data are, the larger the value of the disorder degree θ of the voltage data is, and the larger the value of the disorder coefficient δ of the obtained voltage data is.
[0060] According to the time period T(α x ) to T(β n ) reflects the distortion characteristics of the voltage signal waveform. x ) to T(β n ) The time period determined is D. The calculation of the voltage waveform distortion rate is a well-known technology and will not be described here. The threshold control factor is further calculated based on the turbulence coefficient of the voltage data and the distortion characteristics affected by the voltage anomaly. The specific calculation formula is as follows:
[0061]
[0062] In the formula, α x and α x-1 They represent the xth and x-1th data in the voltage deviation judgment sequence F, θ(D) represents the waveform distortion rate in the voltage signal distortion time period D, δ represents the disorder coefficient of the voltage data, and ε represents the threshold control factor. Since the main power failure may cause a sudden increase or decrease in the voltage signal at the moment, and its change characteristics are more obvious, the greater the difference in the peak values at adjacent moments, that is, α x -α x-1 The larger the value is, the larger the impact range caused by the main power failure is, the larger the disorder coefficient δ of the voltage data is, and the greater the transient impact (sudden increase or decrease) at the moment of abnormality, The larger the value, the larger the corresponding fault impact range (time period T (α x ) to T(β n )),the greater the waveform distortion is,the greater the value of θ(D) is,and the greater the value of the threshold control factor ε is,which means that the main power failure has a greater impact on the data during the acquisition period and has a greater impact on the distribution of data during the acquisition time. It is necessary to further calculate and select the appropriate radius threshold to achieve more accurate clustering analysis and improve the accuracy of automatic power switching management.
[0063] The radius threshold is calculated according to the threshold control factor ε. The specific calculation formula is as follows:
[0064] Eps=ω+[1-norm(ε)]
[0065] In the formula, ω represents the adjustment parameter, and its value is taken as the empirical value of 0.1; norm() represents the normalization function, and Eps represents the radius threshold. If the main power supply fails during the monitoring data acquisition cycle, and the failure continues to affect a large range, the larger the value of ε is, the smaller the radius threshold needs to be, and the accuracy of voltage data clustering is improved. According to the different data characteristics caused by the main power supply failure in different acquisition cycles, the radius threshold is calculated, the main power supply failure is analyzed more accurately, and the power supply automatic switching signal is fed back to complete the clustering of voltage data, and the clustering result of voltage data is obtained.
[0066] At this point, the clustering result of the voltage data is obtained according to the calculated radius threshold.
[0067] Step S004, calculating a power switching judgment coefficient according to the clustering result, and automatically switching monitoring the low-voltage dual power supply based on the power switching judgment coefficient.
[0068] According to the above clustering results, the abnormal situation of the collected voltage data sequence Y is analyzed. The number of output clusters is z, and the mean of the voltage data in each cluster is calculated. According to the clustering results, the power automatic switching judgment coefficient is calculated. The specific calculation formula is as follows:
[0069]
[0070] In the formula, ρ d It represents the mean value of the voltage data of the dth cluster, w represents the value of the stable voltage output by the main power supply, z represents the number of clusters, norm() represents the normalization function, μ represents the power switching judgment coefficient, and the switching threshold is set to 0.1 in the present invention. When the switching threshold is exceeded, a power switching signal is sent to the switching management device to complete the monitoring of the automatic switching of the low-voltage dual-power switch cabinet.
[0071] The power switching judgment coefficient at each moment is uploaded to the automatic switching monitoring system of the low-voltage dual power switch cabinet. The automatic switching monitoring system of the low-voltage dual power switch cabinet generates a power switching signal according to the received data. Secondly, the automatic switching monitoring system of the low-voltage dual power switch cabinet sends the generated power switching signal to the automatic switching device of the low-voltage dual power switch cabinet to complete the automatic switching of the low-voltage dual power switch cabinet.
[0072] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for automatic switching monitoring of a low-voltage dual-power switch cabinet, characterized in that: The method comprises the following steps: Acquire a voltage data sequence and a frequency data sequence; The voltage deviation judgment sequence is obtained based on the voltage waveform analysis of the voltage data sequence; the floating threshold and frequency floating characteristics are calculated based on the difference between adjacent peaks of the voltage deviation judgment sequence; the floating deviation coefficient of the voltage data is calculated based on the floating threshold and frequency floating characteristics between adjacent peaks; the periodic time difference sequence is obtained based on the voltage signal period of the voltage deviation judgment sequence; the disorder degree value of the voltage data is calculated based on the curve change characteristics of the periodic time difference sequence; The disorder coefficient of the voltage data is calculated based on the periodic time difference sequence and the disorder degree value of the voltage data; the threshold control factor is obtained based on the persistence characteristics of the voltage anomaly impact and the disorder coefficient of the voltage data; the radius threshold is calculated based on the threshold control factor, and the clustering result of the voltage data is obtained by using the clustering algorithm based on the radius threshold; The power switching judgment coefficient is calculated according to the clustering result of the voltage data, and the low-voltage dual power switch cabinet is monitored based on the power switching judgment coefficient to complete automatic switching; The method for acquiring the voltage data sequence and the frequency data sequence is as follows: collecting voltage and frequency data in real time, wherein the sequence length of the voltage data and the frequency data obtained in one collection cycle is 600, and the voltage data sequence and the frequency data sequence in one collection cycle are obtained; The method for obtaining a voltage deviation judgment sequence based on a voltage waveform analysis of a voltage data sequence is as follows: obtaining voltage data corresponding to peaks and troughs in a voltage waveform diagram of a collected voltage data sequence, sorting the voltage data corresponding to the peaks and troughs in ascending time order, taking adjacent data in the sorting result as data pairs, and taking a sequence formed by the data pairs as a voltage deviation judgment sequence for voltage data; The method for calculating the floating threshold and frequency floating characteristics according to the difference between adjacent peaks of the voltage deviation judgment sequence is: Calculate the difference between the voltage data corresponding to the peak and the trough of the data pair in the voltage deviation judgment sequence as the floating threshold of the data pair, obtain the frequency sequence corresponding to the data pair according to the frequency data of each acquisition time in the time interval between the acquisition time of the voltage data corresponding to the peak and the trough of the data pair, and calculate the mean value of the values in the frequency sequence as the frequency floating feature of the data pair; The method for calculating the floating deviation coefficient of voltage data according to the characteristics of floating threshold and frequency floating performance between adjacent peaks is: In the formula, τ i represents the frequency fluctuation characteristics between adjacent peaks of the i-th data pair in the voltage deviation judgment sequence, τ i-1 represents the frequency fluctuation characteristics between adjacent peaks of the i-1th group of data in the voltage deviation judgment sequence; γ i represents the floating threshold calculated from the adjacent peak values of the i-th group of data in the voltage deviation judgment sequence, γ i-1 represents the floating threshold calculated from the adjacent peak values of the i-1th group of data pairs in the voltage deviation judgment sequence; n represents the number of data pairs in the voltage deviation judgment sequence, and Pc represents the floating deviation coefficient of the voltage data; The method for obtaining the period time difference sequence according to the voltage signal period of the voltage deviation judgment sequence is: Calculate the difference in acquisition time of voltage data corresponding to adjacent peaks in the voltage deviation judgment sequence as the cycle time difference of the voltage signal, and form a cycle time difference sequence of voltage data according to the cycle time difference and the arrangement order of data pairs corresponding to adjacent peaks in the voltage deviation judgment sequence; The method for calculating the disorder degree value of voltage data according to the curve change characteristics of the periodic time difference sequence is: The position of the value in the cycle time difference sequence is used as the abscissa, and the value in the cycle time difference sequence is used as the ordinate, and a change curve of the cycle time difference sequence is obtained according to the abscissa and the ordinate, and the corresponding value when the value starts to change drastically is obtained according to the cycle time change curve as a sudden cycle time difference, and the adjacent peaks of the sudden cycle time difference are obtained according to the sudden cycle time difference; The earlier acquisition time in the voltage data corresponding to the adjacent wave peaks is used as the first acquisition time of the voltage distortion, the acquisition time corresponding to the last value in the voltage deviation judgment sequence is used as the second acquisition time of the voltage distortion, the ratio of the difference between the second acquisition time and the first acquisition time of the voltage distortion and the acquisition cycle time of the voltage data sequence is calculated as the first deviation coefficient of the voltage data, and the product of the first deviation coefficient of the voltage data and the floating deviation coefficient is calculated as the disorder degree value of the voltage data; The method for calculating the disorder coefficient of voltage data according to the cycle time difference sequence and the disorder degree value of voltage data is: The difference between the maximum value of the value in the voltage deviation data sequence and the maximum value of the stable voltage threshold is used as the numerator, the maximum value of the stable voltage threshold is used as the denominator, and the ratio of the numerator to the denominator is used as the first stability coefficient of the voltage data; the difference between the minimum value of the stable voltage threshold and the minimum value of the value in the voltage deviation data sequence is used as the numerator, the minimum value of the stable voltage threshold is used as the denominator, and the ratio of the numerator to the denominator is used as the second stability coefficient of the voltage data; Calculating a product of a sum of a first stability coefficient of the voltage data and a second stability coefficient of the voltage data and a disorder degree value of the voltage data as a disorder coefficient of the voltage data; The method for obtaining the threshold control factor according to the persistence characteristics of the voltage anomaly impact and the disorder coefficient of the voltage data is: In the formula, α x and α x-1 They represent the xth and x-1th data in the voltage deviation judgment sequence F, respectively; θ(D) represents the distortion rate of the waveform in the voltage signal distortion time period D; δ represents the disorder coefficient of the voltage data; and ε represents the threshold control factor; The method of calculating the radius threshold according to the threshold control factor and obtaining the clustering result of the voltage data by using the clustering algorithm based on the radius threshold is: Eps=ω+[1-norm(ε)] In the formula, ω represents the adjustment parameter, norm() represents the normalization function, ε represents the threshold control factor, and Eps represents the radius threshold; The calculation formula of the power switching judgment coefficient is: In the formula, ρ d represents the mean value of the voltage data of the dth cluster, w represents the value of the stable voltage output by the main power supply, z represents the number of clusters, norm() represents the normalization function, and μ represents the power switching judgment coefficient.
2. A low-voltage dual-power switch cabinet automatic switching monitoring system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: The processor implements the steps of the method according to claim 1 when executing the computer program.
