Inspiration

Most STEM students don't fail because they lack ability — they fail because the tools available to them don't adapt. Textbooks are static. Videos don't pause when you're confused. Tutors are expensive. We built AI-STEAM-Lab because we believe every student, regardless of background or location, deserves a learning experience that meets them exactly where they are.

What it does

AI-STEAM-Lab is an agentic STEM learning platform that personalizes education in real time. A student asks a question — the system doesn't just retrieve an answer, it reasons through it using a ReAct agent loop, pulling from a curated STEM knowledge base via pgvector RAG, and responds with Socratic dialogue calibrated to the student's demonstrated level.

Key capabilities:

  • Adaptive Socratic tutoring powered by Gemini 2.5 Flash
  • RAG-based knowledge retrieval over a structured STEM corpus (pgvector)
  • Real-time engagement tracking via OpenCV at 60+ FPS — detects attention and adjusts pacing
  • Streaming responses via FastAPI SSE for a fluid, conversational feel
  • Progressive Web App built in React 18 — works on any device, including low-end hardware

How we built it

The architecture is fully Dockerized with CI/CD across four core services:

  • Agent layer: ReAct loop with Gemini 2.5 Flash — plan, retrieve, reason, respond
  • Knowledge layer: pgvector on PostgreSQL for semantic STEM document search
  • Vision layer: OpenCV pipeline for real-time student engagement detection
  • Frontend: React 18 PWA with Server-Sent Events for live streaming output

Every component was built for production — not a demo. The system handles concurrent sessions, graceful fallback when retrieval confidence is low, and mobile-first rendering for accessibility in low-resource environments.

Challenges we ran into

  • Latency in the agentic loop: chaining retrieval + reasoning + streaming without blocking the UI required careful async orchestration in FastAPI
  • OpenCV on varied hardware: achieving consistent 60+ FPS tracking across different webcam qualities and lighting conditions required adaptive preprocessing
  • RAG quality over STEM content: generic embeddings performed poorly on mathematical and scientific text — required domain-specific chunking strategies and retrieval tuning

Accomplishments that we're proud of

  • Built a fully production-grade agentic system — not a wrapper, not a demo
  • Achieved real-time vision-based engagement detection running alongside live LLM inference without performance degradation
  • Designed a system accessible on low-end devices as a PWA — making it viable for students in underserved regions
  • End-to-end Dockerized deployment with CI/CD — ready to scale

What we learned

Building AI-STEAM-Lab taught us that personalization in education isn't just about content — it's about pacing, tone, and awareness. The hardest engineering problem wasn't the AI; it was making the AI feel like a patient collaborator rather than a search engine. We also learned how fragile RAG pipelines become at the edges of a domain — STEM content demands precision that general-purpose embeddings don't provide out of the box.

What's next for AI Steam Lab

  • Knowledge graph layer: prerequisite mapping so the system can detect conceptual gaps and recommend foundational topics automatically
  • Multi-modal content ingestion: lecture video → Whisper transcription → CLIP frame embeddings → unified STEM knowledge graph
  • Collaborative study rooms: shared sessions where the agent facilitates group problem-solving
  • Offline mode: cached knowledge base for students with unreliable internet

Built With

Share this project:

Updates

posted an update

Excited to launch NeuroLab AI – an AI-powered interactive STEM learning platform!

NeuroLab AI transforms traditional learning into an immersive experience through:

AI Tutor (Professor Nova) Interactive Physics Simulations Computer Vision Experiments Gamified Challenges & Achievements Leaderboards & Progress Tracking Real-Time Analytics Dashboard

The goal is to make STEM education more engaging, interactive, and accessible through AI-driven learning experiences.

Live Demo: https://ai-steam-lab.vercel.app/

GitHub Repository: https://github.com/vikassaini77/AI-Steam-Lab

I'd love to hear your feedback and suggestions for future improvements!

AI #MachineLearning #ComputerVision #EdTech #STEM #ReactJS #TypeScript #PortfolioProject

Log in or sign up for Devpost to join the conversation.