Inspiration
Lecturers and educators often prepare dense lecture notes and slides under tight time constraints, yet only discover where students got lost after a low-engagement class or poor exam results. Inspired by cognitive science and real classroom pain points, I built CogniPulse to give busy educators a fast, plain-English pre-class checkup—spotting cognitive overload before class even starts so lecturers can intervene early instead of realizing too late that half the room was confused.
What it does
CogniPulse transforms raw lecture notes or PDFs into an actionable pre-class diagnostic in four straightforward steps:
- 1. Lecture Input: Lets educators load a built-in sample lecture or paste/upload their own lecture content to start a diagnostic check.
- 2. Slide Load & Student Simulation: Evaluates cognitive density with a Slide Load Score and simulates how three distinct student profiles experience the material, pinpointing where and why each learner type might stall.
- 3. Quick Check Questions: Features a 3 to 10 question slider that dynamically generates targeted check-for-understanding questions tailored to the lecture's trouble spots.
- 4. Forecast & 3-Minute Classroom Fix: Visualizes predicted comprehension drops across the lecture and delivers a practical 3-Minute Classroom Fix that a lecturer can run right at the start of class.
How we built it
CogniPulse is built with Python and deployed live on Streamlit Community Cloud, separating the interface (app.py) from the diagnostic reasoning engine (engine.py):
- Frontend (
Streamlit&Plotly): Designed a clean, four-tab, plain-English interface with interactive sliders and visual comprehension forecasts so busy educators can navigate results in seconds without technical jargon. - Diagnostic & Simulation Engine (
Google GenAI&Pydantic): Engineeredrun_cognitive_simulationandgenerate_diagnostic_questionsinengine.pyusing structured Pydantic schemas to ensure reliable, consistent outputs across slide load scoring, multi-persona student simulations, and custom question generation. - Document Parsing & Resilience (
pypdf&python-dotenv): Added PDF text extraction alongside fallback Gemini model routing (gemini-4-hydrogen,gemini-3.5-flash-lite,gemini-3.8-flash) with exponential backoff and secure secret management via Streamlit Cloud Secrets.
Challenges we ran into
- Keeping AI Outputs Reliable Under Load: Live demos can stall if a single model endpoint hits rate limits or transient errors. Implementing multi-model fallback routing with exponential backoff kept responses steady throughout testing.
- Cloud Deployment & Environment Parity: Moving from local development to Streamlit Community Cloud exposed missing dependency declarations (
python-dotenvinrequirements.txt) and required migrating API credentials cleanly into Streamlit Secrets without exposing.envfiles. - Balancing Depth with Simplicity: Cognitive load diagnostics can easily turn into dense academic jargon. Iterating on the four-tab layout and plain-English labels—such as the 3–10 question slider and the 3-Minute Classroom Fix—was essential to make the tool immediately usable for time-strapped lecturers.
Accomplishments that we're proud of
- Shipping an End-to-End Live Web App: Taking CogniPulse from concept to a publicly deployed, responsive Streamlit application with structured AI pipelines and resilient fallback handling.
- Actionable Classroom Design: Moving beyond passive AI summaries by pairing cognitive load scoring and multi-student simulations with ready-to-use check questions and a concrete 3-minute intervention.
- Clean, Accessible UX: Creating an interface that any lecturer can understand and run in under two minutes with zero setup friction.
What we learned
- Action Beats Raw Metrics: Educators do not just need a score telling them a lecture is dense—they need ready-to-ask diagnostic questions and a quick classroom fix they can use immediately.
- Structured Schemas Make AI Products Dependable: Using Pydantic validation alongside model fallbacks makes generative AI workflows noticeably more predictable for real-world user interfaces.
- Early Cloud Smoke-Testing Saves Submission Day: Deploying early and testing every tab end-to-end on the live URL catches dependency and secret-configuration issues long before the deadline.
What's next for CogniPulse
- Direct Slide Deck Exports: Allow lecturers to export the generated Quick Check Questions and 3-Minute Classroom Fix directly into slide-ready formats or quiz polls (such as Kahoot/Mentimeter-friendly CSVs).
- Multi-Lecture Course Tracking: Track cognitive load trends across an entire semester syllabus to spot weeks where multiple heavy topics stack up.
- Post-Class Feedback Loop: Let educators input quick post-lecture student quiz results to calibrate future simulations and refine upcoming classes.