Air conditioner dynamic optimization method and system based on deep learning
Through the method of dynamic optimization of air -conditioning based on deep learning, multi -layer perception and DQN network processing air -conditioning operation data are used to solve the problems that the traditional air conditioning control system cannot respond to environmental changes and user needs in real time. Consumption and improve user comfort.
Patent Information
- Application Number
- CN202411383820.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-09-30
AI Technical Summary
Traditional air conditioning control systems cannot respond to environmental changes and user needs in real time, resulting in waste of energy and unstable indoor comfort.
The dynamic optimization method based on deep learning is adopted, and the air conditioning operation data is obtained to build a data set for air -conditioning operations, training multi -layer perceptions and DQN networks, generate air -conditioning user preference models and DQN models, and adjust the air conditioning equipment in real time.
It achieves adaptive dynamic optimization of air conditioning, reduces energy consumption, improves user comfort, and balances energy-saving goals and user needs.
Smart Images

Figure CN119333940A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of air-conditioning intelligent control, and in particular, relates to an air-conditioning dynamic optimization method and system based on deep learning. Background Art
[0002] At present, energy conservation and emission reduction and intelligent control have become important trends in air conditioning system design. Traditional air conditioning control systems usually adjust based on preset temperature and humidity parameters, lacking dynamic response to actual environmental changes and user needs. This leads to energy waste and unstable indoor comfort. Therefore, it is particularly important to design a method and system that can dynamically adjust air conditioning operating parameters according to environmental changes and user needs in real time.
[0003] However, traditional machine learning algorithms have low prediction accuracy when dealing with complex nonlinear problems in air-conditioning systems, and cannot accurately predict user needs and environmental changes, resulting in inaccurate adjustment of control parameters. Moreover, traditional algorithms are usually trained on specific data sets and have poor adaptability, which may cause the system to be unable to adapt to environmental changes or changes in user habits. In addition, in terms of feature extraction, traditional algorithms rely too much on manual selection and design, and are prone to ignoring key information in sensor data, which in turn affects the optimization of control strategies. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the present invention proposes an air conditioning dynamic optimization method and system based on deep learning.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A deep learning-based air conditioning dynamic optimization method, comprising:
[0007] Acquire air-conditioning operation data, and construct an air-conditioning operation data set through air-conditioning data preprocessing according to the air-conditioning operation data, wherein the air-conditioning operation data includes environmental sensor data, user behavior data, and air-conditioning control parameters;
[0008] According to the air-conditioning operation data set, a user preference model of the air-conditioning is obtained by multi-layer perceptron training and testing;
[0009] Constructing an air-conditioning user preference DQN model by initializing a DQN network according to the air-conditioning user preference model;
[0010] Collect environmental sensor data in real time, output a user air-conditioning optimal control strategy through the air-conditioning user preference DQN model according to the environmental sensor data, and adjust the air-conditioning equipment in real time through the air-conditioning control system according to the user air-conditioning optimal control strategy.
[0011] Preferably, the acquiring of historical air-conditioning operation data and constructing an air-conditioning operation data set through air-conditioning data preprocessing according to the air-conditioning operation data comprises:
[0012] The environmental sensor data includes indoor temperature, outdoor temperature, indoor humidity, and outdoor humidity; the user behavior data includes air conditioning temperature setting data and air conditioning wind speed setting data; the air conditioning control parameters include air conditioning start and stop parameters, air conditioning temperature adjustment parameters, and air conditioning wind speed adjustment parameters;
[0013] The air conditioning data preprocessing is to obtain air conditioning operation standard data by normalizing the air conditioning operation data by mean;
[0014] An air conditioning operation data set is constructed according to the air conditioning operation standard data.
[0015] Preferably, the air-conditioning user preference model obtained by multi-layer perceptron training and testing according to the air-conditioning operation data set includes:
[0016] A multilayer perceptron is obtained by selecting multilayer perceptron nodes according to the air conditioning operation data set, wherein the multilayer perceptron nodes include the number of input layer nodes, the number of hidden layer nodes and the number of output layer nodes;
[0017] According to the air-conditioning operation data set, an air-conditioning operation training set and an air-conditioning operation test set are obtained by dividing the data set;
[0018] Calculating the multilayer perceptron loss by forward propagation according to the air conditioning operation training set, wherein the multilayer perceptron loss is calculated by a mean square error loss function;
[0019] Calculating gradients according to the multilayer perceptron and updating weights and biases of the multilayer perceptron, and iteratively training until the multilayer perceptron reaches a preset number of iterations;
[0020] The air conditioner user preference model is obtained by evaluating the multilayer perceptron through the root mean square error according to the air conditioner operation test set.
[0021] Preferably, constructing the air conditioner user preference DQN model by initializing the DQN network according to the air conditioner user preference model includes:
[0022] Constructing an air conditioning state space, wherein the air conditioning state space includes environmental sensor data and user behavior data;
[0023] Constructing an air conditioning action space, wherein the air conditioning action space includes increasing temperature, decreasing temperature, maintaining temperature, increasing wind speed, decreasing wind speed, and maintaining wind speed;
[0024] The air conditioning action space is encoded by air conditioning action parameterization, wherein the air conditioning action parameterization includes increasing temperature as 0, decreasing temperature as 1, maintaining temperature as 2, increasing wind speed as 3, decreasing wind speed as 4, and maintaining wind speed as 5;
[0025] The total air conditioning reward value is calculated by designing an air conditioning reward mechanism, and the total air conditioning reward value is the sum of the user comfort reward value and the energy saving reward value;
[0026] Outputting an air conditioning action A through an ε-greedy strategy according to the current environment state H, wherein the air conditioning action A is an air conditioning action in the air conditioning action space;
[0027] The air-conditioning experience training data is obtained by randomly sampling the air-conditioning experience through air-conditioning experience playback according to the air-conditioning experience playback buffer;
[0028] According to the air-conditioning experience tuple, the DQN network is trained and tested through a deep neural network approximation Q function to obtain an air-conditioning user preference DQN model.
[0029] Preferably, the air conditioning reward mechanism includes:
[0030] Preset a user comfort range and an air conditioning energy consumption benchmark value, wherein the user comfort range includes a temperature comfort range and a wind speed comfort range;
[0031] Calculate the user comfort reward value according to the air conditioning operation, and determine whether the temperature and wind speed in the next step of the air conditioning state are within the user comfort range. If yes, add 1 to the user comfort reward value; otherwise, subtract 1 from the user comfort reward value;
[0032] The energy-saving bonus value is calculated according to the air-conditioning operation, and it is determined whether the air-conditioning energy consumption is lower than the air-conditioning energy consumption benchmark value after the next air-conditioning action is executed. If yes, the energy-saving bonus value is increased by 0.5, otherwise, the energy-saving bonus value is reduced by 0.5.
[0033] Preferably, outputting the air conditioning action A through the ε-greedy strategy according to the current environmental state H includes:
[0034] Preset an exploration rate ε value, where the exploration rate ε value is the probability of randomly selecting an action;
[0035] Randomly generate an air conditioning exploration random number in the interval [0, 1) according to the exploration rate ε value;
[0036] When the air conditioning exploration random number is less than the exploration rate ε value, an air conditioning action A is randomly selected from the air conditioning action space;
[0037] When the air-conditioning action space is greater than or equal to the exploration rate ε value, the Q values of all possible actions under the current environment state H are predicted through the DQN network, and the air-conditioning action A with the highest Q value is selected.
[0038] Preferably, the air-conditioning user preference DQN model is obtained by training and testing the DQN network through a deep neural network approximation Q function according to the air-conditioning experience tuple, including:
[0039] Obtaining a DQN initial network by randomly initializing network weights and biases according to the DQN network;
[0040] Calculate the air conditioning action loss according to the DQN initial network through the mean square error loss function, where the air conditioning action loss is the difference between the predicted Q value of the air conditioning action and the target Q value of the air conditioning action;
[0041] The network weights are updated through the Adam optimizer until the DQN initial network converges, thereby obtaining the air conditioner user preference DQN model.
[0042] An air conditioning dynamic optimization system based on deep learning that applies the air conditioning dynamic optimization method based on deep learning, comprising an air conditioning data acquisition and preprocessing module, an air conditioning user preference module, an air conditioning dynamic optimization module, and an air conditioning control module;
[0043] The air conditioning data acquisition and preprocessing module is used to collect air conditioning operation data and normalize the mean to obtain air conditioning operation standard data, and then construct an air conditioning operation data set;
[0044] The air-conditioning user preference module is used to obtain an air-conditioning user preference model by training a multi-layer perceptron based on the air-conditioning operation data set to identify the user's air-conditioning preference;
[0045] The air-conditioning dynamic optimization module is used to obtain the air-conditioning user preference DQN model by training the DQN network through air-conditioning experience playback and ε-greedy strategy based on the air-conditioning user preference model;
[0046] The air-conditioning control module is used to output the user air-conditioning optimal control strategy through the air-conditioning user preference DQN model according to the current environmental sensor data, and to adjust the air-conditioning equipment in real time through the air-conditioning control system according to the user air-conditioning optimal control strategy to achieve dynamic optimization of air-conditioning parameters based on user comfort and energy-saving goals.
[0047] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned deep learning-based air conditioning dynamic optimization method when executing the program.
[0048] A storage medium containing computer executable instructions, which are used to execute the above-mentioned air conditioning dynamic optimization method based on deep learning when executed by a computer processor.
[0049] The beneficial effects of the present invention are:
[0050] (1) The air conditioning user preference DQN model is used to realize adaptive dynamic optimization of the air conditioning. The air conditioning operation is intelligently adjusted according to the current environmental status and user air conditioning preferences, effectively reducing unnecessary energy consumption and achieving energy saving and consumption reduction. At the same time, it better meets the personalized needs of users and thus improves user comfort.
[0051] (2) The air-conditioning user preference model is obtained through multi-layer perceptron training and testing, which can learn the user's air-conditioning preferences, provide optimization targets for subsequent air-conditioning dynamic optimization, and significantly improve user comfort.
[0052] (3) By designing an air-conditioning reward mechanism, energy-saving goals and user air-conditioning preferences are taken into consideration at the same time, and dynamic optimization of air-conditioning is achieved that balances air-conditioning energy consumption and user needs.
[0053] (4) Through the air-conditioning experience replay mechanism and the ε-greedy strategy, the model achieves a balance between exploring new strategies and utilizing known information, which improves the stability and efficiency of the model optimization control strategy process and ensures that the air-conditioning user preference DQN model can quickly respond to dynamic changes in the environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0055] Figure 1 It is a schematic diagram of the flow of an air conditioning dynamic optimization method based on deep learning of the present invention. DETAILED DESCRIPTION
[0056] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0057] See also Figure 1 , an air conditioning dynamic optimization method based on deep learning, comprising:
[0058] S1: Acquire air-conditioning operation data, and construct an air-conditioning operation data set through air-conditioning data preprocessing according to the air-conditioning operation data, wherein the air-conditioning operation data includes environmental sensor data, user behavior data, and air-conditioning control parameters;
[0059] S2: obtaining an air-conditioning user preference model through multi-layer perceptron training and testing according to the air-conditioning operation data set;
[0060] S3: constructing an air-conditioning user preference DQN model by initializing a DQN network according to the air-conditioning user preference model;
[0061] S4: Collect environmental sensor data in real time, output the user air-conditioning optimal control strategy through the air-conditioning user preference DQN model according to the environmental sensor data, and adjust the air-conditioning equipment in real time through the air-conditioning control system according to the user air-conditioning optimal control strategy.
[0062] In this embodiment, acquiring historical air-conditioning operation data and constructing an air-conditioning operation data set through air-conditioning data preprocessing according to the air-conditioning operation data specifically includes:
[0063] The environmental sensor data includes indoor temperature, outdoor temperature, indoor humidity, and outdoor humidity; the user behavior data includes air conditioning temperature setting data and air conditioning wind speed setting data; the air conditioning control parameters include air conditioning start and stop parameters, air conditioning temperature adjustment parameters, and air conditioning wind speed adjustment parameters;
[0064] The air conditioning data preprocessing is to obtain air conditioning operation standard data by normalizing the air conditioning operation data by mean;
[0065] An air conditioning operation data set is constructed according to the air conditioning operation standard data.
[0066] Specifically, the data units of the indoor temperature, the outdoor temperature and the air-conditioning temperature setting data are all in degrees Celsius, and the data units of the indoor humidity and the outdoor humidity are all in percentage.
[0067] In this embodiment, the air conditioner user preference model is obtained by multi-layer perceptron training and testing according to the air conditioner operation data set, which is specifically implemented by the following steps:
[0068] S201: obtaining a multilayer perceptron by selecting multilayer perceptron nodes according to the air-conditioning operation data set, wherein the multilayer perceptron nodes include the number of input layer nodes, the number of hidden layer nodes, and the number of output layer nodes;
[0069] S202: obtaining an air-conditioning operation training set and an air-conditioning operation test set by dividing the air-conditioning operation data set, wherein the data set is divided in a ratio of 7:3;
[0070] S203: Calculating the multilayer perceptron loss by forward propagation according to the air-conditioning operation training set, wherein the multilayer perceptron loss is calculated by a mean square error loss function;
[0071] S204: Calculating the gradient according to the multilayer perceptron and updating the weight and bias of the multilayer perceptron, and iteratively training until the multilayer perceptron reaches a preset number of iterations;
[0072] S205: Evaluating the multilayer perceptron by root mean square error according to the air conditioner operation test set to obtain an air conditioner user preference model.
[0073] In this embodiment, the number of hidden layer nodes is determined by cross-validation, the number of input layer nodes is 4 nodes, the number of output layer nodes is 2 nodes, the mean square error loss function is used to measure the difference between the predicted value of the air-conditioning operation data and the actual value of the air-conditioning operation data, the mean square error loss function is minimized by the Adam optimizer, and the model expression ability is maintained by the Relu activation function.
[0074] In this embodiment, constructing an air conditioner user preference DQN model by initializing a DQN network according to the air conditioner user preference model is specifically implemented by the following steps:
[0075] S301: constructing an air conditioning state space, wherein the air conditioning state space includes environmental sensor data and user behavior data;
[0076] S302: constructing an air conditioning action space, wherein the air conditioning action space includes increasing temperature, decreasing temperature, maintaining temperature, increasing wind speed, decreasing wind speed, and maintaining wind speed;
[0077] S303: Encoding the air conditioning action of the air conditioning action space through air conditioning action parameterization, wherein the air conditioning action parameterization includes increasing temperature as 0, decreasing temperature as 1, maintaining temperature as 2, increasing wind speed as 3, decreasing wind speed as 4, and maintaining wind speed as 5.
[0078] In this embodiment, the step size of temperature adjustment is 1 degree Celsius, and the step size of wind speed adjustment is 1 wind speed level. The air-conditioning state space is a set of air-conditioning state variables that affect the operation of the air-conditioning system. Each state in the air-conditioning state space can be represented as a multidimensional vector, in which each dimension corresponds to a state variable. The air-conditioning action space is the control operation that the air-conditioning can perform. The actions in the air-conditioning action space are converted into a form that can be understood and executed by the model through action parameterization.
[0079] S304: Calculate and obtain a total air conditioning reward value by designing an air conditioning reward mechanism, where the total air conditioning reward value is the sum of a user comfort reward value and an energy-saving reward value;
[0080] The air conditioning reward mechanism includes:
[0081] S304-1: Preset a user comfort range and an air conditioning energy consumption reference value, wherein the user comfort range includes a temperature comfort range and a wind speed comfort range;
[0082] S304-2: Calculate the user comfort reward value according to the air conditioning operation, and determine whether the temperature and wind speed in the next air conditioning state are within the user comfort range. If yes, add 1 to the user comfort reward value; otherwise, subtract 1 from the user comfort reward value.
[0083] S304-3: Calculate the energy-saving bonus value according to the air-conditioning operation, and determine whether the air-conditioning energy consumption is lower than the air-conditioning energy consumption reference value after the next air-conditioning action is executed. If yes, add 0.5 to the energy-saving bonus value; otherwise, subtract 0.5 from the energy-saving bonus value.
[0084] S305: Outputting an air-conditioning action A through an ε-greedy strategy according to the current environment state H, where the air-conditioning action A is an air-conditioning action in the air-conditioning action space;
[0085] S305-1: Preset an exploration rate ε value, where the exploration rate ε value is the probability of randomly selecting an action;
[0086] S305-2: Randomly generate an air conditioning exploration random number in the interval [0, 1) according to the exploration rate ε value;
[0087] S305-3: When the air-conditioning exploration random number is less than the exploration rate ε value, an air-conditioning action A is randomly selected from the air-conditioning action space.
[0088] When the air-conditioning action space is greater than or equal to the exploration rate ε value, the Q values of all possible actions under the current environment state H are predicted through the DQN network, and the air-conditioning action A with the highest Q value is selected.
[0089] S306: obtaining air-conditioning experience training data by randomly sampling through air-conditioning experience playback according to the air-conditioning experience playback buffer;
[0090] Construct an air conditioning experience tuple (H, A, R, H') and store it in the air conditioning experience playback buffer, where H is the current environment state, A is the air conditioning action, R is the total air conditioning reward value, and H' is the new air conditioning state;
[0091] When the air-conditioning experience playback buffer is larger than the preset air-conditioning experience playback buffer storage value, the new air-conditioning experience covers the old air-conditioning experience.
[0092] S307: training and testing the DQN network through a deep neural network approximation Q function according to the air-conditioning experience tuple to obtain an air-conditioning user preference DQN model;
[0093] S307-1: Obtaining a DQN initial network by randomly initializing network weights and biases according to the DQN network;
[0094] S307-2: Calculating the air conditioning action loss by using a mean square error loss function according to the DQN initial network, where the air conditioning action loss is the difference between the predicted Q value of the air conditioning action and the target Q value of the air conditioning action;
[0095] S307-3: Update the network weights through the Adam optimizer until the DQN initial network converges, thereby obtaining the air conditioner user preference DQN model.
[0096] An air conditioning dynamic optimization system based on deep learning includes an air conditioning data acquisition and preprocessing module, an air conditioning user preference module, an air conditioning dynamic optimization module, and an air conditioning control module;
[0097] The air conditioning data acquisition and preprocessing module is used to collect air conditioning operation data and normalize the mean to obtain air conditioning operation standard data, and then construct an air conditioning operation data set;
[0098] The air-conditioning user preference module is used to obtain an air-conditioning user preference model by training a multi-layer perceptron based on the air-conditioning operation data set to identify the user's air-conditioning preference;
[0099] The air-conditioning dynamic optimization module is used to obtain the air-conditioning user preference DQN model by training the DQN network through air-conditioning experience playback and ε-greedy strategy based on the air-conditioning user preference model;
[0100] The air-conditioning control module is used to output the user air-conditioning optimal control strategy through the air-conditioning user preference DQN model according to the current environmental sensor data, and to adjust the air-conditioning equipment in real time through the air-conditioning control system according to the user air-conditioning optimal control strategy to achieve dynamic optimization of air-conditioning parameters based on user comfort and energy-saving goals.
[0101] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0102] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0103] The program code included on the computer readable medium can be transmitted with any appropriate medium, including but not limited to wireless, electric wire, optical cable, RF, etc., or any suitable combination of the above. The computer program code for performing the operation of the present invention can be written in one or more programming languages or their combinations, and the programming language includes object-oriented programming languages-such as Java, Smalltalk, C++, and also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0104] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A method for dynamic optimization of air conditioning based on deep learning, characterized in that: include: Acquire air-conditioning operation data, and construct an air-conditioning operation data set through air-conditioning data preprocessing according to the air-conditioning operation data, wherein the air-conditioning operation data includes environmental sensor data, user behavior data, and air-conditioning control parameters; According to the air-conditioning operation data set, a user preference model of the air-conditioning is obtained by multi-layer perceptron training and testing; Constructing an air-conditioning user preference DQN model by initializing a DQN network according to the air-conditioning user preference model; Collect environmental sensor data in real time, output a user air-conditioning optimal control strategy through the air-conditioning user preference DQN model according to the environmental sensor data, and adjust the air-conditioning equipment in real time through the air-conditioning control system according to the user air-conditioning optimal control strategy.
2. The air conditioning dynamic optimization method based on deep learning according to claim 1, characterized in that: The acquiring of historical air-conditioning operation data and constructing an air-conditioning operation data set through air-conditioning data preprocessing according to the air-conditioning operation data comprises: The environmental sensor data includes indoor temperature, outdoor temperature, indoor humidity, and outdoor humidity; the user behavior data includes air conditioning temperature setting data and air conditioning wind speed setting data; the air conditioning control parameters include air conditioning start and stop parameters, air conditioning temperature adjustment parameters, and air conditioning wind speed adjustment parameters; The air conditioning data preprocessing is to obtain air conditioning operation standard data by normalizing the air conditioning operation data by mean; An air conditioning operation data set is constructed according to the air conditioning operation standard data.
3. The air conditioning dynamic optimization method based on deep learning according to claim 1, characterized in that: The air-conditioning user preference model obtained by multi-layer perceptron training and testing according to the air-conditioning operation data set includes: A multilayer perceptron is obtained by selecting multilayer perceptron nodes according to the air-conditioning operation data set, wherein the multilayer perceptron nodes include the number of input layer nodes, the number of hidden layer nodes, and the number of output layer nodes; According to the air-conditioning operation data set, an air-conditioning operation training set and an air-conditioning operation test set are obtained by dividing the data set; Calculating the multilayer perceptron loss by forward propagation according to the air conditioning operation training set, wherein the multilayer perceptron loss is calculated by a mean square error loss function; Calculating gradients according to the multilayer perceptron and updating weights and biases of the multilayer perceptron, and iteratively training until the multilayer perceptron reaches a preset number of iterations; The air conditioner user preference model is obtained by evaluating the multilayer perceptron through the root mean square error according to the air conditioner operation test set.
4. The air conditioning dynamic optimization method based on deep learning according to claim 1, characterized in that: The constructing of the air conditioner user preference DQN model by initializing the DQN network according to the air conditioner user preference model comprises: Constructing an air conditioning state space, wherein the air conditioning state space includes environmental sensor data and user behavior data; Constructing an air conditioning action space, wherein the air conditioning action space includes increasing temperature, decreasing temperature, maintaining temperature, increasing wind speed, decreasing wind speed, and maintaining wind speed; The air conditioning action space is encoded by air conditioning action parameterization, wherein the air conditioning action parameterization includes increasing temperature as 0, decreasing temperature as 1, maintaining temperature as 2, increasing wind speed as 3, decreasing wind speed as 4, and maintaining wind speed as 5; The total air conditioning reward value is calculated by designing an air conditioning reward mechanism, and the total air conditioning reward value is the sum of the user comfort reward value and the energy saving reward value; Outputting an air conditioning action A through an ε-greedy strategy according to the current environment state H, wherein the air conditioning action A is an air conditioning action in the air conditioning action space; The air-conditioning experience training data is obtained by randomly sampling the air-conditioning experience through air-conditioning experience playback according to the air-conditioning experience playback buffer; According to the air-conditioning experience tuple, the DQN network is trained and tested through a deep neural network approximation Q function to obtain an air-conditioning user preference DQN model.
5. The air conditioning dynamic optimization method based on deep learning according to claim 4, characterized in that: The air conditioning reward mechanism includes: Preset a user comfort range and an air conditioning energy consumption benchmark value, wherein the user comfort range includes a temperature comfort range and a wind speed comfort range; Calculate the user comfort reward value according to the air conditioning operation, and determine whether the temperature and wind speed in the next step of the air conditioning state are within the user comfort range. If yes, add 1 to the user comfort reward value; otherwise, subtract 1 from the user comfort reward value; The energy-saving bonus value is calculated according to the air-conditioning operation, and it is determined whether the air-conditioning energy consumption is lower than the air-conditioning energy consumption benchmark value after the next air-conditioning action is executed. If yes, the energy-saving bonus value is increased by 0.5, otherwise, the energy-saving bonus value is reduced by 0.
5.
6. The air conditioning dynamic optimization method based on deep learning according to claim 4, characterized in that: Outputting the air conditioning action A through the ε-greedy strategy according to the current environment state H includes: Preset an exploration rate ε value, where the exploration rate ε value is the probability of randomly selecting an action; Randomly generate an air conditioning exploration random number in the interval [0, 1) according to the exploration rate ε value; When the air conditioning exploration random number is less than the exploration rate ε value, an air conditioning action A is randomly selected from the air conditioning action space; When the air-conditioning action space is greater than or equal to the exploration rate ε value, the Q values of all possible actions under the current environment state H are predicted through the DQN network, and the air-conditioning action A with the highest Q value is selected.
7. The air conditioning dynamic optimization method based on deep learning according to claim 4, characterized in that: The air-conditioning user preference DQN model is obtained by training and testing the DQN network through a deep neural network approximation Q function according to the air-conditioning experience tuple, including: Obtaining a DQN initial network by randomly initializing network weights and biases according to the DQN network; Calculate the air conditioning action loss according to the DQN initial network through the mean square error loss function, where the air conditioning action loss is the difference between the predicted Q value of the air conditioning action and the target Q value of the air conditioning action; The network weights are updated through the Adam optimizer until the DQN initial network converges, thereby obtaining the air conditioner user preference DQN model.
8. An air conditioning dynamic optimization system based on deep learning using the air conditioning dynamic optimization method based on deep learning according to claim 1, comprising an air conditioning data acquisition and preprocessing module, an air conditioning user preference module, an air conditioning dynamic optimization module, and an air conditioning control module, characterized in that: The air conditioning data acquisition and preprocessing module is used to collect air conditioning operation data and normalize the mean to obtain air conditioning operation standard data, and then construct an air conditioning operation data set; The air-conditioning user preference module is used to obtain an air-conditioning user preference model by training a multi-layer perceptron based on the air-conditioning operation data set to identify the user's air-conditioning preference; The air-conditioning dynamic optimization module is used to obtain the air-conditioning user preference DQN model by training the DQN network through air-conditioning experience playback and ε-greedy strategy based on the air-conditioning user preference model; The air-conditioning control module is used to output the user air-conditioning optimal control strategy through the air-conditioning user preference DQN model according to the current environmental sensor data, and to adjust the air-conditioning equipment in real time through the air-conditioning control system according to the user air-conditioning optimal control strategy to achieve dynamic optimization of air-conditioning parameters based on user comfort and energy-saving goals.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the air conditioning dynamic optimization method based on deep learning as described in any one of claims 1-7 is implemented.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the air conditioning dynamic optimization method based on deep learning as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Temperature control method, device and system
CN109099561A
Indoor thermal environment learning efficiency improvement optimization control method based on reinforcement learning
CN114370698A
Air conditioner energy-saving control method and system based on reinforcement learning and digital twinborn model
CN118031385A
Ventilation and exhaust cooperative control method and device based on multi-agent system
CN118224713A
Optimized HVAC control using domain knowledge combined with deep reinforcement learning (DRL)
US20230125620A1
Cited By
Dormitory building indoor environment optimization method and system based on deep reinforcement learning combination
CN120197261A
A dormitory building indoor environment optimization method and system based on deep reinforcement learning combination
CN120197261B
Intelligent building air conditioner adaptive control method based on deep reinforcement learning
CN120403071A
Air conditioner regulation and control method and device based on user comfort and carbon emission optimization
CN120890156A
An air conditioner regulation method and device based on user comfort and carbon emission optimization
CN120890156B