Residential area power load forecasting method, system and medium based on mechanism drive
By analyzing and preprocessing residential area power data based on a mechanism-driven transfer learning model, identifying load types and building a prediction model, the problem of inaccurate predictions in extreme weather by traditional methods is solved, and the accuracy and performance of power load prediction are improved. .
Patent Information
- Application Number
- CN202410976893.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The traditional power load forecasting method for residential areas has the problem of inaccurate predictions under extreme weather conditions.
Using a mechanism-driven method, the preprocessed historical power data is analyzed through non-intrusive identification to identify components of different load types, and a prediction model based on transfer learning is constructed, using the experience of the existing power load prediction source domain in extreme weather Make predictions below.
The performance and accuracy of power load prediction in residential areas under extreme weather are improved, and the experience in similar fields is applied to the target extreme weather through the transfer learning model, which reduces the prediction error.
Smart Images

Figure CN118508442B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of load forecasting, and in particular to a mechanism-driven residential area power load forecasting method, system and medium. Background Art
[0002] As deforestation, burning of fossil fuels and other activities have caused a large amount of greenhouse gas emissions, leading to global warming and frequent extreme weather. In areas where hydropower accounts for a large proportion, under the condition of large-scale and long-term extreme high temperature drought and low temperature cold wave, the water resources of hydropower stations are exhausted, and the distribution network presents a severe situation of tight power supply and demand at peak times. Residential communities refer to independent residential areas that have been built and put into operation according to urban planning, and are the key to urban basic services. Under extreme weather conditions, the air conditioning and electric heating loads in residential communities continue to increase, and the gap between electricity supply and demand continues to widen. Therefore, exploring the prediction of power load in residential communities under extreme weather conditions has positive significance for the allocation of power supply resources. Summary of the invention
[0003] The technical problem to be solved by the present invention is that the traditional residential area power load forecasting method has the problem of inaccurate prediction under extreme weather conditions; the purpose of the present invention is to provide a mechanism-driven residential area power load forecasting method, system and medium, analyze the pre-processed historical power data based on a non-invasive identification method, identify the components of different load types, and construct a mechanism-driven transfer learning prediction model to predict the residential area power load under extreme weather conditions, thereby realizing the mechanism-driven extreme weather load prediction for residential areas, and based on the transfer learning prediction model, learn the experience of the existing power load prediction source domain in a similar field and migrate it to the target extreme weather load prediction, thereby improving the performance and accuracy of the extreme weather load prediction.
[0004] The present invention is achieved through the following technical solutions:
[0005] This solution provides a mechanism-driven residential area power load forecasting method, including:
[0006] Collecting historical power data of users and preprocessing the historical power data;
[0007] Based on the non-intrusive identification method, the pre-processed historical power data is analyzed to identify the components of different load types; the relationship between temperature and power load is constructed based on the components of each load type to clarify the speed and magnitude of the impact of temperature changes on various loads;
[0008] According to the composition of different load types and the relationship between temperature and power load, a mechanism-driven transfer learning prediction model is constructed;
[0009] The user's power data is collected and preprocessed, and the preprocessed power data is input into the transfer learning prediction model to predict the user's power load.
[0010] A further optimization scheme is that the pretreatment method includes:
[0011] Dividing the historical power data into multiple groups of data according to data rules and internal data structures;
[0012] Conduct quality assessment on each set of data and identify abnormal data;
[0013] A correlation regression equation of the historical power data is established, and the abnormal data is repaired based on the correlation regression equation.
[0014] A further optimization scheme is that the historical power data is divided into multiple groups of data according to data rules and internal data structures, including the following method:
[0015] The historical power data is divided according to data rules and internal data structures based on a self-organizing map algorithm.
[0016] A further optimization scheme is to perform quality assessment on each set of data and identify abnormal data, including the following methods:
[0017] The quality of each group of data is evaluated based on the self-organizing map algorithm: the historical power data is used as the neurons of the self-organizing map network; the value vector of the historical power data is made to continuously approach the standard vector, so that the historical power data neurons in the same competition layer in the self-organizing map network belong to one cluster;
[0018] The similarity between the input layer and the competition layer of the self-organizing map network is calculated to obtain the winning historical power data neuron, and then the abnormal data is mined.
[0019] A further optimization scheme is that the non-intrusive identification method is used to analyze the pre-processed historical power data to identify different load type components, including the following methods:
[0020] Calculate active power and reactive power based on pre-processed historical power data;
[0021] The active power and reactive power are clustered to obtain load types of different electrical equipment, and the load proportion of each load type is counted.
[0022] A further optimization scheme is that the relationship between the temperature and the power load is the first formula:
[0023]
[0024] in, p MAXThe maximum power load of the user; f MAX , f MIN They are the maximum and minimum temperatures of the residential area where the user is located; p INS For temperature insensitive power loads, σ Indicates the correlation coefficient between the maximum temperature of the residential area where the user is located and the minimum temperature of the residential area where the user is located.
[0025] A further optimization scheme is to construct a mechanism-driven transfer learning prediction model based on different load type components and the relationship between temperature and power load, including the following methods:
[0026] Different load type components and the relationship between temperature and power load are used as the source domain of the transfer learning model;
[0027] The characteristics of the predicted target domain are obtained based on the predicted target domain of the transfer learning model trained on the source domain, thereby constructing a mechanism-driven transfer learning model; the transfer learning model uses empirical risk to measure the effect of load transfer learning.
[0028] A further optimization scheme is that the transfer learning model uses empirical risk to measure the effect of load transfer learning, including the following methods:
[0029] In the process of power load forecasting by the transfer learning model, when the empirical risk is minimized, the error of the predicted target domain is minimized, and the corresponding optimal power load forecasting parameters are β Satisfies the second formula:
[0030]
[0031] Where: G is the marginal distribution function of power load forecasting, x and y are respectively a first electric load forecast mapping parameter and a second electric load forecast mapping parameter; l is the load forecast parameter mapping function, λ are the learning parameters for power load forecasting, ψ A set of learning parameters for power load forecasting.
[0032] The present solution also provides a residential area power load forecasting system based on mechanism drive, which is used to implement the above-mentioned residential area power load forecasting method based on mechanism drive, and the system includes:
[0033] A collection module, used to collect historical power data of users and pre-process the historical power data;
[0034] The preprocessing module is used to analyze the preprocessed historical power data based on the non-intrusive identification method to identify the components of different load types; and to build the relationship between temperature and power load based on the components of each load type to clarify the speed and magnitude of the impact of temperature changes on various loads;
[0035] The model building module is used to build a mechanism-driven transfer learning prediction model based on different load type components and the relationship between temperature and power load;
[0036] The prediction module is used to collect the user's power data and pre-process it, and input the pre-processed power data into the transfer learning prediction model to predict the user's power load.
[0037] The present solution also provides a computer-readable medium having a computer program stored thereon, and the computer program is executed by a processor to implement the above-mentioned mechanism-driven residential area power load forecasting method.
[0038] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0039] The present invention provides a mechanism-driven residential area power load prediction method, system and medium; based on a non-invasive identification method, pre-processed historical power data is analyzed to identify different load type components, and a mechanism-driven transfer learning prediction model is constructed to predict residential area power load under extreme weather conditions, thereby realizing mechanism-driven extreme weather load prediction for residential areas. Based on the transfer learning prediction model, the experience of the existing power load prediction source domain in a similar field is learned and transferred to the target extreme weather load prediction, thereby improving the performance and accuracy of extreme weather load prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0041] Figure 1 It is a flow chart of the residential area power load forecasting method based on mechanism drive;
[0042] Figure 2 It is a schematic diagram of the flow of the preprocessing method;
[0043] Figure 3 It is a schematic diagram of the self-organizing map network structure;
[0044] Figure 4Construct a flow diagram for the relationship between temperature and power load;
[0045] Figure 5 Schematic diagram of the method flow for building a transfer learning prediction model;
[0046] Figure 6 This is a schematic diagram of the structure of the residential area power load forecasting system based on mechanism drive. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0048] The traditional residential area power load forecasting method has the problem of inaccurate prediction under extreme weather conditions; in view of this, the present solution provides the following embodiments to solve the above technical problems.
[0049] Embodiment 1: This embodiment provides a residential area power load prediction method based on mechanism drive, such as Figure 1 As shown, including:
[0050] Step 1: Collect historical power data of users and pre-process the historical power data;
[0051] In this step, the historical power data mainly includes user electrical data such as current, voltage, power, etc. collected through the smart terminal;
[0052] Based on the current common smart meters, only the overall load data of users can be obtained based on the above electrical data, and the load types of users cannot be distinguished, which poses a challenge to accurately perceive the user's load status. For the new generation of smart meters, the collection of electrical quantities such as voltage, current, active power, reactive power, harmonics, etc. of user meters can be realized, providing basic data support for accurate perception of load status; however, affected by factors such as noise in the high-speed carrier communication channel of the smart meter power line and clock deviation, the success rate of user meters collecting full data is only 96.5%, and missing and erroneous data will cause deviations in extreme weather load forecasts. Therefore, it is necessary to judge whether the quality of user electrical data is qualified and pre-process the user electrical data to eliminate the impact of abnormal and erroneous data on subsequent models.
[0053] like Figure 2 As shown, the pre-processing method includes:
[0054] S11, dividing the historical power data into multiple groups of data according to data rules and internal data structures;
[0055] In this step, the historical power data is divided according to the data regularity and internal structure of the data based on the self-organizing map algorithm. The self-organizing map algorithm is an unsupervised learning clustering method that discovers the regularity and internal structure of the data by grouping the data. The self-organizing map algorithm clustering maps the input historical power data into a three-dimensional grid, each three-dimensional grid is a historical power data neuron, and by adjusting the weights of the historical power data neurons, similar historical power data outputs can be mapped to adjacent neurons, thereby achieving the purpose of dividing the input historical power data;
[0056] S12, perform quality assessment on each set of data and identify abnormal data;
[0057] In this step, the quality of each group of data is still evaluated based on the self-organizing map algorithm: the historical power data is used as the neuron of the self-organizing map network; the value vector of the historical power data is continuously made close to the standard vector, so that the historical power data neurons in the same competition layer in the self-organizing map network belong to one cluster; the similarity between the input layer and the competition layer of the self-organizing map network is calculated to obtain the winning historical power data neuron, and then the abnormal data is mined.
[0058] like Figure 3 As shown, the self-organizing map algorithm consists of an input layer and a competition layer. The value vector of the historical power data keeps approaching the standard vector, so that the historical power data neurons of the same competition layer unit belong to one cluster.
[0059] By calculating the similarity between the input layer and the competition layer, the winning neuron of the historical power data can be obtained, which is the category of the input layer. In this step, cosine similarity is used for calculation; the calculation formula f SIM ( z )for:
[0060] (1)
[0061] Where: z The historical power data of the input layer; n is the number of neural units in the competition layer; e k is the characteristic parameter of the neural unit k in the competition layer.
[0062] S13, establishing a correlation regression equation for the historical power data, and repairing the abnormal data based on the correlation regression equation.
[0063] Regression analysis is a method for repairing abnormal data. By determining the correlation between the dependent variable and the independent variable of historical power data, a historical power data regression equation with correlation is established, and the abnormal data values in the historical power data are filled in. It has the characteristics of high computational efficiency. Therefore, in this step, the abnormal data in the historical power data analyzed by the self-organizing map algorithm is repaired based on the regression analysis method. The repaired abnormal data d REP for:
[0064] (2)
[0065] Where: is the intercept of the historical electricity data sample; b is the slope of the historical power data sample; δ It is the random data extracted from the residual of historical power data; d FC It is the historical electricity data variable for prediction.
[0066] Step 2: Analyze the pre-processed historical power data based on non-intrusive identification methods to identify different load type components; build the relationship between temperature and power load based on each load type component to clarify the speed and magnitude of the impact of temperature changes on various loads; Figure 4 As shown, the step includes the method of:
[0067] S21, calculating active power and reactive power according to the pre-processed historical power data;
[0068] S22, clustering the active power and reactive power to obtain load types of different electrical equipment, and counting the load proportion of each load type.
[0069] Non-intrusive load monitoring can identify various types of electrical equipment and calculate the load of each item of electrical equipment by monitoring and analyzing the current and voltage data at the user's electricity meter. In the above steps, the active power is calculated by collecting the voltage and current values (historical power data) of the user within a period of time. P RA and reactive power Q RA .
[0070] (3)
[0071] (4)
[0072] Where: n T It is the number of sampling rates of RA users in a period; V kare the voltage measurement values of RA users at different sampling points; I k are the measured current values of RA users at different sampling points; v ALL is the overall voltage value of RA users; i ALL It is the total current value of RA users.
[0073] On this basis, the above active and reactive power classifications are clustered to obtain the electrical appliance type components. Hierarchical agglomerative clustering is a data classification method. In this step, a component data of the user's active and reactive power is clustered, and adjacent data cluster sets are agglomerated, and then the clustering results are obtained by continuous iteration.
[0074] In cluster analysis, Euclidean distance is used to analyze the similarity of loads in different categories. e SIM :
[0075] (5)
[0076] Where: m AP is the number of features used to cluster loads using the hierarchical agglomerative clustering method; The first user feature object for different hierarchical agglomerative clustering comparisons; It is the second user feature object used for different hierarchical agglomerative clustering comparisons; through continuous iterations, various load classifications and proportions are obtained.
[0077] Based on the proportion of each load type, the correlation index between temperature and each type of load is constructed; the relationship between temperature and power load is expressed as the first formula:
[0078] (6)
[0079] in, p MAX The maximum power load of the user; f MAX , f MIN They are the maximum and minimum temperatures of the residential area where the user is located; p INS For temperature insensitive power loads, σ Indicates the correlation coefficient between the maximum temperature of the residential area where the user is located and the minimum temperature of the residential area where the user is located.
[0080] Step 3: Based on the composition of different load types and the relationship between temperature and power load, a mechanism-driven transfer learning prediction model is constructed; Figure 5As shown, the specific methods include:
[0081] S31, takes different load type components and the relationship between temperature and power load as the source domain of the transfer learning model;
[0082] S32, obtaining features of the predicted target domain based on the predicted target domain of the transfer learning model trained in the source domain, thereby constructing a mechanism-driven transfer learning model;
[0083] Transfer learning is an artificial intelligence framework that can achieve cross-task and domain learning, and directly obtain useful knowledge from multiple tasks and fields for power load forecasting; the domain of transfer learning is divided into two categories: source domain and target domain. In this step, the source domain is the learned power load knowledge (different load type components, and the relationship between temperature and power load), and the target domain represents the unlearned power load knowledge. The task of transfer learning is to train the power load learning of the target domain and obtain the characteristics of the target domain through the known source domain.
[0084] The transfer learning model changes the data weight of the source domain to achieve the use of the target domain. In power load forecasting, empirical risk can measure the pros and cons of load transfer learning; the optimal power load forecasting parameters β Meeting expectations with minimal risk.
[0085] (7)
[0086] Where: λ learning parameters for power load forecasting; ψ A set of learning parameters for power load forecasting; l A parameter mapping function for power load forecasting; x and y are the first power load forecast mapping parameter and the second power load forecast mapping parameter respectively; o(x, y) represents the relationship function between the first power load forecast mapping parameter and the second power load forecast mapping parameter; arg represents the maximum value function.
[0087] The transfer learning model uses empirical risk to measure the effect of load transfer learning.
[0088] In the process of power load forecasting by the transfer learning model, when the empirical risk is minimized, the error of the predicted target domain is minimized, and the corresponding optimal power load forecasting parameters are β Satisfies the second formula:
[0089] (8)
[0090] Where: G is the marginal distribution function of power load forecasting, x and yare respectively a first electric load forecast mapping parameter and a second electric load forecast mapping parameter; l is the load forecast parameter mapping function, λ are the learning parameters for power load forecasting, ψ A set of learning parameters for power load forecasting.
[0091] Step 4: Collect the user's power data and pre-process it, and input the pre-processed power data into the transfer learning prediction model to predict the user's power load.
[0092] Through the transfer learning model, the existing power load forecast source domain can learn experience in similar fields and transfer it to the target extreme weather power load forecast, improving the performance and accuracy of extreme weather power load forecast. Under the condition that the generalization ability of data distribution of different load types decreases, the adaptive method of extreme weather power load forecast is obtained through the transfer learning model, which solves the distribution difference problem of extreme weather power load forecast, thereby realizing accurate prediction of extreme weather power load.
[0093] This embodiment repairs the abnormal power load data based on the regression analysis method, reducing the interference in the subsequent extreme weather load forecasting process; and establishes an accurate relationship between load components and temperature changes based on the non-invasive load monitoring method of the hierarchical agglomerative clustering method; through mechanism learning, the experience of the existing load forecasting source domain in similar fields is learned and migrated to the target extreme weather load forecasting, thereby improving the performance and accuracy of extreme weather load forecasting.
[0094] Embodiment 2: This embodiment provides a residential area power load prediction system based on mechanism drive, which is used to implement the residential area power load prediction method based on mechanism drive as described in Embodiment 1, such as Figure 6 As shown, the system comprises:
[0095] A collection module, used to collect historical power data of users and pre-process the historical power data;
[0096] The preprocessing module is used to analyze the preprocessed historical power data based on the non-intrusive identification method to identify the components of different load types; and to build the relationship between temperature and power load based on the components of each load type to clarify the speed and magnitude of the impact of temperature changes on various loads;
[0097] The model building module is used to build a mechanism-driven transfer learning prediction model based on different load type components and the relationship between temperature and power load;
[0098] The prediction module is used to collect the user's power data and pre-process it, and input the pre-processed power data into the transfer learning prediction model to predict the user's power load.
[0099] In the specific implementation process, the acquisition module includes an acquisition unit and a preprocessing unit. The acquisition unit is mainly an intelligent terminal, which collects the user's current, voltage, electricity, power and other data; the preprocessing unit preprocesses the collected data to eliminate the impact of abnormal and erroneous data on the subsequent prediction process.
[0100] Embodiment 3: This embodiment provides a computer-readable medium on which a computer program is stored. The computer program is executed by a processor to implement the mechanism-driven residential area power load forecasting method as described in Embodiment 1. Specifically:
[0101] First, the user's historical power data such as current, voltage, electricity, and power are collected through the intelligent terminal; the quality of the collected electrical data is judged to be qualified. Finally, the collected historical power data is preprocessed to eliminate the impact of abnormal and erroneous data on the model.
[0102] Secondly, the user's historical power data is analyzed through non-intrusive load identification, and the load components are extracted; the correlation analysis between temperature and load components is carried out to form the relationship between temperature and load changes.
[0103] Finally, the characteristics of power load are extracted; the operation mechanism of various power loads is analyzed, and load classification prediction is carried out based on this. Finally, based on the power load classification prediction, the load prediction convergence result is formed.
[0104] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A mechanism-driven residential area power load forecasting method. It is characterized in that include: Collecting historical power data of users and preprocessing the historical power data; Analyze pre-processed historical power data based on non-intrusive identification methods to identify different load type components; build the relationship between temperature and power load based on each load type component; The relationship between temperature and power load is as follows: ; in, p MAX The maximum power load of the user; f MAX , f MIN They are the maximum and minimum temperatures of the residential area where the user is located; p INS For temperature insensitive power loads, σ Indicates the correlation coefficient between the maximum temperature of the residential area where the user is located and the minimum temperature of the residential area where the user is located; According to the composition of different load types and the relationship between temperature and power load, a mechanism-driven transfer learning prediction model is constructed; the specific methods include: Different load type components and the relationship between temperature and power load are used as the source domain of the transfer learning model; The predicted target domain of the transfer learning model trained on the source domain is used to obtain the characteristics of the predicted target domain, thereby constructing a mechanism-driven transfer learning model; the transfer learning model uses empirical risk to measure the effect of load transfer learning; The transfer learning model uses empirical risk to measure the effect of load transfer learning, including methods: In the process of power load forecasting by the transfer learning model, when the empirical risk is minimized, the error of the predicted target domain is minimized, and the corresponding optimal power load forecasting parameters are β Satisfies the second formula: ; Where: G is the marginal distribution function of power load forecasting, x, y are respectively a first negative power load prediction mapping parameter and a second negative power load prediction mapping parameter; l is the load forecast parameter mapping function, λ are the learning parameters for power load forecasting, ψ A set of learning parameters for power load forecasting; The user's power data is collected and preprocessed, and the preprocessed power data is input into the transfer learning prediction model to predict the user's power load.
2. According to the mechanism-driven residential area power load forecasting method described in claim 1, It is characterized in that The pretreatment method comprises: Dividing the historical power data into multiple groups of data according to data rules and internal data structures; Conduct quality assessment on each set of data and identify abnormal data; A correlation regression equation of the historical power data is established, and the abnormal data is repaired based on the correlation regression equation.
3. The residential area power load forecasting method based on mechanism drive according to claim 2, It is characterized in that The method of dividing the historical power data into multiple groups of data according to data rules and internal data structures includes: The historical power data is divided according to data rules and internal data structures based on a self-organizing map algorithm.
4. The residential area power load forecasting method based on mechanism drive according to claim 2, It is characterized in that The method of performing quality assessment on each set of data and identifying abnormal data includes: The quality of each set of data is assessed based on the self-organizing map algorithm: the historical power data is used as the neurons of the self-organizing map network; The value vector of historical power data is made to approach the standard vector continuously, so that the historical power data neurons in the same competition layer in the self-organizing map network belong to one cluster; The similarity between the input layer and the competition layer of the self-organizing map network is calculated to obtain the winning historical power data neuron, and then the abnormal data is mined.
5. The residential area power load forecasting method based on mechanism drive according to claim 1, It is characterized in that The non-intrusive identification method is based on analyzing the pre-processed historical power data to identify different load type components, including methods: Calculate active power and reactive power based on pre-processed historical power data; The active power and reactive power are clustered to obtain load types of different electrical equipment, and the load proportion of each load type is counted.
6. Residential power load forecasting system based on mechanism drive, It is characterized in that The system is used to implement the mechanism-driven residential area power load forecasting method according to any one of claims 1 to 5, the system comprising: A collection module, used to collect historical power data of users and pre-process the historical power data; A preprocessing module is used to analyze the preprocessed historical power data based on a non-intrusive identification method to identify different load type components; and to establish a relationship between temperature and power load based on each load type component; The model building module is used to build a mechanism-driven transfer learning prediction model based on different load type components and the relationship between temperature and power load; The prediction module is used to collect the user's power data and pre-process it, and input the pre-processed power data into the transfer learning prediction model to predict the user's power load.
7. A computer readable medium having a computer program stored thereon, It is characterized in that The computer program is executed by a processor to implement the mechanism-driven residential area power load forecasting method as described in any one of claims 1 to 5.
