Demand response potential prediction method and device based on intelligent model migration

Through intelligent model migration technology, the construction and training demand response potential prediction models are constructed, and the problem of low accuracy of new registered customer needs response potential has low accuracy, and a more accurate prediction and more effective regulatory strategy.

CN119378744AActive Publication Date: 2025-01-28GUANGDONG POWER GRID CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411475168.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-01-28
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

The prior art is unable to accurately predict the demand response potential of newly registered customers, resulting in a decrease in prediction accuracy.

Method used

Adopt the prediction of the potential of the demand for migration of intelligent models. By obtaining the important characteristic data of the prediction period, the construction and training needs response potential prediction model, combined with the advantages of migration learning and online learning, dynamically track the changes of new customers' response behaviors.

Benefits of technology

The demand response potential of the new contracting customers has improved the accuracy of the potential for response, making the prediction results more accurate, which is conducive to the formulation of the regulatory strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119378744A_ABST
    Figure CN119378744A_ABST
Patent Text Reader

Abstract

The invention discloses a demand response potential prediction method and device based on intelligent model migration, and the method comprises the steps: obtaining important feature data of a to-be-predicted time period, and inputting the obtained important feature data into a demand response potential prediction model obtained through the training of a migration learning and online learning method, and obtaining a demand response potential value of the to-be-predicted time period, and performing regulation and control according to a prediction result. The demand response potential prediction model provided by the method combines the advantages of transfer learning and online learning, and can dynamically track the change of the response behavior of the new customer compared with the prior art. Therefore, the demand response potential prediction precision of the newly signed customer is improved, the prediction result is more accurate, and formulation of a regulation and control strategy is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of demand response potential prediction, and in particular to a demand response potential prediction method and device based on intelligent model migration. Background Art

[0002] The prediction of demand response potential of load aggregators in power systems is of great significance, especially in the context of high proportion of new energy access, whose randomness, intermittency and volatility pose challenges to the stable operation of the power grid. Demand response guides the load side to adjust electricity consumption through price or incentive mechanisms, enhancing the flexibility of the power system and the ability to absorb new energy. As an important resource, residential loads are difficult to directly participate in the market due to their dispersion and uncertainty. As intermediaries, load aggregators integrate these resources and participate in market transactions. Accurate prediction of their demand response potential becomes the key.

[0003] Existing prediction methods are divided into two categories: model-driven and data-driven. Among them, the data-driven method is based on historical data, such as price, temperature, and preferences. It learns the relationship between features and potential through models such as recursive neural networks, and accurately predicts customers with sufficient data. However, when facing newly registered customers with scarce data, directly applying existing models can easily lead to huge errors. Existing models mostly use offline learning and assume that the data is complete, which is invalid when predicting new customers because data needs to be accumulated over time and customer behavior changes dynamically with incentives and the environment. Offline learning is difficult to capture this change, resulting in a decrease in prediction accuracy. Summary of the invention

[0004] The present invention provides a method and device for predicting demand response potential based on intelligent model migration to solve the technical problem that the prior art cannot accurately predict the demand response potential of new customers.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a demand response potential prediction method based on intelligent model migration, comprising:

[0006] Obtaining important feature data for the time period to be predicted; wherein the important features are selected from basic features through feature selection; the basic features include: demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index;

[0007] Inputting the important feature data into a trained demand response potential prediction model, so that the demand response potential prediction model predicts the time period to be predicted to obtain a predicted demand response potential value;

[0008] According to the demand response potential value, the power system is regulated so that the amount of electricity supplied by the power system meets the demand response potential value;

[0009] The training process of the demand response potential prediction model includes:

[0010] Constructing a first initial model, a second initial model and a third initial model having the same structure;

[0011] Acquire a number of first sample important feature data and corresponding first demand response values; acquire a number of second sample important feature data and corresponding second demand response values; wherein the first sample important feature data is the historical important feature data of the original contracted user; and the second sample important feature data is the historical important feature data of the newly added contracted user;

