EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Comparative Analysis of Random Forest and Convolutional Neural Network (CNN) Algorithms for Pneumonia Detection in Chest X-ray Images: Accuracy, Interpretability, and Computational Efficiency

Siffa Zaena, Kemas Muslim Lhaksmana

Building of Informatics, Technology and Science (BITS) · 02.09.2025 · 7 (2) · 1069-1077

DOI: 10.47065/bits.v7i2.7840 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Building of Informatics, Technology and Science (BITS), online erschienen am 02.09.2025. Verfasst von Siffa Zaena und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Pneumonia is a lung infection that can be detected through chest X-ray images. Manual diagnosis requires radiological expertise and time, thus an accurate automated method is needed. This study aims to compare the performance of two image classification algorithms, Convolutional Neural Network (CNN) and Random Forest (RF), in detecting pneumonia. The dataset used was obtained from Kaggle, consisting of 5,863 X-ray images categorized into three classes: bacterial pneumonia, viral pneumonia, and normal. Preprocessing steps include image resizing, normalization, and data augmentation. The CNN model was built using multiple convolutional and pooling layers, while RF utilized numerical features derived from histograms and texture. The CNN model demonstrated superior performance, achieving 92.4% accuracy, 93.1% precision, 91.6% recall, and 92.3% F1-score, compared to 82.7%, 80.3%, 85.1%, and 82.6% for Random Forest, respectively. Although CNN offers better accuracy, RF excels in interpretability. In conclusion, CNN is more effective for image-based pneumonia classification, yet RF remains relevant in applications requiring transparent decision-making. Potential biases, such as class imbalance and limited demographic representation in the dataset, could influence model performance and generalizability across different patient populations.

Zitieren

APA

Zaena, S., & Lhaksmana, K. M. (2025). Comparative Analysis of Random Forest and Convolutional Neural Network (CNN) Algorithms for Pneumonia Detection in Chest X-ray Images: Accuracy, Interpretability, and Computational Efficiency. Building of Informatics, Technology and Science (BITS), 7(2), 1069-1077. https://doi.org/10.47065/bits.v7i2.7840

Vancouver

Zaena S, Lhaksmana KM. Comparative Analysis of Random Forest and Convolutional Neural Network (CNN) Algorithms for Pneumonia Detection in Chest X-ray Images: Accuracy, Interpretability, and Computational Efficiency. Building of Informatics, Technology and Science (BITS). 2025;7(2):1069-1077. doi:10.47065/bits.v7i2.7840

BibTeX
@article{Zaena2025,
  author = {Zaena, Siffa and Lhaksmana, Kemas Muslim},
  title = {Comparative Analysis of Random Forest and Convolutional Neural Network (CNN) Algorithms for Pneumonia Detection in Chest X-ray Images: Accuracy, Interpretability, and Computational Efficiency},
  journal = {Building of Informatics, Technology and Science (BITS)},
  year = {2025},
  volume = {7},
  number = {2},
  pages = {1069--1077},
  doi = {10.47065/bits.v7i2.7840}
}
Kostenlos starten →