Monitoring and early warning system and method for implicitly sensing home safety of old people
The subcarrier characteristics of Wi-Fi signal CSI are extracted through the LSTM+FCN model, and combined with the communication and sensing unit, embedded main control unit, cloud management and local early warning unit, non-intrusive monitoring and early warning for the elderly's home safety are realized, solving the problem Monitor blind spots and privacy security issues, improving recognition rate and response speed.
Patent Information
- Application Number
- CN202410762263.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology has problems such as monitoring blind spots, privacy and security issues, and insufficient battery life of smart wearable devices in the home safety monitoring of the elderly, making it impossible to achieve 24-hour full-time monitoring.
The LSTM+FCN model is used to extract the subcarrier characteristics of Wi-Fi signal CSI, and through the combined system of communication and sensing unit, embedded main control unit, cloud management and local early warning unit, non-intrusive and implicit home safety monitoring for the elderly is realized. and early warning.
It improves the recognition rate of the elderly's home activities, ensures privacy and security, avoids the limitations of wearable devices, and can quickly issue alarms when the elderly are in danger to ensure timely rescue.
Smart Images

Figure BDA0004891409110000031 
Figure BDA0004891409110000041 
Figure BDA0004891409110000052
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of home safety monitoring, and in particular relates to a monitoring early warning system and method for implicitly sensing the home safety of the elderly. Background Art
[0002] With the continuous advancement of medical technology, people's living standards have gradually improved, and the average life expectancy of human beings has increased year by year. The number of elderly people and the proportion of the population in countries around the world are increasing, and this trend will be further strengthened in the future. The increase in the elderly population will have a huge impact on social economy, medical care, and elderly care services, and corresponding policies and technical measures need to be taken to deal with it. Among them, the issue of home safety for the elderly is particularly important, especially the family care safety of empty-nest elderly people living alone, which has become an urgent need for children, guardians, and communities, and has also become a major social issue that has attracted widespread attention.
[0003] There are two main methods for safety monitoring and early warning of empty-nest elderly people. One is to use visual home monitoring equipment, install smart cameras indoors, capture images, and obtain real-time information about the elderly's home activities. When abnormal situations are found, alarm information is promptly sent through mobile phone APPs and other terminals to notify family members or medical institutions for rescue. The other is to use smart wearable devices. The elderly wear wearable devices such as smart bracelets. When encountering an emergency, the smart wearable devices can send out early warning signals. Family members and medical institutions can obtain early warning information through the terminal and provide timely rescue. However, smart cameras always have monitoring blind spots, and the indoor ambient light will affect the system monitoring performance. At the same time, video images will also involve privacy and security issues; although smart wearable devices do not interfere with the privacy of the elderly, wearable smart devices have battery life problems and cannot achieve 24-hour full-time monitoring. At the same time, they cannot be worn in some special occasions, such as showering, and the bathroom is a high-risk area for the elderly to fall. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the purpose of the present invention is to provide a monitoring and early warning system and method for implicitly sensing the safety of the elderly at home. The system uses a safe and privacy-rich Wi-Fi signal to achieve safety monitoring and early warning of the elderly's home activities. This method is different from the currently commonly used time domain method. The LSTM (Long Short-Term Memory) + FCN (Fully Convolutional Neural Network) model is used to extract the subcarrier features of CSI (channel state information), thereby improving the recognition rate of the elderly's home activities. The LSTM + FCN model combines the long-term memory ability of the recurrent neural network LSTM and the spatial information extraction ability of the fully convolutional neural network FCN to extract the information hidden in the Wi-Fi signal CSI that is strongly associated with human activities, thereby achieving non-invasive, implicit monitoring and early warning for elderly people living alone or in empty nests.
[0005] To achieve the above-mentioned purpose, the present invention provides a monitoring and early warning system for implicitly sensing the safety of the elderly at home, and the monitoring and early warning system includes: a communication and perception unit, an embedded main control unit, a management and monitoring center in the cloud, and a local early warning unit. The communication and perception unit and the embedded main control unit are respectively arranged on both sides of the monitoring space to ensure that the Wi-Fi signal covers the entire monitoring space; the local early warning unit is installed inside or outside the monitoring space; the management and monitoring center is a remote control system; first, the CSI data of the elderly's activities are collected and a data set is prepared; then, the constructed LSTM+FCN model is trained and the optimized model is loaded into the embedded main control unit; finally, the system is arranged in the monitored space; wherein, the communication and perception unit radiates Wi-Fi signals to the surrounding space, when the elderly are active in the monitoring space, the embedded main control unit continuously collects and processes CSI data, identifies the activity status of the elderly and transmits data to the management and monitoring center in the cloud, the management and monitoring center in the cloud displays the activity status of the elderly in real time, collects and stores relevant information, when the elderly have abnormal activities, the embedded main control unit sends out an alarm message, at the same time, the management and monitoring center makes a telephone, text message and other alarms, and the local early warning unit sends out a photoelectric alarm signal and a sound alarm signal.
[0006] Preferably, the communication and perception unit adopts a commercial multi-antenna router that meets the IEEE 802.11n wireless protocol. The router supports both 2.4GHz and 5GHz frequency bands and sends 5GHz Wi-Fi signals to the monitoring space as a perception source of the monitoring warning system.
[0007] Preferably, the embedded main control unit includes a signal receiving module and a signal processing module; the signal receiving module adopts a wireless network card that supports multiple security protocols and encryption algorithms, and is used to receive Wi-Fi signals covered in the monitoring space and collect CSI data; the signal processing module is used to process and analyze the collected CSI data: the optimized LSTM+FCN model extracts CSI subcarrier features.
[0008] Preferably, the cloud management and monitoring center uses cloud web pages and applications to remotely display the activity status of the elderly in real time, and realize the functions of remote alarm and control of the local embedded main control unit.
[0009] Preferably, the local early warning unit includes a flashing light alarm and a sound alarm, which are used to send alarm signals to the guardian and surrounding personnel.
[0010] The present invention provides a monitoring and early warning method for implicitly sensing the safety of the elderly at home based on the above system, and the method comprises the following steps:
[0011] Step 1: Layout the system:
[0012] Communication and perception units, embedded main control units, management and monitoring centers, and local early warning units are arranged in the monitored environment space.
[0013] Step 2: The communication and perception unit sends a Wi-Fi signal to the monitoring space; the embedded main control unit starts to collect CSI data of the Wi-Fi signal in the monitoring space for preprocessing, and uploads the preprocessed CSI data to the monitoring and management center through the communication and perception unit; the embedded main control unit transmits the obtained activity status of the elderly to the management and monitoring center:
[0014] Step 2.1: Collect CSI data of Wi-Fi signals of daily activities of the elderly in the monitoring space where the system is installed. Specifically, while the elderly are active, the signal receiving module receives the Wi-Fi signal and packages the collected CSI into a data packet stream based on time. The data packet contains key information such as signal-to-noise ratio, signal strength, and number of antennas.
[0015] Among them, when the elderly move between the communication and perception unit and the embedded main control unit, the Wi-Fi signal is reflected through multiple paths through the human body, walls, and indoor furniture to reach the receiving end of the embedded main control unit. In this process, the impact of the elderly's activities on the wireless channel is recorded in the CSI data.
[0016] Step 2.2: The propagation process of Wi-Fi signal can be defined in the frequency domain as:
[0017] Y(f,t)=H(f,t)×X(f,t)+N,
[0018] Where N is the noise interference in the channel, Y(f, t) is the Wi-Fi signal received by the embedded main control unit, f is the frequency, t is the time, X(f, t) is the Wi-Fi signal sent by the communication and perception unit, and H(f, t) is the channel state information matrix, i.e., CSI. The channel state information matrix is expressed as:
[0019]
[0020] In short:
[0021] H(f,t)=[H1,H2,H3,…,H k ] T ,
[0022] Among them, a k (f, t) represents the amplitude change of the WIFI signal during the propagation process, e -j2πΔft represents the phase offset between subcarriers, represents the phase shift of the signal during propagation, Δf represents the frequency shift during propagation, τ k It represents the delay from the signal transmitter to the receiver, and k is the number of subcarriers in the CSI.
[0023] Wi-Fi technology combines multiple-input multiple-output (MIMO) technology and orthogonal frequency division multiplexing (OFDM) technology efficiently. In a MIMO system, there are N transmitting antennas. t , receiving antenna N r There are N t ×N r channels; the matrix dimension of CSI data is N t ×N r ×k.
[0024] Step 2.3: Perform principal component analysis (PCA) processing on the CSI data of the Wi-Fi signal collected in the above step to reduce interference factors such as multipath effect. The processing steps are as follows:
[0025] Step 2.3.1: Let the time stream CSI matrix be W, the dimension of W is T×N t ×N r ×K, where T is the time length, and the dimension of the matrix Z obtained by averaging W is N t ×N r ×k, expand the matrix Z T times to make its dimension T×N t ×N r ×K, denoted as the average data flow matrix EVA, the difference matrix obtained by subtracting the matrix W from the average data flow matrix EVA is denoted as the matrix H;
[0026] Step 2.3.2: Get the covariance matrix R = H of the matrix H T ×H, and perform eigendecomposition on the covariance matrix R to obtain the eigenvalue q n {n=1,2,…n} and the corresponding eigenvector Q n {n=1,2,…n};
[0027] Step 2.3.3: Sort the eigenvalues and put the largest eigenvalue max{q n The corresponding eigenvector is recorded as Q, and the reconstructed CSI data matrix after denoising is recorded as S = W × (Q × Q T )+EVA;
[0028] Step 2.4: Use the sliding window algorithm to segment the CSI data obtained after processing in step 2.3 into data segments of different activities and static states of the elderly, and extract the segments containing the elderly's activity information in the data time series and classify them. The specific steps are as follows:
[0029] Step 2.4.1: Use a sliding window with a time length of 1 second to split the data, and the sliding step is 0.2s;
[0030] Step 2.4.2: When the proportion of activity information in a data segment exceeds 60%, it is considered as valid activity data, otherwise it is considered as static data.
[0031] Step 2.5: All the data segmented in step 2.4 are stratified according to seven action types: lying down, falling, picking up, running, sitting down, standing up, and walking. All the data of each action type are randomly divided into two data sets in the ratio of m:n, where m>n.
[0032] Step 2.6: Take the m / (m+n) portion in step 2.5 as the training data set, and take the n / (m+n) portion as the validation data set.
[0033] Step 2.7: The LSTM+FCN model includes two submodules: LSTM and FCN. The LSTM submodule consists of multiple LSTM units, each of which consists of a selection gate, an input gate, and an output gate; the FCN submodule consists of a one-dimensional convolution layer, an average pooling layer, a Relu activation function, and a global pooling layer. The steps for building and training the model are as follows:
[0034] Step 2.7.1: Construct an LSTM submodule. Traditional feature extraction methods use LSTM to extract features that change over time in data, while spatial features can better represent changes in signals caused by human activities during propagation. The multiple subcarriers in the CSI data contain the amplitude and phase changes of the signal in multiple propagation paths. The subcarrier information of the CSI data is used as the input of the LSTM to extract the subcarrier correlation information of the elderly's activities in the CSI data. The dimension of the CSI data segment is t×N. t ×N r ×K, where the time length of t is 1 second; the subcarrier dimension is used as the input dimension in the LSTM module, and the long-term memory characteristics of LSTM are used to extract the characteristics of human activities between subcarriers;
[0035] The LSTM submodule is composed of multiple LSTM units. In the LSTM unit, the input gate will determine some key information of the subcarrier input to the LSTM unit, the forget gate chooses to forget the invalid subcarrier information input previously, and the output gate outputs the hidden state information of the current subcarrier, that is, the inter-subcarrier feature of the CSI data; the output I of the input gate of the LSTM represented by the subcarrier input k , the output F of the forget gate k , the output of the output gate is 0 k It is expressed as:
[0036] I k =σ(X k W xi +H k-1 W hi +b i )
[0037] F k =σ(X k W xf +H k-1 W hf +b f )
[0038] 0 k =σ(X k W xo +H k-1 W ho +b o )
[0039] Where σ represents the sigmoid function, W and b represent the weight and bias of the triple gate respectively, and X k Indicates the subcarrier information currently input, k is the number of subcarriers. k-1 is the hidden state of the previous subcarrier information, and the memory state and hidden state of the LSTM unit are expressed as:
[0040]
[0041] H k =O k ⊙tanh(C k )
[0042] ⊙ represents element-by-element multiplication, represents the output of the temporary memory candidate unit, C k Represents the memory state of the current subcarrier information of the CSI data, including the dependency characteristics between multiple subcarriers; LSTM outputs the hidden state information H of the current subcarrier k , used in the FCN model to further extract hidden features;
[0043] Step 2.7.2: Construct the FCN submodule to perform subcarrier convolution on the subcarrier features of the CSI data output by the LSTM submodule to extract the local spatial dependency features in the CSI data and the potential spatial information between multiple carriers. The FCN model shown can be expressed as:
[0044]
[0045] Among them, for the i-th channel output vector of the l-th layer The input vector from the previous layer Indicates that the FCN input vector is the hidden state information output by the LSTM in step 2.7.1. Represents the convolution kernel vector of each layer, and F represents the number of feature channels; represents the bias, l∈{1,…,L} represents the number of convolutional layers, and d represents the convolution kernel size. represents the convolution of the output features of the previous convolutional layer, and f(·) represents the linear rectification function (ReLU, Rectified Linear Unit) of each subcarrier k.
[0046] The FCN sub-model includes three convolutional layers, the number of channels F are 128, 256, and 128 respectively, and the convolution kernel sizes d are 9, 5, and 3 respectively. After each convolutional layer, an average pooling layer (BN, Batch Norm) is used to accelerate the convergence speed of the model, and the Relu activation function adds nonlinear factors to improve the model's ability to express the subcarrier characteristics of CSI data. At the end of the FCN sub-model, a global pooling layer is used to reduce the dimension of the extracted CSI data subcarrier features to obtain the CSI data subcarrier feature vector associated with the elderly's activities extracted by LSTM+FCN, which is used as the basis for judging the mapping relationship between the elderly's activities and the CSI data.
[0047] Step 2.7.3: Use the training data set in step 2.5 to train the LSTM+FCN model. Input the CSI subcarrier feature vector output in step 2.7.2 into the softmax classification module to obtain the classification results of the elderly activities. The softmax function is expressed as:
[0048]
[0049] For the feature vector extracted by the LSTM+FCN model, the softmax function can compress it into a real vector with a length of F, a value in the range of [0,1], and the sum of the elements in the vector is 1. The vector value is the probability of the elderly activity type corresponding to the CSI data.
[0050] Step 2.7.4: During the training process, the LSTM+FCN model automatically adjusts the convolution parameters and feature vectors in the model according to the classification results of step 2.7.3; and finally learns the activity features of the elderly in the subcarriers of the CSI data.
[0051] Step 2.7.5: Use the validation data set segmented in step 2.6 to verify the actual classification perception performance of the LSTM+FCN model, adjust the structural parameters of the model according to each indicator, and obtain the optimized LSTM+FCN model. Use indicators such as accuracy, recall, precision, and F1-score to evaluate the performance of the system. The calculation formula for each indicator is:
[0052]
[0053] TP, TN, FP, and FN refer to the true positive rate, true negative rate, false positive rate, and false negative rate, respectively. TP is the number of positive samples predicted as positive (i.e., correct), TN is the number of negative samples predicted as negative (i.e., wrong), FP is the number of negative samples predicted as positive, and FN is the number of positive samples predicted as negative. The closer the value of each indicator is to 1, the better the robustness and accuracy of the LSTM+FCN model. If the value of each indicator does not reach 0.95, repeat steps 2.7.1-2.7.5 until the value of each indicator is not less than 0.95, the model training is completed, and the trained LSTM+FCN model is the optimized LSTM+FCN model.
[0054] Step 2.8: Load the optimized LSTM+FCN model obtained in step 2.7 into the embedded main control unit, extract the subcarrier information of the elderly's activities, process and analyze the data, and output the elderly's activity status to the monitoring and management center.
[0055] Step 3: Monitoring warning:
[0056] If the embedded main control unit determines that the elderly person's behavior is a fall or other activity, it will send out an alarm message and quickly send an alarm to family members, guardians and medical staff through the monitoring and management center by SMS, phone and WeChat, and send an alarm signal to the local early warning unit at the same time. After receiving the alarm signal, the sound alarm of the local early warning unit will continue to sound the alarm and the light flash alarm will flash a strong light to ask for help from the surrounding people until the guardian remotely or locally controls or shuts down the alarm system to fully protect the life safety of the elderly.
[0057] Compared with the prior art, the advantages and beneficial effects of the present invention are as follows:
[0058] 1. The present invention discloses an implicit monitoring and early warning system for sensing the safety of the elderly at home. In the system, the communication and sensing unit uses a common commercial multi-antenna router to transmit Wi-Fi signals, and the embedded main control unit passively senses and processes the signals. The elderly do not need to wear any equipment, and there is no risk of image privacy exposure, which avoids the limiting factors of wearable devices and the elderly's resistance to intrusive monitoring devices such as cameras. The system uses a cloud server for remote monitoring and cloud alarms, and the local early warning unit is equipped with a flashing light alarm and a sound alarm. When the elderly are in danger, it can ensure that the guardian and the surrounding personnel can get warning information to the greatest extent, and grasp the golden time for rescue. The system not only has the characteristics of strong privacy, easy deployment, fast response speed, but also has high accuracy and good robustness, which can well solve the safety monitoring and early warning problems of elderly people living alone.
[0059] 2. The implicitly perceived monitoring and early warning method for elderly people's home safety provided by the present invention adopts Wi-Fi signals as the perception source. Considering that the CSI of the Wi-Fi signal contains the temporal and spatial information of the elderly's activities and has good perception ability, the long-term memory characteristics of the LSTM network in deep learning and the powerful spatial information extraction ability of the FCN network are combined to extract the subcarrier features in the Wi-Fi signal data; the problem of difficulty in extracting features and low recognition rate of the monitoring system is solved, and the robustness of the system is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A simplified diagram of the early warning system and method for home safety monitoring of the elderly that implicitly senses home safety of the present invention;
[0061] Figure 2 This is the waveform diagram of the first subcarrier in the Wi-Fi signal that contains the elderly’s walking activity information;
[0062] Figure 3 The waveform diagram of the first subcarrier in the Wi-Fi signal that contains the elderly person’s squatting activity information;
[0063] Figure 4This is a multi-carrier visualization of a channel of CSI data in the Wi-Fi signal containing the elderly person’s running information;
[0064] Figure 5 It is CSI data decomposed into 6 feature channels;
[0065] Figure 6 is the original CSI data;
[0066] Figure 7 CSI data denoised by PCA method;
[0067] Figure 8 The LSTM+FCN network model structure constructed for the present invention;
[0068] Fig. 9 This is the curve showing how the accuracy of the training set and validation set changes with the number of training rounds during training.
[0069] Fig.10 This is the operation flow chart of the monitoring and early warning system. DETAILED DESCRIPTION
[0070] To make the purpose, technical solution and advantages of the present invention more clear, the following is a further detailed description with reference to the accompanying drawings and embodiments:
[0071] Example 1
[0072] like Figure 1 As shown, an implicitly perceived elderly home safety monitoring and early warning system of this embodiment includes: a communication and perception unit, an embedded main control unit, a monitoring and management center, and a local early warning unit; in this embodiment, the communication and perception unit selects a commercial router, and the router supports the 5GHz frequency band; the embedded main control unit is a small computer with a Wi-Fi wireless network card installed, including a data acquisition module and a data processing module. The data acquisition module uses an Intel-5300 wireless network card and a matching wireless network driver to receive Wi-Fi signals and collect CSI data in the WI-FI signal. The output end of the module is connected to the input end of the data processing module. The data processing module is a small computer for processing and analyzing data; the communication and perception unit and the embedded main control unit are respectively arranged on both sides of the monitoring space to ensure that the Wi-Fi signal covers the entire space; the management and monitoring center uses cloud web pages and applications to remotely display and store the activity status of the elderly in real time, remotely alarm, and control the embedded main control unit; the local early warning unit includes a flashing alarm and a sound alarm to send an alarm signal to the guardian and the surrounding personnel. The local early warning unit is arranged outside the monitoring space to send an alarm to the guardian and the surrounding personnel.
[0073] The monitoring and early warning system of this embodiment uses Wi-Fi signals to achieve implicit safety monitoring and danger warning for elderly people living alone or in empty nests, and uses the PCA method to denoise and enhance the data; the data processing module uses the LSTM+FCN model to extract the characteristics of human activities between subcarriers and obtains the activity status of the elderly through mapping relationships, and finally transmits it to the monitoring and management center.
[0074] Example 2
[0075] The following will describe in detail the monitoring and early warning method for implicitly sensing the safety of the elderly at home in conjunction with the accompanying drawings. The specific steps are as follows:
[0076] Step 1: Layout the system:
[0077] According to the design requirements, communication and perception units, embedded main control units, cloud-based management and monitoring centers, and local early warning units are arranged in the monitored environment space.
[0078] Step 2: The communication and perception unit sends a Wi-Fi signal to the monitoring space; the embedded main control unit starts to collect CSI data of the Wi-Fi signal in the monitoring space for preprocessing, and uploads the preprocessed CSI data to the monitoring and management center through the communication and perception unit; the embedded main control unit transmits the obtained activity status of the elderly to the management and monitoring center:
[0079] 2.1. Collect CSI data of Wi-Fi signals when the elderly are performing daily activities in the monitoring space where the monitoring and early warning system is installed. In this embodiment, the monitoring space for collecting CSI data in Wi-Fi signals is a daily indoor environment, and a commercial router TP-LINK 300M router is used as the communication and perception unit of the monitoring and early warning system. While the elderly are active in the monitoring space, the signal receiving module captures the Wi-Fi signal and packages the CSI data in the collected Wi-Fi signal into a data packet stream based on time. The data packet contains data information such as signal-to-noise ratio, signal strength, and number of antennas.
[0080] In this example, the elderly's daily activities include the following seven actions: lying down, falling, picking up, running, sitting down, standing up, and walking. When the elderly move between the communication and perception unit and the embedded main control unit, the Wi-Fi signal is reflected by the human body, walls, and indoor furniture through multiple paths to reach the receiving end of the embedded main control unit. In this process, the impact of the elderly's activities on the wireless channel is recorded in the CSI data.
[0081] 2.2. The propagation process of Wi-Fi signals can be defined in the frequency domain as:
[0082] Y(f,t)=H(f,t)×X(f,t)+N,
[0083] Where N is the noise interference in the channel, Y(f, t) is the Wi-Fi signal received by the embedded main control unit, f is the frequency, t is the time, X(f, t) is the Wi-Fi signal sent by the communication and perception unit, and H(f, t) is the channel state information matrix, i.e., CSI. The channel state information matrix is expressed as:
[0084]
[0085] In short:
[0086] H(f,t)=[H1,H2,H3,…,H k ] T ,
[0087] Among them, a k (f, t) represents the amplitude change of the WIFI signal during the propagation process, e -j2πΔft represents the phase offset between subcarriers, represents the phase shift of the signal during propagation, Δf represents the frequency shift during propagation, τ k It represents the delay from the signal transmitter to the receiver, and k is the number of subcarriers in the CSI.
[0088] The Multiple Input Multiple Output (MIMO) technology and Orthogonal Frequency Division Multiplexing (OFDM) technology are combined. In the MIMO system, there are multiple transmitting antennas N t , multiple receiving antennas N r , with multiple channels; the CSI data matrix dimension is N t ×N r ×k. In this example, the Wi-Fi device uses one transmitting antenna and three receiving antennas, which can provide 30 subcarrier information. t =1, N r =3, K=30.
[0089] When the elderly move between the communication and perception unit and the embedded main control unit, the Wi-Fi signal is reflected by objects such as the human body, walls, and indoor furniture through multiple paths to reach the receiving end. During the propagation process, the impact of the elderly's activities on the propagation channel is recorded in the CSI data. Figure 2 and attached Figure 3 The waveform diagrams of the first subcarrier in the CSI data contain the walking activity information and squatting activity information of the elderly. It can be seen that when the elderly perform different activities, the Wi-Fi signal will also have different characteristics. Figure 4 This is a multi-carrier visualization of a channel of CSI data in the Wi-Fi signal containing information about an elderly person running.
[0090] 2.3. Perform PCA principal component analysis on the CSI data of the Wi-Fi signal collected in the above steps to reduce interference factors such as multipath effect. The processing steps are as follows:
[0091] 2.3.1. Use the Hample filter to remove the sudden outliers in the CSI data. Then, the time stream CSI matrix is recorded as W, and the dimension of W is T×N. t ×N r ×K, where T is the time length, and the dimension of the matrix Z obtained by time averaging H is N t ×N r ×k, expand the matrix Z T times to make its dimension T×N t ×N r ×K, denoted as the average data flow matrix EVA, the difference matrix obtained by subtracting the matrix H from the average data flow matrix EVA is denoted as matrix H;
[0092] 2.3.2. Obtain the covariance matrix R = H of the matrix H T ×H, and perform eigendecomposition on the covariance matrix R to obtain the eigenvalue q n {n=1,2,…n} and the corresponding eigenvector Q n {n=1,2,…n};
[0093] 2.3.3. Sort the eigenvalues and put the maximum eigenvalue max{q n The corresponding eigenvector is recorded as Q, and the reconstructed CSI data matrix after denoising is recorded as S = W × (Q × Q T )+EVA.
[0094] In this embodiment, the CSI data in the Wi-Fi signal is decomposed into 6 feature channels, and the corresponding feature vector is q n {n = 1, 2, 3, 4, 5, 6}; Figure 5 Shown is CSI data decomposed into 6 feature channels, and the activity type is running.
[0095] The eigenvector q1 corresponding to the maximum eigenvalue mainly contains the information of human activities, and the other eigenvectors q2, q3, q4, q5, and q6 contain a lot of noise information. Therefore, the eigenvector q1 is reconstructed into denoised data to minimize the interference of noise and enhance the characteristics of the elderly's activities. The original data and the data denoised by PCA are shown in Figure 2. Figure 6 and Figure 7 shown.
[0096] 2.4. Use the sliding window algorithm to segment the CSI data obtained after processing in 2.3 into data segments of different activities and static states of the elderly, and extract the segments containing the elderly's activity information in the data time series and classify them. The specific steps are as follows:
[0097] 2.4.1. Use a sliding window with a time length of 1 second to split the data, and the sliding step is 0.2s;
[0098] 2.4.2. When the proportion of activity information in a data segment exceeds 60%, it is considered valid activity data, otherwise it is considered static data.
[0099] In this embodiment, since the packet transmission frequency of the communication and perception unit is 1000 Hz, the actual number of sampling points of the sliding window is 1000 points, and the sliding step size is 200 points;
[0100] When the proportion of activity information in a data segment exceeds 60%, it is regarded as valid activity data, otherwise it is regarded as static data.
[0101] 2.5. All the data segmented in 2.4 are stratified according to seven action types: lying down, falling, picking up, running, sitting down, standing up, and walking. All the data of each action type are randomly divided into two data sets in the ratio of m:n, where m>n.
[0102] In this example, m=0.7 and n=0.3.
[0103] 2.6. Take the m / (m+n) part in 2.5 as the training data set, and take the n / (m+n) part as the validation data set.
[0104] The number of samples for each activity of the elderly is shown in Table 1.
[0105] Table 1 Seven actions in the daily activities of the elderly involved in this embodiment and their sample numbers
[0106] Lie down fall Pick up running sit down Standing walk Total Number of samples 1321 890 993 2415 812 606 2932 9969
[0107] 2.7. The LSTM+FCN model includes two submodules: LSTM and FCN. The LSTM submodule consists of multiple LSTM units, each of which consists of a selection gate, an input gate, and an output gate; the FCN submodule consists of a one-dimensional convolutional layer, an average pooling layer, a Relu activation function, and a global pooling layer. The steps for building and training the model are as follows:
[0108] 2.7.1. Construct LSTM submodule. Traditional feature extraction methods use LSTM to extract features that change over time in data, while spatial features can better represent changes in signals caused by human activities during propagation. The multiple subcarriers in the CSI data contain the amplitude and phase changes of the signal in multiple propagation paths. The subcarrier information of the CSI data is used as the input of the LSTM to extract the subcarrier correlation information of the elderly's activities in the CSI data. The dimension of the CSI data segment is t×N. t ×N r ×K, where the time length of t is 1 second; the subcarrier dimension is used as the input dimension in the LSTM module, and the long-term memory characteristics of LSTM are used to extract the characteristics of human activities between subcarriers;
[0109] The LSTM submodule is composed of multiple LSTM units. In the LSTM unit, the input gate will determine some key information of the subcarrier input to the LSTM unit, the forget gate chooses to forget the invalid subcarrier information input previously, and the output gate outputs the hidden state information of the current subcarrier, that is, the inter-subcarrier feature of the CSI data; the output I of the input gate of the LSTM represented by the subcarrier input k , the output F of the forget gate k , the output of the output gate is 0 k It is expressed as:
[0110] I k =σ(X k W xi +H k-1 W hi +b i )
[0111] F k =σ(X k W xf +H k-1 W hf +b f )
[0112] 0 k =σ(X k W xo +H k-1 W ho +b o )
[0113] Where σ represents the sigmoid function, W and b represent the weight and bias of the triple gate respectively, and X k Indicates the subcarrier information currently input, k is the number of subcarriers. k-1 is the hidden state of the previous subcarrier information, and the memory state and hidden state of the LSTM unit are expressed as:
[0114]
[0115] H k =O k ⊙tanh(C k )
[0116] Among them, ⊙ represents element-by-element multiplication, represents the output of the temporary memory candidate unit, C k Represents the memory state of the current subcarrier information of the CSI data, including the dependency characteristics between multiple subcarriers; LSTM outputs the hidden state information H of the current subcarrier k , used in the FCN model to further extract hidden features;
[0117] In this embodiment, the dimension of the CSI data is 1000×1×3×30. t ×N r ×K dimensions are used as the subcarrier feature dimensions of the LSTM submodule. Therefore, the dimensions of the Wi-Fi signal sequence fragments input to the LSTM module are reorganized into 1000×90; the number of LSTM units is 256, H k The dimensions are 90×256.
[0118] 2.7.2. Construct the FCN submodule to perform subcarrier convolution on the subcarrier features of the CSI data output by the LSTM submodule, and extract the local spatial dependency features in the CSI data and the potential spatial information between multiple carriers. The FCN model shown can be expressed as:
[0119]
[0120] Among them, for the i-th channel output vector of the l-th layer The input vector from the previous layer Indicates that the FCN input vector is the hidden state information output by the LSTM in 2.7.1. Represents the convolution kernel vector of each layer, and F represents the number of feature channels; represents the bias, l∈{1,…,L} represents the number of convolutional layers, and d represents the convolution kernel size. represents the convolution operation on the output features of the previous convolutional layer, and f(·) represents the linear rectification function (ReLU, Rectified Linear Unit) of each subcarrier k.
[0121] The FCN sub-model includes three convolutional layers, the number of channels F are 128, 256, and 128 respectively, and the convolution kernel sizes d are 9, 5, and 3 respectively. After each convolutional layer, an average pooling layer (BN, Batch Norm) is used to accelerate the convergence speed of the model, and the Relu activation function is used to add nonlinear factors to improve the model's ability to express the subcarrier characteristics of CSI data. At the end of the FCN sub-model, a global pooling layer is used to reduce the dimension of the extracted CSI data subcarrier features to obtain the CSI data subcarrier feature vector associated with the elderly's activities extracted by LSTM+FCN, which is used as the basis for judging the mapping relationship between the elderly's activities and the CSI data. Figure 8 It is the LSTM+FCN model structure.
[0122] 2.7.3. Use the training data set in 2.5 to train the LSTM+FCN model. Input the CSI subcarrier feature vector output by 2.7.2 into the softmax classification module to obtain the classification results of the elderly activities. The softmax function is expressed as:
[0123]
[0124] For the feature vector extracted by the LSTM+FCN model, the softmax function can compress it into a real vector with a length of F, a value in the range of [0,1], and the sum of the elements in the vector is 1. The vector value is the probability of the elderly activity type corresponding to the CSI data.
[0125] 2.7.4. During the training process, the LSTM+FCN model automatically adjusts the convolution parameters and feature vectors in the model according to the classification results of 2.7.3; and finally learns the activity characteristics of the elderly in the subcarriers of the CSI data.
[0126] 2.7.5. Use the validation data set segmented in 2.6 to verify the actual classification perception performance of the LSTM+FCN model, adjust the structural parameters of the model according to each indicator, and obtain the optimized LSTM+FCN model. Use indicators such as accuracy, recall, precision, and F1-score to evaluate the performance of the system. The calculation formula for each indicator is:
[0127]
[0128] Among them, TP, TN, FP and FN refer to the true positive rate, true negative rate, false positive rate and false negative rate respectively. TP is the number of positive samples predicted as positive, TN is the number of negative samples predicted as negative, FP is the number of negative samples predicted as positive, and FN is the number of positive samples predicted as negative. The closer the value of each indicator is to 1, the better the robustness of the model and the higher the accuracy.
[0129] Fig. 9 The curve diagram of the training set and validation set accuracy changing with the number of training epochs during the training process of the LSTM+FCN model is shown in Figure 2. The two curves have the same trend and converge, indicating that the model training is effective. In this embodiment, the confusion matrix is used to represent the recognition accuracy and misjudgment probability of 7 elderly activities. Table 2 is the confusion matrix generated after the optimized LSTM+FCN model is verified using the validation set data. After optimization, the accuracy of the model reaches 99.83%, which has good robustness and high precision.
[0130] Table 2 Confusion matrix generated after the optimization of the LSTM+FCN spatiotemporal network model using the validation set data
[0131] Lie down fall Pick up running sit down Standing walk Lie down 1 0 0 0 0 0 0 fall 0 1 0 0 0 0 0 Pick up 0 0 0.9966 0 0.0034 0 0 running 0 0 0 1 0 0 0 Lower left 0 0 0 0 0.9959 0.0041 0 Standing 0 0 0 0 0 1 0 walk 0 0 0 0 0 0 1
[0132] 2.8. The optimized LSTM+FCN model obtained in 2.7 is loaded into the embedded main control unit, extracts the subcarrier information of the elderly's activities, processes and analyzes the data, and outputs the elderly's activity status to the monitoring and management center.
[0133] Step 3: Monitoring warning:
[0134] If the embedded main control unit determines that the elderly person's behavior is a fall or other activity, it will issue an alarm message and transmit it to the management and monitoring center. The monitoring and management center will quickly send an alarm to family members, guardians and medical staff through the cloud server by text message, phone call and WeChat, and send an alarm signal to the local early warning unit at the same time. After receiving the alarm signal, the local early warning unit's sound alarm will continue to sound the alarm and the light alarm will flash a strong light to ask for help from people around until the guardian remotely or locally controls the alarm system to protect the life of the elderly. Fig.10 The present invention is a monitoring alarm flow chart of the monitoring early warning system.
[0135] The above is only an embodiment of the present invention, and the common knowledge such as the specific structure and characteristics of the scheme is not described in detail. It should be pointed out that for those skilled in the art, several modifications and improvements can be made without departing from the structure of the present invention, which should also be regarded as the protection scope of the present invention.
Claims
1. A monitoring and early warning system for implicitly sensing the safety of the elderly at home, the monitoring and early warning system comprising: Communication and perception unit, embedded main control unit, cloud-based management and monitoring center, local early warning unit; The communication and perception unit and the embedded main control unit are arranged on both sides of the monitoring space to ensure that the Wi-Fi signal covers the entire monitoring space; the local early warning unit is installed inside or outside the monitoring space; the management and monitoring center is a remote control system; first, the CSI data of the elderly's activities is collected and a data set is made; then, the constructed LSTM+FCN model is trained and the optimized model is loaded into the embedded main control unit; finally, the system is arranged in the monitored space; wherein, the communication and perception unit radiates Wi-Fi signals to the surrounding space, when the elderly are active in the monitoring space, the embedded main control unit continuously collects and processes CSI data, identifies the elderly's activity status and transmits data to the cloud-based management and monitoring center, which displays the elderly's activity status in real time, collects and stores relevant information, when the elderly show abnormal activities, the embedded main control unit sends out an alarm message, at the same time, the management and monitoring center sends out alarms such as phone calls and text messages, and the local early warning unit sends out photoelectric alarm signals and sound alarm signals; The communication and perception unit uses a commercial multi-antenna router that meets the IEEE 802.11n wireless protocol. The router supports both 2.4GHz and 5GHz frequency bands and sends 2.4GHz or 5GHz Wi-Fi signals to the monitoring space as a perception source for the monitoring warning system. The embedded main control unit includes a signal receiving module and a signal processing module; the signal receiving module is: a wireless network card that supports multiple security protocols and encryption algorithms, and is used to receive Wi-Fi signals covered in the monitoring space and collect CSI data; The signal processing module is used to process and analyze the collected CSI data: the optimized LSTM+FCN model extracts CSI subcarrier features; The cloud management and monitoring center adopts cloud web pages and applications to remotely display the activity status of the elderly in real time, realize remote alarm and control the local embedded main control unit.
2. The monitoring and early warning system according to claim 1, characterized in that: The local early warning unit includes a flashing light alarm and a sound alarm, which are used to send alarm signals to the guardian and surrounding personnel.
3. A monitoring and early warning method for implicitly sensing the safety of the elderly at home, the monitoring and early warning method is based on the monitoring and early warning system described in any one of claims 1-2, and comprises the following steps: Step 1: Layout the system: According to the design requirements, communication and perception units, embedded main control units, management and monitoring centers, and local early warning units are arranged in the monitored environment space; Step 2: The communication and perception unit sends a Wi-Fi signal to the monitoring space; the embedded main control unit starts to collect CSI data of the Wi-Fi signal in the monitoring space for preprocessing, and uploads the preprocessed CSI data to the monitoring and management center through the communication and perception unit; the embedded main control unit transmits the obtained activity status of the elderly to the management and monitoring center: Step 2.1: Collect CSI data of Wi-Fi signals of daily activities of the elderly in the monitoring space where the system is installed. Specifically, while the elderly are moving, the signal receiving module receives the Wi-Fi signal and packages the collected CSI into a data packet stream based on time. The data packet contains key information such as signal-to-noise ratio, signal strength, and number of antennas. in, When the elderly move between the communication and perception unit and the embedded main control unit, the Wi-Fi signal is reflected by the human body, walls, and indoor furniture through multiple paths to reach the receiving end of the embedded main control unit. During this process, the impact of the elderly's activities on the wireless channel is recorded in the CSI data. Step 2.2: The propagation process of Wi-Fi signal can be defined in the frequency domain as: Y(f,t)=H(f,t)×X(f,t)+N, Where N is the noise interference in the channel, Y(f, t) is the Wi-Fi signal received by the embedded main control unit, f is the frequency, t is the time, X(f, t) is the Wi-Fi signal sent by the communication and perception unit, and H(f, t) is the channel state information matrix, i.e., CSI. The channel state information matrix is expressed as: In short: H(f,t)=[H1,H2,H3,···,H k ] T , Among them, a k (f, t) represents the amplitude change of the WIFI signal during the propagation process, e -j2πΔft represents the phase offset between subcarriers, represents the phase shift of the signal during propagation, Δf represents the frequency shift during propagation, τ k represents the delay from the signal transmitter to the receiver, and k is the number of subcarriers in the CSI; Wi-Fi technology combines multiple-input multiple-output (MIMO) technology and orthogonal frequency division multiplexing (OFDM) technology efficiently. In a MIMO system, there are N transmitting antennas. t , receiving antenna N r There are N t ×N r channels; the matrix dimension of CSI data is N t ×N r ×k; Step 2.3: Perform PCA principal component analysis on the CSI data of the Wi-Fi signal collected in the above step to reduce interference factors; Step 2.4: Use the sliding window algorithm to segment the CSI data obtained after processing in step 2.3 into data segments of different activities and static states of the elderly, and extract the segments containing the elderly's activity information in the data time series and classify them; the specific steps are as follows: Step 2.4.1: Use a sliding window with a time length of 1 second to split the data, and the sliding step is 0.2s; Step 2.4.2: When the proportion of activity information in the data segment exceeds 60%, it is considered as valid activity data, otherwise it is considered as static data; Step 2.5: All the data split in step 2.4 are stratified by action type, and all the data of each action type are randomly divided into two data sets in the ratio of m:n, where m>n; Step 2.6: Take the m / (m+n) portion in step 2.5 as the training data set, and take the n / (m+n) portion as the validation data set; Step 2.7: Construct the LSTM+FCN model, which includes two sub-modules: LSTM and FCN. The LSTM sub-module consists of multiple LSTM units, each of which consists of a selection gate, an input gate, and an output gate; the FCN sub-module consists of a one-dimensional convolution layer, an average pooling layer, a Relu activation function, and a global pooling layer; Step 2.8: Load the optimized LSTM+FCN model obtained in step 2.7 into the embedded main control unit, extract the subcarrier information of the elderly's activities, process and analyze the data, and output the elderly's activity status to the monitoring and management center; Step 3: Monitoring warning: If the embedded main control unit determines that the elderly person's behavior is an abnormal activity, such as lying down, falling, picking up, running, sitting down, standing, or walking, an alarm message will be issued, and an alarm will be quickly sent to family members, guardians and medical staff through the cloud-based management and monitoring center by text message, phone call and / or WeChat, and an alarm signal will be sent to the local early warning unit at the same time; after receiving the alarm signal, the sound alarm of the local early warning unit will continue to sound the alarm and the light flash alarm will flash a strong light to ask for help from the surrounding people until the guardian remotely or locally controls to shut down the alarm system to fully protect the life safety of the elderly.
4. The monitoring and early warning method according to claim 3 is characterized in that: In step 2.3, the processing steps are as follows: Step 2.3.1: Let the time stream CSI matrix be W, the dimension of W is T×N t ×N r ×K, where T is the time length, and the dimension of the matrix Z obtained by averaging W is N t ×N r ×k, expand the matrix Z T times to make its dimension T×N t ×N r ×K, denoted as the average data flow matrix EVA, the difference matrix obtained by subtracting the matrix W from the average data flow matrix EVA is denoted as the matrix H; Step 2.3.2: Get the covariance matrix R = H of the matrix H T ×H, and perform eigendecomposition on the covariance matrix R to obtain the eigenvalue q n {n=1,2,…n} and the corresponding eigenvector Q n {n=1,2,…n}; Step 2.3.3: Sort the eigenvalues and put the largest eigenvalue max{q n The corresponding eigenvector is recorded as Q, and the reconstructed CSI data matrix after denoising is recorded as S = W × (Q × Q T )+EVA.
5. The monitoring and early warning method according to claim 3 is characterized in that: In step 2.7, the construction and training steps of the LSTM+FCN model are as follows: Step 2.7.1: Construct an LSTM submodule. Traditional feature extraction methods use LSTM to extract features that change over time in data, while spatial features can better represent changes in signals caused by human activities during propagation. The multiple subcarriers in the CSI data contain the amplitude and phase changes of the signal in multiple propagation paths. The subcarrier information of the CSI data is used as the input of the LSTM to extract the subcarrier correlation information of the elderly's activities in the CSI data. The dimension of the CSI data segment is t×N. t ×N r ×K, where the time length of t is 1 second; the subcarrier dimension is used as the input dimension in the LSTM module, and the long-term memory characteristics of LSTM are used to extract the characteristics of human activities between subcarriers; The LSTM submodule is composed of multiple LSTM units. In the LSTM unit, the input gate will determine some key information of the subcarrier input to the LSTM unit, the forget gate chooses to forget the invalid subcarrier information input previously, and the output gate outputs the hidden state information of the current subcarrier, that is, the inter-subcarrier feature of the CSI data; the output I of the input gate of the LSTM represented by the subcarrier input k , the output F of the forget gate k , the output of the output gate is 0 k It is expressed as: I k =σ(X k W xi +H k-1 W hi +b i ) F k =σ(X k W xf +H k-1 W hf +b f ) 0 k =σ(X k W xo +H k-1 W ho +b o ) Among them, σ represents the sigmoid function, W and b represent the weight and bias of the triple gate respectively, and X k Indicates the subcarrier information currently input, k is the number of subcarriers; H k-1 is the hidden state of the previous subcarrier information, and the memory state and hidden state of the LSTM unit are expressed as: H k =O k ⊙tanh(C k ) Among them, ⊙ represents element-by-element multiplication, represents the output of the temporary memory candidate unit, C k Represents the memory state of the current subcarrier information of the CSI data, including the dependency characteristics between multiple subcarriers; LSTM outputs the hidden state information H of the current subcarrier k , used in the FCN model to further extract hidden features; Step 2.7.2: Construct an FCN submodule to perform subcarrier convolution on the subcarrier features of the CSI data output by the LSTM submodule, and extract the local spatial dependency features in the CSI data and the potential spatial information between multiple carriers; the FCN model can be expressed as: Among them, for the i-th channel output vector of the l-th layer The input vector from the previous layer Indicates that the FCN input vector is the hidden state information output by the LSTM in step 2.7.
1. Represents the convolution kernel vector of each layer, and F represents the number of feature channels; represents the bias, l∈{1,...,L} represents the number of convolution layers, d represents the convolution kernel size, represents the convolution operation on the output features of the previous convolutional layer, and f(·) represents the linear rectification function of each subcarrier k; The FCN sub-model includes three convolutional layers, the number of channels F is 128, 256, and 128 respectively, and the convolution kernel size d is 9, 5, and 3 respectively. After each convolutional layer, an average pooling layer (BN, Batch Norm) is used to accelerate the convergence speed of the model and the Relu activation function is used to add nonlinear factors to improve the model's ability to express the subcarrier characteristics of CSI data. At the end of the FCN sub-model, a global pooling layer is used to reduce the dimension of the extracted CSI data subcarrier features to obtain the CSI data subcarrier feature vector associated with the elderly's activities extracted by LSTM+FCN, which is used as the basis for judging the mapping relationship between the elderly's activities and the CSI data; Step 2.7.3: Use the training data set in step 2.5 to train the LSTM+FCN model. Input the CSI subcarrier feature vector output in step 2.7.2 into the softmax classification module to obtain the classification results of the elderly activities. The softmax function is expressed as: For the feature vector extracted by the LSTM+FCN model, the softmax function can compress it into a real vector with a length of F, a value in the range of [0,1], and the sum of the elements in the vector is 1. The vector value is the probability of the CSI data corresponding to the activity type of the elderly; Step 2.7.4: During the training process, the LSTM+FCN model automatically adjusts the convolution parameters and feature vectors in the model according to the classification results of step 2.7.3; and finally learns the activity features of the elderly in the subcarriers of the CSI data; Step 2.7.5: Use the validation data set segmented in step 2.6 to verify the actual classification perception performance of the LSTM+FCN model, adjust the structural parameters of the model according to various indicators, and obtain the optimized LSTM+FCN model; use accuracy, recall, precision, F1-score and other indicators to evaluate the performance of the system. The calculation formula for each indicator is: Among them, TP, TN, FP and FN refer to the true positive rate, true negative rate, false positive rate and false negative rate respectively; TP is the number of positive samples predicted as positive, TN is the number of negative samples predicted as negative, FP is the number of negative samples predicted as positive, and FN is the number of positive samples predicted as negative; the closer the value of each indicator is to 1, the better the robustness and accuracy of the LSTM+FCN model; if the value of each indicator does not reach 0.95, repeat steps 2.7.1-2.7.5 until the value of each indicator is not less than 0.95, the model training is completed, and the trained LSTM+FCN model is the optimized LSTM+FCN model.
Citation Information
Patent Citations
Large-scale MIMO system CSI feedback method based on long-short-term attention mechanism
CN110912598A
Lightweight Wi-Fi behavior sensing method and system
CN111954250A
UWB (Ultra Wideband) radar-based method and device for detecting that people are about to fall down
CN117315886A
Fall detection method, device, and system
US20200163590A1
