Particle type determination method and apparatus, smoke detector, and electronic device
By emitting red and blue light to obtain signal values and combining them with time-dimension detection results, the type of particles in the air can be determined, solving the problem of false alarms in existing technologies and achieving higher detection accuracy and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG HUAXIAO TECH CO LTD
- Filing Date
- 2023-02-14
- Publication Date
- 2026-07-03
AI Technical Summary
Existing technology cannot accurately detect the types of particles in the air, causing aspirating smoke detectors to generate false alarms when the environment changes.
By emitting red and blue light into the target area, the corresponding signal values are obtained, and the type of particle is determined by the ratio of the difference between the signal values. Combined with the detection results in the time dimension, environmental interference is eliminated, and the detection accuracy is improved.
It improves the accuracy of particle type detection, reduces the false alarm rate, and enhances the reliability of aspirating smoke detectors in complex environments.
Smart Images

Figure CN116202917B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of monitoring technology, and more specifically, to a method and apparatus for determining particle types, a smoke detector, and an electronic device. Background Technology
[0002] Aspirator smoke detectors are a type of very early-stage fire detector. They can detect fires when they are still in the smoldering stage and producing only a small amount of smoke. They are highly sensitive fire detectors, with a sensitivity of less than 0.001%obs / m, which is more than 1,000 times that of other general-purpose fire detectors. They can be used in various industrial locations, such as server rooms, tunnels, energy storage rooms, factories, and cargo storage rooms. However, highly sensitive devices are prone to false alarms due to environmental changes (such as changes in temperature, humidity, airborne particles, and ash accumulation in pipes).
[0003] In related technologies, a laser gun can be used to analyze smoke particles in the air to determine smoke concentration. After powering on or triggering a button, the smoke concentration in the surrounding environment is collected over a period of time as a fixed background value. The real-time smoke concentration value is then subtracted from this background value. If the concentration exceeds a pre-set threshold, an alarm is triggered; otherwise, no alarm is triggered. However, the principle of laser analysis is based on the intensity of light reflected from particles onto a photoelectric sensor to reflect smoke concentration. When water vapor, dust, or other particles are detected, the same reaction occurs, leading to false alarms.
[0004] There is currently no effective solution to the problem that related technologies cannot accurately detect the types of particles in the air. Summary of the Invention
[0005] This invention provides a method and apparatus for determining particle types, a smoke detector, and an electronic device, to at least solve the problem of inaccurate detection of particle types in the air.
[0006] According to an embodiment of the present invention, a method for determining particle type is provided, comprising: emitting red light and blue light toward a target area, and acquiring a first signal value corresponding to the red light and a second signal value corresponding to the blue light; and determining the target particle type of particles in the air of the target area through the first signal value and the second signal value.
[0007] In an exemplary embodiment, emitting red and blue light towards a target area and acquiring a first signal value corresponding to the red light and a second signal value corresponding to the blue light includes: emitting red and blue light towards the target area every first preset time interval within a second preset time period, and acquiring a first signal value corresponding to the red light and a second signal value corresponding to the blue light each time; determining the target particle type of particles in the air of the target area using the first signal value and the second signal value includes: determining a reference particle type of particles in the air of the target area every first preset time interval using the acquired first and second signal values, and storing the reference particle type in a target queue; determining the target particle type of particles in the air of the target area based on all reference particle types stored in the target queue within a second preset time period.
[0008] In an exemplary embodiment, determining the target particle type of particles in the air of the target area using the first signal value and the second signal value includes: acquiring a first reference signal value of red light and a second reference value of blue light corresponding to the target area; subtracting the first reference signal value from the first signal value to obtain a first signal difference; and subtracting the second reference signal value from the second signal value to obtain a second signal difference; determining the ratio of the first signal difference to the second signal difference, and determining the target particle type of particles in the air of the target area based on the ratio.
[0009] In an exemplary embodiment, determining the target particle type of the air in the target area based on the ratio includes: determining the target particle type as dust when the ratio is within a first preset range; determining the target particle type as smoke when the ratio is within a second preset range; and determining the target particle type as water vapor when the ratio is within a third preset range.
[0010] In an exemplary embodiment, determining the target particle type of the particles in the air of the target area based on all reference particle types stored in the target queue within a second preset time period includes: determining the proportion of each particle type among all reference particle types, wherein the particle types include: dust type, smoke type and water vapor type; determining the first particle type with the highest proportion among all reference particle types; and determining the first particle type as the target particle type if the proportion of the first particle type is greater than or equal to a first preset threshold.
[0011] In an exemplary embodiment, after determining the first particle type with the highest proportion from all reference particle types, the method further includes: initializing the statistical count corresponding to the first particle type to one when the proportion of the first particle type is less than the first preset threshold; repeating the following steps within a third preset time period until the target particle type is determined, and clearing the statistical counts corresponding to all particle types to zero: in the next second preset time period, emitting red light and blue light to the target area at first preset time intervals, and determining the reference particle type of the particles in the air of the target area by collecting the first signal value corresponding to the red light and the second signal value corresponding to the blue light, and storing the determined reference particle type in the target queue; determining the second particle type with the highest proportion from all reference particle types stored in the target queue within the next second preset time period, wherein the second particle type is the first particle type or is not the first particle type; determining the second particle type as the target particle type when the proportion of the second particle type is greater than or equal to the first preset threshold; incrementing the statistical count corresponding to the second particle type by one when the proportion of the second particle type is less than the first preset threshold; determining the second particle type as the target particle type when the statistical count corresponding to the second particle type is greater than or equal to the second preset threshold.
[0012] In an exemplary embodiment, determining the target particle type of particles in the air of the target area using the first signal value and the second signal value includes: determining whether the second signal value corresponding to the blue light is greater than a third preset threshold; if the second signal value is greater than the third preset threshold, determining the target particle type of particles in the air of the target area using the first signal value and the second signal value; after determining the target particle type of particles in the air of the target area using the first signal value and the second signal value, the method further includes: outputting a warning signal corresponding to the target particle type.
[0013] According to another embodiment of the present invention, a particle type determination device is also provided, comprising: an acquisition module, configured to emit red light and blue light toward a target area, and acquire a first signal value corresponding to the red light and a second signal value corresponding to the blue light; and a determination module, configured to determine the target particle type of particles in the air of the target area based on the first signal value and the second signal value.
[0014] According to yet another embodiment of the present invention, a smoke detector is also provided, the smoke detector having red light and blue light emitting devices, the smoke detector being configured to perform the steps of any of the above method embodiments when running.
[0015] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0016] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0017] This invention emits red and blue light towards a target area and acquires a first signal value corresponding to the red light and a second signal value corresponding to the blue light. The target particle type in the air within the target area is determined using these first and second signal values. Because the particle type is determined by combining the acquired red and blue light signal values, the accuracy of particle type detection is improved, solving the problem of inaccurate particle type detection in the air. Attached Figure Description
[0018] Figure 1 This is a block diagram of the mobile terminal hardware structure of the particle type determination method according to an embodiment of the present invention;
[0019] Figure 2 This is a flowchart (a) of a method for determining particle type according to an embodiment of the present invention;
[0020] Figure 3 This is a flowchart (II) of a method for determining particle type according to an embodiment of the present invention;
[0021] Figure 4 This is a structural block diagram of a particle type determination device according to an embodiment of the present invention. Detailed Implementation
[0022] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0024] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a mobile terminal hardware structure block diagram of the particle type determination method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0025] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the particle type determination method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0027] This embodiment provides a method for determining particle types, including but not limited to applications in inhaler smoke detectors. Figure 2 This is a flowchart (I) of a method for determining particle type according to an embodiment of the present invention, as shown below. Figure 2 As shown, the process includes the following steps:
[0028] Step S202: Emit red light and blue light to the target area, and acquire the first signal value corresponding to the red light and the second signal value corresponding to the blue light.
[0029] As an alternative example, red and blue light can be sent to the target area simultaneously, or red or blue light can be sent first, but the time interval between sending red and blue light is within a fourth preset time (e.g., 5 milliseconds).
[0030] As an alternative example, the first signal value mentioned above can be the light intensity collected after the red light is reflected back, and the second signal value mentioned above can be the light intensity collected after the blue light is reflected back.
[0031] Step S204: Determine the target particle type of the particles in the air of the target area using the first signal value and the second signal value.
[0032] It should be noted that red and blue light have different response characteristics to particles of different sizes (mainly water vapor, smoke, and dust). Therefore, red and blue light can be used to identify the types of particles in the air, thereby reducing false alarms of the other two types in smoke detectors.
[0033] In an exemplary embodiment, step S204 can be implemented by the following steps S11-S13:
[0034] Step S11: Obtain the first reference signal value of the red light and the second reference value of the blue light corresponding to the target area;
[0035] It should be noted that the first reference value is the environmental baseline value corresponding to red light in the target area. That is, under normal conditions in the target area (e.g., the concentrations of water vapor, smoke, and dust in the target area are all normal, and the concentrations of water vapor, smoke, and dust do not fluctuate significantly over a period of time), the signal value collected after emitting red light into the target area. Similarly, the second reference value is the environmental baseline value corresponding to blue light in the target area. That is, under normal conditions in the target area, the signal value collected after emitting blue light into the target area.
[0036] Step S12: Subtract the first reference signal value from the first signal value to obtain a first signal difference; and subtract the second reference signal value from the second signal value to obtain a second signal difference;
[0037] Step S13: Determine the ratio of the first signal difference to the second signal difference, and determine the target particle type of the particles in the air of the target area based on the ratio.
[0038] In other words, in this embodiment, by excluding the interference of the ambient background value, the target particle type of the particles in the air in the target area is determined based on the ratio of the difference between red light and the corresponding ambient background value (Dr) and the difference between blue light and the corresponding ambient background value (Db).
[0039] In an exemplary embodiment, determining the target particle type of the air in the target area based on the ratio includes: determining the target particle type as dust when the ratio is within a first preset range; determining the target particle type as smoke when the ratio is within a second preset range; and determining the target particle type as water vapor when the ratio is within a third preset range.
[0040] As an optional example, the first preset range is 0-0.7, the second preset range is 1.0-2.0, and the third preset range is above 2.0.
[0041] The above steps involve emitting red and blue light towards the target area and acquiring a first signal value corresponding to the red light and a second signal value corresponding to the blue light. The target particle type in the air within the target area is then determined using these first and second signal values. Since the particle type is determined by combining the acquired red and blue light signal values, the accuracy of particle type detection is improved, solving the problem of inaccurate particle type detection in the air.
[0042] In an exemplary embodiment, step S202 includes step S21; step S204 includes steps S22-S23.
[0043] Step S21: Within a second preset time period, emit red light and blue light to the target area at first preset time intervals, and acquire the first signal value corresponding to the red light and the second signal value corresponding to the blue light each time.
[0044] As an optional example, the second preset time can be 1 second. The first preset time can be 10 milliseconds. That is, red light and blue light are emitted to the target area every 10 milliseconds, and the first signal value corresponding to the red light and the second signal value corresponding to the blue light are acquired each time.
[0045] Step S22: Every first preset time interval, determine the reference particle type of the particles in the air of the target area by collecting the first signal value and the second signal value, and store the reference particle type in the target queue;
[0046] It should be noted that the method for determining the reference particle type of the particles in the air of the target area by means of the first signal value and the second signal value collected at each first preset time interval is the same as the above steps S11-S13.
[0047] Step S23: Determine the target particle type of the particles in the air of the target area based on all reference particle types stored in the target queue within a second preset time period.
[0048] As an optional example, assume the second preset time is 1 second. The first preset time mentioned above can be 10 milliseconds. Then the target queue has 100 completely identical or slightly different reference particle types, including: dust type, smoke type, and water vapor type. For example, the target queue is (smoke type, smoke type, smoke type, smoke type...water vapor type...smoke type...water vapor type...smoke type), and then the target particle type (dust type, smoke type, or water vapor type) of the particles in the air of the target area is finally determined based on the 100 reference particle types determined within 1 second.
[0049] In this embodiment, steps S21-S23 above introduce a time dimension for multiple detections, which can avoid the randomness of a single detection and thus more accurately determine the type of particles in the air.
[0050] In an exemplary embodiment, step S23 described above can be implemented by the following steps S31-S33:
[0051] Step S31: Determine the proportion of each particle type among all reference particle types, wherein the particle types include: dust type, smoke type and water vapor type;
[0052] Step S32: Determine the first particle type with the highest proportion from all the reference particle types;
[0053] Step S33: If the proportion of the first particle type is greater than or equal to the first preset threshold, the first particle type is determined as the target particle type.
[0054] As an optional example, suppose there are 100 reference particle types in the target queue, where dust accounts for 0.2%, water vapor accounts for 0.15%, and smoke accounts for 0.65%. Then, the first particle type with the highest percentage in the target queue is the smoke type. If the first preset threshold is 0.65, then the target particle type in the air of the target area can be finally determined to be the smoke type.
[0055] In an exemplary embodiment, after performing step S32 above, the following steps S34-S35 are also performed:
[0056] Step S34: If the proportion of the first particle type is less than the first preset threshold, initialize the statistical count corresponding to the first particle type to one;
[0057] As an optional example, assuming the proportion of the first particle type is 0.65, but the first preset threshold is 0.7, it cannot be immediately determined that the target particle type of the particles in the air of the target area is smoke. Further determination is needed based on subsequent detection results. In this case, the statistical count (k) corresponding to the first particle type needs to be initialized to one, i.e., k = 1.
[0058] Step S35: Repeat steps S1-S5 within a third preset time period until the target particle type is determined, and reset the statistical counts for all particle types to zero.
[0059] As an optional example, the duration of the third preset time is multiple times the duration of the first preset time, such as 5 seconds, 10 seconds, etc., and this application embodiment does not limit it again.
[0060] It should be noted that the purpose of clearing the statistical counts corresponding to all particle types is to ensure that the next detection will not be affected by the current detection when determining the target particle type in the air of the target area.
[0061] Step S1: In the next second preset time period, red light and blue light are emitted to the target area every first preset time interval, and the reference particle type of the particles in the air in the target area is determined by the first signal value corresponding to the red light and the second signal value corresponding to the blue light, and the determined reference particle type is stored in the target queue.
[0062] It should be noted that the implementation of step S1 above is the same as that of steps S21-S22 above, and will not be repeated here.
[0063] Step S2: Determine the second particle type with the highest proportion among all reference particle types stored in the target queue in the next second preset time period, wherein the second particle type is the first particle type or is not the first particle type;
[0064] It should be noted that, assuming the first particle type is smoke, the second particle type can be smoke, dust, or water vapor.
[0065] Step S3: If the proportion of the second particle type is greater than or equal to the first preset threshold, the second particle type is determined as the target particle type;
[0066] It should be noted that if the proportion of the second particle type is greater than or equal to the first preset threshold, the second particle type can be directly identified as the target particle type, without the need to continue to emit red and blue light to the target area every first preset time interval in the next second preset time period to detect the particle type.
[0067] Step S4: If the proportion of the second particle type is less than the first preset threshold, increment the statistical count corresponding to the second particle type by one;
[0068] It should be noted that if the second particle type is the same as the first particle type, then the k value above is incremented by 1. If the second particle type is not the same as the first particle type, then the count corresponding to the second particle type itself is incremented by 1 (if the count itself is 0, then the count is initialized to 1).
[0069] Step S5: If the number of statistical occurrences corresponding to the second particle type is greater than or equal to the second preset threshold, the second particle type is determined to be the target particle type.
[0070] As an optional example, the second preset threshold is the sum of the duration of the third preset time and the duration of the first preset time, plus 1. For example, assuming the third preset time is 5 seconds and the first preset time is 1 second, then the second preset threshold is 6. That is, if the second particle type is determined to have the highest proportion in the target queue for 6 consecutive times, but each time is less than the first preset threshold, then the target particle type can also be determined to be the second particle type.
[0071] In an exemplary embodiment, determining the target particle type of particles in the air of the target area using the first signal value and the second signal value includes: determining whether the second signal value corresponding to the blue light is greater than a third preset threshold; if the second signal value is greater than the third preset threshold, determining the target particle type of particles in the air of the target area using the first signal value and the second signal value; after determining the target particle type of particles in the air of the target area using the first signal value and the second signal value, the method further includes: outputting a warning signal corresponding to the target particle type.
[0072] It should be noted that for particles with different compositions but the same concentration, the amplitude of blue light (i.e., the second signal value mentioned above) is roughly the same, while the response of red light is significantly different. Therefore, the amplitude of blue light is mainly used to reflect the concentration of particles in the air (i.e., when the second signal value is greater than the third preset threshold, it is determined that the concentration has reached the alarm threshold and particle type judgment is required), while the ratio of red to blue light reflects the type of particles.
[0073] It should be noted that the reason for making particle discrimination judgment only when the amplitude of blue light reaches the alarm threshold is: (1) In reality, the characteristic of the proportion of red and blue light can only be stable when the particle concentration reaches a certain level. When the amplitude is small, the fluctuation is large and the judgment is easy to fail; (2) It is to save computing power, that is, the amplitude of blue light will be judged first each time, and the judgment of the proportion of red and blue light will be added only when the amplitude of blue light reaches a certain threshold.
[0074] As an optional example, after determining the target particle type of the particles in the air of the target area through the first signal value and the second signal value, the method further includes: outputting a warning signal corresponding to the smoke type only when the target particle type is smoke.
[0075] Obviously, the embodiments described above are only some embodiments of the present invention, and not all embodiments. The present invention will now be specifically described in conjunction with the embodiments.
[0076] In one exemplary embodiment, Figure 3 This is a flowchart (II) of a method for determining particle types according to an embodiment of the present invention. Specifically, it can be summarized as follows:
[0077] (1) By using the different response characteristics of red and blue light to particles of different sizes (mainly water vapor, smoke and dust), simple particle identification can be achieved to prevent false alarms in smoke detection.
[0078] (2) After acquiring the signal value, the interference of the background value is eliminated by making the difference Dr (red) and Db (blue) between it and the learning value in the preheating stage.
[0079] (3) The ratio of red and blue light difference T = Db / Dr was selected as the basic data unit. Through experiments, the ratio response range of dust was 0-0.7, smoke particles was 1.0-2.0, and water vapor was above 2.0.
[0080] (4) In real-world environments, these three types of particles often exist, but their composition differs depending on the environment. Therefore, particle discrimination is only performed when the original blue light amplitude reaches the alarm threshold. Simultaneously, a time factor is introduced to statistically analyze the proportions of these three particle components detected over a period of time (i.e., how many times the detection result is dust, how many times it is smoke, and how many times it is water vapor). The method is to fill the queue L with each determined discrimination result Sn (dust, smoke, or water vapor) according to the time sequence based on the classification method in section 3. Then, a proportion statistical analysis is performed every 1 second to find the largest proportion H and determine whether it reaches the confidence proportion (equivalent to the first preset threshold mentioned above). If it does, the corresponding type of output is performed; if it is in the middle proportion (equivalent to less than the first preset threshold mentioned above), a time verification is performed, and if the verification requirement is met, the corresponding type of output is also performed.
[0081] In summary, this application uses the ratio of red to blue light differences to identify particles of different sizes that are prone to false alarms, thereby reducing the false alarm rate; it introduces time-dimensional comparison values for data statistics and performs different processing according to different ratios, avoiding randomness and achieving higher reliability; and it verifies the alarm mode after the original blue light amplitude reaches the smoke alarm threshold, thereby improving the accuracy.
[0082] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0083] This embodiment also provides a device for determining particle type. Figure 4 This is a structural block diagram of a particle type determination device according to an embodiment of the present invention, such as... Figure 4 As shown, the device includes:
[0084] The acquisition module 42 is used to emit red light and blue light to the target area, and acquire the first signal value corresponding to the red light and the second signal value corresponding to the blue light.
[0085] The determination module 44 is used to determine the target particle type of the particles in the air of the target area by using the first signal value and the second signal value.
[0086] The aforementioned device emits red and blue light towards a target area and acquires a first signal value corresponding to the red light and a second signal value corresponding to the blue light. The target particle type in the air within the target area is determined using these first and second signal values. Since the particle type is determined by combining the acquired red and blue light signal values, the accuracy of particle type detection is improved, solving the problem of inaccurate particle type detection in the air.
[0087] In an exemplary embodiment, the acquisition module 42 is further configured to emit red light and blue light to the target area every first preset time interval within a second preset time period, and acquire a first signal value corresponding to the red light and a second signal value corresponding to the blue light each time; the determination module is further configured to determine the reference particle type of the particles in the air of the target area every first preset time interval based on the acquired first signal value and second signal value, and store the reference particle type in the target queue; and determine the target particle type of the particles in the air of the target area based on all reference particle types stored in the target queue within the second preset time period.
[0088] In an exemplary embodiment, the determining module 44 is further configured to acquire a first reference signal value of the red light and a second reference value of the blue light corresponding to the target area; subtract the first reference signal value from the first signal value to obtain a first signal difference; and subtract the second reference signal value from the second signal value to obtain a second signal difference; determine the ratio of the first signal difference to the second signal difference, and determine the target particle type of the particles in the air of the target area based on the ratio.
[0089] In an exemplary embodiment, the determining module 44 is further configured to determine the target particle type as dust when the ratio is within a first preset range; determine the target particle type as smoke when the ratio is within a second preset range; and determine the target particle type as water vapor when the ratio is within a third preset range.
[0090] In an exemplary embodiment, the determining module 44 is further configured to determine the proportion of each particle type among all reference particle types, wherein the particle types include: dust type, smoke type and water vapor type; determine the first particle type with the highest proportion among all reference particle types; and determine the first particle type as the target particle type if the proportion of the first particle type is greater than or equal to a first preset threshold.
[0091] In an exemplary embodiment, the determining module 44 is further configured to: after determining the first particle type with the highest proportion from all reference particle types, initialize the statistical count corresponding to the first particle type to one if the proportion of the first particle type is less than the first preset threshold; repeat the following steps within a third preset time period until the target particle type is determined and the statistical counts corresponding to all particle types are cleared to zero: within the next second preset time period, emit red light and blue light to the target area at each first preset time interval, and determine the reference particle type of the particles in the air of the target area by collecting the first signal value corresponding to the red light and the second signal value corresponding to the blue light, and store the determined reference particle type in the target queue; determine the second particle type with the highest proportion from all reference particle types stored in the target queue within the next second preset time period, wherein the second particle type is the first particle type or is not the first particle type; if the proportion of the second particle type is greater than or equal to the first preset threshold, determine the second particle type as the target particle type; if the proportion of the second particle type is less than the first preset threshold, increment the statistical count corresponding to the second particle type by one; if the statistical count corresponding to the second particle type is greater than or equal to the second preset threshold, determine the second particle type as the target particle type.
[0092] In an exemplary embodiment, the determining module 44 is further configured to determine whether the second signal value collected corresponding to the blue light is greater than a third preset threshold; if the second signal value is greater than the third preset threshold, the target particle type of the particles in the air of the target area is determined by the first signal value and the second signal value; the above device further includes an output module, configured to output a warning signal corresponding to the target particle type after determining the target particle type of the particles in the air of the target area by the first signal value and the second signal value.
[0093] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0094] Embodiments of the present invention also provide a smoke detector having red and blue light emitting devices, the smoke detector being configured to perform the steps in any of the above method embodiments when running.
[0095] As an alternative example, the smoke detector described above is an inhalation-type smoke detector.
[0096] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0097] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0098] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0099] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0100] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0101] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0102] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for determining particle type, characterized in that, include: Red and blue light are emitted toward the target area, and the first signal value corresponding to the red light and the second signal value corresponding to the blue light are acquired. The target particle type in the air of the target area is determined by the first signal value and the second signal value; wherein, the target particle type includes: dust, smoke and water vapor. The process of emitting red and blue light to a target area and acquiring a first signal value corresponding to the red light and a second signal value corresponding to the blue light includes: emitting red and blue light to the target area every first preset time interval within a second preset time period and acquiring a first signal value corresponding to the red light and a second signal value corresponding to the blue light each time. Determining the target particle type of particles in the air of the target area using the first signal value and the second signal value includes: determining the reference particle type of particles in the air of the target area using the first signal value and the second signal value collected at each first preset time interval, and storing the reference particle type in the target queue; determining the target particle type of particles in the air of the target area based on all reference particle types stored in the target queue within a second preset time period. The step of determining the target particle type of the particles in the air of the target area based on all reference particle types stored in the target queue within a second preset time includes: determining the proportion of each particle type among all reference particle types; determining the first particle type with the highest proportion among all reference particle types; and determining the first particle type as the target particle type if the proportion of the first particle type is greater than or equal to a first preset threshold. After determining the first particle type with the highest proportion from all reference particle types, the method further includes: if the proportion of the first particle type is less than the first preset threshold, initializing the statistical count corresponding to the first particle type to one; repeating the following steps within a third preset time period until the target particle type is determined, and clearing the statistical counts corresponding to all particle types to zero; in the next second preset time period, emitting red and blue light to the target area every first preset time interval, and determining the reference particle type of the particles in the air of the target area by collecting the first signal value corresponding to the red light and the second signal value corresponding to the blue light, and storing the determined reference particle type in the target queue; determining the second particle type with the highest proportion from all reference particle types stored in the target queue within the next second preset time period, wherein the second particle type is the first particle type or is not the first particle type; if the proportion of the second particle type is greater than or equal to the first preset threshold, determining the second particle type as the target particle type; if the proportion of the second particle type is less than the first preset threshold, incrementing the statistical count corresponding to the second particle type by one; if the statistical count corresponding to the second particle type is greater than or equal to the second preset threshold, determining the second particle type as the target particle type.
2. The method according to claim 1, characterized in that, Determining the target particle type of the air in the target area using the first signal value and the second signal value includes: Obtain the first reference signal value of the red light and the second reference value of the blue light corresponding to the target area; Subtracting the first reference signal value from the first signal value yields a first signal difference; and subtracting the second reference signal value from the second signal value yields a second signal difference. Determine the ratio of the first signal difference to the second signal difference, and determine the target particle type of the particles in the air of the target area based on the ratio.
3. The method according to claim 2, characterized in that, Determining the target particle type of the air in the target area based on the ratio includes: When the ratio is within a first preset range, the target particle type is determined to be dust. When the ratio is within a second preset range, the target particle type is determined to be smoke. If the ratio is within a third preset range, the target particle type is determined to be water vapor.
4. The method according to claim 1, characterized in that, Determining the target particle type of the air in the target area by using the first signal value and the second signal value includes: determining whether the second signal value corresponding to the blue light is greater than a third preset threshold; if the second signal value is greater than the third preset threshold, determining the target particle type of the air in the target area by using the first signal value and the second signal value. After determining the target particle type of the particles in the air of the target area using the first signal value and the second signal value, the method further includes: outputting a warning signal corresponding to the target particle type.
5. A device for determining particle type, characterized in that, include: The acquisition module is used to emit red light and blue light to the target area, and acquire the first signal value corresponding to the red light and the second signal value corresponding to the blue light. The determination module is used to determine the target particle type of particles in the air of the target area through the first signal value and the second signal value; wherein, the target particle type includes: dust type, smoke type and water vapor type; The acquisition module is further configured to emit red light and blue light to the target area every first preset time interval within a second preset time period, and acquire the first signal value corresponding to the red light and the second signal value corresponding to the blue light each time it is collected; The determining module is further configured to determine the reference particle type of the particles in the air of the target area by means of the first signal value and the second signal value collected at each first preset time interval, and store the reference particle type in the target queue; and determine the target particle type of the particles in the air of the target area according to all the reference particle types stored in the target queue in a second preset time period. The determining module is further configured to determine the proportion of each particle type among all reference particle types; determine the first particle type with the highest proportion among all reference particle types; and determine the first particle type as the target particle type if the proportion of the first particle type is greater than or equal to a first preset threshold. The determining module is further configured to initialize the statistical count corresponding to the first particle type to one when the proportion of the first particle type is less than the first preset threshold; repeat the following steps within a third preset time period until the target particle type is determined, and clear the statistical counts corresponding to all particle types: within the next second preset time period, emit red light and blue light to the target area at each first preset time interval, and determine the reference particle type of the particles in the air of the target area by collecting the first signal value corresponding to the red light and the second signal value corresponding to the blue light, and store the determined reference particle type in the target queue; determine the second particle type with the highest proportion among all reference particle types stored in the target queue within the next second preset time period, wherein the second particle type is the first particle type or is not the first particle type; determine the second particle type as the target particle type when the proportion of the second particle type is greater than or equal to the first preset threshold; increment the statistical count corresponding to the second particle type by one when the proportion of the second particle type is less than the first preset threshold; determine the second particle type as the target particle type when the statistical count corresponding to the second particle type is greater than or equal to the second preset threshold.
6. A smoke detector, characterized in that, The smoke detector has red and blue light emitting devices, and the smoke detector is configured to perform the steps of the method described in any one of claims 1 to 4 when in operation.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 4.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 4.