Peax : Interactive Visual Pattern Search in Sequential Data Using Unsupervised Deep Representation Learning

Fritz Lekschas, Brant Peterson, Daniel Haehn, Eric Ma, Nils Gehlenborg, Hanspeter Pfister · DOI

TL;DR

PEAX is a "human-in-the-loop" tool that combines deep learning with interactive feedback to find complex visual patterns in massive sequential datasets, such as genomic tracks or time series. By using a convolutional autoencoder to learn a "visual language" for data and an active learning strategy to incorporate user feedback, it retrieves patterns that are significantly more relevant to human researchers than traditional mathematical similarity measures.

What Problem Does This Paper Address?

Searching for specific patterns in sequential data (like a specific "peak" shape in a DNA sequence) is surprisingly difficult. The search space is often millions of data points long, and patterns can be visually complex or noisy.

The core challenge is the "subjectivity of similarity." Traditional algorithms use fixed metrics like Euclidean Distance (ED) or Dynamic Time Warping (DTW) to find matches. However, what a researcher considers "similar" often depends on context—they might care about the height of a peak, the slope of a trend, or the presence of a secondary "shoulder" in the data. Automated tools often fail to capture these nuances, leading to a "gulf of evaluation" where the system's results don't match the user's mental model. In fields like genomics, where ground truth is often missing, this makes discovery-driven research incredibly tedious.

Methods

The authors propose a two-stage approach:

  1. Unsupervised Representation Learning: Instead of relying on handcrafted features, they use a Convolutional Autoencoder (CAE). The CAE is trained to compress a window of sequential data into a tiny 10-dimensional "latent representation" and then reconstruct it. To succeed, the model must learn to capture the most important visual features of the data.
  2. Interactive Visual Query System:
    • Query by Example: A user selects a pattern they find interesting.
  3. Active Learning: The system doesn't just show the most similar matches; it uses a sampling strategy to present windows that are either close to the query or windows where the current model is highly uncertain.
  4. Binary Feedback: The user labels these samples as "interesting" or "not interesting."
    • Classifier Training: A Random Forest classifier is trained on these labels in real-time to refine the search and find all other matching regions across the entire dataset.

Datasets

The system was primarily evaluated using epigenomic datasets (data describing how DNA is packaged and regulated):

  • DNase-seq: Measures DNA accessibility.
  • ChIP-seq: Measures protein-DNA binding and histone modifications (specifically H3K4me1, H3K27ac, etc.).
  • The models were trained on 343 ChIP-seq and 120 DNase-seq datasets across three window scales: 3 kilobases (kb), 12 kb, and 120 kb.

Key Insights and Ideas

  • Visual Features over Raw Values: By using a CAE, the system focuses on the shape and structure of the data rather than just the raw numerical values. This allows it to ignore certain types of noise that would trip up a standard distance metric.
  • The Power of "No": Active learning relies heavily on negative feedback. By telling the system what isn't a match, the user helps the classifier draw much sharper boundaries in the high-dimensional search space.
  • Multivariate Flexibility: PEAX allows users to search across multiple datasets simultaneously by simply concatenating the latent vectors. This enables researchers to find "asymmetrical" patterns—for example, a peak in Dataset A that specifically lacks a corresponding peak in Dataset B.
  • Smoothing as a Feature: The CAE naturally "smooths" high-frequency noise. While this loses some detail, it actually helps the system focus on the broader biological "signal" that researchers usually care about.

Key Results

  • Human-Perceived Similarity: In a large-scale study on Amazon Mechanical Turk, the CAE-based search was compared against six common techniques (including ED, DTW, and SAX). Participants found the CAE's results to be significantly more similar to the target query than any other method ($p < .001$).
  • Expert Validation: Eight domain experts (computational biologists) tested the system. They found it easy to learn (requiring only a 15-minute intro) and highly effective for finding rare patterns that they previously had to hunt for manually.
  • Efficiency: The system can handle up to one million windows while maintaining interactivity on a standard laptop, thanks to efficient preprocessing and approximate nearest-neighbor algorithms.

Limitations and Future Work

  • Window Size Constraints: The window size ($l$) is fixed during the training of the autoencoder. If a user wants to look for a pattern much larger or smaller than the pre-trained window, the system's performance may degrade.
  • Loss of Fine Detail: Because the CAE compresses data, very fine-grained, high-frequency variations are often lost. While often beneficial for noise reduction, this could be a drawback for specific applications like anomaly detection in high-precision engineering data.
  • Future Directions: The authors suggest exploring more advanced generative models like Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs) to improve the "interpretability" of the learned features and provide even better reconstructions.

Summary updated

BibTeX
@article{lekschas2020peax,
  author = {Fritz Lekschas and Brant Peterson and Daniel Haehn and Eric Ma and Nils Gehlenborg and Hanspeter Pfister},
  title = {{Peax : Interactive Visual Pattern Search in Sequential Data Using Unsupervised Deep Representation Learning}},
  journal = {Computer Graphics Forum},
  year = {2020},
  doi = {10.1111/cgf.13971},
}
Figure