Semiautomatic Labeling for Deep Learning in Robotics

Daniele De Gregorio, Alessio Tonioni, Gianluca Palli, Luigi Di Stefano · DOI

Introduction

Training state-of-the-art 2D object detectors and 3D pose estimators for industrial robotics requires massive datasets annotated with precise bounding boxes. Traditionally, this process is a significant bottleneck; manually labeling thousands of images is slow, expensive, and prone to error. While synthetic data from CAD models offers a potential workaround, it often suffers from a "domain gap" where models trained in simulation fail to generalize to the lighting and textures of real-world environments.

This paper introduces Augmented Reality Semi-automatic labeling (ARS), a pipeline designed to generate massive, perfectly labeled datasets of real objects directly in their deployment environment, effectively reducing the cost of image labeling to near zero.

The ARS Pipeline

The ARS system leverages hardware tracking and augmented reality to bridge the gap between 3D physical space and 2D image labels. The core components include:

  1. Camera Tracking: The system tracks a 2D camera's 6-DoF (Degrees of Freedom) pose. This is achieved with high precision by mounting the camera on an industrial robot arm or, for more flexible setups, using monocular SLAM (ORB-SLAM2).
  2. The Augmented Reality Pen (ARP): To define object boundaries, a user utilizes a 3D-printed wand covered in ArUco markers. By touching the corners of a physical object with the pen's tip, the system instantly generates a 3D virtual bounding box anchored in the real world.
  3. Auto-Projection: Once the 3D virtual box is defined and the camera's trajectory is recorded, the system automatically projects the 3D box into 2D bounding boxes across every frame of the video sequence.
The Augmented Reality Pen (ARP) uses tracked markers and a calibrated tip to define 3D bounding boxes (Virtual Boxes) directly on physical objects.

For irregularly shaped objects where the ARP is less effective, the pipeline includes an offline "Visual Hull" method. Users provide 2D masks for a few frames, and the system calculates the 3D intersection of these views to generate a tight bounding box.

Key Results and Efficiency

The impact of the ARS pipeline on data generation speed is transformative. In experimental trials, manually labeling 1,000 frames required over 10 hours of human labor. In contrast, using ARS, the researchers labeled approximately 35,000 frames in less than one hour—a speedup factor of roughly 450x.

The ARS pipeline (Auto Labeling) exhibits a near-constant time cost regardless of the number of images, whereas manual labeling time scales linearly with dataset size.

Beyond speed, the volume of data generated by ARS leads to superior model performance. Object detectors (YOLO and SSD) trained on ARS-generated datasets showed a 15% increase in precision and recall compared to those trained on smaller, manually labeled sets. The authors found that the sheer quantity of data helps the network overcome "loose" labels (where boxes might include occluded parts of an object).

Insights and Future Work

A critical insight from the study is that data distribution is more important than raw volume. Using a "Viewpoint Coverage" metric, the authors demonstrated that a smaller dataset covering 360 degrees of an object is more effective than a larger dataset covering only 180 degrees. ARS allows users to monitor this coverage in real-time and fill gaps in the training distribution.

While the current system is highly effective, future work aims to port camera tracking to mobile AR frameworks like ARKit or ARCore. This would enable the generation of massive robotics datasets using standard smartphones, further democratizing the training of robust vision models for advanced tasks like automated bin picking.

Summary updated

BibTeX
@article{gregorio2020semiautomatic,
  author = {Daniele De Gregorio and Alessio Tonioni and Gianluca Palli and Luigi Di Stefano},
  title = {{Semiautomatic Labeling for Deep Learning in Robotics}},
  journal = {IEEE Trans Autom. Sci. Eng.},
  year = {2020},
  doi = {10.1109/tase.2019.2938316},
}
Figure