WiFi human body behavior identification method based on time sequence space double-flow learning

Through the time-series dual-stream learning method, combining the TCN and the multi-head self-attention mechanism layer to extract the characteristics of CSI data, the problem of inability to effectively distinguish the timing spatial characteristics of CSI data in the prior art is solved, and the accuracy of human behavior recognition of WiFi signals is improved.

CN119051702APending Publication Date: 2024-11-29NANJING TECH UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411022856.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing WiFi signal human behavior recognition method based on deep learning cannot effectively distinguish the timing spatial characteristics of CSI data, and cannot maintain the continuity characteristics of CSI data.

Method used

Using a time-series spatial dual-stream learning method, the CSI data is preprocessed and divided into spatial and temporal flows, combined with TCN and multi-head self-attention mechanism layers to extract channel features and time features, and aggregate them into channel time features. Artificial neural networks are trained to recognize human behavior.

Benefits of technology

The timing spatial characteristics of CSI data were effectively extracted, which improved the accuracy of human behavior recognition, and solved the problem of insufficient model's ability to characterize CSI continuous features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119051702A_ABST
    Figure CN119051702A_ABST
Patent Text Reader

Abstract

The invention provides a WiFi human body behavior recognition method based on time sequence space double-flow learning, and the method comprises the steps: presetting a plurality of human body behaviors, and collecting a CSI data set through a WiFi signal transmitter and a WiFi signal receiver; preprocessing and dividing into a spatial stream and a time sequence stream to form a training data set; the method comprises the following steps: respectively extracting channel features and time features corresponding to a spatial stream and a time sequence stream, aggregating the channel features and the time features into channel time features, learning joint representation of action samples to complete training so as to obtain an action recognition model, and evaluating and classifying human behavior data by using the model so as to accurately recognize different actions. According to the method, a TCN and a multi-head self-attention mechanism are combined by adopting a double-flow structure, it is guaranteed that CSI features are not leaked, longer memory capacity is kept, CSI continuous features of human behaviors can be effectively represented, the global feature extraction capacity of the model is enhanced, and the recognition result is accurate and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of signal processing, and in particular to a WiFi human behavior recognition method based on temporal-spatial dual-stream learning. Background Art

[0002] Human behavior recognition has always been an important research direction in computer science and engineering. Traditional human behavior recognition methods are relatively mature and usually require the use of sensors, cameras or other devices to monitor and capture activities, but these methods often require the person being monitored to wear equipment or may involve privacy issues. In this context, human behavior recognition technology based on WiFi signals has emerged for human behavior recognition. WiFi-based solutions are based on the principle that human behavior between WiFi transmitters and receivers will produce subtle and unique changes in WiFi signals, namely multipath and fading effects. There are two commonly used WiFi signal data: received signal strength RSS and channel state information CSI. CSI data has attracted widespread attention due to its finer granularity and rich environmental information that is beneficial to HAR tasks, as it provides fine-grained signal change information in indoor environments.

[0003] Existing research efforts seek various deep learning (DL) techniques to automatically extract informative features. Although effective, existing DL-based solutions have some common shortcomings, such as the inability to distinguish the completely different meanings of the two dimensions of CSI data, and the point-level granularity of the model is too small to see the continuity of CSI data.

[0004] Therefore, how to pay attention to the temporal and spatial characteristics of CSI data without losing the continuity characteristics of CSI data is an urgent problem to be solved. Summary of the invention

[0005] The purpose of the present invention is to propose a new WiFi human behavior recognition method based on temporal-spatial dual-stream learning, in order to solve the problem that traditional machine learning algorithms require researchers to manually extract channel or time features from the acquired WiFi channel state information CSI, and cannot effectively characterize the CSI continuous features of human behavior.

[0006] The technical solution of the present invention is:

[0007] The present invention provides a WiFi human behavior recognition method based on temporal-spatial dual-stream learning, the method comprising the following steps:

[0008] Step 1: Preset several human behaviors and use WiFi signal transmitters and receivers to collect channel state information (CSI) data sets;

