Git Product home page Git Product logo

humanactionrecongnitions's Introduction

SS-Former(Sensor Series Transformer)

Make transformer encoder with high-frequency positional encoding and residual MLP decoder.

ss-former_overview

SS-Former Overview

decoder

MLP-Decoder of SS-Former

Introduction

AI factory

Environment

Python 3.10.10  
tensorflow 2.12.0
tensorflow-addons 0.19.0
numpy 1.23.5
pandas 2.0.0
matplotlib 3.7.1
scikit-learn 1.2.2
tqdm 4.65.0

Dataset

In this project, we use ETRI dataset.

We use 2018 and 2019 ETRI life log dataset.
There are 50 users, and total 5 activity classes.

Data preprocessing (merge part)

  1. If you want implement data merging, first you download 'dataset_2018.7z' files in ETRI.

  2. And you some setting the 'Data_Merge_Processing.R' code.

For example)
1. Change setwd() function. 
2. Change the save path.
...
  1. Implementation the R code.

Quick Start

  1. Download our sample dataset. We provided user_06 and user_113 dataset.

  2. Move to the file into data folder

data
├── user_6.csv
├── user_113.csv
└── ...
  1. Implementation the 'data_preprocessing.ipynb'
If you want use whole variables or using another user etc, you will change among 'user_lst, var_lst, target_name'.
  1. There are exists dataset.
data
├── user_6.csv
├── X_train.npy
├── X_valid.npy
├── X_test.npy
├── Y_train.npy
├── Y_valid.npy
├── Y_test.npy
└── ...
  1. Implementation 'train.py'
# In python terminal
$(your path)> python train.py

Performance

  • Performance of the proposed model for human activity classification for User_01
Variable Accuracy F1-score Precision Recall
mAcc(ours) 0.9263 0.9156 0.9827 0.8570
mGyr 0.9045 0.8818 0.9744 0.8052
mMag 0.8945 0.8918 0.9718 0.8239
mAcc+mGyr+mMag 0.9139 0.9059 0.9741 0.8466
  • The results with and without the use of high-frequency positional encoding for User_01
φx Accuracy F1-score Precision Recall
w/o φx 0.8801 0.8694 0.9498 0.8016
w/ φx 0.9263 0.9156 0.9827 0.8570
  • Accuracy and F1-score of the proposed model for 20 randomly selected users
User_num Accuracy F1-score
User_01 0.9263 0.9156
User_06 0.9237 0.9133
User_14 0.9020 0.8890
User_18 0.9005 0.8892
User_19 0.9053 0.8929
User_20 0.9096 0.8917
User_23 0.9219 0.9152
User_24 0.9249 0.9142
User_25 0.9457 0.9426
User_28 0.9202 0.9148
User_101 0.9201 0.9144
User_104 0.9111 0.8926
User_105 0.9435 0.9381
User_108 0.9224 0.8948
User_109 0.9431 0.9368
User_112 0.9003 0.8773
User_113 0.9610 0.9548
User_115 0.9048 0.8793
User_117 0.9229 0.9116
User_119 0.9035 0.8900

humanactionrecongnitions's People

Contributors

dopeornope-lee avatar kyujinhan avatar

Stargazers

 avatar

Watchers

 avatar

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.