You are currently viewing a new version of our website. To view the old version click .
Micromachines
  • Article
  • Open Access

30 December 2025

Design and Vision-Based Calibration of a Five-Axis Precision Dispensing Machine

,
,
,
,
and
State Key Laboratory of Precision Electronic Manufacturing Technology and Equipment, Guangdong University of Technology, Guangzhou 510006, China
*
Author to whom correspondence should be addressed.
Micromachines2026, 17(1), 53;https://doi.org/10.3390/mi17010053 
(registering DOI)
This article belongs to the Special Issue Flexible and Biodegradable Electronics and Novel Semiconductor Devices

Abstract

Five-axis precision dispensing machines are employed for semiconductor packaging. The dispensing accuracy is significantly affected by multiple geometric errors among the five axes. This paper proposes a vision-based measurement (VBM) system for identifying geometric errors and calibrating kinematics. The VBM system is also employed to complete the detection of the workpiece. A kinematic model of the machine was established using a local product-of-exponential formulation of screw theory. A geometric error identification algorithm was designed. Eight position-independent geometric errors (PIGEs) and position-dependent geometric errors (PDGEs) were involved. The system of overdetermined equations was solved. Combining the singular value decomposition and regularization, eight PIGEs in the A and C axes were identified. Comprehensive error measurement results verified the proposed approach. The VBM system measured a mean spatial position error of approximately 59.9 μm and a mean orientation error of about 160 arcsec for the end-effector, reflecting the geometric error level of the prototype machine. The proposed approach provides a feasible and automated calibration solution for five-axis precision dispensing machines.

1. Introduction

Precision dispensing is a critical step in semiconductor packaging processes. The task imposes increasingly stringent requirements on dispensing position accuracy and motion trajectory stability amid the rapid evolution of display technologies [1]. Five-axis dispensing machines leverage multi-axis coordinated spatial pose control capabilities [2]. The machine has been adopted in precision scenarios that require precise control over adhesive morphology. Consequently, five-axis calibration techniques and dispensing quality detection methods have also attracted considerable attention.
Static error is a major factor affecting machine accuracy and accounts for a large proportion of the total machine error [3]. Geometric error is an important component of the static error [4,5]. The geometric errors of five-axis machine tools are categorized into position-dependent geometric errors (PDGEs) and position-independent geometric errors (PIGEs) [6]. PDGEs are caused by machining and manufacturing defects of the motion axes. PIGEs are produced by assembly errors [7]. The traditional detection and compensation methods primarily rely on measurement methods, such as laser interferometers, ballbars, and R-tests [8,9,10]. The methods enable global offline calibration with micrometer-level accuracy. However, the calibration process has limitations, such as complicated operation, time-consuming, and difficulty with automated self-calibration [11].
In recent years, machine vision technology has offered new approaches to automatic error identification by leveraging its non-contact, integrated, and automated advantages [12,13]. Researchers have achieved high-precision detection of geometric errors through methods such as visual center positioning compensation algorithms combined with self-illuminating collaborative targets, the integration of the product-of-exponential model with adaptive algorithms, and the establishment of spatial reference points [14,15,16]. Geometric error modeling serves as the foundation for identifying and compensating spatial errors in five-axis machine tools [17]. Screw theory is a core mathematical tool for describing rigid body motion and has been widely applied in the kinematic modeling and error analysis of five-axis machine tools [18]. Among various modeling methods, the one based on the local product-of-exponential strikes a good balance between kinematic solution efficiency and error analysis accuracy [15,19], compared with the traditional Denavit–Hartenberg modeling method [20,21] and the classical product-of-exponential model [22,23]. In addition, recent work has begun to explore integrating vision-based calibration and detection functions within the same platform, aiming at unified geometric accuracy evaluation and defect detection [24,25]. From the perspective of in-line quality assurance, dispensing defects such as misalignment, discontinuity, and volume variation are generally detected by automated optical detection. Many existing systems employ rule-based image processing and contour analysis methods, with parameters tuned to specific products and illumination conditions, and can achieve micrometer-level positioning accuracy on PCB-type substrates [26]. Meanwhile, other studies adopt deep-learning-based segmentation and detection networks, as well as multimodal sensing techniques, to identify subtle voids or surface defects in packaging regions, and have shown good performance under complex backgrounds and low defect contrast [27,28,29].
This paper proposes a vision-based measurement (VBM) system for the calibration and detection of a five-axis precision dispensing machine. The kinematic error model of the prototype is established based on the local product-of-exponential model, incorporating geometric error terms into the transformations associated with axis motions. Subsequently, a geometric error calibration algorithm is developed. The target error terms are identified using the axis configuration and motion characteristics of the prototype. A dispensing detection algorithm is designed and applied for adhesive dot position and geometric feature extraction. To improve the efficiency of calibration and detection, a target recognition framework based on the revised random Hough transform (RRHT) algorithm is integrated into the calibration and detection algorithms.

2. Design of a VBM-Based Five-Axis Dispensing Machine

2.1. Design of a VBM System

Two cameras are employed to develop a vision-based five-axis system in this paper. Camera 1 is located at the Z-axis to measure the displacements of X-axis, Y-axis, and C-axis, as well as part of the A-axis. Camera 2 is located at the X-axis to measure the A-axis. The hardware and specific structure are shown in Figure 1.
Figure 1. Design of a VBM system using two cameras.
Mounting brackets are designed with an adjustment mechanism to calibrate the spatial position of the system. Camera 2 is mounted on a fine-adjustment mechanism. The position of camera 2 can be adjusted to rotate and translate to optimize the optical axis alignment of the imaging system for A-axis measurement tasks.

