Patch-based Medical Image Segmentation using Matrix Product State Tensor Networks

Raghavendra Selvan, Erik B. Dam, Søren Alexander Flensborg, Jens Petersen

Abstract

Tensor networks provide an efficient means of factorizing high-dimensional tensors into networks of lower-order components. While traditionally used in quantum physics to model entanglement, they are increasingly applied to supervised machine learning. This paper introduces a supervised image segmentation framework using tensor networks. By lifting image pixels into exponentially high-dimensional feature spaces, the model employs a linear decision hyper-plane for classification. This high-dimensional model is approximated using a Matrix Product State (MPS) tensor network, which is weight-shared across image patches in a "strided tensor network" architecture. Evaluations on 2D and 3D biomedical datasets demonstrate that this approach achieves competitive performance with standard deep learning baselines while being significantly more resource-efficient.

Introduction: Beyond the Deep Learning Paradigm

Deep learning, particularly the U-Net architecture, has become the standard for medical image segmentation. However, these models often require massive labeled datasets and substantial computational resources, leading to high hardware costs and a significant carbon footprint. This research explores an alternative: Tensor Networks. The goal is to achieve high-quality segmentation by finding a simple linear decision rule in a massive, "lifted" feature space where complex patterns become linearly separable, rather than relying on deep stacks of non-linear convolutional layers.

Methodology: The Strided Tensor Network

The proposed "Strided Tensor Network" operates through three primary stages to transform raw pixels into segmentation masks:

  1. Feature Lifting: Pixels within an image patch are mapped into a higher-dimensional space using local feature maps, such as sinusoidal functions or small, shallow CNNs.
  2. Global Feature Mapping: The tensor product of these local features represents the entire patch in an exponentially high-dimensional space.
  3. Matrix Product State (MPS) Approximation: To manage the astronomical number of parameters required for a linear model in this space, the authors utilize an MPS. This factorizes the massive weight tensor into a chain of smaller, manageable tensors.
Basic tensor network components: scalars (S), vectors (V), matrices (M), and higher-order tensors (T).

The model is applied to small, non-overlapping patches (strides) to maintain local spatial correlations. The fundamental operations of these networks, such as contractions and products, allow for efficient computation within this framework.

Common tensor network operations including vector inner products and matrix products used to build the MPS.

Experimental Results and Insights

The model was evaluated against four diverse datasets: MO-NuSeg (histopathology), Lung-CXR (X-rays), Retinal Vessel (DRIVE/STARE/CHASE), and BraTS (3D MRI).

  • Efficiency: In the MO-NuSeg task, the tensor network used only 5.1K parameters compared to 500K for a standard U-Net, yet achieved a comparable Dice score of ~0.70.
  • Memory Usage: The model required only 0.8GB of GPU memory, a nearly 8x reduction compared to the 6.5GB required by a U-Net.
  • 2D vs. 3D Performance: While the model was statistically comparable to U-Nets in 2D tasks (e.g., 0.93 vs 0.95 Dice on Lung-CXR), it struggled with 3D data (0.63 vs 0.69 Dice on BraTS). This is likely due to the 1D chain structure of the MPS failing to capture complex 3D spatial relationships.

Conclusion

This work demonstrates that high-dimensional linear models, approximated via tensor networks, can provide a viable and efficient alternative to deep CNNs for 2D medical image segmentation. While 3D segmentation remains a challenge, future research into more complex tensor topologies like PEPS or MERA may bridge this gap, offering even more robust and resource-conscious tools for medical imaging.

Summary updated

BibTeX
@article{selvan2022patch,
  author = {Raghavendra Selvan and Erik B. Dam and Søren Alexander Flensborg and Jens Petersen},
  title = {{Patch-based Medical Image Segmentation using Matrix Product State Tensor Networks}},
  journal = {The Journal of Machine Learning for Biomedical Imaging},
  year = {2022},
  doi = {10.59275/j.melba.2022-d1f5},
}
Figure