As smart homes become increasingly interconnected, it is crucial to ensure their security against cyber threats. This research focuses on improving anomaly detection within smart home environments through the application of unsupervised learning methods. Unlike traditional methods that require prior knowledge of specific attack types, unsupervised methods learn from normal operational data, identifying anomalies as deviations from this norm. This study investigates the impact of hyperparameter tuning on the effectiveness of these methods compared to their default settings. This research aims to identify optimal strategies for the configuration of unsupervised learning algorithms in smart home environments. We applied four models (Elliptic Envelope, Isolation Forest, Local Outlier Factor, and One-class SVM) in four datasets (Bot-IoT, IoTID20, N-baiot, and Ton-IoT). Our findings indicate a significant improvement in performance with hyperparameter optimization.
12 September 2025 in Journal of Network and Systems Management
In the rapidly progressing field of smart home technology, safeguarding the security of interconnected devices and systems is critical. Unsupervised anomaly detection is a recognized solution; however, its effectiveness heavily depends on the hyperparameter optimization process. In this work, we hypothesize that metrics tailored for imbalanced data, such as the Matthews correlation coefficient (MCC), can guide the development of more robust and generalizable unsupervised anomaly detection models. To test this hypothesis, we systematically evaluate the impact of optimizing seven distinct metrics (e.g., MCC, BACC, AUC-PR) across four widely used smart home datasets (N-BaIoT, IoTID20, Bot-IoT, and ToN-IoT). Our results show that MCC optimized models achieve an average normalized MCC of 0.801, outperforming those optimized for accuracy (0.781) and AUC-ROC (0.733), and reducing the cumulative distance to ideal performance by 66% compared to conventional metric optimization. These findings underscore the importance of metric selection in unsupervised settings, offering a foundation for building more reliable and generalizable security models for smart home environments. To our knowledge, this is the first work to systematically assess the effects of optimizing distinct evaluation metrics across multiple smart home datasets.
Deploying unsupervised anomaly detection systems in heterogeneous smart home environments is hindered by the need for costly, per-site hyperparameter tuning. This paper addresses the critical challenge of hyperparameter transferability for creating zero-tune, plug-and-play security solutions. We systematically evaluate five unsupervised machine learning models [Elliptic Envelope (EE), Isolation Forest (IF), Local Outlier Factor (LoF), One-Class SVM (oSVM), and an Autoencoder (AE)] across five prominent IoT datasets. Using a rigorous dataset-specific hyperparameter tuning approach, we benchmark the performance of transferred configurations against both per-dataset optimization and default settings. Our findings establish a clear performance hierarchy: while dataset-specific tuning remains the gold standard, an intelligent transfer strategy significantly outperforms default configurations. Notably, we identify the IoTID20 dataset as the most effective source. Our quantitative topological analysis supports this, revealing that IoTID20’s high feature space complexity and cluster overlap (evidenced by low Silhouette scores) create a rigorous training environment that produces robust, portable hyperparameters. Furthermore, our analysis reveals a strategic trade-off: Autoencoders and LoF deliver the highest absolute performance, whereas IF offers the most substantial improvement over default settings. This work provides a quantitative framework for dataset-driven initialization, guiding the development of robust, low-maintenance intrusion detection systems.