A Performance Comparison of Different YOLOv7 Networks for High-Accuracy Cell Classification in Bronchoalveolar Lavage Fluid Utilising the Adam Optimiser and Label Smoothing
- PMID: 39586912
- PMCID: PMC12344068
- DOI: 10.1007/s10278-024-01315-3
A Performance Comparison of Different YOLOv7 Networks for High-Accuracy Cell Classification in Bronchoalveolar Lavage Fluid Utilising the Adam Optimiser and Label Smoothing
Abstract
Accurate classification of cells in bronchoalveolar lavage (BAL) fluid is essential for the assessment of lung disease in pneumology and critical care medicine. However, the effectiveness of BAL fluid analysis is highly dependent on individual expertise. Our research is focused on improving the accuracy and efficiency of BAL cell classification using the "You Only Look Once" (YOLO) algorithm to reduce variability and increase the accuracy of cell detection in BALF analysis. We assess various YOLOv7 iterations, including YOLOv7, YOLOv7 with Adam and label smoothing, YOLOv7-E6E, and YOLOv7-E6E with Adam and label smoothing focusing on the detection of four key cell types of diagnostic importance in BAL fluid: macrophages, lymphocytes, neutrophils, and eosinophils. This study utilised cytospin preparations of BAL fluid, employing May-Grunwald-Giemsa staining, and analysed a dataset comprising 2032 images with 42,221 annotations. Classification performance was evaluated using recall, precision, F1 score, mAP@.5, and mAP@.5;.95 along with a confusion matrix. The comparison of four algorithmic approaches revealed minor distinctions in mean results, falling short of statistical significance (p < 0.01; p < 0.05). YOLOv7, with an inference time of 13.5 ms for 640 × 640 px images, achieved commendable performance across all cell types, boasting an average F1 metric of 0.922, precision of 0.916, recall of 0.928, and mAP@.5 of 0.966. Remarkably, all four cell types were classified consistently with high-performance metrics. Notably, YOLOv7 demonstrated marginally superior class value dispersion when compared to YOLOv7-adam-label-smoothing, YOLOv7-E6E, and YOLOv7-E6E-adam-label-smoothing, albeit without statistical significance. Consequently, there is limited justification for deploying the more computationally intensive YOLOv7-E6E and YOLOv7-E6E-adam-label-smoothing models. This investigation indicates that the default YOLOv7 variant is the preferred choice for differential cytology due to its accessibility, lower computational demands, and overall more consistent results than more complex models.
Keywords: Artificial intelligence; Bronchoalveolar lavage; Deep learning; Medical imaging; Pathology; Tile-based.
© 2024. The Author(s) under exclusive licence to Society for Imaging Informatics in Medicine.
Conflict of interest statement
Declarations. Ethics Approval: This study was approved by the Ethics Committee of the Julius Maximilian University of Würzburg (20230623 01). Competing Interests: The authors declare the following financial interests/personal relationships which may be considered as potential competing interests: Sebastian Rumpf reports a relationship with Smart In Media AG that includes consulting or advisory. All other authors have no relevant financial or non-financial interests to disclose.
Figures







Similar articles
-
Prescription of Controlled Substances: Benefits and Risks.2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. 2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. PMID: 30726003 Free Books & Documents.
-
Artificial intelligence for diagnosing exudative age-related macular degeneration.Cochrane Database Syst Rev. 2024 Oct 17;10(10):CD015522. doi: 10.1002/14651858.CD015522.pub2. Cochrane Database Syst Rev. 2024. PMID: 39417312
-
Detecting soil-transmitted helminth and Schistosoma mansoni eggs in Kato-Katz stool smear microscopy images: A comprehensive in- and out-of-distribution evaluation of YOLOv7 variants.PLoS Negl Trop Dis. 2025 Jul 3;19(7):e0013234. doi: 10.1371/journal.pntd.0013234. eCollection 2025 Jul. PLoS Negl Trop Dis. 2025. PMID: 40608836 Free PMC article.
-
Comparison of Two Modern Survival Prediction Tools, SORG-MLA and METSSS, in Patients With Symptomatic Long-bone Metastases Who Underwent Local Treatment With Surgery Followed by Radiotherapy and With Radiotherapy Alone.Clin Orthop Relat Res. 2024 Dec 1;482(12):2193-2208. doi: 10.1097/CORR.0000000000003185. Epub 2024 Jul 23. Clin Orthop Relat Res. 2024. PMID: 39051924
-
Lamotrigine versus carbamazepine monotherapy for epilepsy: an individual participant data review.Cochrane Database Syst Rev. 2018 Jun 28;6(6):CD001031. doi: 10.1002/14651858.CD001031.pub4. Cochrane Database Syst Rev. 2018. PMID: 29952431 Free PMC article.
Cited by
-
PW-BALFC, a clinical dataset for detection and instance segmentation of bronchoalveolar lavage fluid cell.Sci Data. 2025 Jul 1;12(1):1074. doi: 10.1038/s41597-025-05452-4. Sci Data. 2025. PMID: 40594053 Free PMC article.
References
-
- James, S.L., et al.: Global, regional, and national incidence, prevalence, and years lived with disability for 354 diseases and injuries for 195 countries and territories, 1990–2017: a systematic analysis for the Global Burden of Disease Study 2017. The Lancet 392 (10159): p. 1789-1858, 2018. - PMC - PubMed
-
- Driscoll, T., et al.: The global burden of non‐malignant respiratory disease due to occupational airborne exposures. American journal of industrial medicine 48 (6): p. 432-445, 2005. - PubMed
-
- Poletti, V., M. Chilosi, and D. Olivieri: Diagnostic invasive procedures in diffuse infiltrative lung diseases. Respiration 71 (2): p. 107-119, 2004. - PubMed
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources