How ishangite/spatio-temporal-tumour-detection works
This repository is a medical-imaging tumour analysis framework with an interactive Streamlit interface, sequential-mask prediction, binary tumour detection, and longitudinal volume viewing. Its main user workflow selects a patient and timepoint, runs detection and prediction, and presents scan overlays and attention heatmaps. Separate training and evaluation scripts support the prediction and detection models. The README describes a broader spatio-temporal objective, while the sampled model implements next-timepoint mask prediction; unsampled analysis and preprocessing details are represented only at their source paths, without assuming internal wiring.
Main entry points: model.py 3D Growth U-Net · app.py Interactive Analysis App · app_sample.py Sample Analysis App · detector.py Tumour Detector
Components 19
Imaging Preparation
- Imaging Preprocessing
src/preprocess.py - Detector Preprocessing
src/preprocess_detector.py - Sequential Pair Dataset
src/dataset_loader.py
Model Learning
- 3D Growth U-Net
src/model.py - Tumour Detector
src/detector.py - Growth Model Training
src/train.py - Detector Training
src/train_detector.py
Inference & Explanation
- Interactive Analysis App
src/app.py - Sample Analysis App
src/app_sample.py - Growth Prediction
src/predict.py - Grad-CAM Heatmaps
src/gradcam.py - Grad-CAM Variant
src/gradcam_plus.py - Mask Processing
src/masking.py - Batch Evaluation
src/evaluate.py
Longitudinal Analysis
- Volume Analysis
src/analysis.py - Longitudinal Analysis
src/volume_analysis.py - Patient Growth Tracker
src/main.py - Volume Slice Viewer
src/viewer_volume.py
Other components
- Clinician / Analyst
Connections 19
- Clinician / Analyst → Interactive Analysis App: selects study
src/app.py - Clinician / Analyst → Sample Analysis App: selects study
src/app_sample.py - Interactive Analysis App → 3D Growth U-Net: loads model
src/app.py - Interactive Analysis App → Tumour Detector: runs detection
src/app.py - Interactive Analysis App → Grad-CAM Heatmaps: generates heatmap
src/app.py - Sample Analysis App → 3D Growth U-Net: loads model
src/app_sample.py - Sample Analysis App → Tumour Detector: runs detection
src/app_sample.py - Sample Analysis App → Grad-CAM Heatmaps: generates heatmap
src/app_sample.py - Imaging Preprocessing → Sequential Pair Dataset: prepares input
README.md - Detector Preprocessing → Detector Training: prepares examples
src/train_detector.py - Sequential Pair Dataset → Growth Model Training: provides pairs
src/train.py - Growth Model Training → 3D Growth U-Net: trains
src/train.py - Detector Training → Tumour Detector: trains
src/train_detector.py - Growth Prediction → 3D Growth U-Net: runs inference
src/predict.py - Batch Evaluation → 3D Growth U-Net: evaluates
src/evaluate.py - Clinician / Analyst → Patient Growth Tracker: chooses patient
src/main.py - Patient Growth Tracker → Volume Slice Viewer: opens slices
- Clinician / Analyst → Volume Analysis: reviews progression
- Clinician / Analyst → Longitudinal Analysis: reviews change