CN115035686A - Real-time falling detection method, system and medium based on channel state information - Google Patents

Real-time falling detection method, system and medium based on channel state information Download PDF

Info

Publication number
CN115035686A
CN115035686A CN202210475689.8A CN202210475689A CN115035686A CN 115035686 A CN115035686 A CN 115035686A CN 202210475689 A CN202210475689 A CN 202210475689A CN 115035686 A CN115035686 A CN 115035686A
Authority
CN
China
Prior art keywords
data
time
matrix
action
real
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.)
Pending
Application number
CN202210475689.8A
Other languages
Chinese (zh)
Inventor
李昕明
蔡志家
王柯青
许锦晨
廖森林
杨阔
李泽豪
刘梅娟
甘志镇
陈璐慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China Normal University
Original Assignee
South China Normal University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by South China Normal University filed Critical South China Normal University
Priority to CN202210475689.8A priority Critical patent/CN115035686A/en
Publication of CN115035686A publication Critical patent/CN115035686A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/04Alarms for ensuring the safety of persons responsive to non-activity, e.g. of elderly persons
    • G08B21/0407Alarms for ensuring the safety of persons responsive to non-activity, e.g. of elderly persons based on behaviour analysis
    • G08B21/043Alarms for ensuring the safety of persons responsive to non-activity, e.g. of elderly persons based on behaviour analysis detecting an emergency event, e.g. a fall
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Measuring devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor or mobility of a limb
    • A61B5/1116Determining posture transitions
    • A61B5/1117Fall detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Emergency Management (AREA)
  • Gerontology & Geriatric Medicine (AREA)
  • General Physics & Mathematics (AREA)
  • Physiology (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Social Psychology (AREA)
  • Psychology (AREA)
  • Pathology (AREA)
  • Psychiatry (AREA)
  • Biomedical Technology (AREA)
  • Business, Economics & Management (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of fall detection, and particularly discloses a real-time fall detection method, a system and a medium based on channel state information, wherein the method comprises the steps of acquiring CS I data streams in real time and acquiring effective carriers from the CS I data streams; sequentially carrying out matrix extraction on the effective carrier waves corresponding to each data packet, and carrying out sliding window interception on the effective carrier waves according to the amplitude disturbance judgment condition to obtain effective action fragments; when an effective action fragment is intercepted, carrying out noise reduction on an effective carrier in a current window by utilizing wavelet transformation, and filtering by utilizing a Butterworth filter to obtain an initial available signal; extracting characteristic values of the initial available signals to obtain signal characteristics; normalizing the signal characteristics to obtain a characteristic value matrix; and importing the characteristic value matrix into an SVM classification model to obtain an action classification result. The invention has high detection efficiency, high detection accuracy and less occupation of operation resources, thereby reducing the equipment cost.

Description

基于信道状态信息的实时化跌倒检测方法、系统及介质Real-time fall detection method, system and medium based on channel state information

技术领域technical field

本发明涉及跌倒检测领域,尤其涉及基于信道状态信息的实时化跌倒检测方法、系统及介质。The invention relates to the field of fall detection, in particular to a real-time fall detection method, system and medium based on channel state information.

背景技术Background technique

随着中国人口老龄化进程不断加速,空巢老人逐渐增多,老年人健康问题已经成为社会关注的热点。跌倒是老年人因伤致死的主要原因之一,每年独居老人室内跌倒数量不断上升;研究表明,跌倒后的医疗结果很大程度上取决于反应和抢救时间是否及时。在临床医学中,跌倒后延迟治疗越久,死亡风险越大。因此,如何实现自动、实时化的跌倒检测技术,成为了老年人健康监护的重要需求。As the aging process of China's population continues to accelerate, the number of empty nesters is gradually increasing, and the health of the elderly has become a hot spot of social concern. Falls are one of the main causes of injury-related death among the elderly, and the number of indoor falls for the elderly living alone is increasing every year; studies have shown that medical outcomes after a fall largely depend on the timely response and rescue time. In clinical medicine, the longer the delay in treatment after a fall, the greater the risk of death. Therefore, how to realize automatic and real-time fall detection technology has become an important requirement for elderly health monitoring.

到目前为止,对日常生活的健康检测手段已经司空见惯,各种应用也被广泛开发出来。对于检测跌倒的技术有三类发展方向:基于传感器的跌倒检测、基于机械视觉的跌倒检测和基于WiFi信号的信道状态信息(Channel State Information,CSI)的跌倒检测。基于传感器的跌倒检测技术在理想状态下准确率较高,但其易受环境影响、准确率相对较低、无法进行广泛部署;基于视觉的跌倒检测技术虽然可以达到很高的准确率,但是其成本较高、易收到光照、摄像头的位置、背景等因素的影响,且会增加隐私泄露的风险;基于WiFi-CSI的跌倒检测方法具有隐私保护性强、应用基础广泛、不需携带任何传感器、非视觉感知、不受灯光湿度温度等影响、可扩展性强等优点。近几年,物联网技术迅速发展并被广泛应用,WiFi的普遍性大幅度提高,为基于WiFi的跌倒检测系统提供了实现环境、设备支持。So far, health detection methods for daily life have become commonplace, and various applications have been widely developed. There are three development directions for fall detection technology: sensor-based fall detection, mechanical vision-based fall detection, and WiFi signal-based channel state information (CSI) fall detection. Sensor-based fall detection technology has high accuracy in ideal conditions, but it is easily affected by the environment, has relatively low accuracy, and cannot be widely deployed; although vision-based fall detection technology can achieve high accuracy, its High cost, easy to be affected by factors such as light, camera position, background, etc., and will increase the risk of privacy leakage; the fall detection method based on WiFi-CSI has strong privacy protection, wide application base, and does not need to carry any sensors , non-visual perception, not affected by light, humidity, temperature, etc., and strong scalability. In recent years, the Internet of Things technology has developed rapidly and has been widely used, and the popularity of WiFi has been greatly improved, providing the realization environment and equipment support for the WiFi-based fall detection system.

但是,现有研究的基于WiFi-CSI的跌倒检测的方案,虽然能判断跌倒的发生,但缺乏进行实时化检测的技术,检测时效性扔有很大的提高空间,所占用的运算资源也较高,要将此技术运用在产品上,缺乏实时化应用技术,同时仍需提高检测精度、准确度与运算速度,降低硬件部署成本与能耗。However, the existing WiFi-CSI-based fall detection solutions, although capable of judging the occurrence of falls, lack the technology for real-time detection, the detection timeliness has a lot of room for improvement, and the computing resources occupied are also relatively high. In order to apply this technology to products, there is a lack of real-time application technology. At the same time, it is still necessary to improve detection accuracy, accuracy and computing speed, and reduce hardware deployment costs and energy consumption.

发明内容SUMMARY OF THE INVENTION

为了克服上述问题,本发明提供基于信道状态信息的实时化跌倒检测方法、系统及介质。In order to overcome the above problems, the present invention provides a real-time fall detection method, system and medium based on channel state information.

本发明提供了基于信道状态信息的实时化跌倒检测方法,包括:The present invention provides a real-time fall detection method based on channel state information, including:

使用TCP协议连接wifi信号发送设备,并通过wifi信号接收设备实时获取CSI的数据流;其中,所述数据流包含若干个连续递进的数据包;Use the TCP protocol to connect the wifi signal sending device, and obtain the CSI data stream in real time through the wifi signal receiving device; wherein, the data stream includes several continuous progressive data packets;

分析数据流,从中获得有效载波;Analyze the data stream to obtain a valid carrier from it;

预设幅值扰动判断条件;依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数,依据所述幅值扰动判断条件,对有效载波进行滑动窗口截取,获得有效动作片段;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;Preset amplitude disturbance judgment conditions; perform matrix extraction on the effective carrier corresponding to each data packet in turn to obtain matrix parameters corresponding to each data packet, and perform sliding window interception on the effective carrier according to the amplitude disturbance judgment condition to obtain A valid action segment; wherein, the amplitude disturbance judgment condition is used to judge whether the sliding window has several matrix parameters including corresponding human actions;

当截取到有效动作片段时,对当前窗口内的有效载波利用小波变换进行降噪,并利用巴特沃斯滤波器进行滤波,获得初始可用信号;When the effective action segment is intercepted, the effective carrier in the current window is denoised by wavelet transform, and filtered by Butterworth filter to obtain the initial usable signal;

对初始可用信号进行特征值提取,获得信号特征;Extract the eigenvalues of the initial available signal to obtain the signal features;

对信号特征进行归一化,获得特征值矩阵;Normalize the signal features to obtain an eigenvalue matrix;

将特征值矩阵导入SVM分类模型,获得动作分类结果;Import the eigenvalue matrix into the SVM classification model to obtain the action classification result;

判断动作分类结果是否为跌倒,如是,发出告警信息。Determine whether the action classification result is a fall, and if so, send an alarm message.

作为优选地,所述信号特征包括:时域均值、时域标准差、时域最大值、时域最小值、时域范围、过均值点数、时域1/4分位数、时域3/4分位数和时域四分位数范围、第一大FFT、第一大FFT对应的频率、第三大FFT、第三大FFT对应的频率、第五大FFT、第五大FFT对应的频率、频域平均值、频域标准差、频域1/4分位数、频域3/4分位数、频域四分位数范围、幅度统计偏度、幅度统计峰度、形状统计均值、形状统计标准差、形状统计偏度和形状统计峰度。Preferably, the signal features include: time-domain mean, time-domain standard deviation, time-domain maximum value, time-domain minimum value, time-domain range, number of over-average points, time-domain 1/4 quantile, time-domain 3/ Quartile and time domain quartile range, the first largest FFT, the frequency corresponding to the first largest FFT, the third largest FFT, the frequency corresponding to the third largest FFT, the fifth largest FFT, the corresponding frequency of the fifth largest FFT Frequency, Frequency Domain Mean, Frequency Domain Standard Deviation, Frequency Domain 1/4 Quantile, Frequency Domain 3/4 Quantile, Frequency Domain Interquartile Range, Amplitude Statistics Skewness, Amplitude Statistics Kurtosis, Shape Statistics Mean, shape statistic standard deviation, shape statistic skewness, and shape statistic kurtosis.

优选地,所述对初始可用信号进行特征值提取,获得信号特征,具体为:Preferably, the feature value extraction is performed on the initially available signal to obtain the signal feature, specifically:

对所述初始可用信号再一次进行小波变换,获得两个小波信号,对两个所述小波信号进行特征值提取,获得信号特征;Wavelet transform is performed on the initially available signal again to obtain two wavelet signals, and feature value extraction is performed on the two wavelet signals to obtain signal features;

其中,所述信号特征包括针对其中一个小波信号提取得到的时域第二均值、时域第二标准差、时域第二范围、时域第二过均值点数和时域第二四分位数范围;以及针对另一个小波信号提取得到的时域第三均值、时域第三标准差、时域第三范围、时域第三过均值点数和时域第三四分位数范围。Wherein, the signal features include the second time-domain mean value, the second time-domain standard deviation, the second time-domain range, the second time-domain over-average points, and the time-domain second quartile obtained from one of the wavelet signals range; and the third time-domain mean value, the third time-domain standard deviation, the third time-domain range, the third time-domain over-average points, and the third time-domain quartile range extracted for another wavelet signal.

优选地,所述使用TCP协议连接wifi信号发送设备,并通过wifi信号接收设备实时获取CSI的数据流;其中,所述数据流包含若干个连续递进的数据包;具体为:Preferably, the TCP protocol is used to connect the wifi signal sending device, and the CSI data stream is obtained in real time through the wifi signal receiving device; wherein, the data stream includes several consecutive progressive data packets; specifically:

在待测空间中设置至少一个wifi信号发送设备以及m个wifi信号接收设备,同时通过m个所述wifi信号接收设备同时获取至少一个所述wifi信号发送设备发出的数据,得到1个dat文件;其中,m为正整数;Set at least one wifi signal sending device and m wifi signal receiving devices in the space to be tested, and simultaneously obtain data sent by at least one of the wifi signal sending devices through the m wifi signal receiving devices, and obtain 1 dat file; Among them, m is a positive integer;

对获取的dat文件提取csi的数据流;其中,所述数据流包含若干个连续递进的数据包,每个数据包对应一个1×m×30的子载波矩阵。Extract the csi data stream from the acquired dat file; wherein, the data stream includes several consecutive progressive data packets, and each data packet corresponds to a 1×m×30 subcarrier matrix.

优选地,所述分析数据流,从中获得有效载波,具体为:Preferably, the analysis of the data stream to obtain a valid carrier therefrom is specifically:

每隔预设的时间间隔,比较1×m×30个子载波对动作的敏感度,选择对动作最敏感的子载波作为有效载波。Every preset time interval, compare the sensitivities of 1×m×30 sub-carriers to the action, and select the sub-carrier that is most sensitive to the action as the effective carrier.

优选地,所述预设幅值扰动判断条件;依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数,依据所述幅值扰动判断条件,对有效载波进行滑动窗口截取,获得有效动作片段;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;具体为:Preferably, the preset amplitude disturbance judgment condition; perform matrix extraction on the effective carrier corresponding to each data packet in turn to obtain the matrix parameter corresponding to each data packet, and according to the amplitude disturbance judgment condition, perform a matrix extraction on the effective carrier The sliding window is intercepted to obtain valid action segments; wherein, the amplitude disturbance judgment condition is used to judge whether the sliding window has several matrix parameters including corresponding human actions; specifically:

预设幅值扰动判断条件,所述幅值扰动判断条件包括片段起始条件和幅值扰动阈值;Preset amplitude disturbance judgment conditions, where the amplitude disturbance judgment conditions include a segment start condition and an amplitude disturbance threshold;

依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;Perform matrix extraction on the effective carrier corresponding to each data packet in turn to obtain matrix parameters corresponding to each data packet; wherein, the amplitude disturbance judgment condition is used to judge whether there are several matrix parameters containing corresponding human actions in the sliding window ;

依据片段起始条件,通过滑动窗口截取数据流中的有第一动作片段;According to the segment start condition, intercept the first action segment in the data stream through the sliding window;

实时检测所述第一动作片段是否大于所述幅值扰动阈值,若是,则输出为有效动作片段。It is detected in real time whether the first action segment is greater than the amplitude disturbance threshold, and if so, it is output as a valid action segment.

优选地,预设幅值扰动判断条件;依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数,依据所述幅值扰动判断条件,对有效载波进行滑动窗口截取,获得有效动作片段;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数,还包括:Preferably, the amplitude disturbance judgment condition is preset; the effective carrier corresponding to each data packet is sequentially extracted by matrix to obtain the matrix parameter corresponding to each data packet, and a sliding window is performed on the effective carrier according to the amplitude disturbance judgment condition Intercept to obtain valid action segments; wherein, the amplitude disturbance judgment condition is used to judge whether the sliding window has several matrix parameters containing corresponding human actions, and also includes:

采集位于不同空间位置的人体进行不同动作的数据样本,其中包括至少一个跌倒的数据样本和至少一个非跌倒的数据样本;Collect data samples of different actions performed by the human body at different spatial positions, including at least one data sample of falling and at least one data sample of non-falling;

标记数据样本,区分跌倒的数据样本与非跌倒的数据样本的幅值扰动区别,得出幅值扰动判断条件。Mark the data samples, distinguish the amplitude disturbance of the falling data samples and the non-falling data samples, and obtain the amplitude disturbance judgment condition.

本发明还提供了基于信道状态信息的实时化跌倒检测设备,包括:数据获取模块、载波获取模块、动作检测模块、第一数据模块、第二数据模块、第三数据模块、分类模块和告警模块;The present invention also provides a real-time fall detection device based on channel state information, including: a data acquisition module, a carrier acquisition module, an action detection module, a first data module, a second data module, a third data module, a classification module and an alarm module ;

所述数据获取模块用于使用TCP协议连接wifi信号发送设备,并通过wifi信号接收设备实时获取CSI的数据流;其中,所述数据流包含若干个连续递进的数据包;The data acquisition module is used to connect the wifi signal sending device using the TCP protocol, and obtain the data stream of the CSI in real time through the wifi signal receiving device; wherein, the data stream includes several continuous progressive data packets;

所述载波获取模块用于分析数据流,从中获得有效载波;The carrier acquisition module is used to analyze the data flow, and obtain a valid carrier therefrom;

所述动作检测模块用于预设幅值扰动判断条件;依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数,依据所述幅值扰动判断条件,对有效载波进行滑动窗口截取,获得有效动作片段;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;The motion detection module is used to preset the amplitude disturbance judgment condition; perform matrix extraction on the effective carrier corresponding to each data packet in turn, and obtain the matrix parameter corresponding to each data packet, and according to the amplitude disturbance judgment condition, the effective carrier is obtained. The carrier is intercepted by a sliding window to obtain valid action segments; wherein, the amplitude disturbance judgment condition is used to judge whether the sliding window has several matrix parameters that include corresponding human actions;

所述第一数据模块用于当截取到有效动作片段时,对当前窗口内的有效载波利用小波变换进行降噪,并利用巴特沃斯滤波器进行滤波,获得初始可用信号;The first data module is used for denoising the effective carrier in the current window by using wavelet transform and filtering by using Butterworth filter to obtain an initial available signal when a valid action segment is intercepted;

所述第二数据模块用于对初始可用信号进行特征值提取,获得信号特征;The second data module is used to perform feature value extraction on the initially available signal to obtain signal features;

所述第三数据模块用于对信号特征进行归一化,获得特征值矩阵;The third data module is used to normalize the signal features to obtain an eigenvalue matrix;

所述分类模块用于将特征值矩阵导入SVM分类模型,获得动作分类结果;The classification module is used to import the eigenvalue matrix into the SVM classification model to obtain the action classification result;

所述告警模块用于判断动作分类结果是否为跌倒,如是,发出告警信息。The alarm module is used for judging whether the action classification result is a fall, and if so, sending an alarm message.

本发明提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行上述基于信道状态信息的实时化跌倒检测方法。The present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned channel state information-based real-time fall detection method.

本发明的有益效果是:The beneficial effects of the present invention are:

(1)通过实时获取CSI数据流,并且根据幅值扰动判断条件,进行滑动窗口截取有效动作片段,并且放入SVM分类模型中进行分析,得到当前人体状态结果,能够进行实时化检测跌倒的系统,可以将数据进行实时化分析,极短时间内得出结论并输出。(1) By obtaining the CSI data stream in real time, and according to the amplitude disturbance judgment condition, the sliding window is used to intercept the effective action segments, and then put into the SVM classification model for analysis, and the current human body state results are obtained, which can detect falls in real time. , the data can be analyzed in real time, and conclusions can be drawn and output in a very short time.

(2)通过tcp协议连接通道进行实时化不间断检测,实现实时化的快速跌倒监测,当链路有少量丢包时,tcp协议可以自动重传,无需干涉,有助于保证信息的准确,提高检测效率。(2) Real-time uninterrupted detection is carried out through the tcp protocol connection channel to realize real-time rapid fall detection. When there is a small amount of packet loss on the link, the tcp protocol can automatically retransmit without intervention, which helps to ensure the accuracy of information. Improve detection efficiency.

(3)利用幅值扰动条件进行动作产生的判断,可有效地分割出动作片段,提高检测效率,减少运算资源的占用,从而降低设备成本。(3) Using the amplitude disturbance condition to judge the action generation can effectively segment the action segment, improve the detection efficiency, reduce the occupation of computing resources, and thus reduce the equipment cost.

优选地,利用时域和频域的多种特征值进行判断,通过投入SVM分类模型进行尝试,得出基于时域和频域的36个特征值作为最佳的判断依据,使分类准确率大幅提高,提高检测准确性。Preferably, a variety of eigenvalues in the time domain and frequency domain are used for judgment, and 36 eigenvalues based on the time domain and frequency domain are obtained as the best judgment basis by inputting the SVM classification model to try, so that the classification accuracy rate is greatly improved. improve the detection accuracy.

附图说明Description of drawings

下文将结合说明书附图对本发明进行进一步的描述说明,其中:The present invention will be further described below in conjunction with the accompanying drawings, wherein:

图1为本发明其中一个实施例的方法流程图;1 is a flow chart of a method according to an embodiment of the present invention;

图2为本发明其中一个实施例的经小波变换后的数据波形示意图;2 is a schematic diagram of a data waveform after wavelet transformation according to one embodiment of the present invention;

图3为本发明其中一个实施例弯腰时的CSI幅值图;FIG. 3 is a CSI amplitude diagram when bending over according to one embodiment of the present invention;

图4为本发明其中一个实施例跌倒时的CSI幅值图;FIG. 4 is a CSI amplitude diagram when one embodiment of the present invention falls;

图5为本发明其中一个实施例的人体动作频率参数表;5 is a table of human motion frequency parameters according to one embodiment of the present invention;

图6为本发明另一实施例的采集场地示意图。FIG. 6 is a schematic diagram of a collection site according to another embodiment of the present invention.

图中:1、发送天线;2、接收天线;3、数据采集点。In the figure: 1. Sending antenna; 2. Receiving antenna; 3. Data collection point.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

参见图1至图5,作为本发明的其中一个实施,公开了基于信道状态信息的实时化跌倒检测方法,包括:Referring to FIG. 1 to FIG. 5, as one of the implementations of the present invention, a real-time fall detection method based on channel state information is disclosed, including:

S1、使用TCP协议连接wifi信号发送设备,并通过wifi信号接收设备实时获取CSI的数据流;其中,所述数据流包含若干个连续递进的数据包;S1, use the TCP protocol to connect the wifi signal sending device, and obtain the data stream of the CSI in real time through the wifi signal receiving device; wherein, the data stream includes several continuous progressive data packets;

S2、分析数据流,从中获得有效载波;S2, analyze the data stream, and obtain a valid carrier from it;

S3、预设幅值扰动判断条件;依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数,依据所述幅值扰动判断条件,对有效载波进行滑动窗口截取,获得有效动作片段;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;S3. Preset the amplitude disturbance judgment condition; perform matrix extraction on the effective carrier corresponding to each data packet in turn to obtain the matrix parameter corresponding to each data packet, and perform sliding window interception on the effective carrier according to the amplitude disturbance judgment condition , to obtain a valid action segment; wherein, the amplitude disturbance judgment condition is used to judge whether the sliding window has several matrix parameters including corresponding human actions;

S4、当截取到有效动作片段时,对当前窗口内的有效载波利用小波变换进行降噪,并利用巴特沃斯滤波器进行滤波,获得初始可用信号;S4. When an effective action segment is intercepted, use wavelet transform to denoise the effective carrier in the current window, and use Butterworth filter to filter to obtain an initial available signal;

S5、对初始可用信号进行特征值提取,获得信号特征;S5, extract the characteristic value of the initial available signal to obtain the signal characteristic;

S6、对信号特征进行归一化,获得特征值矩阵;S6, normalize the signal features to obtain an eigenvalue matrix;

S7、将特征值矩阵导入SVM分类模型,获得动作分类结果;S7, import the eigenvalue matrix into the SVM classification model to obtain the action classification result;

S8、判断动作分类结果是否为跌倒,如是,发出告警信息。S8. Determine whether the action classification result is a fall, and if so, issue an alarm message.

作为优选地,所述信号特征包括:时域均值、时域标准差、时域最大值、时域最小值、时域范围、过均值点数、时域1/4分位数、时域3/4分位数和时域四分位数范围、第一大FFT、第一大FFT对应的频率、第三大FFT、第三大FFT对应的频率、第五大FFT、第五大FFT对应的频率、频域平均值、频域标准差、频域1/4分位数、频域3/4分位数、频域四分位数范围、幅度统计偏度、幅度统计峰度、形状统计均值、形状统计标准差、形状统计偏度和形状统计峰度。Preferably, the signal features include: time-domain mean, time-domain standard deviation, time-domain maximum value, time-domain minimum value, time-domain range, number of over-average points, time-domain 1/4 quantile, time-domain 3/ Quartile and time domain quartile range, the first largest FFT, the frequency corresponding to the first largest FFT, the third largest FFT, the frequency corresponding to the third largest FFT, the fifth largest FFT, the corresponding frequency of the fifth largest FFT Frequency, Frequency Domain Mean, Frequency Domain Standard Deviation, Frequency Domain 1/4 Quantile, Frequency Domain 3/4 Quantile, Frequency Domain Interquartile Range, Amplitude Statistics Skewness, Amplitude Statistics Kurtosis, Shape Statistics Mean, shape statistic standard deviation, shape statistic skewness, and shape statistic kurtosis.

优选地,步骤S4中,包括分步骤如下:Preferably, in step S4, the sub-steps are as follows:

S41、对所述初始可用信号再一次进行小波变换,获得两个小波信号,对两个所述小波信号进行特征值提取,获得信号特征;S41. Perform wavelet transformation on the initially available signal again to obtain two wavelet signals, and perform feature value extraction on the two wavelet signals to obtain signal features;

其中,所述信号特征包括针对其中一个小波信号提取得到的时域第二均值、时域第二标准差、时域第二范围、时域第二过均值点数和时域第二四分位数范围;以及针对另一个小波信号提取得到的时域第三均值、时域第三标准差、时域第三范围、时域第三过均值点数和时域第三四分位数范围。Wherein, the signal features include the second time-domain mean value, the second time-domain standard deviation, the second time-domain range, the second time-domain over-average points, and the time-domain second quartile obtained from one of the wavelet signals range; and the third time-domain mean value, the third time-domain standard deviation, the third time-domain range, the third time-domain over-average points, and the third time-domain quartile range extracted for another wavelet signal.

参见图2,图中从上到下第一个波形是原始数据(未经任何处理)的波形;第二个波形是经过处理的数据(小波变换降噪后,滤波器滤波后)的波形;第三个波形是第二个波形的低频成分信号,即两个小波信号中的小波信号s(t)1;第四个波形是第二个波形的高频成分信号,即两个小波信号中的小波信号s(t)2。Referring to Figure 2, the first waveform from top to bottom in the figure is the waveform of the original data (without any processing); the second waveform is the waveform of the processed data (after wavelet transform noise reduction, after filter filtering); The third waveform is the low-frequency component signal of the second waveform, that is, the wavelet signal s(t)1 in the two wavelet signals; the fourth waveform is the high-frequency component signal of the second waveform, that is, the wavelet signal s(t)1 in the two wavelet signals. The wavelet signal s(t)2.

针对上述两点,是本发明的创新点之一,在于对于原始CSI信号进行小波变换降噪并使用巴特沃斯滤波器滤波,得到初始可用信号s(t),对此信号有两种方法进行特征提取:Aiming at the above two points, it is one of the innovative points of the present invention. It is to perform wavelet transform and noise reduction on the original CSI signal and filter it with a Butterworth filter to obtain the initial usable signal s(t). There are two methods for this signal. Feature extraction:

第一种方法,直接使用该初始可用信号s(t)进行时域和频域的特征值提取,获得共26个特征值;The first method is to directly use the initial available signal s(t) to extract the eigenvalues in the time domain and frequency domain, and obtain a total of 26 eigenvalues;

第二种方法,对初始可用信号s(t)进行再一次小波变换,将此初始可用信号s(t)分解成两个小波信号s(t)1和s(t)2,对这两个信号再次进行时域特征提取,包括均值、标准差、范围、过均值点数和四分位数范围,这五种特征值只能展现信号特性,共10个特征值。The second method is to perform wavelet transform on the initial available signal s(t) again, and decompose the initial available signal s(t) into two wavelet signals s(t)1 and s(t)2. The signal is extracted again in time domain, including mean, standard deviation, range, over-average points, and interquartile range. These five eigenvalues can only show signal characteristics, and there are 10 eigenvalues in total.

上述两种方法共有36个特征值,这两种方法均能较完美的展现信号的特性,从而提高跌倒识别的准确率。其中,各特征值的具体定义如下:The above two methods have a total of 36 eigenvalues, both of which can perfectly display the characteristics of the signal, thereby improving the accuracy of fall recognition. Among them, the specific definition of each eigenvalue is as follows:

时域均值,为数据信号在时间窗口内的平均特性,将多次采样的平均值作为数据真实值,反映其基本特征。主要反映接收信号的静态特性,可区分人体的大概位置信息;其计算公式为:The time domain mean is the average characteristic of the data signal in the time window, and the average value of multiple samplings is taken as the real value of the data to reflect its basic characteristics. It mainly reflects the static characteristics of the received signal, and can distinguish the approximate position information of the human body; its calculation formula is:

Figure BDA0003625426650000091
Figure BDA0003625426650000091

其中,n表示一个时间窗口的大小,ai表示第i个子载波的幅值大小,其对应Matlab中的可用函数mean()。Among them, n represents the size of a time window, and a i represents the magnitude of the ith subcarrier, which corresponds to the available function mean() in Matlab.

时域标准差,是指数据集中所有的数减去这些数平均值的平方和,再将所得结果除以总个数,然后对其开根号,也就得到标准差。标准差反映的是数据集中平均值分散程度。标准差大,表明这些数和其平均值间差异较大;标准差小,表明这些数和其平均值间差异较小。可以反映接收信号的波动性,估计接收端附近人体动作的变化;其计算公式如下:The time-domain standard deviation refers to all the numbers in the data set minus the sum of the squares of the averages of these numbers, then divide the result by the total number, and then take the square root to get the standard deviation. The standard deviation reflects the spread of the mean in the data set. A large standard deviation indicates that the numbers are more different from their mean; a small standard deviation means that the numbers are less different from their mean. It can reflect the fluctuation of the received signal and estimate the change of human motion near the receiving end; its calculation formula is as follows:

Figure BDA0003625426650000092
Figure BDA0003625426650000092

其对应Matlab中可用的函数:std()。It corresponds to the function available in Matlab: std().

时域最大值和时域最小值,分别表示的是数据集中的最大数值和最小数值;时域范围表示的是最大值和最小值的差值,可表示信号变化的程度。时域最大值和时域最小值可以较好区分人体动作的变化。The time domain maximum value and the time domain minimum value represent the maximum value and the minimum value in the data set respectively; the time domain range represents the difference between the maximum value and the minimum value, which can indicate the degree of signal change. The temporal maximum value and the temporal minimum value can better distinguish the changes of human motion.

其中,时域最大值:max=max(ai),i∈{1,2,...,n},对应函数max();Among them, the maximum value in the time domain: max=max(a i ), i∈{1, 2,...,n}, corresponding to the function max();

时域最小值:min=min(ai),i∈{1,2,...,n},对应函数min();The minimum value in the time domain: min=min(a i ), i∈{1, 2,...,n}, corresponding to the function min();

时域范围:range=|max-min|,对应函数:abs(max()-min());Time domain range: range=|max-min|, corresponding function: abs(max()-min());

过均值点数,是指一个窗口内超过均值点的数据个数,计算公式如下:The number of over-average points refers to the number of data that exceeds the average point in a window. The calculation formula is as follows:

Figure BDA0003625426650000101
Figure BDA0003625426650000101

其中,

Figure BDA0003625426650000102
是指示函数(indicator function),当括号里条件成立时取值为1,否则为0。in,
Figure BDA0003625426650000102
is an indicator function, which takes the value 1 when the condition in the parentheses holds, and 0 otherwise.

时域1/4分位数、时域3/4分位数、时域四分位数范围、频域1/4分位数、频域3/4分位数和频域四分位数范围,其中,时域与频域的1/4分位数、3/4分位数和四分位数范围意义相同。Time Domain 1/4 Quantile, Time Domain 3/4 Quantile, Time Domain Interquartile Range, Frequency Domain 1/4 Quantile, Frequency Domain 3/4 Quantile, and Frequency Domain Interquartile range, where the 1/4 quantile, 3/4 quantile, and interquartile range in the time domain and the frequency domain have the same meaning.

上述四分位参数均是指通过四分位数统计描述分析方法描述数据时,偏态数据的离散程度,即将全部数据从小到大排列,正好排列在下1/4位置上的数就叫做下四分位数(按照百分比,也就是25%位置上的数)也叫做第一四分位数,排在上1/4位置上的数就叫上四分位数(按照百分比比,也就是75%位置上的数)也叫做第三四分位数,四分位数间距就是指上下四分位数之间的差值。上、下四分位数之间恰好包含了50%的数据。The above-mentioned quartile parameters all refer to the degree of dispersion of skewed data when describing the data through the quartile statistical description and analysis method, that is, arrange all the data from small to large, and the number that is exactly arranged in the lower 1/4 position is called the lower four. The quantile (according to the percentage, that is, the number in the 25% position) is also called the first quartile, and the number in the upper 1/4 position is called the upper quartile (according to the percentage ratio, that is, 75 The number in the % position) is also called the third quartile, and the interquartile range is the difference between the upper and lower quartiles. Exactly 50% of the data is contained between the upper and lower quartiles.

四分位差特点:Quartile Characteristics:

四分位差只能说明中间50%数据的离散程度,它依然不能充分反映全部数据的离散状况。四分位差越大,说明中间50%数据的离散程度越大;四分位差越小,说明中间50%数据的离散程度越小;在一定程度上,四分位差也可以反映中位数的代表性好坏;四分位差是一种顺序统计量,因此四分位差适用于测度定序数据和定量数据的离散程度。The interquartile range can only describe the dispersion degree of the middle 50% of the data, and it still cannot fully reflect the dispersion of all the data. The larger the interquartile range, the greater the dispersion of the data in the middle 50%; the smaller the interquartile range, the smaller the dispersion of the data in the middle 50%; to a certain extent, the interquartile range can also reflect the median The representativeness of the number; the interquartile range is an order statistic, so the interquartile range is suitable for measuring the degree of dispersion of ordinal and quantitative data.

第一大FFT、第一大FFT对应的频率、第三大FFT、第三大FFT对应的频率、第五大FFT和第五大FFT对应的频率:The first largest FFT, the frequency corresponding to the first largest FFT, the third largest FFT, the frequency corresponding to the third largest FFT, the fifth largest FFT and the frequency corresponding to the fifth largest FFT:

通过快速傅里叶变换(FFT)将一个动作时间窗内的csi时域信号换到频域的csi信号信息,提取信号的FFT最大的前五个值及这五个值分别对应的频率。在实验过程中发现频域第二大FFT和第三大FFT、第四大和第五大FFT这两组特征值两两之间具有完全相同的特征变化数值,因此只采取第二大FFT和第三大FFT其中一项、第四大和第五大FFT其中一项。Convert the csi time domain signal in an action time window to the csi signal information in the frequency domain through fast Fourier transform (FFT), and extract the first five maximum FFT values of the signal and the frequencies corresponding to these five values. During the experiment, it was found that the second largest FFT and the third largest FFT, the fourth largest and the fifth largest FFT in the frequency domain have exactly the same characteristic change values between the two groups of eigenvalues. Therefore, only the second largest FFT and the third largest FFT are taken. One of the three major FFTs, one of the fourth and fifth largest FFTs.

例如有8个数:1,2,3,4,5,6,7,8;For example, there are 8 numbers: 1, 2, 3, 4, 5, 6, 7, 8;

经过FFT之后得到以下8个数:After FFT, the following 8 numbers are obtained:

36.0000+0.0000i;-4.0000+9.6569i;-4.0000+4.0000i;36.0000+0.0000i;-4.0000+9.6569i;-4.0000+4.0000i;

-4.0000+1.6569i;-4.0000+0.0000i;-4.0000-1.6569i;-4.0000+1.6569i;-4.0000+0.0000i;-4.0000-1.6569i;

-4.0000-4.0000i;-4.0000-9.6569i。-4.0000-4.0000i; -4.0000-9.6569i.

从这8个数可以看出,第一个数最大,剩余7个数以第五个数为中心是对称的。这是由傅里叶变换所决定的,所以除了单独第一个数以外,剩下的数可以只取一半。It can be seen from these 8 numbers that the first number is the largest, and the remaining 7 numbers are symmetrical with the fifth number as the center. This is determined by the Fourier transform, so except for the first number alone, the remaining numbers can be taken in half.

下面是功率谱密度,功率谱密度描述数据在频域的能量分布;功率谱密度又分为幅度统计特征和形状统计特征这两种特征The following is the power spectral density, which describes the energy distribution of the data in the frequency domain; the power spectral density is further divided into two types of characteristics: amplitude statistical characteristics and shape statistical characteristics

首先是幅度统计特征,设C(i)是第i个窗口的频率幅度值,N表示窗口数,则幅值统计特征的几个量计算方式如下:The first is the amplitude statistical feature. Let C(i) be the frequency amplitude value of the i-th window, and N represents the number of windows. The calculation methods of several quantities of the amplitude statistical feature are as follows:

频域平均值(幅度统计特征均值):

Figure BDA0003625426650000111
Frequency Domain Mean (Amplitude Statistical Feature Mean):
Figure BDA0003625426650000111

频域标准差(幅度统计特征标准差):

Figure BDA0003625426650000112
Frequency Domain Standard Deviation (Standard Deviation of Amplitude Statistics):
Figure BDA0003625426650000112

幅度统计偏度:

Figure BDA0003625426650000113
Amplitude statistical skewness:
Figure BDA0003625426650000113

幅度统计峰度:

Figure BDA0003625426650000114
Amplitude statistical kurtosis:
Figure BDA0003625426650000114

下面是形状统计特征,设C(i)是第i个窗口的频率幅度值,N表示窗口数,

Figure BDA0003625426650000121
则形状统计特征的几个量计算方式如下The following are the shape statistics, let C(i) be the frequency amplitude value of the i-th window, N is the number of windows,
Figure BDA0003625426650000121
Then several quantities of shape statistical features are calculated as follows

形状统计均值:

Figure BDA0003625426650000122
Shape Statistics Mean:
Figure BDA0003625426650000122

形状统计标准差:

Figure BDA0003625426650000123
Shape Statistics Standard Deviation:
Figure BDA0003625426650000123

形状统计偏度:

Figure BDA0003625426650000124
Shape Statistical Skewness:
Figure BDA0003625426650000124

形状统计峰度:

Figure BDA0003625426650000125
Shape statistic kurtosis:
Figure BDA0003625426650000125

优选地,步骤S1中,包括分步骤如下:Preferably, in step S1, the sub-steps are as follows:

S11、在待测空间中设置至少一个wifi信号发送设备以及m个wifi信号接收设备,同时通过m个所述wifi信号接收设备同时获取至少一个所述wifi信号发送设备发出的数据,得到1个dat文件;其中,m为正整数;S11. Set at least one wifi signal sending device and m wifi signal receiving devices in the space to be tested, and simultaneously obtain data sent by at least one of the wifi signal sending devices through the m wifi signal receiving devices, and obtain 1 dat file; where m is a positive integer;

S12、对获取的dat文件提取csi的数据流;其中,所述数据流包含若干个连续递进的数据包,每个数据包对应一个1×m×30的子载波矩阵。S12. Extract the csi data stream from the acquired dat file; wherein, the data stream includes several consecutive progressive data packets, and each data packet corresponds to a 1×m×30 subcarrier matrix.

优选地,步骤S2中,包括分步骤如下:Preferably, in step S2, the sub-steps are as follows:

S21、每隔预设的时间间隔,比较1×m×30个子载波对动作的敏感度,选择对动作最敏感的子载波作为有效载波。S21. Compare the sensitivities of 1×m×30 sub-carriers to the action at every preset time interval, and select the sub-carrier that is most sensitive to the action as an effective carrier.

优选地,步骤S3中,包括分步骤如下:Preferably, in step S3, the sub-steps are as follows:

S31、预设幅值扰动判断条件,所述幅值扰动判断条件包括片段起始条件和幅值扰动阈值;S31, preset an amplitude disturbance judgment condition, where the amplitude disturbance judgment condition includes a segment start condition and an amplitude disturbance threshold;

S32、依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;S32. Perform matrix extraction on the effective carriers corresponding to each data packet in turn, to obtain matrix parameters corresponding to each data packet; wherein, the amplitude disturbance judgment condition is used to judge whether there are several corresponding human motions in the sliding window matrix parameter;

S33、依据片段起始条件,通过滑动窗口截取数据流中的有第一动作片段;S33, according to the segment start condition, intercept the first action segment in the data stream through the sliding window;

S34、实时检测所述第一动作片段是否大于所述幅值扰动阈值,若是,则输出为有效动作片段。S34. Detect in real time whether the first action segment is greater than the amplitude disturbance threshold, and if so, output it as a valid action segment.

优选地,所述步骤S3中,还包括分步骤如下:Preferably, in the step S3, it also includes the following steps:

S311、采集位于不同空间位置的人体进行不同动作的数据样本,其中包括至少一个跌倒的数据样本和至少一个非跌倒的数据样本;S311. Collect data samples of human bodies at different spatial positions performing different actions, including at least one falling data sample and at least one non-falling data sample;

S312、标记数据样本,区分跌倒的数据样本与非跌倒的数据样本的幅值扰动区别,得出幅值扰动判断条件。S312 , marking the data samples, distinguishing the amplitude disturbance difference between the falling data sample and the non-falling data sample, and obtaining the amplitude disturbance judgment condition.

本实施例中,片段起始条件是可以任意场景均通用的,片段起始条件至少包括跌倒和弯腰的动作数据集;以6s一个dat数据文件,包与包之间的时间间隔为0.01s,也就是采样频率是100HZ,就是一个数据文件对应600个包。我们在测获数据集的时候,不论跌倒还是弯腰,规定动作统一在前2s时间静止不动,2s过后再进行动作的执行,因此我们在幅值扰动条件选择判断片段的起始为第250个和第300个包之间幅值区间,以匹配收集到的数据集。In this embodiment, the starting condition of the segment is common to any scene, and the starting condition of the segment at least includes the action data set of falling and bending over; a dat data file of 6s is used, and the time interval between packets is 0.01s , that is, the sampling frequency is 100HZ, that is, a data file corresponds to 600 packets. When we measured the data set, whether we fell or bent over, we stipulated that the action should be stationary for the first 2s, and then the action was executed after 2s. Therefore, we selected the start of the judgment segment as the 250th under the condition of amplitude disturbance. The amplitude interval between the 1st and 300th packets to match the collected dataset.

幅值扰动阈值,该阈值是通过人工观察,预先设置好的阈值;在不同环境下,多径效应所产生的效果也不同,该阈值还未能做到一劳永逸的实现自动化配置,所以本实施例运用于其他场景时,需要重新配置幅值扰动阈值。Amplitude disturbance threshold, which is a preset threshold through manual observation; in different environments, the effects of multipath effects are also different, this threshold has not been able to achieve automatic configuration once and for all, so this embodiment When used in other scenarios, the amplitude disturbance threshold needs to be reconfigured.

参见图3和图4,可以看出,在测试动作数据集的时候,幅值改变范围在300-400之间,这里由于人为误差(每个人的时间观念不一致),会导致时间的偏移,本实施例统一判断区间在第250个包至第300个包之间的幅值;并且也可以从图3和图4中看出,跌倒和弯腰动作均发生了幅值突变,本实施例通过设定幅值扰动判断条件,将在判断区间内不产生突变的数据流过滤掉。幅值扰动阈值的设定与环境有关,需要在部署时,模拟相关动作,预先收一组或多组数据文件,观察幅值突变范围,再以设定阈值。Referring to Figure 3 and Figure 4, it can be seen that when testing the action data set, the amplitude change range is between 300-400. Here, due to human error (every person's time concept is inconsistent), it will lead to time shift, This embodiment uniformly judges the amplitude of the interval between the 250th packet and the 300th packet; and it can also be seen from FIG. 3 and FIG. 4 that both the fall and the stooping action have a sudden change in amplitude. This embodiment By setting the amplitude disturbance judgment conditions, the data streams that do not produce sudden changes in the judgment interval are filtered out. The setting of the amplitude disturbance threshold is related to the environment. It is necessary to simulate related actions during deployment, collect one or more sets of data files in advance, observe the range of amplitude mutation, and then set the threshold.

在其他实施例中,可以通过预设程序,在wifi设备部署完成后,通过语音引导用户做几组动作,从而通过采集的一组或多组数据文件,根据比例或预设算法计算幅值突变范围,得到幅值扰动阈值并自动完成预设。In other embodiments, after the deployment of the wifi device is completed, the user can be guided to perform several sets of actions through a preset program, so as to calculate the sudden change of amplitude according to the ratio or preset algorithm through one or more sets of data files collected. range, get the amplitude disturbance threshold and automatically complete the preset.

参见图5,可以看到人体动作范围主要集中在0~80Hz,因此本实施例选用巴特沃斯滤波器作为低通滤波器。Referring to FIG. 5 , it can be seen that the action range of the human body is mainly concentrated in 0-80 Hz, so the Butterworth filter is selected as the low-pass filter in this embodiment.

作为本发明的另一个实施例,是一种在静止无人的理想环境下基于WIFI的实时化检测系统,包括有信号发送模块,即wifi路由器,数据接收模块,即wifi接收天线2,数据处理和SVM分类模型及实时检测模块,即微型电脑。发送天线1是1根,接收天线2有3根。As another embodiment of the present invention, it is a real-time detection system based on WIFI in an ideal static and unmanned environment, including a signal sending module, namely a wifi router, a data receiving module, namely a wifi receiving antenna 2, and a data processing module. And SVM classification model and real-time detection module, namely microcomputer. There is one transmitting antenna 1, and three receiving antennas 2.

本实施例的实现方法包含如下步骤:The implementation method of this embodiment includes the following steps:

A1、环境搭建,本实施例选用了Ubuntu系统14.04版本,在微型电脑上面安装好系统之后,采用CSI tool工具,根据所部署的环境修改驱动与内核,目的是为了能从intel5300网卡上面提取CSI子载波信息;从intel 5300网卡,本实施例能提取30个子载波,每个数据包包含30个子载波;A1. Environment construction. In this example, the Ubuntu system version 14.04 is selected. After the system is installed on the microcomputer, the CSI tool is used to modify the driver and kernel according to the deployed environment. Carrier information; from the intel 5300 network card, this embodiment can extract 30 subcarriers, and each data packet contains 30 subcarriers;

A2、系统收数,本实施例采取了两种方式去进行采样收数,一是规定6s的时间,进行将数据包写入dat格式的文件;另外一种是采取规定600个包数,进行将数据包写入dat格式的文件;其中,两种方式均对应100HZ采样率,也就是包与包之间的时间间隔是0.01s;A2. The system collects data. In this embodiment, two methods are adopted to collect data by sampling. One is to specify 6s to write data packets into files in dat format; the other is to specify 600 packets to carry out Write the data packet to the file in dat format; among them, both methods correspond to the 100HZ sampling rate, that is, the time interval between packets is 0.01s;

A3、动作采集,安排实验人员前往数据采集点3做指定动作,采集相应的数据;本实施例在6秒的时间内是规划如下:前2s,在实验区域范围边界上站着不动,如图6所示,在两秒之后,前往数据采集点3,然后执行相应的动作,并且执行完动作之后,静止不动;A3. Action collection, arrange the experimenter to go to the data collection point 3 to do the specified action and collect the corresponding data; the plan in this embodiment is as follows in 6 seconds: for the first 2s, stand still on the boundary of the experimental area, such as As shown in Figure 6, after two seconds, go to the data collection point 3, and then perform the corresponding action, and after the action is performed, stand still;

A4、信号处理,包含分步骤如下:A4. Signal processing, including sub-steps as follows:

A4.1、信号预处理,先是读取dat文件,然后利用公开的csi tool工具包里面包含的提取函数,将csi子载波从dat文件提取出来,因为csi提取出来的是频率响应,因此csi数据格式是复数,a+bi的形式,通过取模(也就是取幅值),取|a+bi|作为本系统的基信号;A4.1. Signal preprocessing, first read the dat file, and then use the extraction function contained in the open csi tool kit to extract the csi subcarrier from the dat file, because the csi extracts the frequency response, so the csi data The format is a complex number, in the form of a+bi, by taking the modulo (that is, taking the amplitude), take |a+bi| as the base signal of the system;

A4.2、信号降噪和滤波,对数据包进行小波变换进行降噪,并利用巴特沃斯滤波器进行滤波,获得初始可用信号;A4.2, Signal noise reduction and filtering, perform wavelet transform on data packets for noise reduction, and use Butterworth filter for filtering to obtain the initial available signal;

A4.3、特征提取,对初始可用信号进行特征值提取,获得信号特征;该步骤主要通过算法的优化,提高算力,本公式是综合大量论文得出的;A4.3. Feature extraction, extract the feature value of the initial available signal to obtain the signal feature; this step is mainly through the optimization of the algorithm to improve the computing power, this formula is obtained by synthesizing a large number of papers;

A4.4、特征归一化,该步骤一开始有两种可行方案,一种是标准化,一种是归一化,我们通过实践证明,有一些特征值的方差极小,导致了数据被放大,因此本实施例采用了归一化;A4.4. Feature normalization. At the beginning of this step, there are two feasible solutions, one is standardization and the other is normalization. We have proved through practice that the variance of some eigenvalues is extremely small, resulting in the data being enlarged , so this embodiment adopts normalization;

A4.5、SVM分类,采用关于libsvm的代码集,SVM分类模型中向量机超参数c、g的确定,采用最优超参数c、g函数来找到每个训练集的最优超参数c、g;A4.5, SVM classification, using the code set about libsvm, the determination of the vector machine hyperparameters c and g in the SVM classification model, and using the optimal hyperparameters c and g functions to find the optimal hyperparameters c and g of each training set. g;

A5、通过TCP协议,连接电脑与路由器,实现实时传输数据,将电脑本地设置为server服务端,再连接路由器,设置路由器为client客户端,实现TCP传输;A5. Through the TCP protocol, connect the computer and the router to realize real-time data transmission, set the computer locally as the server server, then connect to the router, and set the router as the client client to realize TCP transmission;

A6、将信号处理模型形成一个function_model函数,并且设置一个幅值扰动条件,通过双重while循环来确保系统的执行,第一层while循环是确保无数据连接时间超长后断开,能重新等待链接,第二层while循环是确保能够实时收数,并更新数据,执行模型;最后输出判断每个动作的结果。A6. The signal processing model is formed into a function_model function, and an amplitude disturbance condition is set to ensure the execution of the system through double while loops. The first layer of while loop is to ensure that no data connection is disconnected after a long time, and can wait for the connection again , the second layer of while loop is to ensure that the data can be collected in real time, update the data, execute the model, and finally output the result of judging each action.

本实施例采用的采样率是100HZ,并且数据包是以6s作为时间间隔,那么按照理论,一个数据包应该包含600个包数。但是由于信道链路的质量无法保障一定能满足最优条件,可能会出现部分包的延时稍微长一点,导致了以规定时间去收数的话,无法收到600个包,因此本实施例在每次收数时,会统计数据包的包数,如果当前链路环境下,包数无法以100HZ的采样率经过6s后收到600个包,那么本实施例将采用收到600个包为止,即使时间超过6s。The sampling rate used in this embodiment is 100 Hz, and the data packet is taken as the time interval of 6s, so theoretically, one data packet should contain 600 packets. However, since the quality of the channel link cannot be guaranteed to meet the optimal conditions, the delay of some packets may be slightly longer, so that if the data is received within the specified time, 600 packets cannot be received. Therefore, in this embodiment, the Each time the data is received, the number of packets of the data packet will be counted. If the current link environment cannot receive 600 packets after 6s at the sampling rate of 100HZ, this embodiment will use until 600 packets are received. , even if the time exceeds 6s.

本实施例中,由于路由器实质的发送天线1是1根,而本实施例接收端天线有3根所以接收到的dat文件提取csi之后,一个csi对应一个矩阵,一个1*3*30的子载波矩阵。而本实施例的系统模型,并不需要3根天线接收到的子载波都使用,所以我们通过观察,比较每根天线对动作的敏感度,我们选用对我们动作最敏感的天线作为我们所需要的天线,经过多次测试,我们选用了第三根天线;并且本实施例的目的是以时间为轴进行数据分析,因此30个子载波我们只需要用到其中一个,因此,此处采取对动作最敏感的子载波,即采用了第一个子载波。这一步是提高运算效率的关键,绝大部分人就是使用30个子载波的分布方差来代替,这大大提高了运算成本,拉低效率。In this embodiment, since the actual number of transmitting antennas of the router is 1, while the number of antennas at the receiving end in this embodiment is 3, after the csi is extracted from the received dat file, one csi corresponds to a matrix, and a 1*3*30 sub-antenna carrier matrix. The system model of this embodiment does not need to use all the subcarriers received by the three antennas, so we compare the sensitivity of each antenna to the action through observation, and we choose the antenna that is most sensitive to our action as the one we need. After many tests, we chose the third antenna; and the purpose of this embodiment is to analyze the data with time as the axis, so we only need to use one of the 30 subcarriers. Therefore, the correct action is taken here. The most sensitive sub-carrier, that is, the first sub-carrier is used. This step is the key to improving the computing efficiency. Most people use the distribution variance of 30 sub-carriers instead, which greatly increases the computing cost and reduces the efficiency.

本实施例设有9个数据采集点3,每个点采集30个dat文件,总共有两个动作一个是弯腰的动作一个是跌倒的动作(因为弯腰的动作从数据图来看,是大致相似的),5个实验者,总共由2700个数据集,这很好地降低了地理位置带来的数据误差。This embodiment has 9 data collection points 3, and each point collects 30 dat files. There are two actions in total, one is bending over and the other is falling down (because the bending action, from the data graph, is Roughly similar), 5 experimenters, with a total of 2700 datasets, which well reduces the data error caused by geographic location.

之前也说了使用小波变换来进行降噪,我们通过大量数据研究分析与实际测试实验之后,发现了用小波变换降噪是最合适于csi信号降噪的一个方式,然后我们知道,人体不同部位的动作频率是不同的,手部动作是周期短,频率大的;跌倒是周期长,频率小的;因此我们通过计算动作周期,计算大致的频率范围是0~80HZ,并且小幅度的将频率范围扩大,避免动作细节丢失,再使用巴特沃斯滤波器,滤掉频率范围之外的无关信号,以提高准确率。I also mentioned the use of wavelet transform for noise reduction. After a large amount of data research and analysis and actual test experiments, we found that using wavelet transform to reduce noise is the most suitable way to reduce noise in csi signals, and then we know that different parts of the human body The frequency of the movements is different. The hand movements have a short cycle and a high frequency; falls have a long cycle and a low frequency; therefore, we calculate the approximate frequency range by calculating the action cycle, and the frequency range is 0~80HZ, and the frequency is reduced in a small range. The range is expanded to avoid loss of motion details, and then the Butterworth filter is used to filter out irrelevant signals outside the frequency range to improve accuracy.

本实施例有两个版本的寻优函数,一个是SVMcg,一个是SVMcgPP;SVMcgPP是SVMcg的加强版,SVMcg和SVMcgPP都是采用网格寻用法,也就是步进法(枚举法)进行寻找出最优超参数c,g。本实施例采用了一个枚举函数,得出最佳的SVM分类模型,通过:设定一定的参数范围,并设置梯度,通过不断地训练与结果比较,得到准确率最大、对应参数值最佳的SVM分类模型。这一方法虽然在生成模型的时候比较慢,需要占用一定运算资源,但是生成最终的SVM分类模型,配置到实际运用场景后,该模型的应用速度极快,且占用运算资源少,并且可以适用于本发明的绝大部分场景。This embodiment has two versions of the optimization function, one is SVMcg and the other is SVMcgPP; SVMcgPP is an enhanced version of SVMcg, both SVMcg and SVMcgPP use the grid search method, that is, the stepping method (enumeration method) to search The optimal hyperparameters c and g are obtained. This embodiment uses an enumeration function to obtain the best SVM classification model. By setting a certain parameter range and setting the gradient, and comparing the results through continuous training, the maximum accuracy and the best corresponding parameter values are obtained. The SVM classification model. Although this method is relatively slow in generating models and requires certain computing resources, the final SVM classification model is generated and configured in the actual application scenario. in most scenarios of the present invention.

作为本发明的又一实施例,其具体实施步骤如下:As another embodiment of the present invention, its specific implementation steps are as follows:

B1、进行实时化收数,使用TCP协议,通过tcpip函数打开本地8090端口,建立为服务端,并设置服务端输入缓存大小以及等待时间;在电脑终端输入命令行,连接8090端口,等待系统收数;通过发包命令,CSI Tool在监控模式下双向CSI采集即同时发送并接收数据;B1. Perform real-time data collection, use the TCP protocol, open the local 8090 port through the tcpip function, establish it as a server, and set the server input cache size and waiting time; enter the command line at the computer terminal, connect to port 8090, and wait for the system to receive data; by sending the packet command, the CSI Tool sends and receives data simultaneously in two-way CSI acquisition in monitoring mode;

B2、判断是否有动作产生,先进行csi矩阵提取,通过幅值扰动判断条件进行是否产生动作的判断,并且根据幅值扰动判断条件,进行滑动窗口截取有效动作片段;若满足幅值扰动判断条件,则进行下一步,若不满足,持续收数;B2. To judge whether there is an action, first extract the csi matrix, and judge whether an action is generated through the amplitude disturbance judgment condition, and according to the amplitude disturbance judgment condition, carry out the sliding window to intercept the effective action segment; if the amplitude disturbance judgment condition is satisfied , then proceed to the next step, if not satisfied, continue to collect the number;

B3、进行数据处理,调用function_model函数,进行数据预处理,利用巴特沃斯滤波器进行降噪和滤波,再对其进行特征值提取,特征值包含时域特征值和频域特征值共26个;得到关于此26个特征值矩阵后,将其进行归一化;B3. Perform data processing, call the function_model function, perform data preprocessing, use Butterworth filter for noise reduction and filtering, and then extract eigenvalues. The eigenvalues include 26 time-domain eigenvalues and frequency-domain eigenvalues. ; After getting about the 26 eigenvalue matrices, normalize them;

B4、动作分类,将归一化后的特征值矩阵放入SVM分类模型进行分类,快速得出动作类型。B4, action classification, put the normalized eigenvalue matrix into the SVM classification model for classification, and quickly obtain the action type.

本实施例主要通过于以下几种情况收集训练模型用的数据:This embodiment mainly collects data for training the model in the following situations:

情况一:开启路由器与微型电脑,使实验场景暴露于WIFI环境下,确保数据接收模块可以稳定的接收到WIFI信号,打开微型电脑上的matlab并执行实时化检测程序以准备接收数据。Case 1: Turn on the router and the microcomputer, expose the experimental scene to the WIFI environment, ensure that the data receiving module can receive the WIFI signal stably, open the matlab on the microcomputer and execute the real-time detection program to prepare for receiving data.

具体操作包括步骤如下:The specific operations include the following steps:

①在Linux系统上通过命令打开matlab;①Open matlab by command on Linux system;

②在端口连接以及数据传递上,使用自写的read_quietprocess.m文件;②Use the self-written read_quietprocess.m file for port connection and data transmission;

③在TCP协议中,使用本地IP端口8090作为服务器,并且设置好端口参数;③ In the TCP protocol, use the local IP port 8090 as the server, and set the port parameters;

④在程序中,将实时获取的CSI数据流放入ap1_mp1数组中,并且每个都写入ap1_mp1数组的末位,通过for循环将ap1_mp1数组的每一位往前推进一位,以达到每个接收到的数据在ap1_mp1数组中不断传递;④In the program, put the CSI data stream obtained in real time into the ap1_mp1 array, and write each into the last bit of the ap1_mp1 array, and advance each bit of the ap1_mp1 array by one bit through the for loop to reach each The received data is continuously passed in the ap1_mp1 array;

⑤建立panduan数组,将ap1_mp1每第250个数据值放入panduan的末位,这样panduan数组和ap1_mp1数组的数据都在不断的更新传递,panduan数组是应用在幅值扰动判断条件的条件的变量;⑤Create a panduan array, and put the 250th data value of ap1_mp1 into the last digit of panduan, so that the data of the panduan array and the ap1_mp1 array are constantly updated and transmitted, and the panduan array is a variable applied to the condition of the amplitude disturbance judgment condition;

⑥并且设定幅值扰动判断条件,符合条件的则将当前窗口下的有效动作片段放入SVM分类模型中进行分类判断,不符合则持续收数,这一步骤大量减少运算量,提高运算效率;⑥And set the amplitude disturbance judgment conditions. If the conditions are met, put the valid action fragments under the current window into the SVM classification model for classification and judgment. If they do not meet the conditions, they will continue to collect data. This step greatly reduces the amount of calculation and improves the calculation efficiency. ;

⑦最后如果有效片段进行了分类判断的,则将当前有效片段清零即panduan数组和ap1_mp1清零,避免出现重复判断造成干扰。⑦ Finally, if the valid segment has been classified and judged, the current valid segment is cleared, that is, the panduan array and ap1_mp1 are cleared to avoid interference caused by repeated judgments.

在微型电脑中打开新终端,进行log_to_server操作,输入本地IP地址,以实现与8090端口的接通,并进行ping命令,使电脑本地服务器端接收来自路由器的信道信息,并传输到matlab程序中去。Open a new terminal in the microcomputer, perform the log_to_server operation, enter the local IP address to achieve connection with port 8090, and execute the ping command, so that the local server side of the computer receives the channel information from the router and transmits it to the matlab program. .

具体操作如下:The specific operations are as follows:

①进入netlink文件,进行log_to_server,并输入本地IP地址,以实现与本地8090端口的接通;①Enter the netlink file, log_to_server, and enter the local IP address to connect with the local port 8090;

②输入ping命令,使本地server服务器接收路由器信道信息,传输到matlab程序中;②Enter the ping command, so that the local server server receives the router channel information and transmits it to the matlab program;

③按照步骤二的做法,将matlab接收到的信号,进行处理及幅值扰动条件判断,最后进行分类;③According to the method of step 2, the signal received by matlab is processed and the amplitude disturbance condition is judged, and finally classified;

④如果分类模型判断为跌倒,则显示输出为跌倒,如果判断不为跌倒,则显示输出为非跌倒。④ If the classification model judges that it is a fall, the display output is a fall, and if it is judged not to be a fall, the display output is a non-fall.

由于本情况下采用的是静止无人的理想环境,因此不会触发幅值扰动判断条件。Since the ideal environment is static and unmanned in this case, the amplitude disturbance judgment condition will not be triggered.

情况二:本情况下是一种在目标弯腰的环境下基于WIFI的实时化检测系统,情况二的操作步骤与情况一的操作步骤基本一致,存在区别的是情况一为静止无人的环境,而情况二为目标弯腰的环境。Case 2: This case is a real-time detection system based on WIFI in an environment where the target is bent over. The operation steps of case 2 are basically the same as those of case 1. The difference is that case 1 is a static and unmanned environment. , while the second case is the environment where the target bends over.

本情况是通过目标在接收端天线与发送端天线间做一次弯腰的动作,制造扰动,弯腰使得图像出现大幅度的波动,之后曲线返回原位置,如图3所述。In this case, the target makes a bending motion between the receiving end antenna and the transmitting end antenna to create a disturbance, and bending over makes the image fluctuate greatly, and then the curve returns to the original position, as shown in Figure 3.

由于本情况下采用的是目标弯腰的环境,因此会触发幅值扰动判断条件,但是分类结果属于是非跌倒。Since the environment in which the target bends over is used in this case, the amplitude disturbance judgment condition will be triggered, but the classification result belongs to yes or no fall.

情况三:本情况下是一种在目标跌倒的环境下基于WIFI的实时化检测系统,情况三和情况二以及情况一的操作步骤基本一致,存在区别的是情况三为目标跌倒的环境。Case 3: This case is a real-time detection system based on WIFI in the environment where the target falls. The operation steps of case 3, case 2 and case 1 are basically the same, the difference is that case 3 is the environment where the target falls.

本情况是采用目标在接收端天线与发送端天线间做一次跌倒的方式制造扰动,跌倒使得图像出现大幅度得波动,但是跌倒动作的图像与弯腰的动作图像趋势不一致,区别在于弯腰是扰动后返回曲线的原位置,而跌倒是扰动后保持曲线位置,如图4所述。In this case, the target is used to make a fall between the receiving end antenna and the sending end antenna to create disturbance. The fall causes the image to fluctuate greatly, but the image of the falling action is inconsistent with the bending action image trend. The difference is that bending over is a Return to the original position of the curve after perturbation, while falling is to maintain the curve position after perturbation, as described in Figure 4.

由于本情况下采用的是目标弯腰的环境,因此会触发幅值扰动判断条件,并且分类结果属于是跌倒,此时发出告警信息。Since the environment in which the target bends over is used in this case, the amplitude disturbance judgment condition is triggered, and the classification result is a fall, and an alarm message is issued at this time.

本发明还公开了一种基于信道状态信息的实时化跌倒检测设备,包括:数据获取模块、载波获取模块、动作检测模块、第一数据模块、第二数据模块、第三数据模块、分类模块和告警模块;The invention also discloses a real-time fall detection device based on channel state information, comprising: a data acquisition module, a carrier acquisition module, an action detection module, a first data module, a second data module, a third data module, a classification module, and a Alarm module;

所述数据获取模块用于使用TCP协议连接wifi信号发送设备,并通过wifi信号接收设备实时获取CSI的数据流;其中,所述数据流包含若干个连续递进的数据包;The data acquisition module is used to connect the wifi signal sending device using the TCP protocol, and obtain the data stream of the CSI in real time through the wifi signal receiving device; wherein, the data stream includes several continuous progressive data packets;

所述载波获取模块用于分析数据流,从中获得有效载波;The carrier acquisition module is used to analyze the data flow, and obtain a valid carrier therefrom;

所述动作检测模块用于预设幅值扰动判断条件;依次对每个数据包对应的有效载波进行矩阵提取,得到每个数据包对应的矩阵参数,依据所述幅值扰动判断条件,对有效载波进行滑动窗口截取,获得有效动作片段;其中,所述幅值扰动判断条件用于判断滑动窗口中是否具有包含对应人体动作的若干个矩阵参数;The motion detection module is used to preset the amplitude disturbance judgment condition; perform matrix extraction on the effective carrier corresponding to each data packet in turn, and obtain the matrix parameter corresponding to each data packet, and according to the amplitude disturbance judgment condition, the effective carrier is obtained. The carrier is intercepted by a sliding window to obtain valid action segments; wherein, the amplitude disturbance judgment condition is used to judge whether the sliding window has several matrix parameters that include corresponding human actions;

所述第一数据模块用于当截取到有效动作片段时,对当前窗口内的有效载波利用小波变换进行降噪,并利用巴特沃斯滤波器进行滤波,获得初始可用信号;The first data module is used for denoising the effective carrier in the current window by using wavelet transform and filtering by using Butterworth filter to obtain an initial available signal when a valid action segment is intercepted;

所述第二数据模块用于对初始可用信号进行特征值提取,获得信号特征;The second data module is used to perform feature value extraction on the initially available signal to obtain signal features;

所述第三数据模块用于对信号特征进行归一化,获得特征值矩阵;The third data module is used to normalize the signal features to obtain an eigenvalue matrix;

所述分类模块用于将特征值矩阵导入SVM分类模型,获得动作分类结果;The classification module is used to import the eigenvalue matrix into the SVM classification model to obtain the action classification result;

所述告警模块用于判断动作分类结果是否为跌倒,如是,发出告警信息。The alarm module is used for judging whether the action classification result is a fall, and if so, sending an alarm message.

本发明还公开了一种终端设备,包括处理器和存储装置,存储装置用于存储一个或多个程序;当一个或多个程序被处理器执行时,处理器实现上述的基于信道状态信息的实时化跌倒检测方法。所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所称处理器是测试设备的控制中心,利用各种接口和线路连接整个测试设备的各个部分。The present invention also discloses a terminal device, comprising a processor and a storage device, wherein the storage device is used to store one or more programs; when the one or more programs are executed by the processor, the processor implements the above-mentioned channel state information-based Real-time fall detection method. The processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf processors Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the test equipment, and uses various interfaces and lines to connect various parts of the entire test equipment.

存储装置可用于存储计算机程序和/或模块,处理器通过运行或执行存储在存储装置内的计算机程序和/或模块,以及调用存储在存储装置内的数据,实现终端设备的各种功能。存储装置可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储装置可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The storage device can be used to store computer programs and/or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and/or modules stored in the storage device and calling the data stored in the storage device. The storage device may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal device. In addition, the storage device may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

其中,基于信道状态信息的实时化跌倒检测设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于至少一个计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。Wherein, if the integrated modules/units of the real-time fall detection device based on the channel state information are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in at least one computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate forms, and the like. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

需说明的是,以上所描述的设备及装置的实施例仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。It should be noted that the above-described embodiments of the equipment and devices are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be A physical unit, which can be located in one place or distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步的详细说明,应当理解,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围。特别指出,对于本领域技术人员来说,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention, and are not intended to limit the protection scope of the present invention. . It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included within the protection scope of the present invention.

Claims (9)

1. The real-time fall detection method based on the channel state information is characterized by comprising the following steps:
connecting wifi signal sending equipment by using a TCP protocol, and acquiring a data stream of CSI in real time through wifi signal receiving equipment; wherein the data stream comprises a number of consecutively progressive data packets;
analyzing the data stream to obtain effective carriers;
presetting an amplitude disturbance judgment condition; sequentially carrying out matrix extraction on the effective carrier wave corresponding to each data packet to obtain a matrix parameter corresponding to each data packet, and carrying out sliding window interception on the effective carrier wave according to the amplitude disturbance judgment condition to obtain an effective action fragment; the amplitude disturbance judgment condition is used for judging whether a plurality of matrix parameters containing corresponding human body actions exist in the sliding window or not;
when an effective action fragment is intercepted, carrying out noise reduction on an effective carrier in a current window by using wavelet transformation, and carrying out filtering by using a Butterworth filter to obtain an initial available signal;
extracting characteristic values of the initial available signals to obtain signal characteristics;
normalizing the signal characteristics to obtain a characteristic value matrix;
importing the characteristic value matrix into an SVM classification model to obtain an action classification result;
and judging whether the action classification result is a fall or not, and if so, sending alarm information.
2. The real-time fall detection method based on channel state information according to claim 1, wherein: the signal characteristics include: the method comprises the steps of time domain mean, time domain standard deviation, time domain maximum, time domain minimum, time domain range, number of over-mean points, time domain 1/4 quantiles, time domain 3/4 quantile and time domain quartile range, first large FFT, frequency corresponding to the first large FFT, third large FFT, frequency corresponding to the third large FFT, fifth large FFT, frequency corresponding to the fifth large FFT, frequency domain average, frequency domain standard deviation, frequency domain 1/4 quantile, frequency domain 3/4 quantile, frequency domain quartile range, amplitude statistical skewness, amplitude statistical kurtosis, shape statistical mean, shape statistical standard deviation, shape statistical skewness and shape statistical kurtosis.
3. The real-time fall detection method based on channel state information according to claim 1, wherein the feature value extraction is performed on the initial available signal to obtain signal features, specifically:
performing wavelet transformation on the initial available signals again to obtain two wavelet signals, and performing characteristic value extraction on the two wavelet signals to obtain signal characteristics;
the signal characteristics comprise a time domain second mean value, a time domain second standard deviation, a time domain second range, a time domain second mean value point number and a time domain second quartile range, which are extracted from one wavelet signal; and extracting a time domain third mean value, a time domain third standard deviation, a time domain third range, a time domain third mean value point number and a time domain third quartile range from another wavelet signal.
4. The real-time fall detection method based on the channel state information is characterized in that the method uses a TCP protocol to connect with a wifi signal sending device and obtains a CSI data stream in real time through a wifi signal receiving device; wherein the data stream comprises a number of consecutively progressive data packets; the method specifically comprises the following steps:
setting at least one wifi signal sending device and m (since n is a variable hereinafter, m is repeatedly changed for avoiding the phenomenon) wifi signal receiving devices in a space to be detected, and simultaneously obtaining data sent by at least one wifi signal sending device through the m wifi signal receiving devices to obtain 1 dat file; wherein m is a positive integer;
extracting the data stream of the csi from the acquired dat file; the data stream comprises a plurality of data packets which are continuously progressive, and each data packet corresponds to a1 x m x 30 subcarrier matrix.
5. The method for fall detection in real time based on channel state information as claimed in claim 4, wherein the analyzing the data stream to obtain the effective carrier is specifically:
at preset time intervals, the sensitivities of the 1 × m × 30 subcarriers to the motion are compared, and the subcarrier most sensitive to the motion is selected as the effective carrier.
6. The real-time fall detection method based on the channel state information according to claim 1, wherein the preset amplitude disturbance judgment condition is set; sequentially carrying out matrix extraction on the effective carrier wave corresponding to each data packet to obtain a matrix parameter corresponding to each data packet, and carrying out sliding window interception on the effective carrier wave according to the amplitude disturbance judgment condition to obtain an effective action fragment; the amplitude disturbance judgment condition is used for judging whether a plurality of matrix parameters containing corresponding human body actions exist in the sliding window or not; the method specifically comprises the following steps:
presetting an amplitude disturbance judgment condition, wherein the amplitude disturbance judgment condition comprises a segment starting condition and an amplitude disturbance threshold;
sequentially carrying out matrix extraction on the effective carrier wave corresponding to each data packet to obtain a matrix parameter corresponding to each data packet; the amplitude disturbance judgment condition is used for judging whether a plurality of matrix parameters containing corresponding human body actions exist in the sliding window or not;
according to the segment starting condition, a first action segment in the data stream is intercepted through a sliding window;
and detecting whether the first action segment is larger than the amplitude disturbance threshold value in real time, and if so, outputting an effective action segment.
7. The real-time fall detection method based on the channel state information according to claim 1, wherein the preset amplitude disturbance judgment condition is set; sequentially carrying out matrix extraction on the effective carrier wave corresponding to each data packet to obtain a matrix parameter corresponding to each data packet, and carrying out sliding window interception on the effective carrier wave according to the amplitude disturbance judgment condition to obtain an effective action fragment; wherein, the amplitude disturbance judgment condition is used for judging whether a plurality of matrix parameters containing corresponding human body actions exist in the sliding window, and the method further comprises the following steps:
acquiring data samples of different movements of a human body at different spatial positions, wherein the data samples comprise at least one fallen data sample and at least one non-fallen data sample;
and marking the data samples, and distinguishing amplitude disturbance differences of fallen data samples and non-fallen data samples to obtain amplitude disturbance judgment conditions.
8. Real-time fall detection equipment based on channel state information is characterized by comprising: the device comprises a data acquisition module, a carrier acquisition module, an action detection module, a first data module, a second data module, a third data module, a classification module and an alarm module;
the data acquisition module is used for connecting wifi signal sending equipment by using a TCP protocol and acquiring CSI data stream in real time through wifi signal receiving equipment; wherein the data stream comprises a number of consecutively progressing data packets;
the carrier acquisition module is used for analyzing the data stream and acquiring an effective carrier from the data stream;
the action detection module is used for presetting amplitude disturbance judgment conditions; sequentially performing matrix extraction on the effective carrier wave corresponding to each data packet to obtain a matrix parameter corresponding to each data packet, and performing sliding window interception on the effective carrier wave according to the amplitude disturbance judgment condition to obtain an effective action fragment; the amplitude disturbance judgment condition is used for judging whether a plurality of matrix parameters containing corresponding human body actions exist in the sliding window or not;
the first data module is used for denoising the effective carrier wave in the current window by utilizing wavelet transformation and filtering by utilizing a Butterworth filter to obtain an initial available signal when an effective action segment is intercepted;
the second data module is used for extracting characteristic values of the initial available signals to obtain signal characteristics;
the third data module is used for normalizing the signal characteristics to obtain a characteristic value matrix;
the classification module is used for importing the characteristic value matrix into an SVM classification model to obtain an action classification result;
the alarm module is used for judging whether the action classification result is falling down, and if yes, sending alarm information.
9. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls an apparatus to execute the method for real-time fall detection based on channel state information according to any one of claims 1 to 7.
CN202210475689.8A 2022-04-29 2022-04-29 Real-time falling detection method, system and medium based on channel state information Pending CN115035686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210475689.8A CN115035686A (en) 2022-04-29 2022-04-29 Real-time falling detection method, system and medium based on channel state information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210475689.8A CN115035686A (en) 2022-04-29 2022-04-29 Real-time falling detection method, system and medium based on channel state information

Publications (1)

Publication Number Publication Date
CN115035686A true CN115035686A (en) 2022-09-09

Family

ID=83118949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210475689.8A Pending CN115035686A (en) 2022-04-29 2022-04-29 Real-time falling detection method, system and medium based on channel state information

Country Status (1)

Country Link
CN (1) CN115035686A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116058298A (en) * 2023-03-06 2023-05-05 北京市农林科学院信息技术研究中心 Livestock behavior monitoring method and device
CN116304844A (en) * 2023-05-23 2023-06-23 山东科技大学 Personnel entry and exit counting and counting system and method
CN116528358A (en) * 2023-06-30 2023-08-01 华南师范大学 Wi-Fi-based fall positioning joint detection method, device and system
CN118484727A (en) * 2024-07-09 2024-08-13 易科奇通信技术(深圳)有限公司 Fall detection method and device based on CSI

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107749143A (en) * 2017-10-30 2018-03-02 安徽工业大学 A kind of indoor occupant fall detection system and method through walls based on WiFi signal
US20180198548A1 (en) * 2017-01-08 2018-07-12 At&T Intellectual Property I, L.P. Interference cancelation for 5g or other next generation network
CN109394229A (en) * 2018-11-22 2019-03-01 九牧厨卫股份有限公司 A kind of fall detection method, apparatus and system
CN109635837A (en) * 2018-11-10 2019-04-16 天津大学 A kind of carefree fall detection system of scene based on commercial wireless Wi-Fi
CN111225354A (en) * 2020-02-14 2020-06-02 重庆邮电大学 CSI human body falling identification method under WiFi interference environment
CN112330924A (en) * 2020-11-05 2021-02-05 北京理工大学 Falling event detection method based on channel state information in indoor environment
CN112364770A (en) * 2020-11-11 2021-02-12 天津大学 Commercial Wi-Fi-based human activity recognition and action quality evaluation method
CN114358162A (en) * 2021-12-27 2022-04-15 中国人民解放军国防科技大学 A fall detection method, device and electronic device based on continuous wavelet transform

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180198548A1 (en) * 2017-01-08 2018-07-12 At&T Intellectual Property I, L.P. Interference cancelation for 5g or other next generation network
CN107749143A (en) * 2017-10-30 2018-03-02 安徽工业大学 A kind of indoor occupant fall detection system and method through walls based on WiFi signal
CN109635837A (en) * 2018-11-10 2019-04-16 天津大学 A kind of carefree fall detection system of scene based on commercial wireless Wi-Fi
CN109394229A (en) * 2018-11-22 2019-03-01 九牧厨卫股份有限公司 A kind of fall detection method, apparatus and system
US20200163590A1 (en) * 2018-11-22 2020-05-28 Jomoo Kitchen & Bath Co., Ltd Fall detection method, device, and system
CN111225354A (en) * 2020-02-14 2020-06-02 重庆邮电大学 CSI human body falling identification method under WiFi interference environment
CN112330924A (en) * 2020-11-05 2021-02-05 北京理工大学 Falling event detection method based on channel state information in indoor environment
CN112364770A (en) * 2020-11-11 2021-02-12 天津大学 Commercial Wi-Fi-based human activity recognition and action quality evaluation method
CN114358162A (en) * 2021-12-27 2022-04-15 中国人民解放军国防科技大学 A fall detection method, device and electronic device based on continuous wavelet transform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116058298A (en) * 2023-03-06 2023-05-05 北京市农林科学院信息技术研究中心 Livestock behavior monitoring method and device
CN116058298B (en) * 2023-03-06 2023-09-12 北京市农林科学院信息技术研究中心 Livestock behavior monitoring method and device
CN116304844A (en) * 2023-05-23 2023-06-23 山东科技大学 Personnel entry and exit counting and counting system and method
CN116304844B (en) * 2023-05-23 2023-09-01 山东科技大学 A system and method for counting and counting people in and out
CN116528358A (en) * 2023-06-30 2023-08-01 华南师范大学 Wi-Fi-based fall positioning joint detection method, device and system
CN116528358B (en) * 2023-06-30 2023-09-12 华南师范大学 Wi-Fi-based fall positioning joint detection method
CN118484727A (en) * 2024-07-09 2024-08-13 易科奇通信技术(深圳)有限公司 Fall detection method and device based on CSI

Similar Documents

Publication Publication Date Title
CN115035686A (en) Real-time falling detection method, system and medium based on channel state information
CN111142102B (en) Respiratory data calculation method and related equipment
CN108472006B (en) Fetal monitoring system and method
CN112147573A (en) A passive positioning method based on CSI amplitude and phase information
CN109817339B (en) Patient grouping method and device based on big data
CN112990313B (en) Hyperspectral image anomaly detection method and device, computer equipment and storage medium
CN103295584A (en) Voice data detecting device, voice monitoring system and method thereof
CN110414607A (en) Classification method, device, equipment and medium for capsule endoscopy images
CN111178331A (en) Radar image recognition system, method, device, and computer-readable storage medium
CN108310759A (en) Information processing method and related product
CN110046054A (en) Virtual machine method for detecting abnormality, device, equipment and computer readable storage medium
CN114781463A (en) A cross-scene robust wireless fall detection method and related equipment
CN110702869A (en) Water quality monitoring method for fish stress avoidance behavior based on video image analysis
CN109512390A (en) Sleep stage method and wearable device based on EEG time domain various dimensions feature and M-WSVM
CN110348326A (en) The family health care information processing method of the identification of identity-based card and the access of more equipment
CN116311539A (en) Sleep motion capture method, device, equipment and storage medium based on millimeter waves
US20150310254A1 (en) System and method for automated identification of abnormal ciliary motion
CN109157211A (en) A kind of portable cardiac on-line intelligence monitoring diagnosis system design method
CN110414562A (en) Classification method, device, terminal and the storage medium of X-ray
CN109918994A (en) A violent behavior detection method based on commercial Wi-Fi
CN209607022U (en) A kind of pig body size measurement equipment, system and pigpen
CN106326672A (en) Falling into sleep detecting method and system
CN117235650A (en) Method, device, equipment and medium for detecting high-altitude operation state
CN107822627B (en) Eye movement signal identification method based on electroencephalogram signals
CN116109962A (en) Vibration frequency measurement method and device based on video phase, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220909