A real-time information calibration method for power system

By analyzing the power loss rate of the power system and detecting abnormal power usage, abnormal floors are calibrated in real time, which solves the problem of untimely and inaccurate detection of abnormal power usage in the power system, improves monitoring efficiency and accuracy, and reduces power loss and Grid risks.

CN118364313BActive Publication Date: 2024-09-20GUANGZHOU NANYANG CABLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410783282.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-20
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Due to the complicated data in the power system, abnormal power consumption detection is not timely and accurate, making it difficult to effectively monitor and manage power losses, causing economic losses and potential grid security risks to the power company.

Method used

By analyzing the power loss rate of each floor in the power system, the power loss index, global power loss stability coefficient and global power consumption similarity are calculated. Combined with the isolated forest algorithm and DBSCAN algorithm, abnormal power consumption floors are calibrated in real time to improve monitoring efficiency and Detection accuracy.

Benefits of technology

Effectively identify large floors with significant fluctuations in power loss, improve the accuracy and efficiency of abnormal power consumption detection, and reduce power loss and potential power grid accident risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364313B
    Figure CN118364313B
Patent Text Reader

Abstract

The present invention relates to the technical field of electric power systems, and in particular to a method for real-time information calibration of electric power systems, the method comprising: obtaining the power loss rate of each floor in the power system, performing preliminary calibration based on the fluctuation of the power loss rate change in the power system, and calculating the power loss index of the power system on each floor; further calibrating through the global difference in the fluctuation of the power loss rate, calculating the global power loss stability coefficient of the power system on each floor, obtaining the global power loss coefficient sequence, calculating the global power consumption similarity based on its internal similarity, and combining the isolation forest algorithm to obtain the power consumption anomaly score of the power system on each floor; performing actual calibration based on the power consumption anomaly score, screening the abnormal power consumption area in the power system, and performing information calibration of the power system on each floor. In this way, real-time information calibration of the power system is realized, abnormal conditions of the power system on the floor are quickly calibrated and identified, and monitoring efficiency and detection accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power systems, and in particular to a real-time information calibration method for power systems. Background Art

[0002] As one of the key supporting industries for the national economic lifeline, the efficient and stable operation of the power industry is crucial to the smooth operation and sustainable development of society. With the rapid development of science and technology and the global economy, the demand for electricity has shown an exponential growth trend in industrial production, commercial activities and residents' lives. In such a huge power network, power loss is an inevitable phenomenon. The power system refers to the system formed by connecting power transmission and distribution lines such as power stations, substations, distribution stations and users. In the power system, loss refers to the amount of electricity in the distribution network that is not paid by the final floor. Power loss in the power system is usually divided into technical loss (TL) and non-technical loss (NTL). Technical loss is mainly caused by transmission line and transformer loss. Among non-technical losses, power theft has the most serious impact. It brings very serious economic losses to power companies, and may cause damage to low-voltage electrical equipment, local power supply interruption, and even cause power grid technical accidents.

[0003] When calibrating the abnormal power consumption area in the power system, due to the large number of floors in the power system and the large amount of complex power data, the abnormal power consumption may be detected untimely and inaccurately. To solve this problem, the present invention analyzes the power consumption in different areas of the power system, combines the local and overall power consumption to calibrate the information, calculates the power consumption anomaly score of the power system on each floor, and then obtains the abnormal power consumption floors and performs real-time information calibration, thereby improving monitoring efficiency and detection accuracy. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a real-time information calibration method for an electric power system to solve the existing problems.

[0005] A real-time information calibration method for a power system of the present invention adopts the following technical solution:

[0006] An embodiment of the present invention provides a method for real-time information calibration of an electric power system, the method comprising the following steps:

[0007] Calculate the daily power loss rate of the power system on each floor through the total daily power consumption of each floor in the power system and the power consumption of each user's meter on each floor every day;

[0008] For the power system of each floor, the sequence composed of the power loss rate of the power system of the floor in a preset number of days is recorded as the power loss sequence of the power system of the floor; the first-order and second-order difference absolute value sequences of the power loss sequence are obtained according to the difference of elements in the power loss sequence; the power loss index of the floor power system is obtained according to the change of elements in the second-order difference absolute value sequence; the balance adjustment factor is obtained according to the data size in the first-order difference absolute value sequence of all floor power systems; the global power loss stability coefficient of the power system of each floor is obtained according to the balance adjustment factor, the power loss index and the power loss sequence; the global power loss coefficient sequence is obtained according to the difference between the global power loss stability coefficients of all floor power systems; the global power consumption similarity is obtained according to the data change in the global power loss coefficient sequence; the optimal number of isolation trees is obtained according to the global power consumption similarity, and the power consumption anomaly score of the power system of each floor is obtained by combining the isolation forest algorithm;

