Next Article in Journal
Target Recognition Based on Millimeter-Wave-Sensed Point Cloud Using PointNet++ Model
Previous Article in Journal
Study on Centroid Height Prediction of Non-Rigid Vehicle Based on Deep Learning Combined Model
Previous Article in Special Issue
Industrial Robot Control System with a Predictive Maintenance Module Using IIoT Technology
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dual-Objective Optimization of G3-Continuous Quintic B-Spline Trajectories for Robotic Ultrasonic Testing

School of Mechanical Engineering, Beijing Institute of Technology, Beijing 100081, China
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(18), 5693; https://doi.org/10.3390/s25185693
Submission received: 21 July 2025 / Revised: 4 September 2025 / Accepted: 9 September 2025 / Published: 12 September 2025
(This article belongs to the Collection Robotics, Sensors and Industry 4.0)

Abstract

To address the challenges of unstable motion and insufficient detection accuracy in robotic scanning trajectories, particularly under high curvature and irregular shape conditions during ultrasonic testing of complex free-form surface workpieces, this paper proposes a G3 continuous trajectory planning and optimization method based on quintic B-spline curves. First, the scanning trajectory of the robot is represented by a parametric curve, with explicit expressions for position, velocity, acceleration, and jerk derived in the form of quintic B-splines. These expressions ensure continuity in position, velocity, acceleration, and jerk (C3/G3 continuity), thus maintaining high-order geometric continuity and motion stability of the trajectory. Second, to achieve the dual optimization objectives of trajectory smoothness and surface fitting, this paper constructs a composite objective function that incorporates both the integral of acceleration squared and the surface fitting error. The smoothness index is weighted by the sum of the square integrals of the second and third derivatives of the trajectory, thereby suppressing high-order oscillations, while the fitting index is based on the mean square error between the robot end-effector path and the target surface. Finally, a numerical optimization algorithm is utilized to solve the objective function, resulting in an optimal scanning trajectory that ensures both motion stability and fitting accuracy, while maintaining G3 continuity. Simulation and experimental results demonstrate that this method effectively mitigates trajectory mutations and oscillations, enabling efficient and high-precision automatic ultrasonic testing, and provides a reliable trajectory planning strategy for online non-destructive testing of complex curved workpieces.

1. Introduction

Ultrasonic testing represents the most extensively employed and technically mature non-destructive evaluation technique. Robotic automated ultrasonic testing has become increasingly prevalent in industrial quality inspection and maintenance, offering significant advantages over traditional manual methods [1,2,3,4,5,6,7,8,9,10,11,12]. Its automation and intelligent capabilities greatly enhance detection accuracy and operational efficiency, enabling consistent, high-quality inspections. By minimizing human involvement, this technology reduces the likelihood of operator error, ensuring more reliable results. Furthermore, its ability to handle complex, repetitive tasks efficiently contributes to a reduction in labor costs and time, providing a clear edge in industrial applications. Enhancing robotic scanning velocity and guaranteeing the precision of ultrasonic inspection have long been paramount concerns for researchers worldwide. During the scanning process, it is imperative to balance sufficiently high traversal speeds—to minimize overall inspection time—with sufficiently smooth trajectories to avert vibration-induced signal distortions, thereby maximizing scan coverage and defect-detection accuracy. Accordingly, trajectory optimization must integrate the acoustic propagation characteristics of ultrasonic waves by judiciously planning the robotic instantaneous velocity and acceleration so that the sound-beam incidence angle remains collinear with the surface normal of the workpiece, thus yielding an optimal signal-to-noise ratio. In summary, techniques such as path optimization, acceleration–deceleration control, and related trajectory-planning technologies exert a critical influence on both the speed and stability of autonomous robotic ultrasonic inspection systems.
Ultrasonic scanning trajectory planning is the most basic and core function in the robot ultrasonic testing system, and it is also the key technology to improve the scanning accuracy of the equipment, accelerate the scanning speed, and enhance the stability of the operation. Based on the geometric information of the measured component, combined with the appropriate acceleration and deceleration strategy, the technology generates the path curve with the help of computer-aided manufacturing (CAM) tools, and performs interpolation and densification on this basis, and finally obtains the control instructions that drive each motion axis. In recent years, the research of trajectory planning has mainly focused on path smoothing optimization [13,14], acceleration and deceleration strategy optimization [15], look-ahead algorithm design [16,17], and parameter curve interpolation method.
When a component’s curvature changes abruptly or its contour is discontinuous, the surface normal undergoes a sudden jump. This abrupt change induces instantaneous variations in the robot’s velocity and acceleration, leading to undesirable vibrations and impact forces. By optimizing the path, the initially discrete trajectory—comprised of successive short line segments—is transformed into a higher-order, continuous, and smooth curve, a prerequisite for the robot’s high-speed, high-precision, and high-stability operation [18,19]. Path-optimization methods are typically classified into two categories: global optimization and local optimization. Global optimization employs approximation or interpolation techniques to uniformly fit the entire trajectory. Erkorkmaz et al. employed quintic polynomial spline curves to achieve C2-continuous fitting of short-segment paths [20]. Bi et al. utilized double NURBS splines to perform a global fit of straight-line segment trajectories in five-axis CNC machining [21]. Local optimization introduces an alternative curve at the junction of two adjacent line segments to achieve local smoothing. Commonly used methods include Bézier curves [22], polynomial curves [23], Pythagorean Hodograph (PH) curves [24], and B-spline curves [25]. Zhao et al. employed a cubic B-spline curve with five control points to smooth the junctions between adjacent line segments, precisely controlling the fitting error by adjusting the positions of the spline’s control points [25].
Beudaert et al. [26] proposed a five-axis tool path smoothing method based on double splines, which extended the three-axis angular smoothing technique presented in [25] to five-axis cutting paths. In this approach, two cubic B-splines are employed to smooth the tool tip trajectory and the position of the fixed point on the tool shaft, respectively. Subsequently, the parameters of these two paths are coupled through a third B-spline to ensure synchronization between the position and direction. To avoid iterative procedures, Yang [13] employed a quintic B-spline to smooth the position trajectory in Cartesian space, applied an analogous smoothing to the orientation trajectory in the machine coordinate frame, and directly determined the control points by enforcing synchronization conditions and imposing error constraints. Tulsyan [14] introduced a decoupled local-smoothing approach in which the position trajectory is modeled by a quintic B-spline to guarantee G3 continuity, while the tool-axis orientation is independently smoothed via a normalized B-spline on the unit sphere. To synchronize position and orientation and to confine the smoothing error within prescribed bounds, the control points of the directional B-spline are refined using a Newton–Raphson iterative scheme. Shi et al. [27] applied a double Pythagorean-hodograph (PH) curve to smooth the five-axis tool path; however, within this dual-spline framework, the smoothing error in tool orientation is inherently coupled with the positional smoothing error. Ye Ding [28] introduced an analytically decoupled, C3-continuous local path-smoothing technique. A quintic B-spline is inserted at the vertices of the tool’s position and orientation trajectory, and its transition length is optimized to achieve a G3/C3-continuous, synchronous smooth transition in both the reference frame and rotational space. This method markedly enhances the motion smoothness and tracking accuracy of industrial robots. Its effectiveness has been demonstrated through both simulation and experimental validation.
In the presence of complex geometric features on the blade surface, trajectory optimization must reconcile the scanning path with the surface topology by ensuring high-order continuity of the motion curve. This study introduces a G3-continuous trajectory planning approach predicated on quintic B-splines, and presents its mathematical formulation and derivation in detail. First, the blade surface is reconstructed in three dimensions, and for each sampling point, the surface normal and curvature are computed. The scanning region is then partitioned into multiple subdomains via localized path-segmentation optimization. Within each subdomain, a quintic B-spline curve satisfying G3 continuity is generated, guaranteeing seamless transitions not only in position and tangential direction but also in curvature and curvature derivative. Leveraging these curves, the robot can adaptively adjust the transducer’s orientation and incidence angle in real time—guided by the instantaneous normal-vector information—to maximize acoustic–surface coupling efficiency, thereby enhancing C-scan image quality and defect-recognition accuracy in ultrasonic inspection.

2. Experimental Methods and Configuration

2.1. System Components

The robotic ultrasonic testing system consists of two interdependent subsystems: hardware and software. The hardware subsystem (Figure 1) comprises an industrial robot and its controller, a pulse transceiver, an ultrasonic data-acquisition module (A/D card), an ultrasonic transducer with a probe-mounting fixture, an industrial control computer, and a coupling-fluid circulation system. The software subsystem adopts a two-tier architecture: the upper tier executes global scheduling and decision-making, while the lower tier is responsible for real-time motion control and preliminary signal processing. The hardware delivers precise mechanical motion and captures raw ultrasonic signals, whereas the software interprets these signals, computes optimized scanning trajectories, and issues corresponding control commands. Together, they form a cohesive, fully automated robotic ultrasonic inspection platform.

2.2. Robotic Scanning Path Planning

The robotic scanning trajectory is generated via CAD/CAM-based planning. Xiao Zhen [7] and Melo [4] have presented a comprehensive review of robotic trajectory planning, outlining a range of design and calibration techniques. In formulating the sweeping trajectory for blade inspection, several parameters must be accounted for: the ultrasonic transducer’s focal length (F), the focal column diameter (Φ), the sound velocity in the specimen material (CM), and the sound velocity in water (CW). These parameters are critical for optimizing detection sensitivity and spatial resolution. For example, when planning the focusing probe’s path for surface inspection (Figure 2), the water-path distance, h—defined as the separation between the transducer face and the inspection surface—is calculated as follows:
h = F t ( C M / C W )
In Equation (1), t represents the depth of focus, and the water range is calculated using this equation based on the specified detection depth, ensuring that the focus is aligned with the target detection depth. For the surface detection path planning shown in Figure 2, the tool coordinate system {T} is defined at the focal point. The water range is maintained at h, with the step interval approximated as half the diameter of the acoustic beam. Additionally, the incidence angle is either aligned with the normal to the surface or set at a predetermined angle to optimize coverage across the entire detection area.

2.3. Mathematical Modeling of Scanning Trajectory

The objective function for robot-guided ultrasonic scanning trajectory optimization is typically formulated as a weighted combination of two principal criteria, trajectory smoothness and surface conformity:
m i n J = α 0 1 s ( t ) 2 d t + β 0 1 s ( t ) p s u r f ( t ) 2 d t
s t represents the parametric representation curve of the robot scanning trajectory;
s ( t ) is the acceleration of the trajectory curve (the second derivative of the curve), which is used to measure the smoothness of the trajectory;
p s u r f ( t ) represents the closest point to the trajectory curve on the blade surface;
α, β are the weight coefficients of smoothness and fit, respectively.
The constraint conditions include the spatial constraint and the surface fitting constraint of the trajectory:
s . t . s ( t ) Ω B , t [ 0 ,   1 ] s ( t ) p surf ( t ) δ , t [ 0 ,   1 ]
δ : the maximum allowable deviation between the trajectory and the blade surface (used to ensure that the robot endpoint always maintains a constant distance from the surface);
s ( t ) : parametric trajectory curve, which is specifically selected as the quintic B-spline curve in this study;
Ω B : the outer envelope constraint of the robot workspace.
In order to describe the above problems in detail, the scanning trajectory in this paper is based on the quintic B-spline curve, which is defined as follows:
Let the trajectory curve be s ( t ) , which is represented by quintic k = 5 B-spline:
s t = i = 0 n N i , 5 t P i , t 0 , 1
s ( t ) : the position vector of the trajectory curve on the parameter t [ 0 , 1 ] ;
P = { P 0 , P 1 , , P n } : the control points to be optimized;
n : the number of control points of the B-spline curve;
N i , 5 ( t ) : a B-spline basis function, given by the Cox–de Boor recursive formula:
The specific recursive formula is:
N i , 0 ( t ) = 1 , t i t < t i + 1 0 , others
The higher-order basis functions are calculated by the following recursive formula:
N i , k ( t ) = t t i t i + k t i N i , k 1 ( t ) + t i + k + 1 t t i + k + 1 t i + 1 N i + 1 , k 1 ( t ) , k = 1,2 , , 5
t is the node vector of B-spline, which is generally selected as a uniform node vector or quasi-uniform node vector.
Optimize the derivation process of the objective function. The optimization objective function consists of two parts:
(1)
Smoothness term derivation:
The smoothness index of the trajectory is generally described by the acceleration square integral:
J s m o o t h = 0 1 s ( t ) 2 d t
By solving the second derivative of the B-spline:
s ( t ) = d 2 d t 2 i = 0 n P i N i , 5 ( t ) = i = 0 n P i N i , 5 ( t )
So
J s m o o t h = 0 1 i = 0 n P i N i , 5 ( t ) 2 d t
By discretizing the integral (such as the Gauss integral or the Simpson integral), it can be approximated as:
J s m o o t h j = 1 M s ( t j ) 2 Δ t
t j [ 0 ,   1 ] is the sampling point on the trajectory, and Δ t is the integral step size.
(2)
Derivation of fit term:
The trajectory fitness index is the minimum distance integral between the trajectory of the incident point of the acoustic beam and the blade surface, which is expressed as:
J f i t = 0 1 s ( t ) p s u r f ( t ) 2 d t j = 1 M s ( t j ) p s u r f ( t j ) 2 Δ t
Therefore, the objective function of the overall optimization problem is:
J ( P ) = α j = 1 M s ( t j ) 2 Δ t + β j = 1 M s ( t j ) p s u r f ( t j ) 2 Δ t
M is the number of discrete points; Δ t is the parameter step length.
Constraint conditions:
(1)
Spatial outer envelope constraint:
x m i n x i x m a x , y m i n y i y m a x , z m i n z i z m a x , i = 0 , , n
(2)
Surface distance constraint:
d s t j , p s u r f t j δ , j 1 , M

2.4. The Objective Function of Trajectory Smoothing Optimization

To achieve a high level of smoothness in robot scanning motion, the objective function for trajectory optimization is formulated as follows: The smoothness of the trajectory is primarily governed by the control of trajectory acceleration (second derivative) or even the third derivative (jerk). In this study, the integral of the square of the acceleration along the trajectory is adopted as a measure of smoothness, as outlined in references [29,30]:
J smooth ( P ) = 0 1 s ( t ) 2 d t
Considering the actual numerical solution problem, the trajectory parameter t is discretized into a finite number of nodes:
J smooth ( P ) i = 1 M s ( t i ) 2 Δ t , t i [ 0 , 1 ]
In order to ensure the degree of fit between the trajectory of the incident point of the ultrasonic beam and the surface of the blade, the trajectory fit item is added:
J fit = 0 1 s ( t ) p s u r f ( t ) 2 d t i = 1 M s ( t i ) p s u r f ( t i ) 2 Δ t
The final optimization objective function is expressed as:
J ( P ) = α i = 1 M s ( t i ) 2 Δ t + β i = 1 M s ( t i ) p s u r f ( t i ) 2 Δ t
M represents the total number of discrete sampling points;
Δ t is the parameter step size when integrating.
The mathematical model of scanning trajectory optimization established in this paper can be expressed as a constrained optimization problem:
m i n P J ( P ) , s . t . { s ( t ) Ω B s ( t ) p s u r f ( t ) δ
P denotes the set of control points of a B-spline.
Ω B is an outer envelope constraint framework.
δ is the maximum allowable value of the distance between the trajectory and the surface.

2.5. Ultrasonic C-Scan Trajectory Optimization Strategy

In robot-assisted ultrasonic testing technology, trajectory optimization plays a crucial role in ensuring that the robot performs ultrasonic scanning tasks both efficiently and accurately. This is particularly critical when dealing with complex surface workpieces, such as blades and other free-form surfaces characterized by high curvature variations and irregular shapes. The smoothness and stability of the trajectory directly influence the stability, motion efficiency, and ultrasonic detection accuracy of the robot’s movement.
During the robot’s ultrasonic scanning process, the smoothness of the trajectory is reflected in the continuity of each derivative of the trajectory curve. In the domain of robot motion planning, it is generally required that the trajectory satisfies at least G3 continuity, ensuring the continuity of position, velocity, acceleration, and jerk (C3 or G3 continuity), in order to achieve higher motion stability.
The scanning trajectory curve is defined as a parametric curve s ( t ) , and its explicit mathematical expression can be expressed in the form of a quintic B-spline:
s ( t ) = i = 0 n P i N i , 5 ( t ) , t [ 0 ,   1 ]
s ( t ) R 3 represents the position vector on the trajectory (the end position of the robot), which is a three-dimensional space vector;
P i R 3 : the i th B-spline control point;
N i , 5 ( t ) is a quintic (order k = 5 ) B-spline basis function;
t is a dimensionless parameter with a range of [0, 1], which represents the process of the trajectory from the starting point ( t = 0 ) to the end point ( t = 1 ).
In order to define the smoothness index of the trajectory, the second derivative s ( t ) (acceleration) of the trajectory is defined as:
s ( t ) = d 2 s t d t 2 = i = 0 n P i N i , 5 ( t ) , t [ 0 ,   1 ]
N i , 5 ( t ) : the second-order derivative function of the quintic B-spline basis function (derived from the Cox–de Boor formula);
s ( t ) is the acceleration vector of the trajectory point at the parameter t, which represents the curvature of the trajectory curve in space and the intensity of the change.
According to the definition of Cox–de Boor recursive formula, the second derivative of the quintic B-spline basis function is defined as:
Based on the basic definition of zero-order basis function:
N i , 0 ( t ) = 1 , t i t < t i + 1 0 , other
Higher-order basis functions are defined by the following recursive formula:
N i , k ( t ) = t t i t i + k t i N i , k 1 ( t ) + t i + k + 1 t t i + k + 1 t i + 1 N i + 1 , k 1 ( t )
The second derivative basis function can be obtained by derivative step by step:
N i , k ( t ) = k ( k 1 ) ( t i + k t i ) ( t i + k 1 t i ) N i , k 2 ( t ) 2 k ( k 1 ) ( t i + k t i ) ( t i + k t i + 1 ) N i + 1 , k 2 ( t ) + k ( k 1 ) ( t i + k + 1 t i + 1 ) ( t i + k t i + 1 ) N i + 1 , k 2 ( t )
k = 5.
Smoothness evaluation function:
In order to evaluate the smoothness of the robotic’s scanning trajectory, the square integral form of the trajectory acceleration is usually used:
J smooth = 0 1 s ( t ) 2 d t = 0 1 [ ( d 2 x ( t ) d t 2 ) 2 + ( d 2 y ( t ) d t 2 ) 2 + ( d 2 z ( t ) d t 2 ) 2 ] d t
x(t), y(t), z(t) represent the variations in the three spatial coordinates over time.
In the actual calculation, the above integral is approximated by discretization:
J smooth j = 1 M s t j 2 Δ t , t j [ 0 , 1 ] , j = 1,2 , , M
M is the number of discrete points. Δ t = 1 / M .
C3 continuous local path optimization method.
In order to further improve the efficiency of trajectory optimization, this paper adopts the local path segmentation optimization method. In each local area of the blade surface, the robot trajectory needs to meet the C3 continuous condition, which is as follows:
Position continuous: s t continuous;
First derivative (velocity) continuity: s t continuity;
Second derivative continuous (acceleration): s ( t ) continuous.
The mathematical model of local trajectory optimization is as follows:
m i n P l o c a l J l o c a l = t a t b s ( t ) 2 d t + η t i t i + 1 s ( t ) p s u r f ( t ) 2 d t s ( k ) ( t a ) = s a ( k ) , s ( k ) ( t b ) = s b ( k ) , k = 0 , 1 , 2
s k t a ,     s ( k ) ( t b ) represent the derivative boundary conditions of the boundary at both ends of the local trajectory (inherited from the trajectory of the previous region), respectively, to ensure that the trajectory can achieve C3 continuity at the splicing of each segment.

2.6. G3 Continuous Trajectory Planning Based on Quintic B-Splines

The continuity and smoothness of the robot trajectory are crucial to the quality of blade detection, the motion performance, and the life of the robot. In order to realize the high-order geometric continuity (G3 continuity, i.e., position, velocity, acceleration, and jerk continuity) of the robot trajectory, this section proposes a G3 continuous trajectory planning method based on the quintic B-spline curve, and carries out detailed mathematical modeling and derivation.
The robot trajectory curve s ( t ) for the detection of curved components such as blades is represented as a quintic B-spline form, which is as follows:
s ( t ) = i = 0 n P i N i , 5 t , t [ 0 , 1 ]
P i is the i-th control point of the B-spline, P i = [ x i , y i , z i ] T R 3 ;
N i , 5 ( t ) is a quintic B-spline basis function, which is defined by Cox–de Boor recursive formula. The parameter t [ 0 , 1 ] is the normalized parameter of the trajectory.
In order to clearly define the continuity characteristics of the trajectory, the explicit definition of each order derivative of the trajectory is further given.
The first derivative (velocity) of the trajectory is defined as:
s ( t ) = d s ( t ) d t = i = 0 n P i N i , 5 ( t )
The second derivative (acceleration) of the trajectory:
s ( t ) = i = 0 n P i N i , 5 ( t )
The third-order derivative of the trajectory:
s ( 3 ) ( t ) = i = 0 n P i N i , 5 ( t )
The derivative basis functions are derived step by step by the Cox–de Boor formula.
According to the above recursive formula, the explicit expressions of the quintic B-spline and its derivatives can be obtained in turn, which can be used to construct the robot ultrasonic scanning trajectory for the blade.
(1)
Definition of objective function for trajectory smoothness optimization:
In order to realize the optimization of trajectory smoothness, the smoothness objective function is defined as the square integral of trajectory acceleration and jerk:
J G 3 = α 0 1 s ( t ) 2 d t + β 0 1 s ( 3 ) ( t ) 2 d t
Discrete processing in the actual calculation:
J G 3 α j = 1 M s ( t j ) 2 Δ t + β j = 1 M s ( 3 ) ( t j ) 2 Δ t
s ( t j ) , s ( 3 ) ( t j ) can be obtained by the above formula;
α ,     β are the integral weights of acceleration and jerk, Δ t = 1 / M .
(2)
Definition of constraints:
In order to ensure that the trajectory of the ultrasonic beam incident point always fits the blade surface, the distance constraint between the trajectory and the blade surface is defined:
d ( s ( t ) , p s u r f ( t ) ) = s ( t ) p s u r f ( t ) δ , t [ 0 , 1 ]
p s u r f ( t ) : The projection point of the trajectory point on the blade surface;
δ : The allowable maximum distance threshold between the robot trajectory and the blade surface.
Combining the optimization objectives and constraints defined above, an overall mathematical optimization model is constructed:
m i n P J G 3 ( P ) = α j = 1 M s ( t j ) 2 Δ t + β j = 1 M s ( 3 ) ( t j ) 2 Δ t s ( t j ) p s u r f ( t j ) δ , j = 1 , , M s ( t ) Ω B , t [ 0 ,   1 ]
P is the control point to be optimized;
Ω B is the outer envelope workspace constraint of the robot trajectory;
δ is the maximum allowable deviation;
M is the number of discrete sampling points.

3. Experiment Results and Discussion

In the present study, the system depicted in Figure 3 was developed for the assessment of engine blades. Figure 4 shows the artificial flat-bottom hole defect that was prefabricated in the blade body. The blade being examined is mounted on the end effector of a Stäubli industrial robot, enabling its movement relative to a stationary ultrasonic transducer for thorough sweeping inspection. A comprehensive list of the system components is provided in Table 1.

3.1. Experimental Verification and Comparative Analysis

The present study evaluates the effectiveness of the proposed robotic ultrasonic testing methodology for identifying defects in complex, curved-surface components exhibiting irregular curvature—exemplified by aerospace blades. Particular emphasis is placed on how the smoothness of the scanning trajectory influences the robot’s vibration characteristics and the accuracy of defect detection. To emulate representative flaw geometries encountered in blade inspections, flat-bottomed holes of precisely controlled diameters and depths were machined into the specimen surface (see Figure 4). To validate the effectiveness of the trajectory-optimization algorithm, scanning trajectory planning was carried out on the measured blade (see Figure 5), after which two sets of robotic scanning paths, before and after optimization, were selected for comparative analysis. These paths were assessed in terms of their acceleration-profile characteristics, quantitative smoothness indices, and resulting ultrasonic C-scan images.
Figure 6 presents a comparative overlay of the robot trajectories before and after optimization. The pre-optimization trajectory exhibits pronounced angular discontinuities (C1 discontinuities) at the polyline vertices, which induce abrupt variations in both velocity and acceleration during motion. In contrast, the optimized trajectory is globally C2-continuous: curvature transitions occur smoothly without any perceptible jitter or abrupt changes. Examination of the acceleration time history further reveals that the optimized profile is markedly smoother peak accelerations at each sampling instant that are substantially diminished, high-frequency oscillatory components are effectively attenuated, and the overall waveform evolves as a low-amplitude, low-frequency, slowly varying process.
To quantify the improvement afforded by the optimization, acceleration histories were extracted at ten equispaced points along both the original and the optimized trajectories. These datasets were then subjected to systematic comparative analysis, the results of which are summarized in Table 2.
As illustrated in Figure 7, the acceleration profile along the entire trajectory exhibits markedly fewer peaks following optimization, with the peak amplitudes substantially attenuated—thereby demonstrating significantly enhanced stability.
The improved proportion calculation method in the table:
I m p r o v e m e n t   r a t i o   ( % ) = O r i g i n a l   a c c e l e r a t i o n O p t i m i z e d   a c c e l e r a t i o n O r i g i n a l   a c c e l e r a t i o n × 100 %
The results of the data analysis indicate that, following trajectory optimization, the manipulator’s acceleration fluctuations during motion are reduced by approximately 68% on average. This diminution of dynamic oscillations markedly mitigates vibration during the scanning process, thereby enhancing the stability and measurement accuracy of blade inspection. To further quantify improvements in trajectory smoothness, curvature is adopted as the evaluation metric, calculated according to the following expression:
k ( t ) = | r ( t ) × r ( t ) | | r ( t ) | 3
r ( t ) , r ( t ) are the first and second derivatives of the path, respectively. The improvement of curvature is shown in Figure 8:
Figure 8 shows the comparative analysis of the curvature change of the whole trajectory interval. The original trajectory shows obvious fluctuations, and the maximum curvature change exceeds 500 rad/s. In contrast, the optimized trajectory shows a more stable curvature, which is usually kept below 300 rad/s, thereby significantly reducing severe local bending.
The research findings demonstrate that the proposed trajectory optimization method significantly enhances the continuity and smoothness of the scanning path. This improvement effectively mitigates the vibrations generated by the robot during the blade detection process, thereby meeting the stringent stability and accuracy requirements necessary for practical engineering applications.

3.2. Comparison of Robot Scanning Speed Changes

The enhancement of trajectory smoothness not only theoretically optimizes the continuity of path planning but also significantly improves the stability of the robot’s running speed during actual motion. To further assess this effect, this study compares the velocity time-history data of the robot along the blade scanning path before and after optimization under identical working conditions. The velocity time-history overlay comparison, as shown in Figure 9, visually illustrates the aforementioned quantitative results: the optimized velocity curve exhibits a more uniform fluctuation pattern, and the velocity variation between sampling points becomes smoother. These findings comprehensively demonstrate that path smoothing not only improves the motion coherence of the manipulator but also positively influences its dynamic response characteristics, thereby providing a solid operational foundation for high-precision blade detection tasks.
As shown in the figure, the speed standard deviation decreases from 0.305 m/s before optimization to 0.115 m/s after optimization 62.3% reduction in variability. Concurrently, the speed range contracts from 1 m/s to 0.7 m/s, thereby substantiating that the optimization significantly enhances the manipulator’s motion stability.
In summary, trajectory-optimized robot motion planning confers notable benefits for ultrasonic blade-scanning operations. First, the optimized trajectories exhibit superior spatial and temporal continuity, effectively attenuating high-frequency vibrations during robot movement. Second, the amplitude of acceleration fluctuations is markedly diminished, ensuring more consistent coupling between the ultrasonic transducer and the blade surface, which in turn enhances the signal-to-noise ratio and improves imaging fidelity. Moreover, the robot’s smoother dynamic response mitigates inertial impacts throughout the scanning process, thereby extending system longevity and bolstering overall reliability.

3.3. C-Scan Imaging of the Leaf Body

Experimental results demonstrate that twenty-four flat-bottomed hole defects (diameter range: 0.15–0.50 mm), arranged within the designated inspection region, yield high-contrast ultrasonic C-scan images, confirming that the selected 20 MHz transducer and 250 MHz sampling-rate data-acquisition system afford adequate spatial resolution and signal-to-noise performance. By contrast, when employing the unoptimized scanning trajectory (Figure 10a), excessive vibration between the robot’s end effector and the workpiece leads to echo-signal distortion and overlap. This not only degrades defect contrast but also exacerbates artifacts, thereby markedly diminishing the detectability of small defects—particularly those on the order of 0.15 mm.
Following the implementation of trajectory smoothing and acceleration-profile optimization, vibration amplitudes during robot motion are effectively attenuated, resulting in substantially enhanced contrast and clarity in the ultrasonic C-scan images. In particular, the accuracy of small-defect localization and dimensional assessment is improved; the optimized trajectory preserves the phase and amplitude integrity of the echo waveforms, thus elevating both image resolution and measurement precision.

4. Conclusions

The present study introduces a G3-continuous trajectory optimization framework for robotic ultrasonic scanning of complex free-form surfaces, underpinned by quintic B-spline curve modeling. By formulating the robot’s end-effector path as a parametric quintic B-spline, we derive closed-form expressions for position, velocity, acceleration, and jerk, thereby guaranteeing C3 (G3) continuity throughout the trajectory. This high-order geometric smoothness effectively mitigates abrupt motion changes and suppresses oscillatory behavior—critical factors when negotiating regions of high curvature or irregular morphology (e.g., turbine blades).
To balance motion stability against surface-conformity requirements, we construct a composite objective function comprising two key terms: (1) the integrated square of the second and third derivatives of the trajectory (acceleration and jerk), which serves as a smoothness regularizer; and (2) the mean square error between the B-spline path and the target workpiece surface, which quantifies fitting accuracy. A numerical optimization scheme is then employed to minimize this composite cost, yielding an optimal set of control points for the quintic B-spline.
Simulation and experimental results validate the effectiveness of the proposed method. It significantly reduces trajectory mutations and oscillations, successfully achieving efficient and accurate automated ultrasonic testing. This approach offers a reliable trajectory planning strategy for online nondestructive testing of complex curved workpieces, demonstrating significant application potential and practical value.
The proposed method may encounter challenges in maintaining real-time performance when subjected to unpredictable surface variations. Additionally, it may not be well-suited for irregular or discontinuous geometries, where the assumptions underlying the approach may fail to deliver accurate results.

Author Contributions

Conceptualization, C.X.; methodology, P.M.; software, P.M.; validation, P.M.; writing—original draft preparation, P.M.; writing—review and editing, P.M.; visualization, P.M.; supervision, C.X.; project administration, C.X.; funding acquisition, C.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key Projects of the Ministry of Industry and Information Technology, grant number TC220H057-2022.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article. The data presented in this study are available in Experiment Results and Discussion.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Morozov, M.; Pierce, S.G.; MacLeod, C.N.; Mineo, C.; Summan, R. Off-line Scan Path Planning for Robotic NDT. Measurement 2018, 122, 284–290. [Google Scholar] [CrossRef]
  2. Ajman, M.A.A.; Abdullah, E.J. Design of a Robotic Arm for Inspecting Curved Surface in Aerospace Non-Destructive Testing. J. Aeronaut. Astronaut. Aviat. 2024, 56, 501–511. [Google Scholar]
  3. Zhang, H.; Xu, C.; Xiao, D. Crack assessment of wheel hubs via an ultrasonic transducer and industrial robot. Sensors 2018, 18, 4336. [Google Scholar] [CrossRef]
  4. Mineo, C.; Pierce, S.G.; Nicholson, P.I.; Cooper, I. Robotic path planning for non-destructive testing—A custom MATLAB toolbox approach. Robot. Comput. Integr. Manuf. 2016, 37, 1–12. [Google Scholar] [CrossRef]
  5. Morozov, M.; Mineo, C.; Pierce, S.G.; Nicholson, P.I.; Cooper, I. Computer-Aided Tool Path Generation for Robotic Non-Destructive Inspection. In Proceedings of the Conference of the British Institute of Non-Destructive Testing 2013, Telford, UK, 10—12 September 2013. [Google Scholar]
  6. Secanellas, S.A.; León, I.G.; Parrilla, M.; Acebes, M.; Ibáñez, A.; Jiménez, H.d.M.; Martínez-Graullera, Ó.; de Pablos, A.Á.; Hernández, M.G.; Velayos, J.J.A. Methodology for the Generation of High-Quality Ultrasonic Images of Complex Geometry Pieces Using Industrial Robots. Sensors 2023, 23, 2684. [Google Scholar] [CrossRef]
  7. Xiao, Z.; You, Y.; Xu, C.G.; Xiao, D.G. Profile tracking with ultrasonic alignment for automatic non-destructive testing of complex structures. Robot. Comput. Integr. Manuf. 2018, 49, 134–142. [Google Scholar]
  8. Kovarikova, Z.; Duchon, F.; Porubsky, M.; Trebula, M.; Chovanec, L.; Salat, E.; Rakyta, M. Robotic Ultrasound Diagnostic System for Non-Destructive Testing in Highly Variable Production. Electronics 2025, 14, 2063. [Google Scholar] [CrossRef]
  9. Iakovleva, E.; Roué, D.; Brédif, P. Automatic image alignment and stitching for ultrasound-based robotic inspection of complex geometry components. NDT E Int. 2024, 146, 103158. [Google Scholar] [CrossRef]
  10. Mineo, C.; Pierce, S.G.; Wright, B.; Copper, I.; Nicholson, P.I. PAUT inspection of complex-shaped composite materials through six DOFs robotic manipulators. Insight Non-Destr. Test. Cond. Monit. 2015, 57, 161–166. [Google Scholar] [CrossRef]
  11. Mineo, C.; MacLeod, C.; Morozov, M.; Pierce, S.G.; Lardner, T.; Summan, R.; Powell, J.; McCubbin, P.; McCubbin, C.; Munro, G.; et al. Fast ultrasonic phased array inspection of complex geometries delivered through robotic manipulators and high speed data acquisition instrumentation. In Proceedings of the 2016 IEEE International Ultrasonics Symposium (IUS), Tours, France, 18–21 September 2016; pp. 1–4. [Google Scholar]
  12. Zhou, B.; Tian, T.; Zhu, G.; Zhao, J.; Liu, D. An ultrasonic testing method for wall thickness of turbine blades. Measurement 2022, 198, 111357. [Google Scholar] [CrossRef]
  13. Yang, J.; Yuen, A. An analytical local corner smoothing algorithm for five-axis CNC machining. Int. J. Mach. Tools Manuf. 2017, 123, 22–35. [Google Scholar] [CrossRef]
  14. Tulsyan, S.; Altintas, Y. Local toolpath smoothing for five-axis machine tools. Int. J. Mach. Tools Manuf. 2015, 96, 15–26. [Google Scholar] [CrossRef]
  15. Leng, H.; Wu, Y.; Pan, X. Research on flexible acceleration and deceleration method of NC system. In Proceedings of the 2006 International Technology and Innovation Conference (ITIC 2006), Hangzhou, China, 6–7 November 2006; pp. 1953–1956. [Google Scholar]
  16. Ye, P.; Shi, C.; Yang, K.; Lv, Q. Interpolation of continuous micro line segment trajectories based on look-ahead algorithm in high-speed machining. Int. J. Adv. Manuf. Technol. 2008, 37, 881–897. [Google Scholar] [CrossRef]
  17. Shi, C.; Ye, P. The look-ahead function-based interpolation algorithm for continuous micro-line trajectories. Int. J. Adv. Manuf. Technol. 2011, 54, 649–668. [Google Scholar] [CrossRef]
  18. Shi, J.; Bi, Q.Z.; Wang, Y.H.; Liu, G. Development of Real-Time Look-Ahead Methodology Based on Quintic PH Curve with G2 Con-tinuity for High-Speed Machining. Appl. Mech. Mater. 2014, 464, 258–264. [Google Scholar] [CrossRef]
  19. Huang, N.; Jin, Y.; Bi, Q.; Wang, Y. Integrated post-processor for 5-axis machine tools with geometric errors compensation. Int. J. Mach. Tools Manuf. 2015, 94, 65–73. [Google Scholar] [CrossRef]
  20. Erkorkmaz, K.; Altintas, Y. High speed CNC system design. Part I: Jerk limited trajectory generation and quintic spline interpola-tion. Int. J. Mach. Tools Manuf. 2001, 41, 1323–1345. [Google Scholar] [CrossRef]
  21. Bi, Q.; Wang, Y.; Zhu, L.; Ding, H. An Algorithm to Generate Compact Dual NURBS Tool Path with Equal Distance for 5-Axis NC Ma-chining. In Proceedings of the Intelligent Robotics and Applications—Third International Conference, ICIRA 2010, Shanghai, China, 10–12 November 2010. Part II. [Google Scholar]
  22. Bi, Q.; Wang, Y.; Zhu, L.; Ding, H. A Practical Continuous-Curvature Bézier Transition Algorithm for High-Speed Machining of Linear Tool Path. In Proceedings of the Intelligent Robotics and Applications, Aachen, Germany, 6–8 December 2011; pp. 465–476. [Google Scholar]
  23. Peng, J.; Ding, Y.; Zhang, G.; Ding, H. Smoothness-oriented path optimization for robotic milling processes. Sci. China Technol. Sci. 2020, 63, 1751–1763. [Google Scholar] [CrossRef]
  24. Walton, D.J.; Meek, D.S. G2 blends of linear segments with cubics and Pythagorean-hodograph quintics. Int. J. Comput. Math. 2009, 86, 1498–1511. [Google Scholar] [CrossRef]
  25. Zhao, H.; Zhu, L.M.; Ding, H. A real-time look-ahead interpolation methodology with curvature-continuous B-spline transition scheme for CNC machining of short line segments. Int. J. Mach. Tools Manuf. 2013, 65, 88–98. [Google Scholar] [CrossRef]
  26. Beudaert, X.; Lavernhe, S.; Tournier, C. 5-axis local corner rounding of linear tool path discontinuities. Int. J. Mach. Tools Manuf. 2013, 73, 9–16. [Google Scholar] [CrossRef]
  27. Shi, J.; Bi, Q.Z.; Zhu, L.M.; Wang, Y.H. Corner rounding of linear five-axis tool path by dual PH curves blending. Int. J. Mach. Tools Manuf. 2015, 88, 223–236. [Google Scholar] [CrossRef]
  28. Peng, J.; Huang, P.; Ding, Y.; Ding, H. An Analytical Method for Decoupled Local Smoothing of Linear Paths in Industrial Robots. Robot. Comput.-Integr. Manuf. 2021, 72, 102193. [Google Scholar] [CrossRef]
  29. Zhao, X.; Wang, H.; Ding, H. Quaternion-based smooth trajectory optimization for robotic inspection tasks on free-form surfaces. Robot. Auton. Syst. 2021, 146, 103953. [Google Scholar]
  30. Siciliano, B.; Sciavicco, L.; Villani, L.; Oriolo, G. Robotics: Modelling, Planning and Control; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
Figure 1. Overview of the robot-assisted UT system.
Figure 1. Overview of the robot-assisted UT system.
Sensors 25 05693 g001
Figure 2. Ultrasonic transducer surface sweep path.
Figure 2. Ultrasonic transducer surface sweep path.
Sensors 25 05693 g002
Figure 3. Scheme of an ultrasonic nondestructive testing system for robotics.
Figure 3. Scheme of an ultrasonic nondestructive testing system for robotics.
Sensors 25 05693 g003
Figure 4. Artificial flat bottom hole and crack defects of the blade body.
Figure 4. Artificial flat bottom hole and crack defects of the blade body.
Sensors 25 05693 g004
Figure 5. Complex surface trajectory of an aero-engine blade.
Figure 5. Complex surface trajectory of an aero-engine blade.
Sensors 25 05693 g005
Figure 6. Comparison of scanning paths before and after optimization.
Figure 6. Comparison of scanning paths before and after optimization.
Sensors 25 05693 g006
Figure 7. Comparison of trajectory acceleration before and after optimization.
Figure 7. Comparison of trajectory acceleration before and after optimization.
Sensors 25 05693 g007
Figure 8. Comparison of trajectory curvature before and after optimization.
Figure 8. Comparison of trajectory curvature before and after optimization.
Sensors 25 05693 g008
Figure 9. Comparison of scanning trajectory speed before and after optimization.
Figure 9. Comparison of scanning trajectory speed before and after optimization.
Sensors 25 05693 g009
Figure 10. Ultrasonic C-scan image of engine blade.
Figure 10. Ultrasonic C-scan image of engine blade.
Sensors 25 05693 g010aSensors 25 05693 g010b
Table 1. Main components of the robot-assisted UT system.
Table 1. Main components of the robot-assisted UT system.
ApparatusBrandModelProperty
RobotStaubliTX90LRepeatability: 0.035 mm
Ultrasonic Pulser/ReceiverOlympus5077PRReceiving bandwidth:
1 KHz–25 MHz
Ultrasonic probeOlympusV31920 MHz
A/D Acquisition CardAcquisition LogicAL12200sample rate: 250 MHz
ContainerNon-standardNon-standardVolume: 500 L
Table 2. Comparison data of path acceleration before and after optimization (m/s2).
Table 2. Comparison data of path acceleration before and after optimization (m/s2).
Sampling PointOriginal
Acceleration
Optimized
Acceleration
Improvement
Ratio (%)
12508566.0%
231010267.1%
346011874.3%
451013373.9%
572020571.5%
685026568.8%
791030067.0%
898034065.3%
9103037064.1%
10105039062.9%
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

Ma, P.; Xu, C. Dual-Objective Optimization of G3-Continuous Quintic B-Spline Trajectories for Robotic Ultrasonic Testing. Sensors 2025, 25, 5693. https://doi.org/10.3390/s25185693

AMA Style

Ma P, Xu C. Dual-Objective Optimization of G3-Continuous Quintic B-Spline Trajectories for Robotic Ultrasonic Testing. Sensors. 2025; 25(18):5693. https://doi.org/10.3390/s25185693

Chicago/Turabian Style

Ma, Pengzhi, and Chunguang Xu. 2025. "Dual-Objective Optimization of G3-Continuous Quintic B-Spline Trajectories for Robotic Ultrasonic Testing" Sensors 25, no. 18: 5693. https://doi.org/10.3390/s25185693

APA Style

Ma, P., & Xu, C. (2025). Dual-Objective Optimization of G3-Continuous Quintic B-Spline Trajectories for Robotic Ultrasonic Testing. Sensors, 25(18), 5693. https://doi.org/10.3390/s25185693

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