Abstract
Deep learning is the state-of-the-art approach for bioimage segmentation. However, it presents a paradox regarding image resolution: counterintuitively, deep learning segmentation performance can improve with lower image resolutions. This phenomenon is particularly significant in microscopy, where high-resolution acquisitions come with substantial costs in throughput, storage requirements and potential photodamage. We systematically evaluate how image resolution impacts segmentation by training popular architectures on datasets downsampled to 6-50% of their original resolution, mimicking lower-magnification acquisitions. Compared with models trained on native-resolution images, segmentation accuracy either improves (by up to 25% of mean Intersection over Union (IoU)) or degrades minimally (< 5% of mean IoU) when using images downsampled by up to fourfold (25% of the original resolution). Downsampling proportionally increases information throughput while reducing storage requirements and inference time. These findings provide practical guidelines for creating efficient, sustainable and cost-effective bioimaging pipelines that reduce data and computing needs while optimising microscopy techniques.
Subject terms: Microbiology, Cell biology, Machine learning
Deep-learning segmentation accuracy depends on image resolution, with each architecture having an optimum, usually at a lower microscopy resolution. Here, the authors present ReScale4DL, a framework for optimising imaging experiments by selecting resolutions to balance accuracy, throughput and cost.
Introduction
Modern microscopy technologies have driven an unprecedented expansion in data volume. High-resolution techniques, particularly super-resolution microscopy1, generate substantially larger datasets than traditional methods when imaging equivalent sample areas. A single 3D multichannel cell image from a spinning disk confocal requires approximately 1GB of storage (considering a size of 4MB for each slice of a three-channel and 100 z-slices volume). In contrast, the same field acquired with a super-resolution laser scanning microscope would be approximately 60 times larger (estimated from images acquired in-house). To address the challenges in acquisition, storage, and processing posed by these volumes of data, researchers increasingly rely on deep learning approaches that automate analytical tasks while delivering reliable and reproducible results. For this, the bioimage analysis community has developed numerous user-friendly solutions2,3, including standalone software and platform-integrated plugins4–11, enabling researchers to leverage these powerful methodologies.
Yet, bioimage analysis faces unique efficiency challenges compared to other deep learning domains. The most significant bottlenecks include: limited computational resources and storage capacity, particularly problematic for time-lapse volumetric data; scarcity of large annotated datasets essential to train robust models and transfer learning12,13; and insufficient understanding of the relationship between image quality metrics and computational performance requirements14,15.
In computer vision, image quality often equates to an algorithm’s efficiency in extracting relevant information under hardware constraints. Counterintuitively, a low-resolution image containing sufficient detail to perform the computational task accurately may be optimal, as it maximises the information-to-resource ratio. For clarity, we define image resolution as the information content per pixel, separate from optical resolution considerations and directly relatable to pixel sizes, defined as the physical measurement of one pixel. For instance, while cell nuclei display heterogeneous structures at high resolutions, they are often more accurately segmented at lower resolutions, where sufficient contextual information can be captured using fewer pixels. This computational perspective contrasts with traditional microscopy practices, where image quality has been equated with higher resolution and magnification, assuming finer details provide more informative content1. However, while visually appealing, the wealth of information in high-resolution images can be irrelevant or even detrimental to computational analysis, as our results here demonstrate.
We present this phenomenon as the image resolution paradox: While high-resolution microscopy captures more detail, this additional data may contribute minimally—or even negatively—to a certain analysis task while requiring substantially greater resources. This paradox is particularly evident in deep learning-based pipelines (Fig. 1). The limitation stems from convolutional neural network’s (CNN) receptive fields—the spatial region influencing a single output pixel. When image resolution exceeds the network’s architectural optimum, pixels lack sufficient contextual information, compromising the model’s performance. Practitioners often address this by downsampling the images during pre-processing. Others have already related the segmentation accuracy to the receptive field and contrast (i.e., SNR) in medical images16 and electron microscopy images17, and propose adapting the networks’ architecture to the data features accordingly16. Incorporating resolution and imaging considerations directly into the experimental design would enable acquisition at optimal resolutions from the outset, simultaneously increasing throughput and reducing computational demands.
Fig. 1. The Image Resolution Paradox.

