TL;DR
This paper dissects what works in activity recognition when the training and testing data have significant differences (domain shift), using two challenging years of the Sussex-Huawei Locomotion-Transportation Recognition Challenge. They found that careful data selection, specialized models for vehicle vs. locomotion, semi-supervised learning, and Hidden Markov Models (HMMs) for smoothing all contribute to better performance, with HMMs offering the most significant gains.
What Problem Does This Paper Address?
Activity recognition, a field aiming to understand human actions from sensor data (like from smartphones), often struggles when the data used for training a model differs significantly from the data it encounters in real-world use. This "domain shift" can happen in various ways: sensors might be in different locations on the body, or the model might need to recognize activities for a new person it hasn't seen before. The Sussex-Huawei Locomotion-Transportation Recognition Challenge has specifically designed its yearly competitions to present these domain shift problems. For instance, the 2019 challenge involved recognizing activities with sensors in one location using data trained from a different location, while the 2020 challenge focused on recognizing activities of new people using data from a known person. This paper aims to systematically analyze which common machine learning pipeline components are effective in overcoming these domain shifts.
Methods
The authors employ a classical machine learning pipeline approach, which they found to be more effective and interpretable than deep learning for this problem. Their methodology involves several key components:
- Data Pre-processing: This includes filtering sensor data to reduce noise and extracting "virtual sensor streams" (e.g., Euler angles from quaternions) to derive additional information.
- Feature Extraction: A large set of features (1124 in total) from both the time and frequency domains are computed from five-second windows of sensor data.
- Feature Selection: To manage the large feature set, they use a three-step process involving mutual information, Pearson correlation, and a greedy-wrapper approach with Random Forest. They also explore adapting feature selection to specific locations or users.
- Specialized Models: They investigate using separate models for human locomotion (walking, running, biking) and transportation modes (car, bus, train, subway).
- Person Clustering (2020): For the 2020 challenge, where the domain shift was due to different users, they explore clustering the data to create person-specific models.
- Temporal Smoothing with HMMs (2019): Hidden Markov Models are used to smooth predictions over time, leveraging the temporal dependencies in activity sequences.
- Semi-Supervised Learning (SSL): This technique is used to leverage unlabeled test data to improve model performance, especially for under-represented activities or users. They explore various strategies for selecting which unlabeled instances to use for training.
- Pipeline Integration: They propose and evaluate two main pipelines, one for 2019 and one for 2020, integrating these components in different ways to address the specific domain shift challenges of each year.
Datasets
The primary dataset used is the Sussex-Huawei Locomotion-Transportation Recognition Challenge (SHL) Dataset. This dataset contains sensor data from smartphones worn at different on-body locations (hand, hips, torso, bag) and includes eight modes of locomotion and transportation.
- 2019 SHL Dataset: Consisted of SHL-Train, SHL-Validation, and SHL-Test sets. The key domain shift was between sensor locations (e.g., training on hips, testing on hand).
- 2020 SHL Dataset: Also used SHL-Train, SHL-Validation, and SHL-Test sets. The primary domain shift was between users (training on one person, testing on others).
The paper also mentions using subsets of these datasets for training, validation, and testing, sometimes combining them or splitting them further for specific experiments.
Key Insights and Ideas
- Data Selection is Crucial: Simply using all available training data isn't always best. Selecting an appropriate, location- or user-specific portion of the training data can significantly improve performance (up to 10 percentage points).
- Vehicle vs. Locomotion Models Pay Off: Separating models for human movement (walking, running) and vehicle-based transportation (car, bus) yields a noticeable performance boost (around 1 percentage point). This is because the underlying sensor patterns are fundamentally different.
- HMMs for Smoothing are Powerful: Temporal smoothing using Hidden Markov Models can provide substantial improvements (up to 10 percentage points) when the temporal order of activities is regular and predictable.
- SSL Offers Modest Gains: Semi-supervised learning can provide a small but consistent improvement (around 1 percentage point) by leveraging unlabeled data.
- Person Clustering is Tricky: While intuitively appealing for cross-person domain shifts, person clustering and building person-specific models proved inconclusive and requires careful, use-case-specific exploration.
- Feature Selection is Context-Dependent: While starting with a rich set of features is good, the benefit of advanced feature selection techniques is not universally guaranteed and depends on the specific domain shift.
Key Results
- Location-Specific Training: Improving F1 scores by up to 10 percentage points by selecting appropriate training data portions.
- Vehicle/Locomotion Models: Roughly 1 percentage point increase in F1 score.
- Semi-Supervised Learning: Roughly 1 percentage point increase in F1 score.
- HMM Temporal Smoothing: Up to 10 percentage points improvement in F1 score for the 2019 challenge.
- Phone Location Detection (2020): Achieved an F1 score of 0.93 for walking/running detection and high F1 scores for specific locations (e.g., 0.86 for torso).
- Overall Pipeline Performance: The proposed pipelines achieved competitive results, with the 2019 pipeline reaching an F1 score of 0.8498 on the validation set and 0.809 on the test set, and the 2020 pipeline achieving an F1 score of 0.846 on validation and 0.8 on test. These represented improvements over previous methods.
Limitations and Future Work
- Person Clustering Inconclusive: The authors found that person clustering for cross-person domain shifts was not consistently beneficial and should be explored on a case-by-case basis.
- Feature Selection Uncertainty: The usefulness of advanced feature selection techniques was found to be inconclusive and requires further investigation.
- HMM Applicability: HMMs are only applicable when the temporal order of data is recoverable, which was not the case for the 2020 dataset.
- Future Work: The authors suggest extending the analysis to a larger number of diverse activity recognition datasets to further explore the impact of methods like person clustering and the combination of SSL and HMMs. They also aim to explore the benefits of ensemble algorithms more broadly.
Summary updated