Short-term load prediction method and system based on LSTM-DNN hybrid neural network
The power load data is preprocessed and feature extracted through the LSTM-DNN hybrid neural network, and peak, high, low and flat peak models are constructed, solving the problems of low load prediction accuracy and overfitting in the existing technology, achieving more accurate and efficient load forecast.
Patent Information
- Application Number
- CN202411044169.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
AI Technical Summary
The existing short-term load prediction methods have low accuracy when considering multiple weather factors and nonlinear data, which is prone to overfitting, and cannot effectively deal with missing and outliers, affecting the prediction accuracy.
Using a short-term load prediction method based on LSTM-DNN hybrid neural network, the power load data and meteorological parameter data are collected and preprocessed, and divided into three types: peak, trough, and flat peaks, and the features are extracted, and a hybrid neural network model is constructed for training and Optimize and make real-time predictions.
It improves the accuracy and efficiency of load prediction, can analyze load changes more comprehensively, solves the problem of incomplete data, and enhances prediction accuracy and processing speed.
Smart Images

Figure CN118970924A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a short-term load forecasting method and system based on an LSTM-DNN hybrid neural network. Background Art
[0002] As the demand for electricity in the power system continues to grow, load forecasting has become an indispensable task for power system dispatching, and its accuracy directly affects the arrangement and operation efficiency of power dispatching. However, the load has characteristics such as volatility, randomness and nonlinearity, which will greatly affect the accuracy of load forecasting. Therefore, how to choose appropriate forecasting models and algorithms to accurately forecast power load is the key to ensuring the balance of power supply and demand.
[0003] The mainstream load forecasting methods at present include mathematical statistics, time series and artificial intelligence. The mathematical statistics method represented by the Kalman filter method considers a single factor and can only process simple linear data, so it cannot consider the influence of complex factors such as weather data, resulting in a large difference between the prediction results and the actual values; the time series method includes regression analysis, multivariate regression and Fourier expansion, etc. This type of method is only based on the current load and historical load. Although it can have a good prediction effect, the load is often affected by multiple factors, and the method has low prediction accuracy for nonlinear and non-stationary load data, and cannot be used on a large scale; the artificial intelligence method is represented by the artificial neural network algorithm. The existing artificial intelligence method only considers the influence of factors such as temperature, humidity and wind speed on the load when establishing the load forecasting model, but the load is also related to multiple weather factors such as precipitation, air pressure, cloud thickness and atmospheric composition. At the same time, most of the existing load forecasting models only use a single type of neural network to train the load data to obtain the load forecasting model, so it is easy to overfit. Summary of the invention
[0004] In view of the problems existing in the existing short-term load forecasting methods, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is how to combine the hybrid neural network algorithm to generate different load forecasting models for separate forecasting, thereby improving the accuracy and efficiency of load forecasting and providing support for the stable operation and economy of the power system.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In the first aspect, an embodiment of the present invention provides a short-term load forecasting method based on an LSTM-DNN hybrid neural network, which includes collecting power load data and meteorological parameter data; preprocessing the power load data and meteorological parameter data; dividing the power load data into three types: peak load, valley load and flat peak load according to time periods; extracting features of each type of power load data and its corresponding meteorological parameter data to obtain feature subsets of each type of power load; constructing an LSTM-DNN hybrid neural network model architecture, using a training data set to train and optimize the parameters of the LSTM-DNN hybrid neural network model to obtain a load forecasting model; after preprocessing and feature extraction of real-time data, input it into the load forecasting model for prediction, de-normalize the prediction results, and complete short-term load forecasting.
[0008] As a preferred solution of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in the present invention, the preprocessing of power load data and meteorological parameter data includes the following steps: processing missing values of power load data, if a single power load data is missing, the weighted average method is used for interpolation, if multiple consecutive data are missing, the trend analysis method is used for interpolation; processing missing values of meteorological parameter data, if a single meteorological parameter data is missing, the weighted average method is used for interpolation, if multiple consecutive data are missing, the multivariate regression model is used for prediction and interpolation; processing outliers of power load data, using statistical methods to preliminarily screen the power load data, remove outliers, and use a linear regression model to correct suspicious outliers; processing outliers of meteorological parameter data, establishing a multi-dimensional judgment standard based on meteorological parameter type, observation time and observation location, using statistical methods to identify outliers, and using the local average method for correction; normalizing all power load data and meteorological parameter data.
[0009] As a preferred solution of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in the present invention, if a single power load data is missing, the weighted average method is used for interpolation, and the specific formula is as follows:
[0010]
[0011] Among them, L day,i is the load value at the i-th moment on the day, ω1 and ω2 are weighting coefficients, and L year,day,i is the load value at the i-th moment on the day-th day of the year-th day.
[0012] If the data of a single meteorological parameter is missing, the weighted average method is used for interpolation. The specific formula is as follows:
[0013]
[0014] in, For day day a i The meteorological parameter data of the weather factor at the i-th moment, is the weighting coefficient.
[0015] As a preferred solution of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in the present invention, the power load data is divided into three types: peak load, valley load and flat peak load, including the following steps: constructing a dynamic time period division module, applying a clustering algorithm to analyze the daily power load curve, and automatically identifying different types of power load time periods; setting a seasonal adjustment mechanism, dynamically adjusting clustering parameters and time period division standards according to the electricity consumption characteristics of different seasons; establishing a weekday and weekend distinction function, and formulating different power load classification standards for weekdays and weekends respectively; configuring a power load gradient analysis module, and setting a transition zone between peak, flat peak and valley; constructing a power load intensity classification subsystem, in time Based on the segment division, secondary classification is carried out according to the power load intensity; a special date processing algorithm is configured to set separate classification standards for holidays and major event days; a data-driven dynamic threshold setting function is adopted, and statistical methods are used to adaptively determine the peak, flat and valley power load thresholds; a multi-dimensional classification module is set up, and the machine learning algorithm model is applied to classify according to the time period, power load intensity and environmental factors to generate preliminary classification results; a classification result optimization module is constructed to optimize and adjust the preliminary classification results by comprehensively considering various factors; a classification result storage and update mechanism is set up to associate the classification results with the original power load data for storage, and the machine learning algorithm model is updated regularly; various types of power load data are normalized.
[0016] As a preferred solution of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in the present invention, wherein: obtaining the feature subsets of various types of power loads includes the following steps: performing time series decomposition on the power load data to extract trend, seasonal and periodic features; calculating the statistical features of the power load data; performing frequency domain analysis on the power load data to extract frequency domain features; constructing the lag features of the power load data to capture time dependence; performing dimensionality reduction processing on the meteorological parameter data, calculating the correlation coefficient between the meteorological parameters and the power load, and selecting high correlation features; extracting date-related features; standardizing the trend, seasonal and periodic features, statistical features, frequency domain features, lag features, high correlation features, and date-related features; using a composite feature selection method based on correlation analysis and random forest importance scoring to screen the feature subsets; based on the screened feature subsets, constructing the feature matrix of peak, trough and flat-peak power loads.
[0017] As a preferred solution of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in the present invention, wherein: constructing the LSTM-DNN hybrid neural network model architecture includes the following steps: constructing the LSTM-DNN hybrid neural network model architecture; configuring the LSTM network structure and the DNN network structure; defining the loss function; dividing the feature subset data into a training data set, a verification data set and a test data set according to a preset ratio; inputting the training data set into the hybrid neural network for training, and obtaining a hybrid neural network suitable for high, medium and low loads by iteratively optimizing the weights and bias of the network; using the test data set to test the trained hybrid neural network, comparing the error between the predicted result and the actual value, using multiple evaluation indicators for comprehensive evaluation, and performing secondary training and adjustment on the hybrid neural network; using the secondary trained and adjusted LSTM-DNN hybrid neural network model as a load forecasting model.
[0018] As a preferred solution of the short-term load forecasting method based on LSTM-DNN hybrid neural network described in the present invention, wherein: multiple evaluation indicators include mean percentage absolute error MAPE, root mean square error RMSE and prediction accuracy FA, the specific formula is as follows:
[0019]
[0020] in, is the load forecast value at the i-th moment, y i is the actual load value at the i-th moment, For L i Number of daily load nodes of type load data.
[0021] In the second aspect, an embodiment of the present invention provides a short-term load forecasting system based on an LSTM-DNN hybrid neural network, which includes a data acquisition module for collecting power load data and meteorological parameter data; a data preprocessing module for preprocessing the power load data and meteorological parameter data; a load classification module for dividing the power load data into three types: peak load, valley load and flat load according to time periods; a feature extraction module for extracting features of each type of power load data and its corresponding meteorological parameter data to obtain feature subsets of each type of power load; a model construction and training module for constructing an LSTM-DNN hybrid neural network model architecture, using a training data set to train and optimize the parameters of the LSTM-DNN hybrid neural network model to obtain a load forecasting model; a load forecasting module for preprocessing and feature extracting real-time data, inputting it into the load forecasting model for prediction, de-normalizing the prediction results, and completing short-term load forecasting.
[0022] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program instructions are executed by the processor, the steps of the short-term load forecasting method based on the LSTM-DNN hybrid neural network as described in the first aspect of the present invention are implemented.
[0023] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program instructions are executed by a processor, the steps of the short-term load forecasting method based on the LSTM-DNN hybrid neural network as described in the first aspect of the present invention are implemented.
[0024] The beneficial effects of the present invention are as follows: the present invention takes into account the impact of various weather factors on load forecasting, can conduct a more comprehensive and in-depth analysis of load changes, and reveal the objective reasons for load changes; through data preprocessing methods such as missing value completion and outlier correction, it effectively solves common data problems such as incomplete historical data; the hybrid neural network algorithm is used to train and optimize historical data, which can make full use of the high efficiency of various algorithms, improve the processing speed of the entire forecasting process, and more accurately predict future load changes; the load is divided into three categories according to time periods: peak, trough, and flat peak, and three hybrid neural network load forecasting models are generated, so that the model is more suitable for various types of loads and the accuracy of load forecasting is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 The framework flow chart of the short-term load forecasting method based on LSTM-DNN hybrid neural network.
[0027] Figure 2 This is a structural diagram of the LSTM-DNN network hybrid model of the short-term load forecasting method based on the LSTM-DNN hybrid neural network.
[0028] Figure 3 It is the neural unit of the LSTM network of the short-term load forecasting method based on the LSTM-DNN hybrid neural network.
[0029] Figure 4 The load forecasting flow chart of the short-term load forecasting method based on LSTM-DNN hybrid neural network.
[0030] Figure 5This is a comparison chart of the algorithm model effects of the short-term load forecasting method based on the LSTM-DNN hybrid neural network.
[0031] Figure 6 Computer equipment diagram of the short-term load forecasting method based on LSTM-DNN hybrid neural network. DETAILED DESCRIPTION
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0034] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0035] Example 1
[0036] Reference Figure 1 to Figure 6 , which is the first embodiment of the present invention, and provides a short-term load forecasting method based on LSTM-DNN hybrid neural network, comprising:
[0037] S1: Collect power load data and meteorological parameter data.
[0038] Specifically, the collected historical load data can come from the monitoring and recording equipment of the power system, and the collected weather data includes temperature, precipitation, air humidity, atmospheric pressure, wind speed, cloud thickness and atmospheric composition, which are recorded as weather data sets.
[0039] S2: Preprocess the power load data and meteorological parameter data.
[0040] Specifically, the following steps are included:
[0041] S2.1: Process missing values for power load data.
[0042] Preferably, if a single power load data is missing, the weighted average method is used for interpolation, and the specific formula is as follows:
[0043]
[0044] Among them, L day,i is the load value at the i-th moment on the day, ω1 and ω2 are weighting coefficients, and L year,day,i is the load value at the i-th moment on the day-th day of the year-th day.
[0045] If multiple consecutive data are missing, trend analysis method is used for interpolation.
[0046] S2.2: Process missing values for meteorological parameter data.
[0047] Preferably, if a single meteorological parameter data is missing, the weighted average method is used for interpolation, and the specific formula is as follows:
[0048]
[0049] in, For day day a i The data of the weather factor at the i-th moment, is the weighting coefficient.
[0050] If multiple consecutive data are missing, a multivariate regression model is used for prediction and interpolation.
[0051] S2.3: Perform outlier processing on power load data.
[0052] Specifically, statistical methods are first used to preliminarily screen the power load data and eliminate outliers, and then a linear regression model is used to correct suspicious outliers.
[0053] S2.4: Perform outlier processing on meteorological parameter data.
[0054] Specifically, a multi-dimensional judgment standard is established according to the type of meteorological parameters, observation time and observation location, statistical methods are used to identify outliers, and then the local average method is used for correction.
[0055] S2.5: Normalize all power load data and meteorological parameter data.
[0056] It should be noted that in order to prevent the absolute value from being too large and causing the neural network output to be saturated, the data needs to be normalized and converted into a value between [0,1]. The normalization formula is:
[0057]
[0058] in, is the normalized data, x n is the original data, x max is the maximum value of the data, x min is the minimum value of the data.
[0059] S3: Based on multi-dimensional dynamic analysis, the power load data is divided into three types: peak load, valley load and flat peak load.
[0060] Specifically, a dynamic time period division module is constructed, and the K-Means clustering algorithm based on cosine similarity is applied to analyze the daily power load curve to automatically identify different types of power load periods. The calculation formula of cosine similarity is:
[0061]
[0062] Among them, L i and L j are the load data sequences of the i-th period and the j-th period respectively, M is the number of sampling points of the load sequence, and m and n are both intermediate variables.
[0063] Furthermore, a seasonal adjustment mechanism is set up to dynamically adjust clustering parameters and time period division standards according to the electricity consumption characteristics of different seasons; a weekday / weekend distinction function is established to formulate different power load classification standards for weekdays and weekends; a power load gradient analysis module is configured to set transition zones between peaks, flat peaks and valleys to avoid sudden changes in power load types; a power load intensity classification subsystem is constructed to perform secondary classification based on power load intensity based on time period division; a special date processing algorithm is configured to set separate classification standards for holidays and major event days; a data-driven dynamic threshold setting function is adopted to use statistical methods to adaptively determine Determine the peak, flat and valley power load thresholds; set up a multi-dimensional classification module, combine time period, power load intensity and environmental factors, apply machine learning algorithm model for classification, and generate preliminary classification results; configure fuzzy logic application system so that power load data can belong to multiple types at the same time and calculate the degree of membership; build a classification result optimization module, comprehensively consider various factors, optimize and adjust the preliminary classification results; set up a classification result storage and update mechanism, associate the classification results with the original power load data for storage, and regularly update the machine learning algorithm model; normalize various types of power load data to prepare for subsequent modeling and analysis.
[0064] S4: Extract features of various types of power load data and their corresponding meteorological parameter data to obtain feature subsets of various types of power loads.
[0065] Preferably, the power load data is decomposed into time series to extract trend, seasonal and cyclical characteristics; the statistical characteristics of the power load data are calculated, including basic statistics such as mean, variance, skewness, and kurtosis; frequency domain analysis of the power load data is performed to extract frequency domain characteristics; the lag characteristics of the power load data are constructed to capture time dependence; the meteorological parameter data is subjected to dimensionality reduction processing, the correlation coefficient between the meteorological parameters and the power load is calculated, and features with high correlation are selected; date-related features are extracted, such as weekday / weekend identification, holiday identification, etc.; all extracted features are standardized; a composite feature selection method based on correlation analysis and random forest importance scoring is used to screen feature subsets; based on the screened feature subsets, a feature matrix of peak, trough and flat-peak power loads is constructed.
[0066] Among them, a composite feature selection method based on correlation analysis and random forest importance scoring is adopted, and the feature subset screening includes: calculating the Pearson correlation coefficient between each feature and the target variable (power load), and selecting the features whose absolute value of the correlation coefficient is greater than the preset threshold; using the random forest algorithm to sort the feature importance, and selecting the features whose importance scores are in the top N%; taking the union of the features selected by the above two methods as the final feature subset.
[0067] Among them, constructing the characteristic matrix of peak, trough and flat peak power loads includes: grouping the filtered features according to the peak, trough and flat peak time periods divided in S3; time aligning the features of each time period to ensure that the features correspond to the power load data of the corresponding time period one by one; combining the features of each time period with the corresponding power load data to form three characteristic matrices of peak, trough and flat peak respectively; and performing a final data check on each characteristic matrix to ensure data integrity and consistency.
[0068] S5: Build the LSTM-DNN hybrid neural network model architecture, train and optimize the parameters of the LSTM-DNN hybrid neural network model to obtain the load forecasting model.
[0069] Specifically, the following steps are included:
[0070] S5.1: Build the LSTM-DNN hybrid neural network model architecture.
[0071] Preferably, a hybrid architecture of a long short-term memory artificial neural network (LSTM) and a deep neural network (DNN) is selected, wherein the LSTM network is used for feature extraction and the DNN network is used for load forecasting. The LSTM-DNN hybrid neural network model architecture is as follows: Figure 2 As shown in the figure, by innovatively combining the time series feature extraction capability of the LSTM network and the nonlinear mapping capability of the DNN network, multi-scale feature learning of power load is achieved.
[0072] S5.2: Configure the LSTM network structure.
[0073] Specifically, a multi-layer network is set up, and the number of neurons in each layer increases in sequence, namely 4, 8, 12, 32, and 64; the calculation formula of the LSTM neural unit is defined, including the forget gate, input gate, input node, output gate, state unit state, and intermediate output. Each neuron is as follows Figure 3 The specific formula shown is as follows:
[0074] f t =σ(W fx x t +W fh h t-1 +b f )
[0075] i t =σ(W ix x t +W ih h t-1 +b i )
[0076] g t =φ(W gx x t +W gh h t-1 +b g )
[0077] o t =σ(W ox x t +W oh h t-1 +b o )
[0078] S t =g t ⊙i t +S t-1 ⊙f t
[0079] h t =φ(S t )⊙o t
[0080] Among them, f t 、i t , g t , o t , S t 、h t They are respectively the forget gate, input gate, input node, output gate, state unit state and intermediate output, W fx , W fh , W ix , Wih , W gx , W gh , W ox , W oh are the response weight coefficient matrices, b f 、b i 、b g 、b o are bias terms, σ is the sigmoid function, φ is the tanh function, and ⊙ is a logical operator.
[0081] Among them, σ is φ is
[0082] Furthermore, a random dropout mechanism is introduced between each layer of the neural network to prevent overfitting; the output data dimension is set to Where Day is L i Days of type load data, For L i Number of daily load nodes of type load data.
[0083] S5.3: Configure the DNN network structure.
[0084] Specifically, multiple hidden layers (three layers in the present invention) are designed, and the input layer is the output data of (64) LSTMs, that is, The number of neurons in each hidden layer is increased in sequence, and they are 128, 256, and 521 respectively; the output layer is set to the load forecast result, and the output data dimension is the same as L i The number of daily load nodes of the type load data is the same, that is, the output data dimension is And the activation function selected by DNN is a nonlinear activation function.
[0085] S5.4: Define the loss function for parameter optimization and performance evaluation during model training.
[0086] Preferably, the loss function will be used as the optimization target in the subsequent network training, verification and adjustment process. The specific formula is as follows:
[0087]
[0088] in, is the load forecast value at the i-th moment, y i is the actual load value at the i-th moment, For L i Number of daily load nodes of type load data.
[0089] S5.5: Divide the feature subset data into a training data set, a validation data set, and a test data set according to a preset ratio.
[0090] It should be noted that the preset ratio is 8:1:1, where the training set is used to optimize the parameters of the hybrid neural network, the validation set is used to adjust the selection of model parameters, and the test set is used to verify the predictive performance of the model.
[0091] S5.5: Input the training data set into the hybrid neural network for training, and obtain a hybrid neural network suitable for high, medium and low loads by iteratively optimizing the weights and bias of the network.
[0092] Preferably, the peak, flat and valley power load characteristic matrices constructed in S4.8 are respectively input into the LSTM-DNN hybrid neural network; the training parameters, including learning rate, batch size, number of training rounds, etc., are set; the back propagation algorithm is combined with the stochastic gradient descent optimization method to minimize the loss function defined in S5.4; in each training round, the weights and biases of the LSTM layer and the DNN layer are updated in turn; the model performance is regularly evaluated on the validation data set, and an early stopping strategy is adopted to prevent overfitting; the loss value changes and validation set performance indicators during the training process are recorded; when the preset number of training rounds is reached or the early stopping condition is met, the training process is terminated; and the trained model parameters, including the weights and biases of the LSTM layer and the DNN layer, are saved.
[0093] For example, the early stopping conditions include the following situations: the validation set loss has not improved for N consecutive epochs, the improvement in the validation set loss is less than a certain threshold, the number of training rounds reaches the preset maximum value, the performance indicators of the validation set (such as MAPE, RMSE, etc.) no longer improve, and the gap between the training set loss and the validation set loss begins to increase significantly, indicating that the model may begin to overfit.
[0094] S5.6: Use the test data set to test the trained hybrid neural network, compare the error between the predicted result and the actual value, use multiple evaluation indicators for comprehensive evaluation, and perform secondary training and adjustment on the hybrid neural network.
[0095] It should be noted that the multiple evaluation indicators include mean percentage absolute error (MAPE), root mean square error (RMSE) and forecast accuracy (FA). The specific formulas are as follows:
[0096]
[0097]
[0098] in, is the load forecast value at the i-th moment, y i is the actual load value at the i-th moment, For L i Number of daily load nodes of type load data.
[0099] S5.7: The secondary trained and adjusted LSTM-DNN hybrid neural network model is used as the load forecasting model.
[0100] S6: After real-time data preprocessing and feature extraction, the data is input into the load forecasting model for forecasting, and the forecasting results are de-normalized to complete the short-term load forecasting.
[0101] Specifically, the denormalized expression is:
[0102]
[0103] in, is the normalized data, x n is the original data, x max is the maximum value of the data, x min is the minimum value of the data.
[0104] Furthermore, the present embodiment also provides a short-term load forecasting system based on an LSTM-DNN hybrid neural network, including a data acquisition module for collecting power load data and meteorological parameter data; a data preprocessing module for preprocessing the power load data and meteorological parameter data; a load classification module for dividing the power load data into three types: peak load, valley load and flat peak load according to time periods; a feature extraction module for extracting features from each type of power load data and its corresponding meteorological parameter data to obtain feature subsets for each type of power load; a model construction and training module for constructing an LSTM-DNN hybrid neural network model architecture, using a training data set to train and optimize the parameters of the LSTM-DNN hybrid neural network model to obtain a load forecasting model; a load forecasting module for preprocessing and feature extracting real-time data, inputting it into the load forecasting model for prediction, de-normalizing the prediction results, and completing short-term load forecasting.
[0105] This embodiment also provides a computer device, which is suitable for the short-term load forecasting method based on LSTM-DNN hybrid neural network, including a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the short-term load forecasting method based on LSTM-DNN hybrid neural network proposed in the above embodiment.
[0106] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0107] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the short-term load forecasting method based on the LSTM-DNN hybrid neural network proposed in the above embodiment is implemented.
[0108] In summary, the present invention takes into account the impact of various weather factors on load forecasting, can conduct a more comprehensive and in-depth analysis of load changes, and reveal the objective reasons for load changes; through data preprocessing methods such as missing value completion and outlier correction, it effectively solves common data problems such as incomplete historical data; uses a hybrid neural network algorithm to train and optimize historical data, which can make full use of the efficiency of various algorithms, improve the processing speed of the entire forecasting process, and more accurately predict future load changes; divides the load into three categories according to time periods: peak, trough, and flat peak, and generates three hybrid neural network load forecasting models, making the model more suitable for various types of loads and improving the accuracy of load forecasting.
[0109] Example 2
[0110] Reference Figure 1 to Figure 6 , which is the second embodiment of the present invention, provides a short-term load forecasting method based on LSTM-DNN hybrid neural network. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0111] In order to verify the scientificity and reliability of the method proposed in this scheme, this paper uses more than 420,000 pieces of power load data and meteorological data from 2021 to 2023 in a certain province as the data set, and the selected features are shown in Table 1. The model structure diagram is shown in Figure 2 shown.
[0112] Table 1 Selected features
[0113]
[0114] Furthermore, abnormal data processing is performed. Historical load data and meteorological data may contain abnormal data due to communication errors or data loss, which will affect the prediction accuracy of the prediction model and need to be eliminated. The analytical analysis and correction methods provided in this solution are used to identify bad data and supplement the missing data. Data standardization is performed, and the original data is linearly transformed using min-max standardization.
[0115] Furthermore, the load data and meteorological data from January 2021 to May 2023 are used as the training data set, and June to December 2023 are used as the testing data set.
[0116] Furthermore, the calculation results are compared with the prediction results of the classic ARIMA model, random forest model and LSTM network model. This scheme continuously conducts short-term day-ahead load forecasts from June to December 2021, and calculates the average absolute percentage error and compares it with the prediction results of the ARIMA method, random forest method and LSTM network model method after parameter tuning. The results show that the average accuracy of this scheme method in short-term day-ahead load forecasting is higher than that of the other three models, as shown in Table 2.
[0117] Table 2 Comparison indicators of this scheme and other methods
[0118] Model MAPE FA ARIMA 0.02170 97.82 Random Forest 0.0137 98.63 LSTM Network 0.0238 97.62 LSTM-DNN Network 0.0111 98.89
[0119] Furthermore, Table 3 is a summary table of the actual and predicted load values and absolute percentage errors in one day for different algorithm models. Figure 5 It is a line chart of the predicted value and the actual value of the algorithm model. Figure 5 It can be seen that the four algorithm models have good results in predicting the actual load of the next day.
[0120] Table 3 Summary table
[0121]
[0122] It can be seen from Table 3 that the load prediction curve predicted by the method proposed in this scheme has the highest accuracy and is basically consistent with the change trend of the actual curve.
[0123] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A short-term load forecasting method based on LSTM-DNN hybrid neural network, characterized by: include, Collect power load data and meteorological parameter data; Preprocessing of power load data and meteorological parameter data; Based on multi-dimensional dynamic analysis, the power load data is divided into three types: peak load, valley load and flat peak load; Extract features of various types of power load data and their corresponding meteorological parameter data to obtain feature subsets of various types of power loads; Construct the LSTM-DNN hybrid neural network model architecture, use the training data set to train and optimize the parameters of the LSTM-DNN hybrid neural network model, and obtain the load forecasting model; After real-time data preprocessing and feature extraction, it is input into the load forecasting model for prediction, and the prediction results are de-normalized to complete the short-term load forecast.
2. The short-term load forecasting method based on LSTM-DNN hybrid neural network according to claim 1, characterized in that: The preprocessing of the power load data and the meteorological parameter data comprises the following steps: Process missing values of power load data. If a single power load data is missing, the weighted average method is used for interpolation. If multiple consecutive data are missing, the trend analysis method is used for interpolation. Process missing values of meteorological parameter data. If a single meteorological parameter data is missing, the weighted average method is used for interpolation. If multiple consecutive data are missing, the multivariate regression model is used for prediction and interpolation. Process outliers in power load data. Statistical methods are used to preliminarily screen the power load data, remove outliers, and use linear regression models to correct suspicious outliers; Process outliers in meteorological parameter data. Establish multi-dimensional judgment criteria based on meteorological parameter type, observation time and observation location, use statistical methods to identify outliers, and use the local average method to correct them; All power load data and meteorological parameter data are normalized.
3. The short-term load forecasting method based on LSTM-DNN hybrid neural network as claimed in claim 2 is characterized in that: If a single power load data is missing, the weighted average method is used for interpolation. The specific formula is as follows: Among them, L day,i is the load value at the i-th moment on the day, ω1 and ω2 are weighting coefficients, and L year,day,i is the load value at the i-th moment on the day-th day of the year-th day; If the data of a single meteorological parameter is missing, the weighted average method is used for interpolation. The specific formula is as follows: Among them, A day,ai,i For day day a i The meteorological parameter data of the weather factor at the i-th moment, ω ai,1 ,ω ai,2 is the weighting coefficient.
4. The short-term load forecasting method based on LSTM-DNN hybrid neural network according to claim 1, characterized in that: The method of dividing the power load data into three types, namely, peak load, valley load and flat peak load, comprises the following steps: Build a dynamic time segmentation module, apply clustering algorithm to analyze daily power load curves, and automatically identify different types of power load time periods; Set up a seasonal adjustment mechanism to dynamically adjust clustering parameters and time period division criteria based on electricity consumption characteristics in different seasons; Establish a function to distinguish between weekdays and weekends, and formulate different power load classification standards for weekdays and weekends; Configure the power load gradient analysis module to set transition zones between peaks, flat peaks and valleys; Construct a power load intensity classification subsystem, and perform secondary classification based on power load intensity on the basis of time period division; Configure special date processing algorithms and set separate classification standards for holidays and major event days; Adopt data-driven dynamic threshold setting function, using statistical methods to adaptively determine peak, flat and valley power load thresholds; Set up a multi-dimensional classification module, combine time period, power load intensity and environmental factors, apply machine learning algorithm model for classification, and generate preliminary classification results; Construct a classification result optimization module to optimize and adjust the preliminary classification results by comprehensively considering various factors; Set up a classification result storage and update mechanism to associate the classification results with the original power load data and store them, and regularly update the machine learning algorithm model; Normalize various types of power load data.
5. The short-term load forecasting method based on LSTM-DNN hybrid neural network as claimed in claim 4 is characterized in that: The step of obtaining the characteristic subsets of each type of power load comprises the following steps: Perform time series decomposition of power load data to extract trend, seasonality and periodicity characteristics; Calculate statistical characteristics of power load data; Conduct frequency domain analysis of power load data and extract frequency domain features; Constructing hysteresis features of power load data to capture time dependence; Perform dimensionality reduction on meteorological parameter data, calculate the correlation coefficient between meteorological parameters and power load, and select high correlation features; Extract date related features; Standardizing the trend, seasonal and periodic features, the statistical features, the frequency domain features, the lag features, the high correlation features, and the date-related features; A composite feature selection method based on correlation analysis and random forest importance scoring was used to screen feature subsets; Based on the screened feature subset, the feature matrix of peak, valley and flat-peak power loads is constructed.
6. The short-term load forecasting method based on LSTM-DNN hybrid neural network according to claim 1, characterized in that: The construction of the LSTM-DNN hybrid neural network model architecture includes the following steps: Build the LSTM-DNN hybrid neural network model architecture; Configure LSTM network structure and DNN network structure; Define the loss function; Divide the feature subset data into training data set, validation data set and test data set according to the preset ratio; The training data set is input into the hybrid neural network for training, and the weights and bias of the network are optimized iteratively to obtain a hybrid neural network suitable for high, medium and low loads; Use the test data set to test the trained hybrid neural network, compare the error between the predicted result and the actual value, use multiple evaluation indicators for comprehensive evaluation, and conduct secondary training and adjustment of the hybrid neural network; The secondary trained and adjusted LSTM-DNN hybrid neural network model is used as the load forecasting model.
7. The short-term load forecasting method based on LSTM-DNN hybrid neural network according to claim 6 is characterized in that: The multiple evaluation indicators include mean percentage absolute error MAPE, root mean square error RMSE and prediction accuracy FA, and the specific formula is as follows: in, is the load forecast value at the i-th moment, y i is the actual load value at the i-th moment, For L i Number of daily load nodes of type load data.
8. A short-term load forecasting system based on LSTM-DNN hybrid neural network, based on the short-term load forecasting method based on LSTM-DNN hybrid neural network according to any one of claims 1 to 7, characterized in that: Also includes, Data acquisition module, used to collect power load data and meteorological parameter data; A data preprocessing module is used to preprocess the power load data and meteorological parameter data; The load classification module is used to classify the power load data into three types: peak load, valley load and flat peak load according to the time period; A feature extraction module is used to extract features from various types of power load data and their corresponding meteorological parameter data to obtain feature subsets of various types of power loads; The model building and training module is used to build the LSTM-DNN hybrid neural network model architecture, use the training data set to train and optimize the parameters of the LSTM-DNN hybrid neural network model, and obtain the load forecasting model; The load forecasting module is used to preprocess and extract features of real-time data, input it into the load forecasting model for forecasting, perform de-normalization on the forecasting results, and complete short-term load forecasting.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the short-term load forecasting method based on the LSTM-DNN hybrid neural network described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method and system for predicting load of thermal power plant
CN119397412A
Active response load prediction method and system based on hybrid neural network
CN119726665A
Active response load prediction method and system based on hybrid neural network
CN119726665B
Large electric power model training optimization method based on stochastic gradient descent variant
CN119740684A
Power large model training optimization method based on stochastic gradient descent variants
CN119740684B
