A non-contact continuous behavior perception method
Through the sliding window segmentation algorithm and the improved SVM classification algorithm, the problem of difficulty in extracting single behavioral segments in continuous human behavior recognition in the existing technology is solved, achieving continuous behavior recognition with high accuracy and stability, and reducing environmental interference and separation. The influence of group points.
Patent Information
- Application Number
- CN202011029843.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-27
AI Technical Summary
It is difficult for existing technology to accurately identify single behavioral segments in continuous human behaviors, especially when multiple behaviors are mixed, and the recognition accuracy and stability are insufficient.
The sliding window segmentation algorithm and improved support vector machine (SVM) classification algorithm are used to segment and identify continuous behavioral information through CSI data preprocessing, feature extraction and optimal subcarrier selection, combined with slack variables and kernel functions.
It effectively extracts fragments containing only one behavior, improves the accuracy and stability of continuous behavior recognition, reduces the impact of environmental interference and outliers, and improves the recognition rate.
Smart Images

Figure CN114333044B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular to a non-contact continuous behavior perception method. Background Art
[0002] In today's era of rapid development of computer technology, the previous machine-centered computing model obviously cannot meet the requirements of contemporary society, and is now shifting towards a human-centered computing model. Achieving a higher level of human-computer interaction is the scientific research goal of many researchers and is also the future development direction. The so-called human-computer interaction technology refers to the process in which users exchange data with computer devices through pre-set interaction modes such as expressions, voices, and behavioral actions, and enable them to complete designated tasks. Among them, human behavior perception, as an important research field, plays a vital role in human-computer interaction technology. At the same time, it has also greatly helped to improve our lifestyle.
[0003] The so-called human behavior perception technology is to identify and analyze the human behavior patterns and action types, mainly through video images, sensor equipment, and wireless signals to obtain information. From a broad perspective, human behavior perception technology mainly involves three areas, namely human behavior perception based on computer vision, human behavior perception based on wearable sensors, and human behavior perception based on wireless signals. According to different detection methods, the existing behavior perception methods can be divided into two categories: contact and non-contact.
[0004] Contact-based human behavior perception mainly uses sensor devices to collect data on human movement, which is then transmitted to the terminal for analysis, and ultimately the recognition of behavior is achieved. Representative products include the Wii game console produced by Nintendo of Japan. This electronic game uses an accelerometer to sense human movements. Players can use game controllers to control characters, swinging golf clubs and throwing bowling balls like in real life. my country also has mature products in the field of human behavior perception based on wearable sensors. In 2018, Fujitsu Research and Development Center Co., Ltd. developed a monitoring device for health care services for the elderly. The device uses wearable sensor data and combines the location information provided by the indoor positioning system to monitor 10 daily behaviors, with an identification accuracy rate of up to 93%. Although sensor devices have the advantages of low power consumption, small size, and high sensitivity, users are required to wear special sensor devices, which limits the freedom of users. In addition, for some devices that require multiple sensors to achieve their functions, users may not be able to complete some special actions, reducing the operability of the device.
[0005] The non-contact behavior perception technology does not require the human body to wear any equipment, which provides greater convenience and comfort for users. This technology mainly includes: computer vision behavior perception and wireless signal behavior perception. Among them, computer technology mainly uses cameras and other devices to take photos and videos of human movements, and applies computer vision related algorithms and image processing technology to perceive human behavior. In recent years, the research on human behavior perception based on vision has been very mature. Among them, the more representative commercial products are the Kinect intelligent somatosensory game console developed by Microsoft, which uses 3D somatosensory cameras and skeleton capture technology to capture information in three-dimensional space and can simultaneously identify the actions of four players. Although the human behavior perception technology based on computer vision can achieve a high recognition rate, this method relies on high-resolution videos and photos, which will infringe on the privacy of users in certain occasions, and the recognition rate will be reduced at night or in low light conditions. With the increasing number of WiFi hotspots deployed and the widespread application of WiFi, the human behavior perception method based on WiFi signals has received widespread attention. The basic principle is that when WiFi signals encounter human bodies and some obstacles during transmission, reflection, refraction, diffraction and scattering will occur, which will interfere with normal transmission. Human behavior can be perceived by analyzing the signals received at the receiving end. People do not need to wear any equipment, and can achieve non-contact detection without awareness, and it does not involve sensitive information of personal privacy. Obviously, this method is more convenient, more in line with people's needs, and applicable to a wider range of scenarios. In particular, with the rapid development and maturity of WiFi technology, many families can now install high-speed and stable WiFi devices. Using WiFi signals for perception can not only make more effective use of existing wireless network infrastructure without deploying additional equipment, but also wireless perception can be carried out simultaneously with network communication, improving the utilization rate of wireless resources. According to the information content of the analyzed signal, this technology can be divided into two categories, one is the traditional recognition technology based on received signal strength indication (RSSI), and the other is the emerging recognition technology based on wireless channel state information (CSI). However, RSSI recognition technology is easily affected by the temperature and humidity of the environment, and its stability and reliability are difficult to meet people's requirements. Compared with RSSI, CSI has stronger multipath resolution capability. It belongs to the physical layer information in the wireless signal, has a wide perception range and high sensitivity, making the use of finer-grained CSI information for perception a research trend.
[0006] However, most of the current research on behavior perception is mainly focused on the recognition of single complete actions, and the data sets are based on segmented or manually labeled action sequences. There are relatively few studies on unlabeled continuous behavior recognition. Accurately identifying continuous behaviors that occur over a period of time is of great research significance. The most critical issue is to extract segments that only contain one behavior from continuous human behavior information.
[0007] Through searching, no patent publication documents related to the patent application of the present invention have been found. Summary of the invention
[0008] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a non-contact continuous behavior perception method.
[0009] The present invention solves the technical problem by adopting the following technical solutions:
[0010] A non-contact continuous behavior perception method, the steps are as follows:
[0011] (1) Segmentation algorithm of continuous behavior information
[0012] The acquired CSI data first needs to be preprocessed. The preprocessed continuous multi-behavior data contains multiple human activities that occurred during this period, such as walking, waving, running, kicking, etc. When perceiving behavior, if a behavior segment only contains information about one behavior, it will be easier to extract the characteristics of this behavior. For example, when extracting the characteristic value of walking behavior, only multiple walking motion segments are needed, and walking and other behaviors cannot be mixed together. Therefore, when a piece of CSI data contains multiple behaviors, it will be very convenient to automatically segment them.
[0013] Different behavior segments are segmented by setting a threshold. Based on this, a segmentation algorithm for continuous behavior information is proposed, and the standard deviation is selected for segmentation. The main idea of the algorithm is: the standard deviation of the CSI amplitude information in the window is calculated through a sliding window of fixed length. Since the amplitude information fluctuates greatly during the activity, when the window slides on it, the calculated standard deviation is relatively large, while the CSI amplitude information between two behaviors is relatively flat. When the window slides to this flat part, the calculated standard deviation is small. By setting a threshold, the CSI segment with a standard deviation greater than the threshold in a continuous window is extracted, and the segmentation of a behavior information is completed.
[0014] The steps of the sliding window segmentation algorithm are shown in Table 2
[0015] Table 2 Segmentation algorithm for continuous behavior information
[0016]
[0017] (2) Characteristic Analysis of Behavioral Information
[0018] ①Feature extraction
[0019] A piece of behavior information contains a large amount of CSI data. For the CSI amplitude information of each behavior, 9 eigenvalues are selected in the time domain and frequency domain respectively. These eigenvalues are independent of each other, easy to distinguish, and have good separability in the classifier.
[0020] Among them, the feature values extracted in the time domain are:
[0021] 1) Mean, which reflects the average characteristics of the CSI signal within a time window.
[0022]
[0023] 2) Minimum value, which represents the minimum value feature within a time window.
[0024]
[0025] 3) Maximum value, which represents the maximum value feature within a time window.
[0026]
[0027] 4) Mode, which represents the value that appears most frequently in the window data.
[0028]
[0029] 5) Variance, which reflects the degree of deviation between the random variable and the mean.
[0030]
[0031] 6) The coefficient of variation, also known as the coefficient of dispersion, represents the discrete trend of the data relative to the mean.
[0032]
[0033] 7) Energy, which is equal to the sum of the squares of all data in the window.
[0034]
[0035] The eigenvalue extracted in the frequency domain is: power spectrum density, expressed as the Fourier transform of the signal autocorrelation function, and its calculation formula is:
[0036]
[0037] in It is the autocorrelation function of the signal, which is used to describe the energy distribution of the signal in the frequency domain. From the power spectrum density, the statistical characteristics of the amplitude can be extracted, and the extracted eigenvalues are:
[0038] 8) Amplitude:
[0039]
[0040] 9) Amplitude variance:
[0041]
[0042] ②Feature analysis
[0043] When human activities occur in the detection area, the above nine eigenvalues will change to a certain extent. However, under the influence of different behavioral actions, the changes in each eigenvalue are different to a certain extent.
[0044] (3) Selection of the Optimal Subcarrier
[0045] Among the numerous subcarriers of the receiving antenna, the same human behavior can independently affect the receiving antenna, and then affect different subcarriers. Each subcarrier, under the influence of the same human behavior, exhibits different fluctuation degrees and amplitudes.
[0046] Due to the diversity of frequencies, different subcarriers have different sensitivities to human activities. The variance of CSI amplitude information is used to quantify the sensitivity of subcarriers to human behavior, and the subcarrier with the largest CSI amplitude variance is selected for human behavior recognition.
[0047] (4) Improved support vector machine classification algorithm
[0048] In the SVM classification algorithm, a separating hyperplane cannot completely divide the eigenvalues of the behavior information into two parts. Therefore, the slack variable ξ is introduced to allow for classification errors in some samples in the training set, and to increase the penalty factor C for these erroneous training samples, which indicates the penalty for the classification errors of the sample points. In view of the problem of outliers in the training samples in behavior perception, the traditional SVM classification algorithm is improved. A slack variable βξ with a weight variable β is added to each sample point, and 0≤β≤1 is satisfied. This means that the classifier attaches different importance to each sample. If the sample point is farther from the class center, the possibility that the point belongs to this class is smaller. Assigning a smaller weight is equivalent to discarding these samples. Conversely, assigning a larger weight is equivalent to discarding these samples. This can reduce the impact of outliers on the classification performance.
[0049] Assume that there are m data samples in the training set, each sample has n eigenvalue attributes, and the i-th sample can be expressed as: {x i ,yi}(i=1,2,…,m), where x i ={x i1 , x i2 , …, x in}, represents the eigenvalue set of the i-th sample, y i ∈{-1, +1} represents the category label of the i-th sample. Let the equation of the separating hyperplane be:
[0050] w x i +b=0 Formula (11)
[0051] where w = {w 1 , w 2 ,…,w n}, represents the weight vector, and b represents the bias.
[0052] From the geometric relationship, we can see that the points above the separating hyperplane satisfy equation (16), and the points below the separating hyperplane satisfy equation (17):
[0053] w x i +b>0 Formula (12)
[0054] w x i +b<0 Formula (13)
[0055] After substituting the category label value, the separating hyperplane of the edge part can be expressed as:
[0056] H 1 :w·x i +b≥1,y i =+1 Formula (14)
[0057] H 2 :w·x i +b≤-1,y i =-1 Formula (15)
[0058] Combining the above two formulas, we can get:
[0059] y i (w·x i +b)≥1 Formula (16)
[0060] The samples in the training set that satisfy the above equation are called support vectors. These points fall on the hyperplane H. 1 or H 2 As can be seen, the separation hyperplane and H 1 and H 2 The distances are The edge spacing is H 1 With H 2 The distance, that is Therefore, the question now becomes The maximum planning problem is to take the maximum value, even if Take the minimum value:
[0061]
[0062] In order to prevent overfitting, the present invention adds a weight variable β in formula (17) i After the relaxation factor is changed to:
[0063]
[0064] y i (w·x i +b)≥1-ξ i ,ξ i ≥0 Formula (19)
[0065] where ξ i is a slack variable, also known as a soft interval, and C is a penalty factor. The larger the C value, the less tolerant classification errors are. When the C value approaches infinity, it means that no classification errors are allowed. At this time, the recognition effect of SVM is the same as when no slack variables are added. i is the weight variable of the relaxation factor and satisfies 0≤β≤1. The calculation formula is:
[0066]
[0067] Where μ is the mean of the training samples, σ is the standard deviation of the training samples. From formula (22), we can see that ξ i is a measure of the degree of misclassification, so β i ξ i It becomes a measure of the degree of misclassification of sample points of different importance. The farther the sample point is from the class center, the smaller the possibility that the point belongs to this class. i Assign a smaller weight, otherwise assign a larger weight.
[0068] For the convex minimization problem of formula (22), the Lagrange multiplier method can be used to solve it. Let the Lagrange variable be α, and the Lagrange function can be obtained as:
[0069]
[0070] where α i is a Lagrange multiplier greater than 0. Taking the partial derivative of L(w, b, λ) with respect to the weight vector w and the bias b and setting it equal to 0, we can obtain:
[0071]
[0072]
[0073] Substituting formula (22) into formula (21), we can obtain:
[0074]
[0075] By using the Karush-Kuhn-Tucker (KKT) optimization condition, L(w, b, λ) is transformed into a dual problem, and we can obtain:
[0076]
[0077]
[0078] Using the sequential minimum optimization algorithm, we can solve Using formula (22) again, we can get:
[0079]
[0080] Since the support vector satisfies the equations (18) and (19), we can obtain:
[0081]
[0082] So the final decision function is:
[0083]
[0084] After the sample data is linearly transformed, the amount of calculation will increase exponentially as the dimension increases. The kernel function can be used to calculate the mapped high-dimensional vector in the low-dimensional space. i ·x j >, thereby reducing the computational complexity in high-dimensional space.
[0085] The commonly used kernel functions of SVM are shown in Table 3:
[0086] Table 3 Common kernel functions of SVM
[0087]
[0088] Select the RBF kernel function. After adding the kernel function, equations (29) and (33) become:
[0089]
[0090]
[0091]
[0092] In formula (35), the constraint of the improved SVM is 0≤α i≤Cβ i , while the constraint of traditional SVM is α i ≥0, and the dual problem and decision function of the improved SVM in equations (30) and (32) are the same as those of the traditional SVM, which means that the SVM after adding the weight variable β is different from the traditional SVM only in the constraints. The improved SVM adds a constraint interval to the Lagrange multiplier α, and the maximum value can only be Cβ. The Lagrange multiplier of the outlier usually has a large value, which means that the constraint interval limits the influence of the outlier, and the constraint also guarantees the boundary of the feasible domain. Therefore, the improved SVM has the effect of eliminating the influence of outliers and reducing the impact of the environment on CSI information.
[0093] In addition, the improved SVM algorithm uses the traditional SVM algorithm for multi-classification problems. Because SVM is essentially a two-class classifier and does not support multi-classification problems, a combination of multiple SVM classifiers is required to complete the multi-classification problem.
[0094] The advantages and positive effects achieved by the present invention are:
[0095] Aiming at the problem that most of the existing action data sets come from a single action series, a continuous action data segmentation algorithm based on sliding windows is proposed to extract segments containing only one action from continuous human action information. At the same time, an improved support vector machine perception algorithm is proposed, which is simple and efficient to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] Figure 1 The original CSI amplitude curve and the CSI amplitude curve after hampel filtering in the present invention; wherein, (a) the original CSI amplitude curve of 30 subcarriers, (b) the CSI amplitude curve after hampel filtering of 30 subcarriers, (c) the original CSI amplitude curve of the 10th subcarrier, (d) the CSI amplitude curve after hampel filtering of the 10th subcarrier;
[0097] Figure 2 It is the three-layer wavelet decomposition graph of the present invention;
[0098] Figure 3 is the CSI amplitude curve after wavelet threshold denoising in the present invention;
[0099] Figure 4 is the CSI amplitude information of the continuous behavior in the present invention;
[0100] Figure 5 is the change of the characteristic value of the continuous behavior information in the present invention; wherein, (a) the change of the standard deviation, (b) the change of the mean absolute deviation, (c) the change of the interquartile range, and (d) the change of the fluctuation speed;
[0101] Figure 6 For the segmentation of continuous human behavior information in the present invention;
[0102] Figure 7 are the characteristic values of the four behaviors in the present invention; (a) maximum value, (b) minimum value, (c) average value, (d) mode, (e) variance, (f) coefficient of dispersion, (g) amplitude variance, (h) amplitude magnitude, (i) energy;
[0103] Figure 8 The subcarrier amplitude variation in the present invention; wherein (a) the same subcarrier amplitude variation in different receiving antennas, (b) the different subcarrier amplitude variation in the same receiving antenna;
[0104] Fig. 9 The changes of subcarrier amplitude information and variance in the present invention; wherein, (a) subcarrier amplitude information changes, (b) subcarrier variance changes;
[0105] Fig.10 It is a multi-class sample classification method in the present invention;
[0106] Fig.11 This is a diagram of the hardware device in the present invention;
[0107] Fig.12 Figure 1 is a diagram of the experimental environment in the present invention; (a) office, (b) laboratory;
[0108] Fig.13 It is a data collection flow chart in the present invention;
[0109] Fig.14 This is a diagram of the CSI data collection interface in the present invention;
[0110] Fig.15 It is a data format diagram of CSI in the present invention;
[0111] Fig.16 : is a diagram of the amplitude and phase information of CSI in the present invention; wherein, (a) the amplitude information of antenna 1, (b) the phase information of antenna 1, (c) the amplitude information of antenna 2, and (d) the amplitude information of antenna 3;
[0112] Fig.17 The CSI amplitude information diagrams of four behaviors in the present invention are as follows: (a) walking, (b) running, (c) waving, and (d) kicking;
[0113] Fig.18 : CSI phase information diagram of nine behaviors in the present invention; among them, (a) walking, (b) running, (c) waving, and (d) kicking;
[0114] Fig.19These are action pictures of four behaviors in the present invention, including (a) walking, (b) running, (c) waving, and (d) kicking.
[0115] Fig. 20 For the present invention Fig. 20 Parameter optimization results; (a) 3D view (b) contour map;
[0116] Fig.21 Identification results of different behaviors;
[0117] Fig. 22 Comparison between the traditional SVM algorithm and the improved SVM algorithm in the present invention; (a) traditional SVM algorithm (b) improved SVM algorithm;
[0118] Fig.23 The confusion matrix of the traditional SVM algorithm and the improved SVM algorithm in the present invention; (a) the confusion matrix of the traditional SVM algorithm and (b) the confusion matrix of the improved SVM algorithm. DETAILED DESCRIPTION
[0119] The present invention will be further described in detail below in conjunction with specific examples. The following examples are only illustrative and not restrictive, and the protection scope of the present invention cannot be limited thereto.
[0120] The structures not specifically described in detail in the present invention may be understood as conventional structures in the art.
[0121] This invention proposes a non-contact continuous behavior perception method to identify four behaviors. The specific preparation and detection are as follows:
[0122] 1.1 CSI Data Preprocessing
[0123] 1.1.1 Hampel outlier removal algorithm
[0124] In the collected raw data of CSI, some CSI amplitudes change suddenly. Figure 1 (a) (c) are the amplitude change information of the 30 subcarriers and the 10th subcarrier in the receiving antenna 1. It can be seen that the amplitude of some subcarriers has changed suddenly. In the present invention, these outliers are removed by using the Hampel outlier removal algorithm. The CSI amplitude information after outlier removal is shown in FIG. Figure 1 As shown in (b) and (d), it can be seen that Figure 1 The mutation values in the red circles in (a)(c) have been obviously removed.
[0125] 1.1.2 Wavelet threshold denoising algorithm
[0126] After removing the outliers, the CSI amplitude information still contains a large amount of environmental noise. The changes in wireless signals caused by human movements are mainly concentrated in the low-frequency range, and the environmental noise is mainly concentrated in the high-frequency range. Therefore, the present invention uses a wavelet threshold denoising algorithm to remove high-frequency noise.
[0127] In such Figure 2 In the three-layer wavelet decomposition process shown, s is a wavelet signal containing noise, a1, a2, a3 are the decomposition coefficients of low-frequency signals in layers 1 to 3, and d1, d2, d3 are the decomposition coefficients of high-frequency signals. The specific steps of the wavelet threshold denoising algorithm used in the present invention are shown in Table 1.
[0128] Table 1 Wavelet threshold denoising algorithm
[0129]
[0130] After wavelet threshold denoising, the CSI amplitude information is as follows: Figure 3 As shown. It can be seen that Figure 3 The CSI amplitude information in the CNN not only effectively removes the interference of high-frequency noise, but also protects the peak value in the original signal to avoid filtering transition.
[0131] 1.2 Segmentation Algorithm for Continuous Behavior Information
[0132] The preprocessed continuous multi-behavior data contains multiple human activities that occurred during this period, such as walking, waving, running, kicking, etc. In behavior perception, if a behavior segment contains only information about one behavior, it will be easier to extract the characteristics of this behavior, such as Figure 4 For example, when extracting the feature value of walking behavior, only multiple walking motion segments are needed, and walking and other behaviors cannot be mixed together. Therefore, when a piece of CSI data contains multiple behaviors, it will be very convenient to automatically segment them.
[0133] Through Figure 4 The analysis of this continuous behavior information found that when the human body remains stationary in the environment, the CSI amplitude information approximately remains horizontal. When the human body is active, the CSI amplitude information will fluctuate over time. After the human body is stationary, the CSI amplitude information returns to stability, which shows that the CSI amplitude information has the properties of being stable in static state and fluctuating in dynamic state. In order to analyze this property of CSI amplitude information, Figure 5 The standard deviation, mean absolute deviation, interquartile range and fluctuation speed are plotted over time within a window.
[0134] from Figure 5It can be seen that when the human body is stationary, the values of standard deviation, mean absolute deviation, interquartile range and fluctuation speed are relatively small and approximately equal to 0, while when the human body is active, these values have undergone significant changes, and the degree of change of each behavior is also quite different. Therefore, by setting a threshold near 0 and extracting all parts greater than the threshold, different behavior segments can be segmented. Therefore, the present invention proposes a segmentation algorithm for continuous behavior information. Considering the simplicity of calculation, the present invention chooses to use standard deviation for segmentation. The main idea of the algorithm is: to calculate the standard deviation of the CSI amplitude information in the window through a sliding window of fixed length. Since the amplitude information fluctuates greatly during activity, when the window slides on it, the calculated standard deviation is relatively large, while the CSI amplitude information between two behaviors is relatively flat. When the window slides to this flat part, the calculated standard deviation is small. By setting a threshold, a CSI segment with a standard deviation greater than the threshold in a continuous window is extracted, and the segmentation of a behavior information is completed. The algorithm steps are shown in Table 2.
[0135] Table 2 Segmentation algorithm for continuous behavior information
[0136]
[0137]
[0138] The result of using the continuous behavior information segmentation algorithm on this section of CSI information is as follows Figure 6 As shown and marked with red dots. Figure 6 It can be seen that the information with larger fluctuation amplitudes has been extracted, and each segment contains only one kind of behavior information, which will be identified using a classifier.
[0139] 1.3 Characteristic Analysis of Behavioral Information
[0140] 1.3.1 Feature extraction
[0141] A large amount of CSI data is contained in a piece of behavior information. In order to reduce the amount of calculated data, the present invention selects 9 eigenvalues in the time domain and frequency domain for the CSI amplitude information of each behavior. These eigenvalues are independent of each other, easy to distinguish, and have good separability in the classifier.
[0142] Among them, the feature values extracted in the time domain are:
[0143] 1) Mean, which reflects the average characteristics of the CSI signal within a time window.
[0144]
[0145] 2) Minimum value, which represents the minimum value feature within a time window.
[0146]
[0147] 3) Maximum value, which represents the maximum value feature within a time window.
[0148]
[0149] 4) Mode, which represents the value that appears most frequently in the window data.
[0150]
[0151] 5) Variance, which reflects the degree of deviation between the random variable and the mean.
[0152]
[0153] 6) The coefficient of variation, also known as the coefficient of dispersion, represents the discrete trend of the data relative to the mean.
[0154]
[0155] 7) Energy, which is equal to the sum of the squares of all data in the window.
[0156]
[0157] The eigenvalue extracted in the frequency domain is: power spectrum density, expressed as the Fourier transform of the signal autocorrelation function, and its calculation formula is:
[0158]
[0159] in It is the autocorrelation function of the signal, which is used to describe the energy distribution of the signal in the frequency domain. From the power spectrum density, the statistical characteristics of the amplitude can be extracted, and the extracted eigenvalues are:
[0160] 8) Amplitude:
[0161]
[0162] 9) Amplitude variance:
[0163]
[0164] 1.3.2 Feature Analysis
[0165] When human activity occurs in the detection area, the above 9 eigenvalues will change to a certain extent. However, under the influence of different behaviors, the change of each eigenvalue is different. In order to compare the differences between the eigenvalues of different behaviors, Figure 7 The variation of the characteristic values of the four behaviors on different sub-loads is plotted in Figure .
[0166] from Figure 7 It can be seen that these characteristic values are different between the four behaviors, but they are slightly different on different subcarriers. The overall change pattern is: on subcarriers with relatively low index values, the characteristic values of different behaviors are more obvious, and on subcarriers with relatively high index values, the characteristic values of some behaviors will be confused, for example, the amplitude value and amplitude variance of the power spectrum density are more confused. This shows that when performing behavior recognition, selecting subcarriers with relatively low index values will help improve the recognition accuracy. However, in the system of the present invention, CSI data is collected by 3 receiving antennas, each receiving antenna contains 30 subcarriers, so each human behavior corresponds to 90 subcarriers of data. A large number of subcarriers will result in a large amount of data, and the differences between different subcarriers will also affect the recognition results. Therefore, it is necessary to select an optimal subcarrier from these subcarriers as the data information of the behavior.
[0167] 1.4 Optimal Subcarrier Selection
[0168] Among the many subcarriers of receiving antennas, we found through experiments that the same human behavior can independently affect the three receiving antennas and thus affect different subcarriers. Figure 8 (a) is the CSI amplitude information of the 10th subcarrier in three receiving antennas. Although the subcarrier index numbers are the same, they show different fluctuation states under the influence of the same human behavior. Figure 8 (b) shows the fluctuation of three different subcarriers in the same receiving antenna. Although their absolute values are different, they show similar fluctuation states. Based on the above two observations, it can be concluded that each subcarrier exhibits different fluctuation degrees and amplitudes under the influence of the same human behavior.
[0169] Due to the diversity of frequencies, different subcarriers have different sensitivities to human activities. Fig. 9 (a) is the change of amplitude information in 30 subcarriers in receiving antenna 1 over time. It can be found that subcarriers with smaller index values are greatly affected by human behavior, while subcarriers with higher index values (i.e., from 15 to 30) are less sensitive to human behavior, which is the same as the change pattern of characteristic values in different subcarriers. This is because different subcarriers have different center frequencies and wavelengths. Under the influence of multipath and shadow effects, different subcarriers show different amplitude information, so subcarriers that are insensitive to human behavior should be filtered out. The present invention uses the variance of CSI amplitude information to quantify the sensitivity of subcarriers to human behavior. Fig. 9(b) is the variance of the 30 subcarriers in the receiving antenna 1. The subcarrier 7 with a higher amplitude variance has a larger dynamic response and is most sensitive to human behavior. Therefore, the present invention selects the subcarrier with the largest CSI amplitude variance to perform human behavior recognition.
[0170] 1.5 Improved support vector machine classification algorithm
[0171] In the SVM classification algorithm, a separating hyperplane cannot completely separate the eigenvalues of the behavior information into two parts. Therefore, the slack variable ξ is introduced to allow for classification errors in some samples in the training set, and to increase the penalty factor C for these erroneous training samples, indicating the intensity of the penalty for the classification errors of the sample points. However, the traditional SVM does not take into account the influence of outliers in the sample on the search for the optimal hyperplane, and the CSI amplitude information is easily affected by the environment, causing abnormal fluctuations in the amplitude information of some behaviors, making these samples become outliers in the training set. If the outliers become support vectors, the optimal hyperplane found by the SVM will be greatly different from the actual optimal hyperplane, which will have a serious impact on the recognition ability. Therefore, the present invention improves the traditional SVM classification algorithm to address the problem of outliers in training samples in behavior perception. A slack variable βξ with a weight variable β is added to each sample point, and 0≤β≤1 is satisfied. This means that the classifier attaches different importance to each sample. The farther the sample point is from the class center, the smaller the possibility that the point belongs to this class. Assigning a smaller weight is equivalent to discarding these samples. Otherwise, assigning a larger weight is equivalent to discarding these samples. This reduces the impact of outliers on classification performance.
[0172] Assume that there are m data samples in the training set, each sample has n eigenvalue attributes, and the i-th sample can be expressed as: {x i ,y i}(i=1,2,…,m), where x i ={x i1 , x i2 , …, x in}, represents the eigenvalue set of the i-th sample, y i ∈{-1, +1} represents the category label of the i-th sample. Let the equation of the separating hyperplane be:
[0173] w x i +b=0 Formula (11)
[0174] where w = {w 1 , w 2 ,…,w n}, represents the weight vector, and b represents the bias.
[0175] From the geometric relationship, we can see that the points above the separating hyperplane satisfy equation (12), and the points below the separating hyperplane satisfy equation (13):
[0176] w x i +b>0 Formula (12)
[0177] w x i +b<0 Formula (13)
[0178] After substituting the category label value, the separating hyperplane of the edge part can be expressed as:
[0179] H 1 :w·x i +b≥1,y i =+1 Formula (14)
[0180] H 2 :w·x i +b≤-1,y i =-1 Formula (15)
[0181] Combining the above two formulas, we can get:
[0182] y i (w·x i +b)≥1 Formula (16)
[0183] The samples in the training set that satisfy the above equation are called support vectors. These points fall on the hyperplane H. 1 or H 2 As can be seen, the separation hyperplane and H 1 and H 2 The distances are The edge spacing is H 1 With H 2 The distance, that is Therefore, the question now becomes The maximum planning problem is to take the maximum value, even if Take the minimum value:
[0184]
[0185] In order to prevent overfitting, the present invention adds a weight variable β in formula (17) i After the relaxation factor is changed to:
[0186]
[0187] y i (w·x i +b)≥1-ξ i ,ξ i ≥0 Formula (19)
[0188] where ξ i is a slack variable, also known as a soft interval, and C is a penalty factor. The larger the C value, the less tolerant classification errors are. When the C value approaches infinity, it means that no classification errors are allowed. At this time, the recognition effect of SVM is the same as when no slack variables are added. i is the weight variable of the relaxation factor and satisfies 0≤β≤1. The calculation formula is:
[0189]
[0190] Where μ is the mean of the training samples, σ is the standard deviation of the training samples. From formula (18), we can see that ξ i is a measure of the degree of misclassification, so β i ξ i It becomes a measure of the degree of misclassification of sample points of different importance. The farther the sample point is from the class center, the smaller the possibility that the point belongs to this class. i Assign a smaller weight, otherwise assign a larger weight.
[0191] For the convex minimization problem of equation (18), the Lagrange multiplier method can be used to solve it. Let the Lagrange variable be α, and the Lagrange function can be obtained as:
[0192]
[0193] where α i is a Lagrange multiplier greater than 0. Find the partial derivative of L(w, b, λ) with respect to the weight vector w and the bias b, and make it equal to 0, we can get:
[0194]
[0195]
[0196] Substituting formula (22) into formula (21), we can obtain:
[0197]
[0198] By using the Karush-Kuhn-Tucker (KKT) optimization condition, L(w, b, λ) is transformed into a dual problem, and we can obtain:
[0199]
[0200]
[0201] Using the sequential minimum optimization algorithm, we can solve Using formula (22) again, we can get:
[0202]
[0203] Since the support vector satisfies the equations (14) and (15), we can obtain:
[0204]
[0205] So the final decision function is:
[0206]
[0207] After the sample data is linearly transformed, the amount of calculation will increase exponentially as the dimension increases. The kernel function can be used to calculate the mapped high-dimensional vector in the low-dimensional space. i ·x j >, thereby reducing the computational complexity in high-dimensional space. Commonly used kernel functions are shown in Table 3:
[0208] Table 3 Common kernel functions of SVM
[0209]
[0210] Using different kernel functions generally does not lead to significant differences in results, and there is currently no standard to determine which kernel function is better. In practice, the radial basis function (RBF) kernel function has strong adaptability in many cases. When the specific situation of the sample is not known, researchers generally choose the RBF kernel function. Therefore, the present invention also chooses the RBF kernel function. After adding the kernel function, equations (25) and (29) become:
[0211]
[0212]
[0213]
[0214] In formula (31), the constraint of the improved SVM is 0≤α i ≤Cβ i , while the constraint of traditional SVM is α i≥0, and the dual problem and decision function of the improved SVM in equations (30) and (32) are the same as those of the traditional SVM, which means that the SVM after adding the weight variable β is different from the traditional SVM only in the constraints. The improved SVM adds a constraint interval to the Lagrange multiplier α, and the maximum value can only be Cβ. The Lagrange multiplier of the outlier usually has a large value, which means that the constraint interval limits the influence of the outlier, and the constraint also guarantees the boundary of the feasible domain. Therefore, the improved SVM has the effect of eliminating the influence of outliers and reducing the impact of the environment on CSI information.
[0215] In addition, the improved SVM algorithm uses the traditional SVM algorithm for multi-classification problems. SVM is essentially a two-class classifier and does not support multi-classification problems. For multi-classification problems, a combination of multiple SVM classifiers is required. Fig.10 The multi-classification method shown in the figure selects samples of two categories in each classification, and the remaining samples are assigned to these two categories through SVM. In this way, after three layers of SVM classifiers, the classification of four behaviors is achieved. For classification problems with more categories, the same method can be used to divide the four categories in the third layer into eight categories until the category requirements are met.
[0216] 2.1 Experimental equipment and environment
[0217] 2.1.1 Experimental equipment
[0218] The present invention realizes the collection of CSI data by using Intel 5300 wireless network card, TP-LINK wireless router and Linux 802.11CSITools open source software package. Intel 5300 wireless network card can use three antennas to receive information at the same time, so the control of the working parameters of each antenna can be realized through the instructions of the terminal, and the received signal can be effectively controlled. The TP-LINK wireless router includes three 2.4GHz and one 5GHz antennas, which are connected to the computer terminal as a transmitter to send data packets to the wireless network card. Linux 802.11 CSITools can parse CSI data packets from the Intel 5300 wireless network card and obtain CSI information. Fig.10 The terminal is a wireless network card and a wireless router, and the operating system running on the terminal is Ubuntu 16.04. The computer terminal equipped with the wireless network card is used as the detection point (DP), and the wireless router is used as the access point (AP) and is connected to the computer terminal. The receiving end is connected to three 12db gain receiving antennas, and the wireless router uses a 5GHz transmitting antenna, so the transmitting end and the receiving end form a 1×3 MIMO system array.
[0219] 2.1.2 Experimental environment
[0220] The experimental environment of the present invention is selected to be carried out in an office and a laboratory, and its plan is as follows Fig.11 shown. Fig.11 In the figure, RX is the position of the receiving antenna, TX is the position of the transmitting antenna, and the experimenter moves between RX and TX. In the office environment, there are other people sitting on chairs operating computers, mobile phones, etc. In the laboratory environment, there are no other people.
[0221] 2.2 CSI Data Collection
[0222] The CSI data collection process in the present invention is as follows: Fig.12 As shown, you first need to download and install the Linux 802.11 CSITools software package on a computer terminal with Ubuntu 16.04 system installed, and then configure the network and turn on the wireless network card through commands in the terminal to connect the receiving end to the transmitting end. Then set the gateway address, sampling frequency, sending mode and other working modes of the wireless router. Since some human behaviors occur in a short time, in order to collect information changes in a short time, the present invention sets the sampling frequency to 50Hz, that is, a data packet is sent every 0.02 seconds. Finally, the CSI data collected at the receiving end is stored in a file with the suffix .dat. The data acquisition interface is shown as follows Fig.13 shown.
[0223] The collected CSI data needs to be read and analyzed using Matlab to obtain the specific values of the CSI amplitude and phase. Fig.14 This is a section of CSI data read using Matlab. Since the present invention uses a 1×3 MIMO system array, the acquired CSI data format is a 30×3 complex matrix, where each row corresponds to a subcarrier and each column corresponds to a receiving antenna. Matlab can be used to draw a curve of its change over time, such as Fig.15 shown.
[0224] 2.3 Experimental data
[0225] During the experiment, the transmitting antenna and the receiving antenna were fixed at a height of 0.6m and located at a line of sight with no other interference. In the experimental environment of the office and the laboratory, four common behaviors of two volunteers, namely walking, running, waving, and kicking, were collected. The improved SVM classification algorithm identified these four behaviors. In the single-person scenario, the average collection time for each behavior was 3 seconds. The changes in the CSI amplitude information are shown in the figure below. Fig.17 As shown in Figure 2, the change of CSI phase information is as follows: Fig.18 As shown, the action picture is as follows Fig.19 Table 4 shows the collection of experimental data, and 160 data of each behavior are selected as training sets, and the rest are used as test sets.
[0226] Table 4 Data collection
[0227]
[0228] 2.4 Results of the improved SVM recognition algorithm
[0229] 2.4.1 SVM parameter optimization results
[0230] When training the SVM classifier, the present invention uses the libsvm toolkit, selects the radial basis function as the kernel function, and normalizes the CSI feature values of the training set and the test set. The training set is 640×9 feature data, the test set is 160×9 feature data, the cross-validation coefficient is set to 5, and a total of 5 training and testing are performed, and the final result is the average value of the 5 recognition results. The attribute label values of the 4 behaviors are set to 1 to 4, and an attribute label matrix of size 800×1 is established, corresponding to the training set and the test set respectively. Fig. 20 3D view and contour plot of the parameter optimization results of the classifier during training.
[0231] from Fig. 20 It can be seen that the improved SVM classifier can achieve a maximum recognition accuracy of 96.1% for the training set. According to the principle of parameter optimization, when the training accuracy is the same, the penalty factor coefficient C and the kernel function parameter coefficient g select the pair of (C, g) values with the smallest C value. Therefore, the final penalty factor coefficient C is 11.3137 and the kernel function parameter coefficient g is 2.
[0232] 2.4.2 SVM recognition results
[0233] The recognition results of the SVM classifier on the test set data are as follows Fig.21 As shown, in Fig.21 The results of the traditional SVM algorithm and the improved SVM algorithm for the recognition of four behaviors are compared in the paper. In the improved SVM classification algorithm, the overall recognition accuracy rate is increased from 90.6% to 95.6%. The number of correct recognitions of walking, running and kicking behaviors has increased, but the increase is not large, only about 2 to 3, and there is no increase in waving behavior. Because the main function of the improved SVM classification algorithm is to eliminate the interference of outliers, this shows that there will be more or less outlier samples in the data set of each behavior, but such outlier samples only account for a small part and the number is not large.
[0234] The main difference between the improved SVM classification algorithm and the traditional SVM classification algorithm is that the relaxation factor adds a relaxation variable βξ with a weight variable β. The weight variable β can be assigned different values according to the distance of the sample point from the class center, which effectively curbs the influence of outliers on the classifier. In order to compare the performance of the improved SVM classification algorithm with the traditional SVM classification algorithm in resisting outlier interference, Fig. 22 The separation hyperplanes of the two algorithms for the walking and running binary classification problems are drawn in Figure 1. The data points in the lower right part are artificially added noise points. Fig. 22 It can be seen that the traditional SVM algorithm will cause the hyperplane to deviate from the actual position due to outliers, while the improved SVM algorithm can avoid this problem well. Therefore, the improved SVM classification algorithm has greater advantages in suppressing outlier interference.
[0235] Fig.23 is the confusion matrix of the traditional SVM algorithm and the improved SVM algorithm for each behavior recognition result. Fig.23 It can be seen that the traditional SVM classification algorithm has serious confusion in misclassifying each behavior, especially the recognition accuracy of walking and kicking behaviors is less than 90%. The improved SVM classification algorithm has been improved to a certain extent, and the recognition accuracy of each behavior has been increased to more than 95%.
[0236] 2.4.3 Continuous Behavior Recognition Results
[0237] The recognition results of the four continuous behaviors using the improved SVM classification algorithm are shown in Table 5. Correct recognition here means that each behavior in the continuous behavior can be recognized, and the order in which the behaviors occur is recognized correctly. For the fragmented behaviors, if each fragmented part is recognized as the same behavior, then the present invention still considers the recognition to be correct. For example, for the continuous behavior action "waving + walking", if the recognition result is "waving + walking + walking", where the walking behavior is divided into two parts, but both parts are recognized as walking, then the present invention still considers the recognition to be correct.
[0238] Table 5 Recognition results of continuous behavior
[0239]
[0240] As can be seen from Table 5, the number of correct recognitions of three and four continuous behaviors is lower than that of two continuous behaviors. This is because continuous behaviors containing multiple actions will produce a greater degree of action segmentation, and this situation will be aggravated as the number of behaviors in the continuous behavior increases. In the continuous behavior segmentation algorithm, if the behavior segmentation is incomplete or contains part of the signal of the next behavior, it will affect the next segmentation. Therefore, when the number of behaviors contained in the continuous behavior information increases, the signal length increases, and the segmentation result will also be affected.
[0241] Although the embodiments of the present invention are disclosed for illustrative purposes, those skilled in the art will appreciate that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the scope of the present invention is not limited to the contents disclosed in the embodiments.
Claims
1. A non-contact continuous behavior perception method, the steps are as follows: (1) Segmentation algorithm of continuous behavior information The acquired CSI data first needs to be preprocessed. The preprocessed continuous multi-behavior data contains multiple human activities that occurred during this period, such as walking, waving, running, kicking, etc. In behavior perception, if a behavior segment only contains information about one behavior, it will be easy to extract the characteristics of this behavior. For example, when extracting the characteristic value of walking behavior, only multiple walking motion segments are needed, and walking and other behaviors cannot be mixed together. Therefore, when a piece of CSI data contains multiple behaviors, it will be very convenient to automatically segment them. By setting a threshold to segment different behavior segments, a segmentation algorithm for continuous behavior information is proposed based on this, and the standard deviation is selected for segmentation. The main idea of the algorithm is to calculate the standard deviation of the CSI amplitude information in the window through a sliding window of fixed length. Since the amplitude information fluctuates greatly during the activity, when the window slides on it, the calculated standard deviation is relatively large, while the CSI amplitude information between two behaviors is relatively flat. When the window slides to this flat part, the calculated standard deviation is small. By setting a threshold, the CSI segment with a standard deviation greater than the threshold in a continuous window is extracted, and the segmentation of a behavior information is completed. The steps of the sliding window segmentation algorithm are as follows: (2) Characteristic Analysis of Behavioral Information ①Feature extraction A piece of behavior information contains a large amount of CSI data. For the CSI amplitude information of each behavior, 9 eigenvalues are selected in the time domain and frequency domain. These eigenvalues are independent of each other, easy to distinguish, and have good separability in the classifier. in, The feature values extracted in the time domain are: 1) Mean, which reflects the average characteristics of the CSI signal within a time window, 2) Minimum value, which represents the minimum value feature within a time window, 3) Maximum value, which represents the maximum value feature within a time window, 4) Mode, which indicates the value that appears most frequently in the window data. 5) Variance, which reflects the degree of deviation between the random variable and the mean. 6) The coefficient of variation, also known as the coefficient of dispersion, represents the discrete trend of the data relative to the mean. 7) Energy, which is equal to the sum of the squares of all data in the window, The eigenvalue extracted in the frequency domain is: power spectrum density, expressed as the Fourier transform of the signal autocorrelation function, and its calculation formula is: in It is the autocorrelation function of the signal, which is used to describe the energy distribution of the signal in the frequency domain. From the power spectrum density, the statistical characteristics of the amplitude can be extracted. The extracted eigenvalues are: 8) Amplitude: 9) Amplitude variance: ②Feature analysis When human activity occurs in the detection area, the above 9 eigenvalues will change to a certain extent. However, under the influence of different behaviors, the changes of each eigenvalue are different. (3) Selection of the Optimal Subcarrier Among the numerous subcarriers of the receiving antenna, the same human behavior can independently affect the receiving antenna, and then affect different subcarriers. Each subcarrier, under the influence of the same human behavior, shows different fluctuation degrees and amplitudes. Due to the diversity of frequencies, different subcarriers have different sensitivities to human activities. The variance of CSI amplitude information is used to quantify the sensitivity of subcarriers to human behavior, and the subcarrier with the largest CSI amplitude variance is selected for human behavior recognition. (4) Improved support vector machine classification algorithm In the SVM classification algorithm, a separating hyperplane cannot completely divide the eigenvalues of the behavior information into two parts. Therefore, the slack variable ξ is introduced to allow for classification errors in some samples in the training set, and to increase the penalty factor C for these erroneous training samples, which indicates the penalty for the classification errors of the sample points. In view of the problem of outliers in the training samples in behavior perception, the traditional SVM classification algorithm is improved. A slack variable βξ with a weight variable β is added to each sample point, and 0≤β≤1 is satisfied. This means that the classifier attaches different importance to each sample. If the sample point is farther from the class center, the possibility that the point belongs to this class is smaller. Assigning a smaller weight is equivalent to discarding these samples. Conversely, assigning a larger weight is equivalent to reducing the impact of outliers on the classification performance. Assume that there are m data samples in the training set, each sample has n eigenvalue attributes, and the i-th sample can be expressed as: {x i ,y i }(i=1,2,…,m), where x i ={x i1 , x i2 , …, x in }, represents the eigenvalue set of the i-th sample, y i ∈{-1, +1} represents the category label of the i-th sample, and the equation of the separating hyperplane is: w x i +b=0 Formula (11) where w = {w1, w2, ..., w n }, represents the weight vector, b represents the bias, From the geometric relationship, we can see that the points above the separating hyperplane satisfy equation (12), and the points below the separating hyperplane satisfy equation (13): w x i +b>0 Formula (12) w x i +b<0 Formula (13) After substituting the category label value, the separating hyperplane of the edge part can be expressed as: H1: w·x i +b≥1, y i = +1 Equation (14) H2: w x i +b≤-1,y i =-1 Formula (15) Combining the above two formulas, we can get: y i (w·x i +b)≥1 Formula (16) The samples in the training set that satisfy the above equation are called support vectors. These points fall on the hyperplane H1 or H2. It can be seen that the distance between the separating hyperplane and H1 and H2 is The edge separation is the distance between H1 and H2, that is, Therefore, the question now becomes The maximum planning problem is to take Take the minimum value: In order to prevent overfitting, the present invention adds a weight variable β in formula (17) i After the relaxation factor is changed to: y i (w x i +b)≥1-ξ i ,x i ≥0 forms(19) where ξ i is a slack variable, also known as a soft interval, and C is a penalty factor. The larger the C value, the less tolerant classification errors are. When the C value approaches infinity, it means that no classification errors are allowed. At this time, the recognition effect of SVM is the same as when no slack variables are added. i is the weight variable of the relaxation factor and satisfies 0≤β≤1. The calculation formula is: Where μ is the mean of the training samples, σ is the standard deviation of the training samples. From formula (18), we can see that ξ i is a measure of the degree of misclassification, so β i ξ i It becomes a measure of the degree of misclassification of sample points of different importance. The farther the sample point is from the class center, the smaller the possibility that the point belongs to this class. i Assign a smaller weight, otherwise assign a larger weight. For the convex minimization problem of formula (18), the Lagrange multiplier method can be used to solve it. Assuming the Lagrange variable is α, the Lagrange function can be obtained as follows: where α i is a Lagrange multiplier greater than 0. Find the partial derivative of L(w, b, λ) with respect to the weight vector w and the bias b and make it equal to 0, and we can get: Substituting formula (22) into formula (21), we can obtain: By using the Karush-Kuhn-Tucker (KKT) optimization condition, L(w, b, λ) is transformed into a dual problem, and we can obtain: Using the sequential minimum optimization algorithm, we can solve Using formula (22) again, we can get: Since the support vector satisfies the equations (18) and (19), we can obtain: So the final decision function is: After the sample data is linearly transformed, the amount of calculation will increase exponentially as the dimension increases. The kernel function can be used to calculate the mapped high-dimensional vector in the low-dimensional space. <x i ·x j >, thereby reducing the computational complexity in high-dimensional space, The commonly used kernel functions of SVM are as follows: Select the RBF kernel function. After adding the kernel function, equations (25) and (29) become In formula (35), the constraint of the improved SVM is 0≤α i ≤Cβ i , while the constraint of traditional SVM is α i ≥0, and the dual problem and decision function of the improved SVM in equations (34) and (36) are the same as those of the traditional SVM. This shows that the SVM after adding the weight variable β is different from the traditional SVM only in the constraints. The improved SVM adds a constraint interval to the Lagrange multiplier α, and the maximum value can only be Cβ. The Lagrange multiplier of the outlier usually has a large value. The constraint interval limits the influence of the outlier and ensures the boundary of the feasible domain, reducing the impact of the environment on the CSI information.
2. A non-contact continuous behavior perception method according to claim 1, characterized in that: The CSI data obtained in step (1) needs to use the Hampel outlier removal algorithm to remove outliers. In the sampling window t, the subcarrier amplitude that does not belong to the credible interval is regarded as an outlier and replaced by the mean. After removing the outliers, the wavelet threshold denoising algorithm is used to remove high-frequency noise. The specific steps of the wavelet threshold denoising algorithm are as follows:
3. A non-contact continuous behavior perception method according to claim 1, characterized in that: The weight variable β satisfies 0≤β≤1.
4. A non-contact continuous behavior perception method according to claim 1, characterized in that: In order to collect information changes in a short period of time in step (4), the present invention sets the sampling frequency to 50 Hz, that is, a data packet is sent every 0.02 seconds.
5. The non-contact continuous behavior sensing method according to claim 1, characterized in that: In the step (4), the SVM classifier is trained, the kernel function selected is the radial basis function, and the CSI feature values of the training set and the test set are normalized; wherein the training set is 640×9 feature data, the test set is 160×9 feature data, the cross-validation coefficient is set to 5, a total of 5 training and testing are performed, and the final result is the average value of the 5 recognition results.
6. A non-contact continuous behavior perception method according to claim 1, characterized in that: The penalty factor coefficient C in step (4) is 11.3137.
