How aayushspk37/finalproject works
HViT Medical Imaging Diagnosis is a Django application for multi-modality medical-image classification and clinical-result exploration. The documented user workflow is image submission, HViT inference, confidence-aware interpretation (confidence, ranked alternatives, margin and severity), then explanation and saved reports/history. The sampled Django routes and views establish web/API dispatch and persistence-facing responsibilities; the README documents model stages and LLM narrative, but the implementing inference/model modules were not sampled, so those internal links are documented rather than source-verified. The tree includes a parallel “Traning Code” copy; the graph represents the main application only.
Main entry points: views.py Django handlers · models.py Diagnosis records · urls.py Web and API routes · admin.py Administration
Components 19
Web experience
- Web and API routes
medical_image/Diagnosis/urls.py - Django handlers
medical_image/Diagnosis/views.py - Diagnosis pages
medical_image/templates/Diagnosis/diagnose.html
Diagnosis workflow
- Image submission
medical_image/Diagnosis/views.py - Image preprocessing
- CNN features
- Patch tokenization
- Transformer encoder
- Classification head
Clinical interpretation
- CACI interpretation
medical_image/Diagnosis/views.py - LLM narrative
- Explainability hub
medical_image/Diagnosis/xai.py
Records and account
- Reports
medical_image/Diagnosis/views.py - Diagnosis history
medical_image/Diagnosis/views.py - Diagnosis records
medical_image/Diagnosis/models.py - Accounts and profiles
medical_image/Diagnosis/models.py - Feedback and notifications
medical_image/Diagnosis/models.py - Administration
medical_image/Diagnosis/admin.py
Other components
- Clinician
Connections 21
- Clinician → Web and API routes: requests diagnosis
medical_image/Diagnosis/urls.py - Web and API routes → Django handlers: dispatches routes
medical_image/Diagnosis/urls.py - Django handlers → Diagnosis pages: renders pages
- Django handlers → Image submission: handles submission
medical_image/Diagnosis/urls.py - Image submission → Image preprocessing: prepares image
README.md - Image preprocessing → CNN features: feeds image
README.md - CNN features → Patch tokenization: extracts features
README.md - Patch tokenization → Transformer encoder: forms tokens
README.md - Transformer encoder → Classification head: contextualizes features
README.md - Classification head → CACI interpretation: interprets predictions
README.md - CACI interpretation → LLM narrative: generates narrative
README.md - CACI interpretation → Explainability hub: explains result
README.md - Django handlers → Diagnosis records: uses records
medical_image/Diagnosis/views.py - Django handlers → Reports: serves reports
medical_image/Diagnosis/urls.py - Django handlers → Diagnosis history: serves history
medical_image/Diagnosis/urls.py - Reports → Diagnosis records: persists diagnosis
medical_image/Diagnosis/views.py - Diagnosis history → Diagnosis records: reads diagnoses
medical_image/Diagnosis/views.py - Django handlers → Accounts and profiles: handles accounts
medical_image/Diagnosis/views.py - Django handlers → Feedback and notifications: handles feedback
medical_image/Diagnosis/views.py - Administration → Diagnosis records: manages records
medical_image/Diagnosis/admin.py - Django handlers → LLM narrative: requests interpretation