Comprehensive energy consumption optimization method for air conditioning system based on DDQN of prediction and experience playback

Through the DDQN method based on prediction and experience playback, the energy consumption prediction and optimization model of the air conditioning system is constructed, which solves the problems of long learning time and poor reliability of the reinforcement learning method of the air conditioning system, and achieves optimization of energy consumption and improvement of energy utilization efficiency.

CN118623441BActive Publication Date: 2024-10-22ZHEJIANG HENGLONG SMART TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411105631.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-22
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

Existing reinforcement learning methods for air conditioning systems have problems such as long learning time and poor reliability, making it difficult to effectively optimize the energy consumption of the air conditioning system.

Method used

The DDQN method based on prediction and experience playback is used to construct a neural network energy consumption prediction model and a deep Q neural network optimization model. Through the Markov decision process and dual network architecture, the energy consumption of the air conditioning system is optimized, reducing learning time and improving reliability. .

Benefits of technology

The energy consumption of the air conditioning system has been optimized, reducing energy consumption by 10%, improving energy efficiency by 15%, reducing energy consumption while ensuring comfort, and improving the adaptability and robustness of the control strategy. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118623441B_ABST
    Figure CN118623441B_ABST
Patent Text Reader

Abstract

The present invention discloses a comprehensive energy consumption optimization method for an air conditioning system based on DDQN of prediction and experience playback, which belongs to the field of building energy conservation technology. First, a neural network-based energy consumption prediction model is constructed according to the physical parameters of the air conditioning system; then the air conditioning energy consumption optimization process is converted into a Markov decision process; then an energy consumption optimization model based on a deep Q neural network is constructed according to the Markov decision process; finally, the energy consumption optimization model based on the deep Q neural network is trained, the software is run to optimize the set temperature, the air conditioning operation strategy is obtained, and the energy consumption is optimized. The present invention reduces the exploration space by establishing rules, thereby ensuring that the intelligent agent avoids damaging the equipment during the exploration process, while meeting the comfort requirements of the controlled area as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the technical field of building energy conservation, and specifically to a comprehensive energy consumption optimization method for an air-conditioning system based on DDQN of prediction and experience playback. Background Art

[0002] Air conditioning system operation optimization is an important part of building energy conservation. The basic goal of building operation optimization is to reduce energy consumption as much as possible while meeting the comfort requirements of the controlled area. In order to adapt to the ever-changing outdoor weather conditions and indoor load changes, how to dynamically adjust the set values ​​or operating rules in the system to improve building energy efficiency has always been a technical difficulty in building operation optimization.

[0003] The global control methods currently used in air-conditioning systems can be divided into three types: rule-based control (such as start-stop control), model-based global control methods (such as model predictive control (MPC)), and model-free global control methods (reinforcement learning). Among them:

[0004] Rule-based control does not perform well because the air-conditioning system is a typical complex system with high nonlinearity, uncertainty, time-varying and coupling.

[0005] Based on the model control method, firstly, model establishment and model verification are time-consuming and labor-intensive; secondly, the actual operation effect is heavily dependent on the accuracy of the model, especially for the problem of building thermal and humid environment control. It is difficult to establish an accurate building dynamic model that can be applied in real-time optimization control, and the quality of the control strategy cannot be guaranteed. In addition, the hardware equipment requirements are high.

[0006] The model-free global control method does not need to establish a mathematical model of the building air-conditioning system and directly obtains the control strategy. The model-free control method based on reinforcement learning is a data-driven control method. It updates the control strategy using feedback information obtained through continuous attempts, thereby reducing dependence on prior knowledge (such as building thermal inertia, equipment characteristics, etc.). It is a better air-conditioning system control method.

[0007] For example, a patent with application publication number CN 116358114 A discloses an air conditioning temperature control method based on deep reinforcement learning, which allows the air conditioning system to continuously optimize and learn according to the environment and feedback, thereby achieving imperceptible air conditioning temperature control. Compared with traditional manual air conditioning control, it is more intelligent and efficient. Based on the PPD human comfort evaluation index, it ensures that the final air conditioning set temperature meets user needs and makes users more comfortable. It comprehensively considers the air conditioning energy consumption cost throughout the day, making the air conditioning temperature control more accurate and energy-saving.

[0008] However, current reinforcement learning methods for optimizing the operation of air-conditioning systems suffer from long learning times and poor reliability. Summary of the invention

