Load prediction method and system for comprehensive energy power grid in cold region

The AdaBoost algorithm and neural network are used to process the power load data of the cold region integrated energy grid to determine the importance of reference data, solve the problem of inaccurate power load prediction in the existing technology, and achieve more accurate power regulation and grid stability.

CN118868083AActive Publication Date: 2024-10-29国网黑龙江省电力有限公司牡丹江供电公司 +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411327834.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-10-29
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

Existing methods use the least square method to fit historical power load data in cold region integrated energy grids, which can easily lead to over-fitting or under-fitting, resulting in inaccurate power load prediction, inability to accurately obtain power conditions, and affecting power grid regulation.

Method used

The AdaBoost algorithm and neural network are used to obtain the importance values ​​of the training samples and reference data in each base classifier, filter out matching pairs, and determine the final importance value of each reference data for predicting power load data.

Benefits of technology

It improves the accuracy and efficiency of power load prediction, ensures the accurate regulation of power by the cold region integrated energy grid, and supports the stable operation and optimal dispatch of the power grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118868083A_ABST
    Figure CN118868083A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electric power grids, in particular to a load prediction method and system for a cold region comprehensive energy power grid. The method comprises the following steps: acquiring reference data of a cold region comprehensive energy power grid at each moment; acquiring a training sample according to the distribution condition of the reference data; processing the training sample through an AdaBoost algorithm, and obtaining a first importance degree value according to the training result of the base classifier and the feature distribution condition of the reference data in the base classifier; obtaining a final importance degree value of the reference data according to the size and the similarity condition of the first importance degree values between the adjacent base classifiers; and predicting power load data based on the final importance value and the reference data. According to the method, the final importance degree value of each type of reference data is obtained, the influence degree of each type of reference data on the electric quantity load data is accurately determined, and then the electric quantity load data at each moment is accurately predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power grid control technology, specifically to a load forecasting method and system for a cold-region integrated energy power grid. Background Technology

[0002] Predicting electricity load data helps cold-region integrated energy grids regulate future electricity demand, ensuring stable operation and avoiding problems caused by insufficient or excessive power supply. Current methods predict electricity load data by fitting historical electricity load data to cold-region integrated energy grids using the least squares method. However, in reality, various factors influence electricity load data, such as temperature, wind speed, and solar radiation intensity. Directly fitting historical electricity load data with the least squares method can easily lead to overfitting or underfitting, resulting in inaccurate predicted electricity load data. This makes it difficult to accurately grasp the electricity situation in cold-region integrated energy grids and hinders accurate power supply adjustments. Summary of the Invention

[0003] To address the technical problem that directly fitting historical electricity load data from a cold-region integrated energy grid using the least squares method easily leads to overfitting or underfitting, resulting in inaccurate predicted electricity load data, the present invention aims to provide a load forecasting method and system for cold-region integrated energy grids. The specific technical solution adopted is as follows: The first aspect of this invention provides a load forecasting method for a cold-region integrated energy grid, the method comprising the following steps: Acquire reference data for each type of cold-region integrated energy grid at each moment within a preset time period; wherein, the reference data includes electricity load data; Based on the distribution of reference data within each preset local reference time period, obtain the training samples for each local reference time period and the reference power load data for each training sample. The training samples are processed using the AdaBoost algorithm. Based on the similarity between the training power load data and the reference power load data of each training sample in each base classifier, and the feature distribution of each reference data in each base classifier, the first importance value of each reference data in each base classifier is obtained. Based on the changes in the weights of training samples between adjacent base classifiers, base classifier matching pairs are selected; based on the magnitude of the first importance value and the similarity of each reference data within each base classifier matching pair, the final importance value of each reference data is obtained. The neural network for predicting power load data is trained based on each type of reference data and the final importance value of each type of reference data at each moment within a preset time period, as well as the power load data at the next adjacent moment. The trained neural network for predicting power load data is then used to predict the power load data at each moment.

[0004] Furthermore, the method for obtaining the local reference time period is as follows: The power load data within a preset time period is fitted into a power load curve, and the power load curve is divided into local curves based on the fluctuation of the power load curve. Obtain the variance of the electricity load data in each local curve, and use it as the first variance of the corresponding local curve; When the first variance is less than the preset fluctuation threshold, the local time period corresponding to the local curve is used as the local reference time period.

[0005] Furthermore, the method for obtaining the training samples for each local reference time period and the reference power load data for each training sample is as follows: The mean of each type of reference data within each local reference time period is constructed into an array, which serves as the training sample for each local reference time period; The mean of all power load data within the local reference time period corresponding to each training sample is used as the reference power load data for each training sample.

[0006] Furthermore, the method for obtaining the first importance value is as follows: For any base classifier, the difference between the training power load data and the reference power load data of each training sample in the base classifier is taken as the first difference; The number of all first differences greater than a preset first difference threshold is used as the number of training samples that are incorrect for the base classifier. The ratio of the number of errors in the training samples to the total number of training samples is used as the error rate of the base classifier. Obtain the order in which each reference data is used as a classification feature in the base classifier and label them from smallest to largest to determine the classification feature number of each reference data in the base classifier; Based on the classification feature number of each reference data in the base classifier and the error rate, obtain the first importance value of each reference data in the base classifier.

[0007] Furthermore, the method for obtaining the first importance value is as follows: For any base classifier, the classification feature index of each reference data in the base classifier is negatively correlated and the normalized result is positively correlated with the first importance value of the corresponding reference data in the base classifier. The error rate of the base classifier is negatively correlated with the first importance value of each reference data in the base classifier.

[0008] Furthermore, the method for obtaining the base classifier matching pairs is as follows: Cluster the weights of the training samples in each base classifier to obtain the weight clusters in each base classifier; The center weight of the weight cluster to which the weight of each training sample in each base classifier belongs is used as the reference weight of each training sample in each base classifier. The mean of the reference weight differences of all training samples between any two adjacent base classifiers is obtained as the weight change rate between the corresponding two adjacent base classifiers; when the weight change rate is greater than the preset weight change rate threshold, the corresponding two adjacent base classifiers are considered as a base classifier matching pair.

[0009] Furthermore, the method for obtaining the final importance value is as follows: For any base classifier matching pair, obtain the second importance value of each reference data in the base classifier matching pair based on the magnitude and fluctuation of the first importance value of each reference data in the base classifier matching pair; For any type of reference data, the mean of the second importance values ​​of that type of reference data in all base classifier matching pairs is taken as the important feature value of that type of reference data. The result of normalizing the important feature values ​​is taken as the final importance value of this type of reference data.

[0010] Furthermore, the formula for calculating the second importance value is as follows: In the formula, The second importance value of the a-th reference data in the matching pair of the k-th base classifier; Match the first importance value of the reference data of type a in the first base classifier of the pair to the k-th base classifier; Match the first importance value of the reference data of type a in the second base classifier within the pair to the k-th base classifier; for and The variance of ; e is the natural constant.

[0011] Furthermore, the weights of the training samples in each base classifier are clustered using the DBSCAN density clustering algorithm.

[0012] A second aspect of the present invention provides a load forecasting system for a cold-region integrated energy grid, the system comprising a data acquisition module, a preprocessing module, a first importance value acquisition module, a final importance value acquisition module, and a data processing module. The data acquisition module is used to acquire various reference data at each moment within a preset time period for the integrated energy grid in cold regions; among which, the reference data includes electricity load data; The preprocessing module is used to obtain the training samples for each local reference time period and the reference power load data for each training sample based on the distribution of reference data in each local reference time period within the preset time period. The first importance value acquisition module is used to process the training samples using the AdaBoost algorithm. Based on the similarity between the training power load data and the reference power load data of each training sample in each base classifier, and the feature distribution of each reference data in each base classifier, the first importance value of each reference data in each base classifier is obtained. The final importance value acquisition module is used to filter out base classifier matching pairs based on the changes in the weights of training samples between adjacent base classifiers; and to obtain the final importance value of each reference data based on the magnitude of the first importance value and the similarity of each reference data within each base classifier matching pair. The data processing module is used to train a neural network for predicting power load data based on each type of reference data and the final importance value of each type of reference data at each moment within a preset time period, as well as the power load data at the next adjacent moment; and to predict the power load data at each moment using the trained neural network for predicting power load data.

[0013] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of a load forecasting method for a cold-region integrated energy grid as described in the first aspect of the present invention.

[0014] The present invention has the following beneficial effects: Based on the distribution of reference data within each preset local reference time period, training samples and reference power load data for each local reference time period are obtained. This reduces the computational load of reference data and improves the efficiency and accuracy of analyzing the impact of each type of reference data on the predicted power load data. Furthermore, the AdaBoost algorithm is used to process the training samples. Based on the similarity between the training power load data and reference power load data of each training sample in each base classifier, and the feature distribution of each type of reference data in each base classifier, the first importance value of each type of reference data in each base classifier is obtained, determining the importance of each type of reference data to the predicted power load data in each base classifier. To more accurately determine the impact of each type of reference data on the predicted power load data, training data from adjacent base classifiers is then used... By analyzing the changes in sample weights, matching pairs of base classifiers are selected, improving the accuracy and efficiency of feature analysis for each type of reference data. Furthermore, based on the magnitude and similarity of the first importance value of each reference data within each base classifier matching pair, the final importance value of each reference data is obtained, accurately determining the importance of each reference data to the predicted power load data. Therefore, based on each reference data and its final importance value at each moment within a preset time period, as well as the power load data at the next adjacent moment, the neural network for predicting power load data is trained, accurately obtaining the trained neural network for predicting power load data. This allows for accurate prediction of power load data at each moment, facilitating accurate power regulation in the cold-region integrated energy grid and providing strong support for the stable operation and optimized scheduling of the cold-region integrated energy grid. Attached Figure Description

[0015] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating a load forecasting method for a cold-region integrated energy grid provided in Embodiment 1 of the present invention. Figure 2 This is a flowchart illustrating the method for obtaining the final importance value of each type of reference data provided in Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the load forecasting system for a cold-region integrated energy grid provided in Embodiment 2 of the present invention. Detailed Implementation

[0017] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of a load forecasting method and system for a cold-region integrated energy grid proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0019] The following description, in conjunction with the accompanying drawings, details the specific scheme of the load forecasting method for a cold-region integrated energy grid provided by the present invention.

[0020] The specific scenario of this invention is as follows: Existing methods predict the power load data of a cold-region integrated energy grid by performing least squares fitting on historical power load data. However, in reality, various factors influence power load data, such as temperature, wind speed, and solar radiation intensity. Directly fitting historical power load data with least squares can easily lead to overfitting or underfitting, resulting in inaccurate predicted power load data and failing to ensure the stable operation of the cold-region integrated energy grid. Therefore, this invention, based on various meteorological data within a historical time period and... The system analyzes changes in electricity load data, obtains training samples and reference electricity load data for historical time periods, and then processes the training samples using the AdaBoost algorithm to determine the impact of each type of meteorological and electricity load data on the predicted electricity load data. Based on each type of reference data and its final importance value at each moment within a preset time period, as well as the electricity load data at the next adjacent moment, the neural network for predicting electricity load data is trained. The trained neural network then accurately predicts the electricity load data at each moment, which is beneficial for the accurate regulation of electricity in the integrated energy grid in cold regions.

[0021] Example 1: This example discloses a load forecasting method for a cold-region integrated energy grid; Please see Figure 1 The diagram illustrates a flow chart of a load forecasting method for a cold-region integrated energy grid according to an embodiment of the present invention. The method includes the following steps: Step S1: Obtain each type of reference data for the cold region integrated energy grid at each moment within a preset time period; wherein, the reference data includes electricity load data.

[0022] Specifically, in practice, meteorological data affects the electricity load data in the integrated energy grid of cold regions. To improve the accurate regulation of electricity in the integrated energy grid of cold regions, this embodiment acquires various reference data for each moment within a preset time period. These reference data include electricity load data and various meteorological data, such as temperature, wind speed, solar radiation intensity, and rainfall. In this embodiment, the preset time period is set to one year, and the time interval between two adjacent moments is set to 12 hours. The preset time period is preferably selected from historical periods relatively close to the current moment, as electricity usage in the same location is unlikely to change significantly within five years. Implementers can set the preset time period and the time interval between two adjacent moments according to actual conditions; no limitation is imposed here.

[0023] Step S2: Based on the distribution of reference data in each local reference time period within the preset time period, obtain the training samples for each local reference time period and the reference power load data for each training sample.

[0024] Specifically, to accurately and efficiently analyze the impact of each reference data on the predicted electricity load data, which is beneficial for subsequent accurate prediction of electricity load data, this embodiment fits the electricity load data within a preset time period into an electricity load curve. The curve fitting method is a well-known technique and will not be elaborated further. The electricity load curve is divided into local curves using a multi-threshold OTSU algorithm. In other embodiments, the electricity load curve can be divided into local curves by setting a fluctuation range, or by manually setting other standards to divide the electricity load curve into local curves. The method for obtaining local curves is not limited here. The multi-threshold OTSU algorithm is a well-known technique and will not be elaborated further. It is known that the change in electricity load data within a preset time period is small under normal circumstances. To eliminate the interference of abnormal electricity load data, which could lead to an inability to accurately analyze the impact of each reference data on the predicted electricity load data, this embodiment obtains the variance of the electricity load data in each local curve as the first variance of the corresponding local curve. The larger the first variance, the greater the possibility of abnormality in the electricity load data in the corresponding local curve. Therefore, this embodiment sets a preset fluctuation threshold of 0.3. Implementers can set the size of the preset fluctuation threshold according to actual conditions, and this is not limited here. When the first variance is greater than or equal to a preset fluctuation threshold, it is assumed that abnormal power load data exists in the corresponding local curve, and therefore the corresponding local time period is not analyzed. Therefore, this embodiment uses the local time period corresponding to the local curve with a first variance less than the preset fluctuation threshold as the local reference time period. This allows for the analysis of reference data only within the local reference time period, improving the accuracy of the analysis of each type of reference data. This facilitates the subsequent accurate analysis of the impact of each type of reference data on the predicted power load data, i.e., determining the importance of each type of reference data to the predicted power load data, thereby accurately predicting the power load data.

