An indoor gas concentration detection method and electronic equipment in a fresh air mode

CN117739475BActive Publication Date: 2026-09-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311689350.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2026-09-11
Estimated Expiration
2043-12-11

AI Technical Summary

Technical Problem

[0003]当前空调具备的新风功能主要依靠人工控制,室内气体的浓度变化需要时间,在非关键时间段持续检测室内气体浓度会造成资源浪费

Benefits of technology

[0049]本发明提供的一种新风模式下的室内气体浓度检测方法包括基于室内气体的气体增长速率确定检测起始时刻,在当前时刻逐渐过渡到检测起始时刻期间,室内气体浓度不断上升,在检测起始时刻附近室内气体浓度接近气体浓度阈值,从检测起始时刻开始实时检测室内气体浓度,不需要在空调开始运行时检测室内气体浓度,避免长时间持续检测室内气体浓度,从而节约能耗。还可以减少气体检测器的运行时间,延长气体检测器的寿命。检测室内气体浓度是否大于或等于气体浓度阈值,若是,则控制空调进入新风模式,在第一校验时刻将室内气体浓度与预测浓度对比;若室内气体浓度大于预测浓度,且当前风速为最大风速,则将新风模式的运行时间延长第一时间,检测室内气体浓度。通过对比室内气体浓度和预测浓度,结合当前风速可以确定新风模式的最佳运行时间,从而降低室内气体浓度,净化室内空气。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117739475B_ABST
    Figure CN117739475B_ABST
Patent Text Reader

Abstract

The application provides a fresh air mode indoor gas concentration detection method and electronic equipment, wherein the method comprises determining a detection starting moment based on the gas growth rate of indoor gas, and detecting the indoor gas concentration in real time from the detection starting moment. Whether the indoor gas concentration is greater than or equal to the gas concentration threshold is detected, if yes, the air conditioner is controlled to enter the fresh air mode, and the indoor gas concentration is compared with the predicted concentration at the first check moment. If the indoor gas concentration is greater than the predicted concentration, and the current air speed is the maximum air speed, the running time of the fresh air mode is extended by the first time, and the indoor gas concentration is detected. The indoor gas concentration is detected in real time from the detection starting moment, avoiding long-time continuous detection of the indoor gas concentration, thereby saving energy consumption. By comparing the indoor gas concentration with the predicted concentration, the best running time of the fresh air mode can be determined in combination with the current air speed, thereby reducing the indoor gas concentration and purifying the indoor air.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of air conditioning control technology, and in particular to a method and electronic device for detecting indoor gas concentration in fresh air mode. Background Technology

[0002] When air conditioning is running, the indoor environment is usually sealed. When the indoor environment is in a poor ventilation state for a long time, harmful substances and gases accumulate continuously, affecting human health. Supplementing the indoor environment with fresh air through the air outlet has become the development direction of the air conditioning industry in recent years.

[0003] Currently, the fresh air function of air conditioners mainly relies on manual control. Changes in indoor gas concentration take time, and continuously monitoring indoor gas concentration during non-critical periods leads to resource waste. In addition, continuously running the air detector will reduce its lifespan and is prone to detection errors, causing the air conditioner to malfunction in fresh air mode, such as running continuously or not running for extended periods.

[0004] Therefore, there is a need for a gas concentration detection method that can accurately control the detection cycle of indoor gases, avoid long-term detection, and thus save energy. Summary of the Invention

[0005] To overcome the problems existing in related technologies, one of the objectives of this invention is to provide an indoor gas concentration detection method in a fresh air mode. This method can accurately control the indoor gas detection cycle, avoid long-term detection, and thus save energy.

[0006] A method for detecting indoor gas concentration in a fresh air mode, comprising:

[0007] The detection start time is determined based on the gas growth rate of indoor gas, and the indoor gas concentration is detected in real time from the detection start time.

[0008] If the indoor gas concentration is greater than or equal to the gas concentration threshold, the air conditioner is controlled to enter the fresh air mode, and the indoor gas concentration is compared with the predicted concentration at the first verification moment.

[0009] If the indoor gas concentration is greater than the predicted concentration, and the current wind speed is the maximum wind speed, then the operation time of the fresh air mode will be extended for a first time to detect the indoor gas concentration.

[0010] In a preferred embodiment of the present invention, determining the detection start time based on the gas growth rate of indoor gas includes:

[0011] Detect the indoor gas concentration and calculate the gas growth rate based on the indoor gas concentration;

[0012] The target time for reaching the gas concentration threshold is predicted based on the gas growth rate.

[0013] The time interval corresponding to the target time is determined based on the detection time interval, and the time interval is used to determine the time sub-intervals using the bisection method.

[0014] The starting time of the time sub-interval in which the target time is located is taken as the detection start time.

[0015] In a preferred embodiment of the present invention, before extending the operating time of the fresh air mode by the first time, the method further includes:

[0016] Subtract the predicted concentration from the indoor gas concentration to obtain the first concentration difference;

[0017] The first time is obtained by calculating twice the ratio of the first concentration difference to the gas decreasing rate.

[0018] In a preferred embodiment of the present invention, after comparing the indoor gas concentration with the predicted concentration at the first verification time, the method further includes:

[0019] If the indoor gas concentration is greater than the predicted concentration and the current wind speed is less than the maximum wind speed, then the current wind speed is adjusted to the desired wind speed according to the concentration range corresponding to the indoor gas concentration; wherein, the desired wind speed is positively correlated with the indoor gas concentration.

[0020] A second verification time is obtained, and the indoor gas concentration is detected at the second verification time; wherein the second verification time is greater than the first verification time.

[0021] In a preferred embodiment of the present invention, after comparing the indoor gas concentration with the predicted concentration at the first verification time, the method further includes:

[0022] If the indoor gas concentration is less than the predicted concentration, then the indoor gas concentration is subtracted from the predicted concentration to obtain a second concentration difference.

[0023] The second time is obtained by calculating twice the ratio of the second concentration difference to the gas decreasing rate;

[0024] The second time is shortened by reducing the running time of the fresh air mode.

[0025] In a preferred embodiment of the present invention, the detection of indoor gas concentration includes:

[0026] Obtain the performance parameters of the air conditioner, and determine the indoor space size based on the performance parameters;

[0027] The indoor space size is input into the fresh air prediction model to calculate the detection time interval;

[0028] Detect gas concentrations in multiple directions at the specified detection time intervals;

[0029] The indoor gas concentration is obtained by weighted summation of the multi-directional gas concentrations.

[0030] In a preferred embodiment of the present invention, the step of calculating the gas growth rate based on the indoor gas concentration includes:

[0031] Obtain the current indoor gas concentration and the previous indoor gas concentration;

[0032] The third concentration difference is obtained by subtracting the indoor gas concentration at the current moment from the indoor gas concentration at the previous moment.

[0033] Subtract the previous time from the current time to obtain the time difference;

[0034] Dividing the third concentration difference by the time difference yields the gas growth rate.

[0035] In a preferred embodiment of the present invention, before inputting the indoor space size into the fresh air prediction model, the method further includes:

[0036] Acquire sample data, preprocess 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;

[0037] The training data is input into the prediction model to be trained for prediction, and the output result is obtained.

[0038] The difference between the output result and the target output is calculated to obtain the output error;

[0039] If the output error is less than or equal to the output error threshold, then training is stopped, and the fresh air prediction model is obtained.

[0040] In a preferred embodiment of the present invention, extending the operating time of the fresh air mode for a first time and detecting the indoor gas concentration includes:

[0041] Obtain the standard running time, and add the first time to the standard running time to obtain the estimated running time;

[0042] The system detects whether the air conditioner is running in the fresh air mode for the estimated running time; if not, it controls the air conditioner to run in the fresh air mode.

[0043] Calculate the average of the first verification time and the first time to obtain the third verification time;

[0044] The indoor gas concentration is detected at the third verification time.

[0045] A second objective of this invention is to provide an electronic device comprising:

[0046] Processor; and

[0047] A memory storing executable code, which, when executed by the processor, causes the processor to perform the indoor gas concentration detection method in the fresh air mode described above.

[0048] The beneficial effects of this invention are as follows:

[0049] This invention provides a method for detecting indoor gas concentration in a fresh air mode. The method involves determining the detection start time based on the gas growth rate. During the transition from the current time to the detection start time, the indoor gas concentration continuously rises. Near the detection start time, the indoor gas concentration approaches a gas concentration threshold. The method then detects the indoor gas concentration in real time from the detection start time, eliminating the need to detect the indoor gas concentration while the air conditioner is running, thus avoiding prolonged continuous detection and saving energy. It also reduces the operating time of the gas detector and extends its lifespan. The method detects whether the indoor gas concentration is greater than or equal to the gas concentration threshold. If so, the air conditioner is switched to fresh air mode, and the indoor gas concentration is compared with the predicted concentration at the first verification time. If the indoor gas concentration is greater than the predicted concentration, and the current fan speed is at maximum, the fresh air mode operation time is extended by one time while detecting the indoor gas concentration. By comparing the indoor gas concentration with the predicted concentration and combining this with the current fan speed, the optimal operating time of the fresh air mode can be determined, thereby reducing the indoor gas concentration and purifying the indoor air. Attached Figure Description

[0050] Figure 1 This is a flowchart of an indoor gas concentration detection method in a fresh air mode provided by the present invention;

[0051] Figure 2 This is a flowchart of the second time for shortening the operation time of the fresh air mode, provided by the present invention;

[0052] Figure 3 This is a flowchart for calculating the gas growth rate provided by the present invention;

[0053] Figure 4 This is a flowchart of the training process for the prediction model to be trained, provided by the present invention. Detailed Implementation

[0054] Preferred embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0055] Example 1

[0056] like Figure 1 As shown, this embodiment provides a method for detecting indoor gas concentration in a fresh air mode, including:

[0057] S1: Determine the detection start time based on the indoor gas growth rate, and start detecting the indoor gas concentration in real time from the detection start time.

[0058] Gas detection sensors are installed in various locations both indoors and outdoors. The processor receives the gas concentration data collected by the gas detection sensors in various locations indoors, calculates the gas concentration in each location to obtain the indoor gas concentration, and stores the indoor gas concentration in the memory.

[0059] The gas growth rate is calculated based on the change in indoor gas concentration at the current moment compared to the previous moment, and the time difference between the current moment and the previous moment. ppm (parts per million) is used as the indicator to measure indoor gas concentration.

[0060] Subtract the current indoor gas concentration from the gas concentration threshold to obtain the concentration difference. Divide the concentration difference by the calculated gas growth rate to obtain the concentration growth time. Add the concentration growth time to the current time to obtain the target time.

[0061] The system divides the time interval into multiple time intervals. Based on the detection time interval, the time interval corresponding to the target time is determined. The time interval is then divided into two sub-time intervals using a bisection method. The target time is then located in which sub-time interval, and the minimum time in the sub-time interval is taken as the detection start time. The indoor gas concentration is then detected in real time starting from the detection start time.

[0062] Preferably, the indoor gas concentration is measured once or multiple times before the start of the detection.

[0063] S2: Detect whether the indoor gas concentration is greater than or equal to the gas concentration threshold. If so, control the air conditioner to enter the fresh air mode and compare the indoor gas concentration with the predicted concentration at the first verification moment.

[0064] If the indoor gas concentration is greater than or equal to the gas concentration threshold, outdoor air quality is obtained through gas detection sensors located at various points outdoors. In the event of extreme weather such as a sandstorm, the fresh air mode will not be activated, meaning the air conditioner will not exchange gases with the outdoor environment. If the outdoor air quality reaches a level suitable for exchange, the air conditioner will switch to fresh air mode.

[0065] Obtain the standard operating time. The standard operating time can be calculated by the fresh air prediction model based on the performance parameters of the air conditioner and the size of the indoor space, or it can be preset by the user. There is no limitation here.

[0066] The first verification time is half of the standard running time, that is T 半 For the first verification time, T 标 This is the standard operating time. The indoor gas concentration is measured at the first calibration time, and this first calibration time is input into the fresh air prediction model to obtain the predicted concentration at that first calibration time. The indoor gas concentration at the first calibration time is denoted as C1, and the predicted concentration at the first calibration time is denoted as C. 标 .

[0067] S3: If the indoor gas concentration is greater than the predicted concentration and the current wind speed is the maximum wind speed, then extend the operation time of the fresh air mode for a first time and detect the indoor gas concentration.

[0068] At the first verification time, if the indoor gas concentration is greater than the predicted concentration, i.e., C1 > C 标 If the current wind speed is at its maximum, the first time is calculated based on the concentration difference between the indoor gas concentration and the predicted concentration. The operating time of the fresh air mode is then added to the first time to obtain the final operating time. The air conditioner runs continuously in fresh air mode from the current moment until the final operating time, constantly monitoring the indoor gas concentration during this process.

[0069] This embodiment provides a method for detecting indoor gas concentration in a fresh air mode. The method involves determining the detection start time based on the indoor gas growth rate. During the transition from the current time to the detection start time, the indoor gas concentration continuously rises. Near the detection start time, the indoor gas concentration approaches a gas concentration threshold. The method then detects the indoor gas concentration in real time from the detection start time, eliminating the need to detect the indoor gas concentration while the air conditioner is running, thus avoiding prolonged continuous detection and saving energy. It also reduces the operating time of the gas detector and extends its lifespan. The method detects whether the indoor gas concentration is greater than or equal to the gas concentration threshold. If so, the air conditioner is controlled to enter fresh air mode, and the indoor gas concentration is compared with the predicted concentration at the first verification time. If the indoor gas concentration is greater than the predicted concentration, and the current fan speed is at maximum, the fresh air mode operation time is extended by one time while detecting the indoor gas concentration. By comparing the indoor gas concentration with the predicted concentration and combining this with the current fan speed, the optimal operating time of the fresh air mode can be determined, thereby reducing the indoor gas concentration and purifying the indoor air.

