论文研读 —— 10. PCA-Kalman: device-free indoor human behavior detection with commodity Wi-Fi (2/3)

2023-11-06

3.2 Online behavior testing phase

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

At this stage, the transmitter is responsible for collecting real-time CSI data of each testing area. Similarly, the sender sends data on different behaviors made by the tester to the receiving end. Then, the SVM classifier is applied to the physical position coordinate state, and the classification result is obtained. Finally, the state of the estimated position is obtained. The main steps are as follows:

在这个阶段,发射器负责收集每个测试区的实时CSI数据。同样,发送器将测试人员做出的不同行为的数据发送到接收端。然后,将SVM分类器应用于物理位置坐标状态,并获得分类结果。最后,获得估计位置的状态。主要步骤如下:

In the initialization phase, we divided the test area into 20 squares of the same size. Furthermore, we use these squares as reference points. The volunteers traverse the reference points one by one and perform different action states at each reference point, such as standing, jumping, squatting, sitting down, and other common actions.

在初始化阶段,我们将测试区域划分为20个大小相同的正方形。此外,我们使用这些正方形作为参考点。志愿者逐一遍历参考点,在每个参考点进行不同的动作状态,如站立、跳跃、蹲下、坐下和其他常见动作。

The obtained CSI data is transferred to the server. As can be observed from Fig. 6, the changes in CSI signals vary significantly when testers perform different operations. What is more, real-time test data are collected in real experiment environment.

获得的CSI数据被传输到服务器。从图6中可以观察到,当测试者执行不同的操作时,CSI信号的变化显著不同。更重要的是,实时测试数据是在真实的实验环境中收集的。

在这里插入图片描述
在这里插入图片描述

The next step is to apply the SVM classifier as follows:

下一步是应用SVM分类器,具体步骤如下:

Step 1: We assume that the sampling period for the CSI data at the receiving end is T T T, which is usually 1.0 s. Firstly, we let a volunteer traverse all reference points and perform daily actions such as standing, jumping, squatting, and sitting at the refer- ence point. Assuming that the receiving end samples the sample training set is { ( x i , y i ) } \{ (x_i, y_i) \} {(xi,yi)}, i = 1 , 2 , ⋯   , n i=1, 2, \cdots, n i=1,2,,n.

步骤1:我们假设接收端的CSI数据的采样周期为 T T T,通常是1.0秒。首先,我们让一名志愿者遍历所有的参考点,并在参考点上进行日常动作,如站立、跳跃、蹲下和坐下。假设接收端采样的样本训练集是 ( x i , y i ) { (x_i, y_i) } (xi,yi) i = 1 , 2 , ⋯   , n i=1, 2, \cdots, n i=1,2,,n

The SVM regression function is

SVM回归函数是

(10)
f ( X ) = w ⋅ x + b f (X) = w \cdot x + b f(X)=wx+b

In the above formula, W W W is the weight vector, and b b b is the bias vector.

在上面的函数, W W W是权重向量, b b b是偏差向量。

Step 2: By solving the convex quadratic programming problem to solve w w w and b b b in Eq. (17), the predictive function is obtained, and the objective function is minimized:

步骤2: 通过求解凸二次规划问题求解式(17)中的 w w w b b b,得到预测函数,最小化目标函数

(11)
Q ( w ) = 1 2 ∥ w ∥ 2 + C ⋅ R e m p ( f ) Q(w) = \frac{1}{2} \| w \|^2 + C \cdot R_{emp}(f) Q(w)=21w2+CRemp(f)

where C is the penalty factor, R e m p ( f ) R_{emp}(f) Remp(f) is the loss function.

其中C是惩罚因子, R e m p ( f ) R_{emp}(f) Remp(f)是损失函数。

在这里插入图片描述

Step 3: Using the relaxation factor to convert the optimization objective function of formula (11) into:

使用松弛因子将公式(11)的优化目标函数转化为:

(12)
min ⁡ 1 2 ∥ w ∥ 2 + C ∑ i − 1 l ( ξ i + ξ i ∗ ) \min \frac{1}{2} \| w \|^2 + C \sum_{i-1}^{l} (\xi_i + \xi_i^*) min21w2+Ci1l(ξi+ξi)

where ξ i \xi_i ξi; ξ i ∗ \xi_i^* ξi are the relaxation factors.

其中, ξ i \xi_i ξi ξ i ∗ \xi_i^* ξi 是松弛因子。

在这里插入图片描述

Step 4: To speed up the solution, we choose to introduce the Lagrange function and solve the following dual form to obtain multipliers αi;αi , expressed as:

步骤4:为了加速解决方案,我们选择引入拉格朗日函数,并求解以下的对偶形式来获取乘子 αi;αi,表示为:

(13)
max ⁡ = ∑ i = 1 l ( a i − a i ∗ ) y i − ε ∑ i = 1 l ( a i + a i ∗ ) − 1 2 ∑ i , j = 1 l ( a i ∗ − a i ) ( a j ∗ + a j ) < x i , x j > \max = \sum_{i=1}^l (a_i - a_i^*) y_i - \varepsilon \sum_{i=1}^{l} (a_i + a_i^*) - \frac{1}{2} \sum_{i,j=1}^{l} (a_i^* - a_i)(a_j^* + a_j) <x_i, x_j> max=i=1l(aiai)yiεi=1l(ai+ai)21i,j=1l(aiai)(aj+aj)<xi,xj>

Step 5: For nonlinear predictive problems, SVM introduces the mapping function ϕ \phi ϕ to map the original data into a new feature space. Then, we convert the nonlinear problem into a linear problem in the new feature space. At the same time, the SVM regression can be expressed as:

步骤5:对于非线性预测问题,SVM引入映射函数 ϕ \phi ϕ将原始数据映射到一个新的特征空间。然后,我们将新特征空间中的非线性问题转化为线性问题。与此同时,SVM回归可以表示为:

(14)
f ( x ) = w ⋅ ϕ ( x ) + b f(x) = w \cdot \phi(x) + b f(x)=wϕ(x)+b

Step 6: The optimization objective function of formula (13) is transformed into the following form:

步骤6:将公式(13)的优化目标函数转化为以下形式:

在这里插入图片描述

在这里插入图片描述

(15)
max ⁡ = ∑ i − 1 l ( a i − a i ∗ ) y i − ξ ∑ i = 1 l ( a i + a i ∗ ) − 1 2 ∑ i , j = 1 l ( a i ∗ − a i ) ( a j ∗ − a j ) < ϕ ( x i ) , ϕ ( x j ) > \max = \sum_{i-1}^l (a_i - a_i^*) y_i - \xi \sum_{i=1}^l (a_i + a_i^*) - \frac{1}{2} \sum_{i,j=1}^l (a_i^* - a_i) (a_j^* - a_j) <\phi (x_i), \phi(x_j)> max=i1l(aiai)yiξi=1l(ai+ai)21i,j=1l(aiai)(ajaj)<ϕ(xi),ϕ(xj)>

Step 7: In this step, we introduce kernel function k ( x i , x j ) k(x_i, x_j) k(xi,xj) instead of ( ϕ ( x i ) , ϕ ( x j ) ) (\phi (x_i), \phi (x_j)) (ϕ(xi),ϕ(xj)) formula. Additionally, (15) is transformed into the following form of optimization objective:

在此步骤中,我们引入核函数 k ( x i , x j ) k(x_i, x_j) k(xi,xj) 替代 ( ϕ ( x i ) , ϕ ( x j ) ) (\phi (x_i), \phi (x_j)) (ϕ(xi),ϕ(xj))。另外,(15) 转化为以下优化目标的形式:

(16)
max ⁡ = ∑ i − 1 l ( a i − a i ∗ ) y i − ξ ∑ i = 1 l ( a i + a i ∗ ) − 1 2 ∑ i , j = 1 l ( a i ∗ − a i ) ( a j ∗ − a j ) k ( x i , x j ) \max = \sum_{i-1}^{l} (a_i - a_i^*) y_i - \xi \sum_{i=1}^{l} (a_i + a_i^*) - \frac{1}{2} \sum_{i,j=1}^l (a_i^* - a_i)(a_j^* - a_j) k(x_i, x_j) max=i1l(aiai)yiξi=1l(ai+ai)21i,j=1l(aiai)(ajaj)k(xi,xj)

Step 8: What is more, the final SVM prediction function is:

步骤8:更进一步,最终的SVM预测函数为:

(17)
f ( x , a i , a j ∗ ) = ∑ i = 1 l ( a i − a i ∗ ) k ( x i , x j ) + b f(x, a_i, a_j^*) = \sum_{i=1}^l (a_i - a_i^*) k(x_i, x_j) + b f(x,ai,aj)=i=1l(aiai)k(xi,xj)+b

Step 9: We use real-time amplitude data collected and fingerprint data to match. When the testers conduct experiments on different actions in the test area, the amplitude characteristics change with the change of different conditions. It can be clearly seen from Fig. 6 that the amplitude changes corresponding to different actions are completely different.

步骤9:我们使用收集的实时幅度数据与指纹数据进行匹配。当测试者在测试区域对不同的动作进行实验时,幅度特性随着不同条件的变化而变化。从图6中可以清楚地看到,与不同动作相对应的幅度变化是完全不同的。

4 Experimental setup

4.1 Hardware testbed

Both the transmitter and the receiver have installed the Atheros AR 9380 NIC supporting the IEEE802.11n protocol to facilitate the acquisition of CSI from the device. As shown in Fig. 9. We have in- stalled an external antenna of about 1.5 m in length. And all transmitters are equipped with the Ubuntu 14.04 LTS 32-bit system and the 4.1.10 Linux kernel version. At the same time, we use open source drivers, Atheros-CSI-Tool, and Atheros NIC, developed by Hsieh and others.

发送器和接收器均安装了支持IEEE802.11n协议的Atheros AR 9380 NIC,以便从设备中获取CSI。如图9所示。我们安装了一个约1.5米长的外部天线。并且所有发射器都配备了Ubuntu 14.04 LTS 32位系统和4.1.10 Linux内核版本。同时,我们使用由Hsieh等人开发的开源驱动程序,Atheros-CSI-Tool和Atheros NIC。

The driver modules make it possible to obtain CSI from Linux kernel when it received signals and saved them for other process. One of the desktop computers equipped with Intel Core i3-4150 CPU works as a sender while another computer works as a receiver. In our system, the obtained data is processed using the PCA-Kalman algorithm in C program.

驱动模块使得在接收信号时从Linux内核获取CSI并保存它们以供其他进程使用成为可能。其中一台配备Intel Core i3-4150 CPU的桌面计算机作为发送器,而另一台计算机作为接收器。在我们的系统中,使用PCA-Kalman算法在C程序中处理获得的数据。

在这里插入图片描述

4.2 Experimental scenarios

We conducted our experiments in a research laboratory (8m×9m) and a meeting room (6m×4m) both piled with desks and computers as well as a hall (10 m ×9 m) in our campus, which is piled with desks and computers in the laboratory and meeting room, thus creating a rather complex multipath environment, as shown in Figs. 7 and 8. We evaluated the performance of PCA-Kalman in three rooms’ surroundings (Tables 1 and 2).

我们在一个研究实验室(8m×9m)、一个会议室(6m×4m)以及我们校园内的一个大厅(10m×9m)进行了实验。实验室和会议室里堆放着桌子和计算机,大厅里也堆放了桌子和计算机,从而在图7和8中展示了一个相当复杂的多路径环境。我们评估了PCA-Kalman在三个房间环境中的性能(表1和表2)。

在这里插入图片描述

In order to construct an offline histogram fingerprint, we gathered data first thing in the morning when no one was in the lab. In addition, for the purpose of behavior detection, we generated three test sets, including three different test areas. The infrastructure of indoor human behavior detection is composed of wireless access points (AP) for data transmission, monitoring points (MP) for data retrieval, and a server for data processing. Each AP continuously broadcasts information to facilitate the Wi-Fi device to find an access point. For complete coverage of the area of interest, each pair of AP-MP is placed at the corners or edges, forming diagonal lines [48]. Each pair of transmitting-receiving anten- nas is a link (Fig. 9).

为了构建一个离线直方图指纹,我们在早上最早的时候收集了数据,当时实验室里没有人。另外,为了行为检测的目的,我们生成了三个测试集,包括三个不同的测试区域。室内人体行为检测的基础设施由无线接入点(AP)组成,用于数据传输,监测点(MP)用于数据检索,以及一个用于数据处理的服务器。每个AP不断地广播信息,以帮助Wi-Fi设备找到一个接入点。为了完全覆盖感兴趣的区域,每对AP-MP都放置在角落或边缘,形成对角线[48]。每对发送-接收天线是一个链接(图9)。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

论文研读 —— 10. PCA-Kalman: device-free indoor human behavior detection with commodity Wi-Fi (2/3) 的相关文章

