Semi-automatic 3D Object Keypoint Annotation and Detection for the Masses

Kenneth Blomqvist, Jen Jen Chung, Lionel Ott, Roland SiegwartarXiv 2022

TL;DR

This paper introduces a semi-automatic toolkit that allows researchers to collect, label, and train 3D object keypoint detectors for novel objects in just a few hours. By leveraging robot kinematics and a clever "center map" association technique, the system eliminates the need for tedious manual frame-by-frame labeling or expensive motion-tracking setups.

What Problem Does This Paper Address?

In robotics, teaching a machine to "see" and manipulate a specific object usually requires a massive dataset of labeled images. Currently, researchers are often restricted to standardized datasets like the YCB object set because creating a custom one is a logistical nightmare.

Traditional methods for generating ground truth labels require either:

  1. Manual labeling: Clicking keypoints in thousands of individual video frames.
  2. Environment modification: Using fiducial markers (like QR codes) or motion capture systems.
  3. High-fidelity scans: Creating precise 3D mesh models of every object beforehand.

These barriers prevent robots from being easily deployed to handle new, "in-the-wild" objects. The authors aim to democratize this process, making 3D keypoint detection accessible "for the masses."

Methods

The authors propose a full-stack pipeline encompassing hardware, data collection, and a novel neural network architecture.

  • Hardware Setup: They use a wrist-mounted stereo camera (StereoLabs ZED Mini) on a standard robotic arm (Franka Emika Panda). Because the robot's kinematics are known, the system can precisely track the camera's pose relative to the robot's base.
  • StereoLabel Tool: This is the "secret sauce" for speed. Instead of labeling every frame, a user labels 2D keypoints in just two widely separated views. The system then uses triangulation and robot odometry to automatically propagate these labels to every other frame in the sequence.
  • The Network Architecture: They use a stacked hourglass CNN (based on CornerNet-Lite).
  • Center Maps: Instead of using expensive semantic segmentation masks to distinguish between multiple objects, the network predicts a "center keypoint" for each object. Other keypoints (like the rim of a cup) are associated with the nearest center point via a predicted 2D vector field.
  • Stereo vs. Mono: The paper presents two versions: a stereo pipeline that triangulates points from two views, and a monocular pipeline that predicts depth directly for each keypoint.
Fig. 2. The components for both of the proposed keypoint tracking pipelines.

Datasets

The authors evaluated their system on three primary scenarios:

  1. Valve Dataset: A single-object scenario featuring a valve with three identical, ambiguous spokes.
  2. Cups Dataset: A multi-object scenario where the robot tracks up to four different cups simultaneously.
  3. KeyPose Mugs: An external dataset used to benchmark their monocular pipeline against existing state-of-the-art methods.

Key Insights and Ideas

  • Forgoing Segmentation: Most multi-object trackers rely on instance segmentation (drawing a mask over the whole object). This paper shows that predicting a "center keypoint" and associating other points to it is much faster to label and computationally cheaper to process.
  • Kinematics as a Labeler: By mounting the camera on a calibrated robot arm, the robot itself becomes the source of truth for spatial positioning, removing the need for external markers or "mocap" rooms.
  • Handling Ambiguity: In the valve experiment, the three spokes look identical. The system handles this by packing all occurrences of a keypoint type onto the same heatmap, allowing the network to learn features that are "category-level" rather than just instance-specific.

Key Results

The efficiency gains are the headline here. The authors were able to label 19,507 frames of valve data in just 12.5 minutes of active user time. For the more complex cup dataset (66,419 frames), labeling took only 32 minutes.

Quantitatively, the system proved accurate enough for real-world tasks:

  • Accuracy: In the valve task, the stereo pipeline achieved a mean 3D error of 3.63 cm.
  • Speed: The entire inference pipeline (prediction to 3D triangulation) runs in approximately 40ms, enabling real-time tracking.
  • Robotic Success: They successfully used the tracker to perform a closed-loop manipulation task: having the robot arm locate and rotate a valve.
Quantitative results from the valve and cup tracking experiments.

Limitations and Future Work

While powerful, the system has a few hurdles to clear:

  • Synchronization: The method currently relies on software-based timestamping. The authors note that hardware-synchronized sensors (like the VersaVIS board) would improve accuracy by reducing lag between camera frames and robot joint readings.
  • Resolution: The current output resolution is 64x64 pixels, which limits the precision of keypoint localization.
  • Alignment Failures: The system can struggle when two keypoints of the same type perfectly align from the camera's perspective, causing them to be detected as a single point.
  • Automation: Currently, a human must guide the robot to different viewpoints. The authors suggest that future versions could use "active learning" to let the robot autonomously decide which viewpoints would best improve its internal model.

Summary updated

BibTeX
@misc{blomqvist2022semi,
  author = {Kenneth Blomqvist and Jen Jen Chung and Lionel Ott and Roland Siegwart},
  title = {{Semi-automatic 3D Object Keypoint Annotation and Detection for the Masses}},
  year = {2022},
  eprint = {2201.07665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.07665},
}
Figure