Adapting Without Forgetting
| dc.contributor.author | Haraldsson, Max | |
| dc.contributor.author | Widengård, Anton | |
| dc.contributor.department | Chalmers tekniska högskola / Institutionen för elektroteknik | sv |
| dc.contributor.examiner | Alvén, Jennifer | |
| dc.contributor.supervisor | Pineda, Jesús | |
| dc.date.accessioned | 2026-08-17T09:21:51Z | |
| dc.date.issued | 2026 | |
| dc.date.submitted | ||
| 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. | |
| dc.identifier.coursecode | EENX30 | |
| dc.identifier.uri | https://hdl.handle.net/20.500.12380/312162 | |
| dc.language.iso | eng | |
| dc.setspec.uppsok | Technology | |
| dc.subject | cell segmentation | |
| dc.subject | foundation models | |
| dc.subject | microscopy | |
| dc.subject | Cellpose-SAM | |
| dc.subject | Cell-SAM | |
| dc.subject | parameter-efficient fine-tuning | |
| dc.subject | QLoRA | |
| dc.subject | LoRA | |
| dc.subject | catastrophic forgetting | |
| dc.subject | instance segmentation | |
| dc.subject | vision transformers | |
| dc.subject | feature distillation | |
| dc.title | Adapting Without Forgetting | |
| dc.type.degree | Examensarbete för masterexamen | sv |
| dc.type.degree | Master's Thesis | en |
| dc.type.uppsok | H | |
| local.programme | Biomedical engineering (MPMED), MSc |
