Manuscript Offprint

arXiv:2610.10324

Performance at What Cost? A Sustainability-Aware Performance Index for Cell and Nucleus Instance Segmentation

Eiram Mahera Sheikh, Alaa Tharwat, Wolfram Schenck

Abstract

Pretrained models for cell and nuclear instance segmentation differ substantially in architecture, pretraining data and objectives, parameter count, inference strategy, adaptation requirements, post-processing pipeline, and computational demand. Large pretrained and foundation models are increasingly adopted because of their strong zero-shot capabilities, but their use also imposes greater energy consumption, memory requirements, computational demands, adaptation costs, and operational carbon emissions. Whether these additional demands are justified by meaningful gains in segmentation performance remains unclear. We address this question by introducing the Sustainability-Aware Performance Index (SAPI), a configurable metric that combines segmentation performance, energy consumption, and model size. We benchmark 19 pretrained and foundation models across six CellBinDB datasets under zero-shot inference and evaluate 16 fine-tunable models using few-shot adaptation with both frozen-encoder and full-model fine-tuning. We estimate energy consumption for GPU, CPU, and RAM using software-based monitoring tools. Our results show that larger and more computationally demanding models do not consistently achieve proportionate improvements in segmentation quality. While few-shot adaptation benefits several models, the gains and resource costs vary considerably across architectures, datasets, and adaptation strategies, causing SAPI-based rankings to differ from rankings based on performance alone. This study provides a practical framework for comparing segmentation models more comprehensively and supports more computationally accessible and environmentally responsible model selection in biomedical image analysis.

Keywords: Green AI, Sustainable artificial intelligence, Cell segmentation, Nucleus segmentation, Vision Foundation models, Few-shot learning, Energy-efficient deep learning, Biomedical image analysis

1 Introduction

Cell and nucleus instance segmentation is a foundational step in quantitative microscopy because many downstream analyses require individual objects to be identified and delineated. Reliable object instance boundaries enable cell counting, morphometric measurement, phenotypic profiling, spatial analysis of cell populations, and the assignment of molecular signals to individual cells. In digital pathology, nuclear segmentation supports the extraction of interpretable cellular features and the characterization of tissue architecture; in multiplex tissue imaging, whole-cell and nuclear masks convert spatially resolved marker measurements into cell-level data; and in experimental biology, segmentation underpins high-content assays in which large image collections must be transformed into reproducible quantitative readouts. These applications span basic cell biology, computational pathology, spatial omics, drug discovery, and biopharmaceutical development, but they share the same practical requirement: segmentation must remain reliable across variation in tissue, staining chemistry, imaging modality, cell morphology, object density, and image quality. Errors introduced at this stage propagate into subsequent measurements, making segmentation quality consequential for the validity of the biological or clinical analysis constructed from the resulting instances [1].

Cell and nucleus segmentation was initially approached through classical image-processing pipelines that combined intensity thresholding, filtering, morphological operations, contour detection, distance transforms, and watershed-based separation. These methods were often computationally efficient and interpretable, but their performance depended strongly on manually selected parameters and assumptions about image contrast, object shape, and boundary visibility. Variations in staining, illumination, noise, cell morphology, and object density could therefore require extensive retuning and limit transfer across datasets. Deep convolutional neural networks changed this paradigm by learning hierarchical image representations directly from annotated data and combining contextual encoding with precise spatial localization, as demonstrated by the encoder—decoder architecture and skip connections introduced in U-Net [2]. Once reliable pixel-level prediction became possible, subsequent work increasingly addressed the more difficult problem of converting foreground predictions into distinct cellular instances. Convolutional architectures therefore incorporated object-centered geometric representations [3], learned displacement fields [4], and dedicated output branches to distinguish ad-joining or overlapping nuclei in crowded microscopy and histopathology images [5]. These developments moved instance segmentation beyond generic foreground classification by allowing object shape, relative pixel position, and instance boundaries to be learned as part of the prediction task. The next major architectural shift arose with vision transformers, which represented images as sequences of patches and used self-attention to learn interactions among image regions, particularly when pre-trained on large image collections [6]. Transformer encoders were then incorporated into biomedical image segmentation architectures by combining pre-trained encoders with task-specific decoders for cell and nucleus delineation [7]. Large-scale promptable segmentation introduced a foundation-model paradigm in which a high-capacity image encoder trained on an extensive collection of images and masks, could support mask generation across varied image distributions and segmentation tasks [8]. This paradigm was then extended to microscopy by adapting foundation-model representations and segmentation interfaces to biological images and microscopy-specific annotation workflows [9]. This progression has culminated in large vision transformer—based foundation models pre-trained on extensive and diverse image collections.

The practical appeal of pre-trained and foundation models lies in their ability to segment images from a new dataset without additional target-specific training. In this zero-shot setting, a model is applied using knowledge acquired during pre-training, thereby avoiding the time and annotation effort required to construct a new model for each imaging study. However, recent comparative evaluations indicate that zero-shot performance remains strongly dependent on the characteristics of the target data [10]. When zero-shot predictions do not provide sufficient accuracy, the pre-trained representation can instead serve as an initialization for adaptation to the target domain. Fine-tuning with a small support set of annotated target images allows the model to learn dataset-specific appearance and morphological characteristics without requiring the large annotation collections typically needed to train a segmentation network from scratch. Few-shot fine-tuning studies have shown that pre-trained models can be adapted using only a limited number of annotated samples from the target dataset, although the resulting performance depends on which images are selected for annotation and how well they represent the target distribution [11].

The growing use of large pre-trained models has made the computational cost of artificial intelligence an increasingly important consideration alongside predictive performance. This concern motivated the emergence of Green AI, which argues that methodological progress should be evaluated not only by improvements in accuracy, but also by the computational resources required to develop and use a model [12]. Early empirical evidence from natural language processing showed that training, hyperparameter optimization, and repeated experimentation with large neural networks could entail substantial energy consumption, financial cost, and associated carbon emissions [13]. Subsequent analyses of large-scale neural network training further demonstrated that environmental impact is shaped not only by the amount of computation performed, but also by model architecture, hardware efficiency, data-centre infrastructure, and the carbon intensity of the electricity supply [14]. These findings led to calls for more systematic measurement and reporting of energy use and carbon emissions in machine-learning research, so that improvements in model quality can be interpreted in relation to the resources required to achieve them [15]. Accordingly, improvements in predictive performance should be interpreted together with the computational resources required to obtain them. This requires explicit consideration of the costs associated with model development, target-domain adaptation, and repeated inference, particularly when large pre-trained models are intended for broad or sustained use.

Despite substantial progress in cell and nucleus instance segmentation, model evaluation remains dominated by predictive performance. Existing benchmarks compare segmentation accuracy across imaging modalities, tissues, and model families, but they provide limited evidence about the computational resources required to obtain and sustain that performance. This omission is increasingly important because contemporary segmentation methods differ markedly in model scale, inference requirements, and the amount of target-domain adaptation they require. A model that achieves the highest segmentation score may also consume considerably more energy during inference, require costly fine-tuning, or depend on hardware that is unavailable in many research and deployment settings. Conversely, a computationally efficient model may provide comparable performance at substantially lower operational cost. However, these trade-offs cannot be determined from accuracy, parameter count, or runtime alone. To our knowledge, no controlled benchmark has jointly evaluated zero-shot performance, few-shot adaptation, inference and fine-tuning energy, and model complexity across a diverse collection of specialist, generalist, and foundation models for cell and nucleus instance segmentation. As a result, it remains unclear whether the performance gains offered by larger pretrained models are proportionate to the additional resources required to adapt and deploy them. Addressing this gap is necessary to support model selection that reflects not only segmentation quality, but also computational accessibility, operational efficiency, and the practical requirements of the intended application.

Motivated by this gap, we ask whether the segmentation performance gains offered by larger pretrained and foundation models justify their additional inference energy, adaptation energy, and model complexity. To address this question, our study makes three main contributions. First, we conduct a controlled benchmark of 19 cell and nucleus instance-segmentation models across six CellBinDB datasets [10] covering DAPI, single-stranded DNA, multiplex immunofluorescence, and H&E imaging modalities, with 1,044 images distributed across 30 tissue types and containing over 100,000 annotated cell and nuclear instances. Specifically, we evaluate the models under zero-shot condition to determine the performance provided by their existing pretrained representations without target-domain optimization. For the 16 models with fine-tuning API available to us, we compare frozen-encoder and full-model fine-tuning using tissue-stratified few-shot support sets, thereby examining both the benefits and the computational costs of adapting pre-trained models to unknown datasets. Second, we measure energy consumption (GPU, CPU, and RAM) during inference and fine-tuning on a fixed hardware using software based estimates, and quantify model complexity via total parameter count. Third, we introduce the Sustainability-Aware Performance Index (SAPI), a configurable metric that associates segmentation performance with energy demand and model scale. Together, these contributions provide a unified framework for determining when additional model capacity and computational expenditure produce a proportionate improvement in segmentation performance.

The broader objective is to make sustainability and computational accessibility integral components of methodological quality in cell and nuclear segmentation, rather than considerations introduced only after a model has been selected. This perspective does not imply that the smallest model is inherently preferable or that energy efficiency should take precedence over segmentation quality. Instead, additional computational demand should be justified by improvements that are meaningful for the intended application. This principle is relevant to high-throughput pathology, spatial molecular profiling, multiplex imaging, pharmaceutical screening, and academic research, where segmentation models may be applied repeatedly to large image collections under substantially different hardware, memory, and energy constraints. Resource-aware evidence can also strengthen reproducibility by revealing whether reported performance gains depend on computationally intensive adaptation or deployment conditions that may not be accessible across institutions. By jointly evaluating segmentation performance, adaptation requirements, operational energy consumption, and model scale, this study provides a basis for determining whether improvements in accuracy are proportionate to the resources required to achieve and sustain them. More broadly, it frames model selection as a balance among technical performance, generalizability, computational accessibility, and environmental responsibility. Such an approach can support the development and adoption of segmentation methods that are not only accurate, but also reproducible, practically feasible, and appropriate for the biological, clinical, or industrial setting in which they will be used.

Finally, the remainder of this paper is organized as follows. Section 2 describes the CellBinDB datasets and the model zoo, together with the segmentation performance metrics, energy measurement protocols, the Sustainability-Aware Performance Index, and the experimental study design. Section 3 presents the results of zero-shot and few-shot evaluations, including segmentation performance and energy consumption. Section 4 discusses the implications of our findings for sustainable model selection, and Section 5 concludes with a summary of the key findings.

References (40)