Fall detection system and method based on WiFi

Through automated signal acquisition and signal processing technology, combined with the LSTM classifier, the problem of low data processing efficiency and interference in the WiFi fall detection system is solved, fall detection with high accuracy and low false alarm rate is achieved, and safety monitoring for the elderly is provided. Strong technical support.

CN118576192APending Publication Date: 2024-09-03DALIAN UNIV OF TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410619626.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing WiFi fall detection system requires manual processing in the data collection and processing stage, which is inefficient and prone to human error; environmental and equipment interference leads to reduced detection accuracy and reliability; it is difficult to accurately distinguish falls from other behaviors in complex activity signals.

Method used

An automated signal acquisition and format conversion mechanism is adopted, a band-pass filter and a phase correction algorithm are used to eliminate interference, and fall behavior recognition is performed by combining signal entropy and power reduction ratio features with an LSTM classifier.

Benefits of technology

It improves the real-time and accuracy of the fall detection system, reduces the false alarm rate, and enhances the reliability and applicability of user safety monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118576192A
    Figure CN118576192A
Patent Text Reader

Abstract

The invention belongs to the technical field of wireless sensing, and provides a fall detection system and method based on WiFi, which are used for sensing and detecting the fall behavior of a user in an environment. The fall detection system based on WiFi comprises an automatic signal acquisition module, a signal preprocessing module and a fall detection module. The automatic signal acquisition module comprises a WiFi (Wireless Fidelity) receiver, a WiFi transmitter and a CSI (Channel State Information) Tool; the signal preprocessing module comprises a discrete wavelet transform unit, a phase calibration unit and a data splicing unit; the tumble detection module comprises a tumble-like behavior division unit and an LSTM-based tumble detection unit. According to the invention, the problems of environmental interference and equipment self-interference are overcome, and the accuracy and reliability of detection are ensured. In addition, the fall signal can be accurately separated from the continuous signal of the complex activity, the false alarm rate is greatly reduced, and the user experience is further enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of fall detection technology, and involves multiple fields such as human-computer interaction, medical health, pattern recognition and artificial intelligence. The system uses WiFi signals to capture human motion characteristics, extracts key information through signal processing, and then uses pattern recognition technology to judge fall behavior. The results show that the system has good robustness, with a detection accuracy of 93.75%, and can detect users falling in different positions and directions. The comprehensive application of these technologies enables the WiFi-based fall detection system to monitor fall events in real time and accurately, providing strong support for ensuring people's safe life. Background Art

[0002] With the aging of society, the safety of the elderly has received increasing attention from society. Among them, falling is an important safety hazard faced by the elderly, which may cause serious physical injuries or even life-threatening. Therefore, the development of a system that can detect falling behavior in real time and accurately has attracted the attention of academia and industry. Existing fall detection systems mainly rely on two types of methods: wearable sensor-based methods and video-based methods. Wearable device-based methods use sensors such as accelerometers and gyroscopes to detect changes in human posture to determine whether a fall has occurred. However, this method requires users to wear specific equipment, which is very inconvenient for the elderly to use and has a high false alarm rate. On the other hand, camera-based methods usually place the camera at a long distance to capture images or record videos in a non-contact manner to detect falls. Although they have great prospects, the performance of camera-based systems will degrade in low-light conditions and may cause privacy issues.

[0003] In recent years, the rapid development of wireless communication technology, signal processing technology, pattern recognition technology and artificial intelligence technology has provided new ideas for fall detection. As a widely used wireless communication technology, WiFi has the advantages of wide coverage, fast transmission speed and good stability, so it is widely used in fall detection systems. The WiFi-based fall detection system mainly uses the characteristics of WiFi signal transmission to detect fall behavior by capturing and analyzing the changes in WiFi signals. When the human body moves within the coverage of the WiFi signal, it will affect the propagation of the WiFi signal. By collecting and analyzing these effects, the movement characteristics of the human body can be extracted to determine whether the user has fallen. In addition, due to the wide coverage and ease of use of WiFi signals, the system can be applied to various scenarios and environments, such as homes, nursing homes, hospitals, etc. At the same time, the system can also be linked with other smart home devices to provide users with more intelligent and personalized services. Summary of the invention

[0004] The present invention mainly solves the following three technical problems:

[0005] (1) The need for manual processing in the data collection and processing detection phase. When using WiFi technology for data collection, traditional methods often require manual data collection, format conversion, splicing and other operations. These tasks are not only tedious and inefficient, but also prone to human errors, posing a great challenge to the real-time and accuracy of the fall detection system. In addition, in real application scenarios, especially in emergency situations such as fall detection for the elderly, manual data processing is not allowed. It cannot meet the system's requirements for rapid response and accurate judgment, and is likely to cause detection delays or false alarms, thereby failing to effectively protect user safety.

[0006] (2) Strong interference from the surrounding environment and the device itself. When we use WiFi signals for fall detection, due to the propagation characteristics of WiFi signals, surrounding static and dynamic objects, such as walls, furniture, other people, etc., will reflect back signals. These reflected signals are mixed with the signals of the target user to form a complex signal environment, which brings great interference to fall detection. This interference may not only lead to false positives and false negatives in the detection results, but also reduce the accuracy and reliability of the fall detection system. In addition to environmental interference, the interference of the device itself is also a problem that cannot be ignored. The present invention uses a commercial Intel 5300 network card to collect WiFi signals. However, the original phase provided by this network card is randomly distributed and cannot be used. This means that in the collected data, the phase information is inaccurate and unreliable. The existence of phase offset will seriously affect the accuracy of fall detection, so before using the collected data for detection, we must eliminate the phase offset.

[0007] (3) Separate the fall signal from the continuous signal of complex activities. When using WiFi technology to obtain the reflection signal of user behavior in a continuous time, users often show a variety of different behaviors, such as walking, squatting, jumping, etc. These different behaviors will produce similar signal patterns in the signal. For example, the signal pattern of squatting shows a certain similarity with the signal pattern of falling, especially when the squatting speed is fast. This similarity makes it difficult for the system to accurately distinguish between the two behaviors, thereby increasing the risk of false alarms.

[0008] To solve the first problem, we proposed a data format conversion and splicing mechanism that can automatically format the collected data and quickly splice it into a data set that can be used for subsequent analysis. In this way, the present invention not only greatly simplifies the workflow of the data collection and detection stage and improves work efficiency, but also significantly reduces the risk of human error and improves the accuracy and reliability of the fall detection system. This is of great significance for realizing real-time monitoring and rapid response of the fall detection system, and also provides a more efficient and reliable solution for the safety monitoring of high-risk groups such as the elderly.

[0009] In order to solve the second problem, the present invention adopts a series of signal processing methods. First, in the signal processing stage, we use a bandpass filter to filter and reduce noise on the collected WiFi signal to eliminate or reduce the influence of environmental interference. Secondly, in response to the phase offset problem, we have developed an effective phase correction algorithm that can automatically eliminate the phase offset in the data processing stage, thereby ensuring the accuracy of fall detection. Through the comprehensive application of these technical means, the present invention successfully overcomes the strong interference problem from the surrounding environment and the device itself, and realizes accurate and reliable fall detection.

[0010] In order to solve the problem of fall behavior recognition, the present invention proposes a solution. We first separate other behaviors and falls and fall-like behaviors (falls and squatting, etc.) according to the amplitude and phase characteristics of different behaviors. Then, we select signal entropy and power drop ratio as features for fall detection. Finally, they are used together to form the input of the LSTM classifier for fall detection. By analyzing the continuity and change trend of the signal, we can more accurately capture the characteristics of the fall event and effectively separate the fall signal from the continuous signal of complex activities, thereby realizing an accurate fall detection system.

[0011] A WiFi-based fall detection system comprises an automatic signal acquisition module, a signal preprocessing module and a fall detection module.

[0012] The automatic signal acquisition module includes a WiFi receiver, a WiFi transmitter and a CSI Tool. The WiFi receiver and the WiFi transmitter are respectively set on both sides of the user activity area to be detected for sending and receiving signals. The CSI Tool can automatically send and receive data continuously to realize automatic signal acquisition.

[0013] The signal preprocessing module includes a discrete wavelet transform unit, a phase calibration unit and a data splicing unit;

[0014] The fall detection module includes a fall-like behavior classification unit and an LSTM-based fall detection unit.

[0015] The WiFi-based fall detection system is used to perform a WiFi-based fall detection method, and the steps are as follows:

[0016] Step 1, automated signal acquisition: Place the WiFi receiver and WiFi transmitter on both sides of the user activity area that needs to be detected to send and receive signals. Set the transmission rate of the WiFi receiver to receive the signal much higher than the rate required for successful fall detection (generally set the transmission rate to 2 to 4 times the rate usually required for successful fall detection, and in the present invention, the transmission rate is set to 1000Hz). Build a CSI Tool platform to process bash scripts, configure the Monitor mode in the bash script, add timers to the receiving and transmitting ends of the Monitor mode to monitor the Netlink socket and record the received CSI signal to the specified output file, thereby realizing automated signal acquisition.

[0017] Step 2: Automated signal format conversion: The signal data collected from the WiFi receiver and WiFi transmitter is a .dat file. First, use CSI Tool to convert the .dat file into a .txt file, and then use Matlab to convert it into a .npy file.

[0018] Step 3: Signal preprocessing:

[0019] (3.1) Signal difference: The signal strength on the subcarrier received by the WiFi receiver is interpolated.

[0020] (3.2) The interpolated signal is filtered using discrete wavelet transform (DWT) after parameter selection to eliminate in-band noise.

[0021] (3.3) Phase calibration:

[0022] Randomly distributed CSI measurement phase of subcarrier f of the WiFi signal after filtering and denoising It can be calculated as:

[0023]

[0024] Among them, φ f is the true phase, Δt is the time delay at the antenna, β is the unknown constant phase offset, Z f is the noise, f f is the carrier frequency offset at the receiving end.

[0025] The phase difference between the two antennas is used instead of the CSI measurement phase The phase difference between the two antennas The following formula can be used:

[0026]

[0027] where Δφ f is the real phase difference, ε=Δt1-Δt2 (Δt1 and Δt2 are the time delays at antenna 1 and antenna 2, respectively). Δβ is the unknown constant phase difference offset, ΔZ f is the measurement noise.

[0028] When two receiving antennas are placed at a distance of half a wavelength, ε represents the propagation time between the two antennas with a distance difference of Δd. ε is estimated as follows: Where λ is the wavelength, f is the center frequency, c is the speed of light, T is the sampling interval, and θ is the direction of arrival. The value of T is set so that ε is approximately equal to zero, so the phase difference we measure is for:

[0029]

[0030] thus, The value of replaces the randomly distributed CSI measurement phase Phase calibration is achieved; therefore, the randomly distributed CSI measurement phase Calibration can be achieved by conducting phase differences between a pair of antennas.

[0031] (3.4) Automatic splicing mechanism: A data packet is collected at a certain interval. When detecting fall-like behavior in step 4 (4.1), the sliding window size is set to the size of two data packets. However, the sliding window only moves one data packet size during the next detection, thereby realizing the automatic splicing mechanism.

[0032] Step 4: Fall behavior recognition:

[0033] (4.1) Classify the user's behavior into fall-like behavior, fall behavior, and other behaviors;

[0034] The most significant feature that distinguishes falling behavior and quasi-falling behavior from other behaviors is that the slope of the amplitude and phase images of falling behavior and quasi-falling signals has a more obvious downward trend. In this way, falling behavior and quasi-falling behavior signals are separated from all behaviors. When the slope is greater than 8, it is set as falling behavior and quasi-falling behavior;

[0035] (4.2) Two features, signal entropy and power drop ratio (PDR), are extracted from the CSI signals of falling behavior and quasi-falling behavior for activity classification.

[0036] (A) The signal entropy H is calculated as:

[0037]

[0038] where k l and k u are the upper and lower limits of the frequency respectively. p(n i ) is the normalized power spectral density, in S(n,k) is the CSI signal.

[0039] (B) The power reduction ratio is calculated as follows:

[0040]

[0041] in is the time end point of the fall-like behavior, It's the moment one second before the end. It is the moment one second after the end point. t,f is the power intensity of a specific frequency f at a specific time t, ω f is the weight vector for each frequency f, f h represents the upper frequency limit, f l Indicates the lower frequency limit.

[0042] (4.3) The two features of the clear falling behavior signal and the quasi-falling behavior signal are used together to form the input of the LSTM classifier, and the LSTM classifier is trained. During detection, the two features of the real-time user behavior signal data are input into the trained LSTM classifier to detect the falling behavior.

[0043] Specifically, for a certain time t, it is necessary to concatenate the signal entropy H and power reduction ratio PDR at different times calculated by (4.2) to obtain the signal feature x at the tth time. t =[H t ,PDR t ].

[0044] Furthermore, for a certain time period, we can obtain the coherent behavior sequence characteristics X=[x 1 ,x 2 ,…,x T ], where T is the number of slices of the calculated sequence. For each behavior sequence, it is divided into two categories: fall and quasi-fall according to the different behavior signal representations, that is, y(X)∈{0,1}, which represent fall behavior and quasi-fall behavior respectively. Then, the behavior sequence feature information is input into the LSTM network. The network structure of LSTM mainly consists of the following parts:

[0045] 1. Cell state: This is the core part of LSTM and runs on the entire chain with only a few linear interactions.

[0046] 2. Gate: LSTM uses three such gates to control the cell state. These three gates are:

[0047] Forget gate: decides what information to discard from the cell state and reads the hidden state h of the previous moment t-1 and the current input x t , and then output a value between 0 and 1, which represents the cell state C at the last moment t-1 Which information in the data should be retained or discarded.

[0048] Input gate: determines how much new information is added to the cell state. It reads h t-1 and x t , and then outputs two parts: one part is a value between 0 and 1, which is used to decide which information should be updated; the other part is a candidate value C t , representing the new information to be added to the cell state.

[0049] Output gate: decides what to output based on the cell state. It reads h t-1 and x t , and then outputs a value between 0 and 1, which represents the cell state C t Which information in should be used as the output h at the current moment? t .

[0050] 3. Hidden state: It is the output of LSTM at each time step, contains the information of the current moment, and is used to calculate the LSTM unit at the next moment.

[0051] Specific input process of LSTM: For each time slice, LSTM uses a gate mechanism to retain the information of the previous moment and the new information. The calculation formula is as follows.

[0052] Forget gate: f t =σ(W f ·[h t-1 ,x t ]+b f )

[0053] Input gate: i t =σ(W i ·[h t-1 ,x t ]+b i ),

[0054] Cell status update:

[0055] Output gate: o t =σ(Wo ·[h t-1 ,x t ]+b o ),h t =o t *tanh(C t )

[0056] Among them, σ is the sigmoid function, which is used to compress the value between 0 and 1; tanh is the hyperbolic tangent function, which can compress the value between -1 and 1; W f , W i , W C , W o and b f , b i , b C , b o are the parameters that need to be learned. represents the cell state of the input,

[0057] Use the final output h t As the input of the final classification result, the softmax function is used to make it probabilistic. The formula is as follows:

[0058] y pred =softmax(h t )

[0059] where y pred is the prediction result of the classifier. For this result, the following loss function is used for parameter training.

[0060]

[0061] Where N represents the number of samples, y i represents the true label (0 or 1) of the i-th sample, p i Indicates the probability that the model predicts that the i-th sample is a positive class;

[0062] In the testing phase, the sample sequence X to be tested is constructed in the same way test , input it into the LSTM classifier to obtain the classification score y(X test ), compare it with the threshold and get the final classification result.

[0063] Effects and benefits of the present invention:

[0064] The present invention proposes a new WiFi-based fall detection solution, which does not require users to wear any specific equipment. It is not only convenient and fast, but also greatly improves user acceptance and comfort. By optimizing algorithms and signal processing technology, the present invention effectively overcomes the problems of environmental interference and equipment interference, ensuring the accuracy and reliability of detection. In addition, the present invention can also accurately separate fall signals from continuous signals of complex activities, greatly reducing the false alarm rate and further enhancing the user experience. In summary, the present invention not only has significant technical innovation value, but also has important practical application value. It can provide strong technical support for the safety monitoring of the elderly and help effectively deal with the problem of social aging. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 Schematic diagram of the WiFi device used in the present invention.

[0066] Figure 2 This is a schematic diagram of the LSTM structure.

[0067] Figure 3 It is a schematic diagram of the process of the present invention.

[0068] Figure 4 Experimental diagrams of the experimental deployment of the present invention (upper left: an experimental diagram of a user performing fall detection in an open environment when the transceivers are in the same room; upper right: an experimental diagram of a user performing fall detection in an office when the transceivers are in the same room; lower left: an experimental diagram of a user performing fall detection in the room when the transceivers are in different rooms; lower right: an experimental diagram of a user performing fall detection in the corridor when the transceivers are in different rooms). DETAILED DESCRIPTION

[0069] The technical solution of the present invention is further described below in conjunction with specific implementation methods and accompanying drawings.

[0070] In this embodiment, we use commercial WiFi equipment to conduct a series of field tests to verify the feasibility of the system. Figure 1 , showing the WiFi device used according to the present invention. The left side is a WiFi transmitter, which is a TP-LINK dual-gigabit router, AC1200, supporting both 2.4GHz and 5GHz bands. The right side is a WiFi receiver, which uses a host equipped with an IEEE 802.11n Intel WiFi Link5300 chipset. The WiFi transmitter and the WiFi receiver communicate via 2x2MIMO, so there are 4 pairs of antennas for each subcarrier of CSI data, and the packet receiving interval is set to 0.001s.

[0071] The detection area is between the WiFi transmitter and the WiFi receiver. After the system starts running, the WiFi transmitter sends a WiFi signal, and the WiFi receiver automatically collects a dat file every 5 seconds and uploads the data file to the cloud server. The server performs automatic data format conversion, automatic data splicing, data preprocessing and fall action recognition, which are introduced in detail below.

[0072] (1) Automatic data format conversion: First, the data collected from the commercial WiFi device is a .dat file. Then, this work needs to use Matlab to analyze and process the CSI signal, so it needs to be converted into a .txt file. Finally, this work needs to use LSTM to divide the fall and quasi-fall actions, so it needs to be converted into a .npy file.

[0073] (2) Automatic data splicing: When the receiving end collects a data file every 5 seconds and sends it to the server for identification, if the user falls before or after the 5-second collection time, the complete signal data of the action will be interrupted by the collection time, resulting in underreporting. To solve this problem, the server will automatically splice the data before each identification, splicing the current data file with the previous 5-second data file, and then use the sliding window method to make the identification.

[0074] (3) Data preprocessing: In indoor environments, some links have weak signals and packet loss due to non-line-of-sight paths and wall penetration. To obtain the same sampling rate, we use linear interpolation as the first step. Here, we set the transmission rate (1000Hz) to a rate much higher than that normally required for successful drop detection, and then interpolate the signal strength onto a single subcarrier to offset the information loss due to packet loss.

[0075] Since CSI has noise in all bands, we chose Discrete Wavelet Transform (DWT), which is an in-band noise filtering technique. With careful parameter selection, DWT filtering removes the in-band noise, preserves the high-frequency components, and introduces less distortion to the signal. In wavelet transform based noise filtering, the signal is separated into multiple frequency levels called wavelet levels by transforming to wavelet domain, which consists of approximate coefficients and detailed coefficients. The highest wavelet level is considered as noise. In DWT, the noise and the threshold of this level are first estimated, the threshold is adapted to the lower wavelet level, and then the noise is cut off in all wavelet levels without causing significant distortion to the signal components. Finally, the denoised signal in wavelet domain is transformed back to time domain.

[0076] According to the Doppler frequency formula,

[0077]

[0078] The maximum speed of a person before landing is usually 5ms -1 , for the 5.2GHz WiFi signal, we get the maximum Doppler frequency δf max ≈175Hz, which is much lower than 250Hz. Therefore, all frequency components above 250Hz can be removed. However, in order to avoid obvious distortion in other frequencies, not all high-frequency components can be removed. Instead, only those high-frequency components that have limited impact on the signal can be removed. max represents the maximum Doppler frequency, that is, the maximum frequency change caused by the relative motion between the transmitting source and the receiver; v represents the relative speed (radial speed) between the transmitting end and the receiving end; c represents the speed of electromagnetic wave propagation in the air; f c Indicates the carrier frequency, which is the center frequency used in wireless communications or radar systems.

[0079] Step 3: Phase calibration: CSI measurement phase of subcarrier f of WiFi signal It can be calculated as:

[0080]

[0081] in, is the true phase, Δt is the time delay at the antenna, β is the unknown constant phase offset, Z f is some kind of noise, f f is the carrier frequency offset at the receiving end.

[0082] Since the original phase provided by the commodity Intel 5300 network card is randomly distributed, direct use will result in inaccurate phase of the received signal, which will make Δt different in subsequent data packets, theoretically affecting the 2πf in the formula f Therefore, the received signal cannot be used directly for sensing, and phase calibration of the received signal is required. Studies have shown that on a single commercial wireless network card, the RF oscillator locks the frequency when it starts. Therefore, the f between different antennas on the same network card is f In fact, they are the same value. Therefore, we can calculate the phase difference φ between the two antennas. f The following formula can be used:

[0083]

[0084] where Δφ f is the real phase difference, ε=Δt1-Δt2 (Δt1 and Δt2 are the time delays at antenna 1 and antenna 2, respectively). Δβ is the unknown constant phase difference offset, ΔZ f It's still measurement noise.

[0085] If the two receiving antennas are placed at a distance of about half a wavelength, ε represents the distance difference between the two antennas, which is Δd (approximately )The propagation time between antennas. ε can be roughly estimated as follows: Where λ is the wavelength, f is the center frequency, c is the speed of light, T is the sampling interval, which is generally 50ns in WiFi, and θ is the direction of arrival. When we choose a WiFi setup running at a frequency of 5GHz, according to the above formula, ε is approximately equal to zero. Therefore, the measured phase difference can be obtained for

[0086] The collected data is subjected to the above-mentioned automated data preprocessing and then subjected to model identification. The model identification process is as follows:

[0087] (1) Determine input data: Load and arrange the 4-dimensional data of WiFi signals, convert it into a time step sequence, and reduce it to 3-dimensional data. The data format is 2*2*30 (2 transmit and 2 receive, 30 subcarriers).

[0088] (2) LSTM model structure: A three-layer LSTM layer is used, which is set to output the state of the last time step. A fully connected layer and a softmax layer are added after the LSTM layer for classification prediction.

[0089] (3) Training options: The Adam optimizer was used for model training. The maximum number of iterations was set to 30, the mini-batch size was set to 8, and the accuracy of the validation set was monitored during the training process.

[0090] (4) Data division: The data is divided into a training set and a validation set, where 20% of the data is used to verify the performance of the model.

[0091] (1) Fall detection in an open environment: We placed WiFi transceivers on the left and right sides of the experimental environment, and the user moved normally in the detection area in the middle. The experimental environment is as shown in the figure. Figure 4 As shown in the experimental diagram (a) in FIG. 1 , the user continuously performs actions such as walking, jumping, squatting, and falling. The present invention performs fall detection based on the received continuous signals. Experiments show that the system can achieve a detection accuracy of 96.7%.

[0092] (2) Fall detection in the office: Similar to Experiment 1, we placed the WiFi transceiver devices on the left and right sides of the same room. The difference is that in Experiment 2, the user moves in a complex environment, and the reflected signals from the surrounding objects increase, making the detection environment more complex. Figure 4The results show that the average detection accuracy of the system in complex environments reaches 93.8%, which is because the complex detection environment affects the signal quality and thus affects the detection accuracy.

[0093] (3) Fall detection when the transceiver is not in the same room: We place the receiver in the room and the transmitter in the corridor. The user performs fall detection in the room or corridor, as shown in the figure. Figure 4 (c) Experimental diagram and Figure 4 As shown in the experimental figure (d).

[0094] During the training process, we evaluate the performance of the model by calculating indicators such as confusion matrix, false negative rate and accuracy. The experimental results show that the average detection accuracy of the system reaches 92.1% and the false negative rate is 2.56% when the transceiver is not in LOS.

Claims

1. A WiFi-based fall detection system, characterized in that: The WiFi-based fall detection system includes an automated signal acquisition module, a signal preprocessing module, and a fall detection module; The automatic signal acquisition module includes a WiFi receiver, a WiFi transmitter and a CSI Tool. The WiFi receiver and the WiFi transmitter are respectively set on both sides of the user activity area to be detected, and are used to send and receive signals. The CSITool can automatically send and receive continuous data to realize automatic signal acquisition. The signal preprocessing module includes a discrete wavelet transform unit, a phase calibration unit and a data splicing unit; The fall detection module includes a fall-like behavior classification unit and an LSTM-based fall detection unit.

2. A WiFi-based fall detection method is performed using the WiFi-based fall detection system of claim 1, characterized in that: Here are the steps: Step 1: Automated signal collection: Place the WiFi receiver and WiFi transmitter on both sides of the user activity area to be detected to send and receive signals; Set the transmission rate of the WiFi receiver to be much higher than the rate required for successful fall detection; Build the CSITool platform to process bash scripts, configure the Monitor mode in the bash script, and add timers to the receiving and sending ends of the Monitor mode to monitor the Netlink socket and record the received CSI signals to the specified output file, thereby realizing automated signal collection; Step 2: Automated signal format conversion: The signal data collected from the WiFi receiver and WiFi transmitter is a .dat file. First, use CSI Tool to convert the .dat file into a .txt file, and then use Matlab to convert it into a .npy file. Step 3: Signal preprocessing: (3.1) Signal difference: interpolation of the signal strength on the subcarriers received by the WiFi receiver; (3.2) The interpolated signal is filtered using discrete wavelet transform after parameter selection to eliminate in-band noise; (3.3) Phase calibration: Randomly distributed CSI measurement phase of subcarrier f of the WiFi signal after filtering and denoising It can be calculated as: Among them, φ f is the true phase, Δt is the time delay at the antenna, β is the unknown constant phase offset, Z f is the noise, f f is the carrier frequency offset at the receiving end; The phase difference between the two antennas is used instead of the CSI measurement phase The phase difference between the two antennas The following formula can be used: where Δφ f is the real phase difference, ε = Δt1-Δt2, Δt1 and Δt2 are the time delays at antenna 1 and antenna 2 respectively; Δβ is the unknown constant phase difference offset, ΔZ f is the measurement noise; When two receiving antennas are placed at a distance of half a wavelength, ε represents the propagation time between the two antennas with a distance difference of Δd. ε is estimated as follows: Where λ is the wavelength, f is the center frequency, c is the speed of light, T is the sampling interval, and θ is the direction of arrival. The value of T is set so that ε is approximately equal to zero, so the phase difference we measure is for: thus, The value of replaces the randomly distributed CSI measurement phase Phase calibration is achieved; therefore, the randomly distributed CSI measurement phase Calibration can be achieved by conducting phase differences on a pair of antennas; (3.4) Automatic splicing mechanism: collect a data packet at a certain interval. When detecting the fall-like behavior in step 4 (4.1), set the sliding window size to the size of two data packets. However, the sliding window will only move one data packet size in the next detection, thus realizing the automatic splicing mechanism. Step 4: Fall behavior recognition: (4.1) Classify the user's behavior into fall-like behavior, fall behavior, and other behaviors; The most significant feature that distinguishes falling behavior and quasi-falling behavior from other behaviors is that the slope of the amplitude and phase images of falling behavior and quasi-falling signals has a more obvious downward trend; in this way, falling behavior and quasi-falling behavior signals are separated from all behaviors; when the slope is greater than 8, it is set as falling behavior and quasi-falling behavior; (4.2) Extracting signal entropy and power drop ratio from CSI signals of falling behavior and quasi-falling behavior for activity classification; (A) The signal entropy H is calculated as: where k l and k u are the upper and lower limits of the frequency respectively; p(n i ) is the normalized power spectral density, in S(n,k) is the CSI signal; (B) The power reduction ratio is calculated as follows: in is the end time of the fall-like behavior, It's the moment one second before the end. is the moment one second after the end point; e t,f is the power intensity of a specific frequency f at a specific time t, ω f is the weight vector for each frequency f, f h represents the upper frequency limit, f l Indicates the lower frequency limit; (4.3) The two features of the clear falling behavior signal and the quasi-falling behavior signal are used together to form the input of the LSTM classifier, and the LSTM classifier is trained. During detection, the two features of the real-time user behavior signal data are input into the trained LSTM classifier to detect the falling behavior.

