System for regulating and controlling opening degree of electric control window and regulating and controlling method thereof

Through the data acquisition module and the BP neural network model, the opening and closing of the electronically controlled windows is dynamically adjusted, which solves the problem that the existing technology cannot adjust the windows according to the air quality, and achieves effective improvement of indoor air quality. The BP neural network model is used to calculate the window opening. solution to provide efficient air purification effects.

CN118622115APending Publication Date: 2024-09-10XIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806132.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing electronically controlled window system cannot dynamically adjust the opening and closing of windows according to indoor and outdoor air quality conditions, cannot effectively improve indoor air quality, and lacks a system for monitoring indoor and outdoor pollutant concentration, temperature, humidity, wind speed and other factors.

Method used

Use the data acquisition module to collect indoor and outdoor CO, formaldehyde, PM2.5, CO2, temperature, wind direction and other data, use the pre-trained BP neural network model to calculate the window opening plan, and control the opening and closing angle and duration of the electronically controlled windows through wireless transmission , thereby improving indoor ventilation conditions.

Benefits of technology

By dynamically adjusting the opening and closing of windows, indoor pollutant concentrations can be effectively reduced and air quality improved. The BP neural network model has good generalization and optimization capabilities, providing efficient window opening solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118622115A
    Figure CN118622115A
Patent Text Reader

Abstract

The invention discloses a system for regulating and controlling the opening degree of an electric control window, and the system comprises a data collection module, the data collection module is connected with an analog-to-digital converter in a wireless transmission manner, the analog-to-digital converter is connected with a single-chip microcomputer in a wireless transmission manner, and the single-chip microcomputer is connected with an upper computer in a wireless transmission manner. The upper computer is connected with a user terminal in a wireless transmission mode, the single-chip microcomputer is further connected with a driving motor of the electric control window in a wireless transmission mode, and an electric control window regulation and control model is carried in the upper computer. According to the system for regulating and controlling the opening degree of the electric control window, indoor and outdoor CO, formaldehyde, PM2.5, CO2, temperature and wind direction data are collected through the data acquisition module, then a window opening scheme is obtained through the electric control window regulation and control model carried in the upper computer, opening and closing of the window are controlled according to the window opening scheme, and therefore the indoor ventilation condition is improved. The invention further discloses a regulation and control method for regulating and controlling the opening degree of the electric control window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric-controlled window control systems, and relates to a system for regulating the opening of an electric-controlled window; the present invention also relates to a regulating method for regulating the opening of an electric-controlled window. Background Art

[0002] As people pay more and more attention to indoor and outdoor air quality, there is an urgent need for solutions to improve air quality. However, traditional ventilation through windows and closed doors and windows cannot completely solve the air quality problem. Although ventilation through windows can reduce the concentration of indoor pollutants, it is easy for outdoor pollutants to enter the room. Although closed doors and windows can prevent outdoor pollutants from entering, it will affect indoor air quality and cause harmful substances such as bacteria and viruses to exceed the standard.

[0003] The electric windows on the market can only be opened and closed by remote control, but cannot provide corresponding window opening solutions according to the indoor air quality, thereby improving the indoor air quality. The mode is single. There is no system on the market that can monitor the indoor and outdoor pollutant concentrations, outdoor temperature, humidity, wind speed and other elements, and adjust the opening and closing angles and time of the windows of the whole house, so that the windows can improve the indoor air quality through ventilation. Summary of the invention

[0004] The purpose of the present invention is to provide a system for regulating the opening of electric-controlled windows, which collects data on indoor and outdoor CO, formaldehyde, PM2.5, CO2, temperature, and wind direction through a data acquisition module, and then uses the electric-controlled window control model carried in the host computer to obtain a window opening plan, and controls the opening and closing of windows according to the window opening plan, thereby improving indoor ventilation conditions.

[0005] Another object of the present invention is to provide a control method for controlling the opening of an electrically-controlled window.

[0006] The technical solution adopted by the present invention is a system for regulating the opening of an electric-controlled window, including a data acquisition module, the data acquisition module is connected to an analog-to-digital converter via wireless transmission, the analog-to-digital converter is connected to a single-chip microcomputer via wireless transmission, the single-chip microcomputer is connected to a host computer via wireless transmission, the host computer is connected to a user terminal via wireless transmission, the single-chip microcomputer is also connected to a driving motor of the electric-controlled window via wireless transmission, and the host computer is equipped with an electric-controlled window control model.

[0007] The present invention is also characterized in that:

[0008] The data acquisition module includes a temperature sensor, a humidity sensor, and a particle sensor installed on the outdoor side of the window frame;

[0009] And install indoor temperature sensor a, humidity sensor a, particle sensor a, CO gas sensor, SO2 sensor and CO2 gas sensor;

[0010] And wind speed sensors and wind direction sensors installed on the outside of the window air inlet.

[0011] The second technical solution adopted by the present invention is: a control method for controlling the opening of an electric-controlled window, using the system for controlling the opening of an electric-controlled window as described above, and is specifically implemented according to the following steps:

[0012] Step 1, collecting data physical quantity information through a data acquisition module;

[0013] Step 2, converting the physical quantity collected in step 1 into a voltage signal through an analog-to-digital converter and transmitting it to the single-chip microcomputer for preliminary data simplification before transmitting the data to the host computer;

[0014] Step 3, the preprocessed data is transmitted to the host computer and input into the electric window control model. The electric window control model calculates the opening and closing angle and duration corresponding to the object that needs to open the window according to the input data, and then transmits the signal to the single-chip microcomputer. The single-chip microcomputer adjusts the received signal into a voltage signal, and transmits it to the corresponding electric window drive motor according to the object to be opened, the opening and closing angle and the duration to open the window for ventilation as required.

[0015] The second technical solution of the present invention is also characterized in that:

[0016] Step 1 is specifically as follows: outdoor temperature, humidity, PM2.5 concentration and NO concentration are collected respectively through outdoor temperature sensor, humidity sensor and particulate matter sensor; indoor PM2.5 concentration, CO concentration, SO2 concentration, CO2 concentration and NO concentration are collected respectively through indoor temperature sensor a, humidity sensor a, particulate matter sensor a, CO gas sensor, SO2 sensor and CO2 gas sensor; wind speed and wind direction are collected respectively through wind speed sensor and wind direction sensor.

[0017] The electric window control model is a pre-trained BP neural network model.

[0018] The BP neural network model includes an input layer, two hidden layers, and an output layer connected in sequence. The input layer consists of 11 neurons, the first hidden layer has 20 neurons, the second hidden layer has 10 neurons, and the output layer contains only 3 neurons; the activation function of the hidden layer uses the ReLU function, and the output layer uses the Sigmoid activation function to output the corresponding window object, opening and closing angle, and duration.

[0019] The process of pre-training the BP neural network model is:

[0020] Step 3.1, obtain the data set and divide it into a training set and a test set;

[0021] Step 3.2, using the training set in 3.1 to train the BP neural network model to obtain a trained BP neural network model;

[0022] Step 3.3, use the test set data to input the BP neural network model trained in step 3.2 to obtain the model prediction output, and output the window opening scheme under different pollutant concentrations, that is, output the corresponding window opening object, opening angle and duration;

[0023] Step 3.4, simulating the window opening scheme output by the prediction obtained in step 3.3 in Fluent to obtain the concentration distribution results corresponding to each indoor sensor after applying the window opening scheme;

[0024] Step 3.5, calculate the average of the squares of the differences between the concentration distribution results corresponding to each sensor in step 3.4 and the theoretical concentration to obtain the mean square error. If the mean square error is within the preset error range, stop training to obtain the final BP neural network model; if the mean square error is not within the preset error range, return to step 3.2 to continue training until the mean square error is within the preset error range.

[0025] Step 3.2 During training, the weight W of the BP neural network model is initialized to the standard normal distribution N(0,1), that is, W~N(0,1), and the bias b is initialized to b=0.01. The gradient descent algorithm is used to iteratively adjust the network weight W and bias to minimize the loss function, that is, the mean square error MSE. Among them, the initial value of the learning rate η is 0.01, the batch size m is set to 64, the momentum parameter β is set to 0.9, the number of iterations T is set to 100 to 200 iterations, the L2 regularization parameter λ is set to λ=0.001, and the learning rate decay rate can be set to decay_rate=0.1, which decays once every steps_size=10 epochs; the BP neural network model continuously updates and adjusts the hyperparameters through data input, so that the model is continuously optimized and meets expectations.

