Mobile Health and Activity Monitoring Course Projects
Course Overview
This cutting-edge mobile health course focused on developing algorithms for wearable technology applications, particularly in the realm of health monitoring and activity recognition. Through two comprehensive exercises, I implemented advanced signal processing and machine learning techniques for real-world mobile health scenarios that directly parallel commercial smartwatch and fitness tracker technologies.
The course emphasized practical implementation of algorithms that power modern wearable devices, covering the complete pipeline from raw sensor data acquisition to actionable health insights. Each project addressed real challenges faced by companies like Apple, Samsung, Polar, and Garmin in their wearable product development.
Technology Stack
Exercise 1: Advanced Heart Rate Estimation from PPG Signals
Developed robust heart rate monitoring algorithms using photoplethysmography (PPG) signals from wearable devices, addressing the core challenge of accurate HR estimation in noisy, real-world conditions.
- PPG Signal Processing: Implemented advanced filtering and preprocessing techniques for raw PPG signals from forehead and wrist sensors, handling 19-bit unsigned integer data at 128 Hz sampling rate
- Noise Robust Algorithms: Developed algorithms resilient to motion artifacts and poor signal quality typical in wearable device usage scenarios
- Multi-Modal Enhancement: Integrated accelerometer data to improve heart rate estimation accuracy through motion compensation and signal quality assessment
- Peak Detection & Analysis: Implemented sophisticated peak detection algorithms using SciPy's find_peaks() with optimized parameters for physiological heart rate ranges (40-180 BPM)
- Temporal Windowing: Designed sliding window approaches for 30-second heart rate calculations, balancing temporal resolution with measurement accuracy
- Frequency Domain Analysis: Applied FFT-based spectral analysis for heart rate extraction in challenging signal conditions
Exercise 2: Comprehensive Wearable Activity Monitoring System
Built a complete activity monitoring system capable of step counting, device location detection, activity recognition, and path classification using real-world crowd-sourced data from 676 recordings.
- Multi-Task Learning Framework: Developed unified system addressing four distinct but related tasks: step counting, smartwatch location classification, activity recognition, and path identification
- Robust Step Counting: Implemented accurate step detection algorithms for natural walking, running, and stair climbing activities, handling edge cases and irregular movement patterns
- Device Location Classification: Built machine learning models to classify smartwatch placement (left wrist, belt/waistband, right ankle) using accelerometer and gyroscope signatures
- Activity Recognition: Designed classifiers to detect standing, walking, running, and cycling activities with minimum 60-second duration requirements
- Geographic Path Classification: Implemented algorithms to identify specific routes between Zurich main station and ETH using motion and elevation patterns
- Real-World Data Processing: Handled complex, noisy sensor data from LilyGo smartwatches and smartphones with varying sampling rates and missing data
Advanced Signal Processing Techniques
Throughout both exercises, I implemented sophisticated signal processing methods essential for mobile health applications:
- Adaptive Filtering: Designed adaptive filters for removing motion artifacts from PPG signals while preserving cardiac information
- Feature Engineering: Extracted time-domain and frequency-domain features from accelerometer, gyroscope, and magnetometer data for activity classification
- Multi-Sensor Fusion: Developed algorithms combining data from multiple sensors (accelerometer, gyroscope, magnetometer) for improved accuracy
- Real-Time Constraints: Optimized algorithms to meet strict 10-second processing requirements for real-time wearable device applications
- Robust Statistics: Applied robust statistical methods to handle outliers and noise typical in mobile sensor data
Machine Learning and Classification
Implemented advanced machine learning techniques for complex multi-class and multi-task problems:
- Feature Selection: Applied statistical and information-theoretic methods to identify optimal feature sets for each classification task
- Weak Label Learning: Handled challenging weakly-labeled activity data where precise temporal boundaries were unknown
- Multi-Class Classification: Developed classifiers for device location (3 classes), activities (4 classes), and paths (5 classes)
- Temporal Modeling: Incorporated temporal dependencies and sequence information for improved activity recognition
- Cross-Validation: Implemented robust evaluation strategies appropriate for time-series and person-specific data
Real-World Data Challenges
Successfully addressed numerous challenges inherent in real-world mobile health data:
- Highly variable signal quality across different users and conditions
- Missing data and sensor dropouts during data collection
- Individual differences in movement patterns and physiology
- Environmental variations affecting sensor readings
- Device orientation and placement variations
- Crowd-sourced data with inherent labeling inconsistencies
- Computational constraints for mobile device deployment
Technical Skills Demonstrated
- Biomedical Signal Processing: Advanced PPG signal analysis, filtering techniques, and physiological signal interpretation
- Wearable Technology: Understanding of sensor limitations, power constraints, and real-world deployment challenges
- Multi-Modal Data Fusion: Integration of heterogeneous sensor data for improved accuracy and robustness
- Real-Time Algorithm Design: Development of computationally efficient algorithms suitable for mobile devices
- Machine Learning: Application of supervised learning techniques to complex, noisy, real-world data
Industry Applications & Impact
These projects directly addressed challenges faced by major wearable technology companies and healthcare providers:
- Consumer Wearables: Algorithms developed are directly applicable to smartwatches and fitness trackers from Apple, Samsung, Fitbit, and Garmin
- Healthcare Monitoring: PPG-based heart rate estimation techniques applicable to continuous health monitoring and medical devices
- Fitness Applications: Step counting and activity recognition crucial for fitness tracking and health behavior analysis
- Location Services: Device placement detection important for optimizing sensor fusion and user experience
The real-world nature of the data and strict performance requirements ensured that developed algorithms are practically deployable and commercially relevant. This experience provided invaluable insight into the technical challenges and constraints of mobile health technology development.