Online examinations are widely used in colleges today, but maintaining fairness during these exams is still a difficult task. Students writing exams from home can easily take help from others, use mobile phones, or look at notes. Most existing platforms only show questions and collect answers. They do not give the examiner clear proof of what happened during the exam session. In this project we have developed an AI-based online examination system that monitors the student in real time. The system continuously checks the webcam. If more than one face appears, the exam is terminated immediately and a warning is shown. If any electronic gadget such as a mobile phone or earphones is detected, a snapshot is taken and stored as evidence. The system also watches the student’s head movement. If the student keeps looking away from the screen, a notification is displayed. Common keyboard shortcuts like Copy, Paste and Escape are completely blocked during the exam. The platform has three types of users – Student, Examiner and Admin. Students can register and log in directly. Examiners can also register, but their account is activated only after the Admin approves it. This is done to prevent misuse of the platform. The Admin has full authority over examiner approvals. Examiners can create questions with four options and mark the correct answer while creating the exam. They can also set a fixed start and end time for the exam. Students can write the exam only within that time window. After the exam ends, students get their results immediately. The examiner can later review all the snapshots and generate a PDF report of the evidence. The system is developed using Python and Flask on the backend and normal web technologies for the frontend. The main aim of this work is to help examiners by collecting clear evidence instead of forcing them to watch long video recordings of every student.
Introduction
The text describes the development of a Web-Based Online Examination and AI-Powered Proctoring System designed to prevent cheating and maintain academic integrity during online examinations.
Online examinations are convenient because students can take tests from home, but they also create opportunities for malpractice, such as using mobile phones, opening other browser tabs, wearing earphones, looking at notes, or getting help from another person. Traditional online examination platforms often lack proper monitoring, while reviewing continuous video recordings of every student is time-consuming for examiners.
To overcome these problems, the proposed system uses webcam monitoring and computer vision techniques to detect suspicious activities in real time. Whenever a possible violation is detected, the system captures and saves a snapshot as evidence for later review.
1. Problem Statement
Existing online examination systems do not provide sufficient real-time monitoring or clear evidence of malpractice. Continuous video recording is difficult to review, and weak user management can allow unauthorized people to create examiner accounts.
Therefore, there is a need for a secure online examination platform that can automatically detect suspicious activities, collect evidence, manage user permissions, and control examination timings.
2. Main Objectives
The project has the following objectives:
Develop an online examination platform with separate student, examiner, and admin accounts.
Introduce admin approval for examiner registration.
Allow examiners to create multiple-choice questions with four options and correct answers.
Provide fixed examination start and end times.
Detect multiple faces and terminate the exam if another person is detected.
Detect electronic gadgets such as mobile phones and earphones.
Monitor head movements and identify when students look away from the screen.
Restrict Copy, Paste, and Escape keyboard shortcuts.
Store snapshots and logs of suspicious activities.
Generate PDF reports containing examination evidence for examiner review.
3. System Architecture
The system follows a client-server architecture with three main user roles:
Student: Registers, logs in, attends examinations, and receives results.
Admin: Approves or rejects examiner registration requests.
The webcam captures the student's video, which is processed using computer vision techniques. Browser activities and keyboard restrictions are managed through JavaScript, while the Python Flask backend handles authentication, examination management, and evidence storage.
4. Main Features
User Registration and Login: Students can register directly, while examiners require admin approval before accessing the platform.
Question Creation: Examiners can create questions with four options and specify the correct answer.
Timed Examinations: Students can attend exams only within the scheduled start and end times. The system automatically closes expired examinations.
Multiple Face Detection: If more than one face is detected, the examination is immediately terminated, and a snapshot is saved.
Electronic Gadget Detection: The system detects objects such as mobile phones and earphones and captures evidence.
Head Pose Detection: The system monitors head orientation and warns students when they repeatedly look away from the screen.
Keyboard Shortcut Blocking: Copy, Paste, and Escape keys are disabled to reduce opportunities for malpractice.
Evidence Collection and PDF Reports: All suspicious activities are recorded with snapshots, timestamps, and student and examination details. Examiners can review and download PDF reports.
5. Technologies Used
The project uses the following technologies:
Technology
Purpose
HTML, CSS, JavaScript
Frontend design and browser monitoring
Python
Backend processing and system logic
Flask
Web application framework
OpenCV
Face detection and image processing
MediaPipe
Face and head pose monitoring
Object Detection Model
Detecting mobile phones and earphones
Database
Storing user details, exams, logs, and evidence
6. Working Process
The system works through the following steps:
Students register and log in.
Examiners register and wait for admin approval.
Approved examiners create questions and schedule examinations.
Students access examinations within the permitted time.
Webcam monitoring and keyboard restrictions begin.
The system detects multiple faces, electronic gadgets, and unusual head movements.
Suspicious activities are recorded through snapshots and logs.
If multiple faces are detected, the examination is terminated.
After submission, students receive their results immediately.
Examiners review the collected evidence and generate PDF reports.
7. Results and Testing
The prototype has been developed, and its main functionalities have been tested successfully. Student registration and login, examiner approval, question creation, and timed examinations are working. Multiple-face detection has also been tested, and the system successfully terminates the examination when more than one face is detected.
8. Overall Conclusion
The project aims to provide a secure, reliable, and efficient online examination platform by combining artificial intelligence, computer vision, and role-based access control. Its main strength is the ability to monitor students in real time, automatically identify suspicious activities, capture evidence, and generate reports for examiners.
Conclusion
In this project we have developed an AI-based online examination system that focuses on real-time malpractice detection along with proper user management. The system supports student registration and login, examiner registration with Admin approval, timed examinations, question creation with correct answer marking, immediate result generation, multiple face detection with exam termination, gadget detection with snapshots, looking-away notifications, keyboard shortcut blocking, evidence review and PDF report generation.
The system is built with Python and Flask and uses computer vision techniques for monitoring. While the current version is functional, there is still scope for improvement. In future we plan to improve the accuracy of object detection, make the monitoring more robust under different lighting conditions, and test the system with a larger number of students. We also plan to add more detailed analytics for the examiners and improve the Admin dashboard.
Overall, this project shows that a practical and useful proctoring system can be built by combining face detection, object detection, head pose estimation, browser monitoring and proper role-based access control in one platform.
References
[1] Y. Atoum, L. Chen, A. X. Liu, S. D. H. Hsu, and X. Liu, “Automated online exam proctoring,” IEEE Transactions on Multimedia, vol. 19, no. 7, pp. 1609–1624, Jul. 2017, doi: 10.1109/TMM.2017.2656064.
[2] S. Prathish, A. Narayanan S, and K. Bijlani, “An intelligent system for online exam monitoring,” in Proc. Int. Conf. Information Science (ICIS), Kochi, India, 2016.
[3] C. S. Indi, V. Pritham, V. Acharya, and K. Prakasha, “Detection of malpractice in e-exams by head pose and gaze estimation,” International Journal of Emerging Technologies in Learning (iJET), vol. 16, no. 8, pp. 47–60, 2021, doi: 10.3991/ijet.v16i08.15995.
[4] S. Kaddoura and A. Gumaei, “Towards effective and efficient online exam systems using deep learning-based cheating detection approach,” Intelligent Systems with Applications, vol. 16, Art. no. 200153, Nov. 2022.
[5] A. Nigam, R. Pasricha, T. Singh, and P. Churi, “A systematic review on AI-based proctoring systems: Past, present and future,” Education and Information Technologies, vol. 26, pp. 6421–6445, 2021, doi: 10.1007/s10639-021-10597-x.
[6] S. Coghlan, T. Miller, and J. Paterson, “Good proctor or ‘Big Brother’? Ethics of online exam supervision technologies,” Philosophy & Technology, vol. 34, pp. 1581–1606, 2021.
[7] J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You only look once: Unified, real-time object detection,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2016, pp. 779–788.
[8] P. Viola and M. Jones, “Rapid object detection using a boosted cascade of simple features,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2001, pp. I-511–I-518.
[9] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick, “Microsoft COCO: Common objects in context,” in Proc. European Conf. Computer Vision (ECCV), 2014, pp. 740–755.
[10] G. Jocher, A. Chaurasia, and J. Qiu, “Ultralytics YOLOv8,” 2023. [Online]. Available: https://github.com/ultralytics/ultralytics
[11] G. Bradski, “The OpenCV library,” Dr. Dobb’s Journal of Software Tools, 2000.
[12] M. Swain and D. Ballard, “Color indexing,” International Journal of Computer Vision, vol. 7, no. 1, pp. 11–32, 1991.
[13] A. Bochkovskiy, C.-Y. Wang, and H.-Y. M. Liao, “YOLOv4: Optimal speed and accuracy of object detection,” 2020, arXiv:2004.10934.
[14] T.-Y. Lin, P. Dollár, R. Girshick, K. He, K. Hariharan, and S. Belongie, “Feature pyramid networks for object detection,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2017, pp. 2117–2125.
[15] M. Grinberg, Flask Web Development: Developing Web Applications with Python, 2nd ed. Sebastopol, CA, USA: O’Reilly Media, 2018.