CN117739475A - Indoor gas concentration detection method in fresh air mode and electronic equipment - Google Patents

Indoor gas concentration detection method in fresh air mode and electronic equipment Download PDF

Info

Publication number
CN117739475A
CN117739475A CN202311689350.9A CN202311689350A CN117739475A CN 117739475 A CN117739475 A CN 117739475A CN 202311689350 A CN202311689350 A CN 202311689350A CN 117739475 A CN117739475 A CN 117739475A
Authority
CN
China
Prior art keywords
concentration
time
indoor gas
gas concentration
indoor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311689350.9A
Other languages
Chinese (zh)
Inventor
江雯禧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202311689350.9A priority Critical patent/CN117739475A/en
Publication of CN117739475A publication Critical patent/CN117739475A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B30/00Energy efficient heating, ventilation or air conditioning [HVAC]
    • Y02B30/70Efficient control or regulation technologies, e.g. for control of refrigerant flow, motor or heating

Landscapes

  • Air Conditioning Control Device (AREA)

Abstract

The invention provides an indoor gas concentration detection method and electronic equipment in a fresh air mode. And detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold value, if so, controlling the air conditioner to enter a fresh air mode, and comparing the indoor gas concentration with the predicted concentration at the first verification moment. If the indoor gas concentration is larger than the predicted concentration and the current wind speed is the maximum wind speed, the running time of the fresh air mode is prolonged for the first time, and the indoor gas concentration is detected. The indoor gas concentration is detected in real time from the detection starting moment, so that the continuous detection of the indoor gas concentration for a long time is avoided, and the energy consumption is saved. The optimal running time of the fresh air mode can be determined by comparing the indoor gas concentration with the predicted concentration and combining the current wind speed, so that the indoor gas concentration is reduced, and the indoor air is purified.

Description

Indoor gas concentration detection method in fresh air mode and electronic equipment
Technical Field
The invention relates to the technical field of air conditioner control, in particular to an indoor gas concentration detection method in a fresh air mode and electronic equipment.
Background
When the air conditioner is operated, the indoor environment is usually airtight, harmful substances and gases are continuously accumulated to influence the health of a human body when the indoor environment is in a poor ventilation state for a long time, and the fresh air is supplemented to the indoor environment through the air outlet, so that the recent development direction of the air conditioner field is realized.
The fresh air function that current air conditioner possesses mainly relies on manual control, and indoor gaseous concentration change needs time, and the indoor gaseous concentration of continuous detection in non-key time quantum can cause the wasting of resources. In addition, the continuous opening of the air detector can reduce the service life of the air detector, and can easily cause detection errors, so that the air conditioner operates abnormally in a fresh air mode, such as continuous operation or long-time non-operation.
Therefore, there is a need for a gas concentration detection method that can accurately control the detection period of indoor gas, avoiding long-time detection, and thus saving energy consumption.
Disclosure of Invention
In order to overcome the problems in the related art, one of the purposes of the invention is to provide a method for detecting the concentration of indoor gas in a fresh air mode, which can accurately control the detection period of the indoor gas, avoid long-time detection and further save energy consumption.
A method for detecting indoor gas concentration in fresh air mode comprises the following steps:
determining a detection starting moment based on the gas growth rate of the indoor gas, and detecting the concentration of the indoor gas in real time from the detection starting moment;
detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold value, if so, controlling an air conditioner to enter a fresh air mode, and comparing the indoor gas concentration with a predicted concentration at a first verification moment;
and if the indoor gas concentration is larger than the predicted concentration and the current wind speed is the maximum wind speed, prolonging the running time of the fresh air mode for the first time, and detecting the indoor gas concentration.
In a preferred technical scheme of the invention, the method for determining the detection starting time based on the gas growth rate of the indoor gas comprises the following steps:
detecting the indoor gas concentration, and calculating the gas growth rate according to the indoor gas concentration;
predicting a target moment when a gas concentration threshold is reached according to the gas growth rate;
determining a time interval corresponding to the target time based on the detection time interval, and determining a time subinterval by using a dichotomy for the time interval;
and taking the starting time of the time subinterval in which the target time is positioned as the detection starting time.
In a preferred technical scheme of the present invention, before the extending the operation time of the fresh air mode by a first time, the method further includes:
subtracting the predicted concentration from the indoor gas concentration to obtain a first concentration difference;
and calculating the ratio of the first concentration difference value to the gas reduction rate to obtain the first time.
In a preferred technical solution of the present invention, after comparing the indoor gas concentration with the predicted concentration at the first verification time, the method further includes:
if the indoor gas concentration is larger than the predicted concentration and the current wind speed is smaller than the maximum wind speed, adjusting the current wind speed to be the expected wind speed according to a concentration interval corresponding to the indoor gas concentration; wherein the desired wind speed is positively correlated with the indoor gas concentration;
acquiring a second check time, and detecting the indoor gas concentration at the second check time; wherein the second check time is greater than the first check time.
In a preferred technical solution of the present invention, after comparing the indoor gas concentration with the predicted concentration at the first verification time, the method further includes:
if the indoor gas concentration is smaller than the predicted concentration, subtracting the indoor gas concentration from the predicted concentration to obtain a second concentration difference;
calculating the ratio of the second concentration difference to the gas reduction rate to obtain a second time;
shortening the running time of the fresh air mode by the second time.
In a preferred technical solution of the present invention, the detecting the indoor gas concentration includes:
acquiring performance parameters of the air conditioner, and determining the size of an indoor space according to the performance parameters;
inputting the indoor space into a fresh air prediction model, and calculating the detection time interval;
detecting multi-azimuth gas concentration according to the detection time interval;
and carrying out weighted summation on the multi-azimuth gas concentration to obtain the indoor gas concentration.
In a preferred embodiment of the present invention, the calculating the gas growth rate according to the indoor gas concentration includes:
acquiring the indoor gas concentration at the current moment and the indoor gas concentration at the previous moment;
subtracting the indoor gas concentration at the current moment from the indoor gas concentration at the previous moment to obtain a third concentration difference value;
subtracting the previous moment from the current moment to obtain a time difference value;
dividing the third concentration difference by the time difference to obtain a gas growth rate.
In a preferred technical scheme of the present invention, before the indoor space is input into the fresh air prediction model, the method further includes:
acquiring sample data, and preprocessing the sample data to obtain training data; wherein the sample data includes the indoor space size, the indoor gas concentration, the gas growth rate, and the current wind speed;
inputting the training data into a prediction model to be trained for prediction to obtain an output result;
calculating the difference between the output result and the target output to obtain an output error;
and if the output error is smaller than or equal to the output error threshold, stopping training to obtain the fresh air prediction model.
In a preferred technical scheme of the present invention, the extending the operation time of the fresh air mode for a first time to detect the indoor gas concentration includes:
obtaining standard running time, and adding the first time to the standard running time to obtain expected running time;
detecting whether the air conditioner operates the expected operation time in the fresh air mode, and if not, controlling the air conditioner to operate in the fresh air mode;
calculating the average value of the first verification moment and the first time to obtain a third verification moment;
and detecting the indoor gas concentration at the third verification moment.
Another object of the present invention is to provide an electronic device, comprising:
a processor; and
a memory having executable code stored thereon that, when executed by the processor, causes the processor to perform the method of detecting indoor gas concentration in fresh air mode of any one of the above.
The beneficial effects of the invention are as follows:
the indoor gas concentration detection method in the fresh air mode provided by the invention comprises the steps of determining the detection starting moment based on the gas growth rate of the indoor gas, gradually transiting the current moment to the detection starting moment, continuously rising the indoor gas concentration, detecting the indoor gas concentration in real time from the detection starting moment when the indoor gas concentration is close to a gas concentration threshold value, and avoiding continuously detecting the indoor gas concentration for a long time without detecting the indoor gas concentration when the air conditioner starts to operate, thereby saving energy consumption. The running time of the gas detector can be reduced, and the service life of the gas detector can be prolonged. Detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold value, if so, controlling the air conditioner to enter a fresh air mode, and comparing the indoor gas concentration with the predicted concentration at a first verification moment; if the indoor gas concentration is larger than the predicted concentration and the current wind speed is the maximum wind speed, the running time of the fresh air mode is prolonged for the first time, and the indoor gas concentration is detected. The optimal running time of the fresh air mode can be determined by comparing the indoor gas concentration with the predicted concentration and combining the current wind speed, so that the indoor gas concentration is reduced, and the indoor air is purified.
Drawings
FIG. 1 is a flow chart of an indoor gas concentration detection method in a fresh air mode;
FIG. 2 is a flow chart of shortening the operation time of the fresh air mode by a second time;
FIG. 3 is a flow chart for calculating a gas growth rate provided by the present invention;
FIG. 4 is a flow chart of training a predictive model to be trained provided by the present invention.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example 1
As shown in fig. 1, the embodiment provides a method for detecting indoor gas concentration in a fresh air mode, including:
s1: and determining a detection starting moment based on the gas growth rate of the indoor gas, and detecting the indoor gas concentration in real time from the detection starting moment.
The gas detection sensors are arranged at all indoor positions and all outdoor positions, the processor receives the gas concentrations of all the positions collected by the gas detection sensors at all the indoor positions, the processor calculates the gas concentrations of all the positions to obtain the indoor gas concentrations, and the memory stores the indoor gas concentrations.
And calculating the gas growth rate according to the change amount of the indoor gas concentration at the current moment compared with the indoor gas concentration at the previous moment and the time difference between the current moment and the previous moment, and taking ppm (parts per million, million percent concentration) as an index for measuring the indoor gas concentration.
And subtracting the indoor gas concentration at the current moment from the gas concentration threshold value to obtain a concentration difference value. Dividing the concentration difference by the calculated gas growth rate to obtain a concentration growth time, and adding the concentration growth time to the current time to obtain the target time.
Dividing a plurality of time intervals, determining a time interval corresponding to the target time based on the detection time interval, obtaining two time intervals by using a dichotomy method, detecting which time interval the target time is positioned in, and detecting the indoor gas concentration in real time from the detection starting time by taking the minimum time in the time intervals as the detection starting time.
Preferably, the concentration of the gas in the chamber is detected one or more times before the detection start time.
S2: and detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold value, if so, controlling the air conditioner to enter a fresh air mode, and comparing the indoor gas concentration with the predicted concentration at a first verification moment.
And if the indoor gas concentration is greater than or equal to the gas concentration threshold value, acquiring the outdoor air quality through the gas detection sensors in all directions outdoors. If extreme weather such as sand storm is met, the fresh air mode is not started, namely the air conditioner does not exchange air with the outdoor environment. And if the outdoor air quality reaches an exchangeable value, controlling the air conditioner to enter a fresh air mode.
The standard operation time is obtained, and the standard operation time can be calculated by a fresh air prediction model according to the performance parameters of the air conditioner and the indoor space, can be preset by a user, and is not limited herein.
The first check time being half of the standard run time, i.eT Half-part For the first check time, T Label (C) Is the standard run time. And detecting the indoor gas concentration at the first verification moment, and inputting the first verification moment into a fresh air prediction model to obtain the predicted concentration at the first verification moment. The indoor gas concentration at the first verification time is denoted as C 1 The predicted concentration at the first check time is denoted as C Label (C)
S3: and if the indoor gas concentration is larger than the predicted concentration and the current wind speed is the maximum wind speed, prolonging the running time of the fresh air mode for the first time, and detecting the indoor gas concentration.
At the first verification time, if the indoor gas concentration is greater than the predicted concentration, namely C 1 >C Label (C) And if the current wind speed is the maximum wind speed, calculating a first time according to the concentration difference value of the indoor gas concentration and the predicted concentration, and adding the first time to the running time of the fresh air mode to obtain a final running time. The air conditioner is operated all the time from the current moment in the fresh air mode until the final operation time, and the indoor gas concentration is continuously detected in the process.
The indoor gas concentration detection method in the fresh air mode provided by the embodiment comprises the steps of determining the detection starting time based on the gas growth rate of the indoor gas, gradually transiting the current time to the detection starting time, continuously rising the indoor gas concentration, detecting the indoor gas concentration in real time from the detection starting time when the indoor gas concentration is close to the gas concentration threshold value near the detection starting time, and avoiding continuously detecting the indoor gas concentration for a long time without detecting the indoor gas concentration when the air conditioner starts to operate, so that energy consumption is saved. The running time of the gas detector can be reduced, and the service life of the gas detector can be prolonged. Detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold value, if so, controlling the air conditioner to enter a fresh air mode, and comparing the indoor gas concentration with the predicted concentration at a first verification moment; if the indoor gas concentration is larger than the predicted concentration and the current wind speed is the maximum wind speed, the running time of the fresh air mode is prolonged for the first time, and the indoor gas concentration is detected. The optimal running time of the fresh air mode can be determined by comparing the indoor gas concentration with the predicted concentration and combining the current wind speed, so that the indoor gas concentration is reduced, and the indoor air is purified.
Example 2
This embodiment describes only the differences from embodiment 1, the determination of the detection start timing based on the gas growth rate of the room gas includes:
s11: and detecting the indoor gas concentration, and calculating the gas growth rate according to the indoor gas concentration.
And calculating the gas growth rate according to the change quantity of the indoor gas concentration at the current moment compared with the indoor gas concentration at the last moment and the time difference between the current moment and the last moment.
Taking ppm (parts per million, concentration in parts per million) as an index for measuring the indoor gas concentration, as an example, the gas concentration threshold of carbon monoxide is set to 99ppm, the indoor gas concentration of carbon monoxide detected at the last moment is 46ppm, the indoor gas concentration of carbon monoxide detected at the current moment is 50ppm, the time difference between the current moment and the last moment is 1 hour, and the gas growth rate of carbon monoxide is 4ppm/h.
S12: and predicting the target moment when the gas concentration threshold is reached according to the gas growth rate.
And subtracting the indoor gas concentration at the current moment from the gas concentration threshold value to obtain a concentration difference value. Dividing the concentration difference by the calculated gas growth rate to obtain a concentration growth time, and adding the concentration growth time to the current time to obtain the target time.
As an example, the indoor gas concentration of carbon monoxide at the present time is 50ppm, the gas concentration threshold of carbon monoxide is 99ppm, and the concentration difference is 49ppm. The calculated gas growth rate of carbon monoxide was 4ppm/h, and the concentration difference was divided by the gas growth rate of carbon monoxide, and it took 12.25 hours to increase the indoor gas concentration of carbon monoxide at the present time to the gas concentration threshold of carbon monoxide. If the current time is 0:00, the target time is 12:25.
S13: and determining a time interval corresponding to the target time based on the detection time interval, and determining a time subinterval by using a dichotomy for the time interval.
During the gradual transition of the current time to the target time, the indoor gas concentration is continuously increased, and the time period when the indoor gas concentration approaches the gas concentration threshold value is the key time period.
And acquiring performance parameters of the air conditioner, determining the size of an indoor space needing to be purified according to the performance parameters of the air conditioner, inputting the performance parameters of the air conditioner and the size of the indoor space into a fresh air prediction model, and predicting a detection time interval.
Dividing a plurality of time intervals, determining a time interval corresponding to the target time based on the detection time interval, and obtaining two time sub-intervals by using a dichotomy method for the time interval.
S14: and taking the starting time of the time subinterval in which the target time is positioned as the detection starting time.
And (3) detecting which time subinterval the target time is positioned in, and taking the minimum time in the time subinterval as the detection starting time, and detecting the indoor gas concentration in real time from the detection starting time.
For example, the detection time interval is 1 hour, the target time is 12:25, the time interval in which the target time is located is 12:00-1:00, the time interval in which the target time is located is divided into 12:00-12:30 and two time sub-intervals of 12:30-1:00 by using a dichotomy, and the target time 12:25 is located in the time sub-interval of 12:00-12:30. The smallest time in the time subintervals 12:00-12:30 is 12:00, so that the indoor gas concentration is detected in real time from 12:00 by taking 12:00 as the detection starting time. If the target time is 12:45, the minimum time 12:30 of the time subinterval of 12:30-1:00 is taken as the detection starting time, and the indoor gas concentration is detected in real time from 12:30.
Before the running time of the fresh air mode is prolonged for the first time, the method further comprises the following steps:
s21': and subtracting the predicted concentration from the indoor gas concentration to obtain a first concentration difference.
The first concentration difference is denoted as C 1 -C Label (C) The larger the first concentration difference value is, the larger the error between the indoor gas concentration and the predicted concentration predicted by the fresh air prediction model is at the first verification moment. The parameters of the fresh air prediction model are unchanged, and the prediction concentration is unchanged. Under the condition that the predicted concentration is unchanged, if the first concentration difference value is larger, the indoor gas concentration at the first verification moment of the instruction book is larger, and the air conditioner running in the fresh air mode has poor effect of purifying the indoor air.
S22': and calculating the ratio of the first concentration difference value to the gas reduction rate to obtain the first time.
The calculation formula of the first time is as follows:
wherein C is 1 -C Label (C) For the first concentration difference, V is the gas reduction rate, T 1 Is the first time.
And subtracting the indoor gas concentration at the first verification moment from the gas concentration threshold value, and dividing the difference by the first verification moment to obtain the gas reduction rate.
The gas reduction rate is calculated as follows:
wherein V is the gas reduction rate, C th Is the threshold value of gas concentration, C 1 For the indoor gas concentration at the first check time, T Half-part Is the first check time.
After comparing the indoor gas concentration with the predicted concentration at the first verification moment, the method further comprises:
s31': if the indoor gas concentration is larger than the predicted concentration and the current wind speed is smaller than the maximum wind speed, adjusting the current wind speed to be the expected wind speed according to a concentration interval corresponding to the indoor gas concentration; wherein the desired wind speed is positively correlated with the indoor gas concentration.
The expected wind speed is divided into five gears, the 1 st gear wind speed is minimum, the 5 th gear wind speed is maximum, and the wind speed gradually increases from the 1 st gear to the 5 th gear. In the embodiment, taking the indoor gas concentration of carbon monoxide as an example, when the indoor gas concentration of carbon monoxide is 100pm, damage to human body is caused. The indoor gas concentration of carbon monoxide is thus divided into 5 concentration intervals of 0-20ppm,20-40ppm,40-60ppm,60-80ppm and 80-100ppm, respectively. 0-20ppm corresponds to the 1 st wind speed, 20-40ppm corresponds to the 2 nd wind speed, 40-60ppm corresponds to the 3 rd wind speed, 60-80ppm corresponds to the 4 th wind speed, and 80-100ppm corresponds to the 5 th wind speed. The indoor gas concentration of carbon monoxide is positively correlated with the desired wind speed, i.e., the greater the indoor gas concentration of carbon monoxide, the higher the gear of the desired wind speed.
If the indoor gas concentration of the carbon monoxide is 82ppm, the corresponding concentration interval is 80-100ppm, the current wind speed is 3 rd wind speed, and the current wind speed is adjusted to 5 th wind speed.
S32': acquiring a second check time, and detecting the indoor gas concentration at the second check time; wherein the second check time is greater than the first check time.
Multiplying the standard run time by 3/4 gives a second check time, which can be expressed asThe indoor gas concentration is detected at the second check-up timing.
And detecting the concentration of the indoor gas at detection time intervals from the first check time to the second check time.
As shown in fig. 2, after comparing the indoor gas concentration with the predicted concentration at the first verification time, the method further includes:
s31': and if the indoor gas concentration is smaller than the predicted concentration, subtracting the indoor gas concentration from the predicted concentration to obtain a second concentration difference.
If the indoor gas concentration is less than or equal to the predicted concentration, the indoor air purification condition is better than expected at the first verification moment,the indoor gas concentration can be reduced below the expected value before the running time of the fresh air mode. The second concentration difference is denoted as C Label (C) -C 1 Wherein C Label (C) To predict concentration, C 1 Is the indoor gas concentration.
S32': and calculating the ratio of the second concentration difference value to the gas reduction rate to obtain a second time.
The calculation formula of the second time is as follows:
wherein T is 2 For the second time, V is the gas reduction rate, C Label (C) -C 1 Is the second concentration difference.
S33': shortening the running time of the fresh air mode by the second time.
Subtracting the second time from the running time of the fresh air mode to obtain the final running time. The air conditioner is operated all the time from the current moment in the fresh air mode until the final operation time, and the indoor gas concentration is continuously detected in the process.
According to the embodiment, the running time of the air conditioner in the fresh air mode is adjusted according to the magnitude relation between the indoor gas concentration and the predicted concentration at the first verification moment. If the indoor gas concentration is larger than the predicted concentration, the air purifying effect of the air conditioner on the indoor air does not reach the expected value at the first verification moment, so that the first time is determined according to the indoor gas concentration, the predicted concentration and the gas reducing rate, and the running time of the fresh air mode is prolonged for the first time. If the indoor gas concentration is larger than the predicted concentration and the current wind speed is smaller than the maximum wind speed, the air purification efficiency of the air conditioner to the indoor air can be improved, the current wind speed is adjusted to be the expected wind speed according to the concentration interval corresponding to the indoor gas concentration, and the expected wind speed is larger as the indoor gas concentration is larger, so that the energy conservation and the emission reduction are realized while the regulation efficiency of the indoor gas concentration is ensured. If the indoor gas concentration is smaller than the predicted concentration, the air conditioner is expected to have an air purifying effect on the indoor air at the first verification moment, so that the second time is determined according to the indoor gas concentration, the predicted concentration and the gas reduction rate, and the second time is subtracted from the running time of the fresh air mode, so that the air conditioner is prevented from running in the fresh air mode for a long time while the high indoor air purifying efficiency is ensured, and energy conservation and emission reduction are realized.
Example 3
As shown in fig. 3, the method for detecting the indoor gas concentration in the fresh air mode according to the present embodiment includes:
s111: and acquiring the performance parameters of the air conditioner, and determining the size of the indoor space according to the performance parameters.
The performance parameters of the air conditioner include the refrigerating capacity of the air conditioner, and in this embodiment, the refrigerating capacity of the air conditioner is measured by using the number of air conditioners, where the number of air conditioners corresponds to the size of the indoor space one by one, for example, 1 air conditioner corresponds to a space with the size of 10 cubic meters.
S112: and inputting the indoor space into a fresh air prediction model, and calculating the detection time interval.
In this embodiment, the detection time interval calculated by the fresh air prediction model is 1 hour.
S113: and detecting the concentration of the multi-azimuth gas according to the detection time interval.
The indoor space is divided into three layers of spaces, namely a high-rise space, a middle-rise space and a low-rise space, and the gas concentrations of the high-rise space, the middle-rise space and the low-rise space are respectively detected.
S114: and carrying out weighted summation on the multi-azimuth gas concentration to obtain the indoor gas concentration.
Determining the gas concentration weight of each direction according to the gas density, if the gas density is high, sinking the gas, wherein the gas concentration weight of the lower-layer space is high, and the gas concentration weights of the upper-layer space and the middle-layer space are low; if the gas density is small, the gas can float upwards, and the gas concentration weight of the high-rise space is larger, and the gas concentration weights of the middle-rise space and the low-rise space are smaller. Preferably, the sum of the gas concentration weights of the high-level space, the middle-level space and the low-level space is 1.
As an example, the carbon dioxide content in the room is high, the gas density in the room is high, the gas concentration weight of the high-rise space is set to 0.5, and the gas concentration weights of the middle-level space and the low-level space are both set to 0.25. The gas concentration of the high-rise space is multiplied by 0.5, the gas concentration of the middle-rise space is multiplied by 0.25, the gas concentration of the low-rise space is multiplied by 0.25, and then the products of the gas concentrations of the three spaces and the gas concentration weight are added to obtain the indoor gas concentration.
The calculating a gas growth rate from the indoor gas concentration includes:
s115: and acquiring the indoor gas concentration at the current moment and the indoor gas concentration at the last moment.
S116: and subtracting the indoor gas concentration at the current moment from the indoor gas concentration at the previous moment to obtain a third concentration difference.
S117: and subtracting the previous moment from the current moment to obtain a time difference value.
S118: dividing the third concentration difference by the time difference to obtain a gas growth rate.
The present embodiment uses a linear model to calculate the gas growth rate, i.e. the gas concentration in the chamber varies uniformly from the last time to the current time. The indoor gas concentration at the current moment and the indoor gas concentration at the last moment are detected, and the gas growth rate can be obtained only by carrying out subtraction operation twice and division operation once at the current moment and the last moment, and the operation efficiency of calculating the gas growth rate by using a linear model is high.
In this embodiment, the multi-azimuth gas concentration in the room is detected, and the multi-azimuth gas concentration is weighted and summed, and because the densities of different gases are different, the gas concentration weights of the high-rise space, the middle-layer space and the low-layer space in the room are different, and therefore, the indoor gas concentration can be accurately calculated according to the multi-azimuth gas concentration by adopting the weighted and summed mode. The gas growth rate is calculated based on the linear model, only two subtraction operations and one division operation are needed, and the operation efficiency is high.
Example 4
As shown in fig. 4, the method for detecting the concentration of indoor gas in the fresh air mode according to the present embodiment further includes:
s111': acquiring sample data, and preprocessing the sample data to obtain training data; wherein the sample data includes the indoor space size, the indoor gas concentration, the gas growth rate, and the current wind speed.
The indoor gas concentration, the gas growth rate, the current wind speed and the detection time interval are acquired under different indoor space sizes. Preferably, different areas of the room are marked, for example, the total height of the room space is 3 meters, 0-1 meter of the room space is marked as a lower space, 1-2 meters of the room space is marked as a middle space, and 2-3 meters of the room is marked as a higher space.
Sample data may have inconsistent dimensions, may have missing values and/or abnormal values, and normalization is performed by adopting a mode of maximum normalization for inconsistent dimensions; if the sample data has missing values, interpolation filling or similar filling is adopted; if the abnormal value exists in the sample data, deleting or replacing the abnormal value.
S112': and inputting the training data into a prediction model to be trained for prediction, and obtaining an output result.
The prediction model to be trained is BP (Back Propagation) neural network, FNN (Feedforward neural network ), CNN (Convolutional Neural Networks, convolutional neural network) or RCNN (Region-based Convolutional Neural Network ).
Taking a to-be-trained BP neural network with two hidden layers as an example, the embodiment inputs training data into an input layer of the to-be-trained BP neural network, then sequentially carries out nonlinear operation through the two hidden layers, and finally an output layer of the to-be-trained BP neural network generates an output result.
S113': and calculating the difference between the output result and the target output to obtain an output error.
Using the loss function to measure the difference between the output result and the target output, an MSE (Mean Square Error ) loss function, an MAE (Mean Absolute Error ) loss function, or a cross entropy loss function may be employed, without limitation herein.
The output error is inversely related to the prediction accuracy of the prediction model to be trained, namely, the smaller the output error is, the higher the prediction accuracy of the prediction model to be trained is.
S114': and if the output error is smaller than or equal to the output error threshold, stopping training to obtain the fresh air prediction model.
And if the output error is smaller than or equal to the output error threshold, indicating that the performance of the prediction model in training and model parameters such as a weight matrix and a bias matrix accord with expectations, stopping training, and obtaining the fresh air prediction model.
After detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold, the method further comprises:
and if the indoor gas concentration is smaller than the gas concentration threshold value, detecting the indoor gas concentration in real time.
At the starting time, the indoor gas concentration is close to the gas concentration threshold value, and the indoor gas concentration increases with time from the starting time, so that the indoor gas concentration needs to be detected in real time, and when the indoor gas concentration is greater than or equal to the gas concentration threshold value, the air conditioner is controlled to enter a fresh air mode.
The extending the running time of the fresh air mode for the first time, detecting the indoor gas concentration includes:
s31: and obtaining a standard running time, and adding the first time to the standard running time to obtain a predicted running time.
Because the indoor gas concentration at the first verification moment is larger than the predicted concentration, the air conditioner has poor effect on indoor air purification in the fresh air mode, and the air conditioner is controlled to continue to operate in the fresh air mode according to the standard operation time so as not to meet the requirement of purifying the indoor air, and the predicted operation time is obtained by adding the first time to the operation time of the fresh air mode. The expected running time is longer than that of the fresh air mode, so that the indoor air can be better purified.
S32: and detecting whether the air conditioner operates in the fresh air mode for the expected operation time, and if not, controlling the air conditioner to operate in the fresh air mode.
If the air conditioner runs in the fresh air mode for the expected running time, the air conditioner is controlled to exit the fresh air mode, the air conditioner can be switched from the fresh air mode to a refrigerating mode or a heating mode, and the air conditioner can also be controlled to stop running.
And if the air conditioner does not operate in the fresh air mode for the expected operation time, controlling the air conditioner to continue to operate in the fresh air mode.
S33: and calculating the average value of the first verification time and the first time to obtain a third verification time.
The first check time is denoted as T Half-part The first time is denoted as T 1 The third verification time is expressed as
S34: and detecting the indoor gas concentration at the third verification moment.
Detecting the indoor gas concentration at the third verification moment, acquiring the current wind speed, detecting whether the indoor gas concentration at the third verification moment is matched with the current wind speed, and if not, adjusting the current wind speed to be the expected wind speed according to a concentration interval corresponding to the indoor gas concentration.
In the process of training the prediction model to be trained, if the output error is smaller than or equal to the output error threshold value, the training is stopped. By setting the output error threshold, the training can be stopped after the prediction model in training meets the expectations, and the problems of lower prediction accuracy of the fresh air prediction model caused by insufficient training times and overfitting caused by excessive training times are avoided.
Example 5
The embodiment provides an electronic device, which comprises a memory and a processor.
The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include various types of storage units, such as system memory, read Only Memory (ROM), and persistent storage.
The memory has stored thereon executable code that, when processed by the processor, can cause the processor to perform some or all of the methods described above.
The relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise. In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
In the description of the present application, it should be understood that, where azimuth terms such as "front, rear, upper, lower, left, right", "transverse, vertical, horizontal", and "top, bottom", etc., indicate azimuth or positional relationships generally based on those shown in the drawings, only for convenience of description and simplification of the description, these azimuth terms do not indicate and imply that the apparatus or elements referred to must have a specific azimuth or be constructed and operated in a specific azimuth, and thus should not be construed as limiting the scope of protection of the present application; the orientation word "inner and outer" refers to inner and outer relative to the contour of the respective component itself.
Spatially relative terms, such as "above … …," "above … …," "upper surface at … …," "above," and the like, may be used herein for ease of description to describe one device or feature's spatial location relative to another device or feature as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as "above" or "over" other devices or structures would then be oriented "below" or "beneath" the other devices or structures. Thus, the exemplary term "above … …" may include both orientations of "above … …" and "below … …". The device may also be positioned in other different ways (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
In addition, the terms "first", "second", etc. are used to define the components, and are merely for convenience of distinguishing the corresponding components, and unless otherwise stated, the terms have no special meaning, and thus should not be construed as limiting the scope of the present application.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The indoor gas concentration detection method in the fresh air mode is characterized by comprising the following steps of:
determining a detection starting moment based on the gas growth rate of the indoor gas, and detecting the concentration of the indoor gas in real time from the detection starting moment;
detecting whether the indoor gas concentration is greater than or equal to a gas concentration threshold value, if so, controlling an air conditioner to enter a fresh air mode, and comparing the indoor gas concentration with a predicted concentration at a first verification moment;
and if the indoor gas concentration is larger than the predicted concentration and the current wind speed is the maximum wind speed, prolonging the running time of the fresh air mode for the first time, and detecting the indoor gas concentration.
2. The method for detecting the concentration of the indoor gas in the fresh air mode according to claim 1, wherein the determining the detection start time based on the gas growth rate of the indoor gas includes:
detecting the indoor gas concentration, and calculating the gas growth rate according to the indoor gas concentration;
predicting a target moment when a gas concentration threshold is reached according to the gas growth rate;
determining a time interval corresponding to the target time based on the detection time interval, and determining a time subinterval by using a dichotomy for the time interval;
and taking the starting time of the time subinterval in which the target time is positioned as the detection starting time.
3. The method for detecting the concentration of indoor gas in the fresh air mode according to claim 1, wherein before the extending the operation time of the fresh air mode by a first time, further comprising:
subtracting the predicted concentration from the indoor gas concentration to obtain a first concentration difference;
and calculating the ratio of the first concentration difference value to the gas reduction rate to obtain the first time.
4. The method for detecting the concentration of the indoor gas in the fresh air mode according to claim 1, further comprising, after comparing the concentration of the indoor gas with the predicted concentration at the first verification time:
if the indoor gas concentration is larger than the predicted concentration and the current wind speed is smaller than the maximum wind speed, adjusting the current wind speed to be the expected wind speed according to a concentration interval corresponding to the indoor gas concentration; wherein the desired wind speed is positively correlated with the indoor gas concentration;
acquiring a second check time, and detecting the indoor gas concentration at the second check time; wherein the second check time is greater than the first check time.
5. The method for detecting the concentration of the indoor gas in the fresh air mode according to claim 3, further comprising, after comparing the concentration of the indoor gas with the predicted concentration at the first verification time:
if the indoor gas concentration is smaller than the predicted concentration, subtracting the indoor gas concentration from the predicted concentration to obtain a second concentration difference;
calculating the ratio of the second concentration difference to the gas reduction rate to obtain a second time;
shortening the running time of the fresh air mode by the second time.
6. The method for detecting the concentration of the indoor gas in the fresh air mode according to claim 2, wherein the detecting the concentration of the indoor gas comprises:
acquiring performance parameters of the air conditioner, and determining the size of an indoor space according to the performance parameters;
inputting the indoor space into a fresh air prediction model, and calculating the detection time interval;
detecting multi-azimuth gas concentration according to the detection time interval;
and carrying out weighted summation on the multi-azimuth gas concentration to obtain the indoor gas concentration.
7. The method for detecting the indoor gas concentration in the fresh air mode according to claim 2, wherein the calculating the gas growth rate according to the indoor gas concentration includes:
acquiring the indoor gas concentration at the current moment and the indoor gas concentration at the previous moment;
subtracting the indoor gas concentration at the current moment from the indoor gas concentration at the previous moment to obtain a third concentration difference value;
subtracting the previous moment from the current moment to obtain a time difference value;
dividing the third concentration difference by the time difference to obtain a gas growth rate.
8. The method for detecting the concentration of indoor gas in the fresh air mode according to claim 6, further comprising, before the step of inputting the size of the indoor space into the fresh air prediction model:
acquiring sample data, and preprocessing the sample data to obtain training data; wherein the sample data includes the indoor space size, the indoor gas concentration, the gas growth rate, and the current wind speed;
inputting the training data into a prediction model to be trained for prediction to obtain an output result;
calculating the difference between the output result and the target output to obtain an output error;
and if the output error is smaller than or equal to the output error threshold, stopping training to obtain the fresh air prediction model.
9. The method for detecting the concentration of the indoor gas in the fresh air mode according to claim 1, wherein the extending the operation time of the fresh air mode by a first time, detecting the concentration of the indoor gas, comprises:
obtaining standard running time, and adding the first time to the standard running time to obtain expected running time;
detecting whether the air conditioner operates the expected operation time in the fresh air mode, and if not, controlling the air conditioner to operate in the fresh air mode;
calculating the average value of the first verification moment and the first time to obtain a third verification moment;
and detecting the indoor gas concentration at the third verification moment.
10. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon that, when executed by the processor, causes the processor to perform the indoor gas concentration detection method in the fresh air mode of any one of claims 1-9.
CN202311689350.9A 2023-12-11 2023-12-11 Indoor gas concentration detection method in fresh air mode and electronic equipment Pending CN117739475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311689350.9A CN117739475A (en) 2023-12-11 2023-12-11 Indoor gas concentration detection method in fresh air mode and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311689350.9A CN117739475A (en) 2023-12-11 2023-12-11 Indoor gas concentration detection method in fresh air mode and electronic equipment

