journal article·2024-10-07Open access

Analyzing Machine Learning Models for Activity Recognition Using Homomorphically Encrypted Real-World Smart Home Datasets: A Case Study

Hasina Attaullah, Sanaullah Sanaullah, Thorsten Jungeblut

Applied Sciences· Volume 14· Issue 19

Abstract

The era of digitization and IoT devices is marked by the constant storage of massive amounts of data. The growing adoption of smart home environments, which use sensors and devices to monitor and control various aspects of daily life, underscores the need for effective privacy and security measures. HE is a technology that enables computations on encrypted data, preserving confidentiality. As a result, researchers have developed methodologies to protect user information, and HE is one of the technologies that make it possible to perform computations directly on encrypted data and produce results using this encrypted information. Thus, this research study compares the performance of three ML models, XGBoost, Random Forest, and Decision Classifier, on a real-world smart home dataset using both with and without FHE. Practical results demonstrate that the Decision Classifier showed remarkable results, maintaining high accuracy with FHE and even surpassing its plaintext performance, suggesting that encryption can enhance model accuracy under certain conditions. Additionally, Random Forest showed efficiency in terms of execution time and low prediction errors with FHE, making it a strong candidate for encrypted data processing in smart homes. These findings highlight the potential of FHE to set new privacy standards, advancing secure and privacy-preserving technologies in smart environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Context-Aware Activity Recognition Systems · User Authentication and Security Systems · Privacy-Preserving Technologies in Data

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Engineering and Mathematics, Bielefeld University of Sciences, 33619 Bielefeld, Germany

Funding

Transformation in Care and Technology TransCareTech · Ministry of Culture and Science of the State of North Rhine-Westphalia

References (44)

Show source-provided references
1. Chataut, R., Phoummalayvane, A., and Akl, R. (2023). Unleashing the power of IoT: A comprehensive review of IoT applications and future prospects in healthcare, agriculture, smart homes, smart cities, and industry 4.0. Sensors, 23.10.20944/preprints202306.0002.v1 ↗
2. Asaithambi, S.P.R., Venkatraman, S., and Venkatraman, R. (2021). Big data and personalisation for non-intrusive smart home automation. Big Data Cogn. Comput., 5.10.3390/bdcc5010006 ↗
3. Sepasgozar, S., Karimi, R., Farahzadi, L., Moezzi, F., Shirowzhan, S., Ebrahimzadeh, S.M., Hui, F., and Aye, L. (2020). A systematic content review of artificial intelligence and the internet of things applications in smart home. Appl. Sci., 10.10.3390/app10093074 ↗
4. A parallel approach to perform threshold value and propagation delay analyses of genetic logic circuit models10.1021/acssynbio.0c00379 ↗
5. Internet of things in smart environment: Concept, applications, challenges, and future directions
6. Sanaullah, S. (2024, January 9–11). A Hybrid Spiking-Convolutional Neural Network Approach for Advancing Machine Learning Models. Proceedings of the Northern Lights Deep Learning Conference, PMLR, Tromsø, Norway.
7. Jungeblut, T. (2024, January 27–30). A Spike Vision Approach for Multi-object Detection and Generating Dataset Using Multi-core Architecture on Edge Device. Proceedings of the Engineering Applications of Neural Networks: 25th International Conference, EANN 2024, Corfu, Greece.
8. Zama (2024, August 26). TFHE-rs: A Pure Rust Implementation of the TFHE Scheme for Boolean and Integer Arithmetics Over Encrypted Data. Available online: https://github.com/zama-ai/tfhe-rs.
9. Sanaullah, S., Attaullah, H., and Jungeblut, T. (2024, January 11–15). The Next-Gen Interactive Runtime Simulator for Neural Network Programming. Proceedings of the 8th International Conference on the Art, Science, and Engineering of Programming, Lund, Sweden.10.1145/3660829.3660833 ↗
10. Nguyen, T. (2023). Advancing Privacy and Accuracy with Federated Learning and Homomorphic Encryption. Authorea Prepr.10.36227/techrxiv.24003795.v1 ↗
11. Krishna, N., Raju, K.M., Gowda, V.D., Arun, G., and Suneetha, S. (2024). Homomorphic Encryption and Machine Learning in the Encrypted Domain. Innovative Machine Learning Applications for Cryptography, IGI Global.10.4018/979-8-3693-1642-9.ch010 ↗
12. Frimpong, E., Nguyen, K., Budzys, M., Khan, T., and Michalas, A. (2024, January 8–12). GuardML: Efficient Privacy-Preserving Machine Learning Services Through Hybrid Homomorphic Encryption. Proceedings of the 39th ACM/SIGAPP Symposium on Applied Computing, Avila, Spain.10.1145/3605098.3635983 ↗
13. Neumann, L., Guimarães, A., Aranha, D.F., and Borin, E. (2024). Homomorphic WiSARDs: Efficient Weightless Neural Network training over encrypted data. arXiv.
14. Lee, S., Lee, G., Kim, J.W., Shin, J., and Lee, M.K. (2023, January 23–29). HETAL: Efficient privacy-preserving transfer learning with homomorphic encryption. Proceedings of the International Conference on Machine Learning, PMLR, Honolulu, HI, USA.
15. Kang, D.H.E., Kim, D., Song, Y., Lee, D., Kwak, H., and Anthony, B.W. (2024). Harnessing the potential of shared data in a secure, inclusive, and resilient manner via multi-key homomorphic encryption. Sci. Rep., 14.10.1038/s41598-024-63393-1 ↗
16. Optimized privacy-preserving cnn inference with fully homomorphic encryption10.1109/TIFS.2023.3263631 ↗
17. Privacy-preserving machine learning with fully homomorphic encryption for deep neural network10.1109/ACCESS.2022.3159694 ↗
18. Lattice-Based Homomorphic Encryption For Privacy-Preserving Smart Meter Data Analytics10.1093/comjnl/bxad093 ↗
19. Homomorphic consortium blockchain for smart home system sensitive data privacy preserving10.1109/ACCESS.2019.2916345 ↗
20. Smart Grids Data Aggregation Method on Paillier Homomorphic Encryption10.1080/08839514.2024.2327901 ↗
21. Romdhane, R.B., Hammami, H., Hamdi, M., and Kim, T.H. (2019, January 24–28). At the cross roads of lattice-based and homomorphic encryption to secure data aggregation in smart grid. Proceedings of the 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC), Tangier, Morocco.10.1109/IWCMC.2019.8766358 ↗
22. Random forest evaluation using multi-key homomorphic encryption and lookup tables10.1007/s10207-024-00823-1 ↗
23. Gentry, C. (2009). A Fully Homomorphic Encryption Scheme, Stanford University.
24. Somewhat practical fully homomorphic encryption
25. (Leveled) fully homomorphic encryption without bootstrapping10.1145/2633600 ↗
26. Cheon, J.H., Kim, A., Kim, M., and Song, Y. (2017, January 3–7). Homomorphic encryption for arithmetic of approximate numbers. Proceedings of the Advances in Cryptology–ASIACRYPT 2017: 23rd International Conference on the Theory and Applications of Cryptology and Information Security, Hong Kong, China. Proceedings, Part I 23.
27. Paillier, P. (1999, January 2–6). Public-key cryptosystems based on composite degree residuosity classes. Proceedings of the International Conference on the Theory and Applications of Cryptographic Techniques, Prague, Czech Republic.
28. Ducas, L., and Micciancio, D. (2015, January 26–30). FHEW: Bootstrapping homomorphic encryption in less than a second. Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Sofia, Bulgaria.10.1007/978-3-662-46800-5_24 ↗
29. TFHE: Fast fully homomorphic encryption over the torus10.1007/s00145-019-09319-x ↗
30. (2024, March 01). Microsoft SEAL (release 4.1). Microsoft Research: Redmond, WA, USA. Available online: https://github.com/Microsoft/SEAL.
31. Halevi, S., and Shoup, V. (2024, March 01). Design and implementation of HElib: A homomorphic encryption library. Cryptol. Print Archive, Available online: https://github.com/homenc/HElib.
32. Badawi, A.A., Alexandru, A., Bates, J., Bergamaschi, F., Cousins, D.B., Erabelli, S., Genise, N., Halevi, S., Hunt, H., and Kim, A. (2024, March 01). OpenFHE: Open-Source Fully Homomorphic Encryption Library. Cryptology ePrint Archive, Paper 2022/915. Available online: https://eprint.iacr.org/2022/915.
33. (2024, February 01). Zama. Concrete ML: A Privacy-Preserving Machine Learning Library Using Fully Homomorphic Encryption for Data Scientists, Available online: https://github.com/zama-ai/concrete-ml.
34. Du, W., and Zhan, Z. (2024, March 01). Building Decision Tree Classifier on Private Data. Available online: https://surface.syr.edu/cgi/viewcontent.cgi?article=1007&context=eecs.
35. Chen, T., and Guestrin, C. (2016, January 13–17). Xgboost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.10.1145/2939672.2939785 ↗
36. Random forests10.1023/A:1010933404324 ↗
37. University, W.S. (2024, February 18). CASAS Datasets for Smart Environments. Available online: http://casas.wsu.edu/datasets/.
38. CASAS: A smart home in a box10.1109/MC.2012.328 ↗
39. A novel framework for imputation of missing values in databases10.1109/TSMCA.2007.902631 ↗
40. Systematic review of using machine learning in imputing missing values10.1109/ACCESS.2022.3160841 ↗
41. Adhikary, S., Dutta, S., and Dwivedi, A.D. (2023). Secret learning for lung cancer diagnosis—A study with homomorphic encryption, texture analysis and deep learning. Biomed. Phys. Eng. Express, 10.10.1088/2057-1976/ad0b4b ↗
42. Salamatian, S. (2020). Statistical Privacy and Security. [Ph.D. Thesis, Massachusetts Institute of Technology].
43. Frery, J., Stoian, A., Bredehoft, R., Montero, L., Kherfallah, C., Chevallier-Mames, B., and Meyre, A. (2023). Privacy-preserving tree-based inference with fully homomorphic encryption. Cryptol. Eprint Arch., preprint.10.1007/978-3-031-52426-4_10 ↗
44. Nn-emd: Efficiently training neural networks using encrypted multi-sourced datasets10.1109/TDSC.2021.3074439 ↗