Back to search

Chalmers University of Technology

Adapting Without Forgetting

Abstract

dc:description.abstract

Automated cell segmentation in microscopy images is a critical task in pharmaceutical research and biological discovery. Existing supervised approaches require extensive annotated data and must be retrained for each new cell type or imaging condition. Foundation models offer a promising alternative through their ability to generalise across diverse domains without retraining. However, a systematic comparison of their generalisation across diverse microscopy conditions has been lacking. Moreover, adapting such models to specific datasets through fine-tuning risks catastrophic forgetting, potentially undermining the very generalisation that makes them valuable. This thesis benchmarks two state-of-the-art foundation models for cell segmentation, CellSAM and Cellpose-SAM, across several datasets spanning multiple imaging modalities. Cellpose-SAM consistently outperformed CellSAM, particularly at stricter evaluation thresholds, attributed to its flow-based instance separation, which handles touching and overlapping cells more effectively than CellSAM’s promptbased approach. Cellpose-SAM was subsequently fine-tuned using QLoRA, a parameter-efficient method that adapts only a small fraction of the model’s weights. Fine-tuning on a small curated dataset yielded substantial improvement on challenging microscopy images while retaining near-baseline performance on held-out general data, demonstrating that catastrophic forgetting can be avoided with careful, parameter-efficient finetuning. The entire training process required approximately 15 minutes on a single A100 GPU, illustrating that meaningful adaptation of large vision foundation models is achievable with modest computational resources.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för elektroteknik
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Haraldsson, Max
  • Widengård, Anton
Advisor dc:contributor.supervisor
  • Pineda, Jesús
Committee member dc:contributor.committeemember
  • Alvén, Jennifer

Subjects

dc:subject × 12

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
EENX30

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Haraldsson, Max; Widengård, Anton. Adapting Without Forgetting. H thesis, 2026. https://hdl.handle.net/20.500.12380/312162