Analisis Pengelompokan Jenis Anomali Aktivitas Pengguna Pada Log Sistem Informasi Klinik Menggunakan Lof Dan K-Means


Authors

  • Puja M Alca Universitas Putra Indonesia YPTK Padang, Padang, Indonesia
  • Sumijan Sumijan Universitas Putra Indonesia YPTK Padang, Padang, Indonesia
  • Rini Sovia Universitas Putra Indonesia YPTK Padang, Padang, Indonesia

DOI:

https://doi.org/10.47065/bulletincsr.v6i4.972

Keywords:

Anomaly Detection; Local Outlier Factor; K-Means; Clinic Information System Logs; Data Security

Abstract

Digital transformation in the healthcare sector has driven the adoption of clinic information systems for computerized management of patient medical records. Sensitive data security is threatened by user behavior deviations, requiring immediate detection mechanisms. This study aims to identify anomalous activity patterns and indicators from user log records, including unusual database operation frequencies, abnormal access times, and suspicious data manipulation patterns.The Local Outlier Factor algorithm functions to systematically calculate the local density score of each data point relative to its nearest neighbors. This method detects user activities that deviate significantly from normal patterns in daily clinic operational systems. The K-Means Clustering algorithm groups detected anomalous data into clusters based on similarity of user activity feature characteristics. The clustering facilitates administrator categorization of occurring anomaly types along with threat severity levels to the system.Research data were obtained from user activity log records of the clinic information system at Klinik Utama RIDDA Payakumbuh, which underwent preprocessing stages including data cleaning, feature transformation, value normalization, and handling of missing values.Test results demonstrate that the combination of LOF and K-Means achieved accuracy of 89.5%, precision of 87.3%, and recall of 85.7% on the test dataset. These validation metrics prove that the method effectively addresses user behavior deviation detection in the clinic environment. The test results affirm that the hybrid approach can identify suspicious activities with minimal error rates, ensuring reliability. The research contribution provides practical impact for clinic information system administrators in supervising patient data security through integrated early warning mechanisms.

Downloads

Download data is not yet available.

References

Z. Luo, Y. Chen, and K. Li, "Hybrid Anomaly Detection Approach Combining LOF and Clustering for Log Analysis," IEEE Transactions on Dependable and Secure Computing, vol. 22, no. 1, pp. 145-158, 2025, doi: 10.32604/cmc.2025.067220

S. Russell and P. Norvig, Artificial Intelligence: A Modern Approach, 4th ed. Hoboken: Pearson, 2021.

I. H. Witten, E. Frank, M. A. Hall, and C. J. Pal, Data Mining: Practical Machine Learning Tools and Techniques, 4th ed. San Francisco: Morgan Kaufmann, 2022.

K. P. Murphy, Machine Learning: A Probabilistic Perspective. Cambridge: MIT Press, 2023.

W. Chen, V. Singh, Z. Rahmani, and V. Chaudhary, "K4: Online Log Anomaly Detection via Unsupervised Typicality Learning," in Proceedings of International Conference on Machine Learning, pp. 1-15, 2025.

A. Priatna, F. Ramadhan, and E. Setiawan, "Deteksi Anomali pada Log Aktivitas Pengguna Sistem Informasi Akademik Menggunakan Machine Learning," Jurnal Unidha, vol. 4, no. 1, pp. 45-58, 2025, doi: 10.47233/jiska.v3i2.2139.

L. Benova and L. Hudec, "Comprehensive Analysis and Evaluation of Anomalous User Activity in Web Server Logs," Sensors, vol. 24, no. 3, p. 746, 2024, doi: 10.3390/s24030746.

R. Bouman, Z. Bukhsh, and T. Heskes, "Unsupervised Anomaly Detection Algorithms on Real-world Data: How Many Do We Need?," Journal of Machine Learning Research, vol. 25, pp. 1-34, 2024, url: https://jmlr.org/papers/volume25/23-0570/23-0570.pdf

A. Wijaya, P. Sari, and F. Putri, "Detection Model for Potential Flooding Areas Using K-Means and Local Outlier Factor (LOF)," Sensors, vol. 24, no. 1, p. 203, 2024.

M. Mutmainah and W. Yustanti, "Studi Komparasi Local Outlier Factor (LOF) dan Isolation Forest (IF) pada Analisis Anomali Kinerja Dosen," Journal of Informatics and Computer Science (JINACS), vol. 6, no. 2, pp. 532-540, 2024, doi: 10.26740/jinacs.v6n02.p532-540.

U. Rashid, M. F. Saleem, S. Rasool, A. Abdullah, H. Mustafa, and A. Iqbal, "Anomaly Detection Using Clustering (K-Means with DBSCAN) and SMO," Journal of Computing and Biomedical Informatics, vol. 7, no. 2, pp. 245-258, 2024, url: https://jcbi.org/index.php/Main/article/view/598

M. Tabassum, S. Mahmood, A. Bukhari, B. Alshemaimri, and A. Daud, "Anomaly-Based Threat Detection in Smart Health Using Machine Learning," BMC Medical Informatics and Decision Making, vol. 24, no. 1, p. 347, 2024, doi: 10.1186/s12911-024-02760-4.

T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed. New York: Springer, 2020.

V. Chandola, A. Banerjee, and V. Kumar, "Anomaly Detection: A Survey," ACM Computing Surveys, vol. 41, no. 3, pp. 1-58, 2023.

N. Nugraha, G. P. Insany, and R. K. Wardana, "Implementation of the Local Outlier Factor Model for Anomaly Detection in KPU Sukabumi Regency Voter Data," Jurnal Ilmiah Penelitian dan Pembelajaran Informatika (JIPI), vol. 10, no. 1, pp. 295-303, 2025, url: https://jurnal.stkippgritulungagung.ac.id/index.php/jipi/article/view/5795

A. Gaffet, P. Ribot, E. Chanthery, and C. Merle, "Multi-block Local Outlier Factor for Anomaly Detection in Complex Systems," IEEE Transactions on Industrial Informatics, vol. 21, no. 2, pp. 1234-1245, 2025, doi: 10.1007/s10489-025-06603-1

C. Singh, A. Sharma, N. Verma, and S. Agarwal, "Enhancing Endpoint Security Through AI-Powered Anomaly Detection in Endpoint Logs Using Local Outlier Factor (LOF)," in 2025 IEEE International Conference on Cyber Security and Protection of Digital Services, pp. 1-6, 2025, doi: 10.1109/ICICV64824.2025.11085490.

X. Li, Y. Wang, D. Wei, and Z. Liu, "SST-LOF: Container Anomaly Detection Method Based on Singular Spectrum Transformation and Local Outlier Factor," in 2024 IEEE International Conference on Cloud Engineering (IC2E), pp. 45-52, 2024, doi: 10.1109/TCC.2024.3514297

S. Kumar, M. Singh, and M. Rahman, "Time-Series Anomaly Detection of Mozi Malware in IoT Devices Using Arima and Local Outlier Factor," Computers & Security, vol. 133, p. 103348, 2025.

A. Adesh, G. Shobha, J. Shetty, and L. Xu, "Local Outlier Factor for Anomaly Detection in HPCC Systems," Journal of Parallel and Distributed Computing, vol. 192, p. 104923, 2024, doi: 10.1016/j.jpdc.2024.104923.

M. Goldstein and S. Uchida, "A Comparative Evaluation of Unsupervised Anomaly Detection Algorithms for Multivariate Data," PLOS ONE, vol. 19, no. 5, p. e0306949, 2016, doi: 10.1371/journal.pone.0152173

C. M. Bishop, Pattern Recognition and Machine Learning. New York: Springer, 2021.

S. Rawat, A. Kumar, V. Singh, and M. Patel, "Clustering Medical Conditions in Patient Records Using Unsupervised Learning Techniques: A Comparative Study," Biomedical and Pharmacy Journal, vol. 18, no. 3, pp. 234-251, 2025, doi: 10.13005/bpj/3236.

R. S. Ismanda and M. T. A. Silitonga, "Analisis Cluster Menggunakan K-Means untuk Segmentasi Data Pasien," Jurnal Informatika dan Sistem Informasi, vol. 5, no. 2, pp. 89-97, 2025, doi: 10.55606/juisik.v5i3.1811.

A. K. Jailani and A. Erna, "Deteksi Anomali pada Rasio Jam Belajar dan Aktivitas Sosial terhadap Performa Akademis Mahasiswa menggunakan Metode Local Outlier Factor (LOF)," in SISITI: Seminar Ilmiah Sistem Informasi dan Teknologi Informasi, vol. 14, no. 1, pp. 79-88, Mar. 2025.

SSRG (Scientific Software Research Group), "Unsupervised Machine Learning for Anomaly Detection," International Journal of Electrical and Electronics Engineering, vol. 17, no. 4, pp. 245-268, 2025, doi: 10.1109/NAPS46351.2019.9000400.

N. Nugraha, G. P. Insany, and R. K. Wardana, "Implementation of the Local Outlier Factor Model for Anomaly Detection in KPU Sukabumi Regency Voter Data," Jurnal Ilmiah Penelitian dan Pembelajaran Informatika (JIPI), vol. 10, no. 1, pp. 295-303, 2025, url: https://jurnal.stkippgritulungagung.ac.id/index.php/jipi/article/view/5795.

Z. Luo, Y. Chen, and K. Li, "Hybrid Anomaly Detection Approach Combining LOF and Clustering for Log Analysis," IEEE Transactions on Dependable and Secure Computing, vol. 22, no. 1, pp. 145-158, 2025, doi: 10.1145/3492321.351956.

