GithubHelp home page GithubHelp logo

ludlows / csi-activity-recognition Goto Github PK

View Code? Open in Web Editor NEW
90.0 4.0 26.0 33 KB

Human Activity Recognition using Channel State Information

Home Page: https://github.com/ludlows/CSI-Activity-Recognition

Python 100.00%
channel-state-information wifi human-activity-recognition deep-learning tensorflow

csi-activity-recognition's Introduction

CSI-Activity-Recognition

Human Activity Recognition using Channel State Information for Wifi Applications

A simple Tensorflow 2.0+ model using Bidirectional LSTM stacked with one Attention Layer.

This code extends the previsous work of paper A Survey on Behaviour Recognition Using WiFi Channel State Information (corresponding code).

Dataset Preparation

Download the public dataset from here.

unzip the Dataset.tar.gz by the following command:

tar -xzvf Dataset.tar.gz

Inside the dataset, there are 7 different human activities: bed, fall, pickup, run, sitdown, standup and walk.

Requirements

Numpy

Tensorflow 2.0+

sklearn

Performance of the Model with Default Parameters

Default Parameters

Parameters for Batching Sequence Value
window length 1000
Sliding Steps 200
Downsample Factor 2
Activity Present Threshold 0.6 (60%)
Parameters for Deep Learning Model Value
# of units in Bidirectional LSTM 200
# of units in Attention Hidden State 400
Batch Size 128
Learning Rate 1e-4
Optimizer Adam
# of Epochs 60

Model Architecture

Architecture

Confusion Matrix

Confusion Matrix

Label Accuracy
bed 100%
fall 97.18%
pickup 98.68%
run 100%
sitdown 95%
standup 95.56%
walk 99.51%

Usage

Download the code from github.

git clone https://github.com/ludlows/CSI-Activity-Recognition.git 

Enter the code folder.

cd CSI-Activity-Recognition

Run The Model with Default Parameters

python csimodel.py your_raw_Dataset_folder

Meanwhile, you could also modify the parameters in the csimodel.py or change the architectures of neural networks.

This code could be a starting point for your deep learning project using Channel State Information.

csi-activity-recognition's People

Contributors

ludlows avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csi-activity-recognition's Issues

data

Is this the same data as was used in the paper "A Survey on Behavior Recognition Using WiFi Channel State Information"? The methods used in that paper were sketchy. Have you used identical methods?

哈喽

哈喽 有你这篇论文链接吗

help for codes

Thanks for sharing this project, this is great!
I have a question: What part of this paper"A Survey on Behaviour Recognition Using WiFi Channel State Information" has your code modified?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.