TAM at VQA-Med 2021: A Hybrid Model with Feature Extraction and Fusion for Medical Visual Question Answering

Yong Li, Zhenguo Yang, Tianyong HaoCLEF (Working Notes) 2021

TL;DR

This paper introduces TAM, a hybrid model for medical Visual Question Answering (VQA) that combines a modified ResNet-34 for image feature extraction and an LSTM for question feature extraction. The model leverages a co-Attention mechanism with Multi-modal Factorized Bilinear Pooling (MFB) to fuse these features, achieving a respectable 8th place in the ImageCLEF VQA-Med 2021 competition.

What Problem Does This Paper Address?

The paper tackles the challenge of Medical Visual Question Answering (VQA). Unlike general VQA tasks that often rely on common object knowledge and explicit labels, medical VQA involves interpreting complex radiology images and answering questions about them. This domain presents unique difficulties:

  • Limited Explicit Information: Medical images often lack object-level labels or coordinates, making it harder for models to directly identify relevant regions.
  • Domain-Specific Knowledge: Answering questions about medical images requires understanding medical concepts and visual patterns that are not present in everyday images.
  • Data Scarcity: The ImageCLEF VQA-Med dataset, while specialized, is significantly smaller (4500 pairs) compared to general VQA datasets (tens of thousands), posing a risk of overfitting.

The goal is to build a system that can accurately answer questions about medical images, aiding in tasks like radiology interpretation and potentially alleviating the shortage of medical resources.

Methods

The TAM model is built upon a universal VQA framework and comprises three main components:

  1. Image Feature Extraction:
    • Modified ResNet-34: Instead of a standard ResNet-34, the authors remove the global average pooling and fully-connected layers. This allows the model to output feature maps (reshaped to B×64×2048) that retain more spatial information, crucial for medical image analysis.
  2. Input Preprocessing: Images are resized to 128x128 using the INTER_AREA algorithm.
  3. Dropout: A dropout operation is employed to mitigate overfitting, especially given the limited dataset size.
  4. Question Feature Extraction:
    • Word Embedding: Questions are first tokenized, and then each token is mapped to a high-dimensional vector using GloVe embeddings.
  5. Long Short-Term Memory (LSTM): The embedded word vectors are fed into an LSTM. The LSTM is chosen over Transformer-based models due to its ability to preserve contextual features of long sequences with less training data, which is beneficial for the smaller medical VQA dataset. The entire sequence output from the LSTM is used to ensure complete information integrity.
  6. Attentional Feature Fusion:
    • Multi-modal Factorized Bilinear Pooling (MFB): This technique is used to fuse the image and question features. MFB is known for its expressive capacity in compacting features from different modalities.
  7. Co-Attention Mechanism: This is a key innovation. It involves a self-attention mechanism (SA) and a guided-attention (GA). The question features first undergo self-attention to generate Qfeat_attn. This Qfeat_attn then guides the attention learning for image features, producing Ifeat_attn. Finally, MFB fuses Ifeat_attn and Qfeat_attn (after vector multiplication and projection) to produce the final fused features. This co-attention mechanism aims to effectively learn which image regions are most relevant to the question.
  8. Softmax: A softmax function is applied to the fused features to predict the probability of each answer.

Datasets

  • ImageCLEF VQA-Med Task 2021 Dataset:
    • Training Set: 4000 image-question pairs. The authors merged the validation set from ImageCLEF VQA-Med 2020 (500 pairs) with the 2021 training set to create a larger training set of 4500 pairs.
  • Validation Set: 500 pairs.
  • Test Set: 500 pairs.
  • Data Characteristics: The dataset is primarily composed of "open-ended" questions (e.g., "yes/no" or starting with "Is/Does..."), with a small percentage of "close-ended" questions in the training set. The number of answer classes is 332 in the training set and 236 in the validation set.

Key Insights and Ideas

  • Adapting CNNs for Medical Images: Removing the global average pooling and fully-connected layers from ResNet-34 is a crucial adaptation. It preserves spatial information in the feature maps, which is vital for interpreting medical images where subtle spatial relationships can be diagnostically important.
  • LSTM's Suitability for Scarce Data: The choice of LSTM over more data-hungry models like Transformers for question encoding is a pragmatic decision for the medical VQA domain, where datasets are typically smaller. It highlights that established NLP techniques can still be effective when adapted appropriately.
  • Co-Attention for Focused Fusion: The co-attention mechanism is a significant contribution. By allowing modalities to guide each other's attention, it creates a more focused and effective fusion of image and text information, leading to better answer prediction. This is particularly important in medical VQA where the question might highlight a very specific abnormality in a complex image.

Key Results

  • Performance: The TAM model achieved an accuracy score of 0.222 and a BLEU score of 0.255 on the ImageCLEF VQA-Med task 2021 test set.
  • Ranking: This performance placed the model at 8th place among all participating teams in the competition.
  • Optimization Trends: The optimization plots (Figure 5) show a decreasing training loss and increasing validation accuracy and BLEU scores over 800 epochs, indicating successful training.

Limitations and Future Work

  • Dataset Size: The authors acknowledge that the dataset is relatively small, which can lead to overfitting. While dropout was used, this remains a general challenge in medical AI.
  • Test Set Sampling: The authors note that the test set sampling method differed from the training and validation sets, potentially contributing to the performance gap between validation and test results.
  • Image Resizing Artifacts: Resizing images to 128x128 might have led to a loss of spatial information and introduced noise, impacting performance.
  • Limited Question Information: The questions in the dataset provide little explicit entity information about the related classes, making the task more challenging.
  • Future Work (Implied): The authors' approach suggests that further exploration of attention mechanisms and more robust feature fusion techniques could improve performance. Investigating methods to better handle limited data, such as transfer learning from larger medical image datasets or more advanced data augmentation, would also be beneficial.

Summary updated

BibTeX
@inproceedings{li2021tam,
  author = {Yong Li and Zhenguo Yang and Tianyong Hao},
  title = {{TAM at VQA-Med 2021: A Hybrid Model with Feature Extraction and Fusion for Medical Visual Question Answering}},
  booktitle = {CLEF (Working Notes)},
  year = {2021},
  url = {https://openreview.net/forum?id=XCgQDtW3lO},
}
Figure