Anomaly Detection in Smart City Sensor Data Using Isolation Forest and Autoencoder Models
Smart city operations depend on continuous sensing across transport, energy, and environmental systems. Although these data streams enable data-driven urban management, they also expose city operators to abnormal patterns caused by sensor malfunction, communication dropout, sudden load changes, and cybersecurity-relevant manipulation of telemetry values. This study develops and evaluates a hybrid anomaly detection framework that combines Isolation Forest and Autoencoder models for multivariate smart city sensor data. Isolation Forest is used to perform scalable initial screening of sparse and high-deviation observations, while an Autoencoder learns nonlinear normal operating patterns and refines alerts through reconstruction error. The framework was assessed on CitySense-AD, a controlled multivariate smart city benchmark containing traffic, energy, environmental, and device-health measurements across multiple urban zones. Model performance was evaluated using precision, recall, F1-score, receiver operating characteristic area under the curve, precision-recall area under the curve, false-positive rate, detection latency, noise robustness, and explanation stability. The hybrid model achieved an F1-score of 0.837 and ROC-AUC of 0.944, outperforming standalone Isolation Forest, standalone Autoencoder, one-class support vector machine, and local outlier factor baselines. Robustness analysis showed that the hybrid model retained a higher F1-score under injected sensor noise and partial missingness, while feature-level reconstruction and isolation contributions provided operationally meaningful explanations for alert triage. The findings indicate that combining tree-based isolation with neural reconstruction can improve anomaly detection reliability in heterogeneous smart city sensor environments without requiring extensive labeled attack data.
Authors
- Indra Komara (ORCID: https://orcid.org/0000-0001-7260-0855)
- Wahyu Setyo Pambudi (ORCID: https://orcid.org/0000-0001-7180-1102)
- Danang Haryo Sulaksono
- Elmar Balolong Noche (ORCID: https://orcid.org/0009-0008-4363-5600)
Institutions
- Pangasinan State University (PH)
- Institut Teknologi Adhi Tama Surabaya (ID)
Publication Details
- Journal
- Journal of Data Sciences
- Published
- 2026-11-18
- DOI
- https://doi.org/10.61453/jods.v20260320
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00