arXiv reader

Explainable Binary Classification of Separable Shape Ensembles

Zachary Grey, Nicholas Fisher and Andrew Glaws

arXiv
2410.12994v2 · PDF · 8 January 2026
Categories
cs.CV, math.ST, stat.TH
Licence
CC0 1.0 The site shows the text.

Abstract

Scientists, engineers, biologists, and technology specialists universally leverage image segmentation to extract shape ensembles containing many thousands of curves representing patterns in observations and measurements. These large curve ensembles facilitate inferences about important changes when comparing and contrasting images. We introduce novel pattern recognition formalisms combined with inference methods over large ensembles of segmented curves. Our formalism involves accurately approximating eigenspaces of composite integral operators to motivate discrete, dual representations of curves collocated at quadrature nodes. Approximations are projected onto underlying matrix manifolds and the resulting separable shape tensors constitute rigid-invariant decompositions of curves into generalized (linear) scale variations and complementary (nonlinear) undulations. With thousands of curves segmented from pairs of images, we demonstrate how data-driven features of separable shape tensors inform explainable binary classification utilizing a product maximum mean discrepancy; absent labeled data, building interpretable feature spaces in seconds without high performance computation, and detecting discrepancies below cursory visual inspections.

Items 11

Lemma

Lemma 1

ANNX

k_{\mathcal{T}}[\boldsymbol{c}] is symmetric.

Proof of Lemma 1

By definition of the scalar dot product, k_{\mathcal{T}}[\boldsymbol{c}](s,u) = \mathcal{T}[\boldsymbol{c}](s) \cdot \mathcal{T}[\boldsymbol{c}](u) = \mathcal{T}[\boldsymbol{c}](u) \cdot \mathcal{T}[\boldsymbol{c}](s) = k_{\mathcal{T}}[\boldsymbol{c}](u,s).

Lemma

Lemma 2

OI78

If v \in L^2(\mathcal{I},\mu) and \boldsymbol{c} \in \mathcal{C}_d then \mathcal{K}_{\mathcal{T}}[\boldsymbol{c}] such that

(\mathcal{K}_{\mathcal{T}}v)[\boldsymbol{c}](\cdot) = \int_{\mathcal{I}}\left(\mathcal{T}[\boldsymbol{c}] \cdot \mathcal{T}[\boldsymbol{c}]\right)(\cdot,u)v(u) d\mu(u),

is a Hilbert-Schmidt (HS) integral operator.

Proof of Lemma 2

Assuming an integrable curve implies boundedness of \mathcal{T}[\boldsymbol{c}] in (?) and thus

\int_{\mathcal{I}\times \mathcal{I}}\vert k_{\mathcal{T}}[\boldsymbol{c}](s,u)\vert^2d\mu(s)d\mu(u) < \infty.

The remainder is simply an application of Theorem 2.1 of [fasshauer2015kernel]. In short, Theorem 2.1 in [fasshauer2015kernel] states \mathcal{K}_{\mathcal{T}}[\boldsymbol{c}] is a Hilbert-Schmidt operator and every Hilbert-Schmidt operator on L^2(\mathcal{I}, \mu) is of the form (2) for some unique k_{\mathcal{T}}[\boldsymbol{c}]:(s,u) \mapsto k_{\mathcal{T}}[\boldsymbol{c}](s,u) in L^2(\mathcal{I} \times \mathcal{I},\mu\times \mu).

Lemma

Lemma 3

KZ3D

The CLO is invariant to permutations, rotations, and reflections, R \in O(d), and translations, \boldsymbol{b} \in \mathbb{R}^d which are assumed independent of the curve parameter.

Proof of Lemma 3

Given \mathcal{T}[\boldsymbol{c} +\boldsymbol{b}] = \mathcal{T}[\boldsymbol{c}] for arbitrary \boldsymbol{b} \in \mathbb{R}^d independent of the curve parameter. Additionally, for arbitrary R \in O(d) independent of the curve parameter,

\begin{aligned} k_{\mathcal{T}}[R\boldsymbol{c} + \boldsymbol{b}] &= \left(R\mathcal{T}[\boldsymbol{c} + \boldsymbol{b}]\right) \cdot \left( R \mathcal{T}[\boldsymbol{c} + \boldsymbol{b}]\right)\\ &= \left(R\mathcal{T}[\boldsymbol{c}]\right) \cdot \left( R \mathcal{T}[\boldsymbol{c}]\right)\\ &= \mathcal{T}[\boldsymbol{c}] \cdot \left( R^{\top}R \mathcal{T}[\boldsymbol{c}]\right)\\ &= \mathcal{T}[\boldsymbol{c}]\cdot \mathcal{T}[\boldsymbol{c}]\\ &= k_{\mathcal{T}}[\boldsymbol{c}] \end{aligned}
Definition