随机推荐

  • Java虚拟机的类加载机制

    Java虚拟机的类加载机制 Java虚拟机在程序执行过程中会动态加载类 所谓类的加载指的是将一个Class文件描述的Class对象加载到JVM中 形成一个Class对象的过程 这里 Class对象 更通用的指的是一个二进制字节流 并不一定以
  • C语言——程序运行时数据结构

    运行时的数据结构 段 目标文件和可执行文件有几种不同格式 在大多数Svr4实现中采用一种叫做ELF 原意位 可扩展链接器格式 现在代表 可执行文件和链接格式 其他系统中可执行文件格式是COFF 普通目标文件格式 所有不同格式具有一个共同概念
  • No input file specified 记一次令人绝望的后端环境部署问题

    背景 从别人那接手一个项目 基于laravel的 开发环境用的是LNMP 现在要将这个项目部署到自己的服务器 使用LNMP一键安装包 在服务器配置lnmp环境 然后将接手的项目解压到目录 home wwwroot 配置nginx的serve
  • HBase Windows 安装

    一 写在前面 在安装HBase之前 我们需要先安装JDK和Hadoop 具体JDK和Hadoop的安装我前面已经做过了 需要的话 请看我的另一篇博客 Hadoop Windows 安装 还是那句话 在安装HBase之前 我们需要搞清楚HBa
  • strongswan编译、配置

    strongswan编译 下载strongswan源码后 在命令行执行 configure h 会打印出来编译时的配置选项 比较重要有 prefix PREFIX PREFIX为编译完成后的可执行文件 库文件以及配置文件等的安装目录 运行目
  • mBed Pelion学习笔记(三) Updating device firmware

    一 Device Management Update client 本节介绍如何通过Device Management Update client 来接收更新 为了设置设备上的客户端 我们需要准备好 固件镜像 和 引导程序 同时还需要一个独
  • Java 多线程 --- 线程同步 volatile关键字

    Java 多线程 线程同步 volatile关键字 volatile keyword 使用volatile保证可见性 使用volatile禁止指令重排 volatile keyword Volatile是Java虚拟机提供的轻量级的同步机制
  • 【unity记录】导入标准资源包(Standard Assets)

    想导入一些后期效果试试看 按书上的步骤行不通了 书已经是几年前的了 旧版本的方式是 Assets gt Import Package gt Effects 新版本以后只有Custom Package了 所以只能从AssetsStore下载标
  • Linux中_使用 df_du_命令_查看磁盘空间文件大小

    文章目录 Linux 查看磁盘空间 Linux 查看磁盘空间可以使用 df 和 du 命令 1 df 2 du 3 其他一些可以查看详细linux系统信息的命令和方法 Linux 查看磁盘空间 Linux 查看磁盘空间可以使用 df 和 d
  • 经验模态分解法简析 (转)

    http blog sina com cn s blog 55954cfb0102e9y2 html 美国工程院士黄锷博士于1998年提出的一种信号分析方法 重点是黄博士的具有创新性的经验模态分解 Empirical Mode Decomp
  • sql语句练习50题(Mysql版)

    表名和字段 1 学生表 Student s id s name s birth s sex 学生编号 学生姓名 出生年月 学生性别 2 课程表 Course c id c name t id 课程编号 课程名称 教师编号 3 教师表 Tea
  • 使用Python制作疫情数据分析可视化图表(三)

    python小白 在 一心学 公众号学习了一点疫情数据分析可视化的课程 记录下来 供小白参考 目录 一 基本数据的查看和初步处理 二 时间序列与区域划分 三 快速查看不同省市疫情现状 四 累计确诊病例走势 五 不同省市确诊新增情况 六 全国
  • 如何启动docker服务

    Docker Docker 是一个开源的应用容器引擎 让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中 然后发布到任何流行的 Linux或Windows操作系统的机器上 也可以实现虚拟化 容器是完全使用沙箱机制 相互之间不会有任何接
  • imagenet val 按类别分类

    前言 有时候想看imagenet下某个类别的效果 但它又没划分 之前看了这篇文章将ImageNet的验证集val数据分类到不同文件夹中 但不是很清楚那代码 本文基于它的代码去做更改 把这个下下来 https raw githubuserco
  • React Native_手把手教你做项目(二.视频列表页布局&Mock虚拟数据)

    我们继续在上一篇文章的基础上编写我们的应用程序 视频列表页List 我们先写垃圾代码 把整个的架子搭起来 然后如果有其他页面通用的组件的话 我们再进行封装处理 ListView布局 list js文件 import React Compon
  • 内部类、枚举、Object类

    内部类 定义在一个类的内部的类 作用 1 内部类和外部类可以互相访问其成员 2 通过内部类 可以实现多继承 3 缺点 结构复杂 代码可读性不强 分类 成员内部类 1 不能有static属性和方法 原理同局部变量不能用static修饰 但是s
  • NumPy库学习笔记(未完)

    NumPy库 这篇文章主要内容来源于Python Numpy 教程 NumPy 中文和python常用库 NumPy 和 sklearn入门 ML小菜鸟 博客园 cnblogs com 1 1 导入NumPy库 import numpy a
  • VS Code常用插件安装及使用

    C C 开发常用插件安装 C C 在C C 开发中 这个肯定是必须的 C C Snippets C C 重用代码块 C C Advanced Lint C C 静态检测 Code Runner 代码运行 Include AutoComple
  • 小程序如何获取当前的天气预报

    大家好 我是陈楠酒肆 今天我为大家分享的是小程序获取当前的天气预报 我们先看看效果图 在实现这个效果之前我们需要引用一个JS文件 就是amap wx js 这个文件可以在我的交流群里下载 由于这里我使用了高德地图密钥 因此 大家还需要在高德
  • 论文研读 —— 10. PCA-Kalman: device-free indoor human behavior detection with commodity Wi-Fi (2/3)

    文章目录 3 2 Online behavior testing phase 4 Experimental setup 4 1 Hardware testbed 4 2 Experimental scenarios 3 2 Online b