[0009] The technical solution of the present invention aims at the technical problem that the existing technical solutions are too single, and provides a solution that is significantly different from the existing technology. It mainly provides a comprehensive energy consumption optimization method for air-conditioning systems based on DDQN of prediction and experience playback, which is used to solve the technical problems of long learning time and poor reliability raised in the above background technology.

[0010] The technical solution adopted by the present invention to solve the above technical problems is:

[0011] The comprehensive energy consumption optimization method of air conditioning system based on DDQN of prediction and experience playback includes the following steps:

[0012] S1. Construct an energy consumption prediction model based on a neural network according to the physical parameters of the air-conditioning system to optimize the air-conditioning energy consumption; the input parameters of the energy consumption prediction model include date, time, outdoor temperature, indoor temperature, indoor relative humidity, set heating temperature, set cooling temperature, heating and outdoor temperature difference, cooling and outdoor temperature difference, indoor volume, and the output parameter is the energy consumption of the air-conditioning system;

[0013] S2, transform the air conditioning energy consumption optimization process into a Markov decision process;

[0014] S3, construct an energy consumption optimization model based on deep Q neural network according to Markov decision process;

[0015] S4. Train the energy consumption optimization model based on the deep Q neural network, run the software to optimize the set temperature, obtain the air conditioning operation strategy, and achieve the optimization of energy consumption.

[0016] Furthermore, step S1 is specifically as follows: deploying multiple sensors in the air-conditioning system, and the sensors are responsible for sensing and collecting physical parameters of the air-conditioning system from the physical environment; then aggregating and processing the collected data; finally, using the processed data set to train the equipment energy consumption prediction model; the energy consumption prediction model uses seven hidden layers, and the number of neurons in each hidden layer is 256, 128, 256, 128, 256, 128, 256 respectively.

[0017] Furthermore, the energy consumption prediction model N1 is:

[0018] (1)

[0019] Among them, A 0 =S, is the input vector; A 1 To A 8is the output vector of each layer of neurons ( A 1 -A 7 is the hidden layer, A 8 is the final output layer, and the output result represents the energy consumption prediction result); f is an abstract representation of a whole layer of neural network function; a represents the output of a single neuron, which is calculated by the formula based on a of the previous layer;

[0020] (2)

[0021] Among them, l is the number of layers where the neuron is located, j is the serial number of the neuron in layer l, W is the weight vector of A, T is the vector transpose, which converts W into a row vector for easy multiplication with the A vector, b is the neuron bias, a parameter used to suppress neuron signals; ReLu is the activation function;

[0022] The activation function ReLU is:

[0023] (3)

[0024] The loss function is:

[0025] (4)

[0026] Among them, n represents the training data The number of Represents each training data The real output is The energy consumption prediction model is The predicted value of .

[0027] Furthermore, in step S2, the state s of the Markov decision is a constructed 10*1-dimensional array , which contains 10 input parameter values ​​of the air conditioning energy consumption model;

[0028] Action a is the air conditioning set temperature, the action space is [-2, +2], and the set temperature change is 0.5;

[0029] Rewards corresponding to environmental feedback for:

[0030] (5)

[0031] After taking action, the current state Transition to the next state Rewards for achieved energy reductions;

[0032] State transition and termination: An energy consumption prediction model is constructed using MLP, where the label is the normalized value of energy consumption and the feature is the input parameter of the energy consumption prediction model. The air conditioner set temperature is adjusted based on the strategy, and the energy consumption value is updated using the energy consumption prediction model. For the termination condition, the maximum reward value is recorded during training. If the exploration space exceeds 95%, the model is considered to have been fully explored. The maximum reward value is observed to see if it increases. If it does not exceed the maximum reward value for 10 consecutive iterations, the result at the maximum reward value is output.

[0033] Furthermore, the normalized value P of energy consumption is consistent with the air conditioning energy consumption prediction model constructed in step S1. The relationship is:

[0034] (6)

[0035] Among them, s represents the state of the input, which is equal to A 0 ;

[0036] Further expressed as:

[0037] (7)

[0038] in, represents the normalized value of the energy consumption of the air conditioning system at time t, Represents the normalized value of the energy consumption of the air conditioning system at time t+1.

[0039] Furthermore, in step S3, the cumulative reward at a given time t is By instant reward and discounted future rewards, expressed as:

[0040] (8)

[0041] In the formula, is a discount factor;

[0042] The iterative formula for the cumulative reward G is:

[0043] (9)

[0044] The expected value E of taking action a in state s is recorded as Q(s, a). There is the following relationship between Q and G:

[0045] (10).

[0046] Furthermore, in step S3, according to equations (8)-(10), using Monte Carlo approximation, the update rule of the Q value in the time difference method is derived as follows:

[0047] (11)

[0048] In the formula, Represents the learning rate, which affects the update speed;

[0049] In DDQN, ω is introduced as a parameter of the neural network:

[0050] (12)

[0051] According to equations (11)-(12), the value function update mechanism of DDQN is derived as follows:

[0052] (13)

[0053] In the formula, , is the TD target value.

[0054] Furthermore, in step S4, the off-policy experience replay technology is used to train the energy consumption optimization model; the deep Q neural network includes a training network Q-Net(ω) and a target network Q-Net(ω − ), the two networks have the same architecture, using three hidden layers, with the number of neurons in each hidden layer being 128, 256, and 128 respectively; in each iteration, Q-Net(ω) updates its parameters; Q-Net(ω − ) is the same as Q-Net(ω) at the beginning, and then every ten iterations the parameters in Q-Net(ω) are copied to update Q-Net(ω) − ) parameters.

[0055] Furthermore, in step S4, the loss function of the training network Q-Net(ω) is defined as follows:

[0056] (14)

[0057] Based on formula (14), the gradient descent method is used to update the parameters of Q-Net(ω):

[0058] (15)

[0059] In the formula, represents the learning rate, The symbol for the operator representing the partial derivative.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] (1) The present invention first builds an air conditioning energy consumption prediction model, then converts the air conditioning energy consumption optimization process into a Markov decision process, and establishes that the state transition is based on the strategy to adjust the air conditioning set temperature, and uses the energy consumption prediction model to update the energy consumption value. An energy consumption prediction model is constructed using MLP, in which the label is the normalized value of energy consumption and the feature is the input parameter of the energy consumption prediction model. The air conditioning set temperature is adjusted based on the strategy, and the energy consumption value is updated using the energy consumption prediction model. For the termination condition, the maximum reward value will be recorded during training. If the exploration space exceeds 95%, it is considered that the model has been fully explored, and the maximum reward value is observed to see whether it increases. If it does not exceed the maximum reward value for 10 consecutive iterations, the result at the maximum reward value is output. Then, an energy consumption optimization model based on a deep Q neural network is constructed according to the Markov decision process; finally, the energy consumption optimization model is used to achieve the optimization of energy consumption. The energy consumption prediction model of the present invention uses seven hidden layers, and the number of neurons in each hidden layer is 256, 128, 256, 128, 256, 128, 256; the energy consumption optimization model uses three hidden layers, and the number of neurons in each hidden layer is 128, 256, 128. Compared with the prior art, the present invention reduces the exploration space by establishing rules to reduce the learning time of reinforcement learning, thereby ensuring that the intelligent agent avoids damaging the equipment during the exploration process, and can improve the reliability of reinforcement learning for energy consumption optimization.

[0062] (2) The present invention utilizes the long life cycle of building operation to obtain a large amount of monitoring data feedback. It takes multiple physical parameters of the air-conditioning system (date, time, outdoor temperature, indoor temperature, indoor relative humidity, set heating temperature, set cooling temperature, heating and outdoor temperature difference, cooling and outdoor temperature difference, indoor volume) as input, and the energy consumption of the air-conditioning system as output. It also constructs a special network architecture and trains an energy consumption prediction model for the air-conditioning system. Experiments show that the predicted energy consumption of the energy consumption prediction model in the present invention fluctuates with the actual energy consumption within ±8%, indicating that the prediction accuracy of the energy consumption prediction model of the present invention is high, thereby laying an excellent foundation for optimizing the energy consumption of the air-conditioning system.

[0063] (3) The present invention is based on a high-precision energy consumption prediction. In establishing the Markov decision process, the reward for the energy consumption reduction achieved by transitioning from the current state to the next state after taking an action is used as the corresponding reward for environmental feedback. Taking into account the critical requirements of actual air conditioning, the lower and upper bounds of energy consumption are used as boundary conditions, and the energy consumption prediction model of the present invention is combined with it to define the reward, so that the model simulation scenario is more in line with the actual situation, thereby making the optimization accuracy of the air conditioning energy consumption optimization model constructed subsequently higher.

[0064] (4) In the process of energy consumption optimization, the present invention derives the update rule through the relationship between the cumulative reward at a given time t and the expected value of taking action a in state s, and further derives the value function update mechanism of DDQN, and finally builds an energy consumption optimization model based on deep Q neural network; and adopts dual model technology to construct the energy consumption optimization model, including the training network Q-Net(ω) and the target network Q-Net(ω − ), Q-Net(ω) updates parameters in real time, Q-Net(ω − ) Use the parameters updated with delay several iterations before, update the parameters of the real-time model to the delay model every few generations, calculate the Value value (evaluation value) and Target value (target value) through these two networks respectively, and can handle the problems of exploration and utilization at the same time, improve the efficiency and performance of optimization, and achieve precise optimization control of multiple regions by expanding the action space dimension, and can dynamically adjust the energy use strategy according to the environment to maximize energy consumption. The reinforcement learning controller of the present invention uses the feedback signal to continuously improve the control strategy, has strong adaptability, reduces the dependence on prior knowledge, does not need to perform rolling optimization, and has advantages in calculation speed.

[0065] (5) The present invention takes advantage of the long life cycle of building operation. Through a large amount of monitoring data feedback, the reinforcement learning controller can refine the operation experience and realize the refined operation of the air-conditioning system. And by adopting the experience playback technology, the system uses historical experience for learning, which improves the robustness and generalization ability of the algorithm. By using the optimization algorithm, the operation strategy of the system can be optimized to achieve energy saving and maximize energy utilization. Reduce energy consumption by 10%, improve energy utilization efficiency by 15%, reduce the impact on the environment, and maintain indoor comfort.

[0066] (6) In the process of energy consumption optimization, the present invention uses Markov decision making, the action is the air conditioning set temperature, the action space is [-2, +2], and the set temperature change interval is 0.5, which can alleviate the problem of falling into the local optimal solution. And before each action is determined, it is calculated whether the action result meets the reasonable set temperature range and comfort range, so as to limit the value of the action, so as to meet the comfort requirements of the controlled area as much as possible, instead of just focusing on the optimization of energy consumption. After applying the present invention, the air conditioning system can reduce energy consumption as much as possible under the premise of ensuring the comfort of use.

[0067] The present invention will be explained in detail below with reference to the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic diagram of a neural network architecture of an energy consumption prediction model provided by the present invention;

[0069] Figure 2A schematic diagram of reinforcement learning in the MDP decision-making process of the present invention;

[0070] Figure 3 Schematic diagram of the control flow of the intelligent agent in the present invention;

[0071] Figure 4 A schematic diagram of a neural network architecture of a training network in an energy consumption optimization model provided by the present invention;

[0072] Figure 5 It is a statistical chart of predicted energy consumption and actual energy consumption in the experiment of the present invention. DETAILED DESCRIPTION

[0073] To facilitate understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings, but the present invention can be implemented in different forms and is not limited to the embodiments described in the text. On the contrary, these embodiments are provided to make the content disclosed in the present invention more thorough and comprehensive.

[0074] Embodiment: A method for optimizing comprehensive energy consumption of an air conditioning system based on DDQN with prediction and experience playback, comprising:

[0075] Step 1. Construct an energy consumption prediction model based on a neural network according to the following parameters (date, time, outdoor temperature, indoor temperature, indoor relative humidity, set heating temperature, set cooling temperature, temperature difference between heating and outdoor, temperature difference between cooling and outdoor, and indoor volume);

[0076] Step 2. Convert the air conditioning energy consumption optimization process into a Markov decision process (MDP);

[0077] Step 3. Construct an energy consumption optimization model based on a deep Q neural network (DDQN) according to the following Markov decision process;

[0078] Step 4. Train the energy consumption optimization model based on the deep Q neural network, run the software to optimize the set temperature, obtain the air conditioning operation strategy, and achieve the optimization of energy consumption.

