Feedback

Faculté des Sciences appliquées
Faculté des Sciences appliquées
Mémoire

Fine-tuning SAM for Grain Segmentation in Reflected-light Microscopy

Télécharger
Campo, Adriaan ULiège
Promoteur(s) : Pirard, Eric ULiège
Date de soutenance : 23-jan-2026 • URL permanente : http://hdl.handle.net/2268.2/25195
Détails
Titre : Fine-tuning SAM for Grain Segmentation in Reflected-light Microscopy
Titre traduit : [fr] Ajustement Fin de SAM pour la Segmentation des Grains en Microscopie à Lumière Réfléchi
Auteur : Campo, Adriaan ULiège
Date de soutenance  : 23-jan-2026
Promoteur(s) : Pirard, Eric ULiège
Membre(s) du jury : Bouzahzah, Hassan ULiège
Nguyen, Frédéric ULiège
Langue : Anglais
Nombre de pages : 85
Mots-clés : [en] machine learning
[en] reflected light microscopy
[en] segment anything
[en] automated mineralogy
[en] vision transformers
[en] grain detection
Discipline(s) : Ingénierie, informatique & technologie > Géologie, ingénierie du pétrole & des mines
Ingénierie, informatique & technologie > Sciences informatiques
Public cible : Chercheurs
Professionnels du domaine
Institution(s) : Université de Liège, Liège, Belgique
Diplôme : Master en ingénieur civil des mines et géologue, à finalité spécialisée en géologie de l'ingénieur et de l'environnement
Faculté : Mémoires de la Faculté des Sciences appliquées

Résumé

[en] Automated grain segmentation in reflected-light microscopy (RLM) is a key step in quantitative texture analysis and automated mineralogy, yet it remains challenging due to weak and heterogeneous contrast, strong domain variability, and other factors. Classical image-processing approaches often lack robustness, while supervised deep-learning methods require large, domain-specific annotated datasets and frequently generalize poorly across materials. This work investigates the applicability of the Segment Anything Model (SAM), a promptable vision foundation model, for grain segmentation in RLM images and evaluates whether parameter-efficient fine-tuning (PEFT) can improve its performance.
First, we benchmark the zero-shot performance of SAM with ViT-B and ViT-H backbones against a fully supervised DeepLabV3+ model on two open-source ore microscopy datasets (iron ore and copper ore). Quantitative evaluation using pixel-wise metrics (IoU, Dice, precision, and recall) shows that SAM achieves segmentation accuracy comparable to DeepLabV3+ without any task-specific training, while demonstrating superior cross-dataset generalization. In contrast, DeepLabV3+ exhibits severe performance degradation when applied outside its training domain.
Second, we apply SAM to polished dolomite sections. For this dataset, SAM is compared with classical stereological measurements, different preprocessing strategies are tested, and we show that SAM yields quantitatively consistent textural descriptors. Moreover, we demonstrate that fine-tuning SAM improves both mask-level and full-field segmentation accuracy while updating only a small fraction of the model parameters.
Third, we apply SAM to industrial datasets of glass and silica grains from solar panels, which are challenging because the reflectivity of glass is close to that of the resin. The out-of-the-box versions of SAM can segment both glass and silica grains effectively.
Overall, the study shows that (i) SAM is a strong starting point for segmenting unseen RLM data, (ii) preprocessing can be critical for achieving good segmentation results with SAM, and (iii) small, targeted fine-tuning is an effective and practical path for improving foundation models in reflected-light microscopy segmentation tasks.
Finally, we release a Colab-ready codebase with a clear repository structure to support reproducibility.


Fichier(s)

Document(s)

File
Access TFE_Adriaan_Campo_20252026.pdf
Description: Full thesis text
Taille: 50.77 MB
Format: Adobe PDF
File
Access Abstract_TFE_Adriaan_Campo_20252026.pdf
Description: Abstract thesis
Taille: 99.58 kB
Format: Adobe PDF

Auteur

  • Campo, Adriaan ULiège Université de Liège > Master ing. civ. min. geol. fin. spéc. géol. ing. env.

Promoteur(s)

Membre(s) du jury









Tous les documents disponibles sur MatheO sont protégés par le droit d'auteur et soumis aux règles habituelles de bon usage.
L'Université de Liège ne garantit pas la qualité scientifique de ces travaux d'étudiants ni l'exactitude de l'ensemble des informations qu'ils contiennent.