Power load early warning method and system based on double-graph neural network

Through dual-graph neural network technology, combined with similarity calculation and feature fusion of power consumption units, a power load prediction model is constructed, which solves the problem of insufficient accuracy and real-time performance of traditional power load early warning methods, and improves the stability and intelligent management of the power grid. level, reducing the risk of grid failure.

CN118569418APending Publication Date: 2024-08-30ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410142908.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional power load early warning methods rely on historical data and empirical models, and the prediction accuracy and real-time performance are difficult to meet actual needs, leading to an increased risk of power grid failure.

Method used

Using dual-graph neural network technology, through data processing model and load prediction model, combined with similarity calculation and feature fusion of power consumption units, graph structure generation and time series feature update are constructed to achieve accurate prediction and timely warning of power load.

Benefits of technology

It improves the operational stability and security of the power grid, reduces power grid failures caused by abnormal power loads, optimizes the execution efficiency of early warning methods, reduces computing resource consumption, and realizes real-time monitoring and early warning of power loads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569418A
    Figure CN118569418A
Patent Text Reader

Abstract

The invention relates to the technical field of power load early warning, in particular to a power load early warning method and system based on a double-graph neural network, and the early warning method comprises the steps: obtaining power load data through the power record of a power utilization unit; constructing a data processing model to carry out data processing on the obtained power load data; constructing a load prediction model based on a data processing result; carrying out load early warning according to the result of the load prediction model; according to the invention, by adopting the double-graph neural network technology, the early warning function of the power load is realized, and the operation stability and safety of the power grid are improved; the double-graph neural network is combined with the power load early warning, so that the early warning accuracy and timeliness are improved; by optimizing the training and reasoning process of the double-graph neural network, the execution efficiency of the early warning method is improved, and consumption of computing resources and storage resources is reduced; and real-time monitoring and early warning of the power load can be realized, and the intelligent management level of the power grid is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power load early warning, and in particular to a power load early warning method and system based on a dual-graph neural network. Background Art

[0002] With the rapid development of social economy, the stable operation of the power system has become an important issue concerning the national economy and people's livelihood. Power load early warning is an important part of power system operation and management. Accurate power load early warning helps power grid companies to reasonably arrange power generation, transmission and distribution resources to ensure the safe and stable operation of the power system. However, traditional power load early warning methods often rely on historical data and empirical models, and the prediction accuracy and real-time performance are difficult to meet actual needs. Summary of the invention

[0003] In view of the above-mentioned problems, the present invention is proposed.

[0004] Therefore, the present invention provides a power load early warning method based on a dual-graph neural network. By adopting the dual-graph neural network technology, the function of early warning of power load is realized, and the operating stability and safety of the power grid are improved; by combining the dual-graph neural network with the power load early warning, the accuracy and timeliness of the early warning are improved, and the power grid failures caused by abnormal power load are effectively reduced.

[0005] To solve the above technical problems, the present invention provides the following technical solutions: a power load early warning method based on a dual-graph neural network, comprising the following steps:

[0006] Obtaining power load data using power consumption unit power records;

[0007] Construct a data processing model to process the acquired power load data;

[0008] Build a load forecasting model based on data processing results;

[0009] Load warning is carried out according to the results of the load forecasting model.

[0010] As a preferred solution of the power load early warning method based on dual-graph neural network described in the present invention, wherein: the use of power records of power consumption units to obtain power load data is through the power consumption unit power recording module, recording the hourly power consumption of each power consumption unit in the past year, and registering the generated records in the database, thereby completing the collection of power load data. The specific implementation process is as follows:

[0011] Assume that each region contains n independent power consumption units, and use the power load matrix M to represent the power load of the current region in a year, and the power load matrix satisfies the formula M = R n×8760, where each row in the power load matrix M represents the power consumption of each individual power unit every hour in a year.

[0012] As a preferred solution of the power load early warning method based on dual-graph neural network described in the present invention, wherein: the construction of the data processing model to process the acquired power load data is to process the power load data by constructing the data processing model so as to be used for the subsequent construction of the load forecasting model, and the data processing model includes data similarity calculation and data feature fusion; the data similarity calculation is to calculate the overall similarity between two power consumption units in a whole year using cosine similarity, and the specific implementation formula is as follows:

[0013]

[0014] Among them, M i 、M j Respectively represent the i-th and j-th rows of the M matrix, s ij represents the similarity between the i-th and j-th units.

[0015] As a preferred solution of the power load early warning method based on dual-graph neural network described in the present invention, the feature fusion of the data is to select similar power consumption units by using the similarity of power consumption trends, and then complete the feature fusion of the data, so as to accurately describe the similarity relationship between two power consumption units, as follows:

[0016] t=[M i -M j ]

[0017]

[0018]

[0019]

[0020] Where t represents the interpolated electricity consumption of two electricity consumption units every day in a year, and the interpolated electricity consumption is a vector, V ij represents the variance of the interpolation vector of electricity consumption, and V is also an n×n matrix, G represents the mode correlation matrix between electricity consumption units, and the mode correlation matrix G element G ij The smaller the value of , the greater the correlation between the i-th power consumption unit and the j-th power consumption unit.

[0021] As a preferred solution of the power load early warning method based on dual-graph neural network described in the present invention, the feature fusion of the data is to complete the classification between samples by setting a comparison threshold α, and the comparison threshold α is calculated based on the average of the elements in the correlation matrix G, and the elements in G are compared with the comparison threshold to complete the classification of the samples. The specific comparison is as follows:

[0022] When the pattern correlation matrix G element G ij The value satisfies the formula G ij When ≤α, it means that the i-th sample and the j-th sample are classified into the same category;

[0023] When the pattern correlation matrix G element G ij The value satisfies the formula G ij >α, it means that the i-th sample and the j-th sample are not classified into the same category;

[0024] And by comparing the elements in G with the comparison threshold, the power consumption units in the area are divided into C categories.

[0025] As a preferred solution of the power load early warning method based on dual-graph neural network described in the present invention, wherein: the load prediction model constructed based on the data processing result is to construct a load prediction model for the data processing result, and then complete the prediction of the power load, and the load prediction model is constructed, including graph structure generation, reconstruction of different categories of power units and feature update after fusion; the graph structure generation is to generate graph structures for power units of the same category by using different behavior patterns of power units, and the specific implementation process is as follows:

[0026] Based on the classification results of C categories, a similar power consumption unit graph T is constructed for each type of power consumption unit, and the formula T = (V, E) is satisfied, which represents the similarity of the energy consumption behavior of the unit and the power consumption correlation. Each power consumption unit is used as a node of the graph structure, and the correlation between power consumption units is used as an edge. V represents the set of nodes, and E represents the set of edges between nodes.

[0027] For category i, category C i , then we have, T i =(V i ,E i ),

[0028] Among them, V i represents the set of nodes of the i-th category, E i represents the set of edges between nodes of the i-th category, s ij It represents the similarity of each edge.

[0029] As a preferred solution of the electric load early warning method based on dual graph neural network described in the present invention, the load early warning according to the structure of the load prediction model includes the prediction of power consumption at future moments and the load early warning according to the power consumption prediction result at future moments; the power consumption prediction at future moments is to predict the power consumption at future moments by using the time series features to the power consumption units and power consumption categories after the convolution operation of the graph neural network, and the specific implementation process is as follows:

[0030] For any power unit V i And electricity user category C i , the features are updated through the graph neural network convolution operation, and the updated V i and C i It is still a vector of 8760 dimensions, and the vector is processed using the time series association algorithm;

[0031] The time series association algorithm is composed of a three-layer neural network, including an input layer of 24 neurons, an intermediate layer of 128 neurons, an output layer of 1 neuron, and an activation function of the softmax function, and uses the power consumption in the power consumption record of the power consumption unit as the input of the neural network, and the power consumption characteristics of the power consumption unit and the power consumption category at the future moment as the output;

[0032] The load warning according to the power consumption prediction result at the future moment is to carry out the load warning according to the output result of the neural network, which is specifically implemented as follows:

[0033] Compare the power consumption forecast result p of the next hour in any area with the total power generation of the power grid to complete the load warning P N , the power consumption prediction result for the next hour is a concatenation of the power consumption feature prediction results of the power consumption unit output by the neural network and the power consumption feature prediction results of the power consumption category, and belongs to a vector with 17520 dimensions;

[0034] When the power consumption forecast result P for the next hour satisfies the formula P ≥ P N When the power consumption in the future exceeds the total power generation of the power grid, there is a risk of overload, and an early warning alarm is issued immediately, and the power demand of the power grid is reduced in time;

[0035] When the power consumption forecast result P for the next hour satisfies the formula P<P N When , it means that the power consumption at the future moment is lower than the total power generation of the power grid, there is no risk of overload, and the current operating status of the power grid is maintained.

[0036] Another object of the present invention is to provide an electric load early warning system based on a dual-graph neural network, which can improve the execution efficiency of the early warning method and reduce the consumption of computing resources and storage resources by optimizing the training and reasoning process of the dual-graph neural network; it can also realize real-time monitoring and early warning of electric load, improve the intelligent management level of the power grid, and provide strong support for the operation of power companies.

[0037] As a preferred solution of the power load early warning system based on dual-graph neural network described in the present invention, it includes: a data acquisition module, a data processing module, a dual-graph neural network early warning model module and an early warning output module; the data acquisition module is used to collect power grid related data in real time; the data processing module is used to process the collected data; the dual-graph neural network early warning model module constructs a power load prediction model based on the dual-graph neural network; the early warning output module is used to output the power load prediction results of the power grid in real time.

[0038] A computer device includes a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of a power load early warning method based on a dual-graph neural network are implemented.

[0039] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of a power load early warning method based on a dual-graph neural network are implemented.

[0040] The beneficial effects of the present invention are as follows: the present invention realizes the function of early warning of power load by adopting dual-graph neural network technology, thereby improving the operational stability and safety of the power grid; by combining the dual-graph neural network with power load early warning, the accuracy and timeliness of the early warning are improved, and power grid failures caused by abnormal power load are effectively reduced; by optimizing the training and reasoning process of the dual-graph neural network, the execution efficiency of the early warning method is improved, and the consumption of computing resources and storage resources is reduced; it can also realize real-time monitoring and early warning of power load, improve the intelligent management level of the power grid, and provide strong support for the operation of power companies. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. 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 creative work. Among them:

[0042] Figure 1The present invention is a schematic diagram of the overall method steps of a power load early warning method based on a dual-graph neural network.

[0043] Figure 2 The present invention is a schematic diagram of the overall composition structure of an electric load early warning system based on a dual-graph neural network. DETAILED DESCRIPTION

[0044] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0045] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0046] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0047] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0048] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0049] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] Example 1

[0051] Reference Figure 1 , which is the first embodiment of the present invention, provides a power load early warning method based on a dual-graph neural network, comprising the following steps:

[0052] S1: Obtain power load data using power consumption unit power records.

[0053] Specifically, the method of obtaining power load data by using power records of power consumption units is to record the hourly power consumption of each power consumption unit in the past year through the power consumption unit power recording module, and register the generated records into the database, thereby completing the collection of power load data. The specific implementation process is as follows:

[0054] Assume that each region contains n independent power consumption units, and use the power load matrix M to represent the power load of the current region in a year, and the power load matrix satisfies the formula M = R n×8760 , where each row in the power load matrix M represents the power consumption of each individual power unit every hour in a year.

[0055] S2: Construct a data processing model to process the acquired power load data.

[0056] Specifically, the data processing model is constructed to process the acquired power load data by constructing a data processing model to process the power load data for use in the subsequent construction of a load prediction model. The data processing model includes data similarity calculation and data feature fusion.

[0057] Furthermore, the data similarity calculation uses cosine similarity to calculate the overall similarity between two power consumption units in a whole year. The specific implementation formula is as follows:

[0058]

[0059] Among them, M i 、M j Respectively represent the i-th and j-th rows of the M matrix, s ij Represents the similarity between the i-th and j-th units;

[0060] It should be noted that according to the calculation formula of cosine similarity, the similarity between all power consumption units can be calculated, and the calculated similarity satisfies the formula S∈R n×n , which in turn represents the overall similarity between the two power consumption units.

[0061] Furthermore, the feature fusion of the data uses the similarity of power consumption trends to select similar power consumption units, thereby completing the feature fusion of the data, so as to accurately describe the similarity relationship between two power consumption units, as follows:

[0062] t=[M i -M j ]

[0063]

[0064]

[0065]

[0066] Where t represents the interpolated electricity consumption of two electricity consumption units every day in a year, and the interpolated electricity consumption is a vector, V ij represents the variance of the interpolation vector of electricity consumption, and V is also an n×n matrix, G represents the mode correlation matrix between electricity consumption units, and the mode correlation matrix G element G ij The smaller the value of is, the greater the correlation between the i-th power consumption unit and the j-th power consumption unit is;

[0067] It should be noted that in order to accurately complete the feature fusion of the data and then complete the classification between samples, by setting the comparison threshold α, and the comparison threshold α is calculated based on the average of the elements in the correlation matrix G, by comparing the elements in G with the comparison threshold, the classification of the samples is completed. The specific comparison is as follows:

[0068] When the pattern correlation matrix G element G ij The value satisfies the formula G ij When ≤α, it means that the i-th sample and the j-th sample are classified into the same category;

[0069] When the pattern correlation matrix G element G ij The value satisfies the formula G ij >α, it means that the i-th sample and the j-th sample are not classified into the same category;

[0070] And by comparing the elements in G with the comparison threshold, the power consumption units in the area are divided into C categories.

[0071] S3: Build a load forecasting model based on the data processing results.

[0072] Specifically, the load prediction model is constructed based on the data processing result, and the load prediction model is constructed based on the data processing result, so as to complete the prediction of the power load. The load prediction model is constructed including graph structure generation, reconstruction of different types of power consumption units and feature update after fusion.

[0073] Furthermore, the graph structure generation is to generate the graph structure for the same category of power consumption units by using different behavior patterns of the power consumption units. The specific implementation process is as follows:

[0074] Based on the classification results of C categories, a similar power consumption unit graph T is constructed for each type of power consumption unit, and the formula T = (V, E) is satisfied, which represents the similarity of the energy consumption behavior of the unit and the power consumption correlation. Each power consumption unit is used as a node of the graph structure, and the correlation between power consumption units is used as an edge. V represents the set of nodes, and E represents the set of edges between nodes.

[0075] For category i, category C i , then we have, T i =(V i ,E i ),

[0076] Among them, V i represents the set of nodes of the i-th category, E i represents the set of edges between nodes of the i-th category, s ij It represents the similarity of each edge.

[0077] Furthermore, the reconstruction of the different types of power consumption units is to treat all power consumption units of each class as nodes of a graph, and to reconstruct all types of power consumption units into a graph. The specific implementation process is as follows:

[0078] For all power consumption units in each category, the characteristic vector N is obtained by taking the average of the power consumption of each power consumption unit in each hour, and the formula N=R is satisfied. n×8760 , represents the power consumption unit of each category, and through the Euclidean distance between the feature vectors of each category, the sparse graph is constructed using the knn algorithm to complete the reconstruction of power consumption units of different categories.

[0079] Furthermore, the fused feature update is to update the power consumption behavior of each power consumption unit by aggregating the power consumption features. The specific implementation process is as follows:

[0080] For intra-class graphs and inter-class graphs, we make good use of graph convolution operations to update the features of graph nodes, and apply the graph convolution network to the nodes of the graph and the first-order domain of the current graph. We extract the spatial features of each node through feature fusion, and build a multi-layer model by superimposing multiple graph neural network layers. The specific implementation formula is as follows:

[0081] f(X,A)=σ(A*Relu(AXW0)W1)

[0082] Among them, X represents the attribute of the node on the graph, which is the power consumption of each power unit on a certain day, A represents the adjacency matrix, W0 and W1 represent the weight matrices to be trained in the first and second layers respectively, and σ and Relu represent activation functions respectively.

[0083] S4: Provide load warning based on the results of the load forecasting model.

[0084] Specifically, the load early warning according to the structure of the load prediction model includes predicting the power consumption at a future time and performing the load early warning according to the power consumption prediction result at a future time.

[0085] Furthermore, the power consumption prediction at the future moment is to predict the power consumption at the future moment by using the time series features to predict the power consumption units and power consumption categories after the graph neural network convolution operation. The specific implementation process is as follows:

[0086] For any power unit V i And electricity user category C i , the features are updated through the graph neural network convolution operation, and the updated V i and C i It is still a vector of 8760 dimensions, and the vector is processed using the time series association algorithm;

[0087] The time series association algorithm is composed of a three-layer neural network, including an input layer of 24 neurons, an intermediate layer of 128 neurons, an output layer of 1 neuron and an activation function of the softmax function. The power consumption in the power consumption record of the power consumption unit is used as the input of the neural network, and the power consumption characteristics of the power consumption unit and the power consumption category at future times are used as output.

[0088] Furthermore, the load warning according to the power consumption prediction result at the future moment is to perform the load warning according to the output result of the neural network, which is specifically implemented as follows:

[0089] Compare the power consumption forecast result p of the next hour in any area with the total power generation of the power grid to complete the load warning P N, the power consumption prediction result for the next hour is a concatenation of the power consumption feature prediction results of the power consumption unit output by the neural network and the power consumption feature prediction results of the power consumption category, and belongs to a vector with 17520 dimensions;

[0090] When the power consumption forecast result P for the next hour satisfies the formula P ≥ P N When the power consumption in the future exceeds the total power generation of the power grid, there is a risk of overload, and an early warning alarm is issued immediately, and the power demand of the power grid is reduced in time;

[0091] When the power consumption forecast result P for the next hour satisfies the formula P<P N When , it means that the power consumption at the future moment is lower than the total power generation of the power grid, there is no risk of overload, and the current operating status of the power grid is maintained.

[0092] Example 2

[0093] Reference Figure 2 , which is the second embodiment of the present invention, provides a power load early warning system based on a dual-graph neural network, including a data acquisition module, a data processing module, a dual-graph neural network early warning model module and an early warning output module;

[0094] Specifically, the data acquisition module is used to collect power grid related data in real time; the data processing module is used to process the collected data; the dual-graph neural network early warning model module constructs a power load prediction model based on the dual-graph neural network; the early warning output module is used to output the power load prediction results of the power grid in real time.

[0095] Furthermore, the data acquisition module is the starting point of the entire system and is responsible for real-time collection of power grid-related data. This module interacts with power grid equipment to obtain real-time data such as power load, power consumption, electricity price, and external influencing factors such as meteorology and economy. After preliminary processing of the collected data, the high-quality data is input into the subsequent data processing module. The data acquisition module also has a data anomaly detection function, which can detect abnormal data in a timely manner and mark it, providing a basis for subsequent data processing.

[0096] The data processing module is responsible for preprocessing the collected raw data, including data cleaning, format conversion, feature extraction and other operations; the module first cleans and repairs abnormal data to remove outliers and missing values; then, the data is formatted and unified to facilitate subsequent processing; next, through feature extraction technology, features useful for power load warning are extracted from the raw data. Finally, the data is normalized to convert data of different dimensions into a unified scale to improve the generalization ability of the model; after being processed by the data processing module, the raw data is converted into high-quality data suitable for input into the dual-graph neural network warning model;

