ИИ

The most efficient CNN architectures in 2021 for deep learning classification in medical imaging

  • Sarah Madeleine
  • 01.03.2021
  • Дата обновления 12.05.2022

After a presentation of the functioning of convolutional neural networks in a previous article, we discuss here the most recognized and efficient architectures for medical image classification.

After a presentation of the functioning of convolutional neural networks in a previous article, we discuss here the most recognized and efficient architectures for medical image classification.

ResNet architecture

ResNet models [1] have contributed enormously to the use of very deep neural networks; limiting the loss of gradient in the deepest layers of it by adding a residual connection between each convolutional layer.

Residual connection between each convolutional layer

Credits: Original paper

The benefits of these systems are their ability to reduce the vanishing gradient in the lower layers of the system, and the possibility of deep-scaling them. This allows the architecture to be adjusted to the classification task to be performed. Although expensive in computing resources, they perform very well in classification on all levels of image detail, even the finest details such as pulmonary nodules [2] or intracranial hemorrhages [3].

Due to their module architecture, they belong to the family of models called “Network in Network”. These networks are a set of micro-architecture or processing blocks. This set is used to obtain the macro-architecture (i.e. the final network itself).

Inception architecture and its derivatives

The Inception [4] architecture aims to reduce the resource consumption of Deep Convolutional Neural Networks (DCNN), which is common for Network in Network models.

To capture the variability of the dataset while avoiding large consumption of resources, the Inception architecture relies on the use of the following building blocks:

Inception architecture (blocks)

Credits: Original paper

By combining several filters of different sizes at the same network level, it’s possible to capture information of different scales. However, this technique implies an increase in resource consumption, as there are more parameters calculated at this stage than if there were only one filter.
To cut down the resource consumption involved in using multiple filters, a mathematical trick is used to reduce the size of the image analyzed by filters 3*3 and 5*5, by adding a 1*1 front filter step. In this way, the size 1*1 convolution performs a pooling operation on the values of a pixel in the space of the dimensions of the image. For example if the input image has 3-channels (RGB) then, after convolution 1*1, the output image will have 1 channel. Dimension reduction allows information to be retained, while reducing the cost of resources during the next convolution phase with a size 3*3 filter.
In medical imaging, the Inception architecture is often used to classify abnormalities, in particular to define the stage of the disease (e.g. lung cancer [5], kidney cancer [6], osteomeatal complex inflammation [7]).

Derivatives of this architecture, such as Xception or Inception-ResNet, have quickly emerged. Both have good results in the classification of medical images (e.g. classification of CT images of the lungs for the detection of covid-19 [8], or malignant pulmonary nodules [9]). 
Xception replaces the Inception modules with depthwise separable convolutions [10] and adds residual links. This type of approach makes it possible to significantly reduce the use of resources during the matrix calculation, without changing the number of parameters. 
Inception-ResNet integrates a residual link in the Inception modules (see diagram below), and significantly improves the model performance in classification compared to previous versions of the Inception architecture [11][12].

inception resnet block

Credits: Original paper

The DenseNet Architecture

The DenseNet [13] type models are in line with the DCNN. Each of the network layers has at its input, outputs from the previous layers. This feature increases the number of L network connections, for a traditional L CNN layers with a connection between each layer, to [L(L-1)]/2 

 

densenet architecture

Credits: original paper

Although the DenseNet architecture has a similar approach to the ResNet architecture, with the addition of short connections between layers, it differs significantly in how information from the previous layers is taken into account:

Let us take a network of L layers, each of which applies a non-linear transformation H l ( . ) with l as the index of the layer, the output of the l-layer is noted x l.

If the network has a ResNet  architecture, then

If the network has a DenseNet architecture, then

The concatenation of the information in the DenseNet architecture makes it possible to reduce by a factor 3 the number of parameters compared to the ResNet architecture (cf. graphic below), while maintaining the same level of performance in terms of precision.

Densenet parameters numbers

Credits: Original paper

DenseNet architecture is used just as well for the classification of pathologies (e.g. pancreatic cysts [14], or level I and II thymomas according to the Masaoka-Koga classification [15]), as for multi-organ segmentation [16] when assembled with other architectures specific to this task.

The Queeze-and-Excitation architecure

Squeeze-and-Excitation (SE) type models propose to explicitly model the interdependencies between the dimensions of the image, in order to improve the spatial coding of its characteristics [17].

The SE building blocks are composed of two successive parts: Squeeze, Excitation.

  1. Squeeze: From the output features map of the convolutional layer F tr , a Global Average Pool (GaP) transformation F sq of the features is created. Image-wise, the initial widths and lengths of the features map are overwritten to obtain widths and lengths equal to 1. A condensed size feature vector (1*1*number of channels of the feature map) is obtained.
  2. Excitation: From this vector, a “fully connected” layer type transformation F ex ( . , W) is calculated. For each channel a weight is associated, then activated by a non-linear function, in order to obtain the value of the probability of the channel’s contribution to the network task.

At the output of the SE block, we obtain the map of the output characteristics of the convolutional layer F tr weighted by the importance of the channels. This approach makes it possible to focus the network’s attention on the channels representative of the characteristics map.

The Squeeze-and-Excitation architecture (block)

Credits: original paper

This architecture is used in conjunction with a basic CNN architecture, such as ResNet. In medical imaging, it is often used to classify abnormalities, such as lung nodules [18] [19], where spatial information is highly discriminating.

The MobileNet architecture

The MobileNet architecture, like Xception, uses depthwise separable convolution. These convolutions are a form of factorised convolutions, where a standard convolution is factorized into a depth convolution and a 1*1 convolution called a point convolution. This factorisation drastically reduces the calculation time and the size of the model. To these convolutions, two simple global hyper-parameters have been added that make an effective compromise between latency and accuracy: the width multiplier for a finer model, and the resolution multiplier for a smaller representation [20].

This type of model was developed for use on a mobile device (smartphone, tablet) or in an embedded system. In medical imaging, it is useful for routine clinical use for the detection and classification of abnormalities, such as malignant lung nodules [9].

The EfficientNet architecture

The EfficientNet [21] model approach is to propose a uniform scaling of the 3 dimensions of the CNN used in the base (MobileNet, ResNet). For this the depth, width and resolution of the network are modified by a compound coefficient. This is the result of the optimization problem that maximizes the accuracy of the model with a limited resource consumption constraint. Formally, it is written:

where w, d, r are the network scaling factors in width, depth, and resolution.

are the preset parameters (see table below) of the basic model.

MobNet preset parameters

Credits: original paper

The main advantages of these architectures are the achievement of good performances in generalization for classification, even that of small anatomical structures or small abnormalities (e.g. pulmonary lesions due to covid-19, osteoporosis, breast cancer lesions) [8] [22] [23] [24] [25] while using few computing resources by limiting the number of network parameters.

In Summary

The choice of the type of architecture depends on the data and computing resources available, the task to be performed, and the type of use of the model. 
For example:
- If you are building a model for routine clinical use, the Xception, MobileNet and EfficientNet architectures may be preferable because of their trade-off between resource consumption and accuracy. 
- If you need to classify images where spatial information is highly discriminant, then the Squeeze-and-ExcitationNet and Inception architectures will be adapted. 
- If you have to classify several anatomical structures, a set of models with a robust and efficient architecture such as ResNet or DenseNet can be an interesting approach.

Once the architecture has been selected, it is necessary to consider which learning strategy to adopt. Then the performance of the algorithm should be measured to assess the quality of the model.

[1] He K., Zhang X., Ren S., et al. Deep residual learning for image recognition. In : Proceedings of the IEEE conference on computer vision and pattern recognition. 2016. p. 770-778.

[2] Wang Q., Shen F., Shen L., Huang J., Sheng W. Lung Nodule Detection in CT Images Using a Raw Patch-Based Convolutional Neural Network. J Digit Imaging. 2019 Dec;32(6):971-979. doi: 10.1007/s10278-019-00221-3. PMID: 31062113; PMCID: PMC6841817.

[3] Danilov G., Kotik K., Negreeva A., Tsukanova T., Shifrin M., Zakharova N., Batalov A., Pronin I., Potapov A. Classification of Intracranial Hemorrhage Subtypes Using Deep Learning on CT Scans. Stud Health Technol Inform. 2020 Jun 26;272:370-373. doi: 10.3233/SHTI200572. PMID: 32604679.

[4] Szegedy C., Liu W., Jia Y., et al. Going deeper with convolutions. In : Proceedings of the IEEE conference on computer vision and pattern recognition. 2015. p. 1-9.

[5] An Y., Hu T., Wang J., Lyu J., Banerjee S., Ling SH. Lung Nodule Classification using A Novel Two-stage Convolutional Neural Networks Structure'. Annu Int Conf IEEE Eng Med Biol Soc. 2019 Jul;2019:6259-6262. doi: 10.1109/EMBC.2019.8857744. PMID: 31947273.

[6] Zhou L., Zhang Z., Chen YC., Zhao ZY., Yin XD., Jiang HB. A Deep Learning-Based Radiomics Model for Differentiating Benign and Malignant Renal Tumors. Transl Oncol. 2019 Feb;12(2):292-300. doi: 10.1016/j.tranon.2018.10.012. Epub 2018 Dec 17. PMID: 30448734; PMCID: PMC6299150.

[7] Chowdhury NI., Smith TL., Chandra RK., Turner JH. Automated classification of osteomeatal complex inflammation on computed tomography using convolutional neural networks. Int Forum Allergy Rhinol. 2019 Jan;9(1):46-52. doi: 10.1002/alr.22196. Epub 2018 Aug 11. PMID: 30098123; PMCID: PMC6318014.

[8] Shalbaf A., Vafaeezadeh M., et al. Automated detection of COVID-19 using ensemble of transfer learning with deep convolutional neural network based on CT scans. International journal of computer assisted radiology and surgery, 2020, p. 1-9. https://doi.org/10.1007/s11548-020-02286-w

[9] El-Bana S., Al-Kabbany A., Sharkas M. A Two-Stage Framework for Automated Malignant Pulmonary Nodule Detection in CT Scans. Diagnostics, 2020, vol. 10, no 3, p. 131. https://doi.org/10.3390/diagnostics10030131

[10] Chollet F. Xception: Deep learning with depthwise separable convolutions. In : Proceedings of the IEEE conference on computer vision and pattern recognition. 2017. p. 1251-1258.

[11] Szegedy C., Ioffe S., Vanhoucke V., et al. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261, 2016.

[12] https://towardsdatascience.com/a-simple-guide-to-the-versions-of-the-inception-network-7fc52b863202 

[13] Huang G., Liu Z., Van Der Maaten L., et al. Densely connected convolutional networks. In : Proceedings of the IEEE conference on computer vision and pattern recognition. 2017. p. 4700-4708.

[14] Li H., Reichert M., Lin K., et al. Differential diagnosis for pancreatic cysts in ct scans using densely-connected convolutional networks. In : 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC). IEEE, 2019. p. 2095-2098. https://doi.org/10.1109/EMBC.2019.8856745 

[15] Yang L., Cai W., Yang X., et al. Development of a deep learning model for classifying thymoma as Masaoka-Koga stage I or II via preoperative CT images. Annals of Translational Medicine, 2020, vol. 8, no 6. https://doi.org/10.21037/atm.2020.02.183  

[16] Tong N., Gou S., Yang S., et al. Shape constrained fully convolutional DenseNet with adversarial training for multi organ segmentation on head and neck CT and low‐field MR images. Medical physics, 2019, vol. 46, no 6, p. 2669-2682. https://doi.org/10.1002/mp.13553 

[17] Hu J., Shen L., Sun G. Squeeze-and-excitation networks. In : Proceedings of the IEEE conference on computer vision and pattern recognition. 2018. p. 7132-7141.

[18] Gong L., Jiang S., Yang Z., Zhang G., Wang L. Automated pulmonary nodule detection in CT images using 3D deep squeeze-and-excitation networks. Int J Comput Assist Radiol Surg. 2019 Nov;14(11):1969-1979. doi: 10.1007/s11548-019-01979-1. Epub 2019 Apr 26. PMID: 31028657.

[19] Zhang G., Yang Z., Gong L., Jiang S., Wang L., Zhang H. Classification of lung nodules based on CT images using squeeze-and-excitation network and aggregated residual transformations. Radiol Med. 2020 Apr;125(4):374-383. https://doi.org/10.1007/s11547-019-01130-9 . Epub 2020 Jan 8. PMID: 31916105.

[20] Howard AG., Zhu M., Chen B., et al. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017.

[21] Tan M., Le QV. Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946, 2019.

[22] Bai HX., Wang R., Xiong Z., et al. AI augmentation of radiologist performance in distinguishing COVID-19 from pneumonia of other etiology on chest CT. Radiology, 2020, p. 201491. https://doi.org/10.1148/radiol.2020201491

[23] Yamamoto N., Sukegawa S., Kitamura A., et al. Deep Learning for Osteoporosis Classification Using Hip Radiographs and Patient Clinical Covariates. Biomolecules, 2020, vol. 10, no 11, p. 1534. https://doi.org/10.3390/biom10111534

[24] Suh YJ., Jung J., Cho BJ. Automated Breast Cancer Detection in Digital Mammograms of Various Densities via Deep Learning. Journal of personalized medicine, 2020, vol. 10, no 4, p. 211. https://doi.org/10.3390/jpm10040211 

[25] Silva P., Luz E., Silva G., et al. COVID-19 detection in CT images with deep learning: A voting-based scheme and cross-datasets analysis. Informatics in Medicine Unlocked, 2020, vol. 20, p. 100427. https://doi.org/10.1016/j.imu.2020.100427

Другие статьи, которые могут вас заинтересовать

Free imaging software for anonymization

Data preprocessing is an important and mandatory step for any good data scientist to take when embarking on a data analysis project. It consists of several steps that vary depending on the type of project you are going to conduct and the type of data you have.

Sarah Madeleine