MultiNet with Transformers: A Model for Cancer Diagnosis Using ImagesJournal: arXiv
Abstract
Cancer is a leading cause of death in many countries. An early diagnosis of cancer based on biomedical imaging ensures effective treatment and a better prognosis. However, biomedical imaging presents challenges to both clinical institutions and researchers. Physiological anomalies are often characterized by slight abnormalities in individual cells or tissues, making them difficult to detect visually. Traditionally, anomalies are diagnosed by radiologists and pathologists with extensive training. This procedure, however, demands the participation of professionals and incurs a substantial cost. The cost makes large-scale biological image classification impractical. In this study, we provide unique deep neural network designs for multiclass classification of medical images, in particular cancer images. We incorporated transformers into a multiclass framework to take advantage of data-gathering capability and perform more accurate classifications. We evaluated models on publicly accessible datasets using various measures to ensure the reliability of the models. Extensive assessment metrics suggest this method can be used for a multitude of classification tasks.
Keywords:
Medical Image Classification , Deep Learning , Transformer , Convolutional Neural Network , Computer-aided Diagnosis1 Introduction
Breast cancer affects one out of every eight women in their lifetime[Tao et al., 2015]. Preventing breast cancer requires early detection and diagnosis[Shaikh et al., 2021]. There is currently no magic bullet for the automated detection of breast cancer. For diagnostic and therapeutic purposes, artificial intelligence (AI) has been widely used in biomedical imaging[Shin et al., 2016]. To complete a diagnosis, well-trained specialists usually identify subtleties in cell abnormalities [Panayides et al., 2020]. The capability to identify cell abnormalities requires long-term training. Biomedical imaging has not been widely adopted in some medical facilities, particularly those with limited healthcare resources, due to the high cost of training.[Panayides et al., 2020]. As a cost-cutting measure, AI-based diagnosis has been proposed to reduce costs and increase accuracy. AI approaches have proven to be effective diagnostic tools for biomedical images [Yu et al., 2018] . Many studies have achieved expert-level disease detection accuracy [Rajpurkar et al., 2018, Tschandl et al., 2019, Haggenmüller et al., 2021], including breast cancer[Alakhras et al., 2015, Rodriguez-Ruiz et al., 2019], skin cancer[Brinker et al., 2019, Esteva et al., 2017], pneumonia[Rajpurkar et al., 2017, Basu et al., 2020], and hip fracture[Gale et al., 2017], as well as other medical fields.
Deep learning is an artificial intelligence implementation that can convert large amounts of images into deep domain knowledge for image-based diagnosis [Yu et al., 2018]. Deep learning incorporates image data into multiple neural network layers to mimic how medical imaging experts learn from experience. To classify disease based on images, these layers convert patterns to digital signals. A specialized diagnostic model labels biomedical images with disease types. Because of the ability to classify biomedical images, deep learning-based classifiers have been widely used in diagnosing diseases from biomedical images[Panayides et al., 2020, McBee et al., 2018].
Despite deep learning’s effectiveness in simulating human learning processes, a number of issues remain unresolved. First, existing deep learning models are heavily biased toward a specific type of disease, which does not reflect real-world applications. Numerous studies have demonstrated that deep learning can classify numerous types of diseases using binary classification. There is a disconnection between models’ binary categorization and an expert’s real-world activity of identifying all possible concerns for many diseases based on a single image. This issue may be resolved by the use of multiple classifications for images [Miotto et al., 2018, Serag et al., 2019].
A deep learning model can perform multiple classifications by acquiring knowledge from images depicting various diseases. However, due to the difficulty of detecting regions of interest in biomedical images, learning to classify multiple diseases needs a deliberate model design. Convolutional neural networks (CNNs) and their modifications have been developed, including VGG-16, VGG-19, Resnet, and Inception. While these models worked admirably for multiple categorizations of general objects, they are unable to meet the demand for multiple classifications of diagnoses inherent in nature. Due to the tiny variance, high dimensionality, and various modalities present in medical imaging, the accuracy of the model of multiple diagnosis disease classification decreases rapidly [Simonyan and Zisserman, 2014, He et al., 2016, Szegedy et al., 2016]. Current neural network structures are unable to detect small regions of interest from biomedical images. As a result, developing a new neural network structure while keeping unimportant features may be the key to multiple classification of biomedical images.
Previous studies [Che et al., 2021, Wu et al., 2021] have shown that a transformer network can successfully address the following biomedical image classification challenges: First, existing AI approaches are not suitable for classifying a variety of disorders. Second, it is indeed not possible to use the current models’ architecture to repeatedly classify images of different diseases during training. Our suggested approach not only obtains minor image features that other deep learning models often neglect but also processes images of varying quality, structure, and region of interest.
The purpose of this study is to develop a method for identifying and describing the various anomalies associated with breast cancer. Furthermore, our model improved the ability to detect various types of carcinoma, resulting in a more clinically applicable scenario. Our mode can bridge the gap between Transformer’s development and its limited application in medical imaging, specifically in classifying breast cancer sub-types. We used the BreakHis dataset in this study to solve a multiclass classification assignment for eight different types of cancer.
The following contributions are listed:
- 1.
Initially, we integrated the descriptive capabilities of global and local information of ViT’s and CNN’s into a single model called MultiNet-ViT. This capability ensures a more distinct feature representation for distinguishing biological image types.
- 2.
Second, the model incorporates the concept of multiscale image analysis to characterize the details of histopathology images under a microscope, thereby increasing the model’s generalizability to different magnification factors.
- 3.
A comprehensive implementation of numerous models is presented. In addition, the model’s superior performance and generalizability are compared against additional models.
2 Transformer-Based Models
2.1 Background
Transformer[Vaswani et al., 2017], an alternative to convolutional neural networks, has dominated the field of natural language processing (NLP), including speech recognition [Dong et al., 2018], synthesis [Li et al., 2019b], text to speech translation [Vila et al., 2018], and natural language generation [Topal et al., 2021]. As a example of deep learning architectures, Transformer was first introduced to handle sequential inference tasks in NLP. While recurrent neural networks (RNNs) [Graves et al., 2013] (e.g., long short-term memory network (LSTM) [Sak et al., 2014]) explicitly use a sequence of inference processes, Transformers capture long-term dependencies of sequential data with stacked self-attention layers. In this manner, Transformer is efficient because they solve the sequential learning problem in one shot and effective by stacking very deep models. Several Transformer architectures trained on large-scale architectures have become widely popular in solving NLP tasks such as BERT [Devlin et al., 2018] and GPT [Radford et al., 2018, Brown et al., 2020] etc.
Inspired by the success of Transformers in NLP, [Dosovitskiy et al., 2020] proposed the Vision Transformer (ViT) by formulating image classification as a sequence prediction task of the image patch (region) sequence, thereby capturing long-term dependencies within the input image. ViT and its derived instances have achieved state-of-the-art performance on several benchmark datasets. Transformers have become very popular across a wide spectrum of computer vision tasks, including image classification [Dosovitskiy et al., 2020], detection [Carion et al., 2020], segmentation [Zheng et al., 2021], generation [Parmar et al., 2018], and captioning [Li et al., 2019a]. Furthermore, Transformers also play an important role in video-based applications [Zhou et al., 2018]. Since 2017, Transformers have been used for a variety of computer vision tasks, including general image recognition [Touvron et al., 2021, Matsoukas et al., 2021], object detection [Carion et al., 2020, Zhu et al., 2020], segmentation [Ye et al., 2019], image classification [Che et al., 2021], image super-resolution [Yang et al., 2020], video interpretation [Sun et al., 2019, Girdhar et al., 2019], image generation [Chen et al., 2021b], test-to-image integration [Ramesh et al., 2021], and visual question answering [Tan and Bansal, 2019, Su et al., 2019].
Transformers have recently been adopted in the field of medical image analysis for disease diagnosis [Gao et al., 2021, Zhang and Wen, 2021] and other clinical purposes. For instance, the works in [Costa et al., 2021, Tulder et al., 2021] utilized Transformers to distinguish COVID-19 from other types of pneumonia using computed tomography (CT) or X-ray images, meeting the urgent need of detecting COVID-19 patients fast and effectively. Besides, Transformers were successfully applied to image segmentation [Zhang et al., 2021], detection [Xie et al., 2021], and synthesis [Watanabe et al., 2021], remarkably achieving state-of-the-art results. Despite the fact that studies have been devoted to customizing Transformers for medical image analysis tasks, such customization has raised new challenges that have yet to be resolved. Many studies have developed efficient Transformers [Jaszczur et al., 2021, Li et al., 2022, Liu et al., 2021] while maintaining high performances.
Although Transformers performed well in a variety of natural language tasks, their application in biomedical imaging is limited. For example, some preliminary work is shown in the Deformable DETR [Zhu et al., 2020] model, which is used for object detection. Although many studies are not designed for biomedical images, we believe the attention mechanism also applies to the biomedical imaging field. Max-Deeplab [Wang et al., 2021] is the first end-to-end model for panoptic segmentation that demonstrates how Transformers can be used to predict the mask with a category label. A recent co-attention Transformer-based study [Chen et al., 2021c] demonstrates that several whole slide images can be integrated for patient survival prediction to achieve superior results.Inspired by approaches in Visual Question Answering that can attribute how word embeddings attend to salient objects in an image, the attention mechanism can focus on histology patches that are important predictors of patient survival rate. Other biomedical image classification attempts [Chen et al., 2021a, Che et al., 2021, Zou et al., 2021], segmentation [Prangemeier et al., 2020, Yun et al., 2021], and other clinical outcome predictions [Chen et al., 2021c, Zhang et al., 2020, Shickel et al., 2021] have been used. A Transformer network is thought to perform significantly better in multi-model tasks and compensates for the shortcomings of CNN features. The new self-attention mechanism retains long-term features from biomedical image datasets.
2.2 Vision Transformer(ViT)
Recently, Vision Transformers (ViT) have achieved highly competitive performance in benchmarks for several computer vision applications, including image classification, object detection, and semantic image segmentation. Vision Transformer is a model that applies the Transformer to the image classification task and was proposed in 2020 [Dosovitskiy et al., 2020]. The model architecture is nearly identical to the original Transformer, but with a twist to allow images to be treated as input in a similar format of natural language processing.
ViT divides the image into N “patches” of such as 1616. Since the images are coming in the form of (HeightWidth number of Channels), , they cannot be handled directly by a transformer that deals with (1D) sequences, so it flattens them and makes a linear projection to convert them into 2D patches in the form of , Where is computed using the Equation 1, and is the size of each image patch. So each patch can be treated as a token, which can be input to the Transformer.
| (1) |
In addition, ViT uses the strategy of pre-training first and then fine-tuning. ViT is pre-trained with JFT-300M, a dataset containing 300 million images, and then fine-tuned for downstream tasks such as ImageNet. ViT is the first pure transformer model to achieve SotA performance on ImageNet, and this has led to a massive surge in research on transformers as applied to computer vision tasks.
Training ViT requires a large amount of data. Transformers are less accurate with less data, but show a quicker accuracy increase with more data, and outperform CNNs when pre-trained on the JFT-300M.
ViT may not benefit from this characteristic because medical datasets are often small. Regarding this problem, a recent investigation by Christos Matsoukas [Matsoukas et al., 2021] has compared the advantages of ViT and CNN. They concluded that (1) ViTs pre-trained on ImageNet perform comparably to CNNs when data is limited. (2) Transfer learning favors ViTs when applying standard training protocols and settings. (3) ViTs outperform their CNN counterparts when self-supervised pre-training is followed by supervised fine-tuning. Therefore, these findings suggest that medical image analysis can benefit from the use of ViTs. At the same time, using ViT gained improved explainability because of the attention mechanism, which can highlight the image patches that are important for the classification task. These properties on CNNs are not available. Therefore, we believe ViT is a superior model for biomedical image analysis.
2.3 Data-efficient image transformers (DeiT)
One drawback of the ViT transformer is that it does not generalize well when trained on insufficient amounts of data. To overcome the problem that the ViT model must train on large amounts of data. In a paper named “Training data-efficient image transformers istillation through attention”, Hugo Touvron, Matthieu Cord, et al. proposed a convolution-free transformer network, DeiT, that achieves top-1 accuracy of 83.1% on ImageNet with no external data. The training was completed on a single 8-GPU node in less than 3 days. DeiT introduces a new teacher-student strategy specific to transformers that relies on a distillation token, similar to the class token already employed in transformer networks.
Compared to the ViT model which requires hundreds of millions of images, DeiT, however, can be trained easily with approximately 1.2 million images. To attain that goal, they implemented the following strategies:
- 1.
The first key ingredient of DeiT is its training strategy. Initially, researchers used data augmentation, optimization, and regularization to simulate training on a much larger data set, as done in CNN.
- 2.
Further, they modified the Transformer architecture to allow native distillation. (Distillation is a process by which one neural network (the student NN) learns from the output of another network (the teacher NN)).
- 3.
They used a CNN as a teacher model for the Transformer. Using distillation may hamper the performance of neural networks. So, the student model learns from two different sources that may diverge: from a labeled data set (strong supervision) and the teacher.
To alleviate the problem, a distillation token is introduced: a learned vector that flows through the network along with the transformed image data and cues the model for its distillation output, which can differ from the token’s class output. This improved distillation method is specific to transformers.
Because of these distillation methods, DeiT performs significantly better than the ViT model on a relatively small biomedical data set. This increases the possibility of using a relatively small dataset.
3 Methodology
3.1 BreakHis dataset
Table 1 shows the distribution of the BreakHis dataset on multiclass classification. Depending on the microscopic appearance of the tumor cells, both benign and malignant breast cancers can be subdivided into a number of sub-types, each with an unique prognosis and treatment outcome.. The dataset presently comprises four histologically distinct types of benign breast tumors: Adenosis (A), Fibroadenoma (F), Phyllodes Tumor (PT), and Tubular Adenoma (TA); and four histologically unique types of malignant tumors (breast cancer): Ductal carcinoma (DC), Lobular Carcinoma (LC), Mucinous Carcinoma (MC), and Papillary Carcinoma (PC).
| Class | Sub-Class | Magnifications Factor | Total | |||
|---|---|---|---|---|---|---|
| 40X | 100X | 200X | 400X | |||
| Benign | F | 253 | 260 | 264 | 237 | 1014 |
| A | 114 | 113 | 111 | 106 | 444 | |
| TA | 149 | 150 | 140 | 130 | 569 | |
| PT | 109 | 121 | 108 | 115 | 453 | |
| Malignant | DC | 864 | 903 | 896 | 788 | 3451 |
| LC | 156 | 170 | 163 | 137 | 626 | |
| MC | 205 | 222 | 196 | 169 | 792 | |
| PC | 145 | 142 | 135 | 138 | 560 | |
| Total | 1995 | 2081 | 2013 | 1820 | 7909 | |
3.2 Model Architecture
The MultiNet model, as shown in Figure 1, entails combining many networks in order to achieve a wide range of aims. Specifically, (1) two transfer learning models, VGG19 and ResNet, are used as the framework’s backbone. (2) Since the networks operate in parallel and features are extracted by different networks at different times rather than entering immediately into the fully linked, the inadequacies of one network are offset by another. Then these networks are merged together like the approach used in C-Net [Barzekar and Yu, 2022]. The architecture of the middle, network, and inner network is similar to the C-Net model.
Immediately, Convolutional (Conv) Layers generated by the inner network are fed into a couple of more Conv layers with the following structure; A filter size of 11 and stride of 1, the same padding, and 1024 filters followed by an extra 1024 filter with the size of 33 and stride of 1, the same padding and a 22 max-pooling. These 1024 Conv layers are then convolved through three more Conv layers with 768 as the number of filters for each, however, the filter size for the first Conv layer is 11 and the rest are 33.
After the preceding Conv layers, the output is fed into a small multi-layer perceptron (MLP) consisting of two linear layers, each followed by a Dropout layer, and a final linear layer with 1024 units and eight outputs (number of classes). All of the linear layers use ReLU activation functions, except for the last one, which uses a Softmax function as shown in Equation 2.
| (2) |
where represents the input vector and C the total number of classes
The MLP head of the MultiNet model is then concatenated, , with the MLP head of the ViT model to classify eight different classes on BreakHis dataset.
For the proposed model, we use a cross-entropy function as the loss function, as shown Equation 3 below:
| (3) |
where denotes the label out of N classes, and represents the output from the model.
4 Result and Discussion
The multiclass classification involving eight classes is conducted. We provide a confusion matrix and following metrics including: precision and recall, f1 score, and classification accuracy to assess the performance of the model. Recall is the percentage of images that were successfully classified from the ground truth, whereas precision represents the percentage of images that were accurately classified into that specific predicted class. The F1 score takes into account both precision and recall. The accuracy is the proportion of successfully predicted images (classified images) relative to the total number of predictions.
The model employs a categorical cross-entropy, Equation 3 loss function. For loss function minimization, the Adam optimizer is used to fine-tune the weight parameters in order to achieve the best results. is selected as the learning rate, and , is set to 0.9,0.999 respectively. The batches for training, validating, and testing are all set to have a size of 8.
4.1 ViT-based models
Leveraging evaluation metrics like accuracy and F1-Score, we present the success of the architecture of ViT-based models in the succeeding results and discussions.
Let us start with ViT model first. The accuracy on each class is shown in 2(d) employing the ViT model alone on the entire dataset combining all the magnification factor including 40X, 100X, 200X, and 400X. As it shows the model achieve 100% accuracy on adenosis and papillary carcinoma classes.
Table 2shows the precision, recall, and F1-Score for the ViT model on the BreakHis dataset. ViT achieves 100% of performance for all the metrics on adenosis class. In addition, the model achieve attain 100% of recall on papillary carcinoma class.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 1 | 1 | 1 |
| DC | 0.94 | 0.96 | 0.95 |
| F | 0.97 | 0.96 | 0.96 |
| LC | 0.77 | 0.68 | 0.73 |
| MC | 0.96 | 0.94 | 0.95 |
| PC | 0.92 | 1 | 0.96 |
| PT | 0.93 | 0.97 | 0.95 |
| TA | 0.98 | 0.95 | 0.96 |
2(a)and Table 3 display the performance of the ViT model integrated with MultiNet model. The model gain 100% of precision on adenosis class.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 1 | 0.99 | 0.99 |
| DC | 0.94 | 0.95 | 0.95 |
| F | 0.97 | 0.95 | 0.96 |
| LC | 0.78 | 0.72 | 0.75 |
| MC | 0.98 | 0.98 | 0.98 |
| PC | 0.95 | 0.96 | 0.96 |
| PT | 0.96 | 0.97 | 0.96 |
| TA | 0.95 | 0.97 | 0.96 |
Precision, recall, and F1-score for the combined ViT with ResNet model on the BreakHis dataset are shown in Table 4.
Shown in 2(b) we can observe some extra miss-classification in the ViT with ResNet model compare to ViT with MultiNet model, 2(a).
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.97 | 0.99 | 0.98 |
| DC | 0.94 | 0.96 | 0.95 |
| F | 0.94 | 0.93 | 0.93 |
| LC | 0.78 | 0.69 | 0.73 |
| MC | 0.97 | 0.97 | 0.97 |
| PC | 0.96 | 0.95 | 0.96 |
| PT | 0.93 | 0.96 | 0.94 |
| TA | 0.95 | 0.94 | 0.95 |
The ViT and EfficientNet combined model’s confusion matrix is presented in 2(c). Maximum accuracy of 98% is attained in the papillary carcinoma class.
In Table 5, we can see the precision, recall, and F1-score of the combined ViT and EfficientNet model on the BreakHis dataset. The highest value for precision is 99% and attained on two classes, adenosis and mucinous carcinoma. Furthermore, the model acquires the same performance of recall on papillary carcinoma class. 98% is the maximum value that the model reaches on F1-Score.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.99 | 0.97 | 0.98 |
| DC | 0.93 | 0.96 | 0.95 |
| F | 0.98 | 0.95 | 0.96 |
| LC | 0.79 | 0.69 | 0.74 |
| MC | 0.99 | 0.96 | 0.97 |
| PC | 0.98 | 0.99 | 0.98 |
| PT | 0.92 | 0.97 | 0.94 |
| TA | 0.94 | 0.97 | 0.95 |
4.2 DeiT-based models
Now, we will examine the performance of the DeiT-based model merged with other models, counting MultiNet, ResNet, and EfficientNet, utilizing assessment criteria such as confusion matrix, precision, recall, and F1-Score.
3(a)illustrates that the papillary carcinoma class has the highest accuracy at 98.8 percent. Except for lobular carcinoma class, all other groups have an accuracy rate of 94% or above.
Table 6displays the precision, recall, and F1-score achieved by the DeiT model on the BreakHis dataset. Adenosis class yields the highest value, at 99%, for all the metrics. In addition, similar recall performance is achieved for the papillary carcinoma class.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.99 | 0.99 | 0.99 |
| DC | 0.94 | 0.95 | 0.95 |
| F | 0.95 | 0.97 | 0.96 |
| LC | 0.76 | 0.72 | 0.74 |
| MC | 0.97 | 0.95 | 0.96 |
| PC | 0.95 | 0.99 | 0.97 |
| PT | 0.97 | 0.94 | 0.96 |
| TA | 0.96 | 0.94 | 0.95 |
The confusion matrix for the combined model of DeiT with ResNet is depicted in 3(b). In the papillary carcinoma class, the highest possible degree of accuracy is achieved.
Table 7shows the performance of the DeiT model combined with the ResNet model using Precision, Recall, and F1-Score metrics. The top performance of these metrics all attain by the papillary carcinoma class with following values of 99%, 100%, and 99% for precision, recall and F1-Score respectively.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.98 | 0.96 | 0.97 |
| DC | 0.93 | 0.95 | 0.94 |
| F | 0.95 | 0.93 | 0.94 |
| LC | 0.73 | 0.69 | 0.71 |
| MC | 0.98 | 0.97 | 0.97 |
| PC | 0.99 | 1 | 0.99 |
| PT | 0.93 | 0.94 | 0.94 |
| TA | 0.94 | 0.94 | 0.94 |
In 3(c), we see the confusion matrix for the DeiT merged with the EfficientNet model, with accuracy at the highest attainable level in the papillary carcinoma class.
Table 8illustrates the overall performance of the DeiT with EfficientNet models with respect to the precision, recall, and F1-Score criteria. The adenosis class achieved the highest results across the board (99%) for each of these indicators of success. Papillary carcinoma class, on the other hand, is slightly easier for the model to identify (recall rate of 100%) than adenosis class(recall rate of 99%) and rest of the categories.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.99 | 0.99 | 0.99 |
| DC | 0.94 | 0.95 | 0.95 |
| F | 0.97 | 0.97 | 0.97 |
| LC | 0.74 | 0.71 | 0.72 |
| MC | 0.97 | 0.93 | 0.95 |
| PC | 0.98 | 1 | 0.99 |
| PT | 0.96 | 0.97 | 0.96 |
| TA | 0.95 | 0.94 | 0.95 |
3(d)presents the confusion matrix for the DeiT MultiNet model. The maximum accuracy is observed in the class papillary carcinomas. In 6 out of 8 categories, the model has a success rate of 95% or above.
The DeiT with MultiNet model’s overall performance according to precision, recall, and F1-Score is shown in Table 9. Both the mucinous carcinoma class and the papillary carcinoma class have perfect precision and recall at 100%. In addition, it has a recall of 99% for the adenosis class. The F1-Score of the model is 98% across three different classes (adenosis, mucinous carcinoma, and the papillary carcinoma).
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.97 | 0.99 | 0.98 |
| DC | 0.93 | 0.96 | 0.95 |
| F | 0.95 | 0.96 | 0.96 |
| LC | 0.78 | 0.67 | 0.72 |
| MC | 1 | 0.96 | 0.98 |
| PC | 0.97 | 1 | 0.98 |
| PT | 0.93 | 0.96 | 0.94 |
| TA | 0.98 | 0.94 | 0.96 |
3(e)depicts the confusion matrix for the DeiT paired with the ViT model, with the adenosis class achieving the best accuracy (97%) of all classes.
We also experimented with an ensemble model for Transformers, which combines the DeiT and ViT models into a unified framework for image classification. Table 10 displays the overall model results with regard to precision, recall, and F1-Score. The adenosis class achieves the highest possible score of 97% across all metrics.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| A | 0.97 | 0.97 | 0.97 |
| DC | 0.92 | 0.95 | 0.94 |
| F | 0.95 | 0.93 | 0.94 |
| LC | 0.73 | 0.72 | 0.72 |
| MC | 0.96 | 0.90 | 0.93 |
| PC | 0.94 | 0.96 | 0.95 |
| PT | 0.91 | 0.91 | 0.91 |
| TA | 0.95 | 0.88 | 0.92 |
Figure 4displays the mean precision, recall, and F1-Score of all models utilized to conduct the experiments. As observed, MultiNet-ViT gets the best performance among all metrics at 94%. The proposed model outperforms all other transformer-based combinations. MultiNet-ViT offers a significant degree of generalizability for multiclass classification. Using multiple networks powered by transformers can result in a more reliable and efficient solution.
5 Conclusion
Breast cancer is the most common type of cancer in females. Early detection and identification can stop the further development of breast cancer. The ideal application in automated breast cancer detection is still a work in progress. In this research, we propose a couple of novel Neural Network models to diagnose different cancer types. The architectures was tested on BreakHis dataset. To assure reliability, the proposed model has been evaluated using several metrics.
MultiNet-ViT is suggested to identify breast cancer on histological images. Taking into consideration both the global and local associations of images in a broad context, this approach combines the strengths of the traditional CNN model for extracting local information and the latest transformer model for collecting long-range correlation. The model was evaluated on the BreakHis dataset of breast cancer histopathology, where it showed an average of 94% precision, recall, and F1-Score. Results from our trials definitively show the transformer’s potential in the multiclass classification tasks of breast cancer sub-types. So as to guarantee the model’s generalization abilities, we have also expanded our detection goal to encompass all magnification factors. Finally, in order to gauge the efficacy of our model, we compared it to that of competing models. The proposed models improved the detection capability for different types of carcinomas, resulting in a more applicable scenario for clinical application. Our model is able to bridge the gap between transformer’s development and its limited use in medical imaging, particularly in breast cancer multiclass classification.
Transformers without transfer learning demand an excessive amount of data, training, and processing resources. Accordingly, it is recommended to utilize transfer learning, particularly in medical image processing. Future studies may find a similar strategy works well for other computer vision tasks, such as detection, segmentation, localization, etc. In addition, the architecture has not been applied to three-dimensional volumes, therefore any such future efforts would be quite informative.
References
- Alakhras et al., [2015] Alakhras, M. M., Brennan, P. C., Rickard, M., Bourne, R., and Mello-Thoms, C. (2015). Effect of radiologists’ experience on breast cancer detection and localization using digital breast tomosynthesis. European radiology, 25(2):402–409.
- Barzekar and Yu, [2022] Barzekar, H. and Yu, Z. (2022). C-net: A reliable convolutional neural network for biomedical image classification. Expert Systems with Applications, 187:116003.
- Basu et al., [2020] Basu, S., Mitra, S., and Saha, N. (2020). Deep learning for screening covid-19 using chest x-ray images. In 2020 IEEE Symposium Series on Computational Intelligence (SSCI), pages 2521–2527. IEEE.
- Brinker et al., [2019] Brinker, T. J., Hekler, A., Enk, A. H., Klode, J., Hauschild, A., Berking, C., Schilling, B., Haferkamp, S., Schadendorf, D., Holland-Letz, T., et al. (2019). Deep learning outperformed 136 of 157 dermatologists in a head-to-head dermoscopic melanoma image classification task. European Journal of Cancer, 113:47–54.
- Brown et al., [2020] Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020). Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901.
- Carion et al., [2020] Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., and Zagoruyko, S. (2020). End-to-end object detection with transformers. In European conference on computer vision, pages 213–229. Springer.
- Che et al., [2021] Che, C., Zhang, P., Zhu, M., Qu, Y., and Jin, B. (2021). Constrained transformer network for ecg signal processing and arrhythmia classification. BMC Medical Informatics and Decision Making, 21(1):1–13.
- [8] Chen, H., Li, C., Li, X., Wang, G., Hu, W., Li, Y., Liu, W., Sun, C., Yao, Y., Teng, Y., et al. (2021a). Gashis-transformer: A multi-scale visual transformer approach for gastric histopathology image classification. arXiv preprint arXiv:2104.14528.
- [9] Chen, H., Wang, Y., Guo, T., Xu, C., Deng, Y., Liu, Z., Ma, S., Xu, C., Xu, C., and Gao, W. (2021b). Pre-trained image processing transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12299–12310.
- [10] Chen, R. J., Lu, M. Y., Weng, W.-H., Chen, T. Y., Williamson, D. F., Manz, T., Shady, M., and Mahmood, F. (2021c). Multimodal co-attention transformer for survival prediction in gigapixel whole slide images. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015–4025.
- Costa et al., [2021] Costa, G. S. S., Paiva, A. C., Junior, G. B., and Ferreira, M. M. (2021). Covid-19 automatic diagnosis with ct images using the novel transformer architecture. In Anais do XXI Simpósio Brasileiro de Computação Aplicada à Saúde, pages 293–301. SBC.
- Devlin et al., [2018] Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.
- Dong et al., [2018] Dong, L., Xu, S., and Xu, B. (2018). Speech-transformer: a no-recurrence sequence-to-sequence model for speech recognition. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5884–5888. IEEE.
- Dosovitskiy et al., [2020] Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929.
- Esteva et al., [2017] Esteva, A., Kuprel, B., Novoa, R. A., Ko, J., Swetter, S. M., Blau, H. M., and Thrun, S. (2017). Dermatologist-level classification of skin cancer with deep neural networks. nature, 542(7639):115–118.
- Gale et al., [2017] Gale, W., Oakden-Rayner, L., Carneiro, G., Bradley, A. P., and Palmer, L. J. (2017). Detecting hip fractures with radiologist-level performance using deep neural networks. arXiv preprint arXiv:1711.06504.
- Gao et al., [2021] Gao, X., Qian, Y., and Gao, A. (2021). Covid-vit: Classification of covid-19 from ct chest images based on vision transformer models. arXiv preprint arXiv:2107.01682.
- Girdhar et al., [2019] Girdhar, R., Carreira, J., Doersch, C., and Zisserman, A. (2019). Video action transformer network. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 244–253.
- Graves et al., [2013] Graves, A., Mohamed, A.-r., and Hinton, G. (2013). Speech recognition with deep recurrent neural networks. In 2013 IEEE international conference on acoustics, speech and signal processing, pages 6645–6649. Ieee.
- Haggenmüller et al., [2021] Haggenmüller, S., Maron, R. C., Hekler, A., Utikal, J. S., Barata, C., Barnhill, R. L., Beltraminelli, H., Berking, C., Betz-Stablein, B., Blum, A., et al. (2021). Skin cancer classification via convolutional neural networks: systematic review of studies involving human experts. European Journal of Cancer, 156:202–216.
- He et al., [2016] He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778.
- Jaszczur et al., [2021] Jaszczur, S., Chowdhery, A., Mohiuddin, A., Kaiser, L., Gajewski, W., Michalewski, H., and Kanerva, J. (2021). Sparse is enough in scaling transformers. Advances in Neural Information Processing Systems, 34:9895–9907.
- [23] Li, G., Zhu, L., Liu, P., and Yang, Y. (2019a). Entangled transformer for image captioning. In Proceedings of the IEEE/CVF international conference on computer vision, pages 8928–8937.
- [24] Li, N., Liu, S., Liu, Y., Zhao, S., and Liu, M. (2019b). Neural speech synthesis with transformer network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 6706–6713.
- Li et al., [2022] Li, Y., Yuan, G., Wen, Y., Hu, E., Evangelidis, G., Tulyakov, S., Wang, Y., and Ren, J. (2022). Efficientformer: Vision transformers at mobilenet speed. arXiv preprint arXiv:2206.01191.
- Liu et al., [2021] Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021). Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10012–10022.
- Matsoukas et al., [2021] Matsoukas, C., Haslum, J. F., Söderberg, M., and Smith, K. (2021). Is it time to replace cnns with transformers for medical images? arXiv preprint arXiv:2108.09038.
- McBee et al., [2018] McBee, M. P., Awan, O. A., Colucci, A. T., Ghobadi, C. W., Kadom, N., Kansagra, A. P., Tridandapani, S., and Auffermann, W. F. (2018). Deep learning in radiology. Academic radiology, 25(11):1472–1480.
- Miotto et al., [2018] Miotto, R., Wang, F., Wang, S., Jiang, X., and Dudley, J. T. (2018). Deep learning for healthcare: review, opportunities and challenges. Briefings in bioinformatics, 19(6):1236–1246.
- Panayides et al., [2020] Panayides, A. S., Amini, A., Filipovic, N. D., Sharma, A., Tsaftaris, S. A., Young, A., Foran, D., Do, N., Golemati, S., Kurc, T., et al. (2020). Ai in medical imaging informatics: current challenges and future directions. IEEE Journal of Biomedical and Health Informatics, 24(7):1837–1857.
- Parmar et al., [2018] Parmar, N., Vaswani, A., Uszkoreit, J., Kaiser, L., Shazeer, N., Ku, A., and Tran, D. (2018). Image transformer. In International conference on machine learning, pages 4055–4064. PMLR.
- Prangemeier et al., [2020] Prangemeier, T., Reich, C., and Koeppl, H. (2020). Attention-based transformers for instance segmentation of cells in microstructures. In 2020 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pages 700–707. IEEE.
- Radford et al., [2018] Radford, A., Narasimhan, K., Salimans, T., Sutskever, I., et al. (2018). Improving language understanding by generative pre-training.
- Rajpurkar et al., [2018] Rajpurkar, P., Irvin, J., Ball, R. L., Zhu, K., Yang, B., Mehta, H., Duan, T., Ding, D., Bagul, A., Langlotz, C. P., et al. (2018). Deep learning for chest radiograph diagnosis: A retrospective comparison of the chexnext algorithm to practicing radiologists. PLoS medicine, 15(11):e1002686.
- Rajpurkar et al., [2017] Rajpurkar, P., Irvin, J., Zhu, K., Yang, B., Mehta, H., Duan, T., Ding, D., Bagul, A., Langlotz, C., Shpanskaya, K., et al. (2017). Chexnet: Radiologist-level pneumonia detection on chest x-rays with deep learning. arXiv preprint arXiv:1711.05225.
- Ramesh et al., [2021] Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. (2021). Zero-shot text-to-image generation. In International Conference on Machine Learning, pages 8821–8831. PMLR.
- Rodriguez-Ruiz et al., [2019] Rodriguez-Ruiz, A., Lång, K., Gubern-Merida, A., Broeders, M., Gennaro, G., Clauser, P., Helbich, T. H., Chevalier, M., Tan, T., Mertelmeier, T., et al. (2019). Stand-alone artificial intelligence for breast cancer detection in mammography: comparison with 101 radiologists. JNCI: Journal of the National Cancer Institute, 111(9):916–922.
- Sak et al., [2014] Sak, H., Senior, A., and Beaufays, F. (2014). Long short-term memory based recurrent neural network architectures for large vocabulary speech recognition. arXiv preprint arXiv:1402.1128.
- Serag et al., [2019] Serag, A., Ion-Margineanu, A., Qureshi, H., McMillan, R., Saint Martin, M.-J., Diamond, J., O’Reilly, P., and Hamilton, P. (2019). Translational ai and deep learning in diagnostic pathology. Frontiers in medicine, 6:185.
- Shaikh et al., [2021] Shaikh, K., Krishnan, S., and Thanki, R. M. (2021). Artificial intelligence in breast cancer early detection and diagnosis. Springer.
- Shickel et al., [2021] Shickel, B., Tighe, P. J., Bihorac, A., and Rashidi, P. (2021). Multi-task prediction of clinical outcomes in the intensive care unit using flexible multimodal transformers. arXiv preprint arXiv:2111.05431.
- Shin et al., [2016] Shin, H.-C., Roth, H. R., Gao, M., Lu, L., Xu, Z., Nogues, I., Yao, J., Mollura, D., and Summers, R. M. (2016). Deep convolutional neural networks for computer-aided detection: Cnn architectures, dataset characteristics and transfer learning. IEEE transactions on medical imaging, 35(5):1285–1298.
- Simonyan and Zisserman, [2014] Simonyan, K. and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556.
- Su et al., [2019] Su, W., Zhu, X., Cao, Y., Li, B., Lu, L., Wei, F., and Dai, J. (2019). Vl-bert: Pre-training of generic visual-linguistic representations. arXiv preprint arXiv:1908.08530.
- Sun et al., [2019] Sun, C., Myers, A., Vondrick, C., Murphy, K., and Schmid, C. (2019). Videobert: A joint model for video and language representation learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7464–7473.
- Szegedy et al., [2016] Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. (2016). Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818–2826.
- Tan and Bansal, [2019] Tan, H. and Bansal, M. (2019). Lxmert: Learning cross-modality encoder representations from transformers. arXiv preprint arXiv:1908.07490.
- Tao et al., [2015] Tao, Z., Shi, A., Lu, C., Song, T., Zhang, Z., and Zhao, J. (2015). Breast cancer: epidemiology and etiology. Cell biochemistry and biophysics, 72(2):333–338.
- Topal et al., [2021] Topal, M. O., Bas, A., and van Heerden, I. (2021). Exploring transformers in natural language generation: Gpt, bert, and xlnet. arXiv preprint arXiv:2102.08036.
- Touvron et al., [2021] Touvron, H., Cord, M., Douze, M., Massa, F., Sablayrolles, A., and Jégou, H. (2021). Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, pages 10347–10357. PMLR.
- Tschandl et al., [2019] Tschandl, P., Rosendahl, C., Akay, B. N., Argenziano, G., Blum, A., Braun, R. P., Cabo, H., Gourhant, J.-Y., Kreusch, J., Lallas, A., et al. (2019). Expert-level diagnosis of nonpigmented skin cancer by combined convolutional neural networks. JAMA dermatology, 155(1):58–65.
- Tulder et al., [2021] Tulder, G. v., Tong, Y., and Marchiori, E. (2021). Multi-view analysis of unregistered medical images using cross-view transformers. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 104–113. Springer.
- Vaswani et al., [2017] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. Advances in neural information processing systems, 30.
- Vila et al., [2018] Vila, L. C., Escolano, C., Fonollosa, J. A., and Costa-Jussa, M. R. (2018). End-to-end speech translation with the transformer. In IberSPEECH, pages 60–63.
- Wang et al., [2021] Wang, H., Zhu, Y., Adam, H., Yuille, A., and Chen, L.-C. (2021). Max-deeplab: End-to-end panoptic segmentation with mask transformers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5463–5474.
- Watanabe et al., [2021] Watanabe, S., Ueno, T., Kimura, Y., Mishina, M., and Sugimoto, N. (2021). Generative image transformer (git): unsupervised continuous image generative and transformable model for [123i] fp-cit spect images. Annals of nuclear medicine, 35(11):1203–1213.
- Wu et al., [2021] Wu, Y., Qi, S., Sun, Y., Xia, S., Yao, Y., and Qian, W. (2021). A vision transformer for emphysema classification using ct images. Physics in Medicine & Biology, 66(24):245016.
- Xie et al., [2021] Xie, Y., Zhang, J., Shen, C., and Xia, Y. (2021). Cotr: Efficiently bridging cnn and transformer for 3d medical image segmentation. In International conference on medical image computing and computer-assisted intervention, pages 171–180. Springer.
- Yang et al., [2020] Yang, F., Yang, H., Fu, J., Lu, H., and Guo, B. (2020). Learning texture transformer network for image super-resolution. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5791–5800.
- Ye et al., [2019] Ye, L., Rochan, M., Liu, Z., and Wang, Y. (2019). Cross-modal self-attention network for referring image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10502–10511.
- Yu et al., [2018] Yu, K.-H., Beam, A. L., and Kohane, I. S. (2018). Artificial intelligence in healthcare. Nature biomedical engineering, 2(10):719–731.
- Yun et al., [2021] Yun, B., Wang, Y., Chen, J., Wang, H., Shen, W., and Li, Q. (2021). Spectr: Spectral transformer for hyperspectral pathology image segmentation. arXiv preprint arXiv:2103.03604.
- Zhang et al., [2020] Zhang, D., Thadajarassiri, J., Sen, C., and Rundensteiner, E. (2020). Time-aware transformer-based network for clinical notes series prediction. In Machine learning for healthcare conference, pages 566–588. PMLR.
- Zhang and Wen, [2021] Zhang, L. and Wen, Y. (2021). Mia-cov19d: A transformer-based framework for covid19 classification in chest cts.
- Zhang et al., [2021] Zhang, Z., Sun, B., and Zhang, W. (2021). Pyramid medical transformer for medical image segmentation. arXiv preprint arXiv:2104.14702.
- Zheng et al., [2021] Zheng, S., Lu, J., Zhao, H., Zhu, X., Luo, Z., Wang, Y., Fu, Y., Feng, J., Xiang, T., Torr, P. H., et al. (2021). Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 6881–6890.
- Zhou et al., [2018] Zhou, L., Zhou, Y., Corso, J. J., Socher, R., and Xiong, C. (2018). End-to-end dense video captioning with masked transformer. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8739–8748.
- Zhu et al., [2020] Zhu, X., Su, W., Lu, L., Li, B., Wang, X., and Dai, J. (2020). Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159.
- Zou et al., [2021] Zou, Y., Chen, S., Sun, Q., Liu, B., and Zhang, J. (2021). Dcet-net: Dual-stream convolution expanded transformer for breast cancer histopathological image classification. In 2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pages 1235–1240. IEEE.