DESIGN AND IMPLEMENTATION OF AN EXAMINATION ANTI-CHEATING SYSTEM IN COMPUTER LABORATORIES BASED ON LIGHTWEIGHT COMPUTER VISION
Keywords:
Lightweight computer vision, Behavior auditing, Face landmarker, Sliding window filterAbstract
With the deep advancement of educational informatization, computer-based examinations in university computer laboratories have become a critical approach for evaluating students' practical skills. However, traditional centralized video invigilation systems impose severe computation and network bandwidth strains, making them impractical for legacy hardware deployments. To address these bottlenecks, this paper designs and implements a lightweight, multi-dimensional behavior auditing invigilation system based on decentralized edge computing. By offloading image capturing, posture estimation, and decision-making workflows entirely onto the localized client side, the proposed system restricts network transmissions to low-frequency, structured text logs, fundamentally eliminating the risk of campus network congestion caused by concurrent high-definition video streaming. Specifically, on the algorithmic layer, the system leverages the native features of the 44 homogeneous transformation matrix from the WebAssembly-accelerated MediaPipe Tasks-Vision framework. It performs inverse kinematics for head yaw and pitch via basic scalar operations in the JavaScript runtime, completely bypassing heavy dependencies such as OpenCV.js. Concurrently, a geometric mathematical model utilizing Euclidean distance ratios of iris and pupil landmarks is established for eye gaze tracking. Furthermore, a dual-layer cooperative anti-false-alarm mechanism integrating spatial directional branching and a temporal sliding window filter is proposed, which smoothly filters out transient physiological noises and benign gestures. Experimental results on a simulated low-end host demonstrate that the system achieves an exceptionally low single-frame computation latency of 0.62 ms and restricts the total memory footprint to 146.5 MB. Under steady-state operations, it reduces the false positive rate (FPR) of environmental and physiological noise to 1.3% while maintaining a high true positive rate (TPR) of 96.3% for actual cheating behaviors. The system exhibits outstanding efficiency, robust anti-interference capability, and high deployment feasibility for inclusive application on legacy educational equipment.References
[1] Lugaresi, Camillo, Tang Jiuqiang, Nash Hadon, et al. Mediapipe: A framework for perceiving and processing reality. Third workshop on computer vision for AR/VR at IEEE computer vision and pattern recognition (CVPR), Long Beach, CA, 2019.
[2] Jakhete Sumitra A, Nilima Kulkarni. A comprehensive survey and evaluation of mediapipe face mesh for human emotion recognition. 2024 8th International Conference on Computing, Communication, Control and Automation (ICCUBEA), IEEE, 2024.
[3] Haas, Andreas, Rossberg Andreas, Schuff Derek L, et al. Bringing the web up to speed with WebAssembly. Proceedings of the 38th ACM SIGPLAN conference on programming language design and implementation, 2017.
[4] Engel Mychael. Performance Comparison of Tauri and Electron Frameworks in Multiplatform Desktop Application Development, 2026: 3875-3882.
[5] Tiangolo S. (n.d.). FastAPI: FastAPI framework, high performance, easy to learn, fast to code, ready for production. 2026. https://fastapi.tiangolo.com/.
[6] Fette Ian, Alexey Melnikov. The websocket protocol. No. rfc6455, 2011.
[7] Electron contributors. (n.d.). Introduction | Electron. 2026. https://www.electronjs.org/docs/latest.
[8] Electron Core Team. BrowserWindow | Electron, ElectronJS. 2026. https://www.electronjs.org/docs/latest/api/browser-window#winsetkioskflag.
[9] Jennings C, Bruaroey J, Boström H, et al. Media Capture and Streams. W3C Candidate Recommendation Draft. 2025. https://www.w3.org/TR/2025/CRD-mediacapture-streams-20251009/.
[10] GOOGLE LLC. MediaPipe Tasks Vision JavaScript API Document. https://ai.google.dev/edge/api/mediapipe/js/tasks-vision.
[11] Fischler Martin A, Robert C Bolles. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM 24.6, 1981: 381-395.
[12] Szeliski Richard. Computer vision: algorithms and applications. Springer Nature, 2022.