Lightweight human body detection method and system based on covariance matrix

The lightweight human body detection method based on covariance matrix solves the problems of detection dead spots and low accuracy in the existing technology, achieves the ability to accurately identify stationary human bodies without dead spots, and improves the generalization ability of the detection network.

CN118711218BActive Publication Date: 2024-10-25NANCHANG HANGKONG UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411162369.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-10-25
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

Existing human detection technology has problems such as detection dead spots, low accuracy, high cost, user privacy issues, and difficulty in distinguishing stationary human bodies, especially in WiFi CSI detection under the influence of poor lighting and time factors.

Method used

A lightweight human detection method based on covariance matrix is ​​adopted, which is preprocessed by receiving CSI data, calculating the covariance matrix and stacking it by analogy with RGB images. Pconv is introduced as the sampling module of the core design, combined with the GELU activation function and SE attention mechanism. , establish a lightweight cross-time domain stationary human detection network and conduct training to improve generalization ability.

Benefits of technology

It achieves dead-angle detection, improves the generalization ability of the lightweight cross-time domain stationary human body detection network, can effectively identify stationary human bodies, and improves the accuracy and robustness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711218B_ABST
    Figure CN118711218B_ABST
Patent Text Reader

Abstract

The present invention provides a lightweight human body detection method and system based on a covariance matrix, the method comprising receiving CSI data sent by a router, preprocessing the amplitude and phase of the CSI data respectively; reconstructing the CSI data; establishing a lightweight cross-time domain stationary human body detection network; designing a sampling module, introducing a GELU activation function and a SE attention mechanism in the sampling module to obtain a downsampling module; introducing the downsampling module into a lightweight cross-time domain stationary human body detection network, and training the lightweight cross-time domain stationary human body detection network by reconstructing the CSI data, and detecting the human body based on the trained lightweight cross-time domain stationary human body detection network. The present invention effectively improves the generalization ability of the trained lightweight cross-time domain stationary human body detection network, and can extract cross-time domain invariant features from the reconstructed CSI data, so as to effectively identify future indoor stationary human bodies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human body detection, and in particular to a lightweight human body detection method and system based on a covariance matrix. Background Art

[0002] As a basic requirement in the field of wireless sensing applications, human presence has been widely used in smart homes, intrusion detection, elderly monitoring and other fields. Therefore, better detection of human presence is crucial to providing people with a high quality of life. Traditional human presence detection technologies, such as high-definition cameras, wearable sensors or special radio frequency devices such as radar and WiFi, have been basically perfected, but there are still some other problems.

[0003] The human body detection method based on high-definition cameras can capture the human body intuitively. However, it also requires good lighting conditions, that is, in an environment where the light is too strong or too weak, the accuracy of recognition will be seriously reduced, and there will be a blind spot problem. In addition, this method also involves the privacy of users because it involves the shooting and storage of user photos. The human body detection method based on wearable sensors has not improved people's quality of life to a certain extent, but has increased the "burden" of life because users need to wear the corresponding equipment all the time during the detection process. There are also problems such as forgetting to wear sensor equipment and short battery life of sensors. Radio frequency-based human body detection methods have become popular because they can be identified in a non-contact manner and are not affected by other conditions such as lighting. However, ultrasonic equipment technology is mature and reliable, but expensive. Human body detection methods based on ultra-wideband and radar are still limited by the additional cost of installing equipment that is not commonly used in daily life in the test environment.

[0004] With the development of Internet of Things technology, WiFi devices have been widely distributed in various indoor environments. The WiFi-based human detection method uses the signal changes caused by the interaction of WiFi signals with the human body and the environment to detect the presence of human beings in the room. Early studies used the easily accessible change characteristics of the received signal strength (Received Signal Strength) to judge the indoor state. However, since RSS is not stable and is seriously interfered by noise. Researchers turned to using more stable and fine-grained CSI to study its temporal change law in order to achieve the purpose of detecting indoor human beings. The human detection method based on WiFi CSI is now mature and can safely and continuously monitor the presence of human beings. However, when there is a stationary person in the room, the changes in the subcarriers caused by it are very similar to those in an unmanned room, so it is difficult to effectively distinguish between these two situations. Most of the existing studies are done by mixing all available data and then dividing them into training sets and test sets according to a certain ratio. This method may perform well in the test set, but once it is tested with data that is "unfamiliar" with the training set, the performance of the method will drop significantly. This is due to the influence of time factors, such as Figure 1 As shown in the figure, in the same environment, the CSI data of different days will change. If the influence of time change on subcarriers is introduced, that is, stationary human body detection across time domain, higher requirements will be put forward for us.

[0005] In summary, among the existing technologies, the use of cameras to detect human bodies will have problems with blind spots and low accuracy. The use of wearable sensors is not only expensive but also cumbersome and troublesome. The human body detection method through WiFi will have the problem of difficulty in accurately detecting the human body and difficulty in distinguishing people who are still in the room. Summary of the invention

[0006] Based on this, the purpose of the present invention is to provide a lightweight human body detection method and system based on covariance matrix, so as to at least solve the above-mentioned deficiencies in the prior art.

[0007] The present invention provides the following technical solution, a lightweight human body detection method based on a covariance matrix, the method comprising:

[0008] Receive CSI data sent by the router, and preprocess the amplitude of the CSI data and the phase of the CSI data to obtain a preprocessed amplitude and a preprocessed phase;

[0009] Respectively calculating the covariance matrix of the preprocessed amplitude and the preprocessed phase and stacking them analogically to the RGB image to reconstruct the CSI data to obtain reconstructed CSI data;

[0010] A network structure for a human body detection task is introduced, and a lightweight cross-time domain static human body detection network is established based on the network structure for the human body detection task;

[0011] A sampling module is designed with Pconv as the core, a GELU activation function is introduced into the sampling module, and the SE attention mechanism is combined with the sampling module to obtain a downsampling module;

[0012] The downsampling module is introduced into the lightweight cross-time domain stationary human body detection network, and the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained through the reconstructed CSI data to obtain the trained lightweight cross-time domain stationary human body detection network, and the human body is detected based on the trained lightweight cross-time domain stationary human body detection network.

[0013] Compared with the prior art, the beneficial effects of the present invention are: the CSI data sent by the receiving router can achieve the purpose of detection without blind spots, and the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained by reconstructing the CSI data, thereby effectively improving the generalization ability of the trained lightweight cross-time domain stationary human body detection network, and being able to extract cross-time domain invariant features from the reconstructed CSI data, thereby effectively identifying future stationary human bodies indoors.

[0014] Further, the step of receiving CSI data sent by the router includes:

[0015] Using a WiFi device as a Tx of a transmission system, using a programmable chip as an Rx, and establishing a WiFi link based on the Tx and the Rx;

[0016] Assigning SSID passwords to the Tx and the Rx to achieve one-to-one communication at a configured data packet rate;

[0017] A CSI request sent by the Tx to the Rx is obtained, so that the Rx returns the observed CSI information to the Tx, so as to obtain the channel state of the Tx and the Rx from the Tx, so as to obtain CSI data.

[0018] Further, the step of preprocessing the amplitude of the CSI data and the phase of the CSI data respectively includes:

[0019] A Hampel filter and a low-pass filter are used to eliminate abnormal values ​​and noise of the amplitude of the CSI data;

[0020] Expanding the phase of the CSI data and purifying the phase of the CSI data using a simple linear transformation;

[0021] The amplitude of the CSI data after eliminating outliers and the phase of the CSI data after expansion and purification are normalized.

[0022] Further, the steps of respectively calculating the covariance matrix of the preprocessed amplitude and the preprocessed phase and stacking the CSI data by analogy with the RGB image to reconstruct the CSI data include:

[0023] Performing standardization on the preprocessed amplitude and the preprocessed phase to obtain a standardized amplitude and a standardized phase;

[0024] Using covariance to measure the correlation between the K subcarriers of the amplitude after the standardization processing, and using covariance to measure the correlation between the K subcarriers of the phase after the standardization processing;

[0025] Obtaining the i-th subcarrier and the j-th subcarrier of the amplitude after the standardized processing, and obtaining the i-th subcarrier and the j-th subcarrier of the phase after the standardized processing;

[0026] Obtaining a covariance of the standardized amplitude based on the correlation between K subcarriers of the standardized amplitude, the i-th subcarrier of the standardized amplitude, and the j-th subcarrier of the standardized amplitude, and obtaining a covariance matrix of the standardized amplitude according to the covariance of the standardized amplitude;

[0027] Obtaining a covariance of the standardized phase based on the correlation between K subcarriers of the standardized phase, the i-th subcarrier of the standardized phase, and the j-th subcarrier of the standardized phase, and obtaining a covariance matrix of the standardized phase according to the covariance of the standardized phase;

[0028] The covariance matrix of the standardized amplitude and the covariance matrix of the standardized phase are stacked analogously to the three channels of the RGB image to reconstruct the CSI data.

[0029] Furthermore, the covariance of the amplitude after the normalization processing or the covariance of the phase after the normalization processing is expressed as:

[0030] ;

[0031] In the formula, represents the covariance of the normalized amplitude or the covariance of the normalized phase, represents the correlation between the K subcarriers of the amplitude after the normalization processing or the correlation between the K subcarriers of the phase after the normalization processing, represents the i-th subcarrier of the normalized amplitude or the i-th subcarrier of the normalized phase, represents the j-th subcarrier of the normalized amplitude or the j-th subcarrier of the normalized phase, represents the average value of the i-th subcarrier of the amplitude after the normalization processing or the average value of the i-th subcarrier of the phase after the normalization processing, The average value of the j-th subcarrier after the normalization processing is represented or the average value of the j-th subcarrier after the normalization processing is represented.

[0032] Furthermore, the covariance matrix of the amplitude after the normalization processing or the covariance matrix of the phase after the normalization processing is expressed as:

[0033] ;

[0034] In the formula, represents the covariance matrix of the normalized amplitude or the covariance matrix of the normalized phase, represents the covariance between the first subcarriers of the normalized amplitude or the covariance between the first subcarriers of the normalized phase, The covariance between the second subcarrier and the first subcarrier of the standardized amplitude or the covariance between the second subcarrier and the first subcarrier of the standardized phase, represents the covariance between the Kth subcarrier and the first subcarrier of the amplitude after the normalization processing or the covariance between the Kth subcarrier and the first subcarrier of the phase after the normalization processing, represents the covariance between the first subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the first subcarrier and the Kth subcarrier of the phase after the normalization processing, represents the covariance between the second subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the second subcarrier and the Kth subcarrier of the phase after the normalization processing, The covariance between the Kth subcarrier and the Kth subcarrier of the amplitude after the standardized processing or the covariance between the Kth subcarrier and the Kth subcarrier of the phase after the standardized processing is represented.

[0035] Furthermore, after the step of designing a sampling module with Pconv as the core, the method further includes:

[0036] Point convolution is added in the sampling module with the Pconv as the core.

[0037] Furthermore, after the step of detecting a human body based on the trained lightweight cross-time domain stationary human body detection network, the method further includes:

[0038] Obtaining a detection result of a human body detected by the lightweight cross-time domain stationary human body detection network introduced with the downsampling module;

[0039] The test results were evaluated based on the true positive rate, true negative rate and accuracy.

[0040] Furthermore, the expression of the true positive rate is:

[0041] ;

[0042] In the formula, represents the true positive rate, Indicates the number of samples where human presence is detected as human presence. Indicates the number of samples where human presence is detected as no human presence;

[0043] The expression of the true negative rate is:

[0044] ;

[0045] In the formula, represents the true negative rate, Indicates the number of samples where no one is present that are detected as no one is present. Indicates the number of samples where no human presence is detected as human presence;

[0046] The calculation expression of the accuracy is:

[0047] ;

[0048] In the formula, Indicates the accuracy rate.

[0049] In a second aspect, the present invention further proposes a lightweight human body detection system based on a covariance matrix, the system comprising:

[0050] A receiving preprocessing module, used for receiving CSI data sent by the router, and preprocessing the amplitude of the CSI data and the phase of the CSI data to obtain the preprocessed amplitude and the preprocessed phase;

[0051] A calculation and reconstruction module, used to respectively calculate the covariance matrix of the preprocessed amplitude and the preprocessed phase and stack the CSI data by analogy with the RGB image to obtain reconstructed CSI data;

[0052] A network module is introduced to introduce a network structure for a human body detection task, and a lightweight cross-time domain static human body detection network is established based on the network structure for the human body detection task;

[0053] Design a combining module, which is used to design a sampling module with Pconv as the core, introduce a GELU activation function into the sampling module, and combine the SE attention mechanism in the sampling module to obtain a downsampling module;

[0054] A detection module is introduced to introduce the downsampling module into the lightweight cross-time domain stationary human body detection network, and the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained through the reconstructed CSI data to obtain the trained lightweight cross-time domain stationary human body detection network, and the human body is detected based on the trained lightweight cross-time domain stationary human body detection network. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 is a flow chart of a lightweight human body detection method based on covariance matrix in the first embodiment of the present invention;

[0056] Figure 2 is a schematic diagram of the phase after correction in the first embodiment of the present invention;

[0057] Figure 3 It is a schematic diagram of the structure of a lightweight cross-time domain static human body detection network that introduces a downsampling module in the first embodiment of the present invention;

[0058] Figure 4 It is a schematic diagram of the working principle of a lightweight cross-time domain static human body detection network that introduces a downsampling module in the first embodiment of the present invention;

[0059] Figure 5 Schematic diagram of the principle of the SE attention mechanism in the first embodiment of the present invention;

[0060] Figure 6 It is a structural block diagram of a lightweight human body detection system based on covariance matrix in the second embodiment of the present invention.

[0061] Description of main component symbols:

[0062] 10. Receiving preprocessing module;

[0063] 20. Calculation and reconstruction module;

[0064] 30. Introduce network module;

[0065] 40. Design combined modules;

[0066] 50. Introduce detection module.

[0067] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0068] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0069] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0071] Embodiment 1

[0072] See also Figure 1 , which shows a lightweight human body detection method based on a covariance matrix in a first embodiment of the present invention, and the method includes steps S1 to S5:

[0073] S1, receiving CSI data sent by a router, and preprocessing the amplitude of the CSI data and the phase of the CSI data to obtain a preprocessed amplitude and a preprocessed phase;

[0074] It should be noted that the two main indicators of the WiFi signal sent by the router are RSS and CSI. In wireless communication technology and cellular network technology, RSS is easy to obtain, but it only provides a quantitative value of the received signal strength and is very unstable and easily affected by multipath effects. Therefore, it is not suitable for stationary human perception tasks. CSI provides more detailed information about signal amplitude, phase, and frequency response. This information can more accurately describe the characteristics of the signal during transmission, such as multipath propagation, channel fading, etc., allowing researchers to more deeply analyze and understand the situation of signal transmission. Therefore, CSI can not only be used for advanced applications such as positioning and gesture recognition, but also play an important role in communication system design, channel modeling and other fields. CSI represents the estimation of the impulse response of the propagation channel between the transmitter and the receiver in the orthogonal frequency division multiplexing (OFDM) transmission system. When the OFDM system is represented in the field, CSI is modeled as:

[0075] ;

[0076] In the formula, represents the complex vector sent, represents the received complex vector, represents the noise vector, represents the channel information matrix. Since CSI is The estimate can therefore be expressed as , The representation contains the amplitude attenuation and phase shift information of each subcarrier in the form of complex numbers. These measurements can be expressed as:

[0077] ;

[0078] In the formula, Indicates the amplitude attenuation of the CSI measurement value, represents the phase shift of the CSI measurement value, It should be noted that the CSI data is expressed in the form of complex numbers. In order to calculate the amplitude and phase of the CSI data, the complex number can be expressed in polar coordinates as , where is the modulus of the complex number, which indicates the size of the complex number, that is, the amplitude. It is the phase angle of a complex number, indicating the direction of the complex number, that is, the phase.

[0079] Specifically, the step S1 includes steps S11 to S16:

[0080] S11, using the WiFi device as a Tx of the transmission system, using the programmable chip as an Rx, and establishing a WiFi link based on the Tx and the Rx;

[0081] S12, assigning SSID passwords to the Tx and the Rx to achieve one-to-one communication at a configured data packet rate;

[0082] S13, obtaining a CSI request sent by the Tx to the Rx, so that the Rx returns the observed CSI information to the Tx, so as to obtain a channel state between the Tx and the Rx from the Tx, so as to obtain CSI data.

[0083] It can be understood that in this embodiment, ESP32-CSI-Tool is used to extract CSI from ESP32, and a commercial WiFi device is used as the Tx of the transmission system, and a lightweight programmable ESP32 chip is used as the Rx to establish a single WiFi link. A dedicated SSID and password are assigned to the pair of Tx and Rx through the ESP32-CSI-Tool running in the Windows terminal so that one-to-one communication can be carried out at the configured packet rate. Since the ESP32 node is powered on, Tx continuously sends CSI requests to Rx, and then Rx returns the observed CSI information to Tx, so as to facilitate the acquisition of the channel status between Tx and Rx from the Tx side to obtain CSI data.

[0084] It is worth noting that the ESP32 node runs on 802.11n traditional mode WiFi, which uses the 2.4 GHz frequency band (bandwidth: 20MHz). ESP32 provides complex CSI values ​​for 64 OFDM subcarriers, with a resolution of 8 bits for each real / imaginary component, consisting of 52 non-null subcarriers. Because there is only a single WiFi link in the system, the measured CSI vector from the packet at time t can be expressed as:

[0085] ;

[0086] In the formula, , , represent the complex estimate of the first subcarrier in the data packet at time t, the complex estimate of the second subcarrier in the data packet at time t, and the complex estimate of the kth subcarrier in the data packet at time t, respectively. represents the Kth subcarrier, and also represents the total number of available subcarriers. Since the complex CSI value contains amplitude and phase information, the amplitude and phase of the kth subcarrier at time t can be calculated. The calculation expression is:

[0087] ;

[0088] In the formula, Indicates the amplitude attenuation of the CSI measurement value, represents the phase shift of the CSI measurement value, represents the real part of the complex estimate of the Kth subcarrier at time t, represents the imaginary part of the complex estimate of the Kth subcarrier at time t.

[0089] It is worth noting that due to the influence of factors such as the hardware itself, interference from other wireless devices and multipath fading, there are various noise interference factors when wireless signals propagate indoors. The collected raw CSI data contains a lot of random noise and cannot be directly used for the study of human perception problems. Therefore, the raw CSI data needs to be preprocessed.

[0090] S14, using a Hampel filter and a low-pass filter to eliminate abnormal values ​​and noise of the amplitude of the CSI data;

[0091] It should be explained that the captured raw CSI data occasionally contains some abnormal measurements that are obviously not caused by the human body. Therefore, before conducting the human perception experiment, the abnormal measurements and signal noise need to be eliminated. In this embodiment, a Hampel filter and a low-pass filter are used to eliminate the abnormal measurements and remove the signal noise;

[0092] It can be understood that the Hampel filter is a filter based on the median and the absolute deviation of the median, which can identify and remove outliers in time series data. The Hampel filter calculates the median of all elements in a window and uses the absolute deviation of the median to estimate the standard deviation of each sample to the median. If a sample differs from the median by more than 3 standard deviations, the median is used to replace the value. Therefore, a Hampel filter with a moving window size of 50 is applied to all subcarriers to remove outliers in the original amplitude. Since the changes in CSI signals caused by the human body are mainly concentrated in the low-frequency range, in order to further reduce noise interference and smooth the time series data, the data is more stable and reliable. A low-pass filter is also applied to the amplitude to filter out high-frequency noise and highlight the impact of the stationary human body on the signal.

[0093] S15, unfolding the phase of the CSI data, and purifying the phase of the CSI data by using a simple linear transformation;

[0094] It should be explained that the original phase value is affected by random noise and asynchronous clocks between the transmitter and receiver, and is randomly wrapped in the range of [−π,π]. In order to make the phase truly available, the phase of the CSI data is first unfolded. This process can eliminate the discontinuity from −π to π in the original phase response.

[0095] S16, normalizing the amplitude of the CSI data after eliminating outliers and the phase of the CSI data after expansion and purification;

[0096] S2, respectively calculating the covariance matrix of the preprocessed amplitude and the preprocessed phase and stacking them analogically to the RGB image to reconstruct the CSI data to obtain reconstructed CSI data;

[0097] It should be explained that even in the absence of any change in the physical space between the transmitter and the receiver, the unwrapped phase still shows significant measurement deviations. This random deviation is mainly caused by two reasons: one is the carrier frequency offset (CFO) caused by the imperfect synchronization of the subcarrier frequencies between the transmitter and the receiver, and the other is the sampling frequency offset (SFO) caused by the asynchronous clock. In order to mitigate the impact of this random noise, a simple linear transformation is used to eliminate the effects of CFO and SFO to purify the phase. The corrected phase is as follows Figure 2 After obtaining the clean phase, it is necessary to remove the abnormal points, and finally use the bandpass filter to obtain the relevant information of the stationary human body.

[0098] It should be explained that by visualizing the CSI data over a period of time after preprocessing, it is found that the presence of a static human body in the room changes the environmental state of the empty room. From the perspective of time change, the subcarriers in the two states behave similarly and are difficult to distinguish. Therefore, we do not pay too much attention to the information of CSI changes over time, but instead focus on the frequency domain characteristics of CSI, that is, the correlation between subcarriers, and use this to extract the available features of CSI time domain invariance. The correlation between subcarriers will be slightly higher than the correlation in the empty room. Since the correlation coefficient can be regarded as a special covariance after standardization, and the calculation of the covariance matrix does not depend on the absolute value of the variable, it is independent of power but related to change. It can usually be extended to various scenarios without the need for specific environmental calibration, which will help to detect human beings across time domains.

[0099] Specifically, the step S2 includes steps S21 to S26:

[0100] S21, performing standardization processing on the preprocessed amplitude and the preprocessed phase to obtain a standardized amplitude and a standardized phase;

[0101] It is understandable that in order to improve generalization, before reconstructing the CSI data, the preprocessed amplitude and the preprocessed phase need to be standardized. The expression of the standardized processing is:

[0102] ;

[0103] In the formula, represents the normalized amplitude or normalized phase, represents the preprocessed amplitude or preprocessed phase, Indicates the minimum value of the preprocessed amplitude or the minimum value of the preprocessed phase. Indicates the maximum value of the preprocessed amplitude or the maximum value of the preprocessed phase.

[0104] S22, using covariance to measure the correlation between the K subcarriers of the standardized amplitudes, and using covariance to measure the correlation between the K subcarriers of the standardized phases;

[0105] S23, obtaining the i-th subcarrier and the j-th subcarrier of the amplitude after the standardized processing, and obtaining the i-th subcarrier and the j-th subcarrier of the phase after the standardized processing;

[0106] S24, obtaining the covariance of the standardized amplitude based on the correlation between the K subcarriers of the standardized amplitude, the i-th subcarrier of the standardized amplitude, and the j-th subcarrier of the standardized amplitude, and obtaining the covariance matrix of the standardized amplitude according to the covariance of the standardized amplitude;

[0107] S25, obtaining the covariance of the standardized phase based on the correlation between the K subcarriers of the standardized phase, the i-th subcarrier of the standardized phase, and the j-th subcarrier of the standardized phase, and obtaining the covariance matrix of the standardized phase according to the covariance of the standardized phase;

[0108] It can be understood that the covariance is used to measure the correlation between the K subcarriers containing the T data packets. In this embodiment, the covariance of the amplitude after the normalization processing or the covariance of the phase after the normalization processing is expressed as:

[0109] ;

[0110] In the formula, represents the covariance of the normalized amplitude or the covariance of the normalized phase, represents the correlation between the K subcarriers of the amplitude after the normalization processing or the correlation between the K subcarriers of the phase after the normalization processing, represents the i-th subcarrier of the normalized amplitude or the i-th subcarrier of the normalized phase, represents the j-th subcarrier of the normalized amplitude or the j-th subcarrier of the normalized phase, represents the average value of the i-th subcarrier of the amplitude after the normalization processing or the average value of the i-th subcarrier of the phase after the normalization processing, represents the average value of the j-th subcarrier of the amplitude after the normalization processing or the average value of the j-th subcarrier of the phase after the normalization processing;

[0111] The expression of the covariance matrix of the amplitude after the normalization processing or the covariance matrix of the phase after the normalization processing is:

[0112] ;

[0113] In the formula, represents the covariance matrix of the normalized amplitude or the covariance matrix of the normalized phase, represents the covariance between the first subcarriers of the normalized amplitude or the covariance between the first subcarriers of the normalized phase, The covariance between the second subcarrier and the first subcarrier of the standardized amplitude or the covariance between the second subcarrier and the first subcarrier of the standardized phase, represents the covariance between the Kth subcarrier and the first subcarrier of the amplitude after the normalization processing or the covariance between the Kth subcarrier and the first subcarrier of the phase after the normalization processing, represents the covariance between the first subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the first subcarrier and the Kth subcarrier of the phase after the normalization processing, represents the covariance between the second subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the second subcarrier and the Kth subcarrier of the phase after the normalization processing, The covariance between the Kth subcarrier and the Kth carrier of the amplitude after the standardized processing or the covariance between the Kth subcarrier and the Kth carrier of the phase after the standardized processing;

[0114] S26, stacking the covariance matrix of the standardized amplitude and the covariance matrix of the standardized phase by analogy with the three channels of the RGB image to reconstruct the CSI data;

[0115] It can be understood that after obtaining the covariance matrix of the amplitude after normalization and the covariance matrix of the amplitude after normalization, two K×K covariance matrices are obtained. In order to retain all the information contained in the covariance matrix, the two covariance matrices are stacked like the three channels of the RGB image to reconstruct the CSI data, so that the human body detection task can be converted into an image classification task.

[0116] S3, introducing the network structure of the human body detection task, and establishing a lightweight cross-time domain static human body detection network based on the network structure of the human body detection task;

[0117] S4, a sampling module is designed with Pconv as the core, a GELU activation function is introduced into the sampling module, and the SE attention mechanism is combined with the sampling module to obtain a downsampling module;

[0118] Specifically, the step S4 includes step S41:

[0119] S41, adding point convolution in the sampling module with the Pconv as the core.

[0120] It should be explained that human body detection based on WiFi CSI is non-contact and low-cost, while the method using deep learning models often requires complex model structures and high computational complexity to improve detection accuracy, so it is prone to problems such as long delays and slow responses. In this embodiment, FasterNet-T0 is introduced as the network structure for human body detection tasks. By adjusting the network hierarchy of FasterNet-T0, a new downsampling module is proposed to design a low-complexity, low-latency, high-precision lightweight cross-time domain stationary human body detection network, named LAHD. Figure 3 As shown. Design a backbone feature extraction network with FasterNet-T0 as the core; by adjusting the hierarchical structure of the network, upgrade the original "1-2-8-2" to "5-3-3-2", reduce the model complexity, enhance the extraction of shallow network layer features, and obtain more spatial features. Utilizing the powerful characteristics of SE attention, a parameter efficient downsampling module FSMerger containing an attention module is proposed. This module not only integrates the inductive bias, but also models the inter-channel dependency, improves the network's ability to downsample and refine features, and ultimately improves the network's generalization ability.

[0121] To design fast neural networks, many works have focused on reducing the number of floating point operations (FLOPs), all of which employ deep convolution (DWConv) or group convolution (GConv) for spatial feature extraction while minimizing the amount of floating point operations. However, it is observed that such a reduction in FLOPs does not necessarily lead to a similar reduction in latency. This is mainly due to the low floating point operations per second (FLOPS) inefficiency. To achieve faster networks, we revisited the operators of FLOPs and demonstrated that such low FLOPS is mainly due to the frequent memory accesses of the operators. Based on this, we propose a new partial convolution (PConv), which exploits the similarity of feature maps between different channels. Figure 4 The working principle is explained. In order to fully and effectively utilize the information from all channels, point convolution (PWConv) is further attached to PConv. Compared with regular Conv, it pays more attention to the center position. In view of the novel Pconv and PWConv, FasterNet is proposed, which is a new neural network skeleton that has higher running speed than most lightweight networks on various devices, and is equally lightweight without compromising the accuracy of various visual tasks.

