DSMILViT-S with DINO
Positive (1.0)
Selected configurationMaster’s thesis
My master’s research combined feature extraction and Multiple Instance Learning for lymph-node classification in whole-slide histology, with model evaluation and attention analysis.
UNIMORE · Fraunhofer IIS · Academic year 2023/2024

Reported thesis results · example predictions
Explore the three model and feature-extractor configurations evaluated in my master’s research.
Two aggregation streams combine a critical instance with a non-local stream.
EfficientNetB0 features are adapted to the 384-dimensional BufferMIL input.
ViT-S/DINO features enter BufferMIL, with a memory buffer of top-scoring patches.
Reported results from my master’s research. The meaning of ± and the number of runs were not specified.
| Configuration | ACC | AUC | F1 | F2 |
|---|---|---|---|---|
| DSMILViT-S with DINO | 0.9266 | 0.8587 | 0.7531 | 0.7160 |
| BufferMILEfficientNetB0 | 0.8608 | 0.7251 | 0.4571 | 0.3931 |
| BufferMILViT-S with DINO | 0.9323 ± 0.0138 | 0.9450 ± 0.0126 | 0.8219 ± 0.0400 | 0.8423 ± 0.0396 |
Reference label: positive in each illustrated example.
Positive (1.0)
Selected configurationNegative (0.0)
Selected configurationPositive (1.0)
Selected configurationBoth ViT configurations predict positive in this shown example; the EfficientNet configuration predicts negative.
Positive (1.0)
Selected configurationPositive (1.0)
Selected configurationPositive (1.0)
Selected configurationAll three configurations predict positive in this shown example.
Negative (0.0)
Selected configurationNegative (0.0)
Selected configurationNegative (0.0)
Selected configurationAll three predict negative for this shown positive example. This is one case, not an estimate of performance across ITC cases.
These are reported results and individual examples, not live model inference or category-level sensitivity estimates.
A histology slide can contain billions of pixels. Multiple Instance Learning makes that scale manageable by working with a bag of image patches and learning a label for the group. My thesis explored this approach for positive or negative lymph-node classification.
I studied how feature extractors and MIL models fit into a pipeline and what attention maps show about individual predictions.
I implemented and evaluated the pipeline in the Fraunhofer IIS research setting, working with supplied histology patches and lymph-node annotations. The work connected data preparation, feature extraction and model evaluation.
I processed the supplied non-overlapping 224 × 224 patches in TFRecords and organised their feature vectors, labels and metadata into HDF5 datasets.
I integrated EfficientNetB0 and ViT-S with DINO. The EfficientNet features were adapted to BufferMIL’s 384-dimensional input, with direct HDF5 access in the model pipeline.
I evaluated BufferMIL’s critical-instance and memory-buffer approach alongside DSMIL’s dual-stream aggregation, using the three model/extractor configurations reported below.
I explored the embeddings with PCA and compared attention distributions and heatmaps in macro-, micro- and ITC metastasis examples.
The EfficientNetB0 extractor was pretrained on colon-cancer images. The ViT-S/DINO path used pretrained Facebook weights through the original BufferMIL framework. Both paths produced 384-dimensional feature vectors.
These were different pretrained representations brought into the same lymph-node workflow. Breast-cancer-specific WSI pretraining remained a next step.

I used Camelyon16’s original challenge division. The pipeline operates on lymph nodes, so those are the units shown alongside the whole-slide image counts.
270 slides · 227 positive · 895 negative
128 slides · 90 positive · 456 negative
BufferMIL with ViT-S/DINO has the highest reported values across the three configurations. These are the results reported in my master’s research.
| Model & extractor | Accuracy | AUC | F1 | F2 |
|---|---|---|---|---|
| DSMILViT-S with DINO | 0.9266 | 0.8587 | 0.7531 | 0.7160 |
| BufferMILEfficientNetB0 | 0.8608 | 0.7251 | 0.4571 | 0.3931 |
| BufferMILViT-S with DINO | 0.9323 ± 0.0138 | 0.9450 ± 0.0126 | 0.8219 ± 0.0400 | 0.8423 ± 0.0396 |
Scroll the table horizontally when needed.Each configuration is shown as a card with its four reported metrics.
The meaning of ± and the number of runs were not specified in the reported results. These are three reported configurations, rather than a complete comparison of every model and extractor pairing.
In the illustrated ITC-positive example, all three configurations predict negative. The macrometastasis example also separates the approaches: both ViT configurations predict positive, while the EfficientNet configuration predicts negative.
Those examples help put the aggregate scores in perspective. They show individual outcomes, rather than performance estimates for an entire metastasis category.
The work gave me a practical way to connect model evaluation with the data behind it. Attention maps made individual predictions inspectable; they did not, on their own, establish reliable lesion localisation.
The next steps were pretraining on breast-cancer-specific whole-slide images and integrating attention heatmaps into the Fraunhofer platform. The documented outcome is the research pipeline and its evaluation; clinical heatmap integration remained future work.