Coder Social home page Coder Social logo

human-signals-lab / sound-and-wrist-motion-for-activities-of-daily-living-with-smartwatches Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 64 KB

Code for: "Leveraging Sound and Wrist Motion to Detect Activities of Daily Living with Commodity Smartwatches"

Python 100.00%
acoustic-model deep-learning inertial-sensors machine-learning pytorch smartwatch-data activity-recognition

sound-and-wrist-motion-for-activities-of-daily-living-with-smartwatches's Introduction

Sound-and-Wrist-Motion-for-Activities-of-Daily-Living-with-Smartwatches

This is the research repository for Leveraging Sound and Wrist Motion to Detect Activities of Daily Living with Commodity Smartwatches. It contains the deep learning pipeline to reproduce the results in the paper.

System Requirements

The deep learning system is written in python 3, specifically pytorch.

Dataset

The dataset is made available for download on Texas Data Repository Dataverse. Use of this dataset in publications must be acknowledged by referencing our paper.

Scripts

List of scripts:

To run the scripts, check the next section.

Model Definition:

Models defined in models.py

Model Definition Input Modalities Motion Model Audio Model Fusion Method
AttendDiscriminate Motion AttendDiscriminate _ _
DeepConvLSTM_Classifier Motion DeepConvLSTM _ _
Audio_CNN14 Audio _ CNN14 _
AttendDiscriminate_MotionAudio_CNN14 Motion + Audio AttendDiscriminate CNN14 Attention
AttendDiscriminate_MotionAudio_CNN14_Concatenate Motion + Audio AttendDiscriminate CNN14 Concatenate
DeepConvLSTM_MotionAudio_CNN14_Attention Motion + Audio DeepConvLSTM CNN14 Attention
DeepConvLSTM_MotionAudio_CNN14_Concatenate Motion + Audio DeepConvLSTM CNN14 Concatenate

Running the Scripts:

As you can see above, python scripts are named according to which evaluation setting (LOPO, LOSO, or P-LOPO/LOPO+1) and which modalities as input (Audio, Motion for single-modal and MotionAudio for fusion). In each script, you define the corresponding model by changing the model definition in the script:

model_name = '{MODEL_DEFINITION}' # define one of the model definitions defined in the previous section
experiment = '{EXPERIMENT_NAME}'  # this will identify the name of the folder created where model + results are saved

Note that the model definition should be in line with the input modality of the script. Also, make sure the data is saved in a './Data' directory.

That's all! For help, questions, and general feedback, contact Rebecca Adaimi ([email protected]) or Sarnab Bhattacharya ([email protected]).

Reference

BibTex Reference:

@article{10.1145/3534582,
author = {Bhattacharya, Sarnab and Adaimi, Rebecca and Thomaz, Edison},
title = {Leveraging Sound and Wrist Motion to Detect Activities of Daily Living with Commodity Smartwatches},
year = {2022},
issue_date = {July 2022},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {6},
number = {2},
url = {https://doi.org/10.1145/3534582},
doi = {10.1145/3534582},
journal = {Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.},
month = {jul},
articleno = {42},
numpages = {28},
keywords = {Activities of Daily Living, Smartwatch, In-the-wild, Multimodal classification, Motion sensing, Audio Classification, Sound Sensing, Dataset, Wearable, Gesture Recognition, Human Activity Recognition}
}

sound-and-wrist-motion-for-activities-of-daily-living-with-smartwatches's People

Contributors

radaimi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ghosh159 diffzerg

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.