A low-power intelligent power switching method and system

By constructing power supply fluctuation and correlation, combined with the LOF anomaly detection algorithm, the problem of low efficiency in identifying circuit abnormal faults when the main power supply is supplied is solved, fast power switching is achieved, and power switching efficiency is improved.

CN118693983BActive Publication Date: 2024-10-29BEIJING HUACHUANG QIXING MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411162115.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-10-29
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of identifying abnormal circuit faults when the main power supply is supplied is low, resulting in low power switching efficiency and the inability to quickly switch to the backup power supply, affecting the continuity of circuit power supply.

Method used

By obtaining the current, voltage and electric power sequence when the main power supply is supplied, the local change sequence and anomaly index are constructed. Combined with the power supply volatility and correlation, the LOF anomaly detection algorithm is used to realize intelligent switching of the power supply and avoid traversing the data set to calculate the local outlier factor.

Benefits of technology

It improves the abnormal fault detection efficiency, realizes the rapid identification of abnormal circuit faults when the main power supply is supplied, improves the power switching efficiency, and ensures the continuity of circuit power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118693983B_ABST
    Figure CN118693983B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of circuit fault measurement, and proposes a low-power intelligent power switching method and system, including: using sensors to obtain current sequence, voltage sequence and electric power sequence; obtaining power supply fluctuation and power supply variation difference according to current sequence and voltage sequence; obtaining power supply abnormality index according to power supply fluctuation and power supply variation difference; obtaining cumulative correlation according to electric power sequence; obtaining correlation factor according to cumulative correlation; obtaining electric variable correlation according to correlation factor; obtaining fault index according to electric variable correlation and power supply abnormality index; obtaining circuit fault measurement result based on fault index by using abnormality detection algorithm, and completing power supply switching based on circuit fault measurement result. The present application improves the efficiency of power supply switching by improving the efficiency of circuit fault measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of circuit fault measurement, and in particular to a low-power power supply intelligent switching method and system. Background Art

[0002] With the development of integrated chip technology, the requirements for low-power power supply continuity are getting higher and higher. In order to improve the energy efficiency of the system in the integrated chip, a dual power supply system is usually used. For example, the RTC circuit of the MCU chip needs to keep working all the time, and usually two power supplies are set, one for the commonly used main power supply and the other for the backup power supply, in order to ensure the normal operation of the circuit in the chip.

[0003] Normally, the circuit is powered by the main power supply. When the circuit powered by the main power supply has an abnormal fault, the backup power supply is automatically switched to supply power to it. When the circuit powered by the main power supply returns to normal, the system switches to the main power supply again to ensure the continuity of the circuit power supply. However, how to quickly identify the abnormal fault of the circuit powered by the main power supply has become the main problem of power switching. The abnormal fault of the main power supply is quickly identified, and then the power supply is quickly switched to supply power to the circuit to ensure the continuous operation of the circuit.

[0004] At present, most of the abnormalities in voltage and current during the main power supply process are detected to identify abnormal faults in the circuit when the main power supply is supplied, and then switch to the backup power supply to power the circuit, so as to ensure the normal operation of the circuit in the chip. Common anomaly detection algorithms such as the LOF anomaly detection algorithm (Local outlier factor, LOF) are generally applicable to the detection of abnormal fault states of circuits. However, the traditional LOF anomaly detection algorithm needs to traverse the entire data set to calculate the LOF local outlier factor of each data point, so it is impossible to effectively and quickly identify abnormal faults in the circuit when the main power supply is supplied, which leads to low efficiency of power switching. Summary of the invention

[0005] The present application provides a low-power intelligent power switching method and system to solve the problem of low power switching efficiency. The technical solutions adopted are as follows:

[0006] In a first aspect, an embodiment of the present application provides a low-power intelligent power switching method, the method comprising the following steps:

[0007] The current, voltage and electric power at each acquisition time in the power supply circuit when the main power supply is supplied are obtained to form a current sequence, a voltage sequence and an electric power sequence respectively;

[0008] According to the data points at the neighboring collection moments at each collection moment in the current sequence, a local current change sequence, a local current change difference sequence and a current change difference step sequence of the data points at each collection moment are constructed; and for the voltage sequence and the electric power sequence, accordingly, a local voltage change sequence, a local voltage change difference sequence, a voltage change difference step sequence and a local electric power change sequence of the data points at each collection moment are obtained;

[0009] The power supply volatility at each acquisition moment is obtained according to the distribution and degree of change of the data in the local current change sequence, the local current change difference sequence and the current change difference step sequence and the local voltage change sequence, the local voltage change difference sequence and the voltage change difference step sequence, and the power supply anomaly index at each acquisition moment is obtained by combining the difference between the local current change sequence at each acquisition moment and its adjacent acquisition moment, and the difference between the local voltage change sequences;

[0010] According to the linear relationship between the local electric power change sequence and the local current change sequence and the local voltage change sequence, the electric variable correlation feature sequence at each acquisition moment is constructed;

[0011] The cumulative correlation of each acquisition moment is obtained according to the correlation between the local electric power change sequence and the local current change sequence and the local voltage change sequence, and the electric variable correlation of each acquisition moment is obtained based on the difference between the cumulative correlation of each acquisition moment and its adjacent acquisition moment, combined with the distance between the electric variable association feature sequence of each acquisition moment and its adjacent acquisition moment;

[0012] The fault index at each acquisition moment is obtained according to the power supply anomaly index and the electrical variable correlation at each acquisition moment, and the circuit fault measurement result is obtained by using the anomaly detection algorithm to switch the power supply.

[0013] Preferably, the method of acquiring a local current change sequence, a local current change difference sequence and a current change difference step sequence of data points at each acquisition moment according to the current sequence includes:

[0014] The data point at each acquisition moment in the current sequence is taken as the first target data point, the first preset parameter number of data points with the closest time interval to the first target data point are arranged in ascending order of time to form a local current change sequence of the first target data point, the first-order differential sequence of the local current change sequence is taken as the local current change difference sequence of the first target data point, and all the data in the local current change difference sequence are arranged in ascending order of numerical values ​​to form a current change difference step sequence of the first target data point.

[0015] Preferably, the method for acquiring the power supply volatility at each acquisition moment is:

[0016] , where represents the power supply fluctuation at the i-th acquisition moment, represents an exponential function with a natural constant as base, The information entropy of all data values ​​in the local current change difference sequence of the data point at the i-th acquisition time in the current sequence, , , They represent the mode, mean, and median of the current change difference step sequence of the data point at the i-th acquisition moment in the current sequence, The information entropy of all data values ​​in the local voltage change difference sequence of the data point at the i-th acquisition time in the voltage sequence is represented. , , They respectively represent the mode, mean and median of the voltage change difference step sequence of the data point at the i-th acquisition moment in the voltage sequence.

[0017] Preferably, the method for acquiring the power anomaly index at each acquisition moment is:

[0018] The previous and next collection moments of each collection moment are taken as the adjacent collection moments of each collection moment;

[0019] Analyze the difference between the local current change sequence of the data point at each acquisition moment and the data point at each adjacent acquisition moment, and the difference between the local voltage change sequences, which are recorded as the first difference and the second difference respectively, and take the average value of the first difference and the second difference accumulated at all adjacent acquisition moments as the power supply change difference at each acquisition moment;

[0020] The product of the power supply variation difference and the power supply volatility is used as the power supply anomaly index at each collection moment.

[0021] Preferably, the method for acquiring the electrical variable associated characteristic sequence at each acquisition moment is:

[0022] The electric power is taken as the dependent variable, the current and voltage are taken as the two independent variables affecting the electric power respectively, the local electric power change sequence, the local current change sequence and the local voltage change sequence of the data point at each acquisition moment are taken as the input of the multiple linear regression algorithm respectively, and the multiple linear regression equation between the dependent variable and the independent variable at each acquisition moment is output, and the constant term coefficient of the multiple linear regression equation and all the independent variable coefficients are arranged in the order before and after the coefficients in the multiple linear regression equation to form the electric variable association feature sequence at each acquisition moment.

[0023] Preferably, the calculation formula of the cumulative correlation is:

[0024] , where represents the cumulative correlation at the i-th acquisition moment, represents the Pearson correlation coefficient function, , , They respectively represent the local electric power change sequence, local current change sequence, and local voltage change sequence of the data point at the i-th acquisition moment.

[0025] Preferably, the method for obtaining the electrical variable correlation at each acquisition moment is:

[0026] The correlation factor of each acquisition moment is calculated based on the difference in the cumulative correlation between each acquisition moment and its adjacent acquisition moments: , where is the correlation factor at the i-th acquisition moment, N is the number of adjacent collection moments of the ith collection moment, , are the cumulative correlations of the i-th acquisition moment and its j-th adjacent acquisition moment, is the error parameter;