2.2. Design of a Five-Axis Dispensing Machine Using the VBM System

The VBM system is integrated into the five-axis dispensing machine, as shown in Figure 2.
Figure 2. Integration of the VBM system inside a five-axis dispensing machine.
Specifically, camera 1 is mounted on the Z-axis motion module and moves together with the X-axis and Z-axis motion modules. Camera 2 is installed on the A-axis component to measure the A-axis’s related errors and rotates with the component. During the image acquisition process, the calibration features on the calibration board b remain within the field of view of camera 2. In calibration, plates a and b are mounted on the workpiece stage and the A/C-axis bracket, respectively.
The travel parameters of the prototype five-axis dispensing machine used in this study are as follows: the translational stroke of either the X-axis or Y-axis is 600 mm, the Z-axis is 400 mm; the rotational range of the A-axis is ±92°; the rotational range of the C-axis is ±180°.

3. Kinematic Identification of the Five-Axis Dispensing Machine Using the VBM System

3.1. Kinematic Error Analysis of the Five-Axis Dispensing Machine

An absolute representation [30] is adopted to define the PDGEs and PIGEs of each axis. As shown in Figure 3 and Figure 4, PDGEs reflect motion-dependent dynamic errors linked to position and angle, while PIGEs represent static geometric defects.
Figure 3. PDGEs of five axes inside the five-axis dispensing machine.
Figure 4. PIGEs of five axes inside the five-axis dispensing machine.
Specifically, the PDGEs are summarized in Table 1, where ε i i and δ i i represent the positional error and rotational error of each axis of the five-axis dispensing machine, respectively. PIGEs are summarized in Table 2. Here, α Y Z , β X Z , and γ Y X denote the perpendicularity errors between the X, Y, and Z linear axes; α A Z and β A Y denote the perpendicularity errors of the A-axis rotation axis relative to the Z-axis and Y-axis, respectively; α C X and β C Y denote the perpendicularity errors of the C-axis rotation axis relative to the X-axis and Y-axis, respectively; δ A Y and δ A Z represent the radial errors of the A-axis in the Y-direction and Z-direction, respectively, while δ C X and δ C Y represent the radial errors of the C-axis in the X-direction and Y-direction, respectively.
Table 1. PDGEs inside the five-axis dispensing machine.
Table 2. PIGEs inside the five-axis dispensing machine.

3.2. Kinematic Error Modeling of the Five-Axis Dispensing Machine

The local product-of-exponential model is employed for actual forward kinematic modeling of the prototype. The five-axis platform’s actual motion is the product of its ideal motion and the small error motion screw [31]. As shown in Figure 5, when the A/C-axis rotary table of the prototype is at the maximum travel position of the Y-axis motion module, the intersection of the A-axis and C-axis is defined as the base coordinate system B . The tool coordinate system T , the camera coordinate system V , and the workpiece coordinate system W are then established to formulate the kinematic chain of the prototype.
Figure 5. Kinematics chain of the VBM-based five-axis machine.
The screw coordinate is expressed as follows.
ξ ^ i = ω ^ i v i 0 1 se ( 3 ) , v i = ω × q i
ω ^ i = 0 ω i , 3 ω i , 2 ω i , 3 0 ω i , 1 ω i , 2 ω i , 1 0 so ( 3 )
where ω i denotes the unit vector indicating the direction of the rotating joint; q i represents a point lying on the rotation axis.
When ω i = 0 in the rotation vector, the angular velocity of motion is zero, and the rigid body only undergoes translational motion. The exponential form of the rotation axis and linear axis is expressed as follows.
e ξ ^ i θ i = e ω ^ i θ i I 3 × 3 e ω ^ i θ i ω i × ν i + ω i ω i T v i θ i 0 1 × 3 1 I 3 × 3 θ i v i 0 1 × 3 1
where e ω ^ i θ i = I 3 × 3 + ω ^ i sin θ i + ω ^ i 2 1 cos θ i .
The kinematic chain of five-axis equipment can be divided into two categories: the tool chain and the workpiece chain. By adjusting the arrangement order of kinematic joints, different kinematic chain transformation matrices can be established.
g b t ( θ 1 t , θ 2 t , θ 3 t θ m t ) = e ξ ^ 1 t θ 1 t g 0 1 ( 0 ) e ξ ^ 2 t θ 2 t g 1 2 ( 0 ) g m 1 m ( 0 ) e ξ ^ ( m + 1 ) t θ ( m + 1 ) t g m m + 1 ( 0 ) = e ξ ^ 1 t θ 1 t e t ^ 0 , 1 e ξ ^ 2 t θ 2 t e t ^ 1 , 2 e t ^ m 1 , m e ξ ^ ( m + 1 ) t θ ( m + 1 ) t e t ^ m , m + 1
g b w ( θ 1 w , θ 2 w , θ 3 w θ n w ) = e ξ ^ 1 w θ 1 w g 0 1 ( 0 ) e ξ ^ 2 w θ 2 w g 1 2 ( 0 ) g n 1 n ( 0 ) e ξ ^ ( n + 1 ) w θ ( n + 1 ) w g n n + 1 ( 0 ) = e ξ ^ 1 w θ 1 w e w ^ 0 , 1 e ξ ^ 2 w θ 2 w e w ^ 1 , 2 e w ^ n 1 , n e ξ ^ ( n + 1 ) w θ ( n + 1 ) w e w ^ n , n + 1
where g i i + 1 ( 0 ) S E ( 3 ) ( i = 1 , 2 , , n / m ) is the initial pose between the coordinate systems; t ^ i , i + 1 s e ( 3 ) and w ^ i , i + 1 s e ( 3 ) represent the Lie algebra form of the transformation matrix g i i + 1 ( 0 ) in the tool chain and the workpiece chain, respectively; ξ ^ i i s e ( 3 ) denotes the screw coordinate of the i motion axis in the coordinate system, and θ i i denotes the joint displacement of axis i.
The kinematic model of the prototype system used in this work can be expressed.
g t w ( θ a , θ c , θ y , θ x , θ z ) = [ g b w ( θ a , θ c ) ] 1 g b t ( θ y , θ x , θ z ) = e w ^ c , w e ξ ^ c θ c e w ^ a , c e ξ ^ a θ a e w ^ b , a e t ^ b , y e ξ ^ y θ y e t ^ y , x e ξ ^ x θ x e t ^ x , z e ξ ^ z θ z e t ^ z , v e t ^ v , t
The error propagation model of the PDGEs can be expressed as follows.
e ξ ^ i D θ i = e ξ ^ δ x i δ x i e ξ ^ δ y i δ y i e ξ ^ δ z i δ z i e ξ ^ ε x i ε x i e ξ ^ ε y i ε y i e ξ ^ ε z i ε z i
The error propagation model is derived by multiplying the corresponding motion matrices of the PIGEs. Accordingly, the transfer matrix of the PIGEs associated with the A-axis and C-axis rotary shafts can be obtained.
e ξ ^ a I θ a = e ξ ^ δ A Z δ A Z e ξ ^ δ A Y δ A Y e ξ ^ α A Z α A Z e ξ ^ β A Y β A Y
e ξ ^ c I θ c = e ξ ^ δ C X δ C X e ξ ^ δ C Y δ C Y e ξ ^ β C Y β C Y e ξ ^ α C X α C X
Since the X-axis is the reference axis, the Y-axis and Z-axis represent the translational axis perpendicularity error transformation matrix.
e ξ ^ y I θ y = e ξ ^ γ Y X ( γ Y X )
e ξ ^ z I θ z = e ξ ^ α Y Z α Y Z e ξ ^ β X Z ( β X Z )
The actual forward kinematic model of the five-axis dispensing machine can be obtained.
g ˜ t w = e w ^ c , w ( e ξ ^ c D θ c e ξ ^ c I θ c e ξ ^ c θ c ) e w ^ a , c ( e ξ ^ a D θ a e ξ ^ a I θ a e ξ ^ a θ a ) e w ^ b , a e t ^ b , y ( e ξ ^ y D θ y e ξ ^ y I θ y e ξ ^ y θ y ) e t ^ y , x ( e ξ ^ x D θ x e ξ ^ x θ x ) e t ^ x , z ( e ξ ^ z D θ z e ξ ^ z I θ z e ξ ^ z θ z ) e t ^ z , v e t ^ v , t

3.3. Geometric Error Identification

This section identifies the PDGEs and PIGEs contained in the error model based on a stepwise error identification method. Both the A-axis and C-axis are located in the workpiece chain, and the error propagation model of the workpiece chain can be derived from Equation (12).
[ e w ^ c , w ] 1 g ˜ b w ( θ a , θ c ) [ e w ^ b , a ] 1 [ g b w ( 0 ) ] 1 = e ξ ^ a I θ a e w ^ a , c e ξ ^ c I θ c
where g ˜ b w ( θ a , θ c ) denotes the motion transformation matrix of the workpiece relative to the base coordinate system, and g b w ( 0 ) represents the ideal initial pose matrix.
δ C X = R ˜ b w ( 1 , 4 ) , δ A Z = R ˜ b w ( 3 , 4 ) , δ A Y + δ C Y = R ˜ b w ( 2 , 4 ) β A Y = R ˜ b w ( 2 , 1 ) , β C Y = R ˜ b w ( 3 , 2 ) , α C X + α A Z = R ˜ b w ( 1 , 3 )
where R ˜ b w ( n , m ) denotes the element in the n row and m column of the matrix product on the left side of Equation (13).
When θ a = 0 , only the C-axis moves, and the corresponding pose matrix can be obtained.
[ e ξ ^ a I θ a e ξ ^ c I θ c ] 1 [ e w ^ c , w ] 1 g b w ( 0 , θ c ) [ e ξ ^ c θ c g b w ( 0 ) ] 1 = e ξ ^ c D θ c
ε y c = arcsin R ˜ b c w ( 1 , 3 ) ε x c = arcsin R ˜ b c w ( 2 , 3 ) cos ( ε y c ) ε z c = arcsin R ˜ b c w ( 1 , 2 ) cos ( ε y c )
δ x c δ y c δ z c T = R ˜ b c w ( 1 , 4 ) R ˜ b c w ( 2 , 4 ) R ˜ b c w ( 3 , 4 ) T
where R ˜ b c w ( n , m ) denotes the element in the n row and m column of the matrix product on the left side of Equation (15).
When θ c = 0 , only the A-axis moves, and the pose matrix can be expressed.
[ e ξ ^ a I θ a e ξ ^ c I θ c ] 1 [ e w ^ c , w ] 1 g b w ( θ a , 0 ) [ e ξ ^ a θ a g b w ( 0 ) ] 1 = e ξ ^ a D θ a
ε y a = arcsin R ˜ b a w ( 1 , 3 ) ε x a = arcsin R ˜ b a w ( 2 , 3 ) cos ( ε y a ) ε z a = arcsin R ˜ b a w ( 1 , 2 ) cos ( ε y a )
δ x a δ y a δ z a T = R ˜ b a w ( 1 , 4 ) R ˜ b a w ( 2 , 4 ) R ˜ b a w ( 3 , 4 ) T
where R ˜ b a w ( n , m ) denotes the element in the n row and m column of the matrix product on the left side of Equation (18).
The error propagation model of the tool chain can be derived from Equation (12).
g ˜ b t = e t ^ b , y ( e ξ ^ y D θ y e ξ ^ y I θ y e ξ ^ y θ y ) e t ^ y , x ( e ξ ^ x D θ x e ξ ^ x θ x ) e t ^ x , z ( e ξ ^ z D θ z e ξ ^ z θ z ) e t ^ z , v e t ^ v , t
Then, the perpendicularity error of the translation axis is calculated using the components of the actual motion vector v .
γ Y X = a c o s ( v x · v y ) π 2 α Y Z = a c o s ( v y · v z ) π 2 β X Z = a c o s ( v x · v z ) π 2

4. Calibration and Detection Using the VBM System

4.1. Design of a RRHT-Based Target Detection Framework

To improve the accuracy and efficiency of the VBM system in detecting circular dot calibration boards and dispensed workpieces, this study proposes an RRHT-based target detection framework, which consists of three modules: image preprocessing, edge detection, and target recognition. In preprocessing, median filtering and gamma correction are introduced to handle noise and illumination variations. For edge detection, the Canny algorithm is used to extract contours. The target recognition phase consists of four steps: circle parameter calculation, candidate circle screening, real circle determination, and least squares fitting.
In the circle parameter calculation stage, the algorithm adopts a pixel-gradient-based sampling strategy to improve efficiency, thereby overcoming the excessive computational load of traditional random sampling. To control parameter sensitivity and ensure robustness against noise, a gradient threshold is applied to filter invalid edge points before sampling. In the candidate circle screening and true circle determination stages, the algorithm calculates the ratio of the number of pixels on the circle to its theoretical circumference. This ratio serves as a dynamic constraint for the accumulation threshold. The method effectively minimizes false detections under varying lighting conditions [32]. Finally, the least-squares method is applied to fit the detected true circles, further enhancing recognition accuracy. The specific steps are illustrated in Figure 6.
Figure 6. Principle of the RRHT algorithm.
Adaptation and optimization schemes were applied to two targets: the dot calibration grid and the dispensed workpiece. For the grid with regularly arranged circular dots, post-processing downsampling reduced computation, while Freeman chain codes encoded edges to remove non-circular noise. Circular ROIs were fitted using RANSAC to minimize information loss. For the dense annular adhesive dot with low contrast, contrast-limited adaptive histogram equalization enhanced edges. After edge detection, noise and adhesion were filtered by contour length and convexity. Circular ROIs minimized misalignment, and the effective pixel ratio along the ring edge identified valid adhesive dots. Finally, sub-pixel center localization and dot quality evaluation were performed using least squares.

4.2. Design of a Vision-Based Five-Axis Calibration Algorithm

Based on the kinematic model and error identification strategy established in Section 3, a vision-based error calibration algorithm is designed. The algorithm leverages the Eigen library for matrix arithmetic and the GiNaC library for symbolic computation.
As shown in Figure 7, the algorithm starts by initializing structural parameters to define the spatial relationship between the camera and the target. To improve computational efficiency, closed-form transformation functions are employed, minimizing the need for trigonometric and matrix operations compared to traditional screw exponential mappings. Fixed and repeated transformations are cached to avoid redundancy. Based on Equations (4) and (5), the pose matrices g ˜ b t and g ˜ b w for the tool and workpiece chains are constructed, and the theoretical pose g ˜ t w is calculated via Equation (12). The VBM system captures an image of the calibration board, and then the Perspective-n-Point (PnP) algorithm is used to estimate the actual pose g a . The algorithm measures the pose error on the special Euclidean group S E ( 3 ) using the logarithmic map. For the k-th sample, the residual is expressed as
e ( k ) = log g ˜ t w ( k ) 1 g ˜ a ( k ) R 6 .
Figure 7. Strategy of the error identification algorithm.
The residuals corresponding to N different poses of the calibration board ( N = 300 in this study) are stacked vertically. For the unknown error parameter vector δ , the Jacobian matrix J = e / δ is computed for each sample and concatenated vertically. In implementation, J is obtained using a numerically stable finite-difference approximation. The Levenberg–Marquardt (LM) algorithm is employed to optimize the error-compensation parameters iteratively:
Δ δ = J J + λ D 1 J e .
where λ is the damping factor and D is the diagonal matrix of J J , and Δ δ is the error parameter compensation amount for the current iteration step. In this study, the convergence threshold is set as τ = 10 5 .
To address the potential ill-conditioning of the Jacobian matrix, singular value decomposition and regularization techniques are incorporated into the solution process to enhance robustness, and the optimal estimates of the error terms are eventually obtained.

4.3. Design of a Detection Strategy for the Dispensed Workpiece

To ensure the consistency of adhesive dot morphology and the reliability of defect detection during the dispensing process, a dispensing detection algorithm is proposed. The algorithm takes a grayscale image as input and first applies Gaussian smoothing for noise suppression. Considering that adhesive dots may appear as either bright or dark foregrounds in the image, an automatic polarity discrimination mechanism is designed. It simultaneously generates positive and negative thresholding results, performs morphological opening and closing to suppress noise and repair edges, and automatically determines the optimal polarity according to a scoring criterion that prioritizes the number of valid contours and secondarily the total target area. The algorithm is shown in Figure 8.
Figure 8. Design of a detection algorithm.
After obtaining the optimal binary result, candidate regions are extracted subject to area constraints, and multi-dimensional features are computed to characterize both geometric and photometric properties of the adhesive dots. The geometric features include area A, perimeter P, diameter d, and circularity C, which describe the integrity and regularity of the adhesive dot shape.
To further quantify the contour uniformity, the radius relative to the centroid ( x ¯ , y ¯ ) is defined as
r i = ( x i x ¯ ) 2 + ( y i y ¯ ) 2
where ( x i , y i ) denotes the coordinates of contour points.
The mean and standard deviation of the radius are calculated.
μ r = 1 N i r i , σ r = 1 N i ( r i μ r ) 2
where N is the number of contour points.
The normalized standard deviation of radius is then defined.
N S D r = σ r μ r
This scale-invariant metric evaluates the circumferential uniformity of the contour, where a smaller N S D r indicates a more circular and uniform shape.
For intensity uniformity evaluation, the mean μ I and standard deviation σ I of pixel intensities within the segmented mask are computed, and the coefficient of variation of intensity is used to quantify internal grayscale uniformity:
C o V I = σ I μ I
A smaller C o V I indicates a more homogeneous grayscale distribution within the adhesive dot region.
The final decision is made according to a threshold set { A , C , τ r , τ I } , while excluding regions that touch the image boundary. The classification criteria are expressed.
A min A A max , C C min , N S D r τ r , C o V I τ I
Targets satisfying all constraints are classified as qualified; otherwise, they are considered defective.

5. Test of the VBM System Inside the Five-Axis Dispensing Machine

5.1. Prototype Fabrication and Test Setup

For this experimental VBM-based prototype, the motion controller is SPiiPlusEC (ACS, Israel), which supports multi-axis coordinated motion; the vision system consists of two cameras (OPT-CC1-M060-GR1-10, 3072 × 2048 pixels, OPT, China), two lenses (OPT-COB1628, OPT, China), two ring light sources (RI7000-W, OPT, China), and two types of standard dot calibration plates (Array 7 × 7 , circle diameters of 1.0 mm and 2.5 mm, respectively, with an accuracy of 0.1 μm, DFvision, China). The experimental setup is shown in Figure 9.
Figure 9. Test setup of the VBM system inside the five-axis dispensing machine.

5.2. Test of the Kinematic Identification and Calibration Using the VBM System

Prior to the measurement experiments, ten independent self-calibration trials were conducted for camera 1 and camera 2, respectively. Each trial used a distinct set of 15 calibration images captured at different poses. The reprojection errors of all trials and their mean values are summarized in Table 3. Meanwhile, the magnitudes of the five distortion parameters are below 0.4 across all trials. The self-calibration accuracy satisfies the requirements for subsequent measurements.
Table 3. Camera self-calibration results of the VBM system.
The performance of the RRHT-based target detection framework in estimating the pose of calibration plates, together with its runtime and recognition accuracy compared to the Blob-based framework and the Hough-based framework, is shown in Table 4. The RRHT-based framework exhibits advantages in recognition efficiency. Although its reprojection error is slightly higher, the RRHT algorithm offers a better trade-off between speed and accuracy for automated calibration tasks with large datasets.
Table 4. Performance of the target recognition framework with the PnP algorithm integration.
To evaluate the performance of the kinematic modeling method (proposed in Section 3.2) in the error calibration algorithm, all other modules were kept unchanged in the experiment, and only this module was replaced. Under this configuration, the mean single-run time of each method, the total time required to construct 300 sets of error matrices, and the error norms were calculated. The results are presented in Table 5.
Table 5. Comparison of Algorithm Modules Based on Different Kinematic Modeling Methods.
The results indicate that the kinematic model based on the local product-of-exponential exhibits certain advantages in terms of runtime and modeling accuracy compared with the Denavit–Hartenberg modeling method and the global product-of-exponential model; in contrast, there are no significant differences in these two indicators between the proposed method and the local product-of-exponential model (presented in Reference [15]), where geometric errors are embedded into the initial pose matrices of adjacent coordinate systems. A noticeable performance gap is observed only for the global product-of-exponential formulation, possibly due to its simplified assumption of fixed global screw axes in the presence of joint coupling.
During the experiment, the X-axis and Y-axis moved in 1 mm increments, the Z-axis moved in 0.1 mm increments, and the rotary axes rotated in 1° increments. Fifty sets of experimental data were collected during the motion process, with each set recorded five times. The VBM system was used to measure and analyze the calibration plate image set, and the mean values were taken to ultimately obtain the PDGE measurement results for each axis, as shown in Figure 10.
Figure 10. Measurement results of PDGEs.
Based on the measurement results shown in Figure 10, the statistical distributions of the translational and rotational PDGEs for the five axes are derived and shown in Figure 11. For the translational errors, the three linear axes exhibit mean values of 40.2 μm (X), 24.8 μm (Y), and 73.5 μm (Z). The two rotary axes show more compact distributions, with mean values of 6.18 μm (A) and 0.720 μm (C). The rotational errors exhibit more pronounced differences in magnitude: the mean values for the X-axis, Y-axis, and A-axis are 224″, 213″, and 209″, respectively; the Z-axis has a mean of 101″; and the C-axis spans a wider range with a mean of 253″. Overall, the Z-axis translational error is relatively larger, which may be related to changes in camera focal distance during upward movement along the Z-direction. The errors of all axes are distributed around their respective mean values with varying degrees of dispersion, and the empirical histograms show good consistency with the fitted normal distributions. Machining errors exist on each axis. Since the motion axes are driven by ball screws or direct-drive motors, their precision of motion is inherently limited. Furthermore, servo-induced tracking delays or overshoots can contaminate the measured error profiles.
Figure 11. Identification results of PDGEs.
Based on the error identification strategy, sampling experiments were conducted encompassing both single-axis and five-axis modes. The study completed the eight PIGEs for the A-axis and C-axis, with the error identification results shown in Table 6. The five-axis dispensing machine used in this experiment integrates axes from different manufacturers. The linear axes are mounted on a marble gantry frame, providing a stable installation reference. The assembly accuracy of the rotary axes primarily depends on the manufacturing and assembly precision of the machined components produced by turning and milling machines, thus exerting a more significant influence on PIGEs.
Table 6. Identification results of PIGEs.
The identification results focus on the eight PIGEs of the A-axis and C-axis. The proposed method can be further extended by incorporating additional geometric error terms into the kinematic model together with appropriate measurement strategies. For the linear axes, the squareness errors among the X-axis, Y-axis, and Z-axis can be calculated based on the identified screw coordinates and are obtained from the angles between the corresponding motion direction vectors.
PIGEs and PDGEs are reflected in the position and orientation accuracy of the end position of the dispensing tip, as measured by the VBM system and shown in Figure 12. The mean position and orientation errors over m validation poses are defined.
Δ t = 1 m i = 1 m t a , i t c , i ,
Δ R = 1 m i = 1 m log R a , i 1 R c , i ,
where t a , i and t c , i are the measured and calculated position vectors of the dispensing tip, R a , i and R c , i are the corresponding rotation matrices.
Figure 12. Single direction error in X/Y/Z direction before calibration.
From the results, it can be seen that the position error lies within the single direction of X/Y/Z before calibration is in the range of 0.0 μm∼70.0 μm. The standard deviations are 3.46 μm, 3.26 μm, and 5.99 μm for the X, Y, and Z directions, respectively. The orientation error in the X-direction before calibration varies the most in the range of −360″∼0.0″, followed by the Y-direction in the range of −180″∼180″, and the Z-direction is the smallest in the range of −360″∼ 360″. The corresponding standard deviations of orientation error are 83.07″, 66.28″, and 2.90″ for the X, Y, and Z directions, respectively.
The compensation values for each axis were calculated using an inverse kinematics algorithm, which was then applied to compensate for the motion of each axis. The error results after running the algorithm are shown in Figure 13.
Figure 13. Position and orientation error before and after calibration.
From the algorithm-level analysis, the mean position error is reduced from 59.9 μm to 1.80 μm, the mean orientation error is reduced from 160″ to 52.9″, the maximum position error is reduced from 72.7 μm to 4.90 μm, and the maximum orientation error is reduced from 331″ to 140″. Furthermore, the standard deviation of the position error was suppressed from 6.6 μm to 1.1 μm, and the orientation error standard deviation decreased from 77.9″ to 39.4″. The theoretical improvement rate of position error is 96.1%, and that of orientation error is 67.4%. Residual errors in the system primarily stem from VBM inaccuracies and kinematic modeling limitations. Measurement precision is constrained by camera calibration uncertainties, including lens distortion and focal length drift during Z-axis motion, as well as image noise. Furthermore, the model’s small-error assumption neglects higher-order terms, while certain unmodeled geometric errors may persist as systematic residuals after compensation.

