Method and device for determining energy consumption data
By analyzing historical power consumption data and its factors, multiple models are used to determine the weight of influencing factors, which solves the problem of inaccurate future energy consumption prediction in the existing technology and achieves more accurate energy consumption trend prediction.
Patent Information
- Application Number
- CN202110657292.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-06-11
AI Technical Summary
It is difficult to accurately predict future energy consumption with existing technology, mainly because the influencing factors are not accurate and comprehensive enough.
By obtaining historical power consumption data and its associated factors, we use methods such as the random forest feature importance model and feature importance attention model to determine the weight of each influencing factor, and combine gray correlation analysis and long short-term memory models to predict future power consumption data.
It improves the accuracy of future energy consumption forecasts and ensures accurate characterization and determination of the importance of influencing factors, thereby achieving more accurate energy consumption trend forecasts.
Smart Images

Figure CN113393120B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy technology, and in particular to a method and device for determining energy consumption data. Background Art
[0002] Energy is the lifeblood of a country's economic development. Energy consumption analysis is of great significance for guiding government decision-making, serving the people's livelihood, improving corporate business level and service quality, and innovating the business model of the energy industry.
[0003] In order to conduct energy consumption analysis, energy big data technology has emerged in related technologies. It is the application of big data technology to the energy field, the in-depth application of big data technology in the energy field, and the deep integration of energy production, consumption and big data concepts. Among them, energy consumption trend prediction is an important application of big data technology in the energy field.
[0004] However, there are many factors affecting energy consumption. The current energy big data technology mainly identifies the factors affecting energy from a macro perspective from three aspects: the main factors affecting energy consumption, the calculation method of energy intensity and the analysis of related factors affecting energy intensity. However, the determination of the factors affecting energy is not accurate and comprehensive, resulting in inaccurate predictions of energy consumption trends.
[0005] With regard to the problem in related technologies that it is difficult to accurately predict future energy consumption based on historical energy consumption, no effective solution has been proposed so far. Summary of the invention
[0006] The present application provides a method and device for determining energy consumption data to solve the problem in the related art that it is difficult to accurately predict future energy consumption based on historical energy consumption.
[0007] According to one aspect of the present application, a method for determining energy consumption data is provided. The method includes: obtaining historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data; determining the weights of various influencing factors, wherein the weights are used to characterize the degree of influence of the influencing factors on the size of the historical power consumption data; and determining the power consumption data in the future second time period based on the power consumption data in the first historical time period and the weights of various influencing factors.
[0008] Optionally, determining the weight of each influencing factor includes: using a random forest feature importance model to analyze historical power consumption data and each influencing factor to obtain a first target weight of each influencing factor; analyzing historical power consumption data and each influencing factor through a feature importance attention model to obtain a second target weight of each influencing factor; fusing the first target weight and the second target weight of each influencing factor to obtain the weight of each influencing factor.
[0009] Optionally, using a random forest feature importance model to process historical power consumption data and each influencing factor to obtain a first target weight for each influencing factor includes: using a random forest feature importance model to process historical power consumption data and each influencing factor to obtain a first weight for each influencing factor; using a grey correlation analysis model to process historical power consumption data and each influencing factor to obtain a second weight for each influencing factor; and performing weighted averaging of the first weight and the second weight to obtain a first target weight for each influencing factor.
[0010] Optionally, obtaining historical power consumption data and various influencing factors associated with the historical power consumption data includes: obtaining power consumption data from various sources, and fusing the power consumption data from various sources to obtain historical power consumption data; performing data cleaning on the historical power consumption data to obtain cleaned power consumption data; obtaining various influencing factors corresponding to the cleaned power consumption data to obtain various influencing factors associated with the historical power consumption data.
[0011] Optionally, determining the power consumption data for a future second time period based on the power consumption data for a historical first time period and the weights of each influencing factor includes: processing the power consumption data for the historical first time period and the weights of each influencing factor through a long short-term memory model to obtain the power consumption data for the future second time period.
[0012] Optionally, after determining the power consumption data for a future second time period based on the power consumption data for a historical first time period and the weights of each influencing factor, the method further includes: determining the proportion of power consumption in the total amount of energy to be consumed based on the power consumption data for the future second time period and the total amount of energy to be consumed.
[0013] According to another aspect of the present application, a device for determining energy consumption data is provided. The device includes: an acquisition unit, used to acquire historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data; a first determination unit, used to determine the weights of various influencing factors, wherein the weights are used to characterize the degree of influence of the influencing factors on the size of the historical power consumption data; and a second determination unit, used to determine the power consumption data in the future second time period based on the power consumption data in the historical first time period and the weights of various influencing factors.
[0014] Optionally, the first determination unit includes: a first analysis module, used to analyze the historical power consumption data and each influencing factor using a random forest feature importance model to obtain a first target weight of each influencing factor; a second analysis module, used to analyze the historical power consumption data and each influencing factor through a feature importance attention model to obtain a second target weight of each influencing factor; and a fusion module, used to fuse the first target weight and the second target weight of each influencing factor to obtain the weight of each influencing factor.
[0015] Optionally, the first analysis module includes: a first processing sub-module, used to use a random forest feature importance model to process the historical power consumption data and each influencing factor to obtain a first weight of each influencing factor; a second processing sub-module, used to use a grey correlation analysis model to process the historical power consumption data and each influencing factor to obtain a second weight of each influencing factor; a third processing sub-module, used to perform weighted average processing on the first weight and the second weight to obtain a first target weight of each influencing factor.
[0016] Optionally, the acquisition unit includes: a first acquisition module, used to acquire power consumption data from various sources, and fuse the power consumption data from various sources to obtain historical power consumption data; a data cleaning module, used to clean the historical power consumption data to obtain cleaned power consumption data; a second acquisition module, used to acquire various influencing factors corresponding to the cleaned power consumption data, and obtain various influencing factors associated with the historical power consumption data.
[0017] Optionally, the second determination unit is further configured to process the power consumption data in the first historical time period and the weights of various influencing factors through a long short-term memory model to obtain the power consumption data in the second future time period.
[0018] Optionally, the device also includes: a third determination unit, which is used to determine the power consumption data in the future second time period based on the power consumption data in the historical first time period and the weights of various influencing factors, and then determine the proportion of power consumption in the total amount of energy to be consumed based on the power consumption data in the future second time period and the total amount of energy to be consumed.
[0019] According to another aspect of an embodiment of the present invention, a nonvolatile storage medium is provided. The nonvolatile storage medium includes a stored program. When the program is executed, the device where the nonvolatile storage medium is located is controlled to execute a method for determining energy consumption data.
[0020] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein when the computer-readable instructions are executed, a method for determining energy consumption data is executed.
[0021] Through this application, the following steps are adopted: obtaining historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data; determining the weights of various influencing factors, wherein the weights are used to characterize the degree of influence of the influencing factors on the size of the historical power consumption data; determining the power consumption data in the future second time period based on the power consumption data in the first historical time period and the weights of various influencing factors, solving the problem in the related art that it is difficult to accurately predict future energy consumption based on historical energy consumption. By determining the weights of various influencing factors of power consumption data, the effect of accurately predicting future energy consumption is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a flow chart of a method for determining energy consumption data provided in an embodiment of the present application; and
[0024] Figure 2 It is a schematic diagram of a device for determining energy consumption data provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] According to an embodiment of the present application, a method for determining energy consumption data is provided.
[0029] Figure 1 is a flow chart of a method for determining energy consumption data according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0030] Step S102, obtaining historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data.
[0031] Specifically, the historical electricity consumption data may be electricity consumption data of a specific area within a historical time period. Various influencing factors associated with the historical electricity consumption data may include population factors, GDP factors, urbanization ratio factors, various energy production factors, various energy consumption factors, etc. This embodiment does not limit the types of influencing factors.
[0032] In order to accurately determine the various influencing factors associated with historical power consumption data, optionally, in the method for determining energy consumption data provided in an embodiment of the present application, obtaining historical power consumption data and the various influencing factors associated with the historical power consumption data includes: obtaining power consumption data from various sources, and fusing the power consumption data from various sources to obtain historical power consumption data; performing data cleaning on the historical power consumption data to obtain cleaned power consumption data; obtaining the various influencing factors corresponding to the cleaned power consumption data to obtain the various influencing factors associated with the historical power consumption data.
[0033] Specifically, when the historical power consumption data is historical electricity consumption data, the historical electricity consumption data obtained from different departments and channels can be aggregated and fused, the same data can be merged, the abnormal data can be eliminated, and the historical electricity consumption data can be labeled with influencing factors to obtain the cleaned historical electricity consumption data and its influencing factors. Furthermore, a graph database can be used to store the cleaned historical electricity consumption data and its influencing factors, so as to intuitively view the correlation between the historical electricity consumption data and each influencing factor.
[0034] It should be noted that the factors affecting electricity consumption in each region are complexly interrelated, and it is difficult to accurately obtain the factors affecting regional electricity consumption. This embodiment obtains massive historical electricity consumption data from multiple sources, and organizes and analyzes the historical electricity consumption data in multiple dimensions, thereby ensuring the accuracy and uniqueness of the data source, thereby achieving the purpose of accurately mining the factors affecting regional electricity consumption.
[0035] Step S104: determining the weight of each influencing factor, wherein the weight is used to characterize the degree of influence of the influencing factor on the size of the historical power consumption data.
[0036] Different influencing factors have different degrees of influence on the size of historical electricity consumption data. Optionally, in the method for determining energy consumption data provided in an embodiment of the present application, determining the weight of each influencing factor includes: using a random forest feature importance model to analyze the historical electricity consumption data and each influencing factor to obtain a first target weight for each influencing factor; using a feature importance attention model to analyze the historical electricity consumption data and each influencing factor to obtain a second target weight for each influencing factor; and fusing the first target weight and the second target weight of each influencing factor to obtain the weight of each influencing factor.
[0037] It should be noted that electricity consumption data is usually affected by various influencing factors, and different influencing factors have different degrees of influence on the size of historical electricity consumption data. When predicting future electricity consumption data, it is necessary to consider the importance of each influencing factor, that is, the weight of each influencing factor of the electricity consumption data.
[0038] Specifically, since the random forest importance model is a tree model, it can make a better summary of the data, but its fitting ability is poor and it cannot make predictions based on historical data. The feature importance attention model (LSTM) has the opposite characteristics to the random forest importance model. On the one hand, this embodiment automatically learns the importance of each influencing factor through LSTM to obtain internal importance, and on the other hand, uses the random forest feature importance model to analyze the importance of each influencing factor to obtain external importance, and merges the two importances to finally obtain the importance of each influencing factor, that is, the weight, so that the weight of each influencing factor is more accurate, thereby improving the accuracy of predicting future power consumption data.
[0039] In order to improve the accuracy of determining external importance, optionally, in the method for determining energy consumption data provided in an embodiment of the present application, a random forest feature importance model is used to process historical electricity consumption data and each influencing factor to obtain a first target weight of each influencing factor, including: using a random forest feature importance model to process historical electricity consumption data and each influencing factor to obtain a first weight of each influencing factor; using a grey correlation analysis model to process historical electricity consumption data and each influencing factor to obtain a second weight of each influencing factor; performing weighted averaging on the first weight and the second weight to obtain the first target weight of each influencing factor.
[0040] It should be noted that the random forest feature importance model is a tree model, which consists of multiple trees. Each tree is sampled through bootstrap to generate the same number of samples as the number of samples, denoted as S train (also known as in-bag data), the remaining unsampled samples are denoted as S test (also known as out-of-bag data), and obtain the learned regression tree by fitting the L2 loss. test Noise is added to the features, and the feature importance metric of the regression tree can be obtained according to the change in test accuracy. test The credibility calculated above is used as the weight, and the weight is added to the previous feature importance measure to finally generate the importance measure of each feature.
[0041] Specifically, the present application uses the random forest feature importance model to calculate the importance of each influencing factor, sort these influencing factors, select the most important influencing factors and their importance, and thus obtain the first weight of each influencing factor. And through the gray correlation analysis model, a linear analysis is performed on the historical power consumption data and each influencing factor to obtain the second weight of each influencing factor. Furthermore, the first weight and the second weight are weighted averaged to improve the accuracy of determining the external weight of each influencing factor.
[0042] Through this embodiment, various influencing factors that affect regional electricity consumption data are comprehensively considered, and the correlation coefficient of each influencing factor is determined by combining grey correlation analysis with random forest feature importance selection analysis, so as to accurately determine the influence weight of each electric energy consumption influencing factor.
[0043] Step S106, determining the power consumption data in the future second time period according to the power consumption data in the historical first time period and the weights of various influencing factors.
[0044] Optionally, in the method for determining energy consumption data provided in an embodiment of the present application, determining the power consumption data for a future second time period based on the power consumption data for a historical first time period and the weights of each influencing factor includes: processing the power consumption data for the historical first time period and the weights of each influencing factor through a long short-term memory model to obtain the power consumption data for the future second time period.
[0045] Specifically, the weights of various influencing factors are used as the input features of the LSTM model, combined with the power consumption data in the first historical time period, and the LSTM model is used to predict and analyze future power consumption. At the same time, the model can also be corrected and fitted through some sample data, and the model parameters can be corrected and adjusted according to the overall relative error of the model prediction results, thereby realizing short-term, medium-term and long-term predictions of regional power consumption data.
[0046] In order to optimize the energy structure, optionally, in the method for determining energy consumption data provided in an embodiment of the present application, after determining the power consumption data for a future second time period based on the power consumption data for a historical first time period and the weights of various influencing factors, the method further includes: determining the proportion of power consumption to the total amount of energy to be consumed based on the power consumption data for the future second time period and the total amount of energy to be consumed.
[0047] Specifically, electric energy is a non-fossil energy. After the present embodiment determines the electricity consumption data in the future time period, it can also analyze the current status and change indicators of non-fossil energy, dynamically track the trend of the proportion of non-fossil energy in primary energy, and analyze the electrification level on the energy consumption side and the development trend of the proportion of electric energy in terminal energy consumption, so as to provide guidance for achieving the annual target of the share of terminal electricity consumption in the total non-fossil energy.
[0048] In an optional implementation, it is also possible to analyze the electricity and energy consumption trends of different industries, especially high-energy-consuming industries and high-growth industries (such as electric vehicles, coal-to-electricity heating, etc.), and the impact of different industries on the share of urban electricity energy consumption in the energy industry based on industry influencing factors. Specifically, the variance relative contribution analysis method can be used to calculate the contribution of industry electricity to regional electricity consumption, thereby not only realizing the prediction of electricity consumption data, but also conducting an overall analysis of electricity consumption in different industries, providing data support for tapping the potential industries of electricity consumption.
[0049] The method for determining energy consumption data provided in the embodiment of the present application obtains historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data; determines the weights of various influencing factors, wherein the weights are used to characterize the degree of influence of the influencing factors on the size of the historical power consumption data; determines the power consumption data in the future second time period based on the power consumption data in the first historical time period and the weights of various influencing factors, thereby solving the problem in the related art that it is difficult to accurately predict future energy consumption based on historical energy consumption. By determining the weights of various influencing factors of power consumption data, the effect of accurately predicting future energy consumption is achieved.
[0050] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0051] The embodiment of the present application also provides a device for determining energy consumption data. It should be noted that the device for determining energy consumption data in the embodiment of the present application can be used to execute the method for determining energy consumption data provided in the embodiment of the present application. The device for determining energy consumption data provided in the embodiment of the present application is introduced below.
[0052] Figure 2 is a schematic diagram of a device for determining energy consumption data according to an embodiment of the present application. Figure 2 As shown, the device includes: an acquisition unit 10, a first determination unit 20 and a second determination unit 30.
[0053] The acquisition unit 10 is used to acquire historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data.
[0054] The first determining unit 20 is used to determine the weight of each influencing factor, wherein the weight is used to characterize the influence degree of the influencing factor on the size of the historical power consumption data.
[0055] The second determining unit 30 is used to determine the power consumption data in the future second time period according to the power consumption data in the historical first time period and the weights of various influencing factors.
[0056] The energy consumption data determination device provided in the embodiment of the present application obtains historical power consumption data and various influencing factors associated with the historical power consumption data through an acquisition unit 10, wherein the influencing factors are factors that affect the size of the historical power consumption data; a first determination unit 20 determines the weights of various influencing factors, wherein the weights are used to characterize the degree of influence of the influencing factors on the size of the historical power consumption data; a second determination unit 30 determines the power consumption data for a future second time period based on the power consumption data for a historical first time period and the weights of various influencing factors, thereby solving the problem in the related art that it is difficult to accurately predict future energy consumption conditions based on historical energy consumption conditions, and by determining the weights of various influencing factors of the power consumption data, the effect of accurately predicting future energy consumption conditions is achieved.
[0057] Optionally, in the device for determining energy consumption data provided in an embodiment of the present application, the first determination unit 10 includes: a first analysis module, used to analyze the historical power consumption data and each influencing factor using a random forest feature importance model to obtain a first target weight of each influencing factor; a second analysis module, used to analyze the historical power consumption data and each influencing factor through a feature importance attention model to obtain a second target weight of each influencing factor; and a fusion module, used to fuse the first target weight and the second target weight of each influencing factor to obtain the weight of each influencing factor.
[0058] Optionally, the first analysis module includes: a first processing sub-module, used to use a random forest feature importance model to process the historical power consumption data and each influencing factor to obtain a first weight of each influencing factor; a second processing sub-module, used to use a grey correlation analysis model to process the historical power consumption data and each influencing factor to obtain a second weight of each influencing factor; a third processing sub-module, used to perform weighted average processing on the first weight and the second weight to obtain a first target weight of each influencing factor.
[0059] Optionally, the acquisition unit 10 includes: a first acquisition module, used to acquire power consumption data from various sources, and fuse the power consumption data from various sources to obtain historical power consumption data; a data cleaning module, used to clean the historical power consumption data to obtain cleaned power consumption data; a second acquisition module, used to acquire various influencing factors corresponding to the cleaned power consumption data, and obtain various influencing factors associated with the historical power consumption data.
[0060] Optionally, the second determination unit 30 is further configured to process the power consumption data in the first historical time period and the weights of various influencing factors through a long short-term memory model to obtain the power consumption data in the second future time period.
[0061] Optionally, the device also includes: a third determination unit, which is used to determine the power consumption data in the future second time period based on the power consumption data in the historical first time period and the weights of various influencing factors, and then determine the proportion of power consumption in the total amount of energy to be consumed based on the power consumption data in the future second time period and the total amount of energy to be consumed.
[0062] The energy consumption data determination device includes a processor and a memory. The acquisition unit 10, the first determination unit 20, the second determination unit 30, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0063] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of the difficulty in accurately predicting future energy consumption based on historical energy consumption in related technologies can be solved by adjusting kernel parameters.
[0064] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0065] An embodiment of the present application further provides a non-volatile storage medium, the non-volatile storage medium including a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute a method for determining energy consumption data.
[0066] The embodiment of the present application also provides an electronic device, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein when the computer-readable instructions are executed, a method for determining energy consumption data is executed. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0072] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0073] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0074] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0075] 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 on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0076] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for determining energy consumption data, characterized in that: include: Acquire historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data; Determining the weight of each influencing factor, wherein the weight is used to characterize the degree of influence of the influencing factor on the size of the historical power consumption data; Determine the power consumption data for a second time period in the future according to the power consumption data for the first time period in history and the weights of the various influencing factors; Wherein, determining the weight of each influencing factor includes: The historical power consumption data and the influencing factors are analyzed using a random forest feature importance model to obtain a first target weight of the influencing factors; Analyze the historical power consumption data and the various influencing factors through the feature importance attention model of the long short-term memory model to obtain the second target weight of each influencing factor; fuse the first target weight and the second target weight of each influencing factor to obtain the weight of each influencing factor; The use of the random forest feature importance model to process the historical power consumption data and the various influencing factors to obtain the first target weight of each influencing factor includes: The historical power consumption data and the various influencing factors are processed using the random forest feature importance model to obtain a first weight of each influencing factor; Processing the historical power consumption data and the various influencing factors using a grey correlation analysis model to obtain a second weight of the various influencing factors; Performing weighted average processing on the first weight and the second weight to obtain a first target weight of each influencing factor; The determining of the power consumption data in the future second time period according to the power consumption data in the historical first time period and the weights of the various influencing factors includes: The power consumption data in the first historical time period and the weights of the various influencing factors are processed by a long short-term memory model to obtain the power consumption data in the second future time period.
2. The method according to claim 1, characterized in that: The acquisition of historical power consumption data and various influencing factors associated with the historical power consumption data include: Acquiring power consumption data from various sources, and fusing the power consumption data from various sources to obtain the historical power consumption data; Performing data cleaning on the historical power consumption data to obtain cleaned power consumption data; The various influencing factors corresponding to the power consumption data after cleaning are acquired, and the various influencing factors associated with the historical power consumption data are obtained.
3. The method according to claim 1, characterized in that: After determining the power consumption data in the future second time period according to the power consumption data in the historical first time period and the weights of the various influencing factors, the method further includes: Based on the power consumption data in the future second time period and the total amount of energy to be consumed, the proportion of the power consumption in the total amount of energy to be consumed is determined.
4. A device for determining energy consumption data, characterized in that: include: An acquisition unit, configured to acquire historical power consumption data and various influencing factors associated with the historical power consumption data, wherein the influencing factors are factors that affect the size of the historical power consumption data; A first determining unit, configured to determine a weight of each influencing factor, wherein the weight is used to characterize the degree of influence of the influencing factor on the size of the historical power consumption data; A second determining unit, configured to determine the power consumption data in a future second time period according to the power consumption data in the historical first time period and the weights of the various influencing factors; Wherein, the first determining unit includes: A first analysis module, configured to analyze the historical power consumption data and the various influencing factors using a random forest feature importance model to obtain a first target weight of each influencing factor; A second analysis module is used to analyze the historical power consumption data and the various influencing factors through a feature importance attention model of a long short-term memory model to obtain a second target weight of each influencing factor; A fusion module, used for fusing the first target weight and the second target weight of each influencing factor to obtain the weight of each influencing factor; The first analysis module comprises: A first processing submodule, configured to process the historical power consumption data and the various influencing factors using the random forest feature importance model to obtain a first weight of each influencing factor; A second processing submodule, configured to process the historical power consumption data and the various influencing factors using a grey correlation analysis model to obtain a second weight of the various influencing factors; A third processing submodule is used to perform weighted average processing on the first weight and the second weight to obtain a first target weight of each influencing factor; The second determination unit is further configured to process the power consumption data in the first historical time period and the weights of the various influencing factors through the long short-term memory model to obtain the power consumption data in the second future time period.
5. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the method for determining energy consumption data according to any one of claims 1 to 3.
6. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein the computer-readable instructions, when executed, execute the method for determining energy consumption data according to any one of claims 1 to 3.
Citation Information
Patent Citations
Industrial Internet of Things data anomaly detection method based on random forest and long short-term memory network
CN115242431A
