A Flow Artist for High-Dimensional Cellular Data

Kincaid MacDonald, Dhananjay Bhaskar, Guy Thampakkul, Nhi Nguyen, Joia Zhang, Michael Perlmutter, Ian Adelstein, Smita Krishnaswamy

Introduction

High-dimensional datasets capturing dynamic processes, such as single-cell RNA sequencing (scRNA-seq), often present a significant challenge for traditional visualization techniques. While tools like t-SNE and UMAP excel at mapping static snapshots of cellular states, they frequently overlook velocity information—the direction and magnitude of change over time. This omission can lead to misleading embeddings where distinct dynamic states appear identical simply because they share similar static profiles. FlowArtist addresses this limitation by jointly learning a low-dimensional embedding and the underlying vector field, using velocity as a critical feature to resolve complex, overlapping structures.

Methodology: The FlowArtist Framework

FlowArtist utilizes a dual-optimization strategy to learn a point-embedding map and a vector field simultaneously. The core innovation of the framework is the Flashlight Kernel, an asymmetric kernel used to construct a directed graph. Unlike traditional symmetric kernels that only consider Euclidean distance, the flashlight kernel calculates affinity based on both proximity and whether a neighboring point lies in the direction of the source point's velocity vector. This directional sensitivity allows the model to capture the "one-way" nature of many biological processes, such as cellular maturation.

The FlowArtist architecture integrates a flashlight kernel and dual loss functions to learn embeddings that respect data flow.

The framework minimizes a dual loss function during training:

  1. Distance Loss: This ensures that the 2D Euclidean distances between embedded points match the "diffusion distances" derived from the directed diffusion matrix. This preserves the global manifold structure.
  2. Flow Neighbor Loss: This constrains the learned 2D vector field to point toward the same neighbors identified in the high-dimensional ambient space, ensuring the visual flow matches the physical data movement.

The model is implemented using two compact Multi-Layer Perceptrons (MLPs), making it computationally efficient enough to train on standard CPUs in just a few minutes.

Results and Key Insights

The authors evaluated FlowArtist on several synthetic manifolds, including circles, branching trees, spirals, and double helices. A primary insight from these experiments is the role of velocity as a disambiguator. In the "Noisy Double Helix" test, as noise levels increase, the two strands of the helix merge into a single cloud. Static methods like PCA and UMAP fail to separate them, but FlowArtist successfully leverages the opposing velocities of the strands to pull them apart in the 2D embedding.

FlowArtist successfully reconstructs various toy manifolds (Circle, Branch, Spiral, Helix) by aligning embeddings with the underlying vector fields.

On simulated scRNA-seq data (VeloSim), FlowArtist accurately preserved branching geometries and generated streamlines consistent with developmental "pseudotime." By allowing flow information to actively shape the geometry of the embedding—rather than just being overlaid on top—FlowArtist produces a more faithful representation of dynamic biological processes.

Limitations and Future Work

While FlowArtist performs exceptionally well on branching data, it faces challenges with complex periodic structures. In datasets combining cycling and branching, the model occasionally produced outward spirals rather than closed cycles. Future work may involve adapting the resolution of the predicted vector field to match data density and extending the framework to higher-dimensional latent spaces for downstream analytical tasks.

Summary updated

BibTeX
@inproceedings{macdonald2023flow,
  author = {Kincaid MacDonald and Dhananjay Bhaskar and Guy Thampakkul and Nhi Nguyen and Joia Zhang and Michael Perlmutter and Ian Adelstein and Smita Krishnaswamy},
  title = {{A Flow Artist for High-Dimensional Cellular Data}},
  booktitle = {MLSP},
  year = {2023},
  doi = {10.1109/mlsp55844.2023.10285942},
}
Figure