Wi-Fi visual sensing method based on Markov transfer field

Through the Wi-Fi visual perception method based on Markov transfer field and channel attention mechanism, CSI images are generated and combined with the ViT network model, which solves the problems of low stability of CSI feature extraction and low accuracy of gesture recognition in the existing technology, and achieves Highly accurate gesture recognition.

CN118711245AActive Publication Date: 2024-09-27XIDIAN UNIV

Patent Information

Application Number
CN202410727358.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-27
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing Wi-Fi sensing algorithms have poor stability and versatility when extracting CSI features, especially methods based on CSI phase information, and deep learning models have insufficient processing capabilities for complex and irregular input data. This leads to a decrease in gesture recognition accuracy.

Method used

The Wi-Fi visual perception method based on Markov transfer field is used to generate the Markov transfer field image by calculating the amplitude of CSI, and the channel attention mechanism is used to correct the CSI image, and combined with the ViT network model for training to improve gestures Recognition accuracy.

Benefits of technology

Through the combination of Markov transfer field and channel attention mechanism, CSI features can be accurately extracted and the accuracy of gesture recognition is improved. The simulation results show that the accuracy of gesture recognition of the ViT network model after 30 rounds of training reaches 89.17%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711245A
    Figure CN118711245A
Patent Text Reader

Abstract

The invention discloses a Wi-Fi (Wireless Fidelity) visual sensing method based on a Markov transfer field, which mainly solves the problems of poor channel state information (CSI) feature extraction effect and low recognition accuracy in the prior art. According to the implementation scheme, the method comprises the following steps: representing the change characteristic of a Wi-Fi signal along with time by using a Markov state transition characteristic, and converting CSI data into a CSI image; performing adaptive correction on the CSI image based on a channel attention mechanism so as to focus channel feature information of the CSI image, and synthesizing an RGB three-channel CSI image; dividing the CSI images into a training set and a test set according to a set proportion; constructing a visual transformer ViT network model and training the visual transformer ViT network model through the training set; and inputting the test set into the trained ViT network model to obtain a gesture recognition result. The method can effectively extract the channel features of the CSI image, improves the accuracy of indoor human body gesture recognition, and can be used for imaging and recognition of indoor human body dynamic gestures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a Wi-Fi visualization perception method, which can be used for visualizing and recognizing dynamic gestures of human bodies indoors. Background Art

[0002] With the development of intelligent sensing technology, traditional sensing technologies such as visual perception, Bluetooth positioning, and Zigbee technology have certain limitations. For example, visual perception technology has high requirements for lighting conditions, shooting conditions, and device performance, and the captured images may threaten the privacy and security of users. In addition, Bluetooth positioning and Zigbee technologies have poor stability and require the deployment of additional hardware equipment, making them difficult to apply in practice.

[0003] During the transmission process, reflection, refraction, and scattering of Wi-Fi signals due to the movement of human bodies or other objects will cause changes in the signals. Wireless sensing technology based on Wi-Fi uses conventional communication equipment to capture the propagation characteristics of Wi-Fi signals in wireless channels, and combines data analysis algorithms to implement intelligent sensing applications such as intrusion detection and human behavior recognition. Due to the wide coverage, low cost, and easy deployment of Wi-Fi, Wi-Fi sensing has become an ideal research object in the field of intelligent sensing.

[0004] According to the IEEE802.11 standard, Wi-Fi signals use OFDM systems, which contain multiple orthogonal subcarriers. The channel state information (CSI) describes the path loss, signal attenuation and other characteristics of Wi-Fi signals on the transmission path. For a single-transmitter-multiple-receiver system, CSI is a dimension of N. Rx ×N c ×N p A three-dimensional complex tensor of , where N Rx is the number of receiving antennas, N c is the number of subcarriers, N p is the number of data packets. Due to the complexity of the data, it is necessary to extract effective information for subsequent processing. In recent years, relevant researchers at home and abroad have proposed that the amplitude information of CSI can be extracted while ignoring its phase information. Since the amplitude of CSI contains rich channel characteristics, the method of extracting the amplitude can effectively reduce the dimension of the data and facilitate the development of subsequent perception algorithms. At the same time, some studies have pointed out that the extraction of effective data can also be completed after pre-processing such as unwrapping the phase information of CSI. However, the phase noise of CSI is large, resulting in poor stability and versatility of the perception algorithm based on CSI phase.