[0070] Example 2

[0071] This embodiment only describes the differences from Embodiment 1. The determination of the detection start time based on the gas growth rate of indoor gas includes:

[0072] S11: Detect the indoor gas concentration and calculate the gas growth rate based on the indoor gas concentration.

[0073] The gas growth rate is calculated based on the change in indoor gas concentration at the current moment compared to the previous moment, and the time difference between the current moment and the previous moment.

[0074] Using ppm (parts per million) as an indicator to measure indoor gas concentration, for example, if the carbon monoxide gas concentration threshold is set to 99 ppm, the indoor carbon monoxide gas concentration detected at the previous moment was 46 ppm, the indoor carbon monoxide gas concentration detected at the current moment is 50 ppm, and the time difference between the current moment and the previous moment is 1 hour, then the carbon monoxide gas growth rate is 4 ppm / h.

[0075] S12: Predict the target time when the gas concentration threshold is reached based on the gas growth rate.

[0076] Subtract the current indoor gas concentration from the gas concentration threshold to obtain the concentration difference. Divide the concentration difference by the calculated gas growth rate to obtain the concentration growth time. Add the concentration growth time to the current time to obtain the target time.

[0077] As an example, the current indoor carbon monoxide concentration is 50 ppm, the carbon monoxide concentration threshold is 99 ppm, and the concentration difference is 49 ppm. The calculated carbon monoxide gas growth rate is 4 ppm / h. Dividing the concentration difference by the carbon monoxide gas growth rate, it would take 12.25 hours for the indoor carbon monoxide concentration to increase from the current time to the carbon monoxide concentration threshold. If the current time is 0:00, the target time is 12:25.

[0078] S13: Determine the time interval corresponding to the target time based on the detection time interval, and use the bisection method to determine the time sub-intervals of the time interval.

[0079] During the transition from the current time to the target time, the indoor gas concentration continuously increases, and the period when the indoor gas concentration approaches the gas concentration threshold is the critical period.

[0080] Obtain the performance parameters of the air conditioner, determine the size of the indoor space that needs air purification based on the performance parameters of the air conditioner, input the performance parameters of the air conditioner and the size of the indoor space into the fresh air prediction model, and predict the detection time interval.

[0081] Divide the time interval into multiple time intervals, determine the time interval corresponding to the target time based on the detection time interval, and use the bisection method to obtain two time sub-intervals.

[0082] S14: Take the start time of the time sub-interval in which the target time is located as the detection start time.

[0083] The target time is located in a specific time sub-interval. The minimum time in the time sub-interval is taken as the detection start time, and the indoor gas concentration is detected in real time from the detection start time.

[0084] As an example, with a detection interval of 1 hour and a target time of 12:25, the target time falls within the time interval of 12:00-1:00. Using a bisection method, this time interval is divided into two sub-intervals: 12:00-12:30 and 12:30-1:00. The target time of 12:25 falls within the 12:00-12:30 sub-interval. The minimum time within the 12:00-12:30 sub-interval is 12:00. Therefore, 12:00 is used as the starting time for detection, and real-time indoor gas concentration monitoring begins from 12:00. If the target time is 12:45, then the minimum time within the 12:30-1:00 sub-interval, 12:30, is used as the starting time for detection, and real-time indoor gas concentration monitoring begins from 12:30.

[0085] Before extending the operating time of the fresh air mode by the first time, it also includes:

[0086] S21': Subtract the predicted concentration from the indoor gas concentration to obtain the first concentration difference.

[0087] The first concentration difference is represented as C1-C. 标 The larger the first concentration difference, the greater the error between the indoor gas concentration and the predicted concentration of the fresh air prediction model at the first verification time. The parameters of the fresh air prediction model remain unchanged, and the predicted concentration remains constant. If the first concentration difference is large when the predicted concentration remains constant, it indicates that the indoor gas concentration at the first verification time is high, and the air conditioner operating in fresh air mode has a poor effect on indoor air purification.

[0088] S22': Calculate twice the ratio of the first concentration difference to the gas reduction rate to obtain the first time.

[0089] The formula for calculating the first time is as follows:

[0090]

[0091] Among them, C1-C 标 Let V be the first concentration difference, V be the gas decreasing rate, and T1 be the first time.

[0092] Subtract the indoor gas concentration at the first verification time from the gas concentration threshold, and then divide the difference by the first verification time to obtain the gas reduction rate.

[0093] The formula for calculating the gas descent rate is as follows:

[0094]

[0095] Where V is the gas descent rate, C th C1 is the indoor gas concentration at the first verification time, and T is the gas concentration threshold. 半 This is the first verification moment.

[0096] After comparing the indoor gas concentration with the predicted concentration at the first verification time, the method further includes:

[0097] S31': If the indoor gas concentration is greater than the predicted concentration and the current wind speed is less than the maximum wind speed, then the current wind speed is adjusted to the desired wind speed according to the concentration range corresponding to the indoor gas concentration; wherein the desired wind speed is positively correlated with the indoor gas concentration.

[0098] The desired wind speed is divided into five levels, with level 1 being the lowest and level 5 the highest, gradually increasing from level 1 to level 5. This embodiment uses indoor carbon monoxide concentration as an example. When the indoor carbon monoxide concentration is 100 ppm, it can cause harm to the human body. Therefore, the indoor carbon monoxide concentration is divided into five concentration ranges: 0-20 ppm, 20-40 ppm, 40-60 ppm, 60-80 ppm, and 80-100 ppm. 0-20 ppm corresponds to level 1 wind speed, 20-40 ppm to level 2, 40-60 ppm to level 3, 60-80 ppm to level 4, and 80-100 ppm to level 5. There is a positive correlation between indoor carbon monoxide concentration and desired wind speed; that is, the higher the indoor carbon monoxide concentration, the higher the desired wind speed level.

[0099] If the indoor carbon monoxide concentration is 82 ppm, the corresponding concentration range is 80-100 ppm. The current wind speed is at level 3. Adjust the current wind speed to level 5.

[0100] S32': Obtain a second verification time, and detect the indoor gas concentration at the second verification time; wherein the second verification time is greater than the first verification time.

[0101] Multiplying the standard runtime by 3 / 4 yields the second check time, which can be expressed as: The indoor gas concentration was detected at the second calibration time.

[0102] From the first calibration time to the second calibration time, the indoor gas concentration is detected according to the detection time interval.

[0103] like Figure 2 As shown, after comparing the indoor gas concentration with the predicted concentration at the first verification time, the process further includes:

[0104] S31”: If the indoor gas concentration is less than the predicted concentration, then the indoor gas concentration is subtracted from the predicted concentration to obtain a second concentration difference value.

[0105] If the indoor gas concentration is less than or equal to the predicted concentration, it indicates that the indoor air purification situation is better than expected at the first verification time, and the indoor gas concentration can be reduced to below the expected value before the fresh air mode starts running. The second concentration difference is represented by C. 标 -C1, where C 标 For the purpose of predicting concentration, C1 represents the indoor gas concentration.

[0106] S32”: Calculate twice the ratio of the second concentration difference to the gas reduction rate to obtain the second time.

[0107] The formula for calculating the second time is:

[0108]

[0109] Where T2 is the second time, V is the gas descent rate, and C 标 -C1 represents the second concentration difference.

[0110] S33”: Shorten the running time of the fresh air mode by the second time.

[0111] Subtract the second time from the operating time of the fresh air mode to obtain the final operating time. The air conditioner runs continuously in fresh air mode from the current moment until the final operating time, during which time the indoor gas concentration is continuously monitored.

[0112] This embodiment adjusts the air conditioner's operating time in fresh air mode based on the relationship between the indoor gas concentration at the first verification time and the predicted concentration. If the indoor gas concentration is greater than the predicted concentration, it indicates that the air conditioner's air purification effect at the first verification time has not met expectations. Therefore, a first time is determined based on the indoor gas concentration, predicted concentration, and gas reduction rate, and the fresh air mode operating time is extended by the first time. If the indoor gas concentration is greater than the predicted concentration, and the current wind speed is less than the maximum wind speed, it indicates that the air conditioner's air purification efficiency can be improved. The current wind speed is adjusted to the desired wind speed based on the concentration range corresponding to the indoor gas concentration; the higher the indoor gas concentration, the higher the desired wind speed, thereby ensuring energy saving and emission reduction while maintaining the efficiency of indoor gas concentration regulation. If the indoor gas concentration is less than the predicted concentration, it indicates that the air conditioner's air purification effect at the first verification time has exceeded expectations. Therefore, a second time is determined based on the indoor gas concentration, predicted concentration, and gas reduction rate, and the fresh air mode operating time is subtracted from the second time, thereby ensuring high indoor air purification efficiency while avoiding prolonged operation of the air conditioner in fresh air mode, achieving energy saving and emission reduction.

[0113] Example 3

[0114] like Figure 3 As shown in this embodiment, an indoor gas concentration detection method in a fresh air mode is provided. The detection of indoor gas concentration includes:

[0115] S111: Obtain the performance parameters of the air conditioner and determine the size of the indoor space based on the performance parameters.

[0116] The performance parameters of an air conditioner include its cooling capacity. In this embodiment, the air conditioner's horsepower is used to measure its cooling capacity. The air conditioner's horsepower corresponds one-to-one with the size of the indoor space. For example, a 1-horsepower air conditioner corresponds to an indoor space of 10 cubic meters.

[0117] S112: Input the indoor space size into the fresh air prediction model to calculate the detection time interval.

[0118] This example uses a detection time interval of 1 hour calculated by the fresh air prediction model.

[0119] S113: Detect the gas concentration in multiple directions at the specified detection time interval.

[0120] The room is divided into three levels: a high level, a middle level, and a low level. The gas concentration in each level is measured.

[0121] S114: The multi-directional gas concentrations are weighted and summed to obtain the indoor gas concentration.

[0122] The gas concentration weights for each location are determined based on gas density. If the gas density is high, the gas will sink, resulting in a higher weight for the lower-level spaces and a lower weight for the upper and middle-level spaces. Conversely, if the gas density is low, the gas will rise, resulting in a higher weight for the upper-level spaces and a lower weight for the middle and lower-level spaces. Preferably, the sum of the gas concentration weights for the upper, middle, and lower-level spaces is 1.

[0123] As an example, if the indoor carbon dioxide content is high and the indoor gas density is high, then the gas concentration weight for the upper floors is set to 0.5, and the gas concentration weights for the middle and lower floors are both set to 0.25. The indoor gas concentration is then calculated by multiplying the gas concentration of the upper floors by 0.5, the gas concentration of the middle floors by 0.25, and the gas concentration of the lower floors by 0.25, and finally summing the products of the gas concentration weights for each type of space.

[0124] The calculation of the gas growth rate based on the indoor gas concentration includes:

[0125] S115: Obtain the indoor gas concentration at the current moment and the indoor gas concentration at the previous moment.

[0126] S116: Subtract the indoor gas concentration at the current moment from the indoor gas concentration at the previous moment to obtain the third concentration difference value.

[0127] S117: Subtract the previous time from the current time to obtain the time difference.

[0128] S118: Divide the third concentration difference by the time difference to obtain the gas growth rate.

[0129] This embodiment uses a linear model to calculate the gas growth rate, which is the uniform change in indoor gas concentration from the previous moment to the current moment. Detecting the indoor gas concentration at the current moment and the previous moment, as well as the concentration at both moments, requires only two subtraction operations and one division operation to obtain the gas growth rate. Using a linear model to calculate the gas growth rate is computationally efficient.

[0130] This embodiment detects the gas concentration in multiple directions within an indoor space and performs a weighted summation of these concentrations. Since different gases have different densities, the weights for gas concentrations in the upper, middle, and lower levels of the room differ. Therefore, the weighted summation method can accurately calculate the indoor gas concentration based on the multi-directional gas concentrations. Calculating the gas growth rate using a linear model requires only two subtraction operations and one division operation, resulting in high computational efficiency.

[0131] Example 4

[0132] like Figure 4 As shown in this embodiment, an indoor gas concentration detection method in a fresh air mode is provided. Before inputting the indoor space size into the fresh air prediction model, the method further includes:

[0133] S111': Acquire sample data, preprocess 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.

[0134] Indoor gas concentration, gas growth rate, current wind speed, and detection time interval are obtained for different indoor space sizes. Preferably, different areas of the indoor space are marked. For example, if the total height of the indoor space is 3 meters, the 0-1 meter area is marked as the low-level space, the 1-2 meter area as the mid-level space, and the 2-3 meter area as the high-level space.

[0135] The sample data may contain inconsistent dimensions, missing values, and / or outliers. For inconsistent dimensions, normalization is performed using extreme value normalization. If the sample data contains missing values, interpolation or similarity filling is used. If the sample data contains outliers, the outliers are deleted or replaced.

[0136] S112': Input the training data into the prediction model to be trained for prediction and obtain the output result.

[0137] The prediction model to be trained is a BP (Back Propagation) neural network, an FNN (Feedforward neural network), a CNN (Convolutional Neural Networks), or an RCNN (Region-based Convolutional Neural Network).

[0138] This embodiment takes a backpropagation (BP) neural network with two hidden layers as an example. The training data is input into the input layer of the BP neural network, and then passes through the two hidden layers for nonlinear operations. Finally, the output layer of the BP neural network produces the output result.

[0139] S113': Calculate the difference between the output result and the target output to obtain the output error.

[0140] The loss function is used to measure the difference between the output and the target output. The loss function can be MSE (Mean Square Error), MAE (Mean Absolute Error), or cross-entropy loss function, and there is no limitation here.

[0141] The output error is negatively correlated with the prediction accuracy of the training prediction model; that is, the smaller the output error, the higher the prediction accuracy of the training prediction model.

[0142] S114': If the output error is less than or equal to the output error threshold, then stop training and obtain the fresh air prediction model.

[0143] If the output error is less than or equal to the output error threshold, it means that the performance of the prediction model and the model parameters, such as the weight matrix and bias matrix, meet expectations. Training is then stopped, and the fresh air prediction model is obtained.

[0144] After detecting whether the indoor gas concentration is greater than or equal to the gas concentration threshold, the method further includes:

[0145] If the indoor gas concentration is less than the gas concentration threshold, the indoor gas concentration is detected in real time.

[0146] At the initial moment, the indoor gas concentration is close to the gas concentration threshold. From the initial moment, the indoor gas concentration increases over time. Therefore, it is necessary to detect the indoor gas concentration in real time. When the indoor gas concentration is greater than or equal to the gas concentration threshold, the air conditioner is controlled to enter the fresh air mode.

[0147] The step of extending the operating time of the fresh air mode for a first time and detecting the indoor gas concentration includes:

[0148] S31: Obtain the standard running time, add the first time to the standard running time, and obtain the estimated running time.

[0149] Since the indoor gas concentration at the first verification moment was higher than the predicted concentration, the air conditioner's effect on purifying indoor air in fresh air mode was poor. Continuing to operate the air conditioner in fresh air mode according to the standard operating time could not meet the demand for purifying indoor air. Therefore, the operating time of fresh air mode was added to the first verification moment to obtain the estimated operating time. The estimated operating time is longer than the operating time of fresh air mode, which can better purify indoor air.

[0150] S32: Detect whether the air conditioner is running in the fresh air mode for the estimated running time; if not, control the air conditioner to run in the fresh air mode.

[0151] If the air conditioner is running in fresh air mode for the estimated time, you can control it to exit fresh air mode, switch it to cooling or heating mode, or stop it from running.

[0152] If the air conditioner does not run for the expected time in fresh air mode, then control the air conditioner to continue running in fresh air mode.

[0153] S33: Calculate the average of the first verification time and the first time to obtain the third verification time.

[0154] The first verification time is denoted as T. 半 The first time point is represented as T1, and the third time point is represented as...

[0155] S34: Detect the indoor gas concentration at the third verification time.

[0156] At the third verification moment, the indoor gas concentration is detected, the current wind speed is obtained, and it is checked whether the indoor gas concentration at the third verification moment matches the current wind speed. If they do not match, the current wind speed is adjusted to the desired wind speed according to the concentration range corresponding to the indoor gas concentration.

[0157] In this embodiment, training is stopped if the output error is less than or equal to the output error threshold during the training process of the prediction model. By setting the output error threshold, training can be stopped once the prediction model meets expectations, avoiding both insufficient training runs leading to low prediction accuracy and excessive training runs leading to overfitting.

[0158] Example 5

[0159] This embodiment provides an electronic device, which includes a memory and a processor.

[0160] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0161] Memory can include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices.

[0162] The memory stores executable code, which, when processed by the processor, can cause the processor to execute some or all of the methods described above.

[0163] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this application. Any specific values ​​in all examples shown and discussed herein should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following figures denote similar items; therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0164] In the description of this application, it should be understood that the orientation or positional relationship indicated by directional terms such as "front, back, up, down, left, right", "horizontal, vertical, horizontal" and "top, bottom" is usually based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing this application and simplifying the description. Unless otherwise stated, these directional terms do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the scope of protection of this application; the directional terms "inner" and "outer" refer to the inner and outer contours relative to the outline of each component itself.

[0165] For ease of description, spatial relative terms such as "above," "on top of," "on the upper surface of," "above," etc., are used herein to describe the spatial positional relationship of a device or feature as shown in the figures to other devices or features. It should be understood that spatial relative terms are intended to encompass different orientations in use or operation beyond the orientation of the device as described in the figures. For example, if the device in the figures were inverted, a device described as "above" or "on top of" other devices or structures would subsequently be positioned as "below" or "under" other devices or structures. Thus, the exemplary term "above" can include both "above" and "below." The device may also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatial relative descriptions used herein will be interpreted accordingly.

[0166] Furthermore, it should be noted that the use of terms such as "first" and "second" to define components is merely for the purpose of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore cannot be construed as limiting the scope of protection of this application.

[0167] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for detecting indoor gas concentration in a fresh air mode, characterized in that, include: The detection start time is determined based on the gas growth rate of indoor gas, and the indoor gas concentration is detected in real time from the detection start time; the indoor gas concentration is detected multiple times before the detection start time. If the indoor gas concentration is greater than or equal to the gas concentration threshold, the air conditioner is controlled to enter the fresh air mode, and the indoor gas concentration is compared with the predicted concentration at the first verification moment. If the indoor gas concentration is greater than the predicted concentration, and the current wind speed is the maximum wind speed, then the operation time of the fresh air mode will be extended for a first time, and the indoor gas concentration will be detected. The determination of the detection start time based on the gas growth rate of indoor gas includes: Detect the indoor gas concentration and calculate the gas growth rate based on the indoor gas concentration; The target time for reaching the gas concentration threshold is predicted based on the gas growth rate. The time interval corresponding to the target time is determined based on the detection time interval, and the time interval is used to determine the time sub-intervals using the bisection method. The starting time of the time sub-interval in which the target time is located is taken as the detection start time.

2. The method for detecting indoor gas concentration in fresh air mode according to claim 1, characterized in that, Before extending the operating time of the fresh air mode by the first time, it also includes: Subtract the predicted concentration from the indoor gas concentration to obtain the first concentration difference; The first time is obtained by calculating twice the ratio of the first concentration difference to the gas decreasing rate.

3. The method for detecting indoor gas concentration in fresh air mode according to claim 1, characterized in that, 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 greater than the predicted concentration and the current wind speed is less than the maximum wind speed, then the current wind speed is adjusted to the desired wind speed according to the concentration range corresponding to the indoor gas concentration; wherein, the desired wind speed is positively correlated with the indoor gas concentration. A second verification time is obtained, and the indoor gas concentration is detected at the second verification time; wherein the second verification time is greater than the first verification time.

4. The method for detecting indoor gas concentration in fresh air mode according to claim 2, characterized in that, 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 less than the predicted concentration, then the indoor gas concentration is subtracted from the predicted concentration to obtain a second concentration difference. The second time is obtained by calculating twice the ratio of the second concentration difference to the gas decreasing rate; The second time is shortened by reducing the running time of the fresh air mode.

5. The method for detecting indoor gas concentration in fresh air mode according to claim 1, characterized in that, The detection of indoor gas concentration includes: Obtain the performance parameters of the air conditioner, and determine the indoor space size based on the performance parameters; The indoor space size is input into the fresh air prediction model to calculate the detection time interval; Detect gas concentrations in multiple directions at the specified detection time intervals; The indoor gas concentration is obtained by weighted summation of the multi-directional gas concentrations.

6. The method for detecting indoor gas concentration in fresh air mode according to claim 1, characterized in that, The calculation of the gas growth rate based on the indoor gas concentration includes: Obtain the current indoor gas concentration and the previous indoor gas concentration; The third concentration difference is obtained by subtracting the indoor gas concentration at the current moment from the indoor gas concentration at the previous moment. Subtract the previous time from the current time to obtain the time difference; Dividing the third concentration difference by the time difference yields the gas growth rate.

7. The method for detecting indoor gas concentration in fresh air mode according to claim 5, characterized in that, Before inputting the indoor space size into the fresh air prediction model, the method further includes: Acquire sample data, preprocess 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 training data is input into the prediction model to be trained for prediction, and the output result is obtained. The difference between the output result and the target output is calculated to obtain the output error; If the output error is less than or equal to the output error threshold, then training is stopped, and the fresh air prediction model is obtained. 8.The method of claim 1, wherein, The step of extending the operating time of the fresh air mode for a first time and detecting the indoor gas concentration includes: Obtain the standard running time, and add the first time to the standard running time to obtain the estimated running time; The system detects whether the air conditioner is running in the fresh air mode for the estimated running time; if not, it controls the air conditioner to run in the fresh air mode. Calculate the average of the first verification time and the first time to obtain the third verification time; The indoor gas concentration is detected at the third verification time.

9. An electronic device, comprising: include: processor; as well as A memory storing executable code, which, when executed by the processor, causes the processor to perform the indoor gas concentration detection method in the fresh air mode according to any one of claims 1-8.

Citation Information

Patent Citations

  • Air conditioner and control method and device for dust sensor in air conditioner

    CN107504637A

  • Air purification device and air conditioner

    CN210485989U