CN115468988B - TVOC gas detection method, terminal and storage medium - Google Patents

TVOC gas detection method, terminal and storage medium Download PDF

Info

Publication number
CN115468988B
CN115468988B CN202211065121.5A CN202211065121A CN115468988B CN 115468988 B CN115468988 B CN 115468988B CN 202211065121 A CN202211065121 A CN 202211065121A CN 115468988 B CN115468988 B CN 115468988B
Authority
CN
China
Prior art keywords
tvoc
value
gas concentration
sensitive element
resistance value
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.)
Active
Application number
CN202211065121.5A
Other languages
Chinese (zh)
Other versions
CN115468988A (en
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.)
Zhuhai Deruntang Electronic Technology Co ltd
Original Assignee
Zhuhai Deruntang Electronic Technology Co ltd
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 Zhuhai Deruntang Electronic Technology Co ltd filed Critical Zhuhai Deruntang Electronic Technology Co ltd
Priority to CN202211065121.5A priority Critical patent/CN115468988B/en
Publication of CN115468988A publication Critical patent/CN115468988A/en
Application granted granted Critical
Publication of CN115468988B publication Critical patent/CN115468988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/02Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance
    • G01N27/04Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance
    • G01N27/12Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance of a solid body in dependence upon absorption of a fluid; of a solid body in dependence upon reaction with a fluid, for detecting components in the fluid
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A50/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE in human health protection, e.g. against extreme weather
    • Y02A50/20Air quality improvement or preservation, e.g. vehicle emission control or emission reduction by using catalytic converters

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Investigating Or Analyzing Materials By The Use Of Fluid Adsorption Or Reactions (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Electrochemistry (AREA)
  • Immunology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Biochemistry (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Pathology (AREA)
  • Chemical Kinetics & Catalysis (AREA)

Abstract

The invention discloses a tVOC gas detection method, a terminal and a storage medium, comprising the following steps: the resistance value of tVOC sensitive elements in the detection equipment is monitored at fixed time, the resistance value is read in real time, and software filtering is carried out according to the resistance value, so that a real-time value R1 of tVOC gas concentration level is obtained; according to whether clean air can be introduced into the tVOC sensitive element, determining a learning algorithm to obtain a reference value R0 of tVOC gas concentration level; the learning algorithm comprises an active learning mode or a passive learning mode. And calculating according to the reference value R0 of the tVOC gas concentration grade and the real-time value R1 of the tVOC gas concentration grade to obtain the ratio, and judging the current tVOC gas concentration grade according to the ratio. The invention can effectively solve the problem that the existing tVOC gas detection technology cannot truly reflect the tVOC concentration grade of the environment in the continuous high-concentration tVOC environment.

Description

TVOC gas detection method, terminal and storage medium
Technical Field
The invention relates to the field of indoor gas detection, in particular to a tVOC gas detection method, a terminal and a storage medium.
Background
TVOC (Total Volatile Organic Compounds) is short for total volatile organic compounds, which is one of three types of organic matters with serious influence on indoor air quality pollution, namely organic matters with saturated vapor pressure exceeding 133.32Pa at room temperature, the boiling point of the organic matters is 50-250 ℃, the organic matters can be evaporated at the room temperature and exist in the air, and the toxicity, the irritation, the carcinogenicity and the special odor of the organic matters can influence skin and mucous membrane and cause acute damage to human bodies. The World Health Organization (WHO), national academy of sciences/national institute of research (NAS/NRC), and the like have emphasized tVOC as an important class of air pollutants.
TVOC are mainly sourced outdoors, mainly from fuel combustion and transportation: in the interior, there are almost thousands of kinds of smoke mainly from combustion products such as coal and natural gas, smoking, heating and cooking, adhesives, paints, boards, wallpaper and the like in building and decorative materials, and emissions of furniture, household appliances, furniture, cleaners and human bodies. tVOC is mainly derived from paints, coatings and adhesives during interior decoration. The indoor tVOC concentration is usually between 0.2mg/m 3 and 2mg/m 3, which can be even tens of times higher in improper finishing operations.
TVOC have a pungent odor and some compounds are genotoxic. tVOC can cause organism immunity level disorder, influence central nervous system function, and present subjective symptoms such as dizziness, headache, somnolence, weakness, chest distress, etc.; it may also affect the digestive system, cause inappetence, nausea, etc., and seriously damage the liver and hematopoietic system, cause allergic reactions, etc. The vast majority of our day is left in the home, office, or other indoor environment. If the indoor air quality is poor, the number of easily-induced diseases is not great, and the lightest symptoms are headache, itching eyes, dyspnea, skin allergy, fatigue, vomiting and the like. The following five people are most easily poisoned by indoor polluted air: pregnant women, children, office white collar, elderly people, people with respiratory or cardiac problems.
Along with the improvement of living standard, people pay attention to the harm of tVOC gas to health, and the detected tVOC gas level is used for controlling the opening or closing of a fresh air system and a purifying system to be a common treatment mode. The existing tVOC gas detection device usually takes the average value of the environmental concentration in a period of time as the reference concentration, but the scheme cannot work in certain scenes, for example, some application environments with high tVOC concentration for a long time, such as home environments just finished with decorations, cannot truly reflect the tVOC grade of the current environment, so that the corresponding fresh air or the purification system cannot react in a linkage manner, and the tVOC gas concentration in the environment cannot be reduced. Under such an environment, the tVOC gas detection method in the prior art cannot be effectively linked with the fresh air system to perform air purification, and may cause harm to human health.
Accordingly, there is a need in the art for improvement.
Disclosure of Invention
The invention aims to solve the technical problem that the prior art has defects, and provides a tVOC gas detection method, a terminal and a storage medium, so as to solve the technical problem that the existing detection equipment cannot truly reflect the tVOC grade of the current environment.
The technical scheme adopted for solving the technical problems is as follows:
In a first aspect, the present invention provides a tVOC gas detection method, comprising:
The resistance value of tVOC sensitive elements in the detection equipment is monitored at fixed time, the resistance value is read in real time, and software filtering is carried out according to the resistance value, so that a real-time value R1 of tVOC gas concentration level is obtained;
According to whether clean air can be introduced into the tVOC sensitive element, determining a learning algorithm to obtain a reference value R0 of tVOC gas concentration level; the learning algorithm comprises an active learning mode or a passive learning mode.
And calculating according to the reference value R0 of the tVOC gas concentration grade and the real-time value R1 of the tVOC gas concentration grade to obtain the ratio, and judging the current tVOC gas concentration grade according to the ratio.
As a further improved technical scheme, the method for reading the resistance value in real time by monitoring the resistance value of tVOC sensitive elements in the detection equipment at fixed time comprises the following steps:
detecting the resistance value of the tVOC sensitive element at fixed time, and reading the resistance value in real time;
And writing the resistance values into an array for recording the resistance values of the tVOC sensitive elements in sequence.
As a further improved technical solution, the software filtering according to the resistance value to obtain a real-time value R1 of tVOC gas concentration levels includes:
And processing the data in the array recording the resistance value of the tVOC sensitive element according to a preset software filtering algorithm to obtain the real-time value R1 of the tVOC gas concentration level.
As a further improvement, the determining the learning algorithm according to whether the tVOC sensitive element can introduce clean air, to obtain the reference value R0 of tVOC gas concentration level includes:
Judging whether the detection equipment guides clean air to tVOC sensitive elements through fresh air or a purification system;
If the detection equipment guides clean air into tVOC sensitive elements through fresh air or a purification system, acquiring a reference value R0 through the passive learning mode;
and if the detection equipment does not guide clean air into the tVOC sensitive element, acquiring a reference value R0 in the active learning mode.
As a further improved technical solution, the obtaining the reference value R0 by the passive learning method includes:
starting the detection equipment to guide clean air into the tVOC sensitive element, and preparing to update a reference value;
the resistance value of the tVOC sensitive element is read at regular time, if the resistance value of the tVOC sensitive element is larger than or equal to the minimum value in the array for recording the tVOC sensitive element, the minimum value is deleted, and the resistance value of the tVOC sensitive element is written into the array;
if the resistance of the tVOC sensitive element is smaller than the minimum value in the array of the tVOC sensitive element, discarding the resistance of the tVOC sensitive element;
And averaging the data in the array to obtain the reference value R0 of the tVOC gas concentration level in a passive learning mode.
As a further improvement, the acquiring the reference value R0 by the active learning method includes:
the resistance value of the tVOC sensitive element is read at regular time, and the maximum resistance value in a preset period is recorded;
and processing an array for recording the resistance value of the tVOC sensitive element according to the working time of the tVOC sensitive element to obtain the reference value R0 of the tVOC gas concentration grade in an active learning mode.
As a further improvement, the reference value R0 of the tVOC gas concentration level in the active learning mode includes:
If the power-on time of the detection equipment is less than or equal to the preset time, directly writing the resistance value of the tVOC sensitive element into the array for recording the resistance value of the tVOC sensitive element, and obtaining a reference value R0 of the tVOC gas concentration level in the active learning mode by averaging non-0 data in the array;
If the power-on time of the detection equipment is longer than the preset time, deleting the earliest data in the array for recording the resistance value of the tVOC sensitive element, writing the resistance value of the tVOC sensitive element into the array, setting weights according to a preset rule, and taking an average value to obtain the reference value R0 of the tVOC gas concentration level in the active learning mode.
As a further improved technical solution, the calculating according to the reference value R0 of the tVOC gas concentration levels and the real-time value R1 of the tVOC gas concentration levels to obtain a ratio, and determining the current tVOC gas concentration level according to the ratio includes:
calculating according to the reference value R0 of the tVOC gas concentration level and the real-time value R1 of the tVOC gas concentration level to obtain the ratio;
and determining the tVOC gas concentration level in the current environment according to a preset tVOC gas concentration level standard and the ratio.
In a second aspect, the present invention also provides a terminal, including: a processor and a memory storing an execution program of the tVOC gas detection method, the execution program of the tVOC gas detection method being executed by the processor to implement the steps of the tVOC gas detection method as described in the first aspect.
In a third aspect, the present invention also provides a storage medium, which is a computer readable storage medium storing a program for executing the tVOC gas detection method, the program for executing the tVOC gas detection method being configured to implement the steps of the tVOC gas detection method according to the first aspect when executed by a processor.
The technical scheme adopted by the invention has the following effects:
According to the invention, the resistance value of the tVOC sensitive element in the detection equipment is monitored at fixed time, the resistance value is read in real time, software filtering is carried out according to the resistance value, accidental factors possibly causing result errors are eliminated, a real-time value which can more reflect the indoor real tVOC gas concentration environment is obtained, a reference value which is closer to clean air is obtained through a passive learning or active learning algorithm, the ratio of the reference value and the real-time value is used as the grade of tVOC gas concentration, and the grade can more accurately reflect the concentration of tVOC gas in the detection environment. According to the tVOC detection method provided by the invention, the tVOC concentration of clean air can be used as the reference concentration of the environment by means of the fresh air function or the air purification function, or the influence of short-time high concentration events on the reference concentration is reduced by calculation, so that the influence of the short-time high concentration events on the reference value can be avoided as far as possible in an application environment where the clean air cannot be led in linkage with the fresh air or the purification system, and the output grade can reflect the actual tVOC gas concentration of the environment as far as possible. The invention effectively solves the problem that the existing tVOC gas detection technology cannot truly reflect the tVOC concentration grade of the environment in the continuous high-concentration tVOC environment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a tVOC gas detection method in one implementation of the invention.
Fig. 2 is a functional schematic of a terminal in one implementation of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
In order that the application may be readily understood, a more complete description of the application will be rendered by reference to the appended drawings. The drawings illustrate preferred embodiments of the application. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Exemplary method
TVOC is short for total volatile organic compounds, and is one of three kinds of pollution which affects indoor air quality seriously. tVOC has pungent odor, and some compounds have genotoxicity, tVOC can cause organism immunity level disorder, influence central nervous system function, and have subjective symptoms such as dizziness, headache, somnolence, weakness, chest distress, etc.; it may also affect the digestive system, cause inappetence, nausea, etc., and seriously damage the liver and hematopoietic system, cause allergic reactions, etc. The vast majority of our day is left in the home, office, or other indoor environment. If the indoor air quality is poor, the number of easily-induced diseases is not great, and the lightest symptoms are headache, itching eyes, dyspnea, skin allergy, fatigue, vomiting and the like. The following five people are most easily poisoned by indoor polluted air: pregnant women, children, office white collar, elderly people, people with respiratory or cardiac problems.
Along with the improvement of living standard, people pay attention to the harm of tVOC gas to health, and the detected tVOC gas level is used for controlling the opening or closing of a fresh air system and a purifying system to be a common treatment mode. The existing tVOC gas detection device usually takes the average value of the environmental concentration in a period of time as the reference concentration, but the scheme cannot work in certain scenes, for example, some application environments with high tVOC concentration for a long time, such as home environments just finished with decorations, cannot truly reflect the tVOC grade of the current environment, so that the corresponding fresh air or the purification system cannot react in a linkage manner, and the tVOC gas concentration in the environment cannot be reduced. Under such an environment, the tVOC gas detection method in the prior art cannot be effectively linked with the fresh air system to perform air purification, and may cause harm to human health.
Aiming at the technical problems, the embodiment of the invention provides a tVOC gas detection method, which comprises the steps that the inventor reads the resistance value in real time and carries out software filtering to obtain a real-time value R1 by detecting the resistance value of a tVOC sensitive element at fixed time; the reference value R0 of tVOC gas concentration levels is obtained through an active learning or passive learning algorithm. And judging the current tVOC gas concentration level according to the ratio value calculated by the reference value R0 and the real-time value R1.
As shown in fig. 1, an embodiment of the present invention provides a tVOC gas detection method, including the following steps:
and step S100, the resistance value of a tVOC sensitive element in the detection equipment is monitored at fixed time, the resistance value is read in real time, and software filtering is carried out according to the resistance value, so that a real-time value R1 of tVOC gas concentration level is obtained.
Specifically, in one implementation manner of the present embodiment, the step S100 specifically includes the following steps:
Step S101, detecting the resistance value of the tVOC sensitive element at fixed time and reading the resistance value in real time;
step S102, the resistance values are sequentially written into an array for recording the resistance values of the tVOC sensitive elements.
Step S103, processing the data in the array recording the tVOC sensitive element resistance according to a preset software filtering algorithm to obtain the real-time value R1 of the tVOC gas concentration level.
In this embodiment, the tVOC gas detection method is based on a sensitive device whose resistance varies with tVOC gas, and after the detection device is powered on to start working, the resistance value of the tVOC sensitive element in the detection device is monitored at fixed time, the resistance value is read in real time, and the resistance real-time value R1 of the tVOC sensitive element is obtained through software filtering. In the present embodiment, the interval time of detection is set to 1 second, but is not limited to 1 second. The specific detection interval time can be correspondingly adjusted according to the speed of the change of the gas concentration in the practical application environment tVOC.
Three arrays for recording resistance data are preset and are used in the processes of software filtering, active learning and passive learning respectively, wherein the data length used in the software filtering and passive learning algorithm is set to be 10, and the array length used in the active learning algorithm is set to be 12.
Considering that errors occur due to the influence of accidental factors in the detection of tVOC gas concentration under most application scenes, after the resistance value of the tVOC sensitive element in the detection equipment is obtained, the resistance value is put into a preset array for recording resistance value data, and software filtering operation is carried out. Firstly, reading a resistance value m of tVOC sensitive elements, judging whether the working time of the detection equipment exceeds 10 seconds, if the working time does not exceed 10 seconds, directly writing the acquired resistance value m into an array RawData [10] for recording tVOC sensitive element resistance value data in sequence, and assigning m to a real-time value R1 of tVOC sensitive elements; when the working time exceeds 10 seconds, 10 data in an array RawData [10] of the resistance values of tVOC sensitive elements are recorded to have values, after the resistance value m of the tVOC sensitive element is read, the data written in the array at the earliest time is deleted, and the data is replaced by a new resistance value m. And removing the maximum value and the minimum value in the array RawData [10] to eliminate the influence of environmental accidental factors on the result, and averaging the rest data in the array to obtain the real-time value R1 of the tVOC sensitive element. Finally, outputting the result to obtain a real-time value R1 after software filtering.
The method has no requirement on faster data calculation speed for tVOC gas concentration measurement, so that the software filtering method can keep the real-time value near a certain value range, the measured value is more stable, and the situation of errors caused by the influence of accidental factors can be effectively avoided.
As shown in fig. 1, in one implementation manner of the embodiment of the present invention, the tVOC gas detection method further includes the following steps:
and step S200, determining a learning algorithm according to whether clean air can be introduced into the tVOC sensitive element, and obtaining a reference value R0 of tVOC gas concentration level.
Specifically, in one implementation manner of the present embodiment, the step S200 specifically includes the following steps:
Step S201, judging whether the detection equipment has led clean air into tVOC sensitive elements through a fresh air or purification system;
step S202, if the detection equipment has introduced clean air into tVOC sensitive elements through fresh air or a purification system, acquiring a reference value R0 through the passive learning mode;
In step S203, if the detection device does not introduce clean air to the sensing element tVOC, the reference value R0 is obtained by the active learning method.
Specifically, in one implementation manner of the present embodiment, step S202 specifically includes the following steps:
Step S202a, starting the detection equipment to guide clean air into the tVOC sensitive elements, and preparing to update the reference value;
Step S202b, regularly reading the resistance value of the tVOC sensitive element, if the resistance value of the tVOC sensitive element is larger than or equal to the minimum value in the array of the tVOC sensitive element, deleting the minimum value, and writing the resistance value of the tVOC sensitive element into the array;
Step S202c, discarding the resistance value of the tVOC sensitive element if the resistance value of the tVOC sensitive element is smaller than the minimum value in the array of tVOC sensitive elements;
step S202d, averaging the data in the array to obtain the reference value R0 of the tVOC gas concentration level in the passive learning mode.
In this embodiment, whether clean air can be introduced has a great influence on the final measurement result, so the manner of acquiring the reference value is determined by judging whether the detection device can introduce clean air to the tVOC sensitive element through the fresh air or the purification system.
If the detection equipment can guide clean air into tVOC sensitive elements through fresh air or a purification system, the reference value is obtained through a passive learning mode. When the device is in a state that can update tVOC the detection reference value, that is, the fresh air is introduced, the operation of the whole system is not affected, for example, the device is in a standby state, and the device is started to introduce clean air into tVOC sensitive elements, so that the reference value update is started. In this embodiment, the resistance n of tVOC sensors is read every 1 second, if n is greater than or equal to the minimum value in the array RawMax [10] of recorded tVOC sensors, the minimum value in RawMax [10] is deleted, and n is written into the array RawMax [10]; otherwise, the n value collected at this time is directly discarded.
When the update reference value start time satisfies a certain period of time, the period of time needs to ensure that the system introduces enough clean air at tVOC sensitive elements, and tVOC sensitive elements have enough resistance values which are stably output in a time, in this embodiment, 5 minutes is taken as an example, and appropriate adjustment can be performed according to the actual application environment. And averaging the data in the array RawMax [10] to obtain R0, outputting the R0 as a reference value of tVOC gas concentration grade, and stopping introducing clean air at the tVOC sensitive element.
Specifically, in one implementation manner of the present embodiment, step S203 specifically includes the following steps:
Step 203a, regularly reading the resistance value of the tVOC sensitive element, and recording the maximum resistance value in a preset period;
step 203b, processing the array recording the resistance value of the tVOC sensitive element according to the working time of the tVOC sensitive element to obtain a reference value R0 of the tVOC gas concentration level in an active learning mode;
step 203c, if the power-on time of the detection device is less than or equal to the preset time, directly writing the resistance value of the tVOC sensitive element into the array for recording the resistance value of the tVOC sensitive element, and obtaining a reference value R0 of the tVOC gas concentration level in the active learning mode by averaging the data which are not 0 in the array;
and step 203d, if the power-on time of the detection equipment is greater than the preset time, deleting the earliest data in the array for recording the resistance value of the tVOC sensitive element, writing the resistance value of the tVOC sensitive element into the array, setting weights according to a preset rule, and taking an average value to obtain the reference value R0 of the tVOC gas concentration level in the active learning mode.
If the detection equipment cannot guide clean air into tVOC sensitive elements through fresh air or a purification system, the reference value is obtained through an active learning mode. In this embodiment, the resistance n of tVOC sensor is read every 1 second, and the maximum n is max every 20 minutes of recording period. When the power-on time is less than or equal to 4 hours, directly writing the max value into an array RawMax [12] of the sensing element of the record tVOC in sequence, and averaging non-0 data in the array to obtain R0; when the power-on time is greater than 4 hours, the earliest recorded data in the array RawMax [12] is deleted, and the currently obtained max value is written into the array.
When the reference value is calculated by using the active learning mode, the weight setting is required according to the running time of the detection equipment, and the reference value R0 of the tVOC gas concentration level in the active learning mode is obtained by taking the average. For example, the data of the first 3 hours in the array RawMax [12] of the recorded resistance values is weighted by 0.9, the data of the last 1 hour is weighted by 0.1, and R0 is obtained by averaging. R0 is outputted as a reference value of tVOC gas concentration levels.
As shown in fig. 1, in one implementation manner of the embodiment of the present invention, the tVOC gas detection method further includes the following steps:
and step S300, calculating according to the reference value R0 of the tVOC gas concentration grades and the real-time value R1 of the tVOC gas concentration grades to obtain the ratio, and judging the current tVOC gas concentration grade according to the ratio.
Specifically, in one implementation manner of the present embodiment, the step S300 specifically includes the following steps:
Step S301, calculating according to the reference value R0 of the tVOC gas concentration level and the real-time value R1 of the tVOC gas concentration level to obtain the ratio;
Step S302, determining tVOC gas concentration level in the current environment according to preset tVOC gas concentration level standards and the ratio.
In this embodiment, according to the reference value R0 of tVOC gas concentration levels and the real-time value R1 of tVOC gas concentration levels obtained in the above steps, the value of R0/R1 is outputted to indicate tVOC gas concentration levels, and the ratio is higher, the gas concentration level is tVOC. The specific gas concentration levels can be correspondingly adjusted according to different practical application environments, and in the embodiment, when the ratio is smaller than or equal to 1.1, the gas concentration level of the environment tVOC is optimal; when the ratio is 1.1 to 1.15, the gas concentration level of the environment tVOC is good; at a ratio of 1.15 to 1.2, the ambient tVOC gas concentration level is medium; at ratios greater than 1.2, the ambient tVOC gas concentration levels were poor.
The actual tVOC gas concentration of the current environment can be reflected more truly according to the detected tVOC gas concentration level, and a user can further process the current environment according to the current tVOC gas concentration level.
The following technical effects are achieved through the technical scheme:
According to the embodiment, the resistance value of the tVOC sensitive element in the detection equipment is monitored at fixed time, the resistance value is read in real time, software filtering is carried out according to the resistance value, accidental factors possibly causing result errors are eliminated, a real value which can reflect the indoor real tVOC gas concentration environment is obtained, a reference value which is closer to clean air is obtained through a passive learning or active learning algorithm, the ratio of the reference value to the real value is used as the grade of tVOC gas concentration, and the grade can reflect the tVOC gas concentration in the detection environment more accurately. According to the tVOC detection method provided by the invention, the tVOC concentration of clean air can be used as the reference concentration of the environment by means of the fresh air function or the air purification function, or the influence of short-time high concentration events on the reference concentration is reduced by calculation, so that the influence of the short-time high concentration events on the reference value can be avoided as far as possible in an application environment where the clean air cannot be led in linkage with the fresh air or the purification system, and the output grade can reflect the actual tVOC gas concentration of the environment as far as possible. The invention effectively solves the problem that the existing tVOC gas detection technology cannot truly reflect the tVOC concentration grade of the environment in the continuous high-concentration tVOC environment.
Exemplary apparatus
Based on the above embodiment, the present invention further provides a terminal, including: the system comprises a processor, a memory, an interface, a display screen and a communication module which are connected through a system bus; wherein the processor is configured to provide computing and control capabilities; the memory includes a storage medium and an internal memory; the storage medium stores an operating system and a computer program; the internal memory provides an environment for the operation of the operating system and computer programs in the storage medium; the interface is used for connecting external equipment, such as mobile terminals, computers and other equipment; the display screen is used for displaying corresponding information; the communication module is used for communicating with a cloud server or a mobile terminal.
The computer program is configured to implement the steps of a tVOC gas detection method when executed by the processor.
It will be appreciated by those skilled in the art that the functional block diagram shown in fig. 2 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the terminal to which the present inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a terminal is provided, including: a processor and a memory storing an execution program of the tVOC gas detection method, which execution program of the tVOC gas detection method, when executed by the processor, is configured to implement the steps of the tVOC gas detection method as described above.
In one embodiment, a storage medium is provided, wherein the storage medium stores a program for executing the tVOC gas detection method, and the program for executing the tVOC gas detection method is configured to implement the steps of the tVOC gas detection method as described above when executed by the processor.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program comprising instructions for the relevant hardware, the computer program being stored on a non-volatile storage medium, the computer program when executed comprising the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory.
In summary, the present invention provides a tVOC gas detection method, a terminal, and a storage medium, including: the resistance value of tVOC sensitive elements in the detection equipment is monitored at fixed time, the resistance value is read in real time, and software filtering is carried out according to the resistance value, so that a real-time value R1 of tVOC gas concentration level is obtained; according to whether clean air can be introduced into the tVOC sensitive element, determining a learning algorithm to obtain a reference value R0 of tVOC gas concentration level; the learning algorithm comprises an active learning mode or a passive learning mode. And calculating according to the reference value R0 of the tVOC gas concentration grade and the real-time value R1 of the tVOC gas concentration grade to obtain the ratio, and judging the current tVOC gas concentration grade according to the ratio. The invention can effectively solve the problem that the existing tVOC gas detection technology cannot truly reflect the tVOC concentration grade of the environment in the continuous high-concentration tVOC environment.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (6)

1. A method of tVOC gas detection, comprising:
The resistance value of tVOC sensitive elements in the detection equipment is monitored at fixed time, the resistance value is read in real time, and software filtering is carried out according to the resistance value, so that a real-time value R1 of tVOC gas concentration level is obtained;
According to whether clean air can be introduced into the tVOC sensitive element, determining a learning algorithm to obtain a reference value R0 of tVOC gas concentration level; the learning algorithm comprises an active learning mode or a passive learning mode;
Calculating according to the reference value R0 of the tVOC gas concentration grades and the real-time value R1 of the tVOC gas concentration grades to obtain a ratio value, and judging the current tVOC gas concentration grade according to the ratio value;
Determining a learning algorithm according to whether clean air can be introduced into the tVOC sensitive element to obtain a reference value R0 of tVOC gas concentration level, including: judging whether the detection equipment guides clean air to tVOC sensitive elements through fresh air or a purification system; if the detection equipment guides clean air into tVOC sensitive elements through fresh air or a purification system, acquiring a reference value R0 through the passive learning mode; if the detection equipment does not guide clean air into the tVOC sensitive element, acquiring a reference value R0 in the active learning mode;
The obtaining the reference value R0 through the passive learning mode includes:
Starting the detection equipment to guide clean air into the tVOC sensitive element to update a reference value;
The resistance value of the tVOC sensitive element is read at regular time, if the resistance value of the tVOC sensitive element is larger than or equal to the minimum value in the array for recording the tVOC sensitive element, the minimum value is deleted, and the resistance value of the tVOC sensitive element is written into the array; if the resistance of the tVOC sensitive element is smaller than the minimum value in the array of the tVOC sensitive element, discarding the resistance of the tVOC sensitive element; averaging the data in the array to obtain a reference value R0 of the tVOC gas concentration level in a passive learning mode;
The acquiring the reference value R0 through the active learning mode includes:
the resistance value of the tVOC sensitive element is read at regular time, and the maximum resistance value in a preset period is recorded; processing an array for recording the resistance value of the tVOC sensitive element according to the working time of the tVOC sensitive element to obtain a reference value R0 of the tVOC gas concentration grade in an active learning mode;
the reference value R0 of the tVOC gas concentration level in the active learning mode includes:
if the power-on time of the detection equipment is less than or equal to the preset time, writing the resistance value of the tVOC sensitive element into the array for recording the resistance value of the tVOC sensitive element, and obtaining a reference value R0 of the tVOC gas concentration level in the active learning mode by averaging data which are not 0 in the array;
If the power-on time of the detection equipment is longer than the preset time, deleting the earliest data in the array for recording the resistance value of the tVOC sensitive element, writing the resistance value of the tVOC sensitive element into the array, setting weights according to a preset rule, and taking an average value to obtain the reference value R0 of the tVOC gas concentration level in the active learning mode.
2. The method for detecting the gas at tVOC of claim 1, wherein the step of reading the resistance value in real time by periodically monitoring the resistance value of the sensing element tVOC in the detecting device comprises:
detecting the resistance value of the tVOC sensitive element at fixed time, and reading the resistance value in real time;
And writing the resistance values into an array for recording the resistance values of the tVOC sensitive elements in sequence.
3. The method according to claim 1, wherein said software filtering according to said resistance value to obtain a real-time value R1 of tVOC gas concentration level comprises:
And processing the data in the array recording the resistance value of the tVOC sensitive element according to a preset software filtering algorithm to obtain the real-time value R1 of the tVOC gas concentration level.
4. The tVOC gas detection method according to claim 1, wherein calculating the ratio between the reference value R0 of the tVOC gas concentration level and the real-time value R1 of the tVOC gas concentration level to determine the current tVOC gas concentration level according to the ratio comprises:
calculating according to the reference value R0 of the tVOC gas concentration level and the real-time value R1 of the tVOC gas concentration level to obtain the ratio;
and determining the tVOC gas concentration level in the current environment according to a preset tVOC gas concentration level standard and the ratio.
5. A terminal, comprising: a processor and a memory storing an execution program of the tVOC gas detection method, the execution program of the tVOC gas detection method being executed by the processor to implement the steps of the tVOC gas detection method as claimed in any one of claims 1 to 4.
6. A computer-readable storage medium storing a program for executing the tVOC gas detection method, the program for executing the tVOC gas detection method being for implementing the steps of the tVOC gas detection method according to any one of claims 1 to 4 when executed by a processor.
CN202211065121.5A 2022-09-01 2022-09-01 TVOC gas detection method, terminal and storage medium Active CN115468988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211065121.5A CN115468988B (en) 2022-09-01 2022-09-01 TVOC gas detection method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211065121.5A CN115468988B (en) 2022-09-01 2022-09-01 TVOC gas detection method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN115468988A CN115468988A (en) 2022-12-13
CN115468988B true CN115468988B (en) 2024-06-11

Family

ID=84369034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211065121.5A Active CN115468988B (en) 2022-09-01 2022-09-01 TVOC gas detection method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115468988B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009229225A (en) * 2008-03-21 2009-10-08 Toyota Motor Corp Gas concentration detection apparatus
CN206207663U (en) * 2016-08-31 2017-05-31 宁波祈禧智能科技股份有限公司 A kind of gas-detecting device of air purifier
CN112611796A (en) * 2020-12-28 2021-04-06 北京首创大气环境科技股份有限公司 Regional TVOC array monitoring system
CN214278084U (en) * 2020-12-31 2021-09-24 广州奥松电子有限公司 Air quality detection system
CN114216938A (en) * 2022-02-23 2022-03-22 浙江正泰仪器仪表有限责任公司 Gas concentration detection compensation method and device
CN114357894A (en) * 2022-03-11 2022-04-15 阿里巴巴达摩院(杭州)科技有限公司 Atmospheric pollutant processing method, storage medium and computer terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5748211B2 (en) * 2011-05-26 2015-07-15 フィガロ技研株式会社 Gas detection device and gas detection method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009229225A (en) * 2008-03-21 2009-10-08 Toyota Motor Corp Gas concentration detection apparatus
CN206207663U (en) * 2016-08-31 2017-05-31 宁波祈禧智能科技股份有限公司 A kind of gas-detecting device of air purifier
CN112611796A (en) * 2020-12-28 2021-04-06 北京首创大气环境科技股份有限公司 Regional TVOC array monitoring system
CN214278084U (en) * 2020-12-31 2021-09-24 广州奥松电子有限公司 Air quality detection system
CN114216938A (en) * 2022-02-23 2022-03-22 浙江正泰仪器仪表有限责任公司 Gas concentration detection compensation method and device
CN114357894A (en) * 2022-03-11 2022-04-15 阿里巴巴达摩院(杭州)科技有限公司 Atmospheric pollutant processing method, storage medium and computer terminal

Also Published As

Publication number Publication date
CN115468988A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN110426490B (en) Temperature and humidity drift compensation method and device for harmful gas online monitor
US20120203461A1 (en) Method and device for environmental monitoring
CN106037023B (en) A kind of control method of electronic cigarette, system and electronic cigarette
WO2011090763A2 (en) Multimodal climate sensor network
EP2985540B1 (en) Air environment regulating system, and controlling device
CN107063355A (en) A kind of air quality detection system and its detection method based on multi-sensor information fusion
CN115468988B (en) TVOC gas detection method, terminal and storage medium
Taştan A low-cost air quality monitoring system based on Internet of Things for smart homes
KR101893542B1 (en) Method , apparatus, program, and computer-readable recording medium for cleaning air
CN110579570B (en) Indoor formaldehyde pollution level dynamic monitoring method, device and system
Maduranga et al. Design of an IoT based indoor air quality monitoring system
CN113137725A (en) Device control method, device, electronic device and storage medium
CN116008145A (en) Catering industry oil smoke emission monitored control system based on thing networking
CN113883616A (en) Pipeline fresh air humidity control method
CN114992790A (en) Prompting method and device, electronic equipment and storage medium
Kovacs et al. IoT and Machine Learning-Based System for Predicting, Monitoring and Controlling Indoor Air Quality
Tong et al. Design of air quality monitoring system based on light scattering sensor
Liu et al. Design of formaldehyde concentration detection system for smart home based on stm32 controller
Sarma et al. Design and development of a relative humidity and room temperature measurement system with on line data logging feature for monitoring the fermentation room of tea factory
Kong Design and Implementation of Indoor Environment Parameter Monitoring System for Smart Home
JP2010026634A (en) In-home probability calculation device and method
Komarudin et al. Improving Low-Cost Carbon Dioxide Sensor Accuracy for Environmental Air Quality Monitoring Systems
Akbaba et al. Design and Implementation of Iot Based Remote Indoor Air Quality Monitoring System
CN112902248B (en) Smoke stove linkage method, system, equipment and readable storage medium
Azahar et al. IoT-based air quality device for smart pollution monitoring

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
GR01 Patent grant
GR01 Patent grant