Learning Embeddings with Centroid Triplet Loss for Object Identification in Robotic Grasping

Anas Gouda, Max Schwarz, Christopher Reining, Sven Behnke, Alice Kirchheim · DOI

Introduction

In the rapidly evolving landscape of warehouse automation and industrial logistics, robotic systems are increasingly required to handle a massive and ever-changing variety of products, often referred to as Stock Keeping Units (SKUs). Traditional computer vision approaches, such as Mask R-CNN, typically operate within a "closed-set" paradigm. These models are trained to recognize a fixed set of categories; however, when a new product is introduced, the system requires expensive and time-consuming retraining.

To address this, researchers are shifting toward "zero-shot" or "open-set" identification systems. These systems identify novel objects by comparing them to a "gallery" of reference images. Despite their promise, existing zero-shot models often struggle with two primary challenges: extreme viewpoint variability—where an object’s appearance changes drastically depending on the angle—and architectural rigidity, where models require a fixed number of input images. This paper introduces a novel approach using Centroid Triplet Loss (CTL) to create a flexible, robust identification system tailored for the complexities of robotic grasping.

Methodology: Centroid Triplet Loss

The core innovation of this research is the Centroid Triplet Loss (CTL). Unlike standard triplet loss, which compares individual anchor, positive, and negative images, CTL aggregates multiple views of an object into a single representative "centroid" in the feature space.

The CTL Pipeline

The proposed system follows a multi-stage pipeline designed for high-precision identification in cluttered environments:

  1. Segmentation: The system utilizes a hybrid approach. Mask R-CNN is employed to filter out background elements and the bin itself, while Segment Anything (SAM) generates precise object masks.
  2. Feature Extraction: An identification backbone (such as ResNet or a Vision Transformer) extracts feature vectors from the segmented masks.
  3. Centroid Calculation: The model calculates the average (centroid) of these feature vectors. This allows the system to handle an arbitrary number of images per object—whether the robot captures one view or ten—without modifying the network architecture.
  4. Matching and Filtering: Using cosine similarity, the query centroid is compared against the gallery. A crucial aspect of this pipeline is its ability to filter out "over-segmentation" errors. If a segment (e.g., a label on a bottle) does not match any gallery centroid above a specific threshold, it is discarded as a non-object.

Experimental Evaluation

The researchers evaluated the CTL-based model on two distinct benchmarks to test both scale and precision.

ARMBench

ARMBench is a large-scale dataset provided by Amazon, featuring 190,000 gallery objects and 235,000 query scenes. It represents the "real-world" scale of industrial robotics. In "post-pick" scenarios where multiple views of an object are available, the CTL-equipped Vision Transformer (ViT) achieved a state-of-the-art Recall@1 of 99.3%.

HOPE Dataset

The HOPE dataset focuses on fine-grained classification, containing objects that are visually very similar. This benchmark served to test the discriminative power of the embeddings. The CTL model achieved an Average Precision (AP) of 0.740 when using ground truth masks. Notably, this significantly outperformed the foundation model DINOv2, which achieved an AP of 0.581, representing a 27.4% improvement in accuracy.

Key Insights

The success of the CTL approach highlights several critical insights for robotic vision:

  • Holistic Object Representation: By training on centroids, the model learns to associate disparate viewpoints (e.g., the front and back of a box) with the same identity. It treats an object as a unified entity in feature space rather than a collection of unrelated snapshots.
  • Domain-Specific Training vs. Foundation Models: While general-purpose foundation models like DINOv2 provide strong baselines, they often lack the specificity required for industrial tasks. Training a backbone specifically with CTL on domain-relevant data like ARMBench yields superior performance for robotic applications.
  • Identification as a Quality Gate: The identification model serves a dual purpose. Beyond naming the object, its confidence scores act as a natural filter for segmentation errors, improving the overall reliability of the robotic system.

Limitations and Future Directions

While the identification backbone is highly robust, the system's overall efficacy remains dependent on the initial segmentation quality. If the zero-shot segmenter fails to propose a mask for an object, the identification module cannot process it.

Future research aims to create a more integrated loop between segmentation and identification, potentially using identification confidence to iteratively refine mask proposals. Furthermore, while 2D identification is a significant milestone, extending this work to 6D pose estimation is essential for achieving the precision required for complex robotic manipulation and placement.

Summary updated

BibTeX
@inproceedings{gouda2024learning,
  author = {Anas Gouda and Max Schwarz and Christopher Reining and Sven Behnke and Alice Kirchheim},
  title = {{Learning Embeddings with Centroid Triplet Loss for Object Identification in Robotic Grasping}},
  booktitle = {CASE},
  year = {2024},
  url = {https://openreview.net/forum?id=ccqtd4XSz4},
}
Figure