1 of 56

MM Algorithms and Their Applications in Neuroimaging, Clustering and Graph Embedding

Daniel Tward, Kenneth Lange, Gary Zhou

2 of 56

Significance of Neuroimage Registration for Brain Mapping

  • Image registration transforms sets of image data into one coordinate system
  • Crucial for aligning brain images of different subjects, locations and time points
  • Useful for reconstructing 2D sections into 3D volumes and mapping datasets to a common coordinate reference brain atlas
  • Intensity-based (nonconvex) versus landmark based methods (quadratic)

Wang et al., 2020

3 of 56

Problem Formulation of Pairwise Rigid Registration

  • Minimize

  • R preserves norm, so it is equivalent to maximizing

  • Minimizers depend on the choice of interpolation method
  • Gaussian interpolation leads to

4 of 56

Registration of Images under Gaussian Interpolation

5 of 56

MM Algorithm for Pairwise Rigid Registration

  • Gradient based method common in this setting, but its descent is not guaranteed, and speed depends on the careful selection of step size.
  • MM is a method for constructing optimization algorithms, by exploiting problem structure and replacing a hard problem by easier surrogate problems.
  • MM stands for either Majorization-Minimization or Minorization-Maximization
  • Some advantages include:
  • Avoids need for line-search and for adjusting descent step sizes
  • Separates parameters (for parallelization)
  • Linearizes problem (for analytical solutions)
  • Enforces constraints without parametrization

6 of 56

MM Algorithm

  • To minimize f(x), we can majorize it with a surrogate function, g(x| . ), anchored at its current iterate
  • g satisfies both tangency and domination conditions: and for every x
  • Minimizing the surrogate function to get the next iterate makes sure that f(x) is going downhill:

7 of 56

An Example for Minimizing f(x)=cos x

8 of 56

How to Find Surrogate Functions

  • They need to be easier to optimize
  • We usually use inequalities and convexity to find them:
  • Jensen’s inequality
  • Cauchy Schwarz inequality
  • von Neumann trace inequality
  • This step requires mathematical ingenuity (trial and error)

9 of 56

Optimizing Gaussian-Interpolated Cross Term Integral

(We use the fact that integral of product of Gaussians is a Gaussian again)

Pixel values

distance squared

10 of 56

Simplified Objective and its MM Surrogate

We derived the surrogate function as a weighted sum of square distance

11 of 56

Now these Functions are Easy to Optimize

  • We can now use the point-set rigid optimization method, which amounts to calculating the SVD of a 2x2 or 3x3 matrix.
  • This method is efficient because we turned an image problem into a point-set problem, which can be solved via linear algebra

12 of 56

Reference: Least-Squares Rigid Motion Using SVD by Olga Sorkine-Hornung and Michael Rabinovich

13 of 56

Issue of Truncation

  • A lot of terms in the sum are small due to negative exponentials and do not contribute significantly.
  • The number of summands is (# of I pixels) * (# of J pixels), which can be very large and computationally expensive (quadratic complexity).
  • We truncate these terms and keep only coefficients that are large enough.

14 of 56

Details of Truncation

15 of 56

Error Bound for Truncated SVD

  • We bounded the error of the optimal rotation and translation of our truncation
  • Error is determined by the smallest singular value of the SVD matrix
  • Given two matrices S and S’ (the covariance matrix) such that their difference |S-S’| is small, we showed that the error |UV-U’V’| is bounded by twice the reciprocal of the smallest singular value times their difference.

  • Experiments show that the smallest singular value is usually large

16 of 56

Smallest Singular Value of SVD for Registering A Pair of Real Images with MM algorithm is large

17 of 56

Performance Comparison with GD methods

  • MM with Nesterov acceleration compared with Nesterov-accelerated Block Gradient Descent with fine-tuned step-size parameters.
  • MM holds the advantage of being faster, more robust and parameter-free.
  • Advantages have been demonstrated for both simulated and real images under noisy conditions.

18 of 56

Real Images of Mouse Brain Microscopy Slices

19 of 56

Performance Comparison on Simulated Images (Blue-MM, Beige-GD)

20 of 56

Statistical Analysis of Registering 102 Pairs of Real Images

  • 90% of the times the MM algorithm outperforms block descent in speed at 200th iteration.
  • Block descent method occasionally (8% of the times) converges to a local maximum lower than the maximum achieved by MM, while the reverse never happens.

Difference in Cost= MM Cost-GD Cost (blue-MM, Red-GD)

21 of 56

Possible Extensions

  • We added a scaling factor (replace R with sR)
  • Making the algorithm more robust to imaging artifacts.
  • Robust sequential registration (focus of our next paper)
  • Consider a general affine transformation (replace R with some invertible matrix A)

22 of 56

Robust Alignment of Sequential Images

  • Important for 3D reconstruction and common coordinate mapping
  • Due to many imaging artifacts, algorithm has to be robust
  • Sequential pairwise registration leads to accumulation of errors

23 of 56

Starting Point of our Registration Problem

  • Goal: rigidly align a sequence of brain microscopy slices to minimize the sum squared differences with respect to L2 norm.
  • This non-linear intensity-based problem requires an iterative optimization approach. Rigid usually an initialization step before non-rigid alignment.
  • Efficiency and robustness become important as datasets scale up.

24 of 56

Rigid Registration of a Sequence of Images

  • Reminder we need to find a set of rigid transformations Ri such that we minimize the objective function

  • We proposed (avg. of aligned neighbors)

then derived MM surrogate function below via Jensen’s inequality

25 of 56

Another Model of Sequential Registration

  • Equivalent when registration is rigid
  • Non-equivalent if transformations are deformable
  • We need both parameters and a reconstructed volume (atlas)
  • Decouples all pairs of transformations and easy to add robustness

26 of 56

Robust Objective Function

  • We control a special robust loss function with the parameter c

27 of 56

Transformations as Diffeomorphisms

  • Transformations and their inverses smooth/differentiable
  • Preserves topology and physical realism
  • We remove noise in the reconstructed volume (atlas) in 3D (possibly anisotropically) and control it with the parameter a

28 of 56

LDDMM as a Deformable Pairwise Registration Method:

Large Deformation Diffeomorphic Metric Matching

  • LDDMM as an ODE-constrained optimization
  • Guarantees diffeomorphism
  • Hilbert gradient descent or geodesic shooting
  • Computationally expensive
  • Stationary Velocity Field (SVF)
  • Scaling and Squaring method solves SVF

29 of 56

Scaling and Squaring to Solve SVF Registration

  • We use repeated interpolations and function compositions to estimate the flow of a time-independent vector field at t=1

30 of 56

Optimizing the Objective Function

  • First use MM to reduce robust function into weighted least squares

31 of 56

Another MM for Updating Reconstructed Volumes (Atlases)

  • Inverting (LL+K) is difficult, but inverting (LL+id) with FFT is easy
  • Design a surrogate function that can be easily solved with FFT

32 of 56

Applications

33 of 56

Koay et al. 2016

34 of 56

35 of 56

36 of 56

37 of 56

38 of 56

Testing Robustness with Imaging Artifacts

39 of 56

Multimodality Robustness with MIND Preprocessing

40 of 56

Analysis of Spatial Transcriptomics and Brain Regional Network:

Sylvester Equation Connection

  • Spatial transcriptomics combines both spatial and RNA gene expression data.
  • One central task in ST is to learn cell types
  • Reasonable assumptions lead to regularized clustering
  • Brain regional networks for neuroscience and clinical applications
  • fMRI connectivity data is noisy, high dimensional and variable
  • Link to Sylvester equation via graph theory

Yao et al. (2023)

41 of 56

Sylvester and Transposed Sylvester Equation

  • AX+XB=C and AX+XᵀB=C
  • Used in control theory and factor analysis
  • Vectorization inefficient
  • Established algorithms: Bartels-Stewart and conjugate gradient
  • Focus: A large, possibly sparse and B small and dense for Sylvester (A tall B wide for the transposed Sylvester)
  • Example: previous spatial transcriptomics problem
  • Brain regional functional network detection is another
  • We propose MM algorithms for these equations
  • Then we focus on these two applications

42 of 56

Problem Formulation for Spatial Transcriptomics

  • Row of Y: features attached to each node (cell)
  • Row of X: cluster centers
  • Row of A: admixture coefficients for each cell.
  • Penalty: smoothness on the admix coefficients of neighboring cells
  • How is this related to the Sylvester equation? Graph Laplacian L
  • # of cell types << # of cells, so dim L >> dim XXᵀ
  • Efficiently solve this type of Sylvester equations

43 of 56

MM Algorithms for General Sylvester Equation

  • Matrix A large and possibly sparse, B small and dense (m>>n)
  • Eigendecomposition feasible for B, but not for A
  • Power iteration feasible to obtain largest eigenvalue of A

44 of 56

MM for Regularized Clustering

45 of 56

MM for Transposed Sylvester Equation

  • Bartels-Stewart method does not work here
  • Assume A tall, B wide

46 of 56

Performance Comparisons with Numerical Experiments

47 of 56

Regularized Clustering in Spatial Transcriptomics

  • Mouse brain data set with 5210 cells and 451 genes into 14 cell types
  • Ill-defined unless A is constrained
  • Iterative projection onto the unit simplex
  • Same # of cell types as Allen’s

Yao et al. (2023)

48 of 56

Clustering Results

  • Clustering similarity measured with adjusted Rand index
  • Easy to select the top r genes driving the clustering
  • Number r can be selected based on BIC curve

Yao et al. (2023)

49 of 56

Joint Graph Embedding

  • Joint Graph Embedding generalizes Adjacency Spectral Embedding
  • Node i has a latent representation xi of lower dim n
  • P(i,j)= xiᐧxj
  • ASE is a low-rank matrix decomposition
  • JGE is ASE for m graphs with s common vertices
  • Each graph has its own weights (loading vector)
  • Equivalent to a certain tensor decomposition

50 of 56

51 of 56

JGE for Brain Regional Network Detection from fMRI data

  • Correlations on all pairs of 112 brain regions from ABIDEII (Autism Brain Imaging Data Exchange)
  • Thresholded to adjacency matrices for 21 subjects
  • High dimensional, noisy and variable
  • Embedding: dimension reduction, interpretability and visualization
  • JGE proposed by Wang et al. (2021) finds a shared embedding space for multiple graphs across subjects or time points

52 of 56

Tward and He, (2023)

53 of 56

MM Performance for Simulated Graphs JGE

54 of 56

MM Performance for brain fMRI JGE

(GD used in Wang et al. (2021))

55 of 56

Future Directions

  • Directed and weighted graphs
  • Smoothing of loading vectors in JGE
  • Larger data sets
  • Generalized Sylvester

56 of 56

Thank You for Your Time!

References

Zhou G, Tward D, Lange K. A Majorization-Minimization Algorithm for Neuroimage Registration. SIAM J Imaging Sci. 2024;17(1):273-300. doi: 10.1137/22m1516907. PMID: 38550750; PMCID: PMC10977051.

Zhou G, Tward D, Lange K. A Robust MM Algorithm for Sequential Neuroimage Registration. Submitted to SIAM J Imaging Sci

Zhou G, Tward D, Lange K. MM Algorithms for Sylvester Equations with Applications in Clustering and Graph Embedding. Preprint