WO2023005120A1 - Energy consumption prediction method and apparatus for building, and computer device and storage medium - Google Patents

Energy consumption prediction method and apparatus for building, and computer device and storage medium Download PDF

Info

Publication number
WO2023005120A1
WO2023005120A1 PCT/CN2021/139906 CN2021139906W WO2023005120A1 WO 2023005120 A1 WO2023005120 A1 WO 2023005120A1 CN 2021139906 W CN2021139906 W CN 2021139906W WO 2023005120 A1 WO2023005120 A1 WO 2023005120A1
Authority
WO
WIPO (PCT)
Prior art keywords
energy consumption
data
time period
model
building
Prior art date
Application number
PCT/CN2021/139906
Other languages
French (fr)
Chinese (zh)
Inventor
杨志科
蒋秋明
王兴荣
董孔益
Original Assignee
上海上实龙创智能科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海上实龙创智能科技股份有限公司 filed Critical 上海上实龙创智能科技股份有限公司
Publication of WO2023005120A1 publication Critical patent/WO2023005120A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/02Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]

Definitions

  • the embodiments of the present application relate to image processing technologies, for example, to a building energy consumption prediction method, device, computer equipment and storage medium.
  • Embodiments of the present application provide a building energy consumption prediction method, device, computer equipment, and storage medium, so as to realize the prediction of building energy consumption and improve the prediction accuracy of building energy consumption.
  • the embodiment of the present application provides a method for predicting building energy consumption, including:
  • the energy consumption correlation data and the energy consumption measurement data are input into an energy consumption prediction model to obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
  • the embodiment of the present application also provides a building energy consumption prediction device, including:
  • the data acquisition module is configured to acquire the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
  • the energy consumption prediction module is configured to input the energy consumption related data and the energy consumption measurement data into the energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
  • the embodiment of the present application also provides a computer device, the computer device comprising:
  • a storage device configured to store at least one program
  • the at least one processor When the at least one program is executed by the at least one processor, the at least one processor implements the building energy consumption prediction method provided in the embodiment of the present application.
  • the embodiment of the present application also provides a storage medium including computer-executable instructions, and the computer-executable instructions are used to execute the method for predicting building energy consumption as provided in the embodiment of the present application when executed by a computer processor .
  • Fig. 1 is a flowchart of a method for predicting building energy consumption in an embodiment of the present application
  • Fig. 2 is a flowchart of a method for predicting building energy consumption in another embodiment of the present application
  • Fig. 3 is a schematic diagram of a model training in an embodiment of the present application.
  • Fig. 4 is a flowchart of a method for predicting building energy consumption in another embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a building energy consumption prediction device in an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of a computer device in an embodiment of the present application.
  • Figure 1 is a flow chart of a method for predicting building energy consumption provided by an embodiment of the present application. This embodiment is applicable to the situation of predicting building energy consumption.
  • the method can be executed by a building energy consumption predicting device, which can Realized by software and/or hardware, configured in a computer device, the computer device can be a server device and a client device, for example, the client device can be a mobile phone, a tablet computer, a vehicle terminal or a desktop computer, etc.
  • the method for predicting building energy consumption in an embodiment of the present application includes the following steps:
  • the target time period refers to the time period of the energy consumption to be predicted.
  • the energy consumption associated data may refer to values of parameters used to predict building energy consumption.
  • the historical time period is the time period prior to the target time period. Wherein, the duration of the historical time period is longer than the duration of the target time period, so that energy consumption trends within a period of time can be calculated and energy consumption can be predicted more accurately.
  • Energy consumption measurement data is the real value of building energy consumption in the historical time period.
  • the energy consumption related data may include temperature data, humidity data, illumination data, wind data, location data and time type data, etc.
  • Energy consumption associated data can be obtained by sending a request to the service interface.
  • temperature data, humidity data, and wind data can be obtained by sending requests to the service interface of the meteorological system.
  • the illumination data can be obtained by sending a request to the service interface of the server that provides the humidity detection service.
  • the time type data may be determined according to the pre-acquired time of the target time period and the corresponding relationship between time and time type.
  • the energy consumption measurement data in the historical time period may be determined by querying the data in the historical time period in the energy consumption measurement data database. In addition, there are other ways to obtain it, which can be set as needed.
  • S120 Input the energy consumption related data and the energy consumption measurement data into an energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
  • the energy consumption prediction model is set to determine the energy consumption prediction data in the target time period according to the energy consumption correlation data in the target time period and the energy consumption measurement data in the historical time period.
  • the energy consumption prediction model may be a machine learning model, and the training samples may include energy consumption related data in the first time period, energy consumption measurement data in the second time period, and energy consumption prediction data in the first time period, wherein the second time period The timing of is before the first time period.
  • the machine learning model may include a convolutional neural network model, a support vector machine model, or a recurrent neural network model.
  • the energy consumption prediction data is the energy consumption data in the target time period.
  • the target time period includes a future time from the current time.
  • the current time is July 8
  • the target time period is July 9
  • the historical time period may be July 1-July 8.
  • energy consumption-related data is not the real value obtained by real-time measurement, but the data obtained by prediction.
  • the embodiment of the present application determines the energy consumption prediction data based on the data related to energy consumption and the historical energy consumption measurement data, and can predict the energy consumption data based on the historical data of energy consumption and the current data of the factors related to energy consumption, avoiding the It can only detect the energy consumption in real time, realize the prediction of energy consumption data based on existing factors and historical energy consumption trends, and take into account the data of different time periods and energy consumption trends, increase the predictive factors of energy consumption, and improve energy consumption. consumption forecast accuracy.
  • Fig. 2 is a flow chart of a building energy consumption prediction method provided by another embodiment of the present application.
  • the technical solution of this embodiment is further refined on the basis of the above technical solution.
  • the energy consumption prediction model is a Stacking integrated model.
  • the Stacking integrated model includes a first layer model and a second layer model, the first layer model includes at least one strong learning model, and the second layer model includes a weak learning model.
  • the method includes:
  • the Stacking integrated model includes a first layer model and a second layer model, the first layer model includes at least one strong learning model, and the second layer model includes a weak learning model.
  • Stacking is a layered model integration framework. Taking two layers as an example, the first layer model is composed of multiple base learners whose input is the original training set, and the second layer model uses the output of the first layer base learner as the training set for retraining to obtain a complete The Stacking model.
  • the energy consumption related data and energy consumption measurement data are input into the first layer model, and the characteristics output by the first layer model are obtained, and the characteristics are input into the second layer model, and the output of the second layer model is obtained, which is determined as the energy consumption prediction model
  • the output is the energy consumption prediction data for the target time period.
  • the strong learning model has a good prediction effect, while the weak learning model has a strong focus.
  • the strong learning model to improve the prediction accuracy combined with the weak learning model to improve the feature learning ability, the prediction accuracy of the Stacking integrated model is greatly improved.
  • the first layer model uses a variety of regression models to learn and predict the input data, and the prediction results are used as the input of the second layer model.
  • the second layer model uses a relatively simple regression model to reduce the risk of overfitting and obtain the final forecast result.
  • the strong learning models include support vector machine models, extreme gradient boosting models, and backpropagation models, and the weak learning models include linear regression models.
  • Support Vector Machines is a supervised learning model and related learning algorithms that use classification and regression analysis to analyze data. Given a set of training samples, each training sample is labeled as belonging to one or the other of the two categories.
  • the training algorithm for support vector machines creates a model that assigns new samples to one of two classes, making it a non-probabilistic binary linear classifier.
  • the support vector machine model represents samples as points in a map in space, so that samples with a single class can be separated as clearly as possible.
  • the support vector machine adopts the structural risk minimization criterion to design the learning machine, which compromises the empirical risk and the confidence range, and has good generalization ability; the support vector machine is specially aimed at the limited sample situation, and its goal is to obtain the optimal information under the existing information. solution, not just the optimal solution when the number of samples tends to infinity, but the number of samples in this application is limited.
  • the extreme gradient boosting model (eXtreme Gradient Boosting, xgboost) is a gradient boosting algorithm.
  • Gradient boosting algorithms refer to a class of ensemble machine learning algorithms that can be used for classification or regression predictive modeling problems.
  • Boosting is built from a decision tree model. Trees are added to the ensemble one at a time and adjusted to correct for prediction errors caused by previous models.
  • xgboost has fast execution speed and good model performance.
  • xgboost is the loss value after learning before each iteration of learning, and the predicted value of the base classifier is added to predict the result.
  • the backpropagation model (Backpropagation, BP) is a multilayer feedforward neural network trained according to the error backpropagation algorithm.
  • the backpropagation model uses the gradient descent method for U-shaped energy connection, and uses the gradient search technology to minimize the mean square error between the actual output value and the expected output value of the network.
  • a linear regression model is a mathematical regression model that determines the correlation between variables.
  • the acquisition of energy consumption related data of the building target time period includes at least one of the following: temperature data, humidity data, illumination data and time type data.
  • the temperature data may refer to the predicted temperature of the building for a target time period.
  • the humidity data may refer to the predicted humidity of the building for a target time period.
  • the lighting data may refer to the predicted lighting of the building during the time period when the lighting exists in the target time period.
  • the time type data may refer to a date type corresponding to a target time period, a corresponding season type, and the like. Among them, the date type includes working day type and non-working day type; season type corresponds to spring, summer, autumn and winter and other types.
  • the energy-related data may also include wind power data, which is the predicted wind power of the building within the target time period.
  • the energy consumption-associated data may also include location data and climate data, etc.
  • the location data may refer to the geographic location of the building and the climate corresponding to the geographic location.
  • the energy consumption associated data as at least one of temperature data, humidity data, illumination data, and time type data, the range of factors affecting energy consumption can be enriched, and the accuracy of energy consumption prediction can be improved.
  • the temperature data includes the average temperature of the building in the target time period and the instantaneous temperature of each unit time period in the target time period, and the unit time period is the time obtained by dividing the target time period part.
  • the unit time period is a unit obtained by dividing the target time period.
  • the duration of the target time period is one day, and the unit time period may be 1 hour; for another example, the duration of the target time period is one month or one week, and the unit time period may be 1 day.
  • the target time period is January 1st and the unit time period is one hour of January 1st.
  • the temperature data may include the predicted average temperature for a day on January 1, and the predicted temperature for 24 hours.
  • the humidity data may be the average humidity of a day on January 1st.
  • the features related to energy consumption can be subdivided, the dimension of features can be increased, feature information can be enriched, and the accuracy of energy consumption prediction can be improved.
  • the energy consumption related data includes temperature data and humidity data; obtaining the energy consumption related data of the building target time period includes: sending a weather forecast data acquisition request to the meteorological system; receiving the temperature data and humidity of the target time period fed back by the meteorological system data.
  • Temperature data and humidity data can be obtained through meteorological systems that provide weather forecast services.
  • the weather forecast data acquisition request is used to request the weather system to acquire the temperature data and humidity data of the building in the target time period.
  • the meteorological forecast data acquisition request includes the geographical location of the building, the forecast time, and the type of forecast data.
  • the energy consumption measurement data of the historical time period includes the energy consumption measurement data of each unit time period of the building in the historical time period; the energy consumption forecast data of the target time period includes the building in the Energy consumption forecast data for each unit time period within the target time period.
  • the unit time period is used to divide the target time period, and can also divide the historical time period.
  • the fine-grained energy consumption prediction data can be increased, and the prediction accuracy can be flexibly controlled.
  • Inputting the energy consumption associated data and the energy consumption measurement data into the energy consumption prediction model includes: forming data of a specified structure according to the energy consumption associated data and the energy consumption measurement data, and performing normalization processing , and input the normalized data into the energy consumption prediction model.
  • the training process of the Stacking integrated model may include: collecting energy consumption related data in a target time period, energy consumption measurement data in a historical time period, and energy consumption measurement data in a target time period.
  • the energy consumption measurement data in the target time period is used as the real value of the energy consumption prediction data in the target time period.
  • the energy consumption correlation data and energy consumption measurement data generate the sample data of the specified structure, each sample data includes the predicted average temperature in the first time period, the predicted instantaneous temperature in each hour in the first time period, and the predicted temperature in the first time period.
  • the first time period is the current day
  • the second time period is 10 days before the current day.
  • the predicted instantaneous temperature for each hour in the first time period includes T0, T1, T2...T23.
  • the power consumption measurement data of each hour in the second time period includes E0, E1...E229.
  • ⁇ j is the deviation of the jth sample component
  • D ij is the jth sample component of the i sample
  • m is the sample number of the jth sample component
  • the Stacking integrated model includes two-layer models, the first-layer model includes support vector machine model, extreme gradient boosting model and backpropagation model, and the second-layer model includes linear regression model.
  • the data set of the sample data is first divided into a training set and a test set, and the training set is subjected to 5-fold cross-validation.
  • each cross-validation obtains the predicted value of the verification set, and the five predicted values are combined into the feature column output by the SVM in the new training set, and combined with the label feature column in the training set to form the input data of the second-layer model;
  • test set input the test set into each cross-validation model to obtain the predicted value, take the average value of five times, and use it as the feature column output by the SVM for the new test set.
  • the feature column output by SVM, the feature column output by xgboost and the feature column output by BP constitute the output of the first layer model, and the label (label) column is used as the input of the second layer model, and the label column is the energy of the target time period consumption measurement data.
  • the liner regress in the Stacking integration model and the energy consumption measurement data of the target time period
  • the building energy consumption prediction method may include: S410, collecting energy consumption correlation data and energy consumption measurement data.
  • S420. Generate sample data of a specified structure according to the energy consumption correlation data and the energy consumption measurement data.
  • S430 performing normalization processing on the generated sample data.
  • S440. Process the normalized sample data through the vector machine model, the extreme gradient boosting model and the backpropagation model in the Stacking integrated model to obtain output data.
  • S460. Obtain energy consumption prediction data output by the linear regression model, that is, energy consumption prediction data output by the Stacking integrated model.
  • the integrated model including the first-layer model of SVM, xgboost and BP and the second-layer model of the Stacking integrated model of liner regression, it is possible to predict the power consumption prediction data for each hour of the next day, next week or next month, and realize Predicting the energy consumption of buildings will help relevant technicians allocate resources rationally and avoid waste of resources.
  • the advantages of various models are integrated, the prediction deviation is reduced, the generalization ability of the Stacking integrated model is increased, and the practicability is enhanced.
  • the prediction accuracy is improved through the strong learning model rate, combined with the weak learning model to improve the learning ability of features, and improve the prediction accuracy of the Stacking integrated model.
  • FIG. 5 is a schematic structural diagram of a building energy consumption prediction device provided by an embodiment of the present application.
  • This embodiment is a corresponding device for implementing the method for predicting building energy consumption provided by the above embodiments.
  • the device can be implemented in the form of software and/or hardware, and can generally be integrated into computer equipment.
  • Building energy consumption prediction devices include:
  • the data acquisition module 510 is configured to acquire the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
  • the energy consumption prediction module 520 is configured to input the energy consumption related data and the energy consumption measurement data into the energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
  • the embodiment of the present application determines the energy consumption prediction data based on the data related to energy consumption and the historical energy consumption measurement data, and can predict the energy consumption data based on the historical data of energy consumption and the current data of the factors related to energy consumption, avoiding the It can only detect the energy consumption in real time, realize the prediction of energy consumption data based on existing factors and historical energy consumption trends, and take into account the data of different time periods and energy consumption trends, increase the predictive factors of energy consumption, and improve energy consumption. consumption forecast accuracy.
  • the energy consumption prediction model is a Stacking integrated model, the Stacking integrated model includes a first layer model and a second layer model, the first layer model includes at least one strong learning model, and the second layer model includes a weak learning model .
  • the strong learning models include support vector machine models, extreme gradient boosting models, and backpropagation models, and the weak learning models include linear regression models.
  • the acquisition of energy consumption related data of the building target time period includes at least one of the following: temperature data, humidity data, illumination data and time type data.
  • the energy consumption-related data includes temperature data and humidity data; the data acquisition module 510 is configured to: send a weather forecast data acquisition request to the meteorological system; and receive temperature data and humidity data of a target time period fed back by the meteorological system.
  • the temperature data includes the average temperature of the building in the target time period and the instantaneous temperature of each unit time period in the target time period, and the unit time period is obtained by dividing the target time period time period.
  • the duration of the historical time period is longer than the duration of the target time period, and the time sequence of the historical time period is before the time sequence of the target time period.
  • the energy consumption measurement data of the historical time period includes the energy consumption measurement data of each unit time period of the building in the historical time period; the energy consumption forecast data of the target time period includes the building in the Energy consumption prediction data for each unit time period within the target time period.
  • the above-mentioned device can execute the building energy consumption prediction method provided in the embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the building energy consumption prediction method.
  • FIG. 4 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • FIG. 4 shows a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present application.
  • the computer device 12 shown in FIG. 4 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
  • computer device 12 takes the form of a general-purpose computing device.
  • Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16 , system memory 28 , bus 18 connecting various system components including system memory 28 and processing unit 16 .
  • the computer device 12 may be a bus-attached device.
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include but are not limited to Industry Standard Architecture (Industry Standard Architecture, ISA) bus, Micro Channel Architecture (Micro Channel Architecture, MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
  • Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12 and include both volatile and nonvolatile media, removable and non-removable media.
  • System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 .
  • Computer device 12 may include other removable/non-removable, volatile/nonvolatile computer system storage media.
  • storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive”).
  • a disk drive for reading and writing to a removable non-volatile disk such as a "floppy disk”
  • a disk drive for a removable non-volatile disk such as a Compact Disk ROM (Compact Disk).
  • System memory 28 may include at least one program product having a set (eg, at least one) of program components configured to perform the functions of various embodiments of the present application.
  • Programs/utilities 40 may be stored, for example, in system memory 28 as a set (at least one) of program components 42 including, but not limited to, an operating system, one or more application programs, other program components, and program data, each or some combination of these examples may include the implementation of the network environment.
  • Program components 42 generally perform the functions and/or methodologies of the embodiments described herein.
  • the computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and/or with Any device (eg, network card, modem, etc.) that enables the computing device 12 to communicate with one or more other computing devices.
  • This communication can be performed through an input/output (Input/Output, I/O) interface 22 .
  • computer device 12 can also communicate with one or more networks (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN)) by network adapter 20.
  • network adapter 20 communicates with by bus 18 other components of computer device 12.
  • the processing unit 16 executes a variety of functional applications and data processing by running the programs stored in the system memory 28 , such as realizing the building energy consumption prediction method provided by any embodiment of the present application.
  • An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the building energy consumption prediction method provided in all application embodiments of the present application is implemented:
  • the program when executed by the processor, it realizes: acquiring the energy consumption correlation data of the building target time period, and the energy consumption measurement data of the historical time period; inputting the energy consumption correlation data and the energy consumption measurement data into the energy consumption In the energy consumption prediction model, the energy consumption prediction data output by the energy consumption prediction model for the target time period is obtained.
  • the computer storage medium in the embodiments of the present application may use any combination of one or more computer-readable media.
  • the computer readable medium may be a computer readable signal medium or a computer readable storage medium.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections with one or more conductors, portable computer disks, hard disks, RAM, Read Only Memory (ROM), erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), flash memory, optical fiber, portable CD-ROM, optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
  • the computer readable storage medium may be a non-transitory computer readable storage medium.
  • Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
  • RF Radio Frequency
  • Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a LAN or WAN, or, alternatively, can be connected to an external computer (eg, via the Internet using an Internet service provider).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed in the present application are an energy consumption prediction method and apparatus for a building, and a computer device and a storage medium. The energy consumption prediction method for a building comprises: acquiring energy consumption association data of a building within a target time period and energy consumption measurement data of the building within a historical time period; and inputting the energy consumption association data and the energy consumption measurement data into an energy consumption prediction model, so as to obtain energy consumption prediction data, within the target time period, which is output by the energy consumption prediction model.

Description

楼宇能耗预测方法、装置、计算机设备和存储介质Building energy consumption prediction method, device, computer equipment and storage medium
本申请要求在2021年7月27日提交中国专利局、申请号为202110849274.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202110849274.8 filed with the China Patent Office on July 27, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请实施例涉及图像处理技术,例如涉及一种楼宇能耗预测方法、装置、计算机设备和存储介质。The embodiments of the present application relate to image processing technologies, for example, to a building energy consumption prediction method, device, computer equipment and storage medium.
背景技术Background technique
在现代城市中,楼宇经济在特大城市中心商务区已经成为经济发展的重要组成。如何合理地管控建筑的能耗问题是实现最优楼宇经济发展的重要手段。In modern cities, building economy has become an important part of economic development in the central business district of a megacity. How to reasonably manage and control the energy consumption of buildings is an important means to achieve optimal building economic development.
相关技术中,楼宇能耗通常是当日检测得到。In related technologies, building energy consumption is usually detected on the same day.
但是,当日检测得到的能耗检测结果时效性差。However, the timeliness of the energy consumption test results obtained from the daily test is poor.
发明内容Contents of the invention
本申请实施例提供一种楼宇能耗预测方法、装置、计算机设备和存储介质,以实现预测楼宇能耗,并提高楼宇能耗的预测准确率。Embodiments of the present application provide a building energy consumption prediction method, device, computer equipment, and storage medium, so as to realize the prediction of building energy consumption and improve the prediction accuracy of building energy consumption.
第一方面,本申请实施例提供了一种楼宇能耗预测方法,包括:In the first aspect, the embodiment of the present application provides a method for predicting building energy consumption, including:
获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据;Obtain the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。The energy consumption correlation data and the energy consumption measurement data are input into an energy consumption prediction model to obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
第二方面,本申请实施例还提供了一种楼宇能耗预测装置,包括:In the second aspect, the embodiment of the present application also provides a building energy consumption prediction device, including:
数据采集模块,设置为获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据;The data acquisition module is configured to acquire the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
能耗预测模块,设置为将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。The energy consumption prediction module is configured to input the energy consumption related data and the energy consumption measurement data into the energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
第三方面,本申请实施例还提供了一种计算机设备,所述计算机设备包括:In a third aspect, the embodiment of the present application also provides a computer device, the computer device comprising:
至少一个处理器;at least one processor;
存储装置,设置为存储至少一个程序;a storage device configured to store at least one program;
当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如本申请实施例提供的楼宇能耗预测方法。When the at least one program is executed by the at least one processor, the at least one processor implements the building energy consumption prediction method provided in the embodiment of the present application.
第四方面,本申请实施例还提供了一种包括计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如本申请实施例提供的楼宇能耗预测方法。In the fourth aspect, the embodiment of the present application also provides a storage medium including computer-executable instructions, and the computer-executable instructions are used to execute the method for predicting building energy consumption as provided in the embodiment of the present application when executed by a computer processor .
附图说明Description of drawings
图1是本申请一实施例中的一种楼宇能耗预测方法的流程图;Fig. 1 is a flowchart of a method for predicting building energy consumption in an embodiment of the present application;
图2是本申请另一实施例中的一种楼宇能耗预测方法的流程图;Fig. 2 is a flowchart of a method for predicting building energy consumption in another embodiment of the present application;
图3是本申请一实施例中的一种模型训练的示意图;Fig. 3 is a schematic diagram of a model training in an embodiment of the present application;
图4是本申请另一实施例中的一种楼宇能耗预测方法的流程图;Fig. 4 is a flowchart of a method for predicting building energy consumption in another embodiment of the present application;
图5是本申请一实施例中的一种楼宇能耗预测装置的结构示意图;Fig. 5 is a schematic structural diagram of a building energy consumption prediction device in an embodiment of the present application;
图6是本申请一实施例中的一种计算机设备的结构示意图。Fig. 6 is a schematic structural diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
图1为本申请一实施例提供的一种楼宇能耗预测方法的流程图,本实施例可适用于对楼宇能耗预测的情况,该方法可以由楼宇能耗预测装置来执行,该装置可以由软件和/或硬件来实现,配置于计算机设备中,计算机设备可以是服务端设备和客户端设备,例如,客户端设备是可以是手机、平板电脑、车载终端或台式计算机等。本申请一实施例中的楼宇能耗预测方法包括如下步骤:Figure 1 is a flow chart of a method for predicting building energy consumption provided by an embodiment of the present application. This embodiment is applicable to the situation of predicting building energy consumption. The method can be executed by a building energy consumption predicting device, which can Realized by software and/or hardware, configured in a computer device, the computer device can be a server device and a client device, for example, the client device can be a mobile phone, a tablet computer, a vehicle terminal or a desktop computer, etc. The method for predicting building energy consumption in an embodiment of the present application includes the following steps:
S110,获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据。S110. Obtain the energy consumption related data of the building target time period and the energy consumption measurement data of the historical time period.
目标时间段是指待预测的能耗的时间段。能耗关联数据可以是指用于预测楼宇能耗的参数的数值。历史时间段是指目标时间段之前的时间段。其中,历史时间段的时长大于所述目标时间段的时长,从而可以统计一段时间内的能耗趋势,更准确预测能耗。能耗测量数据为楼宇能耗在历史时间段内的真实值。其中,能耗关联数据可以包括温度数据、湿度数据、光照数据、风力数据、位 置数据和时间类型数据等。The target time period refers to the time period of the energy consumption to be predicted. The energy consumption associated data may refer to values of parameters used to predict building energy consumption. The historical time period is the time period prior to the target time period. Wherein, the duration of the historical time period is longer than the duration of the target time period, so that energy consumption trends within a period of time can be calculated and energy consumption can be predicted more accurately. Energy consumption measurement data is the real value of building energy consumption in the historical time period. Among them, the energy consumption related data may include temperature data, humidity data, illumination data, wind data, location data and time type data, etc.
能耗关联数据可以通过向服务接口发送请求获取。例如,温度数据、湿度数据和风力数据等可以向气象系统的服务接口发送请求获取。光照数据可以向提供湿度检测服务的服务器的服务接口发送请求获取。时间类型数据可以根据预先获取的目标时间段的时间,和时间与时间类型之间的对应关系确定。历史时间段的能耗测量数据,可以通过在能耗测量数据的数据库中,查询历史时间段的数据确定。此外,还有其他方式可以获取,可以根据需要进行设定。Energy consumption associated data can be obtained by sending a request to the service interface. For example, temperature data, humidity data, and wind data can be obtained by sending requests to the service interface of the meteorological system. The illumination data can be obtained by sending a request to the service interface of the server that provides the humidity detection service. The time type data may be determined according to the pre-acquired time of the target time period and the corresponding relationship between time and time type. The energy consumption measurement data in the historical time period may be determined by querying the data in the historical time period in the energy consumption measurement data database. In addition, there are other ways to obtain it, which can be set as needed.
S120,将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。S120. Input the energy consumption related data and the energy consumption measurement data into an energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
能耗预测模型设置为根据目标时间段的能耗关联数据和历史时间段的能耗测量数据,确定目标时间段的能耗预测数据。能耗预测模型可以是机器学习模型,训练样本可以包括第一时间段的能耗关联数据、第二时间段的能耗测量数据和第一时间段的能耗预测数据,其中,第二时间段的时序在第一时间段之前。其中,机器学习模型可以包括卷积神经网络模型、支持向量机模型或循环神经网络模型等。The energy consumption prediction model is set to determine the energy consumption prediction data in the target time period according to the energy consumption correlation data in the target time period and the energy consumption measurement data in the historical time period. The energy consumption prediction model may be a machine learning model, and the training samples may include energy consumption related data in the first time period, energy consumption measurement data in the second time period, and energy consumption prediction data in the first time period, wherein the second time period The timing of is before the first time period. Wherein, the machine learning model may include a convolutional neural network model, a support vector machine model, or a recurrent neural network model.
能耗预测数据为目标时间段的能耗数据。通常,目标时间段包括当前时间的未来时间。例如,当前时间为7月8号,目标时间段为7月9号,历史时间段可以是7月1号-7月8号。实际上,能耗关联数据不是实时测量得到的真值,是预测得到的数据。The energy consumption prediction data is the energy consumption data in the target time period. Typically, the target time period includes a future time from the current time. For example, the current time is July 8, the target time period is July 9, and the historical time period may be July 1-July 8. In fact, energy consumption-related data is not the real value obtained by real-time measurement, but the data obtained by prediction.
本申请实施例通过基于能耗关联的数据以及历史的能耗测量数据,确定能耗预测数据,可以基于能耗历史数据和能耗关联因素的当前数据,预测能耗数据,避免了相关技术中只能实时检测能耗的情况,实现根据现有因素和历史的能耗变化趋势,预测能耗数据,考虑到不同时间段的数据,以及能耗变化趋势,增加能耗的预测因素,提高能耗的预测准确性。The embodiment of the present application determines the energy consumption prediction data based on the data related to energy consumption and the historical energy consumption measurement data, and can predict the energy consumption data based on the historical data of energy consumption and the current data of the factors related to energy consumption, avoiding the It can only detect the energy consumption in real time, realize the prediction of energy consumption data based on existing factors and historical energy consumption trends, and take into account the data of different time periods and energy consumption trends, increase the predictive factors of energy consumption, and improve energy consumption. consumption forecast accuracy.
图2为本申请另一实施例提供的一种楼宇能耗预测方法的流程图,本实施例的技术方案在上述技术方案的基础上进一步细化,能耗预测模型为Stacking集成模型,所述Stacking集成模型包括第一层模型和第二层模型,所述第一层模型包括至少一个强学习模型,所述第二层模型包括弱学习模型。该方法包括:Fig. 2 is a flow chart of a building energy consumption prediction method provided by another embodiment of the present application. The technical solution of this embodiment is further refined on the basis of the above technical solution. The energy consumption prediction model is a Stacking integrated model. The Stacking integrated model includes a first layer model and a second layer model, the first layer model includes at least one strong learning model, and the second layer model includes a weak learning model. The method includes:
S210,获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据。S210. Obtain the energy consumption related data of the building target time period and the energy consumption measurement data of the historical time period.
S220,将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中, 得到所述能耗预测模型输出的所述目标时间段的能耗预测数据,所述能耗预测模型为Stacking集成模型,所述Stacking集成模型包括第一层模型和第二层模型,所述第一层模型包括至少一个强学习模型,所述第二层模型包括弱学习模型。S220. Input the energy consumption related data and the energy consumption measurement data into an energy consumption prediction model, and obtain the energy consumption prediction data output by the energy consumption prediction model for the target time period, and the energy consumption prediction model It is a Stacking integrated model, the Stacking integrated model includes a first layer model and a second layer model, the first layer model includes at least one strong learning model, and the second layer model includes a weak learning model.
实际上,Stacking是一种分层模型集成框架。以两层为例,第一层模型由多个基学习器组成,其输入为原始训练集,第二层模型则是以第一层基学习器的输出作为训练集进行再训练,从而得到完整的Stacking模型。能耗关联数据和能耗测量数据输入至第一层模型,得到第一层模型输出的特征,将该特征输入至第二层模型,得到第二层模型的输出,确定为能耗预测模型的输出,即目标时间段的能耗预测数据。In fact, Stacking is a layered model integration framework. Taking two layers as an example, the first layer model is composed of multiple base learners whose input is the original training set, and the second layer model uses the output of the first layer base learner as the training set for retraining to obtain a complete The Stacking model. The energy consumption related data and energy consumption measurement data are input into the first layer model, and the characteristics output by the first layer model are obtained, and the characteristics are input into the second layer model, and the output of the second layer model is obtained, which is determined as the energy consumption prediction model The output is the energy consumption prediction data for the target time period.
其中,强学习模型的预测效果好,而弱学习模型的专注力强。通过强学习模型提高预测准确率,并结合弱学习模型提高特征的学习能力,大大提高Stacking集成模型的预测准确率。第一层模型使用多种回归模型对输入数据进行学习和预测,并将预测结果作为第二层模型的输入,第二层模型使用相对简单的回归模型以减少过拟合的风险,得到最终的预测结果。Among them, the strong learning model has a good prediction effect, while the weak learning model has a strong focus. Through the strong learning model to improve the prediction accuracy, combined with the weak learning model to improve the feature learning ability, the prediction accuracy of the Stacking integrated model is greatly improved. The first layer model uses a variety of regression models to learn and predict the input data, and the prediction results are used as the input of the second layer model. The second layer model uses a relatively simple regression model to reduce the risk of overfitting and obtain the final forecast result.
所述强学习模型包括支持向量机模型、极端梯度提升模型和反向传播模型,所述弱学习模型包括线性回归模型。The strong learning models include support vector machine models, extreme gradient boosting models, and backpropagation models, and the weak learning models include linear regression models.
其中,支持向量机(Support Vector Machines,SVM)是使用分类与回归分析来分析数据的监督学习模型及其相关的学习算法。在给定一组训练样本后,每个训练样本被标记为属于两个类别中的一个或另一个。支持向量机的训练算法会创建一个将新的样本分配给两个类别之一的模型,使其成为非概率二元线性分类器。支持向量机模型将样本表示为在空间中的映射的点,这样具有单一类别的样本能尽可能明显的间隔分开出来。支持向量机采用结构风险最小化准则设计学习机器,折衷考虑经验风险和置信范围,具有较好的推广能力;支持向量机是专门针对有限样本情况的,其目标是得到现有信息下的最优解,而不仅仅是样本数趋于无穷大时的最优解,而本申请中的样本数是有限的。Among them, Support Vector Machines (Support Vector Machines, SVM) is a supervised learning model and related learning algorithms that use classification and regression analysis to analyze data. Given a set of training samples, each training sample is labeled as belonging to one or the other of the two categories. The training algorithm for support vector machines creates a model that assigns new samples to one of two classes, making it a non-probabilistic binary linear classifier. The support vector machine model represents samples as points in a map in space, so that samples with a single class can be separated as clearly as possible. The support vector machine adopts the structural risk minimization criterion to design the learning machine, which compromises the empirical risk and the confidence range, and has good generalization ability; the support vector machine is specially aimed at the limited sample situation, and its goal is to obtain the optimal information under the existing information. solution, not just the optimal solution when the number of samples tends to infinity, but the number of samples in this application is limited.
极端梯度提升模型(eXtreme Gradient Boosting,xgboost),是一种梯度提升算法。梯度提升算法是指一类集成机器学习算法,可用于分类或回归预测建模问题。Boosting是根据决策树模型构建的。一次将一棵树添加到集合中,并进行调整以纠正由先前模型造成的预测误差。xgboost相比较其他梯度提升算法,其执行速度快和模型性能好。xgboost是每次迭代学习之前学习后的损失值,用基 分类器预测值相加,来预测结果。The extreme gradient boosting model (eXtreme Gradient Boosting, xgboost) is a gradient boosting algorithm. Gradient boosting algorithms refer to a class of ensemble machine learning algorithms that can be used for classification or regression predictive modeling problems. Boosting is built from a decision tree model. Trees are added to the ensemble one at a time and adjusted to correct for prediction errors caused by previous models. Compared with other gradient boosting algorithms, xgboost has fast execution speed and good model performance. xgboost is the loss value after learning before each iteration of learning, and the predicted value of the base classifier is added to predict the result.
反向传播模型(Backpropagation,BP)是按照误差逆向传播算法训练的多层前馈神经网络。反向传播模型采用梯度下降法进行U型能连,利用梯度搜索技术,以期使网络的实际输出值和期望输出值的误差均方差为最小。The backpropagation model (Backpropagation, BP) is a multilayer feedforward neural network trained according to the error backpropagation algorithm. The backpropagation model uses the gradient descent method for U-shaped energy connection, and uses the gradient search technology to minimize the mean square error between the actual output value and the expected output value of the network.
线性回归模型是确定变量之间的相关关系的一种数学回归模型。A linear regression model is a mathematical regression model that determines the correlation between variables.
通过采用支持向量机模型、极端梯度提升模型和反向传播模型作为强学习模型,并采用线性回归模型作为弱学习模型,可以了多种算法的优势,从不同角度去观测数据空间和结构,避免使用单种模型出现局部最优的情况,并且采用了差异度高且学习能力强的算法融合来进行优化,使得Stacking模型融合的预测效果能够达到最优。By adopting the support vector machine model, extreme gradient boosting model and backpropagation model as the strong learning model, and using the linear regression model as the weak learning model, the advantages of various algorithms can be obtained, and the data space and structure can be observed from different angles to avoid Local optimality occurs when using a single model, and the algorithm fusion with high degree of difference and strong learning ability is used for optimization, so that the prediction effect of Stacking model fusion can reach the best.
所述获取楼宇目标时间段的能耗关联数据,包括下述至少一项:温度数据、湿度数据、光照数据和时间类型数据。The acquisition of energy consumption related data of the building target time period includes at least one of the following: temperature data, humidity data, illumination data and time type data.
温度数据可以是指楼宇在目标时间段的预测温度。湿度数据可以是指楼宇在目标时间段的预测湿度。光照数据可以是指楼宇在目标时间段中存在光照的时间段内的预测光照。时间类型数据可以是指目标时间段对应的日期类型和对应的季节类型等。其中,日期类型包括工作日类型和非工作日类型;季节类型对应春、夏、秋和冬等类型。此外,能耗关联数据还可以包括风力数据,楼宇在目标时间段内的预测风力。能耗关联数据还可以包括位置数据和气候数据等,位置数据可以是指楼宇的地理位置,以及该地理位置对应的气候。The temperature data may refer to the predicted temperature of the building for a target time period. The humidity data may refer to the predicted humidity of the building for a target time period. The lighting data may refer to the predicted lighting of the building during the time period when the lighting exists in the target time period. The time type data may refer to a date type corresponding to a target time period, a corresponding season type, and the like. Among them, the date type includes working day type and non-working day type; season type corresponds to spring, summer, autumn and winter and other types. In addition, the energy-related data may also include wind power data, which is the predicted wind power of the building within the target time period. The energy consumption-associated data may also include location data and climate data, etc. The location data may refer to the geographic location of the building and the climate corresponding to the geographic location.
通过配置能耗关联数据为温度数据、湿度数据、光照数据和时间类型数据等中至少一项,可以丰富能耗的影响因素的范围,提高能耗的预测准确率。By configuring the energy consumption associated data as at least one of temperature data, humidity data, illumination data, and time type data, the range of factors affecting energy consumption can be enriched, and the accuracy of energy consumption prediction can be improved.
所述温度数据包括所述楼宇在所述目标时间段的平均温度和在所述目标时间段内的每个单元时间段的瞬时温度,单元时间段为对所述目标时间段进行划分得到的时间段。The temperature data includes the average temperature of the building in the target time period and the instantaneous temperature of each unit time period in the target time period, and the unit time period is the time obtained by dividing the target time period part.
单元时间段为目标时间段划分得到的单元。示例性的,目标时间段的时长为一天,单元时间段可以是1个小时;又如,目标时间段的时长为一个月或一周,单元时间段可以是1天。在一个例子中,目标时间段为1月1日,单元时间段为1月1日的一个小时。温度数据可以包括1月1日一天的预测平均温度,以及24个小时的预测温度。湿度数据可以是1月1日一天的平均湿度。The unit time period is a unit obtained by dividing the target time period. Exemplarily, the duration of the target time period is one day, and the unit time period may be 1 hour; for another example, the duration of the target time period is one month or one week, and the unit time period may be 1 day. In one example, the target time period is January 1st and the unit time period is one hour of January 1st. The temperature data may include the predicted average temperature for a day on January 1, and the predicted temperature for 24 hours. The humidity data may be the average humidity of a day on January 1st.
通过配置更细化的温度数据,可以对能耗关联的特征进行细分,增加特征的维度,丰富特征信息,提高能耗预测的准确率。By configuring more detailed temperature data, the features related to energy consumption can be subdivided, the dimension of features can be increased, feature information can be enriched, and the accuracy of energy consumption prediction can be improved.
所述能耗关联数据包括温度数据和湿度数据;获取楼宇目标时间段的能耗关联数据,包括:向气象系统发送气象预测数据获取请求;接收所述气象系统反馈目标时间段的温度数据和湿度数据。The energy consumption related data includes temperature data and humidity data; obtaining the energy consumption related data of the building target time period includes: sending a weather forecast data acquisition request to the meteorological system; receiving the temperature data and humidity of the target time period fed back by the meteorological system data.
温度数据和湿度数据可以通过提供天气预报服务的气象系统获取。气象预测数据获取请求用于向气象系统请求获取楼宇在目标时间段的温度数据和湿度数据。其中,气象预测数据获取请求包括楼宇的地理位置、预测时间和预测数据的类型等。Temperature data and humidity data can be obtained through meteorological systems that provide weather forecast services. The weather forecast data acquisition request is used to request the weather system to acquire the temperature data and humidity data of the building in the target time period. Wherein, the meteorological forecast data acquisition request includes the geographical location of the building, the forecast time, and the type of forecast data.
通过气象系统获取目标时间段的预测温度和预测湿度,提高温度和湿度的准确率,从而提高能耗预测的准确率。Obtain the predicted temperature and predicted humidity of the target time period through the meteorological system, improve the accuracy of temperature and humidity, and thus improve the accuracy of energy consumption prediction.
所述历史时间段的能耗测量数据包括所述楼宇在所述历史时间段内每个单元时间段的能耗测量数据;所述目标时间段的能耗预测数据,包括所述楼宇在所述目标时间段内每个单元时间段的能耗预测数据。The energy consumption measurement data of the historical time period includes the energy consumption measurement data of each unit time period of the building in the historical time period; the energy consumption forecast data of the target time period includes the building in the Energy consumption forecast data for each unit time period within the target time period.
单元时间段用于对目标时间段划分,同样可以对历史时间段进行划分。通过配置细化能耗测量数据,并预测楼宇在单元时间段的能耗预测数据,可以增加能耗预测数据的细粒度,灵活控制预测精度。The unit time period is used to divide the target time period, and can also divide the historical time period. By configuring and refining the energy consumption measurement data and predicting the energy consumption prediction data of the building in a unit time period, the fine-grained energy consumption prediction data can be increased, and the prediction accuracy can be flexibly controlled.
将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,包括:根据所述能耗关联数据和所述能耗测量数据,形成指定结构的数据,并归一化处理,并将归一化处理后的数据输入至能耗预测模型中。Inputting the energy consumption associated data and the energy consumption measurement data into the energy consumption prediction model includes: forming data of a specified structure according to the energy consumption associated data and the energy consumption measurement data, and performing normalization processing , and input the normalized data into the energy consumption prediction model.
在一个例子中,Stacking集成模型的训练过程可以包括:收集目标时间段的能耗关联数据、历史时间段的能耗测量数据和目标时间段的能耗测量数据。其中,目标时间段的能耗测量数据作为目标时间段的能耗预测数据的真实值。根据能耗关联数据和能耗测量数据,生成指定结构的样本数据,每个样本数据包括第一时间段的预测平均温度、第一时间段内每个小时的预测瞬时温度、第一时间段的预测平均湿度、第一时间段的日期类型、第一时间段内存在光照的时间段中的每个小时的预测光照和第二时间段内每个小时的电量消耗测量数据,以及第一时间段内每个小时的电量消耗测量数据。例如,第一时间段为当天,第二时间段为当天之前的10天。其中,第一时间段内每个小时的预测瞬时温度包括T0、T1、T2……T23。第二时间段内每个小时的电量消耗测量数据包括E0、E1……E229。In an example, the training process of the Stacking integrated model may include: collecting energy consumption related data in a target time period, energy consumption measurement data in a historical time period, and energy consumption measurement data in a target time period. Wherein, the energy consumption measurement data in the target time period is used as the real value of the energy consumption prediction data in the target time period. According to the energy consumption correlation data and energy consumption measurement data, generate the sample data of the specified structure, each sample data includes the predicted average temperature in the first time period, the predicted instantaneous temperature in each hour in the first time period, and the predicted temperature in the first time period. Forecasted average humidity, date type for the first time period, forecast sunlight for each hour in the hours of light in the first time period and power consumption measurements for each hour in the second time period, and the first time period Hourly power consumption measurement data. For example, the first time period is the current day, and the second time period is 10 days before the current day. Wherein, the predicted instantaneous temperature for each hour in the first time period includes T0, T1, T2...T23. The power consumption measurement data of each hour in the second time period includes E0, E1...E229.
基于如下公式:对生成的样本数据进行归一化处理。Based on the following formula: normalize the generated sample data.
Figure PCTCN2021139906-appb-000001
Figure PCTCN2021139906-appb-000001
Figure PCTCN2021139906-appb-000002
Figure PCTCN2021139906-appb-000002
Figure PCTCN2021139906-appb-000003
Figure PCTCN2021139906-appb-000003
其中,
Figure PCTCN2021139906-appb-000004
为归一化处理后的样本数据,σ j为第j个样本分量的偏差,D ij为第i个样本的第j个样本分量,m为第j个样本分量的样本数,
Figure PCTCN2021139906-appb-000005
为m个样本中第j个样本分量的平均值。
in,
Figure PCTCN2021139906-appb-000004
is the normalized sample data, σ j is the deviation of the jth sample component, D ij is the jth sample component of the i sample, m is the sample number of the jth sample component,
Figure PCTCN2021139906-appb-000005
is the average value of the jth sample component in the m samples.
根据多个样本数据,输入到Stacking集成模型中,对Stacking集成模型进行训练。其中,Stacking集成模型包括两层模型,第一层模型包括支持向量机模型、极端梯度提升模型和反向传播模型,第二层模型包括线性回归模型。According to multiple sample data, input into the Stacking integrated model to train the Stacking integrated model. Among them, the Stacking integrated model includes two-layer models, the first-layer model includes support vector machine model, extreme gradient boosting model and backpropagation model, and the second-layer model includes linear regression model.
其中,先对样本数据的数据集进行切分成训练集和测试集,其中训练集进行5折交叉验证。Among them, the data set of the sample data is first divided into a training set and a test set, and the training set is subjected to 5-fold cross-validation.
(2)分别对每个强学习模型做如下操作(这里以SVM为例),如图3所示:(2) Perform the following operations on each strong learning model (here SVM is taken as an example), as shown in Figure 3:
①对于训练集:每次交叉验证获取验证集的预测值,五次的预测值组合成新训练集中SVM输出的特征列,并结合训练集中的标签特征列,形成第二层模型的输入数据;①For the training set: each cross-validation obtains the predicted value of the verification set, and the five predicted values are combined into the feature column output by the SVM in the new training set, and combined with the label feature column in the training set to form the input data of the second-layer model;
②对于测试集:将测试集输入每次交叉验证模型获取预测值,取五次的平均值,作为新测试集由SVM输出的特征列。②For the test set: input the test set into each cross-validation model to obtain the predicted value, take the average value of five times, and use it as the feature column output by the SVM for the new test set.
(3)SVM输出的特征列、xgboost输出的特征列和BP输出的特征列构成第一层模型的输出,和标签(label)列作为第二层模型的输入,label列为目标时间段的能耗测量数据。(3) The feature column output by SVM, the feature column output by xgboost and the feature column output by BP constitute the output of the first layer model, and the label (label) column is used as the input of the second layer model, and the label column is the energy of the target time period consumption measurement data.
(4)利用liner regress进行建模。(4) Modeling using liner regression.
根据Stacking集成模型中liner regress输出的目标时间段的能耗预测数据和目标时间段的能耗测量数据之间的误差,对Stacking集成模型中多个模型进行参数调整,直至Stacking集成模型输出的目标时间段的能耗预测数据和目标时间段的能耗测量数据之间的误差小于或等于预设误差阈值,确定Stacking集成模型训练完成。According to the error between the energy consumption prediction data of the target time period output by the liner regress in the Stacking integration model and the energy consumption measurement data of the target time period, adjust the parameters of multiple models in the Stacking integration model until the target output by the Stacking integration model If the error between the energy consumption prediction data in the time period and the energy consumption measurement data in the target time period is less than or equal to the preset error threshold, it is determined that the Stacking integrated model training is completed.
在Stacking集成模型训练完成时,基于如图4所示的流程,得到能耗预测数据。楼宇能耗预测方法可以包括:S410,收集能耗关联数据和能耗测量数据。 S420,根据能耗关联数据和能耗测量数据,生成指定结构的样本数据。S430,对生成的样本数据进行归一化处理。S440,通过Stacking集成模型中向量机模型、极端梯度提升模型和反向传播模型对归一化的样本数据进行处理,得到输出数据。S450,将输出数据输入至Stacking集成模型中线性回归模型中进行处理。S460,得到线性回归模型输出的能耗预测数据,即Stacking集成模型输出的能耗预测数据。When the Stacking integrated model training is completed, based on the process shown in Figure 4, energy consumption prediction data is obtained. The building energy consumption prediction method may include: S410, collecting energy consumption correlation data and energy consumption measurement data. S420. Generate sample data of a specified structure according to the energy consumption correlation data and the energy consumption measurement data. S430, performing normalization processing on the generated sample data. S440. Process the normalized sample data through the vector machine model, the extreme gradient boosting model and the backpropagation model in the Stacking integrated model to obtain output data. S450, input the output data into the linear regression model in the Stacking integrated model for processing. S460. Obtain energy consumption prediction data output by the linear regression model, that is, energy consumption prediction data output by the Stacking integrated model.
采用包括第一层模型为SVM、xgboost和BP的集成模型和第二层模型为liner regress的Stacking集成模型,可以实现预测下一天、下一周或下一个月每个小时的电量消耗预测数据,实现预测出楼宇能耗,有助于帮助相关技术人员合理调配资源,避免资源浪费。Using the integrated model including the first-layer model of SVM, xgboost and BP and the second-layer model of the Stacking integrated model of liner regression, it is possible to predict the power consumption prediction data for each hour of the next day, next week or next month, and realize Predicting the energy consumption of buildings will help relevant technicians allocate resources rationally and avoid waste of resources.
本申请实施例通过将Stacking集成模型作为能耗预测模型,集成了多种模型的优势,减少了预测偏差,增加Stacking集成模型的泛化能力,增强实用性,同时,通过强学习模型提高预测准确率,并结合弱学习模型提高特征的学习能力,提高Stacking集成模型的预测准确率。In the embodiment of the present application, by using the Stacking integrated model as the energy consumption prediction model, the advantages of various models are integrated, the prediction deviation is reduced, the generalization ability of the Stacking integrated model is increased, and the practicability is enhanced. At the same time, the prediction accuracy is improved through the strong learning model rate, combined with the weak learning model to improve the learning ability of features, and improve the prediction accuracy of the Stacking integrated model.
图5为本申请一实施例提供的一种楼宇能耗预测装置的结构示意图。本实施例是实现上述实施例提供的楼宇能耗预测方法的相应装置,该装置可采用软件和/或硬件的方式实现,并一般可集成在计算机设备中。楼宇能耗预测装置包括:FIG. 5 is a schematic structural diagram of a building energy consumption prediction device provided by an embodiment of the present application. This embodiment is a corresponding device for implementing the method for predicting building energy consumption provided by the above embodiments. The device can be implemented in the form of software and/or hardware, and can generally be integrated into computer equipment. Building energy consumption prediction devices include:
数据采集模块510,设置为获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据;The data acquisition module 510 is configured to acquire the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
能耗预测模块520,设置为将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。The energy consumption prediction module 520 is configured to input the energy consumption related data and the energy consumption measurement data into the energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
本申请实施例通过基于能耗关联的数据以及历史的能耗测量数据,确定能耗预测数据,可以基于能耗历史数据和能耗关联因素的当前数据,预测能耗数据,避免了相关技术中只能实时检测能耗的情况,实现根据现有因素和历史的能耗变化趋势,预测能耗数据,考虑到不同时间段的数据,以及能耗变化趋势,增加能耗的预测因素,提高能耗的预测准确性。The embodiment of the present application determines the energy consumption prediction data based on the data related to energy consumption and the historical energy consumption measurement data, and can predict the energy consumption data based on the historical data of energy consumption and the current data of the factors related to energy consumption, avoiding the It can only detect the energy consumption in real time, realize the prediction of energy consumption data based on existing factors and historical energy consumption trends, and take into account the data of different time periods and energy consumption trends, increase the predictive factors of energy consumption, and improve energy consumption. consumption forecast accuracy.
所述能耗预测模型为Stacking集成模型,所述Stacking集成模型包括第一层模型和第二层模型,所述第一层模型包括至少一个强学习模型,所述第二层模型包括弱学习模型。The energy consumption prediction model is a Stacking integrated model, the Stacking integrated model includes a first layer model and a second layer model, the first layer model includes at least one strong learning model, and the second layer model includes a weak learning model .
所述强学习模型包括支持向量机模型、极端梯度提升模型和反向传播模型,所述弱学习模型包括线性回归模型。The strong learning models include support vector machine models, extreme gradient boosting models, and backpropagation models, and the weak learning models include linear regression models.
所述获取楼宇目标时间段的能耗关联数据,包括下述至少一项:温度数据、湿度数据、光照数据和时间类型数据。The acquisition of energy consumption related data of the building target time period includes at least one of the following: temperature data, humidity data, illumination data and time type data.
所述能耗关联数据包括温度数据和湿度数据;所述数据采集模块510,设置为:向气象系统发送气象预测数据获取请求;接收所述气象系统反馈目标时间段的温度数据和湿度数据。The energy consumption-related data includes temperature data and humidity data; the data acquisition module 510 is configured to: send a weather forecast data acquisition request to the meteorological system; and receive temperature data and humidity data of a target time period fed back by the meteorological system.
所述温度数据包括所述楼宇在所述目标时间段的平均温度和在所述目标时间段内的每个单元时间段的瞬时温度,所述单元时间段为对所述目标时间段进行划分得到的时间段。The temperature data includes the average temperature of the building in the target time period and the instantaneous temperature of each unit time period in the target time period, and the unit time period is obtained by dividing the target time period time period.
所述历史时间段的时长大于所述目标时间段的时长,所述历史时间段的时序在所述目标时间段的时序之前。The duration of the historical time period is longer than the duration of the target time period, and the time sequence of the historical time period is before the time sequence of the target time period.
所述历史时间段的能耗测量数据包括所述楼宇在所述历史时间段内每个单元时间段的能耗测量数据;所述目标时间段的能耗预测数据,包括所述楼宇在所述目标时间段内每个所述单元时间段的能耗预测数据。The energy consumption measurement data of the historical time period includes the energy consumption measurement data of each unit time period of the building in the historical time period; the energy consumption forecast data of the target time period includes the building in the Energy consumption prediction data for each unit time period within the target time period.
上述装置可执行本申请实施例所提供的楼宇能耗预测方法,具备执行楼宇能耗预测方法相应的功能模块和有益效果。The above-mentioned device can execute the building energy consumption prediction method provided in the embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the building energy consumption prediction method.
图4为本申请一实施例提供的一种计算机设备的结构示意图。图4示出了适于用来实现本申请实施方式的示例性计算机设备12的框图。图4显示的计算机设备12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。FIG. 4 is a schematic structural diagram of a computer device provided by an embodiment of the present application. FIG. 4 shows a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present application. The computer device 12 shown in FIG. 4 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
如图4所示,计算机设备12以通用计算设备的形式表现。计算机设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。计算机设备12可以是挂接在总线上的设备。As shown in FIG. 4, computer device 12 takes the form of a general-purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16 , system memory 28 , bus 18 connecting various system components including system memory 28 and processing unit 16 . The computer device 12 may be a bus-attached device.
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry Standard Architecture,ISA)总线,微通道体系结构(Micro Channel Architecture,MCA)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(PerIPheral Component  Interconnect,PCI)总线。 Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (Industry Standard Architecture, ISA) bus, Micro Channel Architecture (Micro Channel Architecture, MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
计算机设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12 and include both volatile and nonvolatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机设备12可以包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图4未显示,通常称为“硬盘驱动器”)。尽管图4中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM),数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。系统存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序组件,这些程序组件被配置以执行本申请多个实施例的功能。 System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 . Computer device 12 may include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") may be provided, as well as a disk drive for a removable non-volatile disk (such as a Compact Disk ROM (Compact Disk). Disc Read-Only Memory, CD-ROM), Digital Video Disc (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) CD-ROM drive. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (eg, at least one) of program components configured to perform the functions of various embodiments of the present application.
具有一组(至少一个)程序组件42的程序/实用工具40,可以存储在例如系统存储器28中,这样的程序组件42包括但不限于操作系统、一个或者多个应用程序、其它程序组件以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序组件42通常执行本申请所描述的实施例中的功能和/或方法。Programs/utilities 40 may be stored, for example, in system memory 28 as a set (at least one) of program components 42 including, but not limited to, an operating system, one or more application programs, other program components, and program data, each or some combination of these examples may include the implementation of the network environment. Program components 42 generally perform the functions and/or methodologies of the embodiments described herein.
计算机设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机设备12交互的设备通信,和/或与使得该计算机设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(Input/Output,I/O)接口22进行。并且,计算机设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN)通信。如图所示,网络适配器20通过总线18与计算机设备12的其它组件通信。应当明白,尽管图4中未示出,可以结合计算机设备12使用其它硬件和/或软件组件,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列(Redundant Arrays of Inexpensive Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and/or with Any device (eg, network card, modem, etc.) that enables the computing device 12 to communicate with one or more other computing devices. This communication can be performed through an input/output (Input/Output, I/O) interface 22 . And, computer device 12 can also communicate with one or more networks (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN)) by network adapter 20. As shown in the figure, network adapter 20 communicates with by bus 18 other components of computer device 12. It should be appreciated that although not shown in FIG. 4, other hardware and/or software components may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant Disk drive array (Redundant Arrays of Inexpensive Disks, RAID) system, tape drive and data backup storage system, etc.
处理单元16通过运行存储在系统存储器28中的程序,从而执行多种功能应用以及数据处理,例如实现本申请任意实施例所提供的楼宇能耗预测方法。The processing unit 16 executes a variety of functional applications and data processing by running the programs stored in the system memory 28 , such as realizing the building energy consumption prediction method provided by any embodiment of the present application.
本申请一实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有申请实施例提供的楼宇能耗预测方法:An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the building energy consumption prediction method provided in all application embodiments of the present application is implemented:
也即,该程序被处理器执行时实现:获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据;将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。That is to say, when the program is executed by the processor, it realizes: acquiring the energy consumption correlation data of the building target time period, and the energy consumption measurement data of the historical time period; inputting the energy consumption correlation data and the energy consumption measurement data into the energy consumption In the energy consumption prediction model, the energy consumption prediction data output by the energy consumption prediction model for the target time period is obtained.
本申请实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式CD-ROM、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present application may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections with one or more conductors, portable computer disks, hard disks, RAM, Read Only Memory (ROM), erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), flash memory, optical fiber, portable CD-ROM, optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读存储介质可以是非暂态计算机可读存储介质。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . The computer readable storage medium may be a non-transitory computer readable storage medium.
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、无线电频率(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程 序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括LAN或WAN——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. Where a remote computer is involved, the remote computer can be connected to the user computer through any kind of network, including a LAN or WAN, or, alternatively, can be connected to an external computer (eg, via the Internet using an Internet service provider).

Claims (10)

  1. 一种楼宇能耗预测方法,包括:A method for predicting building energy consumption, comprising:
    获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据;Obtain the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
    将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。The energy consumption correlation data and the energy consumption measurement data are input into an energy consumption prediction model to obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
  2. 根据权利要求1所述的方法,其中,所述能耗预测模型为Stacking集成模型,所述Stacking集成模型包括第一层模型和第二层模型,所述第一层模型包括至少一个强学习模型,所述第二层模型包括弱学习模型。The method according to claim 1, wherein the energy consumption prediction model is a Stacking integrated model, the Stacking integrated model includes a first layer model and a second layer model, and the first layer model includes at least one strong learning model , the second layer model includes a weak learning model.
  3. 根据权利要求2所述的方法,其中,所述强学习模型包括支持向量机模型、极端梯度提升模型和反向传播模型,所述弱学习模型包括线性回归模型。The method according to claim 2, wherein the strong learning model includes a support vector machine model, an extreme gradient boosting model, and a backpropagation model, and the weak learning model includes a linear regression model.
  4. 根据权利要求1所述的方法,其中,所述获取楼宇目标时间段的能耗关联数据,包括下述至少一项:温度数据、湿度数据、光照数据和时间类型数据。The method according to claim 1, wherein said acquiring the energy consumption-related data of the building target time period includes at least one of the following: temperature data, humidity data, illumination data and time type data.
  5. 根据权利要求4所述的方法,其中,所述能耗关联数据包括温度数据和湿度数据;The method according to claim 4, wherein the energy consumption associated data includes temperature data and humidity data;
    所述获取楼宇目标时间段的能耗关联数据,包括:The acquisition of the energy consumption related data of the building target time period includes:
    向气象系统发送气象预测数据获取请求;Send weather forecast data acquisition request to the meteorological system;
    接收所述气象系统反馈的所述目标时间段的温度数据和湿度数据。The temperature data and humidity data of the target time period fed back by the meteorological system are received.
  6. 根据权利要求4所述的方法,其中,所述目标时间段包括多个单元时间段;所述温度数据包括所述楼宇在所述目标时间段的平均温度和在所述目标时间段内的每个单元时间段的瞬时温度。The method according to claim 4, wherein, the target time period includes a plurality of unit time periods; the temperature data includes the average temperature of the building in the target time period and the temperature of each unit in the target time period. The instantaneous temperature of unit time period.
  7. 根据权利要求1所述的方法,其中,所述历史时间段包括多个单元时间段,所述目标时间段包括多个单元时间段;所述历史时间段的能耗测量数据包括所述楼宇在所述历史时间段内每个单元时间段的能耗测量数据;所述目标时间段的能耗预测数据,包括所述楼宇在所述目标时间段内所述每个单元时间段的能耗预测数据。The method according to claim 1, wherein the historical time period includes a plurality of unit time periods, and the target time period includes a plurality of unit time periods; the energy consumption measurement data of the historical time period includes the building in The energy consumption measurement data of each unit time period in the historical time period; the energy consumption prediction data of the target time period, including the energy consumption prediction of the building in each unit time period in the target time period data.
  8. 一种楼宇能耗预测装置,包括:A building energy consumption prediction device, comprising:
    数据采集模块,设置为获取楼宇目标时间段的能耗关联数据,以及历史时间段的能耗测量数据;The data acquisition module is configured to acquire the energy consumption related data of the building target time period, and the energy consumption measurement data of the historical time period;
    能耗预测模块,设置为将所述能耗关联数据和所述能耗测量数据输入至能耗预测模型中,得到所述能耗预测模型输出的所述目标时间段的能耗预测数据。The energy consumption prediction module is configured to input the energy consumption related data and the energy consumption measurement data into the energy consumption prediction model, and obtain the energy consumption prediction data of the target time period output by the energy consumption prediction model.
  9. 一种计算机设备,包括:A computer device comprising:
    至少一个处理器;at least one processor;
    存储装置,设置为存储至少一个程序;a storage device configured to store at least one program;
    当所述至少一个程序被所述一个或多个处理器执行,使得所述至少一个处理器实现如权利要求1-7中任一所述的楼宇能耗预测方法。When the at least one program is executed by the one or more processors, the at least one processor implements the building energy consumption prediction method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-7中任一所述的楼宇能耗预测方法。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for predicting building energy consumption according to any one of claims 1-7 is realized.
PCT/CN2021/139906 2021-07-27 2021-12-21 Energy consumption prediction method and apparatus for building, and computer device and storage medium WO2023005120A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110849274.8 2021-07-27
CN202110849274.8A CN113505537A (en) 2021-07-27 2021-07-27 Building energy consumption detection method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023005120A1 true WO2023005120A1 (en) 2023-02-02

Family

ID=78014085

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139906 WO2023005120A1 (en) 2021-07-27 2021-12-21 Energy consumption prediction method and apparatus for building, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN113505537A (en)
WO (1) WO2023005120A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116307284A (en) * 2023-05-19 2023-06-23 工业富联(佛山)创新中心有限公司 Energy consumption prediction method, electronic device and storage medium
CN116307292A (en) * 2023-05-22 2023-06-23 安徽中科蓝壹信息科技有限公司 Air quality prediction optimization method based on machine learning and integrated learning
CN116738856A (en) * 2023-06-27 2023-09-12 广州珠江外资建筑设计院有限公司 Building energy consumption prediction method and system
CN116734918A (en) * 2023-06-05 2023-09-12 宁夏中昊银晨能源技术服务有限公司 Indoor environment monitoring system suitable for near zero energy consumption building
CN116754828A (en) * 2023-08-21 2023-09-15 济南瑞源智能城市开发有限公司 Intelligent tunnel energy consumption monitoring method, device and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505537A (en) * 2021-07-27 2021-10-15 上海上实龙创智能科技股份有限公司 Building energy consumption detection method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150006127A1 (en) * 2013-06-28 2015-01-01 International Business Machines Corporation Constructing and calibrating enthalpy based predictive model for building energy consumption
CN112465256A (en) * 2020-12-08 2021-03-09 华中科技大学 Building power consumption prediction method and system based on Stacking model fusion
CN112766596A (en) * 2021-01-29 2021-05-07 苏州思萃融合基建技术研究所有限公司 Building energy consumption prediction model construction method, energy consumption prediction method and device
CN113505537A (en) * 2021-07-27 2021-10-15 上海上实龙创智能科技股份有限公司 Building energy consumption detection method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9568519B2 (en) * 2014-05-15 2017-02-14 International Business Machines Corporation Building energy consumption forecasting procedure using ambient temperature, enthalpy, bias corrected weather forecast and outlier corrected sensor data
CN105631539A (en) * 2015-12-25 2016-06-01 上海建坤信息技术有限责任公司 Intelligent building energy consumption prediction method based on support vector machine
CN109255629A (en) * 2018-08-22 2019-01-22 阳光财产保险股份有限公司 A kind of customer grouping method and device, electronic equipment, readable storage medium storing program for executing
CN112434787B (en) * 2020-10-28 2024-04-05 西安交通大学 Terminal space energy consumption prediction method, medium and equipment based on total energy consumption of building

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150006127A1 (en) * 2013-06-28 2015-01-01 International Business Machines Corporation Constructing and calibrating enthalpy based predictive model for building energy consumption
CN112465256A (en) * 2020-12-08 2021-03-09 华中科技大学 Building power consumption prediction method and system based on Stacking model fusion
CN112766596A (en) * 2021-01-29 2021-05-07 苏州思萃融合基建技术研究所有限公司 Building energy consumption prediction model construction method, energy consumption prediction method and device
CN113505537A (en) * 2021-07-27 2021-10-15 上海上实龙创智能科技股份有限公司 Building energy consumption detection method and device, computer equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116307284A (en) * 2023-05-19 2023-06-23 工业富联(佛山)创新中心有限公司 Energy consumption prediction method, electronic device and storage medium
CN116307284B (en) * 2023-05-19 2023-08-08 工业富联(佛山)创新中心有限公司 Energy consumption prediction method, electronic device and storage medium
CN116307292A (en) * 2023-05-22 2023-06-23 安徽中科蓝壹信息科技有限公司 Air quality prediction optimization method based on machine learning and integrated learning
CN116734918A (en) * 2023-06-05 2023-09-12 宁夏中昊银晨能源技术服务有限公司 Indoor environment monitoring system suitable for near zero energy consumption building
CN116734918B (en) * 2023-06-05 2024-05-14 宁夏中昊银晨能源技术服务有限公司 Indoor environment monitoring system suitable for near zero energy consumption building
CN116738856A (en) * 2023-06-27 2023-09-12 广州珠江外资建筑设计院有限公司 Building energy consumption prediction method and system
CN116738856B (en) * 2023-06-27 2024-04-02 广州珠江外资建筑设计院有限公司 Building energy consumption prediction method and system
CN116754828A (en) * 2023-08-21 2023-09-15 济南瑞源智能城市开发有限公司 Intelligent tunnel energy consumption monitoring method, device and medium
CN116754828B (en) * 2023-08-21 2023-12-01 济南瑞源智能城市开发有限公司 Intelligent tunnel energy consumption monitoring method, device and medium

Also Published As

Publication number Publication date
CN113505537A (en) 2021-10-15

Similar Documents

Publication Publication Date Title
WO2023005120A1 (en) Energy consumption prediction method and apparatus for building, and computer device and storage medium
Sun et al. RSOD: Real-time small object detection algorithm in UAV-based traffic monitoring
CN110674880B (en) Network training method, device, medium and electronic equipment for knowledge distillation
JP7043512B2 (en) A new autonomous artificial intelligence system that predicts pipe leaks
AU2020385264B2 (en) Fusing multimodal data using recurrent neural networks
CN111033318A (en) Local weather prediction
WO2022134649A1 (en) Urban people flow monitoring method and apparatus, electronic device, and storage medium
US11080838B1 (en) Systems and methods for image labeling using artificial intelligence
CN112085266A (en) Government affair data processing method and device, electronic equipment and storage medium
US20180336408A1 (en) Mapping Wind Turbines and Predicting Wake Effects Using Satellite Imagery Data
US11830090B2 (en) Methods and systems for an enhanced energy grid system
WO2023207411A1 (en) Traffic determination method and apparatus based on spatio-temporal data, and device and medium
CN113420939A (en) Cloud picture forecasting method, equipment and storage medium
CN113849532A (en) Cache preheating method and device, computer equipment and storage medium
CN117131974A (en) Model training method, power prediction method and equipment
CN116684330A (en) Traffic prediction method, device, equipment and storage medium based on artificial intelligence
CN111582649B (en) Risk assessment method and device based on user APP single-heat coding and electronic equipment
CN113886454A (en) Cloud resource prediction method based on LSTM-RBF
US11501132B2 (en) Predictive maintenance system for spatially correlated industrial equipment
CN109933926B (en) Method and apparatus for predicting flight reliability
US20230168411A1 (en) Using machine learning for modeling climate data
CN111046321B (en) Photovoltaic power station operation and maintenance strategy optimization method and device
CN114118410A (en) Method, device and storage medium for extracting node feature of graph structure
CN114120208A (en) Flame detection method, device, equipment and storage medium
Belmahdi et al. Forecasting solar radiation using machine learning method: new optimization algorithm

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21951692

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE