How CellDetNet Supports AI-Assisted Bone Marrow Cell Detection and Classification
Bone marrow morphology is a fundamental component of the diagnostic workup for hematologic disorders. Yet this work has long depended on the experience of laboratory professionals: numerous microscopic fields must be examined, a wide range of cell types must be distinguished, and interpretation can be subjective. Against a backdrop of rising hematologic disease incidence and growing sample volumes, the gap between slide-review workload and available staff time is becoming increasingly pronounced. To help address this pressure, we use CellDetNet within our blood cell analysis system to locate and classify cells, allowing laboratory professionals to focus their review on abnormal, challenging, and low-confidence results.
01 Blood Cell Analysis System Architecture
The blood cell analysis system is available in two hardware configurations to suit different laboratory settings.
Scanner configuration — fully automated image acquisition. The instrument automatically scans slides and captures images, while the operator changes the slides. This configuration is suited to laboratories with high sample volumes and substantial slide-review workloads.
Microscope configuration — semiautomated image acquisition. A trinocular microscope is combined with a camera, and the operator moves between fields and captures images. This configuration is suited to laboratories that already have microscopy equipment and want to add image-based reporting.
The two configurations differ in how images are acquired. Both use the same core blood cell analysis software with an embedded CellDetNet recognition engine. The system has two primary functions: cell identification using CellDetNet, a cell detection and classification network, and the generation of reports combining images and text.

Scanner and microscope configurations of the blood cell analysis system.
02 The CellDetNet Workflow
Once an image enters the system, the detection module, DetNet, locates target cells across the field and generates bounding boxes. The classification module, CellNet, assigns a cell type to each detected cell and provides a confidence score. The platform then counts cells, summarizes the classification results, and produces the output. Cells with low-confidence predictions, abnormal morphology, or particular clinical relevance are flagged for manual review. The workflow is designed around a clear division of tasks: the algorithm handles repetitive, high-volume preliminary identification, while laboratory professionals focus on low-confidence findings and cases requiring expert judgment.

Illustration of blood cells.
Detection Module
DetNet locates target cells in the full microscopic image and outputs bounding boxes, providing individual cell images for subsequent classification. Microscopic images commonly present four challenges: cells extending beyond the image boundary, touching cells, background interference, and substantial variation in cell size. These can lead to missed detections, excess detections, localization errors, and incomplete bounding boxes. Optimization therefore focuses not only on detecting a cell, but also on ensuring that its bounding box adequately covers the cell body, reducing the impact of initial localization errors on downstream classification.

Example of target-cell detection. Abnormal promyelocytes are labeled.
For object detection and cell localization, DetNet uses the YOLOv5 end-to-end detection framework. Its spatial pyramid pooling (SPP) module combines local and global contextual features to capture information around bone marrow cells. Together with adaptive anchors and Complete Intersection over Union (CIoU) loss, this approach aims to produce relatively complete bounding boxes even when manual annotations do not precisely follow cell boundaries or cells extend partly beyond the field of view, helping to reduce missed detections and localization errors.

Architecture of the bone marrow cell detection algorithm.
Classification Module
CellNet classifies the individual cell images provided by the detection module and outputs a predicted cell type with its associated probability. It currently covers 48 bone marrow cell categories, including granulocytic, erythroid, lymphoid, monocytic, and plasma cell lineages, together with other categories and developmental stages. Bone marrow datasets are highly imbalanced: common categories may contain thousands of examples, whereas rare categories may have only a few dozen. With conventional training, a model may assign uncertain examples to more prevalent categories, systematically missing rare cell types. CellNet therefore uses a multistage optimization strategy.
Core classification. CellNet incorporates a Class-Balanced Classification Method (CBCM) into training. Built on a Transformer architecture, it combines computer vision and attention mechanisms with data augmentation and Class-Balanced Focal Loss, which reweights classes according to their effective number of samples. This helps address the long-tailed distribution typical of bone marrow cell datasets and reduces bias toward majority classes that could otherwise cause rare cells to be missed. It also means that increasing training for a single cell category in isolation may reduce overall classification accuracy.
Conceptual illustration of CBCM with Transformer and CCL.
Fine-grained classification and the reject option. CellNet combines Crossformer multiscale feature extraction with Class Centroid Learning (CCL). Cross-scale patch embeddings use convolutional kernels at different scales to capture features such as cytoplasmic granules and nuclear morphology. A reject option routes low-confidence predictions to manual review. Related academic research reports an overall classification accuracy of approximately 94.44% at a specified threshold. After approximately 21.07% of low-confidence cases were set aside for review, accuracy on the retained cases increased to above 98.60%.

Transformer and Class Centroid Learning training workflow.
Interpretability. Conventional Grad-CAM heatmaps can still leave clinicians with a largely black-box explanation. To improve interpretability, the system introduces a Knowledge-Aligned Attribute Network (KAAN), mapping model decisions to morphological descriptions such as a round nucleus, blue cytoplasm, or coarse granules. This is intended to align the AI interpretation with the knowledge used by laboratory professionals.

Morphological attributes presented alongside the cell image.
The platform design also incorporates active learning and self-supervised pretraining with a masked autoencoder (MAE). Rather than requiring every image to be labeled in advance, the approach assesses sample distribution and uncertainty to prioritize high-value examples for expert annotation. System testing reported in the source article indicates that, in blood cell classification, using only 20% of the labeled data can approach the performance of fully supervised training on the complete dataset. This can substantially reduce the data adaptation burden when introducing the model to a new hospital or different staining conditions. The mechanism is included as a provision in the platform design to support future model refinement and expansion.

Conceptual illustration of sample selection for active learning.
The following report illustrates the changes after fine-tuning our model.

03 Application Settings
Based on the workflow described above, the system is suited to the following settings and needs.
- Laboratories with high sample volumes and substantial slide-review workloads
- Laboratories with existing microscopy equipment and limited investment budgets
- Collection of rare and challenging cell examples to support ongoing model improvement
- Teaching and training
Before deployment, several conditions usually need to be assessed. Slide preparation and staining should be evaluated for consistency with the training data. Daily sample volumes and staffing availability should inform the confidence threshold and the proportion of cases routed to manual review. The laboratory must also determine how manual review will be integrated into its existing workflow. Each of these factors should be confirmed during the initial project assessment.
04 Conclusion
AI is an assistive tool. Its practical value depends on how well it fits the individual laboratory, including sample types, slide preparation conditions, staffing, and review procedures. To explore the system’s capabilities, search for SuiYiJian in WeChat and upload cell images to view classification results from the same recognition engine.
Technical note. The technical approach described in this article primarily draws on methods presented in related publicly available research papers. Actual product implementation details are subject to the final released product. We thank the algorithm team for reviewing the technical approach described here.
