Evaluating Smart Home Privacy: The Relationship between Encrypted Sensor Data and Occupancy Prediction Through Machine Learning

Sneha Mohanty*, Demetrios N. Papadopoulos, Christian Schindelhauer

*Corresponding author for this work

Research output: Chapter in Book/Conference Proceeding/ReportConference Paper published in a bookpeer-review

Abstract

The widespread adoption of smart meters and other IoT devices in smart homes has revolutionized residential energy management. However, this convenience comes with significant privacy risks, as malicious individuals can exploit leaked data to predict household occupancy, potentially enabling crimes like burglary and theft. Therefore, to safeguard occupancy data in a given household, we introduce a novel, efficient and robust cryptographic scheme subdivided into two. Both methods involve a robust two-fold encryption process, i.e.; performing Customized Fernet-256 encryption with random shuffling vs Customized Fernet-256 encryption with strategy based operations on household data, respectively. To test the effectiveness of these two methods, we predict the occupancy using an AutoML classifier on encrypted and unencrypted data. The random shuffling method steadily reduces the classifier's accuracy as the percentage of encryption increases. In contrast, the strategic method achieves strong protection against intrusion even with minimal intervention, although its performance improvement plateaus after an initial decline. This is a significant improvement over unencrypted data, where attackers could have achieved >95% across all performance metrics. Furthermore, we found that the strategic method attains a remarkable F1-Score of 0.447 for predicting absence at 100% encryption level, underscoring the difficulty of the attacker in accurately predicting household occupancy status during the test period. The corresponding value for the random shuffling method is 0.005, illustrating its superiority in terms of F1-Score. These findings signify the importance of encryption as a privacy-preserving measure in smart homes and demonstrate its ability to prevent unauthorized occupancy inference.

Original languageEnglish
Title of host publicationProceedings of the 2025 IEEE International Conference on Cyber Security and Resilience, CSR 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages638-645
Number of pages8
ISBN (Electronic)9798331535919
DOIs
Publication statusPublished - 2025
Externally publishedYes
Event5th IEEE International Conference on Cyber Security and Resilience, CSR 2025 - Chania, Greece
Duration: 4 Aug 20256 Aug 2025

Publication series

NameProceedings of the 2025 IEEE International Conference on Cyber Security and Resilience, CSR 2025

Conference

Conference5th IEEE International Conference on Cyber Security and Resilience, CSR 2025
Country/TerritoryGreece
CityChania
Period4/08/256/08/25

Bibliographical note

Publisher Copyright:
© 2025 IEEE.

Keywords

  • AutoML
  • Cryptography
  • Fernet keys
  • Home Energy Management System
  • Occupancy Prediction
  • Smart Home
  • Timeseries Encryption

Fingerprint

Dive into the research topics of 'Evaluating Smart Home Privacy: The Relationship between Encrypted Sensor Data and Occupancy Prediction Through Machine Learning'. Together they form a unique fingerprint.

Cite this