Skip to content

taiscoding/cognitive-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Pixel to Practice

AI-powered radiology case review with adaptive learning
Master diagnostic radiology with real-time performance analytics and intelligent case recommendations.

Next.js React Tailwind CSS License

Live Demo: pixel-to-practice.vercel.app


๐ŸŽฏ The Problem

Medical students and residents lack objective, quantifiable feedback on diagnostic skill development. Traditional case review platforms are static librariesโ€”you review cases but never know if you're actually improving. Progress tracking is subjective, making skill development feel abstract rather than measurable.

๐Ÿ’ก The Solution

Pixel to Practice transforms radiology learning with real-time performance analytics and an adaptive learning engine. Complete cases, get instant feedback, and watch your diagnostic accuracy improve with every reviewโ€”quantified, visual, and visceral.

What Makes It Different

  • Real-Time Analytics: Track accuracy, speed, and improvement trends automatically
  • Adaptive Learning Engine: Smart case recommendations based on your performance
  • Immediate Feedback: Clinical pearls, learning points, and differential diagnoses
  • Progress Tracking: Longitudinal performance metrics that show measurable growth

Note: "Cognitive Mirror" is the underlying engine/system. "Pixel to Practice" is the product name.

โœจ Core Features

๐Ÿ“Š Real-Time Performance Dashboard

  • Diagnostic accuracy trends over time
  • Pattern recognition speed improvement
  • Skill level progression tracking
  • Immediate feedback on annotations

๐Ÿ–ผ๏ธ Interactive Medical Cases

  • Canvas-based annotation system
  • 5 curated tuberculosis screening cases
  • Progressive difficulty levels
  • Immediate right/wrong feedback with explanations

๐Ÿ“ˆ Learning Analytics

  • Performance metrics calculation
  • Improvement trend visualization
  • Error pattern identification
  • Competency assessment

๐Ÿš€ Getting Started

Quick Start

git clone https://github.com/taiscoding/cognitive-mirror.git
cd cognitive-mirror
npm install
npm run dev

Open http://localhost:3000 to start learning.

Demo Mode (For Interviews/Presentations)

Click the "๐Ÿ‘๏ธ Demo" button in the header to load sample performance data instantly. Perfect for demonstrating the adaptive learning engine without completing multiple cases.

System Requirements

  • Node.js 18+
  • Modern web browser (Chrome, Firefox, Safari, Edge)

๐Ÿ—๏ธ Technical Architecture

Stack

  • Frontend: React + Next.js 14
  • Styling: Tailwind CSS
  • Analytics: Custom performance tracking
  • Images: Montgomery County TB Dataset
  • Storage: localStorage (client-side persistence)

Project Structure

/src
โ”œโ”€โ”€ /app                 # Next.js app router
โ”œโ”€โ”€ /components         # React components
โ”‚   โ”œโ”€โ”€ ProgressDashboard.jsx
โ”‚   โ”œโ”€โ”€ CaseSelector.jsx
โ”‚   โ”œโ”€โ”€ ImageViewer.jsx
โ”‚   โ””โ”€โ”€ FeedbackPanel.jsx
โ”œโ”€โ”€ /data              # Medical case definitions
โ”œโ”€โ”€ /hooks             # Performance tracking
โ””โ”€โ”€ /utils             # Analytics algorithms

๐Ÿ“Š Dataset

Montgomery County TB Screening Dataset

  • 138 chest X-rays (80 normal, 58 tuberculosis cases)
  • Source: NIH/NLM public medical imaging dataset
  • Format: PNG, 4020ร—4892 pixels
  • Annotations: Pre-labeled with diagnostic findings

Case Structure

{
  "id": "case_001",
  "title": "Pulmonary Tuberculosis - Upper Lobe",
  "diagnosis": "tuberculosis",
  "difficulty": "moderate",
  "annotations": [
    {
      "x": 245, "y": 180, "radius": 30,
      "finding": "Upper lobe consolidation with cavitation"
    }
  ],
  "learningPoints": ["Upper lobe predilection is classic for TB"],
  "clinicalPearls": "Always consider TB in upper lobe cavitary lesions"
}

๐ŸŽฎ User Experience

  1. Dashboard โ†’ View performance metrics and improvement trends
  2. Case Selection โ†’ Choose from categorized medical cases
  3. Image Analysis โ†’ Click to annotate findings on chest X-rays
  4. Immediate Feedback โ†’ Get instant results with educational content
  5. Progress Update โ†’ Watch real-time metrics update
  6. Repeat โ†’ Build pattern recognition through deliberate practice

๐Ÿ“ˆ Performance Analytics

Metrics Tracked

  • Diagnostic Accuracy: F1 score with spatial tolerance
  • Recognition Speed: Time to identify key findings
  • Improvement Rate: Trend analysis over sessions
  • Confidence Calibration: Appropriate uncertainty levels

Key Innovation

Visceral Improvement Feedback: Unlike traditional medical education platforms, users immediately see quantified improvement, making skill development feel tangible rather than abstract.

๐ŸŽฏ Success Criteria

Primary Goal: After 5 cases, users think "I can see myself getting better at this" rather than "that was a neat quiz."

Measurable Outcomes

  • Users complete 10+ cases in first session
  • Demonstrable accuracy improvement over time
  • Faster pattern recognition without accuracy loss
  • High user engagement and return rates

๐Ÿ”ง Development

Adding Medical Images

# Download Montgomery County dataset
curl -L -o montgomery-dataset.zip "https://openi.nlm.nih.gov/imgs/collections/NLM-MontgomeryCXRSet.zip"
unzip montgomery-dataset.zip
cp -r */CXR_png/* public/images/

# Switch from placeholders to real images
node scripts/switch-images.js png

Commands

npm run dev      # Development server
npm run build    # Production build
npm run start    # Production server
npm run lint     # Code linting

๐ŸŽจ Design Philosophy

Medical Professional Standards

  • Clean, distraction-free interface
  • Professional color palette (blues/teals)
  • High contrast for medical image viewing
  • Responsive design for all devices

Learning-Focused UX

  • Immediate feedback loops
  • Progress visualization
  • Educational content integration
  • Professional credibility

๐Ÿšง Project Status

Version: v0.8 (Interview-Ready)
Status: โœ… Functional MVP with polished UX

โœ… Implemented Features

  • โœจ Compelling landing page with value proposition showcase
  • ๐Ÿ“Š Real-time performance dashboard with skill progression tracking
  • ๐Ÿ–ผ๏ธ Interactive canvas annotation system for chest X-rays
  • ๐Ÿง  Adaptive learning engine with smart case recommendations
  • ๐Ÿ“ˆ Performance analytics (accuracy, speed, improvement trends)
  • โฑ๏ธ Live case timer and progress indicators
  • ๐ŸŽฏ Immediate feedback with clinical pearls and learning points
  • ๐ŸŽช Demo mode for presentations and interviews
  • ๐Ÿ“ฑ Responsive design for all devices
  • ๐Ÿ’พ Data persistence with localStorage

Current Case Library

  • 5 curated tuberculosis screening cases
  • Difficulty levels: Easy, Moderate, Hard
  • Montgomery County CXR dataset (NIH/NLM)
  • Educational content with differentials

๐Ÿ”ฎ Future Enhancements

  1. Expanded Case Library: More pathologies and imaging modalities
  2. Spaced Repetition: Algorithm-driven review timing
  3. User Accounts: Multi-device sync and progress backup
  4. Comparative Analytics: Anonymized peer performance comparisons
  5. Mobile App: Native iOS/Android with offline support

๐ŸŽ“ For Interviewers & Educators

Try the Demo

  1. Visit the live demo
  2. Click "๐Ÿ‘๏ธ Demo" to load sample performance data
  3. Navigate to Dashboard to see analytics
  4. Try a case to experience the feedback loop

Interview Demo Guide

See INTERVIEW_DEMO_GUIDE.md for a complete walkthrough script, talking points, and demo strategies for residency interviews.

๐Ÿ› ๏ธ Technical Stack

Frontend:

  • Next.js 14 (React 18) with App Router
  • Tailwind CSS for styling
  • Canvas API for image annotations

Analytics Engine:

  • Custom performance tracking algorithms
  • F1 score calculation with spatial tolerance
  • Adaptive case recommendation system
  • Real-time metrics computation

Data:

  • Montgomery County TB Screening Dataset (NIH/NLM)
  • localStorage for client-side persistence
  • JSON-based case database

Deployment:

  • Vercel (production)
  • GitHub Actions (CI/CD)
  • Automatic preview deployments

๐Ÿ“„ License

MIT License - See LICENSE for details.

๐Ÿ‘จโ€โš•๏ธ About the Developer

Built by Theodore Addo, medical student and developer passionate about merging clinical medicine with technology to create practical tools that solve real educational challenges.

Other Projects: theoaddo.com

๐Ÿ“ž Contact & Feedback

  • GitHub Issues: For bugs and feature requests
  • Discussions: For questions and ideas
  • Email: Available on portfolio site

๐ŸŒŸ Acknowledgments

  • Dataset: Montgomery County X-ray Set (NIH/NLM)
  • Inspiration: The challenge of quantifying diagnostic skill improvement
  • Built for: Medical students, residents, and radiologists committed to deliberate practice

Pixel to Practice ยท From pixels on a screen to excellence in clinical practice ยท
Making diagnostic skill improvement visceral, measurable, and continuous.

About

Interactive diagnostic skill development platform for medical training - MVP for validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published