Intelligent window opening and closing system and method
Through the intelligent opening and closing window system, decision trees and feed-forward neural network models are used to realize intelligent control of windows, solving the problem that the existing system cannot adapt to adjustments and improving the user experience.
Patent Information
- Application Number
- CN202311817192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-12-26
AI Technical Summary
Existing smart window control systems cannot adaptively learn user behavior and environmental changes, and cannot intelligently adjust the opening and closing status of windows, resulting in poor user experience.
An intelligent switch window system is designed, including a data acquisition module, a data processing module, a model building module and a decision-making module. By collecting indoor and outdoor environmental information, a decision tree is constructed and the target feedforward neural network model is embedded to generate a switch window decision model. Realize intelligent control of windows.
It realizes the intelligent control of opening and closing windows according to the indoor and outdoor environment, improving the user experience. Through the cooperation of the decision-making model and the microcontroller, the intelligent opening and closing control of windows is realized to adapt to environmental changes.
Smart Images

Figure CN117823010B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control, and in particular to an intelligent window opening and closing system and method. Background Art
[0002] In recent years, smart home has become an important part of the development of family informatization and social informatization. Smart home is also called smart house. When the home smart gateway connects various home appliances in the home through home bus technology, it constitutes a powerful and highly intelligent modern smart home system. Smart home emphasizes people's subjective initiative, attaches importance to the coordination between people and living environment, and can control the living environment at will. The application of smart home control system allows people to enjoy a safer, more comfortable and more convenient life at home, and the living environment is more in line with environmental protection requirements. The design idea of smart window control system came into being under this situation.
[0003] The current smart window control system can only control windows through commands and cannot adaptively learn user behavior. At the same time, the current smart window control system cannot adjust the opening and closing status of windows according to environmental changes.
[0004] Therefore, there is an urgent need for an intelligent window opening and closing system and method, which can realize intelligent control of window opening and closing according to indoor and outdoor environments, thereby improving the user experience. Summary of the invention
[0005] The main purpose of the present invention is to provide an intelligent window opening and closing system and method, aiming to solve the technical problem of how to intelligently control the opening and closing of windows according to indoor and outdoor environments, thereby improving the user experience.
[0006] To achieve the above-mentioned object, the present invention provides an intelligent switch window system, which includes: a data acquisition module, a data processing module, a model building module and a decision module;
[0007] The data acquisition module is used to collect indoor and outdoor environmental information and integrate the indoor and outdoor environmental information to obtain an environmental data set;
[0008] The data processing module is used to perform data preprocessing on the environmental data set to obtain a processed data set;
[0009] The model building module is used to build a decision tree and embed a target feedforward neural network model in the nodes of the decision tree to generate a switch window decision model;
[0010] The decision module is used to input the processed data set into the window opening and closing decision model to obtain the window opening and closing decision result, and transmit the window opening and closing decision result to the single-chip microcomputer so that the single-chip microcomputer controls the opening and closing of the window.
[0011] Optionally, the model building module includes a decision tree optimization submodule, a neural network building submodule and an embedding submodule;
[0012] The decision tree optimization submodule is used to construct a decision tree and optimize the nodes of the decision tree based on the processed data set to obtain an optimized decision tree;
[0013] The neural network construction submodule is used to construct a convolutional network model and a feedforward neural network model, and train the feedforward neural network model through the convolutional network model to generate a target feedforward neural network model;
[0014] The embedding submodule is used to embed the target feedforward neural network model in the nodes of the optimized decision tree to generate a switch window decision model.
[0015] Optionally, the decision tree optimization submodule includes a structure construction unit and a structure optimization unit;
[0016] The structure building unit is used to build a decision tree;
[0017] The structure optimization unit is used to construct different feature subspaces of the data of the decision tree by using the ID3 algorithm and the processed data set to obtain a processed decision tree;
[0018] The structure optimization unit is also used to prune redundant decision tree structures in the processed decision tree to generate the optimized decision tree.
[0019] Optionally, the neural network construction submodule includes a historical data acquisition unit, a model construction unit, a first training unit, a second training unit and a third training unit;
[0020] The historical data acquisition unit is used to acquire historical indoor and outdoor environment data sets;
[0021] The model building unit is used to build a convolutional network model and a feedforward neural network model;
[0022] The first training unit is used to train the convolutional network model using the historical indoor and outdoor environment data set to obtain an output probability distribution of the convolutional network model, and use the output probability distribution as a soft label of a teacher model;
[0023] The second training unit is used to calculate the loss between the feedforward neural network model and the teacher model soft label based on the cross entropy function to obtain a calculation result;
[0024] The third training unit trains the feedforward neural network model based on the calculation result to generate the target feedforward neural network model.
[0025] Optionally, the data acquisition module includes: a light sensor, a temperature sensor, a humidity sensor, a camera submodule, a calculation submodule and an integration submodule;
[0026] The light sensor is used to detect indoor and outdoor light levels;
[0027] The temperature sensor is used to detect the indoor temperature;
[0028] The humidity sensor is used to detect indoor humidity;
[0029] The camera submodule is used to obtain outdoor weather information;
[0030] The data set generation submodule is used to generate an indoor data set based on the indoor and outdoor light levels, the indoor temperature and the indoor humidity;
[0031] The integration submodule is used to add the outdoor weather information to the indoor data set to generate an environmental data set.
[0032] Optionally, the data set generation submodule includes: a data acquisition unit, a correlation acquisition unit, and a data set generation unit;
[0033] The data acquisition unit is used to acquire the indoor and outdoor light levels, the indoor temperature and the indoor humidity;
[0034] The correlation acquisition unit is used to acquire the correlation between the indoor and outdoor light levels, the indoor temperature and the indoor humidity;
[0035] The data set generating unit is configured to generate an indoor data set based on the correlation degree and the indoor and outdoor light levels, the indoor temperature and the indoor humidity.
[0036] Optionally, the data processing module includes a data cleaning submodule, a normalization submodule and a proofreading submodule;
[0037] The data cleaning submodule is used to clean the missing values of the environmental data set and fill the missing values through a regression analysis method to obtain a cleaned data set;
[0038] The normalization submodule is used to normalize the cleaned data set to obtain a normalized data set;
[0039] The proofreading submodule is used to proofread the normalized data set to obtain a processed data set.
[0040] Optionally, the proofreading submodule is further used to construct a data verification framework with time as a constraint, and to proofread the normalized data set through the data verification framework to obtain a proofreading result;
[0041] The proofreading submodule is further configured to obtain a processed data set if the proofreading result shows that there is no erroneous data;
[0042] The proofreading submodule is further configured to integrate the erroneous data into an erroneous data set if the proofreading result shows that erroneous data exists, and to feed back the erroneous data set to the data cleaning submodule.
[0043] Optionally, the decision module includes a result output submodule, a priority setting submodule and a single chip microcomputer control submodule;
[0044] The result output submodule is used to input the processed data set into the opening and closing window decision model to obtain the opening and closing window decision result;
[0045] The priority setting submodule is used to set the priority of the user command before the window opening and closing decision result;
[0046] The single-chip microcomputer control submodule is used to feed back the window opening and closing decision result to the single-chip microcomputer, and control the window control actuator through the single-chip microcomputer to realize the opening and closing control of the window.
[0047] In addition, to achieve the above object, the present invention also proposes an intelligent window opening and closing method, which comprises the following steps:
[0048] Collecting indoor and outdoor environmental information, and integrating the indoor and outdoor environmental information to obtain an environmental data set;
[0049] Performing data preprocessing on the environmental data set to obtain a processed data set;
[0050] Constructing a decision tree, and embedding a target feedforward neural network model in the nodes of the decision tree to generate a switch window decision model;
[0051] The processed data set is input into the window opening and closing decision model to obtain the window opening and closing decision result, and the window opening and closing decision result is transmitted to the single-chip microcomputer so that the single-chip microcomputer controls the opening and closing of the window.
[0052] The present invention collects indoor and outdoor environmental information, integrates the indoor and outdoor environmental information, obtains an environmental data set; performs data preprocessing on the environmental data set to obtain a processed data set; constructs a decision tree, and embeds a target feedforward neural network model in the nodes of the decision tree to generate a window switch decision model; inputs the processed data set into the window switch decision model to obtain a window switch decision result, and transmits the window switch decision result to a single-chip microcomputer, so that the single-chip microcomputer controls the opening and closing of the window. Since the present invention constructs a decision tree, embeds the nodes of the decision tree into a target feedforward neural network model, generates a window switch decision model, and then inputs the processed data set into the window switch decision model to obtain a window switch decision result, and transmits the window switch decision result to the single-chip microcomputer to control the opening and closing of the window, compared with the prior art, the present invention obtains the window switch decision result through the window switch decision model, and realizes the opening and closing control of the window through the single-chip microcomputer, realizes the intelligent regulation of the window switch according to the indoor and outdoor environment, and thus improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a structural block diagram of the first embodiment of the intelligent window opening and closing system of the present invention;
[0054] Figure 2 It is a structural block diagram of a second embodiment of the intelligent window opening and closing system of the present invention;
[0055] Figure 3 It is a structural block diagram of a third embodiment of the intelligent window opening and closing system of the present invention;
[0056] Figure 4 Schematic diagram of the flow chart of the first embodiment of the intelligent window opening and closing method of the present invention.
[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0061] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0062] Reference Figure 1 , Figure 1 It is a structural block diagram of the first embodiment of the intelligent window opening and closing system of the present invention.
[0063] like Figure 1 As shown, the intelligent window opening and closing system includes: a data acquisition module 100 , a data processing module 200 , a model building module 300 and a decision module 400 .
[0064] It should be noted that the system provided in this embodiment can be applied in the scenario of intelligent control of windows. Here, the above-mentioned intelligent window opening and closing system (hereinafter referred to as the system) is used to specifically describe this embodiment and the following embodiments.
[0065] In this embodiment, the data acquisition module 100 is used to collect indoor and outdoor environmental information, and integrate the indoor and outdoor environmental information to obtain an environmental data set.
[0066] It should be noted that the data acquisition module includes: a light sensor, a temperature sensor, a humidity sensor, a camera submodule, a calculation submodule and an integration submodule.
[0067] It needs to be explained that the light sensor is used to detect indoor and outdoor light levels; the temperature sensor is used to detect indoor temperature; the humidity sensor is used to detect indoor humidity; the camera submodule is used to obtain outdoor weather information; the data set generation submodule is used to generate an indoor data set based on the indoor and outdoor light levels, the indoor temperature and the indoor humidity; the integration submodule is used to add the outdoor weather information to the indoor data set to generate an environmental data set.
[0068] Furthermore, in order to ensure the reliability of the environmental data set, the data set generation submodule includes: a data acquisition unit, a correlation acquisition unit and a data set generation unit.
[0069] A data acquisition unit is used to acquire the indoor and outdoor light levels, the indoor temperature and the indoor humidity; a correlation acquisition unit is used to acquire the correlation between the indoor and outdoor light levels, the indoor temperature and the indoor humidity; and a data set generation unit is used to generate an indoor data set based on the correlation and the indoor and outdoor light levels, the indoor temperature and the indoor humidity.
[0070] The data processing module 200 is used to perform data preprocessing on the environmental data set to obtain a processed data set.
[0071] It is understandable that the data preprocessing mentioned above can be data cleaning of the environmental data set, removing missing values in the environmental data set, and improving the accuracy of subsequent window opening and closing decision results.
[0072] The model building module 300 is used to build a decision tree and embed a target feedforward neural network model in the nodes of the decision tree to generate a switch window decision model.
[0073] It should be noted that the model construction module 300 includes a decision tree optimization submodule 301 , a neural network construction submodule 302 and an embedding submodule 303 .
[0074] The decision tree optimization submodule 301 is used to construct a decision tree and optimize the nodes of the decision tree based on the processed data set to obtain an optimized decision tree.
[0075] The neural network construction submodule 302 is used to construct a convolutional network model and a feedforward neural network model, and train the feedforward neural network model through the convolutional network model to generate a target feedforward neural network model.
[0076] The embedding submodule 303 is used to embed the target feedforward neural network model in the nodes of the optimized decision tree to generate a switch window decision model.
[0077] The decision module 400 is used to input the processed data set into the window opening and closing decision model to obtain the window opening and closing decision result, and transmit the window opening and closing decision result to the single-chip microcomputer so that the single-chip microcomputer controls the opening and closing of the window.
[0078] It should be noted that the decision module 400 includes a result output submodule 401 , a priority setting submodule 402 and a single chip microcomputer control submodule 403 .
[0079] The result output submodule 401 is used to input the processed data set into the opening and closing window decision model to obtain the opening and closing window decision result.
[0080] The priority setting submodule 402 is used to set the priority of the user command before the window opening and closing decision result.
[0081] The single chip microcomputer control submodule 403 is used to feed back the window opening and closing decision result to the single chip microcomputer, and control the window control actuator through the single chip microcomputer to realize the opening and closing control of the window.
[0082] In the above system of this embodiment, the data acquisition module 100 is used to collect indoor and outdoor environmental information, and integrate the indoor and outdoor environmental information to obtain an environmental data set; the data processing module 200 is used to perform data preprocessing on the environmental data set to obtain a processed data set; the model construction module 300 is used to construct a decision tree, and embed the target feedforward neural network model in the nodes of the decision tree to generate a window opening and closing decision model; the decision module 400 is used to input the processed data set into the window opening and closing decision model to obtain a window opening and closing decision result, and transmit the window opening and closing decision result to the single-chip microcomputer so that the single-chip microcomputer controls the opening and closing of the window. Since this embodiment is to generate a window opening and closing decision model by constructing a decision tree, embedding the nodes of the decision tree into the target feedforward neural network model, and then inputting the processed data set into the window opening and closing decision model to obtain the window opening and closing decision result, and controlling the opening and closing of the window by transmitting the window opening and closing decision result to the single-chip microcomputer, compared with the prior art, the present invention obtains the window opening and closing decision result through the window opening and closing decision model, and realizes the control of the opening and closing of the window through the single-chip microcomputer, realizing the intelligent regulation of the window opening and closing according to the indoor and outdoor environment, thereby improving the user experience.
[0083] Reference Figure 2 , Figure 2 It is a structural block diagram of the second embodiment of the intelligent window opening and closing system of the present invention.
[0084] Furthermore, in order to further improve the reliability of the window switching decision model, the decision tree optimization submodule 301 in the model construction module 300 in the intelligent window switching system in this embodiment includes a structure construction unit 311 and a structure optimization unit 321, and the neural network construction submodule 302 in the intelligent window switching system includes a historical data acquisition unit 312, a model construction unit 322, a first training unit 332, a second training unit 342 and a third training unit 352.
[0085] It should be noted that the structure building unit 311 is used to build a decision tree.
[0086] The structure optimization unit 321 is used to construct different feature subspaces of the data of the decision tree through the ID3 algorithm and the processed data set to obtain a processed decision tree.
[0087] It should be understood that a decision tree is constructed. The nodes of the decision tree will correspond to different feature subspaces of the data, and each node is responsible for modeling this subspace. This can be achieved by some standard decision tree algorithms, such as ID3, C4.5 or CART. This embodiment and the following embodiments are described by taking the ID3 algorithm as an example.
[0088] It should be noted that there are connections between the nodes of the decision tree, and these connections represent the paths of data flow. The output of each node will be passed to the next node based on the conditions of the decision tree. This connection method forms the structure of the decision tree.
[0089] In a specific implementation, the structure optimization unit 321 is further used to prune redundant decision tree structures in the processed decision tree to generate the optimized decision tree.
[0090] The historical data acquisition unit 312 is used to acquire historical indoor and outdoor environment data sets.
[0091] The model building unit 322 is used to build a convolutional network model and a feedforward neural network model.
[0092] The first training unit 332 is used to train the convolutional network model using the historical indoor and outdoor environment dataset to obtain the output probability distribution of the convolutional network model, and use the output probability distribution as a soft label of the teacher model.
[0093] The second training unit 342 is used to calculate the loss between the feedforward neural network model and the teacher model soft label based on the cross entropy function to obtain a calculation result.
[0094] The third training unit 352 trains the feedforward neural network model based on the calculation result to generate the target feedforward neural network model.
[0095] In the specific implementation, prepare a dataset for training the convolutional neural network and design a suitable convolutional neural network structure. Use the dataset to train the convolutional neural network. Ensure that the model achieves high performance and accuracy on the task. Use the trained convolutional neural network to infer the training set and possible validation set to obtain the prediction results (Softmax output) of the convolutional neural network on the data. These prediction results are regarded as soft labels of the convolutional neural network. Prepare the same dataset and design a feedforward neural network as a feedforward neural network.
[0096] Typically, feedforward neural networks may be smaller in size and have fewer parameters to facilitate rapid training and deployment of the model. Use the soft labels of the convolutional neural network (i.e., the prediction results of the convolutional neural network) as the target labels of the feedforward neural network instead of using the original true labels. When training the feedforward neural network, optimize it to approximate the prediction results of the convolutional neural network. The feedforward neural network is trained to learn the knowledge of the convolutional neural network by minimizing the difference between the prediction results of the feedforward neural network and the prediction results of the convolutional neural network (usually using the cross entropy loss function, etc.).
[0097] The decision tree optimization submodule 301 in the model construction module 300 in the above system of this embodiment includes a structure construction unit 311 and a structure optimization unit 321, and the neural network construction submodule 302 in the intelligent switch window system includes a historical data acquisition unit 312, a model construction unit 322, a first training unit 332, a second training unit 342 and a third training unit 352. The structure construction unit 311 is used to construct a decision tree; the structure optimization unit 321 is used to construct different feature subspaces of the data of the decision tree through the ID3 algorithm and the processed data set to obtain a processed decision tree; and is also used to prune redundant decision tree structures in the processed decision tree to generate the optimized decision tree. The historical data acquisition unit 312 is used to acquire historical indoor and outdoor environment data sets; the model construction unit 322 is used to construct a convolutional network model and a feedforward neural network model; the first training unit 332 is used to train the convolutional network model through the historical indoor and outdoor environment data sets to obtain the output probability distribution of the convolutional network model, and use the output probability distribution as the soft label of the teacher model; the second training unit 342 is used to calculate the loss between the feedforward neural network model and the soft label of the teacher model based on the cross entropy function to obtain the calculation result; the third training unit 352 is used to train the feedforward neural network model based on the calculation result to generate the target feedforward neural network model. Compared with the prior art, this embodiment utilizes the real-time performance of the feedforward neural network, calculates the loss between the feedforward neural network model and the soft label of the teacher model based on the cross entropy function, trains the feedforward neural network model according to the calculation result, generates the target feedforward neural network model, can learn and adapt to changes in the environment, and further improves the reliability of the window opening and closing decision model.
[0098] refer to Figure 3 , Figure 3 It is a structural block diagram of the third embodiment of the intelligent window opening and closing system of the present invention.
[0099] In order to ensure the reliability of the processed data set and improve the accuracy of subsequent window opening and closing decision results, the data processing module 200 in the intelligent window opening and closing system described in this embodiment includes a data cleaning submodule 201, a normalization submodule 202 and a proofreading submodule 203.
[0100] The data cleaning submodule 201 is used to clean the missing values of the environmental data set and fill the missing values through a regression analysis method to obtain a cleaned data set.
[0101] The normalization submodule 202 is used to normalize the cleaned data set to obtain a normalized data set.
[0102] The proofreading submodule 203 is used to proofread the normalized data set to obtain a processed data set.
[0103] Furthermore, in order to prevent the existence of erroneous data after data cleaning, thereby affecting the accuracy of subsequent window opening and closing decision results, the proofreading submodule is also used to construct a data verification framework with time as a constraint, and proofread the normalized data set through the data verification framework to obtain a proofreading result; if the proofreading result is that there is no erroneous data, a processed data set is obtained; if the proofreading result is that there is erroneous data, the erroneous data is integrated into an erroneous data set, and the erroneous data set is fed back to the data cleaning submodule 201.
[0104] The data processing module 200 in the above system of this embodiment includes a data cleaning submodule 201, a normalization submodule 202 and a proofreading submodule 203. The data cleaning submodule 201 is used to clean the missing data values of the environmental data set, and fill the missing values through the regression analysis method to obtain a cleaned data set; the normalization submodule 202 is used to normalize the cleaned data set to obtain a normalized data set; the proofreading submodule 203 is used to proofread the normalized data set to obtain a processed data set. In addition, the proofreading submodule 203 is also used to construct a data verification framework with time as a constraint, and proofread the normalized data set through the data verification framework to obtain a proofreading result; if the proofreading result is that there is no erroneous data, then a processed data set is obtained; if the proofreading result is that there is erroneous data, the erroneous data is integrated into an erroneous data set, and the erroneous data set is fed back to the data cleaning submodule 201. Compared with the prior art, this embodiment ensures the reliability of the processed data set and improves the accuracy of subsequent window opening and closing decision results by cleaning missing values, normalizing and proofreading the data set in sequence.
[0105] In addition, reference Figure 4 , Figure 4This is a flow chart of a first embodiment of the intelligent window opening and closing method of the present invention. The intelligent window opening and closing method comprises the following steps:
[0106] Step S10: Collect indoor and outdoor environmental information, and integrate the indoor and outdoor environmental information to obtain an environmental data set.
[0107] Step S20: preprocessing the environmental data set to obtain a processed data set.
[0108] Step S30: construct a decision tree, and embed the target feedforward neural network model into the nodes of the decision tree to generate a switch window decision model.
[0109] Step S40: inputting the processed data set into the window opening and closing decision model to obtain the window opening and closing decision result, and transmitting the window opening and closing decision result to the single-chip microcomputer so that the single-chip microcomputer controls the opening and closing of the window.
[0110] This embodiment collects indoor and outdoor environmental information and integrates the indoor and outdoor environmental information to obtain an environmental data set; performs data preprocessing on the environmental data set to obtain a processed data set; constructs a decision tree, and embeds a target feedforward neural network model in the nodes of the decision tree to generate a window opening and closing decision model; inputs the processed data set into the window opening and closing decision model to obtain a window opening and closing decision result, and transmits the window opening and closing decision result to a single-chip microcomputer so that the single-chip microcomputer controls the opening and closing of the window. Since this embodiment generates a window opening and closing decision model by constructing a decision tree, embedding the nodes of the decision tree into a target feedforward neural network model, and then inputs the processed data set into the window opening and closing decision model to obtain a window opening and closing decision result, and controls the opening and closing of the window by transmitting the window opening and closing decision result to a single-chip microcomputer, compared with the prior art, this embodiment obtains the window opening and closing decision result through the window opening and closing decision model, and realizes the opening and closing control of the window through a single-chip microcomputer, thereby realizing intelligent control of the window opening and closing according to the indoor and outdoor environment, thereby improving the user experience.
[0111] Other embodiments or specific implementation methods of the intelligent window opening and closing method of the present invention can refer to the above-mentioned system embodiments, which will not be described in detail here.
[0112] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0113] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0115] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An intelligent window opening and closing system, characterized in that: The intelligent switch window system includes: a data acquisition module, a data processing module, a model building module and a decision module; The data acquisition module is used to collect indoor and outdoor environmental information and integrate the indoor and outdoor environmental information to obtain an environmental data set; The data processing module is used to perform data preprocessing on the environmental data set to obtain a processed data set; The model building module is used to build a decision tree and embed a target feedforward neural network model in the nodes of the decision tree to generate a switch window decision model; The decision module is used to input the processed data set into the window opening and closing decision model to obtain the window opening and closing decision result, and transmit the window opening and closing decision result to the single chip microcomputer so that the single chip microcomputer controls the opening and closing of the window; Wherein, the model construction module includes a decision tree optimization submodule, a neural network construction submodule and an embedding submodule; The decision tree optimization submodule is used to construct a decision tree and optimize the nodes of the decision tree based on the processed data set to obtain an optimized decision tree; The neural network construction submodule is used to construct a convolutional network model and a feedforward neural network model, and train the feedforward neural network model through the convolutional network model to generate a target feedforward neural network model; The embedding submodule is used to embed the target feedforward neural network model in the nodes of the optimized decision tree to generate a switch window decision model; Wherein, the decision tree optimization submodule includes a structure construction unit and a structure optimization unit; The structure building unit is used to build a decision tree; The structure optimization unit is used to construct different feature subspaces of the data of the decision tree by using the ID3 algorithm and the processed data set to obtain a processed decision tree; The structure optimization unit is further used to prune redundant decision tree structures in the processed decision tree to generate the optimized decision tree; Wherein, the neural network construction submodule includes a historical data acquisition unit, a model construction unit, a first training unit, a second training unit and a third training unit; The historical data acquisition unit is used to acquire historical indoor and outdoor environment data sets; The model building unit is used to build a convolutional network model and a feedforward neural network model; The first training unit is used to train the convolutional network model using the historical indoor and outdoor environment data set to obtain an output probability distribution of the convolutional network model, and use the output probability distribution as a soft label of a teacher model; The second training unit is used to calculate the loss between the feedforward neural network model and the teacher model soft label based on the cross entropy function to obtain a calculation result; The third training unit is used to train the feedforward neural network model based on the calculation result to generate the target feedforward neural network model.
2. The intelligent window opening and closing system according to claim 1, characterized in that: The data acquisition module includes: a light sensor, a temperature sensor, a humidity sensor, a camera submodule, a calculation submodule and an integration submodule; The light sensor is used to detect indoor and outdoor light levels; The temperature sensor is used to detect the indoor temperature; The humidity sensor is used to detect indoor humidity; The camera submodule is used to obtain outdoor weather information; The data set generation submodule is used to generate an indoor data set based on the indoor and outdoor light levels, the indoor temperature and the indoor humidity; The integration submodule is used to add the outdoor weather information to the indoor data set to generate an environmental data set.
3. The intelligent window opening and closing system according to claim 2, characterized in that: The data set generation submodule includes: a data acquisition unit, a correlation acquisition unit, and a data set generation unit; The data acquisition unit is used to acquire the indoor and outdoor light levels, the indoor temperature and the indoor humidity; The correlation acquisition unit is used to acquire the correlation between the indoor and outdoor light levels, the indoor temperature and the indoor humidity; The data set generating unit is configured to generate an indoor data set based on the correlation degree and the indoor and outdoor light levels, the indoor temperature and the indoor humidity.
4. The intelligent window opening and closing system according to claim 1, characterized in that: The data processing module includes a data cleaning submodule, a normalization submodule and a proofreading submodule; The data cleaning submodule is used to clean the missing values of the environmental data set and fill the missing values through a regression analysis method to obtain a cleaned data set; The normalization submodule is used to normalize the cleaned data set to obtain a normalized data set; The proofreading submodule is used to proofread the normalized data set to obtain a processed data set.
5. The intelligent window opening and closing system according to claim 4, characterized in that: The proofreading submodule is further used to construct a data verification framework with time as a constraint, and to proofread the normalized data set through the data verification framework to obtain a proofreading result; The proofreading submodule is further configured to obtain a processed data set if the proofreading result shows that there is no erroneous data; The proofreading submodule is further configured to integrate the erroneous data into an erroneous data set if the proofreading result shows that erroneous data exists, and feed the erroneous data set back to the data cleaning submodule.
6. The intelligent window opening and closing system according to claim 1, characterized in that: The decision module includes a result output submodule, a priority setting submodule and a single chip microcomputer control submodule; The result output submodule is used to input the processed data set into the opening and closing window decision model to obtain the opening and closing window decision result; The priority setting submodule is used to set the priority of the user command before the window opening and closing decision result; The single-chip microcomputer control submodule is used to feed back the window opening and closing decision result to the single-chip microcomputer, and control the window control actuator through the single-chip microcomputer to realize the opening and closing control of the window.
7. An intelligent window opening and closing method, characterized in that: The method comprises the following steps: Collecting indoor and outdoor environmental information, and integrating the indoor and outdoor environmental information to obtain an environmental data set; Performing data preprocessing on the environmental data set to obtain a processed data set; Constructing a decision tree, and embedding a target feedforward neural network model in the nodes of the decision tree to generate a switch window decision model; Inputting the processed data set into the window opening and closing decision model to obtain a window opening and closing decision result, and transmitting the window opening and closing decision result to the single chip microcomputer so that the single chip microcomputer controls the opening and closing of the window; The step of constructing a decision tree and embedding a target feedforward neural network model in the nodes of the decision tree to generate a switch window decision model includes: Constructing a decision tree, and optimizing the nodes of the decision tree based on the processed data set to obtain an optimized decision tree; Constructing a convolutional network model and a feedforward neural network model, training the feedforward neural network model through the convolutional network model, and generating a target feedforward neural network model; Embedding the target feedforward neural network model in the nodes of the optimization decision tree to generate a switch window decision model; The step of constructing a decision tree and optimizing the nodes of the decision tree based on the processed data set to obtain an optimized decision tree includes: Build a decision tree; Constructing different feature subspaces of the decision tree data using the ID3 algorithm and the processed data set to obtain a processed decision tree; Pruning redundant decision tree structures in the processed decision tree to generate the optimized decision tree; The steps of constructing a convolutional network model and a feedforward neural network model, training the feedforward neural network model through the convolutional network model, and generating a target feedforward neural network model include: Obtain historical indoor and outdoor environment datasets; Construct convolutional network models and feedforward neural network models; The convolutional network model is trained by using the historical indoor and outdoor environment data set to obtain an output probability distribution of the convolutional network model, and the output probability distribution is used as a soft label of the teacher model; Calculate the loss between the feedforward neural network model and the teacher model soft label based on the cross entropy function to obtain a calculation result; The feedforward neural network model is trained based on the calculation result to generate the target feedforward neural network model.
Citation Information
Patent Citations
Intelligent automatic window opening and closing system
CN107724857A
Window control method and device, and electronic equipment based on decision-making tree prediction model
CN110409955A
Credit card consumption staging decision-making method and device
CN113313578A
Intelligent window system based on neural network algorithm regulation and control and regulation method
CN113359486A
