Multi-terminal recording data synchronization method, device and equipment, storage medium and program product
By performing wavelet transformation and time delay compensation on multi-end wave recording data, the problem of unsatisfactory synchronization in the prior art is solved, and the accuracy of data synchronization and the accuracy of fault location are improved.
Patent Information
- Application Number
- CN202411165046.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-22
AI Technical Summary
The existing multi-end wave recording data synchronization methods, such as the phase method, have large calculation volume and are limited by the network topology, resulting in unsatisfactory synchronization results and reduce the fault positioning accuracy.
By acquiring the multi-end initial wave recording data for continuous wavelet transformation, the target time point and time delay are determined, and time delay compensation is performed to improve synchronization accuracy.
It improves the synchronization accuracy of multi-end wave recording data, reduces errors, and enhances the accuracy of fault location.
Smart Images

Figure CN119003659A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power technology, and in particular to a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for synchronizing multi-terminal waveform recording data. Background Technology
[0002] With the development of power technology, multi-terminal waveform recording data synchronization technology has emerged, which uses data collected by multi-terminal relay protection waveform recording equipment to locate the location of the fault.
[0003] In traditional technology, the phase method is used to synchronize the time of fault recording data at both ends of a power line. The phase method is based on the steady-state data during normal operation of the power system. The true phase angle difference between the two ends of the line is calculated from the steady-state current phasor, and the actual phase angle difference is calculated from the steady-state voltage phasor. By comparing the two, the time synchronization of fault recording data at both ends of the line is achieved.
[0004] However, current multi-terminal waveform data synchronization methods, such as the phase method, require system power flow calculations using line parameters. Limited by network topology, this involves a large computational load, and the line parameters may differ from the given parameters, leading to errors in the phase angle difference obtained from the power flow calculation, resulting in unsatisfactory synchronization results. Furthermore, using multi-terminal waveform data with unsatisfactory synchronization results for fault location also reduces fault location accuracy. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for synchronizing multi-terminal waveform recording data, which can improve synchronization accuracy, in response to the above-mentioned technical problems.
[0006] In a first aspect, this application provides a method for synchronizing multi-terminal waveform recording data, the method comprising:
[0007] Acquire multi-terminal initial waveform data, and perform continuous wavelet transform on the multi-terminal initial waveform data to obtain the time-frequency information of the multi-terminal initial waveform data;
[0008] Based on the time-frequency information of the initial waveform data from the multi-terminal sources, a target time point is determined, and based on the target time point, normal waveform data in the initial waveform data is determined.
[0009] Calculate the target correlation coefficient corresponding to the normal waveform data, and determine the time delay of the multi-terminal normal waveform data based on the target correlation coefficient;
[0010] The initial waveform data of the multi-terminal device is compensated based on the time delay to obtain the target waveform data of the multi-terminal device.
[0011] In one embodiment, determining the target time point based on the time-frequency information of the multi-terminal initial waveform data includes:
[0012] Extract the fundamental frequency component from the time-frequency information according to the reference frequency to obtain the amplitude variation curve of each end at the reference frequency;
[0013] Calculate the slope of each amplitude change curve at different time points, obtain the time point corresponding to the maximum slope, and use each time point as the initial time point of each end;
[0014] The smallest initial time point among the initial time points of each end is obtained and used as the target time point for the initial waveform data of the multi-end.
[0015] In one embodiment, the normal waveform data includes first waveform data and second waveform data, wherein the first waveform data includes only one end of waveform data, and the second waveform data includes at least one end of waveform data; the step of calculating the target correlation coefficient corresponding to the normal waveform data and determining the time delay of the multi-end normal waveform data based on the target correlation coefficient includes:
[0016] The first waveform data is used as a reference sequence, and each end of the waveform data in the second waveform data is used as a sequence to be detected;
[0017] Based on each of the sequences to be detected and the reference sequences, the target correlation coefficient is determined;
[0018] The time delay of the sequence to be detected is determined based on the target correlation coefficient and the reference sequence.
[0019] In one embodiment, determining the target correlation coefficient based on each of the sequences to be detected and the reference sequence includes:
[0020] Each of the sequences to be detected is moved, and the correlation coefficient between each moved sequence and the reference sequence is calculated.
[0021] The largest correlation coefficient is taken as the target correlation coefficient.
[0022] In one embodiment, determining the time delay of the sequence to be detected based on the target correlation coefficient and the reference sequence includes:
[0023] Using the signal of the reference sequence as a reference, the signal of the sequence to be detected is shifted;
[0024] Calculate the same trend value of change between the signal of the reference sequence and the signal of the shifted detection sequence;
[0025] When the same trend value is at its maximum, the time delay of the signal of the sequence to be detected is obtained.
[0026] In one embodiment, the multi-end initial waveform data includes an initial waveform signal at each end corresponding to each of the sequences to be detected and an initial waveform signal at one end corresponding to the reference sequence; the multi-end initial waveform data is compensated according to the time delay to obtain multi-end target waveform data, including:
[0027] For each of the initial waveform recording signals corresponding to each end of the sequence to be detected, the target number of sampling points are shifted to align with the initial waveform recording signal corresponding to one end of the reference sequence, thereby obtaining the multi-end target waveform recording data; wherein the number of targets is determined based on the time delay.
[0028] Secondly, this application also provides a multi-terminal waveform recording data synchronization device, the device comprising:
[0029] The acquisition module is used to acquire multi-terminal initial waveform data and perform continuous wavelet transform on the multi-terminal initial waveform data to obtain the time-frequency information of the multi-terminal initial waveform data.
[0030] The normal waveform data determination module is used to determine a target time point based on the time-frequency information of the multi-terminal initial waveform data, and to determine the normal waveform data in the multi-terminal initial waveform data based on the target time point;
[0031] The time delay determination module is used to calculate the target correlation coefficient corresponding to the normal waveform data, and determine the time delay of the normal waveform data based on the target correlation coefficient.
[0032] The compensation module is used to compensate the initial waveform data of the multi-terminals according to the time delay to obtain the target waveform data of the multi-terminals.
[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.
[0034] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0036] The aforementioned multi-terminal waveform recording data synchronization method, apparatus, computer equipment, computer-readable storage medium, and computer program product, targeting the data characteristics during high-voltage line faults, acquires initial waveform recording data from multiple terminals and performs continuous wavelet transform on the initial waveform recording data to obtain its time-frequency information. Based on the time-frequency information of the initial waveform recording data, a target time point, i.e., the time corresponding to the data jump point, is determined. Using this time point as the location, a fixed length of normal waveform recording data is extracted. Furthermore, using this point as the location, correlation calculation is performed on the normal waveform recording data from multiple terminals to determine the target correlation coefficient. Based on the target correlation coefficient, the time delay of the multi-terminal waveform recording data is determined, and compensation is performed on the initial waveform recording data from multiple terminals according to the time delay. After time delay compensation, the signal data from each terminal in the initial waveform recording data from multiple terminals are aligned in the time dimension, thereby improving the synchronization accuracy of the multi-terminal waveform recording data. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is an application environment diagram of a multi-terminal waveform recording data synchronization method in one embodiment;
[0039] Figure 2 This is a flowchart illustrating a multi-terminal waveform recording data synchronization method in one embodiment;
[0040] Figure 3 This is a schematic diagram of initial waveform data from multiple terminals in one embodiment;
[0041] Figure 4 Here is a time-frequency analysis diagram from one embodiment;
[0042] Figure 5 This is a schematic diagram of multi-target waveform recording data in one embodiment;
[0043] Figure 6 This is a schematic diagram of the initial waveform data from multiple terminals in another embodiment;
[0044] Figure 7 This is a schematic diagram of multi-target waveform recording data in another embodiment;
[0045] Figure 8 This is a flowchart illustrating the process of determining a target time point based on time-frequency information in one embodiment.
[0046] Figure 9 This is a schematic diagram of the amplitude variation curve at a frequency of 50Hz in one embodiment;
[0047] Figure 10 This is a graph showing the amplitude variation of initial waveform data from both ends at a frequency of 50Hz in another embodiment.
[0048] Figure 11 This is a flowchart illustrating the process of determining the time delay of multi-terminal normal waveform recording data based on the target correlation coefficient in one embodiment.
[0049] Figure 12 This is a flowchart illustrating the process of determining the target correlation coefficient in one embodiment;
[0050] Figure 13 Correlation diagram of normal waveform data in another embodiment;
[0051] Figure 14 Here is a correlation diagram of sites in another embodiment;
[0052] Figure 15 This is a schematic diagram illustrating the process of determining the time delay in another embodiment;
[0053] Figure 16 This is a structural block diagram of a multi-terminal waveform recording data synchronization device in one embodiment;
[0054] Figure 17 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0056] The multi-terminal waveform recording data synchronization method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, relay protector 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. The server acquires multi-terminal initial waveform data and performs continuous wavelet transform on the multi-terminal initial waveform data to obtain the time-frequency information of the multi-terminal initial waveform data; based on the time-frequency information of the multi-terminal initial waveform data, it determines the target time point, and based on the target time point, it determines the normal waveform data in the multi-terminal initial waveform data; it calculates the target correlation coefficient corresponding to the normal waveform data, and based on the target correlation coefficient, it determines the time delay of the multi-terminal normal waveform data; it compensates for the time delay of the multi-terminal initial waveform data to obtain the multi-terminal target waveform data. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0057] In an exemplary embodiment, Figure 2 As shown, a method for synchronizing multi-terminal waveform recording data is provided, which is then applied to... Figure 1 Taking the server in the example, the explanation includes the following steps S202 to S208. Wherein:
[0058] Step S202: Obtain multi-terminal initial waveform data and perform continuous wavelet transform on the multi-terminal initial waveform data to obtain the time-frequency information of the multi-terminal initial waveform data.
[0059] Among them, waveform data, also known as fault waveform data, is an indispensable tool for power grid fault analysis. The waveform data includes changes in key system electrical parameters and the status of relay protection devices during a fault.
[0060] Initial waveform data refers to the raw data on changes in key electrical parameters and the status of relay protection devices when a power system fault occurs. Multi-terminal initial waveform data can include two-terminal, three-terminal, or other multi-terminal initial waveform data that meets the specified conditions.
[0061] Optionally, taking initial waveform data from both ends as an example, because one end of the dual-end waveform data is closer to the power source, its impact from the fault is less, resulting in significant differences between the two ends, especially during the fault phase. The amplitude of the data during the fault phase can differ by more than ten times. If the correlation is directly calculated using a matched filter, the calculation results may be distorted, failing to eliminate the effect of time delay, and data synchronization will fail. The server acquires the initial waveform data from both ends, including the initial waveform data from relay protection station 1 and the initial waveform data from relay protection station 2, such as... Figure 3As shown. Multi-terminal initial waveform data corresponds to relay protection station n. For example, dual-terminal initial waveform data corresponds to two relay protection stations; three-terminal initial waveform data corresponds to three relay protection stations, and so on.
[0062] Optionally, the server can also acquire initial waveform data from three terminals, which may include the initial waveform data from relay protection station 1, relay protection station 2, and relay protection station 3. It should be noted that the number of terminals for which data is acquired is not limited here.
[0063] Optionally, after the server obtains the initial waveform data from multiple terminals, it performs a continuous wavelet transform on the initial waveform data using formula (1) to obtain the time-frequency information of the initial waveform data from multiple terminals. The time-frequency information can be represented by a time-frequency analysis diagram, including amplitude, frequency, and relay protection station number, such as... Figure 4 As shown.
[0064] Formula (1)
[0065] In the formula, x(t) is the initial waveform data, and the shift factor is... The center position of the analysis of the initial waveform data x(t) was determined, and the scale factor a determined the time width of the analysis. It is the wavelet basis used for wavelet transform. The table represents the complex conjugate of the wavelet basis functions used in the wavelet transform; WT is the transformed function.
[0066] Step S204: Based on the time-frequency information of the initial waveform data from multiple terminals, determine the target time point, and based on the target time point, determine the normal waveform data in the initial waveform data from multiple terminals.
[0067] The target time point, also known as the transition point, is the point at which normal data changes into abnormal data or vice versa. Based on the target time point, the initial waveform data from multiple terminals can be divided into stages.
[0068] Optionally, the multi-terminal initial waveform data includes normal waveform data (also known as normal phase waveform data) and abnormal waveform data (also known as abnormal phase waveform data). Normal and abnormal waveform data are distinguished by a target time point. Based on the time-frequency information diagram of the dual-terminal initial waveform data, the server determines the target time point corresponding to the normal waveform data in the dual-terminal initial waveform data through the amplitude transformation diagram of each end. The server calculates the transition points of the waveform data at each of the two ends in the dual-terminal initial waveform data, and selects a transition point that meets the conditions as the target time point.
[0069] Step S206: Calculate the target correlation coefficient corresponding to the normal waveform data, and determine the time delay of the multi-terminal normal waveform data based on the target correlation coefficient.
[0070] Optionally, the server calculates the correlation coefficients for the data on both sides of the normal waveform data in the initial waveform data from both ends. It then selects one of the two correlation coefficients that meets certain conditions as the target correlation coefficient, such as choosing the largest correlation coefficient. The point with the highest correlation is used as the benchmark for synchronizing the initial waveform data from both ends. The movement time corresponding to the largest correlation coefficient is the lead or delay time, which is called the time delay.
[0071] Step S208: Compensate the initial waveform data of the multi-terminals according to the time delay to obtain the target waveform data of the multi-terminals.
[0072] Optionally, taking the waveform data of two targets as an example, the server compensates for the time delay between the two waveform data to obtain the waveform data of the two targets. The synchronized waveform data of the two targets is as follows: Figure 5 As shown.
[0073] In practical use, the server collects initial waveform data from both ends, such as... Figure 6 As shown, continuous wavelet transform is performed on the initial waveform data from both ends to obtain the time-frequency information of the initial waveform data from both ends; based on the time-frequency information of the initial waveform data from both ends, the target time point is determined, and based on the target time point, the normal waveform data in the initial waveform data from both ends is determined; the target correlation coefficient corresponding to the normal waveform data is calculated, and based on the target correlation coefficient, the time delay of the normal waveform data from both ends is determined; the initial waveform data from both ends is compensated according to the time delay to obtain the target waveform data from both ends. The synchronized target waveform data from both ends is shown below. Figure 7 As shown.
[0074] Optionally, the server can also collect initial waveform data from three terminals, perform continuous wavelet transform on the initial waveform data from three terminals to obtain time-frequency information of the initial waveform data from three terminals; based on the time-frequency information of the initial waveform data from three terminals, determine the target time point of each terminal, and determine the normal waveform data of each terminal in the initial waveform data from three terminals based on the target time point of each terminal; calculate the target correlation coefficient corresponding to the normal waveform data in the initial waveform data from three terminals, and determine the time delay of the normal waveform data from three terminals based on the target correlation coefficient; compensate for the initial waveform data from three terminals according to the time delay to obtain the target waveform data from three terminals.
[0075] In the aforementioned multi-terminal waveform recording data synchronization method, considering the data characteristics during high-voltage line faults, initial waveform recording data from multiple terminals is acquired, and continuous wavelet transform is performed on the initial waveform recording data to obtain its time-frequency information. Based on this time-frequency information, a target time point, i.e., the time corresponding to the data jump point, is determined. Using this time point as the location, a fixed length of normal waveform recording data is extracted. Furthermore, using this point as the location, correlation calculation is performed on the normal waveform recording data from multiple terminals to determine the target correlation coefficient. Based on the target correlation coefficient, the time delay of the multi-terminal waveform recording data is determined, and compensation is applied to the initial waveform recording data from multiple terminals according to the time delay. After time delay compensation, the signal data from each terminal in the initial waveform recording data from multiple terminals are aligned in the time dimension, thereby improving the synchronization accuracy of the multi-terminal waveform recording data and reducing errors.
[0076] In an exemplary embodiment, Figure 8 As shown, the target time point is determined based on the time-frequency information of the initial waveform data from multiple terminals, including steps S802 to S806. Wherein:
[0077] Step S802: Extract the fundamental frequency component from the time-frequency information according to the reference frequency to obtain the amplitude variation curve of each end at the reference frequency.
[0078] The reference frequency can be the actual frequency of my country's power grid, which is 50Hz.
[0079] Optionally, the server extracts the fundamental frequency component from the time-frequency information according to a reference frequency, such as 50Hz, to obtain the amplitude variation curve of each end at the reference frequency, such as... Figure 9 As shown.
[0080] Optionally, if the server acquires initial waveform data from both ends, then the amplitude variation curve of each end at a frequency of 50Hz is obtained, such as... Figure 10 As shown, the amplitude variation curves of relay protection station 1 and relay protection station 2 at a frequency of 50Hz are shown. (a) is the amplitude variation curve of relay protection station 1 at a frequency of 50Hz; (b) is the amplitude variation curve of relay protection station 2 at a frequency of 50Hz.
[0081] Optionally, if the server obtains initial waveform data from three terminals, then the amplitude variation curve 1 of relay protection station 1 at a frequency of 50Hz is obtained; the amplitude variation curve 2 of relay protection station 2 at a frequency of 50Hz is obtained; and the amplitude variation curve 3 of relay protection station 3 at a frequency of 50Hz is obtained.
[0082] Step S804: Calculate the slope of each amplitude change curve at different time points, obtain the time point corresponding to the maximum slope, and use each time point as the initial time point of each end.
[0083] Optionally, if the server acquires initial waveform data from both ends, given the amplitude variation curve 1 of relay protection station 1 at a frequency of 50Hz and the amplitude variation curve 2 of relay protection station 2 at a frequency of 50Hz, the server calculates the slope of amplitude variation curve 1 at different time points and obtains the time point 1 with the largest slope value from the slope of amplitude variation curve 1, using time point 1 as the initial time point of the first end. Simultaneously, the server calculates the slope of amplitude variation curve 2 at different time points and obtains the time point 2 with the largest slope value from the slope of amplitude variation curve 2, using time point 2 as the initial time point of the second end.
[0084] Optionally, if the server acquires initial waveform data for three terminals, specifically the amplitude variation curve 1 of relay protection station 1 at a frequency of 50Hz; the amplitude variation curve 2 of relay protection station 2 at a frequency of 50Hz; and the amplitude variation curve 3 of relay protection station 3 at a frequency of 50Hz, the server calculates the slope of amplitude variation curve 1 at different time points and extracts the time point 1 with the largest slope value from the slopes of amplitude variation curve 1, using time point 1 as the initial time point for the first terminal. Simultaneously, the server calculates the slope of amplitude variation curve 2 at different time points and extracts the time point 2 with the largest slope value from the slopes of amplitude variation curve 2, using time point 2 as the initial time point for the second terminal. And the server calculates the slope of amplitude variation curve 3 at different time points and extracts the time point 3 with the largest slope value from the slopes of amplitude variation curve 3, using time point 3 as the initial time point for the third terminal.
[0085] Step S806: Obtain the smallest initial time point among the initial time points of each end, and use it as the target time point for the initial waveform recording data of the multi-end.
[0086] Optionally, if the server obtains dual-end initial waveform data, the server selects the smallest initial time point from time point 1 and time point 2 as the target time point for multi-end initial waveform data.
[0087] Optionally, if the server obtains initial waveform data from three ends, the server selects the smallest initial time point from time point 1, time point 2 and time point 3 as the target time point for the multi-end initial waveform data.
[0088] Based on the actual situation, the initial waveform data from multiple terminals comes from relay protection devices. These devices are from different manufacturers and have different models, resulting in different data recording methods. This can lead to situations where some manufacturers' devices record more than ten cycles of normal phase data before the target time point (transition point), while others may only record two cycles. This makes it difficult to standardize the processing of subsequent data. By introducing a target time point (transition point) and using it as a location to extract a fixed length of normal phase data and fault phase data, subsequent processing can be made not limited to a particular manufacturer or model of device.
[0089] In this embodiment, the target time point, i.e. the jump point, is accurately determined by the change in the slope of the amplitude change graph at each end. The normal segment in the initial waveform data of multiple ends is extracted by the jump point for subsequent analysis, which improves the accuracy of synchronization.
[0090] In an exemplary embodiment, Figure 11 As shown, normal waveform data includes first waveform data and second waveform data, wherein the first waveform data includes only one end of waveform data, and the second waveform data includes at least one end of waveform data; the target correlation coefficient corresponding to the normal waveform data is calculated, and the time delay of the multi-end normal waveform data is determined based on the target correlation coefficient, including steps S1102 to S1106. Wherein:
[0091] Step S1102: Use the first waveform data as a reference sequence and use the waveform data at each end of the second waveform data as the sequence to be detected.
[0092] The first waveform data includes only one-end waveform data. The second waveform data includes at least one-end waveform data, and may include two-end waveform data, three-end waveform data, or only one-end waveform data.
[0093] Optionally, the server uses the first waveform data, which includes only one end of the waveform data, as a reference sequence, and uses each end of the waveform data in the second waveform data as a sequence to be detected.
[0094] Step S1104: Determine the target correlation coefficient based on each sequence to be detected and the reference sequence.
[0095] Optionally, the server calculates the correlation coefficient between each detection sequence and the reference sequence using formula (2). If it is a two-end sequence, there is one detection sequence and one reference sequence, resulting in one correlation coefficient, which is the target correlation coefficient. If it is a three-end sequence, there are two detection sequences and one reference sequence, resulting in two correlation coefficients. The one that meets the conditions from the two correlation coefficients is the target correlation coefficient.
[0096] (2)
[0097] In the formula, x is the reference sequence; y is the sequence to be detected; r xy This represents the correlation coefficient between the reference sequence and the sequence to be detected; mn is the sampling time of the sequence to be detected, and m is the sampling time of the reference sequence.
[0098] Step S1106: Determine the time delay of the sequence to be detected based on the target correlation coefficient and the reference sequence.
[0099] Optionally, the server determines the time delay of the sequence to be detected corresponding to the target correlation coefficient based on the target correlation coefficient and the reference sequence.
[0100] In practical applications, a matched filter can be viewed as a cross-correlation function of the delay between data at one end and data at the other end. The waveform data at one end is used as the reference sequence, and the waveform data at the other end is used as the sequence to be detected. Then, the target correlation coefficient is calculated between the shifted sequence and the benchmark sequence.
[0101] In this embodiment, the target correlation coefficient is determined using the sequence to be detected and the reference sequence, and the time delay is determined based on the target correlation coefficient. By comparing with the reference sequence, the time delay between the sequence to be detected and the reference sequence can be accurately calculated.
[0102] Following the above embodiments, as Figure 12 As shown, the target correlation coefficient is determined based on each target sequence and reference sequence, including steps S1202 to S1204. Wherein:
[0103] Step S1202: Move each sequence to be detected and calculate the correlation coefficient between each moved sequence and the reference sequence.
[0104] Optionally, while keeping the reference sequence stationary, the server moves each sequence to be detected from left to right and calculates the correlation coefficient between each detected sequence and the reference sequence after the move. For a two-end system, the correlation coefficient is calculated using normal waveform data from the initial waveform recordings of both ends. Assuming there are 24 sampling points per cycle, for example... Figure 13 As shown, the data on both sides are offset by 11 points or 13 points, and the sum of the two is exactly the number of sampling points in one cycle, which is 24 points.
[0105] Since the data during the normal phase is a standard sine wave, a delay of 11 points at station 1 or 13 points at station 2 could both result in the highest correlation coefficient. While the correlation coefficient is highest at station 1 with an 11-point delay, this doesn't necessarily mean it's the correct solution. Because the correlation coefficient calculation here doesn't include data from the fault phase, the data delay on both sides could potentially reach a full cycle, or 24 points.
[0106] Step S1204: Take the largest correlation coefficient as the target correlation coefficient.
[0107] Therefore, the correlation coefficients for the two scenarios above should be calculated separately, and the larger value should be taken. First, for site 1 with a delay of 11 points, then based on the location of the target time point (jump point), take half a cycle of data during the normal phase, and add data from the fault phase of two cycles. Then, calculate the correlation coefficient between the data on both sides. Perform the same processing for site 2 with a delay of 13 points. The results are as follows... Figure 14 As shown. Clearly, the correlation coefficient of site 1, with a delay of 11 points, is the best, and this is used for synchronization.
[0108] In this embodiment, by considering both normal and abnormal data in the initial waveform data from multiple terminals, the target correlation coefficient can be accurately determined, thereby improving the accuracy of synchronization of the initial waveform data from multiple terminals.
[0109] Following the above embodiments, as Figure 15 As shown, the time delay of the sequence to be detected is determined based on the target correlation coefficient and the reference sequence, including steps S1502 to S1506. Wherein:
[0110] Step S1502: Using the signal of the reference sequence as a reference, move the signal of the sequence to be detected.
[0111] Optionally, the server uses the signal of the reference sequence as a reference, keeps the signal of the reference sequence stationary, and moves the signal of the sequence to be detected from left to right.
[0112] Step S1504: Calculate the same trend value of change between the signal of the reference sequence and the signal of the moved detection sequence.
[0113] Optionally, the server calculates the same trend value between the signal of the reference sequence and the signal of the shifted sequence to be detected. If the signal of the sequence to be detected is shifted twice, n1 and n2 respectively, the server calculates the trend value between the signal of the sequence to be detected and the signal of the reference sequence at time n1; the server also calculates the trend value between the signal of the sequence to be detected and the signal of the reference sequence at time n2.
[0114] Step S1506: When the same trend value is at its maximum, obtain the time delay of the signal of the sequence to be detected.
[0115] Optionally, when the same trend value is at its maximum value, for example, when the trend value is at its maximum value X, if the signal of the sequence to be detected moves to time N when the same trend value is at its maximum value X, it means that the time difference between the two signals is n steps, that is, n sampling points.
[0116] In this embodiment, by using the signal of the reference sequence as a benchmark and moving the signal of the sequence to be detected and the signal of the reference sequence to measure the trend of their changes, the accuracy of time delay calculation can be achieved.
[0117] In the above embodiments, the initial waveform data includes the initial waveform signal of each end corresponding to each sequence to be detected and the initial waveform signal of one end corresponding to the reference sequence; the initial waveform data of multiple ends is compensated according to the time delay to obtain the target waveform data of multiple ends, including: shifting the initial waveform signal of each end corresponding to each sequence to be detected by a target number of sampling points to align with the initial waveform signal of one end corresponding to the reference sequence to obtain the target waveform data of multiple ends; wherein, the number of targets is determined based on the time delay.
[0118] The target quantity is determined based on the time delay. If the time difference between the initial waveform data of multiple terminals is N, the target quantity is also N.
[0119] Optionally, if it is dual-end, the server shifts the initial waveform recording signal of one end corresponding to a sequence to be detected by a target number, such as n sampling points, to align it with the initial waveform recording signal of one end corresponding to the reference sequence, thereby obtaining dual-end target waveform recording data; that is, multi-end waveform recording data after synchronization.
[0120] Optionally, if there are three ends, the server shifts the initial waveform recording signal 1 corresponding to one end of the sequence to be detected 1 by n sampling points. At the same time, the server also shifts the initial waveform recording signal 2 corresponding to one end of each sequence to be detected 2 by n sampling points to align with the initial waveform recording signal corresponding to one end of the reference sequence, so as to obtain the dual-end target waveform recording data; that is, the synchronized multi-end waveform recording data.
[0121] In this embodiment, by performing time delay compensation on the initial waveform recording data of multiple terminals, synchronized target waveform recording data of multiple terminals is obtained. While keeping the computational load small, the data of multiple terminals can be effectively synchronized.
[0122] In one exemplary embodiment, the algorithm verification uses real dual-end initial waveform recording data, such as... Figure 6 As shown, this is the fault voltage when a single-phase ground fault occurs on a certain line. The voltage level is 110kV, the grid frequency is 50Hz, and the device sampling frequency is 1200Hz, so 24 points are sampled in one cycle. The server or other terminal equipment performs continuous wavelet transform on the initial waveform data from both sides and extracts the amplitude transformation diagram at the 50Hz frequency, as shown. Figure 10As shown, (a) is the amplitude variation curve 1 of relay protection station 1; (b) is the amplitude variation curve 2 of relay protection station 2. The server calculates the slope of amplitude variation curve 1 at each time point and selects the time point with the largest slope as the initial time point 1; it calculates the slope of amplitude variation curve 2 at each time point and selects the time point with the largest slope as the initial time point 2; and selects one of the initial time points 1 and 2 as the target time point. Based on the target time point, the initial waveform data at both ends is divided into normal waveform data for the normal stage and abnormal waveform data for the fault stage. Correlation calculations are performed on the normal waveform data, such as... Figure 13 As shown, the data on both sides are offset by 11 or 13 points, and the sum of these two offsets is exactly the number of sampling points within one cycle, which is 24 points. Since the data in the normal phase is a standard sine wave, a delay of 11 points at station 1 or 13 points at station 2 could both result in the highest correlation. From Figure 13 It can be seen that the correlation is highest when the latency of site 1 is 11 points. However, this does not necessarily mean it is the correct solution. Because the correlation calculation here does not include data from the fault phase, it's possible that the latency on both sides could reach a full cycle, or 24 points. Therefore, we need to calculate the correlation for both scenarios separately and then take the larger value. First, for site 1 with a latency of 11 points, then based on the location of the data jump point, take half a cycle of normal phase data, add two cycles of fault phase data, and then calculate the correlation between the data on both sides. The same process is performed for site 2 with a latency of 13 points. The results are as follows... Figure 14 As shown, (a) represents the correlation diagram of 11 time delay points for relay protection station 1, with a correlation coefficient of 0.98863; (b) represents the correlation diagram of 13 time delay points for relay protection station 2, with a correlation coefficient of 0.514344. Clearly, station 1 has the best correlation at 11 time delay points, and this was used for synchronization. The final synchronized dual-side target waveform data is shown below. Figure 7 As shown.
[0123] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0124] Based on the same inventive concept, this application also provides a multi-terminal waveform data synchronization device for implementing the multi-terminal waveform data synchronization method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more embodiments of the multi-terminal waveform data synchronization device provided below can be found in the limitations of the multi-terminal waveform data synchronization method described above, and will not be repeated here.
[0125] In an exemplary embodiment, Figure 16 As shown, a multi-terminal waveform recording data synchronization device is provided, including: an acquisition module 1601, a normal waveform recording data determination module 1602, a time delay determination module 1603, and a compensation module 1604, wherein:
[0126] The acquisition module 1601 is used to acquire multi-terminal initial waveform data and perform continuous wavelet transform on the multi-terminal initial waveform data to obtain the time-frequency information of the multi-terminal initial waveform data.
[0127] The normal waveform data determination module 1602 is used to determine the target time point based on the time and frequency information of the multi-terminal initial waveform data, and to determine the normal waveform data in the multi-terminal initial waveform data based on the target time point.
[0128] The delay determination module 1603 is used to calculate the target correlation coefficient corresponding to the normal waveform data, and determine the time delay of the multi-terminal normal waveform data based on the target correlation coefficient.
[0129] The compensation module 1604 is used to compensate the initial waveform data of multiple ends according to the time delay to obtain the target waveform data of multiple ends.
[0130] In one exemplary embodiment, the normal waveform data determination module 1602 includes:
[0131] The amplitude variation curve unit is used to extract the fundamental frequency component from the time-frequency information according to the reference frequency, and obtain the amplitude variation curve of each end at the reference frequency.
[0132] The initial time point determination unit is used to calculate the slope of each amplitude change curve at different time points, obtain the time point corresponding to the maximum slope, and use each time point as the initial time point of each end.
[0133] The target time point determination unit is used to obtain the smallest initial time point among the initial time points of each end, and use it as the target time point for the initial waveform data of the multi-end.
[0134] In an exemplary embodiment, the normal waveform data includes first waveform data and second waveform data, wherein the first waveform data includes only one end of waveform data, and the second waveform data includes at least one end of waveform data; the compensation module 1604 includes:
[0135] The reference and test sequence determination unit is used to use the first waveform data as a reference sequence and to use each end of the waveform data in the second waveform data as a test sequence.
[0136] The target correlation coefficient unit is used to determine the target correlation coefficient based on each sequence to be detected and the reference sequence.
[0137] The time delay unit is used to determine the time delay of the sequence to be detected based on the target correlation coefficient and the reference sequence.
[0138] In one exemplary embodiment, the target correlation coefficient unit includes:
[0139] The correlation coefficient determination sub-unit is used to move each sequence to be detected and calculate the correlation coefficient between each moved sequence to be detected and the reference sequence.
[0140] The target correlation coefficient determination sub-unit is used to select the largest correlation coefficient as the target correlation coefficient.
[0141] In one exemplary embodiment, the time delay unit includes:
[0142] The moving subunit is used to move the signal of the sequence to be detected based on the signal of the reference sequence.
[0143] The same trend value determination sub-unit is used to calculate the same trend value between the signal of the reference sequence and the signal of the detected sequence after the shift.
[0144] The time delay determination subunit is used to obtain the time delay of the signal of the sequence to be detected when the same trend value is at its maximum.
[0145] In an exemplary embodiment, the multi-end initial waveform data includes each end initial waveform signal corresponding to each sequence to be detected and one end initial waveform signal corresponding to the reference sequence; the compensation module 1604 is further configured to shift the target number of sampling points for each end initial waveform signal corresponding to each sequence to be detected to align with the one end initial waveform signal corresponding to the reference sequence, thereby obtaining multi-end target waveform data; wherein the target number is determined based on the time delay.
[0146] Each module in the aforementioned multi-terminal waveform recording data synchronization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0147] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 17 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores waveform recording data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a multi-terminal waveform recording data synchronization method.
[0148] Those skilled in the art will understand that Figure 17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0149] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0150] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0151] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0152] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0153] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0154] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A multi-terminal recording data synchronization method, It is characterized in that The method comprises: Acquire multi-terminal initial wave recording data, and perform continuous wavelet transform on the multi-terminal initial wave recording data to obtain time-frequency information of the multi-terminal initial wave recording data; Determine a target time point based on the time-frequency information of the multi-terminal initial recording data, and determine normal recording data in the multi-terminal initial recording data based on the target time point; Calculating a target correlation coefficient corresponding to the normal recorded data, and determining a time delay of the normal recorded data based on the target correlation coefficient; The multi-terminal initial recording data is compensated according to the time delay to obtain multi-terminal target recording data.
2. The method according to claim 1, It is characterized in that The determining of the target time point based on the time-frequency information of the multi-terminal initial recording data includes: Extracting the fundamental frequency component in the time-frequency information according to the reference frequency, and obtaining an amplitude variation curve of each end at the reference frequency; Calculate the slope of each of the amplitude change curves at different time points, obtain the time point corresponding to the maximum slope, and use each of the time points as the initial time point of each end; The smallest initial time point among the initial time points of each end is obtained as the target time point of the multi-end initial recording data.
3. The method according to claim 1, It is characterized in that The normal recorded wave data includes first recorded wave data and second recorded wave data, wherein the first recorded wave data only includes recorded wave data at one end, and the second recorded wave data includes recorded wave data at at least one end; the calculating the target correlation coefficient corresponding to the normal recorded wave data, and determining the time delay of the normal recorded wave data at multiple ends based on the target correlation coefficient, includes: Using the first recorded wave data as a reference sequence, and using each end recorded wave data in the second recorded wave data as a sequence to be detected; Determining a target correlation coefficient based on each of the sequences to be detected and the reference sequence; The time delay of the sequence to be detected is determined according to the target correlation coefficient and the reference sequence.
4. The method according to claim 3, It is characterized in that The step of determining a target correlation coefficient based on each of the sequence to be detected and the reference sequence comprises: Moving each of the sequences to be detected, and calculating the correlation coefficient between each of the sequences to be detected and the reference sequence after the movement; The largest correlation coefficient is taken as the target correlation coefficient.
5. The method according to claim 3, It is characterized in that The step of determining the time delay of the sequence to be detected according to the target correlation coefficient and the reference sequence includes: Taking the signal of the reference sequence as a reference, moving the signal of the sequence to be detected; Calculating the same change trend value of the signal of the reference sequence and the signal of the sequence to be detected after the shift; When the same change trend value is the maximum value, the time delay of the signal of the sequence to be detected is obtained.
6. The method according to claim 5, It is characterized in that The multi-terminal initial recording data includes each end initial recording signal corresponding to each of the sequences to be detected and one end initial recording signal corresponding to the reference sequence; the multi-terminal initial recording data is compensated according to the time delay to obtain the multi-terminal target recording data, including: Each initial recording signal at each end corresponding to each sequence to be detected is shifted by a target number of sampling points to align with an initial recording signal at one end corresponding to the reference sequence to obtain the multi-end target recording data; wherein the target number is determined based on the time delay.
7. A multi-terminal recording data synchronization device, It is characterized in that The device comprises: An acquisition module is used to acquire multi-terminal initial wave recording data, and perform continuous wavelet transform on the multi-terminal initial wave recording data to obtain time-frequency information of the multi-terminal initial wave recording data; A normal recording data determination module, used to determine a target time point based on the time-frequency information of the multi-terminal initial recording data, and determine the normal recording data in the multi-terminal initial recording data based on the target time point; A time delay determination module, used to calculate a target correlation coefficient corresponding to the normal recorded data, and determine a time delay of the normal recorded data based on the target correlation coefficient; The compensation module is used to compensate the multi-terminal initial recording data according to the time delay to obtain the multi-terminal target recording data.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Fault single end positioning method of power transmission line based on traveling wave multi-scale information
CN102520315A
Secondary equipment time scale alignment method based on recording file reference channel
CN110895321A
Signal processing method and signal transmission system
CN117353856A
