LINKS: A Dataset of a Hundred Million Planar Linkage Mechanisms for Data-Driven Kinematic Design

Amin Heyrani Nobari, Akash Srivastava, Dan Gutfreund, Faez Ahmed

Introduction

Kinematic synthesis, specifically the Path Generation problem, involves designing a mechanical linkage to trace a desired curve. Historically, this has been a labor-intensive process requiring expert intuition or complex analytical optimization. While deep learning has revolutionized fields like computer vision, its application to mechanical design has been hindered by a lack of large-scale data. Existing databases typically contain only thousands of mechanisms, often restricted to simple four-bar or six-bar configurations.

The authors introduce LINKS, a massive open-source dataset featuring 100 million planar linkage mechanisms and 1.1 billion associated coupler curves. This dataset provides the necessary scale for data-driven synthesis, enabling researchers to train models that can "invent" complex mechanical paths.

Key features of the dataset include:

  • 100 Million Mechanisms: Ranging from 8 to 20 joints.
  • 1.1 Billion Coupler Curves: The paths traced by every joint in every mechanism.
  • Curated Subset: A collection of 600 million paths filtered to reduce geometric bias toward simple circles and arcs.
  • Negative Samples: 100 million "locking" mechanisms that cannot complete a full rotation, useful for studying mechanical interference.

Methodology

To generate a dataset of this magnitude, the researchers developed a novel topology generator and a high-speed simulator.

The J-operator

The authors proposed a new "Joint-operator" (J-operator) to generate 1-Degree of Freedom (1-DOF) mechanism topologies. Unlike previous methods, the J-operator adds a new joint and connects it to two existing joints, mathematically guaranteeing that the mechanism maintains its mobility and avoids redundant linkages.

The LINKS generation pipeline: The Topology Generator uses the J-operator to create valid structures, which are then passed to the Position Generator for high-speed simulation and filtering.

Vectorized & Parallelized Simulation

Simulating mechanism movement is traditionally slow. The authors developed a solver that is both vectorized and parallelized, achieving an 800x speedup. This allows for a simulation rate of roughly 18,000 mechanisms per second on a single GPU. This efficiency is crucial because, on average, only 1 in 500 randomly generated candidates is valid (capable of a full rotation without locking).

Key Results and Insights

To demonstrate the dataset's utility, the authors performed a shape retrieval task. Given a target path, they used a bi-directional Chamfer distance metric to find the closest match in the LINKS database. Even without further optimization, the retrieved mechanisms traced paths remarkably close to the targets, proving that the dataset is dense enough to serve as a "numerical atlas" for kinematic design.

Furthermore, the authors identified a significant geometric bias in random generation: simple circles and arcs are heavily favored. Their curation step, which filters out 99.5% of these common shapes, ensures the dataset focuses on complex, engineering-relevant curves.

Limitations and Future Work

Currently, LINKS is limited to mechanisms with simple kinematic loops and does not include structures like "double-butterfly" linkages. The dataset currently only utilizes joints and bars; future iterations are planned to include sliders, gears, belts, and pulleys. Additionally, the dataset focuses on mechanisms capable of full 360-degree rotation, excluding "rocker" mechanisms that move through partial arcs.

Availability: The dataset and code are available at https://github.com/ahnobari/LINKS and an interactive web demo can be found at http://decode.mit.edu/links.

Summary updated

Abstract

Abstract In this paper, we introduce LINKS, a dataset of 100 million one degree of freedom planar linkage mechanisms and 1.1 billion coupler curves, which is more than 1000 times larger than any existing database of planar mechanisms and is not limited to specific kinds of mechanisms such as four-bars, six-bars, etc. which are typically what most databases include. LINKS is made up of various components including 100 million mechanisms, the simulation data for each mechanism, normalized paths generated by each mechanism, a curated set of paths, the code used to generate the data and simulate mechanisms, and a live web demo for interactive design of linkage mechanisms. The curated paths are provided as a measure for removing biases in the paths generated by mechanisms that enable a more even design space representation. In this paper, we discuss the details of how we can generate such a large dataset and how we can overcome major issues with such scales. To be able to generate such a large dataset we introduce a new operator to generate 1-DOF mechanism topologies, furthermore, we take many steps to speed up slow simulations of mechanisms by vectorizing our simulations and parallelizing our simulator on a large number of threads, which leads to a simulation 800 times faster than the simple simulation algorithm. This is necessary given on average, 1 out of 500 candidates that are generated are valid (and all must be simulated to determine their validity), which means billions of simulations must be performed for the generation of this dataset. Then we demonstrate the depth of our dataset through a bi-directional chamfer distance-based shape retrieval study where we show how our dataset can be used directly to find mechanisms that can trace paths very close to desired target paths. Furthermore, we discuss how we plan to expand LINKS to include more complex mechanical components and expand the dataset in the future. our work is available at https://github.com/ahnobari/LINKS. We believe LINKS will enable a vast array of computational approaches in kinematic design.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
LINKS · Uncurated coupler pathsLINKS raw path datasetshare of paths that are circles and arcs62%subset=uncurated coupler paths
Source quote
L170: Finally, it is important to discuss the imbalances in the paths generated by random planar mechanisms. The paths created by all the mechanisms tend to be biased heavily towards two specific kinds of shapes: arcs and circles. The reason these shapes are very common is that any node connected to the ground produces arcs. Circles are also very common since the nodes connected to the rotating arms of the actuator produce circles. Since having a path dataset made up of large amounts of circles and arcs would be inefficient for path generation problems and can introduce heavy bias which can weaken data-driven approaches, we curate our dataset of paths to remove most arcs and circles. In fact, we remove 99.5% of arcs and circles and only keep 0.5% of them in the curated dataset. In order to detect arcs, we simply look at the mechanism and see if the joints producing the path are connected to the ground or not. To detect circles, we look at the normalized path and measure the variance of the distances of all points in a path from the center of the 1x1 box~(A perfect circle will have no variance). We consider paths with a variance smaller than 5×10^-4 to be close enough to a circle and remove such candidates in the curated dataset. We find that 62% of the paths if not curated would fall under the category of circles and arcs~(circles make up 34% and arcs 28%), which shows the importance of this step. To demonstrate this Fig.~\ref{fig:curation}, shows a few randomly selected normalized paths from both the un-curated as well as the curated dataset.
BibTeX
@misc{nobari2022links,
  author = {Amin Heyrani Nobari and Akash Srivastava and Dan Gutfreund and Faez Ahmed},
  title = {{LINKS: A Dataset of a Hundred Million Planar Linkage Mechanisms for Data-Driven Kinematic Design}},
  year = {2022},
  eprint = {2208.14567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.14567},
}

Loading related content...

Figure