[0009] The information of the power system on each floor is calibrated according to the abnormal power consumption score.

[0010] Preferably, the first-order and second-order difference absolute value sequences of the power loss sequence are obtained according to the element differences in the power loss sequence, specifically:

[0011] The first-order difference sequence of the electric energy loss sequence is obtained, and the sequence obtained by calculating the absolute values ​​of all elements in the first-order difference sequence is used as the first-order difference absolute value sequence of the electric energy loss sequence; the first-order difference sequence of the first-order difference absolute value sequence is obtained, and the sequence obtained by calculating the absolute values ​​of all elements in the first-order difference sequence of the first-order difference absolute value sequence is used as the second-order difference absolute value sequence of the electric energy loss sequence.

[0012] Preferably, obtaining the power loss index of the floor power system according to the change of elements in the second-order difference absolute value sequence specifically includes:

[0013] Obtain the number of types of different values ​​in the second-order difference absolute value sequence; obtain the maximum value, minimum value, mean value and information entropy of all elements in the second-order difference absolute value sequence; calculate the difference between the maximum value and the minimum value, recorded as the first difference; calculate the absolute value of the difference between each element in the second-order difference absolute value sequence and the mean value; calculate the average value of all the absolute values ​​of the differences; calculate the product of the average value and the first difference; use the product, the information entropy and the product of the number of types of different values ​​as the power loss index of the floor power system.

[0014] Preferably, the step of obtaining the balance adjustment factor according to the data size in the first-order difference absolute value sequence of the power systems of all floors specifically includes:

[0015] Arrange all data in the first-order difference absolute value sequence of the power systems of all floors as a sequence formed by the arrangement as the power loss fluctuation sequence; obtain the mode, mean and standard deviation of all data in the power loss fluctuation sequence; calculate the absolute value of the difference between the mode and the mean; calculate the absolute value of the difference between the absolute value of the difference and the standard deviation, recorded as the first absolute value of the difference; and use the sum of the first absolute value of the difference and the mean as a balance adjustment factor.

[0016] Preferably, the global power loss stability coefficient of the power system of each floor is obtained according to the balance adjustment factor, the power loss index and the power loss sequence, and the expression is:

[0017]

[0018] represents the global power loss stability coefficient of the power system on the kth floor; represents the power loss index of the power system on the kth floor; Represents a function that finds the average value of all elements in a sequence; represents the energy loss sequence of the power system on the kth floor; represents the number of elements in the energy loss sequence of the power system of the kth floor; represents the equilibrium adjustment factor; represents the jth element in the first-order difference absolute value sequence of the power loss sequence of the power system on the kth floor, Represents the maximum value function.

[0019] Preferably, the global power loss coefficient sequence is obtained according to the difference between the global power loss stability coefficients of the power systems of all floors, specifically:

[0020] Obtain each different value of the global power loss stability coefficient of the power systems of all floors, and use the sequence composed of all different values ​​as the global power loss coefficient sequence.

[0021] Preferably, obtaining the global power consumption similarity according to the data changes in the global power loss coefficient sequence specifically includes:

[0022] Get the first half of the global power loss coefficient sequence , the second half of the sequence and the middle half sequence ; Get the first-order difference sequence of the global power loss coefficient sequence ; Calculate the global power consumption similarity The expression is:

[0023]

[0024]

[0025] In the formula, Represents the number of elements in the global power loss coefficient sequence; Indicates the number of floors; , Respectively represent the functions of taking the maximum and minimum values ​​in the sequence; represents the regulating factor; represents an exponential function with a natural constant as base; Represents the function for calculating the DTW distance using the dynamic time warping algorithm.

[0026] Preferably, the first half of the sequence of obtaining the global power loss coefficient sequence is , the second half of the sequence and the middle half sequence , specifically:

[0027] The global electric energy loss coefficient sequence is divided into two equal parts, the front half is used as the first half of the global electric energy loss coefficient sequence, and the second half is used as the second half of the global electric energy loss coefficient sequence; the sequence segment between one quarter and three quarters of the global electric energy loss coefficient sequence is used as the middle half of the global electric energy loss coefficient sequence.

[0028] Preferably, the method of obtaining the optimal number of isolation trees according to the global power consumption similarity and obtaining the power consumption anomaly score of the power system on each floor in combination with the isolation forest algorithm specifically includes:

[0029] Calculate the calculation result of an exponential function with a natural constant as an exponent and an opposite number of the global power consumption similarity as a base; calculate the difference between the natural constant and the calculation result; calculate the product of a preset first adjustment factor and the difference; calculate the sum of the product and a preset second adjustment factor as the optimal number of isolation trees;

[0030] The optimal number of isolation trees is used as the number of isolation trees in the isolation forest, the global power loss stability coefficient of the power systems of all floors is used as the input of the isolation forest, and the output is the anomaly score of the global power loss stability coefficient of the power systems of each floor, which is used as the power consumption anomaly score of each floor.

[0031] Preferably, the information calibration of the power system of each floor is performed according to the power consumption anomaly score, specifically:

[0032] The DBSCAN algorithm is used to cluster the abnormal power consumption scores of the power systems on all floors. If the number of clusters obtained is greater than the preset threshold, the mean of all elements in each cluster is calculated; the floors corresponding to all elements in the cluster corresponding to the maximum value of all the means are taken as abnormal power consumption floors; in the power consumption status column of the power system, the abnormal power consumption floors and other floors are calibrated with different color backgrounds.

[0033] The present invention has at least the following beneficial effects:

[0034] The present invention proposes a real-time information calibration method for an electric power system. The electric power loss index of a floor electric power system is calculated through the daily fluctuation of the electric power loss rate of the floor electric power system. The electric power loss index not only focuses on the loss value at a single time point, but also evaluates the behavior pattern of the loss changing with time as a whole. The global electric power loss stability coefficient of the floor electric power system is calculated through the global difference in the fluctuation of the electric power loss of the floor electric power system. The global electric power loss stability coefficient can effectively identify floors whose electric power loss volatility is significantly greater than the average level. The global power consumption similarity is calculated through the internal similarity of the global power loss coefficient sequence, which can reflect the imbalance of the overall power loss level of the global power loss stability coefficient. The optimal number of isolation trees of the isolation forest algorithm is calculated through the global power consumption similarity, so that the abnormal power consumption floors can be quickly calibrated and identified, thereby improving the monitoring efficiency and detection accuracy, and improving the accuracy of isolation forest detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A flow chart of a real-time information calibration method for a power system provided by the present invention;

[0037] Figure 2 Schematic diagram of the steps of the real-time information calibration method of the power system. DETAILED DESCRIPTION

[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the real-time information calibration method of a power system proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0040] The following is a detailed description of a method for real-time information calibration of a power system provided by the present invention in conjunction with the accompanying drawings.

[0041] An embodiment of the present invention provides a real-time information calibration method for an electric power system.

[0042] Specifically, the following real-time information calibration method for power system is provided. Figure 1 , the method comprises the following steps:

[0043] Step S001, obtaining the daily power loss rate of the power system of each floor and performing preprocessing.

[0044] The floor power system includes the information of the power grid equipment in the floor, such as the meter model, distribution lines, abnormal and normal power consumption areas, and floor models. The methods of stealing electricity on the floor are to destroy the metering device, interfere with the signal, and make illegal connections. Therefore, an electricity meter is installed at the distribution line location on each floor, and the power consumption collected by the electricity meter is used as the total power consumption of the floor. The sum of the power consumption collected by the meters of all users on the floor is used as the user's power consumption. The difference between the total power consumption and the user's power consumption is divided by the total power consumption to obtain the result as the power loss rate of the power system on the floor, and the collected data is stored in the data storage system to facilitate the remote retrieval and analysis of the power system operation data.

[0045] The daily power loss rate data of the power system of each floor in the previous n days is obtained. It should be noted that the value of n can be set by the implementer. In this embodiment, the value of n is set to 30. Since the data may be missing, the third-order polynomial interpolation method is used to complete the missing data. Since the polynomial interpolation method is a well-known technology, the specific calculation process will not be repeated here.

[0046] Step S002, construct the global power loss stability coefficient of each floor power system through the fluctuation of the daily power loss rate change of the floor power system and the data difference of the power loss rate of all floor power systems, construct the global power consumption similarity, calculate the optimal number of isolation trees, and combine the isolation forest algorithm to obtain the power consumption anomaly score of each floor power system.

[0047] Since the use of equipment varies in different seasons, the loss of electric energy also changes with time. The resistance of the wires in the distribution network increases with the temperature. For example, high temperatures in summer will increase the resistance of the wires, which will in turn increase the loss of electric energy in the form of heat energy on the line. From summer to autumn, the loss of electric energy will decrease due to the change of seasons.

[0048] For each floor power system, the power loss data of the floor power system for n days is arranged in ascending time order to form a sequence as the power loss sequence P of the floor power system. The first-order difference sequence of the power loss sequence is obtained by the first-order difference method, where the first-order difference method is a well-known technology and the specific process is not repeated here. Then the absolute value of each element in the first-order difference sequence is calculated, and the obtained sequence is used as the first-order difference absolute value sequence of the power loss sequence Similarly, for the sequence The first-order difference sequence is obtained by the first-order difference method, and then the absolute value of each element in the obtained first-order difference sequence is obtained. The final sequence is used as the second-order difference absolute value sequence of the power loss sequence. For preliminary calibration, the energy loss index of the floor power system is constructed using the above indicators:

[0049]

[0050]

[0051] In the formula, Indicates the difference in the increase of power loss in the floor power system; , Respectively represent the functions of taking the maximum and minimum values ​​in the sequence; Represents the number of elements in the power consumption sequence; Represents the i-th element in the absolute value sequence of the second-order difference of the power loss sequence; Represents the mean of all elements in the second-order difference absolute value sequence of the power consumption sequence. is the first difference.

[0052] Indicates the power loss index of the floor power system; The absolute value sequence of the second-order differences representing the energy loss sequence The number of different values ​​in ; The absolute value sequence of the second-order differences representing the energy loss sequence The information entropy of all elements in .

[0053] The number of different values ​​is illustrated by example: Assuming the sequence The elements are , then the different values ​​in the sequence are 2, 3, 4 and 5, a total of 4, so the number of different values ​​is 4.

[0054] When the power loss of the floor power system changes at a slower rate, it indicates that the power loss state of the floor power system tends to be stable and consistent during the observed time period. The volatility of the elements in the equation is reduced, which means that the daily variation of power loss is smaller and more regular. This is manifested in the difference between the maximum and minimum absolute values ​​of the second-order difference. The smaller the value, the greater the fluctuation of power loss. The smaller the value of The smaller the value of The smaller the value of is, the smaller the absolute value sequence of the second-order difference is. The number of different values ​​of the elements in The less, the absolute value sequence of the second-order difference Information entropy value The smaller the calculated power loss index of the floor power system is, the The smaller the value of .

[0055] Although the power loss characteristics of a single floor can provide basic information about the energy consumption of that floor, it is not enough to rely on the loss data of a single floor to accurately assess whether its power consumption behavior is reasonable or normal. The power loss of this floor must be compared and analyzed with other floors or a benchmark in the global scope. In the framework of global comparison, if the power loss of a floor shows a behavior pattern that is significantly different from that of most floors, for example, the power loss under similar conditions is significantly higher, the volatility is abnormally increased, or it shows irregular and extreme peak changes.

[0056] In order to further accurately calibrate the information, all elements in the first-order difference absolute value sequence of the power loss sequence of all floor power systems are randomly arranged, and the composed sequence is used as the power loss fluctuation sequence The global power loss stability coefficient of each floor power system is constructed through the above indicators:

[0057]

[0058]

[0059] In the formula, represents the equilibrium adjustment factor; It means taking the mode of all the data in the sequence; Represents a function that finds the average value of all elements in a sequence; Represents the power loss fluctuation sequence; Represents the standard deviation of all elements in the power loss fluctuation series. is the absolute value of the first difference.

[0060] represents the global power loss stability coefficient of the power system on the kth floor; represents the power loss index of the power system on the kth floor; represents the energy loss sequence of the power system on the kth floor; represents the number of elements in the energy loss sequence of the power system of the kth floor; represents the jth element in the first-order difference absolute value sequence of the power loss sequence of the power system on the kth floor, Represents a function that takes the maximum of the two.

