Smoke alarm method and device, electronic equipment and storage medium

By analyzing the data fluctuations and trends of smoke, particulate matter, and volatile organic compounds through a multi-sensor system, and dynamically adjusting the alarm threshold, the problem of false alarms in traditional smoke detectors in complex environments is solved, achieving higher accuracy and adaptability.

CN121191261BActive Publication Date: 2026-02-27X-SENSE INNOVATIONS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511735247.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-02-27
Estimated Expiration
2045-11-25

AI Technical Summary

Technical Problem

Traditional smoke detectors have fixed trigger thresholds, making it difficult to adapt to different environments and unable to distinguish between fire smoke and interference sources such as cooking fumes and dust, resulting in frequent false alarms.

Method used

A multi-sensor system is employed, including particulate matter concentration sensors, volatile organic compound sensors, and smoke sensors. By analyzing short-term fluctuations and long-term trends in sensor data, compensation values ​​are generated, and alarm thresholds are dynamically adjusted to improve accuracy.

Benefits of technology

It improves the accuracy and adaptability of smoke alarms in complex environments, reduces false alarms, and enhances response capabilities in high-risk scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121191261B_ABST
    Figure CN121191261B_ABST
Patent Text Reader

Abstract

The application provides a smoke alarm method and device, electronic equipment and storage medium. The method comprises the following steps: acquiring a first concentration value collected by a first sensor, a second concentration value collected by a second sensor and a third concentration value collected by a third sensor; generating a first compensation value according to the change rate of the first concentration value and the second concentration value within a first time period; generating a second compensation value according to the trend value of the first concentration value and the second concentration value within a second time period, the range of the second time period is greater than that of the first time period; determining a second threshold value according to the first compensation value, the second compensation value and a first threshold value, the first threshold value being an initial alarm triggering threshold value corresponding to the third sensor; determining an alarm result according to the size relationship between the third concentration value and the second threshold value, the alarm result comprising issuing an alarm or the alarm result comprising not issuing an alarm; and in response to the alarm result being issuing an alarm, controlling an alarm to alarm. The accuracy of the smoke alarm is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of alarm devices, and in particular to a smoke alarm method and device, an electronic device, and a storage medium. BACKGROUND

[0002] Currently, traditional smoke alarms mainly monitor smoke concentration based on photoelectric detection modules. However, because the trigger threshold of the current smoke alarm is fixed, it is difficult to adapt to different environments, for example, it is unable to distinguish between fire smoke and cooking oil smoke, dust and other interference sources. Therefore, how to improve the accuracy of smoke alarm is a technical problem that needs to be solved in the field. SUMMARY

[0003] The present application provides a smoke alarm method, device, electronic device and storage medium, which improves the accuracy of smoke alarm.

[0004] In a first aspect, the present application provides a smoke alarm method, which is applied to a master controller in a smoke alarm system. The smoke alarm system further includes a first sensor, a second sensor, a third sensor, and an alarm. The first sensor is configured to detect a particulate matter concentration value. The second sensor is configured to detect a volatile organic compound concentration value. The third sensor is configured to detect a smoke concentration value. The method includes:

[0005] obtaining a first concentration value collected by the first sensor, a second concentration value collected by the second sensor, and a third concentration value collected by the third sensor;

[0006] generating a first compensation value according to a rate of change of the first concentration value and the second concentration value within a first time period;

[0007] generating a second compensation value according to a trend value of the first concentration value and the second concentration value within a second time period, the range of the second time period being greater than the range of the first time period;

[0008] determining a second threshold value according to the first compensation value, the second compensation value, and a first threshold value, the first threshold value being an initial alarm trigger threshold value corresponding to the third sensor;

[0009] determining an alarm result according to a size relationship between the third concentration value and the second threshold value, the alarm result including issuing an alarm, or the alarm result including not issuing an alarm;

[0010] in response to the alarm result being to issue an alarm, controlling the alarm to alarm.

[0011] It can be seen that, in the present application, the first compensation value is generated by using the change rate of the particulate matter concentration value and the volatile organic compound concentration value in the first time period to reflect the instantaneous disturbance characteristics in the environment, the second compensation value is generated based on the trend value analysis in the second time period to reflect the evolution direction of the environmental disturbance, the two compensation values are used to adjust the initial alarm threshold to form the second threshold which changes with the environment, and the alarm decision is realized by comparing the real-time smoke concentration with the dynamic threshold, so that the technical effects of maintaining stability and avoiding false alarm in transient disturbance (such as cooking) and improving the accuracy and adaptability of smoke alarm in complex real scenes can be achieved.

[0012] In a feasible example, the first compensation value is generated according to the change rate of the first concentration value and the second concentration value in the first time period, including:

[0013] The first concentration value and the second concentration value are normalized to obtain a first parameter and a second parameter;

[0014] The first disturbance index at the first time is determined according to the first parameter and the second parameter, and the first time is the end time of the first time period;

[0015] The change rate between the first disturbance index and the second disturbance index at the second time is determined, and the second time is the start time of the first time period;

[0016] The first compensation value is determined according to the size of the change rate, and the larger the change rate is, the larger the first compensation value is.

[0017] In the present application, after obtaining the first concentration value and the second concentration value, the first concentration value and the second concentration value are normalized to eliminate the dimensional difference and obtain comparable first parameter and second parameter; based on the two parameters, the first disturbance index at the end time of the first time period (the first time) is calculated, and the historical second disturbance index at the start time of the period (the second time) is called to calculate the change rate therebetween; the change rate reflects the intensification speed of the environmental disturbance in the short term, and the larger the change rate is, the more intense the disturbance is; accordingly, the first compensation value is determined, and the larger the change rate is, the larger the first compensation value is, which means that the system recognizes a strong instantaneous disturbance source (such as cooking oil fume rising suddenly), and needs to suppress false alarm by increasing the alarm threshold. This mechanism realizes the quantitative perception of the dynamic characteristics of non-fire disturbance sources, enables the alarm judgment to have short-term self-adaptive adjustment capability, and improves the judgment accuracy of the system in the presence of sudden pollution sources.

[0018] In a feasible example, the first disturbance index at the first time is determined according to the first parameter and the second parameter, including:

[0019] The fourth concentration value collected by the first sensor in the third time period is obtained, and the fifth concentration value collected by the second sensor in the third time period is obtained, and the range of the third time period is greater than the range of the first time period;

[0020] determining a Pearson correlation coefficient between the fourth concentration value and the fifth concentration value;

[0021] determining a first weight value according to the Pearson correlation coefficient, the higher the Pearson correlation coefficient, the lower the first weight value;

[0022] determining a first product between the first weight value and a first parameter, and determining a second product between a second weight value and a second parameter, the sum of the second weight value and the first weight value being one;

[0023] determining a first interference index according to the sum between the first product and the second product.

[0024] In the present application, the main controller obtains the fourth concentration value of the first sensor in the first time period and the fifth concentration value of the second sensor, forming two time-aligned concentration sequences; calculates the Pearson correlation coefficient between the two, to measure the synchronicity of the changes of particulate matter and volatile organic compounds; determines the first weight value according to the correlation coefficient, and the higher the correlation, the lower the first weight value, which means that when the two types of pollutants rise synchronously (similar to the cooking environment), the system increases the weight value of the second parameter corresponding to the second sensor, which can adjust the interference index in combination with different environments, improve the accuracy of subsequent compensation value calculation for the interference index, and further improve the accuracy of subsequent smoke alarm.

[0025] In a feasible example, the second compensation value is generated according to the trend value of the first concentration value and the second concentration value in the second time period, including:

[0026] normalizing the first concentration value and the second concentration value to obtain the first parameter and the second parameter;

[0027] determining the first interference index at the first time according to the first parameter and the second parameter, the first time being the end time of the second time period;

[0028] generating the first trend value at the first time according to the first interference index and at least one third interference index determined in the second time period;

[0029] determining the second compensation value according to the size of the first trend value, the larger the first trend value, the larger the second compensation value.

[0030] In the present application, the first concentration value and the second concentration value are normalized by the main controller to eliminate the dimensional difference, and the first parameter and the second parameter are obtained; based on the two parameters, the first interference index is calculated at the end of the second time period, reflecting the current composite pollution level; by comparing the index with at least one third interference index generated in the second time period before, the first trend value is generated, and the second compensation value is determined accordingly; the compensation value participates in the dynamic adjustment of the initial alarm threshold, forming the second threshold value which changes adaptively with the environmental evolution trend; this mechanism enhances the adaptability of the system to environmental pollution, and improves the technical effect of the smoke alarm in the non-steady state environment.

[0031] In a feasible example, the first trend value is generated according to the first interference index and at least one third interference index determined in the second time period, including:

[0032] The second level value at the first time is determined according to the sum of the first interference index, the first level value at the second time and the second trend value, the second time being the starting time in the first time period, and the second time period including the first time period;

[0033] The first difference value between the second level value and the first level value is determined;

[0034] The first trend value is determined according to the sum of the first difference value and the first trend value.

[0035] In the present application, the trend value is calculated by the recursive updating mechanism, which can give the system the memory ability for long-term evolution process, and the first trend value generated based on this is used for the calculation of the second compensation value, which further adjusts the alarm threshold, so as to achieve the technical effect of improving the discrimination accuracy and stability in complex environment.

[0036] In a feasible example, the second threshold value is determined according to the first compensation value, the second compensation value and the first threshold value, including:

[0037] The fourth time period in which the first time is located is determined;

[0038] The personnel condition at the first time is determined, including someone or no one;

[0039] The third weight value is determined according to the fourth time period and the personnel condition;

[0040] The third product between the sum of the first compensation value and the second compensation value and the third weight value is determined;

[0041] The sum of the third product and the first threshold value is determined as the second threshold value.

[0042] In the present application, a dynamic adjustment coefficient is generated in combination with the time mode and the dual context information of personnel presence, and the coefficient is used to weight the sum of compensation values, thereby adjusting the offset of the original threshold, which can enhance the fire sensitivity during the period of no one or night, and suppress false alarms during the period of someone or day, thereby further optimizing the accuracy and reliability of alarm decision-making in diversified environments.

[0043] In one feasible example, according to the fourth time period and the personnel situation, a third weight value is determined, including:

[0044] According to the environment mode corresponding to the fourth time period, a first value is determined, and the environment mode includes a daytime period and a nighttime period.

[0045] According to the personnel situation, a second value is determined.

[0046] The third weight value is determined according to the product between the first value and the second value.

[0047] In the present application, the corresponding adjustment coefficient is selected according to the time period type to realize time-aware threshold regulation, the spatial dimension weight is selected in combination with the personnel presence state to optimize false alarm control, and the product of the two is used to fuse the dual-dimensional context information to realize nonlinear joint regulation, which can automatically enhance the response capability of the alarm sensitivity in the night or no one, etc. high-risk or low-interference scene, and appropriately suppress the false alarm tendency in the daytime and in the presence of people, etc. easily disturbed scene, so that the second threshold has the understanding ability and adaptive adjustment characteristics to complex use environment, and further improves the accuracy and reliability of smoke alarm decision-making.

[0048] In a second aspect, the present application provides a smoke alarm device, which is applied to a main controller in a smoke alarm system, and the smoke alarm system further includes a first sensor, a second sensor, a third sensor and an alarm, the first sensor is used to detect a particulate matter concentration value, the second sensor is used to detect a volatile organic compound concentration value, and the third sensor is used to detect a smoke concentration value, and the device includes:

[0049] A communication unit is configured to obtain a first concentration value collected by the first sensor, a second concentration value collected by the second sensor, and a third concentration value collected by the third sensor.

[0050] A processing unit is configured to generate a first compensation value according to a change rate of the first concentration value and the second concentration value within a first time period.

[0051] The processing unit is further configured to generate a second compensation value according to a trend value of the first concentration value and the second concentration value within a second time period, and the range of the second time period is greater than the range of the first time period.

[0052] The processing unit is further configured to determine a second threshold value according to the first compensation value, the second compensation value, and a first threshold value, the first threshold value being an initial alarm triggering threshold value corresponding to the third sensor;

[0053] The processing unit is further configured to determine an alarm result according to a size relationship between the third concentration value and the second threshold value, the alarm result including issuing an alarm, or the alarm result including not issuing an alarm.

[0054] The communication unit is configured to control the alarm device to issue an alarm in response to the alarm result being to issue an alarm.

[0055] In a third aspect, the present application provides an electronic device, which includes a processor, a memory, and a communication interface, the processor, the memory, and the communication interface are connected to each other and complete communication work with each other, the memory stores executable program codes, the communication interface is configured to perform wireless communication, and the processor is configured to call the executable program codes stored in the memory and execute part or all of the steps described in any of the methods of the first aspect.

[0056] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, the computer program, when executed by a processor, implements part or all of the steps described in the first aspect of the present application.

[0057] In a fifth aspect, the present application provides a computer program product, which includes a computer program, the computer program, when executed by a processor, implements part or all of the steps described in the first aspect of the present application. The computer program product can be a software installation package. BRIEF DESCRIPTION OF DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed in the embodiments or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0059] Figure 1 A structural schematic diagram of a smoke alarm system provided by an embodiment of the present application;

[0060] Figure 2 A flowchart of a smoke alarm method provided by an embodiment of the present application;

[0061] Figure 3 A flowchart of another smoke alarm method provided by an embodiment of the present application;

[0062] Figure 4A flowchart of another smoke alarm method provided by the embodiment of the present application is shown in FIG. 6;

[0063] Figure 5 A functional unit composition block diagram of a smoke alarm device provided by the embodiment of the present application is shown in FIG. 3;

[0064] Figure 6 A functional unit composition block diagram of another smoke alarm device provided by the embodiment of the present application is shown in FIG. 4;

[0065] Figure 7 A structural block diagram of an electronic device provided by the embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

[0066] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0067] The terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps is not limited to the listed steps, but can optionally include steps not listed, or can optionally include other steps inherent to the process, method, product, or device.

[0068] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0069] At present, the traditional smoke alarm mainly monitors the smoke concentration based on the photoelectric detection module, and its alarm triggering threshold is relatively fixed, which is difficult to adapt to different environments. For example, it cannot distinguish between fire smoke and cooking oil smoke, dust and other interference sources. In the kitchen, garage and other high-dust / oil smoke environments, pollutants entering the maze will raise the background signal, eventually leading to false alarms even without fire, as the signal exceeds the fixed threshold. Therefore, how to improve the accuracy of smoke alarm is a technical problem that needs to be solved in the field.

[0070] Based on this, the application provides a smoke alarm method, which collects the particulate matter concentration and volatile organic compound concentration, generates a short-term compensation value and a long-term compensation value according to the short-term fluctuation and long-term trend of the particulate matter concentration and volatile organic compound concentration respectively, and compensates the trigger threshold of the smoke alarm according to the short-term compensation value and the long-term compensation value, thereby improving the accuracy of smoke alarm.

[0071] Please refer to Figure 1 , Figure 1 The smoke alarm system provided by the embodiment of the application has the structure as shown in the figure. Figure 1 The smoke alarm system 100 includes a main controller 101, a first sensor 102, a second sensor 103, a third sensor 104, and an alarm 105.

[0072] The main controller 101 is the core processing unit of the system, responsible for controlling all sensors, executing data processing logic, and managing alarm decisions.

[0073] The first sensor 102 can be a dust monitoring module, for example, a PM2.5 sensor module based on the laser scattering principle, which directly outputs the particulate matter mass concentration value through a digital interface (such as a universal asynchronous receiver-transmitter).

[0074] The second sensor 103 can be an oil fume monitoring module, for example, a volatile organic compound (VOC) sensor module based on metal oxide semiconductor, which outputs a digital signal or an analog voltage value related to the volatile organic compound concentration.

[0075] The third sensor 104 can be a photoelectric detection module, for example, a traditional optical labyrinth component, including an infrared emitter tube and a main receiver tube, which outputs an original electric signal related to the smoke concentration.

[0076] The alarm 105 can include a buzzer, a light-emitting diode (LED) indicator light, and other local alarm devices, and can be extended with a wireless communication module (such as Wi-Fi / RF) for remote alarm.

[0077] In the present application, the main controller 101 acquires the first concentration value collected by the first sensor 102, the second concentration value collected by the second sensor 103, and the third concentration value collected by the third sensor 104; generates a first compensation value according to the change rate of the first concentration value and the second concentration value within a first time period; generates a second compensation value according to the trend value of the first concentration value and the second concentration value within a second time period, the range of the second time period being greater than the range of the first time period; determines a second threshold value according to the first compensation value, the second compensation value, and a first threshold value, the first threshold value being an initial alarm triggering threshold value corresponding to the third sensor 104; determines an alarm result according to the size relationship between the third concentration value and the second threshold value, the alarm result including issuing an alarm, or the alarm result including not triggering an alarm; and controls the alarm 105 to alarm in response to the alarm result being triggering an alarm. In this way, by additionally collecting particulate matter concentration and volatile organic compound concentration, and generating a short-term compensation value and a long-term compensation value according to the short-term fluctuation and the long-term trend thereof, respectively, the triggering threshold value of the smoke alarm is compensated, and the accuracy of the smoke alarm is improved.

[0078] Based on this, the present application provides a smoke alarm method, which will be described in detail below in combination with the accompanying drawings.

[0079] Embodiment one, the main process of the smoke alarm method will be described below.

[0080] Please refer to Figure 2 , Figure 2 A flowchart of a smoke alarm method provided by the present application is shown in the figure, which is applied to the above-mentioned main controller, as shown in the figure, the method comprises the following steps. Figure 2

[0081] Step S201, acquiring the first concentration value collected by the first sensor, the second concentration value collected by the second sensor, and the third concentration value collected by the third sensor.

[0082] The first concentration value can be the value output by the first sensor at the current time, which represents the particulate matter concentration, and can be used to participate in the generation of the first compensation value and the second compensation value, for correcting the initial alarm threshold value. In the present embodiment, the first concentration value can be sampled in real time by the first sensor and transmitted to the main controller through an analog-digital conversion interface.

[0083] The second concentration value can be the value output by the second sensor at the current time, which represents the volatile organic compound concentration, and can be used to participate in the generation of the first compensation value and the second compensation value, for correcting the initial alarm threshold value. In one specific embodiment, the second concentration value can be sampled in real time by the second sensor and transmitted to the main controller through an analog-digital conversion or digital communication interface.

[0084] ​The third concentration value can be a value outputted by the third sensor at a certain time, representing the concentration of smoke, and can be used as a comparison with the second threshold value adjusted dynamically to determine whether to alarm. In the embodiment, the third concentration value can be measured by the third sensor in real time according to the light scattering intensity caused by smoke, and converted into a digital quantity by a signal conditioning circuit and transmitted to the host controller.

[0085] The first concentration value of the first sensor, the second concentration value of the second sensor, and the third concentration value of the third sensor can be output data of the three sensors periodically read by the host controller through a communication interface, to complete synchronization or multi-channel polling sampling.

[0086] In step S202, a first compensation value is generated according to the change rate of the first concentration value and the second concentration value in a first time period.

[0087] The first time period can be a time window for analyzing short-term concentration fluctuations, and can be used to limit the time range for calculating the change rate, focusing on extracting instantaneous disturbance characteristics. For example, the first time period can be set by the internal clock of the host controller, and the duration can be several seconds to several minutes, which is less than the second time period.

[0088] The first compensation value can be used to reflect whether there is a rapidly rising interference source (such as cooking fume) in the current environment, to reduce the false alarm probability. In the embodiment, the first compensation value can be calculated by the host controller to obtain the derivative or differential slope of the two concentration values in a short time, and a weighting coefficient is combined to synthesize a single compensation value.

[0089] In step S203, a second compensation value is generated according to the trend value of the first concentration value and the second concentration value in a second time period.

[0090] The second time period can be a time window for analyzing long-term concentration trends, and can be used to support trend fitting or mean shift analysis to capture the slow evolution law of the environment background. The second compensation value can be a correction parameter generated based on the trend value of the first concentration value and the second concentration value in the second time period. According to the trend value of the first concentration value and the second concentration value in the second time period, the second compensation value can be generated by the host controller to model the trend of the data sequence of the first concentration value and the second concentration value in a longer historical time period, extract the trend characteristics of monotone increasing, stable or decreasing, and map to the corresponding compensation value.

[0091] In step S204, the second threshold value is determined according to the first compensation value, the second compensation value, and the first threshold value.

[0092] The first threshold value can be a third sensor factory setting or a user-configured initial alarm trigger threshold value, which can be used as a reference value to participate in the construction of a dynamic threshold value. In this embodiment, the first threshold value can be stored in the non-volatile memory of the main controller, which can be a fixed constant or a preset interval.

[0093] The second threshold value is an actual alarm trigger threshold value adjusted by the first compensation value and the second compensation value, which can be used to realize adaptive alarm judgment and improve the judgment accuracy in complex environments. For example, the second threshold value can be determined according to the first compensation value, the second compensation value, and the first threshold value, which can be achieved by multiplying the two compensation values by the adjustment coefficient and adding or subtracting the first threshold value, or using a fuzzy logic rule engine to generate a nonlinear output of the second threshold value from the three inputs, so that the alarm threshold value can be adaptively changed with the environment state, and the anti-interference and fire sensitivity can be considered.

[0094] Optionally, in one embodiment, the second threshold value is determined according to the first compensation value, the second compensation value, and the first threshold value, which includes: determining a fourth time period at a first time; determining a personnel condition at the first time, the personnel condition including a person or the personnel condition including no person; determining a third weight value according to the fourth time period and the personnel condition; determining a third product between the sum of the first compensation value and the second compensation value and the third weight value; and determining a sum between the third product and the first threshold value as the second threshold value.

[0095] The first time can be a specific time point at which the main controller performs threshold value adjustment calculation, which can be used as a time reference basis for determining the time period and the personnel state. The fourth time period can be a time interval for dividing different environment modes, which provides context information for setting compensation weights. For example, the fourth time period can be determined by matching the system clock with a preset time rule, for example, defining 22:00 to 6:00 as a night period and 6:00 to 22:00 as a daytime period.

[0096] Determining the fourth time period at the first time can be that the main controller compares the current system time with the pre-stored time period division rule to match the time period category. The personnel condition can be a state variable indicating whether there is personnel activity in the monitoring area, which can be used to determine whether the current environment is in a person state. In this embodiment, the personnel condition can be detected by an infrared sensor, a millimeter wave radar, or a Wi-Fi signal disturbance analysis to determine the presence of a human body, and the result is transmitted to the main controller.

[0097] The third weight value can be a dynamic adjustment coefficient determined according to the fourth time period and the personnel condition, which can be used to control the correction amplitude of the sum of the first compensation value and the second compensation value to the first threshold value, and realize sensitivity adjustment under situational awareness.

[0098] According to the fourth time period and the personnel condition, the third weight value is determined, which can be output by the main controller in combination with the current fourth time period and the personnel condition by searching a preset mapping table or executing conditional judgment logic.

[0099] Taking the residence night sleep period as an example, the smoke alarm method of the embodiment can be that when it is 2 o'clock in the morning (belonging to the night quiet period) and there is no personnel movement in the room, the main controller determines that the fourth time period is a low activity period and the personnel condition is no one. At this time, the system gives a lower third weight value, reduces the joint effect of the first compensation value and the second compensation value, improves the fire detection sensitivity, and ensures the safety warning ability during sleep.

[0100] In the embodiment, the dynamic adjustment coefficient is generated in combination with the time mode and the personnel existence, and the sum of the compensation values is weighted by using the coefficient, and then the offset of the original threshold value is adjusted, so that the fire sensitivity is enhanced when there is no one or in the night period, and the false alarm is suppressed when there is someone or in the daytime period, thereby further optimizing the accuracy and reliability of the alarm decision in diversified environments.

[0101] Optionally, according to the fourth time period and the personnel condition, the third weight value is determined, including: determining a first value according to an environment mode corresponding to the fourth time period, the environment mode including a daytime period and a night period; determining a second value according to the personnel condition; and determining the third weight value according to a product between the first value and the second value.

[0102] Among them, the daytime period can be recognized by the system clock to determine the time range, for example, 6:00 to 22:00 is regarded as the daytime period, and the specific boundary can be configured. Illustratively, the daytime period can be further divided into one or more of the morning period, the daytime work period, the evening cooking period, etc. The night period is similar, for example, 22:00 to 6:00 the next day is regarded as the night, which is mutually exclusive with the daytime period.

[0103] The first value can be a preset adjustment coefficient corresponding to the type (daytime period or nighttime period) to which the fourth time period belongs. For example, considering that a fire occurring during the day is also likely to be discovered in time and the probability of interference by oil smoke or dust generated during the day is higher, the first value can be taken as a lower value to inhibit excessive response. A fire occurring at night is less likely to be discovered in time, and the first value can be taken as a higher value to enhance sensitivity. Similar to the case with or without people, in the case with people, the fire is more likely to be discovered after the occurrence of the fire, the fire can be put out in time, and the degree of harm is lower. Therefore, in the case with people, the second value can be taken as a lower value, and in the case without people, the second value can be taken as a higher value. The third weight value can be a comprehensive weight value that integrates the time and spatial context information, and can be used to control the correction range of the sum of the first compensation value and the second compensation value to the first threshold value.

[0104] In the embodiment, the corresponding adjustment coefficient is selected according to the type of the time period to realize time-aware threshold regulation, the spatial dimension weight is selected in combination with the presence state of the person to optimize false alarm control, and the product of the two is used to integrate the two-dimensional context information to realize nonlinear joint regulation, so that the alarm sensitivity can be automatically enhanced in response to the high-risk or low-interference scene at night or without people, and the false alarm tendency can be appropriately inhibited in the easily disturbed scene during the day and with people, so that the second threshold value has the understanding ability and the self-adaptive adjustment characteristic to the complex use environment, and the accuracy and reliability of the smoke alarm decision are further improved.

[0105] In step S205, the alarm result is determined according to the size relationship between the third concentration value and the second threshold value.

[0106] The alarm result can be determined by the main controller performing a value comparison operation. If the third concentration value reaches or exceeds the second threshold value, it is determined that the alarm is issued, otherwise, the alarm is not issued.

[0107] In step S206, in response to the alarm result being to issue the alarm, the alarm is controlled to alarm.

[0108] The main controller sends an activation signal to the alarm when it is determined that the alarm result is to issue the alarm, and starts the sound and light alarm function until manual reset or automatic delay off. Further, the operation can be directly driven to the alarm by pulling up the level of the general input / output port (GPIO) pin, or the control command can be sent to the alarm through the two-wire serial (I2C) or universal asynchronous receiver-transmitter (UART) protocol.

[0109] In the present application, the first compensation value is generated by using the change rate of the particulate matter concentration value and the volatile organic compound concentration value in the first time period to reflect the instantaneous disturbance characteristics in the environment, the second compensation value is generated based on the trend value analysis in the second time period longer to embody the evolution direction of the environmental disturbance, the two compensation values are used to adjust the initial alarm threshold to form the second threshold which changes dynamically with the environment, and the alarm decision is realized by comparing the real-time smoke concentration with the dynamic threshold, which can achieve the technical effect of maintaining stability and not false alarm in transient disturbance (such as cooking), and improving the accuracy and adaptability of smoke alarm in complex real scenes.

[0110] In the following, based on the determination details of the first compensation value, the smoke alarm method is described in detail.

[0111] Please refer to Figure 3 , Figure 3 Another flowchart of a smoke alarm method provided by the embodiment of the present application is provided, which is applied to the above-mentioned main controller, as shown in Figure 3 The method comprises the following steps.

[0112] Step S301, obtaining the first concentration value collected by the first sensor, the second concentration value collected by the second sensor, and the third concentration value collected by the third sensor.

[0113] Step S302, normalizing the first concentration value and the second concentration value to obtain the first parameter and the second parameter.

[0114] The first parameter can be a dimensionless value obtained by normalizing the first concentration value, which can be used to eliminate the dimensional and amplitude differences of different sensors, and facilitate fusion calculation with other parameters. In a specific embodiment, the first parameter can be obtained by mapping to a unified interval by subtracting a first reference value (particulate matter concentration reference value) from the first concentration value and dividing by a preset range or standard deviation. For example, the first parameter can be compressed to the interval [0, 1] using the min-max normalization method, or the data mean is 0 and the variance is 1 using the Z-score standardization, so that the multi-source sensor data is balanced in the fusion process, and the data comparability is improved.

[0115] The second parameter can be a dimensionless value obtained by normalizing the second concentration value. In the present embodiment, the second parameter can be obtained by scaling to a standardized interval by subtracting a second reference value (volatile organic compound concentration reference value) from the second concentration value. It can be understood that the first reference value and the second reference value can be reference values calibrated by experiments.

[0116] Step S303, determining the first disturbance index at the first time according to the first parameter and the second parameter.

[0117] The first time point can be an end time point of the first time period. The first interference index can be a quantitative index reflecting the comprehensive interference intensity of the environment at the first time point, and can be used to represent the degree of composite pollution caused by non-fire sources (such as cooking) at the current time point. In this embodiment, the first interference index can be obtained by the main controller by weighted summation, product fusion or nonlinear function combination of the first parameter and the second parameter to generate a single numerical value.

[0118] Optionally, in one of the embodiments, the first interference index at the first time point is determined according to the first parameter and the second parameter, comprising: obtaining a fourth concentration value collected by the first sensor in a third time period, and obtaining a fifth concentration value collected by the second sensor in the third time period, the range of the third time period being greater than the range of the first time period; determining a Pearson correlation coefficient between the fourth concentration value and the fifth concentration value; determining a first weight value according to the Pearson correlation coefficient, the higher the Pearson correlation coefficient, the lower the first weight value; determining a first product between the first weight value and the first parameter, and determining a second product between a second weight value and the second parameter, the sum of the first weight value and the second weight value being one; and determining the first interference index according to the sum of the first product and the second product.

[0119] The fourth concentration value can be a time sequence composed of a plurality of particulate matter concentration data collected by the first sensor in the third time period, and can be used to analyze the change pattern of the particulate matter concentration with time, and support the statistical correlation calculation with the volatile organic compound concentration. In this embodiment, the fourth concentration value can be a data read by the main controller from the first sensor at a fixed frequency in the third time period, thereby forming a set of time-aligned sampling points. The fifth concentration value can be a time sequence composed of a plurality of volatile organic compound concentration data collected by the second sensor in the third time period, and can be used to evaluate the VOC concentration change trend as the basis data for synchronous analysis with the particulate matter concentration.

[0120] The Pearson correlation coefficient can be a dimensionless statistical index for measuring the linear correlation degree of two variables in a time sequence, and can be used to quantify the consistency level of the particulate matter and the volatile organic compound concentration change, and assist in identifying the nature of the signal source. In this embodiment, the Pearson correlation coefficient can be obtained by the main controller by calculating the ratio of the covariance of the fourth concentration value and the fifth concentration value at the same time point to the product of their respective standard deviations. For example, the Pearson correlation coefficient between the fourth concentration value and the fifth concentration value can be obtained by the main controller by calculating the mean, covariance and respective standard deviation between the two time sequences, and substituting the Pearson formula to obtain the correlation value. Further, this operation can be realized by using fast Fourier transform to assist in calculating the covariance, or using an approximate algorithm such as Z-score to simplify and reduce the calculation overhead, so as to reveal whether the particulate matter and the volatile organic compound change synchronously, and distinguish the real fire from the non-coordinated interference source.

[0121] The first sensor has the characteristics of slow response speed, but is more stable, less affected by environmental temperature and humidity, and responds to various interference sources (dust, smoke, and oil fume). The second sensor has the characteristics of fast response speed, but is prone to drift, sensitive to temperature and humidity, more sensitive to specific organic matter (oil fume), and not sensitive to inorganic dust. When the Pearson correlation coefficient is high, it indicates that the correlation between the particulate matter concentration value and the volatile organic compound concentration value in the current environment is high, at this time, it may be in a cooking environment, which will produce a large amount of particulate matter and volatile organic compounds, so the volatile organic compound concentration value detected by the second sensor in the current scene is more reliable, and therefore the weight value corresponding to the second parameter needs to be increased, and the weight value corresponding to the first parameter is reduced. When the Pearson correlation coefficient is low, it indicates that the correlation between the particulate matter concentration value and the volatile organic compound concentration value in the current environment is low, at this time, it may be in a dust operation environment, so the particulate matter concentration value detected by the first sensor in the current scene is more reliable, and therefore the weight value corresponding to the first parameter needs to be increased, and the weight value corresponding to the second parameter is reduced.

[0122] The first weight value can be determined according to the Pearson correlation coefficient. The main controller can input the calculated correlation coefficient into a preset mapping function, such as a linear decrease or a segmented threshold, and output the corresponding weight value. For example, the determination formula of the first weight value includes: K1=1-correlation(a,b) / 2, wherein K1 is used to represent the first weight value, and correlation(a,b) is used to represent the Pearson correlation coefficient.

[0123] The second weight value can be a dynamic weighting coefficient assigned to the second parameter, which can be used to ensure that the volatile organic compound concentration parameter has a complementary weight in the fusion process and maintains overall balance. For example, the second weight value can be set to 1 minus the first weight value by the main controller, ensuring that the sum of the two weight values is 1.

[0124] In this embodiment, the main controller obtains the fourth concentration value of the first sensor and the fifth concentration value of the second sensor in the first time period, forms two time-aligned concentration sequences, calculates the Pearson correlation coefficient between the two, to measure the synchronicity of the changes of particulate matter and volatile organic compounds, determines the first weight value according to the correlation coefficient, and the higher the correlation, the lower the first weight value, which means that when the two types of pollutants rise synchronously (similar to a cooking environment), the system increases the weight value of the second parameter corresponding to the second sensor. This can adjust the interference index in different environments, improve the accuracy of subsequent compensation value calculation for the interference index, and further improve the accuracy of subsequent smoke alarm.

[0125] In step S304, the change rate between the first interference index and the second interference index at the second time is determined.

[0126] The second time point can be the starting time point of the first time period, and can be used to provide a historical reference point for calculating the evolution rate of the interference index in a short time. For example, the second time point can be the time point at which the concentration value is collected by the sensor before the first time point.

[0127] The second interference index can be a quantitative index reflecting the comprehensive interference intensity of the environment at the second time point, and can be used as a historical reference value for evaluating the change rate of the interference level. The second interference index is an index calculated by the same calculation method as the first interference index based on the concentration values collected by the two sensors at the second time point. The change rate can be used to quantify the degree of severity of environmental interference in a short period of time, and to determine whether there is a sudden non-fire emission event. For example, the change rate can be obtained by calculating the difference between the two interference indexes divided by the length of the first time period, to obtain the change amount per unit time.

[0128] In step S305, the first compensation value is determined according to the size of the change rate.

[0129] The first compensation value can be dynamically adjusted according to the size of the change rate of the interference index, and the value increases with the increase of the change rate, which is used to adjust the alarm judgment threshold to suppress false alarms. In this embodiment, the first compensation value can be obtained by inputting the change rate of the interference index into a mapping function (such as a linear gain or a segmented threshold). Further, the first compensation value can be used to adjust the second threshold on which the alarm judgment depends, so that the system still maintains the discrimination stability in a strong interference environment. For example, the first compensation value can be obtained by setting multiple change rate intervals, each interval corresponding to a different compensation increment, or using a continuous function (such as a power function) to achieve smooth mapping, thereby achieving differentiated response to different intensity interference. The first compensation value can also be set with corresponding upper and lower amplitude limits to prevent excessive compensation.

[0130] In this embodiment, after obtaining the first concentration value and the second concentration value, normalization processing is performed to eliminate the dimensional difference and obtain comparable first and second parameters. Based on the two parameters, the first interference index is calculated at the end time point (the first time point) of the first time period, and the historical second interference index at the starting time point (the second time point) of the time period is called to calculate the change rate therebetween. The change rate reflects the intensification speed of the environmental interference in a short period of time, and the greater the change rate, the more intense the interference. Accordingly, the first compensation value is determined, and the greater the change rate, the greater the first compensation value, which means that the system recognizes a strong instantaneous interference source (such as a sudden increase in cooking fume), and needs to increase the alarm threshold to suppress false alarms. This mechanism realizes quantitative perception of the dynamic characteristics of non-fire interference sources, enables short-term self-adaptive adjustment of the alarm judgment, and improves the judgment accuracy of the system in the presence of sudden pollution sources.

[0131] Step S306, generating a second compensation value according to the first concentration value and the trend value of the second concentration value in the second time period.

[0132] Step S307, determining a second threshold value according to the first compensation value, the second compensation value and the first threshold value.

[0133] Step S308, determining an alarm result according to the size relationship between the third concentration value and the second threshold value.

[0134] Step S309, in response to the alarm result being to issue an alarm, controlling the alarm to alarm.

[0135] Embodiment three, the smoke alarm method will be described in detail based on the determination details of the second compensation value.

[0136] Please refer to Figure 4 , Figure 4 Another flowchart of a smoke alarm method provided by the embodiments of the present application is provided, which is applied to the main controller as described above, as shown in Figure 4 The method comprises the following steps.

[0137] Step S401, obtaining a first concentration value collected by a first sensor, a second concentration value collected by a second sensor and a third concentration value collected by a third sensor.

[0138] Step S402, generating a first compensation value according to the change rate of the first concentration value and the second concentration value in a first time period.

[0139] Step S403, performing normalization processing on the first concentration value and the second concentration value to obtain a first parameter and a second parameter.

[0140] Step S404, determining a first interference index at a first time according to the first parameter and the second parameter.

[0141] Wherein, the determination of the first interference index at the first time according to the first parameter and the second parameter can be performed in the same manner as the foregoing embodiments, which will not be described here.

[0142] Step S405, generating a first trend value at the first time according to the first interference index and at least one third interference index determined in the second time period.

[0143] Wherein, the third interference index can be a historical interference index determined at a non-end time in the second time period, which can be used to provide historical reference data in time sequence to support trend evolution judgment.

[0144] The first trend value can be a trend characteristic quantity generated based on a relative change relationship between the first interference index and at least one third interference index, and can be used to reflect an evolution trend of the composite pollution level in the second time period and distinguish between continuous growth and temporary fluctuation. For example, the first trend value can be extracted by the main controller by comparing the numerical difference between the first interference index and the historical third interference index, by difference, ratio or slope fitting.

[0145] Optionally, in one embodiment, the first trend value is generated according to the first interference index and at least one third interference index determined in the second time period, including: determining a second level value at a first time according to a sum of the first interference index, a first level value at a second time and a second trend value at the second time, the second time being a starting time in the first time period, and the second time period including the first time period; determining a first difference value between the second level value and the first level value; and determining the first trend value according to a sum of the first difference value and the first trend value.

[0146] The first level value can be a state quantity used to represent an environmental interference reference level, and can be used to provide a reference value in a time sequence and compare with a subsequently updated level value to extract a change amplitude.

[0147] The second level value can be a state quantity reflecting a cumulative pollution level as of the first time, and can be used to represent an environmental interference level estimated value updated based on a current interference intensity and a historical trend at the first time.

[0148] For example, a calculation formula of the second level value is:

[0149]

[0150] In the formula, X(t) is used to represent the second level value, A(t) is used to represent the first interference index, X(t-1) is used to represent the first level value, Y(t-1) is used to represent the second trend value, k1 and k2 are corresponding weights respectively, and k1+k2=1. Generally, k1 can be 0.3, and k2 can be 0.7.

[0151] A calculation formula of the first trend value is:

[0152]

[0153] In the formula, Y(t) is used to represent the first trend value, k3 and k4 are corresponding weights respectively, and k3+k4=1. Generally, k3 can be 0.1, and k4 can be 0.9.

[0154] It can be understood that the first level value refers to a historical level value determined when the level value is calculated last time before the second level value, and the second trend value refers to a historical trend value determined when the trend value is calculated last time before the first trend value. The start time and the end time of the first time period can be used to represent the time when the data of the sensor is acquired adjacent to the front and back. Therefore, when the trend value is calculated, in addition to considering the interference index calculated twice in the first time period, all previous interference indexes also need to be considered, and the second time period at this time can be used to represent the time period from the first time when the data of the sensor is acquired to the first time.

[0155] In the embodiment, the calculation of the trend value is performed through a recursive updating mechanism, which can give the system the ability to remember the long-term evolution process. The first trend value generated based on this is used for the calculation of the second compensation value, and then the alarm threshold is adjusted, which can achieve the technical effect of improving the discrimination accuracy and stability in a complex environment.

[0156] In step S406, the second compensation value is determined according to the size of the first trend value.

[0157] Wherein, the greater the first trend value, the greater the second compensation value. According to the size of the first trend value to determine the second compensation value, the main controller can map the first trend value to the second compensation value, and the mapping relationship is a monotonically increasing function. Further, the operation can obtain the corresponding compensation value from the pre-stored mapping table by table lookup method, or use linear or exponential function to generate continuous output.

[0158] In the embodiment, the main controller performs normalization processing on the first concentration value and the second concentration value to eliminate the dimensional difference and obtain the first parameter and the second parameter; based on the two parameters, the first interference index is calculated at the end time of the second time period, reflecting the current complex pollution level; by comparing the index with at least one third interference index generated in the second time period, the first trend value is generated, and the second compensation value is determined accordingly; the compensation value participates in the dynamic adjustment of the initial alarm threshold, forming the second threshold value which changes adaptively with the environmental evolution trend; this mechanism enhances the adaptability of the system to environmental pollution, and improves the discrimination accuracy of the smoke alarm in a non-steady state environment.

[0159] In step S407, the second threshold value is determined according to the first compensation value, the second compensation value and the first threshold value.

[0160] In step S408, the alarm result is determined according to the size relationship between the third concentration value and the second threshold value.

[0161] In step S409, in response to the alarm result being to issue an alarm, the alarm is controlled to alarm.

[0162] In accordance with the above-mentioned embodiments, please refer toFigure 5 , Figure 5 A functional unit composition block diagram of a smoke alarm device is provided for an embodiment of the present application. The smoke alarm device is the above-mentioned main controller or a part of the main controller. As shown in FIG. 5, the smoke alarm device 50 comprises: Figure 5

[0163] A communication unit 501 configured to acquire a first concentration value collected by a first sensor, a second concentration value collected by a second sensor, and a third concentration value collected by a third sensor;

[0164] A processing unit 502 configured to generate a first compensation value according to a change rate of the first concentration value and the second concentration value within a first time period;

[0165] The processing unit 502 is further configured to generate a second compensation value according to a trend value of the first concentration value and the second concentration value within a second time period, the range of the second time period being greater than the range of the first time period;

[0166] The processing unit 502 is further configured to determine a second threshold value according to the first compensation value, the second compensation value, and a first threshold value, the first threshold value being an initial alarm triggering threshold value corresponding to the third sensor;

[0167] The processing unit 502 is further configured to determine an alarm result according to a size relationship between the third concentration value and the second threshold value, the alarm result including issuing an alarm, or the alarm result including not issuing an alarm;

[0168] The communication unit 501 is configured to control an alarm to alarm in response to the alarm result being to issue an alarm.

[0169] In a feasible embodiment, in the aspect of generating the first compensation value according to the change rate of the first concentration value and the second concentration value within the first time period, the processing unit 502 is specifically configured to:

[0170] normalize the first concentration value and the second concentration value to obtain a first parameter and a second parameter;

[0171] determine a first interference index at a first time instant according to the first parameter and the second parameter, the first time instant being an ending time instant of the first time period;

[0172] determine a change rate between the first interference index and a second interference index at a second time instant, the second time instant being a starting time instant of the first time period;

[0173] determine the first compensation value according to the size of the change rate, the greater the change rate, the greater the first compensation value.

[0174] In a feasible embodiment, in the aspect of determining the first interference index at the first time instant according to the first parameter and the second parameter, the processing unit 502 is specifically configured to: ​

[0175] obtaining a fourth concentration value collected by the first sensor in a third time period and a fifth concentration value collected by the second sensor in the third time period, the third time period having a range greater than the first time period;

[0176] determining a Pearson correlation coefficient between the fourth concentration value and the fifth concentration value;

[0177] determining a first weight value according to the Pearson correlation coefficient, the higher the Pearson correlation coefficient, the lower the first weight value;

[0178] determining a first product between the first weight value and a first parameter, and determining a second product between a second weight value and a second parameter, the sum of the first weight value and the second weight value being one;

[0179] determining the first interference index according to the sum between the first product and the second product.

[0180] In a possible implementation, in the aspect of generating the second compensation value according to a trend value of the first concentration value and the second concentration value in the second time period, the processing unit 502 is specifically configured to:

[0181] normalizing the first concentration value and the second concentration value to obtain a first parameter and a second parameter;

[0182] determining a first interference index at a first time point according to the first parameter and the second parameter, the first time point being an ending time point of the second time period;

[0183] generating a first trend value at the first time point according to the first interference index and at least one third interference index determined in the second time period;

[0184] determining the second compensation value according to a size of the first trend value, the larger the first trend value, the larger the second compensation value.

[0185] In a possible implementation, in the aspect of generating the first trend value according to the first interference index and at least one third interference index determined in the second time period, the processing unit 502 is specifically configured to:

[0186] determining a second level value at the first time point according to a sum of the first interference index, a first level value at a second time point and a second trend value, the second time point being a starting time point in the first time period, and the second time period including the first time period;

[0187] determining a first difference value between the second level value and the first level value;

[0188] determining the first trend value according to a sum of the first difference value and the first trend value.

[0189] In one feasible embodiment, in determining the second threshold based on the first compensation value, the second compensation value, and the first threshold, the processing unit 502 is specifically configured to:

[0190] Determine the fourth time period in which the first moment occurs;

[0191] Determine the personnel situation at the first moment, including whether there are people present or not.

[0192] The third weight is determined based on the fourth time period and the personnel situation;

[0193] Determine the third product between the sum of the first and second compensation values ​​and the third weight;

[0194] The sum between the third product and the first threshold is determined as the second threshold.

[0195] In a feasible embodiment, in determining the third weight based on the fourth time period and personnel situation, the processing unit 502 is specifically used for:

[0196] The first value is determined based on the environmental pattern corresponding to the fourth time period, which includes daytime and nighttime periods.

[0197] Determine the second value based on the personnel situation;

[0198] The third weight is determined by the product of the first and second values.

[0199] It is understood that since the method embodiments and the device embodiments are different presentations of the same technical concept, the content of the method embodiment section in this application should be adapted to the device embodiment section in a synchronous manner, and will not be repeated here.

[0200] When using integrated units, such as Figure 6 As shown, Figure 6 This is a block diagram of the functional units of another smoke alarm device provided in an embodiment of this application. Figure 6 In this document, the smoke alarm device 50 includes a processing module 612 and a communication module 611. The processing module 612 controls and manages the operation of the smoke alarm device 50, for example, the steps of the processing unit 502, and / or other processes for executing the techniques described herein. The communication module 611 supports interaction between the smoke alarm device 50 and other devices, such as the steps of the communication unit 501. Figure 6 As shown, the smoke alarm device 50 may also include a storage module 613, which is used to store the program code and data of the smoke alarm device 50.

[0201] The processing module 612 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, and the like. The communication module 611 can be a transceiver, RF circuit, or communication interface, etc. The storage module 613 can be a memory.

[0202] All related content of each scenario involved in the above method embodiments can be cited to the functional description of the corresponding functional module, which will not be repeated here. The above smoke alarm device 50 can all execute the above smoke alarm method. Figure 2 The smoke alarm method shown in the above smoke alarm method.

[0203] The above embodiments can be realized by software, hardware, firmware, or any combination thereof, in whole or in part. When realized by software, the above embodiments can be realized in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the flow or function according to the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center through wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. containing one or more available medium collections. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium can be a solid-state disk.

[0204] Figure 7 A structural block diagram of an electronic device provided by the embodiments of the present application is shown in FIG. 1. As shown in FIG. 1, the electronic device includes a processor 101, a communication interface 102, a memory 103, and a bus 104. Figure 7As shown, the electronic device 700 can include one or more of the following components: a processor 701, a memory 702, and a communication interface 703, which are connected to each other and perform communication work with each other, wherein the memory 702 can store one or more computer programs which can be configured to be executed by the one or more processors 701 to implement the methods described in the above embodiments.

[0205] The processor 701 can include one or more processing cores. The processor 701 connects various parts in the entire electronic device 700 by various interfaces and lines, and performs various functions of the electronic device 700 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 702, and calling data stored in the memory 702. Optionally, the processor 701 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 701 can integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. It can be understood that the above-mentioned modem can also not be integrated into the processor 701, but can be implemented by a separate communication chip.

[0206] The memory 702 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 702 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 702 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above various method embodiments, etc. The data storage area can also store data created by the electronic device 700 in use, etc.

[0207] It can be understood that the electronic device 700 can include more or fewer structural elements than those in the above structural block diagram, for example, a power module, a physical key, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., which are not limited herein.

[0208] The electronic device 700 described above can be a master controller or a part of a master controller.

[0209] The embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements part or all steps of any one of the smoke alarm methods described in the method embodiments.

[0210] The embodiment of the present application also provides a computer program product, comprising a computer program, and the computer program, when executed by a processor, implements part or all steps of any one of the smoke alarm methods described in the method embodiments. The computer program product can be a software installation package.

[0211] It should be noted that, for any one of the foregoing smoke alarm methods, in order to simply describe, the method embodiments are all described as a series of action combinations, but those skilled in the art should know that the present application is not limited to the action sequence described, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the present application.

[0212] Although the present application is described herein in conjunction with various embodiments, other variations of the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from an inspection of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and the indefinite article "a" or "an" does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.

[0213] Those skilled in the art can understand that all or part of the steps in any one of the smoke alarm methods described above can be completed by a program instructing relevant hardware, and the program can be stored in a computer readable memory, and the memory can include a flash disk, a read-only memory (English: Read-Only Memory, abbreviated: ROM), a random access memory (English: Random Access Memory, abbreviated: RAM), a magnetic disk or an optical disk, etc.

[0214] The above has carried out the detailed introduction to the embodiment of the application, the principle and implementation manner of the smoke alarm method, device, electronic equipment and storage medium of the application are described by applying specific examples in the present article, the above embodiment is only used for helping understanding the method and its core idea of the application; Meanwhile, for the general skilled in the art, according to the idea of the smoke alarm method, device, electronic equipment and storage medium of the application, the specific implementation manner and application range will have the change, and the content of the specification should not be understood as the limitation of the application.

[0215] The application is described with reference to flowcharts and / or block diagrams of the method, hardware product and computer program product of the embodiment of the application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a means for implementing the function specified in the flowcharts and / or block diagrams. Figure 1 The function specified in one flow or multiple flows and / or blocks Figure 1 The function specified in one block or multiple blocks.

[0216] These computer program instructions can also be stored in a computer readable storage medium, which can guide the computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer readable storage medium produce a product including instruction means, which implements the function specified in the flowcharts and / or block diagrams. Figure 1 The function specified in one flow or multiple flows and / or blocks Figure 1 The function specified in one block or multiple blocks.

[0217] These computer program instructions can also be loaded into the computer or other programmable data processing device, so that a series of operation steps are performed on the computer or other programmable device to produce a computer implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the function specified in the flowcharts and / or block diagrams. Figure 1 The function specified in one flow or multiple flows and / or blocks Figure 1 Figure 1 The function specified in one block or multiple blocks.

[0218] It can be understood that the products controlled or configured to execute the processing method of the flowcharts described in the method embodiment of the smoke alarm method of the application, such as the terminal and computer program product of the above flowcharts, all belong to the scope of the related products described in the application.

[0219] Obviously, those skilled in the art can make various modifications and variations to the smoke alarm method, device, electronic equipment and storage medium provided in the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A method of smoke alarm comprising, The method is applied to a main controller in a smoke alarm system, the smoke alarm system further comprising a first sensor, a second sensor, a third sensor and an alarm, the first sensor being configured to detect a particulate matter concentration value, the second sensor being configured to detect a volatile organic compound concentration value, and the third sensor being configured to detect a smoke concentration value, the method comprising: obtaining a first concentration value collected by the first sensor, a second concentration value collected by the second sensor, and a third concentration value collected by the third sensor; generating a first compensation value according to a rate of change of the first concentration value and the second concentration value within a first time period; generating a second compensation value according to a trend value of the first concentration value and the second concentration value within a second time period, the second time period having a range greater than that of the first time period; determining a second threshold value according to the first compensation value, the second compensation value, and a first threshold value, the first threshold value being an initial alarm triggering threshold value corresponding to the third sensor; determining an alarm result according to a size relationship between the third concentration value and the second threshold value, the alarm result comprising issuing an alarm, or the alarm result comprising not issuing an alarm; in response to the alarm result being to issue an alarm, controlling the alarm to alarm.

2. The method of claim 1, wherein, The method of generating the first compensation value according to the rate of change of the first concentration value and the second concentration value within the first time period comprises: normalizing the first concentration value and the second concentration value to obtain a first parameter and a second parameter; determining a first interference index at a first time according to the first parameter and the second parameter, the first time being an ending time of the first time period; determining a rate of change between the first interference index and a second interference index at a second time, the second time being a starting time of the first time period; determining the first compensation value according to the size of the rate of change, the greater the rate of change, the greater the first compensation value.

3. The method of claim 2, wherein, The method of determining the first interference index at the first time according to the first parameter and the second parameter comprises: obtaining a fourth concentration value collected by the first sensor within a third time period, and obtaining a fifth concentration value collected by the second sensor within the third time period, the third time period having a range greater than that of the first time period; determining a Pearson correlation coefficient between the fourth concentration value and the fifth concentration value; determining a first weight value according to the Pearson correlation coefficient, the higher the Pearson correlation coefficient, the lower the first weight value; determining a first product between the first weight value and the first parameter, and determining a second product between a second weight value and the second parameter, the sum of the second weight value and the first weight value being one; determining the first interference index according to the sum of the first product and the second product.

4. The method of claim 1, wherein, The method of generating the second compensation value according to the trend value of the first concentration value and the second concentration value within the second time period comprises: normalizing the first concentration value and the second concentration value to obtain a first parameter and a second parameter; determining a first interference index at a first time according to the first parameter and the second parameter, the first time being an ending time of the second time period; determining a rate of change between the first interference index and a second interference index at a second time, the second time being a starting time of the second time period; generating a first trend value at the first time according to the first interference index and at least one third interference index determined in a second time period; determining the second compensation value according to the size of the first trend value, the larger the first trend value, the larger the second compensation value.

5. The method of claim 4, wherein, The generating a first trend value at the first time according to the first interference index and at least one third interference index determined in a second time period comprises: determining a second level value at the first time according to the sum of the first interference index, a first level value at a second time and a second trend value, the second time being a starting time in the first time period, and the second time period including the first time period; determining a first difference value between the second level value and the first level value; determining the first trend value according to the sum of the first difference value and the first trend value.

6. The method of claim 1, wherein, The determining a second threshold value according to the first compensation value, a second compensation value and a first threshold value comprises: determining a fourth time period in which the first time is located; determining a personnel condition at the first time, the personnel condition including a person or the personnel condition including no person; determining a third weight value according to the fourth time period and the personnel condition; determining a third product between the sum of the first compensation value and the second compensation value and the third weight value; determining the second threshold value as the sum of the third product and a first threshold value.

7. The method of claim 6, wherein, The determining a third weight value according to the fourth time period and the personnel condition comprises: determining a first numerical value according to an environment mode corresponding to the fourth time period, the environment mode including a daytime period and a nighttime period; determining a second numerical value according to the personnel condition; determining the third weight value according to the product of the first numerical value and the second numerical value.

8. A smoke alarm device, characterized in that The device is applied to a main controller in a smoke alarm system, the smoke alarm system further comprising a first sensor, a second sensor, a third sensor and an alarm, the first sensor being used for detecting a particulate matter concentration value, the second sensor being used for detecting a volatile organic compound concentration value, and the third sensor being used for detecting a smoke concentration value, and the device comprising: a communication unit configured to acquire a first concentration value collected by the first sensor, a second concentration value collected by the second sensor and a third concentration value collected by the third sensor; a processing unit configured to generate a first compensation value according to a change rate of the first concentration value and the second concentration value in a first time period; the processing unit is further configured to generate a second compensation value according to a trend value of the first concentration value and the second concentration value in a second time period, the range of the second time period being greater than the range of the first time period; the processing unit is further configured to determine a second threshold value according to the first compensation value, the second compensation value and a first threshold value, the first threshold value being an initial alarm triggering threshold value corresponding to the third sensor; the processing unit is further configured to determine an alarm result according to the size relationship between the third concentration value and the second threshold value, the alarm result including issuing an alarm or the alarm result including not issuing an alarm; A communication unit is configured to control the alarm to alarm in response to the alarm result being to alarm.

9. An electronic device, the device comprising a processor, a memory, and executable program code stored on the memory, wherein, The processor is configured to invoke the executable program code stored on the memory to perform the method of any one of claims 1-7.

10. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, performs the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Circuit for environment compensation of smoke detector and compensation method

    CN111006979A

  • Atmospheric particulate monitoring method and system

    CN117990571A