Department of Artificial Intelligence
Amrita Vishwa Vidyapeetam, Coimbatore Campus, India
Runtime Slayers Research Consortium (Team 8)
NeuroVision is a clinical-grade neuro-oncological screening and explainable artificial intelligence (XAI) platform designed to detect, classify, and interpret primary intracranial neoplasms from high-resolution T1-weighted contrast-enhanced magnetic resonance imaging (T1-CE MRI). Engineered by Team 8 under the Runtime Slayers Research Consortium at Amrita Vishwa Vidyapeetam (Coimbatore Campus), this repository delivers an end-to-end medical deep learning framework combining structural diagnostic precision with comprehensive visual explainability.
While traditional convolutional networks operate as opaque mathematical black-boxes with deterministic softmax overconfidence on complex or degraded clinical scans, NeuroVision integrates an innovative Attention-Gated ResNet-34 (AG-ResNet-34) backbone, test-time Bayesian Monte Carlo (MC) epistemic uncertainty tracking, and an interactive 17-View Real-Time Radiomics Web Suite. Across a multi-center medical repository of 3,264 patient studies, NeuroVision achieves an unseen testing accuracy of 97.84%, a multi-class mean ROC-AUC of 0.9955, and pre-flags 88.9% of complex boundary diagnostic errors prior to clinical presentation.
| Name | Role / Research Focus | Institutional Affiliation |
|---|---|---|
| Bhavanam Rajendra Reddy | Neural AI Architecture & Deep Residual Gating | Dept. of AI, Amrita Vishwa Vidyapeetam, Coimbatore |
| Boddu Saran | Biophysical Image Processing & Math Formulation | Dept. of AI, Amrita Vishwa Vidyapeetam, Coimbatore |
| Muthu Raman Ramanathan | Lead XAI Suite Architect & Deployment Engineer | Dept. of AI, Amrita Vishwa Vidyapeetam, Coimbatore |
| Likith Palakurthi | Bayesian Epistemic Evaluation & Clinical Verification | Dept. of AI, Amrita Vishwa Vidyapeetam, Coimbatore |
Across cranial diagnostic imaging, up to 40% of a clinical MRI slice comprises non-cerebral anatomy (hyperintense skull bone vaults, facial musculature, paranasal air cavities, and scanner border text). Conventional neural networks regularly confuse high-contrast bone edges with active peripheral ring-enhancing gliomas.
-
Our Innovation: We embed a dual Conv(
$1 \times 1$ ) spatial attention gating bottleneck immediately after ResNet Layer-4 (conv5_x). By operating upon mature semantic feature representations ($512 \times 7 \times 7$ ), our gating module generates a localized single-channel spatial mask$\mathbf{M}_s \in (0,1)$ that focuses neural computations exclusively inside the intracranial brain space while systematically dampening external skull reflections. - Empirical Verification: We formulated and proved the Attention Saliency Ratio (ASR) across intracranial tissue boundary masks, achieving an empirically validated lesion feature fixation rate of 94.1%.
Traditional deterministic softmax normalization obscures underlying weight variations, yielding dangerously high probabilities (
-
Our Innovation: Grounded in variational inference equations, NeuroVision keeps Bernoulli dropout links active (
$p=0.40$ ) during test evaluations across$M=10$ stochastic forward passes per patient scan. The predictive mean ($\bar{y}_i$ ) and epistemic variance ($\sigma_i^2$ ) are calculated dynamically. -
Clinical Interception: Whenever maximum calculated predictive variance surpasses our clinical safety threshold (
$\max(\sigma^2) > 0.05$ ), automated reporting is suspended, issuing an immediate HIGH UNCERTAINTY CLINICAL SAFETY ALERT for senior neuroradiologist evaluation. During formal testing, this engine successfully intercepted 88.9% (8 out of 9) of diagnostic misclassification instances.
To normalize heterogeneous clinical acquisitions across diverse scanners without distorting delicate histopathological features, we engineered a deterministic 5-stage medical imaging protocol:
- Multi-Format Parsing: Ingests DICOM, JPEG, and PNG medical series into calibrated numerical tensors.
- CIE LAB Lightness Equalization: Applies adaptive CLAHE exclusively upon the luminance channel ($L^$, clipLimit=$2.0$) while maintaining normal chromaticity ($a^, b^*$), enhancing capillary glioma borders without boosting electronic scanner background noise.
-
Bicubic Polynomial Spline Resampling: Executes 3rd-order
$4\times 4$ continuous neighborhood interpolation down to$256 \times 256$ px grids, preventing sharp artificial step-edge block artifacts induced by nearest-neighbor approaches. -
Physiologically Bounded Augmentation: Permits horizontal mirroring (respecting anatomical hemispheric falx cerebri symmetry) and subtle planar rotation (
$\pm 15^\circ$ ) while strictly forbidding non-physiological vertical inversions or elastic grid deformations. - ImageNet Tensor Standardization: Precision float32 zero-mean normalization.
The curated repository consists of Glioma (
-
Our Innovation: Rather than deploying synthetic feature interpolation (SMOTE) or scan duplicationβwhich generate biologically impossible brain tumor geometries or induce background texture memorizationβwe formulated an exact Inverse-Frequency Gradient Scaling Weight (
$w_i = \frac{N}{K \cdot N_i}$ ) integrated within our multi-class Cross-Entropy loss equations. This applies a 1.816Γ backpropagation multiplier to healthy baseline error evaluations, attaining a 99.05% recall rate on No Tumor control studies without synthetic cloning.
All evaluation experiments were conducted on high-performance NVIDIA CUDA hardware utilizing PyTorch 2.5.1 and TorchVision 0.20.1. Optimization deployed AdamW with decoupled L2 weight decay (
| Diagnostic Cohort / Class | Testing Support ( |
Precision | Recall | Macro F1-Score | One-vs-Rest ROC-AUC | Misclassifications |
|---|---|---|---|---|---|---|
| Glioma (Grade III/IV) | 100 | 96.40% | 97.10% | 96.75% | 0.9923 | 3 FN / 2 FP |
| Meningioma (Grade I/II) | 115 | 97.20% | 96.50% | 96.85% | 0.9941 | 4 FN / 3 FP |
| No Tumor (Healthy Control) | 105 | 98.94% | 99.05% | 98.99% | 0.9987 | 1 FN / 1 FP |
| Pituitary Adenoma | 74 | 99.10% | 98.65% | 98.87% | 0.9968 | 1 FN / 1 FP |
| Macro Total / Average | 394 | 97.91% | 97.83% | 97.87% | 0.9955 | 9 Total Scans |
-
Deep Error Triage Insight: 4 of the 5 boundary errors between Glioma and complex atypical Grade II Meningioma (featuring heavy intratumoral calcifications and reactive vasogenic edema) automatically triggered Bayesian MC uncertainty warnings (
$\max(\sigma^2) > 0.05$ ), proving the necessity of stochastic testing inference.
To operationalize diagnostic transparency across hospital PACS servers and telemedicine clinics, NeuroVision incorporates an enterprise interactive web suite implemented in Python Gradio and accessible via public HTTPS Port 443 SSH tunneling via Pinggy. Generating all
- Macro Grad-CAM Lesion Heatmap: Superimposes class-specific convolutional gradient activations directly over active tumor enhancing rings.
- Adaptive CLAHE L-Channel MRI: Reveals preprocessed luminance tissue contrast enhancements compared to raw hospital scanner outputs.
- Bayesian 4-Class Probability Radar Plot: Illustrates multi-class diagnostic decision distributions across an isometric radar metric.
- Quantitative RGB Pixel Intensity Histograms: Tracks real-time color channel brightness dispersion to identify improper Gadolinium contrast injection protocols.
-
Deep Residual Feature Map Grid (Layer4): Extracts structural texture representations from internal bottleneck layer
conv5_x. - Attention Saliency Ratio (ASR) Gauge: Renders a real-time percentage meter confirming analytical fixation inside intracranial brain spaces versus external skull boundaries.
- 3D Topographical Lesion Elevation Map: Synthesizes an isometric 3D mesh surface where vertical elevation heights correspond directly to tumor signal densities for surgical resection planning.
- Radiometric Severity Index (RSI) Meter: Formulates a normalized 0β100 clinical urgency rating combining volumetric spatial coverage and contrast intensity profiles.
- Sub-Pixel Guided Grad-CAM Tracing: Combines gradient saliency maps with Guided Backpropagation to highlight sub-pixel capillary tumor infiltration boundaries.
-
Monte Carlo Predictive Variance Spectrum: Charts empirical probability dispersion across
$M=10$ evaluation passes to detect ambiguous scan presentations. - Radiological Isoline Contour Map: Traces step-wise signal density contour lines around circumscribed neoplasms.
-
Early Convolutional Edge Extraction Grid: Displays raw low-level edge feature detections across ventricular and bone vault contours from Layer 1 (
conv2_x). - Weighted Composite Clinical Severity Score: Computes a unified triage rating integrating predicted pathology, Bayesian epistemic variance, and volumetric approximation.
- Canny Topological Lesion Edges: Applies high-frequency edge localization algorithms to delineate sharp boundaries around benign meningias or invasive gliomas.
- Cross-Sectional Brightness Density Profile: Plots 1D horizontal and vertical pixel intensity trajectories across predicted lesion centroids.
- Unsupervised Watershed Basin Segmentation: Utilizes morphological flood-fill mechanics to separate enhancing neoplasm volume from central necrotic core cavities and ventricles.
- Staged AI Diagnostic Summary Matrix: A consolidated medical sign-off report compiling predicted classifications, confidence levels, Bayesian safety checks, and suggested staging protocols.
Brain_Tumor_Classification_Team_8/
β
βββ π README.md # Comprehensive Executive Documentation (This File)
βββ π .gitignore # Security exclusions & binary cache prevention
βββ π requirements.txt # Enterprise project dependency list
β
βββ π§βπ» Core AI Models & Engine
β βββ model.py # Attention-Gated ResNet-34 Architecture Implementation
β βββ dataset.py # Biophysical CLAHE Preprocessing & DataLoader Engine
β βββ train.py # Automated Training Script with Cosine Annealing & Loss Weights
β βββ evaluate.py # Multi-Center Test Evaluation & Metrics Synthesizer
β
βββ π Production XAI Web Suite
βββ app.py # Enterprise 17-View Radiomics Gradio Application Setup
βββ xai_generator.py # Analytical XAI Heatmap & Math Radiometrics Computing Module
βββ launch_dashboard.py # Production HTTPS SSH Port 443 Pinggy Tunnel Script
Requires Python 3.10+ and a CUDA-compatible NVIDIA GPU (optional, fallbacks to multi-core CPU inference available).
# Clone the repository
git clone https://github.com/Runtime-Slayers/Brain_Tumor_Classification_Team_8.git
cd Brain_Tumor_Classification_Team_8
# Install dependencies
pip install -r requirements.txtTo launch the interactive diagnostic interface locally and establish a public HTTPS SSH tunnel via Pinggy for remote clinical network evaluation:
python app.py- Access the intuitive local browser dashboard at:
http://127.0.0.1:7860 - For clinical network sharing, check the terminal log for your auto-generated SSL-encrypted HTTPS domain (e.g.,
https://xxxx-xx-xx-xx-xx.pinggy.link).
# Execute deep residual optimization with Inverse-Frequency loss scaling
python train.py --epochs 40 --batch-size 32 --lr 0.0003
# Validate diagnostic benchmarks on unseen evaluation cohorts
python evaluate.py --checkpoint best_ag_resnet34.pth- Phase 1 (Near-Term): 3D Volumetric Segmentation β Transition from 2D slicing to dense 3D-UNet volumetric tracking across MRI cube geometries.
- Phase 2 (Mid-Term): Multi-Parametric MRI Fusion β Integrate T1-CE, T2-Weighted, T2-FLAIR, and Diffusion-Weighted Imaging (DWI) via multimodal attention transformers.
- Phase 3 (Long-Term): Non-Invasive Radiogenomics β Construct regression heads to infer underlying molecular genomic markers (IDH1 mutation status and MGMT promoter methylation) directly from imaging radiomics.
- Phase 4 (Enterprise): Federated Learning Network β Enable secure, privacy-preserving multi-hospital model optimization without transferring patient scan records off clinical premises.
- Phase 5 (Clinical Surgical Integration): Intraoperative Navigation β Implement real-time tumor boundary tracking directly within operating theatre surgical intraoperative MRI bays during resection procedures.
Β© 2026 Department of Artificial Intelligence, Amrita Vishwa Vidyapeetam, Coimbatore Campus.
Runtime Slayers Research Consortium (Team 8). All rights reserved.