Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May 14:11:20552076251341092.
doi: 10.1177/20552076251341092. eCollection 2025 Jan-Dec.

YOLOv8 framework for COVID-19 and pneumonia detection using synthetic image augmentation

Affiliations

YOLOv8 framework for COVID-19 and pneumonia detection using synthetic image augmentation

Uddin A Hasib et al. Digit Health. .

Abstract

Objective: Early and accurate detection of COVID-19 and pneumonia through medical imaging is critical for effective patient management. This study aims to develop a robust framework that integrates synthetic image augmentation with advanced deep learning (DL) models to address dataset imbalance, improve diagnostic accuracy, and enhance trust in artificial intelligence (AI)-driven diagnoses through Explainable AI (XAI) techniques.

Methods: The proposed framework benchmarks state-of-the-art models (InceptionV3, DenseNet, ResNet) for initial performance evaluation. Synthetic images are generated using Feature Interpolation through Linear Mapping and principal component analysis to enrich dataset diversity and balance class distribution. YOLOv8 and InceptionV3 models, fine-tuned via transfer learning, are trained on the augmented dataset. Grad-CAM is used for model explainability, while large language models (LLMs) support visualization analysis to enhance interpretability.

Results: YOLOv8 achieved superior performance with 97% accuracy, precision, recall, and F1-score, outperforming benchmark models. Synthetic data generation effectively reduced class imbalance and improved recall for underrepresented classes. Comparative analysis demonstrated significant advancements over existing methodologies. XAI visualizations (Grad-CAM heatmaps) highlighted anatomically plausible focus areas aligned with clinical markers of COVID-19 and pneumonia, thereby validating the model's decision-making process.

Conclusion: The integration of synthetic data generation, advanced DL, and XAI significantly enhances the detection of COVID-19 and pneumonia while fostering trust in AI systems. YOLOv8's high accuracy, coupled with interpretable Grad-CAM visualizations and LLM-driven analysis, promotes transparency crucial for clinical adoption. Future research will focus on developing a clinically viable, human-in-the-loop diagnostic workflow, further optimizing performance through the integration of transformer-based language models to improve interpretability and decision-making.

Keywords: COVID-19 detection; YOLOv8; medical image analysis; pneumonia classification; synthetic image augmentation.

PubMed Disclaimer

Conflict of interest statement

The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.

Figures

Figure 1.
Figure 1.
Sample images of the dataset.
Figure 2.
Figure 2.
Proposed framework.
Figure 3.
Figure 3.
Frame Interpolation for Large Motion (FILM) mechanism.
Figure 4.
Figure 4.
Sample of experimental result output for YOLOv8 model trained on the augmented dataset. YOLO: You Only Look Once.
Figure 5.
Figure 5.
Confusion matrix for the YOLOv8 model after training on the produced dataset containing synthetic images. YOLO: You Only Look Once.
Figure 6.
Figure 6.
Training loss, validation loss, and accuracy tendency while training the YOLOv8 model with transfer learning in the proposed framework. YOLO: You Only Look Once.
Figure 7.
Figure 7.
Feature visualization using grad-CAM.

Similar articles

References

    1. Mayo Clinic. Pneumonia - symptoms and causes. Available at: https://www.mayoclinic.org/diseases-conditions/pneumonia/symptoms-causes... (accessed 25 November 2024).
    1. World Health Organization (WHO). Pneumonia. Available at: https://www.who.int/health-topics/pneumonia (accessed 25 November 2024).
    1. Centers for Disease Control and Prevention (CDC). Pneumonia. Available at: https://www.cdc.gov/pneumonia/index.html (accessed 25 November 2024).
    1. Cleveland Clinic. Pneumonia: Causes, symptoms, diagnosis & treatment. Available at: https://my.clevelandclinic.org/health/diseases/4471-pneumonia (accessed 25 November 2024).
    1. American Lung Association. Pneumonia symptoms and diagnosis. Available at: https://www.lung.org/lung-health-diseases/lung-disease-lookup/pneumonia/... (accessed 25 November 2024).

LinkOut - more resources