Next Article in Journal
Modified U Slot Patch Antenna with Large Frequency Ratio for Vehicle-to-Vehicle Communication
Previous Article in Journal
Pulse Oximetry Based on Quadrature Multiplexing of the Amplitude Modulated Photoplethysmographic Signals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Deep Bayesian-Assisted Keypoint Detection for Pose Estimation in Assembly Automation

1
Department of Electrical and Computer Engineering, University of California Davis, Davis, CA 95616, USA
2
Greenfield Labs, Ford Motor Company, Palo Alto, CA 94304, USA
3
Department of Mechanical and Aerospace Engineering, University of California Davis, Davis, CA 95616, USA
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2023, 23(13), 6107; https://doi.org/10.3390/s23136107
Submission received: 23 May 2023 / Revised: 27 June 2023 / Accepted: 28 June 2023 / Published: 2 July 2023
(This article belongs to the Section Sensors and Robotics)

Abstract

:
Pose estimation is crucial for automating assembly tasks, yet achieving sufficient accuracy for assembly automation remains challenging and part-specific. This paper presents a novel, streamlined approach to pose estimation that facilitates automation of assembly tasks. Our proposed method employs deep learning on a limited number of annotated images to identify a set of keypoints on the parts of interest. To compensate for network shortcomings and enhance accuracy we incorporated a Bayesian updating stage that leverages our detailed knowledge of the assembly part design. This Bayesian updating step refines the network output, significantly improving pose estimation accuracy. For this purpose, we utilized a subset of network-generated keypoint positions with higher quality as measurements, while for the remaining keypoints, the network outputs only serve as priors. The geometry data aid in constructing likelihood functions, which in turn result in enhanced posterior distributions of keypoint pixel positions. We then employed the maximum a posteriori (MAP) estimates of keypoint locations to obtain a final pose, allowing for an update to the nominal assembly trajectory. We evaluated our method on a 14-point snap-fit dash trim assembly for a Ford Mustang dashboard, demonstrating promising results. Our approach does not require tailoring to new applications, nor does it rely on extensive machine learning expertise or large amounts of training data. This makes our method a scalable and adaptable solution for the production floors.

1. Introduction

Despite significant advances in automation technology, the majority of assembly tasks across various industries are still carried out manually due to ongoing challenges related to the accessibility and ease of adoption. In addition to technological obstacles, the financial aspects of automation have not been favorable. The return on investment from automating a task on the production floor must be realized within a short timeframe compared to the production lifespan, typically one year for a product with a market life of two to three years. However, the adoption of state-of-the-art automation is often expensive and incurs additional costs due to the need for troubleshooting and specialized expertise in automation and machine learning. Consequently, there is a pressing need for streamlined and cost-effective automation workflows that rely on commercial off-the-shelf hardware and minimal expert intervention to meet the technical requirements. In this way, the full potential of automation methods can be realized.
Pose estimation is one critical aspect of assembly automation [1,2]. Machine learning (ML) techniques, and particularly convolutional neural networks (CNN), have revolutionized object detection and are also transforming pose estimation methods [3]. Despite the progress made by ML-based methods, new bottlenecks have emerged, which are now associated with the involvement of ML expertise and the need for extensive training data. State-of-the-art machine learning-based methods often suffer from poor performance when dealing with limited training data. Furthermore, their performance can be sensitive to network design decisions and hyperparameter choices. While these technologies offer new capabilities, their requirements hinder their widespread adoption in the industry.
This paper proposed a novel approach to pose estimation that prioritizes cost effectiveness in addition to accuracy. The method relies on stereo vision and can be easily set up using a variety of off-the-shelf or custom camera systems that meet the diverse requirements of assembly tasks on the production floor, such as specific designations of the field of view, working distance, and resolution. Although our approach benefits from deep learning, its performance is not heavily dependent on the quality of the deep learning module. We employed a deep neural network to primarily produce initial keypoint detections using limited training data. Subsequently, the preliminary keypoint detections are further enhanced through the application of auxiliary refinement processes. To accomplish this, we complemented the neural network detection with conventional feature extraction techniques. Furthermore, we incorporated information about the geometry of the mechanical parts of interest into the keypoint detection and pose estimation processes, assuming that these parts are rigid and that accurate knowledge of their design is available. These assumptions hold true for most parts found on assembly floors. Following pose estimation, nominal assembly trajectories were updated. A nominal trajectory is one that, given the reference position of all the components involved, can effectuate a successful assembly. While we describe our approach in the context of assembly automation, the techniques discussed here are general enough to be applicable to other aspects of manufacturing automation, such as in-situ inspection and error-proofing or to improve an existing pose estimation scheme.
Our pose estimation solution was based on keypoint detection, which centers on a deep neural network trained to detect a small number of keypoints on each mating assembly component. The method relies on stereo vision, which provides a lot of flexibility and removes the constraints and limitations of commercial technologies based on structured light. To address the challenges associated with adopting deep learning solutions, which include the need for machine learning expertise and large quantities of labeled training data, we developed a streamlined process that assumes neither of these requirements can be adequately met. The process begins with acquiring a small number of images of the assembly parts on the production floor and annotating them to train a deep learning architecture. We assumed that an automation technician with a basic understanding of the underlying deep learning process is responsible for setting up the training stage, possibly according to a simplified protocol that can be quickly developed and used for a variety of parts. The workflow, however, presumes that computer-aided design (CAD) models of the assembly parts or the precise relative positions of the keypoints of interest are available.
A deep network, when provided with insufficient training data and without the benefit of machine learning expertise, is likely to perform poorly and may not meet the requirements of the task at hand. In addition, the hardware flexibility associated with the adoption of stereo vision, comes at a cost—even with substantial amounts of training data and extensive effort on network design and tuning, meeting the accuracy requirements of object localization for assembly automation becomes challenging due to stereo vision’s sensitivity to disparity errors. It is worth noting that this is unlike mobile robotic or object grasping applications where the accuracy requirements for pose estimation are generally more relaxed and deep learning techniques have already demonstrated promising results [4,5]. In most industrial assembly tasks, the error should be limited to millimeter or even sub-millimeter scale for successful automation. Our study aims to achieve assembly-level accuracy while maintaining a practical approach suitable for implementation on the production floor, by eliminating the requirement for hyper-parameter optimization and minimizing the efforts involved in data collection and annotation when tailoring to new assembly tasks.
We proposed a Bayesian update method, which we refer to as Bayesian-Assisted Inference (BAI), to complement the deep network. We presumed that the network is able to identify a small subset of keypoints with reasonable accuracy and, despite its crude performance for the remaining keypoints, it can still offer a coarse a priori estimation of their pixel coordinates. Assuming the parts were rigid, we capitalized on our knowledge of their geometry to construct a set of likelihood functions that pinpoint the regions within an image where the remaining keypoints are expected to be located. This enabled us to generate a more precise posterior probability of keypoint locations. Finally, while the resulting posterior keypoints were still insufficient for disparity calculation and pose estimation with sufficient accuracy for assembly automation, we used conventional feature extraction techniques to find correspondences for the keypoints extracted through the BAI stage. These steps culminated in a pose estimation algorithm that is more tolerant of the deep network’s suboptimal performance and can be implemented quickly.
The contributions of this work can be summarized as follows: (a) Via a Bayesian updating framework, we present a novel and systematic method of incorporating our precise knowledge of part design into improving pose estimation accuracy. A significant implication of this approach is the potential for a marked reduction in data requirements, specifically within the realm of deep-learning-based pose estimation. This not only enhances efficiency but also advances the accessibility of such methods; (b) we demonstrate that traditional feature extraction techniques, such as Scale-Invariant Feature Transform (SIFT), when used in synergy with contemporary deep learning, can enhance the accuracy of pose estimation methods; (c) we provide a comprehensive ablation study to better understand the role of various components of our algorithm in improving accuracy or data efficiency; (d) we demonstrate the effectiveness of our algorithm on a challenging production floor assembly task. In particular, we applied our method to the assembly of a 14-point snap-fit dash trim on a Ford Mustang dashboard. The component features multiple challenges: it has a curved and complex geometry, lacks surface features, and is difficult to handle. Our algorithm exhibits effectiveness and simplicity in implementation, underscoring its potential for use in real-world applications.
The rest of the paper is structured as follows. Section 2 presents an overview of the past research on pose estimation. Section 3 discusses the proposed method including the pipeline and BAI. In Section 4, the experimental results are presented. Section 5 concludes the paper.