The counterintuitive relationship between image resolution and deep learning performance emerges from the mismatch between pixel size and the network’s receptive field. a Decreasing image resolution (increasing pixel size) causes pixelation and limits observable details, yet may improve contextual information. b The area observable within a convolutional neural network’s (CNN) receptive field (magenta squares) determines the context available for predicting the value of a single pixel. c Suboptimal pixel sizes lead to impaired predictions—either fragmented segmentations caused by non-continuous edges and inner pixels misclassified as background, referred to as false negatives (too high resolution) or over-generalisation at edges (too low resolution). The icons represent in order from left to right: 1) fragmented segmentations caused by non-continuous edges and inner pixels misclassified as background (i.e., false negatives), 2) accurate segmentation, and 3) over-generalization at edges. d Optimal image resolution for CNN-based processing depends on object size rather than maximal achievable microscopy resolution, and proper calibration can simultaneously enhance segmentation accuracy and experimental throughput.
While this paradox is familiar to computer vision experts, few tools explicitly account for it. Cellpose18 represents an exception, implementing automated re-sampling to optimise pixel-to-cell-diameter ratios. However, most users remain unaware of this critical consideration, leading to suboptimal application of deep learning methods—particularly with architectures like vanilla U-Net—and unnecessary prioritisation of high-resolution acquisition despite its potential drawbacks. Given the rise of user-friendly deep learning approaches and out-of-the-box foundation model-based solutions, practitioners would benefit from early systematic assessment routines.
In this study, we quantitatively demonstrate this paradox and its impact on segmentation performance in bioimage analysis. We systematically evaluate resolution effects on model accuracy using a canonical 2D U-Net19 for semantic segmentation and StarDist9 for instance segmentation. Our experiments employ diverse specimens, including high-magnification Caenorhabditis elegans (C. elegans)20 and brightfield Escherichia coli (E. coli)21 images. Additionally, we analyse Staphylococcus aureus (S. aureus) imaged with Structural Illumination Microscopy (SIM), demonstrating that critical phenotypic changes remain detectable even when reducing resolution by 16×, enabling proportional throughput improvements. Beyond these examples, we provide a generalisable framework, ReScale4DL (https://github.com/HenriquesLab/ReScale4DL), that researchers can implement to determine optimal pixel sizes for their specific contexts, maximising both computational efficiency and information extraction (Fig. 2).
Fig. 2. ReScale4DL pipeline.

Researchers can optimise the pixel size for a chosen deep learning architecture using their newly acquired and annotated images or on existing datasets, which can be used as a starting point for the optimisation. A series of image rescaling factors is applied to the data, a deep learning model is trained for each rescaled dataset, and different accuracy metrics and features are computed. Once an ideal target metric is chosen, such as the accuracy of the image processing performance, the recovery of an image feature, or a good compromise between the throughput and accuracy, researchers can identify an adequate pixel size and launch their imaging experiments with optimised image resolution. The results presented in this manuscript were obtained by following the ReScale4DL pipeline.
Results
High resolution and segmentation accuracy: a counter-intuitive relationship
We trained a 2D U-Net architecture to semantically segment different cellular regions - inner area, edges, and background - using two distinct datasets: C. elegans captured with brightfield microscopy and E. coli imaged via phase contrast microscopy. For each dataset, we systematically rescaled the images to multiple resolutions and trained separate U-Net models to evaluate performance across these conditions (Fig. 2). Since segmentation accuracy depends on the relationship between image resolution and object size, we quantified the performance relative to the percentage of an object’s diameter covered by a single pixel. Our experiments revealed a counterintuitive relationship between resolution and segmentation quality (Fig. 3). Contrary to conventional expectations, high-resolution images often produced fragmented segmentation masks with unexpected discontinuities. In the C. elegans dataset, the inner masks produced at the original resolution contained spurious holes where pixels were misclassified as background (Fig. 3a). This occurred because the model lacked sufficient contextual information to confidently identify inner and outer objects’ areas and one-pixel width edges were under-represented for the given receptive field and resolution (see details in Supplementary Note 1, Supplementary Fig. 1). Namely, the Intersection over Union (IoU) of semantic segmentations decreased by approximately 40% compared to binary segmentation, which remained relatively high ( > 0.9) despite these deficiencies (Fig. 3b). Notably, downsampling the images improved accuracy metrics for both binary and semantic segmentation approaches, providing clear evidence that maximum resolution does not necessarily yield optimal segmentation results. The E. coli dataset analysis corroborated these findings (Fig. 3c-e).
Fig. 3. Impact of image resolution on deep learning segmentation accuracy.

a–f Results of 2D U-Net models trained for semantic segmentation (inner area and boundary) of E. coli (a) and C. elegans (d) at varying simulated resolutions. b Intersection over Union (IoU) distributions (semantic and binary masks) across scaling factors for E. coli, ranging from ×4 downsampling to ×4 upsampling. IoU was calculated both for semantic segmentation (average IoU of edge and inner regions) and the binary masks resulting from considering the edge and inner regions. Purple line (log scale): theoretical throughput calculated as the number of objects observable by a unit of time (τ) given a certain resolution. c E. coli diameter distributions from U-Net segmentations versus ground truth. e Same as in (b), IoU for C. elegans segmentation at varying resolutions. g IoU on the test image volume of 3D U-Net mitochondria binary segmentation in transmission electron microscopy (TEM) at varying resolutions. h Results visualizations corresponding to z-colour-coded-projections at varying axial/lateral resolutions. i, j MicroSAM22 with a single point-wise prompting strategy was used to obtain the instance segmentation of E. coli (i) and C. elegans (j) example images. We pointed to the same object in each rescaled image and ran the automatic instance segmentation pipeline. All the images matched model input dimensions (512×512 pixels) to avoid internal tiling or image re-scaling. The images that had smaller dimensions were padded with zeros. Square boxes correspond to the same physical area on each image. Scale bars correspond to a 100, 25, and 10 pixels; d 100 and 25 pixels; h 200 pixels; i, j 50 µm. Circles in b and e correspond to data points outside the quartiles of the IoU distribution.
To ensure consistent comparison, we maintained an identical U-Net architecture and hyperparameters across all experiments in Fig. 3, enabling direct assessment of resolution’s impact on model performance. Both datasets’ accuracy curves exhibited similar quadratic relationships between image resolution, object size, and IoU scores. For C. elegans, binary and semantic segmentation achieved peak IoU when pixels covered 2–4% and 4–8% of worm diameter, respectively (i.e., downsampling by a factor of 8 and 4), demonstrating that optimal resolution differed from the original microscopy acquisition (1% coverage).
Similarly, the E. coli dataset exhibited the highest IoU at comparable proportional resolutions: 4–16% diameter coverage per pixel for binary segmentation and 8–16% for semantic segmentation the original resolution and a downsampling by a factor of 2, respectively. This consistency across different biological specimens reveals a fundamental principle: our U-Net’s 48×48 pixel receptive field imposes practical constraints. Objects with diameters exceeding 25 pixels (corresponding to <4% diameter coverage per pixel) become problematic as their size exceeds the receptive field, while objects smaller than 6 pixels ( > 16% diameter coverage) risk information dilution and loss through the network’s operations. Namely, it is possible to recover optimal accuracy values when changing the U-Nets’ architecture to increase their receptive field and match the image resolution (see Supplementary Note 1, Supplementary Table 2 and Supplementary Fig. 1). Notwithstanding these updates, which require access to the code and programming skills, result in networks with a larger number of parameters, compromising computational requirements. As exemplified, for any given CNN architecture, there exists an optimal resolution that maximises segmentation accuracy–and importantly, this resolution is typically significantly lower than what human observers prefer, allowing imaging pipelines with substantially improved throughput. The paradox persists in emerging foundation models with transformer-based architectures despite their theoretical multi-scale capabilities. As demonstrated through MicroSAM22 foundation model evaluation, fixed context windows in pre-trained models remain susceptible to resolution mismatches (Fig. 3i–j and Supplementary Fig. 2).
Optimising image resolution during acquisition improves segmentation accuracy and throughput
To test the resolution paradox experimentally, U2OS nuclei were imaged with varying objectives (10×, 20×, 40×, and 60×) and manually annotated. This resulted in colocalised FOV at different resolutions. We then trained independent StarDist models to segment the same FOVs and assess the paradox (Fig. 4). In most cases, the accuracy was relatively high (IoU> 0.7; Fig. 4b), yet nuclei in images acquired at rather low resolution (20×) were more accurately segmented than those imaged at the highest resolution (60×). Optimal accuracy was recovered by rescaling all images to the pixel size equivalent to 20× resolution (Fig. 4b). The StarDist model trained with images at higher resolution (60×) estimates more rounded objects and over-segments large nuclei, likely due to insufficient contextual information for predicting varying nuclear shapes (Fig. 4c–d). Remarkably, 2D acquisition of the same FOV, considering an average displacement through the wheel, took 3.91, 9.51, 17.12, 36.48 s at 10×, 20×, 40× and 60×, respectively, implying that the acquisition at optimal quantitative conditions (20×) is also ∼4× faster than at 60×. Notwithstanding, the FOV at 20× required a 3×3 tiling, while for 60× a tiling of 7×7 was needed, significantly increasing the exposure to fluorescence and therefore the induced photodamage in the overlapping regions.
Fig. 4. Segmentation accuracy of StarDist models across experimental imaging resolutions.

DAPI-stained U2OS nuclei imaged at 10×, 20×, 40× and 60× objectives, with StarDist models trained per resolution. a Segmentation outputs from resolution-specific StarDist models. b Mean ± s.d. Intersection over Union (IoU) for native-resolution models versus those trained on data rescaled to 20×-equivalent. c StarDist predictions on raw 60× data overlaid with Ground Truth. d Side-byside comparison of predictions from 20× and 60×-trained StarDist models.
Optimising image resolution preserves phenotypic discrimination while maximising experimental throughput
Building upon our findings, we demonstrate how optimising image resolution preserves segmentation performance while enhancing experimental throughput. We tested this approach using S. aureus bacteria treated with antibiotic PC190723 and imaged via SIM. PC190723, a FtsZ inhibitor, prevents cell division and produces enlarged bacteria23. To quantitatively assess this morphological effect, we employed StarDist—a deep learning approach optimised for instance segmentation of starconvex objects like round bacteria—to segment individual cells and measure diameter distributions (Fig. 5a). As in our previous experiments, IoU values across different resolution factors revealed an optimal range where segmentation accuracy peaks. Notably, even at substantially reduced resolutions, StarDist maintained robust performance: even when downsampling the images by a factor of 4 (11% of bacterial diameter covered by a single pixel), IoU values exceeded 0.8, and even with a factor of 8 (23% coverage), IoU remained above 0.75 (Fig. 5b and Supplementary Note 3). Analysis of wild-type (WT) diameter distributions confirmed that measurements derived from ground truth and StarDist predictions remained consistent across resolutions. At higher resolutions (scaling factors > −2), there is a minimal difference between the ground truth and predicted masks resulting from StarDist models segmenting the outer region of the cell (see Supplementary Fig. 3). At lower resolutions (scaling factors <−4), this difference disappears with objects being reduced to just a few pixels in width (Fig. 5c). Most importantly, when training a StarDist model with WT and antibiotic-treated mixed bacteria populations, the diameter differences remained distinguishable across all sampling ratios, demonstrating that phenotypic discrimination is preserved even at significantly lower resolutions than typically employed (Fig. 5d). Thus, by strategically reducing acquisition resolution, researchers can substantially increase imaging throughput and decrease acquisition times (Figs. 3b, 3e, and 5b), enabling more comprehensive dataset collection for statistically robust experimental analyses.
Fig. 5. Deep learning-driven resolution adjustment enables phenotype distinction while increasing imaging throughput.

S. aureus bacteria were treated with FtsZ inhibitor PC190723, which prevents cell division and results in larger bacteria phenotypes23. S. aureus (wild type (WT) and treated) were then imaged using Structured Illumination Microscopy (SIM) and segmented with StarDist. a Representative images of S. aureus with ground truth (GT) segmentation and StarDist results at the original resolution (WT) and after 23-factor downsampling (both WT and treated conditions). Scale bars: 100, 25, and 25 pixels, respectively. b (Boxplots) Distribution of Intersection over Union (IoU) values of StarDist models trained and tested only with WT bacteria images across multiple resolution factors (upsampling: 2−2 to 20; downsampling: 21 to 24), showing the relationship between segmentation accuracy and the percentage of bacterial diameter covered by a single pixel. (Purple line in logarithmic scale) Theoretical throughput was calculated as the number of objects observable by a unit of time (τ) given a certain resolution. τ is specific to each microscopy acquisition modality and preserved across the different resolutions. c Diameter distributions across resolution scales estimated from GT and the StarDist results for WT bacteria images in (b). d Comparison of the diameter distributions across various resolution scales for WT and treated bacteria. StarDist was trained with a mixed dataset containing WT and PC190723-treated S. aureus images in this case.
Discussion
Our systematic investigation of the resolution paradox in deep learning-driven bioimage analysis reveals a fundamental tradeoff between spatial resolution and computational performance. Our results demonstrate that popular methods like U-Net and StarDist (which often use a U-Net architecture) achieve optimal accuracy when image resolution is calibrated to match the network’s receptive field with biological object dimensions, rather than maximising resolution. This finding challenges conventional microscopy practices while offering significant practical benefits for experimental workflows.
The paradox emerges from fundamental neural network characteristics. When object features extend beyond the receptive field (high-resolution), networks lack sufficient context to predict boundaries consistently, resulting in fragmented masks with spurious discontinuities, in line with the results from previous works16,17. Conversely, excessively downsampled images (low-resolution) compress critical morphological features beyond recognition. Our quantitative analysis reveals a predictable quadratic relationship between object diameter coverage per pixel and segmentation accuracy, with optimal performance for the 2D U-Net consistently occurring when pixels cover 4-16% of object diameter—irrespective of the type of specimen or imaging modality. This optimal range represents a “sweet spot” where networks balance local detail with global context. We further test our resolution paradox using colocalised acquisitions at different optical resolutions and show an equivalent quadratic relationship between the network performance and the image resolution. Remarkably, the paradox persists in emerging foundation models with transformer-based architectures despite their theoretical multi-scale capabilities. Despite the increased complexity of these novel architectures, the growing ecosystem of interactive tools like BioImage Model Zoo6, MicroSAM22 and DinoSim24 creates opportunities for rapid empirical optimisation, turning this challenge into an accessible experimental design parameter.
Most significantly, we demonstrated that models trained on optimally downsampled images maintain phenotypic discrimination capabilities. In the S. aureus antibiotic response experiment, critical morphological differences remained detectable even at 16× lower resolution than commonly used (Fig. 5). These findings together have profound implications for experimental design: researchers can substantially increase imaging throughput, speed up image acquisition, increase temporal resolution, reduce indirect photobleaching and phototoxicity resulting from tiling, minimise data storage requirements, and accelerate analysis pipelines—all without compromising biological insights25,26.
Although these principles are established in computer vision communities, they remain underappreciated in life sciences, where imaging protocols continue to emphasise the maximum achievable resolution regardless of computational analysis requirements. Our work provides a practical framework for biologists to determine optimal resolution parameters for their specific experimental contexts. By conducting preliminary resolution calibration studies before full-scale data acquisition, researchers can design more efficient imaging protocols that balance biological information content with computational performance.
The proposed image rescaling with ReScale4DL is a simple, architecture-agnostic, broadly accessible strategy that complements, rather than replaces, more advanced receptive-field engineering. Importantly, ReScale4DL proposes a way to optimise imaging conditions considering the accuracy of image segmentation, which can be an intermediate step of an image analysis pipeline. For example, it can precede a cell tracking step, for which acquiring images at lower resolution can also be beneficial due to increased acquisition speed and field of view. Likewise, segmentation is often an intermediate step for further quantification within an area and for which a higher-resolution image is more convenient, such as measuring single-cell protein concentration or organelle distribution. In these cases, an optimal image resolution for the segmentation task can be achieved post-acquisition by using the ReScale4DL rescaling schema. Yet, researchers should always consider the Nyquist sample principle when deciding on their minimal imaging resolution to ensure that the features to be measured are adequately sampled. Democratising AI in bioimaging requires deeper integration of data physics with model architectures. Current trends favour pre-trained “smart” solutions over adaptable systems, risking suboptimal application to novel experimental contexts. Future developments should prioritise dynamic acquisition systems that adjust resolution in real-time based on ongoing analysis, coupled with neural architectures explicitly encoding multi-scale relationships. By embedding these considerations into standard workflows, the field can achieve reproducible, resource-efficient microscopy pipelines that balance information content with computational sustainability.
Methods
Biological image datasets
Publicly available high-resolution C. elegans minimum projection brightfield microscopy images and instance segmentation masks were obtained from ref.20. Publicly available E. coli brightfield microscopy images and instance segmentation masks dataset was obtained from21, which is available on Zenodo 10.5281/zenodo.5550934. In-house acquired super-resolution S. aureus cell wall structured illumination microscopy (SIM) fluorescence images and annotated instance segmentation masks dataset available on Zenodo 10.5281/zenodo.15169017.
Hoechst nuclear staining of U2OS fixed cells
U2OS cells were seeded at a density of 1×104 cells per well in Cellvis 8-well glass-bottom chambers using 200–300 µL of complete culture medium per well and incubated overnight at 37◦C in a humidified atmosphere containing 5% CO2.
After 24 h, all buffers were pre-warmed to 37◦C prior to use. Culture medium was aspirated and cells were fixed for 10 min in CB buffer containing 4% paraformaldehyde (PFA) and 1% glutaraldehyde (GA). Residual aldehydes were quenched by incubation with freshly prepared 0.5% sodium borohydride (NaBH4) in PBS for 7 min. Cells were subsequently washed sequentially in PBS for 1 min, 5 min, and 10 min.
Nuclei were stained with Hoechst 33342 at a final concentration of 1 µg/mL using 200 µL staining solution per well for 10–15 min in the dark. Samples were protected from light throughout the staining procedure. Following staining, samples were washed twice with PBS for 5 min each and post-fixed with 4% PFA for 10 min followed by three PBS washes. Imaging was performed directly in the chamber using fluorescence microscopy on a Nikon Ti2 microscope at varying magnifications (10×,20×,60×,40× objectives).
Dataset re-sampling
ReScale4DL Python library (https://github.com/HenriquesLab/ReScale4DL) was used to resize raw images and their respective masks. For C. elegans and E. coli, the instance masks were first rescaled and then the edges and inner side were estimated using the ImageJ macro available in DeepBacs GitHub repository21 (https://github.com/HenriquesLab/DeepBacs/). Upsampling was computed with Catmull-Rom interpolation and nearest-neighbor interpolation methods for the raw and the mask images, respectively (all available within the NanoPyx Python package27). Downsampling was computed with binning and transform.rescale from scikit-image for the raw images and the masks, respectively. C. elegans dataset was downsampled by factors 2, 22, 23, and 24. E. coli was upsampled by factors 2 and 22 and downsampled by factors 2 and 22. S. aureus was upsampled by factors 2 and 22 and downsampled by factors 2, 22, 23, and 24.
Segmentation networks
The 2D Multilabel U-Net and 2D StarDist9 models were trained using the respective ZeroCostDL4Mic2 notebooks in local GPU-equipped workstations with DL4MicEverywhere11 and the hyperparameter configuration specified as in Supplementary Table 1 in Supplementary Note 1.
Evaluation
The Intersection over Union (IoU) scores visualised in Figs. 3 and 5 were calculated for the results of all the models specified in Supplementary Table 1 in Supplementary Note 1, and for the binary segmentation (C. elegans and E. coli), semantic segmentation (C. elegans and E. coli) and instance segmentation (S. aureus) results. For each object j in an image i, the diameter Dij of non-rounded shapes (C. elegans and E. coli datasets) was computed as the median of the Euclidean Distance Transform (EDT) values contained in the object’s skeleton. For S. aureus dataset, Dij of each bacteria was estimated by solving the equation of the circle area, given as
| 1 |
where Aij is the area of the object j in the image i, measured as the sum of all the pixels in the object. To compute the average portion of diameter covered by one pixel, we first computed the average diameter for each scaling factor, Ds as
| 2 |
where Oi is the total number of objects in the image i, N is the total number of images in the dataset and s is the rescaling factor. Then, Ds was inverted and multiplied by 100 to compute the portion of diameter covered by one pixel.
To measure the throughput achievable for each rescaling factor s, we first estimated the average area of each object in an image (As) in pixels. Then, we consider the size of the achievable field of view (FOV) for a camera as the area in pixels of the images in the original dataset (CAMFOV). Considering the throughput as the amount of information recordable per unit of time, we computed the throughput as
| 3 |
where τ is the time required to acquire a FOV. In other words, THs provides an estimate of the number of objects that can be captured by a unit of time, yet, using Eq. 3 with preliminary information about the sample’s morphology and microscopy camera features, it is possible to compute this value easily.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Acknowledgements
We thank Mario Del Rosario for discussion and advice regarding the imaging experiments.
Author contributions
E.G.M. and R.H. conceived the project. M.G.F., B.M.S., R.H. and E.G.M. designed the experimental and analytical pipelines. M.G.F., B.M.S. and E.G.M. developed the analytical pipeline. A.D.B. and M.G.F. performed the imaging experiments and annotated and curated data. M.G.F. and E.G.M. analysed the data. M.G.F., B.S. and E.G.M. prepared and tested the GitHub repository. R.H. acquired funding. M.G.F. wrote the paper with input from R.H. and E.G.M. R.H. and E.G.M. supervised the work. All authors reviewed and refined the manuscript.
Peer review
Peer review information
Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Funding
R.H. acknowledges funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 101001332); the European Union through the Horizon Europe program (AI4LIFE project with grant agreement 101057970-AI4LIFE and RT-SuperES project with grant agreement 101099654-RTSuperES to R.H.); from a joint Wellcome, Chan Zuckerberg Initiative, and Kavli Foundation Essential Open Source Software for Science Cycle 6 award (Wellcome 313383/Z/24/Z; CZI EOSS6-0000000260); and from the La Caixa Foundation (CaixaResearch Health 2025, VirusAwareScopes, HR25-00453). The Chan Zuckerberg Initiative awards are made through the Chan Zuckerberg Initiative DAF, an advised fund of Silicon Valley Community Foundation. E.G.M. acknowledges funding by Fundação para a Ciência e Tecnologia, Portugal (2023.09182.CEECIND/CP2854/CT0004) and the support of NOVA IMSB through the EU Horizon Europe 101060346. Funded by the European Union. However, the views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union. Neither the European Union nor the granting authority can be held responsible for them. A.D.B. acknowledges the FCT 2021.06849.BD fellowship. This work was also supported by FCT – Fundação para a Ciência e a Tecnologia, I.P., through the MOSTMICRO-ITQB R&D Unit (https://doi.org/10.54499/UID/04612/2025, UID/PRR/4612/2025) and the LS4FUTURE Associated Laboratory (https://doi.org/10.54499/LA/P/0087/2020).
Data availability
W.T. and antibiotic-treated super-resolution S. aureus cell wall SIM images together with instance segmentation annotations are available on Zenodo https://zenodo.org/records/15169018. Manually annotated U2OS images are available on Zenodo (https://zenodo.org/uploads/20041089). All the trained models are also available in Zenodo (https://zenodo.org/records/20040567). These models can all be loaded, tested and retrained through the respective notebooks in the DL4MicEverywhere platform11.
Code availability
The code for image rescaling and metric computation is available at https://github.com/ HenriquesLab/ReScale4DL under version ReScale4DL—0.2.2. The rescale4dl Python package is also made available through PyPI and can be installed by running a pip install command. The notebooks to train, test and deploy inference are available through the DL4MicEvrywhere (https://github.com/HenriquesLab/DL4MicEverywhere) platform.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Ricardo Henriques, Email: r.henriques@itqb.unl.pt.
Estibaliz Gómez-de-Mariscal, Email: esti.gomezdemariscal@unl.pt.
Supplementary information
The online version contains supplementary material available at https://doi.org/10.1038/s41467-026-77930-1.
References
- 1.Schermelleh, L. et al. Super-resolution microscopy demystified. Nat. Cell Biol.21, 72–84 10.1038/s41556-018-0251-8 (2019). [DOI] [PubMed] [Google Scholar]
- 2.von Chamier, L. et al. Democratising deep learning for microscopy with ZeroCostDL4Mic. Nature Communications, 12:2276, April 2021. ISSN 2041-1723. 10.1038/s41467-021−22518-0. (Nature Publishing Group, 2021). [DOI] [PMC free article] [PubMed]
- 3.Pylvänäinen, J. W., G.-de Mariscal, E., Henriques, R. & Jacquemet, G. Live-cell imaging in the deep learning era. Curr. Opin. Cell Biol.85, 102271 10.1016/j.ceb.2023.102271 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Gómez-de Mariscal, E. et al. DeepImageJ: A user-friendly environment to run deep learning models in ImageJ. Nat. Methods18, 1192–1195 10.1038/s41592-021-01262-9 (2021). [DOI] [PubMed] [Google Scholar]
- 5.Berg, S. et al. ilastik: interactive machine learning for (bio)image analysis. Nat. Methods16, 1226–1232 10.1038/s41592-019-0582-9 (2019). [DOI] [PubMed] [Google Scholar]
- 6.Ouyang W., et al. BioImage Model Zoo: a community-driven resource for accessible deep learning in BioImage analysis, June 2022. Pages: 2022.06.07.495102 Section: New Results
- 7.Mavropoulos, A. et al. Artificial intelligence-driven morphology-based enrichment of malignant cells from body fluid. Mod. Pathol.36, 1530–0285 10.1016/j.modpat.2023.100195 (2023). [DOI] [PubMed] [Google Scholar]
- 8.Midtvedt, B. et al. Quantitative digital microscopy with deep learning. Appl. Phys. Rev.8, 011310 10.1063/5.0034891 (2021). [DOI] [Google Scholar]
- 9.Schmidt U., Weigert M., Broaddus C., and Myers G. Cell detection with star-convex polygons. In Medical Image Computing and Computer Assisted Intervention - MICCAI 2018 21st International Conference, Granada, Spain, September 16−20, 2018, Proceedings, Part II, pages 265–273, 2018. 10.1007/978-3-030-00934-2_30. [DOI]
- 10.Franco-Barranco, D. et al. BiaPy: Accessible deep learning on bioimages, January 2025. Pages: 2024.02.03.576026 Section: New Results. [DOI] [PubMed]
- 11.Hidalgo-Cenalmor, I. et al. DL4MicEverywhere: deep learning for microscopy made flexible, shareable and reproducible. Nat. Methods21, 925–927 10.1038/s41592-024-02295-6 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Nogare, D. D., Hartley, M., Deschamps, J., Ellenberg, J. & Jug, F. Using AI in bioimage analysis to elevate the rate of scientific discovery as a community. Nat. Methods20, 973–975 10.1038/s41592-023-01929-5 (2023). [DOI] [PubMed] [Google Scholar]
- 13.Michael, C. S. et al. Community-developed checklists for publishing images and image analyses. Nat. Methods21, 170–181 10.1038/s41592-023-01987-9 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Uhlmann, V., Donati, L. & Sage, D. A practical guide to supervised deep learning for bioimage analysis: challenges and good practices. IEEE Signal Process. Mag.39, 73–86 10.1109/MSP.2021.3123589 (2022). [DOI] [Google Scholar]
- 15.Culley, S., Caballero, A. C., Burden, J. J. & Uhlmann, V. Made to measure: An introduction to quantifying microscopy data in the life sciences. J. Microsc.295, 61–82 10.1111/jmi.13208 (2024). [DOI] [PubMed] [Google Scholar]
- 16.Loos V., Pardasani R., and Awasthi N. Demystifying the Effect of Receptive Field Size in U-Net Models for Medical Image Segmentation, June 2024. arXiv:2406.16701 [eess]. [DOI] [PMC free article] [PubMed]
- 17.Sytwu, K., Groschner, C. & Scott, M. C. Understanding the influence of receptive field and network complexity in neural network-guided TEM image analysis. Microsc. Microanalysis28, 1896–1904 10.1017/S1431927622012466 (2022). [DOI] [PubMed] [Google Scholar]
- 18.Stringer, C., Wang, T., Michaelos, M. & Pachitariu, M. Cellpose: a generalist algorithm for cellular segmentation. Nat. Methods18, 100–106 10.1038/s41592-020-01018-x (2021). [DOI] [PubMed] [Google Scholar]
- 19.Ronneberger, O. et al., editors, Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, pages 234–241, Cham, 2015. Springer International Publishing. ISBN 978-3-319-24574-4. 10.1007/978-3-319-24574-4_28. [DOI]
- 20.Cutler, K. J. et al. Omnipose: a high-precision morphology independent solution for bacterial cell segmentation. Nat. Methods19, 1438–1448 10.1038/s41592-022-01639-4 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Spahn, C. et al. DeepBacs for multi-task bacterial image analysis using open-source deep learning approaches. Commun. Biol.5, 1–18 10.1038/s42003-022-03634-z (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Archit, A. et al. Segment anything for microscopy. Nat. Methods22, 579–591 10.1038/s41592-024-02580-4 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Haydon, D. J. et al. An inhibitor of FtsZ with potent and selective anti-staphylococcal activity. Science321, 1673–1675 10.1126/science.1159961 (2008). [DOI] [PubMed] [Google Scholar]
- 24.González-Marfil A., Gómez-de Mariscal E., and Arganda-Carreras I. DINOSim: Zero-Shot Object Detection and Semantic Segmentation on Electron Microscopy Images, March 2025. Pages: 2025.03.09.642092 Section: New Results.
- 25.Jacquemet G., Carisey A. F., Hamidi H., Henriques R., and Leterrier C. The cell biologist’s guide to super-resolution microscopy. J. Cell Sci., 133, ISSN 14779137. 10.1242/JCS.240713 (2020). [DOI] [PubMed]
- 26.Gómez-de Mariscal, E., Rosario, M. D., Pylvänäinen, J. W., Jacquemet, G. & Henriques, R. Harnessing artificial intelligence to reduce phototoxicity in live imaging. J. Cell Sci.137, jcs261545 10.1242/jcs.261545 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Saraiva, B. M. et al. Efficiently accelerated bioimage analysis with NanoPyx, a Liquid Engine-powered Python framework. Nat. Methods22, 283–286 10.1038/s41592-024-02562-6 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
W.T. and antibiotic-treated super-resolution S. aureus cell wall SIM images together with instance segmentation annotations are available on Zenodo https://zenodo.org/records/15169018. Manually annotated U2OS images are available on Zenodo (https://zenodo.org/uploads/20041089). All the trained models are also available in Zenodo (https://zenodo.org/records/20040567). These models can all be loaded, tested and retrained through the respective notebooks in the DL4MicEverywhere platform11.
The code for image rescaling and metric computation is available at https://github.com/ HenriquesLab/ReScale4DL under version ReScale4DL—0.2.2. The rescale4dl Python package is also made available through PyPI and can be installed by running a pip install command. The notebooks to train, test and deploy inference are available through the DL4MicEvrywhere (https://github.com/HenriquesLab/DL4MicEverywhere) platform.
