Skip to content

The official code for the AAAI 2025 submission, titled "Decomposing and Fusing Intra- and Inter-Sensor Spatio-Temporal Signals for Multi-Sensor Wearable Human Activity Recognition."

Notifications You must be signed in to change notification settings

Anakin2555/DecomposeWHAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DecomposeWHAR

The official code for the AAAI 2025😍 paper, titled "Decomposing and Fusing Intra- and Inter-Sensor Spatio-Temporal Signals for Multi-Sensor Wearable Human Activity Recognition."

🗺️ Model Overview

📄 Experiment Results

❗Note: The experiment condition may not be the same as the baseline model "DynamicWHAR" because we aim to find the most suitable settings for our model to demonstrate the best performance. Additionally, we can't reproduce the results of their paper in the experiment settings based on their codes, so we just quote results of "DynamicWHAR" and previous models in their paper.

Results of Unified Experimental Settings (See details in our paper)

Opportunity
(Accuracy / F1)
Realdisp
(Accuracy / F1)
Skoda
(Accuracy / F1)
DecomposeWHAR👍 78.28% / 72.02% 96.64% / 96.10% 97.61% / 97.20%
DynamicWHAR 77.20% / 70.23% 92.85% / 92.15% 94.14% / 92.14%
Attend and Dis. (w/o center loss, w/o mixup) 69.84% / 63.25% 94.41% / 93.57% 85.76% / 83.68%
Attend and Dis. (w center loss 0.3, w mixup 0.4) 73.99% / 67.36% 91.56% / 91.36% 84.37% / 82.34%
Attend and Dis. (w center loss 0.3, w mixup 0.8) 74.79% / 67.58% 90.51% / 90.05% 82.43% / 79.31%
DeepConvLSTM 66.67% / 60.52% 93.37% / 93.24% 85.96% / 83.34%

⚒️ Prerequisites

  • Python: >= 3.8
  • Pytorch: >= 2.2.0 + cu118
  • Mamba-ssm: 1.2.0
  • Causal-conv1d: 1.2.0

🔛 Getting Started

  1. Setup: Ensure that all required dependencies are installed.
  2. Download Dataset: Download the preprocessed data from the website in the download.txt and put the files into the directory structure below.
  3. Run the model: Modify the args and execute the main.py script to start training or evaluating the model.

📇 Directory Structure

  • Dataset/: Contains scripts and data for preprocessing and handling datasets used in training and testing the models. Put the preprocessed data into the following directory structure:

    • opp/
      • opp_24_12/
      • opp_60_30/ ... # preprocessed data of Opportunity
    • realdisp/
      • realdisp_40_20/
      • realdisp_100_50/ ... # preprocessed data of Realdisp
    • skoda/
      • skoda_right_78_39/
      • skoda_right_196_98/ ... # preprocessed data of Skoda
  • layers/: Includes the core layer implementations used in our model.

  • models_layers/: Contains scripts that define the neural network models, integrating various layers and modules.

  • utils/: Utility functions that support data processing, model training, evaluation, and other common operations.

  • main.py: The main script to run the training and evaluation of the models.

  • modules.py: Defines the main modules of our model.

  • utils_this.py: Additional utility functions.

🫰 Acknowledgements

Our work is inspired by the following papers and their open-source codes. We sincerely thank the authors of these works for their contributions.

👍 Extension

  • Other Model Layers: We have experimented with several recent advanced time series classification methods, including TimesNet and various Transformer variants. The code for these methods is stored in the layers and models_layers directories. For those interested in exploring state-of-the-art models for WHAR, these implementations provide a solid foundation for further improvements.
  • Data Augmentation: Additionally, employing data augmentation techniques such as "Mixup" and strategies like "Center Loss" can be beneficial in mitigating overfitting and enhancing recognition accuracy.

About

The official code for the AAAI 2025 submission, titled "Decomposing and Fusing Intra- and Inter-Sensor Spatio-Temporal Signals for Multi-Sensor Wearable Human Activity Recognition."

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages