Effect of Attention Mechanism on the Performance of YOLOv8n Model in X-Ray Image Recognition of Pneumonia

Pneumonia is a common and serious respiratory disease that affects millions of people worldwide. With the rapid development of deep learning techniques, numerous studies have focused on using deep learning models to recognize pneumonia from X-ray images. However, research on using YOLOv8 models with added attention mechanisms for this task remains limited. This paper investigates the impact of different attention mechanisms on the performance of the YOLOv8n model in recognizing normal lung, viral pneumonia and COVID-19 pneumonia from X-ray images. Six attention mechanisms—CBAM, CPCA, DA, ECA, GAM, and SE—are integrated into the YOLOv8n model, along with a baseline model. The models are evaluated on training and test datasets using metrics such as F1-score, accuracy, precision, and recall. The results show that the addition of the attention mechanism improves the performance of the model in general, among which, on the balanced test set, ECA has the highest f1 score of 0.92. The accuracy of ECA model on both training set and test set reaches 88.46%.

Authors

Institutions

Publication Details

Published
2025-06-28
DOI
https://doi.org/10.1109/icipca65645.2025.11138653
Primary Topic
COVID-19 diagnosis using AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Effect of Attention Mechanism on the Performance of YOLOv8n Model in X-Ray Image Recognition of Pneumonia

Min Fu, Jian-Hao Zhou
COVID-19 diagnosis using AI
article

Effect of Attention Mechanism on the Performance of YOLOv8n Model in X-Ray Image Recognition of Pneumonia

Min Fu, Jian-Hao Zhou
article en

Abstract

Pneumonia is a common and serious respiratory disease that affects millions of people worldwide. With the rapid development of deep learning techniques, numerous studies have focused on using deep learning models to recognize pneumonia from X-ray images. However, research on using YOLOv8 models with added attention mechanisms for this task remains limited. This paper investigates the impact of different attention mechanisms on the performance of the YOLOv8n model in recognizing normal lung, viral pneumonia and COVID-19 pneumonia from X-ray images. Six attention mechanisms—CBAM, CPCA, DA, ECA, GAM, and SE—are integrated into the YOLOv8n model, along with a baseline model. The models are evaluated on training and test datasets using metrics such as F1-score, accuracy, precision, and recall. The results show that the addition of the attention mechanism improves the performance of the model in general, among which, on the balanced test set, ECA has the highest f1 score of 0.92. The accuracy of ECA model on both training set and test set reaches 88.46%.

University of Electronic Science and Technology of China (CN), Beijing Academy of Artificial Intelligence (CN)
Openalex Percentile: Top 67%
COVID-19 diagnosis using AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Effect of Attention Mechanism on the Performance of YOLOv8n Model in X-Ray Image Recognition of Pneumonia — Min Fu, Jian-Hao Zhou · (2025) | TGRS Research Map | TGRS