Definition 1 (Evaluation functionals of RKHS, )

VSRQ

Assume (\mathcal{H}_d, \langle \cdot, \cdot \rangle_{\mathcal{H}_d}) is a Hilbert space of \mathbb{R}^d-valued functions defined over \mathcal{I}, \mathcal{H}_d is a Reproducing Kernel Hilbert Space (RKHS) if evaluation functionals,

f_s^{\alpha}:\mathcal{H}_d \rightarrow \mathbb{R}\,:\,\boldsymbol{\tau} \mapsto \boldsymbol{\alpha} \cdot \boldsymbol{\tau}(s),

are linear and continuous over \mathcal{H}_d and in \boldsymbol{\alpha}\in \mathbb{R}^d for all s \in \mathcal{I}, i.e., f^{\alpha}_{s}\in \mathcal{H}^*_d is a dual representation of the curve.

Theorem

Theorem 1

U0AW

Eigenfunctions of the CLO are PRRTI orthonormal evaluation functionals of \mathcal{C}_d \cap \mathcal{H}_d.

Proof of Theorem 1

Substituting the definition of the CLO into the generalized FIE,

\begin{aligned} \sigma_j^2v_j(s) &= \langle k_{\mathcal{T}}[\boldsymbol{c}](s,\cdot), v_j\rangle_{\mathcal{H}^*_d}\\ &= \langle \boldsymbol{\tau}(s)\cdot \boldsymbol{\tau}(\cdot), v_j\rangle_{\mathcal{H}^*_d} \\ &=\langle \sum_{j'=1,\dots,d}\tau_{j'}(s)\tau_{j'}(\cdot), v_j\rangle_{\mathcal{H}^*_d}\\ &=\sum_{j'=1,\dots,d}\tau_{j'}(s)\langle \tau_{j'}, v_j \rangle_{\mathcal{H}^*_d} \end{aligned}

Thus, solving for the eigenfunctions as the (scaled) evaluation functionals implies

v_j(s) = \frac{1}{\sigma^2_j}\boldsymbol{\alpha}_j \cdot \boldsymbol{\tau}(s)

where \boldsymbol{\alpha}^{\top}_j \coloneqq (\langle \tau_1,v_j\rangle_{\mathcal{H}^*_d},\dots,\langle \tau_d,v_j\rangle_{\mathcal{H}^*_d}). In other words, the j-th eigenfunctions are a linear combination of the component functions of the curve for non-trivial \boldsymbol{\alpha}_j \neq 0.

Substituting the solution (Proof) for v_j(s) back into the definition of \boldsymbol{\alpha}^{\top}_j = (\alpha_{j1},\alpha_{j2},\dots,\alpha_{jd}) reveals an algebraic dual of eigensolutions as paired eigenvalues and eigenfunctions:

\begin{aligned} \boldsymbol{\alpha}_j &= \frac{1}{\sigma_j^2}\left(\begin{matrix} \langle \tau_1,\boldsymbol{\alpha}_j \cdot \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d}\\ \vdots \\ \langle \tau_d,\boldsymbol{\alpha}_j \cdot \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d} \end{matrix}\right)\\ &= \frac{1}{\sigma_j^2}\left(\begin{matrix} \langle \tau_1,\sum_{j'=1,\dots,d}\alpha_{jj'}\tau_{j'}\rangle_{\mathcal{H}^*_d}\\ \vdots\\ \langle \tau_d,\sum_{j'=1,\dots,d}\alpha_{jj'}\tau_{j'}\rangle_{\mathcal{H}^*_d} \end{matrix}\right)\\ &= \frac{1}{\sigma_j^2}\left(\begin{matrix} \sum_{j'=1,\dots,d}\langle \tau_1,\tau_{j'}\rangle_{\mathcal{H}^*_d}\alpha_{jj'} \\ \vdots\\ \sum_{j'=1,\dots,d}\langle \tau_d,\tau_{j'}\rangle_{\mathcal{H}^*_d}\alpha_{jj'}\\ \end{matrix}\right)\\ &= \frac{1}{\sigma_j^2}\left(\begin{matrix} \langle \tau_1,\tau_1\rangle_{\mathcal{H}^*_d} & \dots & \langle \tau_1,\tau_d\rangle_{\mathcal{H}^*_d}\\ \vdots & \ddots & \vdots \\ \langle \tau_d,\tau_1\rangle_{\mathcal{H}^*_d} & \dots &\langle \tau_d,\tau_d\rangle_{\mathcal{H}^*_d} \end{matrix}\right)\boldsymbol{\alpha}_j\\ &\coloneqq \frac{1}{\sigma_j^2}\langle \boldsymbol{\tau} \otimes \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d}\boldsymbol{\alpha}_j. \end{aligned}

We have defined \langle \boldsymbol{\tau} \otimes \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d} as the component-wise integration of the outer product of centered component functions. Rearranging this expression implies the eigenproblem,