[0026] A threshold is set for each sensor in the microcontroller. If the data measured by the sensor is within the set threshold range, the microcontroller will not transmit the data to the host computer, that is, there is no need to change the window switch data. If the data measured by any sensor is not within the set threshold range, the microcontroller will transmit the data to the host computer.

[0027] The beneficial effects of the present invention are:

[0028] The present invention collects data on indoor and outdoor CO, formaldehyde, PM2.5, CO2, temperature, and wind direction through a data acquisition module, and then uses an electric window control model carried in a host computer to obtain a window opening plan, and controls the opening and closing of windows according to the window opening plan, thereby improving indoor ventilation conditions.

[0029] The electric window control model of the present invention adopts a BP neural network model to learn the complex relationship between input and output through training data; the BP neural network can capture and model the nonlinear relationship between input and output, and is very powerful in dealing with complex real-world problems; once the training is completed, the neural network can predict new data that has not been seen, and has good generalization ability; weight distribution can be used to ignore inputs that have little effect on the prediction results, which helps to efficiently process input data during the model establishment period, while continuously optimizing the model to obtain the optimal window opening solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of the structure of the system for regulating the opening of an electric-controlled window according to the present invention;

[0031] Figure 2 is a graph showing the relationship between indoor CO concentration and time in Example 6 of the present invention;

[0032] Figure 3 is a graph showing the relationship between the mean indoor PM2.5 concentration and time in Example 6 of the present invention;

[0033] Figure 4 4 is a graph showing the relationship between indoor and outdoor pollutants and window opening in Example 6 of the present invention.

[0034] In the figure: 1. analog-to-digital converter, 2. single-chip microcomputer, 3. host computer, 4. user terminal, 5. drive motor, 6. temperature sensor, 7. humidity sensor, 8. particle sensor, 9. temperature sensor a, 10. humidity sensor a, 11. particle sensor a, 12. CO gas sensor, 13. SO2 sensor, 14. CO2 gas sensor, 15. wind speed sensor, 16. wind direction sensor. DETAILED DESCRIPTION

[0035] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0036] Example 1

[0037] The system for regulating the opening of an electrically controlled window of the present invention has a structure as follows: Figure 1As shown, it includes a data acquisition module, the data acquisition module is connected to an analog-to-digital converter 1 through wireless transmission, the analog-to-digital converter is connected to a single-chip computer 2 through wireless transmission, the single-chip computer 2 is connected to a host computer 3 through wireless transmission, the host computer 3 is connected to a user terminal 4 through wireless transmission, the single-chip computer 2 is also connected to a driving motor 5 of an electric-controlled window through wireless transmission, and the host computer 3 is equipped with an electric-controlled window control model.

[0038] The data acquisition module includes a temperature sensor 6, a humidity sensor 7 and a particle sensor 8 installed on the outdoor side of the window frame;

[0039] And a temperature sensor a9, a humidity sensor a10, a particle sensor a11, a CO gas sensor 12, a SO2 sensor 13 and a CO2 gas sensor 14 are installed indoors;

[0040] And a wind speed sensor 15 and a wind direction sensor 16 installed on the outside of the window air inlet.

[0041] Example 2

[0042] On the basis of Example 1, the system for regulating the opening of an electrically controlled window of the present invention is applied to windows that can be electrically controlled to open and close, such as the 3354 electric window of Hebei Hanjin Door Industry Co., Ltd.

[0043] The temperature sensor 6 and the temperature sensor a9 of the present invention adopt the Xingyi CWDZ11A temperature transmitter.

[0044] The humidity sensor 7 and humidity sensor a10 of the present invention are temperature and humidity sensors of model S1905B.

[0045] The particle sensor 8 and the particle sensor a11 of the present invention are ZH10-VHT laser dust all-in-one sensors.

[0046] The CO gas sensor of the present invention adopts an electrochemical carbon monoxide gas sensor with a model number of ME2-CO.

