Adaptive prediction method, system, device and medium for multi-category power load
Through the adaptive prediction method of multi-category power loads, the power load prediction model is dynamically optimized and adjusted, which solves the problem of difficulty in adaptive changes in power load prediction in the existing technology, realizes efficient allocation and management of power resources, and improves the efficiency of the power system. Stability and reliability.
Patent Information
- Application Number
- CN202410926935.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing power load forecasting methods are difficult to adapt to load changing trends and respond quickly, resulting in insufficient operating efficiency and reliability of the power system and inability to effectively optimize the deployment and management of power resources.
Adopting an adaptive forecasting method for multi-category power loads, through wavelet analysis and weighted moving average model, dynamically optimize and adjust the adaptability and response speed of the load forecasting model, and combine the changing trends of different time granularities to optimize and reconstruct the load sequence and perform adaptive Forecast and allocate power resources.
While ensuring prediction accuracy, it can quickly adapt and respond to changing load demands, improve the efficiency of optimal deployment and management of power resources, reduce energy consumption, and improve the operational stability and reliability of the power system.
Smart Images

Figure CN118468042B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power load forecasting, and in particular to a method, system, computer equipment and storage medium for adaptively forecasting multi-category power loads. Background Art
[0002] With the rapid development of modern power systems, grid management is facing increasingly complex challenges, especially in the prediction and management of power loads. Different types of power loads change rapidly and have their own characteristics, which requires the load forecasting model to be not only accurate, but also highly adaptable and responsive.
[0003] The existing power load forecasting methods mainly focus on how to improve the accuracy of forecast results, and do not involve research on improving the forecast response of preset models. In practical applications, the data granularity of different time scales (such as hours, days, weeks, months, years, etc.) will not only affect the forecast results of the forecast model, but also bring challenges to the adaptability and sensitivity of the forecast model. Therefore, it is difficult for the existing power load forecasting methods to meet the application requirements of quickly adapting to load changes while ensuring the accuracy of the forecast, and thus it is difficult to ensure the efficiency and reliability of the power system operation, and it is also impossible to provide reliable support for the optimal allocation and management of power resources. Summary of the invention
[0004] The purpose of the present invention is to provide an adaptive prediction method for multiple categories of power loads, so as to solve the application defects of existing power load prediction methods that are unable to adapt to load change trends and ensure rapid response, and are difficult to ensure the operating efficiency and reliability of the power system. Based on the time characteristics of different types of power loads combined with the frequency and amplitude of load changes, the adaptability and response speed of the load prediction model are dynamically optimized and adjusted. While ensuring the accuracy of prediction of various types of power loads, it can also adaptively perceive the changing trends of loads at different time granularities, quickly adapt to and respond to load change needs, improve the optimization and allocation and management efficiency of power resources, improve the utilization efficiency of power resources, reduce energy consumption, and thus provide reliable guarantee for the operating stability and reliability of the power system.
[0005] In order to achieve the above objectives, it is necessary to provide an adaptive prediction method, system, computer equipment and storage medium for multiple categories of power loads in response to the above technical problems.
[0006] In a first aspect, an embodiment of the present invention provides a method for adaptively predicting multiple types of power loads, the method comprising the following steps:
[0007] Obtaining a load sequence to be analyzed of multiple categories of electric loads, and performing wavelet analysis on the load sequence to be analyzed of each category of electric loads to obtain a corresponding weight sequence to be analyzed; the multiple categories of electric loads include commercial loads, civil loads, industrial loads, agricultural loads and public loads;
[0008] The weight sequences to be analyzed of various types of power loads are input into a preset weighted moving average model to perform weight prediction for a target period, and the obtained weight sequence for a target period is input into a pre-built time granularity load prediction model to perform load prediction, thereby obtaining a corresponding load prediction sequence for a target period;
[0009] Obtaining the initial time scale of various types of power loads, performing scale transformation processing on the corresponding target period load forecast sequence according to the initial time scale, and performing change trend analysis on the obtained time scale transformed load sequence, and adaptively obtaining the corresponding optimal time scale according to the corresponding change trend analysis results;
[0010] According to the optimal time scale of various types of power loads, the corresponding load sequence to be analyzed is optimized and reconstructed, and the obtained optimal scale load sequence is input into the pre-built category adaptive load forecasting model for load forecasting to obtain the corresponding category adaptive load forecast value;
[0011] According to the optimal time scale of various categories of power loads, the corresponding load response period is obtained, and within the load response period, the corresponding target power resources are deployed according to the corresponding category adaptive load prediction value.
[0012] Furthermore, the step of performing wavelet analysis on the load sequences to be analyzed of various types of power loads to obtain corresponding weight sequences to be analyzed includes:
[0013] Obtaining the load time granularity of the load sequence to be analyzed, and obtaining the corresponding wavelet basis function and the optimal decomposition layer number according to the load time granularity;
[0014] According to the wavelet basis function and the corresponding optimal decomposition level, the load sequence to be analyzed is subjected to multi-scale wavelet decomposition to obtain time-frequency wavelet coefficients corresponding to the optimal decomposition level;
[0015] According to the energy distribution of each time-frequency wavelet coefficient, the corresponding time-frequency weight sequence is obtained;
[0016] According to all time-frequency weight sequences, the corresponding weight sequence to be analyzed is obtained.
[0017] Furthermore, the steps of the time granularity load forecasting model include:
[0018] Acquire historical load sequences of multiple categories of power loads in different historical time periods; the historical load sequences include historical load subsequences of multiple time granularities;
[0019] Perform wavelet analysis on the historical load sequences of all historical time periods of various types of power loads to obtain multi-scale historical weight sequences corresponding to different time granularities; the multi-scale historical weight sequences include a preset number of decomposition historical weight subsequences;
[0020] According to the historical load subsequences of various categories of power loads at different time granularities and the corresponding multi-scale historical weight sequences, the support vector machine regression model is trained to obtain the time granularity load forecasting model corresponding to different time granularities.
[0021] Furthermore, the step of performing a scale transformation process on the corresponding target period load forecast sequence according to the initial time scale includes:
[0022] When the time scale of the target period load forecast sequence is greater than the initial time scale, each load data in the target period load forecast sequence is divided into a first preset number of load data according to the initial time scale to obtain a corresponding time scale transformed load sequence;
[0023] When the time scale of the target period load forecast sequence is smaller than the initial time scale, a second preset number of adjacent load data in the target period load forecast sequence is aggregated according to the initial time scale to obtain a corresponding time scale transformed load sequence.
[0024] Furthermore, the step of performing a change trend analysis on the obtained time scale transformed load sequence and adaptively obtaining a corresponding optimal time scale according to the corresponding change trend analysis result includes:
[0025] According to a preset time window, a simple moving average process is performed on the time scale transformed load sequence to obtain a corresponding window mean load sequence;
[0026] Performing first-order difference calculation on the window mean load sequence to obtain a corresponding load change rate sequence;
[0027] When a plurality of consecutive load change rate values in the load change rate sequence exceed a preset positive change rate threshold, it is determined that the corresponding category of power load is on an upward trend, and the initial time scale is adaptively adjusted according to the obtained time granularity reduction ratio to obtain the optimal time scale;
[0028] When multiple consecutive load change rate values in the load change rate sequence exceed a preset negative change rate threshold, it is determined that the corresponding category of power load is on a downward trend, and the initial time scale is adaptively adjusted according to the acquired time granularity magnification ratio to obtain the optimal time scale.
[0029] Furthermore, the class adaptive load forecasting model includes a plurality of time granularity load forecasting models; the time granularity load forecasting model is obtained by weighted integration of a plurality of preset candidate network models;
[0030] The steps of constructing the class adaptive load forecasting model include:
[0031] Obtain historical load data sets of various types of power loads at different time granularities, and divide the historical load data sets into a training set and a validation set;
[0032] According to the training sets at different time granularities, multiple preset candidate network models are trained respectively to obtain corresponding multiple time granularity candidate load forecasting models;
[0033] Cross-validating each time granularity candidate load forecasting model respectively to obtain corresponding performance evaluation results, and obtaining corresponding model weights according to the performance evaluation results;
[0034] According to the candidate load forecasting models of each time granularity, weighted integration is performed according to the corresponding model weights to obtain the corresponding time granularity load forecasting model.
[0035] Further, the performance evaluation results include model prediction accuracy;
[0036] The step of obtaining the corresponding model weight according to the performance evaluation result comprises:
[0037] The model prediction accuracy of each time granularity candidate load prediction model is compared with a preset prediction performance threshold to obtain a corresponding performance comparison result;
[0038] According to the performance comparison results of the candidate load forecasting models at each time granularity, the corresponding preset model weights are optimized and adjusted through an adaptive learning rate strategy to obtain the model weights.
[0039] In a second aspect, an embodiment of the present invention provides an adaptive prediction system for multiple types of power loads, the system comprising:
[0040] A load weight analysis module is used to obtain a load sequence to be analyzed of multiple categories of electric loads, and to perform wavelet analysis on the load sequence to be analyzed of each category of electric loads to obtain a corresponding weight sequence to be analyzed; the multiple categories of electric loads include commercial loads, civil loads, industrial loads, agricultural loads and public loads;
[0041] The target load forecasting module is used to input the weight sequence to be analyzed of various types of power loads into a preset weighted moving average model to perform target period weight forecasting, and input the obtained target period weight sequence into a pre-built time granularity load forecasting model to perform load forecasting, and obtain the corresponding target period load forecasting sequence;
[0042] The scale adaptive adjustment module is used to obtain the initial time scale of various types of power loads, and according to the initial time scale, the corresponding target period load forecast sequence is scaled, and the obtained time scale transformed load sequence is analyzed for change trend, and according to the corresponding change trend analysis results, the corresponding optimal time scale is adaptively obtained;
[0043] The load adaptive prediction module is used to optimize and reconstruct the corresponding load sequence to be analyzed according to the optimal time scale of various types of power loads, and input the obtained optimal scale load sequence into the pre-built category adaptive load prediction model for load prediction to obtain the corresponding category adaptive load prediction value;
[0044] The power resource allocation module is used to obtain the corresponding load response period according to the optimal time scale of various categories of power loads, and allocate the corresponding target power resources according to the corresponding category adaptive load prediction value within the load response period.
[0045] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0046] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0047] The present application provides an adaptive prediction method, system, computer device and storage medium for multiple categories of electric loads. The method can achieve the acquisition of load sequences to be analyzed for multiple categories of electric loads, including commercial loads, civil loads, industrial loads, agricultural loads and public loads. Wavelet analysis is performed on the load sequences to be analyzed for each category of electric loads to obtain corresponding weight sequences to be analyzed. The weight sequences to be analyzed for each category of electric loads are input into a preset weighted moving average model for target period weight prediction. The obtained target period weight sequence is input into a pre-built time granularity load prediction model for load prediction. After obtaining the corresponding target period load prediction sequence, the initial time scale of each category of electric loads is obtained. According to the initial time scale, the corresponding target period load forecast sequence is scaled and processed, and the obtained time scale transformed load sequence is analyzed for change trend, and the corresponding optimal time scale is adaptively obtained according to the corresponding change trend analysis result, and then according to the optimal time scale of various categories of power loads, the corresponding load sequence to be analyzed is optimized and reconstructed, and the obtained optimal scale load sequence is input into the pre-constructed category adaptive load forecasting model for load forecasting to obtain the corresponding category adaptive load forecast value, and the corresponding load response cycle is obtained according to the optimal time scale of various categories of power loads, and within the load response cycle, the corresponding target power resources are allocated according to the corresponding category adaptive load forecast value. Compared with the prior art, the adaptive forecasting method of multi-category power loads dynamically optimizes and adjusts the adaptability and response speed of the load forecasting model based on the time characteristics of different types of power loads combined with the frequency and amplitude of load changes, ensures the accuracy of various types of power load predictions, and can also adaptively perceive the change trend of loads with different time granularities, quickly adapt to and respond to load change needs, improve the optimization and allocation and management efficiency of power resources, improve the efficiency of power resource utilization, reduce energy consumption, and thus provide reliable guarantee for the operation stability and reliability of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of a method for adaptively predicting multiple types of power loads in an embodiment of the present invention;
[0049] Figure 2 It is a structural schematic diagram of an adaptive prediction system for multiple types of power loads in an embodiment of the present invention;
[0050] Figure 3 It is a diagram of the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical scheme and beneficial effects of the present application clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the embodiments described below are part of the embodiments of the present invention and are only used to illustrate the present invention, but are not used to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In one embodiment, Figure 1 As shown, a method for adaptive prediction of multi-category power loads is provided, comprising the following steps:
[0053] S11. Obtain a load sequence to be analyzed of multiple categories of power loads, and perform wavelet analysis on the load sequence to be analyzed of each category of power loads to obtain a corresponding weight sequence to be analyzed; the multiple categories of power loads include commercial loads, civil loads, industrial loads, agricultural loads and public loads; the corresponding load sequence to be analyzed can be understood as a historical load sequence used to predict the load for future periods, and the historical load sequence can be a time series of any time granularity within a certain time range obtained according to a preset data acquisition frequency, that is, the time granularity can be 15 minutes, 1 hour or 1 day, etc., which is not specifically limited this time.
[0054] Taking into account that the prediction analysis of data of different time granularities will not only affect the accuracy of the load prediction results, but also affect the adaptability and sensitivity of the load prediction model, in order to introduce the time characteristics of different types of power loads into the load prediction model to better capture the correlation and response law between historical load data and future load data, this embodiment preferably adopts time-frequency analysis of the load sequences to be analyzed of various categories of power loads, and obtains the frequency distribution characteristics of load data at different time granularities in different historical time periods, which are used for the subsequent construction of load prediction models of different time granularities to ensure the reliability of load prediction analysis at different time granularities. Correspondingly, the weight sequence to be analyzed can be understood as a plurality of different levels of time-frequency weight sequences obtained by performing multi-scale wavelet analysis on the load sequence to be analyzed and based on the energy distribution characteristics of the wavelet coefficients of each layer; specifically, the steps of performing wavelet analysis on the load sequences to be analyzed of various categories of power loads to obtain the corresponding weight sequences to be analyzed include:
[0055] The load time granularity of the load sequence to be analyzed is obtained, and the corresponding wavelet basis function and the optimal number of decomposition layers are obtained according to the load time granularity; wherein, the load time granularity can be understood as the acquisition frequency of each load data in the load sequence to be analyzed, which is not specifically limited here; in this embodiment, in order to ensure the reliability of wavelet analysis, different load time granularities are preferably adapted to different wavelet basis functions and the corresponding optimal number of decomposition layers. For example, for data with a time granularity of 15 minutes, Daubechies wavelet db4 is used for wavelet decomposition and the number of decomposition layers is set to 5; for data with a time granularity of 1 day, Symlet wavelet sym6 is used for wavelet decomposition and the number of decomposition layers is set to 3; however, for data with a time granularity of 1 hour, compared with 15 minutes, Clock granularity belongs to lower frequency data, but it is higher frequency than 1-day granularity data. You can consider using wavelet bases suitable for medium and low frequency signal analysis, such as Daubechies wavelet (db series) or Symlet wavelet (sym series). The specific choice of wavelet base depends on the specific characteristics of the data and the purpose of analysis: if you want to obtain more high-frequency details, you can choose Daubechies wavelets with more zero points, such as db6 or db8; if you focus on maintaining low-frequency characteristics, you can choose Symlet wavelets; the corresponding number of decomposition layers can also be determined according to the frequency resolution and data details you want to analyze. It is preferably set to 3 or 4 layers, which can provide sufficient time-frequency resolution and avoid unnecessary complexity introduced by over-decomposition.
[0056] According to the wavelet basis function and the corresponding optimal decomposition level, the load sequence to be analyzed is subjected to multi-scale wavelet decomposition to obtain time-frequency wavelet coefficients corresponding to the optimal decomposition level; wherein, the multi-scale wavelet decomposition can be performed using MATLAB's wavedec function or a similar library function in Python (such as pywt.wavedec of PyWavelets), and the selected wavelet basis function and decomposition level are input to perform wavelet decomposition on the power load data of the corresponding time granularity to obtain time-frequency wavelet coefficients of different decomposition levels, and each decomposition level corresponds to components of different frequency ranges in the load sequence to be analyzed.
[0057] According to the energy distribution of each time-frequency wavelet coefficient, the corresponding time-frequency weight sequence is obtained; wherein the time-frequency weight sequence can be understood as the time series data composed of the energy weights of each coefficient node obtained based on the ratio of the energy value of each node coefficient (a data element in the wavelet coefficient sequence) in each time-frequency wavelet coefficient to the sum of the energy of the node coefficients at the corresponding position in all time-frequency wavelet coefficients (coefficient node energy weight); for example, the load sequence to be analyzed with a time granularity of 1 day is decomposed to obtain the time-frequency wavelet coefficients X1~X5, and the i-th time-frequency wavelet coefficient can be represented by X i ={X i1,......,X im}, where m represents the dimension of the time-frequency wavelet coefficients, X im For the Xth i The mth node coefficient in the time-frequency wavelet coefficients, and the energy value of the node coefficient is X 2 im , the corresponding coefficient node energy weight is ; Thus we can get the Xth i The energy weight of each node coefficient in the time-frequency wavelet coefficients is obtained by combining the energy weight values of each node coefficient in time sequence to obtain the corresponding time-frequency weight sequence; similarly, the time-frequency weight sequence corresponding to all time-frequency wavelet coefficients can be obtained, which will not be described in detail here.
[0058] According to all time-frequency weight sequences, the corresponding weight sequence to be analyzed is obtained; among them, the weight sequence to be analyzed can be understood as a comprehensive weight sequence composed of all time-frequency weight sequences. For example, the weight sequence to be analyzed corresponding to the load sequence to be analyzed with a time granularity of 1 day can be understood as a set of weight sequences that simultaneously includes 5 time-frequency weight sequences, namely W1, W2, W3, W4 and W5, which will not be described in detail here.
[0059] S12, input the weight sequence to be analyzed of various types of power loads into the preset weighted moving average model for target period weight prediction, and input the obtained target period weight sequence into the pre-built time granularity load prediction model for load prediction, and obtain the corresponding target period load prediction sequence; wherein, the moving window and the corresponding weight coefficient in the preset weighted moving average model can be set according to the time granularity of the actual weight sequence to be analyzed, which is not specifically limited here; the weight sequence to be analyzed of various types of power loads is calculated by the weighted moving average method for each time point in the target period, and then the corresponding target period weight sequence is obtained. After obtaining the target period weight sequence, the numpy library and pandas library in Python can be used to perform statistical analysis on the weight changes in the target period weight sequence, calculate the characteristic values such as the rate of change, mean, variance, kurtosis of the weight value under the corresponding time granularity, and judge the rationality and reliability of the weight value by setting a threshold (such as the rate of change exceeds 20%), and dynamically adjust the weight coefficient in the weighted moving average model according to the analysis results using an adaptive optimization algorithm such as Adagrad to improve the accuracy of the prediction results of the target period weight sequence.
[0060] The time granularity load forecasting model in this embodiment can be understood as a model for describing the correlation between the power load and the corresponding time-frequency weight at different time granularities, which can be obtained by training the support vector machine model based on the collected historical load time series data of various types of power loads in different historical time periods and the corresponding historical time-frequency weight time series data; specifically, the steps of the time granularity load forecasting model include:
[0061] Obtain historical load sequences of multiple categories of power loads in different historical time periods; the historical load sequences include historical load subsequences of multiple time granularities.
[0062] Wavelet analysis is performed on the historical load sequences of all historical time periods of various categories of power loads to obtain multi-scale historical weight sequences corresponding to different time granularities; the multi-scale historical weight sequence includes a preset number of decomposition historical weight subsequences; among which, the calculation method of the multi-scale historical weight sequence at different time granularities can refer to the description of the acquisition process of the weight sequence to be analyzed above, which will not be described in detail this time.
[0063] According to the historical load subsequences of various types of power loads at different time granularities and the corresponding multi-scale historical weight sequences, the support vector machine regression model is trained to obtain the time granularity load forecasting model corresponding to different time granularities; among them, the time granularity load forecasting model can be understood as a model trained at different time granularities of different types of power loads; the specific training process is as follows:
[0064] Using the support vector machine regression model SVR algorithm in the scikit-learn library, the multi-scale historical weight sequences of various types of power loads at different time granularities are used as the input features of the support vector machine regression model (SVR), and the corresponding historical load subsequences are used as output targets. The radial basis kernel function (RBF) is used to optimize the model's hyperparameters such as regularization coefficients and kernel function parameters through grid search and cross-validation (5-fold cross-validation) methods. Through model parameter learning and optimization, a mathematical model that can reflect the correlation and response law between weight data and load data is obtained. The trained time-granularity load forecasting model is applied to the weight data of the target period. Through the inference calculation of the model, the load forecast values at different time granularities in the target period are obtained, and the forecast values are compared and analyzed with the actual load data. The prediction performance and applicability of the model are evaluated using evaluation indicators such as mean square error (MSE) and mean absolute percentage error (MAPE). According to the deviation between the prediction results of the time-granularity load forecasting model and the actual load data, an online learning algorithm such as the online gradient descent method is used to update and optimize the model in real time. By continuously updating the weight parameters of the model, it can adapt to new sample data, continuously improve the prediction accuracy and robustness of the model, and enable it to adapt to the dynamic changes of load data. For example, when using the online gradient descent algorithm, the learning rate can be set to 0.01 and the batch size can be set to 100. When new load data arrives, the model parameters are updated in real time. After 1000 iterations, the MAPE index of the model is reduced from 5% to 2%, which can better adapt to the dynamic change trend of load data.
[0065] S13. Obtain the initial time scale of various categories of power loads, and according to the initial time scale, perform scale transformation processing on the corresponding target period load forecast sequence, and perform change trend analysis on the obtained time scale transformed load sequence, and adaptively obtain the corresponding optimal time scale according to the corresponding change trend analysis result; wherein, the initial time scale can be understood as the actual granularity of initial data analysis set in advance for various categories of power loads according to the time granularity characteristics of historical load data and business needs, such as hours, days, weeks, etc. The initial time scales of various categories of power loads can be the same or different, and are not specifically limited here.
[0066] Considering that the various types of power load data accessed at different times in actual applications change differently, the preset initial time scale may not meet the needs of capturing their changing characteristics. In order to adaptively perceive the real-time changing characteristics of different types of power load data and effectively improve the accuracy of subsequent power load forecasting results, this embodiment preferably performs a time scale rationality analysis on the target period load forecast sequence obtained by the above analysis, and adaptively selects the corresponding optimal time scale based on the analysis results for subsequent enhanced load forecasting. Specifically, the step of scaling the corresponding target period load forecast sequence according to the initial time scale includes:
[0067] When the time scale of the target period load forecast sequence is greater than the initial time scale, each load data in the target period load forecast sequence is sliced into a first preset number of load data according to the initial time scale to obtain a corresponding time scale transformed load sequence; wherein the first preset number can be determined according to the proportional relationship between the time scale of the target period load forecast sequence and the initial time scale, for example, when the time scale is 1 day and the initial time scale is 1 hour, the corresponding first preset number is 24; that is, assuming that the time scale of the target period load forecast sequence of a certain category of power load is 1 day, and the initial time scale corresponding to the certain category of power load is 1 hour, then each load data in the target period load forecast sequence can be sliced at a granularity of 1 hour to obtain a sub-load sequence corresponding to 24 data points, and finally the sub-load sequences obtained by slicing each load data in the original target period load forecast sequence are sequentially spliced to obtain the corresponding time scale transformed load sequence.
[0068] When the time scale of the target period load forecast sequence is smaller than the initial time scale, a second preset number of adjacent load data in the target period load forecast sequence is aggregated according to the initial time scale to obtain a corresponding time scale transformed load sequence; wherein the second preset number is also determined according to the proportional relationship between the time scale of the target period load forecast sequence and the initial time scale, for example, when the time scale is 15 minutes and the initial time scale is 1 hour, the corresponding second preset number is 4; that is, assuming that the time scale of the target period load forecast sequence of a certain category of power load is 15 minutes, and the initial time scale corresponding to the certain category of power load is 1 hour, then the 4 consecutive load data in the target period load forecast sequence can be aggregated to obtain a corresponding 1 data point, and finally the original target period load forecast sequence is converted into a time scale transformed load sequence with a dimension reduced to 1 / 4 of the previous dimension.
[0069] After the load forecast sequence of the target period is converted according to the initial time scale through the above method steps, it is possible to further perform trend analysis on the converted time scale transformed load sequence to determine whether the currently used initial time scale is reasonable, and if it is determined to be unreasonable, adaptively adjust to obtain the corresponding optimal time scale; specifically, the step of performing change trend analysis on the obtained time scale transformed load sequence and adaptively obtaining the corresponding optimal time scale according to the corresponding change trend analysis result includes:
[0070] According to the preset time window, the time scale transformed load sequence is subjected to simple moving average processing to obtain the corresponding window mean load sequence; wherein, the simple moving average processing can be understood as the use of a simple moving average (SMA) algorithm, for example, according to the preset time window size 3, the first three data points 12, 15, and 11 of the time scale transformed load sequence are averaged to obtain 12.7 as the first SMA value in the corresponding window mean load sequence; and so on, all SMA values in the corresponding window mean load sequence can be calculated.
[0071] A first-order difference calculation is performed on the window mean load sequence to obtain a corresponding load change rate sequence; wherein, the first-order difference calculation can be understood as respectively calculating the difference between two adjacent load mean data in the window mean load sequence, and finally forming a corresponding load change rate sequence. The load change direction can be judged according to the positive and negative signs of each change rate in the load change rate sequence, where a positive value indicates an upward trend and a negative value indicates a downward trend.
[0072] When multiple consecutive load change rate values in the load change rate sequence exceed the preset positive change rate threshold, it is determined that the corresponding category of power load is on an upward trend, and the initial time scale is adaptively adjusted according to the obtained time granularity reduction ratio to obtain the optimal time scale.
[0073] When multiple consecutive load change rate values in the load change rate sequence exceed a preset negative change rate threshold, it is determined that the corresponding category of power load is on a downward trend, and the initial time scale is adaptively adjusted according to the acquired time granularity magnification ratio to obtain the optimal time scale.
[0074] In this embodiment, the preset positive change rate threshold can be understood as a threshold that can show whether the upward trend is significant, and the preset negative change rate threshold can be understood as a threshold that can show whether the downward trend is significant, and both can be set according to actual application requirements. In actual applications, if the change rate of multiple consecutive time windows exceeds the positive threshold, it is determined to be a significant upward trend; if the change rate of multiple consecutive time windows exceeds the negative threshold, it is determined to be a significant downward trend; otherwise, it is determined to be a stable trend. If the load forecast sequence in the target period is in a significant upward trend, the time scale reduction mechanism is triggered. According to the load change rate distribution obtained by historical data analysis, the appropriate quantile is selected as the time granularity reduction ratio, the time granularity size is reduced to the original ratio, and then the load mean sequence and the change rate sequence are recalculated until the change rate is reduced to within the threshold or the time scale reaches the minimum granularity; if the load forecast sequence in the target period is in a significant downward trend, the time scale magnification mechanism is triggered. According to the load change rate distribution obtained by historical data analysis, the appropriate quantile is selected as the time granularity magnification ratio, the time granularity size is magnified to the original ratio, and then the load mean sequence and the change rate sequence are recalculated until the change rate rises to within the threshold or the time scale reaches the maximum granularity. If the current load is in a stable trend or the change rate does not exceed the preset threshold, the current time scale is maintained unchanged and the subsequent load changes are continuously monitored. At the same time, the adaptive threshold algorithm is used to calculate the confidence interval of the change rate threshold based on historical data. When the new change rate data exceeds the confidence interval, the threshold is automatically adjusted to adapt to the fluctuation characteristics and prediction needs of the load.
[0075] S14. According to the optimal time scale of various categories of power loads, the corresponding load sequence to be analyzed is optimized and reconstructed, and the obtained optimal scale load sequence is input into the pre-built category adaptive load forecasting model for load forecasting to obtain the corresponding category adaptive load forecasting value.
[0076] The optimal scale load sequence in this embodiment can be understood as a load data sequence obtained by performing sequence transformation on the load sequence to be analyzed according to the optimal time scale obtained by the above analysis and then performing compression and denoising processing through discrete wavelet transform; the specific acquisition process is as follows:
[0077] The load sequence to be analyzed of various types of power loads is divided or aggregated according to the optimal time scale. The specific division and aggregation methods can refer to the aforementioned process of scale transformation of the load forecast sequence in the target period; among them, for the aggregation process from a small time granularity to a large time granularity, the load sequence to be analyzed can be divided into several time windows according to the sliding window used for the corresponding aggregation, and the length of each window is equal to the corresponding optimal time scale; in each time window, the load data in the window is aggregated by the truncated mean method, and the largest and smallest outliers in the window are removed, and then the arithmetic mean of the remaining data is calculated to obtain a robust aggregation value to represent the load level of the window; the box plot method is then used to detect and remove outliers from the aggregated load data, and the upper and lower quartiles and interquartile range of the data are calculated, and the data points exceeding the upper and lower quartiles ±1.5 times the interquartile range are marked as outliers and removed. Then, the exponential smoothing method is used to smooth the processed sequence data. By setting the smoothing coefficient, each data point and its previous data point are weighted averaged to obtain the smoothed load data, that is, the scale transformation sequence after the aggregation operation is performed.
[0078] After the load data is segmented or aggregated according to the optimal time scale to obtain the corresponding scale transformation sequence, the discrete wavelet transform (DWT) is used to compress and represent it: the Daubechies wavelet function db4 can be selected to perform wavelet decomposition on the load data to obtain several wavelet coefficient sequences, and then each coefficient sequence is threshold filtered, and the coefficients less than the threshold are set to zero to achieve data compression; finally, the compressed wavelet coefficients are reconstructed to obtain a compressed and denoised load data sequence, that is, the required optimal scale load sequence is obtained, which can effectively reduce the redundancy and noise of the load sequence data.
[0079] The category adaptive load prediction model in this embodiment can be understood as an adaptive load model corresponding to various categories of power loads, and considering that the power load data that needs to be accessed and analyzed in actual applications may have multiple time granularities, in order to facilitate efficient and intelligent prediction of power load data at various time granularities, this embodiment preferably sets the category adaptive load prediction model to include multiple time granularity load prediction models, and each time granularity load prediction model is obtained by weighted integration of multiple preset candidate network models; specifically, the steps of constructing the category adaptive load prediction model include:
[0080] A historical load data set of various types of power loads at different time granularities is obtained, and the historical load data set is divided into a training set and a validation set.
[0081] According to the training sets at different time granularities, multiple preset candidate network models are trained respectively to obtain corresponding multiple time granularity candidate load forecasting models; among them, the preset candidate network models may include multiple load forecasting models such as time series models, regression models and neural network models, so as to integrate the prediction advantages of multiple models and improve the accuracy of the prediction results.
[0082] Cross-validate each time granularity candidate load forecasting model to obtain a corresponding performance evaluation result, and obtain a corresponding model weight based on the performance evaluation result; wherein, the time period for cross-validation of candidate load forecasting models of different time granularities can be set according to demand and is not specifically limited here; the specific cross-validation process includes: using k-fold cross-validation, randomly dividing the validation set into k subsets of similar size, selecting one of the subsets as the test set each time, and the remaining k-1 subsets as the training set, repeating the experiment k times, selecting a different subset as the test set each time, obtaining k model evaluation results, and taking the average value as the final performance indicator. It should be noted that when performing k-fold division, it is necessary to ensure that the sample distribution in each subset is similar to the distribution of the entire data set to avoid introducing deviations due to uneven data division. A stratified sampling method can be used to divide the data into different layers according to the time distribution, value range and other characteristics of the load data, and then random sampling is performed in each layer to ensure that the sample ratio of each layer in each subset is consistent with the original data set; and when selecting the k value, it is necessary to weigh the computational overhead and the stability of the performance evaluation. The larger the k value, the better the stability of the evaluation result, but the greater the computational overhead. The prediction performance of the model on different data subsets is obtained by cross-validation. In this embodiment, the performance evaluation results are preferably set to include model prediction accuracy, such as evaluation indicators such as mean square error and determination coefficient. For the mean square error indicator, the mean of the sum of squares of the difference between the predicted value and the true value is used to measure the prediction accuracy of the model. The smaller the mean square error, the smaller the prediction error of the model and the higher the prediction accuracy; for the determination coefficient indicator, the correlation between the model prediction value and the true value is used to measure the goodness of fit of the model. The closer the determination coefficient is to 1, the stronger the model's ability to explain the load change trend and the higher the goodness of fit. When the performance evaluation results of the candidate load forecasting models of each time granularity are obtained, an initial weighted aggregation weight can be set for each candidate load forecasting model of each time granularity according to the principle that the higher the evaluation result, the higher the model weight is set.
[0083] Considering that in actual applications, as the access load data continues to change, the performance evaluation results of each time granularity candidate load forecasting model will also change, it is necessary to dynamically adjust the corresponding model weights to ensure the validity of the final load forecasting results. In this embodiment, preferably, the step of obtaining the corresponding model weights according to the performance evaluation results includes:
[0084] The model prediction accuracy of each time granularity candidate load prediction model is compared with the preset prediction performance threshold to obtain the corresponding performance comparison result.
[0085] According to the performance comparison results of the candidate load forecasting models at each time granularity, the corresponding preset model weights are optimized and adjusted through the adaptive learning rate strategy to obtain the model weights; the specific process of optimizing and adjusting the model weights is as follows:
[0086] First, determine the time period for dynamically adjusting the weights based on the changing trend of the load data and the corresponding time granularity: use time series analysis methods such as moving average and exponential smoothing to extract trends and remove noise from the load data to obtain a smoothed load trend curve; then calculate the first-order and second-order differences of the load data, and judge the rising, falling or stable trend of the load data by the sign and size of the differences. The first-order difference reflects the speed of load change, and the second-order difference reflects the acceleration of load change; perform piecewise linear fitting on the load data, fit the linear trend of the load data through optimization algorithms such as the least squares method, and judge the long-term change trend of the load data based on the slope and intercept of the linear trend; based on the results of the above time series analysis, differential analysis and piecewise linear fitting, make a comprehensive judgment on the changing trend of the load data, and set the corresponding dynamic adjustment period of the model weights according to the corresponding comprehensive judgment results.
[0087] For each time-granularity candidate load forecasting model, the model's forecasting accuracy is calculated based on its forecasting performance in the current dynamic adjustment cycle. The model's forecasting accuracy is compared with the preset forecasting performance threshold: if the model's forecasting accuracy is higher than the threshold, the model's weight coefficient in the combined forecast is increased; if the model's forecasting accuracy is lower than the threshold, the model's weight coefficient in the combined forecast is reduced. When adjusting the model's weight coefficient, an adaptive learning rate strategy is used to dynamically adjust the model's weight update amplitude based on the gap between the model's forecasting accuracy and the threshold: if the model's forecasting accuracy is significantly higher than the threshold, a larger learning rate is used to speed up the increase in the model's weight; if the model's forecasting accuracy is slightly higher than the threshold, a smaller learning rate is used to slow down the increase in the model's weight; if the model's forecasting accuracy is lower than the threshold, a larger learning rate is used to speed up the decrease in the model's weight. The adaptive learning rate is used to achieve smooth adjustment and rapid convergence of the weight coefficient. In the process of weight adjustment, regularization technology can also be used to constrain and limit the model weights. L1 regularization can be considered, that is, adding a penalty term to the sum of the absolute values of the model weights. The penalty term is proportional to the L1 norm of the model weights, which is used to control the sparsity of the model weights, so that some model weights tend to 0, thereby achieving feature selection and model simplification; according to the characteristics of the load data and the complexity of the model, select the appropriate regularization technology, adjust the coefficient of the regularization term through cross-validation and other methods, find the optimal regularization parameter, make the model weight more stable and interpretable, and avoid the weight coefficient of some models being too large or too small, resulting in the combined prediction results being overly dependent on a certain model. In addition, in the process of adaptive updating of model weights, online learning and incremental learning and other technologies are used to continuously adjust and optimize the model weights according to the real-time changes of load data. The influence of historical data can also be attenuated by introducing a forgetting factor, so that the model can adapt to the changing trend of load data in a timely manner, improve the real-time and accuracy of load forecasting, and at the same time, through incremental learning, the parameters of the model are locally updated without retraining the entire model, reducing computing overhead and storage costs.
[0088] According to the corresponding model weights, weighted integration is performed on the candidate load prediction models of each time granularity to obtain the corresponding time granularity load prediction model; wherein, the time granularity load prediction model can be understood as a model obtained by weighted aggregation of various time granularity candidate load prediction models through bagging ensemble learning mode, that is, the actual prediction result obtained by using this model for load prediction is equal to the weighted average of the corresponding prediction results of each time granularity candidate load prediction model.
[0089] This embodiment integrates multiple time-granularity candidate load forecasting models by weighted integration, and updates the model weights of each time-granularity candidate load forecasting model according to the model prediction performance and weight dynamic adjustment strategy, so that the integrated category adaptive load forecasting model can adapt to the changing trend of load data and improve the continuity and stability of the prediction; at the same time, based on the integrated prediction results, the load response model can be optimized and enhanced by using an adaptive enhancement strategy, and the structure and parameters of the model can be automatically adjusted according to the prediction error and response time of the load response model in actual application, such as increasing or decreasing the number of basic models, adjusting the hyperparameters of the model, etc., so that the category adaptive load forecasting model can achieve the optimal prediction performance and response speed at different time granularities through adaptive enhancement. In addition, in the process of adaptive enhancement, an error feedback mechanism can be used to pass the prediction error of the category adaptive load forecasting model as a feedback signal to each time-granularity candidate load forecasting model, and by adjusting the training data and loss function of the time-granularity candidate load forecasting model, it can pay more attention to samples with large prediction errors, thereby improving the overall prediction accuracy and generalization ability of the category adaptive load forecasting model.
[0090] S15. According to the optimal time scale of various categories of power loads, the corresponding load response period is obtained, and within the load response period, the corresponding target power resources are allocated according to the corresponding category adaptive load forecast value; wherein, the load response period can be understood as a load response time period determined according to the current optimal time scale of different categories of power loads, which is convenient for dynamic monitoring and real-time tracking of the load response process. For example, the load forecast value can be collected once an hour, or once a day. The specific time scale can be determined according to the actual situation, and the load response periods of different categories of power loads can be the same or different.
[0091] In each response cycle of various types of power loads, according to the prediction results of the corresponding category adaptive load forecasting model, the power load in the future period is rolled and dynamically updated, and by setting the prediction time window and sliding step, the real-time prediction and tracking of the load change trend at different time scales in the future can be achieved. At the same time, based on the load forecast results in the future period, the confidence interval, prediction distribution and other methods are used to measure the uncertainty of the load forecast results, such as calculating the confidence interval width and variance of the load forecast value, reflecting the discrete degree and volatility risk of the forecast results; scenario analysis, robust optimization and other methods can also be used to generate multiple possible load scenarios based on the uncertainty of load forecasting, such as high load scenarios, low load scenarios, etc., and formulate corresponding power resource allocation strategies for different scenarios to improve the power system's ability to cope with load forecast uncertainty. For example, by using methods such as stochastic optimization and chance constrained programming, the uncertainty of load forecasting is introduced into power resource optimization. By setting probability constraints or risk metrics, the optimal configuration strategy of power resources is solved under the premise of meeting certain reliability requirements. Balance the economy and reliability of load response; in addition, it is also possible to dynamically adjust the power resource allocation strategy by adopting methods such as rolling optimization and adaptive control in combination with the real-time changes in load forecast uncertainty. For example, according to the increase in load forecast uncertainty, the regulation capacity of power storage and the activation scale of demand response are increased in real time to ensure the flexibility and adaptability of the power system. Through multi-objective optimization, intelligent decision-making and other methods, power resources are optimally configured and dispatched, and multiple goals such as power supply and demand balance, economy, and reliability are fully considered to formulate the optimal power resource allocation plan. For example, according to the peak and valley distribution of load forecast, the start and stop and output adjustment of generator sets are reasonably arranged, and according to the geographical distribution of load forecast, the topological structure and flow distribution of the distribution network are optimized to ensure the safe and stable operation of the power system.
[0092] The embodiment of the present application provides a method for obtaining a load sequence to be analyzed of multiple categories of electric loads including commercial loads, civil loads, industrial loads, agricultural loads and public loads, performing wavelet analysis on the load sequences to be analyzed of various categories of electric loads respectively, obtaining corresponding weight sequences to be analyzed, inputting the weight sequences to be analyzed of various categories of electric loads into a preset weighted moving average model for target period weight prediction, and inputting the obtained target period weight sequence into a pre-built time granularity load prediction model for load prediction. After obtaining the corresponding target period load prediction sequence, the initial time scale of various categories of electric loads is obtained, the corresponding target period load prediction sequence is scale-transformed according to the initial time scale, and the obtained time scale-transformed load sequence is analyzed for change trend, the corresponding optimal time scale is adaptively obtained according to the corresponding change trend analysis result, and then the optimal time scale of various categories of electric loads is adaptively obtained according to the optimal time scale of various categories of electric loads. , optimize and reconstruct the corresponding load sequence to be analyzed and input the obtained optimal scale load sequence into the pre-built category adaptive load forecasting model for load forecasting to obtain the corresponding category adaptive load forecast value, and obtain the corresponding load response period according to the optimal time scale of various categories of power loads, and allocate the corresponding target power resources according to the corresponding category adaptive load forecast value within the load response period. It can dynamically optimize and adjust the adaptability and response speed of the load forecasting model based on the time characteristics of different types of power loads combined with the frequency and amplitude of load changes. While ensuring the accuracy of various types of power load forecasts, it can also adaptively perceive the changing trends of loads at different time granularities, quickly adapt to and respond to load change needs, improve the optimization and allocation and management efficiency of power resources, improve the efficiency of power resource utilization, and reduce energy consumption, thereby providing reliable protection for the operation stability and reliability of the power system.
[0093] It should be noted that although the steps in the above flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders.
[0094] In one embodiment, Figure 2 As shown, a multi-category power load adaptive prediction system is provided, the system comprising:
[0095] The load weight analysis module 1 is used to obtain a load sequence to be analyzed of multiple categories of electric loads, and perform wavelet analysis on the load sequence to be analyzed of each category of electric loads to obtain a corresponding weight sequence to be analyzed; the multiple categories of electric loads include commercial loads, civil loads, industrial loads, agricultural loads and public loads;
[0096] The target load forecasting module 2 is used to input the weight sequence to be analyzed of various types of power loads into a preset weighted moving average model to perform target period weight forecasting, and input the obtained target period weight sequence into a pre-built time granularity load forecasting model to perform load forecasting, and obtain the corresponding target period load forecasting sequence;
[0097] The scale adaptive adjustment module 3 is used to obtain the initial time scale of various types of power loads, and according to the initial time scale, the corresponding target period load forecast sequence is scaled, and the obtained time scale transformed load sequence is analyzed for change trend, and according to the corresponding change trend analysis result, the corresponding optimal time scale is adaptively obtained;
[0098] The load adaptive prediction module 4 is used to optimize and reconstruct the corresponding load sequence to be analyzed according to the optimal time scale of various types of power loads, and input the obtained optimal scale load sequence into the pre-built category adaptive load prediction model for load prediction to obtain the corresponding category adaptive load prediction value;
[0099] The power resource allocation module 5 is used to obtain the corresponding load response period according to the optimal time scale of various types of power loads, and allocate the corresponding target power resources according to the corresponding type of adaptive load prediction value within the load response period.
[0100] For the specific limitations of the adaptive prediction system for multi-category power loads, please refer to the limitations of the adaptive prediction method for multi-category power loads mentioned above, and the corresponding technical effects can also be obtained equivalently, which will not be repeated here. Each module in the above-mentioned adaptive prediction system for multi-category power loads can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0101] Figure 3 FIG. 1 shows an internal structure diagram of a computer device in an embodiment, and the computer device may specifically be a terminal or a server. Figure 3As shown, the computer device includes a processor, a memory, a network interface, a display, a camera and an input device connected through a system bus. Among them, 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 network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an adaptive prediction method for multiple categories of power loads is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0102] It can be understood by those skilled in the art that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device to which the present application scheme is applied. The specific computing device may include more or fewer components than shown in the figure, or combine certain components, or have the same component arrangement.
[0103] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0104] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0105] In summary, an embodiment of the present invention provides an adaptive prediction method and system for multiple categories of power loads, wherein the adaptive prediction method for multiple categories of power loads realizes obtaining a load sequence to be analyzed of multiple categories of power loads including commercial loads, civil loads, industrial loads, agricultural loads and public loads, respectively performing wavelet analysis on the load sequence to be analyzed of each category of power load to obtain a corresponding weight sequence to be analyzed, inputting the weight sequence to be analyzed of each category of power load into a preset weighted moving average model for target period weight prediction, and inputting the obtained target period weight sequence into a pre-constructed time granularity load prediction model for load prediction. After obtaining the corresponding target period load prediction sequence, the initial time scale of each category of power load is obtained, the corresponding target period load prediction sequence is scaled according to the initial time scale, and the obtained time scale transformed load sequence is analyzed for a change trend, and the corresponding optimal time scale is adaptively obtained according to the corresponding change trend analysis result. , and then according to the optimal time scale of various categories of power loads, the corresponding load sequence to be analyzed is optimized and reconstructed, and the obtained optimal scale load sequence is input into the pre-built category adaptive load forecasting model for load forecasting to obtain the corresponding category adaptive load forecast value, and the corresponding load response period is obtained according to the optimal time scale of various categories of power loads, and within the load response period, the corresponding target power resources are allocated according to the corresponding category adaptive load forecast value. The technical solution can dynamically optimize and adjust the adaptability and response speed of the load forecasting model based on the time characteristics of different types of power loads combined with the frequency and amplitude of load changes. While ensuring the accuracy of various types of power load forecasts, it can also adaptively perceive the changing trends of loads at different time granularities, quickly adapt to and respond to load change needs, improve the optimization and allocation and management efficiency of power resources, improve the efficiency of power resource utilization, and reduce energy consumption, thereby providing reliable protection for the operation stability and reliability of the power system.
[0106] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be directly referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. It should be noted that the technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0107] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.
Claims
1. An adaptive forecasting method for multi-category power loads, It is characterized in that The method comprises the following steps: Obtaining a load sequence to be analyzed of multiple categories of electric loads, and performing wavelet analysis on the load sequence to be analyzed of each category of electric loads to obtain a corresponding weight sequence to be analyzed; the multiple categories of electric loads include commercial loads, civil loads, industrial loads, agricultural loads and public loads; The weight sequences to be analyzed of various types of power loads are input into a preset weighted moving average model to perform weight prediction for a target period, and the obtained weight sequence for a target period is input into a pre-built time granularity load prediction model to perform load prediction, thereby obtaining a corresponding load prediction sequence for a target period; Obtaining the initial time scale of various types of power loads, performing scale transformation processing on the corresponding target period load forecast sequence according to the initial time scale, and performing change trend analysis on the obtained time scale transformed load sequence, and adaptively obtaining the corresponding optimal time scale according to the corresponding change trend analysis results; the initial time scale is the initial data analysis time granularity pre-set according to the time granularity characteristics of historical load data and business requirements; According to the optimal time scale of various types of power loads, the corresponding load sequence to be analyzed is optimized and reconstructed, and the obtained optimal scale load sequence is input into the pre-built category adaptive load forecasting model for load forecasting to obtain the corresponding category adaptive load forecast value; According to the optimal time scale of various types of power loads, the corresponding load response period is obtained, and within the load response period, the corresponding target power resources are deployed according to the corresponding type of adaptive load prediction value; The steps of constructing the time granularity load forecasting model include: Acquire historical load sequences of multiple categories of power loads in different historical time periods; the historical load sequences include historical load subsequences of multiple time granularities; Perform wavelet analysis on the historical load sequences of all historical time periods of various types of power loads to obtain multi-scale historical weight sequences corresponding to different time granularities; the multi-scale historical weight sequences include a preset number of decomposition historical weight subsequences; According to the historical load subsequences of various categories of power loads at different time granularities and the corresponding multi-scale historical weight sequences, the support vector machine regression model is trained to obtain the time granularity load forecasting model corresponding to different time granularities.
2. The adaptive prediction method for multiple types of power loads according to claim 1, It is characterized in that The step of performing wavelet analysis on the load sequences to be analyzed of various types of power loads to obtain corresponding weight sequences to be analyzed comprises: Obtaining the load time granularity of the load sequence to be analyzed, and obtaining the corresponding wavelet basis function and the optimal decomposition layer number according to the load time granularity; the load time granularity is the acquisition frequency of each load data in the load sequence to be analyzed; According to the wavelet basis function and the corresponding optimal decomposition level, the load sequence to be analyzed is subjected to multi-scale wavelet decomposition to obtain time-frequency wavelet coefficients corresponding to the optimal decomposition level; According to the energy distribution of each time-frequency wavelet coefficient, the corresponding time-frequency weight sequence is obtained; According to all time-frequency weight sequences, the corresponding weight sequence to be analyzed is obtained.
3. The adaptive prediction method for multiple types of power loads according to claim 1, It is characterized in that The step of performing a scale transformation process on the corresponding target period load forecast sequence according to the initial time scale comprises: When the time scale of the target period load forecast sequence is greater than the initial time scale, each load data in the target period load forecast sequence is divided into a first preset number of load data according to the initial time scale to obtain a corresponding time scale transformed load sequence; When the time scale of the target period load forecast sequence is smaller than the initial time scale, a second preset number of adjacent load data in the target period load forecast sequence is aggregated according to the initial time scale to obtain a corresponding time scale transformed load sequence.
4. The adaptive prediction method for multiple types of power loads according to claim 1, It is characterized in that The step of performing a change trend analysis on the obtained time scale transformed load sequence and adaptively obtaining the corresponding optimal time scale according to the corresponding change trend analysis result comprises: According to a preset time window, a simple moving average process is performed on the time scale transformed load sequence to obtain a corresponding window mean load sequence; Performing first-order difference calculation on the window mean load sequence to obtain a corresponding load change rate sequence; When a plurality of consecutive load change rate values in the load change rate sequence exceed a preset positive change rate threshold, it is determined that the corresponding category of power load is on an upward trend, and the initial time scale is adaptively adjusted according to the obtained time granularity reduction ratio to obtain the optimal time scale; When multiple consecutive load change rate values in the load change rate sequence exceed a preset negative change rate threshold, it is determined that the corresponding category of power load is on a downward trend, and the initial time scale is adaptively adjusted according to the acquired time granularity magnification ratio to obtain the optimal time scale.
5. The adaptive prediction method for multiple types of power loads according to claim 1, It is characterized in that The class adaptive load forecasting model includes a plurality of time granularity load forecasting models; the time granularity load forecasting model is obtained by weighted integration of a plurality of preset candidate network models; The steps of constructing the class adaptive load forecasting model include: Obtain historical load data sets of various types of power loads at different time granularities, and divide the historical load data sets into a training set and a validation set; According to the training sets at different time granularities, multiple preset candidate network models are trained respectively to obtain corresponding multiple time granularity candidate load forecasting models; Cross-validating each time granularity candidate load forecasting model to obtain a corresponding performance evaluation result, and obtaining a corresponding model weight according to the performance evaluation result; According to the candidate load forecasting models of each time granularity, weighted integration is performed according to the corresponding model weights to obtain the corresponding time granularity load forecasting model.
6. The adaptive prediction method for multiple types of power loads according to claim 5, It is characterized in that The performance evaluation results include model prediction accuracy; The step of obtaining the corresponding model weight according to the performance evaluation result comprises: The model prediction accuracy of each time granularity candidate load prediction model is compared with a preset prediction performance threshold to obtain a corresponding performance comparison result; According to the performance comparison results of the candidate load forecasting models at each time granularity, the corresponding preset model weights are optimized and adjusted through an adaptive learning rate strategy to obtain the model weights.
7. An adaptive forecasting system for multi-category power loads, It is characterized in that The system comprises: A load weight analysis module is used to obtain a load sequence to be analyzed of multiple categories of electric loads, and to perform wavelet analysis on the load sequence to be analyzed of each category of electric loads to obtain a corresponding weight sequence to be analyzed; the multiple categories of electric loads include commercial loads, civil loads, industrial loads, agricultural loads and public loads; The target load forecasting module is used to input the weight sequence to be analyzed of various types of power loads into a preset weighted moving average model to perform target period weight forecasting, and input the obtained target period weight sequence into a pre-built time granularity load forecasting model to perform load forecasting, and obtain the corresponding target period load forecasting sequence; The scale adaptive adjustment module is used to obtain the initial time scale of various types of power loads, and according to the initial time scale, the corresponding target period load forecast sequence is scaled, and the change trend analysis is performed on the obtained time scale transformed load sequence, and the corresponding optimal time scale is adaptively obtained according to the corresponding change trend analysis results; the initial time scale is the initial data analysis time granularity pre-set according to the time granularity characteristics of historical load data and business requirements; The load adaptive prediction module is used to optimize and reconstruct the corresponding load sequence to be analyzed according to the optimal time scale of various types of power loads, and input the obtained optimal scale load sequence into the pre-built category adaptive load prediction model for load prediction to obtain the corresponding category adaptive load prediction value; The power resource allocation module is used to obtain the corresponding load response period according to the optimal time scale of various types of power loads, and allocate the corresponding target power resources according to the corresponding type of adaptive load prediction value within the load response period; The steps of constructing the time granularity load forecasting model include: Acquire historical load sequences of multiple categories of power loads in different historical time periods; the historical load sequences include historical load subsequences of multiple time granularities; Perform wavelet analysis on the historical load sequences of all historical time periods of various types of power loads to obtain multi-scale historical weight sequences corresponding to different time granularities; the multi-scale historical weight sequences include a preset number of decomposition historical weight subsequences; According to the historical load subsequences of various categories of power loads at different time granularities and the corresponding multi-scale historical weight sequences, the support vector machine regression model is trained to obtain the time granularity load forecasting model corresponding to different time granularities.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Short-term Load Forecasting Method Based on TCN and IPSO-LSSVM Combined Model
AU2020104000A4
A short-term load forecasting method for smart grid based on environmental feedback
CN109508835A
Load prediction method based on discrete wavelet transformation and optimization of a minimum support vector machine
CN109871977A
Full-cycle load prediction method considering load jump
CN112085256A
Power load prediction method and device, computer equipment and storage medium
CN113255973A