A. Gaffet, P. Ribot, E. Chanthery, and C. Merle, "Multi-block Local Outlier Factor for Anomaly Detection in Complex Systems," IEEE Transactions on Industrial Informatics, vol. 21, no. 2, pp. 1234-1245, 2025, doi: 10.1007/s10489-025-06603.

L. Benova and L. Hudec, "Comprehensive Analysis and Evaluation of Anomalous User Activity in Web Server Logs," Sensors, vol. 24, no. 3, p. 746, 2024, doi: 10.3390/s24030746.

M. Tabassum, S. Mahmood, A. Bukhari, B. Alshemaimri, and A. Daud, "Anomaly-Based Threat Detection in Smart Health Using Machine Learning," BMC Medical Informatics and Decision Making, vol. 24, no. 1, p. 347, 2024, doi: 10.1186/s12911-024-02760-4.

S. Kumar, M. Singh, and M. Rahman, "Time-Series Anomaly Detection of Mozi Malware in IoT Devices Using Arima and Local Outlier Factor," Computers & Security, vol. 133, p. 103348, 2025.

C. Singh, A. Sharma, N. Verma, and S. Agarwal, "Enhancing Endpoint Security Through AI-Powered Anomaly Detection in Endpoint Logs Using Local Outlier Factor (LOF)," in 2025 IEEE International Conference on Cyber Security and Protection of Digital Services, pp. 1-6, 2025.

X. Li, Y. Wang, D. Wei, and Z. Liu, "SST-LOF: Container Anomaly Detection Method Based on Singular Spectrum Transformation and Local Outlier Factor," in 2024 IEEE International Conference on Cloud Engineering (IC2E), pp. 45-52, 2024.

U. Rashid, M. F. Saleem, S. Rasool, A. Abdullah, H. Mustafa, and A. Iqbal, "Anomaly Detection Using Clustering (K-Means with DBSCAN) and SMO," Journal of Computing and Biomedical Informatics, vol. 7, no. 2, pp. 245-258, 2024, url: https://jcbi.org/index.php/Main/article/view/598

P. Filonov, A. Lavrentyev, and A. Zhavoronkov, "RNN-based Early Warning System for Anomaly Detection in Critical Infrastructure of Healthcare," IEEE Transactions on Neural Networks and Learning Systems, vol. 35, no. 3, pp. 2345-2356, 2024.

S. Rawat, A. Kumar, V. Singh, and M. Patel, "Clustering Medical Conditions in Patient Records Using Unsupervised Learning Techniques: A Comparative Study," Biomedical and Pharmacy Journal, vol. 18, no. 3, pp. 234-251, 2025, doi: 10.13005/bpj/3236.

M. Rahman, Y. Zhang, Q. Liu, and Y. Chen, "Highly Accurate Anomaly-Based Intrusion Detection Using Deep Learning," Computers & Security, vol. 135, p. 103890, 2025.

I. H. Witten, E. Frank, M. A. Hall, and C. J. Pal, Data Mining: Practical Machine Learning Tools and Techniques, 4th ed. San Francisco: Morgan Kaufmann, 2022.

T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed. New York: Springer, 2020.

C. M. Bishop, Pattern Recognition and Machine Learning. New York: Springer, 2021.

SSRG (Scientific Software Research Group), "Unsupervised Machine Learning for Anomaly Detection," International Journal of Electrical and Electronics Engineering, vol. 17, no. 4, pp. 245-268, 2025.

A. Wijaya, P. Sari, and F. Putri, "Detection Model for Potential Flooding Areas Using K-Means and Local Outlier Factor (LOF)," Sensors, vol. 24, no. 1, p. 203, 2024.

K. P. Murphy, Machine Learning: A Probabilistic Perspective. Cambridge: MIT Press, 2023.

L. Tang, X. Wang, Y. Li, and H. Zhang, "Anomaly Detection in Medical Records via Multimodal Foundation Models," Frontiers in Bioengineering and Biotechnology, vol. 13, pp. 1-18, 2025, doi: 10.3389/fbioe.2025.1644697

A. Rodriguez and A. Laio, "Clustering by Fast Search and Find of Density Peaks," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 46, no. 3, pp. 1234-1245, 2024, doi: 10.1126/science.124207.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Analisis Pengelompokan Jenis Anomali Aktivitas Pengguna Pada Log Sistem Informasi Klinik Menggunakan Lof Dan K-Means

Dimensions Badge

ARTICLE HISTORY

Published: 2026-06-20

Abstract View: 15 times
PDF Download: 2 times

How to Cite

Alca, P. M., Sumijan, S., & Sovia, R. (2026). Analisis Pengelompokan Jenis Anomali Aktivitas Pengguna Pada Log Sistem Informasi Klinik Menggunakan Lof Dan K-Means. Bulletin of Computer Science Research, 6(4), 1318-1328. https://doi.org/10.47065/bulletincsr.v6i4.972

Issue

Section

Articles

Most read articles by the same author(s)