Context-Aware Transformers for Spinal Cancer Detection and Radiological Grading

Rhydian Windsor, Amir Jamaludin, Timor Kadir, Andrew Zisserman

Abstract

Automated analysis of spinal MRI is often limited by "context-blind" architectures that process individual vertebrae or image slices in isolation. This paper introduces the Spinal Context Transformer (SCT), a deep-learning framework designed to mimic the holistic approach of radiologists by integrating information across the entire spinal column and multiple MRI sequences. By leveraging Multiple Instance Learning (MIL) to utilize noisy, NLP-extracted labels from clinical reports, the SCT achieves significant performance gains in detecting spinal metastases and grading degenerative diseases, demonstrating the critical importance of spatial and multi-modal context in medical imaging.

Introduction

In clinical practice, a radiologist’s interpretation of a spine MRI is a complex, comparative process. They do not view a single vertebra in a vacuum; instead, they compare adjacent vertebrae to differentiate between pathological lesions and artifacts and cross-reference multiple MRI sequences (such as T1, T2, or STIR) to confirm diagnostic findings.

Existing AI models for spinal analysis frequently struggle with two primary hurdles: the "Context Gap," where models fail to understand the relationship between different anatomical segments, and the "Annotation Bottleneck," where the requirement for high-quality, manually segmented training data limits scalability. This study presents the Spinal Context Transformer (SCT) to address these limitations by processing the entire spinal column as a unified sequence.

Methodology

The Spinal Context Transformer (SCT) Architecture

The SCT architecture is designed to aggregate information at multiple levels of granularity through three distinct stages:

  1. Feature Extraction: A 2D ResNet-18 backbone extracts visual features from individual sagittal slices of each vertebral body.
  2. Slice-wise Attention: To account for varying slice thicknesses and the relative importance of different views, an attention mechanism weights these features to generate a single summary vector for each specific vertebra.
  3. The Transformer Core: These summary vectors—representing every vertebra across every available MRI sequence—are fed into a Transformer. This allows the model to learn long-range dependencies across the spinal column. For instance, the model can learn that the presence of a clear tumor at the L1 level increases the statistical likelihood that a subtle abnormality at L2 is also a metastasis.

Learning from Noisy Labels

To overcome the annotation bottleneck, the researchers utilized Multiple Instance Learning (MIL). Instead of requiring pixel-perfect manual annotations, the model was trained using labels extracted from free-text radiological reports via Natural Language Processing (NLP). Under the MIL framework, the entire spine is treated as a "bag" of instances, allowing the model to identify which specific vertebrae are likely positive based on global report findings.

Experimental Setup

The model was evaluated on two diverse datasets:

  • Spinal Cancer Dataset: Comprising 558 clinical MRI studies from the Oxford University Hospitals Trust. Labels for metastases, fractures, and cord compression were automatically extracted from reports, with a subset validated by an expert spinal surgeon to establish a "gold standard" for testing.
  • Genodisc Dataset: A large-scale dataset of 2,295 patients focused on degenerative lumbar spine changes, including disc space narrowing and endplate defects.

Results and Discussion

Performance Gains through Context

The inclusion of context proved to be a "force multiplier" for diagnostic accuracy. In the metastasis detection task, the Area Under the Curve (AUC) improved from a baseline of 0.80 to 0.931 when the model was allowed to see the rest of the spine. This suggests that spatial context is essential for identifying subtle pathological changes that might be missed in isolation.

Radiological Grading

On the Genodisc dataset, the SCT outperformed previous state-of-the-art models in grading degenerative conditions. Notably, accuracy for detecting endplate defects improved from approximately 82% to 87%. The model also demonstrated strong agreement with expert surgeon annotations for vertebral fractures.

Interpretability and Clinical Utility

A key advantage of the SCT is its interpretability. The slice-wise attention mechanism provides transparency by highlighting which specific image slices the model prioritized for its decision. This "attention map" can help radiologists verify the model's reasoning, a critical step for clinical adoption.

Limitations and Future Work

While the SCT showed superior performance in most categories, its performance on cord compression was slightly lower than the baseline. The researchers attribute this to the relative rarity of cord compression events in the training set, leading to potential overfitting.

Future research will focus on expanding the model's input to include axial (cross-sectional) scans for a full 3D perspective and applying the SCT architecture to other repetitive anatomical structures, such as the ribs or dental arches. The ultimate goal remains the integration of this context-aware system into high-volume clinical environments to assist radiologists in diagnostic workflows.

Conclusion

The Spinal Context Transformer represents a significant step toward more human-like AI in radiology. By moving beyond isolated image analysis and embracing the full context of clinical MRI studies, the SCT demonstrates that models trained on "messy," real-world hospital data can achieve high levels of diagnostic precision.

Summary updated

BibTeX
@inproceedings{windsor2022context,
  author = {Rhydian Windsor and Amir Jamaludin and Timor Kadir and Andrew Zisserman},
  title = {{Context-Aware Transformers for Spinal Cancer Detection and Radiological Grading}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  url = {https://openreview.net/forum?id=fT5bzLgayW},
}
Figure