Publications (1)

Publication Number Publication Date
CN117739475A true CN117739475A (en) 2024-03-22

Family

ID=90276791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311689350.9A Pending CN117739475A (en) 2023-12-11 2023-12-11 Indoor gas concentration detection method in fresh air mode and electronic equipment

Country Status (1)

Country Link
CN (1) CN117739475A (en)

Similar Documents

Publication Publication Date Title
CN107092582B (en) Online abnormal value detection and confidence evaluation method based on residual posterior
Wolf et al. Carbon dioxide-based occupancy estimation using stochastic differential equations
Gaston et al. The distribution of species range size: a stochastic process
CN110175353B (en) Trend analysis method for elevator operation index
Alam et al. Uncertainties in neural network model based on carbon dioxide concentration for occupancy estimation
CN113240184B (en) Building space unit cold load prediction method and system based on federal learning
CN111210128A (en) Wetland early warning method based on artificial intelligence and random self-adaptive threshold
CN113723002A (en) Method and system for establishing slurry pH value prediction model of desulfurization system under all working conditions
CN115640744A (en) Method for predicting corrosion rate outside oil field gathering and transportation pipeline
CN117739475A (en) Indoor gas concentration detection method in fresh air mode and electronic equipment
CN111125964A (en) Sewage treatment process proxy model construction method based on kriging interpolation method
CN107862866B (en) Data noise point detection method based on average offset translation
CN114418378A (en) Photovoltaic power generation internet data checking method based on LOF outlier factor detection algorithm
CN113887119B (en) River water quality prediction method based on SARIMA-LSTM
CN115454182A (en) Grain storage method, system, equipment and storage medium
CN113887020A (en) Water supply network leakage detection sensor multi-target arrangement method based on leakage probability
CN113887000A (en) Water supply pipe network pollution monitoring sensor multi-target arrangement method based on pollution probability
CN115831258A (en) Method for predicting concentration of dissolved gas in transformer oil based on improved adaptive filtering algorithm
CN104713410A (en) Method for regulating outlet water temperature of cooling tower
JP3904506B2 (en) Tunnel ventilation control method and apparatus
CN113177675A (en) Air conditioner cold load prediction method based on optimization neural network of longicorn group algorithm
CN117906070B (en) Pressure regulating method and pressure regulating system of water supply network
CN112329335A (en) Long-term prediction method for content of dissolved gas in transformer oil
CN117739474A (en) Control method of fresh air conditioner and electronic equipment
CN117491581A (en) Coal mine working face water quality on-line monitoring method and system based on deep learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination