Perbandingan Kinerja Isolation Forest Dan Local Outlier Factor (LOF) Dalam Deteksi Anomali Transaksi Digital
DOI:
https://doi.org/10.36050/5w76ab74Keywords:
anomaly detection, , isolation forest, local outlier factor, fraud detection, imbalanced dataset, digital transactions, unsupervised learningAbstract
The rapid growth of digital transactions has increased the risk of anomalous activities such as fraud, particularly in highly imbalanced datasets where fraudulent transactions are significantly fewer than normal transactions. This imbalance presents a major challenge in anomaly detection, as models tend to be biased toward the majority class. This study aims to compare the performance of Isolation Forest and Local Outlier Factor (LOF) algorithms in detecting anomalies in digital transaction data.The research adopts an experimental approach using the Credit Card Fraud Detection dataset, which consists of 284,807 transactions, including 492 fraudulent cases. Data preprocessing involves feature normalization using StandardScaler, followed by a stratified train-test split with a ratio of 70:30. Model evaluation is conducted using confusion matrix, precision, recall, and F1-score metrics.The results show that Isolation Forest outperforms LOF. Isolation Forest successfully detects 37 out of 148 fraudulent transactions with a precision of 0.2824, recall of 0.25, and F1-score of 0.2652. In contrast, LOF detects only 2 fraudulent transactions, with a precision of 0.0137, recall of 0.0135, and F1-score of 0.0136. These findings indicate that isolation-based approaches are more effective and robust than density-based methods in handling highly imbalanced datasets.
References
[1] Y. Chen, C. Zhao, Y. Xu, C. Nie, and Y. Zhang, “Deep Learning in Financial Fraud Detection: Innovations, Challenges, and Applications,” Data Science and Management, Aug. 2025, doi: 10.1016/j.dsm.2025.08.002.
[2] B. Fu, Y. Tong, Y. Li, Z. Tang, Z. Shang, and A. Li, “Financial Fraud Anomaly Detection of Listed Companies Based on Probabilistic Perspective Machine Learning Models,” in Procedia Computer Science, Elsevier B.V., 2025, pp. 979–986. doi: 10.1016/j.procs.2025.08.121.
[3] S. O. Pinto and V. A. Sobreiro, “Literature review: Anomaly detection approaches on digital business financial systems,” Digital Business, vol. 2, no. 2, Jan. 2022, doi: 10.1016/j.digbus.2022.100038.
[4] M. S. Mia, S. Roy, M. A. Ihsan, S. Hossain, and M. K. U. Ahamed, “Data-driven financial fraud detection using hybrid artificial and quantum intelligence,” BenchCouncil Transactions on Benchmarks, Standards and Evaluations, vol. 5, no. 4, Dec. 2025, doi: 10.1016/j.tbench.2025.100252.
[5] E. B. Satoto and Y. G. Wibowo, “Implementation of Artificial Intelligence in Fraud Detection and Prevention Through a Systematic Literature Review and Its Implications for the Financial Sector,” Ilomata International Journal of Management, vol. 7, no. 1, pp. 460–483, Jan. 2026, doi: 10.61194/ijjm.v7i1.1919.
[6] Shanaa Mohammad and Abdallah sherief, “A Hybrid Anomaly Detection Framework Combining,” Feb. 2026.
[7] E. Luzio and M. A. Ponti, “Real-Time Anomaly Detection with Synthetic Anomaly Monitoring (SAM),” Feb. 2025
[8] M. Sabuhi, M. Zhou, C.-P. Bezemer, and P. Musilek, “Applications of Generative Adversarial Networks in Anomaly Detection: A Systematic Literature Review,” Oct. 2021.
[9] H. Xu, G. Pang, Y. Wang, and Y. Wang, “Deep Isolation Forest for Anomaly Detection,” Jun. 2023, doi: 10.1109/TKDE.2023.3270293.
[10] S. A. Okolie, C. A. Amadi, J. N. Odii, E. C. Nwokorie, and U. ․. C. Onyemauche, “Anomaly detection in heterogeneous cybersecurity data,” Franklin Open, vol. 13, Dec. 2025, doi: 10.1016/j.fraope.2025.100426.
[11] E. F. Agyemang, “Anomaly detection using unsupervised machine learning algorithms: A simulation study,” Sci. Afr., vol. 26, Dec. 2024, doi: 10.1016/j.sciaf.2024.e02386.
[12] A. Goodge, B. Hooi, S. K. Ng, and W. S. Ng, “LUNAR: Unifying Local Outlier Detection Methods via Graph Neural Networks,” Dec. 2021.
[13] T. Wu and Y. Wang, “Locally Interpretable One-Class Anomaly Detection for Credit Card Fraud Detection,” Jun. 2022.
[14] M. De la Cruz Cabello, T. P. Sales, and M. R. Machado, “Log anomaly detection in AIOps: A real-world implementation using Large Language Models,” Systems and Soft Computing, vol. 8, Jun. 2026, doi: 10.1016/j.sasc.2026.200475.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Sri Hartati, Defi Pujianto, Kadarsih (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.






