Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Apr 1;13(1):5359.
doi: 10.1038/s41598-023-32462-2.

A COVID-19 medical image classification algorithm based on Transformer

Affiliations

A COVID-19 medical image classification algorithm based on Transformer

Keying Ren et al. Sci Rep. .

Abstract

Coronavirus 2019 (COVID-19) is a new acute respiratory disease that has spread rapidly throughout the world. This paper proposes a novel deep learning network based on ResNet-50 merged transformer named RMT-Net. On the backbone of ResNet-50, it uses Transformer to capture long-distance feature information, adopts convolutional neural networks and depth-wise convolution to obtain local features, reduce the computational cost and acceleration the detection process. The RMT-Net includes four stage blocks to realize the feature extraction of different receptive fields. In the first three stages, the global self-attention method is adopted to capture the important feature information and construct the relationship between tokens. In the fourth stage, the residual blocks are used to extract the details of feature. Finally, a global average pooling layer and a fully connected layer perform classification tasks. Training, verification and testing are carried out on self-built datasets. The RMT-Net model is compared with ResNet-50, VGGNet-16, i-CapsNet and MGMADS-3. The experimental results show that the RMT-Net model has a Test_ acc of 97.65% on the X-ray image dataset, 99.12% on the CT image dataset, which both higher than the other four models. The size of RMT-Net model is only 38.5 M, and the detection speed of X-ray image and CT image is 5.46 ms and 4.12 ms per image, respectively. It is proved that the model can detect and classify COVID-19 with higher accuracy and efficiency.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
RMT-Net model structure.
Figure 2
Figure 2
Architecture of the standard Transformer.
Figure 3
Figure 3
X-ray images (ad) and CT images (ef).
Figure 4
Figure 4
Train_loss and Train_acc curves of X-ray and CT images.
Figure 5
Figure 5
Performance of models on validation set.

Similar articles

Cited by

References

    1. Gayathri J, Abraham B, Sujarani M, Nair MS. A computer-aided diagnosis system for the classification of covid-19 and non-covid-19 pneumonia on chest x-ray images by integrating cnn with sparse autoencoder and feed forward neural network. Comput. Biol. Med. 2022;141:105134. doi: 10.1016/j.compbiomed.2021.105134. - DOI - PMC - PubMed
    1. Hussain E, et al. Corodet: A deep learning based classification for covid-19 detection using chest x-ray images. Chaos Solitons Fractals. 2021;142:110495. doi: 10.1016/j.chaos.2020.110495. - DOI - PMC - PubMed
    1. Xie X, et al. Chest ct for typical 2019-ncov pneumonia: Relationship to negative rt-pcr testing. Radiology. 2020;296:E41–E45. doi: 10.1148/radiol.2020200343. - DOI - PMC - PubMed
    1. Bernheim A, et al. Chest ct findings in coronavirus disease-19 (covid-19): Relationship to duration of infection. Radiology. 2020;295:685. doi: 10.1148/radiol.2020200463. - DOI - PMC - PubMed
    1. Hassan H, et al. Review and classification of ai-enabled covid-19 ct imaging models based on computer vision tasks. Comput. Biol. Med. 2022;141:105123. doi: 10.1016/j.compbiomed.2021.105123. - DOI - PMC - PubMed

Publication types