Personalized Smart Home Automation Using Machine Learning: Predicting User Activities
Open Access
Abstract
A personalized framework for smart home automation is introduced, utilizing machine learning to predict user activities and allow for the context-aware control of living spaces. Predicting user activities, such as ‘Watch_TV’, ‘Sleep’, ‘Work_On_Computer’, and ‘Cook_Dinner’, is essential for improving occupant comfort, optimizing energy consumption, and offering proactive support in smart home settings. The Edge Light Human Activity Recognition Predictor, or EL-HARP, is the main prediction model used in this framework to predict user behavior. The system combines open-source software for real-time sensing, facial recognition, and appliance control with affordable hardware, including the Raspberry Pi 5, ESP32-CAM, Tuya smart switches, NFC (Near Field Communication), and ultrasonic sensors. In order to predict daily user activities, three gradient-boosting models—XGBoost, CatBoost, and LightGBM (Gradient Boosting Models)—are trained for each household using engineered features and past behaviour patterns. Using extended temporal features, LightGBM in particular achieves strong predictive performance within EL-HARP. The framework is optimized for edge deployment with efficient training, regularization, and class imbalance handling. A fully functional prototype demonstrates real-time performance and adaptability to individual behavior patterns. This work contributes a scalable, privacy-preserving, and user-centric approach to intelligent home automation.Keywords
This publication has 26 references indexed in Scilit:
- Multimodal feature fusion for human activity recognition using human centric temporal transformerEngineering Applications of Artificial Intelligence, 2025
- RFAR: A Real-Time Firefighter Activity Recognition System Using Wearable AccelerometerIEEE Sensors Journal, 2025
- Benchmarking Deep Learning Models on NVIDIA Jetson Nano for Real-Time Systems: An Empirical InvestigationProcedia Computer Science, 2025
- Fusion of Inertial and High-Resolution Acoustic Data for Privacy-Preserving Human Activity RecognitionIEEE Transactions on Instrumentation and Measurement, 2025
- Class imbalance in multi-resident activity recognition: an evaluative study on explainability of deep learning approachesUniversal Access in the Information Society, 2024
- Hybrid Transformer-RNN Architecture for Household Occupancy Detection Using Low-Resolution Smart Meter Data2023
- Exploring Machine Learning Algorithms for User Activity Inference from IoT Network Traffic2023
- Human activity recognition based on multienvironment sensor dataInformation Fusion, 2022
- Comparative Analysis for Interval Modeling Algorithms of Wind Turbine Power CurveIOP Conference Series: Materials Science and Engineering, 2019
- Activity Recognition Using Hierarchical Hidden Markov Models on Streaming Sensor Data2018