Creation method, prediction method, device, electronic device and storage medium
Through the neural network method, ARIMA model and MLP neural network are used to predict short-term electricity load, which solves the problem of inaccurate short-term load prediction in the power system and achieves efficient operation and safety guarantee of the power system.
Patent Information
- Application Number
- CN202210692304.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-06-17
Smart Images

Figure CN115018055B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power dispatching, and in particular to a creation method, a prediction method, a device, an electronic device and a storage medium. Background Art
[0002] Load forecasting is a key component of power system operation and management. The characteristics of industrial, civil and public utility power loads are very different. Power loads are often highly volatile and seasonal due to changes in weather and other factors. Accurate forecasting of power loads is the basis for power system expansion, operation, maintenance and other plans.
[0003] In order to ensure the effectiveness and efficiency of power system operation, it is particularly important to accurately predict short-term load. If the short-term load forecast is too high, the system power generation capacity will be too large, resulting in high operating costs; on the contrary, if the system load forecast is too low, it will affect the reliability and safety of the power system.
[0004] Therefore, how to conduct accurate short-term load forecasting becomes an urgent problem to be solved. Summary of the invention
[0005] In view of this, the main purpose of the present invention is to provide a creation method, a prediction method, an apparatus, an electronic device and a storage medium.
[0006] To achieve the above object, the technical solution of the present invention is implemented as follows: a method for creating a neural network for short-term power load, comprising the following steps: obtaining M time points Time1, Time2, ..., Time M , and each time point Time i Corresponding power load Y i And the corresponding temperature value Temp i , where M is a natural number, and M≥2, i=1,2,...,M; Time j Earlier than Time j+1 , j = 1, 2, ..., M-1; generate multiple data to be processed D(t) = [Month, Week, Hour, Y t-Num ,Y t-Num+1 ,…,Y t-1 ,Temp t ], where t and Num are both natural numbers, Num+1≤t≤M, and Month is the time point Time t The month, Week is the time point Time t The day of the week, Hour is the time point Time t The hour in which the data is located; multiple data to be processed D(t) are input into the preset ARIMA model, and the output of each Timet The predicted value of applied power load Y′ t , residual E(t) = Y t -Y′ t ; Generate multiple training data, each training data Data(k) includes N+1 residuals arranged in sequence: E(kN), E(k-N+1), ..., E(k-1), and E(k), N+1≤k≤M, N is a natural number, and the k value corresponding to each training data is different; Create an MLP neural network, the MLP neural network includes an input layer, a hidden layer and an output layer, the input layer has N neurons X1, X2, ..., X N , the hidden layer has N-2 neurons Y1, Y2, ..., Y N-2 , the output layer has a neuron Z that provides the final output; in the MLP neural network, the activation function of each neuron is a nonlinear activation function ReLU(E)=max(0,E), where E is the residual E(k) in the training data Data(k); the neuron Y r The output is f() is a function, where b r For neuron Y r The corresponding deviation, w s, For Neuron X s With neuron Y r The edge weight between s,r For Neuron X s To neuron Y r Output value between ; c p-1 is the neuron X in the iterative process of the MLP neural network p-1 The corresponding residual, α is a constant; the output of the neuron Z in the output layer is: Among them, b is the deviation corresponding to neuron Z, w′ s For neuron Y s The edge weight between neuron Z, E′ s For neuron Y s The output value between to neuron Z; c′ s-1 is the neuron Y in the iterative process of the MLP neural network s-1 Based on multiple training data, the MLP neural network is trained. During the training, the first N residuals in each training data are input into neurons X1, X2, ..., X1 respectively. N middle.
[0007] As an improvement to the embodiment of the present invention, Num=30.
[0008] As an improvement to the embodiment of the present invention, N=10.
[0009] The embodiment of the present invention also provides a device for creating a neural network for short-term power load, comprising the following modules: a first data acquisition module, for acquiring M time points Time1, Time2, ..., Time M , and each time point Time i Corresponding power load Y i And the corresponding temperature value Temp i , where M is a natural number, and M≥2, i=1,2,...,M; Time j Earlier than Time j+1 , j = 1, 2, ..., M-1; data conversion module, used to generate a plurality of to-be-processed data D(t) = [Month, Week, Hour, Y t-Num ,Y t-Num+1 ,…,Y t-1 ,Temp t ], where t and Num are both natural numbers, Num+1≤t≤M, and Month is the time point Time t The month, Week is the time point Time t The day of the week, Hour is the time point Time t The hour in which the data is located; multiple data to be processed D(t) are input into the preset ARIMA model, and the output of each Time t The predicted value of applied power load Y′ t , residual E(t) = Y t -Y′ t ; Neural network creation module for
[0010] Generate multiple training data, each training data Data(k) includes N+1 residuals arranged in sequence: E(kN), E(k-N+1), ..., E(k-1), and E(k), N+1≤k≤M, N is a natural number, and the k value corresponding to each training data is different; create an MLP neural network, the MLP neural network includes an input layer, a hidden layer and an output layer, the input layer has N neurons X1, X2, ..., X N , the hidden layer has N-2 neurons Y1, Y2, ..., Y N-2 , the output layer has a neuron Z that provides the final output; in the MLP neural network, the activation function of each neuron is a nonlinear activation function ReLU(E)=max(0,E), where E is the residual E(k) in the training data Data(k); the neuron Y rThe output is f() is a function, where b r For neuron Y r The corresponding deviation, w s,r For Neuron X s With neuron Y r The edge weight between s,r For Neuron X s To neuron Y r Output value between ; c p-1 is the neuron X in the iterative process of the MLP neural network p-1 The corresponding residual, α is a constant; the output of the neuron Z in the output layer is: Among them, b is the deviation corresponding to neuron Z, w′ s For neuron Y s The edge weight between neuron Z, E′ s For neuron Y s The output value between to neuron Z; c′ s-1 is the neuron Y in the iterative process of the MLP neural network s-1 The neural network training module is used to train the MLP neural network based on multiple training data. During training, the first N residuals in each training data are input into neurons X1, X2, ..., X1 respectively. N middle.
[0011] As an improvement to the embodiment of the present invention, Num=30.
[0012] As an improvement to the embodiment of the present invention, N=10.
[0013] An embodiment of the present invention further provides an electronic device, comprising: a memory for storing executable instructions; and a processor for implementing the above-mentioned creation method when executing the executable instructions stored in the memory.
[0014] The embodiment of the present invention further provides a storage medium storing executable instructions for causing a processor to execute the above-mentioned creation method.
[0015] The embodiment of the present invention also provides a method for predicting short-term power load, comprising the following steps: obtaining a predicted value Y of the user load at the current time, and N residuals arranged in sequence: E′(N), E′(N-1), ..., E′(1), wherein the time point corresponding to E′(N) is earlier than the time point corresponding to E(N-1), the time point corresponding to E(N-1) is earlier than the time point corresponding to E(N-2), ..., the time point corresponding to E(2) is earlier than the time point corresponding to E(1), and the time point corresponding to E(1) is earlier than the current time; executing the above creation method to create an MLP neural network, and inputting the N residuals E(N), E(N-1), ..., E(1) into neurons X1, X2, ..., X2 in the MLP neural network one by one. N , the neuron Z in the MLP neural network outputs Z out The corrected predicted value of the user load at the current time is Y+Z out
[0016] The embodiment of the present invention further provides a prediction device for short-term power load, comprising the following modules: a second data acquisition module, used to obtain a predicted value Y of the user load at the current time, and N residuals arranged in sequence: E′(N), E′(N-1), ..., E′(1), wherein the time point corresponding to E′(N) is earlier than the time point corresponding to E(N-1), the time point corresponding to E(N-1) is earlier than the time point corresponding to E(N-2), ..., the time point corresponding to E(2) is earlier than the time point corresponding to E(1), and the time point corresponding to E(1) is earlier than the current time; and a prediction module, used to execute the above creation method, thereby creating an MLP neural network, and inputting the N residuals E(N), E(N-1), ..., E(1) into neurons X1, X2, ..., X2 in the MLP neural network one by one. N , the neuron Z in the MLP neural network outputs Z out The corrected predicted value of the user load at the current time is Y+Z out .
[0017] The creation method, prediction method, device, electronic device and storage medium provided by the embodiment of the present invention have the following advantages: The embodiment of the present invention discloses a creation method, prediction method, device, electronic device and storage medium, the creation method includes: obtaining the power load and the corresponding temperature value corresponding to multiple time points in a preset date, generating residuals based on the ARIMA model, and stretching the training data containing the residuals to generate an MLP neural network, and using the training data to train the neural network. The prediction method includes: obtaining the predicted value Y of the user load at the current time, and N residuals arranged in sequence, inputting the residuals into the above-mentioned MLP neural network, and obtaining the output Z of the neural network out ; The corrected forecast value of the user load at the current time is Y+Z out . This enables accurate short-term power load measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of a method for creating a short-term power load is provided for an embodiment of the present invention;
[0019] Figure 2 A structural diagram of an MLP neural network provided in an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of a device for predicting short-term power load provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0022] As used herein, terms indicating spatial relative positions such as "upper," "above," "lower," and "below" are used for the purpose of convenience to describe the relationship of one unit or feature relative to another unit or feature as shown in the accompanying drawings. Terms of spatial relative position may be intended to include different orientations of the device in use or operation in addition to the orientation shown in the drawings. For example, if the device in the figure is turned over, units described as being "below" or "beneath" other units or features will be located "above" the other units or features. Thus, the exemplary term "below" can encompass both above and below orientations. The device may be oriented in other ways (rotated 90 degrees or in other orientations), and the spatially relative descriptors used herein interpreted accordingly.
[0023] Embodiment 1 of the present invention provides a method for creating a short-term power load. Here, the processing object of the creation method is a power system, which includes one or more power-consuming devices. For example, a factory, a household, a school and other public utilities can be considered as a power system.
[0024] like Figure 1 and Figure 2 As shown, the following steps are included:
[0025] Step 101: Get M time points Time1, Time2, ..., Time in a preset date M , and each time point Time i Corresponding power load Y i And the corresponding temperature value Temp i , where M is a natural number, and M≥2, i=1,2,...,M; Time j Earlier than Time j+1 , j=1,2,...,M-1; here, in practice, the power load and environmental information can be counted in real time, so as to obtain the power load and temperature values corresponding to each time point in the preset date.
[0026] Here, Time1 is earlier than Time2, Time2 is earlier than Time3..., Time M-1 Earlier than Time M In practice, the time in the preset date can be divided into M consecutive time periods, where Time1 is in the first time period, Time2 is in the second time period, ..., Time M In the Mth time period, for the time point Time i For example, the total load of the power system in the i-th time period can be obtained as the power load Y i In the i-th time period, multiple temperature values of the environment in which the power system is located can be continuously obtained (for example, a temperature value is obtained every preset time period), and the average value of the multiple environmental values can be obtained as the time point Time i The corresponding temperature value Temp i .
[0027] Optionally, the time interval between adjacent time points is a constant value static, that is, |Time1-Time2|=|Time2-Time3|=...=|Time M-1 -Time M |=constant value static.
[0028] Step 102: Generate multiple data to be processed D(t) = [Month, Week, Hour, Y t-Num ,Y t-Num+1 ,…,Y t-1 ,Temp t], where t and Num are both natural numbers, Num+1≤t≤M, and Month is the time point Time t The month, Week is the time point Time t The day of the week, Hour is the time point Time t The hour in which the data is located; multiple data to be processed D(t) are input into the preset ARIMA model, and the output of each Time t The predicted value of applied power load Y′ t , residual E(t) = Y t -Y′ t ; Here, the ARIMA (Autoregressive Integrated Moving Average) model is a time series prediction and analysis model.
[0029] Step 103: Generate multiple training data, each training data Data(k) includes N+1 residuals arranged in sequence: E(kN), E(k-N+1), ..., E(k-1), and E(k), N+1≤k≤M, N is a natural number, and the k value corresponding to each training data is different;
[0030] Here, in each training data, there is a sequence, and the order from front to back is: E(kN)->E(k-N+1)->,...,->E(k-1)->E(k). The number of training data here can be set according to actual needs, up to MN.
[0031] Create an MLP (Multi-Layer Perceptron) neural network, which includes an input layer, a hidden layer, and an output layer. The input layer has N neurons X1, X2, ..., X N , the hidden layer has N-2 neurons Y1, Y2, ..., Y N-2 , the output layer has a neuron Z that provides the final output; in the MLP neural network, the activation function of each neuron is the nonlinear activation function ReLU(E)=max(0,E), where E is the residual E(k) in the training data Data(k); here, the ReLI() function has the same advantages as Sigmoid, but has better performance.
[0032] The neuron Y r The output is f() is a function, where b r For neuron Y r The corresponding deviation, w s,r For Neuron X sWith neuron Y r The edge weight between s,r For Neuron X s To neuron Y r Output value between ; c p-1 is the neuron X in the iterative process of the MLP neural network p-1 The corresponding residual, α is a constant; here, the f() function can be a hyperbolic tangent function.
[0033] The output of neuron Z in the output layer is: Among them, b is the deviation corresponding to neuron Z, w s For neuron Y s The edge weight between neuron Z, E′ s For neuron Y s The output value between to neuron Z; c′ s-1 is the neuron Y in the iterative process of the MLP neural network s-1 The corresponding residual;
[0034] Step 104: Based on the multiple training data, the MLP neural network is trained. During the training, the first N residuals in each training data are input into neurons X1, X2, ..., X1 respectively. N Here, the training data contains N+1 residuals: E(kN), E(k-N+1), ..., E(k-1), E(k). During training, E(kN) is input into neuron X1, E(k-N+1) is input into neuron X2, ..., E(k-1) is input into neuron X N-1 , E(k) is input into neuron X N .
[0035] In this embodiment, Num=30.
[0036] In this embodiment, N=10.
[0037] Embodiment 2 of the present invention provides a device for creating a neural network for short-term power load, comprising the following modules:
[0038] The first data acquisition module is used to acquire M time points Time1, Time2, ..., Time M , and each time point Time i Corresponding power load Y i And the corresponding temperature value Temp i , where M is a natural number, and M≥2, i=1,2,...,M; Time j Earlier than Timej+1 , j = 1, 2, ..., M-1;
[0039] Data conversion module, used to generate multiple data to be processed D(t) = [Month, Week, Hour, Y t-Num ,Y t-Num+1 ,…,Y t-1 ,Temp t ], where t and Num are both natural numbers, Num+1≤t≤M, and Month is the time point Time t The month, Week is the time point Time t The day of the week, Hour is the time point Time t The hour in which the data is located; multiple data to be processed D(t) are input into the preset ARIMA model, and the output of each Time t The predicted value of applied power load Y′ t , residual E(t) = Y t -Y′ t ;
[0040] A neural network creation module is used to generate multiple training data, each training data Data(k) includes N+1 residuals arranged in sequence: E(kN), E(k-N+1), ..., E(k-1), and E(k), N+1≤k≤M, N is a natural number, and the k value corresponding to each training data is different;
[0041] Create an MLP neural network, which includes an input layer, a hidden layer and an output layer. The input layer has N neurons X1, X2, ..., X N , the hidden layer has N-2 neurons Y1, Y2, ..., Y N-2 , the output layer has a neuron Z that provides the final output; in the MLP neural network, the activation function of each neuron is a nonlinear activation function ReLU(E)=max(0,E), where E is the residual E(k) in the training data Data(k);
[0042] The neuron Y r The output is f() is a function, where b r For neuron Y r The corresponding deviation, w s, For Neuron X s With neuron Y r The edge weight between s, For Neuron X s To neuron Y r Output value between ; c p-1is the neuron X in the iterative process of the MLP neural network p-1 The corresponding residual, α is a constant;
[0043] The output of neuron Z in the output layer is: Among them, b is the deviation corresponding to neuron Z, w′ s For neuron Y s The edge weight between neuron Z, E′ s For neuron Y s The output value between to neuron Z; c′ s-1 is the neuron Y in the iterative process of the MLP neural network s-1 The corresponding residual;
[0044] The neural network training module is used to train the MLP neural network based on multiple training data. During training, the first N residuals in each training data are input into neurons X1, X2, ..., X1 respectively. N middle.
[0045] In this embodiment, Num=30.
[0046] In this embodiment, N=10.
[0047] Embodiment 3 of the present invention provides an electronic device, comprising: a memory for storing executable instructions; and a processor for implementing the creation method described in Embodiment 1 when executing the executable instructions stored in the memory.
[0048] Embodiment 4 of the present invention provides a storage medium storing executable instructions for causing a processor to execute and implement the creation method described in embodiment 1.
[0049] Embodiment 5 of the present invention provides a method for predicting short-term power load, comprising the following steps:
[0050] Step 1: Get the predicted value Y of the user load at the current time, and N residuals arranged in sequence: E′(N), E′(N-1), ..., E′(1), where the time point corresponding to E′(N) is earlier than the time point corresponding to E(N-1), the time point corresponding to E(N-1) is earlier than the time point corresponding to E(N-2), ..., the time point corresponding to E(2) is earlier than the time point corresponding to E(1), and the time point corresponding to E(1) is earlier than the current time;
[0051] Step 2: Execute the creation method in Example 1 to create an MLP neural network, and input the N residuals E(N), E(N-1), ..., E(1) into neurons X1, X2, ..., X in the MLP neural network one by one.N , the neuron Z in the MLP neural network outputs Z out The corrected predicted value of the user load at the current time is Y+Z out
[0052] Embodiment 6 of the present invention provides a device for predicting short-term power load, comprising the following modules:
[0053] A second data acquisition module is used to obtain a predicted value Y of the user load at the current time, and N residuals arranged in sequence: E′(N), E′(N-1), ..., E′(1), wherein the time point corresponding to E′(N) is earlier than the time point corresponding to E(N-1), the time point corresponding to E(N-1) is earlier than the time point corresponding to E(N-2), ..., the time point corresponding to E(2) is earlier than the time point corresponding to E(1), and the time point corresponding to E(1) is earlier than the current time;
[0054] A prediction module is used to execute the creation method in the first embodiment to create an MLP neural network, and input the N residuals E(N), E(N-1), ..., E(1) into neurons X1, X2, ..., X in the MLP neural network one by one. N , the neuron Z in the MLP neural network outputs Z out The corrected predicted value of the user load at the current time is Y+Z out .
[0055] Here, short-term load forecasting is a complex process as the nature of load time series data is highly nonlinear. Therefore, load forecasting based on ARIMA model alone cannot provide accurate results. Therefore, ARIMA model is combined with MLP neural network, which is a deep learning method to model the result data of ARIMA model and further process it to model nonlinearity. The proposed hybrid method detects the residuals of ARIMA neural network with linear statistical technique and models these residuals with MLP neural network. Since the nonlinearity of load time series is approximated in this error modeling process, the proposed method can produce accurate hourly load forecasting results.
[0056] Figure 3 A schematic diagram of another short-term power load prediction device provided by an embodiment of the present invention. A schematic diagram of a structure applied to a certain electronic device, Figure 3The electronic device 700 shown includes: at least one processor 701, a memory 702, at least one network interface 704 and other user interfaces 703. The various components in the electronic device 700 are coupled together via a bus system 705. It is understood that the bus system 705 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 705 is not described in detail. Figure 3 Various buses are labeled as bus system 705.
[0057] The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0058] It can be understood that the memory 702 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0059] In some embodiments, the memory 702 stores the following residues, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 7021 and an application 7022 .
[0060] The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 7022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 7022.
[0061] In the embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application 7022,
[0062] When applied to a host computer, the processor 701 is used to execute the method steps provided by each method embodiment, for example, including:
[0063] Receive target data sets sent by sensors and / or PLCs;
[0064] Sending the target data set to a server; and the server performing corresponding operations according to the target data set;
[0065] The target data set includes at least one of the following: detection data, a type symbol corresponding to the detection data, and an identifier describing a device that collects the detection data.
[0066] When applied to a server, the processor 701 is used to execute the method steps provided by each method embodiment, for example, including:
[0067] Receive the data set sent by the host computer;
[0068] Analyze the data set, and perform different operations on the data in the data set according to the analysis result;
[0069] The data set includes at least one of the following: detection data, a type symbol corresponding to the detection data, and an identifier describing a device that collects the detection data.
[0070] The method disclosed in the above embodiment of the present invention can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 701 or the instruction in the form of software. The above processor 701 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.
[0071] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0072] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0073] The electronic device provided in this embodiment can be the electronic device mentioned above, which can execute all steps of the above optimization method to achieve the technical effect of the above optimization method. Please refer to the above related description for details. For the sake of concise description, it will not be repeated here.
[0074] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0075] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned optimization method executed in the operation and maintenance monitoring device can be implemented.
[0076] When applied to a host computer, the processor is used to execute the operation and maintenance monitoring program stored in the memory to implement the following steps of the optimization method executed on the host computer side:
[0077] Receiving target data sets sent by sensors and / or programmable logic controllers (PLCs);
[0078] Sending the target data set to a server; and the server performing corresponding operations according to the target data set;
[0079] The target data set includes at least one of the following: detection data, a type symbol corresponding to the detection data, and an identifier describing a device that collects the detection data.
[0080] When applied to a server, the processor is used to execute the operation and maintenance monitoring program stored in the memory to implement the following steps of the optimization method performed on the server side:
[0081] Receive the data set sent by the host computer;
[0082] Analyze the data set, and perform different operations on the data in the data set according to the analysis result;
[0083] The data set includes at least one of the following: detection data, a type symbol corresponding to the detection data, and an identifier describing a device that collects the detection data.
[0084] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0085] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0086] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for creating a neural network for short-term power loads, characterized in that: The following steps are involved: Get M time points Time1, Time2, ..., Time in a preset date M , and each time point Time i Corresponding power load Y i And the corresponding temperature value Temp i , where M is a natural number, and M≥2, i=1,2,...,M; Time j Earlier than Time j+1 , j = 1, 2, ..., M-1; Generate multiple data to be processed D(t) = [Month, Week, Hour, Y t-Num ,Y t-Num+1 ,…,Y t-1 ,Temp t ], where t and Num are both natural numbers, Num+1≤t≤M, and Month is the time point Time t The month, Week is the time point Time t The day of the week, Hour is the time point Time t The hour in which the data is located; multiple data to be processed D(t) are input into the preset ARIMA model, and the output of each Time t The predicted value of applied power load Y′ t , residual E(t) = Y t -Y′ t ; Generate multiple training data, each training data Data(k) includes N+1 residuals arranged in sequence: E(kN), E(k-N+1), ..., E(k-1), and E(k), N+1≤k≤M, N is a natural number, and the k value corresponding to each training data is different; create an MLP neural network, the MLP neural network includes an input layer, a hidden layer and an output layer, the input layer has N neurons X1, X2, ..., X N , the hidden layer has N-2 neurons Y1, Y2, ..., Y N-2 , the output layer has a neuron Z that provides the final output; in the MLP neural network, the activation function of each neuron is a nonlinear activation function ReLU(E)=max(0,E), where E is the residual E(k) in the training data Data(k); the neuron Y r The output is r=1,2,...,N-2,f() is a function, where b r For neuron Y r The corresponding deviation, w s,r For Neuron X s With neuron Y r The edge weight between s,r For Neuron X s To neuron Y r Output value between p,r =w p-1,r +Δw p-1 , p=2,3,...,N,c p-1 is the neuron X in the iterative process of the MLP neural network p-1 The corresponding residual, α is a constant; the output of the neuron Z in the output layer is: Among them, b is the deviation corresponding to neuron Z, w′ s For neuron Y s The edge weight between neuron Z, E′ s For neuron Y s The output value between the neuron Z; w′ q =w′ q-1 +Δw′ q-1 , q = 2, 3, ..., N-2, c' s-1 is the neuron Y in the iterative process of the MLP neural network s-1 The corresponding residual; Based on multiple training data, the MLP neural network is trained. During the training, the first N residuals in each training data are input into neurons X1, X2, ..., X1 respectively. N middle.
2. The creation method according to claim 1, characterized in that: Num=30.
3. The creation method according to claim 1, characterized in that: N=10。 4. A device for creating a neural network for short-term power load, characterized in that: Includes the following modules: The first data acquisition module is used to acquire M time points Time1, Time2, ..., Time M , and each time point Time i Corresponding power load Y i And the corresponding temperature value Temp i , where M is a natural number, and M≥2, i=1,2,...,M; Time j Earlier than Time j+1 , j = 1, 2, ..., M-1; Data conversion module, used to generate multiple data to be processed D(t) = [Month, Week, Hour, Y t-Num ,Y t-Num+1 ,…,Y t-1 ,Temp t ], where t and Num are both natural numbers, Num+1≤t≤M, and Month is the time point Time t The month, Week is the time point Time t The day of the week, Hour is the time point Time t The hour in which the data is located; multiple data to be processed D(t) are input into the preset ARIMA model, and the output of each Time t The predicted value of applied power load Y′ t , residual E(t) = Y t -Y′ t ; A neural network creation module is used to generate multiple training data, each training data Data(k) includes N+1 residuals arranged in sequence: E(kN), E(k-N+1), ..., E(k-1), and E(k), N+1≤k≤M, N is a natural number, and the k value corresponding to each training data is different; an MLP neural network is created, the MLP neural network includes an input layer, a hidden layer and an output layer, the input layer has N neurons X1, X2, ..., X N , the hidden layer has N-2 neurons Y1, Y2, ..., Y N-2 , the output layer has a neuron Z that provides the final output; in the MLP neural network, the activation function of each neuron is a nonlinear activation function ReLU(E)=max(0,E), where E is the residual E(k) in the training data Data(k); the neuron Y r The output is r=1,2,...,N-2,f() is a function, where b r For neuron Y r The corresponding deviation, w s,r For Neuron X s With neuron Y r The edge weight between s,r For Neuron X s To neuron Y r Output value between p,r =w p-1,r +Δw p-1 , p=2,3,...,N,c p-1 is the neuron X in the iterative process of the MLP neural network p-1 The corresponding residual, α is a constant; the output of the neuron Z in the output layer is: Among them, b is the deviation corresponding to neuron Z, w′ s For neuron Y s The edge weight between neuron Z, E′ s For neuron Y s The output value between the neuron Z; w′ q =w′ q-1 +Δw′ q-1 , q = 2, 3, ..., N-2, c' s-1 is the neuron Y in the iterative process of the MLP neural network s-1 The corresponding residual; The neural network training module is used to train the MLP neural network based on multiple training data. During training, the first N residuals in each training data are input into neurons X1, X2, ..., X1 respectively. N middle.
5. The creation device according to claim 4, characterized in that: Num=30.
6. The creation device according to claim 4, characterized in that: N=10。 7. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor, used to implement the creation method described in any one of claims 1 to 3 when executing the executable instructions stored in the memory.
8. A storage medium, characterized in that: Executable instructions are stored, which are used to cause a processor to execute and implement the creation method described in any one of claims 1 to 3.
9. A method for predicting short-term power load, characterized in that: The following steps are involved: Obtain the predicted value Y of the user load at the current time, and N residuals arranged in sequence: E′(N), E′(N-1), ..., E′(1), where the time point corresponding to E′(N) is earlier than the time point corresponding to E(N-1), the time point corresponding to E(N-1) is earlier than the time point corresponding to E(N-2), ..., the time point corresponding to E(2) is earlier than the time point corresponding to E(1), and the time point corresponding to E(1) is earlier than the current time; Execute the creation method according to any one of claims 1 to 3 to create an MLP neural network, and input the N residuals E(N), E(N-1), ..., E(1) into neurons X1, X2, ..., X in the MLP neural network one by one. N , the neuron Z in the MLP neural network outputs Z out The corrected predicted value of the user load at the current time is Y+Z out .
10. A device for predicting short-term power load, characterized in that: Includes the following modules: A second data acquisition module is used to obtain a predicted value Y of the user load at the current time, and N residuals arranged in sequence: E′(N), E′(N-1), ..., E′(1), wherein the time point corresponding to E′(N) is earlier than the time point corresponding to E(N-1), the time point corresponding to E(N-1) is earlier than the time point corresponding to E(N-2), ..., the time point corresponding to E(2) is earlier than the time point corresponding to E(1), and the time point corresponding to E(1) is earlier than the current time; A prediction module, used to execute the creation method according to any one of claims 1 to 3, thereby creating an MLP neural network, and inputting the N residuals E(N), E(N-1), ..., E(1) into neurons X1, X2, ..., X in the MLP neural network one by one. N , the neuron Z in the MLP neural network outputs Z out The corrected predicted value of the user load at the current time is Y+Z out .
