Surface-based Characterization of Gastric Anatomy and Motility using Magnetic Resonance Imaging and Neural Ordinary Differential Equation

Xiaokai Wang, Jiayue Cao, Kuan Han, Minkyu Choi, Yushi She, Ulrich M. Scheven, Recep Avci, Peng Du, Leo K. Cheng, Madeleine R. Di Natale, John B. Furness, Zhongming LiubioRxiv 2022

TL;DR

This paper introduces a novel method to precisely map gastric anatomy and motility using MRI by modeling the stomach wall as a deformable surface. By employing neural ordinary differential equations (ODEs) to simulate a continuous, diffeomorphic flow, they can accurately track the stomach's shape changes over time, revealing detailed functional maps of muscle activity and their relationship to muscle thickness.

What Problem Does This Paper Address?

Gastrointestinal Magnetic Resonance Imaging (GI-MRI) offers a powerful way to visualize the stomach's contents and their movement, but it has historically struggled to directly quantify the underlying muscular activity of the stomach wall itself. Existing methods often focus on volumetric changes of the stomach's contents, which can be difficult to generalize across individuals and don't directly reveal the spatial and temporal dynamics of the stomach wall's deformation. This makes it challenging to understand the intricate coordination of gastric motor events and to link them to structural properties like muscle thickness. The authors aim to bridge this gap by developing a method that characterizes gastric anatomy and motility directly from the stomach wall's surface dynamics.

Methods

The core of this work lies in using a neural ordinary differential equation (ODE) to model a diffeomorphic flow. Here's a breakdown:

  • Surface Template (Scaffold): They start with a generic 3D surface mesh representing the rat stomach's anatomy. This "scaffold" acts as a deformable model.
  • Diffeomorphic Flow: The neural ODE is trained to learn a continuous function that describes how points on the surface template move over time. This flow is "diffeomorphic," meaning it preserves the surface's topology and prevents self-intersections, ensuring physiologically plausible deformations.
  • Two-Stage Alignment:
    1. Affine Transformation: An initial linear transformation is applied to roughly align the generic scaffold to the time-averaged (static) stomach shape derived from MRI.
  • Neural ODE Morphing (Static): A neural ODE then refines this alignment to precisely match the static stomach anatomy. This stage captures the individual's gastric shape.
  • Neural ODE Morphing (Dynamic): A second neural ODE is used to morph the static scaffold to match the stomach's shape at each time point in the dynamic MRI sequence, capturing motility.
  • Optimization: The neural ODE models are optimized using a Chamfer distance to minimize the difference between the morphed scaffold and the target MRI-derived iso-surfaces. An edge length regularizer is also used to ensure surface integrity.
  • Feature Extraction: From the dynamic, morphed scaffolds, they extract functional maps characterizing:
  • Frequency: Power spectral density of contractions.
  • Amplitude: Peak-to-peak amplitude of phasic contractions.
  • Coordination: Relative phase differences between locations to identify peristaltic waves.
  • Rhythmicity: Contribution of slow-wave frequencies to overall motility.

Datasets

The study utilized MRI data collected from 10 Sprague Dawley rats. The data included:

  • Dynamic 3D GI-MRI: Acquired after rats consumed a Gd-DTPA labeled diet-gel, which enhanced the luminal content for visualization.
  • Time-averaged stomach iso-surfaces: Derived from the MRI data to represent static anatomy.
  • Time-resolved stomach iso-surfaces: Extracted from dynamic MRI scans to capture motility.

The paper also mentions using a generic scaffold of the rat stomach which was previously established and refined.

Key Insights and Ideas

  • Diffeomorphic Flow for Biomechanics: The core innovation is using neural ODEs to model diffeomorphic flow. This is crucial because it enforces physiologically plausible deformations of the stomach wall, ensuring continuity and preventing self-intersections, which is vital for accurate biomechanical modeling.
  • Surface-Based vs. Volumetric Analysis: This work moves beyond volumetric analysis of stomach contents to directly analyze the stomach wall's surface dynamics. This provides a more direct measure of muscular activity and allows for a common coordinate system across individuals.
  • Linking Structure and Function: By co-registering structural data (muscle thickness) with functional data (motility maps) on the same scaffold, the study enables a direct investigation of the structure-function relationship in the stomach.
  • Identifying Functional Regions: The analysis revealed two distinct functional regions of the stomach based on muscle thickness and motility characteristics, suggesting a parcellation beyond traditional anatomical landmarks.
  • High-Resolution Motility Mapping: The method generates detailed, high-resolution functional maps of gastric motility, revealing spatial, temporal, and spectral characteristics of muscle activity and coordination.

Key Results

  • The proposed neural ODE approach successfully morphed a generic scaffold to match both static and dynamic gastric surfaces from MRI data in 10 rats.
  • The morphing process achieved a low error (Chamfer distance of 0.127 ± 0.020 mm for static anatomy), which was less than the voxel size.
  • The dynamic surface morphing showed a very low percentage of self-intersections (0.028% ± 0.170%), indicating successful enforcement of the diffeomorphic prior.
  • Functional maps revealed that phasic contractions were more pronounced in the distal stomach, with stronger contractions on the lesser curvature.
  • Peristaltic waves were identified propagating from the distal corpus to the distal antrum when using antral locations as references.
  • A significant correlation was found between muscle thickness (particularly circular muscle) and contractile amplitude, with stronger correlations observed in the distal stomach.
  • The study delineated two functional regions (proximal and distal clusters) based on combined structural and functional features.

Limitations and Future Work

  • Muscle Thickness Measurement: Muscle thickness was measured from isolated ex vivo tissue samples, while motility was assessed in vivo. The authors acknowledge that muscle thickness might vary with intragastric volume and that a more rigorous comparison would ideally involve in vivo measurements of both.
  • Fixed Diet and Volume: The study used a single type of diet and volume, limiting the generalizability of findings to other dietary conditions.
  • Independent Time Point Optimization: The dynamic neural ODE was optimized independently for each time point. The authors suggest that exploiting the temporal patterns of stomach movement with a single dynamic system (e.g., a higher-order ODE) could improve efficiency and potentially allow for interpolation or extrapolation of data.
  • Future Work:
    • Applying the method to different diets and animal groups to study their effects.
  • Extending the approach to the entire GI tract for studying inter-segment coordination.
  • Incorporating more detailed anatomical features (vasculature, nerves) for finer functional parcellation.
  • Investigating the structure-function relationship in more detail, especially the differential effects of CM and LM thickness.
  • Adapting the method for human GI MRI studies, addressing potential overestimation of motility without enforcing manifoldness constraints.

Summary updated

Abstract

Abstract Gastrointestinal magnetic resonance imaging (MRI) provides rich spatiotemporal data about the volume and movement of the food inside the stomach, but does not directly report on the muscular activity of the stomach itself. Here we describe a novel approach to characterize the motility of the stomach wall that drives the volumetric changes of the gastric content. In this approach, a surface template was used as a deformable model of the stomach wall. A neural ordinary differential equation (ODE) was optimized to model a diffeomorphic flow that ascribed the deformation of the stomach wall to a continuous biomedical process. Driven by this diffeomorphic flow, the surface template of the stomach progressively changes its shape over time or between conditions, while preserving its topology and manifoldness. We tested this approach with MRI data collected from 10 Sprague Dawley rats under a lightly anesthetized condition. Our proposed approach allowed us to characterize gastric anatomy and motility with a surface coordinate system common to every individual. Anatomical and motility features could be characterized for each individual, and then compared and summarized across individuals for group-level analysis. As a result, high-resolution functional maps were generated to reveal the spatial, temporal, and spectral characteristics of muscle activity as well as the coordination of motor events across different gastric regions. The relationship between muscle thickness and gastric motility was also evaluated throughout the entire stomach wall. Such a structure-function relationship was used to delineate two distinctive functional regions of the stomach. These results demonstrate the efficacy of using GI-MRI to measure and model gastric anatomy and function. This approach described herein is expected to enable non-invasive and accurate mapping of gastric motility throughout the entire stomach for both preclinical and clinical studies.
BibTeX
@misc{wang2022surface,
  author = {Xiaokai Wang and Jiayue Cao and Kuan Han and Minkyu Choi and Yushi She and Ulrich M. Scheven and Recep Avci and Peng Du and Leo K. Cheng and Madeleine R. Di Natale and John B. Furness and Zhongming Liu},
  title = {{Surface-based Characterization of Gastric Anatomy and Motility using Magnetic Resonance Imaging and Neural Ordinary Differential Equation}},
  year = {2022},
  doi = {10.1101/2022.10.17.512633},
  howpublished = {bioRxiv},
}
Figure