Substation voltage monitoring data processing method and system based on electrical parameter analysis

By adaptively adjusting the filter window size, combined with the local abruptness of the voltage data and the degree of noise influence, the voltage data is dynamically denoised, which solves the problem of poor denoising effect caused by the fixed filter window size in the existing technology, and improves the accuracy of monitoring results. sex.

CN118333284BActive Publication Date: 2024-09-06TAIAN POWER SUPPLY CO OF STATE GRID SHANDONG ELECTRIC POWER CO +2
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the existing simple moving average method is used to denoise the voltage data in the station area, the filter window size is fixed due to the randomness of the noise, and it cannot effectively distinguish the degree of noise influence of different voltage data, resulting in poor denoising effect and inaccurate monitoring results.

Method used

By obtaining the local abruptness and noise impact of the voltage data, the filter window size is adaptively adjusted, combined with the trend term and fitting curve of the voltage data, to distinguish the voltage data affected by noise and load changes, and dynamically adjust the filter window size to remove noise. voltage data.

Benefits of technology

The denoising effect of voltage data is improved, making the denoised data closer to the real situation, and improving the accuracy of abnormal monitoring results of voltage data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333284B
    Figure CN118333284B
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and specifically to a method and system for processing substation voltage monitoring data based on electrical parameter analysis, including: obtaining a voltage data set, obtaining the local abruptness of each voltage data according to the value of each voltage data; obtaining the suspected noise influence degree of each voltage data according to the value of each voltage data and the local abruptness, and then obtaining adaptive voltage data; obtaining the noise performance degree of each adaptive voltage data according to the suspected noise influence degree of each adaptive voltage data and the value of each voltage data; and then obtaining the filter window size of each adaptive voltage data; thereby obtaining a denoised voltage data set and monitoring the voltage data. The present invention aims to solve the problem of poor monitoring effect caused by noise interference when performing abnormal monitoring on voltage data in a voltage data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for processing substation voltage monitoring data based on electrical parameter analysis. Background Art

[0002] "Substation voltage" generally refers to a specific voltage level in the distribution system, which is used to supply multiple users or buildings in an area. The specific value of the substation voltage will be determined according to the local power system design and operation requirements, as well as the power demand and equipment requirements in the area served. The stability and quality of the substation voltage are crucial to ensure the normal operation and safe use of user equipment. The electrical parameter analysis involves the measurement, analysis and interpretation of various parameters in the power system. Therefore, the method based on electrical parameter analysis is used to accurately monitor and process the substation voltage data. However, since there may be noise interference in the substation voltage data, the results obtained by directly using the electrical parameter analysis method on the substation voltage data are not accurate enough, so it is necessary to denoise the substation voltage data to obtain better data monitoring results.

[0003] When the voltage data is denoised by the existing simple moving average method, a fixed filter window size is used for each voltage data. However, because the noise is random, the noise influence of some voltage data is greater than the noise influence of other voltage data, which in turn causes the optimal filter window size of some voltage data to be greater than the optimal filter window size of other voltage data; therefore, when all voltage data are denoised by the simple moving average method with a fixed filter window size, the optimal filter window size of some voltage data is greater than the fixed filter window size, which in turn causes the simple moving average method with a fixed filter window size to have a poor denoising effect on the voltage data; when the denoised voltage data obtained by the simple moving average method with a fixed filter window size is monitored, the monitoring result is inaccurate. Summary of the invention

[0004] The present invention provides a method and system for processing substation voltage monitoring data based on electrical parameter analysis to solve the existing problems.

[0005] The method and system for processing substation voltage monitoring data based on electrical parameter analysis of the present invention adopt the following technical solutions:

[0006] The present invention proposes a method for processing substation voltage monitoring data based on electrical parameter analysis, the method comprising the following steps:

[0007] Acquire voltage data at multiple moments to obtain a voltage data set, wherein the voltage data set includes a plurality of voltage data;

[0008] Acquire several adjacent data of each voltage data, and obtain the local abruptness of each voltage data according to the distribution of the values ​​of each voltage data and the adjacent data under the straight line fitting;

[0009] Based on the voltage data set, a voltage data curve, a trend item and a voltage fitting curve of the voltage data set are obtained; the trend item is moved and compared with the voltage data curve, and a number of corresponding voltage data of each voltage data is obtained in combination with the slope of the data point in the voltage fitting curve; according to the value and local abruptness of each voltage data and the corresponding voltage data, the suspected noise influence degree of each voltage data is obtained, and then a number of adaptive voltage data in the voltage data set are obtained;

[0010] Acquire a number of updated neighboring data of each adaptive voltage data, and obtain the noise performance degree of each adaptive voltage data according to the value of the updated neighboring data of each adaptive voltage data and the suspected noise influence degree of each adaptive voltage data;

[0011] Presetting an initial filter window size for each voltage data, and obtaining a filter window size for each adaptive voltage data according to the noise performance level of each adaptive voltage data; and obtaining a denoised voltage data set according to the filter window size for each adaptive voltage data and the initial filter window size for each voltage data;

[0012] The voltage data is monitored based on the denoised voltage data set.

[0013] Furthermore, the method of obtaining a plurality of adjacent data of each voltage data and obtaining the local abruptness of each voltage data according to the distribution of the values ​​of each voltage data and the adjacent data under the straight line fitting includes the following specific methods:

[0014] In the Select each side of the voltage data Voltage data, recorded as The adjacent data of voltage data, Select the number for the preset side;

[0015] The first Each voltage data and all its neighboring data are mapped to a time-value coordinate system in which the horizontal axis is the acquisition time of the voltage data and the vertical axis is the value of the voltage data;

[0016] For the first The voltage data and all its neighboring data are fitted by the least square method to obtain a fitting straight line, which is recorded as The fitting straight line of the voltage data;

[0017] The first The absolute value of the voltage data is The fitting straight line of the voltage data The absolute value of the difference between the fitted values ​​of the voltage data is recorded as The fitting error of voltage data;

[0018] The first The voltage data The absolute value of the adjacent data is The absolute value of the difference between the corresponding fitting values ​​in the fitting line of the voltage data is recorded as The voltage data The fitting error of adjacent data;

[0019] According to The value and fitting error of the voltage data and its adjacent data are obtained. The local abruptness of voltage data is calculated by the following formula:

[0020]

[0021] In the formula, Indicates The local abruptness of the voltage data is Indicates The value of the voltage data, Indicates The number of adjacent data of each voltage data, Indicates The voltage data The values ​​of neighboring data, Indicates The fitting error of the voltage data is Indicates The voltage data The fitting error of neighboring data is represents the absolute value function, Represents the normalization function.

[0022] Furthermore, the specific method of obtaining the voltage data curve, trend item and voltage fitting curve of the voltage data set based on the voltage data set includes:

[0023] Mapping the voltage data in the voltage data set to a time-value coordinate system to obtain a number of voltage data points, and connecting the voltage data points to obtain a voltage data curve of the voltage data set;

[0024] Decompose the voltage data curve by using the time series decomposition algorithm to obtain the trend item of the voltage data set;

[0025] The least squares method is used to fit all voltage data points in the time-value coordinate system to obtain a fitting curve of the voltage data set, which is recorded as the voltage fitting curve.

[0026] Furthermore, the moving trend item is compared with the voltage data curve, and the slope of the data point in the voltage fitting curve is combined to obtain a number of corresponding voltage data for each voltage data, including the specific method of:

[0027] The trend item of the voltage data set moves along the vertical axis. The trend item of the voltage data is When the voltage data points coincide, the intersection of the trend term and the voltage data curve is recorded as The suspected corresponding voltage data of each voltage data;

[0028] Obtain the slope of each data point in the voltage fitting curve, and record it as the fitting slope of the voltage data corresponding to each data point; The fitted slopes of the voltage data have the same sign as the The suspected corresponding voltage data of the voltage data is recorded as The corresponding voltage data of each voltage data.

[0029] Furthermore, the suspected noise influence degree of each voltage data is obtained according to each voltage data and the value and local abruptness degree of the corresponding voltage data, including the specific method of:

[0030] The difference obtained by subtracting the value of the next voltage data from the value of each voltage data is recorded as the slope factor of each voltage data; the ratio of the slope factor of each voltage data to the preset sampling interval is recorded as the original slope of each voltage data; according to the The voltage data and its corresponding original slope and local abruptness are obtained. The specific calculation formula for the suspected noise influence degree of voltage data is as follows:

[0031]

[0032] In the formula, Indicates The suspected noise influence degree of each voltage data, Indicates The local abruptness of the voltage data is Indicates The voltage data The local abruptness of the corresponding voltage data, Indicates The original slope of the voltage data, Indicates The voltage data The original slope of the corresponding voltage data, Indicates The number of voltage data corresponding to each voltage data, represents the absolute value function, Represents the normalization function.

[0033] Furthermore, the specific method of obtaining the plurality of adaptive voltage data in the voltage data set includes:

[0034] Preset suspected noise threshold ,if , will The voltage data is used as an adaptive voltage data.

[0035] Furthermore, the method of obtaining a plurality of updated neighboring data of each adaptive voltage data and obtaining the noise performance degree of each adaptive voltage data according to the value of the updated neighboring data of each adaptive voltage data and the suspected noise influence degree of each adaptive voltage data includes the following specific methods:

[0036] In the voltage data set, The adaptive voltage data is taken as the center. The left side of the adaptive voltage data The voltage data is compared with the Voltage data, recorded as Adaptive voltage data update neighboring data, where Update the number of selections for the preset side;

[0037] According to the suspected noise influence degree of the adaptive voltage data, as well as the value of each voltage data and the original slope, the noise performance degree of each adaptive voltage data is obtained. The specific calculation formula is as follows:

[0038]

[0039] In the formula, Indicates The noise performance of the adaptive voltage data is Indicates The suspected noise influence degree of the adaptive voltage data, Indicates The average absolute value of all updated neighboring data on the left side of the adaptive voltage data, Indicates The average absolute value of all updated neighboring data on the right side of the adaptive voltage data, Indicates The average of the absolute values ​​of the original slopes of all updated neighboring data on the left side of the adaptive voltage data, Indicates The average of the absolute values ​​of the original slopes of all updated neighboring data on the right side of the adaptive voltage data, is a hyperparameter.

[0040] Furthermore, the filter window size of each adaptive voltage data is obtained according to the noise performance degree of each adaptive voltage data, including the specific formula:

[0041]

[0042] In the formula, Indicates The length of the filter window size for adaptive voltage data, represents the length of the initial filter window size, Indicates The noise performance of the adaptive voltage data is Represents the preset resizing factor. Represents the floor function.

[0043] Furthermore, the monitoring of voltage data according to the denoised voltage data set includes the following specific methods:

[0044] Arrange all denoised voltage data in the denoised voltage data set in chronological order to obtain a voltage value sequence;

[0045] The local outlier factor of each element in the voltage value sequence is obtained through the LOF algorithm, and the abnormal threshold is preset , if the local outlier factor of any element is greater than , the voltage data corresponding to the element is recorded as abnormal data;

[0046] The ratio of the number of abnormal data to the number of voltage data contained in the voltage data set is recorded as the abnormal ratio;

[0047] Preset abnormal ratio threshold , when the anomaly ratio is greater than the anomaly ratio threshold , there is an anomaly in the voltage data set.

[0048] The present invention also proposes a substation voltage monitoring data processing system based on electrical parameter analysis, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned substation voltage monitoring data processing method based on electrical parameter analysis.

[0049] The beneficial effects of the technical solution of the present invention are as follows: when obtaining the local abruptness of each voltage data according to the distribution of the values ​​of each voltage data and its neighboring data under straight line fitting, the local abruptness of the voltage data affected by the noise is greater than the local abruptness of the voltage data not affected by the noise, in combination with the characteristic that the value of the voltage data is greatly different from the value of the normal voltage data around it; relying on the characteristic that the trends of each voltage data and its corresponding voltage data are relatively similar, the corresponding voltage data of each voltage data is obtained from the suspected voltage data of each voltage data, providing a basis for obtaining the suspected noise influence degree of each voltage data subsequently; according to ... characteristics that the trends of each voltage data and its corresponding voltage data are relatively similar, the corresponding voltage data of each voltage data is obtained from the suspected voltage data of each voltage data, providing a basis for obtaining the suspected noise influence degree of each voltage data subsequently The corresponding voltage data have a strong similarity feature, so that the suspected noise influence degree of normal voltage data is smaller than that of voltage data affected by noise; based on the feature that the voltage data affected by noise has a large difference in value from the voltage data on both sides of its surroundings, and the voltage data affected by load change has a large difference in value from the voltage data on one side of its surroundings, the voltage data affected by noise is distinguished from the voltage data affected by load change, so that the filter window size of the voltage data affected by noise is larger than the filter window size of the voltage data affected by load change; thereby, the denoised voltage data is closer to the actual situation, and the accuracy of the abnormal monitoring results of the voltage data is improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0051] Figure 1 The present invention is a flowchart of the steps of the method for processing substation voltage monitoring data based on electrical parameter analysis. DETAILED DESCRIPTION

[0052] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, characteristics and effects of the substation voltage monitoring data processing method based on electrical parameter analysis proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

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

[0054] The specific scheme of the method for processing substation voltage monitoring data based on electrical parameter analysis provided by the present invention is described in detail below with reference to the accompanying drawings.

[0055] See also Figure 1 , which shows a flowchart of a method for processing substation voltage monitoring data based on electrical parameter analysis provided by an embodiment of the present invention, the method comprising the following steps:

[0056] Step S001: Acquire voltage data at multiple moments to obtain a voltage data set.

[0057] The main purpose of this embodiment is to monitor the voltage data of the substation, thereby obtaining the voltage data of the substation.

[0058] Specifically, every The power monitoring equipment collects the voltage data of the substation area once every second, and obtains Hours of substation voltage data are collected to obtain a substation voltage data set, which is recorded as a voltage data set. Each voltage data in the voltage data set includes a collection time and a value, and the value of the voltage data is a non-negative value.

[0059] The collection interval preset in this embodiment , the preset total collection time , this is used as an example for description, and other values ​​may be set in other implementation modes.

[0060] It should be noted that, because the influence of noise on voltage data is random, the influence of noise on some voltage data is much greater than that on other voltage data, which in turn causes the size of the optimal filter window of some voltage data to be larger than that of other voltage data. Therefore, when the values ​​of voltage data in the voltage data set are denoised by a simple moving average method with a fixed filter window size, the denoising effect on some voltage data that are greatly affected by noise is not good. Therefore, firstly, according to the values ​​of each voltage data and its surrounding voltage data, the suspected noise influence degree of each voltage data is obtained, and the voltage data is divided into adaptive voltage data and non-adaptive voltage data; according to the values ​​of each voltage data in the voltage data set, the noise performance degree of each adaptive voltage data is obtained; according to the noise performance degree of the adaptive voltage data, the filter window size of each adaptive voltage data is obtained, and finally the filter window size of each voltage data in the voltage data set is obtained.

[0061] Step S002: Acquire a number of adjacent data of each voltage data, and obtain the local abruptness of each voltage data according to the distribution of the values ​​of each voltage data and the adjacent data under straight line fitting.

[0062] It should be noted that because noise causes abnormal changes in the value of voltage data, that is, a voltage data affected by noise has a large difference in value from the normal voltage data around it. Therefore, according to the value of each voltage data and the voltage data around it, a first parameter of the suspected noise influence degree of each voltage data is obtained, which is recorded as the local abruptness degree of each voltage data.

[0063] Specifically, take the voltage data set As an example, in the voltage data Select each side of the voltage data Voltage data, recorded as The adjacent data of the voltage data. It should be noted that if the Insufficient voltage data on the left or right side of the voltage data The data extension algorithm is a well-known technology and will not be described in detail in this embodiment. , this is used as an example for description, and other values ​​may be set in other implementation modes.

[0064] Furthermore, The voltage data and all its neighboring data are mapped to a time-value coordinate system in which the horizontal axis is the acquisition time of the voltage data and the vertical axis is the value of the voltage data. The voltage data and its adjacent data are fitted by the least square method to obtain a fitting straight line, which is recorded as The fitting straight line of the voltage data. The value of the voltage data is The fitting straight line of the voltage data The absolute value of the difference between the fitted values ​​of the voltage data is recorded as The fitting error of the voltage data; The voltage data The value of the neighboring data is The absolute value of the difference between the corresponding fitting values ​​in the fitting line of the voltage data is recorded as The voltage data The least square method is a well-known technique and will not be described in detail in this embodiment. The value and fitting error of the voltage data and its adjacent data are obtained. The specific calculation formula for the local abruptness of voltage data is as follows:

[0065]

[0066] In the formula, Indicates The local abruptness of the voltage data is Indicates The value of the voltage data, Indicates The number of adjacent data of each voltage data, Indicates The voltage data The values ​​of neighboring data, Indicates The fitting error of the voltage data is Indicates The voltage data The fitting error of neighboring data is represents the absolute value function, Represents a linear normalization function, and the normalized object is all voltage data

[0067] .

[0068] It should be noted that Indicates The difference between the value of a voltage data and the average value of all its neighboring data. The larger the value, the The greater the difference between the value of a voltage data and the values ​​of all its neighboring data, the greater the difference between the value of the voltage data and the value of all its neighboring data. The greater the abnormal change of the voltage data, the The greater the local abruptness of the voltage data, Indicates The fitting error of the voltage data is The difference in fitting errors of all adjacent data of a voltage data. The larger the value, the greater the difference in fitting errors of the first voltage data. The fitting error of the voltage data is The greater the difference in the fitting errors of all neighboring data of a voltage data, the more it indicates that The greater the abnormal change of the voltage data, the The greater the local abruptness of the voltage data.

[0069] At this point, the local abruptness of each voltage data in the voltage data set is obtained.

[0070] Step S003: obtaining a voltage data curve, a trend item and a voltage fitting curve of the voltage data set based on the voltage data set; moving the trend item and comparing it with the voltage data curve, and combining the slope of the data point in the voltage fitting curve to obtain a number of corresponding voltage data for each voltage data; obtaining the suspected noise influence degree of each voltage data according to the numerical value and local abruptness of each voltage data and the corresponding voltage data, and then obtaining a number of adaptive voltage data in the voltage data set.

[0071] It should be noted that because the specific value of the substation voltage is determined according to the power demand and equipment requirements in the area it serves, and the power demand and equipment requirements in an area will not change significantly in a short period of time, the voltage data has periodicity, so that each voltage data in the voltage data set has multiple corresponding voltage data in different periods. Because when not affected by noise, the corresponding voltage data in different periods are similar; and noise affects the value of the voltage data, so that the data affected by noise in the voltage data set is less similar to the corresponding voltage data in different periods. Therefore, the degree of suspected noise influence of each voltage data is quantified by the similarity between each voltage data and its corresponding voltage data in different periods.

[0072] It should be further explained that, because the voltage data has periodicity, the trend item of the voltage data is obtained through the STL algorithm, i.e., the time series decomposition algorithm. Because the trend item of the voltage data is the overall change trend of the voltage data, and the voltage data has periodicity, the corresponding voltage data of each voltage data is obtained through the trend item of the voltage data.

[0073] Specifically, the voltage data in the voltage data set is mapped to the time-value coordinate system to obtain a number of voltage data points, and the voltage data points are connected to obtain a voltage data curve of the voltage data set. The voltage data curve is decomposed by the STL decomposition algorithm to obtain the trend item of the voltage data set. The STL decomposition algorithm is a well-known technology and will not be described in detail in this embodiment. In the time-value coordinate system, the trend item of the voltage data set is moved along the vertical axis. The trend item of the voltage data is When the voltage data points coincide, the intersection of the trend term and the voltage data curve is recorded as The voltage data is suspected to correspond to the voltage data.

[0074] It should be noted that the trend item is moved along the vertical axis and during the movement The trend item of the voltage data is When the voltage data points overlap, the trend term may have multiple intersections with the voltage data in one cycle, so The first voltage data is obtained from the suspected corresponding voltage data of the voltage data Because the corresponding voltage data in different cycles are similar, according to the The trend of the voltage data and its suspected corresponding voltage data is obtained. The corresponding voltage data of the voltage data. The similarity between the voltage data and its corresponding voltage data is obtained. The suspected noise influence on the voltage data.

[0075] Specifically, the least squares method is used to perform least squares fitting on all voltage data points in the time-value coordinate system to obtain a fitting curve of the voltage data set, which is recorded as the voltage fitting curve. The slope of each data point in the voltage fitting curve is obtained, which is recorded as the fitting slope of the voltage data corresponding to each data point. The sign of the fitting slope is compared with the first The fitted slopes of the voltage data have the same sign as the The suspected corresponding voltage data of the voltage data is recorded as The corresponding voltage data of each voltage data.

[0076] Furthermore, the difference obtained by subtracting the value of the next adjacent voltage data from the value of each voltage data is recorded as the slope factor of each voltage data; the ratio of the slope factor of each voltage data to the preset acquisition interval is recorded as the original slope of each voltage data. It is particularly noted that when obtaining the original slope of each voltage data, the original slope of the second-to-last voltage data is used as the original slope of the last voltage data.

[0077] Furthermore, according to the local abruptness and the original slope of each voltage data, the suspected noise influence degree of each voltage data is obtained, and the specific calculation formula is as follows:

[0078]

[0079] In the formula, Indicates The suspected noise influence degree of each voltage data, Indicates The local abruptness of the voltage data is Indicates The voltage data The local abruptness of the corresponding voltage data, Indicates The original slope of the voltage data, Indicates The voltage data The original slope of the corresponding voltage data, Indicates The number of voltage data corresponding to each voltage data, represents the absolute value function, Represents a linear normalization function, and the normalized object is each voltage data .

[0080] It should be noted that Indicates The voltage data and its The difference in the local abruptness of the corresponding voltage data. The larger the value, the The voltage data and its The weaker the similarity of the corresponding voltage data, that is, The greater the suspected noise influence on the voltage data, Indicates The slope of the voltage data is related to its The difference in the original slope of the corresponding voltage data. The larger the value, the The voltage data and its The weaker the similarity of the corresponding voltage data, that is, The greater the suspected noise impact on the voltage data.

[0081] Furthermore, a threshold of suspected noise is preset ,if , then the The voltage data is recorded as adaptive voltage data. The suspected degree threshold value preset in this embodiment is , this is used as an example for description, and other values ​​may be set in other implementation modes.

[0082] At this point, the suspected noise influence degree of each voltage data and the adaptive voltage data in the voltage data set are obtained.

[0083] Step S004: obtaining a number of updated neighboring data of each adaptive voltage data, and obtaining the noise performance level of each adaptive voltage data according to the value of the updated neighboring data of each adaptive voltage data and the suspected noise influence level of each adaptive voltage data.

[0084] It should be noted that not only noise can cause a large difference in the value of voltage data and its surrounding voltage data, but a sudden change in load can also cause a large difference in the value of voltage data and its surrounding voltage data, that is, some adaptive voltage data may be voltage data affected by load changes. Because the voltage data affected by noise has a large difference in the value of the voltage data on both sides of its surroundings, while the voltage data affected by load changes has a large difference in the value of the voltage data on one side of its surroundings, and a small difference in the value of the voltage data on the other side. Therefore, according to the value of each voltage data in the voltage data set, the noise performance degree of each adaptive voltage data is obtained.

[0085] Specifically, For example, in the voltage data set, take the first The adaptive voltage data is taken as the center. The left side of the adaptive voltage data The voltage data is compared with the Voltage data, recorded as Update neighboring data of adaptive voltage data. If The number of voltage data on one side of the adaptive voltage data is insufficient If there are , the data extension algorithm is used to supplement the missing voltage data. The number of selected updates on one side is preset. In this embodiment, the number of selected updates on one side is preset. , this is used as an example for description, and other values ​​may be set in other implementation modes.

[0086] Furthermore, according to the value of each voltage data and the original slope, the noise performance degree of each adaptive voltage data is obtained, and the specific calculation formula is as follows:

[0087]

[0088] In the formula, Indicates The noise performance of the adaptive voltage data is Indicates The suspected noise influence degree of the adaptive voltage data, Indicates The average absolute value of all updated neighboring data on the left side of the adaptive voltage data, Indicates The average absolute value of all updated neighboring data on the right side of the adaptive voltage data, Indicates The average absolute value of the slope of all updated adjacent data on the left side of the adaptive voltage data, Indicates The average absolute value of the slope of all updated adjacent data on the right side of the adaptive voltage data, represents the absolute value function, represents a linear normalization function, and the normalization object is each adaptive voltage data ; To avoid hyperparameters with a denominator of 0, this embodiment uses Give a narrative.

[0089] It should be noted that Indicates The difference in the absolute value of the voltage data on the left and right sides of the adaptive voltage data. The smaller the value, the The absolute value of the adaptive voltage data satisfies the characteristic of sudden adjustment after sudden change, that is, The greater the noise performance of the adaptive voltage data; Indicates The slope difference of the voltage data on the left and right sides of the adaptive voltage data. The larger the value, the greater the slope difference of the voltage data on the left and right sides of the adaptive voltage data. The more the adaptive voltage data satisfies the characteristics of sudden adjustment after sudden change, the The greater the noise performance of the adaptive voltage data; Indicates The suspected noise influence degree of the adaptive voltage data is used as the confidence parameter, that is, the larger the value, the The higher the confidence level of the noise representation of the adaptive voltage data, the higher the confidence level of the adaptive voltage data.

[0090] Step S005: preset an initial filter window size for each voltage data, and obtain a filter window size for each adaptive voltage data according to the noise performance level of each adaptive voltage data; obtain a denoised voltage data set according to the filter window size for each adaptive voltage data and the initial filter window size for each voltage data.

[0091] Specifically, the initial filter window size of each voltage data is preset The length of the initial filter window size of each voltage data preset in this embodiment is , which is described as an example, and other implementations may be set to other values. According to the initial filter window size of each voltage data and the noise performance of each adaptive voltage data, the length of the filter window of each adaptive voltage data is obtained, and its specific calculation formula is as follows:

[0092]

[0093] In the formula, Indicates The length of the filter window size for adaptive voltage data, represents the length of the initial filter window size, Indicates The noise performance of the adaptive voltage data is Indicates the size adjustment coefficient. The size adjustment coefficient preset in this embodiment , which is described as an example, and other values ​​may be set in other implementation modes; Represents the floor function.

[0094] Further, The length of the filter window size for the adaptive voltage data is , the width is 1, then the The filter window size of the adaptive voltage data is The filter window size of the voltage data for non-adaptive voltage data is .

[0095] At this point, the filter window size of each adaptive voltage data in the voltage data set and the filter window size of the voltage data of the non-focused data are obtained, and the filter window size of each voltage data in the voltage data set is obtained.

[0096] Furthermore, through the filter window size of each voltage data in the voltage data set, according to the simple moving average method, the value of each voltage data in the voltage data set is denoised to obtain the value of the denoised voltage data, and the values ​​of all the denoised voltage data and the corresponding acquisition time constitute the denoised voltage data set; the simple moving average method is an existing method and will not be repeated in this embodiment.

[0097] Step S006: monitoring the voltage data according to the denoised voltage data set.

[0098] Specifically, all denoised voltage data in the denoised voltage data set are arranged in chronological order to obtain a voltage value sequence. The local outlier factor of each element in the voltage value sequence is obtained by the LOF algorithm, i.e., the anomaly detection algorithm. The LOF algorithm is a well-known technology and will not be described in detail in this embodiment. Preset abnormal threshold , when the local outlier factor of any element is greater than When , the voltage data corresponding to the element is recorded as abnormal data.

[0099] Furthermore, the ratio of the number of abnormal data to the number of voltage data contained in the voltage data set is recorded as the abnormal ratio. , when the anomaly ratio is greater than the anomaly ratio threshold When , it is considered that the voltage data set is abnormal. The abnormality threshold value preset in this embodiment is , the preset abnormal ratio threshold , this is used as an example for description, and other values ​​may be set in other implementation modes.

[0100] At this point, this embodiment is completed.

[0101] The present invention also provides a substation voltage monitoring data processing system based on electrical parameter analysis, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned substation voltage monitoring data processing method based on electrical parameter analysis.

[0102] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. Substation voltage monitoring data processing method based on electrical parameter analysis, It is characterized in that The method comprises the following steps: Acquire voltage data at multiple moments to obtain a voltage data set, wherein the voltage data set includes a plurality of voltage data; Acquire several adjacent data of each voltage data, and obtain the local abruptness of each voltage data according to the distribution of the values ​​of each voltage data and the adjacent data under the straight line fitting; Based on the voltage data set, a voltage data curve, a trend item and a voltage fitting curve of the voltage data set are obtained; the trend item is moved and compared with the voltage data curve, and a number of corresponding voltage data of each voltage data is obtained in combination with the slope of the data point in the voltage fitting curve; according to the value and local abruptness of each voltage data and the corresponding voltage data, the suspected noise influence degree of each voltage data is obtained, and then a number of adaptive voltage data in the voltage data set are obtained; Acquire a number of updated neighboring data of each adaptive voltage data, and obtain the noise performance degree of each adaptive voltage data according to the value of the updated neighboring data of each adaptive voltage data and the suspected noise influence degree of each adaptive voltage data; Presetting an initial filter window size for each voltage data, and obtaining a filter window size for each adaptive voltage data according to the noise performance level of each adaptive voltage data; and obtaining a denoised voltage data set according to the filter window size for each adaptive voltage data and the initial filter window size for each voltage data; Monitor the voltage data based on the denoised voltage data set; The method of obtaining a plurality of adjacent data of each voltage data and obtaining the local abruptness of each voltage data according to the distribution of the values ​​of each voltage data and the adjacent data under the straight line fitting includes the following specific methods: In the Select each side of the voltage data Voltage data, recorded as The adjacent data of voltage data, Select the number for the preset side; The first Each voltage data and all its neighboring data are mapped to a time-value coordinate system in which the horizontal axis is the acquisition time of the voltage data and the vertical axis is the value of the voltage data; For the first The voltage data and all its neighboring data are fitted by the least square method to obtain a fitting straight line, which is recorded as The fitting straight line of the voltage data; The first The absolute value of the voltage data is The fitting straight line of the voltage data The absolute value of the difference between the fitted values ​​of the voltage data is recorded as The fitting error of voltage data; The first The voltage data The absolute value of the neighboring data is equal to the value of the neighboring data in The absolute value of the difference between the corresponding fitting values ​​in the fitting line of the voltage data is recorded as The voltage data The fitting error of adjacent data; According to The value and fitting error of the voltage data and its adjacent data are obtained. The local abruptness of voltage data is calculated by the following formula: In the formula, Indicates The local abruptness of the voltage data is Indicates The value of the voltage data, Indicates The number of adjacent data of each voltage data, Indicates The voltage data The values ​​of neighboring data, Indicates The fitting error of the voltage data is Indicates The voltage data The fitting error of neighboring data is represents the absolute value function, represents the normalization function; The specific method of obtaining the voltage data curve, trend item and voltage fitting curve of the voltage data set based on the voltage data set includes: Mapping the voltage data in the voltage data set to a time-value coordinate system to obtain a number of voltage data points, and connecting the voltage data points to obtain a voltage data curve of the voltage data set; Decompose the voltage data curve by using the time series decomposition algorithm to obtain the trend item of the voltage data set; Performing least squares fitting on all voltage data points in the time-value coordinate system, obtaining a fitting curve of the voltage data set, which is recorded as a voltage fitting curve; The moving trend item is compared with the voltage data curve, and the slope of the data point in the voltage fitting curve is combined to obtain a number of corresponding voltage data for each voltage data, including the specific method of: The trend item of the voltage data set moves along the vertical axis. The trend item of the voltage data is When the voltage data points coincide, the intersection of the trend term and the voltage data curve is recorded as The suspected corresponding voltage data of each voltage data; Obtain the slope of each data point in the voltage fitting curve, and record it as the fitting slope of the voltage data corresponding to each data point; The fitted slopes of the voltage data have the same sign as the The suspected corresponding voltage data of the voltage data is recorded as The corresponding voltage data of each voltage data; The method of obtaining the suspected noise influence degree of each voltage data according to each voltage data and the value and local abruptness degree of the corresponding voltage data includes: The difference obtained by subtracting the value of the next voltage data from the value of each voltage data is recorded as the slope factor of each voltage data; the ratio of the slope factor of each voltage data to the preset sampling interval is recorded as the original slope of each voltage data; according to the The voltage data and its corresponding original slope and local abruptness are obtained. The specific calculation formula for the suspected noise influence degree of voltage data is as follows: In the formula, Indicates The suspected noise influence degree of each voltage data, Indicates The local abruptness of the voltage data is Indicates The voltage data The local abruptness of the corresponding voltage data, Indicates The original slope of the voltage data, Indicates The voltage data The original slope of the corresponding voltage data, Indicates The number of voltage data corresponding to each voltage data, represents the absolute value function, represents the normalization function; The specific method of obtaining a plurality of adaptive voltage data in the voltage data set includes: Preset suspected noise threshold ,if , will The voltage data is used as an adaptive voltage data; The method of obtaining a plurality of updated neighboring data of each adaptive voltage data and obtaining the noise performance degree of each adaptive voltage data according to the value of the updated neighboring data of each adaptive voltage data and the suspected noise influence degree of each adaptive voltage data includes the following specific methods: In the voltage data set, The adaptive voltage data is taken as the center. The left side of the adaptive voltage data The voltage data is compared with the Voltage data, recorded as Adaptive voltage data update neighboring data, where Update the number of selections for one side of the preset; According to the suspected noise influence degree of the adaptive voltage data, as well as the value of each voltage data and the original slope, the noise performance degree of each adaptive voltage data is obtained. The specific calculation formula is as follows: In the formula, Indicates The noise performance of the adaptive voltage data is Indicates The suspected noise influence degree of the adaptive voltage data, Indicates The average absolute value of all updated neighboring data on the left side of the adaptive voltage data, Indicates The average absolute value of all updated neighboring data on the right side of the adaptive voltage data, Indicates The average of the absolute values ​​of the original slopes of all updated neighboring data on the left side of the adaptive voltage data, Indicates The average of the absolute values ​​of the original slopes of all updated neighboring data on the right side of the adaptive voltage data, is a hyperparameter; The specific formula for obtaining the filter window size of each adaptive voltage data according to the noise performance degree of each adaptive voltage data is as follows: In the formula, Indicates The length of the filter window size for adaptive voltage data, represents the length of the initial filter window size, Indicates The noise performance of the adaptive voltage data is Represents the preset resizing factor. Represents the floor function.

2. According to the method for processing substation voltage monitoring data based on electrical parameter analysis according to claim 1, It is characterized in that The monitoring of voltage data according to the denoised voltage data set includes the following specific methods: Arrange all the denoised voltage data in the denoised voltage data set in chronological order to obtain a voltage value sequence; The local outlier factor of each element in the voltage value sequence is obtained through the LOF algorithm, and the abnormal threshold is preset , if the local outlier factor of any element is greater than , the voltage data corresponding to the element is recorded as abnormal data; The ratio of the number of abnormal data to the number of voltage data contained in the voltage data set is recorded as the abnormal ratio; Preset abnormal ratio threshold , when the anomaly ratio is greater than the anomaly ratio threshold When , the voltage data set is abnormal.

3. A substation voltage monitoring data processing system based on electrical parameter analysis, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the computer program, the steps of the substation voltage monitoring data processing method based on electrical parameter analysis as described in any one of claims 1-2 are implemented.