TransforMesh: A Transformer Network for Longitudinal Modeling of Anatomical Meshes

Ignacio Sarasua, Sebastian Pölsterl, Christian WachingerMLMI @ MICCAI 2021 · DOI

TL;DR

This paper introduces TransforMesh, a novel deep learning architecture that combines transformers and mesh networks to model the longitudinal changes in brain anatomy, specifically the hippocampus, for Alzheimer's disease (AD) progression. By effectively handling heterogeneous patient data and capturing temporal dependencies, TransforMesh outperforms existing methods in predicting shape trajectories and shows promise in anomaly detection for early AD diagnosis.

What Problem Does This Paper Address?

Alzheimer's disease (AD) is characterized by progressive brain atrophy, particularly in the hippocampus, which is one of the earliest affected regions. Understanding and predicting these anatomical changes over time is crucial for developing preventative strategies and slowing cognitive decline. However, modeling these changes from longitudinal medical imaging data presents significant challenges:

  • Data Heterogeneity: Patients are enrolled at different disease stages, have varying follow-up schedules, and may miss appointments, leading to irregular and incomplete temporal sequences of scans.
  • Subtle Changes: The anatomical changes associated with AD can be subtle, requiring sensitive methods to detect them accurately.
  • Limited Application of Advanced Models: While transformer and mesh networks have shown great success in other domains like NLP and computer vision, their application to medical image analysis, especially for longitudinal modeling, has been limited due to data requirements and complexity.

This paper aims to bridge this gap by developing a spatio-temporal model that can effectively learn from heterogeneous longitudinal data and accurately predict neuroanatomical shape changes.

Methods

The core of TransforMesh is a novel architecture that integrates transformer networks with mesh-based representations. Here's a breakdown of the key components:

  • Mesh Representation: Instead of traditional volumetric data, the hippocampus is represented as a 3D mesh, defined by vertices, edges, and faces. This allows for a more efficient and non-uniform representation of shape, better suited for capturing subtle anatomical variations.
  • Mesh Encoder: A shared mesh encoder block, inspired by SpiralNet++ [11], is used to extract latent features from each individual mesh in a patient's temporal sequence. This encoder utilizes spiral convolutions and mesh pooling operations to handle the irregular structure of meshes.
  • Bidirectional Transformer Encoder: The extracted latent features are then fed into a bidirectional transformer encoder. This is the key component for modeling temporal dependencies. By processing the sequence in both forward and backward directions, it captures the context of how shapes evolve over time, even with missing data points.
  • Mesh Decoder: A shared mesh decoder block reconstructs the predicted shapes from the transformer's output. This decoder generates deformation fields that are applied to a reference mesh.
  • Autoencoder Framework: The entire TransforMesh model is trained in an end-to-end autoencoder manner, aiming to reconstruct the input shapes from their latent representations.
  • Handling Missing Data: The transformer architecture naturally handles variable sequence lengths through padding tokens. These are ignored during training and loss computation. For missing value embeddings, the model uses the encoding of the reference shape.
  • Data Augmentation: To further improve robustness, shapes are randomly substituted with the reference shape during training. Unlike true missing data, these augmented shapes are considered by the self-attention mechanism.
  • Loss Function: A weighted loss function is employed, giving more importance to scans that are closer to the baseline, to account for the decreasing number of scans as a study progresses. A regularization term is included to prevent the network from simply copying the reference shape.

Datasets

The study utilizes data from the Alzheimer's Disease Neuroimaging Initiative (ADNI) database [15]. Structural MRI scans are segmented using FIRST [22] to obtain meshes of the hippocampus. The dataset consists of 1247 patients, split into training, validation, and testing sets with a stratification strategy to ensure proportional representation of age, sex, and diagnosis. The average number of follow-up scans per patient is 3.25, with only 3% of patients attending all sessions, highlighting the data's inherent heterogeneity.

Key Insights and Ideas

  • Transformer for Spatio-Temporal Mesh Analysis: This paper pioneers the combination of transformers and mesh networks for longitudinal medical image analysis. This fusion is crucial for capturing both the spatial intricacies of anatomical shapes and their temporal evolution.
  • Handling Data Heterogeneity is Key: The success of TransforMesh hinges on its ability to effectively model irregular and incomplete temporal sequences, a common challenge in longitudinal clinical studies.
  • Transformers Outperform Temporal Independence: The results strongly suggest that explicitly modeling temporal dependencies is vital for accurate shape prediction, outperforming methods that treat each time point independently.
  • Anomaly Detection Potential: The model's ability to detect areas of high reconstruction error opens avenues for unsupervised anomaly detection, potentially identifying early signs of neurodegenerative diseases.

Key Results

  • Improved Interpolation: TransforMesh models consistently achieved lower median errors in shape interpolation compared to baseline methods, including a mesh autoencoder (MeshAE) and a fully connected bottleneck (FCBN) that doesn't explicitly model time.
  • Competitive Extrapolation and Trajectory Prediction: While MeshAE performed slightly better in extrapolation and trajectory prediction, TransforMesh models demonstrated competitive results, especially considering their ability to handle temporal dynamics.
  • Efficiency of Shallow Transformers: Even the lightest transformer model (TTM) outperformed the baseline while using 20% fewer trainable parameters, indicating efficiency and effectiveness.
  • Qualitative Anomaly Visualization: Figure 3 shows vertex-wise absolute errors for a patient converting from MCI to AD. The highlighted areas of high error correlate with regions known to be affected by AD, suggesting the model's potential for early anomaly detection.

Limitations and Future Work

  • Data Requirements for Transformers: The paper acknowledges that transformer applications in medical imaging can be challenging due to the need for large amounts of training data [6,7,17]. While their approach is designed to mitigate this, it remains a general consideration.
  • Lack of Ground Truth for Anomaly Detection: The anomaly visualization section notes the absence of an explicit anomaly mask for direct comparison, relying on visual correlation with known AD pathology.
  • Future Work: The authors suggest that TransforMesh can be used to detect structural anomalies in patients converting from MCI to AD. Further exploration of its capabilities in this area and for other neurodegenerative diseases would be valuable. The paper also implicitly points towards exploring more complex transformer architectures or different mesh representations for even finer-grained analysis.

Summary updated

BibTeX
@inproceedings{sarasua2021transformesh,
  author = {Ignacio Sarasua and Sebastian Pölsterl and Christian Wachinger},
  title = {{TransforMesh: A Transformer Network for Longitudinal Modeling of Anatomical Meshes}},
  booktitle = {MLMI @ MICCAI},
  year = {2021},
  doi = {10.1007/978-3-030-87589-3\_22},
}
Figure