Power grid operation state safety monitoring method and device based on big data
By using sliding windows and isolated forest models in power grid operating status monitoring, the problems of low efficiency and inaccuracy in power grid data monitoring are solved, accurate identification and monitoring of power grid operating status is achieved, and monitoring reliability is improved.
Patent Information
- Application Number
- CN202411013843.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-07-26
AI Technical Summary
Existing technologies have problems with low detection efficiency and inaccuracy when monitoring the operating status of the power grid. Especially when power grid data grows exponentially, traditional clustering methods are difficult to accurately identify abnormal data.
A power grid operating status security monitoring method based on big data is adopted to obtain time series data, use sliding windows for data slicing, calculate fluctuation characteristic values, and build an isolated forest model to calculate anomaly scores and identify abnormalities in the power grid operating status.
It improves the reliability of safety monitoring of the power grid's operating status, enables more refined segmentation and identification of local changes in power grid data, accurately identifies whether the power grid is operating in a normal state, and enhances the security monitoring capabilities of the power grid.
Smart Images

Figure CN118554450A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital data processing, and more specifically, to a method and device for safely monitoring the operation status of a power grid based on big data. Background Art
[0002] The operating status of the power grid system refers to the working conditions of the system and equipment under different operating conditions (such as load level, output configuration, system wiring, faults, etc.) of the power grid system. The power grid operating status is currently divided into four types, including normal state, alert state, emergency state and recovery state.
[0003] In order to ensure the stable operation of the power grid and timely discover abnormal conditions and potential risks in the power grid, abnormal monitoring of power grid data has become an important part of power grid stability analysis. With the continuous popularization and application of power equipment, the scale of the power grid is expanding, making the power grid data show an exponential growth trend, resulting in the low detection efficiency of traditional power grid data anomaly detection.
[0004] In the prior art, the method for monitoring the operating status of a power grid usually adopts a clustering-based method; for example, the patent application document with application publication number CN114548294A and invention name "A method, device, mobile terminal and storage medium for detecting abnormal data in a power grid" discloses that a first clustering process is performed based on the acquired heterogeneous power data, and a final weight value is obtained; a second clustering process is performed on the first clustering result based on the final weight value to realize abnormal data detection of the power grid to be detected.
[0005] Although the above scheme can detect anomalies in the power grid and reduce the impact of low-performance clustering results on the overall base clustering cluster, so that the detection results are more accurate and objective; it should be noted that when clustering, different clusters are selected based on the number of clusters, and outliers are often far away from the cluster center. However, each clustering model is only suitable for specific data types, and the results produced by different numbers of clusters are completely different. Therefore, the above scheme has inaccurate problems when monitoring power grid data. Summary of the invention
[0006] The purpose of the present invention is to propose a method and device for safely monitoring the operation status of a power grid based on big data, so as to solve the problem of inaccuracy in the prior art when monitoring power grid data; to this end, the present invention provides solutions in the following two aspects.
[0007] In a first aspect, the present invention provides a method for safely monitoring power grid operation status based on big data, comprising the following steps: Obtaining a time series data group of the power grid operation status within the current time period; wherein the time series data group includes time series data of at least two dimensions; A sliding window is used to slide the time series data group in time series, and the abnormality degree of the data segments of all dimensions in any sliding window is obtained. When the abnormality degree is greater than the set threshold, the position of the data of each dimension corresponding to the end of the sliding window is used as the slicing position, and the slicing is performed in time series to obtain the corresponding data slice group; the fluctuation characteristic value of any data slice group is calculated; the fluctuation characteristic value represents the fluctuation change of all dimensional data in the data slice group; Construct an isolation forest model for all data slice groups; and calculate the anomaly score for each data slice group in the isolation forest model : , For the The fluctuation characteristic value of each data slice group, For the The mean path length of each data slice group on all isolated trees in the isolation forest, is the average path length of all isolated trees that make up the isolation forest, is the hyperbolic tangent function; In response to the abnormal score being greater than the set value, the corresponding data slice group is abnormal data, and at this time, the power grid operation state in the corresponding time sequence of the data slice group is abnormal.
[0008] Beneficial effects: The scheme of the present invention calculates the abnormality of the power grid operation data of multiple dimensions in the sliding window under each sliding number, divides the data of each dimension in the time series data group, and obtains different data slice groups, which can perform more refined segmentation on the suspected abnormal power grid data; then, the local changes of each data slice group in the time series are determined to obtain the fluctuation characteristic value, and the fluctuation characteristic value representing the fluctuation characteristic of the data slice group is introduced into the calculation of the abnormal score of the isolation forest model, so as to effectively and accurately identify whether the operation of the power grid is in a normal state, thereby improving the reliability of safety monitoring of the power grid.
[0009] In one embodiment, the size of the sliding window is: ;in, is the size of the sliding window, For the The maximum value in the time series data of dimensions. For the The minimum value in the time series data of dimensions. is the sampling interval of each data point in the collected time series data of each dimension, For the The mean of the time series data in the dimension, For custom parameters, For the The weight of the time series data in each dimension, , L is the total number of dimensions, For the The coefficient of variation of each dimension is the ratio of the standard deviation of the time series data of each dimension to the mean of the corresponding time series data.
[0010] Beneficial effect: Based on the characteristics of the data in the time series data, a more appropriate sliding window is obtained, which can better identify the changes in the data in the time series data group.
[0011] In one embodiment, the abnormality degree is: ;in, For sliding The abnormality of the data segments of all dimensions in the sliding window at this time, For the The weight of the time series data in each dimension, For the The coefficient of variation of the time series data in the dimension, For sliding The first time in the sliding window The standard deviation of the data segment in the dimension, For sliding The first time in the sliding window The mean of the data segments in the dimension, is the hyperbolic tangent function, and L is the total number of dimensions.
[0012] Beneficial effect: A more accurate method for calculating the degree of abnormality is provided.
[0013] In one embodiment, the fluctuation characteristic value is the sum of the fluctuation degrees of all dimensional data in the data slice group; wherein the fluctuation degree is the product of the weight and the difference index; The difference index is: obtaining the maximum value, the minimum value and the mean value of any dimension data in each data slice group; obtaining a first difference between the maximum value and the mean value and a second difference between the minimum value and the mean value; and taking the ratio of the sum of the square of the first difference and the square of the second difference to the square of the standard deviation as the difference index of the corresponding dimension.
[0014] Beneficial effect: The fluctuation characteristic value of each data slice group can characterize the fluctuation of the corresponding data slice group, which is helpful to better identify abnormal data later.
[0015] In one embodiment, the dimensions include seven dimensions of current, voltage, frequency, power, load, temperature and humidity in the grid operation state.
[0016] In one embodiment, the specific process of constructing the isolation forest model is: Each data slice group is taken as a node, and the value of the node is a fluctuation characteristic value, thereby obtaining a node set of all data slice groups; and an isolation forest model is constructed based on the node set.
[0017] In one embodiment, it also includes: in response to the abnormal score being less than or equal to a set value, the power grid operation state under the corresponding time sequence of the data slice group is a normal operation state, and based on the judgment of the power grid operation state, the power grid operation state is monitored.
[0018] Beneficial effect: Based on the abnormal conditions of each data slice group obtained, the reliability of the power grid operation status in the current time period can be evaluated.
[0019] In a second aspect, the present invention provides a power grid operation status safety monitoring device based on big data, comprising: processor; A memory stores computer instructions for safe monitoring of power grid operation status based on big data. When the computer instructions are executed by the processor, the system executes the above-mentioned method for safe monitoring of power grid operation status based on big data.
[0020] The beneficial effects of the present invention are: The solution of the present invention first segments the data of multiple dimensions during the operation of the power grid to obtain different data slice groups, and then separately analyzes the dimensional data in the different segmented data slice groups to obtain fluctuation characteristic values that can characterize different segments, that is, the fluctuation characteristic values are used to quantify the characteristics of the corresponding data slice groups, and the fluctuation characteristic values are introduced into the calculation of the anomaly score of the constructed isolation forest model, which can effectively and accurately identify whether the operation of the power grid is in a normal state, thereby improving the reliability of safety monitoring of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] 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: Figure 1 A flowchart of a method for safely monitoring the operation status of a power grid based on big data is schematically shown in this embodiment; Figure 2 The schematic diagram of obtaining the slice position in this embodiment is schematically shown; Figure 3 The structural block diagram of a power grid operation status safety monitoring device based on big data in this embodiment is schematically shown. DETAILED DESCRIPTION
[0022] 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.
[0023] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0024] Specifically, taking a certain power grid in operation as an example, a power grid operation status safety monitoring method based on big data of the present invention is introduced.
[0025] like Figure 1 As shown, a method for safely monitoring the operation status of a power grid based on big data in this embodiment includes the following steps: In step S1, a time series data group of the power grid operation status in the current time period is obtained; wherein the time series data group includes time series data of at least two dimensions. In this embodiment, data during the operation of the power grid in a set time period is collected to evaluate the power grid operation status. Specifically, the time series data of each dimension during the operation of the power grid is collected in chronological order and with the same sampling interval.
[0026] The sampling interval is 1 second, and the specific sampling interval can be adjusted according to the actual situation. The set time period can be 15 minutes, 0.5 hours or 1 hour, and the specific time period can also be determined according to the actual situation. In this embodiment, the power grid operation status is monitored once every set time period.
[0027] Among them, there are 7 dimensions in this embodiment, such as current, voltage, frequency, power, load, temperature and humidity; of course, different dimensions can also be selected according to actual conditions.
[0028] In step S2, a sliding window is used to slide the time series data group in time series to obtain the degree of abnormality of the data segments of all dimensions in any sliding window. When the degree of abnormality is greater than a set threshold, the position of the data of each dimension corresponding to the end of the sliding window is used as the slicing position, and slicing is performed in time series to obtain the corresponding data slice group; the fluctuation characteristic value of any data slice group is calculated.
[0029] The sliding window in this embodiment may be a set window, for example, the length of the window may be 10 or 5, which may be specifically set according to actual conditions.
[0030] Of course, as other implementations, in order to better identify the changes in the data in the time series data group, it is necessary to set a suitable sliding window. Therefore, the size of the sliding window in this embodiment is: Specifically, the size of the sliding window is: ;in, is the size of the sliding window, For the The maximum value in the time series data of dimensions. For the The minimum value in the time series data of dimensions. is the sampling interval, For the The mean of the time series data in the dimension, For custom parameters, For the The weight of the time series data in each dimension, L is the total number of dimensions.
[0031] The above weights are calculated as follows: ;in, For the The weight of the time series data in each dimension, , a total of seven dimensions of data are considered, namely current, voltage, frequency, power, load, temperature, and humidity. For the The coefficient of variation of the time series data in the dimension, , For the The standard deviation of the time series data in the dimension, For the The mean of the time series data in the dimension.
[0032] It should be noted that, since the data of different dimensions in the operation of the power grid will present a distribution state with different means and different standard deviations, the coefficient of variation of the time series data of different dimensions can be obtained according to the mean and standard deviation of the time series data of different dimensions in the operation of the power grid, and then the coefficient of variation can be determined according to the coefficient of variation. The reason why the weight is set by using the coefficient of variation in this embodiment is that the measurement scales of data of different dimensions in the power grid vary greatly, that is, the data dimensions are different, and it is not appropriate to use the standard deviation directly for comparison. The coefficient of variation can reflect the The influence of the time series data of different dimensions on the judgment of the operation status of the power grid is reduced, and the influence of the different dimensions of the time series data of different dimensions is reduced. So far, the weights of each dimension in the operation process of the power grid are obtained.
[0033] It should be noted that For the The reflection value of the time series data of the dimension, when the The greater the difference between the maximum and minimum values in the time series data of the dimension, the greater the The greater the change in the time series data of the first dimension, the more noise or anomalies there may be. In order to better capture these fluctuations and identify possible anomalies, a larger sliding window is needed to observe the change pattern of the data over a longer time frame. On the contrary, when the difference is smaller, the The smaller the change in the time series data of each dimension, the smaller the window size is. The smaller the window size is, the more timely the data change can be detected and the more accurate the actual state of the data can be tracked. However, due to the different dimensions of data, the difference is divided by To eliminate the impact of the dimensions of time series data in each dimension.
[0034] Specifically, the sliding window determined above is used to slide on the time series of the time series data of each dimension in the operation of the power grid. Each time the sliding window slides, the sliding window contains data segments of each dimension within a certain time range. The abnormality degree of the data segments corresponding to each dimension in the sliding window is calculated according to the change of data in the data segments of each dimension in the sliding window. When the abnormality degree is greater than the set threshold, the position of the data of each dimension corresponding to the end of the sliding window corresponding to any sliding number is used as the slice position of the time series data group, and the slice is performed on the time series to obtain the corresponding data slice group.
[0035] When sliding the sliding window, the same step size as the sliding window is used to make the sliding window slide on the time series corresponding to the time series data of each dimension when the power grid is running. When the abnormality of the data in the sliding window is greater than the set threshold, it means that there is a high possibility of abnormal data in the sliding window. In order to better identify and handle these anomalies, so as to analyze and process abnormal data more deeply, the time series corresponding to the time series data of each dimension of the power grid are sliced at the position of the data corresponding to the end of the sliding window.
[0036] Among them, the abnormality degree is: .
[0037] in, For sliding The abnormality of the data segments of all dimensions in the sliding window at this time, For the The weight of the time series data in each dimension, For the The coefficient of variation of the time series data in the dimension, For sliding The first time in the sliding window The standard deviation of the data segment in the dimension, For sliding The first time in the sliding window The mean of the data segments in the dimension, is the hyperbolic tangent function, and L is the total number of dimensions.
[0038] in, is the hyperbolic tangent function. In order to limit The range of values of the hyperbolic tangent function is Make an adjustment where L=7. Slide the sliding window The data in the sliding window The coefficient of variation of the data segment of the dimension is the same as that of the first dimension of all the collected data. The difference in the coefficient of variation of the time series data in the dimension is larger, indicating that the corresponding The data in the data segment of the first dimension is more likely to be abnormal data. The data in the data segment of each dimension is more likely to be normal data.
[0039] As another embodiment, the degree of abnormality of the present invention can also be calculated by the LOF algorithm. Specifically, the outlier factor of each dimension of data in the window is calculated. When the outlier factor is greater than 1, it is abnormal data. The proportion of abnormal data corresponding to each dimension in the window is used to obtain the average of the abnormal proportions of all dimensions in all windows, and the average of the abnormal proportions is used as the degree of abnormality. Since the LOF algorithm is a prior art, it will not be described in detail here.
[0040] In this embodiment, when there is an abnormal degree When it is greater than 0.5 (empirical value), it is considered that there is suspected abnormal data in the sliding window. It should be noted that the threshold value set in this embodiment is 0.5, which can of course be determined according to actual conditions, such as 0.6.
[0041] For example, Figure 2 As shown in Figure 1, the time series data group includes time series data of 7 dimensions, where the time series data of the 7 dimensions are represented by W1, W2, ..., W7. The sliding window (the size of the sliding window is 1×5) is used to slide the time series data of the 7 dimensions on the time series t to obtain the data segments of each dimension under the time series corresponding to the sliding window (see Figure 2 The data segments of the seven dimensions in the dotted box in the figure are analyzed at this time to determine whether to perform a slicing operation. When a slicing operation is required, the slicing position is the position of the data of each dimension corresponding to the end of the sliding window (see Figure 2); after that, the sliding window continues to slide and the corresponding abnormality degree is calculated. If there is no abnormality in the data segments of all dimensions in the current sliding window, the sliding window continues to slide backward until the slice position is found, and the remaining time series data groups are sliced to obtain a set of data slice groups.
[0042] At this point, the time series data of each dimension in the operation process of the power grid are sliced in the time series to obtain multiple data slice groups. It should be noted that in the above embodiment, the time series data group is actually divided to obtain data slice groups with different time series lengths. The data slice group with a long time series contains more normal data and less suspected abnormal data, while the data with a short time series may contain more suspected abnormal data. Therefore, each data slice group actually contains suspected abnormal data, and different suspected abnormal data are divided into different data slice groups, so that specific analysis can be carried out separately.
[0043] In this embodiment, the fluctuation characteristic value of any data slice group is: ;in, For the The fluctuation characteristic value of each data slice group, For the The weight of the time series data in each dimension, For the The first The maximum value in the data segment of the dimension, For the The first The minimum value in the data segment of dimensions, For the The first The mean of the data segments in the dimension, For the The standard deviation of the time series data in dimensions, where L is the total number of dimensions.
[0044] in, To pass the The difference between the maximum and average values of the time series data in the dimension reflects the The representative value of the upward fluctuation degree of the time series data in the dimension, To pass the The difference between the minimum and average values of the time series data in the dimension reflects the The representative value of the downward fluctuation degree of the dimension data, For comprehensive consideration The difference between the maximum and average values, and the difference between the minimum and average values of the time series data of the dimension. The larger the value, the The more likely the time series data of a data slice group is abnormal data, the The more prominent the fluctuation characteristic value of the data slice group is, the better the subsequent steps can identify abnormal data; the smaller the value is, the better the abnormal data is. The first The more likely the time series data in the dimension is to be normal data, the The less prominent the fluctuation characteristic values of a data slice group are, the better it will help to identify abnormal data later.
[0045] In step S3, an isolation forest model is constructed for all data slice groups; and an anomaly score of each data slice group in the isolation forest model is calculated.
[0046] Specifically, the specific process of constructing the isolation forest model is: Each data slice group is taken as a node, and the value of the node is a fluctuation characteristic value, thereby obtaining a node set of all data slice groups; and an isolation forest model is constructed based on the node set.
[0047] The anomaly score in this embodiment is: ; For the Anomaly scores for groups of data slices, For the The fluctuation characteristic value of each data slice group, For the The mean path length of each data slice group on all isolated trees in the isolation forest, is the average path length of all isolated trees that make up the isolation forest, is the hyperbolic tangent function.
[0048] in, It is a hyperbolic tangent function. Here, the hyperbolic tangent function is used to adjust the adjustment degree of the fluctuation characteristic value when adjusting the anomaly score and the value range of the anomaly score. As an adjustment factor for the anomaly score, in the Isolation Forest model, data points with large differences in fluctuation characteristic values from other data points are relatively isolated and usually have higher anomaly scores. However, the fluctuation characteristic values of data points with large differences in fluctuation characteristic values from other data points are not necessarily large, which may cause abnormal data points with large fluctuation characteristic values to be unable to be identified. Therefore, the present invention constructs an isolation forest model based on the fluctuation characteristic value and uses it as an adjustment factor for the anomaly score. When the degree of fluctuation is large, the anomaly score of the data point is enlarged to ensure that the abnormal data point can be identified.
[0049] Furthermore, this embodiment also introduces a range eigenvalue to construct an isolation forest model; specifically, the fluctuation eigenvalue and the range eigenvalue of each data slice group constitute a two-dimensional data point to obtain a two-dimensional data point set of all data slice groups; and the isolation forest model is constructed based on the two-dimensional data point set.
[0050] The process of obtaining the anomaly score is as follows: calculate the path length of any two-dimensional data point on each isolated tree (i.e., the depth from the root node to the leaf node where the sample is located), and obtain the mean path length of any two-dimensional data point; obtain the anomaly score based on the fluctuation characteristic value and the mean path length of any two-dimensional data point. Since the construction process of the isolation forest model is an existing technology, the specific process will not be described in detail here.
[0051] It should be noted that abnormal samples are usually isolated in the data space, so their path lengths in the isolation tree are shorter.
[0052] The specific formula of the range eigenvalue is: ;in, For the The range eigenvalues corresponding to the data slice groups are For the The weight of the time series data in each dimension, For the The first The average value of the time series data in the dimension, For the The standard deviation of the time series data in one dimension. For the The first The value range of the time series data of dimensions represents the value, where: For the The first The value range of the time series data of the dimension represents the value in the The contribution of each data slice group.
[0053] The reason why the two-dimensional data points composed of the range eigenvalue and the fluctuation eigenvalue are used to construct the isolated tree model in this embodiment is that the data in each data slice group has a certain size and fluctuation, that is, the range eigenvalue represents the size of the data in the data slice group, and the fluctuation eigenvalue represents the fluctuation of the data in the data group. Therefore, neither the range eigenvalue nor the fluctuation eigenvalue can independently and accurately represent the characteristics of the data in the data slice group. In order to enable the generated isolated tree to better identify the anomaly points according to the anomaly score, the range eigenvalue and the fluctuation eigenvalue are used as a two-dimensional data point to construct the isolated tree, thereby avoiding the problem of inaccurate measurement of the anomaly of the two-dimensional data point at the corresponding moment by using a single parameter (range eigenvalue or fluctuation eigenvalue).
[0054] At the same time, when calculating the anomaly score, this embodiment only uses the fluctuation eigenvalue as the adjustment factor, and the range eigenvalue does not participate in the calculation of the anomaly score. The reason is that when the existing isolation forest algorithm is used to calculate the anomaly score, when the range eigenvalue of the data point is known, the fluctuation eigenvalue can characterize the fluctuation of the data in the data slice group, that is, it can further characterize the abnormality of the data, and avoid the situation where normal data with low fluctuation eigenvalues is identified as abnormal data. Therefore, the fluctuation eigenvalue is used to adjust the anomaly score.
[0055] In step S4, in response to the abnormal score being greater than the set value, the corresponding data slice group is abnormal data, and at this time, the power grid operation state in the corresponding time sequence of the data slice group is abnormal.
[0056] In response to the abnormal score being less than or equal to the set value, the grid operation state under the corresponding time sequence of the data slice group is a normal operation state. The set value may be 0.8 (empirical value) or may be determined according to actual conditions.
[0057] In this embodiment, the real-time data of various dimensions collected during the operation of the power grid are sliced according to the sliding window size, and the fluctuation eigenvalue and range eigenvalue corresponding to the data slice group are calculated according to the data slice group generated in real time, and the two-dimensional data points composed of the eigenvalues are input into the isolation forest. The anomaly score is calculated by introducing the fluctuation eigenvalue. When the obtained anomaly score is greater than 0.8, it is considered that the data corresponding to the current eigenvalue is abnormal data, and the current power grid is not in a normal operating state, and the relevant staff of the power grid are notified to handle it.
[0058] It should be noted that since the abnormal score is an analysis of part of the data in the time series data group of the power grid operation status within a time period, it can only reflect the status under the corresponding time series; and for the safety of power grid operation, in this embodiment, as long as the existence of abnormal data is detected, the relevant staff of the power grid will be notified for processing, and the staff will analyze whether the power grid operation status is in the alert state, emergency state and recovery state.
[0059] When performing safety monitoring of the operation status of the power grid, the solution of the present invention fully utilizes the characteristics of each dimension of the data in the operation process of the power grid through the weights of each dimension in the operation process of the power grid and the two-dimensional data points corresponding to each dimension in each time series slice, while retaining the information of the data in the time series and capturing the local change characteristics of the data, which helps to better understand the change rules and abnormal conditions of the power grid data and can accurately monitor the abnormality of the power grid data. At the same time, compared with the traditional isolation forest method, the solution of the present invention avoids the defects of the isolation forest algorithm that the increase of data dimensions leads to performance degradation and the defect of being unable to utilize the characteristics of the data in the time series, and can accurately monitor the operation status of the power grid and improve reliability.
[0060] The present invention also provides a power grid operation status safety monitoring device based on big data. Figure 3 As shown, the power grid operation status safety monitoring device includes a processor and a memory, and the memory stores computer program instructions. When the computer program instructions are executed by the processor, a power grid operation status safety monitoring method based on big data according to the above-mentioned present invention is implemented.
[0061] The power grid operation status safety monitoring device also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface. The configuration and functions of these components are known in the art and will not be described in detail here.
[0062] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0063] In the description of this specification, “plurality” means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0064] 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.
Claims
1. A method for monitoring the safety of power grid operation status based on big data, characterized in that: include: Obtaining a time series data set of the power grid operation status within the current time period; The time series data group includes time series data of at least two dimensions; Use a sliding window to slide the time series data group in time series, obtain the abnormality of the data segments of all dimensions in any sliding window, and when the abnormality is greater than the set threshold, use the position of the data of each dimension corresponding to the end of the sliding window as the slicing position, perform slicing in time series, and obtain the corresponding data slice group; Calculate the fluctuation characteristic value of any data slice group; The fluctuation characteristic value represents the fluctuation change of all dimensional data in the data slice group; Build an isolation forest model for all data slice groups; And calculate the anomaly score for each data slice group in the isolation forest model : , For the The fluctuation characteristic value of each data slice group, For the The mean path length of each data slice group on all isolated trees in the isolation forest, is the average path length of all isolated trees that make up the isolation forest, is the hyperbolic tangent function; In response to the abnormal score being greater than the set value, the corresponding data slice group is abnormal data, and at this time, the power grid operation state in the corresponding time sequence of the data slice group is abnormal.
2. According to a method for monitoring the safety of power grid operation status based on big data according to claim 1, it is characterized in that: The size of the sliding window is: ; in, is the size of the sliding window, For the The maximum value in the time series data of dimensions. For the The minimum value in the time series data of dimensions. is the sampling interval of each data point in the collected time series data of each dimension, For the The mean of the time series data in the dimension, For custom parameters, For the The weight of the time series data in each dimension, , L is the total number of dimensions, For the The coefficient of variation of each dimension is the ratio of the standard deviation of the time series data of each dimension to the mean of the corresponding time series data.
3. A method for monitoring power grid operation status based on big data according to claim 2, characterized in that: The degree of abnormality is: ; in, For sliding The abnormality of the data segments of all dimensions in the sliding window at this time, For the The weight of the time series data in each dimension, For the The coefficient of variation of the time series data in the dimension, For sliding The first time in the sliding window The standard deviation of the data segment in the dimension, For sliding The first time in the sliding window The mean of the data segments in the dimension, is the hyperbolic tangent function, and L is the total number of dimensions.
4. A method for monitoring power grid operation status based on big data according to claim 2, characterized in that: The fluctuation characteristic value is the sum of the fluctuation degrees of all dimensional data in the data slice group; wherein the fluctuation degree is the product of the weight and the difference index; The difference index is: obtaining the maximum value, the minimum value and the mean value of any dimension data in each data slice group; obtaining a first difference between the maximum value and the mean value and a second difference between the minimum value and the mean value; and taking the ratio of the sum of the square of the first difference value and the square of the second difference value to the square of the standard deviation as the difference index of the corresponding dimension.
5. The method for monitoring the safe operation of a power grid based on big data according to claim 1 is characterized in that: The dimensions include seven dimensions of current, voltage, frequency, power, load, temperature and humidity in the operation state of the power grid.
6. A method for monitoring power grid operation status based on big data according to claim 1, characterized in that: The specific process of constructing the isolation forest model is as follows: Each data slice group is taken as a node, and the value of the node is a fluctuation characteristic value, thereby obtaining a node set of all data slice groups; and an isolation forest model is constructed based on the node set.
7. The method for monitoring power grid operation status based on big data according to claim 1, characterized in that: Also includes: In response to the abnormal score being less than or equal to the set value, the power grid operation state under the corresponding time sequence of the data slice group is a normal operation state. Based on the judgment of the power grid operation state, the monitoring of the power grid operation state is realized.
8. A power grid operation status safety monitoring device based on big data, characterized in that: include: processor; A memory storing computer instructions for safe monitoring of power grid operation status based on big data. When the computer instructions are executed by the processor, the system executes a method for safe monitoring of power grid operation status based on big data according to any one of claims 1 to 7.
Citation Information
Patent Citations
A power consumption data anomaly detection model based on isolated forest algorithm
CN108985632A
Power distribution area hidden danger identification capability improvement method, device and system and storage medium
CN115760484A
Power grid data quality abnormity diagnosis method based on data analysis
CN117786587A
Micro-grid equipment state intelligent diagnosis and alarm notification system
CN118249504A
Power grid anomaly detection method based on maximum eigenvalue rate of sample covariance matrix
WO2023241326A1
Cited By
Data management method and system for distributed new energy system
CN119397407A
Substation secondary circuit fault monitoring method
CN119864946A
A method for monitoring secondary circuit faults in a substation
CN119864946B