[0005] Existing Wi-Fi sensing algorithms can be mainly divided into two categories: model-based methods and learning-based methods. Model-based methods use physical models that describe the Wi-Fi signal propagation process to explain the underlying mechanism of Wi-Fi sensing. This method has a high accuracy rate in simple sensing scenarios, but in complex sensing scenarios, it is difficult for physical models to accurately capture the dynamic changes of signals, resulting in poor sensing effects. Learning-based methods input a large number of data samples into machine learning or deep learning models, and use the learning ability of the model to understand the potential properties of different data samples. This method uses large-scale data for training, does not require professional knowledge in the communication field, and the trained model has strong scalability and generalization capabilities.

[0006] Learning-based perception methods can be divided into machine learning-based methods and deep learning-based methods. Machine learning-based methods first need to extract statistical features of the data. Common algorithms for extracting features include principal component analysis (PCA), fast Fourier transform (FFT), and inverse fast Fourier transform (IFFT). For example, Shuyu used FFT to extract features in the paper "ActiviTune: A Multi-stage System for Activity Recognition of Passive Entities from AmbientFM-Radio Signals" and used support vector machine (SVM), K-nearest neighbor algorithm (KNN), and decision tree (DT) to classify five different activities. However, CSI data is high-dimensional and complex information, and feature extraction algorithms such as PCA and FFT are difficult to extract complete feature information related to the time domain, frequency domain, and spatial domain. The performance of machine learning-based methods is highly dependent on appropriate feature selection. If the feature dimension is insufficient or the feature selection is inappropriate, the model may not be able to learn enough information to make accurate predictions.

[0007] In the field of deep learning, image processing algorithms have developed relatively maturely, and the mainstream method is based on convolutional neural networks (CNNs), which can effectively extract features from images. For example, Qirong proposed a gesture recognition method based on deep transfer learning technology in the paper "Deep transfer learning for gesture recognition with WiFi signals". This method expresses CSI as an image matrix, and uses a deep CNN model and a fine-tuned CNN model to extract high-level features of the image, thereby achieving gesture recognition. Although CNN models have been widely used in image feature extraction problems, this model lacks flexibility and has a relatively fixed structure. For each pixel in the image, it only focuses on the pixel values ​​of its neighborhood, making it difficult to process complex and irregular input data, resulting in a decrease in the final recognition accuracy. Summary of the invention

[0008] The purpose of the present invention is to address the shortcomings of the above methods and propose a Wi-Fi visual perception method based on Markov transition field to improve the CSI feature extraction effect and enhance the gesture recognition accuracy.

[0009] To achieve the above object, the technical solution adopted by the present invention includes the following steps:

[0010] (1) Collecting channel state information (CSI) data of different gestures in an experimental environment

[0011] (2) Based on the amplitude of CSI, generate the Markov transition field image corresponding to the gesture:

[0012] 2a) Calculate the amplitude of CSI

[0013] 2b) Based on the amplitude of CSI Define the state tensor of each subcarrier at different times

[0014] 2c) According to the state tensor Calculate the transition probability tensor

[0015] 2d) Transition probability tensor Computing Markov transition fields Generate CSI image M i:: :

[0016] 2d1) Define the Markov transition field: N p is the number of CSI packets, N c Indicates the number of subcarriers of the Wi-Fi signal, N m =3×N c ; Among them, m ijk is the state transition probability of the i-th Markov chain at time j and time k, let u = ceil (i / N c ), v = mod(i / N c ), then m ijk It is expressed as:

[0017] m ijk =w ij′k′ |j′=s uvj ,k′=s uvk ;

[0018] 2d2) According to the principle of tensor decomposition, Horizontal slicing generates CSI images, namely, the Markov transition field Mi:: :

[0019]

[0020] The value range of j is [1,N p ], the value range of k is [1,N p ];

[0021] (3) According to the channel attention mechanism CAM, the CSI image is modified to obtain the training set and test set:

[0022] 3a) The three-dimensional Markov field Perform global maximum pooling and global average pooling in spatial dimensions respectively, and obtain two dimensions of N m ×1×1 feature map;

[0023] 3b) The feature maps are sent to a shared multi-layer perceptron MLP for learning, and the channel attention weight matrix is ​​calculated

[0024] 3c) According to the weight matrix M c Select the channel with the largest weight to generate three modified Markov transfer fields, corresponding to the R channel, G channel, and B channel of the image, to synthesize a pseudo-color image

[0025] 3d) Divide the pseudo-color image x into a training set and a test set in a ratio of 3:1;

[0026] (4) Construct a ViT network model consisting of a preprocessing module, a vector mapping layer, a coding layer, and a multi-layer perceptron classification layer connected in sequence;

[0027] (5) Input the training set into the ViT network model and train it using back propagation to obtain a trained ViT network model;

[0028] (6) Input the test set into the trained ViT network model to obtain the gesture classification results.

[0029] Compared with the prior art, the present invention has the following advantages:

[0030] Firstly, the present invention uses the channel attention mechanism CAM to correct the channel state information CSI image, which can focus on the channel feature information of the CSI image, thereby realizing accurate extraction of CSI features;

[0031] Secondly, the present invention uses the Markov state transition characteristic to characterize the change characteristics of the Wi-Fi signal over time, and transforms the CSI data into a CSI image, thereby improving the accuracy of gesture recognition;

[0032] The simulation results show that the present invention uses the ViT network after 30 rounds of training to recognize the gestures of the tested person with an accuracy rate of 89.17%. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a general flow chart for realizing the present invention;

[0034] Figure 2 are CSI image samples corresponding to different gestures in the present invention;

[0035] Figure 3 is a sub-flow chart for correcting the CSI image in the present invention;

[0036] Figure 4 is a diagram of the ViT network structure constructed in the present invention;

[0037] Figure 5 It is a comparison chart of the results of using the ViT network model trained by the present invention to recognize the training set and the test set respectively. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, other embodiments obtained by ordinary technicians in this field without creative work should all fall within the scope of protection of the present invention.

[0039] It should be noted that the step numbers in the specification and claims of the present invention are only for a clear description of the implementation scheme of the present invention to facilitate understanding, and the order of the step numbers is not limited.

[0040] Reference Figure 1 The implementation steps of this example include the following:

[0041] Step 1: Collect channel state information (CSI) data of different gestures in an experimental environment

[0042] This embodiment uses CSI gesture data in the Widar 3.0 data set, and the test gestures are: push / pull, sweep, applause, and slide. The specific implementation is as follows:

[0043] 1.1) Place a Wi-Fi signal transmitter and three receivers in an open space indoors, and mark the transmitter as Tx and the receiver as Rx i ,i=1,2,3;

[0044] 1.2) Use the transmitter and each receiver to form a Wi-Fi channel, generating a total of 3 independent Wi-Fi channels, and set each Wi-Fi signal to contain N c orthogonal subcarriers to form a test environment;

[0045] 1.3) The person being tested stands in the above test environment and performs dynamic gestures such as push / pull, sweep, clap, and slide. Three receivers collect data simultaneously, collecting N data in total. p CSI data packets are collected and the test environment, the person being tested, and the gesture type are annotated;

[0046] 1.4) The three receivers contain different spatial dimension information, so the CSI data packets collected by the three receivers are merged to obtain a dimension of 3×N c ×N p Three-dimensional complex CSI data samples

[0047]

[0048] Among them, h ijk =x ijk +jy ijk Represents Rx i The channel state information CSI of the j-th subcarrier at time k, x ijk represents the real part of CSI, y ijk Represents the imaginary part of CSI. The value range of i is {1,2,3}, and the value range of j is [1,N p ], the value range of k is [1,N p ];

[0049] Step 2: Generate a Markov transition field image corresponding to the gesture based on the amplitude of the CSI.

[0050] Since the amplitude of CSI contains rich channel characteristics, the amplitude of CSI can be calculated instead of the original CSI data to reduce the dimension of the original CSI data.

[0051] 2.1) Calculate the amplitude of CSI, that is, calculate the channel state information CSI data Element h ijk The modulus value Get the amplitude tensor of CSI

[0052]

[0053] 2.2) According to the amplitude of CSI Define the state tensor of each subcarrier at different times

[0054] 2.2.1) Extract the amplitude based on the tensor decomposition principle The third mode fiber obtains vector A ij: :

[0055]

[0056] Among them, vector A ij: For the receiver Rx i The amplitude of the jth subcarrier; a ijk Indicates the receiver Rx i The amplitude of the channel state information CSI of the j-th subcarrier at time k;

