How sajagshri300707-ui/parkinson-s-disease-detection works
NeuroScan AI is a research-oriented Parkinson’s screening application. Users sign in, submit voice, drawing, or tablet data, receive modality-specific predictions and visualizations, and can combine scores into a fused report. The graph follows the documented frontend-to-API workflow and sampled predictor/model calls; several routes and page implementations were not fully excerpted, so those links are included only where the index or README supports them.
Main entry points: main.py FastAPI entry and compatibility routes · VoiceAnalysis.jsx Voice analysis · DrawingAnalysis.jsx Drawing and tablet · App.jsx App and routing
Components 30
Web application
- App and routing
frontend/src/App.jsx - Voice analysis
frontend/src/pages/VoiceAnalysis.jsx - Drawing and tablet
frontend/src/pages/DrawingAnalysis.jsx - Diagnostic report
frontend/src/pages/DiagnosticReport.jsx - File upload
frontend/src/components/UploadZone.jsx - Result state
frontend/src/context/ResultsContext.jsx - API client
frontend/src/api/client.js - Risk gauge
frontend/src/components/Gauge.jsx - Progress indicator
frontend/src/components/Spinner.jsx
API service
- FastAPI entry and compatibility routes
backend/main.py - Voice route
backend/routes/voice.py - Drawing route
backend/routes/drawing.py - Tablet route
backend/routes/tablet.py - Fusion route
backend/routes/report.py - Backend authentication
backend/routes/auth.py
Biomarker analysis
- Voice prediction
backend/core/predict_voice.py - Acoustic features
audio_features.py - Drawing prediction
backend/core/predict_drawing.py - Kinematic prediction
backend/core/predict_tablet.py - Loaded ML models
backend/core/models.py - Score fusion
backend/core/fuse.py - Drawing dataset index
backend/core/dataset_indexer.py
Identity and records
- Auth context
frontend/src/context/AuthContext.jsx - Supabase client
frontend/src/lib/supabase.js - Profile and report data
frontend/src/lib/database.js
Voice assistant
- Voice assistant UI
frontend/src/components/VoiceAssistant.jsx - Assistant service
frontend/src/services/voiceAssistant.js - Voice prompts
frontend/src/constants/voicePrompts.js
Other components
- User
- Supabase services
Connections 41
- User → App and routing: uses
frontend/src/App.jsx - App and routing → Voice analysis: routes to
frontend/src/App.jsx - App and routing → Drawing and tablet: routes to
frontend/src/App.jsx - App and routing → Diagnostic report: routes to
frontend/src/App.jsx - Voice analysis → File upload: renders
frontend/src/pages/VoiceAnalysis.jsx - Drawing and tablet → File upload: renders
frontend/src/pages/DrawingAnalysis.jsx - Voice analysis → API client: requests analysis
frontend/src/pages/VoiceAnalysis.jsx - Drawing and tablet → API client: requests analysis
frontend/src/pages/DrawingAnalysis.jsx - Diagnostic report → API client: requests fusion
frontend/src/pages/DiagnosticReport.jsx - Voice analysis → Result state: stores results
frontend/src/pages/VoiceAnalysis.jsx - Drawing and tablet → Result state: stores results
frontend/src/pages/DrawingAnalysis.jsx - Diagnostic report → Result state: reads scores
frontend/src/pages/DiagnosticReport.jsx - API client → FastAPI entry and compatibility routes: HTTP requests
frontend/src/api/client.js - FastAPI entry and compatibility routes → Voice prediction: calls predictor
backend/main.py - FastAPI entry and compatibility routes → Drawing prediction: calls predictor
backend/main.py - FastAPI entry and compatibility routes → Kinematic prediction: calls predictor
backend/main.py - FastAPI entry and compatibility routes → Score fusion: calls fusion
backend/main.py - FastAPI entry and compatibility routes → Voice route: registers routes
backend/main.py - FastAPI entry and compatibility routes → Drawing route: registers routes
backend/main.py - FastAPI entry and compatibility routes → Tablet route: registers routes
backend/main.py - FastAPI entry and compatibility routes → Fusion route: registers routes
backend/main.py - Voice route → Voice prediction: dispatches prediction
backend/routes/voice.py - Drawing route → Drawing prediction: dispatches prediction
backend/routes/drawing.py - Drawing route → Drawing dataset index: uses indexer
backend/routes/drawing.py - Tablet route → Kinematic prediction: dispatches prediction
backend/routes/tablet.py - Fusion route → Score fusion: calls fusion
backend/routes/report.py - Voice prediction → Acoustic features: extracts features
backend/core/predict_voice.py - Voice prediction → Loaded ML models: uses speech model
backend/core/predict_voice.py - Drawing prediction → Loaded ML models: uses drawing models
backend/core/predict_drawing.py - Kinematic prediction → Loaded ML models: uses kinematic model
backend/core/predict_tablet.py - Auth context → Supabase client: uses auth
frontend/src/context/AuthContext.jsx - Supabase client → Supabase services: connects to
frontend/src/lib/supabase.js - Profile and report data → Supabase services: reads and writes
frontend/src/lib/database.js - Backend authentication → Supabase services: authenticates users
backend/routes/auth.py - Voice analysis → Profile and report data: persists results
frontend/src/pages/VoiceAnalysis.jsx - Diagnostic report → Risk gauge: renders risk
frontend/src/pages/DiagnosticReport.jsx - Drawing and tablet → Risk gauge: renders risk
frontend/src/pages/DrawingAnalysis.jsx - Voice analysis → Progress indicator: shows progress
frontend/src/pages/VoiceAnalysis.jsx - Drawing and tablet → Progress indicator: shows progress
frontend/src/pages/DrawingAnalysis.jsx - Voice assistant UI → Assistant service: calls service
frontend/src/components/VoiceAssistant.jsx - Assistant service → Voice prompts: uses prompts
frontend/src/services/voiceAssistant.js