Temperature control method and device based on convolutional neural network, air conditioner and medium
Through the temperature control method based on convolutional neural network, the residual convolutional neural network model training is used to solve the problem that existing intelligent air conditioning systems cannot adapt to complex environment changes and user needs, and achieve higher temperature control accuracy and intelligence .
Patent Information
- Application Number
- CN202411285703.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-01
AI Technical Summary
Existing smart air conditioning systems lack deep learning and end-to-end training capabilities, and are unable to effectively adapt to complex environmental changes and user needs, resulting in low accuracy in temperature control.
The temperature control method based on the convolutional neural network is adopted to collect environmental parameters and user status data, build training data, and model training on the residual convolutional neural network to generate a target temperature control model to realize intelligent control of the air conditioner.
It improves the accuracy of temperature control of air conditioners, can better adapt to complex environment changes and user needs, and improves the intelligent control capabilities of air conditioners.
Smart Images

Figure CN118882192A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioning, and in particular to a temperature control method, device, air conditioning and medium based on a convolutional neural network. Background Art
[0002] Traditional air conditioning control systems usually adjust the temperature based on simple temperature sensors and user-set thresholds. These systems lack the ability to learn intelligently and cannot automatically adjust the temperature based on changes in the indoor and outdoor environments and user behavior. Some more advanced systems may use rule-based logic to control the air conditioner, for example, automatically adjusting the temperature when the indoor and outdoor temperature difference exceeds a certain value. However, these systems usually require manual programming of rules and cannot learn from data to optimize performance. With the application of neural networks in the field of air conditioning, air conditioners can also achieve intelligent temperature control, which can effectively improve the efficiency of air conditioning control.
[0003] Existing smart air conditioning systems integrate sensors to collect indoor and outdoor environmental data and use simple algorithms to adjust the temperature. However, these smart air conditioning systems often lack the ability of deep learning and end-to-end training, and cannot adapt to complex environmental changes and user needs, resulting in low accuracy of air conditioning temperature control. Summary of the invention
[0004] The embodiments of the present invention provide a temperature control method, device, air conditioner and medium based on a convolutional neural network to improve the temperature control accuracy of the air conditioner.
[0005] In a first aspect, an embodiment of the present invention provides a temperature control method based on a convolutional neural network, which includes:
[0006] Collecting environmental parameters and user status data, and constructing training data based on the environmental parameters and the user status data;
[0007] Performing model training on the residual convolutional neural network according to the training data to generate a target temperature control model;
[0008] A current temperature control instruction is generated based on the target temperature control model, and the air conditioner is controlled based on the current temperature control instruction.
[0009] In a second aspect, an embodiment of the present invention provides a temperature control device based on a convolutional neural network, comprising:
[0010] A data collection unit, used to collect environmental parameters and user status data, and construct training data based on the environmental parameters and the user status data;
[0011] A model training unit, used to perform model training on the residual convolutional neural network according to the training data to generate a target temperature control model;
[0012] An air conditioning control unit is used to generate a current temperature control instruction based on the target temperature control model, and control the air conditioning based on the current temperature control instruction.
[0013] In a third aspect, an embodiment of the present invention provides an air conditioner, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the temperature control method based on a convolutional neural network described in the first aspect is implemented.
[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the temperature control method based on a convolutional neural network described in the first aspect above.
[0015] The embodiment of the present invention provides a temperature control method, device, air conditioner and medium based on a convolutional neural network, the method comprising: collecting environmental parameters and user status data, and constructing training data based on the environmental parameters and the user status data; training a residual convolutional neural network model according to the training data to generate a target temperature control model; generating a current temperature control instruction based on the target temperature control model, and controlling the air conditioner based on the current temperature control instruction. The embodiment of the present invention collects environmental parameters and user status data to train a residual convolutional neural network, realizes an end-to-end training temperature control model, and realizes intelligent control of the air conditioner temperature through the temperature control model, which is conducive to improving the temperature control accuracy of the air conditioner. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0017] Figure 1 A schematic diagram of a temperature control method based on a convolutional neural network provided in an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of the control system structure is provided for an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of a sub-process of a temperature control method based on a convolutional neural network provided in an embodiment of the present invention;
[0020] Figure 4A schematic flow chart of a temperature control method based on a convolutional neural network provided in another embodiment of the present invention;
[0021] Figure 5 A schematic diagram of the residual convolutional neural network structure provided by an embodiment of the present invention;
[0022] Figure 6 A schematic diagram of another sub-process of the temperature control method based on a convolutional neural network provided in an embodiment of the present invention;
[0023] Figure 7 A schematic diagram of another sub-process of the temperature control method based on a convolutional neural network provided in an embodiment of the present invention;
[0024] Figure 8 A schematic flow chart of a temperature control method based on a convolutional neural network provided in another embodiment of the present invention;
[0025] Fig. 9 A schematic flow chart of a temperature control method based on a convolutional neural network provided in yet another embodiment of the present invention;
[0026] Fig.10 A schematic block diagram of a temperature control device based on a convolutional neural network provided by an embodiment of the present invention;
[0027] Fig.11 A schematic block diagram of an air conditioner provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] 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 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.
[0029] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0030] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0031] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0032] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of a temperature control method based on a convolutional neural network provided in an embodiment of the present invention. Figure 2 A control system structure diagram is provided for an embodiment of the present invention. A temperature control method based on a convolutional neural network provided in an embodiment of the present invention is applied to air conditioners.
[0033] S1. Collect environmental parameters and user status data, and construct training data based on the environmental parameters and the user status data.
[0034] Specifically, the embodiment of the present application provides a temperature control method based on a convolutional neural network, which is used to improve the temperature control accuracy of an air conditioner. An end-to-end learning model is used to realize automatic learning of the entire process from input data to output control instructions.
[0035] Specifically, multiple sensors and WiFi are used to obtain environmental parameters and user status data. Among them, environmental parameters include indoor temperature, indoor humidity, outdoor temperature, outdoor humidity, air velocity, location information, geographic information, weather information, and seasonal information. User status data includes human energy metabolism rate and mechanical work done by the human body, clothing thermal resistance, and the ratio of human body to room area temperature. After obtaining environmental parameters and user status data, training data of the neural network model is constructed through environmental parameters and user status data.
[0036] See also Figure 3 , Figure 3 A specific implementation of step S1 is shown, which is described in detail as follows:
[0037] S11: Collecting the environmental parameters and the user status data according to a preset detection cycle.
[0038] S12: Calculate a predicted average body sensation index based on the environmental parameters and the user status data using a preset formula.
[0039] S13: Obtaining an initial temperature control instruction from a preset mapping table according to the predicted average body sensation index, and using the initial temperature control instruction as a data label.
[0040] S14: constructing the training data according to the data label, the environmental parameter, the user status data and the predicted average body sensation index.
[0041] Specifically, indoor temperature, indoor humidity, outdoor temperature and outdoor humidity are obtained through indoor and outdoor sensors. Location information, geographic information, weather information and season information are obtained through WiFi. Air velocity is obtained through anemometer / wind speed sensor. Clothing thermal resistance is obtained through RGB camera, which can be obtained after the user authorizes the camera to obtain clothing thermal resistance, or the user can choose to turn off the camera and manually enter thermal resistance related parameters. Human activity level and human density are obtained through radar; temperature data of different areas in the room are collected through infrared sensors. The average body sensation index is calculated and predicted based on environmental parameters and user status data using a preset formula.
[0042] The preset formula is:
[0043] PMV=[0.303exp(-0.036M)+0.0275]*{MW-3.05[5.733-0.007(MW)-Pa]-0.42(MW-58.2)-0 .0173M(5.867-Pa)-0.0014M(34-ta)-3.96*10fcl[(tcl+273)-(+273)]-fclhc(tcl-ta)};
[0044] Among them, M is the energy metabolism rate of the human body, which is determined by the amount of human activity, and is calculated by detecting the human activity distance and the side area of the human body through radar. W is the mechanical work done by the human body, which is calculated by detecting the human activity and the side area of the human body through radar. ta is the indoor temperature, and rh is the relative humidity. Pa is the atmospheric pressure, which can be calculated and obtained through location information, geographic information, weather information and seasonal information. hc is the convective heat transfer coefficient, which is determined by the environmental conditions around the human body through infrared sensors, tcl is the radiation temperature, and fcl is the surface temperature of the clothing. The thermal resistance of clothing is usually determined by the material and thickness of the clothing, which can be obtained by manual input by the user or by scanning the clothing label with a camera.
[0045] PMV is the predicted mean vote, which is a comprehensive evaluation index based on the basic equation of human thermal balance and the level of subjective thermal sensation in psychophysiology, and takes into account many relevant factors of human thermal comfort. The predicted mean vote indicates the average index of the group's votes for seven levels of thermal sensation (+3 to -3). The PMV index adopts a 7-level scale, as shown in Table 1 below.
[0046] Table 1
[0047]
[0048] According to the predicted average body sensation index, an initial temperature control instruction is obtained from a preset mapping table, and the initial temperature control instruction is used as a data tag. In a specific embodiment, the mapping table is shown in Table 2 below.
[0049] Table 2
[0050]
[0051]
[0052] The data labels, environmental parameters, user status data and predicted average body sensation index form a data set, and the data set is preprocessed to generate training data. The preprocessing includes data cleaning and data standardization.
[0053] See also Figure 4 , Figure 4 A specific implementation method before step S11 is shown, which is described in detail as follows:
[0054] S1A: When the air conditioner is started for the first time, obtaining preset user preference parameters.
[0055] S1B: Collecting initial environmental parameters, and using the initial environmental parameters as the initial environmental state of the air conditioner.
[0056] S1C: Generate an initial temperature according to the initial environmental state and the user preference parameter, and use the initial temperature as the initial operating state of the air conditioner.
[0057] Specifically, before implementing step 11, the present application performs initialization processing on the air conditioner. When the air conditioner is started for the first time, the preset user preference parameters are obtained. Then the initial environmental parameters are collected, and the initial environmental parameters are used as the initial environmental state of the air conditioner. The initial temperature is generated according to the initial environmental state and the user preference parameters, and the initial temperature is used as the initial operating state of the air conditioner. Among them, the user preference parameters include the user's temperature habits and comfort preferences, and the comfort preferences can be set by the thermal sensation in Table 1 above. The initial environmental parameters include indoor temperature, humidity, air pressure, etc.
[0058] S2. Perform model training on the residual convolutional neural network according to the training data to generate a target temperature control model.
[0059] Specifically, the convolutional layers and pooling layers of the convolutional neural network are alternately connected, which easily leads to a large training scale and makes it impossible to perform deeper neural network training. Moreover, both the convolutional layer and the fully connected layer have convolutional structures, so the activation functions of these two layers directly determine the performance of the entire convolutional neural network. At present, the convolutional layer commonly uses the Sigmoid activation function, and the fully connected layer uses the ReLU activation function. However, the Sigmoid convergence speed is not fast enough, and there are phenomena of gradient disappearance and overfitting. The ReLU function will cause certain parameters to fail to be activated, resulting in a freeze. Therefore, in the embodiment of the present application, a residual structure is introduced into the convolutional neural network, and a 4-layer convolutional neural network model is designed to improve the prediction accuracy. The residual convolutional neural network structure in the embodiment of the present application is as follows: Figure 5 shown.
[0060] Please refer to the figure Figure 6 , Figure 6 A specific implementation of step S2 is shown, which is described in detail as follows:
[0061] S21: Input the training data into the residual convolutional neural network, perform feature extraction on the training data through the first convolutional layer, and obtain initial features.
[0062] S22: performing pooling processing on the initial features through a pooling layer to obtain basic features, and performing deep feature extraction on the basic features through a second convolutional layer to obtain target features.
[0063] S23: Perform feature extraction and feature prediction on the target feature through a fully connected layer to generate an initial prediction result.
[0064] S24: Classify the initial prediction results using a normalized exponential function to generate a target prediction result.
[0065] S25: adjusting model parameters according to the target prediction results to obtain target model parameters, and re-performing model iterative training based on the target model parameters to obtain the target temperature control model.
[0066] Specifically, the training data is input into the input layer of the residual convolutional neural network, and the training data is feature extracted through the first convolutional layer to obtain the initial features. In the first convolutional layer, 3x3 and 1x1 convolution kernels are used to extract features, and 128 convolution kernels are used to extract features from the input layer to obtain the initial features. Then, the initial features are pooled through the pooling layer to reduce the spatial dimension of the features, reduce the number of parameters and the amount of calculation, and obtain the basic features. Then, a 256 convolution kernel is used to extract deeper features from the basic features to obtain the target features. The target features are sent to one or more fully connected layers to extract and predict the target features to generate the initial prediction results. Finally, the Softmax output layer is used in the residual convolutional neural network to classify the initial prediction results through the normalized exponential function to generate the target prediction results. Finally, the model parameters are adjusted according to the target prediction results to obtain the target model parameters, and the model iteration training is re-performed based on the target model parameters to obtain the target temperature control model.
[0067] See also Figure 7 , Figure 7 A specific implementation of step S25 is shown, which is described in detail as follows:
[0068] S251: Calculate the model loss according to the data labels in the training data and the target prediction results.
[0069] S252: Adjust the model parameters according to the model loss to obtain the target model parameters.
[0070] S253: Re-performing model iterative training based on the target model parameters by back propagation until a preset number of iterations is reached or the new model loss is lower than a preset threshold, thereby obtaining the target temperature control model.
[0071] Specifically, it is necessary to set an optimizer when performing model training. You can select optimizers such as SGD and Adam, and configure appropriate model parameters such as learning rate and momentum. Calculate the model loss based on the data labels in the training data and the target prediction results. Adjust the model parameters according to the model loss to obtain the target model parameters. Through back propagation, re-train the model iteratively based on the target model parameters until the preset number of iterations is reached or the new model loss is lower than the preset threshold, and the target temperature control model is obtained. After the target temperature control model is generated, the model can be verified and fine-tuned. The above data set is divided into training data and verification data, the target temperature control model is verified through the verification data, and the model is fine-tuned.
[0072] It should be noted that the preset number of iterations and the preset threshold are set according to actual conditions and are not limited here.
[0073] See also Figure 8 , Figure 8 A specific implementation after step S25 is shown. Figure 6 The schematic diagram of the residual convolutional neural network structure provided by the embodiment of the present invention is described in detail as follows:
[0074] S25A: Convert the weight of the target temperature control model into a preset format, and optimize the weight of the target temperature control model to obtain the compiled target temperature control model, wherein the optimization process includes weight pruning process, weight adjustment process and weight parameter sharing process.
[0075] Specifically, the target temperature control model is compiled and converted into a format suitable for running on a specific hardware platform (such as an edge computing device or a microcontroller). The embodiment of the present application also compresses and optimizes the weights of the target temperature control model to reduce memory requirements. The model is converted into a format that supports a specific chip architecture (such as TensorFlow Lite, ONNX, etc.). Finally, the compiled target temperature control model is deployed in the air conditioner.
[0076] In a specific embodiment, the weight of the target temperature control model is converted from a floating point format to an integer format. For example, in TensorFlow, tf.lite.TFLiteConverter can be used for quantization to convert the weight of the model from a 32-bit floating point to an 8-bit integer, which helps to significantly reduce the model size without retraining. The embodiment of the present application also optimizes the weight of the target temperature control model. Among them, the optimization process includes weight pruning, weight adjustment and weight parameter sharing. The weight pruning process is: by calculating the contribution of each neuron, it can screen the weights with low contribution by L1 or L2 regularization method. For example, in PyTorch, the torch.nn.utils.prune module can be used. Cut off the smaller weights in proportion (for example, cut off 10% of the small weights) to achieve weight pruning. Weight sharing is achieved by reusing convolution kernels, for example, in RNN or Transformer, parameters are reduced by sharing layers. The weight adjustment process can be implemented by applying singular value decomposition (SVD). The process is to use SVD to approximate each large weight matrix as the product of two small matrices to reduce the computational complexity.
[0077] In a specific embodiment, in the process of model deployment, the compiled target temperature control model is burned into the chip, and the chip has the computing power required to process neural network reasoning. For example, a microcontroller or a dedicated AI acceleration chip that supports the operation of the ML model is used. During the burning process, the code can be uploaded and configured with the help of development tools and IDE (integrated development environment). The burned chip is then integrated with the air conditioner main control system to ensure that the chip can receive sensor data in real time and generate control instructions through the reasoning process.
[0078] S3. Generate a current temperature control instruction based on the target temperature control model, and control the air conditioner based on the current temperature control instruction.
[0079] Specifically, the above steps have trained the target temperature control model, so in the actual application environment, the air conditioner obtains the current environmental parameters and the current user status data, and uses the target temperature control model to predict and infer based on the current environmental parameters and the current user status data, generates the current temperature control instruction, and controls the air conditioner based on the current temperature control instruction. The current control instruction includes specific parameters such as temperature adjustment, wind speed setting mode, and humidity control. The current control instruction is mapped to the control command of the actual air conditioner, such as temperature adjustment (unit ℃), wind speed adjustment (high, medium, and low gears), and mode switching (cooling, heating, dehumidification, ventilation, etc.). After receiving the control instruction, the air conditioning system will perform the corresponding adjustment operation in a timely manner. At the same time, the operating status of the air conditioner can be monitored in real time, and feedback verification can be performed to ensure that the command execution effect meets expectations.
[0080] See also Fig. 9 , Fig. 9 A specific implementation after step S3 is shown, which is described in detail as follows:
[0081] S3A: When it is detected that the current predicted average body sensation index deviates from the target range or the predicted average body sensation index adjusted by the user is received.
[0082] S3B: adjusting the model parameters of the target temperature control model according to the current predicted average body sensation index or the adjusted predicted average body sensation index to obtain a new temperature control model.
[0083] Specifically, the target temperature control model of the embodiment of the present application can be adaptively adjusted. When it is detected that the current predicted average body sensation index deviates from the target range, the model parameters of the target temperature control model are adjusted according to the current predicted average body sensation index so that the predicted average body sensation index is within the target range. The target range can be set according to actual conditions, generally close to zero. After obtaining the predicted average body sensation index adjusted by the user, the model parameters of the target temperature control model can also be adjusted to obtain a new temperature control model.
[0084] Furthermore, the embodiment of the present application provides a user interaction interface, allowing the user to manually adjust the temperature or set the preferred parameters. And the PMV value will be displayed in real time in the interface / panel and presented to the user for viewing. The user's operation will be recorded as an additional feature input into the logic of the output end of the neural network to improve the personalized prediction ability of the model. The user interface displays key information such as the current temperature, set temperature, PMV value, and the user can choose to actively adjust or rely on the system to automatically adjust. Classify according to the user's common behavior patterns or special needs (such as rest, work, exercise, etc.), adjust the control strategy, and provide the user with customizable output and control level. Improve the user experience in a way that combines universality and personalization.
[0085] In the embodiment of the present application, environmental parameters and user status data are collected, and training data is constructed based on the environmental parameters and the user status data; the residual convolutional neural network is trained according to the training data to generate a target temperature control model; the current temperature control instruction is generated based on the target temperature control model, and the air conditioner is controlled based on the current temperature control instruction. The embodiment of the present invention collects environmental parameters and user status data to train the residual convolutional neural network, realizes end-to-end training of the temperature control model, and realizes intelligent control of the air conditioner temperature through the temperature control model, which is conducive to improving the temperature control accuracy of the air conditioner.
[0086] The embodiment of the present application adopts a convolutional neural network and a residual structure to realize an end-to-end learning model that automatically extracts features from data and generates control instructions, thereby solving the inflexibility of traditional manual control. The embodiment of the present application can comprehensively evaluate the environmental comfort by integrating multiple sensor data such as indoor and outdoor temperature, humidity, wind speed, etc., and provides more precise control compared to the single or limited data dependence of the prior art. The optimized neural network structure and algorithm of the embodiment of the present application make it more efficient when processing large amounts of data, improve resource utilization, and reduce the waste of computing resources. The simplified network structure and algorithm optimization of the embodiment of the present application reduce the load on the network entity, improve the stability and response speed of the system, and reduce the performance problems caused by excessive network load compared to the prior art. The embodiment of the present application also introduces a residual structure to effectively avoid overfitting and gradient vanishing problems, enhance the generalization ability of the model, and enable the air-conditioning control system to maintain high performance under different environments and conditions.
[0087] The embodiment of the present invention further provides a temperature control device based on a convolutional neural network, and the temperature control device based on a convolutional neural network is used to execute any embodiment of the temperature control method based on a convolutional neural network. Fig.10 , Fig.10 A schematic block diagram of a temperature control device based on a convolutional neural network provided in an embodiment of the present invention.
[0088] Among them, Fig.10 As shown, the temperature control device 4 based on the convolutional neural network includes a data acquisition unit 41, a model training unit 42 and an air conditioning control unit 43.
[0089] The data collection unit 41 is used to collect environmental parameters and user status data, and construct training data based on the environmental parameters and the user status data.
[0090] The model training unit 42 is used to perform model training on the residual convolutional neural network according to the training data to generate a target temperature control model.
[0091] The air conditioning control unit 43 is used to generate a current temperature control instruction based on the target temperature control model, and control the air conditioning based on the current temperature control instruction.
[0092] Furthermore, the data acquisition unit 41 includes:
[0093] A data acquisition unit, used to collect the environmental parameters and the user status data according to a preset detection period;
[0094] A predicted average body sensation index calculation unit, configured to calculate a predicted average body sensation index based on the environmental parameters and the user status data using a preset formula;
[0095] a data label generating unit, configured to obtain an initial temperature control instruction from a preset mapping table according to the predicted average body sensation index, and use the initial temperature control instruction as a data label;
[0096] A training data construction unit is used to construct the training data according to the data label, the environmental parameter, the user status data and the predicted average body sensation index.
[0097] Furthermore, the data acquisition unit also includes:
[0098] A user preference parameter acquisition unit, used to acquire preset user preference parameters when the air conditioner is started for the first time;
[0099] An initial environmental parameter acquisition unit, used to collect initial environmental parameters and use the initial environmental parameters as the initial environmental state of the air conditioner;
[0100] An initial temperature unit is used to generate an initial temperature according to the initial environmental state and the user preference parameter, and use the initial temperature as the initial operating state of the air conditioner.
[0101] Furthermore, the model training unit 42 includes:
[0102] A feature extraction unit, used for inputting the training data into the residual convolutional neural network, performing feature extraction on the training data through a first convolutional layer, and obtaining initial features;
[0103] A pooling processing unit, used to perform pooling processing on the initial features through a pooling layer to obtain basic features, and perform deep feature extraction on the basic features through a second convolutional layer to obtain target features;
[0104] An initial prediction result generating unit, used for performing feature extraction and feature prediction on the target feature through a fully connected layer to generate an initial prediction result;
[0105] A target prediction result generating unit, used for classifying the initial prediction result by a normalized exponential function to generate a target prediction result;
[0106] The model iteration training unit is used to adjust the model parameters according to the target prediction results to obtain the target model parameters, and re-perform the model iteration training based on the target model parameters to obtain the target temperature control model.
[0107] Furthermore, the model iterative training unit includes:
[0108] A loss calculation unit, used to calculate the model loss according to the data labels in the training data and the target prediction results;
[0109] A target model parameter generating unit, used for adjusting the model parameters according to the model loss to obtain the target model parameters;
[0110] The target temperature control model generating unit is used to re-perform model iterative training based on the target model parameters by back propagation until a preset number of iterations is reached or the new model loss is lower than a preset threshold, thereby obtaining the target temperature control model.
[0111] Furthermore, the model training unit 42 further includes:
[0112] A model compilation unit is used to convert the weights of the target temperature control model into a preset format, and optimize the weights of the target temperature control model to obtain the compiled target temperature control model, wherein the optimization processing includes weight pruning processing, weight adjustment processing and weight parameter sharing processing.
[0113] Furthermore, the air conditioning control unit 43 further includes:
[0114] A detection unit, configured to detect that the current predicted average body sensation index deviates from a target range or receives the predicted average body sensation index adjusted by the user;
[0115] The model parameter adjustment unit is used to adjust the model parameters of the target temperature control model according to the current predicted average body sensation index or the adjusted predicted average body sensation index to obtain a new temperature control model.
[0116] The temperature control device based on the convolutional neural network can be implemented in the form of a computer program. Fig.11 The air conditioner shown is running.
[0117] See also Fig.11 , Fig.11 5 is a schematic block diagram of an air conditioner provided by an embodiment of the present invention. The air conditioner 500 includes a processor 502 , a memory and a network interface 505 connected via a device bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0118] The storage medium 503 can store an operating device 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a temperature control method based on a convolutional neural network.
[0119] The processor 502 is used to provide computing and control capabilities to support the operation of the entire air conditioner 500.
[0120] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a temperature control method based on a convolutional neural network.
[0121] The network interface 505 is used for network communication, such as providing transmission of data information, etc. Those skilled in the art can understand that the structure shown in the embodiment of the present application is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the air conditioner 500 to which the solution of the present invention is applied. The specific air conditioner 500 may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0122] The processor 502 is used to run the computer program 5032 stored in the memory to implement the temperature control method based on the convolutional neural network disclosed in the embodiment of the present invention.
[0123] Those skilled in the art will appreciate that the embodiments of the air conditioner shown in the embodiments of the present application do not constitute a limitation on the specific configuration of the air conditioner. In other embodiments, the air conditioner may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, in some embodiments, the air conditioner may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are consistent with the above-described embodiments, and will not be described in detail herein.
[0124] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0125] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the temperature control method based on a convolutional neural network disclosed in an embodiment of the present invention is implemented.
[0126] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0127] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.
[0131] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A temperature control method based on convolutional neural network, characterized in that: include: Collecting environmental parameters and user status data, and constructing training data based on the environmental parameters and the user status data; Performing model training on the residual convolutional neural network according to the training data to generate a target temperature control model; A current temperature control instruction is generated based on the target temperature control model, and the air conditioner is controlled based on the current temperature control instruction.
2. The temperature control method based on convolutional neural network according to claim 1 is characterized in that: The collecting of environmental parameters and user status data, and constructing training data based on the environmental parameters and the user status data, includes: Collecting the environmental parameters and the user status data according to a preset detection period; Calculate the predicted average body sensation index based on the environmental parameters and the user status data using a preset formula; Obtaining an initial temperature control instruction from a preset mapping table according to the predicted average body sensation index, and using the initial temperature control instruction as a data label; The training data is constructed according to the data label, the environmental parameter, the user status data and the predicted average body sensation index.
3. The temperature control method based on convolutional neural network according to claim 2 is characterized in that: Before collecting the environmental parameters and the user status data according to a preset detection period, the method further includes: When the air conditioner is started for the first time, obtaining preset user preference parameters; Collecting initial environmental parameters, and using the initial environmental parameters as the initial environmental state of the air conditioner; An initial temperature is generated according to the initial environmental state and the user preference parameter, and the initial temperature is used as the initial operating state of the air conditioner.
4. The temperature control method based on convolutional neural network according to claim 1, characterized in that: The performing model training on the residual convolutional neural network according to the training data to generate a target temperature control model includes: Inputting the training data into the residual convolutional neural network, performing feature extraction on the training data through the first convolutional layer to obtain initial features; The initial features are pooled by a pooling layer to obtain basic features, and deep features are extracted from the basic features by a second convolutional layer to obtain target features; Perform feature extraction and feature prediction on the target features through a fully connected layer to generate an initial prediction result; Classifying the initial prediction results by using a normalized exponential function to generate a target prediction result; The model parameters are adjusted according to the target prediction results to obtain the target model parameters, and the model iteration training is re-performed based on the target model parameters to obtain the target temperature control model.
5. The temperature control method based on convolutional neural network according to claim 4 is characterized in that: The adjusting the model parameters according to the target prediction results to obtain the target model parameters, and re-performing the model iteration training based on the target model parameters to obtain the target temperature control model includes: Calculate the model loss according to the data labels in the training data and the target prediction results; Adjust the model parameters according to the model loss to obtain the target model parameters; The target temperature control model is obtained by re-training the model iteratively based on the target model parameters by means of back propagation until a preset number of iterations is reached or the new model loss is lower than a preset threshold.
6. The temperature control method based on convolutional neural network according to any one of claims 1 to 5, characterized in that: After generating a current temperature control instruction based on the target temperature control model and controlling the air conditioner based on the current temperature control instruction, the method further includes: The weights of the target temperature control model are converted into a preset format, and the weights of the target temperature control model are optimized to obtain the compiled target temperature control model, wherein the optimization includes weight pruning, weight adjustment and weight parameter sharing.
7. The temperature control method based on convolutional neural network according to any one of claims 1 to 5, characterized in that: After generating a current temperature control instruction based on the target temperature control model and controlling the air conditioner based on the current temperature control instruction, the method further includes: When it is detected that the current predicted average body sensation index deviates from the target range or the predicted average body sensation index adjusted by the user is received; The model parameters of the target temperature control model are adjusted according to the current predicted average body sensation index or the adjusted predicted average body sensation index to obtain a new temperature control model.
8. A temperature control device based on convolutional neural network, characterized in that: include: A data collection unit, used to collect environmental parameters and user status data, and construct training data based on the environmental parameters and the user status data; A model training unit, used to perform model training on the residual convolutional neural network according to the training data to generate a target temperature control model; An air conditioning control unit is used to generate a current temperature control instruction based on the target temperature control model, and control the air conditioning based on the current temperature control instruction.
9. An air conditioner, 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 computer program, the temperature control method based on a convolutional neural network as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to perform the temperature control method based on a convolutional neural network as described in any one of claims 1 to 7.
Citation Information
Cited By
AI-based intelligent energy management method and system for air conditioning equipment
CN119309301A
Multi-mode temperature control method and device, electronic equipment and storage medium
CN120292678A