3. A WiFi-based fall detection method according to claim 2, characterized in that: Step (4.3) is as follows: For a certain time t, it is necessary to concatenate the signal entropy H and power reduction ratio PDR at different times obtained by analysis and calculation in (4.2) to obtain the signal feature x at time t. t =[H t ,PDR t ]; Furthermore, for a certain time period, we can obtain the coherent behavior sequence feature X=[x1,x2,…,x T ], where T is the number of slices of the calculated sequence; for each behavior sequence, it is divided into two categories: fall and quasi-fall according to the different representations of the behavior signal, that is, y(X)∈{0,1}, representing fall behavior and quasi-fall behavior respectively; then, the behavior sequence feature information is input into the LSTM network.

4. A WiFi-based fall detection method according to claim 2, characterized in that: The network structure of LSTM: (1) Cell state: This is the core part of LSTM and runs on the entire chain with only a small amount of linear interactions; (2) Gate: LSTM uses three gates to control the cell state; these three gates are: Forget gate: decides what information to discard from the cell state and reads the hidden state h of the previous moment t-1 and the current input x t , and then output a value between 0 and 1, which represents the cell state C at the last moment t-1 Which information in the data should be retained or discarded? Input gate: determines how much new information is added to the cell state; it reads h t-1 and x t , and then outputs two parts: one part is a value between 0 and 1, which is used to decide which information should be updated; the other part is a candidate value C t , represents the new information to be added to the cell state; Output gate: decides what to output based on the cell state; it reads h t-1 and x t , and then outputs a value between 0 and 1, which represents the cell state C t Which information in should be used as the output h at the current moment? t ; (3) Hidden state: It is the output of LSTM at each time step, contains the information of the current moment, and is used to calculate the LSTM unit at the next moment; Specific input process of LSTM: For each time slice, LSTM uses a gate mechanism to calculate the degree of retention of the previous moment information and the new information. The calculation formula is as follows; Forget gate: f t =σ(W f ·[h t-1 ,x t ]+b f ) Input gate: i t =σ(W i ·[h t-1 ,x t ]+b i ), Cell status update: Output gate: o t =σ(W o ·[h t-1 ,x t ]+b o ),h t =o t *tanh(C t ) Among them, σ is the sigmoid function, which is used to compress the value between 0 and 1; tanh is the hyperbolic tangent function, which can compress the value between -1 and 1; W f , W i , W C , W o and b f , b i , b C , b o are the parameters that need to be learned; represents the cell state of the input, Use the final output h t As the input of the final classification result, the softmax function is used to make it probabilistic. The formula is as follows: and pred =softmax(h t ) where y pred is the prediction result of the classifier. For this result, the following loss function is used for parameter training; Where N represents the number of samples, y i represents the true label of the i-th sample 0 or 1, p i Indicates the probability that the model predicts that the i-th sample is a positive class; In the testing phase, the sample sequence X to be tested is constructed in the same way test , input it into the LSTM classifier to obtain the classification score y(X test ), compare it with the threshold and get the final classification result.

Citation Information

Cited By

  • CSI human body tumble identification method in bathroom shower interference environment

    CN119939410A

  • Old people home safety monitoring and early warning system and method based on Internet of Things

    CN120726759A

  • An old person home safety monitoring and early warning system and method based on internet of things

    CN120726759B