Abstract
Given the growing trend of continual learning techniques for deep neural networks focusing on the domain of computer vision, there is a need to identify which of these generalizes well to other tasks such as human activity recognition (HAR). As recent methods have mostly been composed of loss regularization terms and memory replay, we provide a constituent-wise analysis of some prominent task-incremental learning techniques employing these on HAR datasets. We find that most regularization approaches lack substantial effect and provide an intuition of when they fail. Thus, we make the case that the development of continual learning algorithms should be motivated by rather diverse task domains.
Introduction
Neural networks are notoriously susceptible to catastrophic forgetting, where learning new information leads to the erasure of previously acquired knowledge. While Continual Learning (CL) algorithms have been extensively developed to mitigate this in computer vision, their efficacy in the domain of Human Activity Recognition (HAR) remains under-explored. HAR presents unique challenges: significant dataset imbalance, high inter-class similarity (e.g., walking vs. running), and the necessity for models to operate under strict resource constraints on wearable devices. This study investigates whether standard regularization-based CL methods generalize to the sensor-driven world of HAR.
Methodology
The study performs a constituent-wise analysis of five prominent regularization methods, evaluated both in isolation and in conjunction with Memory Replay (MemR). MemR involves maintaining a small buffer of samples from previous tasks to augment training on new tasks.
The evaluated methods include:
- LwF (Learning without Forgetting): Employs knowledge distillation to maintain consistency between old and new model outputs.
- EWC & RWC (Elastic Weight Consolidation): Penalize changes to weights identified as critical for prior tasks.
- MAS (Memory Aware Synapses): Estimates weight importance based on the sensitivity of model outputs to weight changes.
- LUCIR: Utilizes a "less-forget constraint" and "margin ranking" to address class imbalance.
- ILOS: Adjusts logits to balance the influence of old and new knowledge.
Datasets
Two representative HAR datasets were used for evaluation:
- WS (CASAS): Ambient sensor data from a smart home, featuring 9 highly imbalanced activities.
- DSADS (Daily and Sports Activities): Balanced data from 5 body-worn accelerometers, covering 19 activities.
Results and Discussion
The Dominance of Memory Replay
A primary finding is that regularization alone often fails to prevent rapid forgetting in HAR tasks. Without memory replay, forgetting occurs almost immediately after the first task transition. In contrast, even a minimal memory buffer provides a substantial performance boost that far outweighs the benefits of complex regularization terms.
As seen in Figure 2, the "without replay" scenarios show significantly higher forgetting measures compared to their "with replay" counterparts. On the imbalanced WS dataset, regularization provided less than a 1% improvement over a naive baseline. While gains were higher on the balanced DSADS dataset (approx. 8%), they remained modest.
Stability vs. Plasticity
The analysis revealed a clear trade-off between stability (retaining old knowledge) and plasticity (learning new tasks). Methods like ILOS prioritized stability but often at the expense of learning new activities effectively. Conversely, standard regularization techniques frequently failed to provide sufficient stability to justify their computational overhead.
Figure 6 illustrates how performance on "Old" tasks degrades as more tasks are added, while "New" task performance remains relatively high. This visualization highlights the difficulty of maintaining performance across the entire task sequence and the varying success of different methods in balancing these competing needs.
Fairness and Class Imbalance
While regularization did not always significantly boost overall accuracy, it improved "fairness" by reducing the performance gap between micro-F1 (overall accuracy) and macro-F1 (per-class average). This suggests that regularization helps the model retain knowledge of rare activities in imbalanced datasets like WS, even if it doesn't drastically change the top-line metrics.
Conclusion
The study concludes that the current "vision-first" paradigm in CL algorithm design may not produce tools that are universally effective across all domains. In HAR, simple memory replay is significantly more effective than complex regularization. Future research should focus on developing CL algorithms tailored for the resource-constrained and imbalanced nature of sensor data, moving beyond synthetic task sequences toward realistic, long-term deployments.
Summary updated