Method for carrying out gait recognition based on WIFI (Wireless Fidelity) equipment
By using CSI data in WIFI devices, combined with CNN, LSTM and AAE technology, the problem of low gait recognition accuracy in the existing technology is solved, robust recognition of discontinuous behaviors and paths is achieved, and the accuracy of gait recognition is improved. , and reduce deployment costs.
Patent Information
- Application Number
- CN202410754626.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing WIFI-based human gait recognition technology cannot accurately identify human gait, especially when faced with non-periodic and discontinuous human behaviors, and it is difficult to effectively handle rich walking paths and behaviors, resulting in low recognition accuracy.
By collecting channel state information (CSI) in WIFI devices, environmental noise and automatic gain control noise are removed, and three-layer stacked convolutional neural networks (CNN) and long short-term memory (LSTM) are used to extract gait features, and combined Adversarial autoencoders (AAE) and domain adaptation techniques generate gait features that are independent of non-gait behaviors and paths.
It achieves robust recognition of discontinuous behaviors and different paths, improves gait recognition accuracy, can achieve high-precision gait recognition in real scenes, reduces equipment and installation costs, and is suitable for large-scale deployment.
Smart Images

Figure CN118779747A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of WIFI sensing technology in intelligent Internet of Things, and in particular to a method for gait recognition based on WIFI equipment. Background Art
[0002] Human body recognition technology has become a key technology in many applications, such as security management, personalized services in smart spaces, etc. At present, human body recognition technologies are implemented based on different technologies, such as video-based methods, acoustic signal methods, and wearable devices. At the same time, WIFI-based human gait recognition technology has also received widespread attention in the industry in recent years due to its universal, non-contact and non-invasive advantages.
[0003] The basic principle of WIFI-based human gait recognition technology includes: the movement of people when walking will disturb the WIFI signal, such as channel state information (CSI), and each person's natural gait is unique. This difference in human limb movement pattern and speed is used as the feature of each person's individual gait, thereby realizing user recognition technology for individuals. In other words, accurate and non-interference human recognition operations using WIFI devices can provide more opportunities for many personalized services in smart spaces.
[0004] However, the corresponding WIFI-based human gait recognition technology currently faces the problem of being unable to accurately perform human gait recognition in actual deployment. That is, there is currently no better WIFI-based human gait recognition technology solution that can meet the application requirements of human gait recognition in various technical fields. Summary of the invention
[0005] The purpose of the present invention is to provide a method for gait recognition based on WIFI equipment to meet the application requirements of human gait recognition in various technical fields and solve the problems existing in the prior art.
[0006] The objective of the present invention is achieved through the following technical solutions:
[0007] A method for gait recognition based on a WIFI device, comprising:
[0008] In a sensing area where a WIFI transmission link composed of a transmitting end TX and a receiving end RX included in a WIFI device is located, channel state information CSI of each user walking in the sensing area is collected;
[0009] Performing data preprocessing on the CSI to obtain a corresponding spectrum diagram; the data preprocessing includes removing environmental noise and automatic gain control AGC noise from the CSI;
[0010] Performing data enhancement processing on the labeled data in the spectrogram, and performing feature extraction on the enhanced labeled data and the unlabeled data in the spectrogram based on a three-layer stacked convolutional neural network (CNN) and a three-layer stacked long short-term memory (LSTM), wherein the enhanced labeled data includes expanded potential behavior and path data;
[0011] The user's gait features independent of non-gait behaviors and paths are learned according to the feature extraction results, and the gait of the user walking in the sensing area is recognized based on the learned user's gait features.
[0012] The process of removing the environmental noise and AGC noise from the CSI includes:
[0013] The environmental noise is removed by using a subcarrier-based principal component analysis and processing method; and,
[0014] The AGC noise removal processing method includes: clustering the AGC related points according to their sparse distribution density by using a spatial clustering method, and retaining only the cluster with the largest number of scattered points to filter the AGC noise.
[0015] The method further includes:
[0016] Performing Fourier transform STFT on the CSI after the data preprocessing to obtain a corresponding spectrum graph, and performing enhancement processing on the spectrum graph to obtain an enhanced spectrum graph as the spectrum graph obtained by the data preprocessing.
[0017] The process of obtaining the enhanced spectrum includes:
[0018] The time series CSI data is sliced using a sliding window, and STFT is performed on each slice;
[0019] Adding the amplitudes of the spectrum graphs corresponding to the multiple subcarriers to obtain a superimposed spectrum graph, and only retaining the spectrum graph within a predetermined frequency band;
[0020] After normalizing each FFT block contained in the spectrum graph, background noise is eliminated by subtracting the amplitude average value of the entire spectrum graph, and a two-dimensional Gaussian filter is used to obtain an enhanced spectrum graph.
[0021] The process of performing data enhancement processing on the labeled data in the spectrogram includes: training the labeled gait data of each user in the labeled data using an adversarial autoencoder AAE, and the training process includes:
[0022] The data S of the kth AAE k Put it into the encoder of AAE#k to generate a latent vector z; where AAE#k refers to AAE numbered k;
[0023] The latent vector z and the user's label y are sent to the decoder to generate a vector for reconstructing the labeled gait data In the process of reconstructing the labeled gait data, the mean square error MSE is used to define the reconstruction loss, and the corresponding loss function is:
[0024]
[0025] in, is the number of samples;
[0026] Based on the loss function and the vector of the reconstructed labeled gait data Performing data reconstruction to obtain reconstructed labeled gait data related to the user corresponding to the user's label y, the reconstructed labeled gait data including data of expanded potential behaviors and paths;
[0027] as well as,
[0028] The encoder is used as the input data S of the generator of the Generative Adversarial Network GAN k Together with the vector z' that obeys the prior distribution, it is input into the discriminator, and the reconstructed data is standardized by training the discriminator; wherein the cross entropy is used as the loss function of the discriminator, and the loss function of the discriminator is:
[0029]
[0030] For the discriminator, when using S k As input, the label l k is 0. When z' is used as input, the label l k is 1, is the predicted value of the ith sample, is the true value of the i-th sample.
[0031] The process of extracting the feature vector includes:
[0032] In each layer of CNN, a convolutional layer with a 2D convolution kernel is used, a batch normalization layer is used to speed up the processing process, a rectified linear unit ReLU is inserted to introduce nonlinearity, and a maximum pooling layer is used to reduce the size of the feature vector;
[0033] as well as,
[0034] LSTM learns the temporal dynamic features extracted by CNN during the time series data processing; each LSTM layer has the same number of neurons and uses the Sigmoid activation function to extract data.
[0035] The process of learning the user gait features independent of non-gait behaviors and paths based on the feature extraction results includes:
[0036] The feature vector extracted by learning using three fully connected layers and an activation function ReLU is then passed through an output layer of an activation function softmax to obtain a predicted probability vector of the gait; specifically, a cross entropy is used as a loss function for gait classification, and a predicted probability vector of the gait is obtained based on the loss function for gait classification, wherein the predicted probability vector includes a predicted label for the gait classification;
[0037] The feature vector is connected with the predicted label of gait classification, the posterior distribution of the source domain and the target domain are aligned, and the two are input into the domain discriminator to predict the domain label, and the conditional entropy is used as the loss function of the target domain classification, thereby determining the loss function of the domain discriminator; the source domain is the labeled data domain, and the target domain is the unlabeled data domain;
[0038] The overall loss function of the training model is determined according to the loss function of the gait classification and the loss function of the domain discriminator, and all labeled and unlabeled data are used to train the training model based on the overall loss function of the training model and iteratively update the parameters during the training process to obtain a training model that includes user gait features that are independent of non-gait behaviors and paths.
[0039] The loss function of the gait classification is:
[0040]
[0041] Among them, n a and n u is the number of labeled and unlabeled data used for training, K is the total number of users; and are the user labels of the predicted labeled data and unlabeled data, respectively; La is the loss function of the labeled data, and Lu is the loss function of the unlabeled data;
[0042] The loss function of the domain discriminator is:
[0043]
[0044] Among them, n d and n t is the total amount of data used for training and the amount of target domain data, D is the number of domains, is the domain label, d ij is the true domain label of the i-th sample, is the predicted domain label of the i-th sample, is the predicted domain label of the i-th sample when the posterior distribution of the source domain and the target domain are aligned, is the predicted domain label of the i-th sample when adding classification constraints to the target domain, is the predicted label of the target domain of the i-th sample when adding classification constraints to the target domain; Ld is the loss function of the data of all domains, Lo is the loss function of predicting the data of all domains when aligning the posterior distribution of the source domain and the target domain, and Lt is the loss function of predicting the data of all target domains when adding classification constraints to the target domain;
[0045] The overall loss function of the model is:
[0046] L all =L a +αL o +βL d +γL o +λL t ;
[0047] Among them, α, β, γ and λ are hyperparameters, and their parameter values are adjusted and set according to the training results.
[0048] In the present invention, during back propagation, the loss function of the domain discriminator is a negative value, and the loss function of the gait classification is a positive value.
[0049] Compared with the prior art, the method for gait recognition based on WIFI devices provided by the present invention can overcome the limitations of the existing WIFI-based gait recognition solutions, and in the process of application, it can achieve robustness with respect to user behavior and walking paths, thereby achieving higher gait recognition accuracy: application experiments of the present invention in real scenarios have shown that it can achieve high-precision gait recognition measurement in the gait recognition process. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0051] Figure 1 A block diagram of the implementation principle of the method provided in the embodiment of the present invention;
[0052] Figure 2 The data preprocessing process provided in the embodiment of the present invention obtains a fine-grained gait spectrum graph from the CSI;
[0053] Figure 3 A schematic diagram of an AEE-based data enhancement architecture provided in an embodiment of the present invention;
[0054] Figure 4A schematic diagram of a deep learning framework for gait recognition based on domain adaptation provided by an embodiment of the present invention;
[0055] Figure 5 A schematic diagram of prediction accuracy experimental results of four different methods for three different users provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in combination with the specific content of the present invention; it is obvious that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, which does not constitute a limitation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0057] First, the terms that may be used in this article are explained as follows:
[0058] The term “and / or” means that either or both of them can be realized at the same time. For example, X and / or Y means both “X” or “Y” and “X and Y”.
[0059] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.
[0060] The term "consisting of..." means excluding any technical feature elements not explicitly listed. If this term is used in a claim, it will make the claim closed, so that it does not contain technical feature elements other than the technical feature elements explicitly listed, except for the conventional impurities related to them. If this term only appears in a clause of a claim, it only limits the elements explicitly listed in the clause, and the elements recorded in other clauses are not excluded from the overall claim.
[0061] Unless otherwise specified or limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this article can be understood according to specific circumstances.
[0062] When concentration, temperature, pressure, size or other parameters are expressed in the form of a numerical range, the numerical range should be understood to specifically disclose all ranges formed by the pairing of any upper limit, lower limit, and preferred value in the numerical range, regardless of whether the range is explicitly stated; for example, if a numerical range of "2 to 8" is stated, the numerical range should be interpreted as including ranges such as "2 to 7", "2 to 6", "5 to 7", "3 to 4 and 6 to 7", "3 to 5 and 7", "2 and 5 to 7", etc. Unless otherwise specified, the numerical ranges stated herein include both their end values and all integers and fractions within the numerical range.
[0063] The orientation or position relationship indicated by terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc. are based on the orientation or position relationship shown in the drawings and are only for the convenience and simplification of description, and do not explicitly or implicitly indicate that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation of this document.
[0064] In the process of implementing the present invention, the major problems faced by WIFI-based human gait recognition technology in actual deployment are first analyzed in order to provide a better WIFI-based human gait recognition technology solution. Specifically, the major problems found in the analysis may include:
[0065] (1) Current WIFI-based human gait recognition systems are based on the assumption that the user's walking pattern is periodic. However, in real-world scenarios, users not only move their legs when walking, but may also be accompanied by various other non-periodic human behaviors (such as turning, bending, and carrying luggage); moreover, people sometimes do not walk normally and continuously, but may stop and go; these non-periodic and discontinuous behaviors make it impossible to fully extract unique gait-related features for scenarios that require long-term recognition, which in turn makes it impossible for systems that use WIFI-based human gait recognition technology to accurately perform human gait recognition.
[0066] (2) Most WIFI-based human gait recognition solutions use CSI to extract gait-related features. However, since CSI represents fine-grained channel features, it is extremely sensitive to human behavior. This means that after training on user-specific human behavior data, other different human behaviors will change the WIFI signal propagation characteristics. If these effects are not eliminated, the accuracy of human gait recognition may be severely reduced.
[0067] (3) In theory, if enough CSI data can be collected from all possible behaviors of each user, a gait recognition model that is robust to human behavior can be trained; however, considering the diversity and richness of human behavior and the impact of various walking paths on gait patterns, such processing will be extremely labor-intensive. More importantly, there are many non-gait human behaviors and walking paths that may not be taken into account, making this solution impractical in real-world scenarios.
[0068] (4) Combining the human behavior recognition solution with the gait recognition system is also a possible solution, but the implementation of this solution relies on accurately detecting each human behavior and separating it from the mixed CSI to eliminate the impact of human behavior on gait characteristics. Moreover, this solution still requires collecting data on all possible human behaviors, and signal separation is also a challenging problem.
[0069] (5) If the influence of the walking path is eliminated by estimating the user's walking direction, multiple transceivers need to be strictly set up, and the user needs to walk normally and continuously in a specific area; obviously, these settings are cumbersome for many scenarios and users, hindering the widespread application of gait recognition technology.
[0070] After analyzing the various problems that need to be faced above, the present invention specifically provides the following implementation scheme, namely, provides a better WIFI-based human gait recognition technical scheme, thereby meeting the application requirements of human gait recognition in various technical fields.
[0071] Specifically, the purpose of the present invention is to design a novel gait recognition method based on WIFI devices, which can identify the identity of users walking along different paths with additional discontinuous behaviors, while also ensuring that the corresponding purpose can be achieved by only collecting and marking a small amount of CSI data. Specifically, the present invention includes a complete set of data processing and recognition algorithms, which can specifically include: processing WIFI channel state information including principal component analysis at the subcarrier level, AGC noise removal and spectrum enhancement, and extracting gait features, so as to predict the human identity during rich unknown discontinuous behaviors and walking paths, that is, user identity information.
[0072] The technical solution created by the present invention is mainly to obtain a refined gait pattern spectrum through careful data preprocessing technology; at the same time, it combines domain adaptation technology and data enhancement technology to reduce the coupling of gait patterns with non-continuous behaviors and walking paths, and generate rich user-labeled data for training network models, so that the corresponding network model can be used to perform gait recognition operations independent of non-continuous behaviors and walking paths. Specifically, in the corresponding deep learning framework based on domain adaptation and data enhancement, domain adaptation technology is used to reduce the coupling of user gait patterns with non-continuous behaviors and walking paths, that is, different behaviors and paths are regarded as different domains, and the technical solution provided by the present invention can learn domain-independent gait features; then, data enhancement methods can also be used in this framework, so that only a small amount of user labeled data can be used to well process various rich unlabeled user gait data of different behaviors and paths.
[0073] The specific implementation of the present invention will be described in detail below with reference to the accompanying drawings.
[0074] like Figure 1 As shown, the present invention can specifically place 1 Tx and 1 Rx in the physical space to form a WIFI transmission link, thereby constructing a gait sensing area, that is, a sensing area. Further, the implementation process of the present invention can specifically include:
[0075] (1) collecting CSI of each subject when walking in the sensing area, and inputting the CSI into a data preprocessing module, and performing data preprocessing by the data preprocessing module to obtain a corresponding spectrum diagram; wherein the data preprocessing may include removing environmental noise and AGC (automatic gain control) noise from the CSI;
[0076] (2) performing data augmentation processing on the labeled data in the spectrogram, that is, inputting a small portion of the data with the user ID in the spectrogram (i.e., known behaviors and paths) into the data augmentation module for data augmentation processing, so as to expand and obtain more potential human behaviors and walking paths;
[0077] (3) The enhanced labeled data (source domain data) and unlabeled data (target domain data) are fed into cross-domain gait recognition to learn gait features that are independent of non-gait human behaviors and walking paths;
[0078] Specifically, feature extraction is performed based on the enhanced labeled data and the unlabeled data in the spectrum graph, wherein the enhanced labeled data includes expanded potential behavior and path data, that is, more possible user behavior and path data are obtained by expanding a limited number of labeled data;
[0079] The user's gait features independent of non-gait behaviors and paths are learned based on the feature extraction results.
[0080] (4) Based on the user gait features obtained through learning, the gait of the user walking in the sensing area can be recognized.
[0081] Reference Figure 1 As shown, in the specific implementation process of the present invention, the main processes may include but are not limited to: data preprocessing, data enhancement processing, and cross-domain gait recognition processing. The specific implementation process of each processing process will be described in detail below in conjunction with the accompanying drawings.
[0082] (I) Data preprocessing process
[0083] The study found that the original CSI collected using a WIFI network card contains a lot of noise information that affects gait recognition, which is generally manifested as environmental noise and AGC noise, and the corresponding environmental noise obeys a Gaussian distribution in the entire space.
[0084] Specifically, in the setting of the present invention, a WIFI transceiver is specifically used and continuous gait recognition is performed on the entire walking process of the user. When the user is away from the transceiver or the walking direction is close to parallel to the propagation path, the gait pattern may be drowned by noise. At this time, traditional denoising methods (such as low-pass, wavelet) perform poorly. In addition, the effect of traditional principal component analysis (PCA) denoising in the time dimension depends on the selection of the number of principal components. Selecting more or fewer components may result in retaining environmental noise or losing important target signals. When the dynamic signal is masked by environmental noise, it loses its effectiveness because the principal components do not clearly correspond to the dynamic signal.
[0085] Based on the above reasons, the present invention turns its perspective to the subcarrier level, that is, performs principal component analysis at the subcarrier level, and adopts a principal component analysis processing method based on the subcarrier to remove the environmental noise; Figure 2 As shown, only the first principal component is needed to remove the ambient noise, and the corresponding effect of removing the ambient noise is good even if the noise overwhelms the gait pattern signal.
[0086] After removing the environmental noise, it is also necessary to remove the influence of the AGC noise; the AGC noise removal processing method can be but is not limited to clustering the AGC related points according to their sparse distribution density using a spatial clustering method, and only retaining the cluster with the largest number of scattered points to filter the AGC noise; that is, in order to completely retain the distribution of CSI data, the present invention does not use a ratio method, but based on observations, the noise caused by AGC is uncertain in the time dimension, and there are sparse points around the dynamic signal, so the noise caused by AGC can be filtered out according to the sparse density distribution, that is, the DBSCAN spatial clustering method is used to cluster the AGC related points according to their sparse distribution density, and only retaining the cluster with the largest number of scattered points, and the corresponding result after filtering the AG noise is still as follows Figure 2 shown.
[0087] The CSI after removing the ambient noise and AGC noise is enhanced. Specifically, the following processing methods can be used:
[0088] In order to represent the gait characteristics of different people when walking, the present invention performs a short-time Fourier transform (STFT) on the CSI processed above to obtain a spectrum diagram reflecting time and frequency information; specifically, firstly, a sliding window is applied to slice the time series CSI data, each segment can be set to contain 3s of data, and the sliding window can be set to 1s; then, STFT is performed on each slice.
[0089] In order to reduce the noise of the spectrum graph to obtain a fine spectrum graph, the present invention adopts a processing method of enhancing each spectrum graph. Specifically, the amplitudes of the spectrum graphs corresponding to all the subcarriers (30 in the experiment) contained in the spectrum graph are added to obtain a superimposed spectrum graph, and only the spectrum graph within a predetermined frequency band (such as 0-80Hz) is retained; then, each FFT (Fast Fourier Transform) block is normalized, and the background noise is eliminated by subtracting the amplitude average of the entire spectrum graph (any value less than 0 is set to 0 during the processing); finally, a two-dimensional Gaussian filter is applied to obtain an enhanced spectrum graph, and the result is as shown in FIG. Figure 2 shown.
[0090] (II) Data enhancement process
[0091] The present invention uses data enhancement in this processing process to generate more data about potential behaviors and paths; specifically, by Figure 3The adversarial autoencoder (AAE) of the structure shown uses a separate AAE to perform data enhancement processing on the labeled gait data (i.e., labeled data) of each user; that is, a small amount of pre-processed data of the gait spectrograms accompanying human behaviors and different walking paths (i.e., source domain data) is used for data enhancement, and these data are input into the corresponding AAE#k (i.e., the kth AAE, or AEE numbered k) for training. The corresponding training process may include:
[0092] First, refer to Figure 3 As shown, the data S of the kth AAE is k Put it into the encoder of AAE#k, generating a latent vector z, which is sent to the decoder to generate the vector To reconstruct the labeled gait data; in the process of reconstructing the labeled gait data, the mean square error (MSE) can be used to define the reconstruction loss, that is, the corresponding loss function can be:
[0093]
[0094] in, is the number of samples;
[0095] Then, the discriminator is trained to normalize the reconstructed labeled gait data; that is, based on the loss function and the vector of the reconstructed labeled gait data Performing data reconstruction to obtain reconstructed labeled gait data related to the user corresponding to the user's label y, the reconstructed labeled gait data including data of expanded potential behaviors and paths;
[0096] At this time, the encoder of AE is the generator, and its output S k Sent to the discriminator together with the vector z' that follows the prior distribution; for the discriminator, when using S k As input, the label l k is 0. When z' is used as input, the label l k is 1; based on this, cross entropy is used as the loss function of the discriminator:
[0097]
[0098] in, is the predicted value of the ith sample, is the true value of the i-th sample;
[0099] However, since a separate AAE is used for data augmentation for each user, the reconstructed data samples are likely to be between different users, which in turn affects the classification accuracy of different users; to avoid this, in addition to the different prior distributions of each AAE (different variances of the normal distribution), the present invention also inputs the user's label y and latent vector z into the decoder during the data augmentation process to force the decoder to generate data that is highly relevant to the user.
[0100] (III) Cross-domain gait recognition processing
[0101] In the cross-domain gait recognition process, Figure 4 As shown, the method may include: a feature extraction process, and a process of learning user gait features independent of non-gait behaviors and paths based on the result of the feature extraction.
[0102] In the feature extraction process, all the labeled data and the unlabeled data are input into the feature extractor together to output the feature vector thereof, that is, the feature vector is extracted and obtained;
[0103] Specifically, the present invention uses the widely used convolutional neural network (CNN) and long short-term memory (LSTM) deep learning architecture to extract gait features; specifically, three-layer stacked CNN and three-layer stacked LSTM are used to extract features; wherein, in each layer of CNN, the present invention uses a convolution layer with a 2D convolution kernel, uses a batch normalization layer to accelerate training, inserts a rectified linear unit (ReLU) to introduce nonlinearity, and uses a maximum pooling layer to reduce the representative size of the extracted gait features; in addition, LSTM also has good performance in time series data processing, which can be used to learn the time dynamic features extracted by CNN, and each LSTM layer has the same number of neurons, and uses a Sigmoid activation function to extract data;
[0104] Based on the design of the above processing process, given the input data, the corresponding feature vector can be extracted through the deep learning process of CNN and LSTM.
[0105] After the feature vector is obtained, a process of learning the user's gait features independent of non-gait behaviors and paths based on the feature extraction results can be performed;
[0106] Specifically, in this processing, three fully connected layers and an activation function ReLU can be used to learn the representation of the input data (i.e., the extracted feature vector), and after an output layer with an activation function of softmax, a predicted probability vector of gait is obtained, and the predicted probability vector includes a predicted label for gait classification; further, in order to improve the accuracy of gait classification, the present invention predicts user labels for labeled data and unlabeled data respectively and For all data, cross entropy can be used as the loss function for gait classification:
[0107]
[0108] Among them, n a and n u is the number of labeled and unlabeled data used for training, K is the total number of users, La is the loss function for labeled data, and Lu is the loss function for unlabeled data;
[0109] A domain adaptation network (DANN) is a special case of transfer learning; the present invention utilizes the function of DANN to eliminate the influence of human behavior and walking path on gait recognition; specifically, different walking paths and human behaviors can be defined as different domains, and a domain discriminator is used to identify different walking paths and human behaviors; the main goal of the present invention is to enable a feature extractor to deceive a domain discriminator, thereby generating a user's gait features that are independent of human behavior and walking path; the feature vector is input into a domain discriminator, and the domain label is predicted through the same process The domain discriminator can also be composed of three fully connected layers with ReLU activation function and an output layer with softmax activation function;
[0110] To improve the classification performance of the target domain, two operations can be used to optimize the model.
[0111] First, the feature vector is concatenated with the predicted label of gait classification to align the posterior distribution of the source and target domains and input into the domain discriminator together to predict the domain label.
[0112] Secondly, the present invention adds classification constraints to the target domain and uses conditional entropy as the loss function for target domain classification; therefore, the loss function of the domain discriminator includes three parts:
[0113]
[0114] where n d and n t is the total amount of data used for training and the amount of target domain data, D is the number of domains, and d ij is the true domain label of the i-th sample, is the predicted domain label of the i-th sample, is the predicted domain label of the i-th sample when the posterior distribution of the source domain and the target domain are aligned, is the predicted domain label of the i-th sample when adding classification constraints to the target domain, is the predicted label of the target domain of the i-th sample when adding classification constraints to the target domain, Ld is the loss function of the data of all domains, Lo is the loss function of predicting the data of all domains when aligning the posterior distribution of the source domain and the target domain, and Lt is the loss function of predicting the data of all target domains when adding classification constraints to the target domain;
[0115] Then the overall loss function of the model in the present invention can be determined as:
[0116] L all =L a +αL o +βL d +γL o +λL t ;
[0117] Among them, α, β, γ and λ are hyperparameters, and α, β, γ and λ can all be set to 1 in a specific training model. In practical applications, they may also need to be fine-tuned according to the results of model training.
[0118] In the present invention, the training goal of the training model is to minimize the loss of gait classification and maximize the loss of the domain discriminator. It should be noted that the loss of domain identification during back propagation is reversed, that is, the loss function of the domain discriminator during back propagation is negative, while gait classification is directly back propagated, that is, the loss function of the gait classifier is positive.
[0119] In summary, in the present invention, all labeled and unlabeled data can be used to train the corresponding training model and the parameters of the model can be iteratively updated during the training process.
[0120] In summary, the technical solution provided by the present invention can overcome the limitations of the existing WIFI-based gait recognition solution, and can produce significant technical effects in specific applications, including:
[0121] (1) The present invention can realize non-contact gait recognition processing based on WIFI equipment, avoiding the requirement of carrying equipment for gait recognition based on wearable devices, and is particularly suitable for home-based elderly care, office environments, etc.;
[0122] (2) Since commercial WIFI infrastructure is already widely available and its installation cost is relatively low, compared with vision and millimeter wave radar solutions, the present invention can significantly reduce equipment and installation costs, making large-scale deployment of the gait recognition solution provided by the present invention economically feasible;
[0123] (3) The present invention also uses a careful data preprocessing method and introduces domain adaptation technology and data enhancement technology, so that when facing unknown discontinuous behaviors and different walking paths, the technical solution provided by the present invention can still achieve robustness against user behaviors and walking paths, and obtain higher gait recognition accuracy:
[0124] (4) The present invention was applied to real scenarios. The experimental results show that it can achieve accurate prediction of a total of 15 domain data by collecting and marking only a small amount of data from 6 source domains, and can improve the accuracy of user classification. Compared with other existing technologies, the efficiency is improved by about 45%, that is, high-precision measurement of gait recognition is achieved.
[0125] The present invention was applied in real scenes. Figure 5 As shown, Figure 5 The prediction accuracy of four different gait recognition methods for three different users (P1-P3) is included, wherein the fourth gait recognition method is the technical solution provided by the present invention. Specifically, in order to evaluate the basic performance of the technical solution provided by the present invention, the gait data of the three volunteers are first classified, such as Figure 5 As shown, four gait recognition schemes are adopted, which are: only CNN module, only AAE+CNN module, only domain adaptation+CNN module, and the implementation scheme including CNN, AAE and domain adaptation processing provided by the present invention. Figure 5 It can be seen from the experimental results shown that the technical solution provided by the present invention can significantly improve the accuracy of gait recognition and can achieve accurate prediction and recognition for each user.
[0126] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. The information disclosed in the background technology section of this article is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as an admission or in any form that the information constitutes prior art known to those skilled in the art.
Claims
1. A method for gait recognition based on WIFI equipment, characterized in that: include: In a sensing area where a WIFI transmission link composed of a transmitting end TX and a receiving end RX included in a WIFI device is located, channel state information CSI of each user walking in the sensing area is collected; Performing data preprocessing on the CSI to obtain a corresponding spectrum diagram; the data preprocessing includes removing environmental noise and automatic gain control AGC noise from the CSI; Performing data enhancement processing on the labeled data in the spectrogram, and performing feature extraction on the enhanced labeled data and the unlabeled data in the spectrogram based on a three-layer stacked convolutional neural network (CNN) and a three-layer stacked long short-term memory (LSTM), wherein the enhanced labeled data includes expanded potential behavior and path data; The user's gait features independent of non-gait behaviors and paths are learned according to the feature extraction results, and the gait of the user walking in the sensing area is recognized based on the learned user's gait features.
2. The method according to claim 1, characterized in that: The process of removing the environmental noise and AGC noise from the CSI includes: The environmental noise is removed by using a subcarrier-based principal component analysis and processing method; and, The AGC noise removal processing method includes: clustering the AGC related points according to their sparse distribution density by using a spatial clustering method, and retaining only the cluster with the largest number of scattered points to filter the AGC noise.
3. The method according to claim 2, characterized in that The method further includes: Performing Fourier transform STFT on the CSI after the data preprocessing to obtain a corresponding spectrum graph, and performing enhancement processing on the spectrum graph to obtain an enhanced spectrum graph as the spectrum graph obtained by the data preprocessing.
4. The method according to claim 3, characterized in that The process of obtaining the enhanced spectrum comprises: The time series CSI data is sliced using a sliding window, and STFT is performed on each slice; Adding the amplitudes of the spectrum graphs corresponding to the multiple subcarriers to obtain a superimposed spectrum graph, and only retaining the spectrum graph within a predetermined frequency band; After normalizing each FFT block contained in the spectrum graph, background noise is eliminated by subtracting the amplitude average value of the entire spectrum graph, and a two-dimensional Gaussian filter is used to obtain an enhanced spectrum graph.
5. The method according to any one of claims 1 to 4, characterized in that: The process of performing data enhancement processing on the labeled data in the spectrogram includes: training the labeled gait data of each user in the labeled data using an adversarial autoencoder AAE, and the training process includes: The data S of the kth AAE k Put it into the encoder of AAE#k to generate a latent vector z; where AAE#k refers to AAE numbered k; The latent vector z and the user's label y are sent to the decoder to generate a vector for reconstructing the labeled gait data In the process of reconstructing the labeled gait data, the mean square error MSE is used to define the reconstruction loss, and the corresponding loss function is: in, is the number of samples; Based on the loss function and the vector of the reconstructed labeled gait data Performing data reconstruction to obtain reconstructed labeled gait data related to the user corresponding to the user's label y, wherein the reconstructed labeled gait data includes data of expanded potential behaviors and paths; as well as, The encoder is used as the input data S of the generator of the Generative Adversarial Network GAN k Together with the vector z' that obeys the prior distribution, it is input into the discriminator, and the reconstructed data is standardized by training the discriminator; wherein the cross entropy is used as the loss function of the discriminator, and the loss function of the discriminator is: For the discriminator, when using S k As input, the label l k is 0. When z' is used as input, the label l k is 1, is the predicted value of the ith sample, is the true value of the i-th sample.
6. The method according to any one of claims 1 to 4, characterized in that: The process of extracting the feature vector includes: In each layer of CNN, a convolutional layer with a 2D convolution kernel is used, a batch normalization layer is used to speed up the processing process, a rectified linear unit ReLU is inserted to introduce nonlinearity, and a maximum pooling layer is used to reduce the size of the feature vector; as well as, LSTM learns the temporal dynamic features extracted by CNN during the time series data processing; each LSTM layer has the same number of neurons and uses the Sigmoid activation function to extract data.
7. The method according to claim 6, characterized in that The process of learning the user gait features independent of non-gait behaviors and paths based on the feature extraction results includes: The feature vector extracted by learning using three fully connected layers and an activation function ReLU is then passed through an output layer of an activation function softmax to obtain a predicted probability vector of the gait; specifically, a cross entropy is used as a loss function for gait classification, and a predicted probability vector of the gait is obtained based on the loss function for gait classification, wherein the predicted probability vector includes a predicted label for the gait classification; The feature vector is connected with the predicted label of gait classification, the posterior distribution of the source domain and the target domain are aligned, and the two are input into the domain discriminator to predict the domain label, and the conditional entropy is used as the loss function of the target domain classification, thereby determining the loss function of the domain discriminator; the source domain is the labeled data domain, and the target domain is the unlabeled data domain; The overall loss function of the training model is determined according to the loss function of the gait classification and the loss function of the domain discriminator, and all labeled and unlabeled data are used to train the training model based on the overall loss function of the training model and iteratively update the parameters during the training process to obtain a training model that includes user gait features that are independent of non-gait behaviors and paths.
8. The method according to claim 7, characterized in that The loss function of the gait classification is: Among them, n a and n u is the number of labeled and unlabeled data used for training, K is the total number of users; and are the user labels of the predicted labeled data and unlabeled data, respectively; La is the loss function of the labeled data, and Lu is the loss function of the unlabeled data; The loss function of the domain discriminator is: Among them, n d and n t is the total amount of data used for training and the amount of target domain data, D is the number of domains, is the domain label, d ij is the true domain label of the i-th sample, is the predicted domain label of the i-th sample, is the predicted domain label of the i-th sample when the posterior distribution of the source domain and the target domain are aligned, is the predicted domain label of the i-th sample when adding classification constraints to the target domain, is the predicted label of the target domain of the i-th sample when adding classification constraints to the target domain; Ld is the loss function of the data of all domains, Lo is the loss function of predicting the data of all domains when aligning the posterior distribution of the source domain and the target domain, and Lt is the loss function of predicting the data of all target domains when adding classification constraints to the target domain; The overall loss function of the model is: L all =L a +αL o +βL d +γL o +λL t ; Among them, α, β, γ and λ are hyperparameters, and their parameter values are adjusted and set according to the training results.
9. The method according to claim 8, characterized in that During back propagation, the loss function of the domain discriminator is negative, and the loss function of the gait classification is positive.
Citation Information
Patent Citations
Robot gesture recognition method based on GA-CNN framework
CN111401261A
Gait recognition method based on human body contour and key point feature fusion
CN114821786A
WiFi fingerprint indoor positioning method based on denoising auto-encoder and convolutional neural network
CN116471660A
Multi-path gait recognition system and method based on WiFi-video cross-modal fusion
CN117115907A
Method, apparatus, and system for wireless human and non-human motion detection
US20240125888A1
Cited By
Fine-grained gait sub-phase recognition method and device based on spatial-temporal feature fusion
CN119723676A