[0012] Training the first initial model according to each of the first sample important feature data and the corresponding first demand response value to obtain a first model;

[0013] According to each of the important characteristic data of the second samples and the corresponding second demand response value, the second initial model is trained online to obtain a second model;

[0014] Migrating the parameters of the first model to the third initial model to obtain a third model;

[0015] The second model and the third model are adaptively integrated to obtain a trained demand response potential prediction model.

[0016] As a preferred solution, the feature selection process includes:

[0017] Obtaining several basic characteristic data and corresponding demand response values ​​as original data sets;

[0018] Repeat the following steps until the number of remaining basic features is equal to the preset number, and take the remaining basic features as important features:

[0019] From the original data set, sampling is performed several times by a resampling method to obtain several training sets;

[0020] For each of the training sets, construct a decision tree model;

[0021] For each currently remaining basic feature, perform a basic feature importance calculation operation to obtain an importance index value of the basic feature;

[0022] From the currently remaining basic features, remove the basic feature with the smallest importance index value;

[0023] The basic feature importance calculation operation includes:

[0024] For each decision tree model, a first out-of-bag data error corresponding to the decision tree model is calculated, noise interference is randomly added to the current basic features in the out-of-bag data corresponding to the decision tree model, and a second out-of-bag data error corresponding to the decision tree model is calculated;

[0025] According to the first out-of-bag data error and the second out-of-bag data error of all decision tree models, the importance index value of the current basic feature is calculated.

[0026] As a preferred solution, the calculation formula of the importance index value is:

[0027]

[0028] Where P x Represents the importance index value of the basic feature x; Represents the first out-of-bag data error corresponding to the i-th decision tree model; It represents the second out-of-bag data error corresponding to the i-th decision tree model; N is the total number of decision trees.

[0029] As a preferred solution, the step of adaptively integrating the second model and the third model comprises:

[0030] Inputting each of the important feature data of the second samples into the second model to obtain a second model prediction value;

[0031] Inputting each of the important characteristic data of the second samples into the third model to obtain a prediction value of the third model;

[0032] Calculate the second model penalty factor and the third model penalty factor according to the second demand response value, the second model prediction value and the third model prediction value corresponding to each of the second sample important characteristic data;

[0033] Calculating a second model weight value and a third model weight value according to the second model penalty factor and the third model penalty factor;

[0034] The second model and the third model are integrated according to the second model weight value and the third model weight value.

[0035] As a preferred solution, the calculation formula of the second model penalty factor is:

[0036]

[0037] In the formula, ε a represents the second model penalty factor; represents the second model prediction value corresponding to the i-th important feature data of the second sample; represents the third model prediction value corresponding to the important feature data of the i-th second sample; y i represents the second demand response value corresponding to the i-th second sample important characteristic data; M is the number of newly added contracted users;

[0038] The calculation formula of the penalty factor of the third model is:

[0039]

[0040] In the formula, ε b Represents the third model penalty factor

[0041] The solution formula for the second model weight value and the third model weight value is:

[0042]

[0043] In the formula, ω a Represents the weight value of the second model; ω a Represents the weight value of the third model.

[0044] As a preferred solution, the first initial model, the second initial model and the third initial model are all improved 1D-CNN networks, each including a convolutional layer, a batch normalization layer, an activation function layer, a SCAM attention mechanism, a maximum pooling layer and a fully connected layer.

[0045] As a preferred solution, the SCAM attention mechanism includes: a channel attention mechanism and a temporal attention mechanism.

[0046] On the basis of the above-mentioned embodiment, another embodiment of the present invention provides a demand response potential prediction device based on intelligent model migration, comprising: a data acquisition module, a prediction module and a control module;

[0047] The data acquisition module is used to acquire important feature data of the time period to be predicted; wherein the important features are selected from basic features through feature selection; the basic features include: demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index;

[0048] The prediction module is used to input the important feature data into a trained demand response potential prediction model, so that the demand response potential prediction model predicts the time period to be predicted and obtains a predicted demand response potential value; wherein the training process of the demand response potential prediction model includes: constructing a first initial model, a second initial model and a third initial model with the same structure; obtaining a number of first sample important feature data and corresponding first demand response values; obtaining a number of second sample important feature data and corresponding second demand response values; wherein the first sample important feature data is the historical important feature data of the original contracted user; the second sample important feature data is the historical important feature data of the newly added contracted user; according to each of the first sample important feature data and the corresponding first demand response value, the first initial model is trained to obtain a first model; according to each of the second sample important feature data and the corresponding second demand response value, the second initial model is trained online to obtain a second model; the parameters of the first model are migrated to the third initial model to obtain a third model; the second model and the third model are adaptively integrated to obtain a trained demand response potential prediction model;

[0049] The control module is used to control the power system according to the demand response potential value so that the power supplied by the power system meets the demand response potential value.

[0050] Based on the above embodiments, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the demand response potential prediction method described in the above invention embodiment is implemented.

[0051] Based on the above embodiments, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the demand response potential prediction method described in the above invention embodiment.

[0052] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0053] The present invention obtains important feature data of the time period to be predicted, and inputs the obtained important feature data into the demand response potential prediction model trained by transfer learning and online learning methods to obtain the demand response potential value of the time period to be predicted, and regulates according to the prediction results. The demand response potential prediction model proposed by the method of the present invention combines the advantages of transfer learning and online learning. Compared with the existing technology, it can dynamically track the changes in the response behavior of new customers. It can be seen that the prediction accuracy of the demand response potential of newly signed customers is improved, the prediction results are more accurate, and it is conducive to the formulation of regulatory strategies. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flow chart of a method for predicting demand response potential based on intelligent model migration provided by one embodiment of the present invention;

[0055] Figure 2 It is a structural schematic diagram of a demand response potential prediction device based on intelligent model migration provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0058] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "several" is two or more, unless otherwise clearly and specifically defined.

[0059] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] Embodiment 1

[0062] Please refer to Figure 1 , is a flow chart of a demand response potential prediction method based on intelligent model migration provided by an embodiment of the present invention, including:

[0063] S1. Obtain important feature data for the time period to be predicted; wherein the important features are selected from basic features through feature selection; the basic features include: demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index.

[0064] In step S1, the time when the demand response potential value needs to be predicted is first determined as the time period to be predicted, and then important characteristic data of the time period to be predicted is obtained.

[0065] It should be noted that the time period to be predicted is generally the current time period, and what is obtained is the important feature data of each time node in the time period to be predicted. The time period to be predicted can be a specific time node, and then only the important feature data of the time node need to be obtained. The important features are obtained from the basic features through feature selection. For example, if the important features obtained through feature selection are outdoor temperature θ and baseline load l, the data obtained is x = [θ1, θ2, ..., θ n ,l1,l2,...,l n ], where n represents the number of time nodes in the period to be predicted.

[0066] It should also be noted that, among the basic characteristics, the demand response incentive price refers to the incentive price used to encourage users to participate in demand response during the demand response period, the baseline load refers to the load that the user should have consumed when not participating in demand response, the temperature refers to the local outdoor temperature, the humidity refers to the local outdoor humidity, the rainfall refers to the local rainfall, and the comfort index is an index used to evaluate the impact of meteorological conditions on human comfort.

[0067] In a preferred embodiment, the feature selection process includes:

[0068] Obtaining several basic characteristic data and corresponding demand response values ​​as original data sets;

[0069] Repeat the following steps until the number of remaining basic features is equal to the preset number, and take the remaining basic features as important features:

[0070] From the original data set, sampling is performed several times by a resampling method to obtain several training sets;

[0071] For each of the training sets, construct a decision tree model;

[0072] For each currently remaining basic feature, perform a basic feature importance calculation operation to obtain an importance index value of the basic feature;

[0073] From the currently remaining basic features, remove the basic feature with the smallest importance index value;

[0074] The basic feature importance calculation operation includes:

[0075] For each decision tree model, a first out-of-bag data error corresponding to the decision tree model is calculated, noise interference is randomly added to the current basic features in the out-of-bag data corresponding to the decision tree model, and a second out-of-bag data error corresponding to the decision tree model is calculated;

[0076] According to the first out-of-bag data error and the second out-of-bag data error of all decision tree models, the importance index value of the current basic feature is calculated.

[0077] It should be noted that a basic characteristic data includes the demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index at a certain time point. The demand response value corresponding to the basic characteristic data is the actual demand response power generated at the time point in the actual situation.

[0078] In this embodiment, a number of basic feature data and the demand response value corresponding to each basic feature data are obtained, which is the so-called original data set. Using the resampling method, m samples are randomly sampled with replacement from the original data set as the training set, and one sample is a basic feature data and its corresponding demand response value. The data that is not sampled in the original data set is the out-of-bag data. A total of N samplings are performed to obtain N training sets. Using the N training sets obtained by sampling, N decision tree models are trained to generate a random forest consisting of N decision trees.

[0079] In order to select important features from basic features, multiple rounds of elimination of basic features are required until the number of remaining basic features is equal to a preset number, which is generally 3 to 5.

[0080] In each round of eliminating basic features, it is necessary to perform a basic feature importance calculation operation on each of the currently remaining basic features to calculate the importance index value of the feature. In the process of calculating the importance index value of a basic feature A, for each decision tree model, the out-of-bag data error of the decision tree is first calculated as the first out-of-bag data error. After calculating the first out-of-bag data error, noise interference is added to the basic feature A of all out-of-bag data, and then the out-of-bag data error of the decision tree is calculated again as the second out-of-bag data error. Finally, the importance index value of the basic feature is calculated based on the first out-of-bag error and the second out-of-bag error. After calculating the importance index values ​​of all the currently remaining basic features, the basic feature with the smallest importance index value is eliminated.

[0081] It should be noted that each decision tree model corresponds to a training set sampled from the original data, and the out-of-bag data of the decision tree refers to the data that is not sampled in the original data. The out-of-bag data error is calculated by inputting the basic feature data of each out-of-bag data into the decision tree model to obtain the output corresponding to the decision tree model, and then calculating the error of the out-of-bag data based on the output of the decision tree model and the demand response value corresponding to the out-of-bag data. Finally, the average of the errors of all out-of-bag data is the out-of-bag data error of the decision tree.

[0082] In a preferred embodiment, the calculation formula of the importance index value is:

[0083]

[0084] Where P x Represents the importance index value of the basic feature x; Represents the first out-of-bag data error corresponding to the i-th decision tree model; It represents the second out-of-bag data error corresponding to the i-th decision tree model; N is the total number of decision trees.

[0085] S2. Inputting the important feature data into a trained demand response potential prediction model, so that the demand response potential prediction model predicts the time period to be predicted to obtain a predicted demand response potential value;

[0086] The training process of the demand response potential prediction model includes:

[0087] Constructing a first initial model, a second initial model and a third initial model having the same structure;

[0088] Acquire a number of first sample important feature data and corresponding first demand response values; acquire a number of second sample important feature data and corresponding second demand response values; wherein the first sample important feature data is the historical important feature data of the original contracted user; and the second sample important feature data is the historical important feature data of the newly added contracted user;

[0089] Training the first initial model according to each of the first sample important feature data and the corresponding first demand response value to obtain a first model;

[0090] According to each of the important characteristic data of the second samples and the corresponding second demand response value, the second initial model is trained online to obtain a second model;

[0091] Migrating the parameters of the first model to the third initial model to obtain a third model;

[0092] The second model and the third model are adaptively integrated to obtain a trained demand response potential prediction model.

[0093] In step S2, the important data features obtained in step S1 are used as input into the trained demand response potential prediction model, so that the model predicts the demand response potential of the prediction period and obtains the predicted demand response potential value.

[0094] It should be noted that if the period to be predicted is a certain time period, the output demand response potential value is the demand response potential value of all time nodes in the period. If the period to be predicted is a certain time node, the output demand response potential value is the demand response potential value of the time node.

