An Unsupervised Algorithm for Detecting Good Continuation in Dot Patterns

José Lezama, Gregory Randall, Jean-Michel Morel, Rafael Grompone von GioiImage Process. Line 2017 · DOI

Human perception is remarkably adept at "connecting the dots," perceiving smooth curves where there are only discrete points. Gestalt psychologists identified this as the "law of good continuation." This paper transforms this qualitative observation into a robust, unsupervised algorithm for detecting smooth curves in 2D dot patterns. By combining local symmetry with the a contrario detection framework, the authors provide a mathematically rigorous way to identify meaningful structures in noise without the need for manual parameter tuning or training data.

Formalizing Smoothness and Validation

The challenge for computer vision is twofold: defining "smoothness" for unoriented points and distinguishing "real" curves from coincidental alignments of random noise. The authors address these through a multi-step pipeline rooted in local geometry and statistical significance.

Local Symmetry as a Proxy for Smoothness

The algorithm views a curve as a sequence of "triplets" (sets of three consecutive points). A triplet $(a, b, c)$ is considered "good" if point $c$ is approximately the reflection of point $a$ across point $b$. This simple geometric proxy captures the essence of a smooth, regularly spaced path.

Figure 3: Geometric representation of a triplet (a, b, c). The point 'X' represents the ideal symmetric location for point c relative to a and b.

The A Contrario Framework

To decide if a chain of points is "meaningful," the authors use a "background model" of randomness (a uniform Poisson process). They calculate the Number of False Alarms (NFA). If a configuration is extremely unlikely to occur by pure chance in a random field, it is accepted as a detection. This "non-accidentalness" principle allows the algorithm to reject the null hypothesis of randomness without needing to explicitly model every possible curve shape.

Figure 4: The validation region for a triplet. The error is measured within a local window R proportional to the distance |a-b|, ensuring scale invariance.

Algorithm Pipeline

  1. Triplet Generation: The algorithm identifies all potential triplets that meet basic symmetry criteria.
  2. Graph-Based Optimization: It builds a graph where nodes are triplets and edges represent valid continuations. The Floyd-Warshall algorithm is used to find the "shortest" (most symmetric) paths between all pairs of triplets.
  3. Redundancy Reduction (Masking): Since one long curve might contain many smaller meaningful sub-curves, a masking step ensures only the most significant (lowest NFA) non-overlapping structures are returned.

Key Insights and Results

  • Scale Invariance: The "error" of a triplet is measured relative to a local window $R$ proportional to the distance between the first two points. This allows the algorithm to detect structures of vastly different scales in the same image using identical logic.
  • Robustness to Noise: In tests with 100 to 500 purely random points, the algorithm correctly returned zero detections, confirming the effectiveness of the a contrario threshold. It successfully ignores dense clusters of random points while picking out faint, smooth trajectories.
  • Computational Efficiency: While the theoretical complexity is $O(N^3)$, the authors show that in practice, the time depends on the amount of structure. A 500-point random set takes approximately 28 seconds to process.

Limitations and Future Work

The model's reliance on local symmetry (effectively a local linear approximation) means it penalizes very sharp turns. A highly curved but perceptually salient "kink" might cause the algorithm to split one curve into two. Additionally, the algorithm is sensitive to the Gestalt law of proximity; large gaps in a curve may prevent the algorithm from bridging them, even if a human observer would see the continuation. Future directions include exploring more complex local models to handle high-curvature regions and improving graph search efficiency for larger datasets.

Summary updated

BibTeX
@article{lezama2017unsupervised,
  author = {José Lezama and Gregory Randall and Jean-Michel Morel and Rafael Grompone von Gioi},
  title = {{An Unsupervised Algorithm for Detecting Good Continuation in Dot Patterns}},
  journal = {Image Process. Line},
  year = {2017},
  doi = {10.5201/ipol.2017.176},
}
Figure