Next Article in Journal
Multi-Level Thresholding Color Image Segmentation Using Modified Gray Wolf Optimizer
Previous Article in Journal
Enhancing the Mechanical Strength of a Photocurable 3D Printing Material Using Potassium Titanate Additives for Craniofacial Applications
Previous Article in Special Issue
An Improved Dung Beetle Optimizer for the Twin Stacker Cranes’ Scheduling Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Metaheuristic Algorithm and Laser Projection for Adjusting the Model of the Last Lower Surface to a Footprint

by
J. Apolinar Muñoz Rodríguez
Centro de Investigaciones en Óptica, A. C., Lomas del Bosque 115, Col. Comas del Campestre, León 37000, GTO, Mexico
Biomimetics 2024, 9(11), 699; https://doi.org/10.3390/biomimetics9110699
Submission received: 5 October 2024 / Revised: 6 November 2024 / Accepted: 9 November 2024 / Published: 14 November 2024
(This article belongs to the Special Issue Nature-Inspired Metaheuristic Optimization Algorithms 2024)

Abstract

:
Nowadays, metaheuristic algorithms have been applied to optimize last lower-surface models. Also, the last lower-surface model has been adjusted through the computational algorithms to perform custom shoe lasts. Therefore, it is necessary to implement nature-inspired metaheuristic algorithms to perform the adjustment of last lower-surface model to the footprint topography. In this study, a metaheuristic genetic algorithm is implemented to adjust the last lower surface model to the footprint topography. The genetic algorithm is constructed through an objective function, which is defined through the last lower Bezier model and footprint topography, where a mean error function moves the last lower surface toward the footprint topography through the initial population. Also, the search space is deduced from the last lower surface and footprint topography. In this way, the genetic algorithm performs explorations and exploitations to optimize a Bezier surface model, which generates the adjusted last lower surface, where the surface is recovered via laser line scanning. Thus, the metaheuristic algorithm enhances the last lower-surface adjustment to improve the custom last manufacture. This contribution is elucidated by a discussion based on the proposed metaheuristic algorithm for surface model adjustment and the optimization methods implemented in recent years.

1. Introduction

Nowadays, metaheuristic optimization algorithms provide a powerful tool to perform surface modeling [1]. This mathematical modeling plays an important role in representing the last lower surface in footwear manufacturing [2], where the custom footwear manufacturing determines if the last lower surface fits the target footprint topography [3]. Also, a personalized last lower surface is adjusted by moving the last lower surface toward the desired footprint topography. Thus, a good contact between the footprint and the shoe insole is achieved. This kind of contact provides a good pressure distribution on the plantar surface, which supplies good body functionality [4]. Typically, the last lower surface adjustment is performed by modifying parameters from a constructed surface model [5]. In this way, an algorithm of modifications is implemented to adjust the surface model. Thus, the last lower adjustment is performed by means of surface model optimization and an algorithm of modifications, where the surface model optimization is performed by means of mathematical algorithms and surface data [6]. But the algorithm of modifications is carried out by changing morphological parameters and surface data in the surface model.
In this way, the traditional last lower adjustment is implemented by constructing a surface model via optimization and applying an algorithm to perform modifications. For instance, a shoe last bottom model has been constructed by means of constraints in AutoCAD and an optimization of morphological parameters [7]. But the surface model modifications are performed by changing a set of morphological parameters, which modify the original surface. Also, the last bottom model has been built via CAD/CAM technologies by optimizing the parameters and regression function [5], where the surface model modifications are performed by changing the size of the morphological parameters to modify the original surface. In the same way, the last lower-surface model has been constructed through the Taguchi method by optimizing the parameters of a regression function [8]. But the surface model modifications are performed by changing the tolerance of the morphological parameters. Also, the last surface model has been implemented by optimizing the NURBS parameters [9], where the surface model modifications are carried out by changing the size of morphological parameters. In the same way, the last lower-surface model has been built via NURBS optimization [10], where surface model modifications are carried out via landmarks and a set of foot parameters. Moreover, the last lower-surface model has been constructed based on the principal component optimization [11,12], where the algorithm of modifications is carried out through the foot parameters. Furthermore, the insole surface model has been generated by means of a quadratic model based on the pressure points [13], where the surface model modifications are carried out through the medical images of the foot parameters. Additionally, the foot surface model has been constructed via NURBS based on landmarks [14], where the NURBS surface model is adjusted by employing the landmarks of the foot parameters.
Based on the above statements, it is established that the optimization algorithm performs an important role to accomplish the surface model. In this field, metaheuristic algorithms such as particle swarm, ant colony, simulated annealing and fuzzy logic have been implemented to optimize the surface model. For instance, a NURBS surface model has been optimized trough the particle swarm algorithm [15], where the particle swarm performs the optimization through an inertia equation and a particle velocity equation. In the same way, a NURBS surface model has been optimized via the ant colony algorithm [16], where the ant colony algorithm makes trajectories through a pheromone concentration to obtain the surface model parameters. Also, surface model optimization has been performed through the simulated annealing algorithm [17], where the simulated annealing decreases and increases an objective function by means of a small perturbation to determine the parameters. Additionally, a surface model optimization has been implemented via fuzzy logic [18], where the model parameters are deduced by means of a contactless scanning. Furthermore, the last lower-surface adjustment has been carried out by changing the morphological parameters [19,20], where the modifications are performed by correlating different surface models. Also, the last lower-surface modification has been performed based on a finite element method [21], where the adjustment is carried out by changing the morphological parameters. In the same way, the last lower adjustment has been performed via the Taguchy method by combining sets of the morphological parameters [18].
The above-mentioned methods perform the surface model optimization via artificial intelligence algorithms. However, these methods do not optimize the surface model parameters through the search space based on the surface data. For instance, simulated annealing, particle swarm, ant colony, and fuzzy logic algorithms do not generate the solution space based on the surface data. Therefore, additional procedures should be performed to achieve the optimal surface model. Also, the optimization is carried out through an objective function, which includes additional parameters to the surface model. This increases the number of iterations to optimize the surface model. Moreover, these methods do not include surface model adjustment. Therefore, the procedure to perform the adjustment of the last lower-surface model still needs research and computational development. Based on these statements, it is deduced that the adjustment of the last lower-surface model still represents a complicated task. To enhance this technology, it is necessary to implement a metaheuristic genetic algorithm to adjust the surface model toward the footprint topography.
The proposed technique performs the adjustment of the last lower-surface model through a metaheuristic genetic algorithm and laser line projection. This metaheuristic algorithm provides a more suitable structure to perform the optimization of the adjusted last lower-surface model. For instance, the particle swarm optimization, ant colony, simulated annealing and fuzzy logic generate the initial population in random form [22,23,24,25]. But the next generation is generated based on the previous population. These two steps produce high error and dependence on the current solution. Instead, the metaheuristic algorithm provides an initial population based on surface data, and a flexible structure to test candidates. This procedure produces low error and the next generation is independent of the current solution. From these attributes, the iterations of the optimization are reduced. Also, the traditional algorithms employ additional equations to optimize the surface model. For instance, the particle swarm computes a position equation and velocity equation, ant colony and simulated annealing compute a probability function, and fuzzy logic computes a linguistic function [26,27,28,29]. This leads to producing smaller changes in the next solution and dependence on the current solution. On the other hand, the metaheuristic algorithm does not compute additional equations, and it can produce bigger and smaller changes through the mutation without any dependence. Based on these improvements, the metaheuristic genetic algorithm performs the optimization of the adjusted last lower-surface model.
The surface modeling adjusts the last lower surface toward the footprint topography by means of the surface data, which are retrieved via laser line scanning. In this procedure, the last lower-surface model is generated by means of 5-th order Bezier basis functions and control points. Thus, the metaheuristic algorithm optimizes the last lower-surface model, which fits to the footprint topography through the surface data. To carry it out, the metaheuristic algorithm generates the search space from the last lower surface and the footprint topography. Based on the search space, the last lower surface is moved toward the footprint by means of a mean error function and the initial population, where the mean error function provides the difference between the last lower surface and the footprint topography. Then, explorations and exploitations are performed to accomplish the optimal control points, which provide the adjusted last lower surface. The last lower-surface modeling is carried out through a vision system, which consists of a CCD camera and a laser line. This arrangement is mounted on a slider device to perform laser line scanning, where the laser line is projected perpendicularly on the last lower surface and the CCD camera captures the laser line, which reflects the surface contour. In this way, the surface dimension is computed by means of the setup geometry and the laser line position. Then, the last lower-surface model is generated via Bezier basis functions, which are adjusted to the footprint topography based on the mean error function. Thus, the metaheuristic algorithm and laser line scanning enhances the accuracy of the adjustment of the last lower-surface model to the footprint topography. The contribution of the metaheuristic genetic algorithms is established based on the surface model adjustment, run time, and algorithm structure. To elucidate this contribution, a discussion is carried out based on the surface model adjustment of recent years.
This paper is organized as follows: the metaheuristic algorithm to perform the 5th-order Bezier surface model is explained in Section 2.1, the surface contouring via laser line scanning is described in Section 2.2, the adjustment of the last lower-surface model to the footprint is performed in Section 3, and the discussion of the contribution of the adjusted surface model is given in Section 4.

2. Materials and Methods

2.1. Bezier Surface Modeling via Metaheuristic Algorithm

The last lower-surface model is built through the 5th-order Bezier surface model, which is optimized by a metaheuristic algorithm. To construct the Beszier surface model, the last lower surface is scanned via laser line to retrieve the surface data. Then, the Bezier surface model is generated by means of the surface points zi,j, which are shown in Figure 1. In this figure, the coordinates (xi,j, yi,j) represent the surface position on the x-axis and y-axis, but the sub-indices (i, j) represent the number of the surface points in the x and y direction, respectively. In this way, the 5th-order Bezier surface is built through the surface points (z0,0, z1,0, …, z5,0, …, z5,5). From these surface data, the Bezier surface is generated based on the control points Pi,j by means of the following expressions:
S r , t ( u , v ) = i = 0 i = 5 j = 0 j = 5 5 ! 5 ! ( 5 i ) ! i ! ( 5 - j ) ! j ! 1 u 5 i ( 1 v ) 5 j u i v j P 5 r + i , 5 t + j ,       u , v [ 0 , 1 ] ,
u i , j = ( x 5 r + i , j x 5 r , j ) ( x 5 ( r + 1 ) , j x 5 r , j ) , v i , j = ( y i , 5 t + j y i , 5 t ) ( y i , 5 ( t + 1 ) y i , 5 t ) .
In this equation, the control points P5r+i,5t+j move the Bezier surface Sr,t(u,v) toward the surface points z5r+i,5t+j, where the sub-indices (r, t) represent a surface region. But the parametric values (u, v) are defined on the x-axis and y-axis, respectively.
Based on these statements, the last lower-surface model is represented by the Bezier surfaces S0,0(u,v), S1,0(u,v), S1,0(u,v), and S1,1(u,v), …, SN,M(u,v), where N and M are the number of Bezier surfaces in the x-direction and y-direction, respectively. In this way, the Bezier surface Sr,t(u,v) is generated by means of the control points P5r+i,5t+j. To compute the control points, the next equation is obtained from the Bezier surface Equation (1).
S r , t ( u , v ) = B 0 , 0 ( u , v ) P 5 r + 0 , 5 t + 0 + B 0 , 1 ( u , v ) P 5 r + 0 , 5 t + 1 + B 0 , 2 ( u , v ) P 5 r + 0 , 5 t + 2 + , , + B 5 , 5 ( u , v ) P 5 r + 5 , 5 t + 5 .
For this equation, Bi,j(u,v) = 5!5!(1 − u)5−i(1 − v)5−juivj/(5 − i)!i!(5 − j)!j!, and the control points are defined based on the weights W 5r+i,5t+j by the expression P5r+i,5t+j = W 5r+i,5t+j z5r+i,5t+j. Thus, the parametric values (ui,j, vi,j) and the surface points zi,j, are substituted in Equation (2) to obtain the next equation system:
S r , t ( u 0 , 0 , v 0 , 0 ) S r , t ( u 0 , 0 , v 0 , 1 ) S r , t ( u 0 , 0 , v 0 , 2 )   S r , t ( u 5 , 5 , v 5 , 5 ) = B 0 , 0 ( u 0 , 0 , v 0 , 0 ) + B 0 , 1 ( u 0 , 0 , v 0 , 0 ) + B 0 , 2 ( u 0 , 0 , v 0 , 0 ) + + B 5 , 5 ( u 0 , 0 , v 0 , 0 ) B 0 , 0 ( u 0 , 0 , v 0 , 1 ) + B 0 , 1 ( u 0 , 0 , v 0 , 1 ) + B 0 , 2 ( u 0 , 0 , v 0 , 1 ) + + B 5 , 5 ( u 0 , 0 , v 0 , 1 ) B 0 , 0 ( u 0 , 0 , v 0 , 2 ) + B 0 , 1 ( u 0 , 2 , v 0 , 0 ) + B 0 , 2 ( u 0 , 2 , v 0 , 0 ) + + B 5 , 5 ( u 0 , 0 , v 0 , 2 )   B 0 , 0 ( u 5 , 5 , v 5 , 5 ) + B 0 , 1 ( u 5 , 5 , v 5 , 5 ) + B 0 , 2 ( u 5 , 5 , v 5 , 5 ) + + B 5 , 5 ( u 5 , 5 , v 5 , 5 ) W 5 r + 0 , 5 t + 0 , z 5 r + 0 , 5 t + 0 W 5 r + 0 , 5 t + 1 , z 5 r + 0 , 5 t + 1 W 5 r + 0 , 5 t + 2 , z 5 r + 0 , 5 t + 2 W 5 r + 5 , 5 t + 5 , z 5 r + 5 , 5 t + 5 .
For this equation system, the Bezier surface Sr,t(ui,j,vi,j) is replaced by the surface data z5r+i,5t+j, and the values (ui,j, vi,j) are computed through the expressions given in Equation (1). Thus, the weights W 5r+i,5t+j are computed through a metaheuristic algorithm by means of the following steps.
In the first step, the search space and the initial population are determined based on the last lower surface and the footprint topography. To carry it out, the last lower surface is overlapped onto the footprint topography. From this overlapping, the mean error between the last lower surface zi,j and the footprint topography hi,j is computed by the following expression:
E r , t = 1 36 i = 0 5 j = 0 5 ( z 5 r + i , 5 t + j h 5 r + i , 5 t + j ) .
Then, the surface points z5r+i,5t+j are moved toward the footprint topography by computing the expression z5r+i,5t+j = z5r+i,5t+jEr,t, for i = 0, 1, 2, …, 5 and for j = 0, 1, 2, …, 5. This procedure moves the last lower surface toward the footprint topography by means of the mean error function. Thus, if Er,t > 0, the surface z5r+i,5t+j is moved down. But, if Er,t < 0, the surface z5r+i,5t+j is moved up. Additionally, the border surface points (z5r+5,5t+1, z5r+5,5t+2, z5r+5,5t+3, z5r+5,5t+4) and (z5r+1,5t+5, z5r+2,5t+5, z5r+3,5t+5, z5r+4,5t+5) are computed by the expressions z5*r+5,j = (z5*r+3,j + z5*r+6,j)/2 and zi,5*t = (zi,5*t+4 + zi,5*t+6)/2 to obtain continuity G1. Then, the initial population is generated from the maximum and minimum of each weight. To determine the initial population, the Bezier surface Sr,t(ui,j,vi,j) Equation (1) is computed by substituting W 5r+i,5t+j = 1 and P5r+i,5t+j = z5r+i,5t+j. Thus, if Sr,t(ui,j, vi,j) is over the surface z5r+i,5t+j, the maximum is equal to 1, and the minimum is given by [z5r+i,5t+j − 3 * abs(z5r+i,5t+jh5r+i,5t+j)]/z5r+i,5t+j. But, if Sr,t(ui,j, vi,j) is under z5r+i,5t+j, the minimum is equal is 1 and the maximum is given by [z5r+i,5t+j + 3*abs(z5r+i,5t+jh5r+i,5t+j)]/z5r+i,5t+j. Thus, the search space has been determined for each weight W 5r+i,5t+j. From this search space, four values are randomly taken to obtain the initial population for each weight. These values are defined as the parents ( P 1,k, P 2,k, P 3,k, P 4,k), which represent the initial population. In this case, the k-sub-index represents the generation number. This initial population produces an adjusted Bezier surface based on the mean error function.
The second step computes the k-generation children via crossover by means of explorations and exploitations [30]. This procedure computes two children inside parents and one child outside parents. To carry it out, the children ( C 1,k, C 2,k) and ( C 4,k, C 5,k) are computed via exploration from the parents ( P 1,k, P 2,k) and ( P 3,k, P 4,k), respectively. Then, the children ( C 3,k, C 6,k) are computed via exploitation. In this way, the current children are calculated through the following expressions:
C 1 , k = 0.5 P 1 , k + P 2 , k + β P 1 , k P 2 , k ,
C 2 , k = 0.5 P 1 , k + P 2 , k β P 1 , k P 2 , k ,
C 4 , k = 0.5 P 4 , k + P 3 , k + β P 4 , k P 3 , k ,
C 5 , k = 0.5 P 4 , k + P 3 , k β P 4 , k P 3 , k ,
C 3 , k = P 0 , k + β P 1 , k P 0 , k ,
C 6 , k = P 4 , k + β P 5 , k P 4 , k .
For these equations, P 0,k and P 5,k are the minimum and maximum of each weight. Additionally, the parameter β is calculated by means of the factor α, which is taken in random form from the interval between 0 and 1. In this way, β = (2α)1/2 if α > 0.5; otherwise, β = [2(1 − α)]1/2. Thus, Equations (5)–(8) compute the children inside parents, and Equations (9) and (10) compute the children outside parents. Thus, the k-generation children are computed.
The third step computes the fitness of the Bezier surfaces Sr,t(ui,j,vi,j) by means of an objective function, which is described by the following expression:
O r , t = min 1 36 i = 0 i = 5 j = 0 j = 5 S r , t ( u i , j , v i , j ) - z 5 r + i , 5 t + j 2 .
This equation computes the fitness by means of the last lower surface z5r+i,5t+j and the Bezier surface Sr,t(ui,j,vi,j). The fourth step takes the best current parents and children to determine the (k + 1)-generation parents. Thus, the parent P 1,k+1, is obtained from ( P 1,k, P 2,k), the parent P 3,k+1 is collected from ( P 3,k, P 4,k), the parent P 2,k+1 is taken from ( C 1,k, C 2,k, C 3,k) and the parent P 4,k+1 is chosen from ( C 4,k, C 5,k, C 6,k).
The fifth step mutates one parent and one weight to avoid a local minimum. In this way, a new parent replaces the worst parent to compute the fitness via Equation (11). If the new parent improves the fitness, it replaces the worst parent. Otherwise, the mutation is not carried out. Also, a new weight replaces a weight from a parent, which is selected in random form, and the fitness is computed via Equation (11). Thus, if the new weight improves the fitness, it replaces the selected weight. Otherwise, the selected weight is not mutated. Thus, the (k + 1)-generation parents have been completed. Also, Equations (5)–(10) are computed to obtain the (k + 1)-generation children. Thus, the (k + 1)-generation population is obtained. The steps two to five are iteratively computed until finding the weights that minimize the objective function, in Equation (11). Then, the mean error function Equation (4) is computed for r = 1, 2, 3, …, N and t = 1, 2, 3, …, M. In this case, the surface (z5r+i,5t+j) is replaced by Sr,t(ui,j, vi,j) in Equation (4). Thus, if the absolute value of the mean error is more than a tolerance, go to compute step one to step five. But if the absolute value of the mean error is less than the tolerance, the metaheuristic algorithm has finished.
To describe the steps of the metaheuristic algorithm, the Bezier surface S0,0(u, v) is computed from the surface points shown in Figure 2a. In this procedure, the control points (P0,0, P0,1, P0,2, …, P5,5) are computed through the genetic algorithm described in the flowchart shown in Figure 2b. For the Bezier surface S0,0(u, v), the control points P0,0 = 1, P5,0 = 1, P0,5 = 1, and P5,5 = 1 are provided by the Bezier surface Equation (1). Additionally, the control points (P5,1, P5,2, P5,3, P5,4) and (P1,5, P2,5, P3,5, P4,5) are computed by the expressions P5*r+5,j = (P5*r+3,j + P5*r+6,j)/2 and Pi,5*t = (Pi,5*t+4 + Pi,5*t+6)/2 to provide continuity G1. Based on these statements, the first step computes the mean error Er,t between the last lower surface and the footprint topography. Then, the last lower-surface points are computed by the expression z5r+i,5t+j = z5r+i,5t+jEr,t. Also, the surface points (z5r+5,5t+1, z5r+5,5t+2, z5r+5,5t+3, z5r+5,5t+4) are computed via z5*r+5,j = (z5*r+3,j + z5*r+6,j)/2 to provide continuity G1. In the same way, the surface points (z5r+1,5t+5, z5r+2,5t+5, z5r+3,5t+5, z5r+4,5t+5) are computed by the expression zi,5*t = (zi,5*t+4 + zi5*t+6)/2. Thus, the last lower-surface points are moved toward the footprint. Then, the initial population is generated from the maximum and minimum of each weight. To do so, the surface Sr,t(ui,j,vi,j) Equation (1) is computed by substituting W5r+i,5t+j = 1 and P5r+i,5t+j = z5r+i,5t+j. Thus, if Sr,t(ui,j, vi,j) > z5r+i,5t+j, the maximum is equal to 1, and the minimum is determined by the expression [z5r+i,5t+j − 3*abs(z5r+i,5t+jh5r+i,5t+j)]/z5r+i,5t+j. But, if the surface Sr,t(ui,j, vi,j) < z5r+i,5t+j, the minimum is equal to 1 and the maximum is given by the expression [z5r+i,5t+j + 3*abs(z5r+i,5t+jh5r+i,5t+j)]/z5r+i,5t+j. From this search space, four values are randomly taken to determine the first parents ( P 1,k, P 2,k, P 3,k, P 4,k), which represent the initial population of each control point. These first parents are shown in Table 1, where the first column depicts the control point to be optimized and the parents are shown in the second to fifth column. This initial population generates a Bezier surface moved toward the footprint topography. Then, the second step computes the current children via crossover, where the children ( C 1,k, C 2,k, C 3,k, C 4,k, C 5,k, C 6,k) are computed via Equations (5)–(10). These children are shown in the sixth to eleventh column of Table 1. Next, the third step computes the fitness Equation (11) by employing the surface Sr,t(ui,j, vi,j) and z5r+i,5t+j. This fitness is indicated in row seventeen. The fitness results show that the initial population produces a low error. Then, the fourth step chooses the (k + 1)-generation parents from the best current parents and children. In this way, the parent P 1,k+1 is taken from ( P 1,k, P 2,k), the parent P 3,k+1 is collected from ( P 3,k, P 4,k), the parent P 2,k+1 is taken from ( C 1,k, C 2,k, C 3,k) and the parent P 4,k+1 is chosen from ( C 4,k, C 5,k, C 6,k). Thus, P 1,2 = P 1,1, P 3,2 = P 4,1, P 2,2 = C 3,1, and P 4,2 = C 5,1. The fifth step takes the worst parent P 4,2 to perform a mutation.
To do this, a new parent replaces the worst parent to compute the fitness Equation (11). In this case, the new parent enhances the fitness; therefore, the new parent replaces the patent P 4,2. Then, the parent P 3,2 is randomly designated to mutate the weight W 2,2, which is chosen in random form. To carry it out, a new weight replaces the weight W 2,2 to calculate the fitness in Equation (11). In this case, the new weight does not improve the fitness. Therefore, the weight is not mutated. Then, the second step computes Equations (5)–(10) to obtain the (k + 1)-generation children. Also, the fitness is computed via Equation (11). The second generation population is shown in Table 2. The procedure to compute the (k + 1)-generation population is repeated until the objective function Equation (11) is minimized. From this procedure, the optimal weights are obtained to determine the control points, which are shown in the twelfth column of Table 2. These control points Pi,j = W i,jzi,j are employed to generate the Bezier surface S0,0(u, v), shown in Figure 2c, where the control points (P5,1, P5,2, P5,3, P5,4) and (P1,5, P2,5, P3,5, P4,5) are computed by the expressions P5*r+5,j = (P5*r+31,j + P5*r+6,j)/2 and Pi,5*t = (Pi,5*t+4 + Pi5*t+6)/2 to provide continuity G1.
In the same way, the Bezier surfaces S0,1(u,v), S1,0(u,v), …, SN,M(u,v) are computed to obtain the complete surface. Then, the absolute value of the mean error Equation (4) is computed to determine the difference between the Bezier surface and the footprint for r = 0, 1, 2, 3, …, N and t = 1, 2, 3, …, M. Thus, if the absolute mean error is more than a tolerance, the procedure from step one to step five is repeated. But, if the absolute value of the mean error is less than the tolerance, the metaheuristic algorithm has finished. The optical arrangement to compute the three-dimensional surface is described in Section 2.2.