[0122] It is worth noting that due to the excessive number of feature extraction modules in the third layer of the FasterNet-T0 network, excessive attention is paid to the abstract features in the deep network and the information in the initial stage of the shallow network is ignored. In order to solve the above problems, the study tested two other module structures, namely "2-2-7-2" and "5-3-3-2", while keeping the total number of FasterNet Block blocks unchanged. The results show that the structure "5-3-3-2" places more feature extraction modules at the beginning of the model. On the one hand, the model has fewer channels in the initial stage, which reduces the utilization of some model parameters, thereby reducing computational costs and memory requirements. In addition, this method can better collect low-level features in the input data, such as edges and textures. These low-level features are usually the building blocks of high-level features, and they are very important for extracting feature information hidden in CSI reconstruction signals. Therefore, using the "5-3-3-2" instead of the ("1-2-8-2" structure helps the network to detect the presence of stationary people, as shown in the following example. Figure 3 The number of FasterNet Blocks in each stage is shown.

[0123] When designing the downsampling module, a series of optimization strategies are adopted to improve the performance of the model. First, Pconv is used as the core component of the module, which can not only reduce the information redundancy in the downsampling process, but also improve the model's adaptability to the residual noise of the reconstructed signal. Subsequently, the GELU activation function is introduced to enhance the nonlinear characteristics of the module. In order to adjust the channel weights in the feature map, enhance the representation of important features and suppress unimportant features, the SE (Squeeze-and-Excitation) attention mechanism is combined and applied to the downsampling module. The principle of the SE attention mechanism is as follows Figure 5 As shown. In addition, in order to fully and effectively utilize the information from all channels, point convolution (PWConv) is further added. At the same time, by adding shortcut connections to reuse input features, and adding a normalization layer at the end of the module to ensure the stability of model training. Therefore, the designed downsampling module makes full use of technologies such as partial convolution, SE attention mechanism and downsampling convolution. Improve the robustness and computational efficiency of the model. It can more effectively process the input CSI reconstruction signal and improve the full-stage perception and representation capabilities of the model.

[0124] S5, introducing the downsampling module into the lightweight cross-time domain stationary human body detection network, and training the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module through the reconstructed CSI data to obtain a trained lightweight cross-time domain stationary human body detection network, and detecting a human body based on the trained lightweight cross-time domain stationary human body detection network;

[0125] Specifically, after step S5, the method further includes steps S51 to S52:

[0126] S51, obtaining a detection result of a human body detected by the lightweight cross-time domain stationary human body detection network introduced with the downsampling module;

[0127] S52, evaluating the detection result based on the true positive rate, the true negative rate and the accuracy rate;

[0128] It should be explained that the test and evaluation were carried out in a 3.9m*7.6m laboratory, and the experimental area and layout are shown in Figure 8. In order to receive the CSI measurement results, ESP32 was selected as the receiver. However, considering that the antenna switching phenomenon may occur when ESP32 is connected to a dual-antenna wireless router, resulting in unreliable experimental data, a single-antenna commercial wireless router TP-Link TL-WDR5620 was selected as the transmitter. In order to avoid severe signal obstruction, the transmitter and receiver were arranged at both ends of the conference room table, 5.5 meters apart. The transmitter was set to operate at 2.4GHz and 20MHz bandwidth in IEEE 802.11n AP mode. The CSI extraction tool ESP32-CSITool is used to receive CSI measurement results at a rate of approximately 100 packets per second. The tool can be easily deployed on a personal computer and save the data in a local file according to different human activity categories;

[0129] Nine data sets were collected in the laboratory, one data set per day. Each data set contains two activities: (1) unmanned data, i.e., there are no subjects in the target room; (2) static data, i.e., the subjects are required to stand or sit to perform simple activities, such as playing with mobile phones, reading, etc. Each data set is collected by the subjects at different time periods every day. All collected data are divided into specified time periods to obtain each CSI data sample. All data sets collected in the first two days are divided into training sets and validation sets at a ratio of 8:2, and the data collected in the last seven days are used as the test set to evaluate the cross-time domain performance of Wi-LAHD. The obtained data sets are shown in Table 1:

[0130] Table 1

[0131]

[0132] In order to verify the generalization of the model to common situations such as indoor room layout and changes in the angle of commercial router antennas, when collecting data sets in the conference room, environmental changes such as chair positions caused by laboratory activities and the presence of water cups on the table were not restored to simulate environmental changes that may occur in daily life. In addition, when collecting the D6 data set, the angle of the router antenna was randomly adjusted; finally, the detection results were evaluated by the true positive rate, true negative rate, and accuracy;

[0133] In this embodiment, the expression of the true positive rate is:

[0134] ;

[0135] In the formula, represents the true positive rate, Indicates the number of samples where human presence is detected as human presence. Indicates the number of samples where human presence is detected as no human presence;

[0136] The expression of the true negative rate is:

[0137] ;

[0138] In the formula, represents the true negative rate, Indicates the number of samples where no one is present that are detected as no one is present. Indicates the number of samples where no human presence is detected as human presence;

[0139] The calculation expression of the accuracy is:

[0140] ;

[0141] In the formula, Indicates the accuracy rate.

[0142] In addition, it should be noted that the above content is all carried out in a PyTorch working environment equipped with NVIDIA GeForce RTX3060Ti GPU and Intel i7-12700F 2.10 GHz CPU.

[0143] In summary, the lightweight human body detection method based on the covariance matrix in the above embodiments of the present invention can achieve the purpose of no-dead-angle detection by receiving the CSI data sent by the router. By reconstructing the CSI data, the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained, thereby effectively improving the generalization ability of the trained lightweight cross-time domain stationary human body detection network, and can extract cross-time domain invariant features from the reconstructed CSI data, thereby effectively identifying future stationary human bodies indoors.

[0144] Embodiment 2

[0145] See also Figure 6 , which shows a lightweight human body detection system based on covariance matrix in a second embodiment of the present invention, and the system includes:

[0146] A receiving preprocessing module, used for receiving CSI data sent by the router, and preprocessing the amplitude of the CSI data and the phase of the CSI data to obtain the preprocessed amplitude and the preprocessed phase;

[0147] A calculation and reconstruction module, used to respectively calculate the covariance matrix of the preprocessed amplitude and the preprocessed phase and stack the CSI data by analogy with the RGB image to obtain reconstructed CSI data;

[0148] A network module is introduced to introduce a network structure for a human body detection task, and a lightweight cross-time domain static human body detection network is established based on the network structure for the human body detection task;

[0149] Design a combining module, which is used to design a sampling module with Pconv as the core, introduce a GELU activation function into the sampling module, and combine the SE attention mechanism into the sampling module to obtain a downsampling module;

[0150] A detection module is introduced to introduce the downsampling module into the lightweight cross-time domain stationary human body detection network, and the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained through the reconstructed CSI data to obtain the trained lightweight cross-time domain stationary human body detection network, and the human body is detected based on the trained lightweight cross-time domain stationary human body detection network.

[0151] In some optional embodiments, the receiving preprocessing module includes:

[0152] An establishing unit, used to use the WiFi device as a Tx of the transmission system, use the programmable chip as an Rx, and establish a WiFi link based on the Tx and the Rx;

[0153] an allocating unit, configured to allocate SSID passwords to the Tx and the Rx to implement one-to-one communication at a configured data packet rate;

[0154] A first acquisition unit, configured to acquire a CSI request sent by the Tx to the Rx, so that the Rx returns observed CSI information to the Tx, so as to acquire a channel state between the Tx and the Rx from the Tx, so as to obtain CSI data;

[0155] An elimination unit, configured to eliminate abnormal values ​​and noise of the amplitude of the CSI data by using a Hampel filter and a low-pass filter;

[0156] An expansion unit, used for expanding the phase of the CSI data and purifying the phase of the CSI data by using a simple linear transformation;

[0157] The first processing unit is used to normalize the amplitude of the CSI data after eliminating abnormal values ​​and the phase of the CSI data after expansion and purification.

[0158] In some optional embodiments, the calculation reconstruction module includes:

[0159] A second processing unit is used to perform standardization processing on the preprocessed amplitude and the preprocessed phase to obtain a standardized amplitude and a standardized phase;

[0160] A measuring unit, configured to measure the correlation between the K subcarriers of the standardized amplitudes by using covariance, and measure the correlation between the K subcarriers of the standardized phases by using covariance;

[0161] A second acquisition unit is used to acquire the i-th subcarrier and the j-th subcarrier of the amplitude after the standardized processing, and acquire the i-th subcarrier and the j-th subcarrier of the phase after the standardized processing;

[0162] A third acquisition unit is used to obtain the covariance of the standardized amplitude based on the correlation between the K subcarriers of the standardized amplitude, the i-th subcarrier of the standardized amplitude, and the j-th subcarrier of the standardized amplitude, and obtain the covariance matrix of the standardized amplitude according to the covariance of the standardized amplitude;

[0163] A fourth acquisition unit, configured to obtain the covariance of the standardized phase based on the correlation between the K subcarriers of the standardized phase, the i-th subcarrier of the standardized phase, and the j-th subcarrier of the standardized phase, and obtain the covariance matrix of the standardized phase according to the covariance of the standardized phase;

[0164] A stacking and reconstruction unit, used for stacking the covariance matrix of the standardized amplitude and the covariance matrix of the standardized phase by analogy with the three channels of the RGB image to reconstruct the CSI data;

[0165] The expression of the covariance of the amplitude after the normalization processing or the covariance of the phase after the normalization processing is:

[0166] ;

[0167] In the formula, represents the covariance of the normalized amplitude or the covariance of the normalized phase, represents the correlation between the K subcarriers of the amplitude after the normalization processing or the correlation between the K subcarriers of the phase after the normalization processing, represents the i-th subcarrier of the normalized amplitude or the i-th subcarrier of the normalized phase, represents the j-th subcarrier of the normalized amplitude or the j-th subcarrier of the normalized phase, represents the average value of the i-th subcarrier of the amplitude after the normalization processing or the average value of the i-th subcarrier of the phase after the normalization processing, represents the average value of the j-th subcarrier of the amplitude after the normalization processing or the average value of the j-th subcarrier of the phase after the normalization processing;

[0168] The expression of the covariance matrix of the amplitude after the normalization processing or the covariance matrix of the phase after the normalization processing is:

[0169] ;

[0170] In the formula, represents the covariance matrix of the normalized amplitude or the covariance matrix of the normalized phase, represents the covariance between the first subcarriers of the normalized amplitude or the covariance between the first subcarriers of the normalized phase, The covariance between the second subcarrier and the first subcarrier of the standardized amplitude or the covariance between the second subcarrier and the first subcarrier of the standardized phase, represents the covariance between the Kth subcarrier and the first subcarrier of the amplitude after the normalization processing or the covariance between the Kth subcarrier and the first subcarrier of the phase after the normalization processing, represents the covariance between the first subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the first subcarrier and the Kth subcarrier of the phase after the normalization processing, represents the covariance between the second subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the second subcarrier and the Kth subcarrier of the phase after the normalization processing, The covariance between the Kth subcarrier and the Kth subcarrier of the amplitude after the standardized processing or the covariance between the Kth subcarrier and the Kth subcarrier of the phase after the standardized processing is represented.

[0171] In some optional embodiments, the design combination module includes:

[0172] An additional unit is used to add point convolution in the sampling module with the Pconv as the core.

[0173] In some optional embodiments, the system further comprises:

[0174] An acquisition module, used for acquiring a detection result of a human body detected by the lightweight cross-time domain stationary human body detection network introduced into the downsampling module;

[0175] An evaluation module, used for evaluating the detection result based on the true positive rate, the true negative rate and the accuracy rate;

[0176] The expression of the true positive rate is:

[0177] ;

[0178] In the formula, represents the true positive rate, Indicates the number of samples where human presence is detected as human presence. Indicates the number of samples where human presence is detected as no human presence;

[0179] The expression of the true negative rate is:

[0180] ;

[0181] In the formula, represents the true negative rate, Indicates the number of samples where no one is present that are detected as no one is present. Indicates the number of samples where no human presence is detected as human presence;

[0182] The calculation expression of the accuracy is:

[0183] ;

[0184] In the formula, Indicates the accuracy rate.

[0185] The functions or operation steps implemented when the above modules and units are executed are generally the same as those in the above method embodiments, and will not be repeated here.

[0186] The lightweight human body detection system based on covariance matrix provided in the embodiment of the present invention has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment.

[0187] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0188] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A lightweight human body detection method based on covariance matrix, characterized in that: The method comprises: Receive CSI data sent by the router, and preprocess the amplitude of the CSI data and the phase of the CSI data to obtain a preprocessed amplitude and a preprocessed phase; Respectively calculating the covariance matrix of the preprocessed amplitude and the preprocessed phase and stacking them analogically to the RGB image to reconstruct the CSI data to obtain reconstructed CSI data; A network structure for a human body detection task is introduced, and a lightweight cross-time domain static human body detection network is established based on the network structure for the human body detection task; A sampling module is designed with Pconv as the core, a GELU activation function is introduced into the sampling module, and the SE attention mechanism is combined with the sampling module to obtain a downsampling module; The downsampling module is introduced into the lightweight cross-time domain stationary human body detection network, and the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained through the reconstructed CSI data to obtain the trained lightweight cross-time domain stationary human body detection network, and the human body is detected based on the trained lightweight cross-time domain stationary human body detection network.

2. The lightweight human body detection method based on covariance matrix according to claim 1, characterized in that: The step of receiving CSI data sent by the router comprises: Using a WiFi device as a Tx of a transmission system, using a programmable chip as an Rx, and establishing a WiFi link based on the Tx and the Rx; Assigning SSID passwords to the Tx and the Rx to achieve one-to-one communication at a configured data packet rate; A CSI request sent by the Tx to the Rx is obtained, so that the Rx returns the observed CSI information to the Tx, so as to obtain the channel state of the Tx and the Rx from the Tx, so as to obtain CSI data.

3. The lightweight human body detection method based on covariance matrix according to claim 1, characterized in that: The step of preprocessing the amplitude of the CSI data and the phase of the CSI data respectively comprises: A Hampel filter and a low-pass filter are used to eliminate abnormal values ​​and noise of the amplitude of the CSI data; Expanding the phase of the CSI data and purifying the phase of the CSI data using a simple linear transformation; The amplitude of the CSI data after eliminating outliers and the phase of the CSI data after expansion and purification are normalized.

4. The lightweight human body detection method based on covariance matrix according to claim 1, characterized in that: The steps of respectively calculating the covariance matrix of the preprocessed amplitude and the preprocessed phase and stacking the CSI data analogically to RGB images to reconstruct the CSI data include: Performing standardization on the preprocessed amplitude and the preprocessed phase to obtain a standardized amplitude and a standardized phase; Using covariance to measure the correlation between the K subcarriers of the amplitude after the standardization processing, and using covariance to measure the correlation between the K subcarriers of the phase after the standardization processing; Obtaining the i-th subcarrier and the j-th subcarrier of the amplitude after the standardized processing, and obtaining the i-th subcarrier and the j-th subcarrier of the phase after the standardized processing; Obtaining a covariance of the standardized amplitude based on the correlation between K subcarriers of the standardized amplitude, the i-th subcarrier of the standardized amplitude, and the j-th subcarrier of the standardized amplitude, and obtaining a covariance matrix of the standardized amplitude according to the covariance of the standardized amplitude; Obtaining a covariance of the standardized phase based on the correlation between K subcarriers of the standardized phase, the i-th subcarrier of the standardized phase, and the j-th subcarrier of the standardized phase, and obtaining a covariance matrix of the standardized phase according to the covariance of the standardized phase; The covariance matrix of the standardized amplitude and the covariance matrix of the standardized phase are stacked analogously to the three channels of the RGB image to reconstruct the CSI data.

5. The lightweight human body detection method based on covariance matrix according to claim 4, characterized in that: The expression of the covariance of the amplitude after the normalization processing or the covariance of the phase after the normalization processing is: ; In the formula, represents the covariance of the normalized amplitude or the covariance of the normalized phase, represents the correlation between the K subcarriers of the amplitude after the normalization processing or the correlation between the K subcarriers of the phase after the normalization processing, represents the i-th subcarrier of the normalized amplitude or the i-th subcarrier of the normalized phase, represents the j-th subcarrier of the normalized amplitude or the j-th subcarrier of the normalized phase, represents the average value of the i-th subcarrier of the amplitude after the normalization processing or the average value of the i-th subcarrier of the phase after the normalization processing, The average value of the j-th subcarrier after the normalization processing is represented or the average value of the j-th subcarrier after the normalization processing is represented.

6. The lightweight human body detection method based on covariance matrix according to claim 4, characterized in that: The expression of the covariance matrix of the amplitude after the normalization processing or the covariance matrix of the phase after the normalization processing is: ; In the formula, represents the covariance matrix of the normalized amplitude or the covariance matrix of the normalized phase, represents the covariance between the first subcarriers of the normalized amplitude or the covariance between the first subcarriers of the normalized phase, The covariance between the second subcarrier and the first subcarrier of the standardized amplitude or the covariance between the second subcarrier and the first subcarrier of the standardized phase, represents the covariance between the Kth subcarrier and the first subcarrier of the amplitude after the normalization processing or the covariance between the Kth subcarrier and the first subcarrier of the phase after the normalization processing, represents the covariance between the first subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the first subcarrier and the Kth subcarrier of the phase after the normalization processing, represents the covariance between the second subcarrier and the Kth subcarrier of the amplitude after the normalization processing or the covariance between the second subcarrier and the Kth subcarrier of the phase after the normalization processing, The covariance between the Kth subcarrier and the Kth subcarrier of the amplitude after the standardized processing or the covariance between the Kth subcarrier and the Kth subcarrier of the phase after the standardized processing is represented.

7. The lightweight human body detection method based on covariance matrix according to claim 1, characterized in that: After the step of designing a sampling module with Pconv as the core, the method further includes: Point convolution is added in the sampling module with the Pconv as the core.

8. The lightweight human body detection method based on covariance matrix according to claim 1, characterized in that: After the step of detecting a human body based on the trained lightweight cross-time domain stationary human body detection network, the method further includes: Obtaining a detection result of a human body detected by the lightweight cross-time domain stationary human body detection network introduced with the downsampling module; The test results were evaluated based on the true positive rate, true negative rate and accuracy.

9. The lightweight human body detection method based on covariance matrix according to claim 8, characterized in that: The expression of the true positive rate is: ; In the formula, represents the true positive rate, Indicates the number of samples where human presence is detected as human presence. Indicates the number of samples where human presence is detected as no human presence; The expression of the true negative rate is: ; In the formula, represents the true negative rate, Indicates the number of samples where no one is present that are detected as no one is present. Indicates the number of samples where no human presence is detected as human presence; The calculation expression of the accuracy is: ; In the formula, Indicates the accuracy rate.

10. A lightweight human body detection system based on covariance matrix, characterized in that: The system comprises: A receiving preprocessing module, used for receiving CSI data sent by the router, and preprocessing the amplitude of the CSI data and the phase of the CSI data to obtain the preprocessed amplitude and the preprocessed phase; A calculation and reconstruction module, used to respectively calculate the covariance matrix of the preprocessed amplitude and the preprocessed phase and stack the CSI data by analogy with the RGB image to obtain reconstructed CSI data; A network module is introduced to introduce a network structure for a human body detection task, and a lightweight cross-time domain static human body detection network is established based on the network structure for the human body detection task; Design a combining module, which is used to design a sampling module with Pconv as the core, introduce a GELU activation function into the sampling module, and combine the SE attention mechanism in the sampling module to obtain a downsampling module; A detection module is introduced to introduce the downsampling module into the lightweight cross-time domain stationary human body detection network, and the lightweight cross-time domain stationary human body detection network after the introduction of the downsampling module is trained through the reconstructed CSI data to obtain the trained lightweight cross-time domain stationary human body detection network, and the human body is detected based on the trained lightweight cross-time domain stationary human body detection network.