A self-supervised deep learning pipeline for segmentation in two-photon fluorescence microscopy
preprint
OA: closed
CC-BY-NC-ND-4.0
Abstract
Two-photon fluorescence microscopy (TPFM) allows in situ investigation of the structure and function of the brain at a cellular level, but the conventional image analyses of TPFM data are labour-intensive. Automated deep learning (DL)-based image processing pipelines used to analyze TPFM data require large labeled training datasets. Here, we developed a self supervised learning (SSL) pipeline to test whether unlabeled data can be used to boost the accuracy and generalizability of DL models for image segmentation in TPFM. We specifically developed four pretext tasks, including shuffling, rotation, axis rotation, and reconstruction, to train models without supervision using the UNet architecture. We validated our pipeline on two tasks (neuronal soma and vasculature segmentation), using large 3D microscopy datasets. We introduced a novel density-based metric, which provided more sensitive evaluation to downstream analysis tasks. We further determined the amount of labeled data required to reach performance on par with fully supervised learning (FSL) models. SSL-based models that were fine-tuned with only 50% of data were on par or superior (e.g., Dice increase of 3% for neuron segmentation and Dice score of 0.88 ± 0.09 for vessel segmentation) to FSL models. We demonstrated that segmentation maps generated by SSL models pretrained on the reconstruction and rotation tasks can be better translated to downstream tasks than can other SSL tasks. Finally, we benchmarked all models on a publicly available out-of-distribution dataset, demonstrating that SSL models outperform FSL when trained with clean data, and are more robust than FSL models when trained with noisy data.
Full text
1,777 characters
· extracted from
oa-doi-fallback
· click to expand
Abstract
Two-photon fluorescence microscopy (TPFM) allows in situ investigation of the structure and function of the brain at a cellular level, but the conventional image analyses of TPFM data are labour-intensive. Automated deep learning (DL)-based image processing pipelines used to analyze TPFM data require large labeled training datasets. Here, we developed a self supervised learning (SSL) pipeline to test whether unlabeled data can be used to boost the accuracy and generalizability of DL models for image segmentation in TPFM. We specifically developed four pretext tasks, including shuffling, rotation, axis rotation, and reconstruction, to train models without supervision using the UNet architecture. We validated our pipeline on two tasks (neuronal soma and vasculature segmentation), using large 3D microscopy datasets. We introduced a novel density-based metric, which provided more sensitive evaluation to downstream analysis tasks. We further determined the amount of labeled data required to reach performance on par with fully supervised learning (FSL) models. SSL-based models that were fine-tuned with only 50% of data were on par or superior (e.g., Dice increase of 3% for neuron segmentation and Dice score of 0.88 ± 0.09 for vessel segmentation) to FSL models. We demonstrated that segmentation maps generated by SSL models pretrained on the reconstruction and rotation tasks can be better translated to downstream tasks than can other SSL tasks. Finally, we benchmarked all models on a publicly available out-of-distribution dataset, demonstrating that SSL models outperform FSL when trained with clean data, and are more robust than FSL models when trained with noisy data.
Competing Interest Statement
The authors have declared no competing interest.
Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.
My notes (saved in your browser only)
Ask this paper
Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works
Citation neighborhood (sparse)
Too few in-corpus citations on either side for a chart; here are the lists.
Cites (1)
References (32)
- A Deep Learning Pipeline for Mapping in situ Network-level Neurovascular Coupling in Multi-photon Fluorescence Microscopy via crossref
- doi:10.1073/pnas.1710329115 via crossref
- doi:10.21037/qims-19-1090 via crossref
- doi:10.1016/j.media.2019.101539 via crossref
- doi:10.1016/j.mlwa.2021.100198 via crossref
- doi:10.1109/jbhi.2018.2884678 via crossref
- doi:10.48550/arxiv.2208.02105 via crossref
- doi:10.1016/j.pneurobio.2014.06.005 via crossref
- doi:10.48550/arxiv.1803.07728 via crossref
- doi:10.1002/hbm.24811 via crossref
- doi:10.1371/journal.pone.0213539 via crossref
- doi:10.1006/bbrc.2001.5452 via crossref
- doi:10.1109/cvprw50498.2020.00497 via crossref
- doi:10.48550/arxiv.2004.09629 via crossref
- doi:10.1007/978-3-031-09037-0_20 via crossref
- doi:10.1109/tmi.2021.3075244 via crossref
- doi:10.1371/journal.pcbi.1007348 via crossref
- doi:10.1016/j.neuroimage.2019.01.036 via crossref
- doi:10.1038/s41467-022-35004-y via crossref
- doi:10.48550/arxiv.1603.09246 via crossref
- doi:10.1007/s12021-021-09510-1 via crossref
- doi:10.1109/tmi.2022.3150682 via crossref
- doi:10.1038/nbt.4281 via crossref
- doi:10.1038/s41597-023-02048-8 via crossref
- doi:10.1007/978-3-319-24574-4_28 via crossref
- doi:10.1016/j.media.2021.102256 via crossref
- doi:10.48550/arxiv.2006.03829 via crossref
- doi:10.1109/cvpr52688.2022.02007 via crossref
- doi:10.1038/s41592-020-0792-1 via crossref
- doi:10.1523/jneurosci.3287-09.2009 via crossref
- doi:10.1016/j.neuron.2007.03.005 via crossref
- doi:10.1364/oe.434191 via crossref
Source provenance
- crossref
- last seen: 2026-05-30T01:00:31.347080+00:00
- europepmc
- last seen: 2026-05-20T01:45:00.602351+00:00
- unpaywall
- last seen: 2026-05-21T05:10:58.409756+00:00
License: CC-BY-NC-ND-4.0