A method for rapid prediction of building energy consumption
Preprocessing of built environment data through sensor network acquisition and deep learning algorithms, establishing an energy consumption prediction model, solving the complexity and accuracy problems of traditional methods, realizing the rapid and accurate prediction of building energy consumption and the generation of energy management strategies, supporting Efficient energy conservation and emission reduction.
Patent Information
- Application Number
- CN202410181691.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-02-18
AI Technical Summary
Traditional building energy consumption prediction methods are complex in calculation, cumbersome data processing, low accuracy, and difficult to collect data on multiple environmental parameters.
By deploying a sensor network to collect environmental parameter data, perform data preprocessing, use deep learning algorithms to train energy consumption prediction models, combine real-time data to make rapid predictions, and generate energy management strategies based on the prediction results.
It realizes rapid and accurate prediction of building energy consumption, improves the accuracy and stability of prediction, has high efficiency, flexibility and real-time capabilities, and supports energy management and energy conservation and emission reduction.
Smart Images

Figure CN118114816B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of building energy consumption prediction, and in particular to a method for rapid prediction of building energy consumption. Background Art
[0002] During the period of use of a building, energy consumption will be generated due to the use of electrical appliances for heating, cooling, lighting and other needs. The task of studying building energy consumption prediction and being able to make a relatively accurate prediction of the energy consumption of a specific building is an important prerequisite for the development of green buildings; by processing, analyzing and predicting historical energy consumption data, refined energy management can be achieved and the formulation of relevant energy management policies can be guided. At present, accurate prediction of building energy consumption is crucial for energy management and environmental protection. However, traditional energy consumption prediction methods have problems such as complex calculations, cumbersome data processing, and low accuracy, and it is difficult to collect data on multiple environmental parameters of buildings. To this end, it is necessary to design corresponding technical solutions to solve this problem. Summary of the invention
[0003] 1. Technical issues to be resolved
[0004] In view of the shortcomings of the existing technology, the present invention provides a method for quickly predicting building energy consumption, which solves the technical problems of traditional energy consumption prediction methods such as complex calculations, cumbersome data processing, low accuracy, and difficulty in collecting data on multiple environmental parameters of buildings.
[0005] (II) Technical solution
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for rapid prediction of building energy consumption, the method steps include the following:
[0007] S1. By deploying a sensor network, the environmental parameter data inside the building is collected. The collected data includes real-time data or historical data.
[0008] S2. Preprocess the collected environmental parameter data to provide a reliable data basis for subsequent model training and prediction;
[0009] S3. Using the pre-processed environmental parameter data and the corresponding energy consumption data, a deep learning algorithm is used to train a building energy consumption prediction model. Through model training, a complex relationship between environmental parameters and energy consumption is established;
[0010] S4. Use the trained deep learning model and the real-time collected environmental parameter data to quickly predict the building energy consumption. The model outputs the corresponding energy consumption prediction results. The prediction process is carried out in batch prediction or hourly prediction.
[0011] S5. Generate effective energy management strategies based on energy consumption forecast results and user needs, formulate appropriate energy-saving measures based on the predicted energy consumption, and optimize equipment operation to achieve the goals of efficient energy utilization and energy conservation and emission reduction.
[0012] Preferably, in step S1, the environmental parameter data inside the building include temperature, humidity, light intensity, energy consumption, CO2 concentration, air flow rate, pressure, sound level, air quality index, number of people and activities, window status, equipment status and external meteorological conditions.
[0013] Preferably, in step S2, data preprocessing includes data cleaning, data conversion, data normalization and data set division;
[0014] The specific steps of data preprocessing include the following:
[0015] S201, cleaning the collected raw data to remove noise, outliers and redundant information in the data, using filtering, outlier detection and deduplication techniques and algorithms to ensure data quality;
[0016] S202, converting the cleaned data, including feature extraction, dimensionality reduction, and data reconstruction operations, so that the converted data better reflects the characteristics and patterns of the data;
[0017] S203, normalizing the converted data to map the data to a specific range or distribution. Normalization methods include maximum and minimum normalization and standardization, which are used to ensure that data with different features or attributes have similar scales and ranges;
[0018] S204, dividing the processed data set into a training set, a validation set, and a test set, so as to use different data sets in subsequent model training and evaluation to verify the performance and generalization ability of the model.
[0019] Preferably, in step S3, a deep learning algorithm is used to train a building energy consumption prediction model to establish a complex relationship between environmental parameters and energy consumption. The specific method steps include the following:
[0020] S301, Deep Convolutional Generative Adversarial Network: Use DCGAN to train a building energy consumption prediction model. DCGAN combines the ideas of convolutional neural networks and generative adversarial networks.
[0021] Through a set of generator and discriminator networks, energy consumption data is generated from environmental parameter data, and adversarial training is used to make the generated energy consumption data indistinguishable from the real energy consumption data, capturing the complex nonlinear relationship between environmental parameters and energy consumption;
[0022] S302, Combination of Variational Autoencoder and Generative Adversarial Network: Use the combination of VAE and GAN to train the building energy consumption prediction model. VAE is used to learn the potential representation of environmental parameter data, while GAN is used to generate energy consumption data.
[0023] By combining the control of environmental parameter changes in the latent space and generating corresponding energy consumption data, the complex relationship between environmental parameters and energy consumption is learned, and energy consumption is quickly predicted;
[0024] S303, Graph Neural Network: Use GNN to train the building energy consumption prediction model. GNN is a deep learning method suitable for processing graph structure data. The environmental parameter data inside the building is represented as a graph structure, and the dependency relationship between environmental parameters and the complex relationship between energy consumption are learned through GNN.
[0025] The model transmits and interacts information between environmental parameter data at different locations inside the building, thereby achieving rapid prediction of energy consumption.
[0026] Preferably, a deep convolutional generative adversarial network:
[0027] Loss function of the generator network (G): min-log(D(G(z)));
[0028] Loss function of the discriminator network (D): min-log(D(x))-log(1-D(G(z)));
[0029] Combination of variational autoencoders and generative adversarial networks:
[0030] Loss function of the generator network (G): min-log(D(G(z)))+KL divergence;
[0031] Loss function of the discriminator network (D): min-log(D(x))-log(1-D(G(z)));
[0032] Graph Neural Networks:
[0033] The propagation formula of graph neural network is: h_v^{(l+1)}=f\left(\sum_{u\in N(v)}\frac{1}{c_{u,v}}W^{(l)}h_u^{(l)}+W^{(l)}h_v^{(l)}\right);
[0034] Where h_v^{(l+1)} represents the hidden representation of node v in the l+1 layer, h_u^{(l)} represents the hidden representation of node u in the l layer, N(v) represents the set of neighbor nodes of node v, W^{(l)} represents the weight matrix of the l layer, and c_{u,v} represents the elements in the normalized adjacency matrix;
[0035] The output layer calculation formula of the graph neural network is: o_v = g\left(\sum_{u\in N(v)}W^{(L)}h_u^{(L)}+W^{(L)}h_v^{(L)}\right);
[0036] Among them, o_v represents the output of node v, L represents the last layer, W^{(L)} represents the weight matrix of the last layer, and g represents the activation function of the output layer.
[0037] min means minimization, that is, the objective function is minimized by adjusting the model parameters;
[0038] Log represents the logarithmic function, usually using the natural logarithm or the logarithm with base 2. In deep learning, the logarithmic function is often used in the loss function to measure the difference between the predicted value of the model and the true value;
[0039] z represents a random vector in the latent space, also known as a noise vector. In the generative adversarial network, the generator network receives a random latent vector z as input and maps it to a synthetic sample through learning;
[0040] x represents input data, such as building environmental parameter data. In building energy consumption prediction, x can represent real-time or historical environmental parameter data;
[0041] KL divergence stands for KL divergence, which is used to measure the difference between two probability distributions. In variational autoencoders, KL divergence is used to quantify the difference between the latent variable distribution in the latent space and the standard normal distribution to ensure that the latent space has a certain continuity and regularity.
[0042] divergence refers to KL divergence, or other functions that measure the difference between two probability distributions;
[0043] Left and right are used to limit the scope of an expression, separating it from other operators or expressions to increase readability and clarity;
[0044] Sum represents the summation operator, which is used to add a series of values. In a given expression, sum represents the sum of the specified values or expressions;
[0045] frac represents a fraction, which is used to express the ratio of the numerator to the denominator of a number and is used to express the result of dividing two expressions.
[0046] Preferably, in step S4, the specific method steps for rapid prediction of building energy consumption include the following:
[0047] S401, fast prediction based on generative adversarial network: Use the generative adversarial network structure to train an energy consumption prediction model. The generator network receives the real-time collected environmental parameter data as input, and generates fast prediction results of energy consumption by learning the complex relationship between environmental parameters and energy consumption. The discriminator network is used to evaluate the authenticity of the generated energy consumption prediction results. By conducting adversarial training on the generator and the discriminator, the generator can generate high-quality energy consumption prediction results.
[0048] S402, fast prediction based on attention mechanism: The attention mechanism is used to strengthen the model's attention to key features in environmental parameters. By introducing an attention layer in the model, the attention mechanism can automatically learn and select the environmental parameter features that are most relevant to energy consumption prediction;
[0049] S403, fast prediction based on graph neural network: construct the environmental parameter data inside the building into a graph structure, use the graph neural network to learn the relationship between nodes, and predict the energy consumption of nodes, by training the graph neural network and taking into account the mutual influence in space;
[0050] S404, fast prediction based on transfer learning: Use pre-trained deep learning models to perform transfer learning in new building environments. By pre-training on large-scale building environment datasets, the model learns the relationship between common environmental parameters and energy consumption. The pre-trained model is applied to the new building environment, and the energy consumption of the building is quickly predicted through fine-tuning and adaptive training.
[0051] Preferably, in step S4, the specific method steps of batch prediction or hourly prediction of building energy consumption combined with time series analysis and deep learning include the following:
[0052] S4001, establish time series model: first, construct the preprocessed environmental parameter data and the corresponding energy consumption data into a time series data set, and use the ARIMA or SARIMA time series analysis method to model and analyze the data to capture the trend, periodicity and seasonal characteristics in the data;
[0053] S4002, prediction model based on deep learning: Use deep learning algorithms, such as recurrent neural networks or long short-term memory networks, to model and predict time series data. Take time series data as input, and the model learns the complex relationships and nonlinear patterns in the data. By training the deep learning model, the prediction results of energy consumption are obtained;
[0054] S4003, batch prediction or hourly prediction: According to actual needs, select batch prediction or hourly prediction to perform energy consumption prediction. In batch prediction, the environmental parameter data within a period of time is used as input, and the energy consumption results within the time period are predicted simultaneously through the time series model and the deep learning model. In hourly prediction, the environmental parameter data at each time point is used as input, and the energy consumption results at each time point are predicted through the model.
[0055] Preferably, in step S5, generating an effective energy management strategy combines intelligent optimization and feedback control methods, specifically through the following steps:
[0056] S501, establishing an optimization model: using historical energy consumption data, environmental parameter data and real-time energy consumption prediction results, an optimization model is established. The goal of the model is to minimize energy consumption and meet user needs and comfort requirements. At the same time, the operating limitations of building equipment and the constraints of energy supply are taken into account. The optimization model is established and solved using mathematical programming methods such as linear programming, integer programming or dynamic programming.
[0057] S502, dynamic adjustment strategy: based on the results of the optimization model, generate energy management strategies for different time periods, including equipment on / off control, adjustment of temperature and humidity set points, coordinated operation of lighting and air conditioning systems, and make dynamic adjustments according to actual needs and environmental conditions to achieve the goals of efficient use of energy and energy conservation and emission reduction;
[0058] S503, feedback control mechanism: Introduce real-time monitoring and feedback control mechanism to adjust and optimize energy management strategy in real time. Through sensor network and intelligent control system, monitor the environmental parameters and energy consumption inside the building in real time. According to the monitoring results, compare and adjust with the optimization model to achieve real-time feedback control, so that energy management strategy can better adapt to actual conditions and changes.
[0059] S504, Intelligent Decision Support: Combine artificial intelligence and machine learning technologies to establish an intelligent decision support system to learn and optimize energy management strategies, and automatically provide the best energy management recommendations and decision support by analyzing large amounts of historical data and real-time monitoring data.
[0060] Preferably, in step S5, formulating appropriate energy-saving measures includes the following specific method steps:
[0061] S5001, Intelligent Equipment Control: Based on energy consumption prediction results and real-time environmental parameter data, intelligent control algorithms are used to dynamically control the equipment in the building. Through adaptive control strategies, the operating status, working mode and energy consumption level of the equipment are intelligently adjusted according to actual needs and environmental conditions;
[0062] S5002, Energy Optimization Scheduling: By optimizing the scheduling algorithm, the operation time and working order of each device in the building are reasonably arranged to avoid energy consumption conflicts and overlapping operations between devices. The optimization scheduling algorithm considers the energy efficiency, operating cost and user demand factors of the equipment to schedule the operation of the equipment in the best way;
[0063] S5003, Dynamic Energy Supply: Combine renewable energy and energy storage technology to achieve dynamic energy supply and flexible energy allocation. According to energy consumption forecast results and real-time demand, renewable energy and energy storage equipment are rationally used to flexibly allocate energy supply to meet the energy needs of buildings.
[0064] Preferably, the specific method steps for optimizing equipment operation include the following:
[0065] S5004, Intelligent maintenance and fault warning: Utilize sensor networks and data analysis technology to monitor the operating status and performance parameters of equipment, analyze the health status of equipment in real time, and predict the risk of equipment failure. Through intelligent maintenance and fault warning systems, timely detect equipment anomalies and failures, and take corresponding maintenance measures;
[0066] S5005, Equipment Energy Efficiency Optimization: Improve the energy efficiency of equipment through equipment improvement and optimization, and use advanced technical means such as intelligent sensors, high-efficiency motors, and energy-saving controllers to upgrade and transform equipment to reduce energy consumption, improve the energy efficiency of equipment, and ensure that the equipment can achieve the best energy utilization effect in actual operation;
[0067] S5006, Data-driven operation and maintenance decisions: Use big data analysis and machine learning technology to conduct in-depth mining and analysis of the operating data of building equipment, and formulate reasonable equipment operation strategies and maintenance plans based on data-driven operation and maintenance decisions.
[0068] (III) Beneficial effects
[0069] Compared with the prior art, the beneficial effects of the present invention are as follows: by collecting multiple environmental parameter data of buildings and using deep learning algorithms for model training and prediction, it is able to process complex nonlinear relationships, achieve rapid and accurate prediction of building energy consumption, improve the accuracy and stability of predictions, and have high efficiency, flexibility and real-time performance, which can provide strong support for energy management and energy conservation and emission reduction; combined with big data analysis, using a large amount of environmental parameter data and historical energy consumption data for model training, it can better capture the laws and trends of building energy consumption; provide real-time energy consumption predictions, and can dynamically adjust according to the real-time collected environmental parameter data to adapt to different usage scenarios and environmental changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a schematic diagram of the overall method steps of the present invention;
[0071] Figure 2 A schematic diagram of the environmental parameter data system inside a building of the present invention;
[0072] Figure 3 It is a schematic diagram of a data preprocessing system of the present invention;
[0073] Figure 4 Schematic diagram of the steps of the data preprocessing method of the present invention;
[0074] Figure 5 A schematic diagram of specific method steps for using a deep learning algorithm to train a building energy consumption prediction model to establish a complex relationship between environmental parameters and energy consumption;
[0075] Figure 6 A schematic diagram of the specific method steps for quickly predicting building energy consumption according to the present invention;
[0076] Figure 7 A schematic diagram of the specific method steps of batch prediction or hourly prediction of building energy consumption combined with time series analysis and deep learning of the present invention;
[0077] Figure 8 A schematic diagram of the steps of the method for generating an effective energy management strategy combining intelligent optimization and feedback control of the present invention;
[0078] Fig. 9 The formulation of appropriate energy-saving measures for the present invention includes the following specific method step schematic diagram;
[0079] Fig.10 This is a schematic diagram of the specific method steps for optimizing the operation of the device of the present invention. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] See also Figure 1-Figure 10 The embodiment of the present invention provides a technical solution: a method for rapid prediction of building energy consumption, the method steps include the following:
[0082] S1. By deploying a sensor network, the environmental parameter data inside the building is collected. The collected data includes real-time data or historical data.
[0083] S2. Preprocess the collected environmental parameter data to improve the quality and accuracy of the data and provide a reliable data basis for subsequent model training and prediction;
[0084] S3. Using the pre-processed environmental parameter data and the corresponding energy consumption data, a deep learning algorithm is used to train the building energy consumption prediction model. Through model training, a complex relationship between environmental parameters and energy consumption is established to improve the accuracy and stability of the prediction;
[0085] S4. Use the trained deep learning model and the real-time collected environmental parameter data to quickly predict the building energy consumption. The model outputs the corresponding energy consumption prediction results. The prediction process is carried out in batch prediction or hourly prediction.
[0086] S5. Generate effective energy management strategies based on energy consumption forecast results and user needs, formulate appropriate energy-saving measures based on the predicted energy consumption, and optimize equipment operation to achieve the goals of efficient energy utilization and energy conservation and emission reduction.
[0087] Further improved, in step S1, the environmental parameter data inside the building includes temperature, humidity, light intensity, energy consumption, CO2 concentration, air velocity, pressure, sound level, air quality index, number of people and activities, window status, equipment status and external meteorological conditions, so as to increase the accuracy and comprehensiveness of the rapid prediction of building energy consumption;
[0088] CO2 concentration is an important indicator of air quality in buildings and is closely related to energy consumption. CO2 sensors are used to monitor CO2 concentration in buildings.
[0089] The air velocity inside the building affects energy consumption, including the operation effect of the air conditioning system and the ventilation and heat dissipation effect. Wind speed sensors are used to measure the air velocity inside the building.
[0090] Changes in gas or liquid pressure in a building are related to energy consumption, including changes in the pressure of a water supply system, which can affect the energy consumption of a water pump. Use pressure sensors to monitor pressure conditions in a building.
[0091] Noise levels in buildings are related to energy consumption, including that increased noise levels can cause people to use air conditioning systems more frequently to reduce discomfort, using sound sensors to measure noise levels in buildings;
[0092] The air quality inside the building is crucial to people's health and comfort. Use air quality sensors to monitor the AQI in the building, including particulate matter concentration and volatile organic compound indicators;
[0093] The number of people and activity levels in a building have a significant impact on energy consumption. Use people counters or motion sensors to monitor the number of people and activity in the building.
[0094] The state of windows (open, closed, tilted) plays an important role in ventilation, lighting and heat transfer inside the building. Window status sensors are used to monitor the state of windows in the building.
[0095] The status and usage of various equipment in the building (air conditioning, lighting, elevators) have a direct impact on energy consumption. Equipment status sensors are used to monitor the switch status and energy consumption level information of the equipment;
[0096] The meteorological conditions (temperature, humidity, wind speed) around the building have an important impact on energy consumption. Meteorological sensors are used to obtain external meteorological data.
[0097] Combine data from multiple sensors to obtain more accurate and comprehensive building environment parameters.
[0098] Further improved, in step S2, data preprocessing includes data cleaning, data conversion, data normalization and data set division;
[0099] The specific steps of data preprocessing include the following:
[0100] S201, cleaning the collected raw data to remove noise, outliers and redundant information in the data, using filtering, outlier detection and deduplication techniques and algorithms to ensure data quality;
[0101] S202, converting the cleaned data, including feature extraction, dimensionality reduction, and data reconstruction operations, so that the converted data better reflects the characteristics and patterns of the data;
[0102] S203, normalizing the converted data to map the data to a specific range or distribution. Normalization methods include maximum and minimum normalization and standardization, which are used to ensure that data with different features or attributes have similar scales and ranges;
[0103] S204, dividing the processed data set into a training set, a validation set, and a test set, so as to use different data sets in subsequent model training and evaluation to verify the performance and generalization ability of the model.
[0104] Comprehensively consider the steps of data collection, cleaning, conversion and normalization, providing a high-quality data foundation for subsequent data analysis and application;
[0105] Flexibly select and apply different data processing techniques and algorithms according to the needs of specific tasks to maximize the accuracy and usability of data;
[0106] It can process various types of data sources, including sensor data, database data, and log files, and is suitable for data processing needs in different fields and application scenarios.
[0107] In a further improvement, in step S3, a deep learning algorithm is used to train a building energy consumption prediction model to establish a complex relationship between environmental parameters and energy consumption. The specific method steps include the following:
[0108] S301, Deep Convolutional Generative Adversarial Network (DCGAN): Use DCGAN to train a building energy consumption prediction model. DCGAN combines the ideas of convolutional neural network (CNN) and generative adversarial network (GAN);
[0109] Through a set of generator and discriminator networks, energy consumption data is generated from environmental parameter data, and adversarial training is used to make the generated energy consumption data indistinguishable from the real energy consumption data, thus capturing the complex nonlinear relationship between environmental parameters and energy consumption.
[0110] S302, Combination of Variational Autoencoder (VAE) and Generative Adversarial Network (GAN): Use the combination of VAE and GAN to train the building energy consumption prediction model, where VAE is used to learn the potential representation of environmental parameter data and GAN is used to generate energy consumption data;
[0111] Through this combination, the changes of environmental parameters are controlled in the latent space, and the corresponding energy consumption data are generated. The complex relationship between environmental parameters and energy consumption is learned, and the energy consumption can be quickly predicted;
[0112] S303, Graph Neural Network (GNN): Use GNN to train the building energy consumption prediction model. GNN is a deep learning method suitable for processing graph structure data. The environmental parameter data inside the building is represented as a graph structure, and the dependency relationship between environmental parameters and the complex relationship between energy consumption are learned through GNN.
[0113] The model transmits and interacts information between environmental parameter data at different locations inside the building, thereby achieving rapid prediction of energy consumption.
[0114] By combining the characteristics of deep learning algorithms and making full use of the complex features of the building's internal environmental parameter data, a more accurate and stable relationship model between environmental parameters and energy consumption can be established.
[0115] Further improvement, Deep Convolutional Generative Adversarial Network (DCGAN):
[0116] Loss function of the generator network (G): min-log(D(G(z)));
[0117] Loss function of the discriminator network (D): min-log(D(x))-log(1-D(G(z)));
[0118] Combination of Variational Autoencoder (VAE) and Generative Adversarial Network (GAN):
[0119] Loss function of the generator network (G): min-log(D(G(z)))+KL divergence;
[0120] Loss function of the discriminator network (D): min-log(D(x))-log(1-D(G(z)));
[0121] Graph Neural Networks (GNN):
[0122] The propagation formula of graph neural network is: h_v^{(l+1)}=f\left(\sum_{u\in N(v)}\frac{1}{c_{u,v}}W^{(l)}h_u^{(l)}+W^{(l)}h_v^{(l)}\right);
[0123] Where h_v^{(l+1)} represents the hidden representation of node v in the l+1 layer, h_u^{(l)} represents the hidden representation of node u in the l layer, N(v) represents the set of neighbor nodes of node v, W^{(l)} represents the weight matrix of the l layer, and c_{u,v} represents the elements in the normalized adjacency matrix;
[0124] The output layer calculation formula of the graph neural network is: o_v = g\left(\sum_{u\in N(v)}W^{(L)}h_u^{(L)}+W^{(L)}h_v^{(L)}\right);
[0125] Among them, o_v represents the output of node v, L represents the last layer, W^{(L)} represents the weight matrix of the last layer, and g represents the activation function of the output layer.
[0126] min means minimization, that is, the objective function is minimized by adjusting the model parameters;
[0127] Log represents the logarithmic function, usually using the natural logarithm (with e as the base) or the logarithm with 2 as the base. In deep learning, the logarithmic function is often used in the loss function to measure the difference between the predicted value of the model and the true value;
[0128] z represents a random vector in the latent space, also known as a noise vector. In the Generative Adversarial Network (GAN), the generator network receives a random latent vector z as input and maps it to a synthetic sample through learning;
[0129] x represents input data, such as building environmental parameter data. In building energy consumption prediction, x can represent real-time or historical environmental parameter data;
[0130] KL divergence stands for KL divergence, which is used to measure the difference between two probability distributions. In the variational autoencoder (VAE), KL divergence is used to quantify the difference between the latent variable distribution in the latent space and the standard normal distribution to ensure that the latent space has a certain continuity and regularity.
[0131] divergence refers to KL divergence, or other functions that measure the difference between two probability distributions;
[0132] Left and right are used to limit the scope of an expression, separating it from other operators or expressions to increase readability and clarity;
[0133] Sum represents the summation operator, which is used to add a series of values. In a given expression, sum represents the sum of the specified values or expressions;
[0134] frac represents a fraction, which is used to express the ratio of the numerator to the denominator of a number and is used to express the result of dividing two expressions.
[0135] Further improved, in step S4, the specific method steps for rapid prediction of building energy consumption include the following:
[0136] S401, fast prediction based on generative adversarial network (GAN): use the generative adversarial network (GAN) structure to train an energy consumption prediction model, the generator network receives the real-time collected environmental parameter data as input, and generates a fast prediction result of energy consumption by learning the complex relationship between environmental parameters and energy consumption. The discriminator network is used to evaluate the authenticity of the generated energy consumption prediction result. By conducting adversarial training on the generator and the discriminator, the generator can generate high-quality energy consumption prediction results;
[0137] S402, fast prediction based on attention mechanism: The attention mechanism is used to strengthen the model's attention to key features in environmental parameters, thereby improving the prediction accuracy and stability of energy consumption. By introducing the attention layer in the model, the attention mechanism can automatically learn and select the environmental parameter features most relevant to energy consumption prediction. The model can more accurately capture the important features that affect energy consumption, thereby achieving fast and accurate energy consumption prediction;
[0138] S403, fast prediction based on graph neural network (GNN): The environmental parameter data inside the building is constructed into a graph structure, and the graph neural network (GNN) is used to learn the relationship between nodes and predict the energy consumption of nodes. GNN effectively handles the spatial relationship and interaction in the building, so as to better capture the complex relationship between environmental parameters. By training the graph neural network, the fast prediction of building energy consumption is achieved, and the mutual influence in space is taken into account;
[0139] S404, fast prediction based on transfer learning: Utilize pre-trained deep learning models to perform transfer learning in new building environments, thereby achieving fast and accurate energy consumption prediction. By pre-training on large-scale building environment datasets, the model learns the relationship between common environmental parameters and energy consumption. The pre-trained model is applied to the new building environment, and the energy consumption of the building is quickly predicted through fine-tuning and adaptive training.
[0140] Based on generative adversarial networks (GANs), attention mechanisms, graph neural networks (GNNs), and transfer learning, it provides fast and accurate building energy consumption predictions, providing more efficient decision-making support for building energy consumption management and energy conservation and emission reduction.
[0141] Further improved, in step S4, the specific method steps of batch prediction or hourly prediction of building energy consumption combined with time series analysis and deep learning include the following:
[0142] S4001, establish a time series model: first, construct the preprocessed environmental parameter data and the corresponding energy consumption data into a time series data set, and use the ARIMA (autoregressive moving average model) or SARIMA (seasonal autoregressive moving average model) time series analysis method to model and analyze the data to capture the trend, periodicity and seasonal characteristics in the data;
[0143] S4002, prediction model based on deep learning: Use deep learning algorithms, such as recurrent neural networks (RNN) or long short-term memory networks (LSTM), to model and predict time series data. Take time series data as input, and the model learns the complex relationships and nonlinear patterns in the data. By training the deep learning model, the prediction results of energy consumption are obtained;
[0144] S4003, batch prediction or hourly prediction: According to actual needs, select batch prediction or hourly prediction to perform energy consumption prediction. In batch prediction, the environmental parameter data within a period of time is used as input, and the energy consumption results within the time period are predicted simultaneously through the time series model and the deep learning model. In hourly prediction, the environmental parameter data at each time point is used as input, and the energy consumption results at each time point are predicted through the model. According to actual needs, the prediction method can be flexibly selected.
[0145] Combining the advantages of time series analysis and deep learning, by establishing a time series model and applying a deep learning algorithm, it achieves rapid prediction of building energy consumption and provides the flexibility of batch prediction or hourly prediction, which can more accurately capture the dynamic changes and complex relationships of energy consumption.
[0146] Further improved, in step S5, generating an effective energy management strategy combines intelligent optimization and feedback control methods, specifically through the following steps:
[0147] S501, establishing an optimization model: using historical energy consumption data, environmental parameter data and real-time energy consumption prediction results, an optimization model is established. The goal of the model is to minimize energy consumption and meet user needs and comfort requirements. At the same time, the operating limitations of building equipment and the constraints of energy supply are taken into account. The optimization model is established and solved using mathematical programming methods such as linear programming, integer programming or dynamic programming.
[0148] S502, dynamic adjustment strategy: based on the results of the optimization model, generate energy management strategies for different time periods, including equipment on / off control, adjustment of temperature and humidity set points, coordinated operation of lighting and air conditioning systems, and make dynamic adjustments according to actual needs and environmental conditions to achieve the goals of efficient use of energy and energy conservation and emission reduction;
[0149] S503, feedback control mechanism: Introduce real-time monitoring and feedback control mechanism to adjust and optimize energy management strategy in real time. Through sensor network and intelligent control system, monitor the environmental parameters and energy consumption inside the building in real time. According to the monitoring results, compare and adjust with the optimization model to achieve real-time feedback control, so that energy management strategy can better adapt to actual conditions and changes.
[0150] S504, Intelligent Decision Support: Combine artificial intelligence and machine learning technologies to establish an intelligent decision support system to learn and optimize energy management strategies, and automatically provide the best energy management recommendations and decision support by analyzing large amounts of historical data and real-time monitoring data.
[0151] Combining the advantages of intelligent optimization and feedback control, efficient energy management strategies are implemented by establishing optimization models, dynamically adjusting strategies, introducing feedback control mechanisms and intelligent decision support systems. These strategies not only take into account the goals of energy conservation and emission reduction, but also meet user needs and comfort requirements, and can be dynamically adjusted and optimized according to real-time conditions.
[0152] In a further improvement, in step S5, formulating appropriate energy-saving measures includes the following specific method steps:
[0153] S5001, Intelligent Equipment Control: Based on energy consumption prediction results and real-time environmental parameter data, intelligent control algorithms are used to dynamically control the equipment in the building. Through adaptive control strategies, the operating status, working mode and energy consumption level of the equipment are intelligently adjusted according to actual needs and environmental conditions to minimize energy consumption;
[0154] S5002, Energy Optimization Scheduling: Through the optimization scheduling algorithm, the operation time and working order of each device in the building are reasonably arranged to avoid energy consumption conflicts and overlapping operations between devices. The optimization scheduling algorithm takes into account the energy efficiency, operating cost and user demand factors of the equipment, and schedules the operation of the equipment in the best way to achieve the goal of efficient use of energy and energy conservation and emission reduction;
[0155] S5003, Dynamic Energy Supply: Combine renewable energy and energy storage technologies to achieve dynamic energy supply and flexible energy allocation. According to energy consumption forecast results and real-time demand, rationally utilize renewable energy such as solar and wind energy, and energy storage equipment, including batteries and thermal storage devices, to flexibly allocate energy supply to meet the energy needs of buildings and reduce dependence on traditional energy.
[0156] Specifically, the specific method steps for optimizing the operation of the equipment include the following:
[0157] S5004, Intelligent maintenance and fault warning: Utilize sensor networks and data analysis technology to monitor the operating status and performance parameters of equipment, analyze the health status of equipment in real time, and predict the risk of equipment failure. Through intelligent maintenance and fault warning systems, timely detect equipment anomalies and failures, and take corresponding maintenance measures to reduce equipment energy consumption and improve equipment reliability and lifespan.
[0158] S5005, Equipment Energy Efficiency Optimization: Improve the energy efficiency of equipment through equipment improvement and optimization, and use advanced technical means such as intelligent sensors, high-efficiency motors, and energy-saving controllers to upgrade and transform equipment to reduce energy consumption, improve the energy efficiency of equipment, and ensure that the equipment can achieve the best energy utilization effect in actual operation;
[0159] S5006, data-driven operation and maintenance decisions: Use big data analysis and machine learning technology to conduct in-depth mining and analysis of the operating data of building equipment, extract the operating rules and optimization potential of the equipment, and formulate reasonable equipment operation strategies and maintenance plans based on data-driven operation and maintenance decisions to achieve efficient operation of equipment, reduce energy consumption and extend equipment life.
[0160] Through intelligent equipment control, energy optimization scheduling, dynamic energy supply, intelligent maintenance and fault warning, equipment energy efficiency optimization and data-driven operation and maintenance decision-making, appropriate energy-saving measures and equipment operation optimization are implemented, and appropriate energy-saving measures are formulated and equipment operation is optimized to achieve the goals of efficient energy utilization and energy conservation and emission reduction.
[0161] In summary, by collecting a variety of environmental parameter data of buildings and using deep learning algorithms for model training and prediction, it is possible to handle complex nonlinear relationships, achieve rapid and accurate prediction of building energy consumption, improve the accuracy and stability of predictions, and have high efficiency, flexibility and real-time performance, which can provide strong support for energy management and energy conservation and emission reduction; combined with big data analysis, using a large amount of environmental parameter data and historical energy consumption data for model training, it can better capture the laws and trends of building energy consumption; provide real-time energy consumption predictions, and can dynamically adjust according to the real-time collected environmental parameter data to adapt to different usage scenarios and environmental changes.
[0162] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.
[0163] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for rapid prediction of building energy consumption, characterized in that: The method steps include the following: S1. By deploying a sensor network, the environmental parameter data inside the building is collected. The collected data includes real-time data or historical data. S2. Preprocess the collected environmental parameter data to provide a reliable data basis for subsequent model training and prediction; S3. Using the pre-processed environmental parameter data and the corresponding energy consumption data, a deep learning algorithm is used to train a building energy consumption prediction model. Through model training, a complex relationship between environmental parameters and energy consumption is established; S4. Using the trained building energy consumption prediction model and combining it with the environmental parameter data collected in real time, a rapid prediction of building energy consumption is performed. The building energy consumption prediction model outputs corresponding energy consumption prediction results. The prediction process is performed in batch prediction or hourly prediction. S5. Generate effective energy management strategies based on energy consumption forecast results and user needs, formulate appropriate energy-saving measures based on the predicted energy consumption, and optimize equipment operation to achieve the goals of efficient energy utilization and energy conservation and emission reduction; In step S1, the environmental parameter data inside the building include temperature, humidity, light intensity, energy consumption, CO2 concentration, air flow rate, pressure, sound level, air quality index, number of people and activities, window status, equipment status and external meteorological conditions; In step S2, data preprocessing includes data cleaning, data conversion, data normalization and data set division; The specific steps of data preprocessing include the following: S201, cleaning the collected raw data to remove noise, outliers and redundant information in the data, using filtering, outlier detection and deduplication techniques and algorithms to ensure data quality; S202, converting the cleaned data, including feature extraction, dimensionality reduction, and data reconstruction operations, so that the converted data better reflects the characteristics and patterns of the data; S203, normalizing the converted data to map the data to a specific range or distribution. Normalization methods include maximum and minimum normalization and standardization, which are used to ensure that data with different features or attributes have similar scales and ranges; S204, dividing the processed data set into a training set, a validation set, and a test set, so that different data sets can be used in subsequent model training and evaluation to verify the performance and generalization ability of the model; In step S3, a deep learning algorithm is used to train a building energy consumption prediction model to establish a complex relationship between environmental parameters and energy consumption. The specific method steps include the following: S301, Deep Convolutional Generative Adversarial Network: Use DCGAN to train a building energy consumption prediction model. DCGAN combines the ideas of convolutional neural networks and generative adversarial networks. Through a set of generator and discriminator networks, energy consumption data is generated from environmental parameter data, and adversarial training is used to make the generated energy consumption data indistinguishable from the real energy consumption data, capturing the complex nonlinear relationship between environmental parameters and energy consumption; S302, Combination of Variational Autoencoder and Generative Adversarial Network: Use the combination of VAE and GAN to train the building energy consumption prediction model. VAE is used to learn the potential representation of environmental parameter data, while GAN is used to generate energy consumption data. By combining the control of environmental parameter changes in the latent space and generating corresponding energy consumption data, the complex relationship between environmental parameters and energy consumption is learned, and energy consumption is quickly predicted; S303, Graph Neural Network: Use GNN to train the building energy consumption prediction model, represent the environmental parameter data inside the building as a graph structure, and learn the dependencies between environmental parameters and the complex relationship between energy consumption through GNN; The building energy consumption prediction model is used to transmit and interact information between environmental parameter data at different locations inside the building, thereby realizing rapid prediction of energy consumption; In step S4, the specific method steps of batch prediction or hourly prediction of building energy consumption combined with time series analysis and deep learning include the following: S4001, establish time series model: first, construct the preprocessed environmental parameter data and the corresponding energy consumption data into a time series data set, and use the ARIMA or SARIMA time series analysis method to model and analyze the data to capture the trend, periodicity and seasonal characteristics in the data; S4002, building energy consumption prediction model based on deep learning: using deep learning algorithms, including recurrent neural networks or long short-term memory networks, to model and predict time series data, taking the time series data as input, the building energy consumption prediction model learns the complex relationships and nonlinear patterns in the data, and obtains energy consumption prediction results by training the building energy consumption prediction model; S4003, batch prediction or hourly prediction: according to actual needs, select batch prediction or hourly prediction to perform energy consumption prediction. In batch prediction, environmental parameter data within a period of time is used as input, and the energy consumption results within the period are predicted simultaneously through the time series model and the building energy consumption prediction model. In hourly prediction, environmental parameter data at each time point is used as input, and the energy consumption results at each time point are predicted through the building energy consumption prediction model. In step S5, an effective energy management strategy is generated by combining intelligent optimization and feedback control methods, specifically through the following steps: S501, establishing an optimization model: using historical energy consumption data, environmental parameter data and real-time energy consumption prediction results, an optimization model is established. The goal of the optimization model is to minimize energy consumption and meet user needs and comfort requirements. At the same time, the operation restrictions of building equipment and the constraints of energy supply are taken into account. The optimization model is established and solved using a mathematical programming method such as linear programming, integer programming or dynamic programming. S502, dynamic adjustment strategy: based on the results of the optimization model, generate energy management strategies for different time periods, including equipment on / off control, adjustment of temperature and humidity set points, coordinated operation of lighting and air conditioning systems, and make dynamic adjustments according to actual needs and environmental conditions to achieve the goals of efficient use of energy and energy conservation and emission reduction; S503, feedback control mechanism: Introduce real-time monitoring and feedback control mechanism to adjust and optimize energy management strategy in real time. Through sensor network and intelligent control system, monitor the environmental parameters and energy consumption inside the building in real time. According to the monitoring results, compare and adjust with the optimization model to achieve real-time feedback control, so that energy management strategy can better adapt to actual conditions and changes. S504, Intelligent Decision Support: Combine artificial intelligence and machine learning technologies to establish an intelligent decision support system, learn and optimize energy management strategies, and automatically provide the best energy management suggestions and decision support by analyzing a large amount of historical data and real-time monitoring data; In step S5, formulating appropriate energy-saving measures includes the following specific method steps: S5001, Intelligent Equipment Control: Based on energy consumption prediction results and real-time environmental parameter data, intelligent control algorithms are used to dynamically control the equipment in the building. Through adaptive control strategies, the operating status, working mode and energy consumption level of the equipment are intelligently adjusted according to actual needs and environmental conditions; S5002, Energy Optimization Scheduling: By optimizing the scheduling algorithm, the operation time and working order of each device in the building are reasonably arranged to avoid energy consumption conflicts and overlapping operations between devices. The optimization scheduling algorithm considers the energy efficiency, operating cost and user demand factors of the equipment to schedule the operation of the equipment in the best way; S5003, Dynamic Energy Supply: Combine renewable energy and energy storage technology to achieve dynamic energy supply and flexible energy allocation. According to energy consumption forecast results and real-time demand, renewable energy and energy storage equipment are rationally used to flexibly allocate energy supply to meet the energy needs of buildings. The specific steps for optimizing equipment operation include the following: S5004, Intelligent maintenance and fault warning: Utilize sensor networks and data analysis technology to monitor the operating status and performance parameters of equipment, analyze the health status of equipment in real time, and predict the risk of equipment failure. Through intelligent maintenance and fault warning systems, timely detect equipment anomalies and failures, and take corresponding maintenance measures; S5005, Equipment Energy Efficiency Optimization: Improve the energy efficiency of equipment through equipment improvement and optimization, and use advanced technical means, including intelligent sensors, high-efficiency motors, and energy-saving controllers, to upgrade and transform equipment to reduce energy consumption, improve the energy efficiency of equipment, and ensure that the equipment can achieve the best energy utilization effect in actual operation; S5006, Data-driven operation and maintenance decisions: Use big data analysis and machine learning technology to conduct in-depth mining and analysis of the operating data of building equipment, and formulate reasonable equipment operation strategies and maintenance plans based on data-driven operation and maintenance decisions.
