How srishank-padam/ai_radiologist works
This repository combines a medical-imaging frontend with several independent model and inference projects for CT, MRI, X-ray, and pneumonia scans. The user-facing flow is modality selection, scan upload or sample selection, analysis, and results; backend capabilities include routing, prediction, and visual explanations. The README is empty, and many source files were not excerpted, so some subsystem boundaries are represented without speculative runtime connections.
Main entry points: run_pipeline.py Dementia workflow · App.jsx App workflow · inference.py CT inference · pipeline.py CT pipeline
Components 33
Web experience
- App workflow
frontend/src/App.jsx - Home
frontend/src/pages/Home.jsx - Scan selection
frontend/src/pages/ScanSelection.jsx - Scan upload
frontend/src/pages/Upload.jsx - Analysis state
frontend/src/hooks/useAnalysis.js - Prediction API
frontend/src/services/api.js - Results view
frontend/src/pages/Results.jsx - Session storage
frontend/src/utils/storage.js
CT analysis
- CT inference
CT_Router/src/inference.py - CT pipeline
CT_Router/src/pipeline.py - Anatomy router
CT_Router/src/router.py - CT experts
CT_Router/src/brain_expert.py - Chest expert
CT_Router/src/chest_expert.py - CT explanations
CT_Router/src/gradcam.py - ICH prediction
CT_Router/RSNA2019_Intracranial-Hemorrhage-Detection/rsna_ich_predict_gradcam.py - COVID CT prediction
CT_Router/Covid19-CT-Scan--Detection/covid_ct_predict.py
MRI analysis
- Dementia workflow
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia inference
MRI_Router/dementia_mri_project/src/inference.py - MRI preprocessing
MRI_Router/dementia_mri_project/src/preprocessing.py - Dementia training
MRI_Router/dementia_mri_project/src/train.py - MRI evaluation
MRI_Router/dementia_mri_project/src/evaluate.py - Data audit
MRI_Router/dementia_mri_project/src/data_audit.py - Data grouping
MRI_Router/dementia_mri_project/src/grouping.py - MRI explanations
MRI_Router/dementia_mri_project/src/gradcam.py - MRI reporting
MRI_Router/dementia_mri_project/src/report.py - MRI report output
MRI_Router/dementia_mri_project/src/report.py
Other imaging models
- Brain tumor app
MRI_Router/brain-_tumor_detection/app.py - Pneumonia pipeline
Pneumonia_Detection/ensemble_pneumonia_pipeline.py - Musculoskeletal model
Foreign_Object_Detection/MURA_EfficientNetB3_GradCAM.py
Model development
- X-ray router model
router/router_model.py - Router training
router/train_router.py - Root pipeline
pipeline.py
Other components
- Scan user
Connections 25
- Scan user → App workflow: uses
frontend/src/App.jsx - App workflow → Home: renders
frontend/src/App.jsx - App workflow → Scan selection: renders
frontend/src/App.jsx - App workflow → Scan upload: renders
frontend/src/App.jsx - App workflow → Results view: renders
frontend/src/App.jsx - App workflow → Analysis state: uses
frontend/src/App.jsx - Analysis state → Prediction API: requests prediction
frontend/src/hooks/useAnalysis.js - Analysis state → Session storage: persists results
frontend/src/hooks/useAnalysis.js - CT inference → CT pipeline: runs pipeline
CT_Router/src/inference.py - CT pipeline → Anatomy router
- CT pipeline → CT experts
- CT pipeline → Chest expert
- CT inference → CT explanations: builds explanations
CT_Router/src/inference.py - CT inference → ICH prediction: references model
CT_Router/src/inference.py - CT inference → COVID CT prediction: references model
CT_Router/src/inference.py - Dementia workflow → Data audit: runs audit
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia workflow → Data grouping: runs split
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia workflow → Dementia training: runs training
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia workflow → MRI evaluation: runs evaluation
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia workflow → MRI explanations: runs Grad-CAM
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia workflow → MRI reporting: writes report
MRI_Router/dementia_mri_project/src/run_pipeline.py - Dementia inference → MRI preprocessing: preprocesses image
MRI_Router/dementia_mri_project/src/inference.py - Dementia inference → MRI explanations: generates explanations
MRI_Router/dementia_mri_project/src/inference.py - Brain tumor app → CT explanations: imports explanation helper
MRI_Router/brain-_tumor_detection/app.py - Router training → X-ray router model: trains model
router/train_router.py