An improved algorithm for compressing differential protection data using the revolving door algorithm

By introducing adaptive frequency conversion data storage, dynamically adjusting thresholds and abnormal point recording strategies into the revolving door algorithm, the problems of low compression ratio and high error rate of the revolving door algorithm when compressing differential protection data are solved, and efficient Data compression and storage.

CN114900191BActive Publication Date: 2024-10-18STATE GRID ANHUI ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210533464.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-10-18
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

The existing revolving door algorithm has problems with low compression ratio and high error rate when compressing differential protection data, making it difficult to effectively process massive real-time data, resulting in increased hardware pressure and low storage efficiency.

Method used

Introduce adaptive frequency data storage strategy, dynamic adjustment threshold value strategy and abnormal point recording strategy, improve the revolving door algorithm, and improve algorithm accuracy and compression efficiency.

Benefits of technology

It achieves high compression ratio and low error rate of differential protection data, improves storage efficiency, reduces hardware pressure on massive data, and improves storage space utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114900191B_ABST
    Figure CN114900191B_ABST
Patent Text Reader

Abstract

The invention discloses an improved algorithm for compressing differential protection data using a revolving door algorithm. The algorithm comprises the following steps: initializing and improving the parameters of the revolving door algorithm, executing an abnormal point recording strategy, directly storing the abnormal point when it is judged to be an abnormal point, and judging whether the data meets the compression condition if it is not an abnormal point. If so, compressing the differential protection data and executing a dynamic threshold value adjustment strategy, executing an adaptive variable frequency data storage strategy for all non-abnormal point data, finally collecting the next data, and judging whether all data compression is completed. The invention improves the differential protection mass real-time data compression algorithm, establishes an adaptive variable frequency data storage strategy, a dynamic threshold value adjustment strategy and an abnormal point recording strategy, and realizes a high compression ratio and a low error rate for the differential protection data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of differential protection data compression, and in particular to an improved algorithm for compressing differential protection data using a revolving door algorithm. Background Art

[0002] In recent years, with the continuous construction and development of smart grids, smart energy and ubiquitous power Internet of Things, the demand for large-scale wide-area data real-time collection and historical storage has grown rapidly. In particular, with the rapid development and commercialization of 5G communication technology, its high speed, high bandwidth and low latency characteristics are expected to lead a new round of power technology revolution. Its main application scenarios include: Internet of Everything, precise control, massive measurement, broadband communication and efficient computing. At the same time, 5G technology provides technical support at the communication level for substations to access more power equipment, measurement devices, auxiliary control equipment, inspection robots, etc. In the future, smart grids will access more measurement points, and how to compress and store data has become one of the issues that must be considered.

[0003] Differential protection data, that is, power station access data, is mainly data for data acquisition and monitoring and control SCADA systems, including telemetry, telesignaling, remote control, and remote pulse. By collecting data from on-site equipment and devices, process monitoring, remote control, and fault diagnosis functions are realized. Substation acquisition data is usually stored in servers or disk arrays. Limited by hardware capacity, massive historical data imposes a serious burden on the storage, analysis, and processing of historical data. If the server hard disk space is full, there will be risks such as server freezes and crashes. If the disk array is full, the disk array needs to be expanded, resulting in greater economic costs. Efficient data compression technology can effectively improve storage efficiency, reduce the pressure of massive data on hardware, and improve storage space utilization. Therefore, the use of efficient and energy-saving data compression algorithms is very necessary for substation SCADA systems under the 5G background. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the above problems existing in the existing improved algorithm for compressing differential protection data using the revolving door algorithm, the present invention is proposed.

[0006] Therefore, the purpose of the present invention is to provide an improved algorithm for compressing differential protection data using a revolving door algorithm, which improves the algorithm accuracy by introducing an adaptive variable frequency data storage strategy, a dynamically adjusted threshold value strategy and an abnormal point recording strategy, thereby achieving a high compression ratio and a low error rate for differential protection data.

[0007] To solve the above technical problems, the present invention provides the following technical solutions: an improved algorithm for compressing differential protection data using a revolving door algorithm, comprising the following steps:

[0008] S1: Initialize and improve the parameters of the revolving door algorithm;

[0009] S2: Execute the abnormal point recording strategy to judge the differential protection data. If it is abnormal data, execute S6; if it is not abnormal data, execute S3;

[0010] S3: Determine whether the data meets the compression condition. If yes, execute S4. If not, execute S7.

[0011] S4: compressing the differential protection data and starting a new compression segment;

[0012] S5: Execute the dynamic threshold adjustment strategy;

[0013] S6: storing the abnormal point;

[0014] S7: Execute the adaptive frequency conversion data storage strategy: perform adaptive frequency conversion data storage on the data, collect the next data, and determine whether all data compression is completed. If yes, the algorithm ends, if not, execute S2.

[0015] As a preferred solution of the improved algorithm for compressing differential protection data by the revolving door algorithm of the present invention, wherein: in the abnormal point recording strategy, the differential protection data is a sequence D including multiple data n .

[0016] As a preferred solution of the improved algorithm for compressing differential protection data using the revolving door algorithm described in the present invention, wherein: in the abnormal point recording strategy, when the change amplitude ΔD of the data is greater than the preset abnormal threshold ω, the data is judged to be abnormal data, the value of the abnormal point is directly recorded and the abnormal point is skipped, and a new compression segment is not started.

[0017] As a preferred solution of the improved algorithm for compressing differential protection data using the revolving door algorithm of the present invention, the variation amplitude ΔD is related to the data and the value of the previous data of the data, and the formula is as follows:

[0018] ΔD=|D n -D n-1 |

[0019] Among them, the value of the nth data of the differential protection data is D n , the value of the previous data is D n-1 .

[0020] As a preferred solution for the improved algorithm for compressing differential protection data using the revolving door algorithm described in the present invention, the dynamically adjusting threshold value strategy adaptively and dynamically adjusts the threshold value of the revolving door algorithm according to the compression error at different time periods based on different types of differential protection data.

[0021] As a preferred solution of the improved algorithm for compressing differential protection data using the revolving door algorithm of the present invention, the adaptive dynamic adjustment according to the compression error includes dynamically adjusting the threshold value according to each round of compression effect, and the compression error and compression ratio can be dynamically adjusted. The formula is as follows:

[0022] e n =|η n -ε|

[0023]

[0024] Among them, the error reference value is ε, and the error deviation of reconstruction after the nth round of compression is e n , the upper limit of the threshold is E max , the lower limit of the threshold is E min , the threshold value of the nth round of compression is E n , the threshold value of the n+1th round of compression is E n+1 After the completion, the average compression error between the reconstructed data and the original data is η n .

[0025] As a preferred solution for the improved algorithm for compressing differential protection data using the revolving door algorithm described in the present invention, the adaptive variable frequency data storage strategy dynamically adjusts the storage interval time according to the numerical change amplitude of the stored data. The smoother the data changes within a certain period of time, the larger the storage time interval, and the more drastic the data changes, the smaller the storage time interval.

[0026] As a preferred solution of the improved algorithm for compressing differential protection data using the revolving door algorithm of the present invention, when the stored data does not meet the compression condition, the calculation formula of the storage time interval is as follows:

[0027] Δt=2×Δt n

[0028] The storage time interval is Δt, and the storage time interval of the nth storage data is Δt n .

[0029] As a preferred solution of the improved algorithm for compressing differential protection data using the revolving door algorithm of the present invention, wherein: the stored data does not meet the compression condition, and the calculation formula for the interval of the storage time is as follows:

[0030]

[0031] Among them, the minimum storage time interval is Δt min .

[0032] As a preferred solution of the improved algorithm for compressing differential protection data by the revolving door algorithm described in the present invention, the types of differential protection data include voltage, current, active power, reactive power and frequency in the power system.

[0033] Beneficial effects of the present invention: The present invention proposes an improved algorithm for compressing differential protection data using a revolving door algorithm, improves the massive real-time data compression algorithm for differential protection, establishes an adaptive variable frequency data storage strategy, a dynamically adjusted threshold value strategy and anomaly point recording strategy, and achieves a high compression ratio and a low error rate for differential protection data. This efficient data compression technology can effectively improve storage efficiency, reduce the pressure of massive data on hardware, and improve storage space utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. 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 creative labor. Among them:

[0035] Figure 1 The figure is a schematic diagram of the overall structure of the improved algorithm for compressing differential protection data using the revolving door algorithm according to the present invention.

[0036] Figure 2 It is a schematic diagram of the principle of the revolving door algorithm of the present invention. DETAILED DESCRIPTION

[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0039] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0040] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0041] Example 1

[0042] Reference Figure 1 , which is the first embodiment of the present invention, provides an improved algorithm for compressing differential protection data using the revolving door algorithm. This algorithm uses the four remote data collected and stored by a 5G substation SCADA system in June 2021 as example data. The telemetry collection time interval is 1 minute, and the telepulse collection time interval is 15 minutes. The telemetry measurements mainly include: three-phase voltage, three-phase current, active power, reactive power of the high-voltage side and low-voltage side of the main transformer, load lines, capacitors, and three-phase voltage of the busbar. The main stored data of the substation SCADA system can be divided into telesignaling, telemetry, remote control, telepulse and other signals, also known as "four remotes", which can be divided into 2 categories of processing:

[0043] 1) Telesignaling and remote control. These signals are all state quantities, with limited numerical options (conventional state quantities have only two numerical values, 0 and 1, and dual-position telesignals have four numerical values, 0, 1, 2, and 3). The strategy of position-shifting storage can be adopted to store only the value and time of the position-shifting data point. This means that the values ​​stored between the n-1th point and the nth point are the same as the value of the n-1th point.

[0044] 2) Telemetry and remote pulse: Such signals are compressed and stored using the improved algorithm of the present invention.

[0045] The algorithm flow chart is as follows Figure 1 As shown, the steps are as follows:

[0046] 1) For substation telesignaling and remote control signals, adopt a variable position storage strategy;

[0047] 2) For the substation telemetry and telepulse signals, the improved revolving door algorithm is used to compress and initialize the algorithm parameters;

[0048] 3) According to formula (5), determine whether the nth data value is an abnormal value. If it is, store it directly without starting a new compression segment and continue to traverse backward. If it is not, determine whether it is within the parallelogram according to the revolving door algorithm;

[0049] 4) If the nth data value falls within the revolving door algorithm parallelogram, continue to traverse the n+1th data value until a certain data value falls outside the parallelogram or all data are traversed, then end the compression stage and start a new compression stage, and adjust the storage time interval and threshold value according to formula (1)(2)(3);

[0050] 5) Determine whether there is data to be compressed, if yes, go to step 3);

[0051] 6) End the data compression.

[0052] Among them, in order to verify the accuracy of the improved revolving door compression algorithm proposed in this patent, the inventor selected four algorithms as the control group, namely the original revolving door algorithm, the original revolving door + adaptive frequency conversion data storage strategy (referred to as strategy 1), the original revolving door + dynamic adjustment threshold value strategy (referred to as strategy 2), and the original revolving door + abnormal point recording strategy (referred to as strategy 3), to compare the compression effects of different algorithms.

[0053] The indicators for measuring the quality of compression algorithms mainly include compression ratio, compression error, and compression and decompression time. Assuming that the storage space occupied by the original data file is m, and the storage space occupied by the compressed file is n, the compression ratio Ratio is:

[0054]

[0055] The larger the compression ratio, the more space saved by compression and the better the compression performance.

[0056] Let the data before compression be x 1 , x 2 , x 3 , …x n ,, the data after compression and decompression is x′ 1 , x′ 2 , x′ 3 …x′ 1 Then the relative compression error R is:

[0057]

[0058] The smaller the relative compression error R is, the higher the compression accuracy is and the better the compression performance is.

[0059] In addition, compression and decompression time represent the speed of compression and decompression. The faster the speed, the better the algorithm time performance. Due to the rapid development of modern computer hardware performance, the memory usage of compression algorithms can generally be ignored.

[0060] Table 1 is a comprehensive performance comparison of each algorithm under all data examples. It can be seen from Table 1:

[0061] 1) The compression ratios of the original revolving door + strategy 1, original revolving door + strategy 2, and original revolving door + strategy 3 algorithms are significantly better than those of the original revolving door algorithm, which verifies that all three strategies can effectively improve the compression ratio and save storage space;

[0062] 2) The compression ratio of the improved algorithm of the present invention is significantly better than that of other algorithms, which verifies that the combined effect of the three strategies is better than that of a single strategy in improving the compression ratio;

[0063] 3) The relative compression error R of the original revolving door + strategy 2 and the original revolving door + strategy 3 algorithms is significantly better than that of the original revolving door algorithm, indicating that strategies 2 and 3 can effectively reduce the compression error. The relative compression error R of the original revolving door + strategy 1 is larger than that of the original revolving door algorithm, which may be because the storage time interval is reduced and part of the original data is lost. This part of the data is restored by the linear interpolation method, which greatly improves the compression ratio by sacrificing a certain compression accuracy;

[0064] 4) The relative compression error R of the improved algorithm of the present invention is better than that of the original revolving door algorithm, which shows that the algorithm of the present invention can effectively improve the compression accuracy of the original revolving door algorithm. Although it is weaker than the single strategy effect of strategy 2 and strategy 3 in terms of compression accuracy, it greatly improves the more important performance indicator - compression ratio;

[0065] 5) All three single improvement strategies reduced the average compression and decompression time of 1 day of data, indicating that each strategy can improve the time performance of the algorithm;

[0066] 6) The time performance of the improved algorithm of the present invention is better than the time performance of the algorithm of a single improved strategy;

[0067] 7) In summary, the improved algorithm of the present invention introduces three strategies, which effectively improves the compression ratio, compression accuracy and time performance of the algorithm compared with the original revolving door algorithm, verifying the effectiveness of the algorithm of the present invention.

[0068] Table 1 Performance comparison of various algorithms

[0069]

[0070] Tables 2 to 5 are performance comparisons of various algorithms on common data types such as active power P, reactive power Q, voltage U, and current I. As can be seen from Tables 2 to 5, the performance results of the algorithms for each type of data are similar, with no significant differences. The compression performance of the improved algorithm of the present invention is better than that of the original revolving door algorithm in each type of data, verifying the effectiveness and accuracy of the model of the present invention.

[0071] Table 2 Comparison of active power data compression performance of various algorithms

[0072]

[0073] Table 3 Comparison of reactive power data compression performance of various algorithms

[0074]

[0075] Table 4 Comparison of voltage data compression performance of various algorithms

[0076]

[0077] Table 5 Comparison of current data compression performance of various algorithms

[0078]

[0079] Example 2

[0080] Reference Figure 2 , is the principle diagram of the revolving door algorithm, which is a linear fitting lossy compression algorithm; point a in the figure is the first data point, and there are two pivots at coordinates E above and below point a. A parallelogram is constructed from these two pivots through point a and point b. Obviously, the parallelogram contains point a and point b; then, we examine whether the parallelogram constructed by the two pivots through point a and point c contains points a, b, and c. Obviously, it does; we further examine whether the parallelogram constructed by the two pivots through point a and point d contains points a, b, c, and d. Obviously, point c is not in the parallelogram, so points a and c are the data points to be saved, and point b is not saved. ac is the first compression segment, and the data point is changed from point a to point d, and so on. In short, the revolving door compression algorithm continuously constructs parallelograms according to the time sequence of data point acquisition, discards the points that fall within the parallelogram, and only saves the data points outside the parallelogram.

[0081] The distance E between the two pivots and point a is also called the threshold value. Parameter E is the only parameter of the revolving door algorithm, and its value selection directly determines the compression effect. When the E value increases, the area of ​​the parallelogram increases, and more data points are included, which means that more data points are discarded, the compression ratio increases, but the compression error also increases synchronously; when the E value decreases, the area of ​​the parallelogram decreases, and fewer data points are included, which means that fewer data points are discarded, the compression ratio decreases, but the compression error also decreases synchronously. In practical applications, it is necessary to make a comprehensive trade-off between the compression ratio and the compression error to find a suitable balance point.

[0082] The original revolving door algorithm is simple and convenient to calculate, but it also has some shortcomings, leaving room for improvement: 1) All data points in the compression cycle must be judged as parallelograms, even if the data value in a period of time does not change or changes very little, which wastes a certain amount of compression time; 2) Once the threshold value E that determines the compression performance is determined, it cannot be changed during the entire compression process, and the controllability is poor; 3) There is no processing of outliers, which will seriously affect the performance of the two compression stages before and after. In view of this, the present invention introduces three strategies for the above three shortcomings, namely, adaptive frequency conversion data storage strategy, dynamic threshold adjustment strategy and outlier point recording strategy, to improve the accuracy of the revolving door algorithm.

[0083] Example 3

[0084] Reference Figure 1 , which is the third embodiment of the present invention. This embodiment is different from the second embodiment in that the adaptive variable frequency data storage strategy of the present invention improves the current data storage method in power secondary devices.

[0085] Currently, there are usually two ways to send telesignaling, telemetry and other data collected by power secondary devices (such as protection devices, measurement and control devices, etc.) to the SCADA system: periodic sending and variable sending. Periodic sending means that the SCADA system sends data request instructions to the device through a general call message at a certain interval, and variable sending means that the device actively sends data frames to the SCADA system after detecting signal changes at some collected data points. There are usually two ways to store historical databases in the SCADA system: periodic storage and variable storage. For some important data points, in order to facilitate the viewing of historical data, users usually set the periodic storage method with a resolution of minutes or even seconds. Because the resolution of this part of data is too high, it will cause a lot of data redundancy, which seriously restricts the utilization of storage space.

[0086] The adaptive variable frequency data storage strategy of the present invention dynamically adjusts the storage interval time according to the numerical variation amplitude of the stored data points. The smoother the data variation within a certain period of time, the longer the storage interval time is, and the more drastic the data variation, the shorter the storage interval time is.

[0087] Assume that the storage time interval is, the minimum storage time interval is, and the storage time interval of the nth storage is. If the current data to be stored is within the parallelogram range of the revolving door algorithm, the storage time interval is increased rapidly, that is, when the stored data does not meet the compression condition, the interval calculation formula of the storage time is as follows:

[0088] Δt=2×Δt n

[0089] The storage time interval is Δt, and the storage time interval of the nth storage data is Δt n Right now:

[0090] If the current data to be stored is outside the parallelogram range of the revolving door algorithm, the storage time interval is quickly reduced, that is, when the stored data does not meet the compression condition, the storage time interval calculation formula is as follows:

[0091]

[0092] Among them, the minimum storage time interval is Δt min .

[0093] Compared with the second embodiment, the threshold value strategy is further dynamically adjusted, and the threshold value of the revolving door algorithm is dynamically adjusted according to the compression error in different time periods according to different types of differential protection data.

[0094] The original revolving door algorithm has only one parameter threshold value E, and the selection of E value directly affects the accuracy and compression ratio of the revolving door algorithm. The SCADA system stores many types of data, such as voltage, current, active power, reactive power, frequency, etc. The fluctuation amplitude of data of different types and at different times is very large, and it is difficult to find a fixed E value that can meet the requirements of excellent performance in data compression of all types and time periods. Therefore, the present invention introduces a dynamic threshold value adjustment strategy to adaptively adjust the threshold value according to the compression error for different data at different time periods.

[0095] The adaptive dynamic adjustment according to the compression error includes dynamically adjusting the threshold value according to each round of compression effect, and can dynamically adjust the compression error and compression ratio. The formula is as follows:

[0096] e n =|η n -ε|

[0097]

[0098] Among them, the error reference value is ε, and the error deviation of reconstruction after the nth round of compression is e n , the upper limit of the threshold is E max , the lower limit of the threshold is E min, the threshold value of the nth round of compression is E n , the threshold value of the n+1th round of compression is E n+1 After the completion, the average compression error between the reconstructed data and the original data is η n .

[0099] Compared with Example 2, the abnormal point recording strategy of the present invention is further, specifically, to judge the differential protection data, if it is abnormal data, then record the value of the abnormal point and skip the abnormal point, and do not start a new compression segment. If it is not abnormal data, judge whether the data meets the compression condition, if it does, compress the differential protection data and start a new compression segment, if it does not meet, execute the adaptive variable frequency data storage strategy, perform adaptive variable frequency data storage on the data, collect the next data, judge whether all data compression is completed, if yes, the algorithm ends, if not, continue to collect and judge the input data.

[0100] During the data collection and storage process of the SCADA system, some data points will experience severe data jitter and jump due to device abnormalities, communication abnormalities, etc. Some data points are very different from other data. These abnormal points may represent a system failure, so the abnormal points cannot be discarded. However, due to the existence of abnormal points, the revolving door algorithm will end the previous round of compression before and after the abnormal point, resulting in data redundancy and reducing compression accuracy. Therefore, the present invention proposes an abnormal point recording strategy: the abnormal point is not used as the endpoint of the compression segment. When the algorithm determines that an abnormal point has occurred, the value of the abnormal point is directly recorded and the abnormal point is skipped, and a new compression segment is not started.

[0101] Assume that the abnormal threshold is ω, and the differential protection data is a sequence D including multiple data n , the nth data value is D n , the last data value is D n-1 , the change range of the two data values ​​ΔD is:

[0102] ΔD=|D n -D n-1 |

[0103] Then when ΔD>ω, D n For outliers, the algorithm compresses the storage and continues to store the data without starting a new compressed segment.

[0104] The remaining structure is the same as that of Example 2.

[0105] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. An improved algorithm for compressing differential protection data using a revolving door algorithm, characterized in that: include, S1: Initialize and improve the parameters of the revolving door algorithm; S2: Execute the abnormal point recording strategy to determine whether the differential protection data is an abnormal point. If yes, execute S6; if not, execute S3; S3: Determine whether the data meets the compression condition. If yes, execute S4. If not, execute S7. S4: compressing the differential protection data and starting a new compression segment; S5: Execute the dynamic threshold adjustment strategy; S6: storing the abnormal point; S7: Execute the adaptive frequency conversion data storage strategy: perform adaptive frequency conversion data storage on the data, collect the next data, and determine whether all data compression is completed. If yes, the algorithm ends, if not, execute S2; The variation range ΔD is related to the data and the value of the previous data of the data, and the formula is as follows: ΔD=|D n -D n-1 | Among them, the value of the nth data of the differential protection data is D n , the value of the previous data is D n-1 ; Adaptive dynamic adjustment based on compression error includes dynamically adjusting the threshold value according to the compression effect of each round, and can dynamically adjust the compression error and compression ratio. The formula is as follows: e n =|η n -e| Among them, the error reference value is ε, and the error deviation of reconstruction after the nth round of compression is e n , the upper limit of the threshold is E max , the lower limit of the threshold is E min , the threshold value of the nth round of compression is E n , the threshold value of the n+1th round of compression is E n+1 After that, the average compression error between the reconstructed data and the original data is η n ; The stored data does not meet the compression conditions, and the calculation formula for the storage time interval is as follows: Δt=2×Δt n The storage time interval is Δt, and the storage time interval of the nth storage data is Δt n ; The stored data does not meet the compression conditions, and the calculation formula for the storage time interval is as follows: Among them, the minimum storage time interval is Δt min .

2. The improved algorithm for compressing differential protection data using a revolving door algorithm as claimed in claim 1, characterized in that: In the abnormal point recording strategy, the differential protection data is a sequence D including multiple data. n .

3. The improved algorithm for compressing differential protection data using the revolving door algorithm as claimed in claim 2, characterized in that: In the abnormal point recording strategy, when the data change amplitude ΔD is greater than a preset abnormal threshold ω, the data is judged to be an abnormal point, the value of the abnormal point is directly recorded and the abnormal point is skipped without starting a new compression segment.

4. The improved algorithm for compressing differential protection data using a revolving door algorithm as claimed in claim 1, characterized in that: The dynamic threshold adjustment strategy dynamically adjusts the threshold of the revolving door algorithm according to the compression error in different time periods according to different types of differential protection data.

5. The improved algorithm for compressing differential protection data using a revolving door algorithm as claimed in claim 1, characterized in that: The adaptive variable frequency data storage strategy dynamically adjusts the storage interval time according to the magnitude of the value change of the stored data. The smoother the data change within a certain period of time, the larger the storage time interval; the more drastic the data change, the smaller the storage time interval.

6. The improved algorithm for compressing differential protection data using a revolving door algorithm as claimed in claim 1, characterized in that: The types of differential protection data include voltage, current, active power, reactive power and frequency in the power system.