Work

Spatial-spectral hypergraph attention for unsupervised segmentation of lung cancer MALDI-FTICR imaging: a leave-one-patient-out benchmark against classical clustering

Year: 2026
Type: preprint
Abstract: Background Graph neural networks are increasingly used to segment mass spectrometry imaging (MSI) data without labels, but they are seldom tested on patients they have never seen, and seldom against plain clustering. I built a spatial-spectral hypergraph attention network (HyperGAT) for lung cancer MALDI-FTICR imaging and asked whether linking spatially distant regions that share a metabolic profile helps segment new patients. Methods Seven public lung cancer MALDI-FTICR sections were downloaded from METASPACE through its Python API and divided into 2,936 superpixels described by 108 m/z features. Each section became a hypergraph with spatial, non-local spectral and metabolic-module hyperedges. A two-level attention encoder was trained with a reconstruction loss and a soft k -means loss. HyperGAT was compared with seven baselines and six ablated variants by leave-one-patient-out cross-validation (LOPO-CV, three seeds), with the number of clusters chosen inside each training fold. Results Every fold selected two clusters. HyperGAT gave the best silhouette among the learned models (0.297 ± 0.047, against 0.161 to 0.217 for graph attention networks and a Gaussian mixture) and was on par with a 3D convolutional autoencoder. Removing any of its components lowered performance, by 6% to 49%. Yet k -means on standardised spectra beat HyperGAT in all seven held-out patients (silhouette 0.445 ± 0.074; Davies-Bouldin 1.28 vs 1.80; spatial coherence 0.954 vs 0.930). None of these differences remained significant after Holm correction. A distance-based margin score rose at the boundaries between metabolic compartments in every held-out patient (mean AUC 0.684). Conclusions On this small, low-resolution cohort, hypergraph attention was the strongest graph model I tested, but it did not outperform classical clustering. Deep unsupervised MSI methods should be reported with patient-level validation, per-section normalisation and a k -means baseline. The code and data retrieval scripts are public.
Language: English
Open Access status: green
OpenAlex ID: W7239889245
Cites: 19
Cited by:
Related to: 10