[0027] Then the correlation of the electrical variables at the i-th acquisition moment is The expression is: , where for distance, , are the electrical variable correlation feature sequences of the ith acquisition moment and its jth adjacent acquisition moment, respectively.

[0028] Preferably, the calculation formula of the fault index at each acquisition moment is:

[0029] , where represents the fault index at the i-th acquisition moment, represents an exponential function with a natural constant as base, Indicates the power supply anomaly index at the i-th collection moment.

[0030] Preferably, the method of obtaining the circuit fault measurement result to switch the power supply is:

[0031] The LOF anomaly detection algorithm is used to obtain the anomaly detection results of the fault index at all acquisition moments;

[0032] When an abnormal data point appears in the abnormal detection result, the power supply in the power supply circuit in the integrated chip is switched to the backup power supply; otherwise, the power supply in the power supply circuit in the integrated chip is still the main power supply.

[0033] In the second aspect, an embodiment of the present application also provides a low-power intelligent power switching system, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned low-power intelligent power switching methods are implemented.

[0034] The beneficial effects of the present application are as follows: the present application constructs a power anomaly index by analyzing power supply volatility and power supply variation differences, and constructs electrical variable correlation based on the analysis of the correlation between electric power and current and voltage, and obtains a fault index by data fusion based on the power anomaly index and electrical variable correlation, and then uses the LOF anomaly detection algorithm to complete intelligent power switching, avoiding the LOF anomaly detection algorithm from calculating the local outlier factor of each data point in the electrical variable data set, thereby improving the efficiency of abnormal fault detection. The present application improves the efficiency of abnormal fault detection, thereby effectively and quickly identifying abnormal faults of the circuit when the main power supply is supplied, thereby improving the efficiency of power switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A schematic diagram of a flow chart of a low-power intelligent power switching method provided by an embodiment of the present application;

[0037] Figure 2 A flowchart of an implementation method of a low-power intelligent power switching method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] See also Figure 1 , which shows a flow chart of a low-power intelligent power switching method provided by an embodiment of the present application, the method comprising the following steps:

[0040] Step S001, obtaining the current, voltage and electric power at each acquisition moment in the power supply circuit when the main power supply is supplied, and forming a current sequence, a voltage sequence and an electric power sequence respectively.

[0041] This application measures the abnormal faults that occur in the circuit when the main power supply is supplied, thereby realizing intelligent power switching through the circuit fault measurement results, and uses current sensors, voltage sensors and power sensors to respectively collect the current, voltage and electric power in the power supply circuit during the process of the main power supply supplying the integrated chip. The data collection time period of this application is one minute before the current moment, and the sampling rate is 1KHz. The implementer can decide the value of the sampling rate according to the actual situation. In order to facilitate the subsequent analysis of the abnormal faults of the circuit when the main power supply is supplied, the sequences of the collected current, voltage and electric power in ascending time order are respectively used as the current time series, voltage time series and electric power time series.

[0042] In order to eliminate the influence of noise on the collected information, improve the accuracy of the collected information, and avoid the influence of the dimensions of different types of data on the subsequent circuit abnormal fault analysis results, the current time series, voltage time series, and electric power time series are respectively used as the input of the LMS adaptive filtering algorithm (Least Mean Square, LMS), and the output of the LMS adaptive filtering algorithm is used as the current time series, voltage time series, and electric power time series after filtering. Subsequently, the Z-score normalization is used to normalize the filtered current time series, voltage time series, and electric power time series, and the normalized current time series, voltage time series, and electric power time series are used as the current series, voltage series, and electric power series, respectively. The LMS adaptive filtering algorithm and Z-score normalization are both well-known technologies, and the specific process will not be repeated.

[0043] At this point, the current sequence, voltage sequence, and electric power sequence are obtained.

[0044] Step S002, constructing a local current change sequence, a local current change difference sequence and a current change difference step sequence of the data points at each collection moment according to the data points at the neighboring collection moments in the current sequence, and correspondingly obtaining a local voltage change sequence, a local voltage change difference sequence, a voltage change difference step sequence and a local electric power change sequence of the data points at each collection moment for the voltage sequence and the electric power sequence.

[0045] In order to analyze the changes of voltage and current in a short time, the data point at each acquisition moment in the current sequence is taken as the first target data point, and the sequence composed of the K data points with the closest time interval to the first target data point in ascending time order is taken as the local current change sequence of the first target data point;

[0046] The data point at each acquisition time in the voltage sequence is taken as the second target data point, and the sequence of K data points with the closest time interval to the second target data point in ascending time order is taken as the local voltage change sequence of the second target data point;

[0047] The data point at each acquisition moment in the electric power sequence is taken as the third target data point, and the sequence composed of the K data points with the closest time interval to the third target data point in ascending time order is taken as the local electric power change sequence of the third target data point, where the empirical value of K is 50.

[0048] Furthermore, in order to analyze the local change difference of the data point at each acquisition moment in the current sequence and the voltage sequence, for the local current change sequence of the data point at each acquisition moment in the current sequence, the first-order difference sequence of the local current change sequence of the data point is used as the local current change difference sequence of the data point, and the sequence composed of all data values ​​in the local current change difference sequence of the data point in ascending order of values ​​is used as the current change difference step sequence of the data point. Similarly, the local voltage change sequence of the data point at each acquisition moment in the voltage sequence is processed in the same way, and the local voltage change difference sequence and the voltage change difference step sequence of the data point at each acquisition moment in the voltage sequence can be obtained respectively.

[0049] Since the local current change difference sequence and the local voltage change difference sequence respectively reflect the degree of confusion between the current and voltage changes, when the local current and local voltage changes fluctuate abnormally, the degree of confusion of the local current change difference sequence and the local voltage change difference sequence is relatively large.

[0050] Step S003, obtaining the power supply volatility at each acquisition moment according to the distribution and degree of change of data in the local current change sequence, the local current change difference sequence and the current change difference step sequence and the local voltage change sequence, the local voltage change difference sequence and the voltage change difference step sequence, and obtaining the power supply anomaly index at each acquisition moment by combining the difference between the local current change sequence at each acquisition moment and its adjacent acquisition moment, and the difference between the local voltage change sequences.

[0051] Normally, when the main power supply fails in the power supply circuit, the current, voltage and electric power in the power supply circuit will fluctuate irregularly and randomly. At the same time, due to the strong correlation between the current, voltage and electric power in the power supply circuit, when the main power supply fails, the current, voltage and electric power will generally change abnormally at the same time.

[0052] When the main power supply in the power supply circuit works normally, the current and voltage in the power supply circuit are relatively stable, and the fluctuations of the current and voltage are relatively stable. This state reflects that the power supply of the main power supply has good performance at this time; when the main power supply in the power supply circuit is in an abnormal state, such as abnormal power supply performance, the current and voltage in the power supply circuit fluctuate greatly. This state reflects that the power supply performance of the main power supply has an abnormal fault. In order to analyze the changes in the power supply performance of the main power supply, since the worse the power supply performance, the greater the possibility of abnormal faults, further analysis is needed based on the changes in current and voltage.

[0053] Specifically, according to the distribution and degree of change of the data in the local current change sequence, the local current change difference sequence and the current change difference step sequence and the local voltage change sequence, the local voltage change difference sequence and the voltage change difference step sequence, and in combination with the difference between the local current change sequence at each acquisition moment and its adjacent acquisition moment, and the difference between the local voltage change sequences, the power supply anomaly index at each acquisition moment is obtained. The specific calculation formula of the power supply anomaly index at each acquisition moment is:

[0054] , represents the power anomaly index at the i-th acquisition moment, represents the power supply fluctuation at the i-th acquisition moment, It indicates the power supply variation difference at the ith acquisition moment. It should be noted that the adjacent acquisition moments of the ith acquisition moment refer to the adjacent time. For example, there is only one adjacent acquisition moment to the first acquisition moment, namely the second acquisition moment; there are two adjacent acquisition moments to the tenth acquisition moment, namely the ninth acquisition moment and the eleventh acquisition moment.

[0055] The power supply volatility at each acquisition moment is obtained according to the distribution and degree of change of data in the local current change sequence, the local current change difference sequence, the current change difference step sequence and the local voltage change sequence, the local voltage change difference sequence, and the voltage change difference step sequence. The calculation formula of the power supply volatility at each acquisition moment is:

[0056] , where represents an exponential function with a natural constant as base, The information entropy of all data values ​​in the local current change difference sequence of the data point at the i-th acquisition time in the current sequence, , , They represent the mode, mean, and median of the current change difference step sequence of the data point at the i-th acquisition moment in the current sequence, The information entropy of all data values ​​in the local voltage change difference sequence of the data point at the i-th acquisition time in the voltage sequence is represented. , , They respectively represent the mode, mean, and median of the voltage change difference step sequence of the data point at the i-th acquisition moment in the voltage sequence, wherein the calculation of information entropy, mode, mean, and median are all well-known technologies, and the specific process will not be repeated here;

[0057] Among them, for the power supply change difference at each acquisition moment, this embodiment combines the difference between the local current change sequence at each acquisition moment and its adjacent acquisition moment, and the difference between the local voltage change sequence at each acquisition moment and its adjacent acquisition moment, to determine the power supply change difference at each acquisition moment, and the expression is:

[0058] , where N represents the number of adjacent collection moments of the ith collection moment, for Distance function, represents the local current change sequence of the data point at the i-th acquisition moment in the current sequence, represents the local current change sequence of the data points at the jth adjacent acquisition time of the i-th acquisition time in the current sequence, The difference between the local current change sequence of the data point at the i-th acquisition time in the current sequence and the local current change sequence of the data point at the j-th adjacent acquisition time is expressed as distance, Represents the local voltage change sequence of the data point at the i-th acquisition time in the voltage sequence, represents the local voltage change sequence of the data points at the jth adjacent acquisition time of the ith acquisition time in the voltage sequence, The difference between the local voltage change sequence of the data point at the i-th acquisition time in the voltage sequence and the local voltage change sequence of the data point at the j-th adjacent acquisition time is expressed as Distance. It is understandable that information entropy The larger the information entropy, the The larger the value, the greater the confusion of all data values ​​in the local current change difference sequence and the local voltage change difference sequence. At the same time, the difference between the mode, mean, and median in the current change difference ladder sequence The larger the voltage change difference, the greater the difference between the mode, mean, and median in the step sequence. The larger the value is, to a certain extent, it reflects the greater complexity of the current and voltage fluctuations in the power supply circuit. Under normal circumstances, when the main power supply is stable, the fluctuation of the electric variables is relatively gentle. At this time, the greater the complexity of the electric variable fluctuation, the worse the stability of the main power supply performance. At this time, the main power supply is more likely to have abnormal failures, and the greater the power supply volatility;

[0059] In addition, the local current change sequence distance The larger the local voltage change sequence, the distance The larger it is, the smaller the similarity of the current and voltage changes in the local time is, that is, the greater the difference in the changes of the electrical variables is, which to a certain extent reflects the abnormal situation of the changes of the electrical variables in the power supply circuit. At this time, the more likely the main power supply is to have an abnormal fault, the greater the difference in the power supply change is;

[0060] Therefore, power supply fluctuations The larger the power supply changes, the greater the The larger the index is, to a certain extent, it reflects that the fluctuation of electrical variables in the power supply circuit of the main power supply is more chaotic. At the same time, the greater the abnormality of the change of electrical variables, the worse the stability of the power supply performance of the main power supply. At this time, the main power supply is more likely to have abnormal failure, and the larger the power supply abnormality index is.

[0061] At this point, the power anomaly index at each acquisition moment is obtained.

[0062] Step S004: construct an electric variable associated feature sequence at each acquisition moment according to the linear relationship between the local electric power change sequence and the local current change sequence and the local voltage change sequence.

[0063] Furthermore, under normal circumstances, there is a strong correlation between electric power and current and voltage, but when the main power supply is abnormal, the correlation between electric power and current and voltage is broken, causing abnormal failures in the power supply circuit. Therefore, the present application further analyzes the abnormal failure of the main power supply from the change of the correlation relationship.

[0064] In order to analyze the change of the correlation between electric power and current and voltage, electric power is taken as the dependent variable, current and voltage are taken as the two independent variables affecting electric power, the local electric power change sequence, local current change sequence and local voltage change sequence of the data points at each acquisition moment are respectively taken as the input of the multiple linear regression algorithm, and the output of the multiple linear regression algorithm is taken as the multiple linear regression equation between the dependent variable and the independent variable at each acquisition moment, and the sequence composed of the constant term coefficient of the multiple linear regression equation and all the independent variable coefficients in the order of the coefficients in the multiple linear regression equation is taken as the electric variable association feature sequence at each acquisition moment. For example, the corresponding multiple linear regression equation for the i-th acquisition moment is , where 5 and 2 are the independent variable coefficients and 3 is the constant term coefficient, then the electrical variable correlation characteristic sequence at the i-th acquisition moment is .

[0065] The multiple linear regression algorithm is a well-known technology, and the specific process will not be repeated here.

[0066] Step S005, obtaining the cumulative correlation of each acquisition moment according to the correlation between the local electric power change sequence and the local current change sequence and the local voltage change sequence respectively, and obtaining the electrical variable correlation of each acquisition moment based on the difference between the cumulative correlation of each acquisition moment and its adjacent acquisition moment and the distance between the electrical variable associated characteristic sequence of each acquisition moment and its adjacent acquisition moment.

[0067] Furthermore, the cumulative correlation at each acquisition moment is obtained according to the correlation between the local electric power change sequence and the local current change sequence and the local voltage change sequence, and the calculation formula is:

[0068] , where represents the cumulative correlation at the i-th acquisition moment, represents the Pearson correlation coefficient function, , , They represent the local electric power change sequence, local current change sequence, and local voltage change sequence of the data point at the i-th acquisition moment, respectively. represents the Pearson correlation coefficient between the local electric power change sequence and the local current change sequence of the data point at the i-th acquisition moment, represents the Pearson correlation coefficient between the local electric power change sequence and the local voltage change sequence of the data point at the i-th acquisition moment;

[0069] Then, based on the difference between the cumulative correlations of each acquisition moment and its adjacent acquisition moment, combined with the distance between the electrical variable association feature sequences of each acquisition moment and its adjacent acquisition moment, the electrical variable correlation of each acquisition moment is obtained, specifically including:

[0070] The correlation factor of each acquisition moment is calculated based on the cumulative correlation difference between each acquisition moment and its adjacent acquisition moments. The expression is:

[0071] , where is the correlation factor at the i-th acquisition moment, N represents the number of adjacent acquisition moments of the ith acquisition moment, represents the cumulative correlation of the jth adjacent acquisition time of the ith acquisition time, is an error parameter, to avoid the denominator being 0, the error parameter embodiment takes a value of 1;

[0072] Furthermore, according to the correlation factor of each acquisition moment and the distance between the electrical variable correlation feature sequence at each acquisition moment and the electrical variable correlation feature sequence at its adjacent acquisition moment, the electrical variable correlation at each acquisition moment is calculated, and the calculation formula is:

[0073] , where represents the correlation of the electrical variables at the i-th acquisition moment, for Distance function, , They represent the associated characteristic sequences of electrical variables at the i-th acquisition moment and its j-th adjacent acquisition moment, The relationship between the electric variable correlation feature sequence at the i-th acquisition moment and the electric variable correlation feature sequence at its j-th adjacent acquisition moment is represented by distance.

[0074] According to the above process, it can be understood that the absolute value of the Pearson correlation coefficient The larger the absolute value of the Pearson correlation coefficient The larger the value is, the stronger the correlation is between the electric power, current and voltage at this moment, which reflects to a certain extent that the main power supply in the power supply circuit is in normal operation. The larger the cumulative correlation is;

[0075] In addition, the product of the cumulative correlation The larger the value, the stronger the correlation between the electric power, current and voltage between the acquisition time and the adjacent acquisition time. This reflects that the continuity of the strong correlation state is better at this time, and the stability of the main power supply is higher at this time. At the same time, the difference between the cumulative correlations The smaller it is, the smaller the change in correlation between adjacent acquisition moments is, that is, the better the continuity of the correlation is, and the larger the correlation factor is;

[0076] Therefore, the correlation factor The larger the value is, the stronger the continuity of the strong correlation between the electric power, current and voltage in the power supply circuit at that moment is. At this time, the stability of the main power supply is stronger, and the correlation state between the electric variables in the power supply circuit is more stable. distance The smaller it is, the higher the similarity between the associated feature sequences of the electrical variables at adjacent acquisition moments is. This reflects that the stability of the correlation state between the electrical variables in the power supply circuit is better, that is, the higher the stability of the main power supply, the greater the correlation of the electrical variables.

[0077] Step S006, obtaining a fault index at each acquisition moment according to the power supply anomaly index at each acquisition moment and the electrical variable correlation, and obtaining a circuit fault measurement result by using an anomaly detection algorithm to switch the power supply.

[0078] When the traditional LOF anomaly detection algorithm (Local outlier factor, LOF) identifies abnormal faults in the main power supply, it is necessary to traverse the entire data set to calculate the local outlier factor of each data point, resulting in excessive time calculation costs, and unable to effectively and quickly identify abnormal faults in the circuit when the main power supply is supplied, thereby affecting the efficiency of power switching. This embodiment is based on collecting electric power, current, and voltage, performing data fusion, and performing abnormal data detection on the fused data, so as to effectively and quickly identify abnormal faults in the circuit when the main power supply is supplied, thereby improving the efficiency of power switching.

[0079] Furthermore, data fusion is performed based on the power supply anomaly index and electrical variable correlation at each acquisition moment to calculate the fault index at each acquisition moment:

[0080] , where represents the fault index at the i-th acquisition moment, represents an exponential function with a natural constant as base, represents the correlation of the electrical variables at the i-th acquisition moment, Indicates the power supply anomaly index at the i-th collection moment.

[0081] Electrical variable correlation The smaller the power supply abnormality index is, the The larger the value, the more obvious the abnormal characteristics of the main power supply, and the greater the fault index; The larger the power supply abnormality index is, the The smaller it is, the less obvious the abnormal characteristics of the main power supply are, and the smaller the fault index is.

[0082] Further, the feature set composed of the fault indexes at all acquisition moments is used as the input of the LOF anomaly detection algorithm, the neighborhood parameter k is preset to 10, and the output of the LOF anomaly detection algorithm is used as the anomaly detection result of the feature set, wherein the LOF anomaly detection algorithm is a well-known technology, and the specific process is not repeated here. The implementation flow chart of a low-power power intelligent switching method in this embodiment is as follows: Figure 2 shown.

[0083] The abnormal detection result of the feature set is transmitted to the power supply system. When an abnormal data point appears in the abnormal detection result of the feature set, it indicates that an abnormal fault occurred in the circuit powered by the main power supply within one minute before the current moment. At this time, the power supply in the power supply circuit in the integrated chip is switched to the backup power supply; when no abnormal data point appears in the abnormal detection result of the feature set, it indicates that the main power supply was normal within one minute before the current moment, and there was no abnormal fault in the circuit powered by the main power supply. At this time, the power supply in the power supply circuit in the integrated chip is still the main power supply.

[0084] At this point, a low-power intelligent power switching method is completed.

[0085] Based on the same inventive concept as the above method, an embodiment of the present application also provides a low-power intelligent power switching system, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, it implements the steps of any one of the above-mentioned low-power intelligent power switching methods.

[0086] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A low-power intelligent power switching method, characterized in that: The method comprises the following steps: The current, voltage and electric power at each acquisition time in the power supply circuit when the main power supply is supplied are obtained to form a current sequence, a voltage sequence and an electric power sequence respectively; According to the data points at the neighboring collection moments at each collection moment in the current sequence, a local current change sequence, a local current change difference sequence and a current change difference step sequence of the data points at each collection moment are constructed; and for the voltage sequence and the electric power sequence, accordingly, a local voltage change sequence, a local voltage change difference sequence, a voltage change difference step sequence and a local electric power change sequence of the data points at each collection moment are obtained; The power supply volatility at each acquisition moment is obtained according to the distribution and degree of change of the data in the local current change sequence, the local current change difference sequence and the current change difference step sequence and the local voltage change sequence, the local voltage change difference sequence and the voltage change difference step sequence, and the power supply anomaly index at each acquisition moment is obtained by combining the difference between the local current change sequence at each acquisition moment and its adjacent acquisition moment, and the difference between the local voltage change sequences; According to the linear relationship between the local electric power change sequence and the local current change sequence and the local voltage change sequence, the electric variable correlation feature sequence at each acquisition moment is constructed; The cumulative correlation of each acquisition moment is obtained according to the correlation between the local electric power change sequence and the local current change sequence and the local voltage change sequence, and the electric variable correlation of each acquisition moment is obtained based on the difference between the cumulative correlation of each acquisition moment and its adjacent acquisition moment, combined with the distance between the electric variable association feature sequence of each acquisition moment and its adjacent acquisition moment; The fault index at each acquisition moment is obtained according to the power supply anomaly index and the electrical variable correlation at each acquisition moment, and the circuit fault measurement result is obtained by using the anomaly detection algorithm to switch the power supply.

2. A low-power intelligent power switching method according to claim 1, characterized in that: The method of acquiring a local current change sequence, a local current change difference sequence and a current change difference step sequence of data points at each acquisition moment according to the current sequence includes: The data point at each acquisition moment in the current sequence is taken as the first target data point, the first preset parameter number of data points with the closest time interval to the first target data point are arranged in ascending order of time to form a local current change sequence of the first target data point, the first-order differential sequence of the local current change sequence is taken as the local current change difference sequence of the first target data point, and all the data in the local current change difference sequence are arranged in ascending order of numerical values ​​to form a current change difference step sequence of the first target data point.

