Real-Time Cell Sorting with Scalable In Situ FPGA-Accelerated Deep Learning

Khayrul Islam, Ryan F. Forelli, Jianzhong Han, Deven Bhadane, Jian Huang +4 more
3/16/2025
cs.LG

No official code found. Best implementation: Khayrulbuet13/LymphoML (0 stars, Apache-2.0, last commit 2025-11-27).

Abstract

Precise cell classification is essential in biomedical diagnostics and therapeutic monitoring, particularly for identifying diverse cell types involved in various diseases. Traditional cell classification methods such as flow cytometry depend on molecular labeling which is often costly, time-intensive, and can alter cell integrity. To overcome these limitations, we present a label-free machine learning framework for cell classification, designed for real-time sorting applications using bright-field microscopy images. This approach leverages a teacher-student model architecture enhanced by knowledge distillation, achieving high efficiency and scalability across different cell types. Demonstrated through a use case of classifying lymphocyte subsets, our framework accurately classifies T4, T8, and B cell types with a dataset of 80,000 preprocessed images, accessible via an open-source Python package for easy adaptation. Our teacher model attained 98\% accuracy in differentiating T4 cells from B cells and 93\% accuracy in zero-shot classification between T8 and B cells. Remarkably, our student model operates with only 0.02\% of the teacher model's parameters, enabling field-programmable gate array (FPGA) deployment. Our FPGA-accelerated student model achieves an ultra-low inference latency of just 14.5~$μ$s and a complete cell detection-to-sorting trigger time of 24.7~$μ$s, delivering 12x and 40x improvements over the previous state-of-the-art real-time cell analysis algorithm in inference and total latency, respectively, while preserving accuracy comparable to the teacher model. This framework provides a scalable, cost-effective solution for lymphocyte classification, as well as a new SOTA real-time cell sorting implementation for rapid identification of subsets using in situ deep learning on off-the-shelf computing hardware.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

**LymphoML** is a machine learning framework for real-time, label-free lymphocyte classification using bright-field microscopy images, optimized for FPGA deployment.

00Shell, PythonMar 4, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{islam2025realtime,
  title  = {Real-Time Cell Sorting with Scalable In Situ FPGA-Accelerated Deep Learning},
  author = {Khayrul Islam and Ryan F. Forelli and Jianzhong Han and Deven Bhadane and Jian Huang and Joshua C. Agar and Nhan Tran and Seda Ogrenci and Yaling Liu},
  year   = {2025},
  eprint = {2503.12622},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.12622v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.12622.svg)](https://codeofpaper.com/paper/2503.12622)

Discussion