[0025] To reduce computational load while maintaining the accuracy of each reference data type, this embodiment obtains the mean of each reference data type within each local reference time period and constructs it into an array, serving as the training sample for each local reference time period. It should be noted that the positions of the means of each reference data type are identical within each training sample. Simultaneously, the mean of all electricity load data within the local reference time period corresponding to each training sample is used as the reference electricity load data for that training sample, i.e., it is assumed to be the actual electricity load data corresponding to each training sample. Thus, obtaining the training samples and the reference electricity load data for each training sample facilitates the subsequent accurate determination of the influence of each reference data type on the predicted electricity load data.

[0026] Step S3: Process the training samples using the AdaBoost algorithm. Based on the similarity between the training power load data and the reference power load data of each training sample in each base classifier, and the feature distribution of each reference data in each base classifier, obtain the first importance value of each reference data in each base classifier.

[0027] Specifically, to analyze the impact of each reference data point on the predicted electricity load data, this embodiment uses the AdaBoost algorithm to process the training samples. In this embodiment, the AdaBoost algorithm is trained 100 times, meaning there are 100 base classifiers. Implementers can set the number of training iterations of the AdaBoost algorithm according to actual conditions; this is not limited here. The AdaBoost algorithm is a well-known technology and will not be described in detail here. Analyzing each base classifier, the more errors occur in the training electricity load data of the training samples in a base classifier—that is, the more deviations there are between the training electricity load data of the training samples in that base classifier and the reference electricity load data—the less accurate the training results of that base classifier are. Therefore, the degree of reference value for each type of reference data in that base classifier should be lower when analyzing its impact on the predicted electricity load data. Considering that during the training of the base classifier, the importance of each reference data in the base classifier can be obtained based on the classification features used for the node splitting of the corresponding decision tree. The closer the node corresponding to a certain reference data as a classification feature is to the root node of the decision tree corresponding to the base classifier training process, the greater the role that reference data plays in classifying the training samples, indirectly indicating a greater impact of that reference data on the predicted electricity load data. Therefore, this embodiment obtains the first importance value of each reference data in each base classifier based on the similarity between the training electricity load data and the reference electricity load data of each training sample in each base classifier, and the feature distribution of each reference data in each base classifier. The higher the first importance value, the more accurately the reference data of the corresponding type can classify the training samples in the corresponding base classifier, indirectly indicating a greater impact of the reference data of the corresponding type in the corresponding base classifier on the predicted electricity load data.

[0028] Preferably, the method for obtaining the first importance value is as follows: For any base classifier, the absolute value of the difference between the training power load data and the reference power load data of each training sample in the base classifier is obtained, and this is taken as the first difference. When the first difference is 0, it indicates that the training result of the corresponding training sample in the base classifier is correct; when the first difference is not 0, it indicates that the training result of the corresponding training sample in the base classifier has deviated. Therefore, in this embodiment, the preset first difference threshold is set to 0, and the number of all first differences greater than the preset first difference threshold is obtained, which is the number of training samples with incorrect training results in the base classifier, and is taken as the number of training samples with errors in the base classifier; the ratio of the number of training samples with errors to the total number of training samples is taken as the error rate of the base classifier. The larger the error rate, the less accurate the training result of the base classifier is, the less accurate the features of each reference data in the base classifier are, and the lower the importance of each reference data in the base classifier. Simultaneously, the order in which each type of reference data in the base classifier is used as a classification feature is obtained and numbered from smallest to largest. In this embodiment, the numbering order is set as 1, 2, 3… For example, taking the y-th type of reference data as an example, if the y-th type of reference data is the classification feature basis for dividing the root node into the first layer node, then the y-th type of reference data is numbered 1; if the y-th type of reference data is the classification feature basis for dividing the second layer node into the third layer node, then the y-th type of reference data is numbered 2; if the y-th type of reference data is the classification feature basis for dividing the third layer node into the fourth layer node, then the y-th type of reference data is numbered 3; and so on, to obtain the number of each type of reference data in the base classifier, that is, to determine the classification feature sequence number of each type of reference data in the base classifier. The implementer can set the classification feature sequence number according to the actual situation, which is not limited here. Among them, the smaller the classification feature sequence number, the more critical the corresponding type of reference data is in the training process of the base classifier, and the greater the impact of the corresponding type of reference data on the predicted power load data. Therefore, based on the classification feature index and error rate of each reference data in the base classifier, the first importance value of each reference data in the base classifier is obtained. Specifically, the classification feature index of each reference data in the base classifier is negatively correlated with, and the normalized result is positively correlated with, the first importance value of the corresponding reference data in the base classifier; the error rate of the base classifier is negatively correlated with the first importance value of each reference data in the base classifier.

[0029] As an example, let's take the y-th reference data in the i-th base classifier as an example, where the i-th base classifier is the base classifier obtained in the i-th training iteration of the AdaBoost algorithm. The formula for calculating the first importance value of the y-th reference data in the i-th base classifier is: In the formula, This represents the first importance value of the y-th reference data in the i-th base classifier; Let y be the classification feature index of the y-th reference data in the ith base classifier; Let be the error rate of the i-th base classifier; e is the natural constant. It is the first preset constant, which is greater than 0.

[0030] This embodiment will Set to 0.1 to avoid a denominator of 0; implementers can set it according to actual circumstances. The size is not limited here.

[0031] It should be noted that, The smaller the value, the better the y-th reference data can classify the training samples in the i-th base classifier, and the more important the y-th reference data is in the training process of the i-th base classifier. The larger, The larger; The smaller the value, the more accurate the training result of the i-th base classifier, and the more accurate the features of each reference data in the i-th base classifier. The larger; therefore, The larger the value, the more accurate the features of the y-th reference data in the i-th base classifier, and the greater the subsequent impact on the predicted electricity load data.

[0032] Based on the method for obtaining the first importance value of the y-th reference data in the i-th base classifier, obtain the first importance value of each reference data in each base classifier.

[0033] Step S4: Select base classifier matching pairs based on the changes in the weights of training samples between adjacent base classifiers; obtain the final importance value of each reference data based on the magnitude and similarity of the first importance value of each reference data within each base classifier matching pair.

[0034] Specifically, if the weights of training samples change significantly between two adjacent training sessions of the AdaBoost algorithm's base separator, and the first importance value of a certain reference data is large and similar in both adjacent training sessions, then the characteristics of this reference data do not change with the distribution of training sample weights, more accurately indicating that the reference data is more important for classifying the training samples. The weights of the training samples in the base separator are known, and the specific methods for obtaining them will not be elaborated here. This further determines the greater the influence of this reference data on the predicted electricity load data. Therefore, this embodiment obtains the weight change rate between two adjacent base classifiers based on the changes in the weights of training samples during training. To reduce computation and more accurately and efficiently analyze the influence of each type of reference data on the predicted electricity load data, base classifier matching pairs are selected based on the magnitude of the weight change rate. Then, based on the magnitude of the first importance value and similarity of each type of reference data within each base classifier matching pair, a second importance value is obtained for each type of reference data in each base classifier matching pair. A larger second importance value indicates greater accuracy of the corresponding type of reference data in classifying the training samples, indirectly indicating a greater influence of the corresponding type of reference data on the predicted electricity load data. Therefore, a final importance value is obtained for each type of reference data based on the second importance value. A larger final importance value indicates a greater influence of the corresponding type of reference data on the predicted electricity load data, and a greater degree of consideration for that type of reference data when predicting electricity load data. The method for obtaining the final importance value of each type of reference data is as follows: Figure 2 As shown: S4-001: Obtain base classifier matching pairs.

[0035] Preferably, the method for obtaining base classifier matching pairs is as follows: the weights of the training samples in each base classifier are clustered using the DBSCAN density clustering algorithm to obtain weight clusters in each base classifier. In this embodiment, the neighborhood distance threshold and the minimum number of neighbors in the DBSCAN density clustering algorithm are set to 0.1. Implementers can set the neighborhood distance threshold and the minimum number of neighbors in the DBSCAN density clustering algorithm according to actual conditions, which are not limited here. The DBSCAN density clustering algorithm is a well-known technology and will not be described in detail here. The center weight of the weight cluster to which the weight of each training sample in each base classifier belongs is used as the reference weight of each training sample in each base classifier. In order to accurately characterize the difference in weights of training samples between two adjacent base classifiers, this embodiment obtains the mean of the difference in reference weights of all training samples between any two adjacent base classifiers as the weight change rate between the corresponding two adjacent base classifiers. The larger the weight change rate, the more inconsistent the training results of the training samples between the two adjacent base classifiers. When the rate of change of weights exceeds a preset threshold, the two adjacent base classifiers are treated as a single base classifier pair. This improves the efficiency and accuracy of analyzing the importance of each type of reference data.

[0036] As an example, taking the i-th base classifier and the (i-1)-th base classifier as examples, the formula for calculating the weight change rate of the i-th base classifier and the (i-1)-th base classifier is as follows: ; Let be the weight change rate of the i-th base classifier and the (i-1)-th base classifier; N is the total number of training samples; The reference weights are the nth training sample in the i-th base classifier; The reference weights are the nth training sample in the (i-1)th base classifier; It is an absolute value function.

[0037] It should be noted that, The larger the value, the greater the difference in weight between the i-th and (i-1)-th base classifiers, which indirectly indicates a greater difference in weight between the i-th and (i-1)-th base classifiers. The larger; therefore, The larger the value, the greater the change in weights of the training samples from the (i-1)th base classifier to the ith base classifier.

[0038] Based on the method for obtaining the weight change rate of the i-th base classifier and the (i-1)-th base classifier, obtain the weight change rate of any two adjacent base classifiers.

[0039] In this embodiment, a preset weight change rate threshold is set to 0.6. Implementers can set the preset weight change rate threshold according to actual conditions; no limitation is made here. When the weight change rate exceeds the preset threshold, the corresponding two adjacent base classifiers are considered as a base classifier matching pair. Thus, the base classifier matching pair in the AdaBoost algorithm is determined.

[0040] S4-002: Obtain the second importance value.

[0041] As an example, taking the a-th type of reference data in the k-th base classifier matching pair as an example, this embodiment characterizes the similarity of the first importance values ​​of the a-th type of reference data in the k-th base classifier matching pair by obtaining the variance of the first importance value. The formula for calculating the second importance value of the a-th type of reference data in the k-th base classifier matching pair is as follows: In the formula, The second importance value of the a-th reference data in the matching pair of the k-th base classifier; Match the first importance value of the reference data of type a in the first base classifier of the pair to the k-th base classifier; Match the first importance value of the reference data of type a in the second base classifier within the pair to the k-th base classifier; for and The variance of ; e is the natural constant.

[0042] It should be noted that, The bigger, The larger the value, the greater the importance of the a-th reference data in the k-th base classifier matching pair, and the more accurately the a-th reference data can classify the training samples. The larger; The smaller, the better. and The greater the similarity, the less the characteristics of the a-th reference data change with the variation of the sample weight distribution, and the more accurately the training samples can be classified. The larger, The larger; therefore, The larger the value, the greater the influence of the a-th type of reference data on the predicted electricity load data. In other embodiments, this can be achieved through... To obtain the similarity of the first importance value of the a-th reference data in the k-th base classifier matching pair, the implementer may obtain the similarity of the first importance value of the a-th reference data in the k-th base classifier matching pair according to the actual situation, without limitation.

[0043] Based on the method for obtaining the second importance value of the a-th type of reference data in the k-th base classifier matching pair, obtain the second importance value of each type of reference data in each base classifier matching pair.

[0044] S4-003: Get the final importance value.

[0045] As an example, taking the a-th type of reference data as an example, the formula for calculating the final importance value of the a-th type of reference data is: In the formula, The final importance value of the a-th reference data is given; M is the total number of matching pairs from the base classifiers. is the second importance value of the a-th reference data in the matching pair of the m-th base classifier; norm is the normalization function.

[0046] It should be noted that, The larger the value, the more accurately the a-th reference data can classify the training samples. The larger the value, the greater the influence of the a-th type of reference data on the predicted electricity load data; therefore... The larger the value, the greater the proportion of the a-th type of reference data that needs to be included when predicting electricity load data.

[0047] Based on the method used to obtain the final importance value of the a-th type of reference data, obtain the final importance value of each type of reference data.

[0048] Step S5: Train the neural network for predicting power load data based on each type of reference data and the final importance value of each type of reference data at each moment within the preset time period, as well as the power load data at the next adjacent moment; predict the power load data at each moment using the trained neural network for predicting power load data.

[0049] Specifically, to better predict the electricity load data at each moment, this embodiment uses the final importance value of each reference data as the weight for predicting the electricity load data at the next adjacent moment. Therefore, each reference data and its final importance value at each moment within a preset time period are input into the neural network for predicting electricity load data, and the neural network is trained accordingly. When predicting the electricity load data at the next adjacent moment, the neural network pays more attention to reference data with higher final importance values, thereby improving the accuracy of the predicted electricity load data. This embodiment simulates the actual influence of each reference data on the electricity load data, enabling the neural network to better capture the changing trends and patterns of the electricity load data. This helps to identify and emphasize the most critical reference data for predicting electricity load data, providing more targeted decision support for the regulation and control of the integrated energy grid in cold regions. For example, when temperature has a significant impact on the electricity load data of the integrated energy grid in cold regions, the higher the final importance value of temperature, the higher the weight will be assigned to temperature in the neural network, which helps to more accurately predict the electricity load data under specific temperature conditions. Therefore, using the final importance value of each reference data as a weight input into the neural network is an effective method to improve the accuracy of predicted power load data. It combines the advantages of domain knowledge and data-driven models, providing strong support for the stable operation and optimized scheduling of the integrated energy grid in cold regions.

[0050] The training process of the neural network for predicting electricity load data is as follows: The input consists of each type of reference data and its final importance value at each time point within a preset time period. The output is the predicted electricity load data for the next adjacent time point at each time point within the preset time period. The training labels are the electricity load data for the next adjacent time point at each time point within the preset time period. The loss function is the cross-entropy loss function. The neural network for predicting the electricity load data is an LSTM (Long Short-Term Memory) network. LSTM is a well-known technology and will not be elaborated further. It should be noted that if there is no electricity load data for the next adjacent time point at the last time point of the preset time period, then each type of reference data at the last time point of the preset time period will not participate in the training of the neural network for predicting the electricity load data.

[0051] Thus, a trained neural network for predicting electricity load data is obtained. By inputting each reference data point at the current moment and its final importance value into the trained neural network, the predicted electricity load data for the next moment is accurately output. This facilitates accurate electricity regulation in integrated energy grids in cold regions.

[0052] This invention is now complete.

[0053] In summary, this embodiment acquires reference data for each moment in the cold-region integrated energy grid; obtains training samples based on the distribution of the reference data; processes the training samples using the AdaBoost algorithm, and obtains a first importance value based on the training results of the base classifiers and the feature distribution of the reference data in the base classifiers; obtains the final importance value of the reference data based on the magnitude and similarity of the first importance values ​​between adjacent base classifiers; and predicts the electricity load data based on the final importance value and the reference data. This invention accurately determines the degree of influence of each type of reference data on the electricity load data by obtaining the final importance value of each type of reference data, thereby accurately predicting the electricity load data at each moment.

[0054] Example 2: This example discloses a load forecasting system for a cold-region integrated energy grid; like Figure 3 As shown, a load forecasting system for a cold-region integrated energy grid includes a data acquisition module 10, a preprocessing module 20, a first importance value acquisition module 30, a final importance value acquisition module 40, and a data processing module 50. The data acquisition module 10 is used to acquire various reference data at each moment within a preset time period of the integrated energy grid in cold regions; wherein, the reference data includes power load data; The preprocessing module 20 is used to obtain the training samples of each local reference time period and the reference power load data of each training sample according to the distribution of reference data in each local reference time period within the preset time period. The first importance value acquisition module 30 is used to process the training samples through the AdaBoost algorithm, and obtain the first importance value of each reference data in each base classifier based on the similarity between the training power load data and the reference power load data of each training sample in each base classifier, and the feature distribution of each reference data in each base classifier. The final importance value acquisition module 40 is used to filter out base classifier matching pairs based on the changes in the weights of training samples between each base classifier and its neighboring base classifiers during the training process; and to obtain the final importance value of each reference data based on the magnitude of the first importance value and the similarity of each reference data within each base classifier matching pair. The data processing module 50 is used to train a neural network for predicting power load data based on each type of reference data and the final importance value of each type of reference data at each moment within a preset time period, as well as the power load data at the next adjacent moment; and to predict the power load data at each moment using the trained neural network for predicting power load data.

[0055] Example 3: The purpose of this example is to provide a computer-readable storage medium.

[0056] A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps in a load forecasting method for a cold-region integrated energy grid as described in Embodiment 1 of this disclosure.

[0057] The steps and methods involved in Embodiments 2 and 3 above correspond to those in Embodiment 1. For specific implementation and methods, please refer to the relevant description section of Embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood as including any medium capable of storing, encoding, or carrying an instruction set for execution by a processor and enabling the processor to perform any of the methods in this invention.

[0058] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0059] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

Claims

1. A load forecasting method for a cold region integrated energy grid, characterized in that: The method comprises the following steps: Obtaining each type of reference data of the cold-region integrated energy grid at each moment within a preset time period; wherein the reference data includes power load data; According to the distribution of reference data in each local reference time period preset in the preset time period, a training sample of each local reference time period and reference power load data of each training sample are obtained; The training samples are processed by the AdaBoost algorithm, and the first importance value of each reference data in each base classifier is obtained according to the similarity between the training power load data and the reference power load data of each training sample in each base classifier, and the feature distribution of each reference data in each base classifier; According to the change of the weight of the training samples between adjacent base classifiers, base classifier matching pairs are screened out; according to the size and similarity of the first importance value of each reference data in each base classifier matching pair, the final importance value of each reference data is obtained; According to each reference data at each moment in a preset time period and the final importance value of each reference data, as well as the power load data at the next adjacent moment, a neural network for predicting power load data is trained; the power load data at each moment is predicted through the trained neural network for predicting power load data.

2. A load forecasting method for a cold region integrated energy grid as claimed in claim 1, characterized in that: The method for obtaining the local reference time period is: Fitting the power load data within a preset time period into a power load curve, and dividing the power load curve into local curves according to the fluctuation of the power load curve; Obtaining the variance of the electric load data in each local curve as the first variance of the corresponding local curve; When the first variance is less than a preset fluctuation threshold, the local time period corresponding to the local curve is used as the local reference time period.

3. A load forecasting method for a cold region integrated energy grid as claimed in claim 1, characterized in that: The method for obtaining the training samples of each local reference time period and the reference power load data of each training sample is: The mean of each reference data in each local reference time period is constructed into an array as a training sample for each local reference time period; The mean value of all the power load data in the local reference time period corresponding to each training sample is used as the reference power load data of each training sample.

4. A load forecasting method for a cold region integrated energy grid as claimed in claim 1, characterized in that: The method for obtaining the first importance value is: For any base classifier, obtain the difference between the training power load data and the reference power load data of each training sample in the base classifier, and use them as the first difference; Obtaining the number of all first differences greater than a preset first difference threshold as the number of errors in the training samples of the base classifier; The ratio of the number of errors in the training samples to the total number of training samples is used as the error rate of the base classifier; Obtain the order in which each reference data in the base classifier is used as a classification feature and label them from small to large, and determine the classification feature sequence number of each reference data in the base classifier; According to the classification feature sequence number of each reference data in the base classifier and the error rate, a first importance value of each reference data in the base classifier is obtained.

5. A load forecasting method for a cold region integrated energy grid as claimed in claim 4, characterized in that: The method for obtaining the first importance value is: For any base classifier, the classification feature number of each reference data in the base classifier is negatively correlated and the normalized result is positively correlated with the first importance value of the corresponding reference data in the base classifier; The error rate of the base classifier is negatively correlated with the first importance value of each reference data in the base classifier.

6. A load forecasting method for a cold region integrated energy grid as claimed in claim 1, characterized in that: The method for obtaining the base classifier matching pair is: Cluster the weights of the training samples in each base classifier to obtain the weight clustering clusters in each base classifier; The central weight of the weight cluster to which the weight of each training sample in each base classifier belongs is used as the reference weight of each training sample in each base classifier; The mean of the reference weight differences of all training samples between any two adjacent base classifiers is obtained as the weight change rate between the corresponding two adjacent base classifiers; when the weight change rate is greater than a preset weight change rate threshold, the corresponding two adjacent base classifiers are regarded as a base classifier matching pair.

7. A load forecasting method for a cold region integrated energy grid as claimed in claim 1, characterized in that: The method for obtaining the final importance value is: For any base classifier matching pair, according to the size and fluctuation of the first importance value of each reference data in the base classifier matching pair, obtain the second importance value of each reference data in the base classifier matching pair; For any kind of reference data, the average of the second importance values ​​of the reference data in all base classifier matching pairs is taken as the important feature value of the reference data; The result of normalizing the important feature values ​​is used as the final importance value of the reference data.

8. A load forecasting method for a cold region integrated energy grid as claimed in claim 7, characterized in that: The calculation formula of the second importance value is: ; In the formula, is the second importance value of the a-th reference data in the k-th base classifier matching pair; The first importance value of the a-th reference data in the first base classifier in the k-th base classifier matching pair; The first importance value of the a-th reference data in the second base classifier within the k-th base classifier matching pair; for and The variance of ; e is a natural constant.

9. A load forecasting method for a cold region integrated energy grid as claimed in claim 6, characterized in that: The weights of the training samples in each base classifier are clustered using the DBSCAN density clustering algorithm.

10. A load forecasting system for a cold region integrated energy grid, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When executing the computer program, the processor implements the steps of a load forecasting method for a cold-region integrated energy grid as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • A Short-Term Power Load Forecasting Method Based on Ensemble Learning

    CN102270309A

  • Micro-grid multi-model load prediction adaptive selection method and system and storage medium

    CN112508224A

  • DLSTM power load prediction method and device based on meteorological parameters

    CN113051837A

  • Power load prediction method and device, terminal equipment and storage medium

    CN113869565A

  • Power system load prediction method and system

    CN115293400A