# LastAct: Trajectory-Guided Latest-Activity Localization for Real-Time Smart-Home Activity Recognition

arXiv: https://arxiv.org/abs/2606.00260 · HTML: https://mlsanity.com/paper/2606.00260/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 16 of its 58 references that are in the map.
- First posted on arXiv 29 May 2026.

## Builds on (most cited first, 16 of 16)

- [Representation Learning with Contrastive Predictive Coding](https://mlsanity.com/paper/1807.03748/) (2018)
- [An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling](https://mlsanity.com/paper/1803.01271/) (2018)
- [Deep Learning for Sensor-based Activity Recognition: A Survey](https://mlsanity.com/paper/1707.03502/) (2017)
- [Contrastive Predictive Coding for Human Activity Recognition](https://mlsanity.com/paper/2012.05333/) (2020)
- [Change Point Detection in Time Series Data using Autoencoders with a Time-Invariant Representation](https://mlsanity.com/paper/2008.09524/) (2020)
- [A Survey of Human Activity Recognition in Smart Homes Based on IoT Sensors Algorithms: Taxonomies, Challenges, and Opportunities with Deep Learning](https://mlsanity.com/paper/2111.04418/) (2021)
- [Fully Convolutional Network Bootstrapped by Word Encoding and Embedding for Activity Recognition in Smart Homes](https://mlsanity.com/paper/2012.02300/) (2020)
- [Explainable Activity Recognition for Smart Home Systems](https://mlsanity.com/paper/2105.09787/) (2021)
- [Incremental Real-Time Personalization in Human Activity Recognition Using Domain Adaptive Batch Normalization](https://mlsanity.com/paper/2005.12178/) (2020)
- [Layout Agnostic Human Activity Recognition in Smart Homes through Textual Descriptions Of Sensor Triggers (TDOST)](https://mlsanity.com/paper/2405.12368/) (2024)
- [Using Language Model to Bootstrap Human Activity Recognition Ambient Sensors Based in Smart Homes](https://mlsanity.com/paper/2111.12158/) (2021)
- [Human Activity Recognition using Recurrent Neural Networks](https://mlsanity.com/paper/1804.07144/) (2018)
- [Activity2Vec: Learning ADL Embeddings from Sensor Data with a Sequence-to-Sequence Model](https://mlsanity.com/paper/1907.05597/) (2019)
- [Online Human Activity Recognition Employing Hierarchical Hidden Markov Models](https://mlsanity.com/paper/1903.04820/) (2019)
- [Towards Learning Discrete Representations via Self-Supervision for Wearables-Based Human Activity Recognition](https://mlsanity.com/paper/2306.01108/) (2023)
- [CARE: Contrastive Alignment for ADL Recognition from Event-Triggered Sensor Streams](https://mlsanity.com/paper/2510.16988/) (2025)

## Abstract (arXiv)

Human Activity Recognition (HAR) from ambient sensors enables smart-home applications such as health monitoring and assisted living. In realistic deployments, however, sensor events arrive as a continuous stream and activity boundaries are unknown. Sliding-window inference therefore produces many windows that straddle transitions and contain mixed activities, creating boundary contamination that violates the pre-segmented instance assumption used by most benchmarks and models. Moreover, many pipelines under-use spatial context by treating sensor IDs as independent tokens. We present LastAct, a trajectory-centric framework for streaming smart-home HAR that targets the most recent activity under mixed windows while explicitly modeling spatial structure. LastAct projects sensor events onto the home floorplan to form a layout-aligned trajectory image sequence that preserves spatial continuity. A lightweight gate identifies contaminated windows, and a boundary localizer estimates the last transition to enable boundary-guided masking that emphasizes post-boundary evidence and suppresses stale context. For efficiency, we reuse a precomputed layout-aligned template cache to avoid repeated rendering. Empirically, across four public smart-home datasets under near-realistic mixed-activity protocols, LastAct achieves competitive or superior performance on pure windows and yields substantial Macro-F1 gains on cross/mixed windows, demonstrating improved robustness under near-realistic sliding-window regimes.
