Indoor intrusion detection method and device, terminal equipment and computer readable storage medium
The indoor intrusion detection system uses CSI data from WiFi signals to efficiently and cost-effectively monitor for human intrusion by analyzing signal interference, addressing the limitations of traditional methods and enhancing security for vulnerable individuals.
Patent Information
- Application Number
- CN202411224840.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Current human intrusion detection technologies are limited by high cost and operational complexity, making them unsuitable for widespread application, and traditional methods like video surveillance raise privacy concerns and are ineffective in environments with obstructed vision or low light.
An indoor intrusion detection system that utilizes channel state information (CSI) data from WiFi signals to detect human movement by analyzing signal interference, employing probability density function calculations to determine peak values and compare them with thresholds, enabling efficient and low-cost monitoring without additional hardware.
The system effectively identifies human intrusion at a low cost and with high efficiency by processing CSI data in real-time, reducing false alarms and providing rapid response in emergency situations, especially for vulnerable groups like single women and hotel guests.
Smart Images

Figure CN119131970A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of indoor intrusion detection, and in particular to an indoor intrusion detection method, apparatus, terminal device and computer-readable storage medium. Background Art
[0002] The importance of human intrusion detection systems in the field of security management is becoming increasingly prominent. Current human intrusion detection technologies are diverse, some of which rely on expensive monitoring equipment or complex installation processes. Although these technologies are effective in specific scenarios, they are often limited in widespread application due to cost and operational complexity. Summary of the invention
[0003] The embodiments of the present application provide an indoor intrusion detection method, apparatus, terminal device, and computer-readable storage medium for low-cost and efficient security detection of whether there is human intrusion in a target environment.
[0004] In a first aspect, the present application provides an indoor intrusion detection method, which may include: obtaining channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, the CSI data including multiple columns of subcarriers, and the target subcarrier period being a period of any acquired subcarrier within a preset intrusion detection duration; performing probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers; and determining whether the target environment range is invaded based on comparing the peak value of each column of subcarriers with a preset threshold.
[0005] A second aspect of the present application provides an indoor intrusion detection device, which may include:
[0006] An acquisition module, used to acquire channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, wherein the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration;
[0007] The processing module is used to calculate the probability density function of the CSI data to obtain the peak value of each column of subcarriers; and determine whether the target environment range is invaded based on the comparison between the peak value of each column of subcarriers and a preset threshold.
[0008] A third aspect of the present application provides a terminal device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the terminal device executes the program, the method described in the first aspect of the present application is implemented.
[0009] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect of the present application is implemented.
[0010] In a fifth aspect, the present application provides a chip, comprising a computer program, which, when executed by a processor, implements the method described in the first aspect of the present application.
[0011] Yet another aspect of an embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method described in the first aspect of the present application.
[0012] Another aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the present application.
[0013] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0014] In an embodiment of the present application, the channel state information CSI data about wireless fidelity WiFi in the target subcarrier period in the target environment range is obtained, the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any subcarrier acquisition within the preset intrusion detection duration; the probability density function of the CSI data is calculated to obtain the peak value of each column of subcarriers; the peak value of each column of subcarriers is compared with the preset threshold value to determine whether the target environment range is invaded. It is possible to determine whether the target environment range is invaded based on the CSI data about WiFi in the target environment range, so that the safety detection of whether there is human intrusion in the target environment range can be achieved at low cost and high efficiency through the judgment results of multiple periods. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.
[0016] Figure 1A and Figure 1B A schematic diagram of a scenario used in an embodiment of the present application;
[0017] Figure 2 This is a schematic diagram of an embodiment of an indoor intrusion detection method in an embodiment of the present application;
[0018] Figure 3A A schematic diagram of the probability density peaks of the invasion state and the static state after sorting in the embodiment of the present application;
[0019] Figure 3B A schematic diagram of determining whether a preset environment range is invaded in an embodiment of the present application;
[0020] Figure 3C A schematic diagram of determining whether a preset environment range is invaded in an embodiment of the present application;
[0021] Figure 3D This is a schematic diagram of the framework of the intrusion detection system in the embodiment of the present application;
[0022] Figure 4 This is another schematic diagram of an indoor intrusion detection method in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of obtaining a final determination result according to the number of intrusions within a preset intrusion detection time in an embodiment of the present application;
[0024] Figure 6 This is a schematic diagram of an embodiment of an indoor intrusion detection device in an embodiment of the present application;
[0025] Fig. 7A This is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application;
[0026] Figure 7B This is another schematic diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The embodiments of the present application provide an indoor intrusion detection method, apparatus, terminal device, storage medium and program product for realizing low-cost and high-efficiency security detection of whether there is human intrusion in a target environment.
[0028] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0029] The importance of intrusion detection systems in the field of security management is becoming increasingly prominent, especially for vulnerable groups such as single women living alone and hotel guests. With the acceleration of urbanization and the diversification of lifestyles, living alone has become a life choice for many people. For this group of people, especially single women living alone, they may be more likely to become targets of illegal intrusion, so improving the security of homes is particularly important.
[0030] Similarly, with the increase in tourism and business activities, people frequently stay in hotels, and the safety of hotel rooms has become a widespread concern. Although hotels are usually equipped with basic security measures, efficient and accurate intrusion detection systems can provide guests with additional security, especially when guests are sleeping or out. The intrusion detection system can automatically monitor and promptly alarm when abnormal intrusion is detected.
[0031] Therefore, intrusion detection systems must not only address traditional security challenges, but also take into account the needs of these special scenarios and groups. By installing advanced surveillance technologies such as motion detectors, closed-circuit television (CCTV) cameras, and smart door locks, the security of single homes and hotel rooms can be greatly improved. At the same time, combining artificial intelligence and machine learning for behavioral analysis can not only reduce false alarms, but also provide rapid response in emergency situations, thereby ensuring the personal safety of users.
[0032] In summary, continuous research and development of personnel intrusion detection technology for specific needs can not only protect personal property and privacy, but also bring broader security to society. Especially for susceptible groups such as single women living alone and hotel guests living alone, its importance is self-evident.
[0033] Current intrusion detection technologies vary, some of which rely on expensive monitoring equipment or complex installation processes. Although these technologies are effective in specific scenarios, they are often limited in widespread application due to cost and operational complexity. In addition, traditional monitoring methods, such as video surveillance, not only involve privacy issues, but also do not work well in environments with obstructed vision or low light.
[0034] The technical solution of this application proposes a new type of personnel intrusion detection solution, which can use terminal equipment to collect channel state information (CSI) data of wireless fidelity (WiFi) signals within a preset environment range; by analyzing the CSI data in the WiFi signal, the system can detect signal interference and changes caused by human movement, thereby identifying whether there are people entering the monitoring area, that is, there is a human intrusion. The advantages of this solution are low cost and easy deployment, and efficient personnel monitoring can be achieved without additional hardware investment. Figure 1A and Figure 1B The figure is a schematic diagram of a scenario applied in an embodiment of the present application.
[0035] exist Figure 1A In the figure, the user is a single female sleeping in her room or hotel. By using the technical solution of this application, human intrusion can be monitored in real time, which improves the safety of single users to a certain extent. Figure 1BAs shown, when the user returns from outside, before entering the room, he can connect to the room's WiFi to detect whether there is an intruder in the room, thereby preventing bad people from being active in the room. However, the user is not aware of this and directly entering the hotel will affect the user's personal safety, so the user's personal safety can be guaranteed to a certain extent.
[0036] In the embodiments of the present application, the user in the application scenario may be a single user or a user who does not live alone, but the probability of the residence of a single user being invaded is greater.
[0037] In the embodiment of the present application, the terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0038] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0039] The technical solution of this application is further described below by way of examples. Figure 2 As shown, it is a schematic diagram of an embodiment of the indoor intrusion detection method in the embodiment of the present application, which may include:
[0040] 201. Acquire channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, where the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration.
[0041] The indoor intrusion detection function can be turned on when the user needs to perform indoor intrusion detection. When it is not needed, the user can turn off the indoor intrusion detection function by himself. The indoor intrusion detection function can also be automatically turned on and off in a specific time period, which is not specifically limited in the embodiments of the present application.
[0042] For example, when the user is in a situation including but not limited to Figure 1A or Figure 1B In the scenario shown, the indoor intrusion detection function can be triggered on the terminal device. The terminal device can connect to the WiFi in the target environment range, and then obtain the channel state information CSI data about the WiFi in the target subcarrier period in the preset environment range, and the CSI data includes multiple columns of subcarriers. For example: when the user is on a business trip or lives alone, before going to bed in the room at night, the indoor intrusion detection function can be triggered; the terminal device connects to the WiFi in the room, detects the CSI data inside the room, and determines whether there is an intrusion in the room. For example: when the user comes back from going out and has not entered the room, he can trigger the indoor intrusion detection function outside the door; the terminal device connects to the WiFi in the room, detects the CSI data inside the room, and determines whether there is an intrusion in the room.
[0043] The target subcarrier period is a period for obtaining a subcarrier once within a preset intrusion detection time, for example, 100 milliseconds (ms). Multiple columns of subcarriers are obtained in each subcarrier period, and the number of the multiple columns of subcarriers is, for example, 106 columns of subcarriers.
[0044] During the collection period, when collecting the channel state information CSI data about WiFi in the preset environment range, the duration of the collection period can be the duration of one subcarrier period, such as 100ms, or it can be the duration of multiple subcarrier periods, that is, the duration of N times the subcarrier period, where N is an integer greater than 2, such as 3 seconds (s), and the specific embodiments of the present application are not limited. When the collection period is the duration of one subcarrier period, each time CSI data is collected, an intrusion determination is performed. When the collection period is N times the duration of the subcarrier period, each time CSI data is collected, N intrusion determinations are performed; each time an intrusion determination is performed, it is necessary to first determine the target subcarrier period in the N subcarrier periods, then determine the CSI data about WiFi in the target subcarrier period, and then perform an intrusion determination based on the CSI data about WiFi in the target subcarrier period.
[0045] CSI data, namely Channel State Information, is an important parameter to measure the channel conditions. It describes the propagation characteristics in the communication link, including the combined influence of multiple effects such as scattering, fading and power attenuation. CSI data is crucial to wireless communication systems because it can help the system perform signal processing and resource allocation more efficiently. The method of obtaining CSI data is usually called channel estimation, which can be divided into CSI on the transmitter side and CSI on the receiver side. CSI on the transmitter side can be used for power allocation, beamforming and antenna selection to compensate for the attenuation of the signal during transmission in advance. The CSI on the receiver side is used to decode the received signal.
[0046] In practical applications, the acquisition and analysis of CSI data is an important research area. For example, the detection and perception of human bodies or environments using WiFi signals can improve the perception accuracy by analyzing CSI information. In addition, CSI data can also be used in indoor positioning and navigation, smart home and IoT applications, smart cities and smart transportation.
[0047] 202. Perform probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers.
[0048] Optionally, in some optional implementations, performing a probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers may include: preprocessing the CSI data to obtain preprocessed CSI data; performing a probability density function calculation on the preprocessed CSI data to obtain a peak value of each column of subcarriers.
[0049] The preprocessing may include at least one of data cleaning, data sorting, data fusion, Kalman filtering, Gaussian filtering, phase unwrapping, and feature extraction. It should be noted that the preprocessing may also include some preprocessing not shown.
[0050] Data cleaning: remove noisy data, correct erroneous data, and fill in missing data to improve data quality.
[0051] Data sorting: classify, sort, and archive the cleaned data to make the data structured and standardized.
[0052] Data fusion: Integrate multi-source data to form a unified data set, achieve data complementarity, and increase data coverage and sample size.
[0053] Kalman filter: Use the Kalman filter algorithm to process CSI data to improve positioning accuracy and performance stability.
[0054] Gaussian filtering: Gaussian filtering is used to smooth the data and reduce the impact of random noise.
[0055] Phase unwrapping: The phase of the CSI data is unwrapped to obtain continuous phase information.
[0056] Feature extraction: Extract useful features such as amplitude, phase, and timestamp from raw CSI data to support subsequent analysis and modeling.
[0057] Exemplarily, in the data preprocessing stage, the CSI data may be subjected to a zero removal operation, which may be understood as processing zero values or invalid values in the CSI data to obtain CSI data after zero removal; since zero values may not represent the actual signal state, removing these zero values helps improve data quality.
[0058] In this technical solution, preprocessing can provide a high-quality data foundation for applications such as behavior recognition based on CSI data.
[0059] Optionally, in some optional implementations, performing a probability density function calculation on the CSI data to obtain a peak value for each column of subcarriers may include: performing an amplitude calculation on the CSI data to obtain amplitude data; performing a probability density function calculation on the amplitude data to obtain a probability density peak value for each column of subcarriers.
[0060] In this technical solution, the amplitude of the CSI data can be calculated to obtain the amplitude data of the CSI data, and then the probability density function of the amplitude data of the CSI data can be calculated to obtain the probability density peak value of each column of subcarriers. A specific implementation method for calculating the probability density peak value of the subcarrier is provided, which improves the feasibility of the solution.
[0061] Optionally, in some optional implementations, performing amplitude calculation on the CSI data to obtain amplitude data includes: preprocessing the CSI data to obtain preprocessed CSI data; performing amplitude calculation on the preprocessed CSI data to obtain amplitude data.
[0062] In this technical solution, before calculating the amplitude of the CSI data, the CSI data may be preprocessed to obtain CSI data with higher reliability, and then the amplitude of the preprocessed CSI data may be calculated to obtain amplitude data. In signal processing, the amplitude can provide information about the signal strength.
[0063] Exemplarily, assuming that the collection period of CSI data is 3 seconds (s), and the subcarrier period is 100 milliseconds (ms), then there are 30 subcarrier periods within this collection period of 3 seconds. In the data preprocessing stage, for the CSI data, the 0 removal operation can be performed, and the amplitude data of the CSI data after the 0 removal is calculated. For example, the amplitude is calculated after the CSI data within 3 seconds is removed to obtain the amplitude data in the data format of 30×106, where 30 means that 30 subcarriers are obtained within 3 seconds, and 106 subcarriers are obtained each time; the target subcarrier period, that is, the amplitude data in the target subcarrier period is calculated by the probability density function to obtain the probability density peak value (also referred to as the peak value) of each column of subcarriers, and the CSI data format is 1×106. Among them, 1 represents the peak value of each column of subcarriers, and 106 represents the number of subcarriers. The calculation formulas for the probability density function of CSI data are shown in Formula 1, Formula 2 and Formula 3 below:
[0064]
[0065]
[0066]
[0067] In formula 1, h is the bandwidth, which controls the width of the kernel and affects the smoothness of the estimate. is the sample standard deviation. In formula 2, φ is the kernel function. In Gaussian kernel density estimation, φ is the probability density function of the normal distribution. In formula 3, is the estimated probability density at point x, n is the number of sample data points (e.g. 30 in the above example), X i is each sample data point.
[0068] 203. Determine whether the preset environment range is invaded by comparing the peak value of each column of subcarriers with a preset threshold.
[0069] The embodiment of the present invention determines whether a preset environmental range is invaded within a subcarrier period. Since the subcarrier period is any subcarrier period in the preset intrusion detection duration, it provides conditions for determining whether the environmental range is in an invaded state within the entire preset intrusion detection duration.
[0070] Optionally, in some possible implementations, comparing the peak value of each column of subcarriers with a preset threshold to determine whether the target environment range is invaded may include:
[0071] When the number of targets is greater than or equal to the number threshold, it is determined that the target environment range is in a stationary state; when the number of targets is less than the number threshold, it is determined that the target environment range is in an intrusion state; or,
[0072] When the target ratio is greater than or equal to the ratio threshold, it is determined that the target environment range is in a stationary state; when the target ratio is less than the ratio threshold, it is determined that the target environment range is in an intrusion state; wherein the target ratio is the ratio of the number of targets to the total number of subcarriers in the multiple columns;
[0073] The target number is the total number of subcarriers in the multiple columns of subcarriers whose peak values are greater than or equal to a target peak threshold.
[0074] Exemplarily, within each subcarrier period of 100ms, if the peak value of the subcarrier is greater than or equal to the number of the target peak threshold, and is greater than or equal to the number threshold, it can be determined that the target environment range is in a static state, that is, there is no human intrusion; if the peak value of the subcarrier is greater than or equal to the ratio of the target peak threshold, and is less than the number threshold, it can be determined that the target environment range is in an intrusion state, that is, there is human intrusion.
[0075] Within each subcarrier period of 100ms, if the peak value of the subcarrier is greater than or equal to the ratio of the target peak threshold, and is greater than or equal to the ratio threshold, it can be determined that the target environment range is in a static state, that is, there is no human intrusion; if the peak value of the subcarrier is greater than or equal to the ratio of the target peak threshold, and is less than the ratio threshold, it can be determined that the target environment range is in an intrusion state, that is, there is human intrusion.
[0076] In the technical solution, the quantity threshold and the ratio threshold can be adjusted according to actual needs. Whether there is human intrusion can be determined based on whether the number of subcarrier peak values is greater than or equal to the target peak threshold is greater than or equal to the quantity threshold, or whether there is human intrusion can be determined based on whether the ratio of the subcarrier peak values is greater than or equal to the target peak threshold is greater than or equal to the ratio threshold, so that security detection of the target environment range can be performed at low cost and high efficiency.
[0077] Optionally, in some possible implementations, the target peak threshold is a first peak threshold or a second peak threshold; the first peak threshold is the average value of the peak values of subcarriers that are less than a preset peak threshold in the historical period before the target subcarrier period; the second peak threshold is the peak value of the subcarrier with the smallest peak value in the historical period before the target subcarrier period.
[0078] Exemplarily, the historical period may be the previous subcarrier period of the target subcarrier period, or may be a plurality of subcarrier periods closest to the target subcarrier period, or may be a subcarrier period between the target subcarrier period and the triggering of the indoor intrusion detection function, and the specific embodiment of the present application is not limited thereto. Generally speaking, the reliability of real-time update of the target peak threshold is relatively high, so the general historical period may select the previous subcarrier period of the target subcarrier period, or a plurality of subcarrier periods closest to the target subcarrier period.
[0079] Exemplarily, the target peak threshold may be a first peak threshold, which is an average value of the peak values of subcarriers that are less than a preset peak threshold in a historical period. Figure 3A , which is a schematic diagram of the probability density peaks of the intrusion state and the static state after sorting in an embodiment of the present application. Figure 3A What is shown in is historical experimental data. By analyzing the historical test data (for example, 106 columns of subcarriers), the average value of the probability density peak value that is less than the preset peak threshold value (for example, 0.0005) in the static state (that is, the average value of the probability density peak value of the first 53 columns of subcarriers) is used as the first peak threshold with high reliability. However, the sensitivity of determining whether there is an intrusion based on the first peak threshold is high, and some minor movements may also be determined as intrusions. Therefore, the sensitivity can be adjusted to a more moderate level. After a large amount of data analysis, the minimum probability density peak value in the static state can be used as the second peak threshold, and then the second peak threshold can be used to determine whether the target environment range is invaded. Then, the second peak threshold is the peak value of the subcarrier with the smallest peak value in the historical period.
[0080] In the present technical solution, two cases where the target peak threshold is the first peak threshold or the second peak threshold are described. In practical applications, different target peak thresholds can be selected according to different sensitivity requirements, thereby improving the feasibility of the solution.
[0081] Optionally, in some possible implementations, when the target peak threshold is the first peak threshold, the quantity threshold is the first quantity threshold, or the ratio threshold is the first ratio threshold;
[0082] In the case where the target peak threshold is the second peak threshold, the quantity threshold is the second quantity threshold, or the ratio threshold is the second ratio threshold;
[0083] The first quantity threshold is different from the second quantity threshold, and the first ratio threshold is different from the second ratio threshold.
[0084] Exemplarily, when the target peak threshold is the first peak threshold, the corresponding first quantity threshold may be, for example, 53; when the target peak threshold is the second peak threshold, the corresponding second quantity threshold may be, for example, 16.
[0085] Exemplarily, when the target peak threshold is the first peak threshold, the corresponding first ratio threshold may be, for example, 50%; when the target peak threshold is the second peak threshold, the corresponding second ratio threshold may be, for example, 15%, or 10%, 20% or 30%.
[0086] The following is an analysis and evaluation of the corresponding ratio threshold and actual effect when the target peak threshold is the second peak threshold, as shown in Table 1 below:
[0087]
[0088] Table 1
[0089] In this technical solution, if the target peak threshold is the first peak threshold or the second peak threshold, it is necessary to adaptively adjust the quantity threshold or the ratio threshold corresponding to the target peak threshold to improve the reliability of determining whether the target environment range is invaded.
[0090] Optionally, in some possible implementations, the first peak threshold is an average value of the peak values of subcarriers that are less than a preset peak threshold in the peak values of each column of subcarriers arranged sequentially;
[0091] The second peak threshold is the peak value of the subcarrier with the smallest peak value among the peak values of each column of subcarriers arranged sequentially;
[0092] The peak value of each column of subcarriers after sequential arrangement is obtained by smoothly arranging the peak value of each column of subcarriers in the historical period.
[0093] Exemplarily, in the stage of using a proportional threshold to determine whether a preset environmental range is invaded, a dynamic threshold update method can be used. Because in each subcarrier period, multiple columns of subcarriers are independent of each other. Here, the number of multiple columns of subcarriers is illustrated by taking the above-mentioned 106 columns of subcarriers as an example. The 106 columns of subcarriers can be sorted without affecting the final judgment result. It is also beneficial to the judgment of the judgment result and reduces the application power consumption. Therefore, the probability density peaks of all subcarriers in the historical subcarrier period, such as 106 columns of subcarriers, can be sorted from small to large to observe their numerical values. The average value of the peak values of the subcarriers that are less than the preset peak threshold (for example, 0.0005) in the previous period is used as the first peak threshold. For example, when the peak values of more than 50% of the subcarriers are greater than the first peak threshold, it is determined that the target environmental range is in a static state. Otherwise, it is determined that the target environmental range is in an invaded state. Figure 3B As shown, it is a schematic diagram of determining whether a preset environment range is invaded in an embodiment of the present application. Figure 3B As shown, CSI data is obtained, the CSI data is preprocessed (for example, to determine whether it is 0), and then the probability density function is calculated, and then the peak value of the probability density is calculated, and the average value of the peak value of the subcarriers that is less than a preset peak threshold (for example, 0.0005) in the previous cycle is used as the first peak threshold; the probability density peak value of each column of subcarriers in the target subcarrier period is calculated, and the target number (count) greater than or equal to the first peak threshold is counted. If it is greater than or equal to 53, then it can be considered that the target environment range is in a static state, otherwise, it is considered that the target environment range is in an intrusion state.
[0094] According to actual results, the first peak threshold makes the intrusion state too sensitive, and even small movements may be judged as intrusion. In order to adjust the sensitivity of the application to a more moderate level, the minimum value of the probability density peak in the previous cycle can be taken as the second peak threshold. When more than 15% of the peak values are greater than the second peak threshold, the target environment range is judged to be in a static state, otherwise, the target environment range is judged to be in an intrusion state. Figure 3C As shown, it is a schematic diagram of determining whether a preset environment range is invaded in an embodiment of the present application. Figure 3C As shown, CSI data is obtained, the CSI data is preprocessed (for example, it is determined whether it is 0), and then the probability density function is calculated, and then the peak value of the probability density is calculated, and the minimum subcarrier peak value in the previous cycle is used as the second peak threshold; the probability density peak value of each column of subcarriers in the target subcarrier period is calculated, and the target number (count) greater than or equal to the second peak threshold is counted. If it is greater than or equal to 16, then it can be considered that the target environment range is in a static state, otherwise, it is considered that the target environment range is in an intrusion state.
[0095] In the embodiment of the present application, a low-power solution is adopted, that is, the amplitude data of the channel state information (CSI) data is used to dynamically update the threshold, and the intrusion event is monitored through the threshold. Figure 3DFIG. 1 is a schematic diagram of the framework of the intrusion detection system in the embodiment of the present application. The intrusion detection system is divided into three stages: data preprocessing, dynamic threshold update, and intrusion event determination. First, CSI data is collected in real time through the terminal device, which can also be called CSI raw data, that is, CSI data within a collection period is collected in real time, and the collection period includes one or more subcarrier periods; wherein, CSI data can also be called CSI raw data, and the CSI data within the target subcarrier period is subjected to amplitude calculation (Calculate amplitude) and probability density function (Calculate the probability density function) calculation, and its peak value (Calculate the peak probability density) is taken, and by observing its data characteristics, the threshold value is dynamically updated (Update the environment threshold) to judge the state of the target environment range (Judge the state of the environment), and then the probability density peak value (Calculate the current environmental probability density peak) within the target subcarrier period is calculated to judge the state of the target environment range of the target subcarrier period, and classification (Classification) is performed according to the updated threshold value to distinguish whether the target environment range of the target subcarrier period belongs to a static (Static) or an intrusion (Intrusion) action. If it is an intrusion, an alarm can be issued, for example: someone has invaded (Warning! Someone has invaded).
[0096] In an embodiment of the present application, the channel state information CSI data about wireless fidelity WiFi in the target subcarrier period in the target environment range is obtained, and the CSI data includes multiple columns of subcarriers; the probability density function of the CSI data is calculated to obtain the peak value of each column of subcarriers; and the peak value of each column of subcarriers is compared with a preset threshold to determine whether the target environment range is invaded. It is possible to determine whether the target environment range is invaded based on the CSI data about WiFi in the target environment range, so that the safety detection of whether there is human invasion in the target environment range can be achieved at a low cost and efficiently through the judgment results of multiple periods.
[0097] like Figure 4 As shown, another embodiment schematic diagram of the indoor intrusion detection method in the embodiment of the present application may include:
[0098] 401. Acquire channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, where the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration.
[0099] 402. Perform probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers.
[0100] 403. Determine whether the preset environment range is invaded by comparing the peak value of each column of subcarriers with a preset threshold.
[0101] It should be noted that in the embodiment of the present application, steps 401-403 are the same as the above Figure 2 Steps 201-203 in the illustrated embodiment are similar and will not be described in detail here.
[0102] 404. Count the number of intrusions in which the target environment is in an intrusion state within a preset intrusion detection time.
[0103] In actual applications, if the judgment result of each subcarrier period is directly output, there may be a situation where the turning over state is judged as an intrusion state. Therefore, in order to ensure the reliability of the final judgment result, when the judgment result is obtained in each target subcarrier period (for example, 100ms), it will not be directly output, but first recorded, and then the number of intrusions in which the target environment range is in an intrusion state within the preset intrusion detection time (for example, 3s, 6s or 9s, etc.) is counted, and then whether the target environment range is invaded is determined based on the number of intrusions.
[0104] The preset intrusion detection duration is the duration for outputting a final judgment result. For example, if the preset intrusion detection duration is 9 seconds, then the judgment result within 9 seconds can be output once. After the user triggers the indoor intrusion detection function, data collection and timing will begin, and the final judgment result will be output every 9 seconds.
[0105] In specific applications, the preset intrusion detection duration may be an intrusion detection duration preset by a user, or an intrusion detection duration preset in an indoor intrusion detection function, and the embodiments of the present application do not specifically limit this.
[0106] In some possible implementations, the preset intrusion detection duration may be M times the target subcarrier period, where M is an integer and is greater than 1.
[0107] 405. When the number of intrusions is greater than or equal to a preset number of intrusions, determine that the target environment range is in an intrusion state.
[0108] 406. When the number of intrusions is less than the preset number of intrusions, determine that the target environment range is in a non-intrusion state.
[0109] Optionally, when the number of intrusions is less than the preset number of intrusions, determining that the target environment range is in a non-intrusion state may include:
[0110] When the number of intrusions is greater than 0 and less than the preset number of intrusions, determining that the target environment range is in a turning state;
[0111] When the number of intrusions is equal to 0, it is determined that the target environment range is in a static state.
[0112] The non-invasion state may include a turning state and a static state. Determining that the target environment range is in the turning state is understood to be just an example. In specific applications, the state setting can be made according to actual conditions, as long as it can reflect that the target environment range is in a slightly moving state.
[0113] For example, if the preset intrusion detection duration is 9s, the target subcarrier period is 100ms, the duration of the turning action is less than 6s, and the duration of the personnel intrusion needs to exceed 6s, then the size of the judgment result (Result) array is 9s / 100ms=90, and the corresponding preset number of intrusions is 6 / 100ms=60 times. Therefore, if within 9s, the number of intrusions counted is greater than or equal to 60 times, it can be determined that the target environment range is in an intrusion state, and the final judgment result is output as an intrusion state; if within 9s, the number of intrusions counted is greater than 0 and less than 60 times, it can be determined that the target environment range is in a turning state, and the final judgment result is output as a turning state; if within 9s, the number of intrusions counted is equal to 0, it can be determined that the target environment range is in a static state, and the final judgment result is output as a static state.
[0114] like Figure 5 As shown, it is a schematic diagram of obtaining the final judgment result according to the number of intrusions within the preset intrusion detection time in the embodiment of the present application. When the first intrusion is detected, 1 is stored in the Result array, and 0 is stored when stillness is detected. A total of 90 judgment results are stored, and it is determined whether the sum in the Result array is greater than or equal to 60. If it is greater than or equal to 60, it is determined to be an intrusion, and the final judgment result is output to determine that the target environment range is in an intrusion state; on the contrary, if the sum in the Result array is greater than 0 and less than 60, it is determined to be a turn over, and the final judgment result is output to determine that the target environment range is in a turn over state; if the sum in the Result array is equal to 0, it is determined to be stillness, and the final judgment result is output to determine that the target environment range is in a stillness state; then the Result array is cleared.
[0115] In this technical solution, the turning over state, the intrusion state and the static state can be effectively distinguished within the preset intrusion detection time, thereby reducing the probability of misjudgment.
[0116] 407. When the target environment range is in the intrusion state, output a prompt message and / or automatically dial an alarm number.
[0117] Exemplarily, when the target environment is in the intrusion state, a prompt message may be output. For example, someone has invaded (this situation is usually applicable to when the user is not in the room, or the user is awake, otherwise the user is worried about personal safety), or a specific alarm or specific music is played to wake up the sleeping user (in this situation, the alarm message is not explicitly output, because the user is sleeping. If someone invades, the user can be woken up first, and then the next action is taken according to the actual situation. If the prompt message is explicitly output, the intruder is likely to know that the user knows that someone has invaded, which will cause certain personal danger to the user).
[0118] When the target environment is in the intrusion state, the alarm number can be automatically dialed, and the police can be asked for help at the first time.
[0119] In this technical solution, if the final judgment result is that the target environment is in an intrusion state, at least one of the following can be output: prompt information and automatic dialing of an alarm number. Both are to remind the user to pay attention to safety and find ways to seek help as soon as possible.
[0120] Optionally, in some possible implementations, when the target environment is in the intrusion state, the front desk phone is automatically dialed for help. Although the police phone can also be called, it is farther away than the hotel security personnel. Asking for help from the hotel security personnel can get a response in a shorter time.
[0121] In this technical solution, the channel state information (CSI) and wireless fidelity (WiFi) collected by the terminal device can be used for detection. This method uses commonly available WiFi signals and terminal devices, and can achieve efficient indoor intruder monitoring without additional hardware investment. By analyzing the CSI data in the WiFi signal, the signal interference and changes caused by human movement can be detected, thereby identifying whether unauthorized personnel have entered the monitoring area. The advantages of this solution are low cost and easy deployment. The application of the terminal device can process CSI data in real time and immediately notify the user when a human intrusion is detected, providing a non-invasive solution that does not rely on professional installation.
[0122] like Figure 6 As shown, it is a schematic diagram of an embodiment of an indoor intrusion detection device in an embodiment of the present application, which may include:
[0123] An acquisition module 601 is used to acquire channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, wherein the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration;
[0124] The processing module 602 is used to perform probability density function calculation on the CSI data to obtain the peak value of each column of subcarriers; and determine whether the target environment range is invaded by comparing the peak value of each column of subcarriers with a preset threshold.
[0125] Optionally, in some embodiments of the present application, the processing module 602 is specifically configured to determine that the target environment range is in a static state when the number of targets is greater than or equal to a number threshold; and determine that the target environment range is in an intrusion state when the number of targets is less than the number threshold;
[0126] or,
[0127] The processing module 602 is specifically configured to determine that the target environment range is in a stationary state when the target ratio is greater than or equal to a ratio threshold; and determine that the target environment range is in an intrusion state when the target ratio is less than the ratio threshold; wherein the target ratio is a ratio of the number of targets to the total number of subcarriers in the multiple columns;
[0128] The target number is the total number of subcarriers in the multiple columns of subcarriers whose peak values are greater than or equal to a target peak threshold.
[0129] Optionally, in some embodiments of the present application, the target peak threshold is a first peak threshold or a second peak threshold; the first peak threshold is the average value of the peak values of subcarriers that are less than a preset peak threshold in the historical period before the target subcarrier period; the second peak threshold is the peak value of the subcarrier with the smallest peak value in the historical period before the target subcarrier period.
[0130] Optionally, in some embodiments of the present application, when the target peak value threshold is the first peak value threshold, the quantity threshold is the first quantity threshold, or the ratio threshold is the first ratio threshold;
[0131] In the case where the target peak threshold is the second peak threshold, the quantity threshold is the second quantity threshold, or the ratio threshold is the second ratio threshold;
[0132] The first quantity threshold is different from the second quantity threshold, and the first ratio threshold is different from the second ratio threshold.
[0133] Optionally, in some embodiments of the present application, the first peak threshold is the average value of the peak values of the subcarriers that are less than a preset peak threshold among the peak values of each column of subcarriers after sequential arrangement; the second peak threshold is the peak value of the subcarrier with the smallest peak value among the peak values of each column of subcarriers after sequential arrangement; wherein the peak values of each column of subcarriers after sequential arrangement are obtained by smoothly arranging the peak values of each column of subcarriers in the historical period.
[0134] Optionally, in some embodiments of the present application, the processing module 602 is also used to count the number of intrusions in which the target environment range is in an intrusion state within a preset intrusion detection time period; when the number of intrusions is greater than or equal to the preset number of intrusions, it is determined that the target environment range is in an intrusion state; when the number of intrusions is less than the preset number of intrusions, it is determined that the target environment range is in a non-intrusion state.
[0135] Optionally, in some embodiments of the present application, the processing module 602 is further configured to output a prompt message and / or automatically dial an alarm number when the target environment range is in the intrusion state.
[0136] Optionally, in some embodiments of the present application, the processing module 602 is specifically used to perform amplitude calculation on the CSI data to obtain amplitude data; and perform probability density function calculation on the amplitude data to obtain a peak value of each column of subcarriers.
[0137] Optionally, in some embodiments of the present application, the processing module 602 is specifically used to preprocess the CSI data to obtain preprocessed CSI data; perform probability density function calculation on the preprocessed CSI data to obtain the peak value of each column of subcarriers.
[0138] like Fig. 7A As shown, it is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application, which may include: Figure 6 Indoor intrusion detection device shown.
[0139] like Figure 7B FIG. 1 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present application. Figure 7B The following is a detailed introduction to the various components of the mobile phone in the terminal device:
[0140] The RF circuit 710 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0141] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0142] The input unit 730 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0143] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Figure 7B In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0144] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0145] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0146] Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the Wi-Fi module 770. It provides users with wireless broadband Internet access. Figure 7B A Wi-Fi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0147] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0148] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0149] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0150] In an embodiment of the present application, the processor 780 is used to obtain channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, where the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration; a probability density function is calculated for the CSI data to obtain a peak value of each column of subcarriers; and a peak value of each column of subcarriers is compared with a preset threshold to determine whether the target environment range is invaded.
[0151] Optionally, in some embodiments of the present application, the processor 780 is specifically configured to determine that the target environment range is in a stationary state when the target number is greater than or equal to a number threshold; and to determine that the target environment range is in an intrusion state when the target number is less than the number threshold; wherein the target number is the total number of subcarriers in the multiple columns of subcarriers whose peak values are greater than or equal to a target peak threshold; or,
[0152] Processor 780 is specifically used to determine that the target environment range is in a static state when the target ratio is greater than or equal to the ratio threshold; and to determine that the target environment range is in an intrusion state when the target ratio is less than the ratio threshold; wherein the target ratio is the ratio of the number of targets to the total number of subcarriers in the multiple columns.
[0153] Optionally, in some embodiments of the present application, the target peak threshold is a first peak threshold or a second peak threshold; the first peak threshold is the average value of the peak values of subcarriers that are less than a preset peak threshold in the historical period before the target subcarrier period; the second peak threshold is the peak value of the subcarrier with the smallest peak value in the historical period before the target subcarrier period.
[0154] Optionally, in some embodiments of the present application, when the target peak value threshold is the first peak value threshold, the quantity threshold is the first quantity threshold, or the ratio threshold is the first ratio threshold;
[0155] In the case where the target peak threshold is the second peak threshold, the quantity threshold is the second quantity threshold, or the ratio threshold is the second ratio threshold;
[0156] The first quantity threshold is different from the second quantity threshold, and the first ratio threshold is different from the second ratio threshold.
[0157] Optionally, in some embodiments of the present application, the first peak threshold is the average value of the peak values of the subcarriers that are less than a preset peak threshold among the peak values of each column of subcarriers after sequential arrangement; the second peak threshold is the peak value of the subcarrier with the smallest peak value among the peak values of each column of subcarriers after sequential arrangement; wherein the peak values of each column of subcarriers after sequential arrangement are obtained by smoothly arranging the peak values of each column of subcarriers in the historical period.
[0158] Optionally, in some embodiments of the present application, the processor 780 is also used to count the number of intrusions in which the target environment range is in an intrusion state within a preset intrusion detection time period; when the number of intrusions is greater than or equal to the preset number of intrusions, it is determined that the target environment range is in an intrusion state; when the number of intrusions is less than the preset number of intrusions, it is determined that the target environment range is in a non-intrusion state.
[0159] Optionally, in some embodiments of the present application, the processor 780 is further configured to output a prompt message and / or automatically dial an alarm number when the target environment range is in the intrusion state.
[0160] Optionally, in some embodiments of the present application, the processor 780 is specifically used to perform amplitude calculation on the CSI data to obtain amplitude data; and perform probability density function calculation on the amplitude data to obtain a peak value of each column of subcarriers.
[0161] Optionally, in some embodiments of the present application, the processor 780 is specifically used to preprocess the CSI data to obtain preprocessed CSI data; perform probability density function calculation on the preprocessed CSI data to obtain a peak value of each column of subcarriers.
[0162] In the above embodiments, it 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 instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0163] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0164] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0166] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0168] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An indoor intrusion detection method, characterized in that: include: Acquire channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, wherein the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration; Performing probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers; By comparing the peak value of each column of subcarriers with a preset threshold, it is determined whether the target environment range is invaded.
2. The method according to claim 1, characterized in that The step of comparing the peak value of each column of subcarriers with a preset threshold to determine whether the target environment range is invaded includes: When the number of targets is greater than or equal to the number threshold, it is determined that the target environment range is in a stationary state; when the number of targets is less than the number threshold, it is determined that the target environment range is in an intrusion state; or, When the target ratio is greater than or equal to the ratio threshold, it is determined that the target environment range is in a stationary state; when the target ratio is less than the ratio threshold, it is determined that the target environment range is in an intrusion state; wherein the target ratio is the ratio of the number of targets to the total number of subcarriers in the multiple columns; The target number is the total number of subcarriers in the multiple columns of subcarriers whose peak values are greater than or equal to a target peak threshold.
3. The method according to claim 2, characterized in that The target peak threshold is the first peak threshold or the second peak threshold; The first peak threshold is an average value of the peak values of subcarriers that are less than a preset peak threshold in a historical period before the target subcarrier period; The second peak threshold is a peak value of a subcarrier with a minimum peak value in a historical period before the target subcarrier period.
4. The method according to claim 3, characterized in that In the case where the target peak threshold is the first peak threshold, the quantity threshold is the first quantity threshold, or the ratio threshold is the first ratio threshold; In the case where the target peak threshold is the second peak threshold, the quantity threshold is the second quantity threshold, or the ratio threshold is the second ratio threshold; The first quantity threshold is different from the second quantity threshold, and the first ratio threshold is different from the second ratio threshold.
5. The method according to claim 3, characterized in that: The first peak value threshold is an average value of the peak values of subcarriers that are smaller than the preset peak value threshold in the peak values of each column of subcarriers arranged sequentially; The second peak threshold is the peak value of the subcarrier with the smallest peak value among the peak values of each column of subcarriers arranged sequentially; The peak value of each column of subcarriers after sequential arrangement is obtained by smoothly arranging the peak value of each column of subcarriers in the historical period.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Counting the number of intrusions in which the target environment range is in an intrusion state within the preset intrusion detection time; When the number of intrusions is greater than or equal to a preset number of intrusions, determining that the target environment range is in an intrusion state; When the number of intrusions is less than the preset number of intrusions, it is determined that the target environment range is in a non-intrusion state.
7. The method according to claim 6, characterized in that The method further comprises: When the target environment is in an invasion state, a prompt message is output and / or an alarm number is automatically dialed.
8. The method according to any one of claims 1 to 5, characterized in that The performing probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers includes: Performing amplitude calculation on the CSI data to obtain amplitude data; Probability density function calculation is performed on the amplitude data to obtain the peak value of each column of subcarriers.
9. The method according to any one of claims 1 to 5, characterized in that The performing probability density function calculation on the CSI data to obtain a peak value of each column of subcarriers includes: Preprocessing the CSI data to obtain preprocessed CSI data; Probability density function calculation is performed on the preprocessed CSI data to obtain a peak value of each column of subcarriers.
10. An indoor intrusion detection device, characterized in that: include: An acquisition module, used to acquire channel state information CSI data about wireless fidelity WiFi within a target subcarrier period in a target environment range, wherein the CSI data includes multiple columns of subcarriers, and the target subcarrier period is a period of any acquired subcarrier within a preset intrusion detection duration; The processing module is used to calculate the probability density function of the CSI data to obtain the peak value of each column of subcarriers; and determine whether the target environment range is invaded based on the comparison between the peak value of each column of subcarriers and a preset threshold.
11. A terminal device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the terminal device executes the program, the method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, 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.
