NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ColocAI: artificial intelligence approach to quantify co-localization between mass spectrometry images

Katja Ovchinnikova, Alexander Rakhlin, Lachlan Stuart, Sergey Nikolenko, Theodore AlexandrovbioRxiv 2019

TL;DR

This paper introduces ColocAI, an AI-driven approach to quantify how well different molecules are spatially located together in tissue images from mass spectrometry. By creating a large, expert-annotated dataset, they rigorously evaluated existing methods and developed new ones, finding that a semi-supervised deep learning model and a refined cosine similarity score perform best, approaching human-level agreement.

What Problem Does This Paper Address?

Imaging mass spectrometry (IMS) is a powerful technique for mapping the spatial distribution of molecules within tissue samples. A key aspect of analyzing IMS data is determining "co-localization" – whether different molecules tend to appear in the same locations. This is crucial for understanding biological processes, identifying disease markers, and drug development. However, the field has lacked a standardized, comprehensive evaluation of co-localization measures. This has led to researchers arbitrarily choosing methods, hindering progress and making it difficult to compare results across studies. The core challenge is the absence of a "ground truth" dataset to objectively assess these measures.

Methods

The authors tackled this problem by first creating a high-quality "gold standard" dataset. They recruited 42 experts from 9 different labs to manually rank pairs of ion images (representing molecule distributions) based on their perceived co-localization. This was facilitated by a web application called RankColoc.

They then used this gold standard to evaluate and develop co-localization measures:

  • Existing Measures: They assessed standard methods like Pearson correlation, Spearman correlation, and cosine similarity, as well as the Structural Similarity Index (SSIM).
  • Novel Measures:
    • TF-IDF based: Inspired by natural language processing, they adapted the term frequency-inverse document frequency (tf-idf) concept to quantify the importance of pixels for specific ion images.
  • Deep Learning Models: They developed several deep learning architectures, including an Xception-based model, a Mu model, and an unsupervised UMAP approach.
  • Image Transformations: To optimize performance, they explored various image preprocessing steps like hotspot removal, median filtering, and quantile thresholding, evaluating their impact through cross-validation.

Datasets

The primary dataset used in this study is a newly created gold standard set of 2210 ranked pairs of ion images, derived from 234 public IMS datasets. This dataset was manually annotated by 42 experts.

Additionally, they utilized public METASPACE datasets (3685 datasets, ~40,000 unlabelled ion images, ~56,000 unlabelled pairs) for training the semi-supervised Pi model, leveraging both labelled and unlabelled data.

Key Insights and Ideas

  • Expert Consensus is Achievable: The study demonstrates that despite the subjective nature of co-localization, a high degree of agreement can be achieved among experts, validating the creation of a reliable gold standard.
  • Deep Learning Shows Promise, But Simpler Methods Can Compete: While advanced deep learning models like the Pi model achieve top performance, refined traditional methods like cosine similarity with appropriate preprocessing are highly competitive, suggesting that the problem might not require the full complexity of deep learning in all cases.
  • Preprocessing Matters: Image transformations, particularly quantile thresholding, significantly impact the performance of co-localization measures, highlighting the importance of data preparation.
  • "Noise" in Co-localization: The authors suggest that the inherent "noise" in co-localization perception might limit how much further performance can be improved, implying that current top models are approaching human-level accuracy.

Key Results

  • The semi-supervised deep learning Pi model achieved the highest performance, with a mean Spearman correlation of 0.797 against expert rankings.
  • The cosine score applied after median thresholding was the second-best performing measure, with a mean Spearman correlation of 0.794.
  • The average pairwise agreement between experts was 0.791 (Spearman), indicating that the best computational measures are approaching human-level performance.
  • They successfully inferred co-localization relationships for 10273 molecules from 3685 public METASPACE datasets, visualizing these relationships using UMAP.
  • The study found that chemically related molecules, like glycerolipids and glycerophospholipids, formed distinct clusters in the UMAP visualization, confirming the biological relevance of the inferred co-localization.

Limitations and Future Work

  • Gold Standard Scale: Creating the gold standard was extremely time-consuming and labor-intensive. The authors do not expect it to be replicated on a large scale in the near future.
  • Active Learning for Improvement: For future gold standard creation, they suggest using active learning to select comparison ions where models are most uncertain, rather than random selection.
  • Continuous Gold Standard: They propose an online approach where METASPACE users could contribute to a continuous, albeit smaller-scale, gold standard.
  • Contextual Co-localization: Future work could focus on developing methods that consider the "molecular microenvironment" rather than just the "tissue section" context for more nuanced co-localization analysis.
  • Ensemble Methods: The authors suggest that combining the best performing measures (e.g., Pi model and cosine similarity) could potentially lead to even better performance.

Summary updated

BibTeX
@misc{ovchinnikova2019colocai,
  author = {Katja Ovchinnikova and Alexander Rakhlin and Lachlan Stuart and Sergey Nikolenko and Theodore Alexandrov},
  title = {{ColocAI: artificial intelligence approach to quantify co-localization between mass spectrometry images}},
  year = {2019},
  doi = {10.1101/758425},
  howpublished = {bioRxiv},
}
Figure