Learning-Based 3D Vision Sensor for Robotic Peg-In-Hole Insertion of Deformable Objects

Sher Hazan, Eylon Cohen, Ronit Schneor, Anath Fischer, Miriam Zacksenhouse
Technion - Israel Institute of Technology

Real-time robotic control using our 3D Vision Sensor. The system robustly estimates the relative position of the deformable medical pipe to ensure successful insertion.

Abstract

The integration of precise object positioning systems in robotic assembly tasks, particularly Peg-in-Hole (PIH) operations, is crucial for enhancing automation efficiency in industrial environments. The challenge intensifies when dealing with deformable objects. Advanced sensors and learning methods are recruited to face such challenges. This research presents a robust learning-based 3D vision sensor which is designed for estimating the relative position between both rigid and deformable objects in real-time. It is planned to be embedded into a robotic PIH insertion pipeline in the industrial environment. Our 3D vision sensor incorporates capturing the 3D scene, predicting a probability vector indicating the relative position between the peg and hole. It uses a late fusion convolutional neural network (CNN) architecture for classification, extracting the continuous relative position from the probabilities vector. The estimated relative position is then utilized to refine the peg’s position during the insertion process. The efficiency of the 3D vision sensor was evaluated across various PIH tasks involving both rigid and deformable objects. Moreover, it was embedded into an industrial robotic cell without additional training in order to validate its robustness and generalization capabilities. The approach demonstrated high success rate, highlighting its effectiveness and applicability in real-world industrial settings.

Method

PIH Insertion Pipeline

We propose a robust pipeline for robotic Peg-in-Hole (PIH) insertion that integrates our 3D vision sensor with force/torque feedback. The process is iterative and designed to handle both rigid and deformable objects in industrial environments. The pipeline consists of the following iterative stages:

Pipeline Stages:

  • 3D Vision Sensor: The system captures the current 3D scene and estimates the relative position between the peg and the hole in terms of relative radius ($\hat{R}$) and relative angle ($\hat{\theta}$).
  • Virtual F/T Sensor: Raw force ($F_S$) and torque ($T_S$) measurements from the OnRobot sensor are transformed to a virtual point ($P_V$) located at the center of the peg's tip, with its Z-axis aligned to the insertion direction.
  • Virtual Friction Force Sensor: The friction components of the force vector are replaced with a vision-based virtual friction force ($\hat{F}$). This force represents the direction of the estimated relative angle ($\hat{\theta}$), helping to guide the robot.
  • Decision Making: The system checks the estimated relative radius ($\hat{R}$). If it exceeds a predefined threshold, the system proceeds to location improvement. If the condition is met ($\hat{R} \le Threshold$), the insertion is initiated.
  • Location Improvement: A position-based impedance controller adjusts the robot's location. It optimizes the trade-off between minimizing the position error (peg vs. hole) and minimizing the virtual forces and torques.
  • Insertion: Once the alignment is confirmed by the decision-making module, the robotic arm performs the final insertion.
3D Vision Sensor Block Diagram
Block diagram of the entire PIH insertion pipeline embedded with the 3D vision sensor.

3D Vision Sensor

The proposed 3D vision sensor utilizes RGB-D data, classification CNN, and linear interpolation to estimate the relative angle (\(\hat{\theta}\)) and radius (\(\hat{R}\)) between the peg and the hole in the insertion plane. The sensor captures the 3D scene and predicts a probability vector indicating the relative position, which is then extracted to refine the peg's position during the insertion process.

3D Vision Sensor Block Diagram
Block diagram of the proposed 3D vision sensor for estimating relative positions in Peg-in-Hole tasks.

In order to apply classification methods to assembly tasks within a continuous domain, a discretization of the scene space is required. This is achieved by dividing the scene space into equal sub-areas as classes, where each class corresponds to a range of values in the domain. Following the discretization, a classification CNN is utilized to predict the probability vector of the peg being in each sub-area.

Space Discretization
Discretization of the scene space into sub-areas: (a) according to angle, (b) according to radius.

For this task, a late RGB-D fusion architecture was proposed utilizing two separate ResNet-18 CNNs, one for RGB images and one for depth data. The features from the convolutional layers of both CNNs are concatenated before reaching the fully connected layer. This architecture allows the model to leverage both visual and geometric features effectively.

Late Fusion CNN Architecture
Architecture of the proposed RGB-D late fusion model using separate RGB and depth ResNet-18 CNNs, followed by feature concatenation and a fully connected layer.

Experiments

Test Cases

To evaluate the versatility and robustness of our 3D vision sensor, we defined three distinct test cases ranging from rigid to highly deformable objects. These scenarios represent common industrial assembly challenges:

  • (a) Classical Rigid PIH: Standard insertion of rigid pegs into rigid holes with varying clearances, serving as a baseline for system accuracy.
  • (b) Deformable Electric Wire: Insertion of a thin (1 mm) deformable electric wire into a rigid connector, testing the system's ability to handle fine, flexible components.
  • (c) Medical Pipe: The primary motivating task, involving the insertion of a flexible medical pipe into a deformable connector. This represents a complex scenario where both the inserted object and the target can deform.
Comparison of Fusion Architectures
The PIH test cases: (a) a classical PIH with rigid objects; (b) wiring a 1 mm thick deformable electric wire to a rigid connector; (c) inserting a deformable medical pipe into a deformable connector.

Architecture

To determine the optimal architecture for our 3D vision sensor, we evaluated three different RGB-D fusion strategies: Early Fusion, Late Fusion, and Parallel Fusion. We compared their performance against single-modality baselines (RGB-only and Depth-only) across the tasks.

Comparison of Fusion Architectures
Illustration of different RGB-D fusion methods: (a) Early fusion, (b) Late fusion, and (c) Parallel fusion.

Angle Estimation Error (MAE [deg])

Architecture Classical PIH Medical Pipe
RGB 6.65 5.43
Depth 25.38 10.86
Early Fusion 8.43 5.37
Late Fusion 5.30 4.75
Parallel Fusion 11.78 6.96

Radius Estimation Error (MAE [mm])

Architecture Classical PIH Medical Pipe
RGB 0.59 0.56
Depth 1.03 0.78
Early Fusion 0.64 0.53
Late Fusion 0.31 0.35
Parallel Fusion 0.45 0.57

3D Sensor Evaluation

We evaluated the 3D vision sensor's performance by comparing the estimated relative positions (angle and radius) against the ground truth. The results indicate that the sensor achieves high accuracy.

Angle Regression Plot
Comparison of ground truth and estimated values for the Medical Pipe task: (a) Relative angle estimation, (b) Relative radius estimation. The red line represents the ground truth, indicating where the points should ideally lie. The gray lines indicate the first and second margins, encompassing where 95% and 68% of the points are located, respectively.

We further analyzed the estimation error in the Cartesian coordinate system to understand spatial dependencies. The estimated relative radius error does not correspond to the peg location, suggesting robustness across the workspace. While the estimated relative angle error is higher for small radii, this is expected; however, in such cases, the peg is already initiated inside the hole. The overall spatial distribution confirms that the sensor maintains high accuracy across the insertion plane.

Angle Regression Plot
Estimation errors based on the peg location in the insertion plane: (a) Relative angle error, (b) Relative radius error. The blue and red points indicate estimation error below and above the predefined industrial error respectively (1 [mm] in radius and 10° in angle).

Since the estimated relative radius serves as an indicative value for the insertion trigger, it was converted into a binary In/Out classification. If the radius exceeds the threshold, the system classifies it as 'Out', prompting location improvement. To minimize false positives, the insertion is initiated only after receiving two consecutive 'In' predictions, reducing the chance of inserting the peg outside the hole to below 1%.

Angle Regression Plot
Analysis of errors in the estimated: (a) Angle estimation error versus actual radius, (b) In/Out binary classification accuracy for the insertion task. In both graphs: The blue and red colors indicate In and Out ground truth samples respectively. The Dark and Bright colors indicate correct and incorrect predictions respectively. (For example, dark red color indicates In ground truth sample that correctly predicted as In)

The crucial test of the 3D vision sensor lies in validating it across the full insertion pipeline. Experiments were conducted on a UR5e robotic cell with both rigid and deformable objects. For the classic PIH task (4.5 mm peg), the vision sensor enhanced the success rate from 83% to 100%. Similarly, for the challenging Medical Pipe task, the success rate increased from 80% to 98%, validating the system's effectiveness in handling deformable objects.

Robotic Insertion Success Rates

Task Sensors Radial Error Range ($R_{err}$) Success Rate
4.5mm Peg / 6mm Hole Force Only [1, 2.5] mm 83%
Force + Vision [1, 3.0] mm 100%
8mm Peg / 10mm Hole Force Only [1.5, 3.5] mm 80%
Force + Vision [1.5, 10.0] mm 100%
16mm Peg / 20mm Hole Force Only [2.5, 8.0] mm 51%
Force + Vision [4.0, 14.0] mm 90%
Medical Pipe Force Only [1.5, 2.5] mm 80%
Force + Vision [1.5, 2.5] mm 98%

Insertion Videos

Rigid PIH insertion

Medical Pipe insertion

BibTeX

@article{hazan2024learning,
  title={Learning-Based 3D Vision Sensor for Robotic Peg-In-Hole Insertion of Deformable Objects},
  author={Hazan, Sher and Cohen, Eylon and Schneor, Ronit and Fischer, Anath and Zacksenhouse, Miriam},
  journal={IEEE},
  year={2024}
}