1. Introduction
Primitive geometries are widely used in aerospace, shipbuilding, and medicine. The form deviation of primitive geometries affects part mating. Part mating is critical in manufacturing and metrology quality control, affecting assembly, service life, wear resistance, and motion. Therefore, the development of computational algorithms to improve the efficiency and reliability of the production processes for manufactured parts has been a challenging research task during the last three decades. The rapid acquisition of discrete point clouds from surfaces has become possible with the development of coordinate measuring machines (CMMs) and low-cost 3D acquisition techniques. Therefore, inspecting manufactured parts by coordinate metrology on a discrete point cloud is an effective method for assessing the degree of satisfaction with design requirements.
Typically, the measured points should be compared to the ideal geometry to determine whether the part is to be accepted or rejected [
1]. Robust algorithms can quickly determine a substitute geometry in point clouds, but the reliability and efficiency of the algorithms are affected by the inherent uncertainty of the equipment used. Uncertainty may arise either from systematic errors [
2] or data noise [
3]. Hence, numerous coordinate metrology tasks focus on eliminating the uncertainty associated with data acquisition, which is referred to as point measurement planning (PMP) [
4]. Since the measurement time is proportional to the number of points, PMP research focuses on the size and location of the measurement process to achieve a more precise representation of the measured geometries using fewer points [
5]. The sampling strategy design is a solution for contact measurements. Sampling strategies in the literature can be divided into three main categories: uniform, random, and stratified sampling [
6]. Noncontact measurements provide more surface information [
7], but at the same time, the increased density leads to computational instability and cost. Gohari et al. [
8] introduced a data-mining algorithm that analyzes the trend of errors for the acquired points, which guarantees a reliable evaluation of geometric and form deviations.
The second computational task, which is also the main focus of this research work, is substitute geometry estimation (SGE). The objective of SGE is to obtain the ideal geometry parameters for the measured points or to locate the ideal geometry for the measured points via different types of fitting criteria, such as least-squares fitting, total least-squares fitting, min–max fitting, and minimum-zone fitting. In the former, fitting occurs directly on the point cloud, and the latter aligns the point cloud with the design model. The least-squares method is widely used in surface error estimation owing to its high evaluation efficiency. However, it does not strictly adhere to the minimum zone specified by ISO [
9] and can only provide approximate results, which may lead to misjudgment of the workpiece and economic losses. The minimum-zone method is often used as the basis for arbitration among various evaluation methods since it is more consistent with the standard definition of physical fittings [
10]. Nevertheless, minimum-zone deviation is a highly nonlinear problem, and multivariate optimization algorithms are required to provide satisfactory substitute geometries.
There have been many studies that have applied numerical optimization methods to the evaluation of form errors, including simplex search [
11,
12], semidefinite programming [
13], linear approximation [
14], iterative reweighted [
15], Chebyshev approximation [
16], and steepest descent [
17]. In the case of higher nonlinearity, it is challenging for these algorithms to obtain the global solution, since several local solutions may exist. Increasing the number of sample points also reduces the chance of obtaining the global minima in the employed optimization process [
18]. Based on this, many researchers have developed new data-fitting methods to solve the above problems.
The representation of surfaces by convex hulls is common in computational geometry techniques, and many researchers have applied it to form error evaluations [
19,
20]. In addition to the convex-hull technique, Liu et al. [
21] constructed the minimum-zone roundness intersection structure and evaluation model using the crossing relationship of chords. In a subsequent study [
22], the method was expanded to cylindricity evaluation. In addition, based on computational geometry techniques, Alhadi et al. [
23] presented an improved algorithm for the minimum zone of roundness error evaluation using an alternating exchange method. A minimum-zone fitting function was created to enhance the roundness error evaluation. Zhuo et al. [
24] introduced the definition of the crossing sector structure based on the minimum-zone criterion and transformed it into an angular relationship of control points, making it easy to identify the MZC. For straightness error, Li et al. [
25] proposed a simple bidirectional algorithm based on a four-point model for the calculation of the minimum-zone straightness error from planar coordinate data. Four points are used to construct the upper and lower reference lines which can select candidate points effectively by comparing the slope of the upper and lower reference lines. It is worth noting that computational geometry techniques suffer from the inherent problem of poor solution accuracy. Therefore, combining the initial solution and region search algorithm to search the parameter space greedily is a new research direction. Ye et al. [
26] proposed a new neighborhood-based adaptive iterative search strategy. The results of the proposed method provide more accurate values than conventional techniques. Huang et al. [
27] presented an asymptotic search method according to which roundness is solved iteratively using the intersecting chord to avoid trapping in the local solution. Liu et al. [
28] proposed and developed a novel cylindricity evaluation method. The framework and information flow of the algorithm has been documented, together with the description of the six-point subset, the replacement strategy, and the terminal condition. However, the greedy search approach does not guarantee a global solution and is often inefficient when data increase. There is still a demand for a comprehensive and stable method.
In recent studies, researchers have successively adopted swarm intelligence (SI) to resolve these issues. Some well-known SI methods and many improved optimization algorithms have been effectively used to determine substitute geometries according to various criteria. Du [
29] and Pathak [
30] applied particle swarm algorithms (PSO) to evaluate form error. Zhang et al. [
31] applied an ant-colony algorithm (ACO) to straightness, but it easily fell into local optimal solutions, so Luo et al. [
32] applied an improved artificial bee-colony (ABC) algorithm to straightness error evaluation; however, there was still a lack of accuracy. Based on this, Luo [
33] proposed to use an improved differential evolution algorithm (DE) for straightness evaluation. For roundness, Wen et al. [
34] proposed the use of a genetic algorithm (GA) for the evaluation of the minimum-zone circle, but the genetic algorithm requires the adjustment of numerous parameters. Recently, Li et al. [
35] proposed an improved bat algorithm (BA) to achieve accurate evaluation of minimum-zone roundness. In addition, the application of a genetic algorithm [
10] and an improved cuckoo search (CS) [
36] algorithm to flatness has been studied. These advanced optimization algorithms have their own advantages and disadvantages. Genetic algorithms can be applied to various complex optimization problems in reality but need to adjust various operators, such as crossover, mutation, and selection. The particle swarm optimization algorithm still needs to adjust the inertia weights for different problems to avoid falling into a local optimum. The CS algorithm, based on the foraging behavior of cuckoos, can obtain high-quality solutions, but the convergence speed is slow.
Harris hawks optimization (HHO) [
37] has received extensive attention from the research community. The construction of HHO mimics the foraging behavior of Harris hawks in nature. HHO is designed with two phases of exploration and four phases of exploitation. The results of testing for benchmark functions and several engineering optimization problems confirm that HHO outperforms many well-known SI approaches, such as PSO, GWO, CS, DE, and WOA. Notably, HHO expresses a highly exploitative ability in later stages. SSA [
38] is also a well-established swarm intelligence technique based on the salp chain, which simulates the foraging patterns in oceans. Due to its simplicity and superiority, it has been widely used in unconstrained and constrained optimization problems.
In this paper, an improved HHO algorithm (IHHO) is proposed for solving the form deviation-zone evaluation problem. The IHHO focuses on two areas of improvement: exploration strategy selection and exploration capabilities. The latter was mainly inspired by [
39]. Furthermore, the search area of the primitive geometries is analyzed to speed up the convergence.
The rest of the paper is organized as follows:
Section 2 presents the modeling of the objective function and the determination of the search area of the primitive geometries. An overview of the optimizer is also described. The specific structure of the proposed optimizer is presented in
Section 3.
Section 4 describes a group of experiments and analyses of the global benchmark problem.
Section 5 verifies the practicality of the proposed optimizer in dealing with the form deviation-zone evaluation problem. Finally, conclusions are drawn in
Section 6.
5. The Application of IHHO in Form Deviation-Zone Evaluation
Traditional form deviation-zone evaluation suffers from the problems of difficulty in generating solutions, poor generality, and lack of solution accuracy, while other metaheuristic intelligent optimization algorithms have a wide variety of algorithms, each containing many variants, and each having its own advantages and disadvantages. Therefore, the goal of this study was to find an algorithm with strong global optimization capability, less parameter adjustment, and high accuracy for error evaluation.
It has been shown that the HHO algorithm has fewer parameters, is simple in principle, is more exploratory and adaptable in global optimization, and outperforms many well-known intelligent optimization methods, such as PSO, GWO, CS, DE, and WOA. Therefore, its application to form deviation-zone evaluation satisfies the requirement of fewer parameter adjustments and has some advantages over other methods in terms of optimization capability and optimization accuracy. Although there are still problems of early convergence, poor optimization accuracy, and weak global search capability, they have been improved by various measures.
5.1. Comparison of Data in the Literature
To evaluate the availability of IHHO in form deviation-zone evaluation, we benchmarked the proposed IHHO by reference to data in the literature. The flowchart of IHHO applied to solve the deviation-zone evaluation problem is shown in
Figure 8. The population size was set to 30, the maximum number of iterations was 500, and the optimization dimension and search area for the corresponding problem were shown in
Section 2.1. The algorithm was run 30 times independently using MATLAB2016a software, and the average result was taken as the corresponding form error.
Table 7 shows the evaluation results of the algorithms reported in the literature and those obtained by IHHO. The results list the number of points, reported minimum-zone errors, IHHO evaluation minimum-zone errors, least-squares evaluation errors, and relative differences. In addition, the convergence curves of three randomly selected experiments are shown in
Figure 9 to visualize the working process of the IHHO algorithm for deviation-zone evaluation.
From
Table 7, the average evaluation results for the IHHO algorithm in the four types of deviation zones are more accurate or equal to the reported MZs in the literature, except for example 2 of flatness, and significantly improved compared to the least-squares method. In particular, the straightness evaluation error of example 2 improved by 25.65% compared to the reported results. As can be seen from the convergence diagram in
Figure 9, the optimal solution was found with only 50 iterations on the dataset, except for the roundness error evaluation, which reached convergence in approximately 150 iterations. The trends were essentially the same for the three randomly selected experiments. Therefore, it can be tentatively concluded that the proposed IHHO optimization algorithm works well in deviation-zone evaluation and can meet the needs of high-precision evaluation in engineering.
5.2. Engineering Applications
To further validate the advantages of the IHHO algorithm applied to deviation-zone evaluation, the surface of a seamless steel tube was measured by a hexagon image-probe hybrid measuring device, MSOC-03-2C. With the probe system, eight sets of section data and corresponding center coordinates were collected to assess the cylindricity and axis straightness of the seamless steel tube. With the vision system, the coordinates of the cross-section of the steel tube hole were collected, filtered, and downsampled for roundness evaluation. Furthermore, the measuring surface of a 10 mm gauge block was collected with a probe for flatness evaluation. The experimental equipment and objects are shown in
Figure 10.
Based on the deviation-zone model developed in
Section 2.1, the above acquisition data were evaluated using the IHHO, HHO, SSA, SSA&HHO [
34], and least-squares methods. To thoroughly verify the convergence property of the algorithm, the maximum number of iterations
T = 500 and
N = 30. The experiments were repeated 30 times for each data group to remove accidental errors. The results are summarized in
Table 8. The boxplots and average convergence curves for the different algorithms relative to the number of iterations are plotted in
Figure 11 and
Figure 12. The error maps of the gauge block surface and the seamless tube surface are shown in
Figure 13.
As shown in
Table 8, in the cylindricity evaluation, the error was 0.1013 mm, which is much higher than that of the other algorithms. For straightness, the SSA&HHO and IHHO algorithms were more effective, while SSA and HHO were poor. HHO performed the worst in the roundness evaluation, while the rest of the algorithms performed similarly. In the flatness evaluation, all algorithms achieved the same results. According to the boxplot diagram in
Figure 11, the IHHO fluctuations were lower than those of the other methods in 30 independent runs, while the rest of the algorithms showed performance differences when evaluating different form errors.