Skip to content

Full Pipeline - Daily Physical Activity Monitoring: Adaptive Learning from Multi-Source Motion Sensor Data - Team 2#1016

Open
thomasfire wants to merge 21 commits intosunlabuiuc:masterfrom
thomasfire:master
Open

Full Pipeline - Daily Physical Activity Monitoring: Adaptive Learning from Multi-Source Motion Sensor Data - Team 2#1016
thomasfire wants to merge 21 commits intosunlabuiuc:masterfrom
thomasfire:master

Conversation

@thomasfire
Copy link
Copy Markdown

Team:

Overview

This PR adds support for the Daily and Sports Activities (DSA) time-series dataset, an adaptive transfer model for multi-source time-series classification, a multi-class activity-recognition task, and a reproduction notebook with ablations and extensions based on the original paper.

Dataset (dsa.py)

  1. Adds the DSADataset class in pyhealth.datasets.
  2. Supports the Daily and Sports Activities (DSA) time-series dataset.
  3. Prepares the dataset for downstream activity-recognition experiments in PyHealth.

Model (adaptive_transfer.py)

  1. Adds the AdaptiveTransferModel class in pyhealth.models.
  2. Implements an adaptive transfer approach for multi-source time-series classification.
  3. Enables reproduction and extension of the method proposed in the original paper.

Task (dsa_activity_classification.py)

  1. Adds the DSAActivityClassification task in pyhealth.tasks.
  2. Supports multi-class activity recognition on the DSA dataset.

Example (dsa_adaptive_transfer_replication.ipynb)

  1. Adds a Jupyter notebook for reproducing the original paper on the DSA dataset.
  2. Includes our ablations and extensions for the adaptive transfer model.

Main Files for Review

  1. pyhealth/datasets/dsa.py with tests tests/core/test_dsa.py
  2. pyhealth/models/adaptive_transfer.py with tests tests/core/test_adaptive_transfer.py
  3. pyhealth/tasks/dsa_activity_classification.py with tests tests/core/test_dsa_task.py
  4. examples/dsa_adaptive_transfer_replication.ipynb

thomasfire and others added 21 commits April 5, 2026 20:37
* first pass

* dependency

---------

Co-authored-by: waltert3 <waltert3@illinois.edu>
* Simplify


* remove excessive duplication
* run format

* address comments
* first rough experiments

* dont introduce new functions into codebase

* fixes

* refactor

* continue refactoring

* refactor with gemini

* add original task

* fix original task

* add dataset downloader

* nbstripout and seaborn

* formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants