How kgajula2/kgajula2-autism_detection_using_ml works
Engagnition is a browser-based autism screening platform: users enter through the React app, complete interactive games, record game-session metrics, and receive ML-based risk analysis and progress views. The main runtime path is routed game play through session handling to persistence and inference, with dashboard reporting afterward. The README also describes a Python model-training workflow and browser-side vision features. Some subsystems are represented from README claims or the source index rather than inspected implementation; uncertain links are omitted.
Main entry points: useGameSession.js Game session handler · App.jsx React app routes · db.js Screening metrics · AttentionCallGame.jsx Attention Call
Components 21
User experience
- React app routes
src/App.jsx - Progress dashboard
src/pages/Dashboard.jsx - Game selection
src/pages/GameSelection.jsx - Analysis explainer
src/components/ml/MLExplainer.jsx
Screening assessment
- Game session handler
src/hooks/useGameSession.js - Screening progress state
src/store/gameStore.js - Attention Call
src/games/attention-call/AttentionCallGame.jsx - Shape Switch
src/games/shape-switch/ShapeSwitchGame.jsx - Other cognitive games
src/games - Game feature configuration
src/config/gameConfig.js - Vision services
src/services/vision.js
Analytics and inference
- Risk analysis service
src/services/ml.js - Model weights
- Screening metrics
src/services/db.js
Identity and data
- Firebase auth state
src/hooks/useAuth.js - Authentication service
src/services/auth.js - Firebase services
src/services/firebase.js - Firebase data store
Model training
- Model training pipeline
scripts/train_model.py - Clinical screening datasets
Other components
- User / caregiver
Connections 23
- User / caregiver → React app routes: uses
- React app routes → Progress dashboard: routes to
src/App.jsx - React app routes → Game selection: routes to
src/App.jsx - React app routes → Attention Call: routes to
src/App.jsx - React app routes → Shape Switch: routes to
src/App.jsx - Game selection → Screening progress state: reads progress
src/pages/GameSelection.jsx - Attention Call → Game session handler: starts / ends
src/games/attention-call/AttentionCallGame.jsx - Shape Switch → Game session handler: starts / ends
src/games/shape-switch/ShapeSwitchGame.jsx - Game session handler → Firebase auth state: checks identity
src/hooks/useGameSession.js - Game session handler → Screening metrics: writes session metrics
src/hooks/useGameSession.js - Game session handler → Risk analysis service: requests analysis
src/hooks/useGameSession.js - Game session handler → Screening progress state: marks completed game
src/hooks/useGameSession.js - Attention Call → Vision services: initializes face mesh
src/games/attention-call/AttentionCallGame.jsx - Attention Call → Screening metrics: reads profile and stats
src/games/attention-call/AttentionCallGame.jsx - Progress dashboard → Screening metrics: reads history
src/pages/Dashboard.jsx - Analysis explainer → Screening metrics: reads session data
src/components/ml/MLExplainer.jsx - Risk analysis service → Game feature configuration: uses feature mapping
src/services/ml.js - Risk analysis service → Model weights: loads model
src/services/ml.js - Screening metrics → Firebase data store: persists screening data
- Authentication service → Firebase services: uses Firebase
src/services/auth.js - Firebase services → Firebase data store: provides backend
- Model training pipeline → Clinical screening datasets: trains on
- Model training pipeline → Model weights: produces model