[0057] Since the Wi-Fi signal is an OFDM system, different subcarriers are orthogonal, so the status at different times can be counted in different subcarriers respectively, which is implemented as follows: Steps 2.2.2) to 2.2.5):

[0058] 2.2.2) Vector A ij: The element a in ijk Sort by amplitude and divide equally into N s bins, each containing N p / N s elements, the value set of the bin number is:

[0059] 2.2.3) According to the situation that the subcarrier amplitudes in different bins are quite different, vector A ij: Middle ijk The number of the bin in which the subcarrier is located is taken as the state s of the subcarrier. ijk , to replace the CSI amplitude with a discrete state to further reduce the dimension of the data. ijk For Rx i The status information of the j-th subcarrier at time k;

[0060] 2.2.4) The state information s of the subcarrier at different times ijk Perform linear combination to get Rx i The state vector Si of the jth subcarrier j: :

[0061] Si j: =[si j1 ,si j2 ,…,s ijk ,…,s ijNp ] T

[0062] The Si j: For Rx iStatus information of the j-th subcarrier at different times;

[0063] 2.2.5) Rx i Medium c The state vector Si of the subcarrier j: Combine them to get the state tensor of CSI Should Each element in corresponds to CSI data one by one, representing the state of all subcarriers collected by the receiver at each moment;

[0064] 2.3) According to the state tensor Calculate the transition probability tensor

[0065] 2.3.1) According to the case where the transition probability value is [0,1], define the state transition probability value set of the channel state information CSI

[0066] 2.3.2) Based on the independent characteristics of the state vectors of different subcarriers, the state vector Si in each subcarrier is used j: Calculate the state transition frequency ni of each subcarrier at consecutive times j'k' :

[0067] n ij'k' = count(s ijk =j',si j(k+1) =k')

[0068] in,

[0069] 2.3.3) Si j: The state transition frequency n i'j'k' Approximately the state transition probability w of the state vector ij'k' , and for N s ×N s w ij'k' Combine them to get the transition probability matrix W i:: :

[0070]

[0071] 2.3.4) Collect N data from all receivers m =3×N c The transfer probability matrix W of subcarriers i:: Combined into a transition probability tensor:

[0072] 2.4) According to the transition probability tensor Computing Markov transition fields To generate the CSI image Mi:: :

[0073] 2.4.1) Define Markov transition field By N m It is composed of a two-dimensional Markov field, which can be expressed as:

[0074]

[0075] In the formula, m ijk represents the state transition probability of the i-th Markov chain at time j and time k, let u = ceil (i / N c ), v = mod(i / N c ), then m ijk It is expressed as:

[0076] m ijk =w ij'k' |j'=s uvj ,k'=s uvk ;

[0077] 2.4.2) According to the principle of tensor decomposition, Perform horizontal slicing to generate CSI image M i:: :

[0078]

[0079] In this step, different gestures generate corresponding CSI image samples, such as Figure 2 As shown, where:

[0080] Figure 2 (a) CSI image sample corresponding to push / pull gesture;

[0081] Figure 2 (b) shows the CSI image sample corresponding to the gesture sweep;

[0082] Figure 2 (c) shows the CSI image sample corresponding to the clapping gesture;

[0083] Figure 2 (d) shows the CSI image sample corresponding to the gesture sliding.

[0084] Step 3: Modify the CSI image according to the channel attention mechanism CAM to obtain the training set and test set.

[0085] Since the CSI image obtained in step 2 is not subjected to noise reduction processing, the feature information of the image will be submerged by high-frequency noise. Therefore, CAM is used to focus on the channel information of the image to achieve accurate extraction of CSI features.

[0086] Reference Figure 3, the implementation of this step to correct the CSI image is as follows:

[0087] 3.1) The three-dimensional Markov field Perform global maximum pooling and global average pooling in spatial dimensions respectively, and obtain two dimensions of N m ×1×1 feature map;

[0088] 3.2) Send the feature maps to a shared multi-layer perceptron MLP for learning, and calculate the channel attention weight matrix

[0089] 3.2.1) Set the dimension reduction coefficient of MLP to r;

[0090] 3.2.2) Set the number of neurons in the first layer of MLP to N m / r, the number of neurons in the second layer is N m , the activation function is the linear rectification function Relu;

[0091] 3.2.3) Input the feature maps obtained by global maximum pooling and global average pooling into the multi-layer perceptron MLP respectively, and obtain two feature maps with dimensions N m ×1×1 output feature map;

[0092] 3.2.4) Set the two dimensions to N m ×1×1 output feature maps are added and mapped through the logistic activation function Sigmoid to obtain the channel attention weight matrix It is used for Different weights are assigned to different channels. The larger the weight of a channel, the richer the CSI feature information contained in the channel.

[0093] 3.3) According to the channel attention weight matrix M c , from each receiver Rx i The channel with the largest weight is selected The Markov transfer field in the image is used to obtain three modified Markov transfer fields corresponding to the R channel, G channel, and B channel of the image, and then these three modified Markov transfer fields are synthesized into a pseudo-color image.

[0094] 3.4) Divide the pseudo-color image x into a training set and a test set in a ratio of 3:1.

[0095] Step 4: Build the Visual Transformers ViT network model.

[0096] 4.1) Establishing a preprocessing module consisting of an image cropping submodule and a standardization submodule, wherein the image cropping submodule is used to randomly crop the image, and the standardization submodule is used to perform a standardization operation on each channel of the image with a mean of 0.5 and a variance of 0.5;

[0097] 4.2) Establish a vector mapping layer consisting of a convolution layer and a mapping layer. The number of convolution kernels in the convolution layer is 768, the convolution kernel size is 16*16, and the step size is 16, which is used to perform convolution operations on the image; the mapping layer is used to splice the image block information mapping and the position information mapping to obtain the image mapping data;

[0098] 4.3) Establish an encoding layer including two residual modules, two normalization modules, two random inactivation modules, a multi-head attention module and a multi-layer perceptron module, and its structural relationship is as follows:

[0099] The first residual module → the first layer normalization module → the multi-head attention module → the first random inactivation module → the second residual module → the second layer normalization module → the multi-layer perceptron module → the second random inactivation module; the normalization module is used to connect the mapping data, the residual module is used to introduce the residual connection, the multi-head attention module and the multi-layer perceptron module are used to learn the mapping data and position information, and the random inactivation module is used to randomly inactivate the mapping data of the image;

[0100] 4.4) Construct a multi-layer perceptron classification layer consisting of a data slicing layer and a fully connected layer, wherein the data slicing layer is used to extract the category information of the image block, and the fully connected layer is used to output the predicted probability of the gesture category;

[0101] 4.5) Connect the preprocessing module, vector mapping layer, encoding layer and multi-layer perceptron classification layer in sequence to obtain the ViT network structure diagram, as shown in Figure 4 shown.

[0102] Step 5: Train the ViT network model to obtain a trained ViT network model.

[0103] 5.1) Set the optimizer to stochastic gradient descent SGD optimizer, set the optimizer's learning rate to 0.001, momentum factor to 0.9, and weight decay to 5e-5;

[0104] 5.2) Input the training set into the ViT network model to obtain the predicted probability distribution function of each data sample, and select the category corresponding to the maximum predicted probability in the predicted probability distribution function as the predicted category;

[0105] 5.3) Use the cross entropy loss function to calculate the loss value between the predicted category and the true category. This loss value describes the difference between the predicted category and the true category.

[0106] 5.4) Input the loss value into the back propagation algorithm to update the network parameters;

[0107] 5.5) Repeat steps 5.2)-5.4) until 30 rounds of training are completed to obtain the trained ViT network model.

[0108] Step 6: Input the test set into the trained ViT network model to obtain the gesture recognition result.

[0109] The effect of the present invention can be further illustrated by the following simulation experiment:

[0110] 1. Simulation data

[0111] Set 2250 training samples and 750 test samples.

[0112] The recognition network is the ViT network model trained by the method of the present invention.

[0113] 2. Simulation content

[0114] Under the above conditions, the training samples and test samples are input into the trained ViT network model to obtain their respective gesture recognition accuracies. The results are as follows: Figure 5 shown.

[0115] from Figure 5 It can be seen that the trained ViT model achieved an accuracy of 92.71% in the training set and 89.17% in the test set. This 3.54% difference is because the trained ViT model is trained using the training set, and its network parameters are gradually adjusted to adapt to the data in the training set. Therefore, when the model is tested on the training set, its recognition accuracy is higher; while for the unlearned test set data, the recognition accuracy will be slightly lower than that of the training set. The simulation results show that the present invention has a high gesture recognition accuracy for both learned and unlearned data.

Claims

1. A Wi-Fi visualization perception method based on Markov transition field, characterized in that: The steps include: (1) Collecting channel state information (CSI) data of different gestures in an experimental environment (2) Based on the amplitude of CSI, generate the Markov transition field image corresponding to the gesture: 2a) Calculate the amplitude of CSI 2b) Based on the amplitude of CSI Define the state tensor of each subcarrier at different times 2c) According to the state tensor Calculate the transition probability tensor 2d) According to the transition probability tensor Computing Markov transition fields Generate CSI image M i:: : 2d1) Define the Markov transition field: N p is the number of CSI packets, N c Indicates the number of subcarriers of the Wi-Fi signal, N m =3×N c ; Among them, m ijk is the state transition probability of the i-th Markov chain at time j and time k, let u = ceil (i / N c ), v = mod(i / N c ), then m ijk It is expressed as: m ijk =w ij'k' |j'=s uvj ,k'=s uvk ; 2d2) According to the principle of tensor decomposition, Perform horizontal slicing to generate CSI image M i:: : The value range of j is [1,N p ], the value range of k is [1,N p ]; (3) According to the channel attention mechanism CAM, the CSI image is modified to obtain the training set and test set: 3a) The three-dimensional Markov field Perform global maximum pooling and global average pooling in spatial dimensions respectively, and obtain two dimensions of N m ×1×1 feature map; 3b) The feature maps are sent to a shared multi-layer perceptron MLP for learning, and the channel attention weight matrix is ​​calculated 3c) According to the weight matrix M c Select the channel with the largest weight to generate three modified Markov transfer fields, corresponding to the R channel, G channel, and B channel of the image, to synthesize a pseudo-color image 3d) Divide the pseudo-color image x into a training set and a test set in a ratio of 3:1; (4) Construct a ViT network model consisting of a preprocessing module, a vector mapping layer, a coding layer, and a multi-layer perceptron classification layer connected in sequence; (5) Input the training set into the ViT network model and train it using back propagation to obtain a trained ViT network model; (6) Input the test set into the trained ViT network model to obtain the gesture classification results.

2. The method according to claim 1, characterized in that Step (1) Collect channel state information (CSI) data of different gesture actions in an experimental environment The implementation is as follows: 1a) Place a Wi-Fi signal transmitter and three receivers in an open space indoors, and mark the transmitter as Tx and the receiver as Rx i ,i=1,2,3; 1b) Use the transmitter to form a Wi-Fi channel with each receiver, and set each Wi-Fi signal to contain N c orthogonal subcarriers to form a test environment; 1c) The tester performs dynamic gestures in the test environment, and three receivers collect N p CSI data packets; 1d) Combine the data packets collected by the three receivers to obtain the CSI data samples corresponding to each gesture Among them, h ijk =x ijk +jy ijk Represents Rx i The channel state information CSI of the j-th subcarrier at time k, x ijk represents the real part of CSI, y ijk Represents the imaginary part of CSI.

3. The method according to claim 1, characterized in that: Step (2a) calculates the amplitude of CSI, which is to calculate the channel state information CSI data Element h ijk The modulus value Get the amplitude tensor of CSI Among them, x ijk represents the real part of CSI, y ijk Represents the imaginary part of CSI.

4. The method according to claim 1, characterized in that: Step (2b) is based on the amplitude of CSI Define the state tensor of each subcarrier at different times The implementation is as follows: 2b1) According to the principle of tensor decomposition, extract the amplitude The third mode fiber gets Rx i The amplitude vector A of the jth subcarrier ij: : Among them, a ijk Indicates the receiver Rx i The amplitude of the channel state information CSI of the j-th subcarrier at time k; 2b2) Vector A ij: The element a in ijk Sort by amplitude and divide equally into N s bins, each containing N p / N s elements, the value set of the bin number is 2b3) Vector A ij: Middle ijk The bin number is the state of the subcarrier. ijk ; 2b4) s ijk Linear combination, get Rx i The state vector S of the j-th subcarrier ij: : 2b5) Rx i N c The state vector S of the subcarrier ij : Combined into state tensor 5. The method according to claim 1, characterized in that Step (2c) is based on the state tensor Calculate the transition probability tensor The implementation is as follows: 2c1) Define the state transition probability value set of channel state information CSI 2c2) According to S ij: Calculate the state transition frequency of each subcarrier at consecutive moments; 2c3) Approximate the state transition frequency to the state transition probability and obtain the receiver Rx i The transition probability matrix W of the j-th subcarrier i:: : 2c4) N m The transition probability matrix W i:: Combined into a transition probability tensor 6. The method according to claim 1, characterized in that In step 3a), the three-dimensional Markov field Perform global maximum pooling and global average pooling in the spatial dimension respectively, and implement them as follows: 3a1) According to the tensor decomposition principle, the three-dimensional Markov field Perform horizontal slicing to generate N m Channel state information CSI image M i:: , that is, the two-dimensional Markov transition field M i:: ; 3a2) From each M i:: Select the largest numerical output and get the dimension N m ×1×1 feature map; 3a3) From each M i:: Solve the mean output of the elements in and get the dimension N m ×1×1 feature map.

7. The method according to claim 1, characterized in that In step 3b), the feature maps are sent to a shared multi-layer perceptron MLP for learning, and the channel attention weight matrix M is calculated. c , implemented as follows: 3b1) Set the dimension reduction coefficient to r; 3b2) Set the number of neurons in the first layer of the multilayer perceptron MLP to N m / r, the number of neurons in the second layer is N m , the activation function is the linear rectification function Relu; 3b3) Input the feature maps obtained by global maximum pooling and global average pooling into the multi-layer perceptron MLP respectively, and obtain two feature maps with dimensions N m ×1×1 output feature map; 3b4) Set the two dimensions to N m ×1×1 output feature maps are added and mapped through the logistic activation function Sigmoid to obtain the channel attention weight matrix 8. The method according to claim 1, characterized in that In step 3c), according to the weight matrix M c Select the channel with the largest weight to generate three modified Markov transfer fields, which are based on the channel attention weight matrix M c , from each receiver Rx i Select the channel with the maximum weight The Markov transfer field in is used to obtain three modified Markov transfer fields corresponding to the R channel, G channel, and B channel of the image respectively.

9. The method according to claim 1, characterized in that: The structural parameters of each layer of the ViT network model constructed in step (4) are as follows: The preprocessing module is composed of an image cropping submodule and a standardization submodule; the image cropping submodule is used to randomly crop the image; the standardization submodule is used to perform a standardization operation on each channel of the image with a mean of 0.5 and a variance of 0.5; The vector mapping layer is composed of a convolution layer and a mapping layer; the number of convolution kernels of the convolution layer is 768, the convolution kernel size is 16*16, and the step length is 16, which is used to perform a convolution operation on the image; the mapping layer is used to splice the image block information mapping and the position information mapping to obtain the image mapping data; The encoding layer is composed of a first residual module, a first layer normalization module, a multi-head attention module, a first random deactivation module, a second residual module, a second layer normalization module, a multi-layer perceptron module and a second random deactivation module, which are cascaded in sequence; the normalization module is used to connect the mapping data; the residual module is used to introduce residual connection; the multi-head attention module and the multi-layer perceptron module are used to learn the mapping data and position information; the random deactivation module is used to randomly deactivate the mapping data of the image; The multi-layer perceptron classification layer is composed of a data slicing layer and a fully connected layer; the data slicing layer is used to extract category information of the image block; and the fully connected layer is used to output the predicted probability of the gesture category.

10. The method according to claim 1, characterized in that In step (5), the training set is input into the ViT network model and trained using back propagation, which is implemented as follows: 5a) Set the optimizer to stochastic gradient descent (SGD) optimizer, set the learning rate of the optimizer to 0.001, the momentum factor to 0.9, and the weight decay to 5e-5; 5b) Input the training set into the ViT network model and select the category corresponding to the maximum prediction probability as the prediction category; 5c) Use the cross entropy loss function to calculate the loss value between the predicted category and the true category; 5d) Input the loss value into the back propagation algorithm to update the network parameters; 5e) Repeat steps 5b)-5d) until 30 rounds of training are completed to obtain the trained ViT network model.

Citation Information

Patent Citations

  • Gesture recognition method based on Wi-Fi signal

    CN105573498A

  • Millimeter wave radar gesture recognition method based on adaptive coding Vision Transform network

    CN116953642A

  • Lightweight cross-scene CSI human body action recognition method and system

    CN117743911A

Cited By

  • Posture recognition method based on wireless sensing

    CN119723674A