International
Journal of Innovative Information Systems
&
Technology Research 14(3):340-352, July-Sept, 2026
© SEAHI PUBLICATIONS, 2026 www.seahipublications.org ISSN: 2467-8562
DOI:10.5281/zenodo.22806956
Context-Aware Activity Recognition Framework
for Smart Home Network and Environment using Deep Learning
V.
C. Amadi-Peter, O. E. Taylor, V. T. Emmah
Department of Computer Science, Faculty of Science, Rivers State
University, Port Harcourt, Nigeria
ABSTRACT
Smart homes generate continuous streams of
ambient sensor data that can reveal intimate details about residents’ daily
routines. However, existing Human Activity Recognition (HAR) systems often fail
to leverage contextual information, struggle with overlapping activities in
multi-resident settings, and may expose sensitive behavioral data without
sufficient protection. To address these gaps, this study proposes a
Context-Aware Activity Recognition Framework (CAARF) for smart home network and
environment. CAARF integrates three key components. First, it introduces a
hybrid CNN–LSTM model that fuses encoded temporal, spatial, and environmental
contextual features to improve recognition under real-world sensor noise and
variability. Second, it presents a Transformer-based multi-label architecture
that uses multi-head self-attention and an auxiliary resident attribution head
to detect concurrent and overlapping activities performed by multiple occupants
at the same time. Third, it adds an Elliptic Curve Cryptography (ECC)
privacy-preservation layer combining Elliptic Curve Diffie-Hellman (ECDH) for
session key agreement, Advanced Encryption Standard in Galois/Counter Mode
(AES-GCM) for efficient symmetric encryption, and Elliptic Curve Digital
Signature Algorithm (ECDSA) for integrity and authenticity verification. The
system design follows an object-oriented approach, and the implementation uses
Python for model development and MySQL for device and activity data management.
The framework is trained and evaluated on two publicly available benchmark
datasets. The CNN–LSTM model is trained on the CASAS Aruba dataset, while the
Transformer-based model is trained on the ARAS two-resident smart home dataset.
Results show strong HAR performance as the CNN-LSTM model achieves 96.4%
accuracy, 95.1% precision, 94.8% recall, and 94.9% F1-score. The Transformer
model achieved 91.7% micro F1, 88.3% subset accuracy, and 0.082 Hamming Loss.
The privacy module introduces low overhead, with 2.3 ms encryption latency, 2.1
ms decryption latency, and 18.4 KB memory overhead. The CAARF jointly improves
contextual understanding, concurrent multi-resident activity recognition, and
real-time privacy preservation within an end-to-end framework.
Keywords:
Human Activity Recognition, Smart Home, Context-Awareness, CNN-LSTM,
Transformer, Multi-Resident Recognition, Elliptic Curve Cryptography,
Privacy-Preservation, Internet of Things.