\left( \langle \boldsymbol{\tau} \otimes \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d} - \sigma_j^2 \mathbb{I}_d \right)\boldsymbol{\alpha}_j =\boldsymbol{0}, \quad j=1,\dots,d.

Here, \langle \boldsymbol{\tau} \otimes \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d} \coloneqq \langle \mathcal{T}[\boldsymbol{c}] \otimes \mathcal{T}[\boldsymbol{c}]\rangle_{\mathcal{H}^*_d}\in S^d_{++} is symmetric positive definite (full rank) by symmetry of the inner product \langle\cdot, \cdot\rangle_{\mathcal{H}^*_d} and the assumed linearly independent component functions, \tau_j for j=1,\dots,d.

Next, note that \langle\boldsymbol{\tau}\otimes\boldsymbol{\tau}\rangle_{\mathcal{H}^*_d} admits strictly positive real eigendecomposition \langle \boldsymbol{\tau} \otimes \boldsymbol{\tau} \rangle_{\mathcal{H}^*_d} = A\Sigma^2_d A^{\top} = (A\Sigma_d)(\Sigma_d A^{\top}) where A \in O(d). That is, columns of A = (\boldsymbol{\alpha}_1, \boldsymbol{\alpha}_2,\dots, \boldsymbol{\alpha}_d) satisfy \boldsymbol{\alpha}_j \cdot \boldsymbol{\alpha}_{j'} =\delta_{jj'} where \delta_{jj'} is Kronecker’s delta function. Thus, \Sigma_d A^{\top}\boldsymbol{\alpha}_j = \sigma_j\boldsymbol{e}_j, with \boldsymbol{e}_j the j-th column of the identity, implies

\begin{aligned} \langle v_j, v_{j'} \rangle_{\mathcal{H}^*_d} &= \frac{1}{\sigma_j^2 \sigma_{j'}^2}\boldsymbol{\alpha}_j^{\top}\langle \boldsymbol{\tau} \otimes \boldsymbol{\tau}\rangle_{\mathcal{H}^*_d}\boldsymbol{\alpha}_{j'} \\ &= \frac{1}{\sigma_j^2 \sigma_{j'}^2}(\Sigma_d A^{\top}\boldsymbol{\alpha}_j)\cdot(\Sigma_d A^{\top}\boldsymbol{\alpha}_{j'}) \\ &= \frac{1}{\sigma_j^2 \sigma_{j'}^2}(\sigma_j\boldsymbol{e}_j)\cdot (\sigma_{j'}\boldsymbol{e}_{j'})\\ &= \frac{1}{\sigma_j\sigma_{j'}} \delta_{jj'}. \end{aligned}

Normalizing the eigenfunctions to be orthonormal such that \Vert \widetilde{v}_j\Vert_{\mathcal{H}_d} = 1 results in

\widetilde{v}_j(s) \coloneqq v_j(s)\biggl / \sqrt{\langle v_j, v_j \rangle_{\mathcal{H}^*_d}} = \frac{1}{\sigma_j}\boldsymbol{\alpha}_j\cdot\boldsymbol{\tau}(s).
Theorem

Theorem 2 (Separable Cyclic Procrustes)

5E01

Given translated discrete shapes X,Y \in \mathbb{R}^{n\times d}_* (full rank), \mathcal{N} = \lbrace 1,\dots,n\rbrace \subset \mathbb{N}, p-cycles as powers of the permutation matrix

C(p) = \begin{bmatrix} \boldsymbol{0}& \mathbb{I}_{n-1} \\ 1 &\boldsymbol{0}^{\top} \end{bmatrix}^p

for all p\in\mathcal{N}, and \mathcal{L}(p) \coloneqq Y^{\top}C(p)X full rank, (p_*, R_*) is an optimal solution of

\underset{p \in \mathcal{N},\, R \in O(d)}{\text{minimize}}\,\Vert C(p)X - YR\Vert_{F}

if, and only if,

p_* = \underset{p\in \mathcal{N}}{\text{argmax}} \,\Vert \mathcal{L}(p) \Vert_1

where \mathcal{L}({p_*}) \overset{SVD}{=} U_{*}\Omega_{*}V_{*}^{\top} such that R_* = U_{*}V^{\top}_{*}.

Proof of Theorem 2

Maximization of our derived parametric problem statement is equivalent to maximization of the form of Umeyama’s Lagrangian—defined in the proof of the Lemma in [umeyama1991leastsquares] and denoted here as \mathcal{U}. Rewritten absent the sign convention for general R\in O(d) and composition over p, Umeyama’s Lagrangian is

\begin{aligned} \mathcal{U}(p) &= \Vert C(p)X\Vert^2_F + \Vert YR\Vert^2_F - 2\Vert \mathcal{L}(p)\Vert_1 \\ &= \Vert X\Vert^2_F + \Vert Y\Vert^2_F - 2\Vert \mathcal{L}(p)\Vert_1. \end{aligned}

Next, consider an equivalent problem stated with an extraneous constraint identifying parameter separability similar to [golub1973differentiation],

\begin{matrix} \underset{p \in \mathcal{N}}{\text{maximize}} & \,\Vert \mathcal{L}(p)\Vert_1\\ \text{such that} & R = \pi_{\mathcal{U}}(\mathcal{L}(p)). \end{matrix}

However, distinct from [golub1973differentiation], the bijection,

\pi_{\mathcal{U}}(\cdot) \coloneqq (\cdot)(V_p\Omega_p^{-1}V_p^{\top}),

is defined by the SVD, \mathcal{L}(p) \,\overset{SVD}{=} U_p\Omega_pV_p^{\top}, such that \Omega_p = \text{diag}(\omega_1(p),\omega_2(p),\dots,\omega_d(p)) with \omega_1(p) \geq \omega_2(p)\geq \dots \geq \omega_d(p)>0.

Finally, we argue that the extraneous parametric constraint \pi_{\mathcal{U}}(\mathcal{L}(p)) for any p is best. By definition, \pi_{\mathcal{U}}(\mathcal{L}(p)) is best if and only if \langle \pi_{\mathcal{U}}(\mathcal{L}(p)),\mathcal{L}(p)\rangle_F > \langle R ,\mathcal{L}(p)\rangle_F for all R \neq \pi_{\mathcal{U}}(\mathcal{L}(p)) \in O(d) and p \in \mathcal{N}. Equivalently, it is sufficient to show \langle R - \pi_{\mathcal{U}}(\mathcal{L}(p)), \mathcal{L}(p) \rangle_F<0 for all R \neq \pi_{\mathcal{U}}(\mathcal{L}(p)) \in O(d). Utilizing the definition of \pi_{\mathcal{U}},

\begin{aligned} \langle \pi_{\mathcal{U}}(\mathcal{L}(p)), \mathcal{L}(p)\rangle_F &= \langle \mathcal{L}(p)(V_p\Omega_p^{-1}V_p^{\top}), \mathcal{L}(p) \rangle_F\\ & = \langle U_p\Omega_pV_p^{\top}(V_p\Omega_p^{-1}V_p^{\top}), \mathcal{L}(p) \rangle_F\\ & = \langle U_pV_p^{\top}, U_p\Omega_pV_p^{\top} \rangle_F\\ & = \text{tr}(V_p\Omega_pV_p^{\top})\\ &= \Vert \mathcal{L}(p) \Vert_1 \end{aligned}

and, thus,

\begin{aligned} \langle R - \pi_{\mathcal{U}}(\mathcal{L}(p)),\mathcal{L}(p)\rangle_F &= \langle R,\mathcal{L}(p)\rangle_F - \langle \pi_{\mathcal{U}}(\mathcal{L}(p)), \mathcal{L}(p)\rangle_F \\ &= \langle R,\mathcal{L}(p)\rangle_F - \Vert \mathcal{L}(p) \Vert_1. \end{aligned}

By the original argument of orthogonal Procrustes solution [gibson1962least, schonemann1966generalized, lawrence2019purely],

\begin{aligned} \langle R,\mathcal{L}(p)\rangle_F &= \text{tr}(R^{\top}U_p\Omega_pV_p^{\top}) \\ &= \text{tr}(V_p^{\top}R^{\top}U_p\Omega_p) \\ &= \langle Q_p, \Omega_p\rangle_F \end{aligned}

for some Q_p = U_p^{\top}RV_p \in O(d) which satisfies \langle Q_p, \Omega_p\rangle_F \leq \langle \mathbb{I}_d, \Omega_p\rangle_F = \Vert \mathcal{L}(p) \Vert_1 with equality when Q_p = \mathbb{I}_d. However, Q_p = \mathbb{I}_d if and only if R = U_pV_p^{\top} = \pi_{\mathcal{U}}(\mathcal{L}(p)), thus \langle R,\mathcal{L}(p)\rangle_F - \Vert \mathcal{L}(p) \Vert_1 < 0 for all R \neq \pi_{\mathcal{U}}(\mathcal{L}(p)) \in O(d).

Source and licence

The text on this page is from arXiv:2410.12994v2 by Zachary Grey, Nicholas Fisher and Andrew Glaws, under the licence CC0 1.0. The corpus made these changes: it read the items out of the LaTeX source, it expanded the macros of the paper, it put each proof after its statement, and it converted the text to HTML. The formulas are the TeX of the paper, and KaTeX renders them. A formula or a reference can look different from the PDF. The page is published under CC BY 4.0.

The record of each item is in analysis/objects/2410/2410.12994.jsonl.