Power grid fault detection method based on 5G4G short shared wireless communication
Through segmented processing of current data and calculation of characteristic factor correction values, the problem of false alarms caused by noise interference in power grid fault detection is solved, the accuracy and efficiency of detection are improved, and more efficient power grid fault detection is achieved.
Patent Information
- Application Number
- CN202410840333.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing power grid fault detection methods easily judge faults as noise during the data filtering process, resulting in reduced detection accuracy and increased probability of false alarms. Especially in 5G4G short-term shared wireless communications, noise problems caused by interference are difficult to effectively handle.
By segmenting the current data, calculating the correction value of the characteristic factor of each segment, determining the local optimal segmentation, and iterating the number of segmentation points, the filtering efficiency and accuracy are improved, and the denoised current data is more accurate and reduces False alarm situation.
It improves the timeliness and accuracy of power grid fault detection, reduces the probability of false alarms, and enhances the efficiency of data processing and the reliability of power grid fault detection.
Smart Images

Figure CN118393290B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid detection. More specifically, the present invention relates to a power grid fault detection method based on 5G4G short shared wireless communication. Background Art
[0002] With the development of modernization and intelligence of power systems, the large-scale construction of smart grids is increasing, and these smart grids require real-time and reliable communication networks to support information exchange between smart devices. 5G4G short-sharing wireless communication technology provides lower latency, which can realize real-time monitoring and rapid response to power grid faults. At the same time, the high bandwidth of 5G technology can support the transmission of large-scale data, including high-definition images, videos, etc., which enables more types of data to be used for analysis in power grid fault detection, improving the accuracy and reliability of detection. Although 5G4G short-sharing wireless communication technology has many advantages, due to the nature of shared wireless, it will be interfered by other communication devices, resulting in noise in the collected current equipment.
[0003] The existing Chinese patent application document with publication number CN116482460A discloses a method for diagnosing faults of power grid equipment and related equipment. The fault detection module is used to detect faults of power grid equipment and collect real-time operation data. The data processing module pre-processes the collected real-time operation data. The fault diagnosis module analyzes the pre-processed data and diagnoses possible faults of the power grid equipment.
[0004] Since the current data may include factors such as noise and faults, and the data varies greatly, the preprocessing mentioned in the above method is to directly filter the data, which may cause the fault to be judged as noise, resulting in the high-frequency components of the continuous signal (such as the peak caused by the fault) being smoothed out during the overall filtering process, thereby reducing the accuracy of power grid fault detection, thereby reducing the accuracy of power grid fault detection filtering. Summary of the invention
[0005] In order to improve the accuracy of power grid fault detection filtering and reduce the probability of false alarms, the present invention proposes a power grid fault detection method based on 5G4G short shared wireless communication. To this end, the present invention provides the following solution.
[0006] A power grid fault detection method based on 5G4G short shared wireless communication includes: acquiring current data at equal intervals in time sequence to construct a current data set; performing a first segmentation on the current data set based on a preset number of first segmentation points to obtain multiple segmentation results, calculating the loss function of each segmentation result, and taking the segmentation result with the smallest loss function as the first best segmentation result corresponding to the number of first segmentation points; calculating a characteristic factor correction value of any time period in the first best segmentation result, taking a time period in which the characteristic factor correction value is greater than or equal to a preset threshold as a fixed time period, taking a time period in which the characteristic factor correction value is less than the preset threshold as a non-fixed time period, adding a segmentation point in all non-fixed time periods, and traversing the process of obtaining the first best segmentation result to obtain a second best segmentation result; iterating the number of segmentation points, stopping the iteration when there is no non-fixed time period in the current data set or the number of segmentation points reaches a preset number, and taking the best segmentation result after the iteration stops as the final segmentation result; filtering each current data segment in the final segmentation result to obtain denoised current data, and generating an alarm signal if the denoised current data is greater than a preset threshold.
[0007] Beneficial effects: By segmenting the current data set, calculating the characteristic factor correction value of the target time period, determining the local optimal segmentation, and iterating the number of segmentation points, the current data set is decomposed into the optimal segmentation result, which improves the filtering efficiency and filtering accuracy. The denoised current data is more accurate, which improves the timeliness and accuracy of power grid fault detection and prevents false alarms.
[0008] Preferably, obtaining the characteristic factor correction value includes the steps of: taking any time period in any segmentation as the target time period, calculating the difference between the maximum and minimum values of the current data in the target time period, and respectively obtaining a first degree of convergence and a second degree of convergence; calculating the maximum average structural similarity of the target time period; calculating the characteristic factor of the target time period based on the difference, the first degree of convergence, the second degree of convergence and the maximum average structural similarity; taking the average absolute value difference between the characteristic factor of the target time period and the characteristic factors of two time periods adjacent to the target time period as the credibility of the target time period, and taking the product of the credibility and the characteristic factor as the characteristic factor correction value.
[0009] Beneficial effect: By calculating the characteristic factor correction value of the target period, the credibility of the segmentation can be improved, thereby improving the efficiency of data processing.
[0010] Preferably, the credibility of the target period further includes: when the target period has only one adjacent period, taking the absolute value difference between the characteristic factor of the target period and the characteristic factor of the period as the credibility of the target period.
[0011] Beneficial effect: When the situation that the target time period does not exist and there are at least two adjacent time periods occurs, a method for calculating the credibility is still provided.
[0012] Preferably, obtaining the first degree of convergence includes: taking the degree of convergence of the maximum value of the current data in the target period to the maximum value as the first degree of convergence, and the first degree of convergence satisfies the relationship:
[0013] ,in, Indicates The first degree of convergence in each period, Indicates The maximum value of the current data in a period, Indicates In the period The maximum value of the current data, Indicates The total number of maximum values in the time period, Indicates the number of the maximum value of the current data. In the first close degree relationship, The time period is the target time period.
[0014] Beneficial effect: The degree of convergence of the maximum value to the maximum value reflects the fluctuation trend of the current data in the target period and the global importance of the extreme point.
[0015] Preferably, obtaining the second degree of convergence includes: taking the degree of convergence of the minimum value of the current data in the target period to the minimum value as the second degree of convergence, and the second degree of convergence satisfies the relationship:
[0016] ,in, Indicates The second degree of convergence in the period, Indicates The minimum value of the current data in a period, Indicates In the period The minimum value of the current data, Indicates The total number of minimum values in the time period, Indicates the serial number of the minimum value of the current data. In the second close degree relationship, The time period is the target time period.
[0017] Beneficial effect: The degree of convergence of the minimum value to the minimum value reflects the convergence and optimization efficiency of the current data in the target period in the process of exploring the optimal solution.
[0018] Preferably, the calculation of the maximum average structural similarity of the target time period includes the steps of: evenly segmenting the target time period by a preset number of segmentation lines to obtain multiple sub-segments, and calculating the average structural similarity of the target time period; iteratively increasing the number of segmentation lines according to a preset step size, and stopping the iteration when the current data in the sub-segments are all less than a preset number; comparing the average structural similarity of the target time period after each iteration to obtain the maximum average structural similarity of the target time period.
[0019] Beneficial effect: By dividing the target period into a plurality of sub-segments according to the average segmentation, the discreteness between the current data within the target period can be obtained.
[0020] Preferably, the average structural similarity satisfies the relationship:
[0021] ,in, Indicates The total number of sub-segments in a time period is The average structural similarity when Indicates the total number of sub-segments, Indicates Sub-segments, Indicates Sub-segments, satisfying , Indicates that the total number of sub-segments is The number of combinations of any two sub-segments in Represents similarity. In the average structural similarity relationship, The time period is the target time period.
[0022] Beneficial effect: By using the permutation and combination method to calculate the similarity of any two sub-segments respectively, the accuracy of the average structural similarity calculation can be improved, and the fluctuation degree of the current data in the target period can be better reflected.
[0023] Preferably, the characteristic factor of the target period satisfies the relationship:
[0024] ,in, Indicates The characteristic factor of each period, Indicates The difference between the time periods, Indicates The first degree of convergence in each period, Indicates The second degree of convergence in the period, Indicates The maximum average structural similarity of the time period, represents the normalization function. In the characteristic factor relationship, The time period is the target time period.
[0025] Beneficial effects: Through comprehensive consideration of the difference, the first degree of convergence, the second degree of convergence and the maximum average structural similarity, the volatility of the current data in the target period can be reflected, the changing trend and anomaly of the current data can be identified, and then the segmented optimization potential of the target period can be evaluated, providing accurate data support for the period update in the iterative process. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0027] Figure 1 It is a flow chart of a power grid fault detection method based on 5G4G short shared wireless communication according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0030] The present invention provides a power grid fault detection method based on 5G4G short shared wireless communication. Figure 1 As shown, the power grid fault detection method based on 5G4G short shared wireless communication includes steps S1 to S5, which are described in detail below.
[0031] S1, acquire current data at equal intervals in time sequence and construct a current data set.
[0032] In one embodiment, a person skilled in the art sets a current sensor through experience to obtain current data at equal intervals in time sequence. Exemplarily, the sampling frequency of the present invention is set to 10 Hz, that is, the current sensor records current data once every 10 Hz, and all current data are constructed into a current data set.
[0033] S2, performing a first segmentation on the current data set based on a preset first number of segmentation points to obtain multiple segmentation results, calculating a loss function for each segmentation result, and taking the segmentation result with the smallest loss function as the first optimal segmentation result corresponding to the first number of segmentation points.
[0034] In one embodiment, it should be noted that by continuously iterating the number of segmentation points and calculating the loss function of each segmentation result when the number of segmentation points is constant, the best segmentation result and the number of segmentation points corresponding to the best segmentation result are determined.
[0035] For example, now there is If you need to divide the data sequence into segment, then the segment results are combined into The loss function corresponding to each segmentation result is calculated, and then the best segmentation result can be obtained according to the loss function.
[0036] Exemplarily, the number of the first segmentation points can be set by those skilled in the art according to the size of the current data set. In the present invention, the number of the first segmentation points is set to 10.
[0037] S3, calculate the characteristic factor correction value of any time period in the first best segmentation result, take the time period with the characteristic factor correction value greater than or equal to the preset threshold as a fixed time period, take the time period with the characteristic factor correction value less than the preset threshold as a non-fixed time period, add a segmentation point in all non-fixed time periods, and traverse the process of obtaining the first best segmentation result to obtain the second best segmentation result.
[0038] In one embodiment, any time period in any segmentation is taken as the target time period, and the difference between the maximum and minimum values of the current data in the target time period is calculated. The difference can reflect the floating range of the current data in the target time period. The floating range reflects the degree of deviation of the current data in the target time period. The larger the difference, the abnormal increase or decrease of the current data in the target time period.
[0039] The degree of convergence of the maximum value of the current data in the target period to the maximum value is taken as the first degree of convergence, and the degree of convergence of the minimum value of the current data in the target period to the minimum value is taken as the second degree of convergence. The method of obtaining the maximum value and the minimum value of the current data in the target period is a well-known technology and will not be described in detail here. The first degree of convergence satisfies the relationship:
[0040] ,in, Indicates The first degree of convergence in each period, Indicates The maximum value of the current data in a period, Indicates In the period The maximum value of the current data, Indicates The total number of maximum values in the time period, Indicates the number of the maximum value of the current data. In the first close degree relationship, The time period is the target time period. It represents the average difference between the maximum value of all current data in the target period and the maximum value of the current data in the target period. The smaller the average difference is, the higher the first degree of convergence is.
[0041] The second degree of convergence satisfies the relationship:
[0042] ,in, Indicates The second degree of convergence in the period, Indicates The minimum value of the current data in a period, Indicates In the period The minimum value of the current data, Indicates The total number of minimum values in the time period, Indicates the serial number of the minimum value of the current data. In the second close degree relationship, The time period is the target time period. It represents the average difference between the minimum value of all current data in the target period and the minimum value of the current data in the target period. The smaller the average difference is, the higher the second degree of convergence is.
[0043] Calculate the maximum average structural similarity of the target period, including the steps:
[0044] The target period is segmented evenly by the preset number of segmentation lines to obtain multiple sub-segments, and the average structural similarity of the target period is calculated. The average structural similarity satisfies the relationship:
[0045] ,in, Indicates The total number of sub-segments in a time period is The average structural similarity when Indicates the total number of sub-segments, Indicates Sub-segments, Indicates Sub-segments, satisfying , Indicates that the total number of sub-segments is The number of combinations of any two sub-segments in Represents similarity. In the average structural similarity relationship, The time period is the target time period.
[0046] For example, when , there are 5 sub-segments. , sort each sub-segment from left to right, and the combinations that need to calculate similarity are: sub-segment 1 and sub-segment 2, sub-segment 1 and sub-segment 3, sub-segment 1 and sub-segment 4, sub-segment 1 and sub-segment 5, sub-segment 2 and sub-segment 3, sub-segment 2 and sub-segment 4, sub-segment 2 and sub-segment 5, sub-segment 3 and sub-segment 4, sub-segment 3 and sub-segment 5, sub-segment 4 and sub-segment 5. The average value of the ten groups of similarities is the average structural similarity when the total number of sub-segments in the target period is 5.
[0047] The number of segmentation lines is iteratively increased according to a preset step size, and the iteration is stopped when the current data in the sub-segments are all less than the preset number.
[0048] Exemplarily, the number of sub-segments starts from 2, that is, the number of preset segmentation lines is 1, and the similarity of the two sub-segments is calculated as the average structural similarity when the number of sub-segments in the target time period is 2. The number of segmentation lines is iteratively increased according to the preset step size. Exemplarily, the present invention sets the preset step size to 1.
[0049] It should be noted that when the target time period is divided equally, if the data contained in the target time period does not meet the requirements for being divided equally, the excess data will not participate in the current equal division. For example, the target time period contains 48 current data. When the sub-segment is 2, each sub-segment contains 24 current data; when the sub-segment is 3, each sub-segment contains 16 current data; when the sub-segment is 4, each sub-segment contains 12 current data; when the sub-segment is 5, each sub-segment contains 9 current data, and the remaining 3 current data do not participate in the current equal division; when the sub-segment is 6, each sub-segment contains 8 current data; and so on. When the current data in the sub-segment is less than the preset number, the iteration is stopped. For example, when the current data in the sub-segment is less than 5, the iteration is stopped, that is, when the target time period contains 48 current data, the iteration is stopped when the number of sub-segments is iterated to 12.
[0050] The average structural similarity of the target period after each iteration is compared to obtain the maximum average structural similarity of the target period.
[0051] The characteristic factor of the target period is calculated based on the difference, the first degree of convergence, the second degree of convergence and the maximum average structural similarity. The characteristic factor satisfies the relationship:
[0052] ,in, Indicates The characteristic factor of each period, Indicates The difference between the time periods, Indicates The first degree of convergence in each period, Indicates The second degree of convergence in the period, Indicates The maximum average structural similarity of the time period, represents the normalization function. In the characteristic factor relationship, The time period is the target time period.
[0053] The average absolute value difference between the characteristic factor of the target period and the characteristic factors of the two periods adjacent to the target period is taken as the credibility of the target period, and the credibility satisfies the relationship:
[0054] ,in, Indicates The credibility of the time period, Indicates The characteristic factor of each period, Indicates The characteristic factor of the right period adjacent to the period, Indicates The characteristic factor of the left period adjacent to the period, represents the normalization function. In the credibility relation, The time period is the target time period.
[0055] The product of the credibility and the characteristic factor is taken as the characteristic factor correction value.
[0056] It should be noted that when there is only one adjacent segment in the target period, the absolute value difference between the characteristic factor of the target period and the characteristic factor of the segment is used as the credibility of the target period.
[0057] Exemplarily, the case where there is only one adjacent segment in the target time period is: when the number of segments is 2, there is only one adjacent segment in the target time period; and the target time period is at the edge of the current data set.
[0058] At this point, the characteristic factor correction value of the target period can be obtained, and the period when the characteristic factor correction value is greater than or equal to the preset threshold is taken as a fixed period, and the period when the characteristic factor correction value is less than the preset threshold is taken as a non-fixed period.
[0059] Exemplarily, the present invention sets the preset threshold value to 0.87. A segmentation point is added in all non-fixed time periods, and the process of obtaining the first best segmentation result in step S2 is traversed to obtain the second best segmentation result.
[0060] S4, iterate the number of segmentation points. When there is no non-fixed time period in the current data set or the number of segmentation points reaches a preset number, stop the iteration and take the best segmentation result after the iteration stops as the final segmentation result.
[0061] In one embodiment, when there is no non-fixed time period in the current data set or the number of segmentation points reaches a preset number, the iteration is stopped. Exemplarily, the preset number can be set by those skilled in the art, and is set to 100 in the present invention.
[0062] For example, the current data set is , the number of the first segmentation points is set to 1, that is, there are 9 segmentation results, and the loss function of each segmentation result is calculated. The segmentation result with the smallest loss function is taken as the first best segmentation result corresponding to the number of the first segmentation points. Then, the original current data set is divided into , according to the calculation results, For a fixed period of time, For non-fixed time periods, a segmentation point is added to the non-fixed time period, that is, there are 5 segmentation results, which are , , , and , calculate the loss function of each segmentation result, and take the segmentation result with the smallest loss function as the second best segmentation result corresponding to the number of second segmentation points. At this time, the number of second segmentation points is 2, so the current data set is divided into , iterate the number of segmentation points to obtain the final segmentation result. It should be noted that the number of current data in the current data set of this example is exemplary. In fact, the number of current data in power grid fault detection is huge, so it is necessary to set an iteration stop condition.
[0063] S5, filtering the current data in each time period in the final segmentation result to obtain denoised current data, and generating an alarm signal if the denoised current data is greater than a preset threshold.
[0064] The SG filter is used to denoise the current data in each time period in the final segmentation result to obtain the denoised current data.
[0065] The denoised current data is compared with the preset abnormal current threshold. When the current data is greater than the preset abnormal current threshold, the current data is considered abnormal data and the power grid fails. An alarm signal is generated and sent to notify relevant staff to inspect the power grid. For example, the preset abnormal current threshold is set to 3A.
[0066] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0067] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A power grid fault detection method based on 5G4G short shared wireless communication, characterized in that: include: Acquire current data at equal intervals in time sequence to construct a current data set; Performing a first segmentation on the current data set based on a preset first segmentation point number to obtain multiple segmentation results, calculating a loss function for each segmentation result, and taking the segmentation result with the smallest loss function as a first optimal segmentation result corresponding to the first segmentation point number; Calculating the characteristic factor correction value of any time period in the first best segmentation result, including: taking any time period in any segmentation as the target time period, calculating the difference between the maximum value and the minimum value of the current data in the target time period, and obtaining the first degree of convergence and the second degree of convergence respectively; calculating the maximum average structural similarity of the target time period; calculating the characteristic factor of the target time period based on the difference, the first degree of convergence, the second degree of convergence and the maximum average structural similarity; taking the average absolute value difference between the characteristic factor of the target time period and the characteristic factors of two time periods adjacent to the target time period as the credibility of the target time period, and taking the product of the credibility and the characteristic factor as the characteristic factor correction value; taking the time period with a characteristic factor correction value greater than or equal to a preset threshold as a fixed time period, taking the time period with a characteristic factor correction value less than the preset threshold as a non-fixed time period, adding a segmentation point in all non-fixed time periods, and traversing the process of obtaining the first best segmentation result to obtain the second best segmentation result; Iterate the number of segmentation points. When there is no non-fixed time period in the current data set or the number of segmentation points reaches the preset number, stop the iteration and take the best segmentation result after the iteration stops as the final segmentation result. Filter each segment of current data in the final segmentation result to obtain denoised current data. If the denoised current data is greater than a preset threshold, an alarm signal is generated. Obtaining the first degree of convergence includes: taking the degree of convergence of the maximum value of the current data in the target period to the maximum value as the first degree of convergence, and the first degree of convergence satisfies the relationship: ,in, Indicates The first degree of convergence in each period, Indicates The maximum value of the current data in a period, Indicates In the period The maximum value of the current data, Indicates The total number of maximum values in the time period, Indicates the number of the maximum value of the current data. In the first close degree relationship, The time period is the target time period; Obtaining the second degree of convergence includes: taking the degree of convergence of the minimum value of the current data in the target period to the minimum value as the second degree of convergence, and the second degree of convergence satisfies the relationship: ,in, Indicates The second degree of convergence in the period, Indicates The minimum value of the current data in a period, Indicates In the period The minimum value of the current data, Indicates The total number of minimum values in the time period, Indicates the serial number of the minimum value of the current data. In the second close degree relationship, The time period is the target time period; The method for calculating the maximum average structural similarity of the target time period includes: evenly segmenting the target time period by a preset number of segmentation lines to obtain multiple sub-segments, and calculating the average structural similarity of the target time period; iteratively increasing the number of segmentation lines according to a preset step size, and stopping the iteration when the current data in the sub-segments are all less than a preset number; comparing the average structural similarity of the target time period after each iteration to obtain the maximum average structural similarity of the target time period.
2. The power grid fault detection method based on 5G4G short shared wireless communication according to claim 1 is characterized in that: The credibility of the target period also includes: When the target period has only one adjacent period, the absolute value difference between the characteristic factor of the target period and the characteristic factor of the period adjacent to the target period is taken as the credibility of the target period.
3. The power grid fault detection method based on 5G4G short shared wireless communication according to claim 1 is characterized in that: The average structural similarity satisfies the relationship: ,in, Indicates The total number of sub-segments in a time period is The average structural similarity when Indicates the total number of sub-segments, Indicates Sub-segments, Indicates Sub-segments, satisfying , Indicates that the total number of sub-segments is The number of combinations of any two sub-segments in Represents similarity. In the average structural similarity relationship, The time period is the target time period.
4. The power grid fault detection method based on 5G4G short shared wireless communication according to claim 1 is characterized in that: The characteristic factor of the target period satisfies the relationship: ,in, Indicates The characteristic factor of each period, Indicates The difference between the time periods, Indicates The first degree of convergence in each period, Indicates The second degree of convergence in the period, Indicates The maximum average structural similarity of the time period, represents the normalization function. In the characteristic factor relationship, The time period is the target time period.
