CN109030715B - Indoor human body detection method - Google Patents

Indoor human body detection method Download PDF

Info

Publication number
CN109030715B
CN109030715B CN201710431486.8A CN201710431486A CN109030715B CN 109030715 B CN109030715 B CN 109030715B CN 201710431486 A CN201710431486 A CN 201710431486A CN 109030715 B CN109030715 B CN 109030715B
Authority
CN
China
Prior art keywords
carbon dioxide
indoor space
sensors
dioxide concentration
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
CN201710431486.8A
Other languages
Chinese (zh)
Other versions
CN109030715A (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.)
Elitegroup Computer Systems Co Ltd
Original Assignee
Elitegroup Computer Systems 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 Elitegroup Computer Systems Co Ltd filed Critical Elitegroup Computer Systems Co Ltd
Priority to CN201710431486.8A priority Critical patent/CN109030715B/en
Publication of CN109030715A publication Critical patent/CN109030715A/en
Application granted granted Critical
Publication of CN109030715B publication Critical patent/CN109030715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/0027General constructional details of gas analysers, e.g. portable test equipment concerning the detector
    • G01N33/0036Specially adapted to detect a particular component
    • G01N33/004Specially adapted to detect a particular component for CO, CO2
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/0062General constructional details of gas analysers, e.g. portable test equipment concerning the measuring method, e.g. intermittent, or the display, e.g. digital
    • G01N33/0067General constructional details of gas analysers, e.g. portable test equipment concerning the measuring method, e.g. intermittent, or the display, e.g. digital by measuring the rate of variation of the concentration
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V11/00Prospecting or detecting by methods combining techniques covered by two or more of main groups G01V1/00 - G01V9/00

Abstract

The invention relates to a method for detecting indoor human bodies, which detects the change of indoor carbon dioxide by a device for detecting carbon dioxide to judge whether people exist indoors, and can detect whether people exist to track, monitor or start certain specific functions and protect the privacy of the people by adopting the method for detecting carbon dioxide, which is different from the traditional method for detecting whether people exist indoors.

Description

