Skip to content

afmsaif/CapsCovNet-A-Modified-Capsule-Network-to-Diagnose-Covid-19-from-Multimodal-Medical-Imaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CapsCovNet: A Modified Capsule Network to Diagnose COVID-19 From Multimodal Medical Imaging

Introduction

CapsCovNet is a modified capsule network designed to diagnose COVID-19 from multimodal medical images. This model integrates discriminative spatial features through parallelly concatenated convolutional blocks with different filter sizes and enhances scalability by varying the receptive field. The concatenation of capsule layers allows the model to learn complex representations, presenting information in a fine-to-coarser manner.

Features

  • Parallelly concatenated convolutional blocks to integrate spatial features.
  • Capsule layers to handle complex representations and high-dimensional data.
  • Evaluated on benchmark datasets: chest radiograph and ultrasound imaging.
  • Demonstrates superior performance in COVID-19 detection compared to state-of-the-art models.

Requirements

  • Python 3.6 or higher
  • TensorFlow 2.x
  • Keras
  • NumPy
  • OpenCV
  • Scikit-learn
  • Matplotlib

Installation

  1. Clone the repository:

    git clone https://github.com/afmsaif/CapsCovNet-AModified-CapsuleNetwork-to-Diagnose-Covid-19-from-Multimodal-Medical-Imaging.git
    cd CapsCovNet-AModified-CapsuleNetwork-to-Diagnose-Covid-19-from-Multimodal-Medical-Imaging
  2. Install the required packages:

    pip install -r requirements.txt

Dataset

The model is evaluated on three benchmark datasets:

  • Two chest radiograph datasets.
  • One ultrasound imaging dataset.

Usage

  1. Preprocess the data:

    python preprocess.py
  2. Train the model:

    python train.py
  3. Evaluate the model:

    python evaluate.py

Model Architecture

The CapsCovNet architecture consists of:

  1. Parallel Convolutional Encoder Block: Reduces the input data size and incorporates fine-grained and discriminative features using larger receptive fields.
  2. Primary Capsule Layer: Converts feature maps into vectors and applies a nonlinear Squash function to keep vector lengths within value 1.
  3. Higher Layer Capsule: Uses routing by agreement to calculate coupling coefficients between capsules.
  4. Loss Function: Margin loss for each digit capsule to ensure intraclass compactness and interclass separability.

Results

The proposed model achieved outstanding performance in COVID-19 detection, surpassing the previous state-of-the-art models. Detailed results and analysis can be found in the paper.

Contributors

  • A. F. M. Saif, Bangladesh University of Engineering and Technology
  • Tamjid Imtiaz, Bangladesh University of Engineering and Technology
  • Shahriar Rifat, Bangladesh University of Engineering and Technology
  • Celia Shahnaz, Bangladesh University of Engineering and Technology
  • Wei-Ping Zhu, Concordia University
  • M. Omair Ahmad, Concordia University

Citation

If you use this code in your research, please cite our paper:

@article{saif2021capscovnet,
  title={CapsCovNet: A modified capsule network to diagnose Covid-19 from multimodal medical imaging},
  author={Saif, AFM and Imtiaz, Tamjid and Rifat, Shahriar and Shahnaz, Celia and Zhu, Wei-Ping and Ahmad, M Omair},
  journal={IEEE Transactions on Artificial Intelligence},
  volume={2},
  number={6},
  pages={608--617},
  year={2021},
  publisher={IEEE}
}

License

This project is licensed under the terms of the MIT license.

Acknowledgments

This work was supported in part by the Natural Sciences and Engineering Research Council of Canada and the Regroupment Strategique en Microelectronique du Quebec.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages