Disclosure of Invention
The invention aims to provide an intelligent alarm method and device, which are used for solving the problems of excessive power consumption and low user experience caused by false alarm in the prior art.
In one aspect, the invention provides an intelligent alarm method, which comprises the following steps: receiving a detection signal from a detector at every preset detection interval; alarming when the indication result of the detection signal meets an alarm condition; and adjusting the alarm condition according to the average alarm interval in a preset time period so as to enable the newly received detection signal to alarm according to the adjusted alarm condition.
Optionally, the alarm condition includes: when the detection signal indicates that the target is detected for the first time, alarming is carried out; when k consecutive detection signals indicate that the target is detected, alarming again; wherein k is an integer greater than 2.
Optionally, the adjusting the alarm condition according to the average alarm interval in the preset time period includes: determining that the average alarm time interval within the preset time period is equal to the preset time period divided by the number of alarms in the preset time period; under the condition that the ratio of k times of the preset detection interval to the average alarm interval is larger than a first threshold value, increasing the value of k in the alarm condition; and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is smaller than a second threshold value, reducing the value of k in the alarm condition.
Optionally, when the ratio of k times of the preset detection interval to the average alarm interval is greater than a first threshold, increasing the value of k in the alarm condition includes: and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is larger than 0.7, doubling the k value.
Optionally, reducing a value of k in the alarm condition when the ratio of k times the preset detection interval to the average alarm interval is smaller than a second threshold includes: and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is less than 0.1, enabling the k value to be equal to 3.
On the other hand, the invention also provides an intelligent alarm device, which comprises: a receiving unit for receiving a detection signal from the detector every a preset detection interval; the alarm unit is used for giving an alarm when the indication result of the detection signal meets an alarm condition; and the adjusting unit is used for adjusting the alarm condition according to the average alarm interval in a preset time period so as to enable the newly received detection signal to alarm according to the adjusted alarm condition.
Optionally, the alarm condition includes: when the detection signal indicates that the target is detected for the first time, alarming is carried out; after the first alarm, when k continuous detection signals indicate that the target is detected, the alarm is given again; wherein k is an integer greater than 2.
Optionally, the adjusting unit includes: a determining module, configured to determine that an average alarm time interval within the latest preset time period is equal to, and divide the preset time period by the number of alarms in the preset time period; the adjusting module is used for increasing the value of k in the alarm condition under the condition that the ratio of k times of the preset detection interval to the average alarm interval is larger than a first threshold value; and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is smaller than a second threshold value, reducing the value of k in the alarm condition.
Optionally, the adjusting module is specifically configured to double the k value when a ratio of k times the preset detection interval to the average alarm interval is greater than 0.7.
Optionally, the adjusting module is specifically configured to: and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is less than 0.1, enabling the k value to be equal to 3.
According to the intelligent alarm method and device provided by the embodiment of the invention, the detection signal from the detector is received at preset detection intervals, the alarm is carried out when the detection signal meets the alarm condition, and the alarm condition can be adjusted according to the average alarm interval in a preset time period, so that the newly received detection signal can alarm according to the adjusted alarm condition, the alarm can be carried out at the most appropriate alarm frequency, and the excessive consumption of electric energy and the disturbance to a user caused by frequent false alarm are avoided.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, an embodiment of the present invention provides an intelligent alarm method, including:
s11, receiving detection signals from the detector at preset detection intervals;
s12, alarming when the indication result of the detection signal meets the alarm condition;
s13, adjusting the alarm condition according to the average alarm interval in the preset time period, so that the newly received detection signal alarms according to the adjusted alarm condition.
According to the intelligent alarm method provided by the embodiment of the invention, the detection signals from the detector are received at preset detection intervals, alarm is carried out when the indication result of the detection signals meets the alarm condition, and the alarm condition can be adjusted according to the average alarm interval in a preset time period, so that the newly received detection signals can alarm according to the adjusted alarm condition, therefore, the alarm can be carried out at the most appropriate alarm frequency, and the excessive consumption of electric energy and the disturbance to a user caused by frequent false alarm are avoided.
It should be noted that in an intelligent home application environment, there may be a plurality of positions that need to be subjected to alarm detection, for example, a doorway of a courtyard, a doorway of a room, a garage, and the like, and detectors may be respectively disposed at the positions that need to be subjected to alarm. The detector can monitor and report the environment and the personnel flow condition at the positions regularly by using an infrared detection principle, namely, the detector detects the environment and the personnel flow condition at preset detection intervals and transmits the detection result to the server. In step S11, the server may receive a series of detection signals sent by the detectors, where the detection signals can indicate whether the corresponding detectors detect the target, for example, if the target signal is not detected, the detection signal may be at a high level, and if the target signal is detected, the detection signal may be at a low level, which may be specifically set and changed according to the protocol.
In order to ensure the detection accuracy, the detection frequency of the detector to the surrounding environment is generally high, for example, the surrounding environment is detected once every 10 seconds to 60 seconds and the detection result is reported to the server. In order to avoid excessive power consumption and user disturbance caused by frequent false alarm, in step S12, an appropriate alarm condition may be set according to the detection time, the detection location, and the specific detection result, and an alarm is given when the detection signal received by the server satisfies the alarm condition. For example, in one embodiment of the present invention, it is assumed that a high level of the infrared probe indicates that the detection area is empty and a low level indicates that the detection area is occupied. The wireless infrared module detects the probe state every 10 seconds, reports the low level immediately after detecting the low level for the first time, and then reports the low level again meaninglessly after detecting the low level for 10 times continuously. And when the 11 th time detects the low level, or the low level is changed to the low level again after the high level is detected, the new activity is considered to exist, and the report is carried out again.
In another embodiment of the present invention, the alarm condition may be further set as: when the detection signal indicates that the target is detected for the first time, alarming is carried out; and after the first alarm, when k continuous detection signals indicate that the target is detected, the alarm is given again, wherein k is an integer larger than 2. Thus, if the time interval between the detection and the reporting of the detector is constant, the value of k determines the minimum time interval between one alarm and another alarm. The detectors at different positions and how the alarm intervals need to be set in different working time periods of the detectors can be realized by adjusting the k value.
Alternatively, how the k value is adjusted to accommodate the current detection and alarm needs can be derived by analyzing the alarm data for the most recent past period.
For example, in step S13, adjusting the alarm condition according to the average alarm interval within the preset time period may include the following steps:
determining that the average alarm time interval within the preset time period is equal to the preset time period divided by the number of alarms in the preset time period;
under the condition that the ratio of k times of the preset detection interval to the average alarm interval is larger than a first threshold value, increasing the value of k in the alarm condition;
and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is smaller than a second threshold value, reducing the value of k in the alarm condition.
For example, in one embodiment of the invention, family members continue to return from the unit to home, assuming afternoon hours. Heretofore, since there was nothing in the home, the probability of false alarm was small, and therefore the alarm interval time was set to: the detection signal indicates that the target is detected 3 consecutive times (i.e., k equals 3), an alarm is made. If the target detection calculation is performed every 10 seconds according to the detector, if abnormality exists in the detection range, the alarm gives an alarm at least every 30 seconds. If the alarm was originally set off every 30 seconds when the first family member returned, the alarm may set off 10 or more alarms in a short few minutes due to the frequent activity of the first family member at home.
If after 10 minutes the second family member returns, he will not be alerted as often as the alarm. At this time, the alarm condition is adaptively adjusted, and the specific process is as follows:
determining an average alarm time interval over the last 10 minutes of the past equal to the last 10 minutes of the past divided by the number of alarms in said last 10 minutes of the past. Calculated as 20 alarms during this period, the average alarm time interval over the last 10 minutes is then equal to 10 minutes/20, i.e. 0.5 minutes, 30 seconds. Thus, the ratio of k times the preset detection interval to the average alarm interval is 3 × 10 seconds/30 seconds — 1. That is, the alarm is already within the allowable range and alarms are performed to the maximum extent, and in fact, the alarms do not need to be so frequent, so that the alarm condition needs to be adjusted and the alarm frequency needs to be reduced.
In this embodiment, assuming that the first threshold is 0.5, the ratio 1 is greater than the first threshold 0.5, so that it is necessary to increase the value of k, for example, changing k from 3 to 36, then the alarm condition is: the detection signal indicates that the target has been detected 36 consecutive times before an alarm is made. Still calculate by detecting once in 10 seconds, when the second family member arrives at home, the interval of 360 seconds (6 minutes) is minimum for two alarms, therefore, the excessive consumption of electric energy and the disturbance to the user caused by frequent false alarm are avoided.
Similarly, in the case that the ratio of k times of the preset detection interval to the average alarm interval is smaller than the second threshold, the value of k in the alarm condition may also be reduced, which is similar to the foregoing embodiment and will not be described herein again.
Optionally, specific values of the first threshold and the second threshold may be set according to different application scenarios, and accordingly, the strategy of increasing k or decreasing k may also be changed according to a requirement, which is not limited in the embodiment of the present invention. For example, in one embodiment of the present invention, in the case where the ratio of k times the preset detection interval to the average alarm interval is greater than 0.7, the value of k may be doubled; in case k times the ratio of the preset detection interval to the average alarm interval is smaller than 0.1, then it is assumed that there has been no continued activity in the detection area and k may be restored to a default value, e.g. k is equal to 3.
Correspondingly, as shown in fig. 2, an embodiment of the present invention further provides an intelligent alarm device, including:
a receiving unit 21 configured to receive a detection signal from the detector every preset detection interval;
an alarm unit 22, configured to alarm when an indication result of the detection signal satisfies an alarm condition;
and the adjusting unit 23 is configured to adjust the alarm condition according to the average alarm interval in the preset time period, so that the newly received detection signal alarms according to the adjusted alarm condition.
In the intelligent alarm device provided by the embodiment of the invention, the receiving unit 21 can receive the detection signal from the detector at preset detection intervals, and when the indication result of the detection signal meets the alarm condition, the alarm unit 22 can give an alarm to remind the user. In addition, the adjusting unit 23 can also adjust the alarm condition according to the average alarm interval in the preset time period, so that the newly received detection signal can alarm according to the adjusted alarm condition, and thus the alarm can be performed at the most appropriate alarm frequency, and the excessive consumption of electric energy and the disturbance to the user caused by frequent false alarm are avoided.
Optionally, the alarm condition includes that the detection signal indicates that the target has been detected k consecutive times, where k is an integer greater than 2.
Optionally, the adjusting unit may include:
a determination module operable to determine that an average alarm time interval within the most recent preset time period is equal to, the preset time period divided by the number of alarms in the preset time period;
the adjusting module is used for increasing the value of k in the alarm condition under the condition that the ratio of k times of the preset detection interval to the average alarm interval is larger than a first threshold value; and under the condition that the ratio of k times of the preset detection interval to the average alarm interval is smaller than a second threshold value, reducing the value of k in the alarm condition.
Optionally, the adjusting module may be specifically configured to double the k value when a ratio of k times the preset detection interval to the average alarm interval is greater than 0.7.
Optionally, the adjusting module may be specifically configured to make the k value equal to 3 when k times of the ratio of the preset detection interval to the average alarm interval is less than 0.1.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.