🏆 AdaptLearn AI - DevPost Submission

💡 Inspiration

Traditional learning platforms forget you the moment you close the tab. Every teacher knows personalization improves outcomes by 30-40%, but you can't personalize without memory.

When we discovered MemMachine's persistent memory, we saw the solution: create "Learning DNA"—a profile that captures not just what you learn, but how you learn best. Every conversation, struggle, and victory remembered forever, creating truly personalized education that scales.

🎯 What it does

AdaptLearn AI is an intelligent learning companion powered by MemMachine's persistent memory architecture.

Core Features:

  1. Learning DNA Profile - Persistent profile stored in MemMachine tracking learning style, performance metrics, emotional states, optimal study times, and topic mastery

  2. Persistent Memory - Uses MemMachine's Episodic Memory to store every conversation and continue from exactly where you left off, even after restart

  3. Adaptive AI Tutor - Real-time difficulty adjustment, frustration detection, personalized examples, and multi-modal explanations (text, visual, code)

  4. 3D Knowledge Graph - Interactive Three.js visualization mapping your learning journey with real-time updates, stored persistently in MemMachine

  5. Intelligent Todo System - AI-generated tasks using spaced repetition algorithms and forgetting curve predictions

  6. Gamification - XP leveling, streak tracking, badges, and leaderboards

The Magic Moment: Close the app, restart your computer, come back a week later—the AI greets you: "Welcome back! Last time you were working on Python recursion and mentioned you prefer visual learning..."

🛠️ How we built it

Full-stack architecture with MemMachine as the foundation:

Backend: FastAPI + Python, OpenAI GPT-4, DALL-E 3, PostgreSQL, Redis, WebSockets, MemMachine REST API

Frontend: Next.js 14, React 18, TypeScript, Three.js, TailwindCSS, shadcn/ui, Framer Motion

MemMachine Integration (3-Layer Architecture):

  1. Episodic Memory - Stores all conversations with context, topics, and performance data
  2. Profile Memory - Maintains evolving Learning DNA with cognitive patterns, emotional state, and adaptive parameters
  3. Knowledge Graph - Tracks topic mastery, connections, and review schedules

Key Decisions: Docker containerization, native WebSocket communication, adaptive algorithms with exponential moving averages, spaced repetition (modified SM-2), emotional intelligence detection

🚧 Challenges

  1. Memory Context Management - Balanced full conversation history vs. summaries using intelligent context windowing (last 5 messages full, older summarized)

  2. Real-time Adaptation - Solved latency from frequent updates with async memory updates, Redis caching, and batch processing

  3. 3D Graph Performance - Optimized rendering with level-of-detail, culling, and lazy-loading from MemMachine

  4. Emotional Detection - Combined multiple signals (time per question, hints, mistakes, typing patterns) stored in MemMachine for improvement

  5. Frontend-Backend Sync - Implemented WebSocket real-time updates with optimistic UI and rollback

🏆 Accomplishments

  1. The Restart Demo - Literally restart the app mid-conversation and it continues perfectly—proving MemMachine's persistence

  2. Three-Layer Memory - Successfully leveraged Episodic, Profile, and Knowledge Graph memory working in harmony

  3. Real-Time Adaptation - Adjusts difficulty during lessons, not just between sessions

  4. 3D Visualization - Interactive knowledge graph making abstract progress tangible

  5. Emotional Intelligence - Detects frustration/confidence without explicit input, patterns improve over time

  6. One-Command Deployment - docker-compose up and it's live

  7. Solving Real Problems - $350B market, genuine educational impact, personalization at scale

📚 What we learned

Technical:

  • Memory-first architecture (MemMachine as foundation, not addon)
  • Context window optimization for LLMs with infinite human memory
  • WebSockets essential for memory updates and state sync
  • Simple adaptive rules create complex personalized behavior
  • Three.js optimization with level-of-detail rendering

Product:

  • Users form emotional connections with AI that remembers
  • The restart demo proves the concept better than explanations
  • Persistence is a paradigm shift, not just a feature
  • Real-time adaptation and emotional state matter as much as cognition

MemMachine-Specific:

  • Profile Memory enables true long-term personalization
  • Episodic Memory creates human-like context
  • Memory transforms reactive AI into proactive companions

🚀 What's next

Immediate:

  • Enhanced MemMachine semantic search and memory clustering
  • Voice/speech integration for accessibility
  • Collaborative learning with shared knowledge graphs
  • Mobile apps with offline sync

Medium-term:

  • Subject-specific specialization (math, code, science, languages)
  • Teacher dashboard for classroom management
  • Advanced analytics and predictive modeling
  • Content marketplace for educators

Long-term:

  • AR/VR immersive learning environments
  • Blockchain credentials and verifiable achievements
  • Multi-agent teaching systems
  • Global platform with free tier for underserved communities

Impact Goals: 1M daily learners, 30% improvement in outcomes, educational equity, teacher augmentation

🛠️ Built with

Core Stack: Python TypeScript JavaScript FastAPI Next.js React Three.js TailwindCSS PostgreSQL Redis Docker MemMachine OpenAI GPT-4 DALL-E 3 WebSockets Supabase shadcn/ui Framer Motion

Backend: FastAPI, Uvicorn, Pydantic, SQLAlchemy, AsyncIO

Frontend: Next.js 14, React 18, Three.js, TailwindCSS, shadcn/ui, Radix UI, Framer Motion

AI/ML: GPT-4, DALL-E 3, Custom adaptive algorithms, Spaced repetition (SM-2)

Memory: MemMachine (Episodic & Profile), PostgreSQL, Supabase, Redis

Infrastructure: Docker, Docker Compose, GitHub, WebSockets, Native WebSocket API

Notable: 3D Knowledge Graph (Three.js), Learning DNA (adaptive engine + MemMachine), Real-time adaptation (WebSocket + Async), Emotional Intelligence (pattern recognition)

Built With

Share this project:

Updates