[0009] Step 2: Preprocess the CSI data set and divide it into a spatial stream and a temporal stream to form a training data set;

[0010] Step 3: Input the CSI data corresponding to the human behavior into the artificial neural network for training;

[0011] The corresponding channel features and time features of the spatial stream and the time stream CSI data are extracted respectively, and the channel features and time features are aggregated into channel time features;

[0012] The channel time features of CSI data corresponding to various human behaviors are obtained respectively, the probability distribution is calculated and sorted, and the action with the highest probability is taken as the recognition result. After training, the action recognition model is obtained.

[0013] Step 4: Use a WiFi signal receiver to collect the CSI data of the human behavior to be tested in real time, input it into the action recognition model, and obtain the human behavior based on the CSI data.

[0014] Furthermore, the human body behaviors include picking up, lifting, running, sitting, walking, bending, turning around, squatting, jumping, pulling, pushing, throwing, waving, clapping, and kicking.

[0015] Furthermore, the WiFi signal transmitter and receiver are used to collect human behavior data based on CSI data. The specific method of collecting is as follows:

[0016] Select A actions according to the number of human behaviors and record the behavior labels;

[0017] Select N people according to their body types and record their labels;

[0018] Between the transmitter and the receiver, set D distances according to the number of distances between the experimenter and the transmitter, and record the distance labels;

[0019] Set up O kinds of controllable interference and obstruction situations in the experimental field and record the obstruction labels;

[0020] A human behavior dataset is established based on various behavior labels, personnel labels, distance labels, and obstacle labels, with a data volume of A×N×D×O.

[0021] Furthermore, in step 2, the CSI data set is preprocessed and divided into a spatial stream and a temporal stream to form a training data set, including:

[0022] Step 2.1, read the CSI standard format data set obtained by the WiFi receiver, the shape is [sampling time T, number of transmitter antennas, number of receiver antennas, number of subcarriers];

[0023] Step 2.2, perform dimensionality reduction operation on the CSI data set so that the dimension of each CSI data is T×C; T represents the sampling time, and C represents the number of transmitter antennas×the number of receiver antennas×the number of subcarriers; perform a transposition operation on each CSI data, and after the transposition, the dimension of each CSI data is C×T;

[0024] Step 2.3: split the CSI data, input the data with a dimension of C×T into the spatial stream, and input the data with a dimension of T×C into the temporal stream;

[0025] Step 2.4: Use a Butterworth low-pass filter to process the CSI data in the spatial stream and the temporal stream respectively, and use the filtered CSI data as a training data set.

[0026] Furthermore, the amplitude-frequency response function of the Butterworth low-pass filter is expressed as:

[0027]

[0028] Where: N represents the filter order, Ωc represents the filter cutoff frequency, Ωc is normalized by fc and is expressed as 2ω c / f s , f s Indicates the sampling frequency.

[0029] Furthermore, the corresponding channel features and time features of the spatial stream and the timing stream CSI data extracted in step 3 include:

[0030] Let the input sequences of temporal stream and spatial stream be X T =x 1 ,x 2 ,…,x T and X C =x 1 ,x 2 ,…,x C ; The data dimension of the time series stream is T×C, and the data dimension of the spatial stream is C×T;

[0031] Eight TCN layers and eight multi-head self-attention mechanism layers are used for residual connection to process the input sequence and obtain the temporal feature P Ti , channel feature P Ci ;

[0032] Among them, the diffusion coefficient of each of the 8 TCN layers increases exponentially, the diffusion coefficient of the first TCN layer is 1, the second layer is 2, the third layer is 4, and so on, until the eighth layer is 128; each TCN layer outputs TCN (W; X) connected to a multi-head self-attention mechanism layer as input, W represents a variable weight, i represents the number of the TCN layer and the multi-head self-attention mechanism layer:

[0033] P 1 =MultiheadAttention(TCN(W;X))

[0034] P i =MultiheadAttention(TCN(W;P i-1 )),i=2,3,...,8.