Indoor human body detection method
Technical Field
The invention relates to a method for detecting indoor human bodies, in particular to a method for judging whether people exist indoors according to the variation of indoor carbon dioxide.
Background
Since decades ago, people developed sensors to know whether people exist in a space, which could be used in disaster relief sites, security monitoring, personnel tracking, and even to improve service quality, and due to their wide application, they have been continuously studied to improve their accuracy and stability.
The conventional method for detecting whether a person exists in an indoor space includes installing an infrared sensing device, installing a photographing lens, installing a gas sensor, and the like to determine whether a person exists in an indoor space.
The existing infrared sensing device detects whether a person exists in an indoor space and is usually matched with a temperature detection and movement detection technology, although infrared rays are invisible light, the existing infrared sensing device still cannot detect whether the person exists due to the fact that other objects capable of isolating light conduction block the object, if the person utilizes the object to cover and block infrared radiation or the movement range is too small, the existing infrared sensing device cannot detect whether the indoor space exists, in addition, the existing infrared sensing device must be arranged at the position of a direct or refraction receiving infrared light source, and otherwise, the problem of receiving exists.
The camera lens is used for judging by combining an image processing and identifying technology, but there is a dispute of infringing the privacy right, and image data shot by the camera lens is taken away by a malicious person, so that the camera lens is possibly used for improper use, and the problems of personal reputation damage, money loss and the like are caused.
The existing gas sensor comprises a probe type gas sensor and a safety alarm device sensor used in a home environment, wherein the probe type sensor is used for an operator to insert a probe needle into a pre-detection space and detect a carbon dioxide concentration value of the probe needle to judge whether a person is present, the mode is not suitable for long-time continuous detection and lacks convenience and instantaneity, the safety alarm sensor used at home is usually set with an appointed carbon dioxide concentration value, when the carbon dioxide concentration value detected by the gas sensor exceeds the appointed value, an alarm is given out or preset work is started, although the doubtful of infringing the privacy can be avoided, the function is single, and the mobility of indoor persons cannot be judged.
Therefore, if a method capable of protecting personal privacy and improving the accuracy of detecting whether a person is in an indoor space is provided, the method can improve security, prevent accidents, prevent malicious intrusion, improve service quality, and the like, and can better meet the actual requirements at present.
Disclosure of Invention
The present invention provides a method for detecting a person in a room, which improves the accuracy of detecting whether a person is in the room.
The secondary objective of the present invention is to provide a method for detecting a person in a room, which uses a gas sensor to detect whether a person is in the room, so as to protect the privacy of the person.
Another objective of the present invention is to provide a method for detecting people in a room, which can continuously detect whether people are in the room, and analyze the mobility of the people in the room by analyzing the change of the carbon dioxide concentration.
In order to achieve the above object, an embodiment of the present invention discloses a method for indoor human body detection, which includes the steps of: a sensor detects a carbon dioxide concentration initial value of an indoor space, after a first time section, the sensor detects a carbon dioxide concentration final value of the indoor space, an electronic device calculates an overall concentration variation according to the received carbon dioxide concentration initial value and the received carbon dioxide concentration final value of the sensor, and finally the electronic device judges whether the indoor space is occupied according to the positive and negative of the overall concentration variation, judges whether the indoor space is occupied when the overall concentration variation is positive, and judges that the indoor space is unoccupied when the overall concentration variation is negative.
In an embodiment of the present invention, before the step of detecting a final carbon dioxide concentration value of the indoor space by the sensor, the method further includes detecting a plurality of carbon dioxide concentration values of the indoor space by the sensor, wherein a sampling interval between the carbon dioxide concentration values is a second time period.
In an embodiment of the present invention, in the step of the electronic device determining whether there is a person in the indoor space according to the positive or negative of the overall concentration variation, when the overall concentration variation is positive, the steps further include: calculating a plurality of local concentration variation of the carbon dioxide concentration values, calculating a rising frequency, wherein the rising frequency is the number of positive and negative local concentration variation, and judging that the indoor space is occupied when the rising frequency exceeds a first threshold value.
In an embodiment of the present invention, the local concentration variations are a subtraction between one of the carbon dioxide concentration values corresponding to a time point and one of the carbon dioxide concentration values before the time point.
In an embodiment of the present invention, in the step of determining that there is a person in the indoor space when the number of times of rising exceeds a first threshold, the step further includes that when the number of times of rising is higher than the first threshold, a statistical value of a counter is more than zero and is progressively increased by one, and when the statistical value of the counter is negative, the statistical value is one.
In an embodiment of the present invention, when the number of times of rising is higher than the first threshold value, a step of progressively adding one to a counter whose statistic value is greater than zero, and if the statistic value of the counter is negative, then it is one, further includes: the indoor space is provided with a plurality of sensors, wherein the sensors are provided with a plurality of statistical values of a plurality of corresponding counters, a voting time is calculated, the voting time is the number of the statistical values of the counters corresponding to the sensors exceeding a third threshold value, and the number of the voting time exceeds half of the number of the sensors to judge that the indoor space is occupied.
In an embodiment of the present invention, in the step of determining whether the indoor space is occupied by a person by the electronic device according to the positive or negative of the overall concentration variation, when the overall concentration variation is negative, the step further includes: calculating a plurality of local concentration differences of the carbon dioxide concentration values, and calculating the descending times, wherein the descending times is the number of the local concentration differences smaller than a concentration setting difference, the descending times is smaller than a second threshold value to judge that the indoor space is occupied, and the descending times is higher than the second threshold value to judge that the indoor space is unoccupied.
In an embodiment of the present invention, the local concentration differences are the result of subtracting one of the carbon dioxide concentration values corresponding to a time point from one of the carbon dioxide concentration values before the time point and then taking the absolute value.
In an embodiment of the present invention, in the step of determining that there is a person in the indoor space when the number of times of the decrease is smaller than a second threshold, the step further includes progressively adding one to the counter when the statistic value of the counter is greater than zero, and the statistic value of the counter is one when the statistic value of the counter is negative.
In an embodiment of the present invention, in the step of determining that there is a person in the indoor space when the number of times of the falling is smaller than a second threshold, the step further includes: the indoor space is provided with a plurality of sensors, wherein the sensors are provided with a plurality of statistical values of a plurality of corresponding counters, the voting times are calculated, the voting times are the number of the statistical values of the counters corresponding to the sensors exceeding a third threshold value, and the number of the voting times exceeding half of the number of the sensors is used for judging that the indoor space is occupied.
In an embodiment of the present invention, in the step of determining that the indoor space is unmanned when the number of times of the decrease is greater than the second threshold, the step further includes decreasing by one if the statistical value of the counter is less than zero, and the statistical value of the counter is negative one if the statistical value of the counter is positive.
In an embodiment of the present invention, in the step of determining that the indoor space is unmanned when the number of times of the descent is higher than the second threshold, the step further includes: the indoor space is provided with a plurality of sensors, wherein the sensors are provided with a plurality of statistical values of a plurality of corresponding counters, the voting times are calculated, the voting times are reduced by one if the number of the sensors with the negative statistical values exceeds half of the number of the sensors, the voting times are returned to zero if the number of the sensors with the negative statistical values is lower than half of the number of the sensors, and the indoor space is judged to be unmanned if the voting times are lower than a fourth threshold value.
In an embodiment of the invention, the step of calculating the statistical value of the counter further includes determining that there is a person in the indoor space when the statistical value is higher than the third threshold.
In an embodiment of the invention, after the step of calculating the statistical value of the counter, the step of calculating the statistical value further includes determining that the indoor space is free of people when the statistical value is lower than the fourth threshold value.
Drawings
FIG. 1: a flow chart of a method for detecting an indoor human body according to a first embodiment of the present invention;
FIG. 2: a system diagram of an indoor human body detection method according to a first embodiment of the present invention;
FIG. 3-1: a flow chart of a method for detecting an indoor human body according to a second embodiment of the present invention;
FIG. 3-2: a flow chart of a method for detecting an indoor human body according to a second embodiment of the present invention;
FIG. 4-1: a flow chart of a method for detecting an indoor human body according to a third embodiment of the present invention;
FIG. 4-2: a flow chart of a method for detecting an indoor human body according to a third embodiment of the present invention;
FIG. 5-1: a flow chart of a method for detecting an indoor human body according to a fourth embodiment of the present invention; and
FIG. 5-2: a flowchart of an indoor human body detection method according to a fourth embodiment of the present invention is shown.
[ brief description of the drawings ]
10: sensor with a sensor element
30: electronic device
Detailed Description
In order to provide a further understanding and appreciation for the structural features and advantages achieved by the present invention, the following detailed description of the presently preferred embodiments is provided:
the present embodiment provides a method for detecting indoor human body, the prior art uses a gas sensor to detect whether most of the indoor space has a person, and presets a threshold value, when the detected carbon dioxide concentration value exceeds the threshold value, the person is considered, otherwise, no person is present, however, the method does not consider that the carbon dioxide concentration value in the space is constant and fixed, and has slight variation, and if the threshold value is fixed, the possibility of error rate improvement due to space environment variation cannot be provided, and at present, no person has proposed a method for judging whether the indoor space has a person according to time variation and carbon dioxide concentration value, and continuously tracks the change of personnel flow in the space, so the invention proposes a method for detecting indoor human body, which detects the carbon dioxide concentration value along with time variation, and judges whether the space has a person according to the variation, the method can be applied to a common gas sensor, a new sensor does not need to be additionally designed or purchased, the cost is reduced, and meanwhile, the method can meet the actual requirement.
A flow of a method for detecting an indoor human body according to a first embodiment of the present invention is described herein, please refer to fig. 1, which is a flow chart of the method for detecting an indoor human body according to the first embodiment of the present invention. As shown in the figure, the indoor human body detection method of the embodiment includes the steps of:
step S1: detecting an initial value of the concentration of the carbon dioxide by a sensor;
step S3: the sensor detects the final value of the concentration of the carbon dioxide;
step S5: the electronic equipment calculates the overall concentration variation according to the received initial carbon dioxide concentration value and the received final carbon dioxide concentration value;
step S7: the overall concentration variation is positive;
step S19: the space is occupied by people; and
step S35: this space is unmanned.
Next, a system required for achieving the method of indoor human body detection of the present invention is described, please refer to fig. 2, which is a system diagram illustrating the method of indoor human body detection according to the first embodiment of the present invention. As shown in the drawings, the system of the method for detecting an indoor human body of the present invention includes: a sensor 10 and an electronic device 30.
The sensor 10 is connected to the electronic device 30 in a wired or wireless manner.
The sensor 10 can continuously detect the carbon dioxide concentration value in the space and transmit the carbon dioxide concentration value to the electronic device 30, the electronic device 30 determines whether to use the carbon dioxide concentration value, or the electronic device 30 sends a signal to the sensor 10 to request the carbon dioxide concentration value to be transmitted.
The following describes a flow of a method for detecting an indoor human body according to a first embodiment of the present invention, please refer to fig. 1 and fig. 2 in combination.
In step S1, the sensor 10 detects a carbon dioxide concentration, and the carbon dioxide concentration is regarded as an initial carbon dioxide concentration at this time.
In step S3, after a predetermined period of time, the sensor 10 detects a carbon dioxide concentration, and the carbon dioxide concentration is regarded as a final carbon dioxide concentration at this time.
In step S5, the electronic device 30 calculates a variation of the carbon dioxide concentration per unit time according to the received initial carbon dioxide concentration value and the received final carbon dioxide concentration value, and the variation of the carbon dioxide concentration is regarded as a total variation of the concentration. This step can be actively detected by the sensor 10 and transmitted to the electronic device 30, or the electronic device 30 can send a signal to the sensor 10 to obtain the carbon dioxide concentration value depending on when the carbon dioxide concentration value is obtained.
In step S7, when the total density change amount is positive, the process proceeds to step S19, otherwise, the process proceeds to step S35.
In step S19, since the total concentration change amount is positive, it indicates that the carbon dioxide concentration in the space is increasing, and it is determined that a person is present in the space.
In step S35, since the total concentration change amount is negative, it indicates that the carbon dioxide concentration in the space is decreasing, and it is determined that there is a person leaving the space, that is, that no person is present.
In this way, the method for detecting an indoor human body according to the first embodiment of the present invention is completed, after the sensor detects the carbon dioxide concentration value, the electronic device receives the carbon dioxide concentration value, calculates the variation of the carbon dioxide concentration according to the carbon dioxide concentration value, and determines whether a person exists in the space according to the positive or negative of the variation.
Referring to fig. 3-1 and 3-2, the difference between the process of the present embodiment and the first embodiment is that: in the flow of the present embodiment, step S2 is added, step S5 is replaced by step S5a, steps S9 to S13 are added between step S7 and step S19, and steps S21 to S25 are added between step S7 and step S35.
In step S2, before detecting the final carbon dioxide concentration, a carbon dioxide concentration is detected at intervals, and a plurality of carbon dioxide concentration values are detected within a predetermined time period, wherein the carbon dioxide concentration values represent the change of the carbon dioxide concentration during the time period between the initial carbon dioxide concentration and the final carbon dioxide concentration.
In step S5a, the electronic device 30 receives the initial carbon dioxide concentration value, the carbon dioxide concentration values, and the final carbon dioxide concentration value. The actual operation flow is the same as step S5.
In step S9, since the overall change amount is positive, the overall trend of the carbon dioxide concentration in the space in the period of time is increased, and therefore, the change amounts of the carbon dioxide concentration with smaller time intervals in the period of time are calculated, and these change amounts of the carbon dioxide concentration are regarded as the local change amounts of the concentration.
In step S11, the number of rises is calculated according to the local density variations, and the number of positive local density variations corresponds to the number of rises.
In step S13, when the number of rises exceeds the first threshold, it indicates that the carbon dioxide concentration is increasing much during this time, so the process goes to step S19, otherwise, the situation cannot be determined, and the process returns to step S3 to continue the detection.
In step S21, since the overall change in concentration is negative, it indicates that the overall tendency of the carbon dioxide concentration in the space during this period of time is decreasing, but since the carbon dioxide concentration in the space is changing, it is necessary to further check it, and therefore, a difference in carbon dioxide concentration is calculated at small time intervals during this period of time, and this difference is only a degree of fluctuation of the carbon dioxide concentration, and therefore, only absolute values are taken, and these differences in carbon dioxide concentration are regarded as local concentration differences regardless of whether positive or negative.
In step S23, the number of drops is calculated according to the local concentration differences, and the carbon dioxide concentration of the room is within a certain range when there is no human, so that the number of the local concentration differences smaller than a concentration setting difference corresponds to the number of drops.
In step S25, when the number of drops is smaller than the second threshold, the process proceeds to step S19, otherwise, the process proceeds to step S35. The second threshold is used to identify the floating times when the carbon dioxide concentration value is lower than a certain range, and the falling times exceed the second threshold to indicate that the floating amount is not severe each time, so that it is determined that no person exists in the space (step S35), otherwise, a person exists (step S19).
By means of the embodiment, whether people exist in the space can be judged more accurately according to the variation of the carbon dioxide concentration in time, and meanwhile, the situation that the carbon dioxide concentration in the space is not constant and floats is also considered, so that the situation that no people exist in the space but misjudge people due to sudden rise of the carbon dioxide concentration can be eliminated, the method is not influenced by the floating of the carbon dioxide concentration in the space, and the accuracy is high.
Referring to fig. 4-1 and 4-2, the difference between the process of the present embodiment and the second embodiment is that: in the flow of the present embodiment, steps S15 to S17 are added between step S13 and step S19, and steps S27 to step S29 are added between step S25 and step S35.
In step S13, when the number of rises exceeds the first threshold, the process proceeds to step S15, otherwise, the process proceeds to step S17.
In step S15, when the number of times of rising exceeds the first threshold and the statistic is greater than or equal to zero, the statistic is increased by one, otherwise, the statistic is changed to one. The statistical value continuously tracks the carbon dioxide concentration change of the indoor space for a period of time so as to further judge whether people exist in the space, wherein the positive statistical value indicates that people tend to exist in the current judgment, and the negative statistical value indicates that no people tend to exist in the current judgment.
In step S17, when the statistical value exceeds the third threshold, it indicates that the carbon dioxide concentration in the space is always in an ascending state compared with the carbon dioxide concentration in the space without people, so the process goes to step S19, otherwise, the situation cannot be determined, and the process returns to step S3 to continue the detection.
In step S25, when the number of drops is smaller than the second threshold, the process proceeds to step S15, otherwise, the process proceeds to step S27.
In step S27, when the number of drops is greater than or equal to the second threshold and the statistic is equal to or less than zero, the statistic is decreased by one, otherwise, the statistic is changed to negative one.
In step S29, when the statistical value is lower than the fourth threshold, it indicates that the carbon dioxide concentration in the space is in a falling state during the period of time, so the process goes to step S35, otherwise, the situation cannot be determined, and the process returns to step S3 to continue the detection.
By means of the embodiment, the time length of the detection is prolonged, and the judgment result needs to be in the same state continuously, so that the accuracy of judging whether the indoor space is occupied or not is improved again.
The following illustrates a practical process of the method for detecting an indoor human body according to the third embodiment of the present invention, please add fig. 2, fig. 4-1 and fig. 4-2. Assuming 4 minutes as a unit, the sensor detects the concentration of carbon dioxide in the space every 30 seconds and transmits the detected concentration to the electronic device, for a total of 9 data-M1,M2,M3,M4,M5,M6,M7,M8,M9Thus, the 1 st detected carbon dioxide concentration value M is in time sequence1Data M in the 9 th stroke as the initial value of carbon dioxide concentration9The middle 2 nd to 8 th data M as the final value of the carbon dioxide concentration2~M8Regarding a plurality of carbon dioxide concentration values and calculating the overall concentration change amount, i.e., the change tendency of the carbon dioxide concentration in the 4 minutes (M)9-M1)/4min(step S1 to step S5 a).
Continuing from the above, assuming that the total concentration variation is positive in the 4 minutes, the rough step estimates that there is a possibility of a person in the space (step S7), and therefore proceeds to step S9.
Continuing from the above, the electronic device will then calculate the local concentration variation of every 30 seconds in the 4 minutes, that is, the difference between every two of the 1 st to 9 th data, and each time is subtracted from the current time pointCarbon dioxide concentration value at previous time point, example: (M)2-M1)/4min、(M3-M2)/4min…, 8 strokes in total (step S9).
Next, the number of rises is calculated from these local density variations, and it is assumed that there are 4 data of which the value is positive among the 8 data, and therefore the number of rises is 4 (step S11).
Subsequently, it is determined whether the number of rises exceeds the first threshold (step S13), and if the first threshold is 3, the number of rises exceeds the first threshold, and the process proceeds to step S15. The first threshold value can also be set to be one third of the number of data strokes, so that the threshold value can be changed along with the set length of time.
Next, the statistical value is calculated, and since the statistical value is initially 0, the current statistical value is 1 (step S15).
Subsequently, it is determined whether the statistical value exceeds the third threshold (step S17), the statistical value is determined whether there is a person in the space according to a period of time and the continuous determination results are the same, and the reliability of determining whether there is a person in the space is improved according to the assumption that the carbon dioxide concentration value is detected every 30 seconds from the beginning, and it takes at least six minutes, that is, 13 data can be used to determine whether there is a person in the space. Assume that the third threshold is 4 in this example, so the statistical value does not exceed the third threshold, and therefore the step S3 is returned to. The third threshold value may be set to be one-half of the number of data strokes.
Then, the carbon dioxide concentration is detected again after returning to step S3, the total number of data is 10, the 1 st data is discarded, the 2 nd data is regarded as the initial carbon dioxide concentration, the 10 th data is regarded as the final carbon dioxide concentration, the 3 rd to 9 th data are regarded as a plurality of carbon dioxide concentration, and the new detected data are analogized, assuming that the overall concentration variation is still positive, so step S5 a-step S11 are repeated.
Subsequently, since the rising frequency in step S11 needs to be recalculated each time, the rising frequency is returned to 0 before calculation, and it is assumed that the rising frequency of the 10 th data becomes 3, and thus the rising frequency does not exceed the first threshold (step S13), the process proceeds to step S17.
Continuing from the above, the statistical value is still 1, so the statistical value does not exceed the third threshold, and therefore the process returns to step S3 again.
In the following, assume that the carbon dioxide concentration detected in the 11 th pen is such that the overall concentration variation is negative, the process goes to step S21.
Continuing the above, calculating a local concentration difference value, that is, taking an absolute value after the difference between every two of the 3 rd to 11 th data, and subtracting the carbon dioxide concentration value at the previous time point from the current time point each time, for example: i M4-M3||、||M5-M4| …, a total of 8 pieces of data (step S21).
Next, the number of drops is calculated based on these local concentration differences, and the purpose of the number of drops is to determine whether the carbon dioxide concentration drops suddenly or due to a person moving away from the space, so that it is only necessary to observe whether the change in the value of the local concentration difference is within a certain range, and therefore, if a local concentration difference is smaller than the concentration setting difference, the number of drops is increased by 1, and so on. The number of the local density difference values smaller than the density setting difference value is assumed to be 6, and thus the number of drops is 6 (step S23). When the space is empty, the concentration of carbon dioxide will not fluctuate by more than 3ppm, and therefore the difference between the concentration settings can be set to 3 ppm.
Subsequently, it is determined whether the descending number is smaller than the second threshold (step S25), and if the second threshold is 6, the descending number is equal to the second threshold, and the process goes to step S27. The second threshold value may also be set to two thirds of the number of data strokes.
Continuing with the above, since the current statistical value is 1, the statistical value is changed to-1, and the process proceeds to step S29.
Subsequently, it is determined whether the statistical value is lower than the fourth threshold (step S29), and if the fourth threshold is-3, the statistical value is not lower than the fourth threshold, so the process returns to step S3. The fourth threshold may be set to one third of the number of data strokes.
In the following, it is assumed that the 12 th detected carbon dioxide concentration value makes the total concentration variation positive, and the 13 th to 16 th data make the total concentration variation positive, and the rising times all exceed the first threshold value, so in step S17 where the 16 th data is regarded as the final carbon dioxide concentration value, the statistical value is already 5, and exceeds the third threshold value, and then the process goes to step S19, that is, it is determined that there is a person in the space.
In this way, the method for detecting an indoor human body according to the third embodiment of the present invention is completed in the process of practical use, which is only an example of practical use, including but not limited to the present invention, and the same or similar concepts and settings and changes of values as the present invention can be considered as the present invention.
Referring to fig. 5-1 and 5-2, the first to third embodiments all use one sensor to detect whether there is a person in the indoor space, and the present embodiment uses a plurality of sensors to detect whether there is a person in the indoor space, and the difference between the process of the present embodiment and the third embodiment is that: in the flow of the present embodiment, step S17 is removed and steps S16 and S18 are added, and step S29 is removed and steps S28, S30, S31, and S33 are added.
Steps S1 to S15, and steps S1 to S27 are calculated for the carbon dioxide concentration detected by a single sensor, so that each sensor has its own statistical value.
In step S16, the voting number is calculated according to the statistics of the sensors, and the number of the sensors whose statistics exceed the third threshold corresponds to the voting number.
In step S18, the number of votes is more than half of the number of sensors, and the process proceeds to step S19, otherwise, the process proceeds to step S3.
In step S28, if the number of sensors with the negative statistical value is more than half of the number of sensors, the process proceeds to step S31, otherwise, the process proceeds to step S30.
In step S30, the number of sensors with negative statistics is less than half or more of the number of sensors, so the number of votes is zeroed.
In step S31, since the number of sensors with negative statistics is more than half of the number of sensors, the number of votes is reduced by one according to the current number of votes.
In step S33, when the number of votes is lower than the fourth threshold, it indicates that the plurality of sensors detect that the carbon dioxide concentration in the space is falling during the period of time, so the process goes to step S35, otherwise, the situation cannot be determined, and the process returns to step S3 to continue the detection.
By means of the embodiment, the judgment of whether a person exists in the space can be prevented from being influenced by the size of the space and the distance between the person and the sensor, and the judgment result is improved by using the plurality of sensors.
The following illustrates a practical process of the method for detecting an indoor human body according to the fourth embodiment of the present invention, please refer to fig. 5-1 and fig. 5-2, and the assumption of the threshold value is the same as that of the third embodiment. Suppose the space is a rectangle and is provided with 5 sensors, two ends of the doorway are provided with 2 sensors, the center is provided with 1 sensor, and the other end opposite to the doorway is provided with 2 sensors. Imagine a situation where no one is present in the space, and one person has just opened the doorway of the space to enter the space, then closed the door, then slowly moved toward the center of the space, stayed in the center for a period of time, and then returned to the doorway to leave the space.
After the person enters the space, carbon dioxide generated by breathing of the person gradually diffuses from the space, so that the sensor closest to the person can detect the increase of the carbon dioxide concentration first, but the sensor far away from the person can detect no change of the carbon dioxide concentration, therefore, according to the time sequence and the difference of the sensors, each sensor can detect 1 st to 9 th data, the total number of the data is 45, wherein the more the time of the sensors 1 and 2 is, the higher the carbon dioxide concentration value is, and the remaining 3 detected carbon dioxide concentration changes little. After the detection, the overall concentration variation is calculated for each sensor (step S1 to step S5 a).
In the following description, it is assumed that the total concentration variation of the 5 sensors is positive, i.e. shows a rising trend, and therefore, the local concentration variation, the rising frequency, whether the first threshold is exceeded or not and the statistical value are calculated respectively (steps S7 to S15). This is the same as the third embodiment, and thus is not described again.
Next, assuming that the number of times of rise of each sensor is 5, 6, 3, 2 (step S13), the statistical values are initially 0, and thus are 1, 0, respectively (step S15).
And then, calculating the voting times, wherein a plurality of sensors are used for judging whether people exist in the space, so that a plurality of decisions are adopted for determining, but the statistical values of all the sensors do not exceed the third threshold value due to the first round of detection.
In the following, the number of votes is 2 because the statistics of the 1 st and 2 nd sensors exceed the third threshold value, but the statistics of the remaining 3 sensors do not exceed the third threshold value.
Then, the number of votes and the number of sensors are compared (step S18), if the number of votes exceeds half of the number of sensors, i.e. 3 or more, it is determined that there is a person in the space, if the number of votes does not exceed the number of sensors, the process returns to step S3, each sensor individually detects the carbon dioxide concentration value, and the process returns to step S3 according to the current situation.
Subsequently, it is assumed that the subsequently received carbon dioxide concentration values are such that the statistical values of the sensors 1 and 2 exceed the third threshold value, but the number of the sensors exceeding the third threshold value is less than half, so that it still cannot be determined whether there is a person in the space, and the process returns to step S3.
Continuing the above, until the statistical value of the 3 rd sensor also exceeds the third threshold, the number of sensors exceeding the third threshold reaches 3, and thus exceeds half of the number of sensors, and therefore it is determined that there is a person in the space, and the process proceeds to step S19.
Continuing to the above, when the person stays in the space, the generated carbon dioxide will continuously diffuse, so that the concentrations of the carbon dioxide detected by the 4 th and 5 th sensors will continuously increase until the statistical values of all the sensors exceed the third threshold value, and thus the person in the space is continuously determined.
And continuing to the above, at this moment, the person leaves the space, the carbon dioxide concentration is gradually reduced, only the 4 th sensor and the 5 th sensor can detect the reduction of the carbon dioxide concentration just after leaving, but the absence of the person in the space cannot be judged immediately, the carbon dioxide concentration detected by the majority of sensors is continuously reduced until leaving for a short time, the statistic value of the sensors is negative, the voting times are started to be negative by the majority of methods, and the absence of the person in the space can be judged when the voting times are lower than the fourth threshold value-3.
In this way, the indoor human body detection method of the fourth embodiment of the invention is completed in the practical process, which is only one example of practical use, including but not limited to the present invention, and the same or similar concepts and values as those of the present invention can be set and changed according to the present invention.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not intended to limit the scope of the present invention, which is defined by the appended claims.

