Indoor intrusion alarm method and device, electronic equipment and storage medium

By setting up sensors and target behavior analysis models on the entry door to detect movement and sound parameters, predict the probability of intrusion and send out warning signals, the problem of property loss caused by stranger intrusion is solved and indoor security is improved.

CN118692197APending Publication Date: 2024-09-24王心恺
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410894833.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When the owner is out, strangers may break or open the door with a key, causing indoor intrusion and property damage. It is difficult to effectively prevent and alarm with existing technology.

Method used

By setting up sensors on the entry door, the movement parameters and environmental sound parameters are detected, and the target behavior analysis model is used to predict the probability of invasion. If the preset alarm conditions are met, an indoor intrusion warning signal is issued.

Benefits of technology

It can promptly remind the owner or neighbors when strangers invade, reducing property losses and improving indoor safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692197A
    Figure CN118692197A
Patent Text Reader

Abstract

The invention relates to the technical field of security and protection systems, in particular to an indoor intrusion alarm method and device, electronic equipment and a storage medium. Comprising the following steps: detecting movement parameters in an opening process of an entrance door and ambient sound parameters around the entrance door through a sensor arranged on the entrance door; respectively comparing the movement parameters and the environment sound parameters with corresponding parameter thresholds to obtain comparison results; the target behavior analysis model is obtained by training by taking a sample movement parameter, a sample environment sound parameter and a sample object behavior feature as input and taking a prediction probability for reflecting whether the entrance door is in an intrusion state as output; and if the comparison result meets a preset alarm condition, sending an indoor intrusion warning signal through an alarm. According to the invention, by comparing the relation between the detected movement parameters and the detected environment sound parameters and the parameter threshold values, the alarm sends out the indoor intrusion warning signal, and the property loss of an owner is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of security systems, and in particular to an indoor intrusion alarm method, device, electronic equipment and storage medium. Background Art

[0002] In daily life, indoor intrusion cases happen from time to time. When the owner is not at home, strangers can break the door or use keys to open the door, and then come in and out at will, causing property losses to the owner. Therefore, houses where single people live or have been uninhabited for a long time have a certain demand for anti-theft devices, so that when strangers invade, the alarm is sounded to remind the owner or the surrounding neighbors that there is danger, which can effectively save the owner's property losses. Summary of the invention

[0003] The embodiments of the present application provide an indoor intrusion alarm method, device, electronic device and storage medium for issuing a warning when a stranger invades, thereby reducing the property loss of the owner.

[0004] An indoor intrusion alarm method provided by an embodiment of the present application includes:

[0005] Detecting movement parameters of the door during opening and ambient sound parameters around the door through sensors disposed on the door;

[0006] The movement parameter and the environmental sound parameter are respectively compared with corresponding parameter thresholds to obtain a comparison result; wherein each parameter threshold is determined based on a critical input value and a trained target behavior analysis model; the target behavior analysis model is trained with sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as inputs to output a predicted probability reflecting whether the door is in an intrusion state; the critical input value is determined based on the historical behavior of the object opening the door in historical time;

[0007] If the comparison result meets the preset alarm condition, an indoor intrusion warning signal is issued through the alarm.

[0008] An indoor intrusion alarm method provided by an embodiment of the present application includes:

[0009] A detection unit, used to detect movement parameters of the entrance door during opening and environmental sound parameters around the entrance door through a sensor provided on the entrance door;

[0010] A comparison unit is used to compare the movement parameter and the environmental sound parameter with corresponding parameter thresholds respectively to obtain a comparison result; wherein each of the parameter thresholds is determined based on a critical input value and a trained target behavior analysis model; the target behavior analysis model is trained with sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as inputs to output a predicted probability reflecting whether the door is in an intrusion state; the critical input value is determined based on the historical behavior of the object opening the door in historical time;

[0011] The alarm unit is used to send out an indoor intrusion warning signal through an alarm if the comparison result meets a preset alarm condition.

[0012] Optionally, the parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold, and the critical input value includes a critical movement parameter, a critical ambient sound parameter, and a critical object behavior feature; then the comparison unit is specifically used to determine the movement parameter threshold in the following manner:

[0013] Inputting the critical environmental sound parameter, the critical object behavior feature and the movement parameter to be solved into the target behavior analysis model; taking the movement parameter when the output of the target behavior analysis model is a preset prediction probability threshold as the movement parameter threshold;

[0014] And, the comparison unit is specifically used to determine the environmental sound parameter threshold in the following manner:

[0015] The critical movement parameter, the critical object behavior feature and the ambient sound parameter to be solved are input into the target behavior analysis model; the ambient sound parameter when the output of the target behavior analysis model is the predicted probability threshold is used as the ambient sound parameter threshold.

[0016] Optionally, the comparison unit is specifically configured to perform cyclic iterative training on the behavior analysis model to be trained to obtain the target behavior analysis model in the following manner:

[0017] A preset number of training samples are selected from the training samples; each training sample includes: a sample movement parameter, a sample environmental sound parameter, a sample object behavior feature, and a sample label representing whether the door is in an intrusion state;

[0018] For each of the selected training samples, inputting corresponding sample movement parameters, sample environmental sound parameters and sample object behavior characteristics into the behavior analysis model to obtain corresponding prediction probabilities;

[0019] The model parameters of the behavior analysis model are updated according to the difference between the predicted probability of each selected training sample and the sample label.

[0020] Optionally, the model parameters to be updated in the behavior analysis model include: a first coefficient, a second coefficient related to the movement parameter, a third coefficient related to the ambient sound parameter, and at least one fourth coefficient, each fourth coefficient corresponding to an object behavior feature;

[0021] The comparison unit is specifically used for:

[0022] Determine the adjustment amount corresponding to each model parameter to be updated according to the difference between the prediction probability of each selected training sample and the sample label, and obtain the product of the adjustment amount and the preset learning rate;

[0023] The sum of the model parameters before updating and the product is used as the model parameters after updating.

[0024] Optionally, the adjustment amount corresponding to the first coefficient is: the mean of the sum of the differences corresponding to each of the selected training samples;

[0025] The adjustment amount corresponding to the second coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample movement parameter;

[0026] The adjustment amount corresponding to the third coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample environmental sound parameter;

[0027] The adjustment amount corresponding to the fourth coefficient is: the mean value of the sum of the products of the difference corresponding to each selected training sample and the behavior characteristics of the corresponding sample object.

[0028] Optionally, the critical input value includes a critical movement parameter, a critical environmental sound parameter, and a critical object behavior feature; and the comparison unit is specifically configured to determine the critical input value in the following manner:

[0029] Acquire historical behaviors of the object that opened the door within a historical period, wherein the historical behaviors of the object include historical movement parameters, historical environmental sound parameters, and historical object behavior characteristics;

[0030] Determining a critical movement parameter based on the mean and standard deviation of each of the historical movement parameters;

[0031] Determining a critical environmental sound parameter based on the mean and standard deviation of each of the historical environmental sound parameters;

[0032] Based on the mean and standard deviation of each of the historical object behavior features, a critical historical object behavior feature is determined.

[0033] Optionally, the parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold, and the alarm unit is specifically used for:

[0034] If the movement parameter is greater than the movement parameter threshold, and the ambient sound parameter is greater than the ambient sound parameter threshold, an indoor intrusion warning signal is issued through an alarm.

[0035] Optionally, the device further comprises:

[0036] a closing unit, configured to send alarm information to a terminal device through the alarm device, so as to present the alarm information to a target object through the terminal device;

[0037] After receiving the alarm closing instruction, the alarm is closed; the alarm closing instruction is: sent by the terminal device in response to the alarm closing operation triggered by the target object viewing the alarm information.

[0038] Optionally, the movement parameter includes at least one of a movement speed, a movement acceleration and an angular velocity.

[0039] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned indoor intrusion alarm methods.

[0040] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is executed on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the above-mentioned indoor intrusion alarm methods.

[0041] An embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the above-mentioned indoor intrusion alarm methods.

[0042] The beneficial effects of this application are as follows:

[0043] The embodiments of the present application provide an indoor intrusion alarm method, device, electronic device and storage medium. First, by setting a sensor on the entrance door, the movement parameters of the entrance door during opening and the environmental sound parameters around the entrance door can be detected. Then, based on the critical input value, and the target behavior analysis model trained with sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as inputs and the predicted probability of reflecting whether the entrance door is in an intrusion state as output, a parameter threshold is obtained, and the movement parameters and environmental sound parameters are compared with the corresponding parameter thresholds respectively to obtain a comparison result; if the comparison result meets the preset alarm condition, an indoor intrusion warning signal is issued through the alarm. The present application determines the parameter threshold through the trained target behavior analysis model, and by comparing the movement parameters and environmental sound parameters detected by the sensor with the parameter threshold, after determining that the entrance door is in an intrusion state, an indoor intrusion warning signal is issued, thereby timely reminding the owner or surrounding neighbors to reduce the owner's property loss.

[0044] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0046] Figure 1 A schematic diagram of an application scenario of an indoor intrusion alarm method provided in an embodiment of the present application;

[0047] Figure 2 A flowchart of an indoor intrusion alarm method provided by an embodiment of the present application;

[0048] Figure 3 A schematic diagram of an indoor intrusion alarm method provided by an embodiment of the present application;

[0049] Figure 4 This is a schematic diagram of the structure of an indoor intrusion alarm device in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;

[0051] Figure 6 A schematic diagram of the hardware composition structure of a computing device using an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0053] The following is an introduction to some concepts involved in the embodiments of the present application.

[0054] Behavior feature vector: a vector composed of multiple object behavior features. The object behavior features may be movement parameters, environmental sound parameters, door opening and closing time, etc. detected by sensors installed on the door each time the target object opens or closes the door. The vector reflects the target object's behavior habit of opening or closing the door.

[0055] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0056] like Figure 1 As shown, it is a schematic diagram of an application scenario of an indoor intrusion alarm method provided by an embodiment of the present application. The application scenario diagram includes an entry door 110, a server 120, a terminal device 130, a sensor 1101 and an alarm 1102. Specifically, the sensor 1101 and the alarm 1102 are both installed on the entry door 110.

[0057] In addition, the entrance door 110 may also include a door magnet, which is mainly composed of a switch and a magnet. When the switch is arranged in the door frame of the entrance door 110, the magnet may be arranged in the entrance door 110; or, when the switch is arranged in the entrance door 110, the magnet may be arranged in the door frame of the entrance door 110. The switch may be connected to the alarm 1102. When the entrance door 110 is opened, the switch and the magnet are separated by a certain distance, causing the switch to be disconnected, thereby sending a corresponding signal to the sensor 1101, so that the sensor 1101 performs parameter detection.

[0058] The sensor 1101 is used to detect movement parameters of the door 110 during opening and ambient sound parameters around the door 110 after the switch and the magnet on the door 110 are separated by a certain distance, and send the movement parameters and ambient sound parameters to the server 120 through the communication network;

[0059] The server 120 is used to receive the movement parameters and the environmental sound parameters detected by the sensor 1101, and compare the movement parameters and the environmental sound parameters with corresponding parameter thresholds respectively to obtain a comparison result, and send the comparison result to the alarm 1103;

[0060] The alarm 1102 is used to receive the comparison result sent by the server 120. If the comparison result meets the preset alarm condition, an indoor intrusion warning signal is sent through the alarm 1102, and an alarm message is sent to the terminal device 130;

[0061] The terminal device 130 is used to receive the alarm information sent by the alarm device 1102 and present the alarm information to the target object. If the target object triggers the alarm closing operation after viewing the alarm information on the terminal device 130, the alarm device 1102 will be closed.

[0062] In an optional implementation, the entrance door 110, the server 120 and the terminal device 130 may communicate with each other via a communication network.

[0063] In an optional implementation, the communication network is a wired network or a wireless network.

[0064] The indoor intrusion alarm method provided by the exemplary embodiment of the present application is described below in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation methods of the present application are not limited in this respect.

[0065] Figure 2 A flow chart of an indoor intrusion alarm method provided by an embodiment of the present application is shown. Figure 2 As shown, the method may include the following steps S21 to S23:

[0066] S21: Detect movement parameters of the entrance door during its opening and environmental sound parameters around the entrance door through sensors disposed on the entrance door.

[0067] The movement parameter may be recorded as s, including at least one of a movement speed, a movement acceleration, and an angular velocity. The ambient sound parameter may be recorded as v, reflecting the volume of the surrounding environment when the door is opened.

[0068] The sensor includes a sound sensor for detecting environmental sound parameters and an inertial sensor for detecting movement parameters. If the movement parameters include movement speed, the inertial sensor includes a speed sensor. If the movement parameters include movement acceleration, the inertial sensor includes an acceleration sensor. If the movement parameters include angular velocity, the inertial sensor includes an angular velocity sensor.

[0069] Specifically, when the entrance door is opened, the ambient sound parameters are detected by the sound sensor arranged on the entrance door, and the movement parameters are detected by the inertial sensor. Then, through the communication module, the ambient sound parameters and the movement parameters are transmitted to the server for behavior analysis via the communication network.

[0070] The communication module includes a narrowband Internet of Things (NB-IoT) module and a wireless fidelity (WiFi) module. When parameters are transmitted through the communication module, the WiFi module is used first. When the WiFi module is unavailable, the parameters are transmitted through the NB module.

[0071] In addition, in the embodiment of the present application, a vibration sensor can be set at the entrance door. The vibration sensor can detect the vibration frequency of the entrance door caused by knocking on the door, and the vibration sensor can work before the inertial sensor and the sound sensor work. For example, the vibration sensor first detects the vibration frequency of the entrance door, and based on this, it is judged whether there is a stranger knocking on the door abnormally. In this case, if the target object is at home, the target object can be reminded that there may be danger outside the entrance door at this time, so that the target object can take safety measures in time. Of course, the vibration sensor, inertial sensor and sound sensor can work at the same time, and can be set according to actual needs. This application does not make specific limitations on this.

[0072] In the above implementation manner, the embodiment of the present application detects the movement parameters and environmental sound parameters when the door is opened through sensors, and performs multi-faceted detection of the opened door, providing a more comprehensive basis for subsequent judgment of door intrusion.

[0073] After the movement parameters and the ambient sound parameters are detected in the above manner, the embodiment of the present application can determine whether the entrance door is in an intrusion state based on the movement parameters and the ambient sound parameters through the following steps:

[0074] S22: Compare the movement parameters and the environmental sound parameters with the corresponding parameter thresholds respectively to obtain a comparison result; wherein each parameter threshold is determined based on a critical input value and a trained target behavior analysis model; the target behavior analysis model is trained with sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as inputs to output a predicted probability reflecting whether the door is in an intrusion state; the critical input value is determined based on the historical behavior of the object opening the door within a historical time.

[0075] Among them, multiple object behavior features constitute a behavior feature vector, and the behavior feature vector can be recorded as h = (h 1 ,h 2 ,…,h n), the object behavior features in each behavior feature vector can be detected movement parameters, environmental sound parameters, door opening and closing time and other information, and h reflects the target object's behavior habit of opening the door to enter the room.

[0076] Since the parameter threshold is determined based on the critical input value and the trained target behavior analysis model, before comparing the movement parameters and the environmental sound parameters with the corresponding parameter thresholds, it is necessary to first determine the critical input value and the trained behavior analysis model.

[0077] Optionally, the embodiment of the present application performs cyclic iterative training on the behavior analysis model to be trained in the following manner to obtain a target behavior analysis model:

[0078] Step 1: Select a preset number of training samples from the training samples;

[0079] Each training sample is data uploaded to the server by a terminal device, including: sample movement parameters, sample environmental sound parameters, sample object behavior characteristics, and sample labels representing whether the door is in an intrusion state. The preset number is an empirical value.

[0080] The sample label is used to represent the door opening behavior, and its value can be 0 or 1. 0 means that the door opening behavior is a malicious intrusion, and 1 means that the door opening behavior is a normal door opening.

[0081] Step 2: For each selected training sample, the corresponding sample movement parameters, sample environmental sound parameters and sample object behavior characteristics are input into the behavior analysis model to obtain the corresponding prediction probability;

[0082] Among them, the behavior analysis model can select a logistic regression model, as shown in the following formula 1:

[0083]

[0084] Among them, p i is the predicted probability that the i-th sample is a normal door opening, s i is the sample shift parameter of the i-th sample, v i is the sample environment sound parameter of the i-th sample, h ij is the sample object behavior feature of the i-th sample. 0 ,ω 1 ,ω 2 ,ω j+2 are the model parameters to be updated in the behavior analysis model, j=1,2,...,n.

[0085] ω 0 is the first parameter, also known as the intercept, ω 1 is the second coefficient related to the movement parameter, ω 2is the third coefficient related to the environmental sound parameters, ω j+2 is the fourth coefficient, and each fourth coefficient corresponds to an object behavior feature. For example, it can be ω 3 Corresponding to the movement parameter in the behavior feature vector, ω 4 Corresponding to the environmental sound parameters in the behavioral feature vector, ω 5 Corresponding to the door opening duration in the behavior feature vector, and so on.

[0086] It should be noted that any model that can be used for behavioral analysis is applicable to the embodiments of the present application and will not be described in detail here.

[0087] Step 3: Update the model parameters of the behavior analysis model based on the difference between the predicted probability of each selected training sample and the sample label.

[0088] Specifically, in step 3, the parameters of the behavior analysis model are updated according to the loss function value, including:

