{"id":{"repo_id":"chalmers","oai_identifier":"oai:odr.chalmers.se:20.500.12380/312162"},"canonical_url":"https://search.ndltd.org/etd/chalmers/oai:odr.chalmers.se:20.500.12380/312162","repository":{"repo_id":"chalmers","name":"Chalmers University of Technology","base_url":"https://odr.chalmers.se/oai/request"},"display":{"title":"Adapting Without Forgetting","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Haraldsson, Max","Widengård, Anton"],"institution":null,"degree_name":null,"degree_level":"H","degree_discipline":null,"degree_department":"Chalmers tekniska högskola / Institutionen för elektroteknik","school":null,"contributors":[],"advisors":["Pineda, Jesús"],"committee_chairs":[],"committee_members":["Alvén, Jennifer"],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T03:03:55Z","subjects":["cell segmentation","foundation models","microscopy","Cellpose-SAM","Cell-SAM","parameter-efficient fine-tuning","QLoRA","LoRA","catastrophic forgetting","instance segmentation","vision transformers","feature distillation"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["EENX30"],"render_values":[{"text":"EENX30","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.12380/312162","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.12380/312162","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Achalmers%3Aoai%3Aodr.chalmers.se%3A20.500.12380%2F312162","prefix":"oai_dc"},"source_record":{"url":"https://odr.chalmers.se/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aodr.chalmers.se%3A20.500.12380%2F312162","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Alvén, Jennifer"]},{"key":"dc:contributor.department","label":"Department","values":["Chalmers tekniska högskola / Institutionen för elektroteknik"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Pineda, Jesús"]},{"key":"dc:creator","label":"Author","values":["Haraldsson, Max","Widengård, Anton"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-08-17T09:21:51Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:publisher.program","label":"Dc Publisher Program","values":["Biomedical engineering (MPMED), MSc"]},{"key":"dc:type.degree","label":"Dc Type Degree","values":["Examensarbete för masterexamen","Master's Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["H"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["cell segmentation","foundation models","microscopy","Cellpose-SAM","Cell-SAM","parameter-efficient fine-tuning","QLoRA","LoRA","catastrophic forgetting","instance segmentation","vision transformers","feature distillation"]},{"key":"dc:subject.uppsok","label":"Dc Subject Uppsok","values":["Technology"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["EENX30"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.12380/312162"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Adapting Without Forgetting"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.committeemember":["Alvén, Jennifer"],"dc:contributor.department":["Chalmers tekniska högskola / Institutionen för elektroteknik"],"dc:contributor.supervisor":["Pineda, Jesús"],"dc:creator":["Haraldsson, Max","Widengård, Anton"],"dc:date.accessioned":["2026-08-17T09:21:51Z"],"dc:date.issued":["2026"],"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:publisher.program":["Biomedical engineering (MPMED), MSc"],"dc:subject":["cell segmentation","foundation models","microscopy","Cellpose-SAM","Cell-SAM","parameter-efficient fine-tuning","QLoRA","LoRA","catastrophic forgetting","instance segmentation","vision transformers","feature distillation"],"dc:subject.uppsok":["Technology"],"dc:title":["Adapting Without Forgetting"],"dc:type.degree":["Examensarbete för masterexamen","Master's Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["H"]},"updated_at":"2026-11-19T03:03:55Z"}