Image Forensics Analysis of the Authenticity of Digital Payment Evidence using the K-Nearest Neighbor Algorithm

Feriyan Agusta, Pratomo Setiaji, Wiwit Agus Triyanto

Abstract


The rapid growth of digital transactions has also increased the risk of digital payment evidence forgery, such as screenshot manipulation or digital image editing. This study aims to develop an automated authenticity validation system for digital payment evidence by integrating Image Processing, Image Forensics, and Optical Character Recognition (OCR) technologies. The processing pipeline begins with image preprocessing, followed by forensic feature extraction and OCR-based text analysis, which are then classified using the K-Nearest Neighbor (KNN) algorithm.
This study evaluates 15 experimental scenarios based on combinations of training and testing data ratios (90:10, 80:20, 70:30, 60:40, and 50:50) and random state values (42, 32, and 22). Model performance is assessed using accuracy, precision, recall, and F1-score metrics across a range of k values from 1 to 15. The results indicate that the optimal performance is achieved at k = 7, with an accuracy of 97.1%. The proposed system is able to efficiently distinguish between authentic and manipulated digital payment evidence. The system is implemented as an Android application that allows users to upload payment evidence via the device camera or gallery, after which the system automatically analyzes its authenticity. The findings demonstrate that the integration of image forensic techniques and the K-Nearest Neighbor (KNN) algorithm effectively detects indications of manipulation in digital payment evidence and enhances the efficiency of the verification process within the digital financial services ecosystem.

Keywords


digital payment proof; fraud detection; image forensics; k-nearest neighbor; optical character recognition

Full Text:

PDF

References


H. H. Nawawi, “Penggunaan E-Wallet di Kalangan Mahasiswa,” Emik, Vol. 3, No. 2, pp. 189–205, 2020.

G. Newswire, “Fraud and Security in Global Online Payments Market 2024 – Global B2C E-Commerce Fraud Losses to Grow by +40% CAGR from 2023 to 2028,” Fintech Futures, 2024. .

N. Dekker, “Staggering Payment Fraud Statistics You Need to Know,” Eftsure, 2025. .

Alfin Fanther, “QRIS: Indonesia’s Financial Technology that Shakes the World,” Medium, 2025. .

H. Mulyawan, M. Z. H. Samsono, and Setiawardhana, “Identifikasi dan Tracking Objek berbasis Image,” Identifikasi dan Track. Objek berbasis Image Process. Secara Real Time, pp. 1–5, 2011, [Online]. Available: http://repo.pens.ac.id/1324/1/Paper_TA_MBAH.pdf.

L. A. Permana, F. Hakim, Y. A. Subhi, and P. Rivaldo, “Analisis Forensik Keaslian Gambar menggunakan Autopsy,” J. JOCOTIS-Journal SCI. Inform. Robot. E, Vol. 1, No. 2, pp. 39–45, 2023, [Online]. Available: https://jurnal.ittc.web.id/index.php/jct/.

S. Muharom, “Pengenalan Nomor Ruangan menggunakan Kamera berbasis OCR dan Template Matching,” Inf. J. Ilm. Bid. Teknol. Inf. dan Komun., Vol. 4, No. 1, pp. 28–32, 2019, DOI: 10.25139/inform.v3i2.1010.

I. Irwansyah and H. Yudiastuti, “Analisis Digital Forensik Rekayasa Image menggunakan Jpegsnoop dan Forensically Beta,” J. Ilm. Matrik, Vol. 21, No. 1, pp. 54–63, 2019, DOI: 10.33557/jurnalmatrik.v21i1.518.

H. A. Raheem, M. A. Mohammed, and A. S. H. M. Ali, “Enhancing the Image Forgery Detection based Machine Learning Approach using Multiple Datasets,” Eng. Technol. Appl. Sci. Res., Vol. 15, No. 3, pp. 22739–22745, 2025.

E. Nowroozi, A. Dehghantanha, R. M. Parizi, and K.-K. R. Choo, “A Survey of Machine Learning Techniques in Adversarial Image Forensics,” Comput. Secur., Vol. 100, p. 102092, 2021.

I. T. Ahmed, B. T. Hammad, and N. Jamil, “Forgery Detection Algorithm based on Texture Features,” Indones. J. Electr. Eng. Comput. SCI., Vol. 24, No. 1, pp. 226–235, 2021.

E. A. L. M. Btoush, X. Zhou, R. Gururajan, K. C. Chan, R. Genrich, and P. Sankaran, “A Systematic Review of Literature on Credit Card Cyber Fraud Detection using Machine and Deep Learning,” PeerJ Comput. SCI., Vol. 9, p. e1278, 2023.

Ajay N. Upadhyaya, “Enhancing Credit Card Fraud Detection with K-Nearest Neighbours (KNN): A Machine Learning Approach,” J. Inf. Syst. Eng. Manag., Vol. 10, No. 2, pp. 498–506, 2025, DOI: 10.52783/jisem.v10i2.2388.

N. Malini and M. Pushpa, “Investigation of Credit Card Fraud Recognition Techniques based on KNN and HMM,” in IJCA Proceedings on International Conference on Communication, Computing and Information Technology ICCCMIT, 2017, Vol. 1, pp. 9–13.

S. A. Wibowo and K. Usman, “Voice Activity Detection G729B Improvement Technique using K-Nearest Neighbor Method,” 2010 Int. Conf. Distrib. Fram. Multimed. Appl. DFmA 2010, No. January 2010, 2010, DOI: 10.13140/2.1.4362.5764.




DOI: https://doi.org/10.32520/stmsi.v15i1.5728

Article Metrics

Abstract view : 4 times
PDF - 1 times

Refbacks

  • There are currently no refbacks.


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