Learning Differential Invariants of Planar Curves

Roy Velich, Ron Kimmel

Abstract

Differential invariants, such as curvature and its derivatives, serve as the geometric "DNA" for shape recognition and matching. However, calculating these invariants on discrete, noisy point clouds using traditional axiomatic formulas is notoriously difficult, particularly for high-order transformations like the equiaffine group. This paper presents a deep learning framework designed to learn these invariants directly from data. By employing a Siamese neural network architecture with specialized loss functions—including invariance and orthogonality constraints—the proposed method produces robust, smooth signature curves that significantly outperform traditional mathematical methods in shape-matching tasks, even under heavy noise and down-sampling.

Introduction

In computer vision and geometry processing, the ability to identify a shape regardless of its orientation, scale, or perspective is a fundamental challenge. Differential invariants provide a mathematical solution to this problem: they are properties of a curve that remain unchanged under specific groups of transformations. For example, Euclidean curvature ($\kappa$) is invariant to rotation and translation. By plotting an invariant against its derivative (e.g., $\kappa$ vs. $\kappa_s$), we create a "signature curve" that uniquely identifies a shape independently of its pose.

Despite their theoretical elegance, differential invariants are difficult to apply to digital data. Digital shapes are represented as discrete points, requiring derivatives to be estimated via finite differences. These "axiomatic" methods are highly sensitive to sampling density and noise. This sensitivity is magnified in equiaffine transformations—which include stretching and shearing—where the invariants require fourth-order derivatives. This paper proposes a transition from these brittle formulas to a robust, learned estimation framework.

Methodology

Architecture and Pre-processing

The researchers developed a multi-head Siamese Deep Neural Network (DNN) designed to process local neighborhoods of points. To reduce the complexity of the learning task, the input data undergoes canonical pre-processing, where each neighborhood is aligned to a standard coordinate system (e.g., aligning the first and middle points to the x-axis). This removes basic translation and rotation ambiguity before the data enters the network.

The network is built using periodic (sine) activation functions. Unlike standard ReLU functions, the derivatives of sines are themselves sines (phase-shifted), which naturally facilitates the learning of high-order derivatives inherent in differential geometry.

Specialized Loss Functions

To train the network without explicit labels, the authors introduced a self-supervised paradigm using two primary loss functions:

  1. Invariance (Tuplet) Loss: The network is presented with an "anchor" point and a "positive" version (the same point under a different transformation and sampling). The loss encourages the network to output identical invariant values for both, while pushing "negative" (different) points away in the feature space.
  2. Orthogonality Loss: Mathematically, an invariant and its derivative should be statistically uncorrelated across a diverse dataset. The framework uses a Pearson correlation coefficient loss to enforce this independence, ensuring the multi-head architecture learns distinct geometric features (e.g., $\kappa$ and $\kappa_s$) rather than redundant information.

Experimental Evaluation

Datasets and Benchmarks

The model was trained on tens of thousands of curves extracted from arbitrary web images. To test its real-world utility, the authors introduced the Bunnies Collection Benchmark. This dataset contains 34 categories of objects (e.g., spiders, chickens, bunnies), with each category featuring 30 variations in pose and transformation. The goal is to match a transformed, noisy "query" curve to its original version in a database.

Performance and Robustness

The results demonstrate a significant leap over traditional methods:

  • Shape Matching Accuracy: On the Bunnies benchmark, the DNN achieved a 100% success rate under moderate affine transformations. In contrast, traditional Euclidean and Equiaffine axiomatic methods struggled significantly, with success rates ranging from only 3.33% to 16.67%.
  • Signature Quality: Qualitatively, the signature curves generated by the DNN are smooth and consistent across transformations. Axiomatic signatures, conversely, often appear as clouds of noise, making them unusable for identification.
  • Resilience to Down-sampling: The DNN maintained high accuracy even when 50% of the points were removed from the curve, demonstrating a level of robustness that traditional finite-difference formulas cannot achieve.

Conclusion

This research demonstrates that deep neural networks can act as robust estimators for complex geometric properties that were previously considered too unstable for practical use. By replacing fixed formulas with learned representations, the framework bridges the gap between continuous differential geometry and discrete, noisy digital data. While currently limited to 2D planar curves, this approach provides a foundation for future work in 3D space curves (involving torsion) and the analysis of 3D surfaces through principal curvatures.

Summary updated

BibTeX
@inproceedings{velich2023learning,
  author = {Roy Velich and Ron Kimmel},
  title = {{Learning Differential Invariants of Planar Curves}},
  booktitle = {SSVM},
  year = {2023},
  doi = {10.1007/978-3-031-31975-4\_44},
}
Figure