Research Article

Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM

Volume: 30 Number: 1 April 24, 2026
EN TR

Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM

Abstract

This study presents a comparative analysis of three widely adopted unsupervised anomaly detection algorithms—Isolation Forest, Local Outlier Factor (LOF), and One-Class Support Vector Machine (SVM)—with the aim of evaluating their effectiveness in detecting network intrusions. Using a publicly available cybersecurity dataset, this study applied Principal Component Analysis (PCA) to reduce dimensionality and optimize computational performance. Each model was trained exclusively on normal traffic data and was tested against mixed data containing both normal and attack instances. The performance was assessed using key metrics, including precision, recall, and F1-score, along with confusion matrices, to evaluate the classification behavior. The results indicate that the One-Class SVM achieved the best overall performance, with the highest recall (99.06%) and F1-score (0.8511), making it highly effective in detecting a broad range of attack types while maintaining a manageable false-positive rate. While Isolation Forest achieved strong precision (78.56%), it underperformed in recall, making it more suitable for applications where false positives must be minimized. LOF delivered a balanced but less robust performance owing to its higher false-alarm rate.

Keywords

Supporting Institution

N/A

Project Number

N/A

Thanks

Thanks in advance.

References

  1. [1] Tatineni, S. 2021. Machine learning approaches for anomaly detection in cybersecurity: a comparative analysis. International Journal of Computer Engineering and Technology, 12(1), 42–50.
  2. [2] Segurola-Gil, L., Moreno-Moreno, M., Irigoien, I. ve diğerleri. 2024. Unsupervised anomaly detection approach for cyberattack identification. International Journal of Machine Learning and Cybernetics, 15, 5291–5302.
  3. [3] Chandola, V., Banerjee, A., Kumar, V. 2009. Anomaly detection: A survey. ACM Computing Surveys, 41(3), 1–58. https://doi.org/10.1145/1541880.1541882
  4. [4] Liu, F. T., Ting, K. M., Zhou, Z. H. 2012. Isolation-based anomaly detection. ACM Transactions on Knowledge Discovery from Data, 6(1), 1–39.
  5. [5] Breunig, M. M., Kriegel, H.-P., Ng, R. T., Sander, J. 2000. LOF: Identifying density-based local outliers. ACM SIGMOD Record, 29(2), 93–104.
  6. [6] Schölkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., Williamson, R. C. 2001. Estimating the support of a high-dimensional distribution. Neural Computation, 13(7), 1443–1471.
  7. [7] Handa, A., Sharma, A., Shukla, S. K. 2019. Machine learning in cybersecurity: a review. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 9(4), e1306.
  8. [8] Adiban, M., Siniscalchi, S. M., Salvi, G. 2023. A step-by-step training method for multi-generator GANs with application to anomaly detection and cybersecurity. Neurocomputing, 537, 296–308.

Details

Primary Language

English

Subjects

Artificial Intelligence (Other)

Journal Section

Research Article

Publication Date

April 24, 2026

Submission Date

May 21, 2025

Acceptance Date

March 18, 2026

Published in Issue

Year 2026 Volume: 30 Number: 1

APA
Alhajahmad, B. (2026). Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM. Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü Dergisi, 30(1), 29-42. https://doi.org/10.19113/sdufenbed.1703191
AMA
1.Alhajahmad B. Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM. J. Nat. Appl. Sci. 2026;30(1):29-42. doi:10.19113/sdufenbed.1703191
Chicago
Alhajahmad, Bashar. 2026. “Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM”. Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü Dergisi 30 (1): 29-42. https://doi.org/10.19113/sdufenbed.1703191.
EndNote
Alhajahmad B (April 1, 2026) Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM. Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü Dergisi 30 1 29–42.
IEEE
[1]B. Alhajahmad, “Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM”, J. Nat. Appl. Sci., vol. 30, no. 1, pp. 29–42, Apr. 2026, doi: 10.19113/sdufenbed.1703191.
ISNAD
Alhajahmad, Bashar. “Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM”. Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü Dergisi 30/1 (April 1, 2026): 29-42. https://doi.org/10.19113/sdufenbed.1703191.
JAMA
1.Alhajahmad B. Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM. J. Nat. Appl. Sci. 2026;30:29–42.
MLA
Alhajahmad, Bashar. “Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM”. Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü Dergisi, vol. 30, no. 1, Apr. 2026, pp. 29-42, doi:10.19113/sdufenbed.1703191.
Vancouver
1.Bashar Alhajahmad. Learning from the Normal: Anomaly-Based Intrusion Detection Using Isolation Forest, LOF, and One-Class SVM. J. Nat. Appl. Sci. 2026 Apr. 1;30(1):29-42. doi:10.19113/sdufenbed.1703191

e-ISSN :1308-6529
Linking ISSN (ISSN-L): 1300-7688

All published articles in the journal can be accessed free of charge and are open access under the Creative Commons CC BY-NC (Attribution-NonCommercial) license. All authors and other journal users are deemed to have accepted this situation. Click here to access detailed information about the CC BY-NC license.