2. Related Work

2.1. Pose Estimation

Pose estimation is a crucial component of vision-based robotic assembly systems, involving the estimation of a target object’s rotation and translation relative to a reference. Structured light-based methods for pose estimation have been employed in various studies [6,7,8,9,10]. This technology necessitates the use of one or two camera systems equipped with an infrared (IR) projector, and relies on intricate pattern projection and matching algorithms. Such complexity renders custom implementations [7] challenging to achieve, particularly when attempting to satisfy the specific requirements (e.g., field of view) of each individual use case. This is especially problematic given the limited hardware specifications of existing off-the-shelf structured light systems, such as field-of-view, accuracy, and working distance, which make them unable to fulfill the diverse requirements of assembly applications. Moreover, pose estimation relying on structured light is susceptible to inaccuracies resulting from ambient illumination [11], as well as color and intensity distortions due to the absorption and reflectivity properties of objects in the scene [12].
Stereo vision [13,14] provides a convenient alternative to structured light methods, requiring only two regular cameras installed and calibrated on the same base platform. In a more general scheme, the cameras (possibly more than two) may be placed such that each captures a different view of the objects [15]. Stereo vision benefits from the availability of open-source software and extensive past research [16]. The simplicity of the setup allows for flexible selection of camera specifications that are most suitable for the given assembly task. Despite its advantages, the accuracy and reliability of conventional stereo vision techniques rely heavily on objects having distinct surface features [17], without which pose estimation through the resulting point cloud may fail. In many manufacturing applications, however, assembly parts have a plain finish and lack distinguishing surface features, which can complicate pose estimation through conventional means. Moreover, both stereo vision and structured light methods produce point cloud data that necessitate further processing, including the segmentation and their subsequent utilization for pose estimation [18].
Recent developments in 3D pose estimation have centered on deep learning methods. In end-to-end approaches, the 3D pose is directly predicted from an image [19,20] or an image pair [15]. Alternatively, in a process similar to what we adopted in this work, deep networks are utilized as the first step of two-stage approaches that first predict the 2D locations of specific keypoints on the object’s surface and then estimate the pose through the PnP algorithm [21,22,23].

2.2. Concurrent Object Detection and Pose Estimation

In recent years, methods that accomplish both object detection and pose estimation have gained popularity. Modern object detection models are already capable of accurately providing object bounding boxes or masks [24,25,26]. As an extension of the existing object detection or segmentation frameworks, the associated model structures are modified and the CNN-extracted features are reused as part of multi-task learning to concurrently perform object pose estimation [19,27,28,29,30]. However, these methods are heavily reliant on objects’ texture and context information and can be negatively affected by occlusion and cluttered backgrounds. Point-wise feature-based approaches [31,32,33] have gained popularity due to their better performance in such cases. These approaches focus on capturing local features and can more accurately estimate the pose of an object in 3D space. In general, the state-of-the-art machine learning-based techniques, including those based on point-wise features, can exhibit low generalizability and robustness issues [34] and therefore require large and diverse datasets for training. The main characteristics of some relevant works in the domain of 6D pose estimation are summarized in Table 1.

3. Proposed Technique

Our work focused on achieving pose estimation through the detection of a small set of keypoints on assembly parts using deep convolutional networks. After detecting these keypoints, they were further refined using a Bayesian-assisted inference technique. We began by providing a brief overview of our proposed approach, followed by a detailed explanation of its various stages.

3.1. Pipeline Summary

Figure 1 demonstrates the pipeline for the proposed scheme and Algorithm 1 presents the associated pseudo code. The process starts with capturing the left and right stereo camera frames of the assembly components. Both frames pass through a deep convolutional network that outputs multiple heatmaps, one for each keypoint. These heatmaps are interpreted as 2D probability distributions of the keypoint pixel positions. Given the limited training data, and no or limited tailoring to the given assembly task, it is expected that the network performance be unacceptable for the majority of the output channels (heatmaps). As such, we assumed that only a small subset of keypoints will have heatmaps of sufficient quality to support obtaining an initial rough estimate of the pose. To identify the higher-quality heatmap channels, we relied on random sample consensus (RANSAC) [35]. This involves an optimization step that aims to find an initial rough estimate of a transformation matrix mapping the corresponding keypoints from a reference pose to their current position. Once the inliers are detected by RANSAC, the remaining extracted keypoints are considered outliers, and their corresponding heatmaps are only used as prior distributions of keypoint pixel positions. The estimated transformation matrix is then used to form a likelihood function for the outlier keypoints. The likelihood function is used to improve the priors (low-quality heatmaps) and form improved posterior distributions. We use these improved heatmaps to come up with a maximum a posteriori (MAP) estimate of the pixel positions.
Algorithm 1 Keypoint detection and pose estimation pipeline.
Inputs:
  •     Image pair from stereo camera: i m g l , i m g r
  •     Locations of N reference keypoints K = [ k 1 , k 2 , , k N ]
  •     Minimum number of valid keypoints L 4
Outputs: Transformation matrix M = M ^ *
1:
Grab a pair of stereo images { i m g l , i m g r }
2:
Pass through CNN, obtain keypoint heatmaps H = C N N ( i m g ) .
3:
for iteration t 1 to T do
4:
    1. Choose a random subset of heatmaps and extract the 2D keypoint positions.
5:
    2. Obtain the transformation matrix, M ^ , according to Equation (1).
6:
    3. Determine the inliers and outliers based on the projection error.
7:
    4. Store M ^ if there are more inliers than the latest best projection.
