- MedFusionNet — Hybrid Pneumonia Detection on Chest X-Rays
- ROC - Confusion Matrix - Benchmarks
- 1) Global pipeline
- 2) Input and preprocessing
- 3) Local branch: DenseNet-121
- 4) Global branch: Swin Transformer
- 5) Adaptive gated fusion
- 6) Classification head
- 7) Grad-CAM
- 8) MC-Dropout uncertainty
- 9) Training objective
- 10) Dataset
- 11) Final output
- 12) Original project
- ROC - Confusion Matrix - Benchmarks
MedFusionNet — Hybrid Pneumonia Detection on Chest X-Rays
Original project: carteeeltheboss/DPR_PFA4IADO
ROC - Confusion Matrix - Benchmarks
MedFusionNet is a binary chest X-ray classifier for NORMAL vs PNEUMONIA using:
- DenseNet-121 for local patterns
- Swin Transformer for global context
- gated fusion
- Grad-CAM
- MC-Dropout
1) Global pipeline
Short summary: preprocess the image, extract local and global features, fuse them adaptively, then output probability, heatmap, and uncertainty.
2) Input and preprocessing
Short summary: normalize intensity, resize to a fixed resolution, and standardize the input domain.
3) Local branch: DenseNet-121
Short summary: captures local opacities, fine textures, subtle consolidations, and small radiographic details.
4) Global branch: Swin Transformer
Short summary: captures long-range thoracic structure and contextual anatomical dependencies.
5) Adaptive gated fusion
Short summary: learns how much the model should trust local evidence versus global context for each image.
6) Classification head
Short summary: converts fused features into a binary pneumonia probability.
7) Grad-CAM
Short summary: highlights the image regions that support the predicted class.
8) MC-Dropout uncertainty
Short summary: repeated stochastic forward passes estimate prediction stability.
9) Training objective
Short summary: the objective combines classification, localization regularization, consistency, and calibration.
10) Dataset
Dataset: Paul Mooney Chest X-Ray Images (Pneumonia)
Classes: NORMAL, PNEUMONIA
data/
├── train/
│ ├── NORMAL/
│ └── PNEUMONIA/
├── val/
│ ├── NORMAL/
│ └── PNEUMONIA/
└── test/
├── NORMAL/
└── PNEUMONIA/
Short summary: binary chest X-ray classification with strong class imbalance and noisy acquisition conditions.
11) Final output
Short summary: final prediction = probability + explanation map + uncertainty estimate.

