Classification of Tissues on MALDI-MSI Image Modality for Pancreatic Cancer Studies

Abubakar Qahir, Jenny Benois-Pineau, Victoria Bourgeais, Fabien Baldacci, Sandrine Dabernat, Nicolas Desbenoit, Mélanie Moreau, Mehdi Boubaddi, Marion MartyarXiv 2026 · arXiv

TL;DR

Researchers have developed a fully automated pipeline that transforms raw Mass Spectrometry Imaging (MSI) data into deep-learning-ready patches in just 20 minutes—a task that previously took experts a full working day. Using this pipeline and a Swin Transformer model, they achieved up to 0.94 accuracy in classifying tumoral versus non-tumoral pancreatic tissue.

What Problem Does This Paper Address?

Pancreatic ductal adenocarcinoma (PDAC) is one of the deadliest cancers, often diagnosed too late for effective treatment. Matrix-Assisted Laser Desorption/Ionization Mass Spectrometry Imaging (MALDI-MSI) is a powerful tool for studying PDAC because it maps the spatial distribution of thousands of molecules across a tissue sample without requiring labels.

However, the "raw" data from these machines is a mess. It suffers from spectral misalignment, noise from the chemical matrix, and massive file sizes. Traditionally, cleaning this data (preprocessing) requires experts to interactively select peaks and align spectra, creating a massive bottleneck for AI research. You can't train a deep learning model on thousands of samples if it takes a human expert eight hours just to prep one patient's data.

Methods

The authors built an end-to-end automated workflow to bridge the gap between raw mass spectra and computer vision models.

  1. Automated Preprocessing: The pipeline performs peak picking, spectral realignment, deisotoping (removing redundant isotopic peaks), and Total Ion Current (TIC) normalization. A key innovation is using a "bisection-on-the-derivative" approach to automatically find the optimal prominence threshold for peak selection, ensuring the most informative molecular signals are kept.
  2. Informative Selection: Not every molecular "image" (ion map) generated by MSI is useful. The team used an entropy-based criterion to automatically select the most "informative" images and patches, filtering out noise and empty background.
  3. Classification: They adapted a Swin Transformer Tiny architecture for the final classification task. Unlike standard CNNs, the Swin Transformer uses a hierarchical approach with shifted windows, which is particularly good at capturing the complex spatial relationships in molecular maps.

![Fig.

  1. Proposed pipeline for MALDI-MSI classification.](/figures/art_d6792f357b21489e996423e8d5d4864e)

Datasets

The study utilized two distinct datasets:

  • PDAC Dataset 1 (Primary): High-resolution data ($26 \mu m$ pixel size) acquired from fresh frozen pancreas tissues of two patients. This dataset included both positive and negative ionization modes.
  • Barrett’s Esophagus Dataset 2 (Public): A lower-resolution open-source dataset ($50 \mu m$ pixel size) used to test the pipeline's generalizability across different tissue types and resolutions.

Key Insights and Ideas

  • Speed vs. Quality: The automated pipeline is roughly 70 times faster than manual expert processing (20 minutes vs. ~14 hours). Crucially, the image quality (measured by Mean Squared Error) remained nearly identical to expert-curated results.
  • Spatial Context is King: The researchers found that patch size significantly impacts accuracy. Larger patches ($64 \times 64$ pixels) consistently outperformed smaller ones ($16 \times 16$). This suggests that the model needs a certain amount of "spatial neighborhood" to distinguish cancerous tissue from healthy stroma.
  • Resolution Sensitivity: There is a stark performance gap between high-resolution and low-resolution data. The model struggled on the lower-resolution public dataset, highlighting that for MSI-based AI to be effective in the clinic, high-quality data acquisition is non-negotiable.

Key Results

The results demonstrate that automated MSI processing is viable for high-stakes cancer classification:

  • Accuracy: On the high-resolution PDAC dataset, the models achieved a peak accuracy of 0.94 (Patient 1, Negative mode).
  • Consistency: Even with limited data (only two patients), building individual models for each patient and ionization mode yielded strong F1-scores, as seen in the detailed breakdown in Table 2.
Table 2. Dataset-1 classification results of the reduced Swin Transformer for each patient and mode, patch sizes 64, 32 and 16, top-16 patch selection.

Limitations and Future Work

The primary limitation is the small cohort size; the high-resolution results are based on only two patients, which limits the ability to claim a "universal" pancreatic cancer model. Additionally, while the model is great at classifying the tissue, it doesn't yet explain which specific molecules (lipids, proteins, etc.) are driving the decision.

The authors state that the next frontier is "explainable AI"—interpreting the discriminant molecular features to discover new biomarkers for pancreatic cancer.

Summary updated

Abstract

Mass Spectrometry Imaging (MSI) spatially maps molecular distributions in tissue sections. Despite the availability of preprocessing tools for MSI data, building end-to-end workflows suitable for deep learning remains challenging. We have developed a fully automated pipeline for transformation of raw Matrix-Assisted Laser Desorption/Ionization Mass Spectrometry imaging (MALDI-MSI) data into deep-learning-ready image patches for binary pancreatic tissue classification (tumoral vs non-tumoral) and built individual models for recognition of tumoral regions in spectral images. Images resulting from the proposed pipeline and from reference interactive workflow are very close in terms of image quality metric mean squared error (MSE). The proposed pipeline computational time is of 20 min in average compared to a full working day of the reference interactive workflow. The models achieved 0.94 accuracy on high-resolution spectra and a mean accuracy of 0.59 on lower-resolution spectra.
BibTeX
@misc{qahir2026classification,
  author = {Abubakar Qahir and Jenny Benois-Pineau and Victoria Bourgeais and Fabien Baldacci and Sandrine Dabernat and Nicolas Desbenoit and Mélanie Moreau and Mehdi Boubaddi and Marion Marty},
  title = {{Classification of Tissues on MALDI-MSI Image Modality for Pancreatic Cancer Studies}},
  year = {2026},
  eprint = {2611.22680},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22680},
}
Figure