This project implements a deep learning-based Tuberculosis (TB) detection system using chest X-ray images from the TBX11K dataset.
To enhance trust and transparency in medical AI, the project integrates Explainable AI (XAI) techniques (such as Grad-CAM) to visualize which regions of the X-ray images influenced the model's predictions.
- Name: TBX11K Chest X-ray Dataset
- Content: X-ray images labeled as TB-positive or TB-negative
- Source: Public medical imaging dataset
- Preprocessing:
- Image resizing and normalization
- Data augmentation (rotation, flipping, zooming, shifting)
- Train-validation-test split
- Programming Language: Python
- Libraries:
- Deep Learning:
TensorFlow,Keras - Data Processing:
pandas,numpy,cv2 - Visualization:
matplotlib - Evaluation:
scikit-learn - XAI: Grad-CAM implementation
- Deep Learning:
- Data Loading & Preprocessing
- Extract and organize TBX11K dataset
- Resize and normalize chest X-ray images
- Data Augmentation
- Applied transformations to reduce overfitting
- Model Architecture
- Custom CNN / Transfer Learning backbone
- Classification head for binary TB detection
- Training & Evaluation
- Binary classification (TB-positive / TB-negative)
- Metrics: Accuracy, Precision, Recall, F1-score
- Explainable AI
- Grad-CAM heatmaps to highlight decision-making regions
- Visualization
- Training history plots
- Confusion matrix
- Grad-CAM overlays
- High Recall for TB-positive cases to minimize false negatives
- Grad-CAM visualizations showing the lung regions most relevant to predictions