Abstract
This study evaluated Long Short-Term Memory (LSTM) and Transformer artificial intelligence (AI) models for recognizing Activities of Daily Living (ADLs) using data collected from a low-cost, non-invasive ambient in-home sensor system. Motion, temperature, luminance, and door-contact sensors were deployed in a two-participant home for 22 days, with ground truth established through volunteer logs and expert validation. Missing data were handled using Akima and linear interpolation. Models were trained using a 16/3-day train–validation split with the last three days reserved for testing to avoid temporal leakage. Performance assessments included participant-specific modeling, sequence-length variation, and hyperparameter tuning, using micro-accuracy and AUC-ROC as evaluation metrics. The Transformer consistently outperformed the LSTM, particularly for Participant 2 (AUC 0.91 vs. 0.87), and demonstrated superior adaptability to irregular time-series data. Findings underscore the feasibility of combining ambient sensing with AI for accurate ADL recognition and its potential to enable early detection of cognitive decline, reduce hospitalization risk, and alleviate caregiver burden.
Introduction
As the global population ages, the prevalence of Alzheimer’s disease and related dementias (ADRD) presents a significant socio-economic challenge. Continuous monitoring of Activities of Daily Living (ADLs) is crucial for the early detection of cognitive or physical decline. However, traditional monitoring methods often face barriers: wearable devices suffer from low adherence among older adults, while camera-based systems raise significant privacy concerns. This research explores a non-invasive alternative: using low-cost, low-dimensional ambient sensors combined with deep learning architectures to accurately classify complex daily activities.
Methodology
The study compared two primary deep learning architectures: Long Short-Term Memory (LSTM) networks and Encoder-only Transformers. LSTMs serve as a robust baseline for time-series data, while Transformers utilize self-attention mechanisms to weigh the importance of different time steps.
Data preprocessing was critical for handling real-world sensor noise. Continuous variables like temperature and luminance were processed using Akima interpolation to preserve directional trends, while binary data (motion and door states) were forward-filled. The models were evaluated using a strict temporal split to prevent data leakage, with the final three days of the 22-day collection period reserved for testing.
Experimental Setup
The researchers deployed a sensor network consisting of motion, temperature, luminance, and door-contact sensors in a real-world home inhabited by two participants. The hardware stack included a Z-Wave stick and a Raspberry Pi, which transmitted data to a cloud server via a Wi-Fi connection. Ground truth labels for 12 ADL categories (e.g., Sleep, Cooking, Watching TV) were established through hourly self-reported logs, which were then matched to the sensor data.
Results and Discussion
The experimental results highlighted several key advantages of the Transformer architecture. Notably, Transformers achieved peak performance with shorter sequence lengths (10 minutes) compared to LSTMs (20 minutes), suggesting that the self-attention mechanism is more efficient at extracting informative features from limited temporal contexts.
For Participant 1, both models performed comparably well, with AUC-ROC scores of 0.95. However, for Participant 2, the Transformer significantly outperformed the LSTM, achieving 64% accuracy (0.91 AUC) compared to the LSTM's 56% accuracy (0.87 AUC). This disparity underscores the importance of personalized modeling, as individual routines and sensor interactions vary significantly. Furthermore, the high AUC scores across all classes—despite significant class imbalance—demonstrate the models' ability to distinguish rare activities from dominant ones like "Sleep" or "Out of Home."
Conclusion
This study demonstrates that low-cost ambient sensors, when paired with advanced deep learning models like Transformers, provide a viable, privacy-preserving method for ADL recognition. While the current study is limited by a small sample size, the results point toward a future where personalized, non-invasive monitoring systems can support aging-in-place. Future research will focus on expanding the dataset, implementing adaptive hyperparameter tuning, and exploring federated learning to enhance model robustness while maintaining strict data privacy.
Summary updated