A Novel CNN with Spatial and Channel Attention for Automated Chest X-Ray Diagnosis
Abstract
This study proposes a novel Convolutional Neural Network (CNN) approach with both spatial and channel attention mechanisms to improve automated chest X-ray image classification. The architecture integrates Squeeze-and-Excitation (SE) Blocks for channel attention and a spatial method to focus on informative regions of the sample, thereby enhancing both local and global feature extraction. The model processes input images of size 224×224×3 and comprises three convolutional blocks, each consisting of Conv2D, Batch Normalization, SE Blocks, Spatial Attention, MaxPooling, and Dropout layers. The dataset, sourced from Kaggle, contains 6,000 chest X-ray images categorized into three classes: Lung Opacity, Normal, and Viral Pneumonia. A standardized preprocessing pipeline was employed, including resizing, normalization (rescaling pixel values to [0, 1]), and real-time augmentation via TensorFlow’s ImageDataGenerator. The model was trained for 10 epochs using a batch size of 32. It achieved a final test accuracy of 93.01%, with a peak validation accuracy of 88.57%, and an Area Under the Curve (AUC) score of 97.22%.DOI:
https://doi.org/10.31449/inf.v49i3.9065Downloads
Published
How to Cite
Issue
Section
License
I assign to Informatica, An International Journal of Computing and Informatics ("Journal") the copyright in the manuscript identified above and any additional material (figures, tables, illustrations, software or other information intended for publication) submitted as part of or as a supplement to the manuscript ("Paper") in all forms and media throughout the world, in all languages, for the full term of copyright, effective when and if the article is accepted for publication. This transfer includes the right to reproduce and/or to distribute the Paper to other journals or digital libraries in electronic and online forms and systems.
I understand that I retain the rights to use the pre-prints, off-prints, accepted manuscript and published journal Paper for personal use, scholarly purposes and internal institutional use.
In certain cases, I can ask for retaining the publishing rights of the Paper. The Journal can permit or deny the request for publishing rights, to which I fully agree.
I declare that the submitted Paper is original, has been written by the stated authors and has not been published elsewhere nor is currently being considered for publication by any other journal and will not be submitted for such review while under review by this Journal. The Paper contains no material that violates proprietary rights of any other person or entity. I have obtained written permission from copyright owners for any excerpts from copyrighted works that are included and have credited the sources in my article. I have informed the co-author(s) of the terms of this publishing agreement.
Copyright © Slovenian Society Informatika