[0089] Determine the adjustment amount corresponding to each model parameter to be updated according to the difference between the predicted probability of each selected training sample and the sample label, and obtain the product of the adjustment amount and the preset learning rate;

[0090] The sum of the model parameters before updating and the product is used as the updated model parameters.

[0091] In the embodiment of the present application, the difference between the predicted probability of each selected training sample and the sample label can be represented by a cross entropy loss function, as shown in the following formula 2:

[0092]

[0093] Among them, N is the preset number, y i is the sample label of the i-th training sample, p i is the predicted probability that the i-th sample is a normal door opening.

[0094] It should be noted that any function representing the difference between the predicted probability of each selected training sample and the sample label is applicable to the embodiments of the present application and will not be described in detail here.

[0095] For each model parameter to be updated, the updated model parameter is as shown in the following formula 3:

[0096]

[0097] Among them, α is the learning rate, and its value range is usually between 0.001 and 0.1. Common values ​​are 0.001, 0.01, 0.05, 0.1, etc. As the number of iterative training increases, a smaller learning rate can be selected to make the iterative training effect better. is the adjustment amount, that is, the gradient of the cross entropy loss function to the updated model parameters. k is the model parameter, k = 0, 1, 2…

[0098] For different model parameters, the corresponding adjustment amounts may also be different. In the embodiment of the present application, an optional implementation method for determining the adjustment amount is as follows:

[0099] ω 0 The corresponding adjustment amount is: the mean of the sum of the differences corresponding to each selected training sample, as shown in the following formula 4:

[0100]

[0101] ω 1 The corresponding adjustment amount is: the mean of the sum of the product of the difference corresponding to each selected training sample and the corresponding sample shift parameter, as shown in the following formula 5:

[0102]

[0103] ω 2 The corresponding adjustment amount is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample environmental sound parameter, as shown in the following formula 6:

[0104]

[0105] ω j+2 The corresponding adjustment amount is: the mean of the sum of the products of the difference corresponding to each selected training sample and the behavior characteristics of the corresponding sample object, as shown in the following formula 6:

[0106]

[0107] In each iterative training, after the model parameters are updated according to Formula 2 to Formula 7 above, N samples are reselected, Formula 1 is input to obtain the predicted probability, and then the model parameters are updated again until the iteration stop condition is met.

[0108] In an embodiment of the present application, the iteration stopping condition may be a preset convergence value or a preset maximum number of iterative training times. If the iteration stopping condition is the convergence value, assuming that the convergence value is a smaller value l, the iteration is stopped when the loss function value is less than l; if the iteration stopping condition is the maximum number of iterative training times, assuming that the maximum number of iterative training times is d, the iterative training is stopped when the number of iterative training times reaches d.

[0109] Optionally, the target behavior analysis model obtained by cyclic iterative training is shown in the following formula 8:

[0110]

[0111] Among them, P(y=1|s,v,h) is the probability of opening the door normally, h a is the ath object behavior feature in the input behavior feature vector.

[0112] For the target behavior analysis model, the prediction probability threshold T can be set to determine whether the door opening is normal. When P(y=1|s,v,h)>T, it is judged as normal door opening. When P(y=1|s,v,h)≤T, it is judged as malicious intrusion. The prediction probability threshold T can be determined according to the actual data distribution and needs. In the embodiment of this application, the default value is T=0.5. Of course, other parameters are also applicable and will not be repeated here.

[0113] In the above implementation, the embodiment of the present application trains the behavior analysis model through training samples to obtain a target behavior analysis model, so as to facilitate the subsequent determination of parameter thresholds based on the target behavior analysis model.

[0114] The above steps describe in detail the iterative training process of the target behavior analysis model. The following is a detailed description of the process of determining the critical input value:

[0115] In the embodiment of the present application, the critical input value includes a critical movement parameter, a critical ambient sound parameter, and a critical object behavior characteristic.

[0116] Optionally, the embodiment of the present application determines the critical input value in the following manner:

[0117] Step 1: Obtain the historical behavior of the object that opens the door within the historical time, the historical behavior of the object includes historical movement parameters, historical environmental sound parameters and historical object behavior characteristics;

[0118] Step 2: Determine the critical moving parameter based on the mean and standard deviation of each historical moving parameter;

[0119] The critical movement parameter is a critical value of a normal movement parameter. When the movement parameter exceeds the critical value, it is considered abnormal with a high probability.

[0120] Specifically, the critical moving parameter is the sum of the mean and the standard deviation multiple. For example, assuming the mean of the historical moving parameter is μ s , with standard deviation σ s , then the critical shift parameter s 0 It can be μ s +2σs , can also be μ s +3σ s , and so on. The specific multiples can be set according to demand.

[0121] Step 3: Determine the critical environmental sound parameters based on the mean and standard deviation of each historical environmental sound parameter;

[0122] The critical environmental sound parameter is a critical value of a normal environmental sound parameter. When the environmental sound parameter exceeds the critical value, it is likely to be considered abnormal.

[0123] Specifically, the critical environmental sound parameter is the sum of the mean and the multiple of the standard deviation. For example, assuming that the mean of the historical environmental sound parameter is μ v , with standard deviation σ v , then the critical environmental sound parameter v 0 It can be μ v +2σ v , can also be μ v +3σ v , and so on. The specific multiples can be set according to demand.

[0124] Step 4: Determine the critical object behavior feature based on the mean and standard deviation of each historical object behavior feature.

[0125] The critical object behavior characteristic is a critical value of a normal object behavior characteristic. When the object behavior characteristic exceeds the critical value, it is more likely to be considered abnormal.

[0126] Specifically, the mean and standard deviation may be obtained by averaging and standard deviation of each historical object behavior feature in the historical behavior feature vector. For example, the mean and standard deviation may be obtained by averaging and standard deviation of each historical object behavior feature in the historical behavior feature vector. i1 Find the average μ h1 and standard deviation σ h1 , for the historical moving parameter h i2 Find the average μ h2 and standard deviation σ h2 , for the historical environmental sound parameter h i3 Find the average μ h3 and standard deviation σ h3 Then, the mean value μ of each historical object behavior feature is constructed based on the mean value of multiple historical object behavior features. h =(μ h1 , μ h2 , μ h3 ) and standard deviation σ h =(σ h1 , σ h2 , σ h3 ).

[0127] It can also be obtained by directly calculating the vector average and standard deviation of the historical behavior feature vectors of each historical object behavior feature as a whole. For example, assuming there are 3 historical behavior feature vectors h 1 =(h 11 ,h 12 ,h 13 ), h 2 =(h 21 ,h 22 ,h 23 ), h 3 =(h 31 ,h 32 ,h 33 ), directly to h 1 ,h 2 ,h 3 The mean and standard deviation are calculated. This application does not make any specific limitation on this.

[0128] Furthermore, the sum of the mean and the standard deviation multiple is taken as the critical object behavior feature. For example, assuming that the mean of the historical object behavior feature is μ h , with standard deviation σ h , then the critical object behavior characteristic h 0 It can be μ h +2σ h , can also be μ h +3σ h , and so on. The specific multiples can be set according to demand.

[0129] After obtaining the critical input value and the target behavior analysis model in the above manner, the parameter threshold can be determined based on the two.

[0130] Specifically, the parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold.

[0131] Optionally, when determining the movement parameter threshold in the embodiment of the present application, an optional implementation method is as follows:

[0132] Inputting the critical environmental sound parameter, the critical object behavior feature and the movement parameter to be solved into the target behavior analysis model; taking the movement parameter when the output of the target behavior analysis model is a preset prediction probability threshold as the movement parameter threshold;

[0133] Specifically, v 0 、h 0 Input the target behavior analysis model P(y=1|s,v,h) and solve the following formula 9:

[0134]

[0135] Among them, h 0i h0 =(h 01 ,h 02 …h 0n ) is the behavior feature of the i-th object in .

[0136] After solving formula 9, we can get the moving parameter threshold s th .

[0137] Optionally, when determining the environmental sound parameter threshold in the embodiment of the present application, an optional implementation method is as follows:

[0138] The critical movement parameters, critical object behavior characteristics and the environmental sound parameters to be solved are input into the target behavior analysis model; the environmental sound parameters when the output of the target behavior analysis model is the predicted probability threshold are used as the environmental sound parameter threshold.

[0139] Specifically, 0 、h 0 Input the target behavior analysis model P(y=1|s,v,h) and solve the following formula 10:

[0140]

[0141] After solving formula 10, we can get the environmental sound parameter threshold v th .

[0142] After obtaining the above parameter threshold, the server can send the parameter threshold to the threshold module for comparison. In order to make the parameter threshold and the comparison result more accurate, the embodiment of the present application can also update the parameter threshold according to a preset update method.

[0143] Specifically, when the target object uses the indoor intrusion alarm device for the first time at the entrance door, the real-time parameter threshold can be transmitted to the communication module. The parameter threshold can be subsequently updated in real time and sent again after reaching a preset update interval (such as 12 hours, 24 hours, etc.). It can also be updated regularly, and after reaching a preset update interval, the parameter threshold is updated and immediately sent to the communication module, etc. This application does not make specific limitations on this.

[0144] In the above implementation, the embodiment of the present application determines the parameter threshold through the critical input value and the target behavior analysis model, so as to compare the movement parameter with the environmental sound parameter according to the parameter threshold, and then analyze the intrusion status of the door.

[0145] After obtaining the parameter thresholds in the above manner, you can determine whether an alarm is required in the following manner:

[0146] S23: If the comparison result meets the preset alarm condition, an indoor intrusion warning signal is issued through the alarm.

[0147] The form of indoor intrusion warning signal includes but is not limited to at least one of the following:

[0148] Voice audio, alarm audio, alarm photoelectric signal, etc.

[0149] Optionally, the embodiment of the present application may set the alarm condition to: when the movement parameter is greater than the movement parameter threshold, and the ambient sound parameter is greater than the ambient sound parameter threshold, an indoor intrusion warning signal is issued through the alarm.

[0150] In addition, there may be many situations when the door is invaded. The above alarm conditions can be applied to situations such as the intruder violently breaking the door to commit robbery. For other situations, for example, the intruder may secretly pry open the door to steal. In this case, the alarm conditions can be set as follows: when the movement parameter is less than the movement parameter threshold, and the ambient sound parameter is less than the ambient sound parameter threshold, the alarm sends an indoor intrusion warning signal. It should be noted that the critical input value at this time should also be modified to the minimum critical value accordingly, for example, it can be the difference between the mean and the standard deviation multiple, and the critical movement parameter can be μ s -2σ s , can also be μ s -3σ s , the critical environmental sound parameter can be μ v -2σ v , can also be μ v -3σ v , the critical object behavior characteristics can be μ h -2σ h , can also be μ h -3σ h That is, when the movement parameter and the environmental sound parameter are less than the critical input value, they are likely to be abnormal values. Then, the minimum critical value is input into the target analysis model to obtain the parameter threshold corresponding to this situation.

[0151] In addition, the embodiment of the present application can also combine the above two situations and determine the parameters and value ranges according to the two parameter thresholds. When the movement parameter is not within the movement parameter threshold range and the ambient sound parameter is not within the ambient sound parameter threshold range, an indoor intrusion warning signal is issued through the alarm.

[0152] The embodiment of the present application also takes into account that the target object may not be near the building where the entrance door is located. Therefore, the embodiment of the present application also notifies the target object in the following manner:

[0153] Sending alarm information to the terminal device through the alarm device, so as to present the alarm information to the target object through the terminal device;

[0154] If the target object determines that the intruder is a non-dangerous object, the alarm can also be turned off in the following ways:

[0155] After receiving the alarm closing instruction, turn off the alarm;

[0156] The alarm closing instruction is sent by the terminal device in response to the alarm closing operation triggered by the target object viewing the alarm information.

[0157] For example, the alarm sends the alarm information to the terminal device of the target object through the communication module. After the target object views the alarm information on the corresponding software and web page on the terminal device, it is determined that the intrusion into the room is not dangerous (such as the target object’s friend, etc., who is allowed to enter the building by the target object). Then the target object triggers the alarm closing operation on the terminal device, and the terminal device sends the corresponding alarm closing instruction to the communication module. The communication module sends the alarm closing instruction to the alarm, and never turns it off.

[0158] like Figure 3 As shown, it is a schematic diagram of an indoor intrusion alarm method provided by an embodiment of the present application, which specifically includes S301 to S316:

[0159] S301: The power module supplies power to the switch module, and the switch module starts working;

[0160] S302: The paired door magnetic A and door magnetic B are separated (i.e., the entrance door is opened);

[0161] Specifically, the door magnet A and the door magnet B are small door magnets, which can be simply and conveniently installed directly on the entrance door by gluing;

[0162] S303: The behavior sensor module measures movement parameters and environmental sound parameters;

[0163] Specifically, the behavior sensor module includes an inertial sensor and a sound sensor. The inertial sensor is used to detect movement parameters, and the sound sensor is used to detect environmental sound parameters.

[0164] S304: Sending the movement parameter and the ambient sound parameter to the communication module;

[0165] S305: The communication module sends the movement parameter and the environmental sound parameter to the server via the communication network;

[0166] Specifically, the communication module includes a NB module and a WiFi module, and the WiFi module is used preferentially.

[0167] S306: The server determines a parameter threshold;

[0168] Specifically, the server receives movement parameters and environmental sound parameters, accumulates and records the movement parameters and environmental sound parameters uploaded historically, trains a target behavior analysis model when the door is opened normally, and determines the parameter threshold based on the statistical analysis of the object's historical behavior.

[0169] S307: The server sends the parameter threshold to the communication module according to the time period;

[0170] Specifically, when the target object is turned on for the first time, the server can pass the parameter threshold obtained in real time to the communication module. The parameter threshold can be subsequently updated in real time and sent once after reaching a preset update interval (such as 12 hours, 24 hours, etc.). It can also be updated regularly, and after reaching a preset update interval, the parameter threshold is updated and immediately sent to the communication module, etc. This application does not make specific limitations on this.

[0171] S308: The communication module receives the parameter threshold and writes it into the threshold module;

[0172] Specifically, the parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold.

[0173] S309: The behavior sensing module sends the movement parameter and the environmental sound parameter to the threshold module for comparison;

[0174] S310: If the comparison result meets the preset alarm condition, an alarm signal is triggered to the alarm module;

[0175] Specifically, if the comparison result does not meet the preset alarm condition, no processing is performed.

[0176] S311: The alarm module triggers the sound alarm and emits a pre-set alarm sound and voice;

[0177] S312: The alarm module triggers the photoelectric alarm and starts the pre-made photoelectric signal;

[0178] S313: The alarm module sends alarm information to the communication module;

[0179] S314: The communication module sends an alarm message to the terminal device;

[0180] S315: The terminal device sends a close alarm instruction to the communication module;

[0181] Specifically, the alarm closing instruction is sent by the terminal device in response to the alarm closing operation triggered by the target object viewing the alarm information.

[0182] S316: The communication module sends an alarm closing instruction to the alarm module, and the alarm module closes the sound alarm and the photoelectric alarm.

[0183] The embodiment of the present application provides an indoor intrusion alarm method, device, electronic device and storage medium. First, by setting a sensor on the entrance door, the movement parameters of the entrance door during opening and the environmental sound parameters around the entrance door can be detected. Then, based on the critical input value, and the target behavior analysis model trained with the sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as input, the predicted probability of reflecting whether the entrance door is in an intrusion state is output, the parameter threshold is obtained, and the movement parameters and environmental sound parameters are compared with the corresponding parameter thresholds respectively to obtain a comparison result; if the comparison result meets the preset alarm condition, an indoor intrusion warning signal is issued through the alarm. The present application directly installs a small door magnet on the entrance door, detects the movement parameters and environmental sound parameters of opening the entrance door through the behavior sensing module, and then uploads them to the server through the communication module. The server analyzes the historical normal behavior and historical abnormal behavior of the target object through the artificial intelligence algorithm, and combines the object behavior characteristics of the current target object to give a specific parameter threshold, and automatically sends it to the threshold module for comparison. After determining that the entrance door is in an intrusion state, an indoor intrusion warning signal is issued, thereby timely reminding the target object or the surrounding neighbors to reduce the property loss of the target object. In addition, the door magnet used in the embodiments of the present application has the advantages of small size, flexible installation, repeatable installation, and self-setting alarm threshold.

[0184] Based on the same inventive concept, an indoor intrusion alarm device is also provided in the embodiment of the present application; Figure 4 As shown, the indoor intrusion alarm device 400 includes:

[0185] The detection unit 401 is used to detect movement parameters of the entrance door during opening and environmental sound parameters around the entrance door through sensors provided on the entrance door;

[0186] The comparison unit 402 is used to compare the movement parameter and the environmental sound parameter with the corresponding parameter thresholds respectively to obtain a comparison result; wherein each parameter threshold is determined based on a critical input value and a trained target behavior analysis model; the target behavior analysis model is trained with sample movement parameters, sample environmental sound parameters and sample object behavior features as inputs to output a predicted probability of reflecting whether the door is in an intrusion state; the critical input value is determined based on the historical behavior of the object opening the door in the historical time;

[0187] The alarm unit 403 is used to send out an indoor intrusion warning signal through an alarm if the comparison result meets the preset alarm condition.

[0188] Optionally, the parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold, and the critical input value includes a critical movement parameter, a critical ambient sound parameter, and a critical object behavior feature; then the comparison unit 402 is specifically configured to determine the movement parameter threshold in the following manner:

[0189] Inputting the critical environmental sound parameter, the critical object behavior feature and the movement parameter to be solved into the target behavior analysis model; taking the movement parameter when the output of the target behavior analysis model is a preset prediction probability threshold as the movement parameter threshold;

[0190] And, the comparison unit 402 is specifically used to determine the environmental sound parameter threshold in the following manner:

[0191] The critical movement parameters, critical object behavior characteristics and the environmental sound parameters to be solved are input into the target behavior analysis model; the environmental sound parameters when the output of the target behavior analysis model is the predicted probability threshold are used as the environmental sound parameter threshold.

[0192] Optionally, the comparison unit 402 is specifically configured to perform cyclic iterative training on the behavior analysis model to be trained to obtain a target behavior analysis model in the following manner:

[0193] A preset number of training samples are selected from the training samples; each training sample includes: a sample movement parameter, a sample environmental sound parameter, a sample object behavior feature, and a sample label representing whether the door is in an intrusion state;

[0194] For each selected training sample, the corresponding sample movement parameters, sample environmental sound parameters and sample object behavior characteristics are input into the behavior analysis model to obtain the corresponding prediction probability;

[0195] According to the difference between the predicted probability of each selected training sample and the sample label, the model parameters of the behavior analysis model are updated.

[0196] Optionally, the model parameters to be updated in the behavior analysis model include: a first coefficient, a second coefficient related to the movement parameter, a third coefficient related to the ambient sound parameter, and at least one fourth coefficient, each fourth coefficient corresponding to an object behavior feature;

[0197] The comparison unit 402 is specifically used for:

[0198] According to the difference between the predicted probability of each selected training sample and the sample label, the adjustment amount corresponding to each model parameter to be updated is determined, and the product of the adjustment amount and the preset learning rate is obtained;

[0199] The sum of the model parameters before updating and the product is used as the updated model parameters.

[0200] Optionally, the adjustment amount corresponding to the first coefficient is: the mean of the sum of the differences corresponding to each selected training sample;

[0201] The adjustment amount corresponding to the second coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample shift parameter;

[0202] The adjustment amount corresponding to the third coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample environmental sound parameter;

[0203] The adjustment amount corresponding to the fourth coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the behavior characteristics of the corresponding sample object.

[0204] Optionally, the critical input value includes a critical movement parameter, a critical environmental sound parameter, and a critical object behavior feature; the comparison unit 402 is specifically configured to determine the critical input value in the following manner:

[0205] Obtain the historical behavior of the object that opens the door within the historical time, the historical behavior of the object includes historical movement parameters, historical environmental sound parameters and historical object behavior characteristics;

[0206] Determine the critical moving parameter based on the mean and standard deviation of each historical moving parameter;

[0207] Determine critical environmental sound parameters based on the mean and standard deviation of each historical environmental sound parameter;

[0208] Based on the mean and standard deviation of each historical object behavior feature, the critical historical object behavior feature is determined.

[0209] Optionally, the parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold, and the alarm unit 403 is specifically used to:

[0210] If the movement parameter is greater than the movement parameter threshold, and the ambient sound parameter is greater than the ambient sound parameter threshold, an indoor intrusion warning signal is issued through the alarm.

[0211] Optionally, the device further comprises:

[0212] The closing unit 404 is used to send the alarm information to the terminal device through the alarm device, so as to present the alarm information to the target object through the terminal device;

[0213] After receiving the alarm closing instruction, the alarm is closed; the alarm closing instruction is: sent by the terminal device in response to the alarm closing operation triggered by the target object viewing the alarm information.

[0214] Optionally, the movement parameter includes at least one of a movement speed, a movement acceleration and an angular velocity.

[0215] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application. In one embodiment, the electronic device may be Figure 1 In this embodiment, the structure of the electronic device can be as follows: Figure 5 As shown, it includes a memory 501 , a communication module 503 and one or more processors 502 .

[0216] The memory 501 is used to store computer programs executed by the processor 502. The memory 501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0217] The memory 501 may be a volatile memory, such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 501 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 501 may be a combination of the above memories.

[0218] The processor 502 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 502 is used to implement the above-mentioned indoor intrusion alarm method when calling the computer program stored in the memory 501 .

[0219] The communication module 503 is used to communicate with electronic devices and other servers.

[0220] The specific connection medium between the memory 501, the communication module 503 and the processor 502 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 501 and the processor 502 are connected via a bus 504. The bus 504 is connected to the processor 502 via a bus 504. Figure 5 The connections between the other components are described with bold lines, which are only for illustrative purposes and are not intended to be limiting. The bus 504 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 5 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or only one type of bus.

[0221] The memory 501 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the indoor intrusion alarm method of the embodiment of the present application. The processor 502 is used to execute the above-mentioned indoor intrusion alarm method. Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: computer program code, when the computer program code runs on a computer, the computer executes any of the communication methods discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the indoor intrusion alarm method, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.

[0222] Refer to the following Figure 6 hereinafter, a computing device 600 according to this embodiment of the present application is described. Figure 6 The computing device 600 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0223] like Figure 6 The computing device 600 is in the form of a general computing device. The components of the computing device 600 may include but are not limited to: at least one processing unit 601, at least one storage unit 602, and a bus 603 connecting different system components (including the storage unit 602 and the processing unit 601).

[0224] Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0225] The storage unit 602 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 621 and / or a cache memory 622 , and may further include a read-only memory (ROM) 623 .

[0226] The storage unit 602 may also include a program / utility 625 having a set (at least one) of program modules 624, such program modules 624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0227] The computing device 600 may also communicate with one or more external devices 604 (e.g., keyboards, pointing devices, etc.), one or more devices that enable a user to interact with the computing device 600, and / or any device that enables the computing device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via input / output (I / O) interface 605. Furthermore, the computing device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 606. Figure 6 As shown, network adapter 606 communicates with other modules for computing device 600 via bus 603. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with computing device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0228] The embodiment of the present application also provides a computer program product, and the method in the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.

[0229] The computer-readable storage medium can be implemented as a computer program product, that is, an embodiment of the present application also provides a computer-readable storage medium, which includes a computer program. When the computer program is executed by a processor, it implements any of the indoor intrusion alarm methods described above.

[0230] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0231] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0232] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0233] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0234] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0235] Obviously, those skilled in the art can make various changes and modifications to 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 equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An indoor intrusion alarm method, It is characterized in that The method comprises: Detecting movement parameters of the entrance door during its opening and ambient sound parameters around the entrance door through sensors disposed on the entrance door; The movement parameter and the environmental sound parameter are respectively compared with corresponding parameter thresholds to obtain a comparison result; wherein each parameter threshold is determined based on a critical input value and a trained target behavior analysis model; the target behavior analysis model is trained with sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as inputs to output a predicted probability reflecting whether the door is in an intrusion state; the critical input value is determined based on the historical behavior of the object opening the door in historical time; If the comparison result meets the preset alarm condition, an indoor intrusion warning signal is issued through the alarm.

2. The method according to claim 1, It is characterized in that The parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold, and the critical input value includes a critical movement parameter, a critical ambient sound parameter, and a critical object behavior feature; the movement parameter threshold is determined in the following manner: Inputting the critical environmental sound parameter, the critical object behavior feature and the movement parameter to be solved into the target behavior analysis model; taking the movement parameter when the output of the target behavior analysis model is a preset prediction probability threshold as the movement parameter threshold; And, the environmental sound parameter threshold is determined in the following manner: The critical movement parameter, the critical object behavior feature and the ambient sound parameter to be solved are input into the target behavior analysis model; the ambient sound parameter when the output of the target behavior analysis model is the predicted probability threshold is used as the ambient sound parameter threshold.

3. The method according to claim 1, It is characterized in that The target behavior analysis model is obtained by performing cyclic iterative training on the behavior analysis model to be trained in the following manner: A preset number of training samples are selected from the training samples; each training sample includes: a sample movement parameter, a sample environmental sound parameter, a sample object behavior feature, and a sample label representing whether the door is in an intrusion state; For each of the selected training samples, inputting corresponding sample movement parameters, sample environmental sound parameters and sample object behavior characteristics into the behavior analysis model to obtain corresponding prediction probabilities; The model parameters of the behavior analysis model are updated according to the difference between the predicted probability of each selected training sample and the sample label.

4. The method according to claim 3, It is characterized in that The model parameters to be updated in the behavior analysis model include: a first coefficient, a second coefficient related to the movement parameter, a third coefficient related to the environmental sound parameter, and at least one fourth coefficient, each fourth coefficient corresponding to an object behavior feature; According to the difference between the predicted probability of each selected training sample and the sample label, the parameters of the behavior analysis model are updated, including: Determine the adjustment amount corresponding to each model parameter to be updated according to the difference between the predicted probability of each selected training sample and the sample label, and obtain the product of the adjustment amount and the preset learning rate; The sum of the model parameters before updating and the product is used as the model parameters after updating.

5. The method according to claim 4, It is characterized in that The adjustment amount corresponding to the first coefficient is: the mean of the sum of the differences corresponding to each of the selected training samples; The adjustment amount corresponding to the second coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample movement parameter; The adjustment amount corresponding to the third coefficient is: the mean of the sum of the products of the difference corresponding to each selected training sample and the corresponding sample environmental sound parameter; The adjustment amount corresponding to the fourth coefficient is: the mean value of the sum of the products of the difference corresponding to each selected training sample and the behavior characteristics of the corresponding sample object.

6. The method according to any one of claims 1 to 4, It is characterized in that The critical input value includes a critical movement parameter, a critical environmental sound parameter, and a critical object behavior characteristic; the critical input value is determined in the following manner: Acquire historical behaviors of the object that opened the door within a historical period, wherein the historical behaviors of the object include historical movement parameters, historical environmental sound parameters, and historical object behavior characteristics; Determining a critical movement parameter based on the mean and standard deviation of each of the historical movement parameters; Determining a critical environmental sound parameter based on the mean and standard deviation of each of the historical environmental sound parameters; Based on the mean and standard deviation of each of the historical object behavior features, a critical historical object behavior feature is determined.

7. The method according to any one of claims 1 to 4, It is characterized in that The parameter threshold includes a movement parameter threshold and an ambient sound parameter threshold. If the comparison result meets a preset alarm condition, an indoor intrusion warning signal is issued through an alarm, including: If the movement parameter is greater than the movement parameter threshold, and the ambient sound parameter is greater than the ambient sound parameter threshold, an indoor intrusion warning signal is issued through an alarm.

8. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: Sending alarm information to a terminal device through the alarm device, so as to present the alarm information to a target object through the terminal device; After receiving the alarm closing instruction, the alarm is closed; the alarm closing instruction is: sent by the terminal device in response to the alarm closing operation triggered by the target object viewing the alarm information.

9. The method according to any one of claims 1 to 4, It is characterized in that The movement parameter includes at least one of a movement speed, a movement acceleration and an angular velocity.

10. An indoor intrusion alarm device, It is characterized in that The device comprises: A detection unit, used to detect movement parameters of the entrance door during opening and environmental sound parameters around the entrance door through a sensor provided on the entrance door; A comparison unit is used to compare the movement parameter and the environmental sound parameter with corresponding parameter thresholds respectively to obtain a comparison result; wherein each of the parameter thresholds is determined based on a critical input value and a trained target behavior analysis model; the target behavior analysis model is trained with sample movement parameters, sample environmental sound parameters and sample object behavior characteristics as inputs to output a predicted probability reflecting whether the door is in an intrusion state; the critical input value is determined based on the historical behavior of the object opening the door in historical time; The alarm unit is used to send out an indoor intrusion warning signal through an alarm if the comparison result meets a preset alarm condition.

11. An electronic device, It is characterized in that It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 9.

12. A computer-readable storage medium, It is characterized in that It comprises a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 9.

13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.