A design of Convolutional Neural Network model for the Diagnosis of the COVID-19

Xinyuan SongarXiv 2023 · DOI · arXiv

TL;DR

This paper introduces a novel 19-layer Convolutional Neural Network (CNN) architecture designed for the accurate diagnosis of COVID-19 from chest X-ray images. The proposed model demonstrates superior performance compared to several popular pre-trained CNNs, offering a promising tool for clinicians in rapid and reliable COVID-19 detection.

What Problem Does This Paper Address?

The COVID-19 pandemic has created an urgent need for rapid and accurate diagnostic tools. While RT-PCR is a confirmatory test, it can suffer from false negatives. Chest X-rays (CXRs) offer a faster, non-invasive alternative for detecting lung abnormalities associated with COVID-19. However, manual interpretation of CXRs can be time-consuming and subject to inter-observer variability. This paper addresses the challenge of developing an automated, highly accurate system for COVID-19 diagnosis using CXR images, aiming to assist clinicians in making timely decisions.

Methods

The core of this research is the design and implementation of a custom 19-layer Convolutional Neural Network (CNN). The architecture comprises four convolutional layers, followed by pooling layers, batch normalization, and fully connected layers. Key components include:

  • Convolutional Layers: These layers are responsible for extracting features from the X-ray images. The proposed model uses four convolutional layers with varying filter sizes and channel counts (e.g., 64 channels with 3x3x32 filters, 32 channels with 3x3x16 filters, etc.) to capture a hierarchical representation of image features.
  • Pooling Layers: Max-pooling layers (2x2 with a stride of 2) are used to reduce the spatial dimensions of the feature maps, thereby decreasing computational complexity and increasing robustness to small spatial variations.
  • Batch Normalization: Applied after convolutional layers to stabilize and accelerate training by normalizing the activations.
  • Activation Functions: ReLU (Rectified Linear Unit) is used in intermediate layers for introducing non-linearity, and Softmax is employed in the final layer for multi-class classification, outputting probabilities for each class.
  • Transfer Learning: The study also evaluates several pre-trained CNN models (AlexNet, GoogLeNet, ResNet50, Squeezenet, VGG19) for comparison, utilizing fine-tuning techniques.

Datasets

The study utilizes two publicly available datasets for training and evaluation:

  • Covid-19 Radiography Database: This dataset contains CXR images for COVID-19, Viral Pneumonia, and Normal cases. It includes 10,192 Normal, 1345 Viral Pneumonia, 6012 Non-COVID lung infection, and 3616 COVID-19 positive samples.
  • Covid-19 Posteroanterior Chest X-Ray Fused (CPCXR) Dataset: This dataset is a fusion of three accessible databases and includes images categorized as COVID-19 (1108), Other pneumonia (2515), Tuberculosis (358), and Normal (533).

The data was preprocessed, including resizing, normalization, and contrast enhancement, before being split into training (70%) and validation/testing (30%) sets. Data augmentation was also performed to increase the number of sample sets.

Key Insights and Ideas

  • Custom CNN Architecture Outperforms Pre-trained Models: The proposed 19-layer CNN achieved significantly higher accuracy and other performance metrics compared to several well-established pre-trained models on the given datasets. This suggests that a tailored architecture can be more effective for specific medical imaging tasks.
  • Importance of Preprocessing: The study highlights the crucial role of preprocessing steps like normalization and contrast enhancement in improving the quality of CXR images and, consequently, the performance of the diagnostic model.
  • Multi-Class Classification Capability: The model is designed to classify CXR images into multiple categories (e.g., Normal, COVID-19, Viral Pneumonia, Lung Opacity), providing a more nuanced diagnostic capability.
  • Efficiency for Rapid Diagnosis: The research demonstrates that the proposed model can achieve high accuracy with relatively fast testing times, making it suitable for clinical settings where quick decisions are necessary.

Key Results

The proposed 19-layer CNN model achieved impressive performance metrics:

  • CPCXR Dataset:
    • Accuracy: 98.40%
    • Specificity: 91.13%
    • Precision: 89.54%
    • Sensitivity: 91.30%
    • F1-score: 87.09%
  • Covid-19 Radiography Database:
    • Accuracy: 97.51%
    • Specificity: 89.60%
    • Precision: 87.59%
    • Sensitivity: 88.43%
    • F1-score: 86.91%

In comparison, the Inception model, which performed second best, achieved accuracies of 89.17% and 87.49% on the CPCXR and Covid-19 Radiography datasets, respectively. The ROC analysis also showed a higher AUC for the proposed model compared to Inception.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Orientation Position: The proposed CNN does not inherently encode the orientation position of the input images, necessitating preprocessing steps to ensure consistent image orientation.
  • Adjustable Parameters: The model has a significant number of adjustable parameters that require careful selection, which can be a complex task.

Future work could focus on addressing these limitations, potentially by incorporating orientation-aware mechanisms into the network architecture or exploring more automated parameter tuning strategies. Further validation on larger and more diverse datasets would also be beneficial.

Summary updated

Abstract

With the spread of COVID-19 around the globe over the past year, the usage of artificial intelligence (AI) algorithms and image processing methods to analyze the X-ray images of patients' chest with COVID-19 has become essential. The COVID-19 virus recognition in the lung area of a patient is one of the basic and essential needs of clicical centers and hospitals. Most research in this field has been devoted to papers on the basis of deep learning methods utilizing CNNs (Convolutional Neural Network), which mainly deal with the screening of sick and healthy people.In this study, a new structure of a 19-layer CNN has been recommended for accurately recognition of the COVID-19 from the X-ray pictures of chest. The offered CNN is developed to serve as a precise diagnosis system for a three class (viral pneumonia, Normal, COVID) and a four classclassification (Lung opacity, Normal, COVID-19, and pneumonia). A comparison is conducted among the outcomes of the offered procedure and some popular pretrained networks, including Inception, Alexnet, ResNet50, Squeezenet, and VGG19 and based on Specificity, Accuracy, Precision, Sensitivity, Confusion Matrix, and F1-score. The experimental results of the offered CNN method specify its dominance over the existing published procedures. This method can be a useful tool for clinicians in deciding properly about COVID-19.
BibTeX
@misc{song2023design,
  author = {Xinyuan Song},
  title = {{A design of Convolutional Neural Network model for the Diagnosis of the COVID-19}},
  year = {2023},
  eprint = {2311.06394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.06394},
}
Figure