[0035] Furthermore, each TCN layer performs two sets of connected causal diffusion convolution operations on the input sequence to obtain the feature matrix P b , the feature matrix P b As the output TCN(W;X) of the current TCN layer, the residual is processed and input into the corresponding multi-head self-attention mechanism layer, specifically:

[0036] P a =Dropout(ReLU(WeightNorm(DilatedCasualConv(W;X))))

[0037] P b =Dropout(ReLU(WeightNorm(DilatedCasualConv(W;P a )))).

[0038] Among them: Dropout() represents the Dropout operation, ReLU() represents the ReLU function, WeightNorm() represents the weight normalization operation, DilatedCasualConv() represents the causal diffusion convolution operation, P a represents the result of the first set of causal diffusion convolution operations, and W represents the variable weights in the TCN layer.

[0039] Furthermore, the multi-head self-attention mechanism layer processes the input sequence including:

[0040] The feature matrix P output by the current TCN layer is calculated using the following formula: b Perform linear projection to generate query vector Q, key vector K and value vector V;

[0041] Q=P b W Q ,K=P b W K ,V=P b W V

[0042] Among them, W Q ,W K ,W V is the projection parameter;

[0043] The query vector Q, key vector K and value vector V are independently projected into h subspaces, the outputs of each projection are concatenated and projected again to obtain the final output MultiHeadAttention(Q,K,V), which is used as the output of the current multi-head self-attention mechanism layer;

[0044] head j =Attention(QW j Q ,KW j K ,VW j V )

[0045] MultiHeadAttention(Q,K,V)=Concat[jead 1 ;…head j …;head h ]W m

[0046] Where: h represents the number of subspaces, j represents the subspace number, W j Q ,W j K ,W j V represents the projection parameter of the subspace numbered j, W m is the variable weight of the multi-head self-attention mechanism layer.

[0047] Furthermore, in step 3, the channel features and time features are aggregated into channel time features as follows:

[0048] CNN operation is used to aggregate channel features and time features respectively to obtain the channel aggregation feature matrix O C and the time-aggregated feature matrix O T :

[0049] O T =Dropout(ReLU(MaxPooling(Conv(W l ;P T8 ))))

[0050] O C =Dropout(ReLU(MaxPooling(Conv(W l ;P C8 ))))

[0051] Among them, P T8 and P C8 denote the output of the eighth multi-head self-attention mechanism layer of the temporal stream and the spatial stream, respectively, and Wl Represents variable weights, Conv() represents convolution operation, and MaxPooling() represents maximum pooling operation;

[0052] The channel aggregation feature matrix O C and the time-aggregated feature matrix O T Concatenate and normalize to obtain the channel time feature O:

[0053] O = Concat[O t ;O c ].

[0054] Furthermore, in step 3, the Softmax function is used to calculate the probability distribution of the channel time characteristics of the CSI data corresponding to various human behaviors:

[0055]

[0056] in, represents the predicted probability of the mth type of human behavior, m = 1, 2...A, m represents the number of the human behavior category, A represents the total number of human behaviors, O m Represents the channel time characteristics of the aggregated output corresponding to the mth type of human behavior.

[0057] Beneficial effects of the present invention:

[0058] The WiFi human behavior recognition method based on temporal-spatial dual-stream learning of the present invention performs action recognition based on CSI data and combines TCN with a multi-head self-attention mechanism by adopting a dual-stream structure.

[0059] On the one hand, by combining causal convolution and diffuse convolution, it ensures that the CSI features do not leak from the future to the past, and effectively expands the receptive field to maintain a longer memory capacity.

[0060] On the other hand, the multi-head self-attention mechanism is used to assign more weight to the CSI data representing human behavior, which solves the problem of manually extracting channel or time features from CSI but cannot effectively characterize the continuous features of CSI of human behavior, and enhances the model's ability to extract global features.

[0061] Before extracting each feature, the present invention first processes the CSI signal to obtain a channel timing stream containing different feature information, making full use of information at different levels of the CSI signal channel time, thereby improving the accuracy of the retrieval result.

[0062] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.

[0064] Figure 1 It is a flow chart of the WiFi human behavior recognition method based on temporal-spatial dual-stream learning of the present invention.

[0065] Figure 2 It is a schematic diagram of the structure of the action recognition model of the present invention.

[0066] Figure 3 It is a schematic diagram of the causal diffusion convolution operation of the present invention. DETAILED DESCRIPTION

[0067] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0068] like Figure 1 As shown, the present invention provides a WiFi human behavior recognition method based on temporal-spatial dual-stream learning, and the method comprises the following steps:

[0069] Step 1: Preset several human behaviors and use WiFi signal transmitters and receivers to collect channel state information (CSI) data sets;

[0070] Step 2: Preprocess the CSI data set and divide it into a spatial stream and a temporal stream to form a training data set, including:

[0071] Step 2.1, read the CSI standard format data set obtained by the WiFi receiver, the shape is [sampling time T, number of transmitter antennas, number of receiver antennas, number of subcarriers];

[0072] Step 2.2, perform dimensionality reduction operation on the CSI data set so that the dimension of each CSI data is T×C; T represents the sampling time, and C represents the number of transmitter antennas×the number of receiver antennas×the number of subcarriers; perform a transposition operation on each CSI data, and after the transposition, the dimension of each CSI data is C×T;

[0073] Step 2.3: split the CSI data, input the data with a dimension of C×T into the spatial stream, and input the data with a dimension of T×C into the temporal stream;

[0074] Step 2.4: Use a Butterworth low-pass filter to process the CSI data in the spatial stream and the time series stream respectively, and use the filtered CSI data as a training data set. The amplitude-frequency response function of the Butterworth low-pass filter is expressed as:

[0075]

[0076] Where: N represents the filter order, Ωc represents the filter cutoff frequency, Ωc is normalized by fc and is expressed as 2ω c / f s , f s Indicates the sampling frequency.

[0077] Step 3: Input the CSI data corresponding to the human behavior into the artificial neural network for training;

[0078] Step 3.1, extract the corresponding channel features and time features of the spatial stream and the time stream CSI data respectively, and aggregate the channel features and time features into channel time features;

[0079] Let the input sequences of temporal stream and spatial stream be X T =x 1 ,x 2 ,…,x T and X C =x 1 ,x 2 ,…,x C ; The data dimension of the time series stream is T×C, and the data dimension of the spatial stream is C×T;

[0080] like Figure 2 As shown in Figure 1, 8 TCN layers and 8 multi-head self-attention mechanism layers are used to perform residual connections to process the input sequence and obtain the temporal feature P Ti , channel feature P Ci , according to the needs of the model application scenario, it can be set to several TCN layers and a corresponding number of multi-head self-attention mechanism layers;

[0081] Among them, the diffusion coefficient of each of the 8 TCN layers increases exponentially, the diffusion coefficient of the first TCN layer is 1, the second layer is 2, the third layer is 4, and so on, until the eighth layer is 128; each TCN layer outputs TCN (W; X) connected to a multi-head self-attention mechanism layer as input, W represents a variable weight, i represents the number of the TCN layer and the multi-head self-attention mechanism layer:

[0082] P 1 =MultiheadAttention(TCN(W;X))

[0083] P i=MultiheadAttention(TCN(W;P i-1 )),i=2,3,...,8.

[0084] Step 3.1.1: Each TCN layer performs two sets of connected causal diffusion convolution operations on the input sequence to obtain the feature matrix P b , the feature matrix P b As the output TCN(W;X) of the current TCN layer, the residual is processed and input into the corresponding multi-head self-attention mechanism layer, specifically:

[0085] P a =Dropout(ReLY(WeightNorm(DilatedCasualConv(W;X))))

[0086] P b =Dropout(ReLU(WeightNorm(DilatedCasualConv(W;P a )))).

[0087] Among them: Dropout() represents the Dropout operation, ReLU() represents the ReLU function, WeightNorm() represents the weight normalization operation, DilatedCasualConv() represents the causal diffusion convolution operation, P a represents the result of the first set of causal diffusion convolution operations, and W represents the variable weights in the TCN layer.

[0088] Step 3.1.2: Use the multi-head self-attention mechanism layer to process the sequence output by the current layer TCN, including:

[0089] A. Use the following formula to calculate the feature matrix P output by the current TCN layer b Perform linear projection to generate query vector Q, key vector K and value vector V;

[0090] Q=P b W Q ,K=P b W K ,V=P b W V

[0091] Among them, W Q ,W K ,W V is the projection parameter;

[0092] B. Project the query vector Q, key vector K, and value vector V independently into h subspaces, concatenate the outputs of each projection and project them again to obtain the final output MultiHeadAttention(Q,K,V), which is used as the output of the current multi-head self-attention mechanism layer;

[0093] head j =Attention(QW j Q ,KW j K ,VW j V )

[0094] MultiHeadAttention(Q,K,V)=Concat[head 1 ;…head j …;head h ]W m

[0095] Where: h represents the number of subspaces, j represents the subspace number, W j Q ,W K j ,W j V represents the projection parameter of the subspace numbered j, W m is the variable weight of the multi-head self-attention mechanism layer.

[0096] Step 3.1.3: Aggregate channel features and time features into channel time features:

[0097] A. Use CNN operation to aggregate channel features and time features respectively to obtain the channel aggregation feature matrix O C and the time-aggregated feature matrix O T :

[0098] O T =Dropout(ReLU(MaxPooling(Conv(W l ;P T8 ))))

[0099] O C =Dropout(ReLU(MaxPooling(Conv(W l ;P C8 ))))

[0100] Among them, P T8 and P C8 denote the output of the eighth multi-head self-attention mechanism layer of the temporal stream and the spatial stream, respectively, and Wl Represents variable weights, Conv() represents convolution operation, and MaxPooling() represents maximum pooling operation;

[0101] B. Aggregate the channel feature matrix O C and the time-aggregated feature matrix O T Concatenate and normalize to obtain the channel time feature O:

[0102] O = Concat[O t ;O t ].

[0103] Step 3.2, respectively obtain the channel time characteristics of CSI data corresponding to various human behaviors, calculate the probability distribution and sort them, take the action with the highest probability as the recognition result, complete the training and obtain the action recognition model;

[0104] Among them, the Softmax function is used to calculate the probability distribution of the channel time characteristics of the CSI data corresponding to various human behaviors:

[0105]

[0106] in, represents the predicted probability of the mth type of human behavior, m = 1, 2...A, m represents the number of the human behavior category, A represents the total number of human behaviors, O m Represents the channel time characteristics of the aggregated output corresponding to the mth type of human behavior.

[0107] Step 4: Use a WiFi signal receiver to collect the CSI data of the human behavior to be tested in real time, input it into the action recognition model, and obtain the human behavior based on the CSI data.

[0108] The human behaviors include picking up, lifting, running, sitting, walking, bending, turning around, squatting, jumping, pulling, pushing, throwing, waving, clapping, and kicking.

[0109] Among them, the WiFi signal transmitter and receiver are used to collect human behavior data based on CSI data. The specific method of collection is:

[0110] According to the number of human behaviors, 15 actions were selected, including picking up, lifting, running, sitting, walking, bending, turning around, squatting, jumping, pulling, pushing, throwing, waving, clapping, and kicking. The behavior labels are A001 to A015;

[0111] In order to avoid the data collection personnel composition being too single, ten people of different heights, weights, and body shapes were selected as experimental personnel, and the personnel labels were N001 to N010;

[0112] On the basis of setting the distance between the transmitter and the receiver to 4 meters, three distances between the experimenter and the transmitter were set as variables, that is, the experimenter stood at 1 meter, 2 meters, and 3 meters away from the transmitter to collect data respectively, and the distance labels were D001 to D003;

