PMU data compression and reconstruction method for edge computing devices in distribution networks

Through the two-stage PMU data compression method and 0-order exponential Columbus coding, the problem of large PMU data volume in the edge computing environment of the distribution network is solved, efficient compression and reconstruction are achieved, and the resource constraints and data accuracy requirements of the edge computing environment are met. .

CN114826277BActive Publication Date: 2024-08-30TIANJIN UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210331342.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-08-30
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

The amount of PMU data in the edge computing environment of the distribution network is large. Existing compression methods have challenges in compression ratio, reconstruction accuracy and resource usage, and are difficult to meet the needs of efficient compression and fast processing.

Method used

A two-stage PMU data compression method is adopted, including filter compression and revolving door compression stages, combined with 0th-order exponential Golomb coding, to achieve lossy and lossless compression by controlling parameters and data preprocessing, improving the compression ratio and ensuring data accuracy.

Benefits of technology

While ensuring data accuracy, it significantly improves the compression ratio and reduces the occupation of computing and storage resources. It is suitable for PMU data compression applications in edge computing environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114826277B
    Figure CN114826277B
Patent Text Reader

Abstract

A PMU data compression and reconstruction method for edge computing devices of distribution networks: input control parameters required by a two-stage PMU data compression method; read in multi-channel PMU data obtained from an edge computing device; perform lossy compression and lossless compression stages on the obtained multi-channel PMU data, respectively, the lossy compression stage includes a filtering compression stage and a revolving door compression stage, and obtain PMU data and time-marker index data retained in the lossy compression stage; perform data preprocessing on the obtained PMU data and time-marker index data; perform lossless compression based on 0-order exponential Golomb coding on the obtained results to obtain the final retained data; and execute the next compression cycle. While ensuring the same reconstructed data accuracy, the present invention improves the compression ratio, realizes efficient compression of multiple types of PMU data such as voltage phasors, current phasors, and frequencies, occupies less computing resources and memory resources, and meets the data compression application requirements in edge computing environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a PMU data compression and reconstruction method, and more particularly to a PMU data compression and reconstruction method for a distribution network edge computing device. Background Art

[0002] The application of various advanced information and digital technologies in power grids has greatly accelerated the digital transformation of power grids, and the cloud-edge collaborative architecture has become a new model in the construction and operation of digital power grids. Among them, at the distribution level, the use of edge computing technology to realize the on-site collection, analysis, and processing of massive data, as well as intelligent analysis and decision-making based on this, is an important means to fully release the value of data resources, break through the bottleneck of large-scale data communication transmission, and improve the speed of decision-making in a fast and changing environment. However, at the same time, the computing and storage resources of the edge computing devices of the distribution network are limited, and they need to carry multiple types of power grid services such as protection, control, and monitoring at the same time. The constraints on the resources occupied by a single service are more stringent and critical, which puts higher requirements on the power grid business logic and algorithm design in the edge computing environment.

[0003] In recent years, new measurement technologies represented by synchronized phasor measurement units (PMUs) have been increasingly widely used and have begun to be applied to distribution networks. PMUs use the global positioning system to accurately time-stamp each frame of data, ensuring the synchronization of data acquisition such as voltage phasors and current phasors in the distribution network; the data acquisition rate can reach 100 frames / s, ensuring the real-time nature of data acquisition. The above advantages enable PMUs to provide operators with more abundant distribution network operation information, effectively improve the level of perception of the distribution network's operating status, and provide important data support for applications such as fault location and state estimation. Therefore, the PMU function is regarded as one of the core business functions of edge computing in distribution networks. However, due to its multi-type and high-frequency measurement characteristics, the amount of data collected by PMUs has increased dramatically, bringing huge challenges to its on-site processing and storage on the edge side. A PMU containing 20 types of measurement information and a data upload rate of 60Hz can generate up to 100GB of data per day. This greatly increases the difficulty of deploying and applying PMU services in the edge computing environment of distribution networks.

[0004] Data compression refers to reducing the size of data by processing or reorganizing the data while retaining valuable information, so as to improve its transmission, storage and processing efficiency. It is an important solution to solve the problem of excessive PMU data size in edge computing environments. Lossy compression methods for PMU data based on wavelet compression algorithms, Fourier compression algorithms, principal component analysis algorithms, etc. and lossless compression methods for PMU data based on Huffman coding, arithmetic coding, etc. have been developed at home and abroad. However, there are still challenges in compression ratio, reconstruction accuracy and usability in edge computing environments. The present invention takes into account the limited computing and storage resources on the edge side, and combines the characteristics of PMU data. Based on the improved filtered revolving door compression algorithm and exponential Columbus coding, efficient compression of various types of PMU data in the edge computing environment of the distribution network is achieved. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a PMU data compression and reconstruction method for distribution network edge computing devices that can achieve efficient compression of multiple types of PMU data such as voltage phasors, current phasors, and frequencies in order to overcome the shortcomings of the existing technology.

[0006] The technical solution adopted by the present invention is: a two-stage PMU data compression method for a distribution network edge computing device, including a lossy compression stage and a lossless compression stage, wherein the lossy compression stage includes a filtering compression stage and a revolving door compression stage; the two-stage PMU data compression method includes the following steps:

[0007] 1) Input the control parameters required for the two-stage PMU data compression method, including: the maximum transmission interval T in the filtering and compression stage max and the maximum allowable error δ ExcDev , the maximum allowable error δ during the compression phase of the revolving door CompDev , PMU floating point data decimal place α, PMU data upload rate f, compressed data read control variable n c , compression period ordinal variable β c ;

[0008] 2) Read in the multi-channel PMU data obtained from the edge computing device, including five types of data: three-phase node voltage RMS data, three-phase node voltage phase data, three-phase branch current RMS data, three-phase branch current phase data, and frequency data. For the first compression cycle β c =1, the number of PMU data read in Wherein, the PMU data transmission time interval Δt=1 / f; when β c >1, if n c =0, the number of PMU data read in If c =1, the number of PMU data read in

[0009] 3) Lossy compression is performed on the multi-channel PMU data obtained in step 2), that is, based on the maximum allowable error δ of the filtering and compression stage ExcDev , execute the filtering compression criterion; then based on the maximum allowable error δ of the revolving door compression stage CompDev , performing an improved revolving door compression criterion on the result of the filtering compression criterion, and obtaining the PMU data and time index data retained in the lossy compression stage;

[0010] 4) performing data preprocessing on the PMU data and the time-stamp index data obtained in step 3), including performing differential encoding on the PMU data and the time-stamp index data, and performing normalization processing on the differential sequence obtained by differential encoding of the PMU data;

[0011] 5) Perform lossless compression based on 0-order exponential Golomb coding on the result obtained in step 4) to obtain the final retained data; jump to step 2) to execute the next compression cycle.

[0012] The PMU data compression and reconstruction method for the edge computing device of the distribution network of the present invention combines the improved filtered revolving gate compression method and the 0th-order exponential Columbus coding method. Compared with the filtered revolving gate compression method alone, while ensuring the same reconstructed data accuracy, the compression ratio is further improved, and efficient compression of multiple types of PMU data such as voltage phasors, current phasors, and frequencies is achieved, and the computing resources and memory resources are relatively small, meeting the data compression application requirements in the edge computing environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a flow chart of a two-stage PMU data compression method for a distribution network edge computing device of the present invention;

[0014] Figure 2 It is a schematic diagram of the filtering compression algorithm in the present invention;

[0015] Figure 3 It is a flow chart of the improved revolving door compression algorithm;

[0016] Figure 4 is a schematic diagram of the improved revolving door compression algorithm;

[0017] Figure 5 It is the reconstructed data curve of the effective value of phase A voltage;

[0018] Figure 6 It is the reconstruction error curve of phase A voltage effective value data. DETAILED DESCRIPTION

[0019] The PMU data compression and reconstruction method for the edge computing device of the distribution network of the present invention is described in detail below in conjunction with the embodiments and drawings.

[0020] like Figure 1 As shown, the two-stage PMU data compression method for the edge computing device of the distribution network of the present invention includes a lossy compression stage and a lossless compression stage, wherein the lossy compression stage includes a filtering compression stage and a revolving door compression stage; the two-stage PMU data compression method includes the following steps:

[0021] 1) Input the control parameters required for the two-stage PMU data compression method, including: the maximum transmission interval T in the filtering and compression stage max and the maximum allowable error δ ExcDev , the maximum allowable error δ during the compression phase of the revolving door CompDev , PMU floating point data decimal place α, PMU data upload rate f, compressed data read control variable n c , compression period ordinal variable β c ;

[0022] 2) Read in the multi-channel PMU data obtained from the edge computing device, including five types of data: three-phase node voltage RMS data, three-phase node voltage phase data, three-phase branch current RMS data, three-phase branch current phase data, and frequency data. For the first compression cycle β c =1, the number of PMU data read in Wherein, the PMU data transmission time interval Δt=1 / f; when β c >1, if n c =0, the number of PMU data read in If c =1, the number of PMU data read in

[0023] 3) Lossy compression is performed on the multi-channel PMU data obtained in step 2), that is, based on the maximum allowable error δ of the filtering and compression stage ExcDev , execute the filtering compression criterion; then based on the maximum allowable error δ of the revolving door compression stage CompDev , performing an improved revolving door compression criterion on the result of the filtering compression criterion, and obtaining the PMU data and time index data retained in the lossy compression stage;

[0024] The filtering and compression criterion is defined for each type of data obtained in step 2) according to the time scale order: the last data point saved before the filtering and compression stage is set as ξ save , set the set of data points saved in the filtering and compression phase to ξ temp , set the current new data point in the filtering and compression stage to ξ curr, set the previous data point of the current new data point to ξ prev , then the current new data point ξ curr The basis for judging whether it is compressed is as follows:

