CN106066995B - A Wireless Unbound Human Behavior Detection Algorithm - Google Patents
A Wireless Unbound Human Behavior Detection Algorithm Download PDFInfo
- Publication number
- CN106066995B CN106066995B CN201610355447.XA CN201610355447A CN106066995B CN 106066995 B CN106066995 B CN 106066995B CN 201610355447 A CN201610355447 A CN 201610355447A CN 106066995 B CN106066995 B CN 106066995B
- Authority
- CN
- China
- Prior art keywords
- sequence
- value
- metaaction
- wifi
- waveform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 18
- 238000001514 detection method Methods 0.000 title abstract description 12
- 230000009471 action Effects 0.000 claims abstract description 51
- 230000008859 change Effects 0.000 claims abstract description 19
- 238000000605 extraction Methods 0.000 claims abstract description 10
- 238000010586 diagram Methods 0.000 claims description 17
- 238000001914 filtration Methods 0.000 claims description 16
- 238000000034 method Methods 0.000 claims description 12
- 239000011159 matrix material Substances 0.000 claims description 10
- 230000033001 locomotion Effects 0.000 claims description 7
- 230000003068 static effect Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 6
- 230000008054 signal transmission Effects 0.000 claims description 5
- 230000001186 cumulative effect Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000003708 edge detection Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 2
- 230000003542 behavioural effect Effects 0.000 claims 4
- 230000009466 transformation Effects 0.000 claims 2
- 235000015170 shellfish Nutrition 0.000 claims 1
- 230000006641 stabilisation Effects 0.000 claims 1
- 238000011105 stabilization Methods 0.000 claims 1
- 230000006399 behavior Effects 0.000 description 23
- 238000005516 engineering process Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 108010076504 Protein Sorting Signals Proteins 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000013144 data compression Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 206010000117 Abnormal behaviour Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Psychiatry (AREA)
- Social Psychology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Radar Systems Or Details Thereof (AREA)
Abstract
本发明公开了一种无线非绑定人体行为检测算法,目的在于,通过分析信道状态信息的不同变化模式来识别人体行为,能够在实现较高识别准确度的同时,满足方便性与安全性,所采用的技术方案为:利用无线发射端建立wifi场,当用户在wifi覆盖区内行走或做出某种动作时,会对wifi信道产生特定的影响,利用无线接收端接收wifi信号并计算动作的CSI值,提取信道变化特征,利用人们在wifi场内移动或者执行某种动作时对wifi信道产生的不同变化特征,通过分析信道状态信息的不同变化模式,使用特征提取与分类匹配算法进行行为识别,将人体行为和信道的不同变化模式相结合,从而实现用wifi信道特征来识别人体行为。
The invention discloses a wireless unbound human behavior detection algorithm, the purpose of which is to identify human behavior by analyzing different change patterns of channel state information, which can satisfy convenience and safety while achieving high recognition accuracy. The technical solution adopted is: use the wireless transmitter to establish a wifi field, when the user walks in the wifi coverage area or makes a certain action, it will have a specific impact on the wifi channel, and use the wireless receiver to receive the wifi signal and calculate the action CSI value, extract channel change features, use the different change features of the wifi channel when people move in the wifi field or perform certain actions, analyze the different change patterns of channel state information, and use feature extraction and classification matching algorithms to perform behavior Recognition, combining human behavior and different change modes of the channel, so as to realize the recognition of human behavior with wifi channel characteristics.
Description
技术领域technical field
本发明属于特征提取、模式识别和行为检测领域,具体涉及一种无线非绑定人体行为检测算法。The invention belongs to the fields of feature extraction, pattern recognition and behavior detection, and in particular relates to a wireless unbound human behavior detection algorithm.
背景技术Background technique
目前随着科学技术的发展以及人们生活水平的提高,智能家居理念与虚拟现实技术得到了迅速的发展。如人们可以在室内通过特定手势操控智能设备,通过肢体行为模拟操作实现更佳的游戏体验与人机交互。同时人们对于生活监控技术也提出了新的要求。通过检测人们的坐姿睡姿,是否吸烟等异常行为反映人们身体状况的健康监测系统;能够在老人或者幼儿发生跌落或摔倒前及时做出提示并通知医护人员与家人的生活预警系统。上述技术的实现的前提均是要求系统能够准确检测并识别人们的肢体行为。At present, with the development of science and technology and the improvement of people's living standards, the concept of smart home and virtual reality technology have developed rapidly. For example, people can control smart devices indoors through specific gestures, and achieve better game experience and human-computer interaction through physical behavior simulation operations. At the same time, people have also put forward new requirements for life monitoring technology. A health monitoring system that reflects people's physical condition by detecting abnormal behaviors such as people's sitting and sleeping positions, whether they smoke or not; a life warning system that can promptly prompt and notify medical staff and family members before the elderly or young children fall or fall. The prerequisite for the realization of the above technologies is that the system is required to accurately detect and recognize people's physical behavior.
目前实现人体行为检测的方法主要有基于摄像头的图像识别算法,基于传感器与基于wifi信号的检测算法。At present, the methods for realizing human behavior detection mainly include camera-based image recognition algorithms, sensor-based and wifi signal-based detection algorithms.
基于摄像头的图像识别算法通常能实现一个高精度的行为检测系统,但是这样的系统要求人们必须处于摄像头的监测范围之内,在障碍物以及光线的影响下极易产生监控盲区,同时系统也对人们的隐私生活造成了极大的干涉。The camera-based image recognition algorithm can usually realize a high-precision behavior detection system, but such a system requires people to be within the monitoring range of the camera, and it is easy to produce monitoring blind spots under the influence of obstacles and light. People's private life caused great interference.
基于传感器的检测算法要求用户在身体上绑定特殊设备进行行为感知这样的系统虽然不会对用户隐私产生影响,但是却无法满足使用的便捷性。Sensor-based detection algorithms require users to bind special devices to their bodies for behavior perception. Although such a system will not affect user privacy, it cannot satisfy the convenience of use.
基于wifi信号的检测算法通过分析人体行为对信号频率、振幅等特征产生的不同变化模式来识别肢体行为,由于这些信号特征中包含的信息较少,且现有系统不具有分析复杂肢体行为的能力,使得系统识别准确度与实用性受到一定的局限。The detection algorithm based on wifi signal recognizes body behavior by analyzing the different change patterns of human behavior on signal frequency, amplitude and other characteristics, because these signal characteristics contain less information, and the existing system does not have the ability to analyze complex body behavior , so that the system recognition accuracy and practicability are subject to certain limitations.
发明内容Contents of the invention
为了解决现有技术中的问题,本发明提出一种通过分析信道状态信息的不同变化模式来识别人体行为,能够在实现较高识别准确度的同时,满足方便性与安全性的一种无线非绑定人体行为检测算法。In order to solve the problems in the prior art, the present invention proposes a wireless non-contact method that recognizes human behavior by analyzing different change patterns of channel state information, and can achieve high recognition accuracy while satisfying convenience and security. Binding human behavior detection algorithm.
为了实现以上目的,本发明所采用的技术方案为:包括以下步骤:In order to achieve the above object, the technical solution adopted in the present invention is: comprise the following steps:
1)系统部署及模型初始化:无线发射端建立波形稳定的wifi场,在wifi场内执行各个元动作,无线接收端接收wifi信号并计算各个元动作的CSI值,并对各个元动作的CSI值进行噪音过滤后,按照时序画出各个元动作的CSI相位角的变化波形图,保存波形变化序列特征作为元动作模板序列特征,完成初始化;1) System deployment and model initialization: The wireless transmitter establishes a wifi field with stable waveforms, executes each meta-action in the wifi field, and the wireless receiver receives the wifi signal and calculates the CSI value of each meta-action, and calculates the CSI value of each meta-action After noise filtering, draw the change waveform diagram of the CSI phase angle of each meta-action according to the time sequence, save the waveform change sequence feature as the meta-action template sequence feature, and complete the initialization;
2)待识别动作序列特征提取:用户在wifi场内执行待识别动作,无线接收端计算完成待识别动作的CSI值,并对待识别动作的CSI值进行噪音过滤后,绘制待识别动作的CSI相位角的时序变化波形图,保存波形变化特征作为待识别动作序列特征;2) Feature extraction of the action sequence to be recognized: the user performs the action to be recognized in the wifi field, the wireless receiving end calculates and completes the CSI value of the action to be recognized, and after noise filtering the CSI value of the action to be recognized, draws the CSI phase of the action to be recognized The waveform diagram of the timing change of the angle, and save the waveform change feature as the action sequence feature to be recognized;
3)行为识别:3) Behavior recognition:
3.1)对待识别动作的CSI相位角的时序变化波形图进行边缘检测,确定动作执行的起始与终止时刻;3.1) Edge detection is performed on the time-series change waveform diagram of the CSI phase angle of the action to be recognized, and the start and end moments of the action execution are determined;
3.2)利用动态时间规整计算所有元动作模板序列特征两两之间的距离值,并对以上距离值求平均值作为阈值T;3.2) Use dynamic time warping to calculate the distance values between all meta-action template sequence features, and calculate the average value of the above distance values as the threshold T;
3.3)利用动态时间规整对待识别动作序列特征与各个元动作模板序列特征逐一进行匹配,并依次计算待识别动作序列特征与各个元动作模板序列特征间的距离值,若距离值不是均大于阈值T,则选择距离值最小的元动作作为待识别动作的识别结果;若距离值均大于阈值T,则识别失败,跳转至步骤2)重新进行识别,若距离值还是均大于阈值T,则将该待识别动作序列特征作为元动作模板序列特征保存。3.3) Use dynamic time warping to match the sequence features of the action sequence to be recognized with the sequence features of each meta-action template one by one, and calculate the distance value between the sequence feature of the action sequence to be recognized and the sequence features of each meta-action template in turn, if the distance values are not greater than the threshold T , then select the meta-action with the smallest distance value as the recognition result of the action to be recognized; if the distance values are greater than the threshold T, the recognition fails, and jump to step 2) to re-identify, if the distance values are still greater than the threshold T, then the The action sequence feature to be recognized is saved as a meta-action template sequence feature.
所述的步骤1)中系统部署时在静止环境下需要对wifi场进行调试:无线发射端发射的信号波形为X,无线接收端接收到的信号波形为Y,Y与X的比值即为静止环境下的CSI值,值为复数,无线接收端绘制CSI相位角时序波形图,若波形波动范围小于0.2dBm,则认为波形稳定;否则提高信号发射功率后,再绘制CSI相位角时序波形图,直至波形波动范围小于0.2dBm。When the system is deployed in step 1), it is necessary to debug the wifi field in a static environment: the signal waveform transmitted by the wireless transmitter is X, the signal waveform received by the wireless receiver is Y, and the ratio of Y to X is static The CSI value in the environment is a complex number. The wireless receiving end draws the CSI phase angle timing waveform diagram. If the waveform fluctuation range is less than 0.2dBm, the waveform is considered stable; otherwise, after increasing the signal transmission power, draw the CSI phase angle timing waveform diagram. Until the waveform fluctuation range is less than 0.2dBm.
所述的步骤1)中对各个元动作的CSI值和所述步骤2)中对待识别动作的CSI值采用小波变换来实现噪音过滤。The CSI value of each meta-action in the step 1) and the CSI value of the action to be recognized in the step 2) are subjected to wavelet transform to realize noise filtering.
所述的小波变换采用多贝西小波db3对CSI值进行噪音过滤处理。The wavelet transform uses the Dobesy wavelet db3 to perform noise filtering processing on the CSI value.
所述的步骤1)中无线发射端为用于wifi信号发射的无线路由器,无线接收端为用于wifi信号接收的无线路由器。In the step 1), the wireless transmitter is a wireless router for wifi signal transmission, and the wireless receiver is a wireless router for wifi signal reception.
与现有技术相比,本发明利用无线发射端建立wifi场,当用户在wifi覆盖区内行走或做出某种动作时,会对wifi信道产生特定的影响,利用无线接收端接收wifi信号并计算动作的CSI值,提取信道变化特征,利用人们在wifi场内移动或者执行某种动作时对wifi信道产生的不同变化特征,通过分析信道状态信息的不同变化模式,使用特征提取与分类匹配算法进行行为识别,将人体行为和信道的不同变化模式相结合,从而实现用wifi信道特征来识别人体行为,本发明能够在实现较高识别准确度的同时满足方便性与安全性,且不需要用户携带任何特殊设备,不会记录用户的隐私生活,具有方便易部署,安全性高的特点。Compared with the prior art, the present invention uses the wireless transmitter to establish a wifi field. When the user walks or makes certain actions in the wifi coverage area, it will have a specific impact on the wifi channel, and the wireless receiver is used to receive the wifi signal and Calculate the CSI value of the action, extract the channel change characteristics, use the different change characteristics of the wifi channel when people move in the wifi field or perform certain actions, and analyze the different change patterns of the channel state information, using feature extraction and classification matching algorithms Carry out behavior recognition, combine human behavior and different change patterns of channels, so as to realize the recognition of human behavior with wifi channel characteristics, the present invention can satisfy convenience and safety while realizing high recognition accuracy, and does not need user Carrying any special equipment will not record the user's private life, which is convenient and easy to deploy, and has the characteristics of high security.
进一步,在系统部署时需要在静止环境下对wifi场进行调试,使无线发射端发射稳定的wifi场,并使无线接收端绘制CSI相位角时序波形图的波形波动范围小于0.2dBm,有利于提高对动作的识别精准度。Further, when the system is deployed, it is necessary to debug the wifi field in a static environment, so that the wireless transmitter can transmit a stable wifi field, and the waveform fluctuation range of the CSI phase angle timing waveform diagram drawn by the wireless receiver is less than 0.2dBm, which is conducive to improving Accuracy of motion recognition.
进一步,选择多贝西小波db3对数据进行处理,db3小波具有以下两个优势:1)具有较好的正交对称性,方便计算与信号重构;2)db3小波能够产生尽量多的零小波系数,有利于数据压缩和消除噪音。择三阶小波变换得到去噪后的信号效果最好,既有效的去除了噪声,又保留了信号的局部特征。Furthermore, the Dobessy wavelet db3 is selected to process the data. The db3 wavelet has the following two advantages: 1) It has good orthogonal symmetry, which is convenient for calculation and signal reconstruction; 2) The db3 wavelet can generate as many zero wavelets as possible Coefficients, which are good for data compression and noise removal. The third-order wavelet transform is the best way to obtain the signal after denoising, which not only effectively removes the noise, but also retains the local characteristics of the signal.
附图说明Description of drawings
图1是系统部署及模型初始化流程图;Figure 1 is a flowchart of system deployment and model initialization;
图2是待识别动作序列特征提取流程图;Fig. 2 is a flow chart of feature extraction of an action sequence to be recognized;
图3是行为识别流程图;Fig. 3 is a flow chart of behavior recognition;
图4是二阶离散小波变换过程图;Fig. 4 is a second-order discrete wavelet transform process diagram;
图5a是两个用户执行同一个动作后得到的含噪特征序列图,图5b是经三阶离散小波变换去噪特征序列结果图;Figure 5a is a noisy feature sequence diagram obtained after two users perform the same action, and Figure 5b is a denoising feature sequence result diagram after third-order discrete wavelet transform;
图6是待识别动作与模板元动作的特征序列动态时间规整结果图。Fig. 6 is a diagram of the dynamic time warping result of the feature sequence of the action to be recognized and the template meta-action.
具体实施方式Detailed ways
下面结合具体的实施例和说明书附图对本发明作进一步的解释说明。The present invention will be further explained below in conjunction with specific embodiments and accompanying drawings.
本发明利用用户在wifi场内移动或者执行某种动作时,对wifi信道产生的不同变化特征,使用特征提取与分类匹配算法进行行为识别,具体包括以下步骤:The present invention utilizes the different changing features generated by the wifi channel when the user moves in the wifi field or performs certain actions, and uses feature extraction and classification matching algorithms to perform behavior recognition, specifically including the following steps:
步骤一、参见图1,系统部署及模型初始化:Step 1, see Figure 1, system deployment and model initialization:
1.在室内部署两台无线路由器,一台用于wifi信号的发射,一台用于wifi信号的接收;1. Deploy two wireless routers indoors, one for wifi signal transmission and one for wifi signal reception;
2.同时开启两台无线路由器,一台发射信号波形X,另一台接收到信号波形为Y,则Y与X的比值即为静止环境下的CSI,值为复数;2. Turn on two wireless routers at the same time, one transmits signal waveform X, and the other receives signal waveform Y, then the ratio of Y to X is the CSI in a static environment, and the value is a complex number;
3.绘制CSI相位角时序波形图,若波形波动范围小于0.2dBm,则认为波形稳定,跳转至5;3. Draw the CSI phase angle timing waveform diagram. If the waveform fluctuation range is less than 0.2dBm, the waveform is considered stable and skips to 5;
4.提高信号发射功率,跳转至2;4. Increase the signal transmission power, skip to 2;
5.用户在室内依次完成指定元动作(如招手,走路,踢腿,下蹲等);5. The user completes the specified meta-actions (such as waving, walking, kicking, squatting, etc.) in sequence indoors;
6.在接收端计算执行各个动作时信道的CSI值;6. Calculate the CSI value of the channel when performing each action at the receiving end;
7.对原始的CSI结果进行噪音过滤;7. Perform noise filtering on the original CSI results;
8.按照时序画出CSI相位角的变化波形图;8. Draw the change waveform diagram of the CSI phase angle according to the time sequence;
9.保存波形的特征序列作为对应元动作的特征模式;9. Save the characteristic sequence of the waveform as the characteristic pattern of the corresponding meta-action;
10.初始化设置完成,系统返回;10. The initialization setting is completed, and the system returns;
步骤二、参见图2,待识别动作序列特征提取:Step 2, see Figure 2, feature extraction of action sequences to be recognized:
1.开启两台无线路由器,发送端发送信号波形X;1. Turn on two wireless routers, and the transmitter sends signal waveform X;
2.用户在室内执行一个待识别动作;2. The user performs an action to be recognized indoors;
3.在接收端接收到信号波形为Y,Y与X的比值作为CSI值;3. The signal waveform received at the receiving end is Y, and the ratio of Y to X is used as the CSI value;
4.对原始的CSI值进行噪音过滤;4. Perform noise filtering on the original CSI value;
5.绘制CSI相位角的时序变化波形图;5. Draw the waveform diagram of the timing change of the CSI phase angle;
6.系统返回;6. The system returns;
步骤三、参见图3,行为识别:Step 3, see Figure 3, behavior recognition:
1.对CSI相位波形图进行边缘检测,确定动作执行的起始与终止时刻;1. Perform edge detection on the CSI phase waveform diagram to determine the start and end moments of action execution;
2.利用动态时间规整(Dynamic Time Warping,DTW)计算任意两组元动作特征序列之间的距离值,对以上距离值求平均值作为阈值T;2. Use Dynamic Time Warping (DTW) to calculate the distance value between any two element action feature sequences, and calculate the average value of the above distance value as the threshold T;
3.利用DTW对待测动作特征与元动作模板的特征序列进行匹配,依次计算两者之间的距离值;3. Use DTW to match the action feature to be tested with the feature sequence of the meta-action template, and calculate the distance between the two in turn;
4.若距离值均大于阈值T,跳转到6;4. If the distance values are greater than the threshold T, jump to 6;
5.选择距离值最小的元动作作为待测动作的识别结果,跳转到7;5. Select the meta-action with the smallest distance value as the recognition result of the action to be tested, and jump to 7;
6.屏幕提示识别错误,跳转至步骤二——待识别行为序列特征提取,重新执行动作并提取序列特征;6. The screen prompts that there is a recognition error, and jump to step 2—extraction of sequence features of the behavior to be recognized, re-execute the action and extract the sequence features;
7.屏幕输出待测动作的识别结果;7. The screen outputs the recognition result of the action to be tested;
8.系统返回。8. The system returns.
本发明中的核心方法如下:The core method among the present invention is as follows:
1.在系统部署及模型初始化和待识别动作序列特征提取中对CSI值进行噪音过滤,是基于离散小波变换的波形噪音过滤:1. Noise filtering is performed on CSI values in system deployment, model initialization and feature extraction of action sequences to be recognized, which is waveform noise filtering based on discrete wavelet transform:
原始得到的CSI值中包含大量的噪音信息,噪音主要由环境中的高斯白噪音与通信设备的热噪音组成,为了提高第三步行为识别的准确度,需要对信号中的噪音进行过滤。不能简单使用低通或者高通滤波器进行噪音过滤的原因是我们无法提前确定出有用信号的频率范围并设计较好的滤波器。我们使用离散小波变换来实现噪音过滤。离散小波变化通过对原始的含噪信号进行多次分解和重构,进行细粒度多尺度的分析,从而实现最佳的滤波效果。同时离散小波变换可以提供时频域的最优分辨率,能更加灵活的适应环境变化对数据的影响。The original CSI value contains a lot of noise information. The noise is mainly composed of Gaussian white noise in the environment and thermal noise of communication equipment. In order to improve the accuracy of the third step of behavior recognition, it is necessary to filter the noise in the signal. The reason why we cannot simply use a low-pass or high-pass filter for noise filtering is that we cannot determine the frequency range of the useful signal in advance and design a better filter. We use discrete wavelet transform to achieve noise filtering. Discrete wavelet transform decomposes and reconstructs the original noisy signal multiple times, and performs fine-grained multi-scale analysis, so as to achieve the best filtering effect. At the same time, the discrete wavelet transform can provide the optimal resolution in the time-frequency domain, and can more flexibly adapt to the impact of environmental changes on the data.
小波函数的选择:观察到我们采集的原始信号整体较为平坦,我们选择多贝西小波db3对数据进行处理。db3小波具有以下两个优势:1)具有较好的正交对称性,方便计算与信号重构;2)db3小波能够产生尽量多的零小波系数,有利于数据压缩和消除噪音。Selection of wavelet function: Observing that the original signal collected by us is relatively flat overall, we choose the Dobessy wavelet db3 to process the data. The db3 wavelet has the following two advantages: 1) It has good orthogonal symmetry, which is convenient for calculation and signal reconstruction; 2) The db3 wavelet can generate as many zero wavelet coefficients as possible, which is beneficial to data compression and noise elimination.
离散小波变换去噪原理:对一个离散序列进行小波变换的输出结果是一组小波系数。这些系数分别对应于输入序列不同频率尺度下的高/低频分量。将对应于噪声的高频小波系数置为零,利用更改后的这组小波系数对信号进行重构,即可得到去噪后的信号。这一过程的难点在于选择合适的小波变换阶数,从而在最优的频率分辨率下分离信号与噪音。经过实验验证,我们选择三阶小波变换得到去噪后的信号效果最好,既有效的去除了噪声,又保留了信号的局部特征。Discrete wavelet transform denoising principle: the output result of wavelet transform on a discrete sequence is a set of wavelet coefficients. These coefficients correspond to the high/low frequency components of the input sequence at different frequency scales, respectively. Set the high-frequency wavelet coefficients corresponding to the noise to zero, and reconstruct the signal with the changed set of wavelet coefficients to obtain the denoised signal. The difficulty of this process is to choose the appropriate order of wavelet transform, so as to separate the signal and noise under the optimal frequency resolution. After experimental verification, we choose the third-order wavelet transform to obtain the best signal effect after denoising, which not only effectively removes the noise, but also retains the local characteristics of the signal.
参见图4,表示了二阶离散小波变换过程。用公式表示第一阶小波变换如下:Referring to Fig. 4, it shows the second-order discrete wavelet transform process. Expressing the first-order wavelet transform with the formula is as follows:
其中x[2n-k]表示输入的原始信号;n表示的是数组索引;k表示循环求和变量,从0到正无穷遍历;g[k]和h[k]分别表示低通与高通权系数,这些系数由db3小波确定;通过Matlab小波变换工具集中的wavedec(),appcoef(),detcoef()三个函数可以直接计算出低频小波系数x1,L[n]与高频小波系数x1,H[n],下标1表示第一阶小波变换,这些系数分别对应于原始信号的高频分量与低频分量。第二阶小波变换将x1,L[n]作为输入信号,得到第二阶小波变换的公式如下: Where x[2n-k] represents the original input signal; n represents the array index; k represents the loop summation variable, traversing from 0 to positive infinity; g[k] and h[k] represent low-pass and high-pass weights, respectively These coefficients are determined by the db3 wavelet; through the three functions wavedec(), appcoef(), and detcoef() in the Matlab wavelet transform tool set, the low-frequency wavelet coefficient x 1, L [n] and high-frequency wavelet coefficient x can be directly calculated 1, H [n], the subscript 1 represents the first-order wavelet transform, and these coefficients correspond to the high-frequency component and low-frequency component of the original signal, respectively. The second-order wavelet transform takes x1 , L [n] as the input signal, and the formula for obtaining the second-order wavelet transform is as follows:
从而得到二阶低频小波系数x2,L[n]与二阶高频小波系数x2,H[n];Thus, the second-order low-frequency wavelet coefficient x 2, L [n] and the second-order high-frequency wavelet coefficient x 2, H [n] are obtained;
第三阶小波变换将x2,L[n]作为输入信号,得到第三阶小波变换的公式如下:The third-order wavelet transform takes x2 , L [n] as the input signal, and the formula for obtaining the third-order wavelet transform is as follows:
从而得到三阶低频小波系数x3,L[n]与三阶高频小波系数x3,H[n];Thus, the third-order low-frequency wavelet coefficient x 3, L [n] and the third-order high-frequency wavelet coefficient x 3, H [n] are obtained;
这根据x1,L[n]、x1,H[n]、x2,L[n]、x2,H[n]、x3,L[n]和x3,H[n]进行不同频率分辨率下的信号分析,重构信号的公式如下:This is done in terms of x 1,L [n], x 1,H [n], x 2,L [n], x 2,H [n], x 3,L [n] and x 3,H [n] For signal analysis at different frequency resolutions, the formula for reconstructing the signal is as follows:
cq[n]=∑kg[n-2k]xq+1,L[n]十∑kh[n-2k]xq+1,H[n]c q [n] = ∑ k g [n-2k] x q + 1, L [n] ten ∑ k h [n-2k] x q + 1, H [n]
其中q表示小波变换不同的阶数,从后向前对每一阶的信号进行重构,最终得到的c1[n]即为去噪后的信号,完成噪音过滤。图5a表示两个用户执行同一个动作后得到的含噪特征序列图,图5b表示经三阶离散小波变换之后的去噪特征序列结果图,去噪算法的主要步骤如下:Where q represents the different orders of the wavelet transform, the signal of each order is reconstructed from the back to the front, and the finally obtained c 1 [n] is the signal after denoising, and the noise filtering is completed. Figure 5a shows the noisy feature sequence graph obtained after two users perform the same action, and Figure 5b shows the denoising feature sequence result graph after the third-order discrete wavelet transform. The main steps of the denoising algorithm are as follows:
(1)每次对192点的原始含噪信号序列进行三阶离散小波变换,得到三层的高频与低频小波系数;(1) Perform third-order discrete wavelet transform on the original noise-containing signal sequence of 192 points each time to obtain three layers of high-frequency and low-frequency wavelet coefficients;
(2)分别将三层的高频小波系数置零;(2) Set the high-frequency wavelet coefficients of the three layers to zero respectively;
(3)利用修改后的小波系数重构信号,即可得到去噪后的信号序列。(3) Using the modified wavelet coefficients to reconstruct the signal, the denoised signal sequence can be obtained.
2.序列特征匹配2. Sequence feature matching
本方法中通过计算两个序列之间的相似程度(通常用两个序列之间的距离来表示)来判断待测动作最可能属于的动作类别。由于不同的用户执行动作的时刻与速度的快慢不同,导致特征序列的长度不同。也就是说,两个序列之间的特征是相似的,只是在时间上有不对齐的可能,所以需要将其中一个序列在时间轴下扭曲(warping),以达到更好的对齐效果。本方法采用动态时间规整(Dynamic Time Warping,DTW)来实现这一目的。序列特征匹配算法如下:In this method, the degree of similarity between two sequences (usually represented by the distance between the two sequences) is calculated to determine the most likely action category of the action to be tested. Since different users perform actions at different times and at different speeds, the length of the feature sequence is different. That is to say, the characteristics between the two sequences are similar, but there is a possibility of misalignment in time, so one of the sequences needs to be warped under the time axis to achieve a better alignment effect. This method uses Dynamic Time Warping (Dynamic Time Warping, DTW) to achieve this purpose. The sequence feature matching algorithm is as follows:
(1)计算待测动作波形序列与元动作波形序列之间的距离,首先申请两个n矩×m的矩阵D和d,分别为累积距离矩阵与帧匹配距离矩阵,其中n矩与m分别为待测动作波形序列与元动作波形序列的长度;(1) To calculate the distance between the action waveform sequence to be tested and the meta-action waveform sequence, first apply two n- moment ×m matrices D and d, which are the cumulative distance matrix and the frame matching distance matrix respectively, where n moments and m are respectively is the length of the action waveform sequence to be tested and the meta-action waveform sequence;
(2)通过循环计算两个序列之间的帧匹配距离矩阵,矩阵中(i,j)元素表示待测动作波形序列中第i个元素与元动作波形序列中第j个元素之间的距离;(2) Calculate the frame matching distance matrix between the two sequences by looping. The (i, j) element in the matrix represents the distance between the i-th element in the action waveform sequence to be tested and the j-th element in the meta-action waveform sequence ;
(3)计算累积距离矩阵D,令D(0,0)=0,对每个点(i,j),分别计算D(i,j)=d(i,j)+min(D(i-1,j),D(i-1,j-1),D(i,j-1)),其中i,j分别表示待测动作波形序列中第i个元素与元动作波形序列中第j个元素;(3) Calculate the cumulative distance matrix D, let D(0,0)=0, for each point (i,j), calculate D(i,j)=d(i,j)+min(D(i -1, j), D(i-1, j-1), D(i, j-1)), where i, j respectively represent the i-th element in the action waveform sequence to be tested and the i-th element in the meta-action waveform sequence j elements;
(4)选择D(n矩,m)表示待测动作波形序列与元动作波形序列之间的距离。(4) Choose D(n moment , m) to represent the distance between the action waveform sequence to be tested and the meta-action waveform sequence.
图6表示对两个序列进行对齐后的结果图,实线和虚线分别表示待测动作与模板动作的特征序列。Figure 6 shows the results of aligning the two sequences, and the solid and dotted lines represent the feature sequences of the action to be tested and the template action, respectively.
本发明有以下优点:使用本发明中的人体行为检测技术与现有技术相比,不需要用户携带任何特殊设备,不会记录用户的隐私生活,系统的识别精度受静止环境中的障碍物以及光线影响较小。另一方面,采用动态时间规整进行特征匹配可以适应对不同用户的行为检测,系统能够在实现较高识别准确度的同时满足方便性与安全性。The present invention has the following advantages: compared with the prior art, using the human behavior detection technology in the present invention does not require the user to carry any special equipment, does not record the user's private life, and the recognition accuracy of the system is affected by obstacles in the static environment and Light is less affected. On the other hand, using dynamic time warping for feature matching can adapt to the behavior detection of different users, and the system can meet the convenience and security while achieving high recognition accuracy.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610355447.XA CN106066995B (en) | 2016-05-25 | 2016-05-25 | A Wireless Unbound Human Behavior Detection Algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610355447.XA CN106066995B (en) | 2016-05-25 | 2016-05-25 | A Wireless Unbound Human Behavior Detection Algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106066995A CN106066995A (en) | 2016-11-02 |
CN106066995B true CN106066995B (en) | 2019-10-11 |
Family
ID=57420294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610355447.XA Active CN106066995B (en) | 2016-05-25 | 2016-05-25 | A Wireless Unbound Human Behavior Detection Algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106066995B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989694A (en) * | 2015-02-05 | 2016-10-05 | 江南大学 | Human body falling-down detection method based on three-axis acceleration sensor |
CN105809110A (en) * | 2016-02-24 | 2016-07-27 | 南京大学 | Behavior identification system and method based on wireless signal identity |
CN107180223A (en) * | 2017-04-10 | 2017-09-19 | 南京苗米科技有限公司 | Action identification method and system based on WIFI wireless signals |
CN107822645B (en) * | 2017-10-23 | 2020-01-17 | 上海百芝龙网络科技有限公司 | Emotion recognition method based on WiFi signal |
CN108122310A (en) * | 2017-11-20 | 2018-06-05 | 电子科技大学 | A kind of people flow rate statistical method based on WiFi channel state informations and dynamic time warping |
CN107944418A (en) * | 2017-12-07 | 2018-04-20 | 上海交通大学 | A kind of method using Wi FiCSI infomation detection fatigue drivings |
CN108683467A (en) * | 2018-05-22 | 2018-10-19 | 深圳市普威技术有限公司 | Signal detecting method, communication equipment, collecting device and signal detection system |
CN108887978B (en) * | 2018-07-20 | 2021-04-06 | 深圳中云创新技术有限公司 | Sitting posture detection system |
CN111249691B (en) * | 2018-11-30 | 2021-11-23 | 百度在线网络技术(北京)有限公司 | Athlete training method and system based on body shape recognition |
CN110176968B (en) * | 2019-05-20 | 2021-04-06 | 桂林理工大学 | A method for correcting jump phenomenon in WiFi human behavior recognition |
CN110245588A (en) * | 2019-05-29 | 2019-09-17 | 西安交通大学 | A Fine-grained Human Pose Estimation Method Based on Radio Frequency Signals |
CN110728213A (en) * | 2019-09-26 | 2020-01-24 | 浙江大学 | Fine-grained human body posture estimation method based on wireless radio frequency signals |
CN110751115B (en) * | 2019-10-24 | 2021-01-01 | 北京金茂绿建科技有限公司 | Non-contact human behavior identification method and system |
CN111432429B (en) * | 2020-02-19 | 2021-07-09 | 华南理工大学 | A wireless channel model matching and correction method based on map information |
CN111954250B (en) * | 2020-08-12 | 2022-08-12 | 郑州大学 | A Lightweight Wi-Fi Behavior Awareness Method and System |
CN112668413B (en) * | 2020-12-16 | 2022-11-08 | 北京邮电大学 | Human pose estimation method, device, electronic device and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104700069A (en) * | 2015-01-13 | 2015-06-10 | 西安交通大学 | System and method for recognizing and monitoring exercising action through unbound radio frequency label |
CN105573498A (en) * | 2015-12-15 | 2016-05-11 | 西北大学 | Gesture recognition method based on Wi-Fi signal |
-
2016
- 2016-05-25 CN CN201610355447.XA patent/CN106066995B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104700069A (en) * | 2015-01-13 | 2015-06-10 | 西安交通大学 | System and method for recognizing and monitoring exercising action through unbound radio frequency label |
CN105573498A (en) * | 2015-12-15 | 2016-05-11 | 西北大学 | Gesture recognition method based on Wi-Fi signal |
Non-Patent Citations (1)
Title |
---|
Understanding and Modeling of WiFi Signal Based Human Activity Recognition;Wei Wang 等;《Proceedings of the 21st Annual International Conference on Mobile Computing and Networking》;20150911;第65-76页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106066995A (en) | 2016-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106066995B (en) | A Wireless Unbound Human Behavior Detection Algorithm | |
Zhao et al. | Trueheart: Continuous authentication on wrist-worn wearables using ppg-based biometrics | |
TWI720215B (en) | System and method for providing a real-time signal segmentation and fiducial points alignment framework | |
US20170143226A1 (en) | Action Recognition Method and Device Based on Surface Electromyography Signal | |
Pokkunuru et al. | NeuralWave: Gait-based user identification through commodity WiFi and deep learning | |
Liu et al. | Continuous user verification via respiratory biometrics | |
KR20170091963A (en) | Gesture classification apparatus and method using electromyogram signals | |
CN107361765B (en) | Brain wave analysis method and device | |
Zhao et al. | Deep CNN model based on serial-parallel structure optimization for four-class motor imagery EEG classification | |
CN105249925B (en) | A kind of traditional Chinese medical pulse manifestation collecting device and noise reduction system and noise-reduction method | |
CN113609977B (en) | Pedestrian gait recognition method based on channel state information quotient distance | |
CN113837122B (en) | Wi-Fi channel state information-based contactless human body behavior recognition method and system | |
Zhao et al. | Robust continuous authentication using cardiac biometrics from wrist-worn wearables | |
Moshiri et al. | Using GAN to enhance the accuracy of indoor human activity recognition | |
CN108875584A (en) | A kind of highly reliable user behavior recognition method based on wireless aware | |
CN110929242B (en) | Method and system for carrying out attitude-independent continuous user authentication based on wireless signals | |
CN107495939A (en) | Live biometric monitoring method, device and system | |
Zhang et al. | An efficient ECG denoising method by fusing ECA-Net and CycleGAN | |
CN110604578A (en) | SEMG-based motion recognition method of human hand | |
Shdefat et al. | A survey study of the current challenges and opportunities of deploying the ECG biometric authentication method in IoT and 5G environments | |
CN111652132B (en) | Non-line-of-sight identification method, device and storage medium based on deep learning | |
CN106897693B (en) | A kind of identification method, device and system | |
Ahmed et al. | Wi-fi csi based human sign language recognition using lstm network | |
Chen et al. | WiTT: Modeling and the evaluation of table tennis actions based on WIFI signals | |
Xaviar et al. | Robust Multimodal Fusion for Human Activity Recognition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220412 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee after: Shenzhen Heshuo capital management enterprise (L.P.) Address before: Beilin District Xianning West Road 710049, Shaanxi city of Xi'an province No. 28 Patentee before: XI'AN JIAOTONG University Effective date of registration: 20220412 Address after: 710100 706, block a, Huihang Plaza, Hangtuo Road, national civil aerospace industry base, Xi'an, Shaanxi Province Patentee after: Xi'an Heshuo Logistics Technology Co.,Ltd. Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee before: Shenzhen Heshuo capital management enterprise (L.P.) |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A wireless unbound human behavior detection algorithm Granted publication date: 20191011 Pledgee: Xi'an Small and Micro Enterprise Financing Guarantee Co.,Ltd. Pledgor: Xi'an Heshuo Logistics Technology Co.,Ltd. Registration number: Y2024610000247 |