spot_img
HomeResearch & DevelopmentAdvancing Human Activity Recognition with Reinforcement Learning for Cross-User...

Advancing Human Activity Recognition with Reinforcement Learning for Cross-User Generalization

TLDR: TPRL-DG is a novel framework that uses reinforcement learning and a Transformer-based autoregressive generator to create user-invariant, temporally coherent feature representations for Human Activity Recognition (HAR). It addresses cross-user variability by reframing feature extraction as a sequential decision-making process, optimized by a multi-objective reward function that balances class discrimination and cross-user invariance without needing target user labels. Evaluations on DSADS and PAMAP2 datasets show it outperforms state-of-the-art methods in cross-user generalization, achieving superior accuracy for unseen users without per-user calibration, making HAR systems more scalable and robust.

Human Activity Recognition (HAR) using wearable sensors is a vital technology with applications spanning healthcare, fitness tracking, and smart environments. Imagine a system that can accurately tell if you’re walking, running, sitting, or even cycling, just by analyzing data from a sensor on your wrist or chest. This capability is incredibly useful for monitoring health, personalizing exercise routines, and making our environments more responsive to our needs.

However, developing HAR systems that work reliably for everyone is a significant challenge. People move differently, place their sensors in slightly varied spots, and have unique physiological traits. These differences, known as ‘cross-user variability,’ mean that a system trained on one group of users often struggles to perform well on new, unseen individuals. Traditional machine learning methods tend to ‘overfit’ to the specific patterns of the users they were trained on, leading to poor performance when faced with diverse motion styles.

Existing solutions have tried to tackle this problem. Some use adversarial training to make features more consistent across users, but they often overlook the crucial temporal aspect of human movement – the sequence and rhythm of actions. Others, like meta-learning, aim to adapt quickly to new users but typically require specific labels or extensive calibration for each new person, which isn’t practical in real-world scenarios where new users are constantly emerging without pre-labeled data.

Introducing TPRL-DG: A Novel Approach

A new framework, called Temporal-Preserving Reinforcement Learning Domain Generalization (TPRL-DG), offers an innovative solution to these challenges. Developed by Xiaozhou Ye and Kevin I-Kai Wang from The University of Auckland, TPRL-DG redefines how feature extraction works in HAR. Instead of a passive process, it treats feature extraction as a sequential decision-making task, guided by reinforcement learning (RL).

At its core, TPRL-DG uses a sophisticated Transformer-based autoregressive generator. Think of this as a smart engine that produces ‘temporal tokens’ – small, sequential pieces of information that capture the dynamics of an activity in a way that is consistent across different users. This generator is optimized through a clever multi-objective reward system. This system balances two key goals: making sure the features clearly distinguish between different activities (class discrimination) and ensuring they are consistent regardless of who is performing the activity (cross-user invariance).

One of the most significant innovations of TPRL-DG is its label-free reward design. This means it doesn’t need specific labels for target users, making it much more scalable and practical for real-world applications where obtaining such labels is often impossible. By leveraging the exploratory nature of reinforcement learning, TPRL-DG can discover robust representations that encode long-term temporal patterns, effectively mitigating the problem of overfitting to individual user variations.

How It Works: Balancing Discrimination and Invariance

The reinforcement learning framework in TPRL-DG is designed to actively explore the best ways to represent activity data. Unlike traditional methods that simply try to minimize a fixed error, TPRL-DG’s dynamic reward system directly encourages user invariance, activity discrimination, and temporal commonality. This allows the model to find features that represent shared activity dynamics, like the universal oscillatory patterns in cycling, across a wide range of users.

The Transformer-based generator is crucial here. Its self-attention mechanism allows it to focus on global temporal patterns, such as consistent acceleration peaks in running, that are invariant across users, while downplaying user-specific noise like irregular arm swings. The autoregressive design ensures that each feature token is built upon previous ones, preserving the natural flow and sequence of human activities.

The reward functions play a critical role. The ‘class discrimination reward’ ensures that features for different activities are clearly separated, making it easier to classify them accurately. The ‘user invariance reward’ minimizes differences in feature distributions across users for the same activity, effectively aligning features into a common space that captures universal temporal elements. This dual approach ensures that the learned features are both distinct for each activity and consistent across all users.

Also Read:

Impressive Results and Future Potential

Evaluations on two diverse benchmark datasets, DSADS and PAMAP2, have shown that TPRL-DG significantly outperforms state-of-the-art methods in cross-user generalization. For instance, it achieved an average accuracy of 88.29% on DSADS and 74.15% on PAMAP2, demonstrating superior accuracy for unseen users without requiring any per-user fine-tuning. These gains were particularly notable in challenging scenarios with high inter-group variability in dynamic activities.

The research also included a detailed analysis of how different settings (hyperparameters) affect performance, providing valuable insights for practical deployment. The findings suggest that relatively small numbers of feature tokens and balanced reward weights lead to the best results, which is good news for deploying such systems on resource-constrained wearable devices.

TPRL-DG represents a significant step forward in making HAR systems more robust and scalable for real-world use. By bridging advancements in reinforcement learning with the unique requirements of HAR, it paves the way for user-agnostic systems in dynamic environments. Beyond HAR, the principles of TPRL-DG could be applied to other sequential data domains, such as gesture recognition and industrial sensor analytics, where distribution shifts and temporal coherence are equally critical. For more in-depth information, you can read the full research paper here.

Karthik Mehta
Karthik Mehtahttps://blogs.edgentiq.com
Karthik Mehta is a data journalist known for his data-rich, insightful coverage of AI news and developments. Armed with a degree in Data Science from IIT Bombay and years of newsroom experience, Karthik merges storytelling with metrics to surface deeper narratives in AI-related events. His writing cuts through hype, revealing the real-world impact of Generative AI on industries, policy, and society. You can reach him out at: [email protected]

- Advertisement -

spot_img

Gen AI News and Updates

spot_img

- Advertisement -