A load forecasting matching method suitable for multiple user types
Through K-means cluster analysis and similarity matching technology, the problem of insufficient accuracy of existing power load forecasting methods for multiple user types is solved, achieving more accurate user type classification and load forecasting method selection, and improving power load forecasting. accuracy.
Patent Information
- Application Number
- CN202211402815.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-11-10
AI Technical Summary
Existing power load forecasting methods have insufficient accuracy in classifying and matching multiple user types, making it difficult to meet the load forecasting needs of different user types.
The K-means cluster analysis method is used to classify user types, and the applicable load forecasting methods are matched through similarity measures to form a load forecasting method library to improve the matching degree of forecasting methods. Specific steps include data preprocessing, cluster analysis, similarity calculation and matching of load forecasting methods.
It achieves more accurate classification of power user types and selection of load forecasting methods, improving the accuracy and pertinence of load forecasting.
Smart Images

Figure CN115936184B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of load forecasting of electric power systems, and relates to a load forecasting and matching method, in particular to a load forecasting and matching method adaptable to multiple user types. Background Art
[0002] Electricity load forecasting is to predict future electricity demand based on existing electricity consumption data, taking into account political, economic, climatic and other factors. It is an important basis for the power system to formulate production plans and make marketing decisions, and is also an important guarantee for meeting the balance of electricity supply and demand. It provides data information and decision-making basis for power grid planning and construction and enterprise production and operation, and also provides support for improving the safety and reliability of the power system.
[0003] With the deepening of power market reform, the state has issued a notice on the implementation of power grid enterprises' agency power purchase work, established a power grid enterprise agency power purchase mechanism, and carried out agency power purchase for industrial and commercial users who are not directly involved in market transactions in a market-oriented manner. Under this situation, it is necessary to regularly predict the scale of electricity consumption of different power users. Therefore, it is necessary to determine the user type and then match the appropriate load forecasting method according to different user types to improve the pertinence and prediction accuracy of load forecasting for different users.
[0004] In view of the current new situation, the existing research on power load forecasting methods focuses on improving the accuracy of short-term and long-term load forecasting algorithms and the prediction of single power loads. The matching degree of classification prediction for different user types is not high enough. Therefore, it is urgent to provide a new load forecasting matching method that adapts to multiple user types to solve the above problems.
[0005] After searching, no patent documents of the prior art that are identical or similar to the present invention were found. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and to propose a load forecasting matching method that is adaptable to multiple user types, which can be used to classify power user types and match different power user types and their applicable power load forecasting methods.
[0007] The present invention solves the practical problem by adopting the following technical solutions:
[0008] A load forecasting matching method adapted to multiple user types comprises the following steps:
[0009] Step 1: Collect the power load data of different users and pre-process the load data;
[0010] Step 2: Based on the user power load data set Ω preprocessed in step 1, classify the user types by using the K-means clustering analysis method;
[0011] Step 3: Compare and analyze the applicability of different load forecasting methods to form a load forecasting method library;
[0012] Step 4: Match the user types clustered in step 2 with the multiple load forecasting methods in the load forecasting method library formed by comparative analysis in step 3, and measure the matching degree between different user types and load forecasting methods by similarity;
[0013] Step 5: Adaptively predict user load.
[0014] Moreover, the specific steps of step 1 include:
[0015] (1) Collect the user's electricity load data and select the hourly average load data of the user load sample;
[0016] (2) Preprocessing of collected data:
[0017] ① If there are many missing values and abnormal values in the user's hourly average load data, the load data will be eliminated; the data with individual missing values in the hourly average load data will be supplemented by linear interpolation method; the initial load data p is formed, and the value of p is the hourly average load data after data processing;
[0018] ② Normalize the hourly average load data after elimination and filling to form the user power load data set Ω={R1,R2,...,R n};
[0019] Moreover, the specific method of step 2 is:
[0020] According to the user power load data set Ω processed in step 1, the K-means clustering algorithm is used to classify power users:
[0021] (1) Input the user power load data set Ω processed in step 1, randomly select k user objects from the data set Ω, and average the load data of the k objects. Assign initial cluster centers
[0022] (2) Calculate the average load value of other users in the load data set Ω To the initial cluster center The distance l i,j , using Euclidean distance to represent l i,j , the specific formula is as follows:
[0023]
[0024] (3) Compare the distance l from each load value to the cluster center i,j , according to the distance from the center, the load average data Assign them to the corresponding classes, recalculate the average value of the data in each class, and form a new cluster center
[0025]
[0026] n i is the number of load data in the cluster to which the i-th cluster center belongs, m i is the mth cluster in the cluster to which the i-th cluster center belongs i Users, is the mth cluster in the cluster to which the i-th cluster center belongs i The load value of each user;
[0027] (4)Judgment Relative to Does it change? If so, repeat steps (2) and (3) until the cluster center no longer changes. The cluster center at this time is Final cluster center The load data represents typical users of the same type.
[0028] Moreover, the specific steps of step 4 include:
[0029] (1) First, calculate the similarity measure between the collected user load sample set and the corresponding sample size of the load prediction method in the prediction method library:
[0030] The Jaccard correlation coefficient is used to represent the similarity measure between the user load sample set and the corresponding sample size of the load forecasting method. sample It is calculated as follows:
[0031]
[0032] In the formula, |P x | represents the number of user load samples X collected in step 1, |P y | represents the average value Y of the sample size range applicable to the load forecasting method, |P x,y | represents the number of intersections between the user load sample size X and the applicable sample size Y of the load forecasting method within the fluctuation range of ±10%.
[0033] (2) Secondly, the applicability of the time range of the load forecasting method is measured according to the similarity of the applicability of the forecasting method:
[0034] The similarity of the applicability of the forecasting method refers to the degree of matching between the forecasting period to be carried out by the sample and the applicable period of each load forecasting method. text express;
[0035] Assume that the text vectors of the sample forecast period to be compared and the applicable period of the load forecasting method are T1 and T2 respectively, and different user types correspond to different text vectors according to the different forecast time ranges. n ), the text vector corresponding to the method in the load forecasting method library is T2 = (β1, β2, ..., β n ), α and β represent the direction coordinates corresponding to the text characters. By calculating the inner product of T1 and T2, the similarity between the two is obtained using the cosine algorithm:
[0036] T1·T2=α1×β1+α2×β2+...+α n ×β n
[0037]
[0038] |T1|,|T2| represent the modulus of vectors T1 and T2 respectively. γ is the angle between vector T1 and vector T2 (γ∈[0,π]), and the cosine similarity cosγ is the similarity Cor of the load forecasting method of this embodiment. text .
[0039] (3) The total similarity is then calculated based on the similarity of the sample data volume between the user load sample set and the corresponding sample volume of the load forecasting method and the similarity of the applicability of the forecasting method in the time range of the load forecasting method;
[0040] (4) The total similarity is used to indicate the degree of match between the user classification type in step 2 and the prediction method in the load prediction method library in step 3. It is calculated by weighting the sample data volume similarity and the prediction method applicability similarity mentioned above according to the actual situation when the user type matches the load prediction method. total express.
[0041] The weights of different similarities represent the degree of trust in the similarity index. The total similarity is the sum of the two sub-similarity of sample data volume similarity and prediction method applicability similarity multiplied by their corresponding weights. The specific calculation formula is as follows:
[0042]
[0043] in, is the similarity weight of the applicability of the prediction method when the user type matches the load prediction method, It is the similarity weight of sample data volume when matching user type with load forecasting method;
[0044] (5) Finally, the total similarity calculation results of the matching degree are sorted and the total similarity Cor total The top set of user types are matched with the prediction method.
[0045] Moreover, the specific steps of step 5 include:
[0046] First, calculate the first moving average and second moving average of the hourly average load data p after data preprocessing in step 1:
[0047]
[0048] In the formula, p t is the actual load value of the user at the tth moment. α is the smoothing coefficient, 0<α<1, which is related to the fluctuation degree of the prediction error: when the original data fluctuates slightly, the α value is less than 0.5; when the original data fluctuates greatly, in order to make the smooth sequence reflect the change of data, the α value is greater than 0.5. n is the number of data items taken by the moving average.
[0049] are the moving averages at time t and time t-1 respectively.
[0050] The secondary moving average is calculated based on the primary moving average of the hourly average load data p obtained after data preprocessing:
[0051]
[0052] In the formula, is the quadratic moving average, α is the smoothing coefficient, 0<α<1.
[0053] Then the prediction is made based on the quadratic moving average method:
[0054]
[0055] in, are the smoothing coefficients, is the predicted value.
[0056] Advantages and beneficial effects of the present invention:
[0057] 1. The present invention proposes a load prediction and matching method that is adaptable to multiple user types. The processing of the hourly average load in steps 1 and 2 can assist in the classification of load characteristics of power users and more accurately divide the types of power users.
[0058] 2. Aiming at the problem that the current selection of prediction methods for multiple user types still needs to be manually screened in the load prediction method library, the present invention proposes a load prediction matching method adapted to multiple user types, which can select appropriate load prediction methods in the load prediction method library for matching according to the number of load samples or time dimension of different user classification objects, so as to improve the matching degree of load prediction method selection. The accuracy of load prediction is improved by improving the matching degree between different user types and prediction methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a process flow chart of the present invention;
[0060] Figure 2 This is the cluster analysis flow chart for step 2;
[0061] Figure 3 Schematic diagram of preprocessing rules for converting text into eight directions in step 3;
[0062] Figure 4 Two text conversion diagrams shown in the embodiment of step 3;
[0063] Figure 5 This is the adaptive prediction result diagram after the matching method in step 5. DETAILED DESCRIPTION
[0064] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:
[0065] A load forecasting matching method that adapts to multiple user types, such as Figure 1 and Figure 2 As shown, the following steps are included:
[0066] Step 1: Collect electricity load data of different users and pre-process the load data.
[0067] The specific steps of step 1 include:
[0068] (1) Collect the user's electricity load data and select the hourly average load data of the user load sample;
[0069] (2) Preprocessing of collected data:
[0070] ① If there are many missing values and abnormal values in the user's hourly average load data, the load data will be eliminated; the data with individual missing values in the hourly average load data will be supplemented by linear interpolation method; the initial load data p is formed, and the value of p is the hourly average load data after data processing;
[0071] ② Normalize the hourly average load data after elimination and filling to form the user power load data set Ω={R1,R2,...,R n};
[0072] Specifically, the min-max normalization method is used to map the load data value to the [0,1] interval. The specific formula for min-max normalization is as follows:
[0073]
[0074] Where p is the hourly average load data after data preprocessing, p min is the minimum value of the hourly average load data after preprocessing, p max is the maximum value of the hourly average load data after data preprocessing, p * is the load data value after normalization. User power load data set Ω={R1,R2,...,R n The data sample in} is the load data value p after preprocessing and normalization. * .
[0075] Step 2: Based on the user power load data set Ω preprocessed in step 1, the user types are classified by the K-means clustering analysis method.
[0076] The specific method of step 2 is:
[0077] According to the user power load data set Ω processed in step 1, the K-means clustering algorithm is used to classify power users:
[0078] (1) Input the user power load data set Ω processed in step 1, randomly select k user objects from the data set Ω, and average the load data of the k objects. Assign initial cluster centers
[0079] (2) Calculate the average load value of other users in the load data set Ω To the initial cluster center The distance l i,j , using Euclidean distance to represent l i,j , the specific formula is as follows:
[0080]
[0081] (3) Compare the distance l from each load value to the cluster center i,j , according to the distance from the center, the load average data Assign them to the corresponding classes, recalculate the average value of the data in each class, and form a new cluster center
[0082]
[0083] n i is the number of load data in the cluster to which the i-th cluster center belongs, m i is the mth cluster in the cluster to which the i-th cluster center belongs i Users, is the mth cluster in the cluster to which the i-th cluster center belongs i The load value of each user;
[0084] (4)Judgment Relative to Does it change? If so, repeat steps (2) and (3) until the cluster center no longer changes. The cluster center at this time is Final cluster center The load data represents typical users of the same type.
[0085] Step 3: Compare and analyze the applicability of different load forecasting methods to form a load forecasting method library.
[0086] In this embodiment, the sample data volume of load forecasting is divided into large and small, small samples are samples with a data volume of less than 50, and large samples are samples with a data volume of more than 50; the applicability of the load forecasting method is divided into medium- and long-term and short-term based on the monthly time limit. The following forms a load forecasting method library by comparing the characteristics and applicability of various load forecasting methods.
[0087] The output value unit consumption method estimates the future power load based on the average power load of the output value. This method is suitable for medium- and long-term load forecasting and is suitable for small sample data ranges.
[0088] The regression analysis method calculates the predicted value by analyzing the relationship between the value to be predicted and the historical load value and fitting the relevant equation. This method is suitable for medium- and long-term load forecasting and is suitable for large sample data ranges.
[0089] The time series method is to establish a mathematical model of the change of power load over time based on historical load values, and predict future loads through load forecasting expressions. This method is suitable for medium-term and short-term forecasts, and the suitable sample data range is small samples.
[0090] The trend extrapolation method is to obtain a fitting curve based on the known historical load data values, thereby predicting the load data value at a certain moment in the future. This method is suitable for medium-term and short-term load forecasting, and the suitable sample data range is a large sample.
[0091] Artificial neural network prediction selects the load in the past as training samples, and uses the training algorithm to train the constructed network structure to meet the accuracy. This method is suitable for short-term load forecasting and is suitable for large sample data ranges.
[0092] The fuzzy forecasting method uses fuzzy mathematical concepts to describe the fuzzy phenomena in load forecasting and better handle the uncertainty of load changes. This method is suitable for short-term load forecasting and is suitable for large sample ranges.
[0093] Grey system forecasting is to forecast the user load data series with uncertain factors. This method is suitable for medium-term and short-term forecasts and is suitable for small sample ranges.
[0094] The applicability comparison table of the above methods is as follows:
[0095] Table 1 Comparison of applicability and sample size of load forecasting methods
[0096]
[0097] Step 4: Match the user types clustered in step 2 with the various load forecasting methods in the load forecasting method library formed by comparative analysis in step 3, and measure the matching degree between different user types and load forecasting methods by similarity.
[0098] The specific steps of step 4 include:
[0099] (1) First, calculate the similarity measure between the collected user load sample set and the corresponding sample size of the load prediction method in the prediction method library:
[0100] The sample data volume similarity refers to the matching similarity measure between the data volume of user load samples and the appropriate data volume of different load forecasting methods. The similarity measure between the user load sample set and the corresponding sample volume of the load forecasting method is expressed based on the Jaccard correlation coefficient. sample It is calculated as follows:
[0101]
[0102] In the formula, |P x | represents the number of user load samples X collected in step 1, |P y | represents the average value Y of the sample size range applicable to the load forecasting method, |P x,y | represents the number of intersections between the user load sample size X and the applicable sample size Y of the load forecasting method within the fluctuation range of ±10%.
[0103] (2) Secondly, the applicability of the time range of the load forecasting method is measured according to the similarity of the applicability of the forecasting method:
[0104] The cosine algorithm is used to calculate the text similarity of the applicability between the sample prediction period of different user types and the applicable period of the load forecasting method. Before calculating the applicability text similarity, the text needs to be preprocessed, and the text characters are divided into eight directions, represented as values 1 to 8, and the order and direction of the strokes corresponding to the characters such as "medium and long term" and "short term" are represented as vectors. The processing of the text content is simplified to the operation of vectors in the vector space, which greatly reduces the complexity of the problem.
[0105] The similarity of the applicability of the forecasting method refers to the degree of matching between the forecasting period to be carried out by the sample and the applicable period of each load forecasting method. text express;
[0106] Assume that the text vectors of the sample forecast period to be compared and the applicable period of the load forecasting method are T1 and T2 respectively, and different user types correspond to different text vectors according to the different forecast time ranges. n ), the text vector corresponding to the method in the load forecasting method library is T2 = (β1, β2, ..., β n ), α and β represent the direction coordinates corresponding to the text characters. By calculating the inner product of T1 and T2, the similarity between the two is obtained using the cosine algorithm:
[0107] T1·T2=α1×β1+α2×β2+...+α n ×β n
[0108]
[0109] |T1|,|T2| represent the modulus of vectors T1 and T2 respectively. γ is the angle between vector T1 and vector T2 (γ∈[0,π]), and the cosine similarity cosγ is the similarity Cor of the load forecasting method of this embodiment. text ;
[0110] (3) The total similarity is then calculated based on the similarity of the sample data volume between the user load sample set and the corresponding sample volume of the load forecasting method and the similarity of the applicability of the forecasting method in the time range of the load forecasting method;
[0111] (4) The total similarity is used to indicate the degree of match between the user classification type in step 2 and the prediction method in the load prediction method library in step 3. It is calculated by weighting the sample data volume similarity and the prediction method applicability similarity mentioned above according to the actual situation when the user type matches the load prediction method. total express.
[0112] The weights of different similarities represent the degree of trust in the similarity index. The total similarity is the sum of the two sub-similarity of sample data volume similarity and prediction method applicability similarity multiplied by their corresponding weights. The specific calculation formula is as follows:
[0113]
[0114] in, is the similarity weight of the applicability of the prediction method when the user type matches the load prediction method, It is the similarity weight of sample data volume when matching user type with load forecasting method;
[0115] (5) Finally, the total similarity calculation results of the matching degree are sorted and the total similarity Cor total The top set of user types are matched with the prediction method.
[0116] In this embodiment, it is described in a simple manner:
[0117] The user types and load forecasting methods are classified as follows, and the similarity is calculated accordingly.
[0118] Table 2 Classification results of user types and load forecasting methods
[0119]
[0120] Preprocess the text and divide the text characters into eight directions, represented by numerical values 1-8, as shown in the attached Figure 3 As shown in the figure, the order and direction of the strokes corresponding to characters such as "medium and long term" and "short term" are represented as vectors by the principle of selecting the nearest one, and the similarity between texts is calculated based on the text vectors.
[0121] In this embodiment, as shown in the attached Figure 4 As shown, the "short-term" vector can be expressed as (8,3,3,3,8,8,8,2,2,3,1,3,8,3,2,8,3), and the "medium- and long-term" vector can be expressed as (1,3,3,1,3,3,1,1,1,1), fill the missing dimensions with 0, and multiply them to make the dimensions the same. Then the text similarity of A2 and B4 is The sample data volume of A2 is 745, and its ±10% floating range is [670.5, 819.5]. The sample data volume range applicable to B4 is [200, 1000], and the floating range is [180, 1100]. The sample data volume similarity between S2 and B4 is
[0122] The total similarity between S2 and B4 is Similarly, the similarities between S2 and B1, B2 and B3 are 0.64, 0.572 and 0.682 respectively. After sorting, the matching strategy with the largest total similarity can be found. The calculation result of this embodiment is that the total similarity between A2 and B4 is the highest, and user S2 and prediction method B4 are matched.
[0123] Step 5: Adaptively predict user load.
[0124] The specific steps for adaptive prediction of matched user types are as follows:
[0125] According to the calculation results of the matching degree between the user type and the load forecasting method in step 4, a load forecasting method is selected, and forecasting is performed using the selected method. The forecasting accuracy is compared with the forecasting result data.
[0126] This embodiment takes user A2 as an example, adopts the matched load forecasting method B4: the quadratic moving average technology of the trend extrapolation method to perform load forecasting, and compares the forecast accuracy based on the forecast results.
[0127] First, calculate the first moving average and second moving average of the hourly average load data p after data preprocessing in step 1:
[0128]
[0129] In the formula, p t is the actual load value of the user at the tth moment. α is the smoothing coefficient, 0<α<1, which is related to the fluctuation degree of the prediction error: when the original data fluctuates slightly, the α value is less than 0.5; when the original data fluctuates greatly, in order to make the smooth sequence reflect the change of data, the α value is greater than 0.5. n is the number of data items taken by the moving average.
[0130] are the moving averages at time t and time t-1 respectively.
[0131] The secondary moving average is calculated based on the primary moving average of the hourly average load data p obtained after data preprocessing:
[0132]
[0133] In the formula, is the quadratic moving average, α is the smoothing coefficient, 0<α<1.
[0134] Then the prediction is made based on the quadratic moving average method:
[0135]
[0136] in, are the smoothing coefficients, is the predicted value.
[0137] This embodiment applies the data from July 1 to July 21, 2017 to the user matching trend extrapolation prediction method to predict the load in the next 10 days of the same month. Some data are shown in the table.
[0138] Table 3 Basic data table of user A2 application trend extrapolation method
[0139]
[0140] The prediction results are as follows Figure 5 As shown in Table 4, the prediction accuracy is shown in Table 4.
[0141] Table 4 Prediction accuracy of user A2 matching trend extrapolation method
[0142]
[0143] Through the examples, it can be seen that the beneficial effect of this method is that the hourly average load processing of steps 1 and 2 can more accurately classify user types, and match the user objects and load forecasting methods by text similarity and sample quantity similarity. In view of the problem that the current selection of prediction methods for multiple user types still requires manual screening in the load forecasting method library, this method can select appropriate load forecasting methods in the load forecasting method library according to the load sample quantity or time dimension of different user classification objects to improve the matching degree of load forecasting method selection; for different user types, the accuracy of load forecasting can be improved by better selecting load forecasting.
[0144] It should be noted that the above example is only one possible situation. It is possible to divide more user types and there are more load prediction methods. The method of matching prediction using similarity is the same.
[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
Claims
1. A load forecasting and matching method adapted to multiple user types, characterized in that: The following steps are involved: Step 1: Collect the power load data of different users and pre-process the load data; Step 2: Based on the user power load data set Ω preprocessed in step 1, classify the user types by using the K-means clustering analysis method; Step 3: Compare and analyze the applicability of different load forecasting methods to form a load forecasting method library; Step 4: Match the user types clustered in step 2 with the multiple load forecasting methods in the load forecasting method library formed by comparative analysis in step 3, and measure the matching degree between different user types and load forecasting methods by similarity; Step 5: Adaptively predict user load; The specific steps of step 4 include: (1) First, calculate the similarity measure between the collected user load sample set and the corresponding sample size of the load prediction method in the prediction method library: The Jaccard correlation coefficient is used to represent the similarity measure between the user load sample set and the corresponding sample size of the load forecasting method. sample It is calculated as follows: In the formula, |P x | represents the number of user load samples X collected in step 1, |P y | represents the average value Y of the sample size range applicable to the load forecasting method, |P x,y | represents the number of intersections between the user load sample size X and the applicable sample size Y of the load forecasting method within the fluctuation range of ±10%; (2) Secondly, the applicability of the time range of the load forecasting method is measured according to the similarity of the applicability of the forecasting method: The similarity of the applicability of the forecasting method refers to the degree of matching between the forecasting period to be carried out by the sample and the applicable period of each load forecasting method. text express; Assume that the text vectors of the sample forecast period to be compared and the applicable period of the load forecasting method are T1 and T2 respectively, and different user types correspond to different text vectors according to the different forecast time ranges. n ), the text vector corresponding to the method in the load forecasting method library is T2 = (β1, β2, ..., β n ), by calculating the inner product of T1 and T2, the similarity between them is obtained using the cosine algorithm: T1·T2=α1×β1+α2×β2+...+α n ×b n |T1|,|T2| represent the modulus of vectors T1 and T2 respectively. γ is the angle between vector T1 and vector T2 (γ∈[0,π]), and cosine similarity cosγ is the similarity of the load forecasting method applicability Cor text ; (3) The total similarity is then calculated based on the similarity of the sample data volume between the user load sample set and the corresponding sample volume of the load forecasting method and the similarity of the applicability of the forecasting method in the time range of the load forecasting method; (4) The total similarity is used to indicate the degree of match between the user classification type in step 2 and the prediction method in the load prediction method library in step 3. It is calculated by weighting the sample data volume similarity and the prediction method applicability similarity mentioned above according to the actual situation when the user type matches the load prediction method. total express; The weights of different similarities represent the degree of trust in the similarity index. The total similarity is the sum of the two sub-similarity of sample data volume similarity and prediction method applicability similarity multiplied by their corresponding weights. The specific calculation formula is as follows: in, is the similarity weight of the applicability of the prediction method when the user type matches the load prediction method, It is the similarity weight of sample data volume when matching user type with load forecasting method; (5) Finally, the total similarity calculation results of the matching degree are sorted and the total similarity Cor total The top set of user types are matched with the prediction method.
2. A load prediction and matching method adapted to multiple user types according to claim 1, characterized in that: The specific steps of step 1 include: (1) Collect the user's electricity load data and select the hourly average load data of the user load sample; (2) Preprocessing of collected data: ① If there are many missing values and abnormal values in the user's hourly average load data, the load data will be eliminated; the data with individual missing values in the hourly average load data will be supplemented by linear interpolation method; the initial load data p is formed, and the value of p is the hourly average load data after data processing; ② Normalize the hourly average load data after elimination and filling to form the user power load data set Ω={R1,R2,...,R n }.
3. A load prediction and matching method adapted to multiple user types according to claim 1, characterized in that: The specific method of step 2 is: According to the user power load data set Ω processed in step 1, the K-means clustering algorithm is used to classify power users: (1) Input the user power load data set Ω processed in step 1, randomly select k user objects from the data set Ω, and average the load data of the k objects. Assign initial cluster centers (2) Calculate the average load of other users in the load data set Ω To the initial cluster center The distance l i,j , using Euclidean distance to represent l i,j , the specific formula is as follows: (3) Compare the distance l from each load value to the cluster center i,j , according to the distance from the center, the load average data Assign them to the corresponding classes, recalculate the average value of the data in each class, and form a new cluster center n i is the number of load data in the cluster to which the i-th cluster center belongs, m i is the mth cluster in the cluster to which the i-th cluster center belongs i Users, is the mth cluster in the cluster to which the i-th cluster center belongs i The load value of each user; (4)Judgment Relative to Does it change? If so, repeat steps (2) and (3) until the cluster center no longer changes. The cluster center at this time is Final cluster center The load data represents typical users of the same type.
4. A load prediction and matching method adapted to multiple user types according to claim 1, characterized in that: The specific steps of step 5 include: First, calculate the first moving average and second moving average of the hourly average load data p after data preprocessing in step 1: In the formula, p t is the actual load value of the user at time t; n is the number of data items taken by the moving average; are the moving averages at time t and time t-1 respectively; The secondary moving average is calculated based on the primary moving average of the hourly average load data p obtained after data preprocessing: In the formula, is the quadratic moving average; Then the prediction is made based on the quadratic moving average method: in, are the smoothing coefficients, is the predicted value.
Citation Information
Patent Citations
Method and device for predicting short-term power load
CN105631483A
Demand response-based electric power load behavior prediction method
CN107591803A
User service data processing method and device, equipment and storage medium
CN113657545A
Load prediction method based on user power consumption behavior analysis
CN114611738A
Power load prediction method and system based on deep learning and considering multiple influence factors
CN115018200A