Claims (12)

1. A method for indoor human detection, comprising the steps of:
a sensor detects an initial value of carbon dioxide concentration in an indoor space;
after a first time period, the sensor detects a final carbon dioxide concentration value of the indoor space;
the sensor detects a plurality of carbon dioxide concentration values of the indoor space, wherein the sampling interval among the plurality of carbon dioxide concentration values is a second time section;
an electronic device calculates an overall concentration variation according to the received initial value of the carbon dioxide concentration and the received final value of the carbon dioxide concentration of the sensor; and
the electronic equipment judges whether the indoor space is occupied or not according to the positive and negative of the overall concentration variation, wherein the indoor space is judged to be occupied when the overall concentration variation is positive, and the indoor space is judged to be unoccupied when the overall concentration variation is negative;
when the overall concentration variation is positive, the method further comprises the following steps:
calculating a plurality of local concentration variations of the plurality of carbon dioxide concentration values;
calculating a rising frequency, wherein the rising frequency is the number of positive and negative local concentration variation quantities; and
the rising times exceed a first threshold value to judge that the indoor space is occupied.
2. The method of claim 1, wherein the local concentration variations are a subtraction of one of the carbon dioxide concentration values corresponding to a time point and one of the carbon dioxide concentration values before the time point.
3. The method of claim 1, wherein the step of determining that the indoor space is occupied by a person if the number of times of the rising exceeds a first threshold further comprises the step of progressively increasing by one if a statistical value of a counter is greater than zero and by one if the statistical value of the counter is negative.
4. The method of claim 3, wherein when the number of rises is higher than the first threshold, a statistic of a counter is more than zero and is progressively increased by one, and the statistic of the counter is negative and then is one, further comprising the steps of:
the indoor space is provided with a plurality of sensors, wherein the plurality of sensors are provided with a plurality of statistical values of a plurality of corresponding counters;
calculating a voting number of times, wherein the voting number of times is the number of times that the statistical values of the counters corresponding to the sensors exceed a third threshold value; and
the number of votes exceeds half of the number of the plurality of sensors to judge that the indoor space is occupied.
5. The method of claim 1, wherein in the step of determining whether the indoor space is occupied by the person by the electronic device according to the sign of the overall concentration variation, when the overall concentration variation is negative, the step further comprises:
calculating a plurality of local concentration differences of the plurality of carbon dioxide concentration values;
calculating the descending times, wherein the descending times are the number of the local concentration differences smaller than a concentration setting difference; and
the descending times is less than a second threshold value to judge that the indoor space is occupied, and the descending times is higher than the second threshold value to judge that the indoor space is not occupied.
6. The method of claim 5, wherein the local concentration differences are the result of subtracting one of the carbon dioxide concentration values corresponding to a time point from one of the carbon dioxide concentration values preceding the time point and then taking an absolute value.
7. The method of claim 5, wherein the step of determining that there is a person in the indoor space if the number of drops is less than a second threshold further comprises the step of progressively incrementing by one if a count of a counter is greater than zero, and the count of the counter is one if it is negative.
8. The method of claim 7, wherein in the step of determining that there is a person in the indoor space if the number of drops is less than a second threshold, the step further comprises:
the indoor space is provided with a plurality of sensors, wherein the plurality of sensors are provided with a plurality of statistical values of a plurality of corresponding counters;
calculating a voting number of times, wherein the voting number of times is the number of times that the statistical values of the counters corresponding to the sensors exceed a third threshold value; and
the number of votes exceeds half of the number of the plurality of sensors to judge that the indoor space is occupied.
9. The method of claim 5, wherein in the step of determining that the indoor space is free of people when the number of drops is above the second threshold, the step further comprises decrementing by one if a statistic of a counter is below zero, the statistic of the counter being negative one if it is positive.
10. The method of claim 9, wherein in the step of determining that the indoor space is unoccupied if the number of the falling times is higher than the second threshold, the step further comprises:
the indoor space is provided with a plurality of sensors, wherein the plurality of sensors are provided with a plurality of statistical values of a plurality of corresponding counters;
calculating a voting time, wherein the voting time is reduced by one if the number of the plurality of sensors with the negative statistical values exceeds half of the number of the plurality of sensors, and the voting time is reduced to zero if the number of the plurality of sensors with the negative statistical values is lower than half of the number of the plurality of sensors; and
the voting times are lower than a fourth threshold value to judge that the indoor space is unmanned.
11. The method as claimed in claim 4 or 8, wherein the step of calculating the statistic value of the counter further comprises determining that there is a person in the indoor space if the statistic value is higher than the third threshold.
12. The method of claim 10, wherein the step of calculating the statistic of the counter further comprises determining that the indoor space is free of people if the statistic is lower than the fourth threshold.
CN201710431486.8A 2017-06-09 2017-06-09 Indoor human body detection method Active CN109030715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710431486.8A CN109030715B (en) 2017-06-09 2017-06-09 Indoor human body detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710431486.8A CN109030715B (en) 2017-06-09 2017-06-09 Indoor human body detection method

Publications (2)

Publication Number Publication Date
CN109030715A CN109030715A (en) 2018-12-18
CN109030715B true CN109030715B (en) 2021-04-06

Family

ID=64628701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710431486.8A Active CN109030715B (en) 2017-06-09 2017-06-09 Indoor human body detection method

Country Status (1)

Country Link
CN (1) CN109030715B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112051621B (en) * 2019-08-15 2024-03-15 河南紫联物联网技术有限公司 Method and device for judging whether room is occupied or not
CN110927333A (en) * 2019-10-31 2020-03-27 深圳绿米联创科技有限公司 Human body detection method, hardware system, device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1654892A (en) * 2004-02-12 2005-08-17 三洋电机株式会社 Air conditioner device
CN102693600A (en) * 2011-12-14 2012-09-26 河南科技大学 Unit disaster control method and system
CN103985210A (en) * 2014-05-23 2014-08-13 徐晓青 Intrusion detecting and monitoring method and device
CN104354695A (en) * 2014-10-29 2015-02-18 来安县新元机电设备设计有限公司 Method and system for preventing asphyxia in automobile
CN105059226A (en) * 2015-08-24 2015-11-18 无锡伊佩克科技有限公司 Automobile control method based on human body sensing
CN105083190A (en) * 2015-09-14 2015-11-25 吕东贤 Intelligent rescue system capable of detecting carbon dioxide concentration in car
CN105279871A (en) * 2014-06-19 2016-01-27 徐晓青 Intrusion detection device and method
CN105501113A (en) * 2014-10-14 2016-04-20 德尔福技术有限公司 An occupant safety system with CO2 detection
CN105913609A (en) * 2016-05-27 2016-08-31 柳州铁道职业技术学院 Alarm for children locked inside cars and detection method thereof
CN106023506A (en) * 2016-06-08 2016-10-12 宁德师范学院 Fire hazard early warning method
CN106183708A (en) * 2016-07-12 2016-12-07 上海爱斯达克汽车空调系统有限公司 Gas concentration lwevel monitoring system and control method thereof in compartment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9470670B2 (en) * 2013-03-14 2016-10-18 Src, Inc. Method and system for human presence correlation using carbon dioxide

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1654892A (en) * 2004-02-12 2005-08-17 三洋电机株式会社 Air conditioner device
CN102693600A (en) * 2011-12-14 2012-09-26 河南科技大学 Unit disaster control method and system
CN103985210A (en) * 2014-05-23 2014-08-13 徐晓青 Intrusion detecting and monitoring method and device
CN105279871A (en) * 2014-06-19 2016-01-27 徐晓青 Intrusion detection device and method
CN105501113A (en) * 2014-10-14 2016-04-20 德尔福技术有限公司 An occupant safety system with CO2 detection
CN104354695A (en) * 2014-10-29 2015-02-18 来安县新元机电设备设计有限公司 Method and system for preventing asphyxia in automobile
CN105059226A (en) * 2015-08-24 2015-11-18 无锡伊佩克科技有限公司 Automobile control method based on human body sensing
CN105083190A (en) * 2015-09-14 2015-11-25 吕东贤 Intelligent rescue system capable of detecting carbon dioxide concentration in car
CN105913609A (en) * 2016-05-27 2016-08-31 柳州铁道职业技术学院 Alarm for children locked inside cars and detection method thereof
CN106023506A (en) * 2016-06-08 2016-10-12 宁德师范学院 Fire hazard early warning method
CN106183708A (en) * 2016-07-12 2016-12-07 上海爱斯达克汽车空调系统有限公司 Gas concentration lwevel monitoring system and control method thereof in compartment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Estimating Occupancy Using Indoor Carbon Dioxide Concentrations Only in an Office Building: a Method and Qualitative Assessment;Guillaume Ansanay-Alex;《ArXiv》;20130630;第1-10页 *

Also Published As

Publication number Publication date
CN109030715A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US10769645B2 (en) Method and device for calculating customer traffic volume
CN105957169B (en) A kind of detection method based on ibeacon technologies, apparatus and system
CN109030715B (en) Indoor human body detection method
KR20090034773A (en) Number-of-people detecting device and elevator
US10210394B2 (en) System and method for occupancy estimation
JP4687058B2 (en) Suspicious person judgment device
CN101315326B (en) Smog detecting method and apparatus
CN113526284A (en) Elevator monitoring method and system, storage medium and intelligent terminal
CN110040592B (en) Elevator car passenger number detection method and system based on double-path monitoring video analysis
CN109727417B (en) Method and controller for controlling a video processing unit to facilitate detection of a newcomer
KR102176045B1 (en) Residual Person Monitering Method based on Deep Learning to prevent negligent Accident of Store and System thereof
KR20150033402A (en) Apparatus and Method for Unmanned Safety Guard Based on Video Recognition
CN112818939A (en) Behavior detection method and device and electronic equipment
TWI647669B (en) Indoor human body detection method
CN107368825A (en) Person number detection device, method and system in a kind of danger zone
KR20190072323A (en) Image Monitoring System and Method for Monitoring Image
JP5186973B2 (en) Worker safety inspection device
CN110930432A (en) Video analysis method, device and system
CN108932812A (en) A kind of building fire resisting shutter alarm system and method based on image
JP2015114958A (en) Face recognition gate system and face recognition gate system program
CN103680027B (en) A kind of remote entrance guard supervising device
KR101655397B1 (en) Terminal apparatus and system for reporting circumstances
CN111126100B (en) Alarm method, alarm device, electronic equipment and storage medium
JP2012216221A (en) Operator safety testing apparatus
KR20220083886A (en) The system of Drowsiness Detection using smart watch and facial recognition

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