name: 'bone-marrow-ai-agent'
description: 'AI-powered bone marrow morphology analysis, cell classification, and hematologic disorder diagnosis using deep learning on aspirate and biopsy images.'
measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.
allowed-tools:
- read_file
- run_shell_command
Bone Marrow AI Agent
The Bone Marrow AI Agent provides comprehensive AI-driven analysis of bone marrow aspirate and biopsy specimens. It performs automated cell identification, differential counting, morphological assessment, and pattern recognition for hematologic disease diagnosis.
When to Use This Skill
- When performing automated bone marrow differential counts from aspirate smears.
- To identify morphological abnormalities (dysplasia, blasts, abnormal cells).
- For pattern recognition in myelodysplastic syndromes (MDS), leukemias, and other disorders.
- When assessing cellularity, fibrosis, and infiltration in trephine biopsies.
- To standardize morphological assessment across institutions.
Core Capabilities
Cell Classification: Deep learning identification and classification of 15+ bone marrow cell types with >95% accuracy.
Automated Differential: Rapid 500-cell differential counts from digital aspirate images.
Dysplasia Detection: AI recognition of dyserythropoiesis, dysgranulopoiesis, and dysmegakaryopoiesis.
Blast Quantification: Accurate blast percentage enumeration for AML/MDS classification.
Biopsy Analysis: Cellularity estimation, fibrosis grading, and infiltration pattern recognition.
Quality Assessment: Automated specimen adequacy and hemodilution detection.
Cell Types Classified
| Lineage |
Cell Types |
Key Features |
| Erythroid |
Pronormoblast, basophilic, polychromatic, orthochromatic |
Size, chromatin, cytoplasm color |
| Myeloid |
Myeloblast, promyelocyte, myelocyte, metamyelocyte, band, seg |
Granules, nuclear shape |
| Monocytic |
Monoblast, promonocyte, monocyte |
Nuclear folding, cytoplasm |
| Lymphoid |
Lymphocyte, plasma cell |
Size, chromatin density |
| Megakaryocytic |
Megakaryocytes (all stages) |
Size, nuclear lobation |
| Other |
Mast cells, osteoblasts, osteoclasts |
Distinctive morphology |
Workflow
Input: Bone marrow aspirate images (Wright-Giemsa stained) or biopsy sections (H&E).
Preprocessing: Color normalization, focus stacking, region of interest selection.
Cell Detection: Instance segmentation to identify individual cells.
Classification: CNN/CoAtNet model assigns cell type labels.
Differential: Aggregate counts and calculate percentages.
Pattern Recognition: Identify disease-associated morphological patterns.
Output: Differential count, morphology report, diagnostic suggestions.
Example Usage
User: "Analyze this bone marrow aspirate smear and provide a differential count with morphological assessment."
Agent Action:
python3 Skills/Hematology/Bone_Marrow_AI_Agent/bm_analyzer.py \
--image aspirate_smear.tiff \
--stain wright_giemsa \
--target_cells 500 \
--assess_dysplasia true \
--model coatnet_bm_v2 \
--output bm_report.json
Model Architecture
CoAtNet Hybrid Model:
- Combines CNN (local features) with Transformer (global context)
- Pre-trained on 100,000+ annotated bone marrow cells
- Achieves >95% accuracy on cell classification
- Real-time inference (<1 second per cell)
Training Data Sources:
- Munich AML Morphology Dataset (Matek et al.)
- Multi-institutional bone marrow collections
- Expert hematopathologist annotations
Diagnostic Pattern Recognition
| Pattern |
Associated Conditions |
AI Features |
| Increased blasts |
AML, MDS, ALL |
Blast%, CD34 correlation |
| Dysplastic features |
MDS, AML-MRC |
Hypolobation, ring sideroblasts |
| Left shift |
Infection, CML, recovery |
Myeloid maturation pyramid |
| Plasma cell infiltration |
Myeloma, MGUS |
Plasma cell%, morphology |
| Lymphoid aggregates |
CLL, lymphoma |
Pattern, location |
FDA-Cleared and Research Systems
| System |
Approval |
Application |
| CellaVision |
FDA cleared |
Peripheral blood and BM |
| Scopio Labs X100 |
FDA cleared |
Full-field digital morphology |
| Techcyte |
Research |
AI-powered hematology |
| Morphogo |
Research |
Deep learning cytology |
Quality Metrics
Performance Benchmarks:
- Cell classification accuracy: >95%
- Blast detection sensitivity: >98%
- Dysplasia recognition: >90% concordance with experts
- Processing speed: 500-cell differential in <2 minutes
Quality Flags:
- Hemodilution detection
- Specimen adequacy assessment
- Staining quality evaluation
- Artifacts and debris identification
Prerequisites
- Python 3.10+
- PyTorch with CoAtNet/ViT models
- OpenCV for image processing
- Digital pathology scanner or microscope camera
Related Skills
- Flow_Cytometry_AI - For immunophenotyping correlation
- AML_Classification - For WHO/ICC AML subtyping
- MDS_Diagnosis - For MDS-specific analysis
Clinical Integration
- LIS Interface: HL7/FHIR export of results
- Quality Assurance: Flagging for pathologist review
- Documentation: Automated report generation
- Audit Trail: All AI decisions logged
Author
AI Group - Biomedical AI Platform
Source: mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- — distributed by TomeVault.
1---2name: mdbabumiamssm-llms-universal-life-science-and-clinical-skill3description: <!--4---5<!--6# COPYRIGHT NOTICE7# This file is part of the "Universal Biomedical Skills" project.8# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>9# All Rights Reserved.10#11# This code is proprietary and confidential.12# Unauthorized copying of this file, via any medium is strictly prohibited.13#14# Provenance: Authenticated by MD BABU MIA1516-->1718---19name: 'bone-marrow-ai-agent'20description: 'AI-powered bone marrow morphology analysis, cell classification, and hematologic disorder diagnosis using deep learning on aspirate and biopsy images.'21measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.22allowed-tools:23 - read_file24 - run_shell_command25---262728# Bone Marrow AI Agent2930The **Bone Marrow AI Agent** provides comprehensive AI-driven analysis of bone marrow aspirate and biopsy specimens. It performs automated cell identification, differential counting, morphological assessment, and pattern recognition for hematologic disease diagnosis.3132## When to Use This Skill3334* When performing automated bone marrow differential counts from aspirate smears.35* To identify morphological abnormalities (dysplasia, blasts, abnormal cells).36* For pattern recognition in myelodysplastic syndromes (MDS), leukemias, and other disorders.37* When assessing cellularity, fibrosis, and infiltration in trephine biopsies.38* To standardize morphological assessment across institutions.3940## Core Capabilities41421. **Cell Classification**: Deep learning identification and classification of 15+ bone marrow cell types with >95% accuracy.43442. **Automated Differential**: Rapid 500-cell differential counts from digital aspirate images.45463. **Dysplasia Detection**: AI recognition of dyserythropoiesis, dysgranulopoiesis, and dysmegakaryopoiesis.47484. **Blast Quantification**: Accurate blast percentage enumeration for AML/MDS classification.49505. **Biopsy Analysis**: Cellularity estimation, fibrosis grading, and infiltration pattern recognition.51526. **Quality Assessment**: Automated specimen adequacy and hemodilution detection.5354## Cell Types Classified5556| Lineage | Cell Types | Key Features |57|---------|------------|--------------|58| Erythroid | Pronormoblast, basophilic, polychromatic, orthochromatic | Size, chromatin, cytoplasm color |59| Myeloid | Myeloblast, promyelocyte, myelocyte, metamyelocyte, band, seg | Granules, nuclear shape |60| Monocytic | Monoblast, promonocyte, monocyte | Nuclear folding, cytoplasm |61| Lymphoid | Lymphocyte, plasma cell | Size, chromatin density |62| Megakaryocytic | Megakaryocytes (all stages) | Size, nuclear lobation |63| Other | Mast cells, osteoblasts, osteoclasts | Distinctive morphology |6465## Workflow66671. **Input**: Bone marrow aspirate images (Wright-Giemsa stained) or biopsy sections (H&E).68692. **Preprocessing**: Color normalization, focus stacking, region of interest selection.70713. **Cell Detection**: Instance segmentation to identify individual cells.72734. **Classification**: CNN/CoAtNet model assigns cell type labels.74755. **Differential**: Aggregate counts and calculate percentages.76776. **Pattern Recognition**: Identify disease-associated morphological patterns.78797. **Output**: Differential count, morphology report, diagnostic suggestions.8081## Example Usage8283**User**: "Analyze this bone marrow aspirate smear and provide a differential count with morphological assessment."8485**Agent Action**:86```bash87python3 Skills/Hematology/Bone_Marrow_AI_Agent/bm_analyzer.py \88 --image aspirate_smear.tiff \89 --stain wright_giemsa \90 --target_cells 500 \91 --assess_dysplasia true \92 --model coatnet_bm_v2 \93 --output bm_report.json94```9596## Model Architecture9798**CoAtNet Hybrid Model**:99- Combines CNN (local features) with Transformer (global context)100- Pre-trained on 100,000+ annotated bone marrow cells101- Achieves >95% accuracy on cell classification102- Real-time inference (<1 second per cell)103104**Training Data Sources**:105- Munich AML Morphology Dataset (Matek et al.)106- Multi-institutional bone marrow collections107- Expert hematopathologist annotations108109## Diagnostic Pattern Recognition110111| Pattern | Associated Conditions | AI Features |112|---------|----------------------|-------------|113| Increased blasts | AML, MDS, ALL | Blast%, CD34 correlation |114| Dysplastic features | MDS, AML-MRC | Hypolobation, ring sideroblasts |115| Left shift | Infection, CML, recovery | Myeloid maturation pyramid |116| Plasma cell infiltration | Myeloma, MGUS | Plasma cell%, morphology |117| Lymphoid aggregates | CLL, lymphoma | Pattern, location |118119## FDA-Cleared and Research Systems120121| System | Approval | Application |122|--------|----------|-------------|123| CellaVision | FDA cleared | Peripheral blood and BM |124| Scopio Labs X100 | FDA cleared | Full-field digital morphology |125| Techcyte | Research | AI-powered hematology |126| Morphogo | Research | Deep learning cytology |127128## Quality Metrics129130**Performance Benchmarks**:131- Cell classification accuracy: >95%132- Blast detection sensitivity: >98%133- Dysplasia recognition: >90% concordance with experts134- Processing speed: 500-cell differential in <2 minutes135136**Quality Flags**:137- Hemodilution detection138- Specimen adequacy assessment139- Staining quality evaluation140- Artifacts and debris identification141142## Prerequisites143144* Python 3.10+145* PyTorch with CoAtNet/ViT models146* OpenCV for image processing147* Digital pathology scanner or microscope camera148149## Related Skills150151* Flow_Cytometry_AI - For immunophenotyping correlation152* AML_Classification - For WHO/ICC AML subtyping153* MDS_Diagnosis - For MDS-specific analysis154155## Clinical Integration1561571. **LIS Interface**: HL7/FHIR export of results1582. **Quality Assurance**: Flagging for pathologist review1593. **Documentation**: Automated report generation1604. **Audit Trail**: All AI decisions logged161162## Author163164AI Group - Biomedical AI Platform165166167<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->168169---170> Source: [mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-](https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-) — distributed by [TomeVault](https://tomevault.io).171<!-- tomevault:4.0:skill_md:2026-06-16 -->