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

Preprint, 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.68% 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 grown in fed-batch cultures over two weeks and sampled at multiple time points to cover the range of viabilities seen in bioprocessing. Samples were stained with acridine orange (AO) and propidium iodide (PI) and imaged on a Cellaca™ PLX image cytometer, which provides a brightfield image, two fluorescence images, and a bounding box and live/dead label for every stained cell. In total, we collected 75 stained images at a resolution of 2080 × 2784 pixels (1.37 mm × 1.84 mm). For 15 of these samples, we also captured an unstained brightfield image immediately before adding the dye. The remaining 60 stained images were used for training, and the 15 stained/unstained pairs were held out for testing and never used in training. The dataset is publicly available here.

Cell detection

Because the dataset provides bounding boxes, we trained a Faster R-CNN object detector, pretrained on the COCO dataset and fine-tuned to separate cells from background using the PLX bounding boxes as ground truth. Training on full-resolution images performed poorly because each cell occupies only a few pixels of a large image. We therefore divided each training image into overlapping crops, so that cells take up a meaningful share of each input.

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 137,000 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

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 60 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 95% accuracy (F1-score of about 0.80), 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.

PCA, t-SNE and UMAP embeddings of live and dead cells, with average Fourier spectra
Live (green) vs. dead (orange) cells. Top: 2D embeddings and k-NN accuracy. Bottom: average Fourier spectra and their cross-sections.

Unsupervised phenotyping

UMAP also splits dead cells into two distinct groups. White, featureless cells that have lost intracellular content (red) may reflect a later stage of cell death, while heterogeneous cells with a faint membrane outline (blue) 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 separate cluster (cyan) collects irregular crops, such as overlapping cells or detection errors. Removing these outliers improves dataset quality and leads to more consistent training.

UMAP clusters with representative cell patches
UMAP clusters with example cells. Green and yellow frames mark live and dead labels, respectively.

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

@article{vazifeh2026viabilens,
  title   = {Label-Free Cell Counting and Viability Prediction Using Brightfield Imaging and Deep Learning},
  author  = {Vazifeh, Amir Reza and Zeigler, Christian and Meyyappan, Sornanathan and Jeske, Richard and Fleischer, Jason W.},
  journal = {arXiv},
  year    = {2026}
}