Indian colleges still record attendance largely by roll call or paper sheets, which wastes lecture time, allows proxy marking and leaves the data unused until month-end, when struggling students are already far behind. This paper presents NAKSHA, a web system that needs no sensors or dedicated devices. A classroom screen shows a QR code that is replaced about every 20 seconds and expires after 90 seconds; students scan it with their own phones, and each phone is bound to a single roll number on first use. Identity, classroom and time are all decided by a database function, never by the phone. Each check-in updates one attendance table that drives both a live 2.5D map of classroom occupancy, which we describe as a digital shadow rather than a digital twin, and a mentor dashboard that groups students into support-framed bands from the last 14 class days. The system runs entirely on free hosting tiers using React and Supabase with row-level security, stores no protected attributes, and imports students only with recorded consent. We describe the design, the threats it addresses and our functional evaluation, and outline an explainable XGBoost and SHAP model as the next stage.
Introduction
NAKSHA is a privacy-focused, AI-enabled campus attendance and student-support system designed to automate attendance tracking, display classroom occupancy in real time, and identify students who may need academic assistance. Traditional attendance methods, such as roll calls and paper registers, are time-consuming and vulnerable to proxy attendance. Hardware-based solutions like fingerprint scanners and RFID systems can reduce fraud but require additional equipment, maintenance, and, in some cases, sensitive biometric data.
The proposed system uses a tamper-resistant QR code attendance mechanism that works with students’ existing smartphones and classroom screens. It addresses Smart India Hackathon problem statement SIH25102, related to AI-based dropout prediction and counselling, and SIH25016, concerning automated attendance monitoring.
The system has four main features:
Secure QR attendance: The teacher’s screen displays a QR code containing a randomly generated token that refreshes approximately every 20 seconds and expires after 90 seconds. This reduces the risk of attendance being marked using shared or outdated QR images.
Phone binding and validation: Each student’s first successful check-in binds their account to a device identifier. Server-side database functions validate the token, student roll number, device binding, timetable period, and duplicate attendance before recording a check-in.
Live campus map: A real-time 2.5D campus map displays classroom occupancy using colour and bar height. It uses aggregated room-level data rather than revealing individual student locations.
Mentor dashboard: The dashboard calculates attendance over a 14-day window, categorizes students into support bands—Needs Attention, Watching, and On Track—and allows mentors to identify students below the 75% attendance threshold and export records as CSV files.
NAKSHA follows a single-source-of-truth architecture using Supabase, PostgreSQL, PostGIS, authentication, and real-time change feeds. Its frontend is developed using React, Vite, TypeScript, and Tailwind CSS and is hosted on Vercel. The system also includes student attendance pages, timetables, marks management, building floor views, and CSV-based student roster imports.
The system was tested against several potential attacks, including expired QR-code reuse, invalid roll numbers, wildcard inputs, attempts to use another student’s device, duplicate check-ins, and unauthorized dashboard access. The reported tests rejected these attempts or prevented duplicate attendance records. The comparison with traditional attendance methods suggests that NAKSHA can reduce attendance-taking time to approximately one or two minutes for a class of around 60 students while providing live occupancy information and early-warning support.
Privacy and ethics are central to the design. The system uses role-based database access controls, restricts anonymous users to the check-in function, avoids collecting sensitive demographic attributes such as caste, religion, race, and gender, and requires recorded consent when importing students. Attendance bands are intended to support students rather than automatically penalize them, and mentors retain responsibility for deciding what action to take.
Conclusion
NAKSHA shows that a college can obtain fast, tamper-resistant and live attendance using only the phones students already own and the screens already in classrooms, at no recurring cost. The key design choice was to trust nothing that arrives from the phone and to let a single database record drive every view. On that foundation the system offers a campus digital shadow and a support-oriented early warning dashboard, and it is ready for an explainable predictive model.
References
[1] L. P. Macfadyen and S. Dawson, “Mining LMS data to develop an ‘early warning system’ for educators: A proof of concept,” Comput. Educ., vol. 54, no. 2, pp. 588–599, 2010.
[2] P. Cortez and A. Silva, “Using data mining to predict secondary school student performance,” in Proc. FUBUTEC, Porto, Portugal, 2008, pp. 5–12.
[3] H. Yao, D. Lian, Y. Cao, Y. Wu, and T. Zhou, “Predicting academic performance for college students: A campus behavior perspective,” ACM Trans. Intell. Syst. Technol., vol. 10, no. 3, 2019.
[4] V. Das Swain et al., “Leveraging WiFi network logs to infer student collocation and its relationship with academic performance,” EPJ Data Sci., vol. 12, 2023.
[5] T. Chen and C. Guestrin, “XGBoost: A scalable tree boosting system,” in Proc. 22nd ACM SIGKDD, 2016, pp. 785–794.
[6] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Proc. NeurIPS, 2017, pp. 4765–4774.
[7] J. Brazauskas, A. Danish, V. Safronov, R. Verma, R. Mortier, and A. Lewis, “CDBB West Cambridge digital twin: Lessons learned,” arXiv:2209.15290, 2022.
[8] C. Bäcklund, J. Lundqvist, and M. Molinari, “Showcasing a digital twin for higher educational buildings,” Front. Built Environ., vol. 10, 2024.
[9] W. Kritzinger, M. Karner, G. Traar, J. Henjes, and W. Sihn, “Digital twin in manufacturing: A categorical literature review and classification,” IFAC-PapersOnLine, vol. 51, no. 11, pp. 1016–1022, 2018.
[10] T. Feathers, “Major universities are using race as a ‘high impact predictor’ of student success,” The Markup, Mar. 2021.
[11] Government of India, The Digital Personal Data Protection Act, 2023, No. 22 of 2023.