The model uses two identical Swin-UNETR backbones initialized with pre-trained weights from the BTCV dataset.
This model is designed for transparency. The inference script generates 3D Grad-CAM Heatmaps for both the structural (T2) and functional (Kinetics) inputs, allowing clinicians to visualize the features driving the prediction.
The primary metric used is
ROC AUC (Area Under the Receiver Operating Analytic Curve).
Detailed performance graphs and confusion matrices for the ensemble can be found in the associated
GitHub Repository.
1import torch
2from utils import MultiStreamSwin
3
4# Initialize the Multi-Stream Transformer
5model = MultiStreamSwin(num_classes=3)
6
7# Load Fold 0 weights
8model.load_state_dict(torch.load("weights/best_swin_odelia_fold0.pth", map_location="cpu"))
9model.eval()
10
11# Example: Inference on T2 and Kinetics tensors
12# output = model(t2_tensor, kinetics_tensor)
13
This model is for research purposes only. It was trained on the ODELIA proprietary dataset. Predictions should not be used for clinical diagnosis without professional medical supervision.