3. A low-power intelligent power switching method according to claim 1, characterized in that: The method for obtaining the power supply volatility at each acquisition moment is: , where represents the power supply fluctuation at the i-th acquisition moment, represents an exponential function with a natural constant as base, The information entropy of all data values ​​in the local current change difference sequence of the data point at the i-th acquisition time in the current sequence, , , They represent the mode, mean, and median of the current change difference step sequence of the data point at the i-th acquisition moment in the current sequence, The information entropy of all data values ​​in the local voltage change difference sequence of the data point at the i-th acquisition time in the voltage sequence is represented. , , They respectively represent the mode, mean and median of the voltage change difference step sequence of the data point at the i-th acquisition moment in the voltage sequence.

4. A low-power intelligent power switching method according to claim 1, characterized in that: The method for obtaining the power anomaly index at each acquisition moment is: The previous and next collection moments of each collection moment are taken as the adjacent collection moments of each collection moment; Analyze the difference between the local current change sequence of the data point at each acquisition moment and the data point at each adjacent acquisition moment, and the difference between the local voltage change sequences, which are recorded as the first difference and the second difference respectively, and take the average value of the first difference and the second difference accumulated at all adjacent acquisition moments as the power supply change difference at each acquisition moment; The product of the power supply variation difference and the power supply volatility is used as the power supply anomaly index at each collection moment.

5. A low-power intelligent power switching method according to claim 1, characterized in that: The method for obtaining the electrical variable associated characteristic sequence at each acquisition moment is: The electric power is taken as the dependent variable, the current and voltage are taken as the two independent variables affecting the electric power respectively, the local electric power change sequence, the local current change sequence and the local voltage change sequence of the data point at each acquisition moment are taken as the input of the multiple linear regression algorithm respectively, and the multiple linear regression equation between the dependent variable and the independent variable at each acquisition moment is output, and the constant term coefficient of the multiple linear regression equation and all the independent variable coefficients are arranged in the order before and after the coefficients in the multiple linear regression equation to form the electric variable association feature sequence at each acquisition moment.

6. A low-power intelligent power switching method according to claim 1, characterized in that: The calculation formula of the cumulative correlation is: , where represents the cumulative correlation at the i-th acquisition moment, represents the Pearson correlation coefficient function, , , They respectively represent the local electric power change sequence, local current change sequence, and local voltage change sequence of the data point at the i-th acquisition moment.

7. A low-power intelligent power switching method according to claim 1, characterized in that: The method for obtaining the electrical variable correlation at each acquisition moment is: The correlation factor of each acquisition moment is calculated based on the difference in the cumulative correlation between each acquisition moment and its adjacent acquisition moments: , where is the correlation factor at the i-th acquisition moment, N is the number of adjacent collection moments of the ith collection moment, , are the cumulative correlations of the i-th acquisition moment and its j-th adjacent acquisition moment, is the error parameter; Then the correlation of the electrical variables at the i-th acquisition moment is The expression is: , where for distance, , are the electrical variable correlation feature sequences of the i-th acquisition moment and its j-th adjacent acquisition moment.

8. A low-power intelligent power switching method according to claim 7, characterized in that: The calculation formula of the fault index at each acquisition moment is: , where represents the fault index at the i-th acquisition moment, represents an exponential function with a natural constant as base, Indicates the power supply anomaly index at the i-th collection moment.

9. A low-power intelligent power switching method according to claim 1, characterized in that: The method of obtaining the circuit fault measurement result to switch the power supply is: The LOF anomaly detection algorithm is used to obtain the anomaly detection results of the fault index at all acquisition moments; When an abnormal data point appears in the abnormal detection result, the power supply in the power supply circuit in the integrated chip is switched to the backup power supply; otherwise, the power supply in the power supply circuit in the integrated chip is still the main power supply.

10. A low-power intelligent power switching system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of a low-power intelligent power switching method as described in any one of claims 1-9 are implemented.

Citation Information

Patent Citations

  • Intelligent self-adaptive automatic throw-in equipment and method thereof of emergency power supplies in substation

    CN102255380A

  • Main and bypass quick switching device and method

    CN116418109A