[0047] The CO2 gas sensor of the present invention adopts a carbon dioxide gas sensor of model MH-Z19D.

[0048] The SO2 sensor of the present invention adopts a sulfur dioxide sensor with a model of ME4-SO2.

[0049] The wind direction sensor of the present invention adopts a wind direction sensor of model PHWDZ-1.

[0050] The wind speed sensor 15 of the present invention adopts a micro impeller wind speed transmitter of model XM8588B. The wireless transmission mode of the present invention is Bluetooth transmission or wireless WIFI transmission.

[0051] The host computer 3 of the present invention is a system server.

[0052] Example 3

[0053] The control method for controlling the opening of an electric-controlled window of the present invention adopts the system for controlling the opening of an electric-controlled window in Example 1 and is specifically implemented according to the following steps:

[0054] Step 1, collecting data physical quantity information through a data acquisition module;

[0055] Step 2, converting the physical quantity collected in step 1 into a voltage signal through analog-to-digital converter 1 and transmitting it to single-chip microcomputer 2. The single-chip microcomputer performs preliminary data simplification and then transmits the data to the host computer;

[0056] Step 3, the pre-processed data is transmitted to the upper computer 3 and input into the electric window control model. The electric window control model calculates the opening and closing angle and duration corresponding to the object to be opened according to the input data, and then transmits the signal to the single-chip microcomputer 2. The single-chip microcomputer 2 adjusts the received signal into a voltage signal, and transmits it to the corresponding electric window drive motor 5 according to the object to be opened, the opening and closing angle and the duration to open the window for ventilation as required.

[0057] Step 1 is specifically as follows: the outdoor temperature, humidity, PM2.5 concentration and NO concentration are collected respectively through the outdoor temperature sensor 6, humidity sensor 7 and particulate matter sensor 8; the indoor PM2.5 concentration, CO concentration, SO2 concentration and CO2 concentration and NO concentration are collected respectively through the indoor temperature sensor a9, humidity sensor a10, particulate matter sensor a11, CO gas sensor 12, SO2 sensor 13 and CO2 gas sensor 14; the wind speed and wind direction are collected respectively through the wind speed sensor 15 and wind direction sensor 16.

[0058] The electric window control model is a pre-trained BP neural network model.

[0059] The BP neural network model includes an input layer, two hidden layers, and an output layer connected in sequence. The input layer consists of 11 neurons, the first hidden layer has 20 neurons, the second hidden layer has 10 neurons, and the output layer contains only 3 neurons; the activation function of the hidden layer uses the ReLU function, and the output layer uses the Sigmoid activation function to output the corresponding window object, opening and closing angle, and duration.

[0060] The process of pre-training the BP neural network model is:

[0061] Step 3.1, obtain the data set and divide it into a training set and a test set;

[0062] Step 3.2, using the training set in 3.1 to train the BP neural network model to obtain a trained BP neural network model;

[0063] Step 3.3, use the test set data to input the BP neural network model trained in step 3.2 to obtain the model prediction output, and output the window opening scheme under different pollutant concentrations, that is, output the corresponding window opening object, opening angle and duration;

[0064] Step 3.4, simulating the window opening scheme output by the prediction obtained in step 3.3 in Fluent to obtain the concentration distribution results corresponding to each indoor sensor after applying the window opening scheme;

[0065] Step 3.5, calculate the average of the squares of the differences between the concentration distribution results corresponding to each sensor in step 3.4 and the theoretical concentration to obtain the mean square error. If the mean square error is within the preset error range, stop training to obtain the final BP neural network model; if the mean square error is not within the preset error range, return to step 3.2 to continue training until the mean square error is within the preset error range.

[0066] Step 3.2 During training, the weight W of the BP neural network model is initialized to the standard normal distribution N(0,1), that is, W~N(0,1), and the bias b is initialized to b=0.01. The gradient descent algorithm is used to iteratively adjust the network weight W and bias to minimize the loss function, that is, the mean square error MSE. Among them, the initial value of the learning rate η is 0.01, the batch size m is set to 64, the momentum parameter β is set to 0.9, the number of iterations T is set to 100 to 200 iterations, the L2 regularization parameter λ is set to λ=0.001, and the learning rate decay rate can be set to decay_rate=0.1, which decays once every steps_size=10 epochs; the BP neural network model continuously updates and adjusts the hyperparameters through data input, so that the model is continuously optimized and meets expectations.

[0067] Because after the indoor air quality reaches the standard value, the indoor pollutant concentration does not change much in a short period of time. Therefore, a threshold is set for each sensor in the single-chip microcomputer 2. If the data measured by the sensor is within the set threshold range, the single-chip microcomputer 2 will not transmit the data to the host computer 3, that is, there is no need to change the window switch data. If the data measured by any sensor is not within the set threshold range, the single-chip microcomputer 2 will transmit the data to the host computer 3.

[0068] Example 4

[0069] Based on Example 3, the user terminal 4 of the present invention is a terminal that can be remotely controlled, such as a mobile phone, a laptop computer, or a tablet computer. The user can view the indoor pollutant concentration and air quality in real time on the terminal, and can also remotely control the opening and closing of windows on the terminal.

[0070] Example 5

[0071] On the basis of Example 3, when the BP neural network model is trained, the wind speed, temperature, humidity, CO concentration, CO2 concentration, NO concentration, and PM2.5 concentration in different regions and seasons collected from Zhenqi.com, the National Air Quality Index Network, the China Meteorological Administration, and the China Weather Network are used as data sets; all the collected data are processed in turn for outliers, data consistency, and normalization, and finally a valid data set is obtained, and the obtained data set is divided into a training set and a test set in proportion.

[0072] The input layer of the BP neural network model determines the number of hidden layers, the number of neurons in each layer, selects a suitable activation function, and determines the output layer structure; first, the input layer consists of 11 neurons, which matches the feature dimension F of the training set, that is, n in =F=11. For the hidden layer, this project selects two levels, and the first hidden layer has 20 neurons n hid1 = 20, and the second hidden layer has 10 neurons n hid1 =10. The invention relates to allowing the network to learn complex nonlinear relationships while avoiding overfitting. The activation function of the hidden layer uses the ReLU function, whose formula is f(x)=max(0,x), because it can alleviate the gradient vanishing problem when training deep networks; the output layer contains only 3 neurons and uses the Sigmoid activation function; the network weight W is initialized to the standard normal distribution N(0,1), that is, W~N(0,1), which helps to break the symmetry at the beginning of training. The bias b is initialized to a small constant b=0.01 to ensure that the activation function has a suitable output range in the initial stage.

[0073] Then, set the initial weights and biases. Weight initialization: Use the He initialization method to initialize the weights for the ReLU activation function to keep the variance of the activation function unchanged;

[0074]

[0075] Bias initialization: The bias is usually initialized to 0 or a small constant, set to b (l) =0.01.

[0076] Next, when designing the training process of the BP neural network, the classic gradient descent algorithm is used. The goal of this project is to minimize the loss function, namely the mean square error (MSE), by iteratively adjusting the weights and biases of the network. The formula is defined as:

[0077]

[0078] Where N is the number of samples in the training set Y i is the true label of the i-th sample, and Y i1 is the label predicted by the network.

[0079] The core of gradient descent is to calculate the gradient of the loss function with respect to the network parameters, and then update the parameters according to these gradients and the preset learning rate η. (l) and bias b (l) The update rules are as follows:

[0080]

[0081] Among them, the gradient and It is calculated by the back-propagation algorithm, which involves the partial derivatives of the loss function with respect to weights and biases;

[0082] To improve training efficiency and stability, the momentum technique is used to adjust the update direction by considering the exponentially weighted average of the previous gradients, and its momentum parameter β is set to 0.9. This helps reduce oscillations during training and accelerates convergence to the global minimum.

[0083] The initial value of the learning rate η is set to 0.01, which helps to avoid skipping the minimum value and ensure learning efficiency. During the training process, the learning rate is dynamically adjusted by learning rate decay or using an adaptive learning rate algorithm based on the performance of the model on the validation set;

[0084] This patent selects a small gradient descent scheme and sets the batch size m to 64. This batch size provides a good balance between computational efficiency and convergence speed while reducing the high variance problem caused by single sample updates.

[0085] Next, determine the hyperparameters - learning rate, batch size, number of iterations, regularization parameters:

[0086] Learning Rate (η): The initial learning rate is set to η = 0.01. This value is a typical choice that has been verified in practice. It provides a balanced step size for weight updates, which will not cause unstable training due to being too large, nor will it make the training process slow due to being too small;

[0087] Batch Size (m): The batch size is chosen to be m=64. This size is based on a trade-off between computational efficiency and memory usage. Mini-batch gradient descent combines the stability of the full batch with the computational efficiency of stochastic gradient descent;

[0088] Epochs (T): Value and reason: The number of iterations T is set to 100 to 200 iterations. This range allows the network to fully learn the data while avoiding overfitting; the actual number of iterations can be adjusted based on the performance of the model on the validation set;

[0089] Regularization Parameter (λ): The L2 regularization parameter λ is set to λ = 0.001. This value helps control model complexity and prevent overfitting without overly limiting the model's learning ability;

[0090] Momentum (β): The momentum parameter β is set to 0.9. The momentum term helps reduce oscillations during gradient descent and accelerates convergence, especially in deep networks;

[0091] Learning Rate Decay: The learning rate decay rate can be set to decay_rate = 0.1, and decays once every steps_size = 10 epochs. This strategy helps to refine weight updates in the later stages of training and avoid premature convergence to suboptimal solutions.

[0092] Example 6

[0093] Input the trained model with 11 data: outdoor temperature, humidity, PM2.5 concentration, NO concentration, and indoor PM2.5 concentration, CO concentration, SO2 concentration, CO2 concentration, NO concentration, and temperature. Specifically, input the voltage signals corresponding to 11 sensors: outdoor temperature 25mv, outdoor humidity 50mv, PM2.5 concentration 30mv, NO concentration 3mv, and indoor PM2.5 concentration 20mv, CO concentration 3mv, SO2 concentration 0.03mv, CO2 concentration 600mv, NO concentration 0.01mv, and temperature 26mv; the optimal window opening scheme after model calculation is 1 hour of window opening time, 25% of the initial size, and 2 windows. Based on this window opening scheme, simulation is performed in Fluent software. The simulation results are as follows: Figure 2-4 As shown, Figure 2 To simulate the relationship between CO concentration and time when the window is opened 25%, the indoor CO concentration is 20ppm, and the wind speed is 1.5m / s; Figure 3 The relationship between the mean indoor PM2.5 concentration and time changes simulated by Fluent software; Figure 4This is the relationship between indoor and outdoor pollutants and window openings from Fluent simulation software; Figure 2-Figure 4 It can be seen that the window opening scheme predicted by the model of the present invention can effectively purify the indoor air through natural ventilation and reduce the concentration of indoor pollutants.

Claims

1. A system for regulating the opening of an electrically controlled window, characterized in that: The invention comprises a data acquisition module, wherein the data acquisition module is connected to an analog-to-digital converter (1) by means of wireless transmission, the analog-to-digital converter is connected to a single-chip computer (2) by means of wireless transmission, the single-chip computer (2) is connected to a host computer (3) by means of wireless transmission, the host computer (3) is connected to a user terminal (4) by means of wireless transmission, the single-chip computer (2) is also connected to a driving motor (5) of an electric-controlled window by means of wireless transmission, and the host computer (3) is equipped with an electric-controlled window control model.

2. The system for regulating the opening of an electrically controlled window according to claim 1, characterized in that: The data acquisition module comprises a temperature sensor (6), a humidity sensor (7) and a particle sensor (8) installed on the outdoor side of the window frame; and installing a temperature sensor a (9), a humidity sensor a (10), a particle sensor a (11), a CO gas sensor (12), a SO2 sensor (13) and a CO2 gas sensor (14) indoors; And a wind speed sensor (15) and a wind direction sensor (16) are installed on the outside of the window air inlet.

3. A control method for controlling the opening of an electrically controlled window, characterized in that: The system for regulating the opening of an electrically controlled window as claimed in claim 2 is implemented in the following steps: Step 1, collecting data physical quantity information through a data acquisition module; Step 2, converting the physical quantity collected in step 1 into a voltage signal through an analog-to-digital converter (1) and transmitting it to a single-chip microcomputer (2); the single-chip microcomputer performs preliminary data simplification and then transmits the data to a host computer; Step 3, the pre-processed data is transmitted to the upper computer (3) and input into the electric window control model. The electric window control model calculates the opening and closing angle and duration corresponding to the object to be opened according to the input data, and then transmits the signal to the single-chip computer (2). The single-chip computer (2) adjusts the received signal into a voltage signal, and transmits it to the corresponding electric window drive motor (5) according to the object to be opened, the opening and closing angle and the duration, so as to open the window for ventilation as required.

4. The control method for controlling the opening of an electrically controlled window according to claim 1, characterized in that: The step 1 specifically comprises: collecting outdoor temperature, humidity, PM2.5 concentration and NO concentration respectively through an outdoor temperature sensor (6), humidity sensor (7) and particle sensor (8); collecting indoor PM2.5 concentration, CO concentration, SO2 concentration, CO2 concentration and NO concentration respectively through an indoor temperature sensor a (9), humidity sensor a (10), particle sensor a (11), CO gas sensor (12), SO2 sensor (13) and CO2 gas sensor (14); and collecting wind speed and wind direction respectively through a wind speed sensor (15) and a wind direction sensor (16).

5. The control method for controlling the opening of an electrically controlled window according to claim 4, characterized in that: The electric window control model is a pre-trained BP neural network model.

6. The method for controlling the opening of an electrically controlled window according to claim 5, characterized in that: The BP neural network model includes an input layer, two hidden layers, and an output layer connected in sequence. The input layer is composed of 11 neurons, the first hidden layer has 20 neurons, the second hidden layer has 10 neurons, and the output layer contains only 3 neurons; the activation function of the hidden layer adopts the ReLU function, and the output layer uses the Sigmoid activation function to output the corresponding window object, opening and closing angle, and duration.

7. The method for controlling the opening of an electrically controlled window according to claim 6, characterized in that: The process of pre-training the BP neural network model is: Step 3.1, obtain the data set and divide it into a training set and a test set; Step 3.2, using the training set in 3.1 to train the BP neural network model to obtain a trained BP neural network model; Step 3.3, use the test set data to input the BP neural network model trained in step 3.2 to obtain the model prediction output, and output the window opening scheme under different pollutant concentrations, that is, output the corresponding window opening object, opening angle and duration; Step 3.4, simulating the window opening scheme output by the prediction obtained in step 3.3 in Fluent to obtain the concentration distribution results corresponding to each indoor sensor after applying the window opening scheme; Step 3.5, calculate the average of the squares of the differences between the concentration distribution results corresponding to each sensor in step 3.4 and the theoretical concentration to obtain the mean square error. If the mean square error is within the preset error range, stop training to obtain the final BP neural network model; if the mean square error is not within the preset error range, return to step 3.2 to continue training until the mean square error is within the preset error range.

8. The method for controlling the opening of an electrically controlled window according to claim 7, characterized in that: During training, the weight W of the BP neural network model is initialized to the standard normal distribution N(0,1), that is, W~N(0,1), the bias b is initialized to b=0.01, and the gradient descent algorithm is used to iteratively adjust the weight W and bias of the network to minimize the loss function, that is, the mean square error MSE. Among them, the initial value of the learning rate η is 0.01, the batch size m is set to 64, the momentum parameter β is set to 0.9, the number of iterations T is set to 100 to 200 iterations, the L2 regularization parameter λ is set to λ=0.001, and the learning rate decay rate can be set to decay_rate=0.1, which decays once every steps_size=10 epochs; the BP neural network model continuously updates and adjusts the hyperparameters through data input, so that the model is continuously optimized and meets expectations.

9. The method for controlling the opening of an electrically controlled window according to claim 8, characterized in that: A threshold value is set for each sensor in the single chip microcomputer (2). If the data measured by the sensors are all within the set threshold value range, the single chip microcomputer (2) does not transmit the data to the host computer (3), that is, there is no need to change the window switch data. If the data measured by any sensor is not within the set threshold value range, the single chip microcomputer (2) transmits the data to the host computer (3).