8:
end for
9:
Return M ^ and the indices of the inlier and outlier keypoints ( S I and S O ).
10:
Form likelihood functions for all keypoints in S O per Equation (2).
11:
Form priors for keypoints in S O ( P n H = H n ).
12:
Form posterior probabilities for keypoint in S O per Equation (3).
13:
Find the MAP estimate of pixel positions for kepoints in S O per Equation (4).
14:
Use SIFT to find correspondences for all keypoints in both i m g l , and i m g r .
15:
Take average of disparity pairs for each keypoint.
16:
Find the final transformation, M = M ^ * , through the PnP algorithm (or per Equation (1)).
Even for a high-quality posterior, the accuracy of keypoint positions are generally insufficient for pose estimation in assembly automation. This is a consequence of the sensitivity of stereo vision to disparity errors, inability of human annotators to achieve perfect annotation quality, in addition to the sub-optimal performance of the network. As such, for point correspondences, we relied on scale-invariant feature transform (SIFT) [36]. SIFT was applied to the extracted keypoints in both the left and right frames independently, to find an accurate correspondence for each keypoint. SIFT is an accurate tool for correspondence discovery but suffers from computational complexity [37]. However, here we could limit the SIFT search area to the regions surrounding the obtained keypoints. This dramatically reduces the computational load and enables real-time implementation. Following these steps, we will have two pairs of correspondences leading to two disparity values (Figure 2). Assuming that the estimated disparity was contaminated by a zero-mean noise, we took an average of the two disparities, thereby theoretically reducing the estimation variance by a factor of 2. The averaged disparities were used to make a final, more accurate estimate of the pose.

3.2. Bayesian-Assisted Inference (BAI)

Training a deep neural network with a generic backbone, limited data, and suboptimal hyperparameters in the absence of ML expertise can result in poor performance. This is particularly true for keypoint detection, as the visual features of different keypoints can be highly similar, leading the network to identify multiple islands of high probability pixels for each keypoint and decreasing its overall accuracy. The conventional approach for a poorly performing network is to collect more training data, use data augmentation strategies, optimize the network architecture, and fine-tune the hyperparameters. This process is iterative and can be expensive, requiring expert knowledge. However, we argue that it is possible to improve the network’s performance without collecting additional data or training by adopting alternative methods.
We proposed two main assumptions to improve network performance without additional data or training: (1) the network can detect at least four keypoints with reasonable accuracy, which forms an over-determined system of equations and yields an initial but imprecise estimate of the pose; (2) we assumed that assembly parts behave rigidly, meaning that the relative positions of the keypoints of interest remain unchanged and that we have access to their accurate CAD models. An initial transformation matrix was obtained based on the first assumption and served as a starting point for refining the pose estimate. The second assumption, together with the initial transformation matrix, enabled the formation of likelihood functions that describe the probable positions of poorly detected keypoints, thereby enhancing the accuracy of the final transformation matrix within a Bayesian updating framework.
This is conceptually demonstrated in Figure 3, in which the objective was to identify keypoints associated with the corners of a 2D polygon. In this example 2D case, having access to approximate positions of a subset of keypoints, one can identify the likely positions for the remaining keypoints and form an improved posterior for each. To paint a more intuitive picture of the proposed concept, consider a case where, as part of a human joint detection task, only feet and waist are identified. Given our knowledge of the human anatomy, in such a case, one can come up with the likely regions where the knees may be located. Analogous to this example, here, by utilizing our initial estimate of the transformation matrix, we incorporated our knowledge of the part design into the formation of likelihood functions. This is further elaborated in the following.

3.2.1. Preliminaries

To transform the 3D position, X n , of the n th reference keypoint ( n { 1 , . . . , N }) to its new position, X n , we canwrite:
X n = M X n ,
where X n = [ x n y n z n 1 ] T , X n = [ x n y n z n 1 ] T , and M = R T 0 1 is the corresponding transformation matrix. Here, R is a 3 × 3 rotation matrix, T is a 3 × 1 translation vector, and X n and X n are both in homogeneous coordinates. In addition, given the camera calibration matrix, one can project a 3D point, X n , onto the image coordinates k n = [ x n I , y n I ] , where x n I and y n I are lateral and vertical pixel positions, respectively.
We denote the probability of the n th keypoint residing at the 2D pixel position k n as P n ( k n ) . We denote the corresponding prior and posterior probabilities as P n H ( k n ) and P n P ( k n ) , respectively.
The output of the keypoint detection deep network includes N channels, each representing a heatmap, H n , for each of the keypoint locations. The heatmap coordinates associated with larger values are indicative of more likely pixel positions for the corresponding keypoint.

3.2.2. Initial Estimation of the Transformation Matrix, M

We assumed that the performance of the network is reasonable for a subset of keypoints, denoted as S I , with a size L 4 . The pixel position of each of these keypoints can be extracted from the network heatmaps as:
k ^ n = arg max k H n ( k ) ,
where k n and k are 2D pixel positions. Given the left- and right-frame pixel positions for each keypoint, one can calculate disparity and subsequently find an estimated 3D position, X ˜ n , for each keypoint in S I . An initial, although rough, estimate of the transformation matrix M can then be found:
R ( M ) = | | X ˜ M X | | , M ^ = arg min M R ( M ) ,
where X = [ X l ] and X ˜ = [ X ˜ l ] , ( l S I ) represent the 3D positions of the reference and estimated keypoints.
In the above equations, it is assumed that we have access to S I , meaning we know which output channels of the network have higher quality to support an initial estimate of M. However, in practice, we do not have access to this information. To identify this subset of the network output channels, we used RANSAC (RANdom SAmple Consensus) [35] for outlier/inlier detection as part of the optimization of Equation (1)). The minimum number of inliers, L, was treated as a hyperparameter and, as noted earlier, was assumed to be 4 . The identified inliers constitute the set S I and the optimal result, M ^ , is taken as one initial measurement of the transformation matrix. The remaining, N L , keypoints (outliers), constitute the set, S O , for which we consider the network generated heatmaps as prior probabilities of their pixel positions, i.e., P n H = H n .

3.2.3. Likelihood and Posterior

Next, we will focus on the subset of keypoints, denoted by X m for m S O , that are considered outliers due to their poor network output quality according to the RANSAC algorithm. For a given initial estimate, M ^ , of the transformation matrix, we can write:
X ^ m = M ^ X m , F ^ m = P X ^ m ,
where P is the camera calibration matrix, F ^ m = [ k ^ m z ^ m ] T and k ^ m = [ x ^ m I y ^ m I ] T .
We assume that, for any given pixel position k m of the outlier keypoint m, the estimate k ^ m is more likely to be located in close proximity to k m , and the likelihood of the estimate decreases as it deviates from this position. We consider a Gaussian form for the likelihood function:
P L ( k ^ m | k m ) = 1 2 π | Σ | e 1 2 ( k m k ^ m ) Σ 1 ( k m k ^ m ) ,
where P L is the likelihood function, Σ = σ I , I is a 2 × 2 identity matrix and σ is treated as a hyperparameter. Given the prior (network heatmap) and the likelihood function, the posterior probability can be written as:
P P ( k m | k ^ m ) P H ( k m ) P L ( k ^ m | k m ) .
This formulation provides us with a systematic method of incorporating our accurate knowledge of the part geometry in improving the network-generated heatmaps. We then rely on the maximum a posteriori (MAP) estimate of the keypoints pixel positions, which is expected to be superior to that solely based on the network priors:
k ˜ m = arg max k m P P ( k m | k ^ m ) ,
where, as before, keypoint m belongs to the outliers. By integrating the posterior-based 2D keypoint positions with the 2D positions of the inlier keypoints directly obtained from the network, we can derive a more accurate estimate of the transformation matrix, M.
As noted earlier, even with the improved posteriors, we may not be able to obtain an accurate disparity estimate. As such, we relied on SIFT to find the correspondences (see Section 3.1 and Figure 2), and calculated disparity for each keypoint. This was then used to estimate the 3D positions of all keypoints and ultimately a final, more accurate M ^ * according to Equation (1)). To find the final M ^ * , we included all the keypoints in S I S O . We provide the complete pose estimation process including the BAI step in Algorithm 1.

4. Experimental Evaluation

4.1. Experimental Setup and Training Data

As an example application, here we studied the assembly of a Mustang dash trim onto the dashboard (Figure 4). The dash trim has a complex and curved geometry, and its surface has no visually distinct features, which makes it a very challenging candidate for pose estimation. The dash trim’s slender design with a large aspect ratio also makes its handling and assembly difficult. It features 14 pins with associated locking keys on the back of the dash trim that need to properly mate with 14 holes on the dashboard for a successful assembly (Figure 4b). This assembly task relies on the operator’s experience and training, and damage during assembly is common, leading to a large number of scrap parts. As such, we also found this a worthwhile and challenging candidate for an assembly automation case study. In the remainder of this section, we focus on the implementation and evaluation of the proposed algorithm through this assembly task, including a comprehensive ablation study to better understand the behavior of various components of our method.
Figure 5 shows the experimental setup. An ABB IRB 4600 industrial robot was used to automate the assembly task. The figure also demonstrates the robot end-effector, including an EPick Robotiq vacuum gripper, a ZED-mini stereo camera and an ATI IP65 Omega85 force transducer. The force sensor was only used for safety purposes and emergency stop, and to ensure that the parts are not exposed to extreme forces causing damage. The task involves localization of the dash trim, placed at a random location on a table. To ensure successful execution of the assembly task, it is crucial to minimize the pose estimation error. This is necessary to achieve precise manipulation of the dash trim using the vacuum gripper, as well as for accurately aligning the pins and holes during the assembly process.
To create a quality training dataset, it is important to include a wide range of images depicting the mating parts. One approach is to position the parts in random locations and orientations that closely resemble their arrangement on the production floor. For each configuration, images can be captured and annotated. However, this process is time-consuming and labor-intensive. Moreover, conducting extensive development activities directly on an active production floor is often impractical. Consequently, these activities are typically performed in a replicated robotic assembly setup within a controlled laboratory environment before implementation which can result in increased costs and potential disparities between the train and test conditions.
To optimize the data collection process on the production floor, we employed an eye-in-hand robot arm. This robot arm not only captures images from various perspectives to collect the training data but also performs the final assembly task. By maneuvering the camera around the assembly parts, images with varying perspectives can be captured, without having to alter the pose of the parts. Furthermore, we kept the number of annotated images at a manageable level, typically limited to a few hundred, and restricted the number of keypoints to less than 10 per object. In our specific experiment with dash trim, we utilized a total of 277 samples and seven keypoints.
Although this data generation method is streamlined, it has limitations in capturing intricate variations associated with shadows, background features, and relative object positions. Consequently, the network performance may be affected. In the following, we demonstrate that our proposed approach enhances the network’s performance, even when trained on limited and relatively low-quality data, and subsequently improves pose estimation.
Figure 6 shows an example of a dash trim image with the corresponding annotations as red crosses. As shown in this figure, the dash trim has a plain surface with no distinct visual features. Hence, most of the keypoints were selected on the boundary with sharp geometries. It was noted that increasing the number of keypoints can potentially improve pose estimation accuracy. For a component example such as the one shown in Figure 6, given its curved and featureless surface, there are not too many keypoint options. It is also important to note that it is possible to select keypoints in such a way that they span multiple camera viewpoints. In that case, it is necessary to adopt registration schemes [10], which may complicate the implementation and, depending on the registration performance, adversely affect pose estimation accuracy. As such, when possible, it is preferred to select the keypoints on a single view-point.

4.2. Network and Training

4.2.1. Network Architecture

For keypoint detection, we relied on a deep CNN architecture as shown in Figure A1 in Appendix A. This architecture was inspired by earlier works in human joint detection such as a cascaded pyramid network [38]. The feature extractor has 50 layers [39] and starts with a convolutional layer featuring 7 × 7 kernels and a stride of two followed by a max pooling layer to reduce the input image size ( 1242 × 2208 ) by a factor of 2 along each dimension to 621 × 1104 . The result then passes through four consecutive modules (noted as S-module in Figure A1), each featuring multiple residual blocks [39]. The S-modules together form a feature pyramid network [40] with four outputs, each featuring a different scale. The output of the S-modules passes through a bottleneck to adjust the number of channels to match the number of keypoints and is then resized to match the size of the first S-module output (i.e., 311 × 552 ). As such, the output of the bottlenecks is 311 × 552 × N , where N is the number of keypoints to be detected by the network. The bottleneck outputs are stacked up to form a 311 × 552 × 4 N output, which is further passed through a final bottleneck stage to reduce the number of channels back to N (i.e., 311 × 552 × N ). In other words, each channel on the output creates a heatmap of the potential positions of one of the N keypoints. The final bottleneck combines the features extracted at various scales; some at lower level S-modules focused locally around the keypoints of interest, while others at higher level S-modules looking at a larger picture, taking into account the contextual information, including the relative position of various keypoints. The output of each residual network is batch normalized prior to the nonlinear activation, which also helps with regularization. An exponential linear unit (ELU) activation is used in each residual unit.

4.2.2. Training

Throughout the training process, we penalized non-zero values on the outputs of the four bottlenecks and the final output of the network, with the exception of the regions surrounding the keypoints of interest. In this form, the loss function is a sum of five terms (associated with the final output heatmap and the outputs of the four bottlenecks). Each loss term is defined as the root mean square (RMS) error between the corresponding output and the ground truth heatmap. The ground truth heatmap is formed by placing a Gaussian blur [38] with a variance of 10 pixels at the location of each keypoint, forming a 310 × 552 × N target output. The variance of the Gaussian blur is a hyperparameter which is tuned to reflect the human annotation uncertainty and the image resolution and quality limitations. Consistent and accurate annotation supports the generation of a sharper target heatmap, resulting in better keypoint detection. Further insights into the loss function and its components can be found in [38].
An Adam optimizer [41] with an initial learning rate of 5 × 10 4 was used throughout the training. During inference, the 2D pixel location of the maximum heatmap value in each of the N channels of the network output was used as the position of the corresponding keypoint. Since the size of each output channel (heatmap) was smaller than the original image size, the coordinates of the maximum heatmap values were scaled up to determine the pixel position of the keypoints on the input image. The model was trained for 300 epochs, and the best validation model was used to run the tests in Section 4.3.

4.3. Results

Figure 7a depicts an example test image of the dash trim and Figure 7b illustrates the corresponding heatmap generated by the network for a single keypoint. The keypoint of interest, indicated by a green arrow in both figures, is further distinguished by a green dotted circle in Figure 7b. As can be observed, in addition to the immediate vicinity of the keypoint location, the heatmap also displays large values in various other regions. In fact, in this case, the location of the heatmap maximum value occurs far from the true position. While the heatmap global maxima is misleading, further examination reveals the presence of a relatively accurate local maxima, indicative of the true keypoint position in the immediate vicinity of the ground truth. This underscores the importance of incorporating seemingly low-quality heatmaps as priors when estimating the position of the keypoints. The proposed BAI enabled us to take into account the part geometry to improve this heatmap. Figure 7c,d shows the likelihood and the posterior heatmaps, respectively. The posterior heatmap exhibits excitation exclusively in the region of the image where the correct keypoint is located. The final position of the keypoint can be extracted as the 2D location of the maximum posterior probability. The same process was applied to the remaining keypoints and the resulting updated heatmaps were used to extract more reliable pixel positions. These were then used in the calculation of a final, more accurate pose. The execution time of the algorithm from image acquisition to pose estimation is about 315 msec on an AMD Threadripper 3970X CPU and an NVIDIA RTX A6000 GPU, which makes it suitable for real-time implementation.
Figure 8 shows two examples (left-hand side) in which certain keypoints were misplaced (red arrows) when the raw trained network was used. After applying Bayesian updating and integration (BAI), all previously mislocated keypoints were correctly detected, as shown on the right-hand side of Figure 8.
In order to assess the pose estimation performance of the proposed method, the position and orientation of the dashtrim relative to the camera were varied, and the resulting pose was estimated. To evaluate the accuracy of the pose estimation, access to the ground truth pose was required, which was not readily available. Therefore, instead of moving the part itself, we adjusted the camera position and recorded the corresponding robot pose for each frame.
We evaluated the performance of our method quantitatively. We further conducted a series of ablation studies to evaluate the impact of various algorithm components and parameters on the overall accuracy and robustness of the system. The results of these studies are summarized in Table 2 and Table 3. In addition to our proposed method (1) (BAI + SIFT), we evaluated the pose estimation accuracy when the SIFT module was disabled or when only the SIFT module was active while BAI was disabled. Table 2 includes the results for two different sizes of training data and summarizes all the ablation results against the baseline where neither SIFT nor BAI are applied (first row). In all these studies, 20% of the data is used as validation and the rest for training. For more reliable evaluation, we used a larger set including 511 annotated images for testing. As shown in Table 2, for our proposed approach (BAI + SIFT) using 100% of the available data (277 images), the mean position estimation error was at 2.8 mm with a standard deviation (SD) of 1.6 mm. The mean angular rotation estimation error was 0.08(SD = 0.06). These results meet our requirements for the automation of the given assembly task. The baseline performance shows a positioning error of 6.4 mm (SD = 5.7 mm) showing a three-fold increase compared to the proposed BAI with SIFT.
To evaluate the performance loss due to further reduction in data size, we trained a second model, using only 20% of the 277 annotated images, i.e., using 55 total annotated images (44 for training, 11 for validation). Note that this is considered an extremely small set for a network architecture of such capacity (with 50 layers and a total of 23.5 million trainable parameters) and can easily lead to overfitting. The baseline positioning error in this case was 16.1 mm (SD = 16.8 mm). With the adoption of our proposed BAI + SIFT, the positioning error reduces to 5.8 mm (SD = 2.7 mm), showing a three-fold reduction in mean error and a six-fold reduction in standard deviation. Hence, the network’s performance was improved to a level that is superior to the baseline case even when using the complete data (277 images), i.e., trained on a dataset five times larger. The effect of Bayesian assistance on rotation estimation, although noticeable, is not as dramatic, which may be attributed to the long and slender geometry of the dash trim, which facilitates angle estimation even for erroneous keypoint estimates. Table 2 also shows the rest of our ablation results, demonstrating the importance of SIFT and the synergy between SIFT and BAI.
We further evaluated the effect of disparity averaging. The results are listed in Table 3. As shown in this table, for both training data sizes, averaging plays an important role in reducing error and its standard deviation. Nevertheless, the difference in performance is not noticeable between the two cases where either the disparity (AD) or the resulting 3D estimates (AE) are averaged.
This table also highlights the low accuracy of the initial pose obtained through the RANSAC step (IE), where only the higher quality channels of the network are used. According to this result, by improving the outlier channels of the network and integrating them into the estimation process, the error mean/SD reduces from 16.31 mm/3.74 mm to 2.89 mm/1.52 mm. It is worth highlighting that the dataset of dash trim images consisted of seven keypoints, with four keypoints being utilized in the RANSAC estimation process. This left only three outliers for further enhancement through BAI. The results demonstrated a notable improvement in the overall estimation accuracy, even with such small number of outliers. It is reasonable to anticipate that, as the total number of keypoints, and potentially the total number of outliers, increase, the proposed method will become even more effective in enhancing the accuracy and robustness of the estimation. This is because with a larger number of keypoints and outliers, the inlier set has the potential to experience a more significant increase in size, leading to improved estimation performance.
Finally, we assessed the performance of the proposed method when implemented as part of an assembly task. To evaluate this, we pre-programmed the robot with an optimal trajectory for pick-up and assembly given the exact positions and orientations of the dash trim and dashboard. The dashboard pose was assumed to be available since it was mounted at multiple pre-defined points on a standard table on the production floor. As the pose of the dash trim deviates from its assumed location and orientation, the pick-up and assembly trajectory is dynamically adjusted. The assembly process was initiated by randomly placing the dash trim on a table, similar to the process on the production line. The camera was then repositioned to capture the table area within its field of view and estimate the new pose. Subsequently, the nominal trajectory was updated and the assembly task was executed. An illustrative video showcasing the assembly process was included in the Supplementary Materials.

5. Conclusions

In this paper, we introduced a streamlined vision-based pose estimation method that caters specifically to the constraints of production floors. Our approach involves training a deep neural network to detect the pixel positions of a small number of keypoints on the mechanical part of interest. To enhance the performance of the keypoint detection network, we have outlined a systematic method of incorporating precise part geometry information into the keypoint detection process.
The proposed method was formulated within a Bayesian updating framework, where we exploited the assumption of rigidity in the mechanical parts and the availability of accurate design information. We employed RANSAC to identify a subset of inlier network output channels, which provides an initial estimate of the part’s pose. The remaining outlier network channels are treated as priors within the Bayesian updating context. By utilizing the part geometry, we generated likelihood functions that contribute to an improved posterior probability distribution, enabling a more precise determination of the outlier keypoint locations. Subsequently, Maximum a Posteriori (MAP) estimates of the outlier keypoint positions, along with the initial inlier keypoint positions, were employed to calculate the final pose of the component. We have conducted a comprehensive evaluation of our proposed method, including quantitative assessments and ablation studies on a challenging component chosen from the Mustang assembly floor featuring complex geometry and a plain surface devoid of any visual features. We successfully demonstrated its effectiveness through the assembly of a dash trim on the dashboard. By presenting a systematic approach to incorporating our accurate knowledge of part geometry into pose estimation, showing its effect on improving the accuracy and data efficiency, and demonstrating the potential synergy between conventional feature extraction tools and contemporary deep learning, our research contributes to advancing the field of vision-based pose estimation in production floor settings.
Several future directions for this research can be explored. To further enhance the ease of adoption, it is advantageous to explore methods for automating the selection and annotation of keypoints. One potential approach is to generate synthetic photorealistic renderings of the objects of interest, enabling automated generation of annotated images. This eliminates human error and further reduces the cost of data generation for network training. Moreover, it is important to acknowledge the absence of benchmarks with diverse sets of mechanical components commonly found on production floors, along with their corresponding CAD models. These benchmarks should extend beyond bin-picking applications and, while addressing the accuracy requirements of assembly automation, should promote data-efficient, easy-to-implement, and robust 6D pose estimation technologies that can be utilized and maintained without machine learning or computer vision expertise. By doing so, we can encourage research that places a greater emphasis on practical considerations and is more likely to be adopted on production floors. Once such a benchmark becomes available, conducting a comprehensive ablation study on existing 6D pose estimation techniques would be invaluable. This will deepen our understanding of the strengths and weaknesses of different components in the state-of-the-art methods and potentially lead to hybrid approaches that better leverage the additional information available on the production floor.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/s23136107/s1, Video S1: Demonstration of the automated assembly process for a 14-point snap-fit dash trim onto a Ford Mustang dashboard based on the proposed pose estimation.

Author Contributions

D.S. designed the training process, conducted the analysis, and performed ablation studies; A.R. contributed to coding various modules, including the annotation interface, and provided support during the experiments; A.G. participated in formulating the Bayesian inference methodology; M.M.N.S. assisted with robot control and managed data; D.S., A.R., A.G., D.U., T.A.L. and I.S. collectively revised the manuscript; I.S. conceptualized the ideas and approach, as well as supervised the entire project. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ford Greenfield Labs.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data utilized in this study is proprietary and its availability is restricted.

Acknowledgments

This work received technical and hardware support from the Ford Motor Company’s Advanced Manufacturing Center (AMC) and the ABB Robotics.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
2DTwo-dimensional
3DThree-dimensional
BAIBayesian-assisted inference
CADComputer-aided design
CNNConvolutional neural network
ELUExponential linear unit
IRInfrared
MAPMaximum a posteriori
PnPPerspective-n-Point
RMSRoot mean square
SIFTScale-invariant feature transform

Appendix A

Figure A1 shows the network architecture for keypoint detection. Table A1 lists the number of trainable parameters for various modules in the model.
Table A1. Number of trainable parameters of each modules in the architecture.
Table A1. Number of trainable parameters of each modules in the architecture.
Number of Trainable Parameters
Initial convolutional layer9356
S-Module 1Residual block 175,008
Residual block 270,400
Residual block 370,400
S-Module 2Residual block 1379,392
Residual block 2280,064
Residual block 3280,064
Residual block 4280,064
S-Module 3Residual block 11,512,448
Residual block 21,117,184
Residual block 31,117,184
Residual block 41,117,184
Residual block 51,117,184
Residual block 61,117,184
S-Module 4Residual block 16,039,552
Residual block 24,462,592
Residual block 34,462,592
Bottleneck 11799
Bottleneck 23591
Bottleneck 37175
Bottleneck 414,343
Final bottleneck 1203
Total number23,535,143
Figure A1. Keypoint detection network architecture. Residual blocks belonging to the same S-Module and the corresponding bottleneck blocks are shown in the same color. Within an S-Module, only the first and the last residual blocks are shown in the figure, and the rest are indicated by ellipses. The arrows directly connecting the input and the output of residual blocks are named shortcut connections that perform identity mapping from the input to the output for residual learning. Among the shortcut connection arrows, the dotted ones indicate that dimension increase is also performed during shortcuts.
Figure A1. Keypoint detection network architecture. Residual blocks belonging to the same S-Module and the corresponding bottleneck blocks are shown in the same color. Within an S-Module, only the first and the last residual blocks are shown in the figure, and the rest are indicated by ellipses. The arrows directly connecting the input and the output of residual blocks are named shortcut connections that perform identity mapping from the input to the output for residual learning. Among the shortcut connection arrows, the dotted ones indicate that dimension increase is also performed during shortcuts.
Sensors 23 06107 g0a1

References

  1. Ren, J.; Wang, Y. Overview of object detection algorithms using convolutional neural networks. J. Comput. Commun. 2022, 10, 115–132. [Google Scholar]
  2. Beghdadi, A.; Mallem, M. A comprehensive overview of dynamic visual SLAM and deep learning: Concepts, methods and challenges. Mach. Vis. Appl. 2022, 33, 1–28. [Google Scholar] [CrossRef]
  3. Shao, F.; Chen, L.; Shao, J.; Ji, W.; Xiao, S.; Ye, L.; Zhuang, Y.; Xiao, J. Deep Learning for Weakly-Supervised Object Detection and Localization: A Survey. Neurocomputing 2022, 496, 192–207. [Google Scholar] [CrossRef]
  4. Sadeghi Esfahlani, S.; Sanaei, A.; Ghorabian, M.; Shirvani, H. The Deep Convolutional Neural Network Role in the Autonomous Navigation of Mobile Robots (SROBO). Remote. Sens. 2022, 14, 3324. [Google Scholar] [CrossRef]
  5. Alonso, M.; Izaguirre, A.; Graña, M. Current Research Trends in Robot Grasping and Bin Picking. In Proceedings of the International Joint Conference (SOCO’18-CISIS’18-ICEUTE’18), San Sebastián, Spain, 6–8 June 2018; Graña, M., López-Guede, J.M., Etxaniz, O., Herrero, Á., Sáez, J.A., Quintián, H., Corchado, E., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 367–376. [Google Scholar]
  6. Geng, J. Structured-light 3D surface imaging: A tutorial. Adv. Opt. Photonics 2011, 3, 128–160. [Google Scholar] [CrossRef]
  7. Tran, V.L.; Lin, H.Y. A Structured Light RGB-D Camera System for Accurate Depth Measurement. Int. J. Opt. 2018, 2018, 8659847. [Google Scholar] [CrossRef] [Green Version]
  8. Yin, L.; Wang, X.; Ni, Y. Flexible three-dimensional reconstruction via structured-light-based visual positioning and global optimization. Sensors 2019, 19, 1583. [Google Scholar] [CrossRef] [Green Version]
  9. Van der Jeught, S.; Dirckx, J.J. Real-time structured light profilometry: A review. Opt. Lasers Eng. 2016, 87, 18–31. [Google Scholar] [CrossRef]
  10. Lin, H.Y.; Liang, S.C.; Chen, Y.K. Robotic grasping with multi-view image acquisition and model-based pose estimation. IEEE Sensors J. 2020, 21, 11870–11878. [Google Scholar] [CrossRef]
  11. Shao, L.; Han, J.; Kohli, P.; Zhang, Z. Computer Vision and Machine Learning with RGB-D Sensors; Springer: Berlin/Heidelberg, Germany, 2014; Volume 20. [Google Scholar]
  12. Zanuttigh, P.; Marin, G.; Dal Mutto, C.; Dominio, F.; Minto, L.; Cortelazzo, G.M. Time-of-flight and structured light depth cameras. In Technology and Applications; Springer: Berlin/Heidelberg, Germany, 2016; pp. 978–983. [Google Scholar]
  13. Lazaros, N.; Sirakoulis, G.C.; Gasteratos, A. Review of stereo vision algorithms: From software to hardware. Int. J. Optomechatron. 2008, 2, 435–462. [Google Scholar] [CrossRef]
  14. O’Riordan, A.; Newe, T.; Dooly, G.; Toal, D. Stereo vision sensing: Review of existing systems. In Proceedings of the 12th International Conference on Sensing Technology (ICST), IEEE, Limerick, Ireland, 4–6 December 2018; pp. 178–184. [Google Scholar]
  15. Charco, J.L.; Vintimilla, B.X.; Sappa, A.D. Deep learning based camera pose estimation in multi-view environment. In Proceedings of the 2018 14th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS), IEEE, Las Palmas de Gran Canaria, Spain, 26–29 November 2018; pp. 224–228. [Google Scholar]
  16. Taryudi; Wang, M.S. 3D object pose estimation using stereo vision for object manipulation system. In Proceedings of the 2017 International Conference on Applied System Innovation (ICASI), Sapporo, Japan, 13–17 May 2017; pp. 1532–1535. [Google Scholar] [CrossRef]
  17. Chen, C.; Zheng, Y. Passive and active stereo vision for smooth surface detection of deformed plates. IEEE Trans. Ind. Electron. 1995, 42, 300–306. [Google Scholar] [CrossRef]
  18. Zhuang, C.; Li, S.; Ding, H. Instance segmentation based 6D pose estimation of industrial objects using point clouds for robotic bin-picking. Robot.-Comput.-Integr. Manuf. 2023, 82, 102541. [Google Scholar] [CrossRef]
  19. Liu, Y.; Wen, Y.; Peng, S.; Lin, C.; Long, X.; Komura, T.; Wang, W. Gen6D: Generalizable Model-Free 6-DoF Object Pose Estimation from RGB Images. arXiv 2022, arXiv:2204.10776. [Google Scholar]
  20. Li, X.; Wang, H.; Yi, L.; Guibas, L.J.; Abbott, A.L.; Song, S. Category-Level Articulated Object Pose Estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020. [Google Scholar]
  21. Rad, M.; Lepetit, V. BB8: A scalable, accurate, robust to partial occlusion method for predicting the 3D poses of challenging objects without using depth. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 3828–3836. [Google Scholar]
  22. Tekin, B.; Sinha, S.N.; Fua, P. Real-time seamless single shot 6D object pose prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–22 June 2018; pp. 292–301. [Google Scholar]
  23. Song, C.; Song, J.; Huang, Q. Hybridpose: 6d object pose estimation under hybrid representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 431–440. [Google Scholar]
  24. Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single shot multibox detector. In Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands, 11–14 October 2016; Springer: Berlin/Heidelberg, Germany, 2016; pp. 21–37. [Google Scholar]
  25. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar]
  26. He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2961–2969. [Google Scholar]
  27. Kehl, W.; Manhardt, F.; Tombari, F.; Ilic, S.; Navab, N. SSD-6D: Making RGB-based 3D detection and 6D pose estimation great again. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 1521–1529. [Google Scholar]
  28. Xiang, Y.; Schmidt, T.; Narayanan, V.; Fox, D. PoseCNN: A convolutional neural network for 6D object pose estimation in cluttered scenes. arXiv 2017, arXiv:1711.00199. [Google Scholar]
  29. Do, T.T.; Cai, M.; Pham, T.; Reid, I. Deep-6DPose: Recovering 6D object pose from a single RGB image. arXiv 2018, arXiv:1802.10367. [Google Scholar]
  30. Liu, F.; Fang, P.; Yao, Z.; Fan, R.; Pan, Z.; Sheng, W.; Yang, H. Recovering 6D object pose from RGB indoor image based on two-stage detection network with multi-task loss. Neurocomputing 2019, 337, 15–23. [Google Scholar] [CrossRef]
  31. Mo, N.; Gan, W.; Yokoya, N.; Chen, S. ES6D: A Computation Efficient and Symmetry-Aware 6D Pose Regression Framework. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; pp. 6718–6727. [Google Scholar]
  32. He, Y.; Sun, W.; Huang, H.; Liu, J.; Fan, H.; Sun, J. Pvn3d: A deep point-wise 3d keypoints voting network for 6dof pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 11632–11641. [Google Scholar]
  33. Wang, C.; Xu, D.; Zhu, Y.; Martín-Martín, R.; Lu, C.; Li, F.-F.; Savarese, S. Densefusion: 6d object pose estimation by iterative dense fusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 16–20 June 2019; pp. 3343–3352. [Google Scholar]
  34. Xie, T.; Wang, K.; Li, R.; Tang, X.; Zhao, L. PANet: A Pixel-Level Attention Network for 6D Pose Estimation With Embedding Vector Features. IEEE Robot. Autom. Lett. 2022, 7, 1840–1847. [Google Scholar] [CrossRef]
  35. Fischler, M.A.; Bolles, R.C. Random Sample Consensus: A Paradigm for Model Fitting with Applications to Image Analysis and Automated Cartography. Commun. ACM 1981, 24, 381–395. [Google Scholar] [CrossRef]
  36. Lowe, D.G. Distinctive image features from scale-invariant keypoints. Int. J. Comput. Vis. 2004, 60, 91–110. [Google Scholar] [CrossRef]
  37. Chiu, L.C.; Chang, T.S.; Chen, J.Y.; Chang, N.Y.C. Fast SIFT Design for Real-Time Visual Feature Extraction. IEEE Trans. Image Process. 2013, 22, 3158–3167. [Google Scholar] [CrossRef]
  38. Chen, Y.; Wang, Z.; Peng, Y.; Zhang, Z.; Yu, G.; Sun, J. Cascaded pyramid network for multi-person pose estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–22 June 2018; pp. 7103–7112. [Google Scholar]
  39. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
  40. Lin, T.Y.; Dollar, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature Pyramid Networks for Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017. [Google Scholar]
  41. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
Figure 1. Keypoint detection and pose estimation pipeline consisting of 6 steps. (1) The stereo frames are captured through the camera; (2) frames pass through a keypoint detection network; (3) a RANSAC step identifies network output channels with higher quality and estimates an initial pose. In this schematic, keypoints 1, 4, 5, and 7 are detected as inliers by RANSAC; (4) the remainder of network channels (outliers) are updated through BAI using the part geometry. The associated keypoints are then extracted; (5) keypoint correspondences are obtained for all keypoints using SIFT; (6) a final more accurate pose is estimated.
Figure 1. Keypoint detection and pose estimation pipeline consisting of 6 steps. (1) The stereo frames are captured through the camera; (2) frames pass through a keypoint detection network; (3) a RANSAC step identifies network output channels with higher quality and estimates an initial pose. In this schematic, keypoints 1, 4, 5, and 7 are detected as inliers by RANSAC; (4) the remainder of network channels (outliers) are updated through BAI using the part geometry. The associated keypoints are then extracted; (5) keypoint correspondences are obtained for all keypoints using SIFT; (6) a final more accurate pose is estimated.
Sensors 23 06107 g001
Figure 2. Use of SIFT to improve disparity estimate. Use the keypoint position in the (a) left/(b) right image, ( k n L , k n R ) as a reference to find its SIFT correspondence position in the (a) right/(b) left frame, ( S n R , S n L ). We take an average of the resulting two disparities.
Figure 2. Use of SIFT to improve disparity estimate. Use the keypoint position in the (a) left/(b) right image, ( k n L , k n R ) as a reference to find its SIFT correspondence position in the (a) right/(b) left frame, ( S n R , S n L ). We take an average of the resulting two disparities.
Sensors 23 06107 g002
Figure 3. Bayesian-assisted inference: In this 2D example, keypoints 1, 4, 5, and 7 are the selected keypoint subsets to infer the likelihood function for the remaining keypoints. Thus, the location of the outliers (keypoints 2, 3, and 6) are corrected in the posterior.
Figure 3. Bayesian-assisted inference: In this 2D example, keypoints 1, 4, 5, and 7 are the selected keypoint subsets to infer the likelihood function for the remaining keypoints. Thus, the location of the outliers (keypoints 2, 3, and 6) are corrected in the posterior.
Sensors 23 06107 g003
Figure 4. (a) Assembly of dash trim onto Mustang dashboard. (b)The dash trim is thin and slender with a large aspect ratio, making it rather difficult to handle. Trim features 14 locking pins on the back (red arrows) that need to mate with 14 holes on the dashboard (yellow arrows).
Figure 4. (a) Assembly of dash trim onto Mustang dashboard. (b)The dash trim is thin and slender with a large aspect ratio, making it rather difficult to handle. Trim features 14 locking pins on the back (red arrows) that need to mate with 14 holes on the dashboard (yellow arrows).
Sensors 23 06107 g004
Figure 5. (a) Assembly setup: an ABB IRB 4600 industrial robot is used to pick up a dash trim and install on a dashboard, (b) The end effector including a force sensor, stereo camera, and vacuum gripper.
Figure 5. (a) Assembly setup: an ABB IRB 4600 industrial robot is used to pick up a dash trim and install on a dashboard, (b) The end effector including a force sensor, stereo camera, and vacuum gripper.
Sensors 23 06107 g005
Figure 6. Example annotated image of dash trim. The annotated keypoints are shown with red crosses.
Figure 6. Example annotated image of dash trim. The annotated keypoints are shown with red crosses.
Sensors 23 06107 g006
Figure 7. (a) A test dash trim image with one of the keypoints denoted by the green arrow. (b) Network heatmap output associated with the keypoint of part (a); multiple regions on the heatmap demonstrate strong excitation, indicative of the network confusion (red arrows). The green dotted circle represents the neighborhood of the local maximum corresponding to the accurate keypoint position. (c) Likelihood function obtained based on Equation (2). (d) Updated network output (posterior) using BAI (Equation (3)).
Figure 7. (a) A test dash trim image with one of the keypoints denoted by the green arrow. (b) Network heatmap output associated with the keypoint of part (a); multiple regions on the heatmap demonstrate strong excitation, indicative of the network confusion (red arrows). The green dotted circle represents the neighborhood of the local maximum corresponding to the accurate keypoint position. (c) Likelihood function obtained based on Equation (2). (d) Updated network output (posterior) using BAI (Equation (3)).
Sensors 23 06107 g007
Figure 8. (Left) Identification of keypoints (red dots) using the raw trained network without BAI. Location of the missed keypoints are denoted by red circles. Misplaced keypoints are denoted by the red arrows. (Right) Improved results with BAI; all keypoints are detected correctly (red dots and green arrows).
Figure 8. (Left) Identification of keypoints (red dots) using the raw trained network without BAI. Location of the missed keypoints are denoted by red circles. Misplaced keypoints are denoted by the red arrows. (Right) Improved results with BAI; all keypoints are detected correctly (red dots and green arrows).
Sensors 23 06107 g008
Table 1. A summary of relevant 6D pose estimation methods. End-to-end: fully ML-based method directly generates 6D pose. Generic: not part specific. Assem. prec.: assembly-level precision. Data efficient: designed with data efficiency as a constraint. Prod. level: designed with an emphasis on production floor requirements. Once deployed, can be maintained and adapted to new assembly tasks without the need for machine learning or computer vision expertise. Geom. info: can use geometric design data. CAD model: relies on CAD models. Object + pose: simultaneous object detection and pose estimation. Point cloud: reliant on dense point cloud measurements of objects. Opt: optional.
Table 1. A summary of relevant 6D pose estimation methods. End-to-end: fully ML-based method directly generates 6D pose. Generic: not part specific. Assem. prec.: assembly-level precision. Data efficient: designed with data efficiency as a constraint. Prod. level: designed with an emphasis on production floor requirements. Once deployed, can be maintained and adapted to new assembly tasks without the need for machine learning or computer vision expertise. Geom. info: can use geometric design data. CAD model: relies on CAD models. Object + pose: simultaneous object detection and pose estimation. Point cloud: reliant on dense point cloud measurements of objects. Opt: optional.
AttributeGen6D [19]SSD6D [27]PoseCNN [28]ES6D [31]Multi-v [15]PVN3D [32]DenseFusion [33]BAI + SIFT
End-to-end
Generic
Assem. prec.
Data efficient
Prod. level
Geom. info
CAD modelOpt
Obj + pose
Point cloud
Table 2. Displacement and rotation errors of the models trained on 20% and 100% of the available data. The two models were tested with and without BAI or SIFT. Results for the complete method are shown in bold.
Table 2. Displacement and rotation errors of the models trained on 20% and 100% of the available data. The two models were tested with and without BAI or SIFT. Results for the complete method are shown in bold.
Train SetBAISIFTDisplacement (mm)Rotation (°)
MeanSDMeanSD
100%--6.435.570.090.11
-4.454.70.080.15
-6.024.10.090.07
2.871.630.080.06
20%--16.1116.860.570.53
-12.0915.100.460.44
-9.335.090.560.42
5.892.770.520.36
Table 3. Performance results on the 100% data for averaged disparity (AD), averaged 3D-estimate (AE), and no averaging, where one of the two disparity values were randomly selected (random disparity or RD). The IE (initial estimate) demonstrates the poor accuracy of the initial pose estimation based on RANSAC.
Table 3. Performance results on the 100% data for averaged disparity (AD), averaged 3D-estimate (AE), and no averaging, where one of the two disparity values were randomly selected (random disparity or RD). The IE (initial estimate) demonstrates the poor accuracy of the initial pose estimation based on RANSAC.
Train SetSettingDisplacement (mm)Rotation (°)
MeanSDMeanSD
100%AD2.891.520.080.06
AE2.871.630.080.06
RD5.324.090.220.07
IE16.313.741.660.29
20%AD5.872.780.520.37
AE5.892.770.520.36
RD8.164.550.540.39
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Shi, D.; Rahimpour, A.; Ghafourian, A.; Naddaf Shargh, M.M.; Upadhyay, D.; Lasky, T.A.; Soltani, I. Deep Bayesian-Assisted Keypoint Detection for Pose Estimation in Assembly Automation. Sensors 2023, 23, 6107. https://doi.org/10.3390/s23136107

AMA Style

Shi D, Rahimpour A, Ghafourian A, Naddaf Shargh MM, Upadhyay D, Lasky TA, Soltani I. Deep Bayesian-Assisted Keypoint Detection for Pose Estimation in Assembly Automation. Sensors. 2023; 23(13):6107. https://doi.org/10.3390/s23136107

Chicago/Turabian Style

Shi, Debo, Alireza Rahimpour, Amin Ghafourian, Mohammad Mahdi Naddaf Shargh, Devesh Upadhyay, Ty A. Lasky, and Iman Soltani. 2023. "Deep Bayesian-Assisted Keypoint Detection for Pose Estimation in Assembly Automation" Sensors 23, no. 13: 6107. https://doi.org/10.3390/s23136107

APA Style

Shi, D., Rahimpour, A., Ghafourian, A., Naddaf Shargh, M. M., Upadhyay, D., Lasky, T. A., & Soltani, I. (2023). Deep Bayesian-Assisted Keypoint Detection for Pose Estimation in Assembly Automation. Sensors, 23(13), 6107. https://doi.org/10.3390/s23136107

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop