Personalized Smart Home Automation Using Machine Learning: Predicting User Activities
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.
Authors
- Mohamed Z. Gad (ORCID: https://orcid.org/0000-0003-1173-8628)
- Walaa Gad (ORCID: https://orcid.org/0000-0002-7816-3518)
- Tamer Abdelkader (ORCID: https://orcid.org/0000-0003-4060-2535)
- Kshirasagar Naik (ORCID: https://orcid.org/0000-0002-1064-4905)
Institutions
- Ain Shams University (EG)
- Suez University (EG)
- University of Waterloo (CA)
- Galala University
- German University in Cairo (EG)
Publication Details
- Journal
- Sensors
- Published
- 2025-10-02
- DOI
- https://doi.org/10.3390/s25196082
- Citations
- 3
- Primary Topic
- Smart Grid Energy Management
- Type
- article
- Field-Weighted Citation Impact
- 2.19