Falcon7211 commited on
Commit
19e753c
·
verified ·
1 Parent(s): c62e4e2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +64 -20
README.md CHANGED
@@ -26,8 +26,8 @@ model-index:
26
  name: BraTS 2023 Adult Glioma Challenge
27
  metrics:
28
  - type: dice
29
- value: 0.8953
30
- name: Validation Mean Dice
31
  - type: dice
32
  value: 0.9223
33
  name: Whole Tumor (WT) Dice
@@ -37,35 +37,79 @@ model-index:
37
  - type: dice
38
  value: 0.8345
39
  name: Enhancing Tumor (ET) Dice
 
 
 
40
  ---
41
 
42
  # Scanvidence: 3D SegResNetB0 & Quantum-Enhanced Molecular Radiomics
43
 
44
- This repository contains the trained weights, training history, and quantum-classical molecular prediction artifacts for **Scanvidence**, a hybrid quantum-classical medical platform for brain tumor segmentation and non-invasive MGMT molecular profiling.
 
 
45
 
46
- ## Model Highlights
47
- - **Architecture:** 3D `SegResNetB0` Residual Encoder-Decoder (1,599,420 parameters).
48
- - **Segmentation Precision:**
49
- - **Whole Tumor (WT) Dice:** **$0.9223 \pm 0.063$**
50
- - **Tumor Core (TC) Dice:** **$0.8808 \pm 0.174$**
51
- - **Enhancing Tumor (ET) Dice:** **$0.8345 \pm 0.229$**
52
- - **Mean Overall Dice:** **`0.8953` (~89.5%)**
53
- - **Quantum Integration:**
54
- - **NP-Hard QUBO Pruning:** Formulated and solved on **IBM Fez (156-Qubit Heron QPU, Job ID: `daa8k09qtnsc73d2c7f0`)** to extract a non-redundant 9-biomarker radiomic panel.
55
- - **Quantum Kernel QSVM:** 9-Qubit `ZZFeatureMap` in 512D Hilbert space achieving a **+6.7% AUC gain** over classical Gaussian RBF SVMs.
56
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ---
58
 
59
- ## File Contents
60
- - `best.pt`: Trained PyTorch weights for `SegResNetB0` (19.3 MB, Epoch 72).
61
- - `run.json`: Complete training progression and validation metrics.
62
- - `history.json`: Epoch-by-epoch loss tracking.
63
- - `profile-b0.json`: Hardware profile (FP32, 601.5 ms step time, 0.91 GB VRAM).
64
- - `qsvm_mgmt_model.joblib`: Trained Quantum Kernel Support Vector Machine.
65
- - `qubo_biomarkers.json`: Frozen 9-biomarker feature definitions and normalization medians.
66
 
67
  ---
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  ## Quickstart & Usage
70
 
71
  ### 1. Load 3D Segmentation Model (PyTorch)
 
26
  name: BraTS 2023 Adult Glioma Challenge
27
  metrics:
28
  - type: dice
29
+ value: 0.8792
30
+ name: Full-Volume Mean Dice
31
  - type: dice
32
  value: 0.9223
33
  name: Whole Tumor (WT) Dice
 
37
  - type: dice
38
  value: 0.8345
39
  name: Enhancing Tumor (ET) Dice
40
+ - type: dice
41
+ value: 0.8953
42
+ name: Patch-Level (96³) Best Val Dice
43
  ---
44
 
45
  # Scanvidence: 3D SegResNetB0 & Quantum-Enhanced Molecular Radiomics
46
 
47
+ This repository contains the official trained weights, full-volume validation benchmarks, training history, and quantum-classical molecular prediction artifacts for **Scanvidence**, a hybrid quantum-classical medical platform for brain tumor segmentation and non-invasive MGMT molecular profiling.
48
+
49
+ ---
50
 
51
+ ## 🏆 3D Segmentation Performance (BraTS GLI 2023 Benchmark)
 
 
 
 
 
 
 
 
 
52
 
53
+ The `SegResNetB0` model is an architecture-controlled 3D Residual CNN baseline with **1,599,420 parameters** (~1.6M) trained on multi-parametric 3D MRI scans (FLAIR, T1, T1c, T2).
54
+
55
+ ### Full 3D Volume Evaluation ($240 \times 240 \times 155$ Full Brain Scans)
56
+ Across all 125 validation cases on full 3D sliding-window inference:
57
+
58
+ | Region | Dice Score | Typical BraTS 2023 Top-Tier | Status |
59
+ |---|---|---|---|
60
+ | **Whole Tumor (WT)** | **0.9223 ± 0.063** | 0.90 – 0.93 | **Leaderboard Top-Tier** |
61
+ | **Tumor Core (TC)** | **0.8808 ± 0.174** | 0.85 – 0.89 | **Leaderboard Top-Tier** |
62
+ | **Enhancing Tumor (ET)** | **0.8345 ± 0.229** | 0.80 – 0.85 | **Competitive** |
63
+ | **Mean Full-Scan Dice** | **0.8792 ± 0.155** | 0.86 – 0.88 | **State-of-the-Art Baseline** |
64
+ | **Patch-Level (96³) Best Val Dice** | **0.8953** (Epoch 72) | — | Optimal Training Checkpoint |
65
  ---
66
 
67
+ ## ⚛️ Quantum-Enhanced Molecular Radiomics (MGMT Promoter Methylation)
68
+
69
+ The predicted 3D segmentation compartments feed into an end-to-end Quantum Machine Learning pipeline for non-invasive molecular biomarker prediction:
70
+
71
+ 1. **NP-Hard QUBO Pruning:** Formulated as a Quadratic Unconstrained Binary Optimization problem and executed on **IBM Fez (156-Qubit Heron Quantum Processor, Job ID: `daa8k09qtnsc73d2c7f0`)** with 10,000 measurement shots, selecting a non-redundant **9-biomarker radiomic panel**.
72
+ 2. **Quantum Kernel Machine Learning (QSVM):** 9-Qubit `ZZFeatureMap` in a 512-dimensional complex Hilbert space achieving a **+6.7% AUC gain** ($0.542$ 5-Fold CV AUC) over Classical Gaussian RBF SVMs.
73
+ 3. **Clinical Explainability:** TreeSHAP feature attributions validated via progressive top-$k$ feature ablation.
74
 
75
  ---
76
 
77
+ ## 📦 Repository Files
78
+
79
+ | File Name | Size | Description |
80
+ |---|---|---|
81
+ | `best.pt` | 19.3 MB | Trained PyTorch weights for `SegResNetB0` (Epoch 72, 89.53% patch Dice / 87.92% full-scan Dice) |
82
+ | `run.json` | 9.1 KB | Complete 72-epoch training loss, learning rate, and multi-region Dice progression |
83
+ | `history.json` | 7.8 KB | Epoch-by-epoch loss tracking history |
84
+ | `profile-b0.json` | 137 B | Hardware profile (FP32, 601.5 ms step time, 0.91 GB VRAM) |
85
+ | `qsvm_mgmt_model.joblib` | 1.8 MB | Trained 9-Qubit Quantum Kernel Support Vector Machine |
86
+ | `qubo_biomarkers.json` | 1.2 KB | Frozen 9-biomarker QUBO schema and normalization medians |
87
+
88
+ ---
89
+
90
+ ## 🚀 Quickstart: Running Inference
91
+
92
+ ### 1. Load 3D Segmentation Model (PyTorch)
93
+ ```python
94
+ import torch
95
+ from huggingface_hub import hf_hub_download
96
+ from scanvidence.models.backbone import SegResNetB0
97
+
98
+ # Download weights from Hugging Face Hub
99
+ ckpt_path = hf_hub_download(repo_id="Falcon7211/Scanvidence-SegResNetB0", filename="best.pt")
100
+ checkpoint = torch.load(ckpt_path, map_location="cpu", weights_only=False)
101
+
102
+ # Load into SegResNetB0
103
+ model = SegResNetB0()
104
+ model.load_state_dict(checkpoint["state_dict"])
105
+ model.eval()
106
+
107
+ # Run inference on 4-channel MRI patch (Batch, 4, D, H, W)
108
+ mri_patch = torch.randn(1, 4, 96, 96, 96)
109
+ with torch.no_grad():
110
+ logits = model(mri_patch)
111
+ print("Predicted Logits Shape:", logits.shape) # (1, 4, 96, 96, 96)
112
+
113
  ## Quickstart & Usage
114
 
115
  ### 1. Load 3D Segmentation Model (PyTorch)