[Paper Review] TransMed: Transformers Advance Multi-modal Medical Image Classification
TransMed proposes a hybrid CNN-Transformer architecture for multi-modal medical image classification, leveraging self-attention to model long-range dependencies across modalities while using CNNs for local feature extraction. It achieves state-of-the-art performance on parotid tumor classification with 87.0% accuracy (TransMed-T) and significantly fewer parameters and FLOPs than prior methods.
Over the past decade, convolutional neural networks (CNN) have shown very competitive performance in medical image analysis tasks, such as disease classification, tumor segmentation, and lesion detection. CNN has great advantages in extracting local features of images. However, due to the locality of convolution operation, it can not deal with long-range relationships well. Recently, transformers have been applied to computer vision and achieved remarkable success in large-scale datasets. Compared with natural images, multi-modal medical images have explicit and important long-range dependencies, and effective multi-modal fusion strategies can greatly improve the performance of deep models. This prompts us to study transformer-based structures and apply them to multi-modal medical images. Existing transformer-based network architectures require large-scale datasets to achieve better performance. However, medical imaging datasets are relatively small, which makes it difficult to apply pure transformers to medical image analysis. Therefore, we propose TransMed for multi-modal medical image classification. TransMed combines the advantages of CNN and transformer to efficiently extract low-level features of images and establish long-range dependencies between modalities. We evaluated our model for the challenging problem of preoperative diagnosis of parotid gland tumors, and the experimental results show the advantages of our proposed method. We argue that the combination of CNN and transformer has tremendous potential in a large number of medical image analysis tasks. To our best knowledge, this is the first work to apply transformers to medical image classification.
Motivation & Objective
- Address the limitation of CNNs in capturing long-range dependencies across multi-modal medical images.
- Overcome the poor performance of pure Transformers on small medical datasets by combining them with CNNs.
- Develop an efficient multi-modal fusion strategy that models inter-modality relationships effectively with low computational cost.
- Demonstrate the effectiveness of Transformers in medical image classification, particularly for tasks requiring integration of diverse imaging modalities.
- Propose a flexible, extensible architecture suitable for various medical imaging tasks beyond classification.
Proposed method
- Integrate a CNN branch (ResNet18/34/50/152) for local feature extraction from each modality.
- Use a Vision Transformer (DeiT-Tiny/Small/Base) branch to model long-range dependencies across modalities via multi-head self-attention.
- Fuse features from both branches at the feature level using a learnable fusion module to enable cross-modality interaction.
- Apply patch-based image serialization (with varying patch sizes K) to feed images into the Transformer encoder.
- Train the end-to-end model using standard cross-entropy loss for multi-class classification.
- Optimize for efficiency by using lightweight backbones and avoiding full-scale pre-training on large datasets.
Experimental results
Research questions
- RQ1Can Transformers effectively model long-range dependencies in multi-modal medical images where such relationships are explicit and semantically meaningful?
- RQ2How does a hybrid CNN-Transformer architecture compare to existing input-, feature-, and decision-level fusion strategies in multi-modal medical image classification?
- RQ3What is the impact of different patch sizes on the performance of the Vision Transformer component in medical image analysis?
- RQ4Can a hybrid architecture outperform pure CNN or pure Transformer models on small medical imaging datasets?
- RQ5To what extent does the proposed method reduce computational cost while maintaining or improving accuracy?
Key findings
- TransMed-T achieved 87.0% accuracy on parotid tumor classification, outperforming previous methods by approximately 12.8% in average accuracy compared to P3D.
- The full TransMed-B and TransMed-L models showed slight overfitting, indicating potential limitations in generalization on small datasets.
- Removing the Transformer branch reduced accuracy to 71.3%, demonstrating its critical role in modeling cross-modality relationships with minimal parameter increase.
- Removing the CNN branch led to a sharp drop in performance (51.3% accuracy), highlighting the importance of local feature extraction in small-data settings.
- Optimal patch size was found to be K=2, achieving 87.0% accuracy; larger patch sizes (K≥8) degraded performance due to loss of semantic information.
- TransMed used significantly fewer parameters (17M) and FLOPs (0.09 TFLOPs) than prior methods, demonstrating high efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.