Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleArticle metrics
Research Article · Open access · Published 17 October 2025

Pleural Effusion Detection Using Optimized Pretrained Models

Rehab Fathi Ibrahim1, Nashwa Mohamed Elsayed1,2, Alshaimaa Mostafa Mohammed2 & Ahmed Magdy Mohamed3

Journal of Computer Science, Volume 21, Issue 8, pp. 1970–1982 · doi.org/10.3844/jcssp.2025.1970.1982

2,308 accesses1,454 downloads0 citations (Crossref)Journal metrics
Cite Check for updates

Abstract

Pleural effusion is an abnormal accumulation of fluid in the pleural cavity, posing a significant thoracic issue with various causes. Even with a variety of diagnostic techniques, accurate diagnosis remains challenging. Delays in diagnosis and treatment heighten the risks of the disease. In this paper, we introduce a novel approach by leveraging the Grey Wolf Optimizer (GWO) to systematically optimize pretrained models for detecting pleural effusion in chest X-rays. Our need for optimization stems from the obstacles encountered in recent studies on diagnosing pleural effusion. Previous studies have relied on trial-and-error parameter tuning, which has entailed high computational costs and made training more difficult. Proper parameter tuning improves model performance. Therefore, in this paper, we utilize the GWO model to fine-tune the parameters and enhance the performance of our pretrained model performance in detecting pleural effusion. However, due to the challenges of applying the optimization model to the entire dataset, we will use a subset, referred to as the "Small ChestX-Ray14" dataset. This not only reduces the computational demands of optimization but also addresses the dataset imbalance in ChestX-Ray14, which could affect performance. The GWO-ResNet18 model achieved a significant improvement in performance on the Small ChestX-Ray14 dataset, attaining an Area Under the Curve (AUC) of 95.1% and an accuracy of 89.07%. In comparison, the baseline ResNet18 model achieved an AUC of 93.3% and an accuracy of 86.59%. Building on this success, the optimized hyperparameters were transferred to the full ChestX Ray14 dataset to evaluate the model’s performance on a larger scale, resulting in an AUC of 88.48%, compared to 87.36% with unoptimized hyperparameters. This surpasses both ResNet18 with unoptimized hyperparameters and state-of the-art methods. Our results indicate that optimizing pretrained models, specifically through the use of GWO, improves medical image interpretation and enhances disease diagnosis, such as that of pleural effusion.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Ibrahim, R. F., Elsayed, N. M., Mohammed, A. M. & Mohamed, A. M. (2025). Pleural Effusion Detection Using Optimized Pretrained Models. Journal of Computer Science, 21(8), 1970–1982. https://doi.org/10.3844/jcssp.2025.1970.1982

Licence
CC BY 4.0
Issue
Volume 21, Issue 8
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Pleural Effusion Detection Using Optimized Pretrained ModelsJournal of Computer Science · Volume 21, Issue 8 · pp. 1970–1982 · CC BY 4.0Download