Energy management method applied to cloud edge collaboration and related equipment
Through the cloud-edge collaborative energy management method, the collaborative work of cloud data centers and edge nodes is used to conduct power prediction and comparison, and determine management nodes, which solves the problems of low adaptability and low efficiency of traditional energy management methods, and achieves Efficient management of new energy power generation.
Patent Information
- Application Number
- CN202410696083.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-13
AI Technical Summary
Traditional energy management methods have problems of low adaptability and low management efficiency, and cannot effectively adapt to the instability of new energy power generation and changes in power supply conditions.
Adopting the energy management method of cloud-edge collaboration, through the collaborative work of cloud data center and edge nodes, it receives estimated power demand data, collects current power supply data, performs power prediction and comparison, determines management nodes to optimize energy management, and uses timing prediction The model and regression prediction model are used for power prediction, and the model parameters are optimized through the PSO particle swarm algorithm.
It improves the collaboration efficiency of energy management, avoids power grid paralysis caused by insufficient power supply, meets the needs of new energy management with large fluctuations in energy supply, and improves management efficiency and adaptability.
Smart Images

Figure CN118644019A
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy management technology for artificial intelligence, and in particular to an energy management method and related equipment applied to cloud-edge collaboration. Background Art
[0002] With the rapid development of big data, cloud platforms, the Internet of Things and other related technologies, the construction of new energy monitoring and big data centers can improve the efficiency of new energy power generation companies. In the field of new energy, wind power, photovoltaic power generation, geothermal power generation and other models are also gradually being valued.
[0003] For the power management of new energy, currently the energy management method is usually implemented by a fixed power management center platform.
[0004] However, the applicant found that traditional energy management methods are generally not intelligent. Specifically, due to the instability of renewable energy power generation, the power output may change greatly at different stages. Therefore, in the above-mentioned integrated management system, the power management center platform needs to manage all renewable energy power supplies in all power supply grids under various operating conditions when performing energy management. Since the traditional management model is relatively single and the management efficiency is low, it is not possible to adapt well to different power supply conditions. It can be seen that the traditional energy management method has the problems of low adaptability and low management efficiency. Summary of the invention
[0005] The purpose of the embodiments of the present application is to propose an energy management method, device, computer equipment and storage medium for cloud-edge collaboration to solve the problems of low adaptability and low management efficiency of traditional energy management methods.
[0006] In order to solve the above technical problems, the embodiment of the present application provides an energy management method applied to cloud-edge collaboration, which adopts the following technical solutions:
[0007] The method is applied to a cloud-edge collaborative energy management system, wherein the system includes N cloud data centers and M edge nodes, each of the edge nodes is communicatively connected to at least one of the cloud data centers, and each of the edge nodes is used to monitor power supply data of at least one regional power supply grid, and the method includes the following steps:
[0008] Receiving estimated power demand data carrying a target edge node identifier sent by a target cloud data center;
[0009] Collecting current power supply data of the target area power supply grid corresponding to the target edge node identifier;
[0010] Performing a power forecasting operation according to the current power supply data to obtain forecasted power supply data;
[0011] Comparing the estimated power demand data and the predicted power supply data to obtain a comparison result;
[0012] A management node for performing energy management on the target area power supply grid is determined according to the comparison result, wherein the management node is the target edge node corresponding to the target edge node identifier or the target cloud data center.
[0013] Furthermore, the step of performing a power forecasting operation according to the current power supply data to obtain the forecasted power supply data specifically includes the following steps:
[0014] Reading a system database, and acquiring historical power supply data corresponding to the target area power supply grid in the system database;
[0015] Building a time series prediction model based on the historical power supply data;
[0016] The current power supply data is input into the time series prediction model for prediction operation to obtain the predicted power supply data.
[0017] Furthermore, the step of performing a power forecasting operation according to the current power supply data to obtain the forecasted power supply data specifically includes the following steps:
[0018] Reading a system database, and obtaining historical power supply data and a set of influencing factors corresponding to the target area power supply grid in the system database;
[0019] Screening the influencing factor set according to the correlation coefficient method and the historical power supply data to obtain key influencing factors;
[0020] Acquire the power supply value corresponding to the key influencing data in the historical power supply data to obtain a training data set;
[0021] Inputting the training data set into the initial regression prediction model to perform a model training operation until all the training data sets have completed the model training operation, thereby obtaining a trained power prediction model;
[0022] The current power supply data is input into the power prediction model to perform power prediction operation to obtain the predicted power supply data.
[0023] Furthermore, the step of obtaining the power supply value corresponding to the key influencing data in the historical power supply data to obtain a training data set specifically includes the following steps:
[0024] Sequentially obtaining elements in the key influencing data as target factors;
[0025] Acquire the power change value and power change time corresponding to the target factor from the historical power supply data, and construct triplet data according to the power change value and power change time, wherein the triplet data includes the power change value before power change data, power change data after power change and the power change time;
[0026] Obtain all triplet data corresponding to the target factor in the historical power supply data to obtain a JSON array, wherein each triplet data is an element in the JSON array;
[0027] The JSON array of all elements in the key influencing data is used as the training data set.
[0028] Furthermore, before the step of inputting the training data set into the initial regression prediction model for model training operation until all the training data sets complete the model training operation to obtain the trained power prediction model, the following steps are also included:
[0029] The PSO particle swarm algorithm is used to search for the optimal solution of the penalty factor and kernel function parameters of the pre-built regression prediction model to obtain the optimal solution search result;
[0030] The optimal solution search result is set as a model parameter in the pre-built regression prediction model to obtain a regression prediction model improved based on a particle swarm algorithm;
[0031] The step of inputting the training data set into the initial regression prediction model for model training operation until all the training data sets complete the model training operation to obtain a trained power prediction model specifically includes the following steps:
[0032] Inputting the JSON array of all elements in the key influencing factors into the regression prediction model improved based on the particle algorithm;
[0033] Function fitting is performed on the JSON array of all elements in the key influencing factors to obtain a fitting function for characterizing the comprehensive relationship between the power change time and all the key influencing factors.
[0034] Furthermore, it is characterized in that the correlation coefficient method is expressed as:
[0035]
[0036] Among them, x i represents the change in the amount of electricity in the target area power grid during the i-th cycle, represents the average value of the power consumption change of the target area power grid in the historical power consumption data, y irepresents the time interval of the i-th change, Indicates the average change time interval corresponding to the target area power supply grid in the historical power consumption data.
[0037] Furthermore, the comparison result includes a normal state and an abnormal state, and the step of determining the management node for energy management of the power supply grid in the target area according to the comparison result specifically includes the following steps:
[0038] Determine the management node of the target area power supply grid whose comparison result is normal as the target edge node;
[0039] The management node of the power supply grid in the target area whose comparison result is abnormal is determined as the target cloud data center.
[0040] In order to solve the above technical problems, the embodiment of the present application further provides an energy management device applied to cloud-edge collaboration, which adopts the following technical solution:
[0041] The device is applied to a cloud-edge collaborative energy management system, wherein the system includes N cloud data centers and M edge nodes, each of the edge nodes is communicatively connected to at least one of the cloud data centers, and each of the edge nodes is used to monitor power supply data of at least one regional power supply grid, and the device includes:
[0042] A demand data receiving module, used to receive the estimated power demand data carrying the target edge node identifier sent by the target cloud data center;
[0043] A power supply data collection module, used to collect current power supply data of the target area power supply grid corresponding to the target edge node identifier;
[0044] A supply data prediction module, used to perform power prediction operations according to the current power supply data to obtain predicted power supply data;
[0045] A comparison module, used for comparing the estimated power demand data and the predicted power supply data to obtain a comparison result;
[0046] A node confirmation module is used to determine the management node for energy management of the power supply grid in the target area according to the comparison result, wherein the management node is the target edge node corresponding to the target edge node identifier or the target cloud data center.
[0047] Furthermore, the supply data prediction module includes:
[0048] A historical power supply data acquisition submodule, used to read a system database and acquire historical power supply data corresponding to the power supply grid in the target area from the system database;
[0049] A time series prediction model building submodule, used to build a time series prediction model based on the historical power supply data;
[0050] The prediction operation submodule is used to input the current power supply data into the time series prediction model for prediction operation to obtain the predicted power supply data.
[0051] Furthermore, the supply data prediction module also includes:
[0052] An influencing factor acquisition submodule, used to read a system database and acquire historical power supply data and an influencing factor set corresponding to the target area power supply grid in the system database;
[0053] A screening submodule, used for screening the influencing factor set according to the correlation coefficient method and the historical power supply data to obtain key influencing factors;
[0054] A training data set acquisition submodule is used to acquire the power supply value corresponding to the key influencing data in the historical power supply data to obtain a training data set;
[0055] A model training submodule, used for inputting the training data set into the initial regression prediction model to perform a model training operation, until all the training data sets have completed the model training operation, thereby obtaining a trained power prediction model;
[0056] The power prediction submodule is used to input the current power supply data into the power prediction model to perform power prediction operations to obtain the predicted power supply data.
[0057] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0058] It includes a memory and a processor, the memory stores computer-readable instructions, and the processor implements the steps of the energy management method applied to cloud-edge collaboration as described above when executing the computer-readable instructions.
[0059] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0060] The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the energy management method applied to cloud-edge collaboration as described above are implemented.
[0061] The present application provides an energy management method applied to cloud-edge collaboration, and the method is applied to an energy management system for cloud-edge collaboration, wherein the system includes N cloud data centers and M edge nodes, each of the edge nodes is communicatively connected to at least one of the cloud data centers, and each of the edge nodes is used to monitor power supply data of at least one regional power supply grid. The method includes the following steps: receiving estimated power demand data carrying a target edge node identifier sent by a target cloud data center; collecting current power supply data of a target regional power supply grid corresponding to the target edge node identifier; performing power forecasting operations based on the current power supply data to obtain predicted power supply data; performing comparison operations on the estimated power demand data and the predicted power supply data to obtain a comparison result; determining a management node for energy management of the target regional power supply grid based on the comparison result, wherein the management node is the target edge node corresponding to the target edge node identifier or the target cloud data center. Compared with the prior art, the present application obtains the power supply data of the corresponding regional power supply grid through each edge node, and then uses the cloud data center to send the estimated power demand data of the corresponding regional power supply grid to each edge node, and determines whether the target edge node is suitable as the management node of the target regional power supply grid according to the supply and demand relationship between the power supply data and the predicted power demand data through each edge node. When the target edge node is not suitable as the management node of the target regional power supply grid, the management node is replaced with a cloud data center with higher authority and stronger management capabilities, thereby improving the collaborative efficiency of the energy management system based on cloud-edge collaboration, effectively avoiding the situation where insufficient power supply leads to power grid paralysis, and meeting the energy management needs of new energy sources with large energy supply fluctuations. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0063] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0064] Figure 2 It is a flowchart of the implementation of the energy management method applied to cloud-edge collaboration provided in Example 1 of the present application;
[0065] Figure 3 yes Figure 2 A flowchart of a specific implementation of step S203;
[0066] Figure 4 yes Figure 2 A flowchart of another specific implementation of step S203;
[0067] Figure 5 yes Figure 4 A flowchart of a specific implementation of step S403;
[0068] Figure 6 yes Figure 4 A flowchart of a specific implementation of step S404;
[0069] Figure 7 It is a structural diagram of an energy management device applied to cloud-edge collaboration provided in Example 2 of the present application;
[0070] Figure 8 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0072] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0073] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0074] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0075] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0076] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0077] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0078] It should be noted that the energy management method applied to cloud-edge collaboration provided in the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the energy management device applied to cloud-edge collaboration is generally set in the server / terminal device.
[0079] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0080] Continue to refer Figure 2 , showing a flow chart of an embodiment of an energy management method applied to cloud-edge collaboration according to the present application. The energy management method applied to cloud-edge collaboration includes: step S201, step S202, step S203, step S204, step S205 and step S206.
[0081] In step S201, estimated power demand data carrying a target edge node identifier sent by a target cloud data center is received.
[0082] In an embodiment of the present application, the energy management method based on cloud-edge collaboration provided by the present application can be applied to an energy management system based on cloud-edge collaboration, the system includes N cloud data centers and M edge nodes, each edge node is communicatively connected to at least one cloud data center, and each edge node is used to process power supply data of at least one regional power supply grid, wherein each edge node obtains the power supply data of the corresponding regional power supply grid, the power supply data includes the estimated power supply of each power supply source in the regional power supply grid within a preset period, and the power supply source includes at least one of a wind power generation source or a photovoltaic power generation source.
[0083] In an embodiment of the present application, the cloud data center sends predicted power demand data of the corresponding regional power supply grid to each edge node, the predicted power demand data including the estimated power consumption of each power-consuming device in the regional power supply grid within a preset period, the cloud data center is one of the cloud data centers, the cloud data center is communicatively connected to other cloud data centers, and the cloud data center is communicatively connected to each edge node.
[0084] In an embodiment of the present application, the cloud data center can obtain historical power consumption data of the regional power supply network corresponding to each edge node within a preset historical period, and then determine the historical power supply corresponding to the preset period based on the historical power consumption data, so as to determine the expected power consumption based on the historical power supply.
[0085] In an embodiment of the present application, the target edge node identifier is intended to identify the edge node of the object to be analyzed for confirmation by the target cloud data center whether collaboration is required. The target edge node identifier can be set based on a digital number, as an example, for example: 001, 002, etc.; the target edge node identifier can also be set based on a location name, as an example, for example: bei jing, shenzhen, xi amen, etc. The target edge node identifier can also be set based on a digital number and a location name, as an example, for example: beijing001, beijing002, shezhen003, etc. It should be understood that the examples of the target edge node identifier here are only for ease of understanding and are not used to limit the present application.
[0086] In an embodiment of the present application, the cloud data center may embed the target edge node identifier into the communication protocol, thereby implementing an operation of obtaining the target edge node identifier.
[0087] In the embodiment of the present application, the estimated power demand data refers to the power value that the target edge node is planned to require.
[0088] In step S202, current power supply data of the target area power supply grid corresponding to the target edge node identifier is collected.
[0089] In step S203, a power prediction operation is performed based on the current power supply data to obtain predicted power supply data.
[0090] In an embodiment of the present application, the predicted power supply data can be predicted by constructing a time series prediction model or by training a regression prediction model. It should be understood that the examples of predicting power supply data here are only for the convenience of understanding and are not used to limit the present application.
[0091] In step S204, a comparison operation is performed on the estimated power demand data and the predicted power supply data to obtain a comparison result.
[0092] In the embodiment of the present application, the comparison result is mainly used to indicate whether the power supply status of the power supply grid in the target area is normal. Specifically, if the ratio of the estimated power demand data to the predicted power supply data is not within the preset threshold range, it means that the power supply grid in the target area is in an abnormal state. If the ratio of the estimated power demand data to the predicted power supply data is within the preset threshold range, it means that the power supply grid in the target area is in a normal state.
[0093] In step S205, a management node for performing energy management on the target area power grid is determined according to the comparison result, wherein the management node is a target edge node or a target cloud data center corresponding to the target edge node identifier.
[0094] In an embodiment of the present application, when the comparison result indicates a normal state, it means that the management mode in which the power supply network in the target area is managed only by the target edge node does not require the assistance of the cloud data center, and the current management mode can be maintained; when the comparison result indicates an abnormal state, it means that the management mode in which the power supply network in the target area is managed only by the target edge node requires the assistance of the cloud data center, and the management node of the power supply network in the target area needs to be changed to the cloud data center for assistance.
[0095] In an embodiment of the present application, a method for energy management applied to cloud-edge collaboration is provided, and the method is applied to an energy management system for cloud-edge collaboration, wherein the system includes N cloud data centers and M edge nodes, each edge node is communicatively connected to at least one cloud data center, and each edge node is used to monitor power supply data of at least one regional power supply grid, and the method includes the following steps: receiving estimated power demand data carrying a target edge node identifier sent by a target cloud data center; collecting current power supply data of a target regional power supply grid corresponding to the target edge node identifier; performing power prediction operations based on the current power supply data to obtain predicted power supply data; performing comparison operations on the estimated power demand data and the predicted power supply data to obtain a comparison result; determining a management node for energy management of the target regional power supply grid based on the comparison result, wherein the management node is a target edge node or a target cloud data center corresponding to the target edge node identifier. Compared with the prior art, the present application obtains the power supply data of the corresponding regional power supply grid through each edge node, and then uses the cloud data center to send the estimated power demand data of the corresponding regional power supply grid to each edge node, and determines whether the target edge node is suitable as the management node of the target regional power supply grid according to the supply and demand relationship between the power supply data and the predicted power demand data through each edge node. When the target edge node is not suitable as the management node of the target regional power supply grid, the management node is replaced with a cloud data center with higher authority and stronger management capabilities, thereby improving the collaborative efficiency of the energy management system based on cloud-edge collaboration, effectively avoiding the situation where insufficient power supply leads to power grid paralysis, and meeting the energy management needs of new energy sources with large energy supply fluctuations.
[0096] Continue reading Figure 3 , showing Figure 2 A flowchart of a specific implementation of step S203 is shown in FIG. 1 . For ease of explanation, only the part related to the present application is shown.
[0097] In some optional implementations of this embodiment, the above step S203 specifically includes the following steps:
[0098] In step S301, a system database is read, and historical power supply data corresponding to the power supply grid in the target area is obtained from the system database.
[0099] In step S302, a time series prediction model is constructed based on historical power supply data.
[0100] In an embodiment of the present application, a time series prediction model is a model for prediction based on time series data. Time series data is a data set arranged in chronological order and is usually sampled at continuous time intervals. The goal of the time series prediction model is to predict future values by analyzing the models and trends in the time series data.
[0101] In the embodiment of the present application, the time series prediction model can be an AR model, an MA model, an ARMA model or an ARIMA model, etc. The AR model (autoregressive model is a model that uses historical values to predict future values. The MA model (moving average model) is a model that uses the weighted sum of error terms to predict future values. The ARMA model (autoregressive moving average model) is a combination model of the AR model and the MA model. The ARIMA model (differential autoregressive moving average model) is an extension of the ARMA model and can be used to process non-stationary time series data.
[0102] In an embodiment of the present application, after determining the model of the above-mentioned time series prediction model, the model parameters can be optimized according to historical power supply data and methods such as maximum likelihood estimation or least squares method to complete the above-mentioned model building operation.
[0103] In step S303, the current power supply data is input into the time series prediction model for prediction operation to obtain predicted power supply data.
[0104] In the embodiment of the present application, the time series prediction model adopts the time series prediction method. The time series prediction method is actually a regression prediction method and belongs to quantitative prediction. Its basic principle is: on the one hand, it recognizes the continuity of the development of things, uses past time series data for statistical analysis, and infers the development trend of things; on the other hand, it fully takes into account the randomness caused by accidental factors. In order to eliminate the impact of random fluctuations, it uses historical data for statistical analysis, and properly processes the data to make trend predictions.
[0105] Continue reading Figure 4 , showing Figure 2 A flowchart of another specific implementation of step S203 is shown, for the sake of convenience of explanation, only the part related to the present application is shown.
[0106] In some optional implementations of this embodiment, step S203 may further include the following steps:
[0107] In step S401, a system database is read, and historical power supply data and a set of influencing factors corresponding to the target area power supply grid are obtained in the system database;
[0108] In step S402, a set of influencing factors is screened according to a correlation coefficient method and historical power supply data to obtain key influencing factors;
[0109] In step S403, the power supply value corresponding to the key influencing data is obtained from the historical power supply data to obtain a training data set;
[0110] In step S404, the training data set is input into the initial regression prediction model for model training operation, until all training data sets have completed the model training operation, and a trained power prediction model is obtained;
[0111] In step S405, the current power supply data is input into the power prediction model to perform power prediction operations to obtain predicted power supply data.
[0112] In the embodiment of the present application, the influencing factor data includes economic dimension data and meteorological dimension data; economic dimension data, such as Purchasing Managers' Index (PMI) and Producer Price Index (PPI); Purchasing Managers' Index (PMI) is an index summarized by the survey of the corresponding order of purchasing managers, which is weighted by the new order index, production index, employee index, supplier distribution index and main raw material inventory index, and is one of the leading indexes for monitoring macroeconomic trends. Since the manufacturing industry has the characteristics of large scale and high energy consumption in electricity consumption, its production fluctuations will affect the trend of electricity consumption in the whole society to a large extent, so PMI can predict the change of electricity consumption growth in the whole society to a certain extent. The industrial producer price index (PPI) is used to measure the price change trend in the production field, and its side can reflect the production demand and business operation of the enterprise. The strength of industrial production activities is directly related to the growth of industrial electricity consumption, thereby determining the growth level of electricity consumption in the whole society. Meteorological dimension data, such as temperature, precipitation, relative humidity and other meteorological elements; these elements are closely related to household electricity consumption.
[0113] In the embodiment of the present application, the preset correlation coefficient method can be Among them, x i represents the change in the amount of electricity in the target area power grid during the i-th cycle, represents the average value of the power consumption change of the target area power grid in the historical power consumption data, y i represents the time interval of the i-th change, It represents the average change time interval corresponding to the target area power supply grid in the historical power consumption data. The closer the ρ value is to 1 or -1, the greater the influence of the key influencing factor.
[0114] In an embodiment of the present application, the above-mentioned historical power supply data and the set of influencing factors can be integrated according to the time series, and the integrated data can be respectively input into the above-mentioned correlation coefficient method to calculate the ρ value of each influencing factor in the set of influencing factors, and finally, the influencing factor with the ρ value closer to 1 or -1 is confirmed as the above-mentioned key influencing data.
[0115] In the embodiment of the present application, the key influencing factors are screened out through the above-mentioned correlation coefficient method and the acquisition of various parameter values, which effectively reduces the amount of training data and improves the training speed of the model to a certain extent.
[0116] In the embodiment of the present application, the regression prediction model is a pre-built regression prediction model, specifically, a prediction model based on a support vector regression (SVR) algorithm.
[0117] In an embodiment of the present application, current influencing factor data of the target storage system is collected in real time and analyzed according to a trained regression prediction model, thereby obtaining predicted power supply data that meets the current application environment.
[0118] Continue reading Figure 5 , showing Figure 4 A flowchart of a specific implementation of step S403 is shown in FIG. 1 . For ease of explanation, only the part related to the present application is shown.
[0119] In some optional implementations of this embodiment, the above step S403 specifically includes the following steps:
[0120] In step S501, elements in key influencing data are obtained in sequence as target factors;.
[0121] In an embodiment of the present application, after the key influencing data is obtained according to the correlation coefficient method, in order to facilitate the subsequent construction of the triplet of each key influencing data, the key image data can be extracted in turn as the target factor for a single construction of the triplet. After the triplet construction of a single key influencing data is completed, the next key influencing data is used as the target factor for the next round of triplet construction.
[0122] In the embodiment of the present application, an element refers to an influencing data parameter constituting key influencing data.
[0123] In step S502, the power change value and power change time corresponding to the target factor are obtained from the historical power supply data, and a ternary data is constructed according to the power change value and the power change time, wherein the ternary data includes the power change value's data before power change, data after power change, and power change time.
[0124] In step S503, all triplet data corresponding to the target factor in the historical power supply data are obtained to obtain a JSON array, wherein each triplet data is an element in the JSON array.
[0125] In step S504, the JSON array of all elements in the key influencing data is used as a training data set.
[0126] In the embodiment of the present application, assuming that the number of all key influencing factors is 10, 10 JSON arrays will be obtained, each JSON array corresponding to a different key influencing factor. The advantage of this triple construction and JSON array construction is that it is convenient for subsequent data analysis, and the change value and change time interval of the power can also be obtained.
[0127] Continue reading Figure 6 , showing Figure 4 A flowchart of a specific implementation of step S404 is shown in FIG. 1 . For ease of explanation, only the part related to the present application is shown.
[0128] In some optional implementations of this embodiment, before the above step S404, it also includes: step S601 and step S602, and the above step S404 specifically includes: step S603 and step S604.
[0129] In step S601, a PSO particle swarm algorithm is used to search for an optimal solution for the penalty factor and kernel function parameters of a pre-built regression prediction model to obtain an optimal solution search result.
[0130] In the embodiment of the present application, the main idea of optimizing the SVR algorithm by the PSO particle swarm algorithm is to use the search ability of the particle swarm to obtain the penalty factor and kernel function parameters of the support vector regression algorithm by optimization. These two parameters directly determine the prediction accuracy and training time of the model. Specifically, obtain the model training set, normalize it, and input the model training set; initialize the SVR model, initialize the PSO algorithm, set the PSO initial parameters, target accuracy, maximum number of iterations, etc., and generate the speed and position of the particles; use the mean square error of the SVR prediction result as the fitness function of the particle swarm; perform particle swarm iteration to update the speed, position, and inertia weight of the particles. Calculate the fitness value of each individual particle. If the fitness value of the current individual particle is better than the global optimal value, the particle position is the optimal position; determine whether the termination condition is met, stop the iteration when the maximum number of iterations or the target accuracy is met, and output the optimal particle position as the optimal penalty factor and kernel function parameter of the SVR. Otherwise, continue to iterate to search for the optimal solution; after obtaining the optimal penalty factor and kernel function parameter of the SVR, reuse the model training set for prediction model training. Among them, the purpose of searching for the optimal solution is to improve the prediction accuracy of the model and reduce the training time.
[0131] In step S602, the optimal solution search result is set as a model parameter in the pre-built regression prediction model to obtain a regression prediction model improved based on the particle swarm algorithm.
[0132] In step S603, the JSON array of all elements in the key influencing factors is input into the regression prediction model improved based on the particle algorithm.
[0133] In step S604, function fitting is performed on the JSON array of all elements in the key influencing factors to obtain a fitting function for characterizing the comprehensive relationship between the power change time and all the key influencing factors.
[0134] In an embodiment of the present application, the above-mentioned support vector regression algorithm is used in combination with the JSON arrays corresponding to all key influencing factors, and the JSON array is fitted with a function through the least squares curve fitting method to obtain a fitting function for characterizing the comprehensive relationship between the change time interval and all key influencing factors. This facilitates subsequent predictions by only obtaining the data of all key influencing factors and calculating the corresponding change time interval based on the fitting function.
[0135] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0136] The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0137] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0138] Embodiment 2
[0139] Further references Figure 7 , as a response to the above Figure 2 The present application provides an embodiment of an energy management device for cloud-edge collaboration. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0140] like Figure 7 As shown, an energy management device 200 applied to cloud-edge collaboration in this embodiment is applied to a cloud-edge collaborative energy management system, wherein the system includes N cloud data centers and M edge nodes, each edge node is communicatively connected to at least one cloud data center, and each edge node is used to monitor power supply data of at least one regional power supply grid, and the device includes:
[0141] The demand data receiving module 210 is used to receive the estimated power demand data carrying the target edge node identifier sent by the target cloud data center;
[0142] The power supply data collection module 220 is used to collect the current power supply data of the target area power supply grid corresponding to the target edge node identifier;
[0143] The supply data prediction module 230 is used to perform power prediction operations according to current power supply data to obtain predicted power supply data;
[0144] The comparison module 240 is used to compare the estimated power demand data and the predicted power supply data to obtain a comparison result;
[0145] The node confirmation module 250 is used to determine the management node for energy management of the power supply grid in the target area according to the comparison result, wherein the management node is the target edge node or the target cloud data center corresponding to the target edge node identifier.
[0146] In this embodiment, an energy management device 200 applied to cloud-edge collaboration is provided, including: a demand data receiving module 210, used to receive the estimated power demand data carrying the target edge node identifier sent by the target cloud data center; a power supply data acquisition module 220, used to collect the current power supply data of the target area power supply network corresponding to the target edge node identifier; a supply data prediction module 230, used to perform power prediction operations based on the current power supply data to obtain predicted power supply data; a comparison module 240, used to compare the estimated power demand data and the predicted power supply data to obtain a comparison result; a node confirmation module 250, used to determine the management node for energy management of the target area power supply network based on the comparison result, wherein the management node is the target edge node or the target cloud data center corresponding to the target edge node identifier. Compared with the prior art, the present application obtains the power supply data of the corresponding regional power supply grid through each edge node, and then uses the cloud data center to send the estimated power demand data of the corresponding regional power supply grid to each edge node, and determines whether the target edge node is suitable as the management node of the target regional power supply grid according to the power supply data and the predicted power demand number through each edge node, thereby realizing the cloud data center for targeted management based on the supply and demand relationship between the power supply data and the predicted power demand data. At the same time, through the comparison results, it can be known that the cloud data center for targeted management can be determined based on the supply and demand relationship between the predicted power supply data and the predicted power demand data, thereby improving the management efficiency of the energy management system based on cloud-edge collaboration and meeting the energy management needs of new energy sources with large energy supply fluctuations.
[0147] In some optional implementations of this embodiment, the supply data prediction module includes: a historical power supply data acquisition submodule, a time series prediction model construction submodule and a prediction operation submodule, wherein:
[0148] A historical power supply data acquisition submodule is used to read the system database and obtain historical power supply data corresponding to the power supply grid in the target area from the system database;
[0149] A time series prediction model building submodule is used to build a time series prediction model based on historical power supply data;
[0150] The prediction operation submodule is used to input the current power supply data into the time series prediction model for prediction operation to obtain predicted power supply data.
[0151] In some optional implementations of this embodiment, the supply data prediction module further includes: an influencing factor acquisition submodule, a screening submodule, a training data set acquisition submodule, a model training submodule and a power prediction submodule, wherein:
[0152] The influencing factor acquisition submodule is used to read the system database and obtain the historical power supply data and the influencing factor set corresponding to the power supply grid of the target area in the system database;
[0153] A screening submodule is used to screen the influencing factor set according to the correlation coefficient method and historical power supply data to obtain key influencing factors;
[0154] A training data set acquisition submodule is used to acquire power supply values corresponding to key influencing data in historical power supply data to obtain a training data set;
[0155] The model training submodule is used to input the training data set into the initial regression prediction model for model training operation, until all training data sets complete the model training operation, and obtain the trained power prediction model;
[0156] The power prediction submodule is used to input the current power supply data into the power prediction model to perform power prediction operations and obtain predicted power supply data.
[0157] To solve the above technical problems, the present application also provides a computer device. Figure 8 , Figure 8 This is a basic structural block diagram of the computer device in this embodiment.
[0158] The computer device 300 includes a memory 310, a processor 320, and a network interface 330 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 300 having components 310-330, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0159] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0160] The memory 310 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 310 can be an internal storage unit of the computer device 300, such as a hard disk or memory of the computer device 300. In other embodiments, the memory 310 can also be an external storage device of the computer device 300, such as a plug-in hard disk equipped on the computer device 300, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Of course, the memory 310 can also include both the internal storage unit of the computer device 300 and its external storage device. In this embodiment, the memory 310 is generally used to store an operating system and various application software installed on the computer device 300, such as computer-readable instructions for a cloud-edge collaborative energy management method, etc. In addition, the memory 310 can also be used to temporarily store various data that have been output or are to be output.
[0161] The processor 320 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 320 is generally used to control the overall operation of the computer device 300. In this embodiment, the processor 320 is used to run computer-readable instructions or process data stored in the memory 310, such as running computer-readable instructions for the energy management method applied to cloud-edge collaboration.
[0162] The network interface 330 may include a wireless network interface or a wired network interface. The network interface 330 is generally used to establish a communication connection between the computer device 300 and other electronic devices.
[0163] The computer device provided in the present application obtains the power supply data of the corresponding regional power supply grid through each edge node, and then uses the cloud data center to send the estimated power demand data of the corresponding regional power supply grid to each edge node, and determines whether the target edge node is suitable as the management node of the target regional power supply grid according to the power supply data and the predicted power demand number through each edge node, thereby realizing the cloud data center for targeted management based on the supply and demand relationship between the power supply data and the predicted power demand data. At the same time, through the comparison results, it can be known that the cloud data center for targeted management can be determined based on the supply and demand relationship between the predicted power supply data and the predicted power demand data, thereby improving the management efficiency of the energy management system based on cloud-edge collaboration and meeting the energy management needs of new energy sources with large energy supply fluctuations.
[0164] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the energy management method applied to cloud-edge collaboration as described above.
[0165] The computer-readable storage medium provided in the present application obtains the power supply data of the corresponding regional power supply grid through each edge node, and then uses the cloud data center to send the estimated power demand data of the corresponding regional power supply grid to each edge node, and determines whether the target edge node is suitable as the management node of the target regional power supply grid according to the power supply data and the predicted power demand number through each edge node, thereby realizing the cloud data center for targeted management based on the supply and demand relationship between the power supply data and the predicted power demand data. At the same time, through the comparison results, it can be known that the cloud data center for targeted management can be determined based on the supply and demand relationship between the predicted power supply data and the predicted power demand data, thereby improving the management efficiency of the energy management system based on cloud-edge collaboration and meeting the energy management needs of new energy sources with large energy supply fluctuations.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0167] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. An energy management method applied to cloud-edge collaboration, characterized in that: The method is applied to a cloud-edge collaborative energy management system, wherein the system includes N cloud data centers and M edge nodes, each of the edge nodes is communicatively connected to at least one of the cloud data centers, and each of the edge nodes is used to monitor power supply data of at least one regional power supply grid, and the method includes the following steps: Receiving estimated power demand data carrying a target edge node identifier sent by a target cloud data center; Collecting current power supply data of the target area power supply grid corresponding to the target edge node identifier; Performing a power forecasting operation according to the current power supply data to obtain forecasted power supply data; Comparing the estimated power demand data and the predicted power supply data to obtain a comparison result; A management node for performing energy management on the target area power supply grid is determined according to the comparison result, wherein the management node is the target edge node corresponding to the target edge node identifier or the target cloud data center.
2. The energy management method for cloud-edge collaboration according to claim 1 is characterized in that: The step of performing a power forecasting operation according to the current power supply data to obtain forecasted power supply data specifically comprises the following steps: Reading a system database, and acquiring historical power supply data corresponding to the target area power supply grid in the system database; Building a time series prediction model based on the historical power supply data; The current power supply data is input into the time series prediction model for prediction operation to obtain the predicted power supply data.
3. The energy management method for cloud-edge collaboration according to claim 1 is characterized in that: The step of performing a power forecasting operation according to the current power supply data to obtain forecasted power supply data specifically comprises the following steps: Reading a system database, and obtaining historical power supply data and a set of influencing factors corresponding to the target area power supply grid in the system database; Screening the influencing factor set according to the correlation coefficient method and the historical power supply data to obtain key influencing factors; Acquire the power supply value corresponding to the key influencing data in the historical power supply data to obtain a training data set; Inputting the training data set into the initial regression prediction model to perform a model training operation until all the training data sets have completed the model training operation, thereby obtaining a trained power prediction model; The current power supply data is input into the power prediction model to perform power prediction operation to obtain the predicted power supply data.
4. The energy management method for cloud-edge collaboration according to claim 3 is characterized in that: The step of obtaining the power supply value corresponding to the key influencing data in the historical power supply data to obtain a training data set specifically includes the following steps: Sequentially obtaining elements in the key influencing data as target factors; Acquire the power change value and power change time corresponding to the target factor from the historical power supply data, and construct triplet data according to the power change value and power change time, wherein the triplet data includes the power change value before power change data, power change data after power change and the power change time; Obtain all triplet data corresponding to the target factor in the historical power supply data to obtain a JSON array, wherein each triplet data is an element in the JSON array; The JSON array of all elements in the key influencing data is used as the training data set.
5. The energy management method for cloud-edge collaboration according to claim 4 is characterized in that: Before the step of inputting the training data set into the initial regression prediction model for model training operation until all the training data sets complete the model training operation to obtain the trained power prediction model, the following steps are also included: The PSO particle swarm algorithm is used to search for the optimal solution of the penalty factor and kernel function parameters of the pre-built regression prediction model to obtain the optimal solution search result; The optimal solution search result is set as a model parameter in the pre-built regression prediction model to obtain a regression prediction model improved based on a particle swarm algorithm; The step of inputting the training data set into the initial regression prediction model for model training operation until all the training data sets complete the model training operation to obtain a trained power prediction model specifically includes the following steps: Inputting the JSON array of all elements in the key influencing factors into the regression prediction model improved based on the particle algorithm; Function fitting is performed on the JSON array of all elements in the key influencing factors to obtain a fitting function for characterizing the comprehensive relationship between the power change time and all the key influencing factors.
6. The energy management method for cloud-edge collaboration according to claim 3 is characterized in that: The correlation coefficient method is expressed as: Among them, x i represents the change in the amount of electricity in the target area power grid during the i-th cycle, represents the average value of the power consumption change of the target area power grid in the historical power consumption data, y i represents the time interval of the i-th change, Indicates the average change time interval corresponding to the target area power supply grid in the historical power consumption data.
7. The energy management method for cloud-edge collaboration according to claim 1 is characterized in that: The comparison result includes a normal state and an abnormal state. The step of determining the management node for energy management of the target area power supply grid according to the comparison result specifically includes the following steps: Determine the management node of the target area power supply grid whose comparison result is normal as the target edge node; The management node of the power supply grid in the target area whose comparison result is abnormal is determined as the target cloud data center.
8. An energy management device applied to cloud-edge collaboration, characterized in that: The device is applied to a cloud-edge collaborative energy management system, wherein the system includes N cloud data centers and M edge nodes, each of the edge nodes is communicatively connected to at least one of the cloud data centers, and each of the edge nodes is used to monitor power supply data of at least one regional power supply grid, and the device includes: A demand data receiving module, used to receive the estimated power demand data carrying the target edge node identifier sent by the target cloud data center; A power supply data collection module, used to collect current power supply data of the target area power supply grid corresponding to the target edge node identifier; A supply data prediction module, used to perform power prediction operations according to the current power supply data to obtain predicted power supply data; A comparison module, used for comparing the estimated power demand data and the predicted power supply data to obtain a comparison result; A node confirmation module is used to determine the management node for energy management of the power supply grid in the target area according to the comparison result, wherein the management node is the target edge node corresponding to the target edge node identifier or the target cloud data center.
9. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the energy management method applied to cloud-edge collaboration as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the energy management method applied to cloud-edge collaboration as described in any one of claims 1 to 7.
