Which Chart Shows It? Measured Detectability for Spatiotemporal Expression Views

Spatial transcriptomics measures how strongly each gene is switched on at each location in a tissue slice, and newer studies repeat this across developmental time. The analysis software then produces rich objects: smooth expression gradients, tissue-domain boundaries, cell-state trajectories, and flow fields of predicted cell movement. Researchers still look at almost all of it through two pictures, a scatter of spots colored by cluster and a marker-gene heatmap. Automated visualization recommenders, which are systems that pick a chart for a dataset, do not help. They are trained on business-style tables and choose among four to ten basic chart types.

We propose to stop asking which chart a dataset "should" get and to measure which chart lets a viewer actually see a given biological structure. We plant known structures into real tissue data: a gradient, a sharp boundary, a delayed onset in one region, or a transient intermediate state. We render each case through a larger vocabulary of scientific chart types and measure how often viewers detect and correctly localize the structure. We also measure how often they report structure that is not there. From these measurements we fit a detectability model and a recommender that maps statistics of the data to the chart that minimizes missed and false findings.

Core Claim

Our claim is that the chart-type ceiling in automated visualization is mainly a ground-truth problem, not a model-capacity problem. Recommenders learn to imitate what people published. On public corpora, people published bar and line charts. VizML trained a neural network on one million Plotly dataset–chart pairs. AdaVis models charts as overlapping regions in an embedding space so that one dataset can map to several valid charts. Both inherit that corpus skew. AdaVis is evaluated on only bar, scatter, line and box plots.

Spatiotemporal expression data offers something generic tables lack: semi-synthetic ground truth. Because we control what is planted, we can score a chart by whether the planted thing is visible, independent of what people happened to publish. The specific new result would be a measured map from spatial and temporal data statistics to chart choice. Example statistics are spatial autocorrelation, boundary sharpness, temporal variance across stages, and coherence of the velocity field. If the map is learned well, it beats both fixed defaults and language-model chart writers on detection accuracy without raising false discoveries.

Research Program

Base data. We start from real tissue templates so that sparsity and noise stay realistic. The templates are:

Planted structures. Into these templates we inject structures with controlled strength. These are gradients of varying slope, boundaries of varying sharpness, region-specific onset delays between stages, and transient intermediate populations. The last kind is modeled on the high-entropy intermediate state that the Spatial transition tensor (STT) method found during epithelial–mesenchymal transition. We also include matched null cases with nothing planted.

Chart vocabulary. The vocabulary is a small grammar of roughly ten scientific chart types, each with its key parameters:

  • raw spatial scatter with a continuous color ramp;
  • spatially smoothed maps (using PearlST-style diffusion);
  • small multiples across time on SANTO-aligned coordinates;
  • difference maps between stages;
  • pseudotime curves with uncertainty bands;
  • pseudotime-ordered heatmaps;
  • per-domain violin plots;
  • velocity streamline overlays from STT;
  • attractor transition graphs.

The parameters are color scale, smoothing radius and normalization. Smoothing is deliberately included because it can manufacture gradients and erase boundaries. The false-discovery measurement exists to catch exactly that.

Measuring detectability. Crowd viewers, with a protocol modeled on VizML's crowdsourced consensus test set, perform short perceptual tasks on the rendered charts: "is there a boundary, and where?", "which region switches on first?", "is there a gradient?" From their answers we fit a detectability function $d(c, s)$, the probability of a correct, localized answer for chart $c$ on data with statistics $s$. A recommender $r(s)$ is then scored by its regret:

$$\text{regret}(s) = \max_c d(c, s) - d(r(s), s).$$

Regret is the detection accuracy lost relative to the best chart in the vocabulary. We report it alongside the false-alarm rate on null cases.

What gets built. We will build three things: the statistic extractors, the recommender (gradient-boosted or a small network over the statistics), and a cheaper automatic reader. The automatic reader is a multimodal model fine-tuned on our viewer data. EvoChart reports that such models fail basic visual-literacy tasks such as linking colors to legends and reading positions, so this reader is treated as a hypothesis to validate against humans, not as ground truth.

Baselines

Fixed default (do-nothing reference). This is the default view used by portals such as STOmicsDB and standard toolkits: a raw spatial scatter colored by expression or cluster, plus a marker heatmap, applied to every case. It is run on identical renders and identical viewer pools. Beating it means lower regret with a false-alarm rate no higher than the default's.

Generic tabular recommenders. VizML and AdaVis are run on the flattened table of spot ID, coordinates and genes. They use their published feature sets and are mapped onto the nearest chart in our vocabulary. For context, AdaVis reports Hit@2 = 0.8421 on its VizML subset against KG4Vis's 0.8111. That number concerns imitating published charts, not detection. For chart recommendation on spatial transcriptomics data, no reported result found on Lacuna.

Language-model chart writer. GPT-4o is given the data summary and the analytical question and writes plotting code. We give it the same chart vocabulary as allowed functions and the same number of attempts. This is the strongest practical competitor because it is what analysts would actually do. The cited evidence on it is mixed. In nvBench 2.0, a step-wise preference-tuned model reaches F1@3 = 81.50%, more than 20% above prompted GPT-4o on ambiguous queries. On EvoChart-QA, GPT-4o scores 49.8%. Beating this baseline means significantly lower regret across structure types, not only on average.

Isolating the key ingredient. An ablation trains the same recommender with only VizML-style column statistics, removing the spatial and temporal statistics. If it matches the full model, our central ingredient adds nothing.

Why not just…?

Why not just use the standard spot-scatter-plus-heatmap pipeline? It may well be optimal for some structures. Sharp, large boundaries are probably visible in any spatial map. The experiment reports regret broken down by structure type and signal strength, so we will say exactly where the default suffices. Our prediction is that it fails on onset delays across stages and on weak gradients under heavy smoothing. If it does not fail there, that negative result is itself useful.

Why not just let GPT-4o write the plot? This is a real threat, because language models know Scanpy idioms well. Against it, nvBench 2.0 shows large gaps under ambiguous intent, and the question "show differentiation dynamics" is exactly that kind of ambiguity. EvoChart's literacy gap also suggests the model cannot check its own output visually. The head-to-head regret comparison will settle it. If GPT-4o matches us, the contribution reduces to the detectability data, which could then be used to prompt or tune it.

Why not just a hand-written rule table, for example "high spatial autocorrelation means use a spatial map, otherwise a violin plot"? This is the most plausible threat. If the fitted detectability function collapses to a few thresholds, a rule table is the right product. We therefore derive the best rule tree of depth two or three from the same viewer data and compare it to the learned recommender. We will report the simpler one if it is within noise.

Proposed Experiments

Experiment 1 is the semi-synthetic study. It crosses roughly ten chart types, four structure kinds, three to four strength levels and null controls on DLPFC and embryo templates, with repeated viewer judgments per cell. The output is $d(c, s)$, regret and false-alarm rates for all baselines.

Experiment 2 transfers to real structure. On held-out DLPFC slices, viewers draw layer boundaries from the recommended chart and from each baseline chart, and we score agreement with the annotated layers. On the heart time course, a small expert panel orders regions by maturation from each chart.

Experiment 3 tests whether the fine-tuned automatic reader agrees with humans well enough to replace them when scaling to new chart types. It reports agreement per structure kind, with particular attention to the color-ramp tasks that EvoChart flags as weak.

Decisive checks. Three outcomes would decide the matter:

  • the recommender must beat the fixed default on detection without raising the false-alarm rate on nulls;
  • the spatiotemporal-statistics ablation must lose measurably;
  • the advantage must survive the move from planted to annotated real structure.

Failing the third check would mean the semi-synthetic ground truth does not transfer, and the approach would need to be reworked.