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.
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.
Results
A key assumption of our approach is that live and dead cells look different enough in brightfield for a model to tell them apart. To test this, we took individual cells from the 45 training images, labeled by PLX, and embedded them in 2D with PCA, t-SNE and UMAP, without access to the labels. PCA, a linear method, shows substantial overlap, while t-SNE and UMAP clearly separate live and dead populations. A k-nearest-neighbor classifier on these embeddings reaches about 97% accuracy (F1-score of about 0.85), similar to running it on the original cells, which shows that the separation reflects real structure in the data. In the Fourier domain, live cells show stronger high-frequency content, consistent with sharper membranes and denser intracellular structure, while dead cells have smoother, more diffuse profiles.
Unsupervised phenotyping
UMAP also splits dead cells into two distinct groups. White, featureless cells that have lost intracellular content (cluster 2) may reflect a later stage of cell death, while heterogeneous cells with a faint membrane outline (cluster 3) may reflect an earlier stage. Unlike a supervised classifier, which collapses all dead cells into one label, the embedding preserves this diversity without any labels. A few small clusters (4-7) collects irregular crops, such as overlapping cells or detection errors. Removing these outliers improves dataset quality and leads to more consistent training.
Another key assumption is that unstained cells look enough like stained ones for a model trained on stained images to generalize. This is also why we use fluorescent stains for ground truth rather than visible stains such as trypan blue, which would change the brightfield appearance of cells. To test this, we compared stained and unstained cells from the same bioreactor samples, extracted with our trained detector. The cells are unpaired, since adding the stain disturbs their positions and the same cell cannot be tracked before and after staining. In PCA, t-SNE and UMAP embeddings, the two populations intermix. A k-nearest-neighbor classifier trying to tell them apart stays close to chance (about 60–70%), even on the original cells, compared with about 97% for live versus dead. Their average Fourier spectra are also closely matched, indicating that staining does not substantially alter cell appearance in brightfield.
The classifier was trained on cells extracted from the 45 stained training images, with 80% of the cells used for training and 20% held out for validation. It reaches 98.71% accuracy (F1-score = 0.94) on the training set and 98.36% accuracy (F1-score = 0.92) on the validation set, with ROC AUC values of 0.998 and 0.997, respectively. Training and validation curves track each other closely, with no sign of overfitting.
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.
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 count | 112,947 | 105,190 | 136,334 | 132,110 | 130,221 | 136,127 |
| Precision | – | 0.56 | 0.76 | 0.86 | 0.87 | 0.84 | |
| Recall | – | 0.52 | 0.88 | 0.96 | 0.95 | 0.96 | |
| F1 | – | 0.54 | 0.81 | 0.90 | 0.90 | 0.89 | |
| mAP | – | – | – | 0.92 | 0.91 | 0.93 | |
| 15 stained samples (test set) |
Cell count | 8,056 | 7,642 | 8,304 | 8,256 | 8,247 | 8,218 |
| Precision | – | 0.81 | 0.70 | 0.91 | 0.91 | 0.91 | |
| Recall | – | 0.78 | 0.72 | 0.93 | 0.94 | 0.93 | |
| F1 | – | 0.79 | 0.71 | 0.92 | 0.92 | 0.92 | |
| mAP | – | – | – | 0.92 | 0.92 | 0.91 | |
| 15 unstained samples (test set) |
Cell count | – | 14,305 | 17,667 | 16,597 | 16,656 | 16,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.
We applied the full pipeline to the 15 held-out stained/unstained pairs, using the PLX viability of each stained sample as the reference for both. On stained samples, ViabiLens reaches a mean absolute error of 2.59% (R² = 0.88), and on unstained samples 2.33% (R² = 0.87). Stained predictions fall slightly below PLX, likely because our detector finds extra cells that tend to have lower viability. A population-level UMAP analysis reveals four morphologically distinct clusters in both conditions: sharp, well-defined cells that are predominantly live (Cluster 1), featureless, translucent cells lacking internal structure (Cluster 2), fuzzy, blurred cells that make up most dead cells (Cluster 3), and patches with multiple adjoining cells, likely undergoing division (Cluster 4). This correspondence suggests that the visual features distinguishing live and dead cells are largely preserved between stained and unstained imaging.
To test whether the approach carries over to other hardware, we repeated the experiments on a higher-resolution Zeiss microscope.
Dataset. Samples were taken from two fed-batch cultures (V1 and V2), run in parallel as biological replicates in separate 3 L bioreactors, over two weeks (days 1, 4, 6, 8, 12, 13 and 14). They were imaged on a Zeiss Axio Observer microscope (EC Plan-Neofluar 10×/0.30 Ph1 objective) at a resolution of 9684 × 11604 pixels. Each sample was captured in brightfield, phase contrast and reflected brightfield at five focal planes, with the middle plane in focus. Stained samples (AO-PI) also include two fluorescence channels (AO for live, PI for dead cells), and each sample's viability was measured independently with the PLX image cytometer.
Cell detection and labeling. Since Cellpose-SAM already performs well on this dataset, we used it for detection instead of training a dedicated detector. Bounding boxes from the in-focus brightfield plane were applied to all modalities and focal planes, so the same cells are used throughout, giving 85,304 stained and 199,914 unstained cells. A stained cell is labeled dead if its PI signal exceeds its AO signal by more than a threshold, chosen so that each sample's resulting viability best matches the PLX measurement.
Cell classification. The classifier was trained only on stained cells from V1 (43,096 cells, split 90% training and 10% validation). Unlike the PLX pipeline, which uses brightfield only, it takes brightfield and phase images from all five focal planes as input. It reaches 95.20% training accuracy (F1-score = 0.90) and 95.22% validation accuracy (F1-score = 0.90), with an AUC of 0.981.
End-to-end evaluation. On the 11 stained samples, the reference viability comes from the fluorescence-derived labels, checked against the PLX measurements. The mean absolute error is 2.07% on the six V1 training samples and 2.02% on the five held-out V2 samples, showing that the model generalizes across independent cultures. On the 12 unstained samples, none used in training, the reference is the stained sample from the same vessel and day (or the PLX measurement where no stained Zeiss data exists). The mean absolute error is 1.78% for V1 and 3.04% for V2, with the largest deviations at lower viabilities (days 12–14), where the model tends to underestimate. In the UMAP embeddings, live and dead stained cells form clearly separated clusters in brightfield, with more overlap in phase. For unstained samples, predicted dead cells still cluster together, suggesting that the classifier generalizes beyond stained data.
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.
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},
}