[0113] Controllable interference obstacles were artificially set up in the experimental site to simulate the actual application scenario. The variables were no obstacle, a chair was placed on one side of the experimenter, and a chair was placed on both sides of the experimenter. The obstacle labels were O001 to O003.

[0114] A human behavior dataset is established based on various behavior labels, personnel labels, distance labels, and obstacle labels, with a data volume of A×N×D×O.

[0115] In the present invention, the cross entropy loss function is used to calculate the loss during model training:

[0116]

[0117] Among them, A represents the total number of action categories, y a Corresponding to the action label, r a Represents the action result finally predicted by the model.

[0118] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A WiFi human behavior recognition method based on temporal-spatial dual-stream learning, characterized in that: The method comprises the following steps: Step 1: Preset several human behaviors and use WiFi signal transmitters and receivers to collect channel state information (CSI) data sets; Step 2: Preprocess the CSI data set and divide it into a spatial stream and a temporal stream to form a training data set; Step 3: Input the CSI data corresponding to the human behavior into the artificial neural network for training; The corresponding channel features and time features of the spatial stream and the time stream CSI data are extracted respectively, and the channel features and time features are aggregated into channel time features; The channel time features of CSI data corresponding to various human behaviors are obtained respectively, the probability distribution is calculated and sorted, and the action with the highest probability is taken as the recognition result. After training, the action recognition model is obtained. Step 4: Use a WiFi signal receiver to collect the CSI data of the human behavior to be tested in real time, input it into the action recognition model, and obtain the human behavior based on the CSI data.

2. According to claim 1, the WiFi human behavior recognition method based on temporal-spatial dual-stream learning is characterized in that The human behaviors include picking up, lifting, running, sitting, walking, bending, turning around, squatting, jumping, pulling, pushing, throwing, waving, clapping, and kicking.

3. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 1 is characterized in that The human behavior data based on CSI data is collected using WiFi signal transmitters and receivers. The specific method of collection is as follows: Select A actions according to the number of human behaviors and record the behavior labels; Select N people according to their body types and record their labels; Between the transmitter and the receiver, set D distances according to the number of distances between the experimenter and the transmitter, and record the distance labels; Set up O kinds of controllable interference and obstruction situations in the experimental field and record the obstruction labels; A human behavior dataset is established based on various behavior labels, personnel labels, distance labels, and obstacle labels, with a data volume of A×N×D×O.

4. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 1 is characterized in that In step 2, the CSI data set is preprocessed and divided into a spatial stream and a temporal stream to form a training data set including: Step 2.1, read the CSI standard format data set obtained by the WiFi receiver, the shape is [sampling time T, number of transmitter antennas, number of receiver antennas, number of subcarriers]; Step 2.2, perform dimensionality reduction operation on the CSI data set so that the dimension of each CSI data is T×C; T represents the sampling time, and C represents the number of transmitter antennas×the number of receiver antennas×the number of subcarriers; perform a transposition operation on each CSI data, and after the transposition, the dimension of each CSI data is C×T; Step 2.3: split the CSI data, input the data with a dimension of C×T into the spatial stream, and input the data with a dimension of T×C into the temporal stream; Step 2.4: Use a Butterworth low-pass filter to process the CSI data in the spatial stream and the time stream respectively, and use the filtered CSI data as a training data set.

5. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 4 is characterized in that The amplitude-frequency response function of the Butterworth low-pass filter is expressed as: Where: N represents the filter order, Ωc represents the filter cutoff frequency, Ωc is normalized by fc and is expressed as 2ω c / f s , f s Indicates the sampling frequency.

6. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 1 is characterized in that The corresponding channel features and time features of the spatial stream and timing stream CSI data extracted in step 3 include: Let the input sequences of temporal stream and spatial stream be X T =x1,x2,…,x T and X C =x1,x2,…,x C ; The data dimension of the time series stream is T×C, and the data dimension of the spatial stream is C×T; Eight TCN layers and eight multi-head self-attention mechanism layers are used for residual connection to process the input sequence and obtain the temporal feature P Ti , channel feature P ci ; Among them, the diffusion coefficient of each of the 8 TCN layers increases exponentially, the diffusion coefficient of the first TCN layer is 1, the second layer is 2, the third layer is 4, and so on, until the eighth layer is 128; each TCN layer outputs TCN (W; X) connected to a multi-head self-attention mechanism layer as input, W represents a variable weight, i represents the number of the TCN layer and the multi-head self-attention mechanism layer: P1=MultiheadAttention(TCN(W;X)) P i =MultiheadAttention(TCN(W;P i+1 )),i=2,3,...,8。 7. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 6 is characterized in that Each TCN layer performs two sets of connected causal diffusion convolution operations on the input sequence to obtain the feature matrix P b , the feature matrix P b As the output TCN(W;X) of the current TCN layer, the residual is processed and input into the corresponding multi-head self-attention mechanism layer, specifically: P a =Dropout(ReLU(WeightNorm(DilatedCasualConv(W;X)))) P b =Dropout(ReLU(WeightNorm(DilatedCasualConv(W;P a ))))。 Among them: Dropout () represents the Dropout operation, ReLU () represents the ReLU function, WeightNorm () represents the weight normalization operation, DilatedCasualConv () represents the causal diffusion convolution operation, P a represents the result of the first set of causal diffusion convolution operations, and W represents the variable weights in the TCN layer.

8. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 5 is characterized in that The multi-head self-attention mechanism layer processes the input sequence including: The feature matrix P output by the current TCN layer is calculated using the following formula: b Perform linear projection to generate query vector Q, key vector K and value vector V; Q=P b W Q ,K=P b W K ,V=P b W V Among them, W Q , W K , W V is the projection parameter; The query vector Q, key vector K and value vector V are independently projected into h subspaces, the outputs of each projection are concatenated and projected again to obtain the final output MultiHeadAttention(Q,K,V), which is used as the output of the current multi-head self-attention mechanism layer; head j =Attention(QW j Q ,KW j K ,VW j V ) MultiHeadAttention(Q,K,V)=Concat[head1;...head j ....;head h ]W m Where: h represents the number of subspaces, j represents the subspace number, W j Q , W j K , W j V represents the projection parameter of the subspace numbered j, W m is the variable weight of the multi-head self-attention mechanism layer.

9. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 8 is characterized in that In step 3, the channel features and time features are aggregated into channel time features as follows: CNN operation is used to aggregate channel features and time features respectively to obtain the channel aggregation feature matrix O C and the time-aggregated feature matrix O T : ZERO T =Dropout(ReLU(MaxPooling(Conv(Wl;PT8)))) O C =Dropout(ReLU(MaxPooling(Conv(W l ;P C8 )))) Among them, P T8 and P C8 denote the output of the eighth multi-head self-attention mechanism layer of the temporal stream and the spatial stream, respectively, and W l represents variable weights, Conv() represents convolution operation, and MaxPooling() represents maximum pooling operation; The channel aggregation feature matrix O C and the time-aggregated feature matrix O T Concatenate and normalize to obtain the channel time feature O: O=Concat[O t ;A c ]。 10. The WiFi human behavior recognition method based on temporal-spatial dual-stream learning according to claim 1 is characterized in that: In step 3, the Softmax function is used to calculate the probability distribution of the channel time characteristics of the CSI data corresponding to various human behaviors: in, represents the predicted probability of the mth type of human behavior, m = 1, 2...A, m represents the number of the human behavior category, A represents the total number of human behaviors, O m Represents the channel time characteristics of the aggregated output corresponding to the mth type of human behavior.

Citation Information

Cited By

  • Wireless human body action recognition method and device, equipment, storage medium and product

    CN119272068A

  • Taijiquan action recognition method of hybrid cascade architecture

    CN119807851A

  • A taijiquan action recognition method of a hybrid cascade architecture

    CN119807851B