Add multi-task learning for Sleep Stage Classification and ADHD Detec…#10
Open
Abhro034 wants to merge 1 commit intotsy935:mainfrom
Open
Add multi-task learning for Sleep Stage Classification and ADHD Detec…#10Abhro034 wants to merge 1 commit intotsy935:mainfrom
Abhro034 wants to merge 1 commit intotsy935:mainfrom
Conversation
…tion This commit adds comprehensive support for multi-task learning with GraphS4mer, enabling simultaneous sleep stage classification and ADHD detection from PSG data. Key features: - Multi-task GraphS4mer model with separate heads for sleep stages and ADHD - Custom dataset loader for handling both epoch-level and patient-level labels - Complete training pipeline with configurable loss weights - Inference script with detailed prediction outputs - Comprehensive documentation and example usage New files: - model/multitask_graphs4mer.py: Multi-task model architecture - data/multitask_dataset.py: Data loading utilities - train_multitask.py: Training script with early stopping and checkpointing - inference_multitask.py: Inference script for predictions - example_multitask_usage.py: Complete example workflow - MULTITASK_README.md: Detailed documentation Benefits: - No size mismatch issues with automatic resolution calculation - Flexible architecture supporting both S4 and GRU temporal models - Joint optimization leverages shared representations - Patient-level and epoch-level evaluation metrics - Production-ready with comprehensive error handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…tion
This commit adds comprehensive support for multi-task learning with GraphS4mer, enabling simultaneous sleep stage classification and ADHD detection from PSG data.
Key features:
New files:
Benefits: