Face Detection Based on Anti-Spoofing with FaceNet Method for Filtering Contract Cheating in Online Exam
Abstract
This study develops a reliable face-based verification system for online examinations by integrating a face recognition model with a blink detection mechanism to minimize the risk of identity fraud, also known as "contract cheating," and static image manipulation. "Contract cheating" refers to the practice where students hire others to complete their exams or assignments, compromising academic integrity. The growing reliance on online exams has raised concerns about the credibility of facial verification, as conventional methods are often vulnerable to spoofing attempts. To address this issue, the proposed system combines FaceNet, a deep learning model for identity recognition, with Dlib’s eye blink detection to provide a stronger layer of protection. The system was evaluated using 5-fold and 10-fold K-fold cross-validation, and additional testing assessed the impact of different video frame rates on performance. The results show that the system performs effectively in identifying legitimate users and detecting spoofing. FaceNet achieved an accuracy of 96.67 percent, outperforming DeepFace, which showed poorer results in precision, recall, and F1 score for some participants. Both models were evaluated on the same dataset, consisting of 150 images. The preprocessing pipeline, including face detection using MTCNN, cropping, and resizing, was applied consistently to both models to ensure a fair comparison of their performance. The system also demonstrated adaptability, achieving correct classifications at both 15 and 30 frames per second. Anti-spoofing tests based on the eye blink detection system detected all real faces, while static images were classified as spoofing. These results confirm that combining face recognition with liveness detection enhances the security of online examination platforms. The findings demonstrate the system's potential to reduce contract cheating and impersonation fraud, making online examinations more credible. Future work may focus on implementing adaptive thresholding for blink detection and integrating multimodal verification techniques to improve robustness across diverse real-world environments.
Keywords
Full Text:
PDFReferences
H. Li, “The Application and Challenges of Different Face Recognition Technologies in the Three Major Fields of Security, Social Media, and Medical Care,” ACE, vol. 95, no. 1, pp. 174–181, Oct. 2024, doi: 10.54254/2755-2721/95/2024CH0051.
L. Alzubaidi et al., “Review of Deep Learning: Concepts, CNN Architectures, Challenges, Applications, Future Directions,” J Big Data, vol. 8, no. 1, p. 53, Mar. 2021, doi: 10.1186/s40537-021-00444-8.
A. Hassanpour and Y. Kowsari, “Lightweight Face Recognition: An Improved MobileFaceNet Model,” Nov. 26, 2023, arXiv: arXiv:2311.15326. doi: 10.48550/arXiv.2311.15326.
D. Purnomo, “Model Prototyping Pada Pengembangan Sistem Informasi,” JIMP, vol. 2, no. 2, Aug. 2017, doi: 10.37438/jimp.v2i2.67.
T. Lancaster and C. Cotarlan, “Contract Cheating by STEM Students Through a File Sharing Website: A Covid-19 Pandemic Perspective,” Int J Educ Integr, vol. 17, no. 1, p. 3, Dec. 2021, doi: 10.1007/s40979-021-00070-0.
A. Pramadi, M. Pali, F. Hanurawan, and A. Atmoko, “Academic Cheating in School: A Process of Dissonance Between Knowledge and Conduct,” Mediterranean Journal of Social Sciences, vol. 8, no. 6, pp. 155–162, Nov. 2017, doi: 10.1515/mjss-2017-0052.
N. Salsabila, A. Siswanto, and L. Bayuaji, “Design of a Smart Home Door Security System with Face Detection and Smart Bell using ESP32-CAM,” in 2025 6th International Conference on Mobile Computing and Sustainable Informatics (ICMCSI), 2025, pp. 124–129. doi: 10.1109/ICMCSI64620.2025.10883160.
M. S. Assiri and M. M. Selim, “A Swin Transformer-Driven Framework for Gesture Recognition to Assist Hearing Impaired People by Integrating Deep Learning with Secretary Bird Optimization Algorithm,” Ain Shams Engineering Journal, vol. 16, no. 6, p. 103383, May 2025, doi: 10.1016/j.asej.2025.103383.
S. R. Akhdan, R. Supriyanti, and A. S. Nugroho, “Face Recognition with Anti Spoofing Eye Blink Detection,” AIP Conference Proceedings, vol. 2482, no. 1, p. 020006, Feb. 2023, doi: 10.1063/5.0113512.
A. H. S. Ganidisastra and Y. Bandung, “An Incremental Training on Deep Learning Face Recognition for M-Learning Online Exam Proctoring,” in 2021 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob), 2021, pp. 213–219. doi: 10.1109/APWiMob51111.2021.9435232.
R. V. Virgil Petrescu, “Face Recognition as a Biometric Application,” Journal of Mechatronics and Robotics, vol. 3, no. 1, pp. 237–257, Jan. 2019, doi: 10.3844/jmrsp.2019.237.257.
N. Dewi and F. Ismawan, “Implementasi Deep Learning Menggunakan Cnn Untuk Sistem Pengenalan Wajah,” FaktorExacta, vol. 14, no. 1, p. 34, Mar. 2021, doi: 10.30998/faktorexacta.v14i1.8989.
V. H and T. G, “Antispoofing in Face Biometrics: A Comprehensive Study on Software-Based Techniques,” Comput Sci Inf Technol, vol. 4, no. 1, pp. 1–13, Mar. 2023, doi: 10.11591/csit.v4i1.pp1-13.
Z. Yu, Y. Qin, X. Li, C. Zhao, Z. Lei, and G. Zhao, “Deep Learning for Face Anti-Spoofing: A Survey,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 5, pp. 5609–5631, 2023, doi: 10.1109/TPAMI.2022.3215850.
F. Schroff, D. Kalenichenko, and J. Philbin, “FaceNet: A unified embedding for face recognition and clustering,” in 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015, pp. 815–823. doi: 10.1109/CVPR.2015.7298682.
S. Qi, X. Zuo, W. Feng, and I. G. Naveen, “Face Recognition Model Based On MTCNN And Facenet,” in 2022 IEEE 2nd International Conference on Mobile Networks and Wireless Communications (ICMNWC), 2022, pp. 1–5. doi: 10.1109/ICMNWC56175.2022.10031806.
X. Li, J. Luo, C. Duan, Y. Zhi, and P. Yin, “Real-Time Detection of Fatigue Driving Based on Face Recognition,” J. Phys.: Conf. Ser., vol. 1802, no. 2, p. 022044, Mar. 2021, doi: 10.1088/1742-6596/1802/2/022044.
C. Q. Lai and S. S. Teoh, “An Efficient Method of HOG Feature Extraction Using Selective Histogram Bin and PCA Feature Reduction,” Adv. Electr. Comp. Eng., vol. 16, no. 4, pp. 101–108, 2016, doi: 10.4316/AECE.2016.04016.
I. G. S. Mas Diyasa, D. A. Prasetya, H. A. Cahyani Kuswardhani, and C. Halim, “Detection of Abnormal Human Sperm Morphology Using Support Vector Machine (SVM) Classification,” Information Technology International Journal, vol. 2, no. 2, pp. 57–63, Nov. 2024, doi: 10.33005/itij.v2i2.36.
M. Afifudin, A. Junaidi, A. N. Sihananto, and I. Fithriyah, “Gwo-Svm: An Approach to Improving Svm Performance Using Grey Wolf Optimizer in Intellectual Disability Classification,” JITET, vol. 12, no. 3S1, Oct. 2024, doi: 10.23960/jitet.v12i3S1.5359.
I. G. S. M. Diyasa, A. H. Putra, M. R. M. Ariefwan, P. A. Atnanda, F. Trianggraeni, and I. Y. Purbasari, “Feature Extraction for Face Recognition Using Haar Cascade Classifier,” in Nusantara Science and Technology Proceedings, Galaxy Science, May 2022. doi: 10.11594/nstp.2022.2432.
C. Meijerink, “Facial Landmark Detection Under Challenging Conditions,” Thesis, University of Twente, Enschede, 2021. [Online]. Available: https://purl.utwente.nl/essays/86867
D. Borza, A. Darabant, and R. Danescu, “Real-Time Detection and Measurement of Eye Features from Color Images,” Sensors, vol. 16, no. 7, p. 1105, July 2016, doi: 10.3390/s16071105.
H. Qi, C. Wu, Y. Shi, X. Qi, K. Duan, and X. Wang, “A Real-Time Face Detection Method Based on Blink Detection,” IEEE Access, vol. 11, pp. 28180–28189, 2023, doi: 10.1109/ACCESS.2023.3257986.
T. Jung, S. Kim, and K. Kim, “DeepVision: Deepfakes Detection Using Human Eye Blinking Pattern,” IEEE Access, vol. 8, pp. 83144–83154, 2020, doi: 10.1109/ACCESS.2020.2988660.
A. Campbell, K. Caudle, and R. C. Hoover, “Examining Intermediate Data Reduction Algorithms for use with t-SNE,” in Proceedings of the 2019 3rd International Conference on Compute and Data Analysis, Kahului HI USA: ACM, Mar. 2019, pp. 36–42. doi: 10.1145/3314545.3314549
DOI: https://doi.org/10.47738/jads.v7i1.1167
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)