[0095] The training process of the demand response potential prediction model is as follows:

[0096] Models with the same structure are constructed, namely: Model A, Model B and Model C; Model A is first trained using the historical important feature data of the original contracted customers and the corresponding demand response values; Model B is then trained online using the historical important feature data of the newly added contracted users and the corresponding demand response values; the parameters of the trained Model A are then migrated and frozen into Model C; finally, the trained Model B and the model C with completed parameter migration are integrated together to obtain a trained demand response potential prediction model.

[0097] In a preferred embodiment, the step of adaptively integrating the second model and the third model comprises:

[0098] Inputting each of the important feature data of the second samples into the second model to obtain a second model prediction value;

[0099] Inputting each of the important characteristic data of the second samples into the third model to obtain a prediction value of the third model;

[0100] Calculate the second model penalty factor and the third model penalty factor according to the second demand response value, the second model prediction value and the third model prediction value corresponding to each of the second sample important characteristic data;

[0101] Calculating a second model weight value and a third model weight value according to the second model penalty factor and the third model penalty factor;

[0102] The second model and the third model are integrated according to the second model weight value and the third model weight value.

[0103] In a preferred embodiment, the calculation formula of the second model penalty factor is:

[0104]

[0105] In the formula, ε a represents the second model penalty factor; represents the second model prediction value corresponding to the i-th important feature data of the second sample; represents the third model prediction value corresponding to the important feature data of the i-th second sample; y i represents the second demand response value corresponding to the i-th second sample important characteristic data; M is the number of newly added contracted users;

[0106] The calculation formula of the penalty factor of the third model is:

[0107]

[0108] In the formula, ε b Represents the third model penalty factor

[0109] The solution formula for the second model weight value and the third model weight value is:

[0110]

[0111] In the formula, ω a Represents the weight value of the second model; ω a Represents the weight value of the third model.

[0112] In a preferred embodiment, the first initial model, the second initial model and the third initial model are all improved 1D-CNN networks, each including a convolutional layer, a batch normalization layer, an activation function layer, a SCAM attention mechanism, a maximum pooling layer and a fully connected layer.

[0113] In a preferred embodiment, the SCAM attention mechanism includes: a channel attention mechanism and a temporal attention mechanism.

[0114] It should be noted that the process of the channel attention mechanism includes: the input feature sequence is compressed by two parallel maximum pooling layers and average pooling layers; it is sent to the shared fully connected layer to learn the attention weight of each channel; the two output results are added together and the channel attention matrix is ​​obtained through the sigmoid activation function.

[0115] The process of the temporal attention mechanism includes: splicing the data of different channels of the input feature sequence according to the time dimension, extracting the features through a one-dimensional convolutional layer, transforming the dimension of the feature sequence to the original dimension, and finally obtaining the temporal attention matrix through a sigmoid activation function.

[0116] S3. According to the demand response potential value, the power system is regulated so that the amount of electricity supplied by the power system meets the demand response potential value.

[0117] It should be noted that the demand response potential evaluation results of user clusters can provide reference information for load aggregators to select bidding strategies and power companies to formulate demand response strategies, thereby reducing decision-making risks. The present invention predicts the demand response potential of load aggregators, with the main purpose of maximizing the benefits of load aggregators. The demand response behavior itself assists in the regulation of the power system, but the demand response potential prediction value should also assist in the regulation of the power system.

[0118] By predicting demand response potential, the power system can allocate resources more accurately, reasonably arrange the power generation and grid connection plan of renewable energy, and promote the consumption and utilization of renewable energy. In addition, demand response potential prediction helps the power system to balance supply and demand by guiding users to adjust their electricity consumption behavior when facing an imbalance between supply and demand, thereby improving the stability and reliability of the system.

[0119] It should also be noted that the demand response potential prediction model proposed by the method of the present invention combines the advantages of transfer learning and online learning, can dynamically track changes in the response behavior of new customers, and improves the accuracy of demand response potential prediction for newly signed customers.

[0120] Embodiment 2

[0121] Please refer to Figure 2 , is a schematic diagram of the structure of a demand response potential prediction device based on intelligent model migration provided by an embodiment of the present invention, including: a data acquisition module, a prediction module and a control module;

[0122] The data acquisition module is used to acquire important feature data of the time period to be predicted; wherein the important features are selected from basic features through feature selection; the basic features include: demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index;

[0123] The prediction module is used to input the important feature data into a trained demand response potential prediction model, so that the demand response potential prediction model predicts the time period to be predicted and obtains a predicted demand response potential value; wherein the training process of the demand response potential prediction model includes: constructing a first initial model, a second initial model and a third initial model with the same structure; obtaining a number of first sample important feature data and corresponding first demand response values; obtaining a number of second sample important feature data and corresponding second demand response values; wherein the first sample important feature data is the historical important feature data of the original contracted user; the second sample important feature data is the historical important feature data of the newly added contracted user; according to each of the first sample important feature data and the corresponding first demand response value, the first initial model is trained to obtain a first model; according to each of the second sample important feature data and the corresponding second demand response value, the second initial model is trained online to obtain a second model; the parameters of the first model are migrated to the third initial model to obtain a third model; the second model and the third model are adaptively integrated to obtain a trained demand response potential prediction model;

[0124] The control module is used to control the power system according to the demand response potential value so that the power supplied by the power system meets the demand response potential value.

[0125] Embodiment 3

[0126] Accordingly, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the demand response potential prediction method described in the above-mentioned embodiment of the invention is implemented.

[0127] Embodiment 4

[0128] Accordingly, an embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the demand response potential prediction method described in the above-mentioned embodiment of the invention.

[0129] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0130] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0131] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0132] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and various interfaces and lines are used to connect various parts of the entire device.

[0133] The memory can be used to store the computer program, and the processor realizes various functions of the device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0134] The storage medium is a storage medium, and the computer program is stored in the storage medium. When the computer program is executed by the processor, the steps of each method embodiment described above can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer readable media do not include electric carrier signals and telecommunication signals.

[0135] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A demand response potential prediction method based on intelligent model migration, characterized in that: include: Obtaining important feature data for the time period to be predicted; wherein the important features are selected from basic features through feature selection; the basic features include: demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index; Inputting the important feature data into a trained demand response potential prediction model, so that the demand response potential prediction model predicts the time period to be predicted to obtain a predicted demand response potential value; According to the demand response potential value, the power system is regulated so that the amount of electricity supplied by the power system meets the demand response potential value; The training process of the demand response potential prediction model includes: Constructing a first initial model, a second initial model and a third initial model having the same structure; Acquire a number of first sample important feature data and corresponding first demand response values; acquire a number of second sample important feature data and corresponding second demand response values; wherein the first sample important feature data is the historical important feature data of the original contracted user; and the second sample important feature data is the historical important feature data of the newly added contracted user; Training the first initial model according to each of the first sample important feature data and the corresponding first demand response value to obtain a first model; According to each of the important characteristic data of the second samples and the corresponding second demand response value, the second initial model is trained online to obtain a second model; Migrating the parameters of the first model to the third initial model to obtain a third model; The second model and the third model are adaptively integrated to obtain a trained demand response potential prediction model.

2. The demand response potential prediction method according to claim 1, characterized in that: The feature selection process includes: Obtaining several basic characteristic data and corresponding demand response values ​​as original data sets; Repeat the following steps until the number of remaining basic features is equal to the preset number, and take the remaining basic features as important features: From the original data set, sampling is performed several times by a resampling method to obtain several training sets; For each of the training sets, construct a decision tree model; For each currently remaining basic feature, perform a basic feature importance calculation operation to obtain an importance index value of the basic feature; From the currently remaining basic features, remove the basic feature with the smallest importance index value; The basic feature importance calculation operation includes: For each decision tree model, a first out-of-bag data error corresponding to the decision tree model is calculated, noise interference is randomly added to the current basic features in the out-of-bag data corresponding to the decision tree model, and a second out-of-bag data error corresponding to the decision tree model is calculated; According to the first out-of-bag data error and the second out-of-bag data error of all decision tree models, the importance index value of the current basic feature is calculated.