[0061] When a floor's power system has abnormal power consumption, its power loss usually shows greater volatility. If the power loss fluctuation of the floor's power system is significantly greater than the average fluctuation of all floor power systems, this indicates that there may be abnormal power consumption on that floor. If the maximum function The value obtained is , then the first-order difference value of the power loss sequence of the power system of this floor and the global equilibrium adjustment factor There is a large difference between them, so the calculated global power loss stability coefficient The value of increases.

[0062] The global power loss stability coefficient of the power system on each floor is obtained by obtaining the global power loss stability coefficient of the power system on the kth floor.

[0063] Under normal circumstances, if the power loss patterns of the power systems on each floor are relatively stable and similar to each other, it means that their power consumption status is roughly the same and in a relatively balanced state. However, when one or some floors have abnormal power consumption behaviors, such as power theft, excessive consumption, and use of illegal electrical equipment, these behaviors usually cause the power loss characteristics of the floor to deviate significantly from the group norm, thereby reducing the overall power loss similarity of the power system between floors.

[0064] The global power loss stability coefficient of the power system of all floors is collected and different values ​​are selected. All different values ​​are arranged in ascending order, and the resulting sequence is recorded as the global power loss coefficient sequence GLS. Based on this sequence, it is divided into two parts according to the sequence length: the first half of the sequence is recorded as the first half sequence V1, which contains the floors with smaller loss coefficients in the entire sequence; the second half of the sequence is recorded as the second half sequence V2, which covers the floor groups with higher loss coefficients. Furthermore, in order to select typical data in the middle range, a sequence segment between one quarter and three quarters is intercepted from the GLS sequence and defined as the middle half sequence V of the sequence GLS. The first-order difference sequence of the global power loss coefficient sequence GLS is obtained by the first-order difference method. ,Since the first-order difference method is a well-known technology, the specific calculation process will not be repeated. The global power consumption similarity of all floor power systems is constructed through the above indicators:

[0065]

[0066]

[0067] In the formula, represents the regulating factor; represents an exponential function with a natural constant as base; represents the function for calculating the DTW distance using the dynamic time warping algorithm; , and They respectively represent the middle half, first half and second half of the global power loss coefficient sequence.

[0068] Represents the global power consumption similarity of all floor power systems; Represents the number of elements in the global power loss coefficient sequence; Indicates the number of floors; , Respectively represent the functions of taking the maximum and minimum values ​​in the sequence.

[0069] When abnormal power consumption occurs on a floor, the corresponding global power loss stability coefficient usually shows an abnormally increasing trend. The loss coefficient of some floors increases sharply due to abnormal power consumption, which may increase the difference between the first half and the second half of the GLS sequence. Therefore, the difference between the DTW values ​​of the first and second half of the global power loss coefficient sequence GLS and the middle half of the sequence increases, that is, With the occurrence of abnormal power consumption events, the number of elements m in the global power loss coefficient sequence GLS will also increase. At the same time, the gap between the global highest loss coefficient floor and the lowest loss coefficient floor caused by abnormal power consumption will also increase. Therefore, the ratio of the maximum element to the minimum element in the sequence GLS is It will also increase accordingly, reflecting the increasing imbalance in the overall level of electricity loss.

[0070] The more similar the global power loss stability coefficients between the floor power systems are, the more normal and regular the power consumption behavior of the floor is, and the less abnormal power consumption behavior is. In this case, when using Isolation Forest for anomaly detection, since the data points are less outliers and more concentrated in distribution, fewer isolation trees can achieve the isolation of normal data. Otherwise, more isolation trees are needed.

[0071] The optimal number of isolation trees S is constructed by the above indicators:

[0072]

[0073] In the formula, represents the optimal number of isolation trees; Represents the rounding function; represents an exponential function with a natural constant as base; Represents the global power consumption similarity of all floor power systems; and Represent the first and second adjustment factors respectively. It should be noted that, and The implementer can set the value of and are set to 90 and 10 respectively, thus limiting the size of the optimal number of isolation trees to between 10 and 100.

[0074] When the global power loss stability coefficients between the floor power systems are more similar, the value of the global power consumption similarity GS of all floor power systems is smaller, so that the optimal number of isolation trees calculated is The smaller the value of .

[0075] The optimal number of isolation trees The isolation forest algorithm is improved by taking the number of isolation trees as the isolation forest, and the global power loss stability coefficient of all floor power systems is taken as the input of the improved isolation forest. The output result is the anomaly score of the global power loss stability coefficient of each floor power system, which is recorded as the power consumption anomaly score of each floor power system.

[0076] Step S003, calibrating the information of the power system on each floor according to the power consumption anomaly score of the power system on each floor.

[0077] The power consumption anomaly score of each floor power system obtained through the above steps is used as the input of the DBSCAN algorithm, and the neighborhood radius and the minimum number are set. It should be noted that the neighborhood radius and the minimum number can be set by the implementer. In this embodiment, the neighborhood radius and the minimum number are set to 0.1 and 5 respectively, and the output result is K clusters. The DBSCAN algorithm is a well-known technology, and the specific process will not be repeated here.

[0078] When the number of clusters k is 1, it indicates that there is no abnormal power consumption on the floor; when the number of clusters k is greater than When , the mean of all elements in each cluster is calculated. It should be noted that The implementer can set the value of by himself, and this embodiment does not impose any specific restrictions; obtain the cluster corresponding to the maximum value of the element mean, and use the floors corresponding to all elements in the cluster as the abnormal power consumption floors. In the power consumption status column of the power system, the abnormal floors are marked with a red background, and the normal floors are marked with a green background. The steps of the above method are shown in the figure below. Figure 2 shown.

[0079] In summary, the embodiment of the present invention calculates the power loss index of the floor power system through the daily power loss rate fluctuation of the floor power system. The power loss index not only focuses on the loss value at a single time point, but also evaluates the behavior pattern of loss over time as a whole; the global power loss stability coefficient of the floor power system is calculated through the global difference in the fluctuation of the power loss of the floor power system, and the global power loss stability coefficient can effectively identify the floors whose power loss volatility is significantly greater than the average level; the global power consumption similarity is calculated through the internal similarity of the global power loss coefficient sequence, which can reflect the imbalance of the overall power loss level of the global power loss stability coefficient; the optimal number of isolation trees of the isolation forest algorithm is calculated through the global power consumption similarity, so as to quickly identify the abnormal power consumption floors and improve the monitoring efficiency and detection accuracy.

[0080] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0081] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0082] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A real-time information calibration method for a power system, It is characterized in that The method comprises the following steps: Calculate the daily power loss rate of the power system on each floor through the total daily power consumption of each floor in the power system and the power consumption of each user's meter on each floor every day; For the power system of each floor, the sequence composed of the power loss rate of the power system of the floor in a preset number of days is recorded as the power loss sequence of the power system of the floor; the first-order and second-order difference absolute value sequences of the power loss sequence are obtained according to the difference of elements in the power loss sequence; the power loss index of the floor power system is obtained according to the change of elements in the second-order difference absolute value sequence; the balance adjustment factor is obtained according to the data size in the first-order difference absolute value sequence of all floor power systems; the global power loss stability coefficient of the power system of each floor is obtained according to the balance adjustment factor, the power loss index and the power loss sequence; the global power loss coefficient sequence is obtained according to the difference between the global power loss stability coefficients of all floor power systems; the global power consumption similarity is obtained according to the data change in the global power loss coefficient sequence; the optimal number of isolation trees is obtained according to the global power consumption similarity, and the power consumption anomaly score of the power system of each floor is obtained by combining the isolation forest algorithm; Calibrate the information of the power system on each floor according to the abnormal power consumption score; The first-order and second-order difference absolute value sequences of the power loss sequence are obtained according to the element differences in the power loss sequence, specifically: Obtain the first-order difference sequence of the electric energy loss sequence, and take the sequence obtained by calculating the absolute values ​​of all elements in the first-order difference sequence as the first-order difference absolute value sequence of the electric energy loss sequence; obtain the first-order difference sequence of the first-order difference absolute value sequence, and take the sequence obtained by calculating the absolute values ​​of all elements in the first-order difference sequence of the first-order difference absolute value sequence as the second-order difference absolute value sequence of the electric energy loss sequence; The energy loss index of the floor power system is obtained according to the change of elements in the second-order difference absolute value sequence, specifically including: Obtain the number of different value types in the second-order difference absolute value sequence; obtain the maximum value, minimum value, mean value and information entropy of all elements in the second-order difference absolute value sequence; calculate the difference between the maximum value and the minimum value, recorded as the first difference; calculate the absolute value of the difference between each element in the second-order difference absolute value sequence and the mean value; calculate the average value of all the absolute values ​​of the difference; calculate the product of the average value and the first difference; use the product of the product, the information entropy and the number of different value types as the power loss index of the floor power system; The global power loss stability coefficient of the power system of each floor is obtained according to the balance adjustment factor, the power loss index and the power loss sequence, and the expression is: represents the global power loss stability coefficient of the power system on the kth floor; represents the power loss index of the power system on the kth floor; Represents a function that finds the average value of all elements in a sequence; represents the energy loss sequence of the power system on the kth floor; represents the number of elements in the energy loss sequence of the power system of the kth floor; represents the equilibrium adjustment factor; represents the jth element in the first-order difference absolute value sequence of the power loss sequence of the power system on the kth floor, It represents the maximum value function; The obtaining of the global power consumption similarity according to the data changes in the global power loss coefficient sequence specifically includes: Get the first half of the global power loss coefficient sequence , the second half of the sequence and the middle half sequence ; Get the first-order difference sequence of the global power loss coefficient sequence ; Calculate the global power consumption similarity The expression is: In the formula, Represents the number of elements in the global power loss coefficient sequence; Indicates the number of floors; , Respectively represent the functions of taking the maximum and minimum values ​​in the sequence; represents the regulating factor; represents an exponential function with a natural constant as base; Represents the function for calculating the DTW distance using the dynamic time warping algorithm.

2. A real-time information calibration method for a power system as claimed in claim 1, It is characterized in that The balancing adjustment factor is obtained according to the data size in the first-order difference absolute value sequence of the power systems of all floors, specifically including: Arrange all data in the first-order difference absolute value sequence of the power systems of all floors as a sequence formed by the arrangement as the power loss fluctuation sequence; obtain the mode, mean and standard deviation of all data in the power loss fluctuation sequence; calculate the absolute value of the difference between the mode and the mean; calculate the absolute value of the difference between the absolute value of the difference and the standard deviation, recorded as the first absolute value of the difference; and use the sum of the first absolute value of the difference and the mean as a balance adjustment factor.

3. A real-time information calibration method for a power system as claimed in claim 1, It is characterized in that The global power loss coefficient sequence is obtained according to the difference between the global power loss stability coefficients of the power systems of all floors, specifically: Obtain each different value of the global power loss stability coefficient of the power systems of all floors, and use the sequence composed of all different values ​​as the global power loss coefficient sequence.

4. A real-time information calibration method for a power system as claimed in claim 1, It is characterized in that The first half of the sequence of obtaining the global power loss coefficient sequence , the second half of the sequence and the middle half sequence , specifically: The global electric energy loss coefficient sequence is divided into two equal parts, the front half is used as the first half of the global electric energy loss coefficient sequence, and the second half is used as the second half of the global electric energy loss coefficient sequence; the sequence segment between one quarter and three quarters of the global electric energy loss coefficient sequence is used as the middle half of the global electric energy loss coefficient sequence.

5. A real-time information calibration method for a power system as claimed in claim 1, It is characterized in that The optimal number of isolation trees is obtained according to the global power consumption similarity, and the power consumption anomaly score of each floor power system is obtained by combining the isolation forest algorithm, specifically including: Calculate the calculation result of an exponential function with a natural constant as an exponent and an opposite number of the global power consumption similarity as a base; calculate the difference between the natural constant and the calculation result; calculate the product of a preset first adjustment factor and the difference; calculate the sum of the product and a preset second adjustment factor as the optimal number of isolation trees; The optimal number of isolation trees is used as the number of isolation trees in the isolation forest, the global power loss stability coefficient of the power systems of all floors is used as the input of the isolation forest, and the output is the anomaly score of the global power loss stability coefficient of the power systems of each floor, which is used as the power consumption anomaly score of each floor.

6. A real-time information calibration method for a power system as claimed in claim 1, It is characterized in that The information calibration of the power system of each floor is performed according to the power consumption anomaly score, specifically: The DBSCAN algorithm is used to cluster the abnormal power consumption scores of the power systems on all floors. If the number of clusters obtained is greater than the preset threshold, the mean of all elements in each cluster is calculated; the floors corresponding to all elements in the cluster corresponding to the maximum value of all the means are taken as abnormal power consumption floors; in the power consumption status column of the power system, the abnormal power consumption floors and other floors are calibrated with different color backgrounds.