SEAL: Spatially-resolved Embedding Analysis with Linked Imaging Data

Simon Warchol, Grace Guo, Johannes Knittel, Dan Freeman, Usha Bhalla, Jeremy L. Muhlich, Peter K. Sorger, Hanspeter PfisterIEEE TVCG 2025

TL;DR

This paper introduces SEAL, a visual analytics system that bridges the gap between abstract 2D embeddings of complex spatial data and their original high-dimensional imaging context. SEAL's novel "Hybrid Embedding" view integrates image cutouts directly into the embedding space, allowing users to explore spatial, morphological, and feature data simultaneously, leading to deeper insights in fields like cancer research and astronomy.

What Problem Does This Paper Address?

High-dimensional spatial datasets, common in fields like microscopy, satellite imaging, and astronomy, are incredibly rich but challenging to analyze. Dimensionality reduction (DR) techniques (like t-SNE or UMAP) project this complex data into a 2D space, making it easier to spot patterns and clusters. However, these DR methods often strip away crucial spatial, positional, and morphological context. This means that while you might see a cluster of cells in the 2D embedding, you lose track of where those cells were in the original tissue, what they looked like, and how they were arranged. This disconnect makes it hard to truly understand the biological or physical significance of the patterns observed in the embedding. SEAL aims to solve this by re-integrating this lost spatial and morphological information directly into the embedding visualization.

Methods

SEAL's core innovation is the Hybrid Embedding view. Instead of just plotting points, it places actual image cutouts of segmented entities (like cells or celestial objects) directly into the 2D embedding space. This is achieved by:

  1. Segmentation: Identifying individual entities within the original multi-channel image.
  2. Feature Extraction: Retaining all pixel information within each segmented entity's mask.
  3. Hybrid Embedding Construction: Placing these image cutouts at their corresponding positions in the DR embedding. A "semantic zoom" mechanism ensures that as users zoom in, more entities are revealed, preventing occlusion and preserving spatial detail.

To help users understand why entities are positioned where they are in the embedding, SEAL uses a scalable surrogate model (based on SHAP values) to calculate feature importance scores for each entity. These scores indicate which high-dimensional features most influence an entity's position in the embedding.

SEAL also incorporates set visualization techniques. Users can define "sets" of entities (e.g., clusters from the embedding, or regions of interest from the image) and then compare them. This includes mathematical set operations (union, intersection, difference) to explore shared or unique features between sets.

Datasets

The paper demonstrates SEAL's effectiveness across three case studies using real-world data:

  • Colorectal Cancer Tissue: A well-curated specimen with 22 protein biomarkers, segmented and quality-controlled.
  • Melanoma Tissue: A whole-slide section imaged with both H&E and high-plex immunofluorescence.
  • Sloan Digital Sky Survey (SDSS): Astronomical imaging data capturing celestial objects across multiple wavelengths.

The paper does not introduce new benchmark datasets but rather showcases SEAL's application on existing, complex, and high-dimensional spatial datasets.

Key Insights and Ideas

  • Spatial context is crucial for interpreting embeddings: The most significant insight is that abstract 2D embeddings are far more interpretable when directly linked to their original spatial and morphological context. SEAL's Hybrid Embedding view makes this connection explicit.
  • Feature importance explains embedding positions: By quantifying feature importance, SEAL provides a mechanism to understand why certain entities cluster together or are positioned where they are in the embedding, moving beyond just visual pattern recognition.
  • Set operations enable comparative analysis: The ability to define and compare sets of entities using mathematical operations, combined with feature importance, allows for detailed exploration of similarities and differences between biological or astronomical phenomena.
  • SEAL supports model inspection: The system can be used to understand the behavior of DR algorithms and even other machine learning models (like VAEs in the melanoma case study), helping researchers refine their models.
  • Bridging different domains: The successful application across cancer research and astronomy highlights SEAL's versatility for analyzing diverse types of high-dimensional spatial data.

Key Results

The paper presents qualitative results from three case studies where domain experts used SEAL to:

  • Colorectal Cancer: Identify tumor cell clusters based on pan-cytokeratin and PCNA expression, distinguish between immune cell populations, and understand the morphology of epithelial crypts.
  • Melanoma: Visually identify necrotic cells in the Hybrid Embedding that corresponded to a specific region in the spatial image, and explore spatial patterns of immune cell infiltration at the tumor boundary.
  • Astronomy: Observe how different filter bands (features) contributed to distinguishing celestial objects and understand the age and distance of stars based on their spectral properties.

Quantitative results are not the primary focus, but the case studies demonstrate SEAL's ability to facilitate hypothesis generation, validation, and deeper understanding of complex datasets.

Limitations and Future Work

  • Occlusion in Hybrid Embedding: While SEAL uses semantic zoom to mitigate occlusion, the density of the embedding space itself is not directly encoded in the Hybrid Embedding view.
  • Stochasticity of DR: The paper acknowledges that DR methods can be stochastic, leading to inconsistent embeddings. Future work could focus on visualizing this variability.
  • Hierarchical and Networked Relationships: The authors suggest extending SEAL to support more complex relationships between sets, such as hierarchical structures or network-like associations, which are common in biological ontologies.
  • Multidimensional Data: SEAL currently focuses on 2D spatial data and scalar features. Future work should explore extending the system to handle volumetric (3D) data, vector quantities, and temporal dimensions.
  • Model Transparency: While SEAL helps interpret DR outputs, further work could focus on making the limitations and assumptions of DR algorithms more transparent to users.

Summary updated

Abstract

Dimensionality reduction techniques help analysts make sense of complex, high-dimensional spatial datasets, such as multiplexed tissue imaging, satellite imagery, and astronomical observations, by projecting data attributes into a two-dimensional space. However, these techniques typically abstract away crucial spatial, positional, and morphological contexts, complicating interpretation and limiting insights. To address these limitations, we present <b>SEAL</b>, an interactive visual analytics system designed to bridge the gap between abstract 2D embeddings and their rich spatial imaging context. <b>SEAL</b> introduces a novel hybrid-embedding visualization that preserves image and morphological information while integrating critical high-dimensional feature data. By adapting set visualization methods, <b>SEAL</b> allows analysts to identify, visualize, and compare selections-defined manually or algorithmically-in both the embedding and original spatial views, facilitating a deeper understanding of the spatial arrangement and morphological characteristics of entities of interest. To elucidate differences between selected sets of items, <b>SEAL</b> employs a scalable surrogate model to calculate feature importance scores, identifying the most influential features governing the position of objects within embeddings. These importance scores are visually summarized across selections, with mathematical set operations enabling detailed comparative analyses. We demonstrate <b>SEAL</b>'s effectiveness and versatility through three case studies: colorectal cancer tissue analysis with a pharmacologist, melanoma investigation with a cell biologist, and exploration of sky survey data with an astronomer. These studies underscore the importance of integrating image context into embedding spaces when interpreting complex imaging datasets. Implemented as a standalone tool while also integrating seamlessly with computational notebooks, <b>SEAL</b> provides an interactive platform for spatially informed exploration of high-dimensional datasets, significantly enhancing interpretability and insight generation.
BibTeX
@article{warchol2025seal,
  author = {Simon Warchol and Grace Guo and Johannes Knittel and Dan Freeman and Usha Bhalla and Jeremy L. Muhlich and Peter K. Sorger and Hanspeter Pfister},
  title = {{SEAL: Spatially-resolved Embedding Analysis with Linked Imaging Data}},
  journal = {IEEE Transactions on Visualization and Computer Graphics},
  year = {2025},
}
Figure