3. The demand response potential prediction method according to claim 2, characterized in that: The calculation formula of the importance index value is: Where P x Represents the importance index value of the basic feature x; Represents the first out-of-bag data error corresponding to the i-th decision tree model; represents the second out-of-bag data error corresponding to the i-th decision tree model; N is the total number of decision trees.

4. The demand response potential prediction method according to claim 1, characterized in that: The step of adaptively integrating the second model and the third model comprises: Inputting each of the important characteristic data of the second samples into the second model to obtain a second model prediction value; Inputting each of the important characteristic data of the second samples into the third model to obtain a prediction value of the third model; Calculate the second model penalty factor and the third model penalty factor according to the second demand response value, the second model prediction value and the third model prediction value corresponding to each of the second sample important characteristic data; Calculating a second model weight value and a third model weight value according to the second model penalty factor and the third model penalty factor; The second model and the third model are integrated according to the second model weight value and the third model weight value.

5. The demand response potential prediction method according to claim 4, characterized in that: The calculation formula of the second model penalty factor is: In the formula, ε a represents the second model penalty factor; represents the second model prediction value corresponding to the i-th important feature data of the second sample; represents the third model prediction value corresponding to the important feature data of the i-th second sample; y i represents the second demand response value corresponding to the i-th second sample important characteristic data; M is the number of newly added contracted users; The calculation formula of the penalty factor of the third model is: In the formula, ε b Represents the third model penalty factor The solution formula for the second model weight value and the third model weight value is: In the formula, ω a Represents the weight value of the second model; ω a Represents the weight value of the third model.

6. The demand response potential prediction method according to claim 1, characterized in that: The first initial model, the second initial model and the third initial model are all improved 1D-CNN networks, and all include a convolutional layer, a batch normalization layer, an activation function layer, a SCAM attention mechanism, a maximum pooling layer and a fully connected layer.

7. The demand response potential prediction method according to claim 6, characterized in that: The SCAM attention mechanism includes: a channel attention mechanism and a temporal attention mechanism.

8. A demand response potential prediction device based on intelligent model migration, characterized in that: include: Data acquisition module, prediction module and regulation module; The data acquisition module is used to acquire important feature data of the time period to be predicted; wherein the important features are selected from basic features through feature selection; the basic features include: demand response incentive price, baseline load, temperature, humidity, rainfall and comfort index; The prediction module is used to input the important feature data into a trained demand response potential prediction model, so that the demand response potential prediction model predicts the time period to be predicted and obtains a predicted demand response potential value; wherein the training process of the demand response potential prediction model includes: constructing a first initial model, a second initial model and a third initial model with the same structure; obtaining a number of first sample important feature data and corresponding first demand response values; obtaining a number of second sample important feature data and corresponding second demand response values; wherein the first sample important feature data is the historical important feature data of the original contracted user; the second sample important feature data is the historical important feature data of the newly added contracted user; according to each of the first sample important feature data and the corresponding first demand response value, the first initial model is trained to obtain a first model; according to each of the second sample important feature data and the corresponding second demand response value, the second initial model is trained online to obtain a second model; the parameters of the first model are migrated to the third initial model to obtain a third model; the second model and the third model are adaptively integrated to obtain a trained demand response potential prediction model; The control module is used to control the power system according to the demand response potential value so that the power supplied by the power system meets the demand response potential value.

9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for predicting demand response potential as described in any one of claims 1 to 7 is implemented.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the demand response potential prediction method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Real-time demand prediction method and device and electronic device

    CN111612122A

  • Load aggregator demand response potential prediction method and storage medium

    CN116777026A

  • Demand response potential assessment method and system of transfer learning model based on domain adversarial

    CN117252367A

  • Offline and online combined transfer learning building carbon emission prediction method and system

    CN117390457A

  • Model online learning method based on historical data

    CN118643348A