Scanpath Similarity
Scanpath Similarity compares the gaze sequences of every pair of participants. Each scanpath is encoded as a string of letters, one per visited Area of Interest (AOI), and a string alignment algorithm scores how alike two strings are. The scores are drawn as a similarity matrix or as a ScanGraph network.
The ScanGraph view, including its similarity parameter p, the percentage-of-edges threshold, and the clique-based groups of similar participants, implements the scanpath comparison method of Doležalová and Popelka (2016); see the Reference below.

| Scope | One stimulus, a participant selection |
| Input | Each participant’s AOI sequence as a letter string, or their fixation heatmap |
| Metric Library | Any metric that produces a participant-by-participant similarity matrix, computed over the whole time range (sliding windows do not apply). See Scanpath Similarity Metrics for the string encoding, Levenshtein distance, and Needleman-Wunsch alignment. |
When to Use It
- Scanning styles: find groups of participants who looked at the stimulus in a similar order.
- Structural clusters: the ScanGraph view pulls similar participants together, and Highlight clique names the exact groups in which every pair meets the similarity threshold.
- Algorithm choices: compare collapsed Levenshtein (the order of visited AOIs) with standard Levenshtein (which keeps repeated fixations) to see how dwell affects who looks alike.
- Where, not when: Heatmap overlap groups participants who looked at the same places, without AOIs.
- Hidden groups: order the matrix by similarity to see groups as blocks along the diagonal.
Reading the Plot
- Matrix view (default): rows and columns are participants, and each cell holds the similarity of that pair, from 0 to 1. The diagonal compares each participant with themselves and reads 1.00, or stays empty for a participant with nothing to compare. The color bar below names the metric.
- ScanGraph view: nodes are participants, and an edge joins every pair whose similarity reaches the threshold p. Participants who are all pairwise connected form a clique.
Add a Scanpath Similarity Plot
- Load your data: drop the files anywhere on the page, or use Import. See Uploading Data.
- In the rail on the left, click Add Visualization, then Inter-participant > Scanpath Similarity. When another plot is selected, the new one opens on its stimulus and participants.
- The pane on the right opens with the plot’s settings. Pick the Stimulus first.
To move, resize, duplicate, or remove the card, see Plot Manipulation.
Settings
Select the card to open its settings in the Pane (a bottom sheet on mobile). The sections, in pane order:
Stimulus
Choose the stimulus to analyze. GazePlotter will compile the letter-coded scanpath sequences for participants based on this stimulus.
- Edit stimuli & selections: Opens the Stimuli Library to manage stimulus files and build stimulus selections.
Participants
Filter the analysis to a participant selection.
- Participant selection: All or a saved participant selection. Hide participants without data leaves out those with no recording on the stimulus.
- Edit participants & selections: Opens the Participant Library to rename, merge, and build participant selections.
Metric
Select the sequence alignment algorithm from the Metric Library.
- Select metric: A dropdown of the library’s similarity metrics:
- Levenshtein similarity: Measures sequence similarity based on the minimum edit operations (insertions, deletions, substitutions) required to transform one sequence into another (see Scanpath Similarity Metrics).
- Levenshtein similarity with collapsed on its detail line: Collapses consecutive fixations within the same AOI into a single letter before comparing, focusing on the order of visited AOIs rather than dwell duration.
- Needleman-Wunsch similarity: A global sequence alignment method scored exactly as in the ScanGraph article, so thresholds are comparable with the original tool.
- Needleman-Wunsch similarity with collapsed on its detail line: Collapses consecutive same-AOI fixations before global alignment.
- Heatmap overlap: How much two participants’ heatmaps overlap. Needs fixation coordinates (see Heatmap Overlap).
- Transition similarity: How alike two participants’ AOI-to-AOI moves are (see Transition Similarity).
- Edit metric library: Opens the Metric Library, where you can adjust algorithm parameters or save your own variants.
Visualization
Configure the rendering layout and thresholding. The view decides which further controls appear; they are listed under the view that reveals them.
- Select view:
- Matrix: Renders a square heatmap matrix where rows and columns represent participants, and cell color intensity corresponds to their similarity score.
- Order by: Participant order (default) or Similarity, which seats similar participants side by side so groups show as blocks along the diagonal. It uses average-linkage hierarchical clustering, flipping groups so the closest participants meet. Pairs without a value count as least similar.
- Color scale: Value range of the similarity gradient.
- Min: Value mapped to the first gradient color (default 0).
- Max (0 = Auto): Value mapped to the last gradient color, or 0 to track the data maximum.
- Color scale picker: Start, middle, and end colors of the gradient.
- Out of bounds: Fills for cells outside the range above; each also appears as an end cap on the color bar legend, and hovering the cap names the values it stands for. Each row is offered only while its end of the range is set.
- Below min: Color (default gray) and a Show text toggle for cell values below Min. Shown while Min is above 0.
- Above max: Color (default gray) and a Show text toggle for cell values above Max. Shown while Max is set (not 0/Auto).
- ScanGraph: Renders a network graph (node-link diagram) where nodes represent participants, and lines (edges) connect participant pairs whose similarity score is above the threshold.
- Similarity threshold (0 = Auto): The minimum similarity p for an edge. At 0 (default), p is set so the most similar pairs fill the Edges share, and the label shows that p. This suits any metric, including Heatmap overlap, whose values sit high. Auto always connects at least the closest pair.
- Edges (% of possible pairs): Shows the share of pairs connected at the current p. Under Auto it sets p. With a manual threshold, entering a share finds the p that draws at most that many edges (ties round down, as in the ScanGraph article). Default 5%, the article’s advice.
- Min clique members: The smallest clique the picker offers (default 2 = all cliques). Raising it hides the many small pairs a near-threshold graph produces, keeping the list focused on substantial groups.
- Highlight clique (N available): A clique is a group of participants that are all pairwise similar at the chosen threshold (the ScanGraph article’s “groups of similar participants”). This dropdown lists every such group with at least the chosen number of members, largest first. Each option’s secondary line reports the clique’s internal agreement: the weakest pairwise similarity (
p ≥ …, every member pair agrees at least this much) and the mean (x̄), followed by its members. Selecting one emphasizes its members and the edges between them while the rest of the graph recedes; edges leaving the clique stay plain, and members get first claim on label space. Nodes highlighted by clicking stay at full strength on top. On very dense graphs the clique list becomes unavailable and only None is offered; raise the threshold to bring it back.
- Matrix: Renders a square heatmap matrix where rows and columns represent participants, and cell color intensity corresponds to their similarity score.
Time range
Limit the analysis to fixations that begin within this time range.
- Start / ms: Limit the minimum time boundary.
- End / ms (0 = Auto): Limit the maximum time boundary, or leave at 0 for automatic duration matching.
Areas of Interest
Filters which Areas of Interest (AOIs) get their own letter in the scanpath strings. Fixations outside every active AOI are encoded as # (no AOI), exactly as in the exported ScanGraph strings.
- AOI selection: A dropdown containing All and saved AOI selections; AOIs outside the picked selection count as no-AOI in this plot.
- Edit AOIs & selections: Opens the AOI Library to customize names, colors, merges, and selections.
Export
Located at the bottom of the Pane:
- Download plot: Opens the Figure Export dialog to save the similarity visualization as a PNG or JPG.
- Download data: Opens the Metric Data export preset to this plot’s metrics, stimulus, participant selection, time range and AOI selection.
Reference
The ScanGraph view implements the scanpath comparison method introduced in:
Doležalová, J., & Popelka, S. (2016). ScanGraph: A novel scanpath comparison method using visualisation of graph cliques. Journal of Eye Movement Research, 9(4). https://doi.org/10.16910/jemr.9.4.5
The authors’ original web tool is available at eyetracking.upol.cz/scangraph; GazePlotter can export scanpath strings in the format it accepts.
Related
- Scarf Plot: the AOI sequences being compared, drawn over time.
- Scanpath: one participant’s fixations on the stimulus.
- ScanGraph export: the scanpath strings in the format of the original ScanGraph tool.