H-BiLSTM-GAT: A Lightweight Hierarchical Spatio-temporal Framework for Human Activity Recognition in IoT-enabled Smart Homes
Abstract
Human Activity Recognition (HAR) in smart homes requires modeling dynamic, context-dependent spatio-temporal relations under strict IoT edge-gateway constraints. Existing hybrid architectures treat temporal context and spatial topology as independent streams, preventing temporal context from modulating spatial attention as activities progress, while their computational overhead limits deployment in real-world Ambient Assisted Living systems. This paper presents H-BiLSTM-GAT, a modular, edge-deployable spatio-temporal framework for ambient HAR. Its core contribution is a lightweight contextual guidance mechanism: a hierarchical Bidirectional LSTM encoder injects a learned scalar gate into the node embeddings of a Graph Attention Network (GAT) over a physically-grounded static graph. This feature-level modulation enables dynamic spatial weighting without the cost of dynamic graph reconstruction. Evaluated on six CASAS benchmark datasets with automated hyperparameter optimization (Optuna) and 95% confidence intervals, the framework achieves weighted F1-scores of 95.8% on Milan and 90.7% on the multi-resident Cairo dataset. An ablation study across four architectural variants shows the Simple GAT (M2) is optimal in three of six scenarios (Aruba: 0.946 ± 0.009), while the Contextual GAT (M3) yields significant gains on high-volatility datasets (Kyoto7: 0.884 ± 0.013). Gate-value analysis shows a complete separation between gate-active and gate-inactive datasets (Mann–Whitney test, p = 0.10), consistent with the gate reflecting dataset temporal complexity without explicit supervision. TFLite INT8 quantization reduces model footprints to 0.38–1.13 MB with inference latencies of 5.6–21.3 ms, confirming practical IoT gateway deployability.
Keywords:
human activity recognition, graph attention network, spatio-temporal modeling, IoT edge deployment, smart homePublished Online
How to Cite
Issue
Section
License
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (see The Effect of Open Access). As soon as the paper is accepted, finally submitted and edited, the paper will appear in the "OnlineFirst" page of the journal, thus from this point no other internet-based publication is necessary.