[0025] ΔT <T max (1)

[0026]

[0027] Where ΔT is ξ curr With ξ save The time difference is ξ temp The number of elements in the set, that is: ξ temp (s-1) is ξ temp The last element in the set; if two consecutive data points satisfy both equations (1) and (2), the previous data point is discarded, and the next data point is judged together with the next connected data point; otherwise, these two consecutive data points are included in the saved data point set ξ temp In the compression process, the first data point does not participate in the compression. This mechanism determines that the maximum error in the filtering and compression stage does not exceed 2δ ExcDev ;like Figure 2 As shown in the figure, a filter compression frame is established with point A as the starting point, and filter compression judgment is performed starting from point B. For point B, since both points B and C are in the current filter compression frame, point B is discarded. For point C, since point D is not in the current filter compression frame, both points C and D are retained. Next, a new filter compression frame is established with point D as the starting point, and the above judgment process is repeated until all data points in the compression cycle have completed the filter compression criterion. At this time, point F is ξ curr , point E is ξ prev ;

[0028] The ξ obtained by the filter compression criterion temp The data set performs the improved revolving door compression criterion, and the calculation formula is as follows:

[0029]

[0030]

[0031] k up ≤k down (5)

[0032] i≤s+1 (6)

[0033] In the formula, ξ SDT The set is s+2 dimensional vectors, which are represented by ξ save , temp , prev Combined in the order of time scales; i, j are ξ SDTThe index variable of the collection, ξ SDT (j) is ξ SDT The j+1th element in the set; and is SDT (j) with the same time scale and distance δ CompDev The upper and lower fulcrums; SDT (i) is ξ SDT The i+1th element in the set, k up For SDT (i) With upper fulcrum The maximum value of the slope, k down For SDT (i) With the lower support The minimum value of the slope is constructed; make the following judgments:

[0034] (1) For j = 0 and i∈{j+1,…,s+1} SDT The data points in the set are sequentially subjected to the revolving door compression criterion. If equations (3) to (6) are all valid, then ξ temp All data points in the set are discarded, the lossy compression phase ends, and ξ is saved prev , as the last data point to be saved before the next filtering and compression stage ξ save , set n c = 0, and pass ξ save , curr Time mark and k up , k down to the next compression cycle;

[0035] (2) Let t and q be ξ SDT The index variable of the set, ξ for j = t, t∈{0,…,s} and i∈{j+1,…,s+1} SDT The set of data points executes the revolving door compression criterion in sequence. If it executes to a point in i∈q,q∈{j+1,…,s+1}, equation (5) does not hold, but equation (6) holds, then ξ is retained. SDT (q-1), and let j = q-1, continue to execute step (2) for all points in i∈{j+1,…,s+1}. If equation (6) does not hold, jump to step (3);

[0036] (3) The lossy compression stage ends, and n is set c =1, passing ξ save , prev , curr and the corresponding time scale and k up , k down to the next compression cycle.

[0037] Steps (1) to (3) can be summarized as Figure 3 The calculation process shown in FIG. Figure 4 As shown, it is known that point B is discarded in the filtering compression, and point A is ξ save , points C and D are the ξ retained in the filtering and compression stage temp The elements in the set, point E is ξ prev , point F is ξ curr ; Points A to F form ξ SDT Initially, point A is used as the starting point of the revolving door compression; point C fully satisfies the improved revolving door compression criterion, and point D only does not satisfy formula (5), so point C is saved and used as the new revolving door starting point; points D and E fully satisfy the improved revolving door compression criterion, and point F does not satisfy formula (6), so point D is discarded, and the selection of points E and F is determined by the next compression cycle.

[0038] 4) performing data preprocessing on the PMU data and the time-stamp index data obtained in step 3), including performing differential encoding on the PMU data and the time-stamp index data, and performing normalization processing on the differential sequence obtained by differential encoding of the PMU data;

[0039] The differential encoding and normalization processing method is as follows:

[0040] The differential encoding is to perform differential encoding on the PMU data and the time-scale index data obtained in step 3), specifically, to keep the true value of the first data point in the PMU data unchanged, and to subtract the current data point from the previous data point in turn from the second data point to obtain the differential sequence Δξ c ; The calculation formula for the difference value of two adjacent data points is as follows:

[0041] Δξ c (l) = ξ c (l)-ξ c (l-1) (7)

[0042] Where l∈N is the index variable, Δξ c (l) is the difference sequence Δξ c The l+1th data point, ξ c (l) is the l+1th data point of the PMU data and time-scale index data obtained in step 3), ξ c (l-1) is the lth data point of the PMU data and time-scale index data obtained in step 3);

[0043] The normalization process is to normalize the obtained PMU data differential sequence. The normalization process formula is as follows:

[0044] Δξ int (m) = Δξ c (m)×10 α(8)

[0045]

[0046] Where m is the index variable, Δξ int is the PMU data integer sequence, Δξ int (m) is Δξ int The m+1th element of nd is a non-negative integer sequence of PMU data, ξ nd (m) is ξ nd The i+1th element of .

[0047] 5) Perform lossless compression based on 0-order exponential Golomb coding on the result obtained in step 4) to obtain the final retained data; jump to step 2) to execute the next compression cycle; the specific steps of the 0-order exponential Golomb coding are as follows:

[0048] (5.1) Let the element in the difference sequence of PMU data non-negative integers and time-scale index data be ξ EG , calculate ξ respectively EG The group number g and the offset within the group;

[0049]

[0050] offset=ξ EG +1-2 g (11)

[0051] In the formula, Represents rounding down to the nearest integer.

[0052] (5.2) Write g zeros into the binary bit data stream in sequence;

[0053] (5.3) Write a 1 into the binary bit data stream;

[0054] (5.4) Write the lower g bits of offset into the binary bit data stream;

[0055] By continuously EG Perform the lossless encoding process from (5.1) to (5.4) to achieve two-stage PMU data compression.

[0056] The PMU data reconstruction method of the two-stage PMU data compression method for the edge computing device of the distribution network of the present invention includes two stages: 0-order exponential Golomb decoding and linear interpolation; specifically includes the following steps:

[0057] 1) Input the control parameters required by the reconstruction method of PMU compressed data, including: PMU floating point data decimal place α, PMU data upload rate f, reconstruction cycle ordinal variable β r ;

[0058] 2) Read in PMU compressed data and time-scale index data, a total of ten categories, including three-phase node voltage effective value data and corresponding time-scale index data, three-phase node voltage phase data and corresponding time-scale index data, three-phase branch current effective value data and corresponding time-scale index data, three-phase branch current phase data and corresponding time-scale index data, frequency data and corresponding time-scale index data in the compressed PMU data; for each reconstruction cycle, the number of bytes of compressed data read in is n tr =1024; if a compression cycle is executed and the number of bytes to be reconstructed is less than 1024, read according to the actual number of remaining bytes;

[0059] 3) For each type of data obtained in step 2), the first stage of 0-order exponential Golomb decoding is performed to obtain a non-negative integer sequence; the 0-order exponential Golomb decoding steps are as follows:

[0060] (3.1) Let the binary bit data stream of PMU compressed data and time-stamp index data be ξ byte ,ξ byte After 0-order exponential Golomb decoding, we get a non-negative integer sequence, ξ EG is an element in the non-negative integer sequence. For each type of data, read ξ bit by bit byte , when the reading ends at bit 1, calculate the number of bits 0 read, that is, ξ EG The group number g in the 0th order Exponential Golomb coding stage;

[0061] (3.2) Continue to read g bits of binary data and convert them into decimal data, which is ξ EG The offset within the group;

[0062] (3.3) Based on formula (11), we can calculate ξ EG ;

[0063] By continuously byte Execute steps (3.1) to (3.4) to implement 0-order exponential Golomb decoding on the PMU compressed data and the time-scale index data to obtain a non-negative integer sequence of the PMU compressed data and a non-negative integer sequence of the time-scale index data.

[0064] 4) For each type of PMU compressed data non-negative integer sequence and time-scale index data non-negative integer sequence obtained in step 3), data preprocessing is performed respectively, including performing an inverse transformation of normalization processing and an inverse transformation of differential coding on the PMU compressed data non-negative integer sequence, and performing an inverse transformation of differential coding on the time-scale index data non-negative integer sequence; the methods of the inverse transformation of normalization processing and the inverse transformation of differential coding are as follows:

[0065] The inverse transformation of the normalization process is to obtain the non-negative integer sequence ξ of the PMU data in step 3). nd The inverse transformation of normalization is as follows:

[0066]

[0067] Δξ p (u) = Δξ int (u)×10 -α (13)

[0068] In the formula, u is the index variable, ξ nd (u) is the non-negative integer sequence ξ of PMU data nd The u+1th element in int is the PMU compressed data integer sequence, Δξ int (u) is Δξ int The u+1th element of p is the PMU compressed data differential sequence, Δξ p (u) is Δξ p The u+1th element of ;

[0069] Since the time-scale index data is compressed without normalization, the non-negative integer sequence of the time-scale index data is also the difference sequence of the time-scale index data. Let the difference sequence of PMU compressed data and the difference sequence of time-scale index data be Δξ r , the inverse transform of the differential encoding is Δξ r The inverse transformation of differential encoding is performed starting from the second data point. The formula is as follows:

[0070] ξ r (v) = Δξ r (v)+ξ r (v-1) (14)

[0071] Where v is the index variable, Δξ r (v) is Δξ r The v+1th element in the sequence, ξ r (v-1) is the vth element of the PMU data sequence or time-scale index data sequence after lossy compression, ξ r(v) is the v+1th element of the PMU data sequence or the time-stamp index data sequence after lossy compression.

[0072] 5) Perform linear interpolation on the result obtained in step 4) to obtain the final reconstructed data; jump to step 2) to perform the next reconstruction cycle; the specific steps of the linear interpolation are as follows:

[0073] Assume that the time interval for sending PMU data is Δt=1 / f; the operation data involved in linear interpolation are the two adjacent data of the lossy compressed PMU data sequence obtained in step 4) and the time stamps of these two data in the time stamp index data sequence after lossy compression, which are respectively denoted as ξ head , end and t head ,t end When t end With t head When the difference is Δt, it means that the two data are adjacent and no linear interpolation is required; let p be the indicator variable, When t end With t head When the difference is pΔt, it means that there are p-1 data between the two data that are discarded and need to be reconstructed by linear interpolation method;

[0074] Let w be the index variable and the data point to be reconstructed be ξ recon (w), the corresponding time scale is (t head +wΔt),w∈{1,···,p-1},ξ recon The calculation formula of (w) is:

[0075]

[0076] The reconstructed PMU data sequence is obtained by continuously reconstructing the missing data between adjacent data in the lossy compressed PMU data sequence.

[0077] Here are some specific examples:

[0078] In order to verify the effectiveness and feasibility of the PMU data compression and reconstruction method for the edge computing device of the distribution network proposed in the present invention, the actual distribution network PMU measurement data was used to test the performance of the compression algorithm.

[0079] The upload rate of the on-site PMU is 50Hz, that is, the PMU data upload time interval Δt=0.02s, and the voltage level is 10kV. The present invention example selects the PMU measurement data types that need to be stored on the edge side, including three-phase node voltage effective value data, three-phase node voltage phase data, three-phase branch current effective value data, three-phase branch current phase data, and frequency data. One hour of continuous data is selected for compression algorithm performance testing, and each measurement type data includes 180,000 data points. Assume that each measurement type of PMU data is stored in a file, the encoding method is UTF-8, and each file contains only 1 hour of measurement data of this type. The ID identifier of the measurement type data and the time mark corresponding to the initial data point are in the file name, and the time corresponding to the remaining data points can be calculated based on Δt.

[0080] The compressed data files obtained by Exponential Columbus encoding are two binary files, which store the PMU data and time-stamp index data retained by the compression algorithm respectively. The format of the reconstructed data file in the example is the same as the original data file, and the encoding method is UTF-8. The calculation method of the reconstructed data accuracy is the absolute and relative error between the corresponding data of the original PMU data and the reconstructed PMU data.

[0081] For the compression algorithm control parameter T max ,δ ExcDev and δ CompDev Considering the actual operation characteristics of the distribution network and the characteristics of the PMU voltage, current, and frequency measurement data, and taking into account the storage space and data timeliness, T is set. max = 1s, that is, the number of compressed data participating in filtering the revolving door in each round is 50; the maximum single-point error requirement of each data type δ determines the control parameter δ ExcDev ,δ CompDev The maximum value of . Set δ based on experience ExcDev With δ CompDev The ratio is 1:2. Table 1 shows the specific values ​​of the compression algorithm control parameters.

[0082] The present invention uses compression ratio (CR) and reconstructed data accuracy to reflect the performance of the data compression algorithm. The compression ratio is the ratio of the original PMU data file size to the total size of the compressed file:

[0083]

[0084] In the formula, F Orig is the size of the original PMU data file, F Comp is the total size of the compressed file, that is, the sum of the sizes of the compressed PMU data file and the time-stamp index data file.

[0085] The accuracy of reconstructed data uses three indicators: maximum absolute error (MAE), mean absolute error percentage (MAEP), and mean relative error percentage (MREP). Among them, the maximum absolute error is used to measure the impact of the compression algorithm on the accuracy of a single data point; the mean absolute error percentage is used to measure the impact of the compression algorithm on the overall accuracy of the phase and frequency data; the mean relative error percentage is used to measure the impact of the compression algorithm on the overall accuracy of the voltage and current effective value data. The specific calculation formula is as follows:

[0086] Maximum absolute error MAE:

[0087]

[0088] Mean absolute error percentage MAEP:

[0089]

[0090] Mean relative error percentage MREP:

[0091]

[0092] In the formula, ξ n is the original PMU data, To reconstruct PMU data, N is the number of original PMU data.

[0093] The compression algorithm performance test is carried out based on actual PMU data, and the results are shown in Table 2. CR0 is the ratio of the total size of the original PMU data file to the total size of the compressed file after the improved filtering revolving door compression criterion is performed on the original PMU data, that is, the compression ratio of the lossy compression stage; CR To further complete the 0th-order Exponential Golomb encoding, the ratio of the total size of the original PMU data file to the compressed file is the total compression ratio of the entire compression algorithm; the subscripts A, B, and C of the voltage or current phasor data represent each phase respectively.

[0094] It can be concluded from Table 2 that the maximum absolute error of all types of data does not exceed the set maximum single-point error, verifying that the error of the improved filtered revolving door compression algorithm is controlled; the total compression ratio of all data exceeds 8, and the compression effect of the three-phase node voltage phasor or the three-phase branch current phasor is similar, indicating that the algorithm can better adapt to the compression of various types of PMU data.

[0095] Among them, for the phase voltage effective value data, the total compression ratio exceeds 30, the maximum single-point error does not exceed 2.1V, and the average relative error is controlled within 0.01%; for the voltage phase data, the total compression ratio exceeds 30, the maximum single-point error does not exceed 0.1°, and the average absolute error is controlled within 0.025°; for the frequency data, the total compression ratio exceeds 30, the maximum single-point error is 0.002Hz, and the average relative error is 0.0006Hz. It can be concluded that for the original data with small fluctuations, such as voltage phasor and frequency data, the compression ratio in the lossy compression stage is relatively high. After differential preprocessing, the absolute value of the data is small, which meets the exponential Columbus lossless compression coding characteristics. Therefore, the lossless compression stage further improves the data compression ratio while ensuring the same reconstructed data accuracy.

[0096] In addition, for the branch current effective value data, the total compression ratio exceeds 8, the maximum single-point error does not exceed 3.1A, and the average relative error is controlled within 0.1%; for the current phase data, the total compression ratio exceeds 14, the maximum single-point error does not exceed 0.1°, and the average absolute error is controlled within 0.025°. This is because the current phasor data is closely related to the load, has strong uncertainty and large fluctuations. In order to ensure the accuracy of data reconstruction in the lossy compression stage, the compression ratio is relatively low, resulting in a smaller degree of compression ratio improvement after lossless compression than the voltage phasor and frequency data, and a relatively low total compression ratio.

[0097] In order to intuitively reflect the accuracy of the reconstructed data, taking the phase voltage RMS data as an example, the original A phase voltage RMS data for 1 hour, the reconstructed data and the error curve are plotted, as shown in Figure 2. Figure 5 and Figure 6 As shown in the figure, the original data fluctuates around 6050V, and the reconstructed data can follow the original data well; the error curve also shows that the error between the original data and the reconstructed data is controlled.

[0098] In summary, the PMU data compression and reconstruction method for the edge computing device of the distribution network proposed in the present invention can achieve efficient compression of multiple types of PMU data such as voltage phasors, current phasors, and frequencies, and meet the data compression application requirements in the edge computing environment.

[0099] Table 1 Compression algorithm parameter settings

[0100]

[0101] Note: The subscript φ represents phase data, the superscript RMS represents effective value, and P represents phase. Phase voltage reference value U 0 =5.774kV, branch current reference value I 0 =1000A.

[0102] Table 2 PMU data compression results

[0103]

[0104]

Claims

1. A PMU data compression method for a distribution network edge computing device, characterized in that: The method comprises a lossy compression stage and a lossless compression stage, wherein the lossy compression stage comprises a filtering compression stage and a revolving door compression stage; the two-stage PMU data compression method comprises the following steps: 1) Input the control parameters required for the two-stage PMU data compression method, including: the maximum transmission interval T in the filtering and compression stage max and the maximum allowable error δ ExcDev , the maximum allowable error δ during the compression phase of the revolving door CompDev , PMU floating point data decimal place α, PMU data upload rate f, compressed data read control variable n c , compression period ordinal variable β c ; 2) Read in the multi-channel PMU data obtained from the edge computing device, including five types of data: three-phase node voltage RMS data, three-phase node voltage phase data, three-phase branch current RMS data, three-phase branch current phase data, and frequency data. For the first compression cycle β c =1, the number of PMU data read in Wherein, the PMU data transmission time interval Δt=1 / f; when β c >1, if n c =0, the number of PMU data read in If c =1, the number of PMU data read in 3) Lossy compression is performed on the multi-channel PMU data obtained in step 2), that is, based on the maximum allowable error δ in the filtering and compression stage ExcDev , execute the filtering compression criterion; then based on the maximum allowable error δ of the revolving door compression stage CompDev , performing an improved revolving door compression criterion on the result of the filtering compression criterion, and obtaining the PMU data and time index data retained in the lossy compression stage; The filtering and compression criterion is defined for each type of data obtained in step 2) according to the time scale order: the last data point saved before the filtering and compression stage is set as ξ save , set the set of data points saved in the filtering and compression phase to ξ temp , set the current new data point in the filtering and compression stage to ξ curr , set the previous data point of the current new data point to ξ prev , then the current new data point ξ curr The basis for judging whether it is compressed is as follows: ΔT<T max (1) Where ΔT is ξ curr With ξ save The time difference is ξ temp The number of elements in the set, that is: ξ temp (s-1) is ξ temp The last element in the set; if two consecutive data points satisfy both equations (1) and (2), the previous data point is discarded, and the next data point is judged together with the next connected data point; otherwise, these two consecutive data points are included in the saved data point set ξ temp In the compression process, the first data point does not participate in the compression. This mechanism determines that the maximum error in the filtering and compression stage does not exceed 2δ ExcDev ; The ξ obtained by the filter compression criterion temp The data set performs the improved revolving door compression criterion, and the calculation formula is as follows: k up ≤k down (5) i≤s+1 (6) In the formula, ξ SDT The set is s+2-dimensional vectors, which are represented by ξ save , temp , prev Combined in the order of time scales; i, j are ξ SDT The index variable of the collection, ξ SDT (j) is ξ SDT The j+1th element in the set; and is with ξ SDT (j) with the same time scale and distance δ CompDev The upper and lower fulcrums; SDT (i) is ξ SDT The i+1th element in the set, k up For SDT (i) With upper fulcrum The maximum value of the slope, k down For SDT (i) With the lower support The minimum value of the slope is constructed; make the following judgments: (1) For j = 0 and i∈{j+1,…,s+1} SDT The data points in the set are sequentially subjected to the revolving door compression criterion. If equations (3) to (6) are all valid, then ξ temp All data points in the set are discarded, the lossy compression phase ends, and ξ is saved prev , as the last data point to be saved before the next filtering and compression stage ξ save , set n c = 0, and pass ξ save , curr Time mark and k up , k down to the next compression cycle; (2) Let t and q be ξ SDT The index variable of the set, ξ for j = t, t∈{0,…,s} and i∈{j+1,…,s+1} SDT The set of data points executes the revolving door compression criterion in sequence. If it executes to a point in i∈q,q∈{j+1,…,s+1}, equation (5) does not hold, but equation (6) holds, then ξ is retained. SDT (q-1), and let j = q-1, continue to execute step (2) for all points in i∈{j+1,…,s+1}. If equation (6) does not hold, jump to step (3); (3) The lossy compression stage ends, and n is set c =1, passing ξ save , prev , curr and the corresponding time scale and k up , k down to the next compression cycle; 4) performing data preprocessing on the PMU data and the time-stamp index data obtained in step 3), including performing differential encoding on the PMU data and the time-stamp index data, and performing normalization processing on the differential sequence obtained by differential encoding of the PMU data; 5) Perform lossless compression based on 0-order exponential Golomb coding on the result obtained in step 4) to obtain the final retained data; jump to step 2) to execute the next compression cycle.

2. The PMU data compression method for the edge computing device of the distribution network according to claim 1 is characterized in that: The differential encoding and normalization processing method described in step 4) is as follows: The differential encoding is to perform differential encoding on the PMU data and the time-scale index data obtained in step 3), specifically, to keep the true value of the first data point in the PMU data unchanged, and to subtract the current data point from the previous data point in turn from the second data point to obtain the differential sequence Δξ c ; The calculation formula for the difference value of two adjacent data points is as follows: Right c (l)=ξ c (l)-ξ c (l-1) (7) In the formula, is the index variable, Δξ c (l) is the difference sequence Δξ c The l+1th data point, ξ c (l) is the l+1th data point of the PMU data and time-scale index data obtained in step 3), ξ c (l-1) is the lth data point of the PMU data and time-scale index data obtained in step 3); The normalization process is to normalize the obtained PMU data differential sequence. The normalization process formula is as follows: Right int (m)=Dx c (m)×10 α (8) Where m is the index variable, Δξ int is the PMU data integer sequence, Δξ int (m) is Δξ int The m+1th element of nd is a non-negative integer sequence of PMU data, ξ nd (m) is ξ nd The i+1th element of .

3. The PMU data compression method for the edge computing device of the distribution network according to claim 1, characterized in that: The specific steps of the 0-order exponential Golomb coding described in step 5) are as follows: (5.1) Let the element in the difference sequence of PMU data non-negative integers and time-scale index data be ξ EG , calculate ξ respectively EG The group number g and the offset within the group; offset=ξ EG +1-2 g (11) In the formula, Represents rounding down to the nearest integer. (5.2) Write g zeros into the binary bit data stream in sequence; (5.3) Write a 1 into the binary bit data stream; (5.4) Write the lower g bits of offset into the binary bit data stream; By continuously EG Perform the lossless encoding process from (5.1) to (5.4) to achieve two-stage PMU data compression.

4. A PMU data reconstruction method for the PMU data compression method for the edge computing device of the distribution network according to claim 1, characterized in that: It includes two stages: 0-order exponential Golomb decoding and linear interpolation; specifically, it includes the following steps: 1) Input the control parameters required by the reconstruction method of PMU compressed data, including: PMU floating point data decimal place α, PMU data upload rate f, reconstruction cycle ordinal variable β r ; 2) Read in PMU compressed data and time-scale index data, a total of ten categories, including three-phase node voltage effective value data and corresponding time-scale index data, three-phase node voltage phase data and corresponding time-scale index data, three-phase branch current effective value data and corresponding time-scale index data, three-phase branch current phase data and corresponding time-scale index data, frequency data and corresponding time-scale index data in the compressed PMU data; for each reconstruction cycle, the number of bytes of compressed data read in is n tr =1024; if a compression cycle is executed and the number of bytes of data to be reconstructed is less than 1024, read according to the actual number of remaining bytes; 3) For each type of data obtained in step 2), perform the first stage 0-order exponential Golomb decoding to obtain a non-negative integer sequence; 4) performing data preprocessing on each type of PMU compressed data non-negative integer sequence and time-scale index data non-negative integer sequence obtained in step 3), including performing inverse transformation of normalization processing and inverse transformation of differential coding on the PMU compressed data non-negative integer sequence, and performing inverse transformation of differential coding on the time-scale index data non-negative integer sequence; 5) Perform linear interpolation on the result obtained in step 4) to obtain the final reconstructed data; jump to step 2) to execute the next reconstruction cycle.

5. The PMU data reconstruction method according to claim 4, characterized in that: The 0-order exponential Golomb decoding steps described in step 3) are as follows: (3.1) Let the binary bit data stream of PMU compressed data and time-stamp index data be ξ byte ,ξ byte After 0-order exponential Golomb decoding, we get a non-negative integer sequence, ξ EG is an element in a non-negative integer sequence. For each type of data, read ξ bit by bit byte , when the reading ends at bit 1, calculate the number of bits 0 read, that is, ξ EG The group number g in the 0th order Exponential Golomb coding stage; (3.2) Continue to read g bits of binary data and convert them into decimal data, which is ξ EG The offset within the group; (3.3) Based on the formula offset = ξ EG +1-2 g Calculate ξ EG ; By continuously byte Execute steps (3.1) to (3.4) to implement 0-order exponential Golomb decoding on the PMU compressed data and the time-scale index data to obtain a non-negative integer sequence of the PMU compressed data and a non-negative integer sequence of the time-scale index data.

6. The PMU data reconstruction method according to claim 4, characterized in that: The method of inverse transformation of normalization processing and inverse transformation of differential coding described in step 4) is as follows: The inverse transformation of the normalization process is to obtain the non-negative integer sequence ξ of the PMU data in step 3). nd The inverse transformation of normalization is as follows: Right p (u)=Dx int (u)×10 -α (13) In the formula, u is the index variable, ξ nd (u) is the non-negative integer sequence ξ of PMU data nd The u+1th element in int is the PMU compressed data integer sequence, Δξ int (u) is Δξ int The u+1th element of p is the PMU compressed data differential sequence, Δξ p (u) is Δξ p The u+1th element of ; Since the time-scale index data is compressed without normalization, the non-negative integer sequence of the time-scale index data is also the difference sequence of the time-scale index data. Let the difference sequence of PMU compressed data and the difference sequence of time-scale index data be Δξ r , the inverse transform of the differential encoding is Δξ r The inverse transformation of differential encoding is performed starting from the second data point. The formula is as follows: x r (v)=Dx r (v)+ξ r (v-1) (14) Where v is the index variable, Δξ r (v) is Δξ r The v+1th element in the sequence, ξ r (v-1) is the vth element of the PMU data sequence or time-scale index data sequence after lossy compression, ξ r (v) is the v+1th element of the PMU data sequence or the time-stamp index data sequence after lossy compression.

7. The PMU data reconstruction method according to claim 4, characterized in that: The linear interpolation described in step 5) is specifically performed as follows: Assume that the time interval for sending PMU data is Δt=1 / f; the operation data involved in linear interpolation are the two adjacent data of the lossy compressed PMU data sequence obtained in step 4) and the time stamps of these two data in the time stamp index data sequence after lossy compression, which are respectively denoted as ξ head , end and t head ,t end When t end With t head When the difference is Δt, it means that the two data are adjacent and no linear interpolation is required; let p be the indicator variable, When t end With t head When the difference is pΔt, it means that there are p-1 data between the two data that are discarded and need to be reconstructed by linear interpolation method; Let w be the index variable and the data point to be reconstructed be ξ recon (w), the corresponding time scale is (t head +wΔt),w∈{1,…,p-1},ξ recon The calculation formula of (w) is: The reconstructed PMU data sequence is obtained by continuously reconstructing the missing data between adjacent data in the lossy compressed PMU data sequence.

Citation Information

Patent Citations

  • Efficient systems and methods for construction and operation of mobile wind power platforms

    CN104508297A

  • A real-time data compression method for synchronous phasor data measurement

    CN109936373A