SmartStudy: An AI-powered university platform transforming course material into narrated lecture videos, attention-verified attendance, and personalized learning.
Description
SmartStudy is an AI teaching assistant for universities. A teacher uploads a lecture PDF and the system writes a scene-by-scene script, checks it against the PDF and renders a narrated, animated lecture video with a talking teacher avatar. While a student watches on the phone, the camera confirms that it is the registered student and that they are paying attention, and that decides attendance. After the lecture a quiz and a short spoken viva confirm understanding, a learning model (Bayesian Knowledge Tracing) tracks mastery of every topic, and an early-warning radar shows the teacher which students may fall behind and why, with a help plan for each one. Around this, SmartStudy provides the full academic system: departments, courses, registration, timetable, live classes, exams, results and certificates, through a Flutter student app, a React portal for teachers and administrators, and a public website.
Objectives
The objective of SmartStudy is to give universities one platform that teaches, checks and supports students in a hybrid setting. 1. Turn an existing lecture PDF into a narrated, animated lecture video in minutes, so teachers do not spend hours recording and editing. 2. Keep the generated content correct: compute algorithm traces and code outputs by running real code, and score every AI-written scene against the source PDF before anything is rendered, with the teacher able to edit every scene. 3. Make online attendance honest: count only the seconds a lecture was really played, and use the camera to confirm that the registered student is present and attentive, without storing any images. 4. Confirm real understanding with quizzes and a short spoken viva, with integrity checks that flag copied or read-out answers for the teacher. 5. Follow every student's mastery of every topic and give each student an adaptive practice path. 6. Help teachers act early with an at-risk radar that explains why a student is flagged and creates a help plan with matching lectures and practice questions. 7. Provide the complete academic administration (departments, courses, sections, registration, timetable, live classes, exams, results and certificates) in one secure system. 8. Deliver all of this as a working, tested and deployed product: a Flutter student app, a React portal for teachers and administrators, a public website, and a cloud deployment with automatic updates.
Socio-economic benefit
Time and cost for teachers: a lecture video that normally takes hours to record, edit and caption is generated from an existing PDF in minutes. Teachers can spend that time on teaching and on the students who need help. The system uses free and open tools and free AI tiers, so it is affordable for public universities. Fair and honest hybrid education: attendance in online classes is verified by real watching time and a privacy-preserving camera check, so degrees and attendance records keep their value when teaching moves online. Face images are never stored; on the phone only attention scores leave the device. Fewer dropouts and failures: the early-warning radar combines attendance, attention, quiz mastery and late work, and tells the teacher why a student is at risk. Problems are found weeks before the final exam, and every flagged student receives a personal help plan. Access for students across Pakistan: lectures are offered in 480p, 240p and audio-only copies for weak connections and load shedding, answers and progress are saved even when the connection drops, the app interface is available in Urdu, and the AI tutor answers questions in English, Urdu or Roman Urdu at any time, using only the course material. Better learning outcomes: every lecture includes learning outcomes, pause-and-think questions, a common mistake and a self-test, and the spoken viva checks real understanding instead of memorised answers. Trust in documents: certificates and transcripts carry a QR code and a code that anyone can verify on the official website, which reduces fake documents. Skills and employability: the project brings together AI, computer vision, mobile, web, databases, security and cloud deployment, and it can be adopted by other universities and training institutes.
Methodologies
Development model: an incremental model. Requirements were analysed and the system and database were designed first (SRS, UML diagrams, ER model). The system was then built and tested in increments: admin API, web portal, student app, AI lecture-video generator, attention engine, assessment and adaptive learning, analytics, and finally live classes, exams and deployment. Architecture: three front ends (Flutter app for students, React portal for teachers and administrators, public website) use one FastAPI REST back end with a PostgreSQL database and Redis. A separate video server produces the lectures, and a GPU on Kaggle runs the lip-sync model. Lecture generation: the PDF is read with PyMuPDF and a vision model; a pedagogical planner writes the script with the Groq LLaMA 3.3 model; algorithm traces and code outputs are computed by running real code; a reviewer scores every AI-written scene against the PDF and repairs scenes below 7 out of 10; the teacher edits the draft; edge-tts narrates each scene with word timings; each scene is animated in HTML with GSAP and recorded with Playwright; Wav2Lip lip-syncs the teacher photo; FFmpeg joins the scenes, adds captions and chapters and makes low-bandwidth copies. Attention and attendance: MediaPipe Face Mesh measures eye closure and head pose, ArcFace (DeepFace) confirms identity against the enrolled face, and an anti-spoofing model detects photos and screens. On phones the face analysis runs on the device with Google ML Kit. Attendance is marked only when the registered student is attentive for at least 80 percent of the time. Assessment and learning: quizzes are marked against the answer key; the spoken viva uses Whisper speech recognition and LLM scoring (70 percent quiz, 30 percent viva) with integrity flags; Bayesian Knowledge Tracing models mastery per topic; the at-risk radar combines attendance and attention (35 percent), mastery trend (35 percent) and late work (30 percent). AI suggests, the teacher decides. Security: bcrypt passwords, JWT access and rotating refresh tokens, two-step login for staff, account lockout, rate limits, role checks and input validation with Pydantic. Testing and deployment: unit and integration tests with pytest and flutter test, static analysis, and manual system tests. The system runs on AWS with Docker and Kubernetes (k3s), infrastructure written with Terraform, automatic builds and deployment with Jenkins, HTTPS, nightly backups and monitoring.
Outcome
SmartStudy is complete, tested and live on AWS (smartstudypk.duckdns.org) with a Flutter Android app, a React portal for teachers and administrators, and a public website. AI lecture videos: a teacher uploads a PDF and receives an editable, reviewed script and a narrated, animated lecture with a talking avatar, captions, chapters, a notes PDF, pause-and-think questions, a common-mistake scene and a self-test. Algorithm lectures (for example Dijkstra, sorting, searching, trees, stacks and queues) show traces in which every value is computed. Finished videos are about six times smaller than a raw render with almost no loss in quality, and re-rendering reuses unchanged scenes. Verified attendance: in our scenario tests an attentive viewer is marked present, while looking away for long periods or holding up a photo is not, and another person in front of the camera is flagged as not the registered student. Skipping ahead in a video does not count as watching. Assessment and support: quizzes, a spoken viva with integrity flags, AI-assisted assignment grading that the teacher confirms, a copying check, an AI tutor with citations, mastery tracking per topic, an adaptive practice path, an at-risk radar with reasons and one-click help plans. Academic system: departments, courses, sections, registration with prerequisite and credit-hour checks, timetable with clash detection, live classes with make-up attendance, exams with eligibility, seating and QR admit cards, result approval workflow, and verifiable certificates and transcripts. Quality: about 350 API routes and about 70 database tables; 452 automated back-end tests and 100 app tests pass; every change is built and deployed automatically, with nightly backups, a tested restore and monitoring with alerts. Future work: a semester-long field study, a university-scale load test, more regional languages and integration with the university's campus management system.
Gallery
More from Computer Science
BoatMart Module A
BoatMart is a unified e-commerce platform designed to connect wholesalers, retailers, and customers in one dig…
Supervisor: DR. Saeed ur Rehman
Web-based ERP System for Young's Food (Pvt) Ltd
A web-based ERP for a biscuit and wafer manufacturer that connects purchasing, recipe-based production, invent…
Supervisor: Dr. Sulma Rashid
Ai Resume Screening System
The AI-Based Resume Screening System is an explainable and auditable decision-support platform designed t…
Supervisor: Dr Mamoona Fatima
Fixify: Home Services Marketplace with Agentic Admin Automation
Fixify is an AI-powered home services marketplace that connects customers with verified local professionals, i…
Supervisor: Hassan Sardar