[0079] In step 1 above, various sensors are deployed in the air-conditioning system. The sensors are responsible for sensing and collecting various parameters from the physical environment, aggregating and processing the collected data (including data cleaning, enhancement, feature extraction and normalization), and using the processed data set to train the equipment energy consumption model. This data-driven model is seamlessly integrated with the functions of the multi-layer perceptron (MLP). The inherent ability of the MLP architecture to recognize complex patterns in complex data sets improves the accuracy of the prediction model. For the predictive energy consumption model of the air-conditioning system, 10 parameters closely related to air-conditioning energy consumption (date, time, outdoor temperature, indoor temperature, indoor relative humidity, set heating temperature, set cooling temperature, heating and outdoor temperature difference, cooling and outdoor temperature difference, indoor volume) are selected as inputs, and the energy consumption of the air-conditioning system is used as the output parameter of the MLP. The neural network architecture of the model is as follows: Figure 1 As shown in the figure, the model uses seven hidden layers, and the number of neurons in each hidden layer is 256, 128, 256, 128, 256, 128, 256 respectively.

[0080] The energy consumption prediction model is:

[0081] (1)

[0082] Among them, A 0 =S, is the input vector; A 1 To A 8 is the output vector of each layer of neurons ( A 1 -A 7 is the hidden layer, A 8 is the final output layer, and the output result represents the energy consumption prediction result), f is the abstract representation of a whole layer of neural network function, a represents the output of a single neuron, which is calculated by the formula based on a of the previous layer;

[0083] (2)

[0084] Among them, l is the number of layers where the neuron is located, with a value of 1-8; j is the serial number of the neuron in layer l, W is the weight vector of A, T is the vector transpose, which converts W into a row vector for easy multiplication with the A vector, b is the neuron bias, a parameter used to suppress neuron signals; ReLu is the activation function;

[0085] The activation function ReLu is shown in formula (3); the loss function used is MSE (mean square error loss). Assuming there are n training data , each training data The actual output is , model pair The predicted value is , the mean square error loss generated by the model under n training data can be defined as formula (4):

[0086] (3)

[0087] (4)

[0088] In step 2 above, the original random optimization problem is transformed into an MDP (Markov decision process) problem. The MDP decision process includes the agent, the environment, and four model elements. The algorithm learning process is as follows: Figure 2 As shown, the status ,action , the corresponding reward of environmental feedback , transfer status .

[0089] The control process of the intelligent agent is as follows Figure 3 As shown, it specifically includes: sensing and acquiring physical parameter data from the air-conditioning system through sensors, and building an energy consumption prediction model based on this; then using the energy consumption optimization algorithm to obtain the optimal solution for the control parameters of the air-conditioning system, and accordingly realizing the regulation of the air-conditioning system; and feeding back the regulated physical parameters to the energy consumption optimization algorithm to update the parameters.

[0090] The environment is the context information during program execution.

[0091] State s: A 10* 1-dimensional array constructed , which contains the 10 input parameter values ​​of the air conditioning energy consumption model at a specific time point t0. This array represents the state of the air conditioning system at time 0.

[0092] Action a: Considering the actual situation of the air-conditioning system, the air-conditioning set temperature is selected as the adjustable parameter, the action space is [-2, +2], and the set temperature change interval is 0.5 to alleviate the problem of falling into the local optimal solution; before each action is determined, it is calculated whether the action result meets the reasonable set temperature range and comfort range, so as to limit the value of the action.

[0093] State transition and termination: An energy consumption prediction model is constructed using MLP, where the label is the normalized value of energy consumption and the feature is the input parameter of the energy consumption prediction model. The air conditioner set temperature is adjusted based on the strategy, and the energy consumption value is updated using the energy consumption prediction model. For the termination condition, the maximum reward value is recorded during training. When the exploration space exceeds 95% (state space exploration rate), the model is considered to have been fully explored. Observe whether the maximum reward value increases. If it does not exceed the maximum reward value for 10 consecutive iterations, the result at the maximum reward value is output.

[0094]

[0095] award : The reward function is shown in formula (5)

[0096] (5)

[0097] is after taking the work from the current state Transition to the next state Rewards for the energy reduction achieved.

[0098] The normalized energy consumption value is recorded as P, and the air conditioning energy consumption prediction model constructed in step 1 is called You can get:

[0099] (6)

[0100] Among them, s represents the state;

[0101] It can be further expressed as:

[0102] (7)

[0103] in, represents the normalized value of the energy consumption of the air conditioning system at time t, Represents the normalized value of the energy consumption of the air conditioning system at time t+1.

[0104] Therefore, the cost of ineffective actions is significantly greater than the benefit of effective actions. This difference ensures that the agent's exploration is more focused and direct.

[0105] In step 3, the energy consumption optimization algorithm based on DDQN is used in the Markov process to calculate the cumulative reward at a given time t. By instant reward (Here Compared with the previous means the same thing) and discounted future rewards. It can be expressed as:

[0106] (8)

[0107] The iterative formula for the cumulative reward G is:

[0108] (9)

[0109] In the formula, is a discount factor.

[0110] The expected value E of taking action a in state s is recorded as Q(s, a). There is the following relationship between Q and G:

[0111] (10)

[0112] According to equations (8)-(10), using Monte Carlo approximation, the update rule of Q value in the time difference (TD) method is derived as follows:

[0113] (11)

[0114] In the formula, Represents the learning rate, which affects the update speed; a low learning rate depends more on past experience, and a high learning rate depends more on current experience. =0.9.

[0115] In DDQN, ω is introduced as a parameter of the neural network:

[0116] (12)

[0117] According to equations (11)-(12), the value function update mechanism of DDQN is derived as follows:

[0118] (13)

[0119] In the formula, , is the TD target value.

[0120] In step 4 above, a network, called Q-Net, is trained to approximate the value function. The TD target is the eigenvalue. The architecture of Q-Net is as follows: Figure 4 As shown in the figure, the model uses three hidden layers, and the number of neurons in each hidden layer is 128, 256, and 128 respectively.

[0121] It is worth noting that including the value function in the TD objective means that the eigenvalues ​​contain the output of the Q-Net. However, updating the eigenvalues ​​synchronously with the neural network during training can lead to instability. To address this issue, two networks are introduced:

[0122] The training network, denoted as Q-Net(ω), is responsible for calculating f ( , ; ), and update its parameters using standard gradient descent;

[0123] The target network is denoted as Q-Net(ω − ), used to calculate the term in formula (12) ; Compared with Q-Net(ω), the target network uses an older set of neural network parameters, representing the previous state of Q-Net(ω).

[0124] In each iteration, Q-Net(ω) updates its parameters; −) is the same as Q-Net(ω) at the beginning, but the parameters in Q-Net(ω) are copied every ten iterations to update Q-Net(ω) − ) parameters, so that the training process of Q-Net(ω) can refer to the previous state more and make the training more stable.

[0125] The loss function for training Q-Net(ω) is defined as follows:

[0126] (14)

[0127] The off-policy experience replay technique is used, which includes saving all experiences in a designated storage unit called the experience replay buffer; when training, a set of experiences is randomly selected from this buffer for the training process. This method maximizes sample utilization while ensuring that the samples meet the independent distribution assumption.

[0128] Based on formula (14), the gradient descent method is used to update the parameters of Q-Net(ω):

[0129] (15)

[0130] In the formula, represents the learning rate, The symbol for the operator representing the partial derivative.

[0131] Experience replay technology allows the system to learn from historical experience, improving the robustness and generalization ability of the algorithm. Using the optimization algorithm, the system's operating strategy can be optimized to achieve energy saving and maximize energy utilization.

[0132] The dual-model technology uses two neural network models to calculate the Value value (evaluation value) and the Target value (target value). The value uses a neural network that is updated in real time, and the target uses a neural network that is updated with a delay several iterations ago. The parameters of the real-time model are updated to the delay model every few generations. This can handle the problems of exploration and utilization at the same time, improve the efficiency and performance of optimization, and achieve precise optimization control of multiple regions by expanding the dimensions of the action space.

[0133] After the experiment, the predicted energy consumption and actual energy consumption of the air conditioning system were statistically analyzed. The results are as follows: Figure 5 shown.

[0134] Depend on Figure 5 It can be seen that the predicted energy consumption and the actual energy consumption fluctuate within ±8%, and the fitting degree is relatively high, which shows that the present invention has relatively good performance and can perform energy consumption prediction with high accuracy.

[0135] The above is an exemplary description of the present invention in combination with the accompanying drawings. It is obvious that the specific implementation of the present invention is not limited to the above-mentioned method. As long as such non-substantial improvements are made by adopting the method concept and technical solution of the present invention, or the concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.

Claims

1. Comprehensive energy consumption optimization method of air conditioning system based on DDQN prediction and experience playback, Features: The steps include: S1. Construct an energy consumption prediction model based on a neural network according to the physical parameters of the air-conditioning system to optimize the air-conditioning energy consumption; the input parameters of the energy consumption prediction model include date, time, outdoor temperature, indoor temperature, indoor relative humidity, set heating temperature, set cooling temperature, heating and outdoor temperature difference, cooling and outdoor temperature difference, indoor volume, and the output parameter is the energy consumption of the air-conditioning system; S2, transform the air conditioning energy consumption optimization process into a Markov decision process; S3, construct an energy consumption optimization model based on deep Q neural network according to Markov decision process; S4, training the energy consumption optimization model based on the deep Q neural network, running the software to optimize the set temperature, obtaining the air conditioning operation strategy, and realizing the optimization of energy consumption; Step S1 specifically includes: deploying a variety of sensors in the air-conditioning system, the sensors are responsible for sensing and collecting physical parameters of the air-conditioning system from the physical environment; then aggregating and processing the collected data; finally using the processed data set to train the equipment energy consumption prediction model; the energy consumption prediction model uses seven hidden layers, and the number of neurons in each hidden layer is: 256, 128, 256, 128, 256, 128, 250; The energy consumption prediction model for: (1) in, =s, is the input vector; to is the output vector of each layer of neurons; It is an abstract representation of a whole layer of neural network function; Represents the output of a single neuron, which is given by the formula based on the previous layer Calculated; (2) in, is the layer number of the neuron, yes The number of the layer neurons, yes The weight vector of is the vector transpose, so Convert to a row vector for convenience with Vector multiplication, is the neuron bias, a parameter used to inhibit neuron signals; is the activation function; Activation Function for: (3) The loss function is: (4) in, Represents training data The number of Represents each training data The real output is The energy consumption prediction model is The predicted value of In step S2, the state of the Markov decision Build 10 1-dimensional array , which contains 10 input parameter values ​​of the air conditioning energy consumption model; Action a is the air conditioning set temperature, the action space is [-2, +2], and the set temperature change is 0.5; Rewards corresponding to environmental feedback for: (5) After taking action, the current state Transition to the next state Rewards for achieved energy reductions; State transition and termination: An energy consumption prediction model is constructed using MLP, where the label is the normalized value of energy consumption and the feature is the input parameter of the energy consumption prediction model; the air conditioner set temperature is adjusted based on the strategy, and the energy consumption value is updated using the energy consumption prediction model; for the termination condition, the maximum reward value is recorded during training, and after the exploration space exceeds 95%, the maximum reward value is observed to see whether it increases. When the maximum reward value is not exceeded for 10 consecutive iterations, the result at the maximum reward value is output; In step S3, a given time Cumulative Rewards By instant reward and discounted future rewards, expressed as: (6) In the formula, is a discount factor; Accumulated Rewards The iteration formula is: (7) The status The expected value of taking action a Denoted as Q(s, a), Q and The following relationship exists: (8) According to equations (6)-(8), using Monte Carlo approximation, the update rule of Q value in the time difference method is derived as follows: (9) In the formula, Represents the learning rate, which affects the update speed; In DDQN, ω is introduced as a parameter of the neural network: (10) According to equations (9)-(10), the value function update mechanism of DDQN is derived as follows: (11) In the formula, , is the TD target value.

2. According to claim 1, the comprehensive energy consumption optimization method of the air conditioning system based on DDQN prediction and experience playback, Features: Normalized value of energy consumption The air conditioning energy consumption prediction model constructed in step S1 The relationship is: (12) in, Indicates the state of the input, equal to ; Further expressed as: (13) in, Indicates that the air conditioning system is The normalized value of energy consumption at the time, Indicates that the air conditioning system is Normalized value of energy consumption at time.

3. According to claim 1, the comprehensive energy consumption optimization method of the air conditioning system based on DDQN prediction and experience playback, Features: In step S4, the off-policy experience replay technology is used to train the energy consumption optimization model; the deep Q neural network includes a training network Q-Net(ω) and a target network Q-Net(ω − ), the two networks have the same architecture, using three hidden layers, with the number of neurons in each hidden layer being 128, 256, and 128 respectively; in each iteration, Q-Net(ω) updates its parameters; Q-Net(ω − ) is the same as Q-Net(ω) at the beginning, and then every ten iterations the parameters in Q-Net(ω) are copied to update Q-Net(ω) − ) parameters.

4. According to claim 3, the comprehensive energy consumption optimization method of the air conditioning system based on DDQN prediction and experience playback, Features: In step S4, the loss function of the training network Q-Net(ω) is defined as follows: (14) Based on formula (14), the gradient descent method is used to update the parameters of Q-Net(ω): (15) In the formula, represents the learning rate, The symbol for the operator representing the partial derivative.