2.2. Three-Dimensional Surface Recovering via Laser Line Scanning

The last lower surface and the footprint topography are recovered via laser line scanning through the vision system shown in Figure 3a. This optical arrangement consists of a laser line, a CCD array, a slider device and a PC computer. The laser line and the CCD camera are mounted on the slider device, which moves the setup horizontally via control software. In this arrangement, the x-axis represents the horizontal axis, the y-axis represents the vertical axis, and the z-axis depicts the surface height. Thus, the last lower surface is placed on the glass area, which represents the x-y plane, and the surface height is parallel to the z-axis. The geometry of the optical arrangement is sketched in Figure 3b, where the laser line is projected perpendicularly to the surface, and the CCD camera is placed at a distance D from the laser line. Based on this geometry, the transverse section of the laser line is placed in the x-direction, but, the longitudinal section of the laser line is depicted in the y-direction. These directions are indicated on the glass surface area in Figure 3b, where a surface point is represented by the coordinates (xi,j, yi,j, zi,j). In this case, the height between the surface and the glass is represented by zi,j.
The distance between the glass and the camera lens is indicated by A1, but the length between the lens and the CCD array is represented by A2. The laser coordinates in the CCD camera are indicated by (xi,j, yi,j). The image center is given by the coordinates (xc, yc) and the pixel size is denoted by the symbol η. From the geometry shown in Figure 3b, the surface height zi,j and the surface width yi,j are determined by means of the following equations:
z i , j = A 1 D η ( x i , j x c ) A 2 .
y i , j = η ( y i , j y c ) ( A 2 + z i , j ) A 1 + η y c .
The surface length xi,j is obtained from the laser line position, which is provided by the slider device, but the surface depth zi,j and the surface width yi,j are computed by means of the parameters (xc, yc, η, A1, A1, D). These parameters are computed through a genetic algorithm, which computes the objective function via Equations (12) and (13). To do so, the genetic algorithm computes the next five steps.
The first step computes the first population from the research space of each parameter. In this procedure, the maximum and minimum of the parameters (xc, yc, η) are obtained through the image size data, but the maximum and minimum of the parameters (A1, A2, D) are deduced from the setup geometry. In this way, the lens focus is established as the lens ratio of the lens. Also, the minimum A1 is defined as the lens ratio multiplied by 1.8 and the maximum A1 is established as the lens ratio multiplied by 3.8. In the same way, the minimum A2 is defined as the maximum A1, but, the maximum A2 is established as the maximum A1 multiplied by 10. Moreover, the minimum D is defined as the maximum A1, but, the maximum D is established as the maximum A1 multiplied by 8. Thus, the research space has been accomplished. Then, the parents ( P 1,k, P 2,k, P 3,k, P 4,k) are randomly taken from the maximum and minimum of each parameter. Thus, for each parameter (xc, yc, η, A1, A2), four values are collected, and they represent the initial population. The second step computes Equations (5)–(10) to obtain the children ( C 1,k, C 2,k, C 3,k, C 4,k, C 5,k, C 6,k). The third step determines the fitness through an objective function based on the surface height zi,j and surface width yi,j by means of the following equations:
F O 1 = min 1 M x N i = 0 N j = 0 M ( z i , j z 0 , j ) A 1 D η ( x i , j x c ) + A 2 + A 1 D η ( x 0 , j x c ) A 2 2 ,
F O 2 = min 1 M x N i = 0 N j = 0 M ( y i , j y i , 0 ) η ( y i , j y c ) ( A 2 + z i , j ) A 1 η y c + η ( y i , 0 y c ) ( A 2 + z i , 0 ) A 1 + η y c 2 .
From these equations, the fitness is determined by the expression FO = (FO1 + FO2)/2, where (zi,jzi,0) and (yi,jyi,0) are known. The fourth step determines the (k + 1)-generation parents through the fitness, where P 1,k+1 and P 3,k+1 are taken from ( P 1,k, P 2,k) and ( P 3,k, P 4,k), respectively. But P 2,k+1 and P 4,k+1 are selected from ( C 1,k, C 2,k, C 3,k) and ( C 4,k, C 5,k, C 6,k), respectively. The fifth step changes the worst parent for a new parent, which is randomly selected from the solution space to compute the fitness. Thus, if the new parent improves the fitness, the new parent replaces the worst parent. Otherwise, the worst parent is not mutated. Also, a random parameter is changed to compute the fitness. If the new parameter enhances the fitness, the parameter is mutated. Otherwise, the parameter is not mutated. Thus, the (k + 1)-generation parents have been obtained. Based on these parents, the (k + 1)-generation children are computed via Equations (5)–(10), and the fitness is computed via Equations (14) and (15). Thus, the (k + 1)-generation population is achieved. The process to obtain the (k + 1)-generation population is iteratively performed until obtaining the parameters (xc, yc, η, A1, A2) that minimize Equations (14) and (15).
The laser line coordinates are obtained from the maximum intensity in x-axis [31]. To compute the maximum intensity, a Bezier curve is fitted from the laser line pixels on the x-axis by means of the following equations:
x ( u ) = i = 0 N C i ( 1 u ) N i u i x i , j ,       C i = C i 1 ( N + 1 i ) / i ,       C 0 = 1 , 0 u 1 .
I ( u ) = i = 0 N C i ( 1 u ) N i u i I i , j ,       C i = C i 1 ( N + 1 i ) / i ,       C 0 = 1 , 0 u 1 .
In Equation (16), xi,j indicates the laser line pixel position on the x-axis and N represents the number of laser line pixels; Ii,j depicts the pixel intensity in Equation (17). Additionally, the sub-indices (i, j) provide the laser line pixel number on the x-axis and y-axis, respectively. To perform the Bezier fitting, Ii,j is substituted in Equation (17) to obtain a concave curve I(u), whose second derivative I″(u) is positive in the interval 0 ≤ u ≤ 1. Thus, the maximum intensity is computed through the first derivative I′(u) = 0. In this case, the Bisection method computes the value u to find the derivative I′(u) = 0. Thus, u is replaced in Equation (16) to compute xi,j = x(u), which represents the laser line position on the x-axis. The position yi,j is obtained from the row number of the laser line image. The laser line edges yi,0 and yi,m are determined by computing the first derivative on the y-axis. To determine the laser line coordinates (xi,j, yi,j), the CCD camera captures the laser line, and Equations (16) and (17) are computed, respectively. Then, the surface depth zi,j is computed by replacing xi,j in Equation (12) and the surface width yi,j is computed by substituting yi,j in Equation (13). The surface length coordinate on the x-axis is provided by the slider device. Thus, the three-dimensional surface topography is recovered.
For this vision system, the laser line provides the reference position to determine the radial distortion. In this way, the laser line coordinates (xi,j, yi,j) are computed via Equations (16) and (17). Based on distorted (xi,j, yi,j) coordinates, the undistorted coordinates are defined by the following expressions: xi,j = xi,j + δxi and yi,j = yi,j + δyj, where (δxi, δyj) are the distortions in the x-direction and y-direction, respectively. Therefore, the expression Si,j = x1,j − xi,j represents a distorted line shifting and si,j = (x1,j + δx1) − (xi,j + δxi) provides an undistorted line shifting. In this way, δxi = (x1,j − xi,j) − si,j + δx1 = Si,jsi,j + δx1 computes the distortion in the x-axis. To obtain the first line shifting without distortion, the laser line is placed near to the image center to achieve δx1 = 0, and s1,j = S1,j. Thus, the expression si,j = i * S1,j provides the undistorted shifting, and the distortion in the x-axis is computed by the expression δxi = (x1,j − xi,j) − i * S1,j. The distortion in the y-axis is deduced from the expressions (yi,1 − yi,j) = (yi,1 + y1) − (yi,j + yj) and Ti,j = (yi,1 − yi,j). From these terms, the expression δyj = (yi,1 − yi,j) − j * Ti,1 is obtained to compute the distortion in the y-axis.

3. Last Lower-Surface Adjustment via Metaheuristic Algorithm

To perform the adjustment of the last lower-surface model, a Bezier surface model is constructed through the surface topography. The technique to perform adjustment of the last lower surface is carried out based on the graphical summary shown in Figure 4. This graphical summary indicates the steps of the methodology to compute the adjustment of the last lower surface. In this way, the last lower surface is scanned by the vision system shown in Figure 3a, to retrieve the surface contour. The last lower surface to be contoured is shown in Figure 5a. In this way, the laser line is projected on the last lower surface to compute the surface contour via image processing. To do so, the laser line position (xi,j, yi,j) is computed via Equations (16) and (17) during the scanning. Also, the coordinates (zi,j, yi,j) are determined by computing Equations (12) and (13), respectively, but the coordinate xi,j, is given by the slider device. In this case, 224 laser lines were processed to compute the last lower surface. Thus, the last lower-surface contour is recovered. The accuracy of the recovered surface is determined via relative error by means of the expression
E r r o r % = 100 n m i = 0 n j = 0 m z i , j H i , j H i , j
For this equation, zi,j is the surface computed by Equation (12) via laser line projection, Hi,j is the surface measured by a contact method, and n·m is the data number. In this case, the last lower surface was retrieved with a relative error of 0.4158% through the laser line projection. From this surface contour, the last lower-surface model is adjusted to a footprint topography. To do so, the contour of the last lower surface is modified according to footprint topography on the x-axis and y-axis. In this way, the footprint outside the last lower surface is determined by the expression Ey = ysyf, where yf is the contour of the footprint and ys is the contour of the last lower surface on the y-axis. Thus, the last lower contour is magnified based on the scale factor ε = (ys + Ey)/ys, where the last lower-surface coordinates (xi,j, yi,j) are re-computed by the expressions xi,j = εxi,j and yi,j = ε yi,j.
Then, a 5th-order Bezier surface model is built from the last lower surface. In this way, the surface is divided into 6 × 6 segments to construct the surfaces Sr,t(u,v) via 5th-order Bezier basis functions. Thus, the initial Bezier surface is generated by replacing the control point P5r+i,5t+j = z5r+i,5t+j in Equation (1), where the weights are W 5r+i,5t+j = 1. From this procedure, the initial Bezier surface is generated, and it is shown in Figure 5b, where the scale is in millimeters. Based on this initial Bezier surface, the last lower-surface model is adjusted to a footprint topography through the genetic algorithm. To do so, a footprint is scanned via laser line projection by means of the vision system shown in Figure 3a. In this procedure, the laser line position (xi,j, yi,j) is computed via Equations (16) and (17), and the coordinates (zi,j, yi,j) are computed via Equations (12) and Equation (13), respectively. The coordinate xi,j, is given by the slider device. Thus, the footprint topography shown in Figure 5c is obtained, where the scale is in millimeters. Then, the metaheuristic genetic algorithm optimizes the control points P5r+i,5t+j to perform the adjustment of the Bezier surface model to the footprint topography shown in Figure 5c. This procedure optimizes the weights W 5r+i,5t+j through the five steps described in Section 2.1. In this way, the first step generates the initial population based on the last lower surface and the footprint topography. To carry it out, the initial Bezier surface in Figure 5b is overlapped onto the footprint topography in Figure 5c. The result of this overlapping is shown in Figure 6a. Then, the last lower surface zi,j is moved toward the footprint topography. To do so, the expression z5r+i,5t+j = z5r+i,5t+jEr,t is computed by means of Er,t. Thus, if Er,t > 0, the surface z5r+i,5t+j is moved down. But, if Er,t < 0, the surface z5r+i,5t+j is moved up. Also, the border surface points (z5r+5, 5t+1, z5r+5, 5t+2, z5r+5, 5t+3, z5r+5, 5t+4) and (z5r+1,5t+5, z5r+2,5t+5, z5r+3,5t+5, z5r+4,5t+5) are determined by the expressions z5*r+5,j = (z5*r+3,j + z5*r+6,j)/2 and zi,5*t = (zi,5*t+4 + zi,5*t+6)/2 to obtain continuity G1. Then, the maximum and minimum of each weight are computed. To carry it out, the Bezier surface Sr,t(ui,j, vi,j) is computed from the moved surface points, where the weights W 5r+i,5t+j = 1 and the control points P5r+i,5t+j = z5r+i,5t+j are substituted in Equation (1). Thus, if the Bezier surface Sr,t(ui,j, vi,j) is over the surface z5r+i,5t+j, the maximum is equal to 1, and the minimum is given by the expression [z5r+i,5t+j − 3*abs(z5r+i,5t+jh5r+i,5t+j)]/z5r+i,5t+j. But, if the surface Sr,t(ui,j, vi,j) is under z5r+i,5t+j, the minimum is equal to 1 and the maximum is calculated by the expression z5r+i,5t+j + 3*abs(z5r+i,5t+jh5r+i,5t+j)]/z5r+i,5t+j. Thus, the search space has been deduced for each weight. Then, four values are randomly taken from the search space. These values are defined as the parents ( P 1,k, P 2,k, P 3,k, and P 4,k), which represent the initial population. Thus, the Bezier surface is moved toward the footprint topography by means of the mean error function and the initial population.
Next, the second step generates the current children by means of explorations and exploitations, where, the children ( C 1,k, C 2,k, C 4,k, C 4,k, C 5,k, and C 6,k) are computed via crossover by means of Equations (5)–(10). Then, the third step computes the fitness of parents and children via Equation (11) by employing Sr,t(ui,j, vi,j) and z5r+i,5t+j. Then, the fourth step chooses the (k + 1)-generation parents from the best current parents and children: P 1,k+1, is selected from (P1,k, P 2,k), P 3,k+1 is collected from ( P 3,k, P 4,k), P 2,k+1 is taken from ( C 1,k, C 2,k, C 3,k) and P 4,k+1 is chosen from ( C 4,k, C 5,k, C 6,k). The fifth step replaces the worst parent by a new parent to compute the fitness Equation (11). Thus, if the new parent improves the fitness, the worst parent is mutated. Otherwise, the mutation is not carried out. Also, a parent is randomly designated to mutate a weight, which is chosen in random form, where a new weight replaces the selected weight to calculate the fitness Equation (11). Thus, if the fitness is improved, the weight is mutated. Otherwise, the mutation is not carried out. Then, the second step generates the (k + 1)-generation children by computing Equations (5)–(10). Also, the fitness of the children is computed via Equation (11). The procedure to compute the (k + 1)-generation population is repeated until the objective function in Equation (11) is minimized for all Bezier surfaces Sr,t(ui,j, vi,j). Thus, the optimal weights are obtained to compute the control points P5r+i,5t+j = W 5r+i,5t+j (z5r+i,5t+j) for each Bezier surface. Also, the control points (P5r+5,5t+1, P5r+5,5t+2, P5r+5,5t+3, and P5r+5,5t+4) and (P5r+1,5t+5, P5r+2,5t+5, P5r+3,5t+5, and P5r+4,5t+5) are determined by the expressions P5*r+5,j = (P5*r+3,j + P5*r+6,j)/2 and Pi,5*t = (Pi,5*t+4 + Pi,5*t+6)/2 to obtain continuity G1. Thus, the Bezier surfaces S0,1(u,v), S1,0(u,v), …, SN,M(u,v) are determined to accomplish the Bezier surface model. Then, the absolute value of the mean error in Equation (4) between the Bezier surface and the footprint topography is computed for r = 0, 1, 2, 3, …, N and t = 1, 2, 3, …, M. Thus, if the absolute value of the mean error is greater than a tolerance, the procedure from step one to step five is repeated to modify the surface model. But, if the error is smaller than the tolerance, the metaheuristic algorithm has finished. By performing 32 modifications, the Bezier surface model has been adjusted. The adjusted last lower surface provided by the metaheuristic algorithm via the Bezier surface is shown in Figure 6b. For this surface model, the metaheuristic algorithm provides a running time of 116 generations to optimize the control points of the adjusted last lower-surface model. In this way, the adjusted last lower-surface model has been optimized through the metaheuristic algorithm. The efficiency of the metaheuristic algorithm is described based on the adjustment of the last lower surface shown to the footprint topography, where the expression z5r+i,5t+j = z5r+i,5t+jEr,t moves the Bezier surface model toward the footprint topography by means of means error Er,t. This procedure is accomplished by means of the initial population. Additionally, the metaheuristic algorithm structure provides an efficient procedure to optimize the adjusted Bezier surface model. For instance, the population is determined by means of the search space, which is deduced from the initial Bezier surface model of the last lower surface. This leads to obtaining the adjusted last lower-surface model in a moderated number of iterations. Moreover, the crossover is performed when the average fitness of the parents is improved. In this case, the result of the probability of crossover is in the interval from 0.19 to 0.54.
Also, the mutation is carried out when a new parent improves the fitness. In the same way, the mutation is performed when a new weight improves the fitness. In this case, the mutation probability is established in the interval from 0.22 to 0.56. Based on these statements, the genetic algorithm provides the crossover probability and mutation probability established for surface model optimization. The quality gap is determined by means of the relative error Equation (18), which is computed through the adjusted last lower surface Sr,t(ui,j, vi,j) and the footprint topography h5r+i,5t+j. In this case, the metaheuristic algorithm provides a relative error of 4.7%. This means a good adjustment of the last lower-surface model to the footprint topography.

4. Discussion

The viability of the metaheuristic algorithm is established based on the capability of the adjustment of the last lower-surface model toward the footprint topography [32]. Therefore, the contribution of the adjusted last lower-surface model via the metaheuristic algorithm is determined based on the good adjustment. This statement includes the surface model adjustment and the algorithm efficiency. In these matters, the proposed metaheuristic algorithm provides an accurate last lower-surface model, which fits to the footprint topography in an efficient form. The accuracy of the last lower-surface model adjustment is determined by means of the quality gap, which is calculated through the relative error Equation (18). In this way, the adjustment is achieved by moving the Bezier surface toward the footprint topography by means of the expression z5r+i,5t+j = z5r+i,5t+jEr,t. Thus, the metaheuristic algorithm adjusts the last lower-surface model to the footprint topography with a relative error of 4.7%. This relative error is computed via Equation (18), where the surface z5r+i,5t+j is replaced by Sr,t(ui,j, vi,j) and Hi,j is replaced by the footprint topography hi,j. On the other hand, the metaheuristic algorithm efficiency is evaluated by means of the algorithm structure and solution quality. The metheuristic algorithm provides a suitable structure to optimize the adjustment of the last lower-surface model. This is because the metaheuristc algorithm moves the last lower surface points toward the footprint topography to adjust the Bezier surface model. Also, the research space is generated from the target surface to obtain the optimal weights that produce the adjusted last lower surface. In this way, the metaheuristc algorithm provides the initial population and the mean error Er,t, which move the Bezier surface toward the footprint topography. Therefore, a good adjustment is achieved from the first generation onward. Thus, a moderated number of iterations achieve the optimization of the adjusted Bezier surface model. This procedure leads to providing a moderated running time. Thus, the metaheuristic algorithm improves adjustment of the last lower-surface model to the footprint topography of the traditional algorithms. It is because the traditional algorithms adjust the last surface model with a relative error over 7.20% [33,34]. This means that the surface modeling through the metaheuristic algorithm improves the adjustment of the last lower-surface model to the target footprint topography. Also, the laser line scanning provides accuracy for the surface model adjustment. It is because laser line projection provides a high accuracy to retrieve the last lower surface. Additionally, algorithms of artificial intelligence have been implemented by contact methods to perform the last lower-surface model [35]. These algorithms optimize the surface model parameters through the traditional search structure [36], where the research space is not obtained from the target surface. Instead, the proposed metaheuristic algorithm generates the research space from the last lower surface and the footprint topography. This procedure provides the initial weights to move the last lower surface near to the footprint topography. Therefore, the metaheuristic algorithm performs the optimization of the surface model by means of the surface data. This procedure leads to providing a low error from the first generation onward. In this way, the metaheuristic algorithm performs a moderated number of iterations to optimize the control points of the surface model. This is a difference in respect to the traditional algorithms, which generate the initial population in random form [37]. Furthermore, the proposed metaheuristic algorithm searches the optimal weights inside and outside parents via explorations and exploitations. This procedure avoids the elimination of the potential candidates, to find the best solution in an efficient form. The contribution of the proposed metaheuristic algorithm is established based on the traditional metaheuristic algorithms such as particle swarm, ant colony, simulated annealing, and fuzzy logic. To elucidate this comparison, the traditional metaheuristic algorithms for performing the last lower-surface modeling are examined. In this way, the quality gap, running time, and suitable structure of the metaheuristic algorithms are mentioned as follows. For instance, the particle swarm optimization performs the adjusted last lower-surface model with a quality gap of 10.32% of error and a running time of 257 generations. In this case, the adjusted surface model is carried out through the surface which is adjusted to the footprint topography. The ant colony optimization performs the adjusted last lower-surface model with a quality gap of 11.47% of error and a running time of 312 generations. The simulated annealing optimization achieves the adjusted last lower-surface model with a quality gap of 12.18% of error and a running time of 289 generations. The fuzzy logic optimization computes the adjusted last lower-surface model with a quality gap of 13.23% of error and a running time of 362 generations. In the same way, these adjusted surface models have been carried out through the adjusted surface. Additionally, the evolution of the error according to the number of the iterations of the metaheuristic algorithm is depicted in Figure 7. In this figure, the particle swarm, ant colony, simulated annealing, and fuzzy logic are included to corroborate the enhancement of accuracy and speed of the proposed metaheuristic algorithm. For instance, the accuracy improvement is achieved because the metaheuristic algorithm provides accurate control points from the search space to minimize the objective function Equation (11). It can be elucidated by the error of the metaheuristic algorithm shown in Figure 7, where the metaheuristic algorithm begins with a low error, and converges in a moderate number of iterations. Instead, the traditional algorithms begin with high error, and a great number of iterations are performed to achieve the convergence. This is due to the fact that the search space is not defined based on the target surface. On the other hand, the metaheuristic algorithm provides a good speed for achieving the convergence. This is because the proposed algorithm can produce greater changes through the mutation without any dependence on the current result. Instead, the traditional algorithms produce changes which depend on the current results [38]. Therefore, the advancement of the convergence is slow, and it produces a slow speed.
In the case of the algorithm structure, the proposed algorithm provides a suitable structure to achieve the optimization of the adjusted last lower-surface model. This is because the proposed algorithm provides a flexible selection of the potential candidates, and the operations are performed on the surface model. For instance, the proposed algorithm provides an initial population based on surface data, where the search space is deduced based on the last lower surface and the footprint topography. This leads to finding potential candidates to achieve the optimization from the first generations onward. On the other hand, the particle swarm optimization, ant colony, simulated annealing, and fuzzy logic generate the initial population in random form [39,40,41,42]. Therefore, a low number of potential candidates are tested in every generation. This is because the search space is not related to the target surface. Additionally, the traditional algorithms employ additional equations to perform the optimization. The particle swarm computes a position equation and a velocity equation, ant colony and simulated annealing compute a probability function, and fuzzy logic computes a linguistic function. On the other hand, the metaheuristic algorithm does not compute additional equations. This leads to reduce operations in the iterations. Moreover, the traditional algorithms compute the next population to be tested based on the current results [43]. Therefore, the next result depends on the current result, and the convergence becomes slow. This kind of procedure provides a rigid structure. Instead of this, the proposed metaheuristic can mutate one parent or one weight to produce bigger and smaller changes without any dependence. This leads to achieving a flexible procedure for testing a potential candidate through exploration and exploitation. Additionally, the proposed algorithm structure is compared with the particle swarm structure, which is more useful in surface model optimization. For instance, the particle swarm generates the population of each generation by the term Vi(t + 1) = wVi(t) + αR1[Pbg(t) − Pi(t)] + βR2[Pbi(t) − Pi(t)], where w is the inertia weight, Pi(t + 1) = Pi(t) + Vi(t), t is the number of iterations, and (α, β) represent the learning factors [44]. However, R1 and R2 are selected in random form in the interval from 0 to 1. In this way, the particle swarm optimization computes five parameters to generate the population in each k-generation. However, these additional parameters are not related to the last lower-surface topography. Instead, the metaheuristic algorithm generates the population of each k-generation from the last lower surface by means of the parameters β and α. In this way, the metaheuristic algorithm provides a more suitable optimization structure than the particle swarm. Moreover, the metaheuristic algorithm provides a more efficient structure than the ant colony optimization and simulated annealing optimization [45,46]. This is because these optimization methods compute more variables than the proposed metaheuristic algorithm. Thus, the suitable optimization structure of the metaheuristic algorithm is elucidated by the result of the adjusted last lower surface, which is shown in Figure 6b. The efficiency of the metaheuristic algorithm is achieved by means of the good adjustment of the last lower surface to the footprint topography, where the Bezier surface model is adjusted to generate a surface that fits the footprint topography. Additionally, the efficiency is elucidated by means of the parameters of the metaheuristic algorithm, where the search space enables the population to construct a surface model near to the optimal surface. This procedure leads to reducing the number of iterations to construct the adjusted last lower-surface model. From these statements, the contribution of the adjustment of last lower-surface model via the metaheuristic algorithm and laser lane projection has been corroborated.
Moreover, the simple setup enlarges the potentiality of the metaheuristic algorithm to perform the adjustment of the surface model. This is because the arrangement is constructed by simple components such as laser diode, CCD camera, slider device and a computer. The computer employed to perform the adjusted last lower surface is a PC with 2.4 GHz of velocity. The frame rate of the camera is 64 fps. The slider device moves the vision system via control software. Each micro laser line image is processed in 0.0062 sec to retrieve the last lower surface. The adjusted last lower-surface model is accomplished in 268.21 s. Thus, the adjustment of the last lower-surface model to the footprint is performed in a good way.

5. Conclusions

A technique to adjust the last lower-surface model to the footprint topography by means of the metaheuristic algorithm has been presented. The metaheuristic algorithm optimization improves the adjustment of the last lower surface by means of the Bezier surface model. This is because the adjusted last lower-surface model is computed by means of the control points, which are deduced from the last lower surface and the footprint topography. This contribution is elucidated through the adjustment accuracy and efficiency to optimize the adjusted last lower-surface model. The enhancement of the adjustment accuracy is achieved by means of the algorithm structure, which moves the last lower surface toward the footprint topography. These statements are corroborated by the results achieved in the adjustment of the last lower-surface model. This includes adjustment accuracy, running time and efficiency. Also, the enhancement of the surface model adjustment is achieved by means of the laser line scanning, which retrieves accurately the footprint topography. Thus, the last lower-surface model is adjusted based on accurate footprint topography. Moreover, the metaheuristic algorithm efficiency is corroborated through the structure, which moves the last lower surface toward the footprint topography. Thus, the metaheuristic algorithm optimization provides a valuable tool to perform the adjusted last lower-surface model in the field of last manufacturing. In this way, the metaheuristic algorithm optimization via the Bezier surface model and laser line scanning has been performed to adjust the last lower-surface model in a good way.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Wlodarczyk-Sielicka, M.; Lubczonek, J. The use of an artificial neural network to process hydrographic big data during surface modeling. Computers 2019, 8, 26. [Google Scholar] [CrossRef]
  2. Wrześniowska, K. Shoe last customization: A systematic review. Int. J. Eng. Technol. Innov. 2023, 13, 230–250. [Google Scholar] [CrossRef]
  3. Wang, L.; Jones, D.; Chapman, G.J.; Siddle, H.J.; Russell, D.A.; Alazmani, A.; Culmer, P. Design of a digital triaxial force sensor for plantar load measurements. IEEE Sens. 2019, 2019, 1–4. [Google Scholar]
  4. Cong, Y.; Lee, W.; Zhang, M. Regional plantar foot pressure distributions on high-heeled shoes-shank curve effects. Acta Mech. Sin. 2011, 27, 1091–1097. [Google Scholar] [CrossRef]
  5. Marconi, M.; Manieri, S.; Germani, M.; Raffaeli, R. A Digitally-enabled integrated approach to design and manufacture shoe lasts. Comput.-Aided Des. Appl. 2019, 16, 593–610. [Google Scholar] [CrossRef]
  6. Wang, C.C.; Yang, C.H.; Wang, C.S.; Xu, D.; Huang, B.S. Artificial neural networks in the selection of shoe lasts for people with mild diabetes. Med. Eng. Phys. 2019, 64, 37–45. [Google Scholar] [CrossRef]
  7. Zhang, G.; Zhong, M.; Shi, Y.; Wang, W.; Wang, Y.; Wang, X. Parametric pattern marking of shoe last bottom based on AutoCAD for mass customization. Am. J. Softw. Eng. Appl. 2022, 11, 12–21. [Google Scholar]
  8. Anggoro, P.W.; Bawono, B.; Jamari, J.; Tauviqirrahman, M.; Bayuseno, A.P. Advanced design and manufacturing of custom orthotics insoles based on hybrid Taguchi-response surface method. Heliyon 2021, 7, e06481. [Google Scholar] [CrossRef]
  9. Tao, H.; Tianshe, S.; Kai, S. Accuracy and comfort analysis of digital shoe design. Int. J. Multimed. Ubiquitous Eng. 2018, 13, 13–20. [Google Scholar]
  10. Song, Y.; Hoeksema, J.; Ramkumar, A.; Molenbroek, J.F.M. A landmark-based 3D parametric foot model for footwear customization. Int. J. Digit. Hum. 2018, 2, 115–128. [Google Scholar] [CrossRef]
  11. Luximon, A.; Jiang, L.; Luximon, Y. Sizing and grading methods with consideration of footwear styles. Int. J. Ind. Ergon. 2020, 78, 102960. [Google Scholar] [CrossRef]
  12. Abhishektha, B.; Anderson, A.P. Dynamic foot morphology explained through 4D scanning and shape modeling. J. Biomech. 2021, 122, 110465. [Google Scholar]
  13. Serrato-Pedrosa, J.A.; Urriolagoitia-Sosa, G.; Romero-Ángeles, B.; Urriolagoitia-Calderón, G.M.; Cruz-López, S.; Urriolagoitia-Luna, A.; Carbajal-López, D.E.; Guereca-Ibarra, J.R.; Murillo-Aleman, G. Biomechanical evaluation of plantar pressure distribution towards a customized 3D orthotic device: A methodological case study through a finite element analysis approach. Appl. Sci. 2024, 14, 1650. [Google Scholar] [CrossRef]
  14. Luximon, A.; Goonetilleke, R.S.; Tsui, K.L. Foot landmarking for footwear customization. Ergonomics 2003, 46, 364–383. [Google Scholar] [CrossRef] [PubMed]
  15. Tian, X.; Kong, L.; Kong, D.; Yuan, L.; Kong, D. An improved method for NURBS surface based on Particle swarm optimization BP neural network. IEEE Access 2020, 8, 184656–184663. [Google Scholar] [CrossRef]
  16. Saini, D.; Kumar, S.; Singh, M.K.; Ali, M. Two view NURBS reconstruction based on GACO model. Complex Intell. Syst. 2021, 7, 2329–2346. [Google Scholar] [CrossRef]
  17. Shah, G.A.; Polette, A.; Pernot, J.P.; Giannini, F.; Monti, M. Simulated annealing-based fitting of CAD models to point clouds of mechanical parts’ assemblies. Eng. Comput. 2020, 37, 2891–2909. [Google Scholar] [CrossRef]
  18. Pathak, V.K.; Nayak, C.; Singh, R.; Dikshit, M.K.; Sai, T. Optimizing parameters in surface reconstruction of transtibial prosthetic socket using central composite design coupled with fuzzy logic-based model. Neural Comput. Appl. 2020, 32, 15597–15613. [Google Scholar] [CrossRef]
  19. Bondar, O.; Chertenko, L.; Spahiu, T.; Shehi, E. Shoe customization in a mass-production mode. J. Eng. Fibers Fabr. 2024, 19, 15589250241239247. [Google Scholar] [CrossRef]
  20. Di Roma, A. Footwear Design. The paradox of tailored shoe in the contemporary digital manufacturing systems. Des. J. 2017, 20, S2689–S2699. [Google Scholar] [CrossRef]
  21. Xie, J.; Zhou, Z.; Luo, T.; Pang, H.; Meng, X.; Zhou, F. Study on design and additive manufacturing of customized bionic sports sole for the elderly. IEEE Access 2021, 9, 69830–69838. [Google Scholar] [CrossRef]
  22. Somitca, I.A.; Brad, S.; Florian, V.; Deaconu, S.E. Improving path accuracy of mobile robots in uncertain environments by adapted Bezier curves. Electronics 2022, 11, 3568. [Google Scholar] [CrossRef]
  23. Tong, Z.; Yang, J.; Liu, Y.; Zhang, Z.; Liu, S.; Lu, Y.; Pang, B.; An, R. Cooling and optimizing urban heat island based on a thermal knowledge-informed multi-type ant colony model. Remote Sens. Environ. 2024, 306, 114138. [Google Scholar] [CrossRef]
  24. Wu, Z.; Zhao, T.; He, C.; Liao, H.; Li, Y. Experimental and numerical optimization of variable stiffness tensile coupons with a hole for maximum stiffness. Compos. Struct. 2024, 327, 117643. [Google Scholar] [CrossRef]
  25. Díaz-Cortés, M.A.; Cuevas, E.; Gálvez, J.; Camarena, O. A new metaheuristic optimization methodology based on fuzzy logic. Appl. Soft Comput. 2017, 61, 549–569. [Google Scholar] [CrossRef]
  26. Yang, F.; Yu, T.; Bui, T.Q. Morphogenesis of free-form surfaces by an effective approach based on isogeometric analysis and particle swarm optimization. Structures 2023, 47, 2347–2353. [Google Scholar] [CrossRef]
  27. Cai, Z.; Chen, T.; Zeng, C.; Guo, X.; Lian, H.; Zheng, Y.; Wei, X. A global approach to the optimal trajectory based on an improved ant colony algorithm for cold spray. J. Therm. Spray Technol. 2016, 25, 1631–1637. [Google Scholar] [CrossRef]
  28. Ueda, E.K.; Sato, A.K.; Martins, T.C.; Takimoto, R.Y.; Russo, R.S.U., Jr.; Tsuzuki, M.S.G. Curve approximation by adaptive neighborhood simulated annealing and piecewise Bézier curves. Soft Comput. 2020, 24, 18821–18839. [Google Scholar] [CrossRef]
  29. Bidin, M.S.; Wahab, A.F.; Zulkifly, M.I.E.; Zakaria, R. Generalized fuzzy linguistic bicubic B-spline surface model for uncertain fuzzy linguistic data. Symmetry 2022, 14, 2267. [Google Scholar] [CrossRef]
  30. Tan, K.C.; Chiam, S.C.; Mamun, A.A.; Goh, C.K. Balancing exploration and exploitation with adaptive variation for evolutionary multi–objective optimization. Eur. J. Oper. Res. 2009, 197, 701–713. [Google Scholar] [CrossRef]
  31. Muñoz-Rodríguez, J.A.; Rodríguez-Vera, R. Evaluation of the light line displacement location for object shape detection. J. Mod. Opt. 2003, 50, 137–154. [Google Scholar] [CrossRef]
  32. Mishra, M.K.; Abtew, M.A.; Bruniaux, P. Customization of shoe last based on 3D design process with adjustable 3D ease allowance for better comfort and design. Int. J. Adv. Manuf. Technol. 2022, 123, 3131–3146. [Google Scholar] [CrossRef]
  33. Chertenko, L.; Booth, B.G. Modelling shape and parameterising style: An approach to the design of high-fashion shoe lasts. Footwear Sci. 2022, 14, 199–218. [Google Scholar] [CrossRef]
  34. Chertenko, L.; Spahiu, T.; Lypskyi, T.; Almeida, H.; Bondar, O. Developing lasts with removable toe parts for customized footwear. Commun. Dev. Assem. Text. Prod. 2023, 3, 28–41. [Google Scholar] [CrossRef]
  35. Wang, D.; Li, Z.; Dey, N.; Misra, B.; Sherratt, R.S.; Shi, F. Curvature generation based on weight-updated boosting using shoe last point-cloud measurements. Heliyon 2024, 10, e26498. [Google Scholar] [CrossRef] [PubMed]
  36. Wang, D.; Li, Z.; Dey, N.; González Crespo, R.; Shi, F.; Sherratt, R.S. Design element extraction of plantar pressure imaging employing meta-learning-based graphic convolutional neural networks. Appl. Soft Comput. 2024, 158, 11159. [Google Scholar] [CrossRef]
  37. Aparecida de Melo, S.; Dutra Pereira, R.B.; Fortes da Silva Reis, A.; Lauro, C.H.; Cardoso Brandão, L. Multi-objective evolutionary optimization of unsupervised latent variables of turning process. Appl. Soft Comput. 2022, 120, 108713. [Google Scholar] [CrossRef]
  38. Luh, G.C.; Lin, C.Y. Structural topology optimization using ant colony optimization algorithm. Appl. Soft Comput. 2009, 9, 1343–1353. [Google Scholar] [CrossRef]
  39. Kuo, H.F.; Frederick. Ant colony optimization-based freeform sources for enhancing nanolithographic imaging performance. IEEE Trans. Nanotechnol. 2016, 15, 599–606. [Google Scholar] [CrossRef]
  40. Fister, I.; Perc, M.; Ljubič, K.; Kamal, S.M.; Iglesias, A. Particle swarm optimization for automatic creation of complex graphic characters. Chaos Solitons Fractals 2015, 73, 29–35. [Google Scholar] [CrossRef]
  41. Han, G.L. Automatic parking path planning based on ant colony optimization and the grid method. J. Sens. 2021, 2021, 8592558. [Google Scholar] [CrossRef]
  42. Ferrer-Fuenmayor, S.; Villalba Morales, J.D. Shape optimization of slotted steel plate dampers using the simulated annealing algorithm. J. Appl. Comput. Mech. 2023, 9, 870–883. [Google Scholar]
  43. Boesack, C.D.; Marwala, T.; Nelwamondo, F.V. On the application of Bezier surfaces for GA-Fuzzy controller design for use in automatic generation control. Energy Procedia 2012, 14, 457–463. [Google Scholar] [CrossRef]
  44. Alam, M.; Kwok, T.H. Multidisciplinary optimization of shoe midsole structures using swarm intelligence. Struct. Multidiscip. Optim. 2024, 67, 134. [Google Scholar] [CrossRef]
  45. Chen, Y.; Tan, B. Free-form surface inspection path planning using improved ant colony optimization algorithm. Eng. Res. Express 2022, 4, 035039. [Google Scholar] [CrossRef]
  46. Yang, Y.; Dong, Z.; Meng, Y.; Shao, C. Data-driven intelligent 3D surface measurement in smart Manufacturing: Review and Outlook. Machines 2021, 9, 13. [Google Scholar] [CrossRef]
Figure 1. Surface points to construct a 5th-order Bezier surface model.
Figure 1. Surface points to construct a 5th-order Bezier surface model.
Biomimetics 09 00699 g001
Figure 2. (a) Surface points to construct a Bezier surface. (b) Flowchart to perform metaheuristic algorithm for optimization of the control points of the Bezier surface model. (c) Bezier surface generated via control points optimized via metaheuristic algorithm.
Figure 2. (a) Surface points to construct a Bezier surface. (b) Flowchart to perform metaheuristic algorithm for optimization of the control points of the Bezier surface model. (c) Bezier surface generated via control points optimized via metaheuristic algorithm.
Biomimetics 09 00699 g002
Figure 3. (a) Vision system to retrieve the last lower surface via laser line projection. (b) Vision system geometry to determine surface topography via laser line scanning.
Figure 3. (a) Vision system to retrieve the last lower surface via laser line projection. (b) Vision system geometry to determine surface topography via laser line scanning.
Biomimetics 09 00699 g003
Figure 4. Graphical summary of the methodology to perform the adjusted last lower surface.
Figure 4. Graphical summary of the methodology to perform the adjusted last lower surface.
Biomimetics 09 00699 g004
Figure 5. (a) Last lower surface to perform the adjusted Bezier surface model. (b) Surface generated by the initial Bezier surface model to perform the adjusted last lower surface. (c) Footprint topography recovered via laser line scanning.
Figure 5. (a) Last lower surface to perform the adjusted Bezier surface model. (b) Surface generated by the initial Bezier surface model to perform the adjusted last lower surface. (c) Footprint topography recovered via laser line scanning.
Biomimetics 09 00699 g005
Figure 6. (a) Initial last lower surface overlapped on the footprint topography. (b) Adjustment of the last lower-surface model to the footprint topography.
Figure 6. (a) Initial last lower surface overlapped on the footprint topography. (b) Adjustment of the last lower-surface model to the footprint topography.
Biomimetics 09 00699 g006
Figure 7. Evolution of the accuracy of the metaheuristic algorithm according to the number of iterations.
Figure 7. Evolution of the accuracy of the metaheuristic algorithm according to the number of iterations.
Biomimetics 09 00699 g007
Table 1. Surface control points generated via metaheuristic algorithm for the first generation.
Table 1. Surface control points generated via metaheuristic algorithm for the first generation.
Pi,j P 1,1 P 2,1 P 3,1 P 4,1 C 1,1 C 2,1 C 3,1 C 4,1 C 5,1 C 6,1
P1,127.663127.694227.801227.394127.686027.671227.315027.694327.501027.7320
P1,227.262627.057628.104727.279327.208727.111427.027727.888127.496027.7907
P1,326.555427.179228.374128.289627.015426.719126.541028.351928.311828.4720
P1,426.482026.838128.411828.024026.744626.575426.285928.310028.125828.5242
P2,127.530827.751326.989126.682327.693527.588727.083526.908626.762827.6064
P2,227.384427.360127.591326.856027.378027.366426.912627.398327.049027.8097
P2,328.358327.362827.564227.700928.097027.624127.210627.665027.600128.2015
P2,427.644527.272528.838026.673327.546927.370226.619828.269827.241527.9831
P3,127.472826.684126.395826.537327.265826.891126.764826.500226.433027.6988
P3,227.761426.022328.305728.212827.304926.478826.824828.281328.237228.4999
P3,327.694227.917927.346428.012127.859227.752926.636827.837327.521128.5025
P3,427.191729.336029.076627.549528.773227.754526.133828.675727.950328.5235
P4,126.664425.458128.478825.788626.347825.774825.937227.772726.494727.3046
P4,226.760425.523027.931225.883226.435625.847825.969327.393626.420727.2654
P4,327.241128.558328.030526.189428.212627.586926.080127.547326.672727.4968
P4,428.280725.060824.553027.165127.435525.905926.321126.479525.238628.3272
fitness1.65171.65461.86631.72201.68231.62401.53011.83331.75421.8857
Table 2. Surface control points generated via metaheuristic algorithm for the second generation.
Table 2. Surface control points generated via metaheuristic algorithm for the second generation.
P i,j P 1,1 P 2,2 P 3,2 P 4,2 C 1,2 C 2,2 C 3,2 C 4,2 C 5,2 C 6,2
P1,127.663127.315027.394127.458227.571727.406427.115127.441427.411027.762426.7601
P1,227.262627.027727.279327.870827.200927.089326.921727.715627.434628.071626.4022
P1,326.555426.541028.289627.230526.551626.544826.311028.011627.508527.968926.1003
P1,426.482026.285928.024026.147626.430526.337426.175927.531526.640127.632825.6511
P2,127.530827.083526.682328.072627.413427.200926.835227.707727.047228.266826.4028
P2,227.384426.912626.856027.633327.260527.036526.712627.429327.060028.178926.1635
P2,328.358327.210627.700927.815128.057027.511826.710627.785127.730928.255725.8065
P2,427.644526.619826.673325.918627.375526.888826.319826.475226.116727.624625.2117
P3,127.472826.764826.537327.194227.287026.950726.564827.021826.709728.010925.8140
P3,227.761426.824828.212827.918827.515527.070626.621828.135727.996028.360225.5962
P3,327.694226.636828.012127.362927.416626.914326.031827.841727.533328.194125.3564
P3,427.191726.133827.549527.934826.914026.411525.913327.833627.650628.706524.6168
P4,126.664425.937225.788626.585026.473526.128125.737126.375925.997727.682924.8471
P4,226.760425.969325.883226.706526.552826.177025.861326.490426.099327.656524.7543
P4,327.241126.080126.189427.174826.936426.384925.880126.916226.448127.964924.6025
P4,428.280726.321127.165124.580927.766326.835426.222126.486825.259227.099623.8512
fitness1.65171.53011.72201.64981.61941.56161.00851.73881.62991.84900.000461
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

Rodríguez, J.A.M. Metaheuristic Algorithm and Laser Projection for Adjusting the Model of the Last Lower Surface to a Footprint. Biomimetics 2024, 9, 699. https://doi.org/10.3390/biomimetics9110699

AMA Style

Rodríguez JAM. Metaheuristic Algorithm and Laser Projection for Adjusting the Model of the Last Lower Surface to a Footprint. Biomimetics. 2024; 9(11):699. https://doi.org/10.3390/biomimetics9110699

Chicago/Turabian Style

Rodríguez, J. Apolinar Muñoz. 2024. "Metaheuristic Algorithm and Laser Projection for Adjusting the Model of the Last Lower Surface to a Footprint" Biomimetics 9, no. 11: 699. https://doi.org/10.3390/biomimetics9110699

APA Style

Rodríguez, J. A. M. (2024). Metaheuristic Algorithm and Laser Projection for Adjusting the Model of the Last Lower Surface to a Footprint. Biomimetics, 9(11), 699. https://doi.org/10.3390/biomimetics9110699

Article Metrics

Back to TopTop