5.3. Test of the Detection Using the VBM System

A preliminary verification was conducted on the dispensing detection algorithm described in Section 4.3, testing its measurement performance for three characteristics of UV adhesive dots: position accuracy, roundness, and equivalent diameter. Some adhesive dot samples are shown in Figure 14.
Figure 14. Adhesive test sample.
During the test, UV adhesive dots were applied within a black circular ring target. Taking the ring center as the theoretical center ( x 0 , y 0 ) and the adhesive dot center as the actual center ( x , y ) , their X-direction deviation δ x and Y-direction deviation δ y served as the reference standard for position accuracy. The adhesive dot detection results are shown in Figure 15.
Figure 15. Adhesive dot detection results.
The adhesive dot detection experiment was conducted on 50 samples acquired under a fixed illumination and imaging configuration. The proposed detection algorithm showed stable detection performance across all samples. The average values of δ x and δ y were 0.04 mm and −0.06 mm, respectively. Furthermore, the algorithm is able to extract geometric features, including diameter and circularity, which were consistent with the actual sample morphology. These results demonstrate the feasibility of the method for low-contrast UV adhesive applications under controlled conditions, serving as a preliminary exploration of the calibration effectiveness in practical applications.

6. Conclusions and Future Work

This study focuses on the geometric error identification and vision-based detection of a five-axis precision dispensing machine, proposing a set of error modeling and calibration methods based on VBM, which have been verified under experimental conditions. The main conclusions are summarized as follows:
  • A five-axis precision dispensing machine integrated with a VBM system was designed, and its kinematics were modeled using a local product-of-exponential formulation. This model features a relatively concise formulation and reliably computes the kinematic chain pose within the experimental range. The mean calculation time for a single set of data is approximately 0.088 ms, showing slight advantages in efficiency and accuracy compared with the Denavit–Hartenberg modeling method.
  • A vision-based five-axis geometric error calibration algorithm was designed, which can be used to measure and identify the PDGEs of each axis and the eight items of PIGEs of the A-axis and C-axis of the prototype. Comprehensive measurements obtained using the VBM system show that the end-effector exhibits a mean spatial position error of approximately 59.9 μm and a mean orientation error of about 160 arcsec, representing the measured geometric error level of the prototype. For the VBM system, an RRHT-based target detection framework was designed to improve its measurement efficiency.
  • A dispensing detection algorithm was preliminarily verified using sample adhesive dots. The proposed pipeline achieves reliable position and geometric feature extraction (diameter, circularity) of the adhesive dots. The current experiments, however, cover a limited number of samples and dot types, so the present results mainly demonstrate the basic applicability of the method rather than a comprehensive performance evaluation.
Future work will focus on further improving the measurement accuracy and stability of the VBM system, including repeatability experiments based on extended datasets, as well as more uncertainty analysis, enhancing the precision of geometric error measurement and identification, and completing the comprehensive recognition of PIGEs and PDGEs for all five axes. In addition, comparative studies with established industrial inspection solutions will be considered to further evaluate the proposed framework in practical application scenarios. Meanwhile, continuous optimization of the dispensing detection algorithm will be pursued through extended experimental validation and algorithm refinement, by incorporating deep learning and intelligent image analysis techniques to improve adaptability and robustness under complex operating conditions.

Author Contributions

Conceptualization, R.W.; Methodology, R.W., J.L., B.W. and Q.Z.; Validation, J.L.; Investigation, J.L., B.W., Q.Z. and Y.D.; Resources, R.W.; Data curation, J.L.; Writing—original draft, J.L.; Writing—review & editing, R.W.; Supervision, R.W.; Project administration, R.W., Y.D. and H.W.; Funding acquisition, R.W. All authors have read and agreed to the published version of the manuscript.

Funding

This project is supported by the Guangdong Basic and Applied Basic Research Foundation (Grant No. 2025A1515011189), Guangdong Association for Science and Technology Young Talent Program (Grant No. SKXRC2025091), Research Fund of Guangdong Provincial Key Laboratory of Industrial Intelligent Inspection Technology (No. GDIIIT-KF-202504), Commissioned Project of Enterprise (Grant Nos. 25HK0029, 25HK0030, 25HK1215, 24HK0690, 23HK0809), “Ganpo Plan” Talent Project of Jiangxi Province (Grant No. jxkjcytd2024001), National Natural Science Foundation of China (Grant No. U24A20108), and Guangzhou Basic and Applied Basic Research Foundation (Grant No. 202201010398).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Plachỳ, Z.; Pražanová, A.; Dušek, K.; Géczy, A. Underfill: A Review of Reliability Improvement Methods in Electronics Production. Polymers 2025, 17, 2206. [Google Scholar] [CrossRef]
  2. Chan, T.C.; Shao, X.Y.; Ullah, A.; Farooq, U. Intelligent evolution and enhancing five-axis gantry-type spatial motion structure for Industry 4.0 manufacturing. Int. J. Adv. Manuf. Technol. 2024, 134, 1965–1990. [Google Scholar] [CrossRef]
  3. Chen, G.; Sun, Y.; Lu, L.; Chen, W. A new static accuracy design method for ultra-precision machine tool based on global optimisation and error sensitivity analysis. Int. J. Nanomanuf. 2016, 12, 167–180. [Google Scholar] [CrossRef]
  4. Guo, S.; Zou, Y.; Huang, W.; Tang, S.; Mei, X. Kinematics characterizing with dual quaternion and parametric modeling of geometric error terms based on measuring path planning of CNC machine tools. Int. J. Adv. Manuf. Technol. 2024, 133, 2967–2994. [Google Scholar] [CrossRef]
  5. Schwenke, H.; Knapp, W.; Haitjema, H.; Weckenmann, A.; Schmitt, R.; Delbressine, F. Geometric error measurement and compensation of machines—An update. CIRP Ann. 2008, 57, 660–675. [Google Scholar] [CrossRef]
  6. Cheng, T.; Xiang, S.; Zhang, H.; Yang, J. New machining test for identifying geometric and thermal errors of rotary axes for five-axis machine tools. Measurement 2023, 223, 113748. [Google Scholar] [CrossRef]
  7. Yang, J.; Mayer, J.; Altintas, Y. A position independent geometric errors identification and correction method for five-axis serial machines based on screw theory. Int. J. Mach. Tools Manuf. 2015, 95, 52–66. [Google Scholar] [CrossRef]
  8. Chen, Y.T.; Liu, C.S.; Shiau, W.C.; Xie, H.F.; Chiu, C.L.; Yan, Q.H.; Lee, B.K.; Chen, T.H.; Huang, Y.Y. Geometric error measurement of rotary axes on five-axis machine tools: A review. Int. J. Precis. Eng. Manuf. 2024, 25, 1311–1332. [Google Scholar] [CrossRef]
  9. Hong, C.; Ibaraki, S. Non-contact R-test with laser displacement sensors for error calibration of five-axis machine tools. Precis. Eng. 2013, 37, 159–171. [Google Scholar] [CrossRef]
  10. Chen, G.; Yuan, J.; Ni, J. A displacement measurement approach for machine geometric error assessment. Int. J. Mach. Tools Manuf. 2001, 41, 149–161. [Google Scholar] [CrossRef]
  11. Guo, S.; Si, Z.; Sa, R.; Zou, Y.; Mei, X. Geometric error modeling and decoupling identification of rotary axis of five-axis machine tool based on spatial trajectory planning. Measurement 2024, 236, 114887. [Google Scholar] [CrossRef]
  12. Liu, Z.; Ukida, H.; Niel, K.; Ramuhalli, P. Industrial inspection with open eyes: Advance with machine vision technology. Integr. Imaging Vis. Tech. Ind. Insp. Adv. Appl. 2015, 1–37. [Google Scholar]
  13. Shirmohammadi, S.; Ferrero, A. Camera as the instrument: The rising trend of vision based measurement. IEEE Instrum. Meas. Mag. 2014, 17, 41–47. [Google Scholar] [CrossRef]
  14. Liu, W.; Li, X.; Jia, Z.; Li, H.; Ma, X.; Yan, H.; Ma, J. Binocular-vision-based error detection system and identification method for PIGEs of rotary axis in five-axis machine tool. Precis. Eng. 2018, 51, 208–222. [Google Scholar] [CrossRef]
  15. Tang, X.; Chen, L.; Wang, Z.; Zhou, H.; To, S.; Yip, W.S. Adaptive kinematic calibration method for reconfigurable five-axis dispensing machine using the product of exponential model. Measurement 2025, 253, 117576. [Google Scholar] [CrossRef]
  16. Nižetić, J.; Raos, P.; Šimunović, G.; Klaić, M.; Mutka, A. Calibration of a 5-axis CNC machine for making orthoses by means of a vision system. Trans. FAMENA 2022, 46, 81–102. [Google Scholar] [CrossRef]
  17. Zhu, S.; Ding, G.; Qin, S.; Lei, J.; Zhuang, L.; Yan, K. Integrated geometric error modeling, identification and compensation of CNC machine tools. Int. J. Mach. Tools Manuf. 2012, 52, 24–29. [Google Scholar] [CrossRef]
  18. Yang, J.; Altintas, Y. Generalized kinematics of five-axis serial machines with non-singular tool path generation. Int. J. Mach. Tools Manuf. 2013, 75, 119–132. [Google Scholar] [CrossRef]
  19. Rocha, C.; Tonetto, C.; Dias, A. A comparison between the Denavit–Hartenberg and the screw-based methods used in kinematic modeling of robot manipulators. Robot. Comput.-Integr. Manuf. 2011, 27, 723–728. [Google Scholar] [CrossRef]
  20. Karhan, H.; Bingül, Z. Automatic Determination of the Denavit–Hartenberg Parameters for the Forward Kinematics of All Serial Robots: Novel Kinematics Toolbox. Machines 2025, 13, 944. [Google Scholar] [CrossRef]
  21. Tian, W.; Gao, W.; Zhang, D.; Huang, T. A general approach for error modeling of machine tools. Int. J. Mach. Tools Manuf. 2014, 79, 17–23. [Google Scholar] [CrossRef]
  22. Tang, X.; Zhou, H.; Kuang, L. Geometric error self-calibration method of five-axis dispensing machine based on the product of exponentials formula. Measurement 2024, 231, 114561. [Google Scholar] [CrossRef]
  23. Majidi, B.H.; Emre, T.A.; Taner, T.L. A novel vision-based calibration framework for industrial robotic manipulators. Robot. Comput.-Integr. Manuf. 2022, 73, 102248. [Google Scholar]
  24. Yin, S.; Ren, Y.; Zhu, J.; Yang, S.; Ye, S. A Vision-Based Self-Calibration Method for Robotic Visual Inspection Systems. Sensors 2013, 13, 16565–16582. [Google Scholar] [CrossRef]
  25. Hu, Y.; Wu, W.; Yi, Y. Vision Calibration of Complex Micro-Device Flexible Assembly Robot System. In Proceedings of the Third International Conference on Control and Intelligent Robotics (ICCIR 2023), Changsha, China, 23–25 June 2023; Volume 12940, Proc. SPIE. p. 129401V. [Google Scholar]
  26. Huang, B.; Liu, X.; Yan, J.; Xie, J.; Liu, K.; Xu, Y.; Liu, J.; Zhao, X. Fully Automated Dispensing System Based on Machine Vision. Appl. Sci. 2023, 13, 9206. [Google Scholar] [CrossRef]
  27. Revia, R.A.; Wagner, B.; James, M.; Zhang, M. High-Throughput Dispensing of Viscous Solutions for Biomedical Applications. Micromachines 2022, 13, 1730. [Google Scholar] [CrossRef]
  28. Zhou, S.; Yao, S.; Shen, T.; Wang, Q. A Novel End-to-End Deep Learning Framework for Chip Packaging Defect Detection. Sensors 2024, 24, 5837. [Google Scholar] [CrossRef]
  29. Peng, Z.; He, H. Deep Learning-Enhanced Electronic Packaging Defect Detection via Fused Thermal Simulation and Infrared Thermography. Appl. Sci. 2025, 15, 6592. [Google Scholar] [CrossRef]
  30. Gao, W.; Ibaraki, S.; Donmez, M.A.; Kono, D.; Mayer, J.; Chen, Y.L.; Szipka, K.; Archenti, A.; Linares, J.M.; Suzuki, N. Machine tool calibration: Measurement, modeling, and compensation of machine tool errors. Int. J. Mach. Tools Manuf. 2023, 187, 104017. [Google Scholar] [CrossRef]
  31. Jiang, X.; Wang, L.; Liu, C. Geometric accuracy evaluation during coordinated motion of rotary axes of a five-axis machine tool. Measurement 2019, 146, 403–410. [Google Scholar] [CrossRef]
  32. Wang, R.; Zhang, Y.; Wang, H.; Zhang, X. Design and Test of a Robust BioCM-Based Measurement System for the LDI Machine. IEEE Trans. Instrum. Meas. 2025, 74, 5048214. [Google Scholar] [CrossRef]
  33. Fu, G.; Fu, J.; Xu, Y.; Chen, Z.; Lai, J. Accuracy enhancement of five-axis machine tool based on differential motion matrix: Geometric error modeling, identification and compensation. Int. J. Mach. Tools Manuf. 2015, 89, 170–181. [Google Scholar] [CrossRef]
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.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.