How kishore-in2007/ml_pbl works
Vithara is a patient-and-clinician wound-recovery platform: patients authenticate, submit wound images and symptoms, and review AI assessment and recovery progress; clinicians review cases, triage alerts, and coordinate follow-up. The backend routes these workflows across persistence, image storage, ML inference, healing evaluation, and escalation. The README documents scratch-trained multi-task classification/segmentation, infection and erythema assessment, temporal healing velocity, and automated appointments. The graph combines excerpted wiring and SOURCE INDEX references with README-documented capabilities; unsampled internals are represented only where paths are supported.
Main entry points: main.py FastAPI application · models.py Clinical records · patients.py Patient routes · App.jsx Portal routes
Components 25
Patient and clinician portals
- Portal routes
Frontend/src/App.jsx - Login and registration
Frontend/src/pages/common/Login.jsx - Patient care views
Frontend/src/pages/patient - Clinician views
Frontend/src/pages/doctor - API client
Frontend/src/api/api.js
Backend API and workflows
- FastAPI application
Backend/app/main.py - Authentication routes
Backend/app/routers/auth.py - Patient routes
Backend/app/routers/patients.py - Doctor routes
Backend/app/routers/doctors.py - Classification routes
Backend/app/routers/classify.py - Segmentation routes
Backend/app/routers/segment.py - Triage routes
Backend/app/routers/triage.py
Clinical data and escalation
- Healing evaluation
Backend/app/recovery.py - Alerts and appointments
Backend/app/doctor_services.py - Triage assessment
Backend/app/triage.py
Wound AI and recovery
- Wound classification
Backend/app/ml/classify.py - Wound segmentation
Backend/app/ml/segment.py - Healing velocity engine
Backend/Ml_training/src/healing_engine.py - Scratch multi-task model
Backend/Ml_training/src/vitharanet.py - Diagnostic CLI
Backend/Ml_training/run_model.py
Persistence and media
- Clinical records
Backend/app/models.py - Database sessions
Backend/app/database.py - Image storage
Backend/app/storage.py
Other components
- Patient
- Clinician
Connections 35
- Patient → Portal routes: uses portal
README.md - Clinician → Portal routes: uses portal
README.md - Portal routes → Login and registration: routes to
Frontend/src/App.jsx - Portal routes → Patient care views: routes to
Frontend/src/App.jsx - Portal routes → Clinician views: routes to
Frontend/src/App.jsx - Login and registration → API client: requests auth
Frontend/src/pages/common/Login.jsx - Patient care views → API client: requests care data
Frontend/src/pages/patient/CaptureWoundPhoto.jsx - Clinician views → API client: requests clinical data
Frontend/src/pages/doctor/WoundReview.jsx - API client → FastAPI application: sends API requests
README.md - FastAPI application → Authentication routes: registers routes
Backend/app/main.py - FastAPI application → Patient routes: registers routes
Backend/app/main.py - FastAPI application → Doctor routes: registers routes
Backend/app/main.py - FastAPI application → Classification routes: registers routes
Backend/app/main.py - FastAPI application → Segmentation routes: registers routes
Backend/app/main.py - FastAPI application → Triage routes: registers routes
Backend/app/main.py - Authentication routes → Database sessions: queries sessions
Backend/app/routers/auth.py - Authentication routes → Clinical records: reads and creates users
Backend/app/routers/auth.py - Patient routes → Database sessions: queries sessions
Backend/app/routers/patients.py - Patient routes → Clinical records: reads and writes records
Backend/app/routers/patients.py - Patient routes → Healing evaluation: evaluates recovery
Backend/app/routers/patients.py - Patient routes → Image storage: handles wound media
- Doctor routes → Clinical records: reads clinical records
Backend/app/routers/doctors.py - Doctor routes → Alerts and appointments: uses care services
Backend/app/routers/doctors.py - Classification routes → Wound classification: requests classification
Backend/app/routers/classify.py - Classification routes → Clinical records: stores assessment
Backend/app/routers/classify.py - Classification routes → Image storage: stores images
Backend/app/routers/classify.py - Segmentation routes → Wound segmentation: requests segmentation
Backend/app/routers/segment.py - Segmentation routes → Image storage: stores image outputs
Backend/app/routers/segment.py - Triage routes → Triage assessment: assesses triage
Backend/app/routers/triage.py - Triage routes → Alerts and appointments: dispatches notifications
Backend/app/routers/triage.py - Triage routes → Clinical records: records triage cases
Backend/app/routers/triage.py - Healing evaluation → Healing velocity engine: uses velocity logic
- Alerts and appointments → Clinical records: creates appointments
Backend/app/doctor_services.py - Scratch multi-task model → Wound classification: informs inference design
- Diagnostic CLI → Scratch multi-task model: runs model inference