[0097] The dual-graph neural network early warning model module is the core part of the entire early warning system, and constructs a power load forecasting model based on the dual-graph neural network. The module first inputs the processed data into static and dynamic graphs, respectively reflecting the long-term trend and structural characteristics of the power load as well as the short-term fluctuations and changing trends; then, through the training and learning process, the dual-graph neural network model can fully explore the hidden rules in the power grid operation data and accurately predict the power load; during the training process, the module uses the back propagation algorithm to optimize the network parameters to improve the accuracy and stability of the early warning. At the same time, the module also has a dynamic learning rate adjustment function, which adaptively adjusts the learning rate according to the error changes during the training process, accelerates network convergence and improves early warning performance; after the training is completed, the dual-graph neural network early warning model can predict future power loads and provide a basis for subsequent early warning output;

[0098] The early warning output module outputs the future power load in real time according to the prediction results of the dual-graph neural network. The module first compares the prediction results with the preset threshold value, and determines whether to issue an early warning according to the size of the prediction error. The early warning level is divided according to the size of the load prediction error. The larger the error, the higher the early warning level; at the same time, the module also provides a visual interface for users to view early warning information and historical data; users can adjust parameters and configure models through the interface to improve the accuracy and stability of early warnings; in addition, the module also has real-time data monitoring and dynamic visualization display functions, which can display power load data and early warning status in real time, helping users to understand the system operation status in a timely manner and make corresponding decisions; the early warning output module also has a push function, which can push early warning information to relevant personnel in a timely manner to ensure the effectiveness and timeliness of early warnings.

[0099] Furthermore, if the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0100] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0101] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0102] Additionally, in order to provide a concise description of exemplary embodiments, all features of an actual embodiment (ie, those features that are not relevant to the best mode presently contemplated for carrying out the invention or those that are not relevant to implementing the invention) may not be described.

[0103] It will be appreciated that in the development of any actual implementation, as in any engineering or design project, numerous implementation-specific decisions may be made. Such a development effort may be complex and time-consuming, but will be a routine task of design, fabrication, and production for those of ordinary skill having the benefit of this disclosure without undue experimentation.

[0104] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A power load early warning method based on a dual-graph neural network, characterized in that: The following steps are included: Obtaining power load data using power consumption unit power records; Construct a data processing model to process the acquired power load data; Build a load forecasting model based on data processing results; Load warning is carried out according to the results of the load forecasting model.

2. The power load early warning method based on dual graph neural network according to claim 1, characterized in that: The method of obtaining power load data by using power records of power consumption units is to record the hourly power consumption of each power consumption unit in the past year through the power consumption unit power recording module, and register the generated records into the database, thereby completing the collection of power load data. The specific implementation process is as follows: Assume that each region contains n independent power consumption units, and use the power load matrix M to represent the power load of the current region in a year, and the power load matrix satisfies the formula M = R n×8760 , where each row in the power load matrix M represents the power consumption of each individual power unit every hour in a year.

3. The power load early warning method based on dual graph neural network according to claim 2, characterized in that: The data processing model is constructed to process the acquired power load data by constructing a data processing model to process the power load data for use in the subsequent construction of a load forecasting model. The data processing model includes data similarity calculation and data feature fusion; the data similarity calculation is to calculate the overall similarity between two power consumption units in a whole year using cosine similarity. The specific implementation formula is as follows: Among them, M i 、M j Respectively represent the i-th and j-th rows of the M matrix, s ij represents the similarity between the i-th and j-th units.

4. The power load early warning method based on dual graph neural network according to claim 3, characterized in that: The feature fusion of the data is to select similar power consumption units by using the similarity of power consumption trends, and then complete the feature fusion of the data, so as to accurately describe the similarity relationship between two power consumption units, as follows: t=[M i -M j ] Where t represents the interpolated electricity consumption of two electricity consumption units every day in a year, and the interpolated electricity consumption is a vector, V ij represents the variance of the interpolation vector of electricity consumption, and V is also an n×n matrix, G represents the mode correlation matrix between electricity consumption units, and the mode correlation matrix G element G ij The smaller the value of , the greater the correlation between the i-th power consumption unit and the j-th power consumption unit.

5. The power load early warning method based on dual graph neural network according to claim 4, characterized in that: The feature fusion of the data is to complete the classification between samples by setting a comparison threshold α, which is calculated based on the average of the elements in the correlation matrix G. The classification of the samples is completed by comparing the elements in G with the comparison threshold. The specific comparison is as follows: When the pattern correlation matrix G element G ij The value satisfies the formula G ij When ≤α, it means that the i-th sample and the j-th sample are classified into the same category; When the pattern correlation matrix G element G ij The value satisfies the formula G ij >α, it means that the i-th sample and the j-th sample are not classified into the same category; And by comparing the elements in G with the comparison threshold, the power consumption units in the area are divided into C categories.

6. The power load early warning method based on dual graph neural network according to claim 5, characterized in that: The construction of the load prediction model based on the data processing results is to construct a load prediction model based on the data processing results, and then complete the prediction of the power load. The construction of the load prediction model includes graph structure generation, reconstruction of different types of power consumption units, and feature update after fusion; the graph structure generation is to use different behavior patterns of power consumption units to generate graph structures for power consumption units of the same category. The specific implementation process is as follows: Based on the classification results of C categories, a similar power consumption unit graph T is constructed for each type of power consumption unit, and the formula T = (V, E) is satisfied, which represents the similarity of the energy consumption behavior of the unit and the power consumption correlation. Each power consumption unit is used as a node of the graph structure, and the correlation between power consumption units is used as an edge. V represents the set of nodes, and E represents the set of edges between nodes. For category i, category C i , then we have, T i =(V i ,E i ), Among them, V i represents the set of nodes of the i-th category, E i represents the set of edges between nodes of the ith category, s ij It represents the similarity of each edge.

7. The power load early warning method based on dual graph neural network according to claim 6, characterized in that: The load warning according to the structure of the load forecasting model includes the power consumption forecast at the future moment and the load warning according to the power consumption forecast result at the future moment; the power consumption forecast at the future moment is to forecast the power consumption at the future moment by the power consumption unit and the power consumption category after the convolution operation of the graph neural network through the time series feature, and the specific implementation process is as follows: For any power unit V i And electricity user category C i , the features are updated through the graph neural network convolution operation, and the updated V i and C i It is still a vector of 8760 dimensions, and the vector is processed using the time series association algorithm; The time series association algorithm is composed of a three-layer neural network, including an input layer of 24 neurons, an intermediate layer of 128 neurons, an output layer of 1 neuron, and an activation function of the softmax function, and uses the power consumption in the power consumption record of the power consumption unit as the input of the neural network, and the power consumption characteristics of the power consumption unit and the power consumption category at the future moment as the output; The load warning according to the power consumption prediction result at the future moment is to carry out the load warning according to the output result of the neural network, which is specifically implemented as follows: Compare the power consumption forecast result p of the next hour in any area with the total power generation of the power grid to complete the load warning P N , the power consumption prediction result for the next hour is a concatenation of the power consumption feature prediction results of the power consumption unit output by the neural network and the power consumption feature prediction results of the power consumption category, and belongs to a vector with 17520 dimensions; When the power consumption forecast result P for the next hour satisfies the formula P ≥ P N When the power consumption in the future exceeds the total power generation of the power grid, there is a risk of overload, and an early warning alarm is issued immediately, and the power demand of the power grid is reduced in time; When the power consumption forecast result P for the next hour satisfies the formula P<P N When , it means that the power consumption at the future moment is lower than the total power generation of the power grid, there is no risk of overload, and the current operating status of the power grid is maintained.

8. A system using the power load early warning method based on a dual-graph neural network as claimed in any one of claims 1 to 7, characterized in that: Including data acquisition module, data processing module, dual-graph neural network early warning model module and early warning output module; The data acquisition module is used to collect power grid related data in real time; The data processing module is used to process the collected data; The dual-graph neural network early warning model module constructs a power load prediction model based on the dual-graph neural network; The early warning output module is used to output the power load forecasting result of the power grid in real time.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Charging load data analysis method and system based on actual scheduling service

    CN120744563A

  • A charging load data analysis method and system based on actual dispatching services

    CN120744563B