Label-Free Cell Counting and Viability Prediction Using Brightfield Imaging and Deep Learning

arXiv 2026

Amir Reza Vazifeh1 Christian Zeigler2 Sornanathan Meyyappan2 Richard Jeske2 Jason W. Fleischer1

1Department of Electrical and Computer Engineering, Princeton University 2Waters Corporation

Overview

Cell viability assessment is a core requirement in cell culture systems, with critical applications in biopharmaceutical manufacturing and drug development. Conventionally, it is measured by adding membrane-impermeable dyes to a sample (a process called staining), which allows intact and compromised cell membranes to be distinguished. However, staining has several limitations: (a) chemical agents can perturb normal cellular processes of the cells being measured, (b) it is often ambiguous to assign viability to individual cells whose membrane integrity is only partially compromised, (c) photobleaching can undermine measurement accuracy over time when using fluorescent stains, and (d) staining cannot be performed in situ or in real time.

Here, we report the development and validation of ViabiLens, AI-assisted software for label-free cell viability analysis. ViabiLens combines a cell detection model for localizing individual cells with a convolutional neural network (CNN) classifier for live/dead prediction, paired with an interactive UMAP-based viewer for visualizing and exploring individual cells across the sample. Evaluated on Chinese Hamster Ovary (CHO) cells spanning a wide range of viability conditions, ViabiLens achieves a mean absolute error of 2.33% on unstained samples against fluorescence-based reference measurements.

Traditional stain-based viability measurement compared with the proposed label-free deep learning pipeline
Comparison of traditional and proposed methods for cell viability assessment. Left: a bioreactor used for cell culture. Middle: traditionally, cells are stained and fluorescently imaged to distinguish live from dead cells. Right: the proposed deep-learning-based method detects and classifies individual cells as live or dead directly from brightfield images, without staining or fluorescence imaging. In either case, sample-level viability is computed as the ratio of live cells to the total cell count.

Method

Our pipeline consists of two stages: an object detection model for localizing individual cells, followed by a CNN classifier to predict their viability. Both models are trained on stained samples and then applied unchanged to unstained ones.

Dataset

CHO cells were mixed 1:1 (v/v) with ViaStain™ AO-PI staining solution (Revvity) and incubated for 10 minutes before imaging on a Cellaca™ PLX image cytometer. Each image is 2080 × 2784 pixels, covering a 1.37 mm × 1.84 mm field of view. For every stained sample, the instrument provides a brightfield image, two fluorescence images acquired in separate channels for acridine orange (AO; 470/532 nm excitation/emission, 15 ms exposure) and propidium iodide (PI; 531/655 nm, 40 ms exposure), a bounding box for each cell, and a live/dead label for each cell. We use these bounding boxes and viability labels as training annotations. Images were collected from two independent CHO cell culture runs performed at different times. The training set consists of 45 stained images from the first run. From the second run, we acquired 15 stained images, each paired with an unstained brightfield image captured immediately before dye addition (unstained images have no fluorescence channels or annotations). These 15 stained/unstained pairs form a held-out test set that was never used at any stage of training.

Cell detection

Because the dataset provides bounding boxes, we trained an RF-DETR object detector, pretrained on the COCO dataset and fine-tuned to separate cells from background. Training on full-resolution images performed poorly because each cell occupies only a few pixels of a large image. We therefore divided each image into 100 overlapping crops of 260 × 348 pixels, so that cells take up a meaningful share of each input. The training set consisted of 45 stained images, giving 4,500 crops in total, with the bounding-box annotations provided by PLX serving as ground-truth labels.

At inference, the full image is split into overlapping crops of the same size used in training, and the detector runs on each crop separately. Combining these results requires solving three problems. First, a cell on the edge of a crop is only partly visible. To handle this, neighboring crops overlap so that every cell appears whole in at least one crop, and we keep only boxes that lie fully inside the central region of each crop. Second, the detector may return several overlapping boxes for the same cell. Within each crop, non-maximum suppression (NMS) keeps the most confident box and removes the rest. Third, because crops overlap, the same cell can be detected in two neighboring crops. After all boxes are moved back to full-image coordinates, a second round of NMS removes these duplicates, leaving one box per cell.

Cell classification

Each detected cell is resized to a fixed-size patch and passed to a compact CNN, trained on about 112,947 PLX-labeled stained cells, that outputs the probability of the cell being live or dead. Cells are labeled using a 0.5 decision threshold. The trained model can be applied to both stained and unstained cells. Sample viability is the fraction of cells predicted live.

Cell detection and classification pipeline
Overview of the cell detection and viability analysis pipeline. The brightfield image is divided into overlapping crops (red shading marks overlap with neighboring crops). Each crop is fed to the trained detector, and only boxes fully inside the green frame are kept, so incomplete cells at the edges are discarded. Duplicate detections are removed with non-maximum suppression, first within each crop and again after mapping boxes back to the full image. Each detected cell is then resized and classified as live or dead by the CNN.

Results

Qualitative Comparison

To assess whether task-specific training is necessary, we compare our approach against baselines representing the main paradigms available for this task: (1) the Cellaca™ PLX image cytometer, whose detections also served as the reference annotations for training; (2) a classical image-processing pipeline that requires no training data; and (3) the pretrained Cellpose-SAM, a generalist foundation model applied off the shelf without fine-tuning. Our approach represents a fourth paradigm, in which detection models are fine-tuned on task-specific data; we evaluated three architectures: Faster R-CNN, YOLO26, and RF-DETR.

Detection results on stained sample 1

Quantitative Comparison

The table below reports detection performance for all methods on stained and unstained images. For stained samples, we report cell counts, precision, recall, F1-score, and mAP. For unstained samples, we report only cell counts because no reference annotations are available. On the training set, our fine-tuned models detect approximately 15–20% more cells than the PLX measurement. Visual inspection across different samples suggests that our models recover missed or inaccurate bounding boxes, which indicates that training on a large set of imperfect annotations may allow a deep learning model to generalize beyond individual annotation errors. Cellpose-SAM detects slightly more cells than our trained models, but visual inspection indicates that some of these detections are very small false positives or large bounding boxes that do not correspond to individual cells. Overall, the fine-tuned models achieve the best performance across all evaluation metrics, with mAP ≥ 0.9 on both the training and test sets.

Sample Metric PLX
(Reference)
Image
Processing
Cellpose-SAM
(zero-shot)
Faster R-CNN
(fine-tuned)
YOLO26
(fine-tuned)
RF-DETR
(fine-tuned)
45 stained samples
(training set)
Cell count112,947105,190136,334132,110130,221136,127
Precision–0.560.760.860.870.84
Recall–0.520.880.960.950.96
F1–0.540.810.900.900.89
mAP–––0.920.910.93
15 stained samples
(test set)
Cell count8,0567,6428,3048,2568,2478,218
Precision–0.810.700.910.910.91
Recall–0.780.720.930.940.93
F1–0.790.710.920.920.92
mAP–––0.920.920.91
15 unstained samples
(test set)
Cell count–14,30517,66716,59716,65616,693

PLX serves as the reference. It only provides bounding-box annotations for stained samples, so unstained metrics beyond cell count are not available.

Robustness across focal planes

Cell appearance can vary across focal planes, and the detection model should remain robust to such focus-dependent changes. The videos below show the trained RF-DETR model on two focal stacks, each covering a range of focal planes from a single field of view. In both stacks, the detector remains robust across almost all focal planes and finds a consistent number of cells, and the other two architectures behave similarly. Detection may fail only when cells become completely out of focus. The viability classifier is more sensitive to focus because it was not trained on all focal planes, which is why predicted viability drops in the most defocused planes. For reliable AI predictions, the focal plane used at inference should therefore match the one used during training. Note that cells move slightly during acquisition, so they are not perfectly registered between planes, and some enter or leave the field of view.

Software

To facilitate assessment and interactive benchmarking of the pipeline, we developed ViabiLens, an interactive HTML-based platform. It visualizes different imaging modalities side by side with adjustable brightness, contrast, and magnification, and overlays detected cells from all four methods for direct comparison. A UMAP projection of the sample shows AI-predicted viability, where hovering over a point previews that cell, and a summary table reports sample-level viability. Beyond its utility as a research tool for testing and refining methods, the platform is functional software with potential commercial application.

Screenshot of the ViabiLens Cell Viability Viewer interface
ViabiLens, an interactive platform for label-free cell viability analysis.

BibTeX

@misc{ViabiLens:26,
      title={Label-free cell counting and viability prediction with brightfield imaging and deep learning},
      author={Amir Reza Vazifeh and Christian Zeigler and Sornanathan Meyyappan and Richard Jeske and Jason W. Fleischer},
      year={2026},
      eprint={2610.10473},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2610.10473},
}