Next Article in Journal
Road Obstacle Detection Method Based on Improved YOLOv5
Previous Article in Journal
Deep Learning-Based Step Size Determination for Hill Climbing Metaheuristics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Directional Mutation Moth–Flame Optimization Algorithm via Gene Modification for Automatic Reverse Parking Trajectory Optimization

1
School of Mechanical and Electrical Engineering, Chizhou University, Chizhou 247000, China
2
Information and Communication Section, Chizhou Public Security Bureau, Chizhou 247000, China
3
School of Electrical Engineering, Dalian Jiaotong University, Dalian 116026, China
4
School of Mechanical Engineering, Inner Mongolia University for the Nationalities, Tongliao 028000, China
*
Author to whom correspondence should be addressed.
Algorithms 2025, 18(6), 299; https://doi.org/10.3390/a18060299
Submission received: 20 February 2025 / Revised: 28 April 2025 / Accepted: 8 May 2025 / Published: 22 May 2025

Abstract

:
Automatic reverse parking (ARP) faces challenges in finding ideal reference trajectories that avoid collisions, maintain smoothness, and minimize path length. To address this, we propose an improved directional mutation moth–flame optimization algorithm with gene modification (IDMMFO-GM). We develop a practical reference trajectory optimization model by combining cubic spline interpolation with a standardized parking plane coordinate system. To effectively address the infeasible solutions encountered when parking in a garage, we apply gene modification for collision avoidance and berthing tilt generated from the reference trajectory optimization to enhance the preservation of optimization information. Furthermore, we introduce a non-linear decreasing weight coefficient and a directional mutation strategy into the moth–flame optimization algorithm to significantly improve its overall optimization performance. Taking the automatic parking garage space No. 155 in Dalian Shell Museum as the actual vehicle test object, which is situated within Dalian Xinghai Square, test results demonstrate that the proposed algorithm achieves an accelerated optimization speed, enhanced precision in trajectory optimization, and superior tracking control performance.

Graphical Abstract

1. Introduction

With rapid advancements in automotive intelligence, vehicles now provide functionalities beyond basic transportation, driving increased user expectations for safety, convenience, and comfort. As a crucial component of intelligent vehicles, automatic reverse parking (ARP) has garnered extensive attention from both academic and industrial sectors. The effectiveness of ARP systems primarily depends on the accuracy of parking reference trajectory planning and the system’s ability to track and control this trajectory [1]. To meet users’ parking requirements, it is imperative during the ARP process to ensure that the vehicle does not come into contact with obstacles, while striving for a parking trajectory that is as short and smooth as possible [2].
A successful ARP operation entails the completion of three critical steps: assessing the feasibility constraints of parking (including detection of available garages), optimizing the acquisition of reference trajectory for parking (trajectory optimization), and executing vehicle tracking control to follow the reference parking trajectory into the designated region (trajectory tracking) [3]. In recent years, scholars in the relevant field have achieved a series of significant research outcomes concerning the issue of ARP. For the detection of available parking garages, a parking garage identifying method based on deep learning was introduced in [4]. This approach utilized the Faster R-CNN model, known for its faster training and testing speeds, thus satisfying real-time detection requirements. However, this method could not detect obstacles inside parking garages. A parking detection method based on vehicle occurrence frequency was introduced in [5].
For automatic parking technology, there is significant focus on the parking detection and tracking control technologies that influence the success rate of parking. However, with an increase in vehicle intelligence, people have higher requirements for the quality of automatic parking trajectory, including collision avoidance, smoothness, and sufficiently short path length. Hence, parking trajectory has garnered increasing attention and has become progressively more mature.
In the field of parking trajectory optimization, various methodologies including geometric programming methods, sampling-based approaches, search algorithms, and numerical optimization techniques have been systematically implemented. A parallel parking path planning framework was developed through three-phase curve interpolation, where cyclotron curves, circular arcs, and quintic polynomial curves were integrated to satisfy narrow spatial constraints in [6]. The computational efficiency limitations, curvature discontinuity issues, and strict initiating position requirements in automatic parking systems were comprehensively addressed through an enhanced RRT* algorithm with non-linear optimization techniques in [7]. Furthermore, critical challenges in path planning security and search effectiveness for unmanned parking systems were resolved by a safety-enhanced and efficiency-enhanced hybrid A* algorithm design in [8]. An optimization scheme for the parallel parking trajectory in automatic parking systems, utilizing the Gaussian collocation pseudospectral method subject to phase constraints, was introduced in [9]. An optimized parking trajectory planning approach grounded in mirror parking objectives was proposed to resolve challenges including low parking success rates, time-consuming operations, and undefined operational design domains (ODDs) in automatic parking systems for confined garages [10]. Substantial research efforts have been dedicated in the aforementioned studies to parking trajectory optimization methodologies, with their systematic classification and comparative analysis comprehensively summarized in Table 1.
To address the issue of potential unnecessary shifting behavior caused by the decoupling of path and speed from the hybrid A* algorithm, a parking trajectory tracking control method coupled with non-linear model predictive control (NMPC) was developed in [11]. A parking trajectory tracking controller utilizing non-linear model predictive control, which takes into account vehicle dynamics constraints, was introduced in [12].
Geometric programming methods, hp-pseudospectral methods, gradient descent methods, and dynamic optimization approaches [13,14,15,16] are limited by poor flexibility, challenges in programming implementation, and a heavy dependence on constraint restrictions. However, these approaches exhibit evident limitations, including poor flexibility, difficulty in programming implementation, and an over-reliance on constraints. To generate a smooth, collision-avoidance parking trajectory for four-wheel steering vehicles, the integration of cubic splines with solving of the optimal control problem was presented in [17]. To generate a smooth, constraint-satisfying parking trajectory for vehicles in confined parking scenes, the integration of B-spline curves and the gradient descent algorithm was employed to achieve continuous curvature variation and adherence to the vehicle’s minimum turning radius [18]. Given the high utilization rate of vertical parking garages, the design of a parking garage mostly adopts vertical parking space, and generally utilizes the way of reversing into the vertical parking space. Combining cubic spline interpolation with the intelligent optimization algorithm (IOA), a high-quality algorithm for optimizing automatic parking trajectories can be developed. To address the challenge of automatic parking in vertical parking garage environments, an immune moth–flame optimization algorithm for generating parking trajectories using cubic spline was introduced in [19]. However, it did not address the handling of infeasible solutions during the parking process, which consequently impacted the overall optimization effectiveness of the parking trajectory.
An improved directional mutation moth–flame optimization algorithm via gene modification (IDMMFO-GM) is proposed in this study. Based on the parking experience and cubic spline interpolation, this study develops a reference trajectory optimization model according to the framework of a standardized parking plane coordinate system. On this basis, this study not only introduces a gene modification method to effectively address infeasible solutions but also proposes an enhanced moth–flame optimization algorithm that incorporates the non-linear decreasing weight coefficient and directional mutation strategy, to significantly enhance the trajectory optimization performance for garage parking.
The organization in this study is as follows: Section 1 provides the introduction. Section 2 proposes a reference trajectory optimization model for ARP according to cubic spline theory. Section 3 details the gene modification mechanism. Section 4 shows the description of the IDMMFO-GM design. Section 5 presents the test validation of ARP using an actual vehicle. Section 6 concludes this study.

2. Optimization Model for Reference Trajectory in ARP

2.1. Fundamental Principles of ARP

The parking behavior of automatically maneuvering vehicles that meets the parking eligibility criteria from the initiating region to the designated parking area is termed as ARP. Figure 1 illustrates the technical framework for this study.
In the form of ARP, the vehicle that meets the parking conditions in the garage is parked from the initiating region to the permitted parking region. The specific principal schematic principal diagram of ARP is as follows in Figure 2.
In Figure 2, we assume that during the ARP process, the region by vehicle body coverage is systematically collected in a sequential order n s times, which is recorded as the set of fixed-point regions ( A 1 , , A i s , , A n s ) . Obviously, A 1 should be the initiating region, A n s should be the parking region, and P 1 , P i s , and P n s are the center points of the fixed-point region, respectively. L b is the line of garage bottom, L n e and L f e are the near and far boundary lines of the parking garage, respectively, and P n t , P f t , P n b , and P f b are the near corner and far corner of the garage top, near corner and far corner of the garage bottom, respectively. T R represents the reference trajectory for parking, while T C denotes the actual trajectory achieved through tracking control [19].

2.2. Feasibility Constraints Judgment for ARP

ARP is usually required to meet the following conditions: the location of the parking garage must be known, the boundary lines and corner points of the garage should be distinctly discernible, and there are no obstacles inside the parking garage [20]. In addition, it is necessary to meet the feasibility constraints of the parking garage: the central point P 1 of the parking initiating region should be in the permitted parking region Ω C , 1 . The line segment connecting the central point P 1 and the bottom midpoint P b 1 of the initiating region is L b , and the angle between the line L b and the line L d of the garage bottom is defined as the initiating tilt angle Δ B , with its absolute value being less than the threshold value Δ B max . The constraint equation that determines the feasibility of initiating the parking process in the garage is outlined as follows:
P 1 Ω C , 1 B = T P 1 , P b 1 , L d < Δ B max
According to the initiating feasibility limitations of the parking garage shown in Formula (1), the initiating tilt angle should be small enough.

2.3. Principles of ARP Coordinate System Conversion

During the automatic parking process, the raw sensor data and system calculations need to be effectively connected through coordinate system alignment. Although the real-world coordinate system constructed from sensor data contains complete parking scene information, it suffers from baseline shift due to differences in sensor installation posture and distortion effects. Therefore, it needs to be converted into a unified standardized coordinate system: Taking the far corner of the parking space as the coordinate origin, extending the x-axis along the bottom line of the parking space, and determining the y-axis through the right-hand rule. This standardized system eliminates sensor deviations through the following three steps (scene extraction, coordinate system rotation, and origin translation), not only establishing a unified spatial reference for multi-source data but also significantly improving the computational efficiency of parking trajectory planning and tracking control. Additionally, it provides a coordinate reference that aligns with human spatial cognition for the visualization interface.
In the standardized Cartesian coordinate system for inbound parking planes, the coordinates of a point are determined to be x s , y s . It is straightforward to derive the angle B = arcsin y s x s 2 + y s 2 between this point and the x-axis.
x r = x s 2 + y s 2 · cos B A + x f y r = x s 2 + y s 2 · sin B A + y f
To further obtain the coordinates x r , y r of this point in the real-world coordinate system, the real-world projection rotation angle A detected by the sensor system and the coordinates x r , y r of the far corner point of the garage bottom in the real-world coordinate system can be substituted in the above reverse-engineer equation.
The real-world coordinates x r , y r of this point can be obtained from the above reverse-engineer equation. To further obtain the conversion formula from x r , y r to x s , y s , the real-world projection rotation angle A detected by the sensor system and the coordinates x f , y f of the far corner point of the garage bottom in the real-world coordinate system can be substituted in the above reverse-engineer equation.

2.4. Optimization Model for Generating the Reference Trajectory in ARP

The parking process cycle is denoted as Δ t , and the detailed optimization model for generating the reference trajectory in ARP is presented below:
min L T R = 0 T max v ( t ) d t i t = 1 n t Δ L i t
S . T . Δ L i t Δ L max Δ i t Δ max P i s Ω C , i s P g ( i g ) Ω c , i t P g ( i g ) Ω g Δ y n s = y P n s y H Δ y H max
where, Ω g is the coverage region of both boundary lines of the garage, and P g is the set of the boundary line collision-avoidance detection location points. P g ( i g ) is the i g -th boundary line collision-avoidance detection location point, i g 1 , 2 , , n g , n g is the number of detection location points, obviously P g ( i g ) Ω g . Δ L i t , Δ i t , and Ω c , i t are the parking interval distance, attitude angle difference, and region by vehicle body coverage in the i t -th cycle. Δ L max represents the threshold for parking interval distance, and Δ max is the threshold for the difference in attitude angle. T max represents the duration of parking, while n t denotes the total number of cycles, n t = T max Δ t , i t 1 , 2 , , n t , and is the carry up integer operator. During parking maneuvers, all collision detection points must stay outside the vehicle’s coverage area to avoid garage boundary collisions. That is, P g ( i ) Ω c , i t . Point P i s represents the central location of the i s -th fixed-point region, i s 2 , , n s , while region Ω C , i s denotes its corresponding adjustable region, and so P i s Ω C , i s . The variable Δ y n s signifies the error in parking position, Δ y H max indicates the threshold for the absolute value of this error, and Δ y H max corresponds to the ordinate value of the anticipated parking position. Trajectory T R serves as the reference path for parking, with its length L T R being key indicators that substantially influence the quality of parking optimization [21].
Consider an interval Δ = a , b with n + 1 interpolation points ( x 0 , x 1 , , x n ) defined within this range, and the cubic spline interpolation function s ( x ) is characterized by the following two properties.
The cubic spline function has two key advantages. First, the function is described by a cubic polynomial in each subinterval, implying that adjustments to a particular subinterval do not affect other subintervals. This locality facilitates the achievement of rapid outcomes when optimizing or adjusting the coordinates of specific region central points, without the need for recalculating the entire trajectory. Then, the cubic spline function is twice continuously differentiable over its entire domain, ensuring the smoothness of curvature variation along the trajectory. This high-order continuity enables the generation of exceptionally smooth curves. Based on these properties, applying cubic spline theory to handle the set of fixed-region centroids enables the quick generation of smooth parking reference trajectories, superior in both aspects to the geometric programming method [22].
Assuming that the center points’ coordinates of all fixed-point regions within the standardized parking plane system have been acquired, smooth parking reference trajectories can be rapidly generated by cubic spline interpolation fitting. This exhibits a notable advantage over geometric methods.
The algorithm in this study realizes the steering control of the vehicle based on the vehicle kinematics model. The so-called vehicle kinematics model refers to the following:
x ˙ ( t ) = v ( t ) cos ( θ ( t ) ) y ˙ ( t ) = v ( t ) sin ( θ ( t ) ) θ ˙ ( t ) = v ( t ) tan ( ϕ ( t ) ) l v ˙ ( t ) = a ( t ) ϕ ˙ ( t ) = w ( t )
where ( x , y ) represents the center of the rear axle; v and a denote the velocity and acceleration of the vehicle, respectively; θ is the heading angle; ϕ is the steering wheel angle; w is the steering wheel angular velocity; l is the length between the front and rear wheels, and t signifies time. θ ˙ ( t ) = v ( t ) tan ( ϕ ( t ) ) l establishes the dynamic relationship between the steering angle ϕ ( t ) and the change in the heading angle θ ( t ) . The steering angle ϕ ( t ) directly controls the rate of change of the vehicle’s heading angle θ ( t ) .
To ensure that the trajectory generated during the vehicle’s steering process complies with the mechanical limitations of the vehicle’s steering mechanism, and at the same time meets the steering system’s requirement for continuous changes in the steering wheel angle, the following constraints are added:
ϕ ( t ) [ ϕ min , ϕ max ] | k ˙ ( t ) | k ˙ max
where k ˙ = w ( t ) l cos 2 ϕ represents the derivative of the instantaneous curvature.

3. Gene Modification of ARP

3.1. Basic Principles and Application Methods of Gene Modification

For diseased individuals, a targeted approach is employed to modify the defective gene segment, so that it makes correctly expressed genes alter their behavior. This process is referred to as gene modification. Traditional optimization algorithms typically eliminate all infeasible solutions generated during the optimization process (i.e., solutions that do not meet the constraints, also referred to as invalid solutions), and these approaches are not conducive to the preservation of optimization information. However, if some infeasible solutions are retained, the optimization efficiency will be adversely affected, while appropriate application of gene modification techniques will contribute to enhancing the preservation effect of optimized information. Considering both the calculation efficiency and increasing the number of parameters, this study modifies the far boundary line of the collision-avoidance garage and berthing tilt during the optimization of parking reference trajectory, and adopts new solutions to replace the other cases, which is an effective way to deal with the infeasible solutions of parking into a garage.

3.2. Gene Modification of Far Boundary Line for Collision-Avoidance Garage

In the standardized ARP coordinate system, the near boundary line of the garage corresponds to the vertical axis (y-axis). If the vehicle collides with the far boundary line of the garage during the I T -th cycle of the parking process, the bottom corner point x l b , I T , y l b , I T on the left boundary of the vehicle must cross the far boundary line for the garage at this time. That is, its abscissa is less than 0. To modify the far boundary line of the collision-avoidance garage, the center point of the fixed-point region, which is located within a specified distance from the vehicle’s center, should be rotated counterclockwise to a certain extent.The empirical formula for determining whether the center point of the i s -th fixed-point region rotates counterclockwise is presented as follows:
y P i s y t P g e t x l b , I T , y l b , I T Δ Y f c , max
where t P g e t x l b , I T , y l b , I T represents the function that determines the left corner at the bottom x l b , I T , y l b , I T corresponding to the vehicle’s center, and Δ Y f c , max denotes the greatest permissible deviation along the vertical axis.
If the above formula is true, then the specified i s -th fixed-point region central point rotates counterclockwise accordingly, and the empirical formula of the abscission offset Δ x i s , f c , modifying the far boundary line for the collision-avoidance garage, is presented below:
Δ x i s , f c = x t P g e t x l b , I T , y l b , I T x P i s · c f c · x l b , I T
where c f c is the empirically determined coefficient value of the far boundary line for the collision-avoidance garage.
The specific gene modification schematic diagram on the far boundary line is displayed in Figure 3.
In Figure 3, x f c , y f c represents the vehicle’s center of the boundary crossing point of the far boundary line for the collision-avoidance garage during the parking process. The abscissa of the center points P i s 1 , P i s 2 , and P i s 3 of the fixed-point region in the interval y f c Δ Y f c , max , y f c + Δ Y f c , max are adjusted by distances Δ x i s 1 , f c , Δ x i s 2 , f c , and Δ x i s 3 , f c , respectively, thus achieving the purpose of modifying the far boundary line for the collision-avoidance garage.

3.3. Berthing Tilt Gene Modification

If the absolute value of the berthing tilt angle Δ S surpasses the specified threshold Δ S   max , that is, Δ S > Δ S   max , this condition is defined as berthing tilt. To modify the berthing tilt, it is necessary to appropriately shift the central points’ x coordinate within the fixed-point region to the right. Based on experience, the decision formula for determining the rightward shift of the center points’ abscissa of the i s -th fixed-point region is presented below:
y P i s y P n s Δ Y S I , max
where Δ Y S I , max represents the maximum vertical axis offset for modifying the berthing tilt.
If the above formula is true, the center points’ abscissa of the i s -th fixed-point region should be appropriately shifted to the right. The specific empirical formula for the rightward abscissa movement Δ x i s , S I of the modifying berthing tilt is outlined below:
Δ x i s , S I = y P i s y P n s · tan ( Δ S Δ S   max )
The specific gene modification schematic diagram related to berthing tilt is presented in Figure 4.
The central points’ abscissa P n s 1 and P n s 2 of the fixed-point region in the interval y n s , y n s + Δ Y S I , max are adjusted to the right by distances Δ x n s 1 , S I and Δ x n s 2 , S I , respectively, thus realizing the purpose of modifying the berthing tilt.

4. Description of IDMMFO-GM Design

4.1. Introduction to the MFO Algorithm

The MFO algorithm is a swarm intelligence algorithm that was introduced in 2015. This algorithm abstracts the moth’s navigation toward a light source by employing lateral positioning strategies to develop an optimization approach. The MFO algorithm has two important elements: the moth and the flame. The moth is the actual individual in the optimization process, which stands for candidate solution, while the flame symbolizes the optimal solution identified by the moth through the last iteration.
Matrix M exhibits the location for the moth population:
M = M 11 M 12 M 1 d M 21 M 22 M 2 d M n 1 M n 2 M n d
where n denotes the overall count of moth individuals, and d represents the dimensionality of the solution domain.
The fitness values for the moth population are encapsulated in the matrix O M :
O M = O M 1 O M 2 O M n
During the preliminary phase of the algorithm’s iteration process, total flame amount is equivalent to the total number of moth individuals. The initial location of the flame set is denoted through matrix F:
F = F 11 F 12 F 1 d F 21 F 22 F 2 d F n 1 F n 2 F n d
The fitness value for flame set is denoted through matrix O F :
O F = O F 1 O F 2 O F n
The optimization procedure of the MFO algorithm is summarized by a triplet:
M F O = ( I , P )
I denotes the algorithm’s initiating operation, which is mainly shown as follows: randomly generating individual moths within the solution domain and subsequently obtaining their respective fitness values.
The association rule for this process is formulated as described below:
I : ϕ M , O M
P denotes the principal function that guides the moth’s trajectory update once the optimization algorithm initiates its operation. Specifically, the moth adjusts its location according to its own information and that of the flame set, following the logarithmic helical law, and subsequently computes the fitness value of the updated location. If this value surpasses the fitness value of the corresponding flame, the flame’s location is updated accordingly.
The mapping relationship for this process can be described as follows:
P : M M
T represents the logarithmic helical location adjusting behavior of individual moths. The moth is updated by the logarithmic helical rule as follows:
M i = S ( M i , F j ) = D i j · e τ t · cos ( 2 π t ) + F j D i j = | M i F j |
where M i denotes the location of the i-th moth, F j denotes the location of the j-th flame, D i j signifies the Euclidean distance location from the i-th moth to the j-th flame, τ is the variable of altering the location logarithmic helical waveform, t is a stochastic value within the range of −1 to 1, and S ( M i , F j ) also signifies the logarithmic helical function.
Furthermore, with the rate of algorithm convergence, the quantity of flames will dynamically diminish as the number of iterations increases. The adaptive adjustment mechanism for the flame count is outlined below:
N f l a m e = r o u n d ( N f l a m e max l N f l a m e max 1 N int max )
where N f l a m e represents the number of flames after updating, l indicates the present iteration count, N f l a m e max denotes the maximum count of flames, and N int max signifies the upper limit of iterations allowed.

4.2. Non-Linear Decreasing Strategy of Weight Coefficient

To achieve a more effective balance between global and local searching, a non-linear decreasing approach for the weight coefficient associated with the logarithmic helical term is introduced in this study. This approach aims to address the inherent limitation of the moth–flame optimization, which is prone to converging prematurely to local optima. The specific mapping expression for the logarithmic helical location adjusting behavior of the moth individual is as follows:
T : M i = ω · D i j · e τ t · cos ( 2 π t ) + F j D i j = | M i F j |
When the weight coefficient ω is higher, the algorithm exhibits significant global searching performance, which is particularly appropriate for the preliminary phase of the optimization procedure. Conversely, when the weight coefficient ω is lower, the algorithm demonstrates enhanced local searching. In this study, we propose a non-linear decreasing approach about the flexible weight coefficient ω  and propose it relying on the cosine structure.
The specific non-linear decreasing function about the weight coefficient ω of iteration progress t r is presented in Figure 5.
The specific formula for calculating the weight coefficient ω is presented as follows:
ω = ω min + ω d · cos 1 t r · π 2 β
where ω d represents the weight coefficient decrement, ω d = ω max ω min , and ω min and ω max denote the lower and upper limits of the weight coefficients, respectively. t r signifies the progression of the iteration, t r = t · t max 1 , and β is the optimization factor for the non-linear decreasing about the weight coefficient ω .
As illustrated in Figure 5, the cosine structure non-linear decreasing strategy exhibits significant adaptability and flexibility. Specifically, this strategy is employed to optimize and adjust the weight coefficient by selecting the most appropriate optimization parameter; hence, it enables real-time adjustment of the weight coefficient decreasing rate during the iterative process, which is conducive to the improvement in the balance effect between global exploration and local development, to improve the overall optimization ability of the algorithm [23].

4.3. Directional Mutation Strategy

At the end of the optimization of the MFO algorithm, the moth population is easily affected by the flame set, thus leading a high risk of local convergence. By introducing the mutation operator of the genetic mechanism, the diversity of the moth population can be significantly enhanced, to reduce the risk of the algorithm falling into local convergence. Compared with traditional random mutation based on a certain mutation probability, directional mutation guided by gradient information significantly enhances the convergence speed and optimization precision of the algorithm.
The specific process of directional mutation in parking reference trajectory optimization is outlined as follows:
Parking reference trajectory optimization is a specific type of optimization problem aimed at minimizing a single objective. Generally, this class’s problems can be formally described as follows:
min y = F u
where y represents the optimization objective, u denotes the decision variable, and F u signifies the optimization mapping model for solving the optimization objective y of decision variable u. For the parking reference trajectory optimization problem, the decision variable u is defined as the center point set P S of the fixed-point region to be decided, P S = P 2 , , P n s , while the objective function F u represents the length L t f P S of the reference trajectory.
The original decision variable to be directed mutation is denoted as P S k , the gene inheritance decision variable for directional mutation is denoted as P S i , and the gene changing decision variable for directional mutation is denoted as P S j . Subsequently, the directed vector d P S j , P S i can be formally defined as follows:
d P S j , P S i = sgn P 2 , j P 2 , i , , P n s , j P n s , i
where sgn represents a symbolic function that denotes the sign of the parameters, including 0, −1, and 1.
If L t f P S j < L t f P S i , the vector d P S i , P S j represents the evolutionary direction of objective function L t f P S from the gene inheritance decision variable P S i to the gene changing decision variable P S j . Conversely, the vector d P S i , P S j denotes its degenerate direction. Gene inheritance decision variable P S i usually selects the original decision variable P S k or its direct parent, while selecting the gene changing decision variable, it should be chosen to be as far as possible from the original decision variable P S k .
Through the application of direction vector d P S j , P S i , the directional mutation of the original decision variable P S i can be carried out. The specific formulation is as follows:
P S k = P S i + ω m · r · d P S j , P S i
where P S i represents the original decision variable to be directed mutation, P S k denotes the updated decision variable after directional mutation, and ω m signifies the adjustment coefficient for directional mutation, ω m 0 , 1 .
It is assumed that at the i-th iteration, the i-th moth M t , i in the current moth population M t , i is to be directed mutation, and it is taken as the gene inheritance decision variable, and the j-th flame F t , j in flame set F t is randomly selected as the gene changing decision variable of its directional mutation. The gene inheritance decision variable determined by moth M t , i is denoted as P S i , while the gene changing decision variable determined by flame F t , j is represented as P S j . The fitness values of moth and flame are denoted as L t f P S i and L t f P S j , respectively, and directional mutation can be achieved.
According to the above formulas, by regulating the directional mutation adjustment coefficient ω m , the global and local exploration of the algorithm can be more effectively balanced, to promote the whole effect of the algorithm.
Specifically, the flowchart for IDMMFO proposed in this study is shown in Figure 6.

5. Test Verification

5.1. Description of the Test Scene for ARP

In this study, the ARP scene of space No.155 in the garage of Dalian Shell Museum, which is situated within Dalian Xinghai Square, was selected as the actual parking test site. The lengths of the near boundary and far boundary lines for the test garage were identical, both of which were 5 m in length. To carry out engineering validation of the IDMMFO-GM strategy introduced in this study, a series of actual vehicle tests were performed using a designated test vehicle. The test vehicle model was the Toyota Corolla 1.2T S-CVT GL Pioneer Edition (2019 model year), measuring 4635 mm in length, 1780 mm in width, and 1455 mm in height. This vehicle was equipped with an ETRS electronic transmission system and an EPS electric power steering system, thus enabling automated control of steering, acceleration, braking, and gear shifting. The distances along the horizontal and vertical, measured from the bottom right corner of the test vehicle’s initiating region to the nearby top corner of the parking garage, were 2.0 m and 2.1 m, respectively.

5.2. Development and Settings of ARP Test

This study employed a test vehicle outfitted with the ARP system, incorporating a real-time MPC555LFMZP40 trajectory optimizer and trajectory controller chip, as well as a DSP28335 auxiliary control unit and data awareness system. Additionally, the system included an execution drive unit chip and various essential actuators. The data awareness system mainly comprised a surround-view camera for detecting parking garage information, a radar for obstacle avoidance, and a camera controller for analyzing the data collected by the surround-view camera. Additionally, the system included an execution drive unit chip and various essential actuators. During the ARP process, the vehicle’s driver monitored real-time braking status via the ARP monitoring upper computer without interfering with the normal ARP operations. Only when necessary, the driver can apply the braking instruction or emergency braking parking instruction to make the test vehicle park or for emergency braking. The overall design diagram of the ARP test is displayed in Figure 7.
The main settings for the ARP test adopted in this study are outlined as follows: data acquisition for braking, assessment of parking feasibility, optimization of reference trajectory, tracking control of reference trajectory, emergency braking, and braking time limits. The limit time of each process was 3.5 s, 1.5 s, 10 s, 25 s, 0.4 s, and 1.5 s, respectively. At least one ARP driver holding a C2 driving qualification in the vehicle, one external safety inspector, and one skilled unmanned aerial photographer should be equipped; the unmanned aerial camera used was the DJI “Royal” Mavic 2; the ARP monitoring host computer was configured with a “MacBook Pro 2016 Core i5 @ 2.9 GHz”; and the communication was carried out by Bluetooth on board.
The ARP procedure integrates five stages: environmental sensing, feasibility assessment, trajectory optimization, fuzzy PID control, and emergency braking. Radar and Around View Monitor (AVM) data fusion ensured stability in complex scenarios. The data awareness system of the test vehicle utilized multi-sensor fusion technology, and it mainly comprises a surround-view camera for detecting parking garage information, radar for obstacle avoidance, and a camera controller for analyzing the data collected by the surround-view camera. The data awareness system is composed of a ring array of 12 ranging radars and an AVM system equipped with four high-precision cameras. Specifically, eight radars are positioned on the sides of the front and rear bumpers, while the other four are mounted on the front bumper; the radar array precisely identifies obstacles and delineates parking space contours via a comprehensive 360 ° monitoring network. The AVM system employed wide-angle cameras located at the bottom of the front grille, license plate lights, and rearview mirrors to capture images, which were subsequently transmitted via CVDS or LVDS. It then produced a switchable 2D/3D panoramic view without black edges by applying fisheye correction and multi-perspective stitching techniques. The system’s design incorporates an overlapping field of view and a dynamic compensation mechanism, which can tolerate up to a 1 ° assembly error. Additionally, an automatic rotation mechanism is employed to address image offset caused by vehicle vibrations.

5.3. Test Results and Comparative Analysis from ARP

Based on an actual ARP scene, this study employed four advanced optimization algorithms to refine the parking reference trajectory for improved performance. Specifically, the following algorithms were applied: the improved directional mutation moth–flame algorithm via gene modification (IDMMO-GM) proposed in this study, an enhanced immune MFO algorithm according to gene correction (IIMFO-GC) [24], an improved particle swarm optimization algorithm (IPSO) [20], and an enhanced immune shark smell optimization algorithm (IISSO) [21]. Additionally, these algorithms uniformly employed fuzzy proportional–integral–derivative (PID) control to achieve precise reference trajectory tracking. To ensure an impartial comparison, the ARP reference trajectory optimization model utilizing the aforementioned algorithms all employed identical parameter settings, as detailed in Table 2. The parameter settings for IDMMFO-GM applied in the ARP reference trajectory optimization model are presented in Table 3.
To achieve a fair comparison of the four optimization algorithm, three designated fixed-point regions ( A 10 , A 7 , A 4 ) were selected, where y P 10 2.35 , 2.40 , y P 7 4.55 , 4.65 , and y P 4 6.10 , 6.25 . The detailed results of ARP optimization and tracking control are presented in Table 4, Table 5, Table 6 and Table 7. The specific optimization trajectories and tracking control curves for the ARP system, as monitored by the host computer, are depicted in Figure 8 and Figure 9. The designated fixed-point regions’ curves for ARP trajectory optimization and tracking control, as determined by the host computer monitoring, are presented in Figure 10 and Figure 11. An actual unmanned aerial image of the fixed-point regions for ARP trajectory tracking control is shown in Figure 12.
As illustrated in Figure 8, compared with the three optimization algorithms used for comparison, IDMMFO-GM shows superior optimization performance in obtaining an ideal reference trajectory, and it exhibits a shorter path length and a smaller expected berthing tilt angle in its reference trajectory. As depicted in Figure 9, the IDMMFO-GM algorithm demonstrates higher tracking control performance when employing the fuzzy PID tracking algorithm. Consequently, the resulting trajectory exhibits a reduced path length and a smaller actual berthing tilt angle. As shown in Figure 10, compared with the three optimization algorithms used for comparison, the IDMMFO-GM algorithm exhibits better optimization performance in generating an optimal reference trajectory. The trajectory produced by IDMMFO-GM not only approaches the garage’s boundary line more closely but also results in a reduced expected berthing tilt angle. As displayed in Figure 11 and Figure 12, the IDMMFO-GM algorithm describes enhanced tracking control performance when using the fuzzy PID algorithm. The resulting trajectory is nearer to the garage’s boundary line and exhibits a smaller actual berthing tilt angle. In Figure 11, the IDMMFO-GM algorithm aligns the vehicle toward the right side of the parking garage. Specifically, the x-axis coordinate of the vehicle’s final parking position is greater compared to that achieved by other algorithms. Consequently, with the same initiating region, the IDMMFO-GM algorithm demands the least land area, significantly minimizing the construction and operational costs associated with parking facilities. On the other hand, a more to the right position results in a shorter path length. As the vehicle maintains an approximately steady speed while parking, this indicates that the vehicle will require less stopping time, thus enhancing the users’ overall experience.
Table 4 and Table 5 indicate that IDMMFO-GM surpasses the three comparative algorithms in both reference and actual trajectories. Specifically, it results in a reduced reference trajectory length. Moreover, when the fuzzy PID tracking algorithm is employed, it achieves a shorter actual trajectory length in tracking control. As presented in Table 6, compared with the three optimization algorithms used for comparison, IDMMFO-GM demonstrates a notably smaller expected berthing tilt angle in its reference trajectory. Furthermore, when employing the same tracking control algorithm (fuzzy PID), it achieves a significantly smaller actual berthing tilt angle in its actual trajectory. As illustrated in Table 7, in comparison with the other three algorithms, IDMMFO-GM exhibits a markedly shorter optimization time requirement. Moreover, when utilizing the same fuzzy PID control algorithm, it further attains a significantly reduced tracking control time.

5.4. Simulation Results and Comparative Analysis from ARP

To further validate the effectiveness of the proposed algorithm, simulation verification for ARP trajectory optimization and actual tracking control was conducted using the Matlab simulation platform. A monitoring platform based on Visual Studio was employed to monitor the entire ARP trajectory optimization process, with communication established using Visual C++ 6.0 and the communication medium being Office Excel. The simulation environment was configured as follows: Matlab version 2016b, Visual Studio version VS2015, computer processor model Core i7-9800X @ 3.80 GHz, and Office Excel version Office Excel 2017. The ARP-optimized trajectory model based on Matlab simulation and the key parameters of IDMMFO-GM are described in Table 2 and Table 3, respectively. The pchip function was utilized to construct the cubic spline interpolation function, while the integral fitting method was adopted to solve parking curve length calculations.
This study selected parking space No. 155 at Dalian Shell Museum in Xinghai Square, Dalian, as the test scenario for automatic parking. The lengths of both the near-side and far-side boundary lines of the test garage were measured as 5.0 m, while the length of the rear boundary line was recorded as 2.7 m, with the width of the parking space markings being 0.1 m. The test vehicle used was a Volkswagen Tiguan (2016 model, 1L variant), with its length, width, and height being specified as 3540 mm, 1645 mm, and 1509 mm, respectively. The initiating position of the vehicle was such that the horizontal distance between the bottom right corner of its coverage area and the far corner of the parking space was measured as 2.2 m, while the longitudinal distance was recorded as 1.0 m.
Under the aforementioned simulation conditions, comparative tests were conducted between the proposed IDMMFO-GM and three algorithms: IIMFO-GC, IISSO, and IPSO. The trajectory optimization simulation curves and related results are presented in Figure 13 and Table 8.
As illustrated in Figure 13 and Table 8, compared with IIMFO-GC, IISSO, and IPSO, the simulation-optimized trajectory obtained through IDMMFO-GM demonstrates a shorter berthing trajectory length, and closer proximity to the garage’s near-side boundary line. This indicates that the proposed IDMMFO-GM possesses superior optimization capabilities, enabling the identification of more desirable parking trajectories and achieving enhanced ARP trajectory optimization outcomes.

6. Conclusions

ARP systems have a broad spectrum of practical applications across various fields including commercial, civilian, military, and ceremonial domains. However, trajectory optimization for ARP systems presents a multi-objective, non-linear, and extremely difficult optimization challenge. Consequently, obtaining an ideal reference trajectory that makes its curve collision-avoidance smoothness and short path lengths, is particularly difficult. To effectively enhance the performance of ARP trajectory optimization, a gene modification optimization algorithm, IDMMFO-GM, is proposed in this study. In contrast to current research achievements on optimizing reference trajectories for automatic parking, the key contributions of this study can be summarized as follows:
A novel reference trajectory optimization model for ARP is developed. Integrating cubic spline interpolation with the standardized parking plane coordinate system, an effective and practical reference trajectory optimization framework is established, which takes into account the feasibility constraints of parking, including the initiating region and berthing tilt angle; hence, it can effectively describe and optimize ARP trajectory.
To address the issue of infeasible solutions and balance the algorithm’s global exploitation and local development capabilities, an IDMMFO-GM is introduced. This algorithm organically integrates the gene modification mechanism, the non-linear decreasing weight coefficient strategy, and the directional mutation strategy, which can effectively utilize infeasible solutions encountered during computation, thus improving its global optimization performance and avoiding local convergence.
While the IDMMFO-GM algorithm exhibits excellent performance in optimizing automatic parking trajectories, it still possesses certain constraints: (I) Concerning parameter sensitivity, the algorithm’s empirical coefficients require manual tuning. This not only raises deployment expenses but might also compromise the algorithm’s adaptability in parking scenes. To achieve dynamic parameter adjustment, the implementation of online calibration technology is essential. (II) Regarding the constraint of dynamic adaptability, the current research is primarily grounded in the static environment hypothesis and does not account for real-time interference factors such as pedestrian movement and dynamic obstacles. In future work, mechanisms for predicting and avoiding dynamic obstacles will be incorporated. (III) Considering the sensitivity of sensor errors, the precision of transforming into a standardized coordinate system largely relies on the quality of sensor calibration. This reliance becomes more significant under extreme conditions, such as low light or adverse weather like rain and snow, where error accumulation is more likely to occur. Therefore, adopting a multi-source sensor fusion approach is essential for enhancing the stability of the system. (IV) At the multi-objective optimization level, the current model focuses solely on path length as its optimization goal and does not adequately account for various factors, including the rate of change in steering angle and energy consumption efficiency. This could result in practical issues, such as decreased comfort during application. Moving forward, the integration of multi-objective optimization algorithms will aim to address and harmonize the diverse performance requirements across dimensions.
To validate the efficacy of the proposed IDMMFO-GM, an automatic parking test is conducted for verification. Actual vehicle tests show that IDMMFO-GM outperforms three high-performance comparative optimization algorithms in parking trajectory optimization. Additionally, its trajectory tracking control performance is markedly improved.

Author Contributions

The study was undertaken in partnership between all contributing authors. Y.C. (Yan Chen) conceptualized the study, conducted the investigation, provided necessary resources, and acquired funding. Y.C. (Yi Chen) wrote the refinement and had editorial oversight and project guidance. Y.G. reviewed and edited the manuscript, supervised the research, and validated the data. G.L. contributed to funding acquisition. L.W. not only acquired funding but also wrote the original draft and reviewed it. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (62341313), the Chizhou University nature key project (CZ2022ZRZ08), the General Project of Natural Science Foundation of Inner Mongolia (2023MS06013), the Liaoning Provincial Department of Transportation Scientific Research Project (202344), and the Liaoning Provincial Department of Education Scientific Research Project (JYTMS20230038). The APC was funded by Yan Chen.

Data Availability Statement

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

Conflicts of Interest

Author Yi Chen was employed by Information and Communication Section, Chizhou Public Security Bureau. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ARPautomatic reverse parking
IOAintelligent optimization algorithm
IDMMFO-GMimproved directional mutation moth–flame algorithm via gene modification
IIMFO-GCimproved immune MFO algorithm based on gene correction
IISSOimproved immune shark smell optimization
IPSOimproved particle swarm optimization

References

  1. Pagot, E.; Piccinini, M.; Bertolazzi, E. Fast planning and tracking of complex autonomous parking maneuvers with optimal control and pseudo-neural networks. IEEE Access 2023, 11, 124163–124180. [Google Scholar] [CrossRef]
  2. Reda, M.; Onsy, A.; Haikal, A.Y.; Ghanbari, A. Path Planning Algorithms in the Autonomous Driving System: A Comprehensive Review. Robot. Auton. Syst. 2024, 174, 104630. [Google Scholar] [CrossRef]
  3. Daniali, S.M.; Khosravi, A.; Sarhadi, P.; Tavakkoli, F. An Automatic Parking Algorithm Design Using Multi-Objective Particle Swarm Optimisation. IEEE Access 2023, 11, 49611–49624. [Google Scholar] [CrossRef]
  4. Huang, C.; Yang, S.; Luo, Y.; Wang, Y.; Liu, Z. Visual Detection and Image Processing of Parking Space Based on Deep Learning. Sensors 2022, 22, 6672. [Google Scholar] [CrossRef]
  5. de Almeida, P.R.L.; Alves, J.H.; Oliveira, L.S.; Hochuli, A.G.; Frohlich, J.V.; Krauel, R.A. Vehicle Occurrence-Based Parking Space Detection. In Proceedings of the 2023 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Honolulu, HI, USA, 1–4 October 2023; pp. 1524–1529. [Google Scholar]
  6. Li, S.; Wang, J. Parallel parking path planning in narrow space based on a Three-stage Curve interpolation method. IEEE Access 2023, 11, 93841–93851. [Google Scholar] [CrossRef]
  7. Wang, J.; Li, J.; Yang, J.; Meng, X.; Fu, T. Automatic parking trajectory planning based on random sampling and nonlinear optimisation. J. Frankl. Inst. 2023, 360, 9579–9601. [Google Scholar] [CrossRef]
  8. Meng, T.; Yang, T.; Huang, J.; Liu, Y.; Zhang, Q. Improved hybrid A-star algorithm for path planning in autonomous parking system based on multi-stage dynamic optimisation. Int. J. Automot. Technol. 2023, 24, 459–468. [Google Scholar] [CrossRef]
  9. He, W.; Chen, Y.; Liu, T.; Ren, F.; Wan, K. Gaussian Pseudo-spectrum optimisation-based fuzzy logic parallel parking trajectory planning. Int. J. Automot. Technol. 2025, 26, 115–128. [Google Scholar] [CrossRef]
  10. Hu, J.; Feng, Y.; Li, S.; Wang, H.; So, J.; Zheng, J. Mirroring the parking target: An optimal-control-based parking motion strengthened parking reliability and faster parking completion. IEEE Trans. Intell. Transp. Syst. 2024, 25, 16157–16170. [Google Scholar] [CrossRef]
  11. Zhang, P.; Zhou, S.; Hu, J.; Zhao, W.; Zheng, J.; Zhang, Z.; Gao, C. Automatic parking trajectory planning in narrow spaces based on Hybrid A* and NMPC. Sci. Rep. 2025, 15, 1384. [Google Scholar] [CrossRef]
  12. Gan, N.; Zhang, M.B.; Chai, T.; Wu, X.; Bian, Y. Spatio-temporal heuristic method: A trajectory planning for automatic parking considering obstacle behavior. J. Intell. Connect. Veh. 2022, 5, 177–187. [Google Scholar] [CrossRef]
  13. Han, I. Geometric path plans for perpendicular/parallel reverse parking in a narrow parking spot with surrounding space. Vehicles 2022, 4, 1195–1208. [Google Scholar] [CrossRef]
  14. Liu, Y.; Cui, D. Optimal control problem path tracking of an intelligent vehicle. World Electr. Veh. J. 2024, 15, 428. [Google Scholar] [CrossRef]
  15. Shi, J.; Li, K.; Piao, C.; Gao, J.; Chen, L. Model-based predictive control and reinforcement learning for planning vehicle-parking trajectories for vertical parking spaces. Sensors 2023, 23, 7124. [Google Scholar] [CrossRef]
  16. Zhang, R.; Chai, R.; Chai, S.; Xia, Y.; Tsourdos, A. Design and practical implementation of a high efficiency two-layer trajectory planning method for AGV. IEEE Trans. Ind. Electron. 2023, 71, 1811–1822. [Google Scholar] [CrossRef]
  17. Yang, J.; Wang, J.; Li, J.; Meng, X.; Jiang, X.; Lu, C. Sobol Sequence RRT* and Numerical Optimal Joint Algorithm-Based Automatic Parking Trajectory Planning of Four-Wheel Steering Vehicles. Robot. Auton. Syst. 2025, 186, 104909. [Google Scholar] [CrossRef]
  18. Wu, Y.; Li, X.; Gao, J.; Yang, X. Research on Automatic Vertical Parking Path-Planning Algorithms for Narrow Parking Spaces. Electronics 2023, 12, 4203. [Google Scholar] [CrossRef]
  19. Chen, Y.; Wang, L.; Liu, G.; Xia, B. Automatic Parking Path Optimisation Based on Immune Moth Flame Algorithm for Intelligent Vehicles. Symmetry 2022, 14, 1923. [Google Scholar] [CrossRef]
  20. Chen, Y.; Qian, Y. Improved Particle Swarm optimization algorithm for Automatic Entering Parking Space Based on Spline Theory. In Proceedings of the 2nd International Conference on Computing and Data Science (CONF-CDS 2021), Stanford, CA, USA, 28–30 January 2021; pp. 136–143. [Google Scholar]
  21. Chen, Y.; Liu, G.; Wang, L.; Xia, B. Automatic Vertical Parking Reference Trajectory Based on Improved Immune Shark Smell Optimisation. Algorithms 2024, 17, 308. [Google Scholar] [CrossRef]
  22. Storath, M.; Weinmann, A. Smoothing Splines for Discontinuous Signals. J. Comput. Graph. Stat. 2024, 33, 651–664. [Google Scholar] [CrossRef]
  23. Turgut, O.E.; Turgut, M.S.; Kirtepe, E. Q-learning-based metaheuristic algorithm for thermoeconomic optimisation of a shell-and-tube evaporator working with refrigerant mixtures. Soft Comput. 2023, 27, 16201–16241. [Google Scholar] [CrossRef]
  24. Liu, G.; Xu, X.; Wang, L. Improved Immune Moth-Flame Optimization Based on Gene Correction for Automatic Reverse Parking. Sensors 2022, 24, 2270. [Google Scholar] [CrossRef]
Figure 1. Technical framework for this study.
Figure 1. Technical framework for this study.
Algorithms 18 00299 g001
Figure 2. Principal schematic diagram of ARP.
Figure 2. Principal schematic diagram of ARP.
Algorithms 18 00299 g002
Figure 3. Gene modification schematic diagram on the far boundary line for collision avoidance.
Figure 3. Gene modification schematic diagram on the far boundary line for collision avoidance.
Algorithms 18 00299 g003
Figure 4. Gene modification schematic diagram related to berthing tilt.
Figure 4. Gene modification schematic diagram related to berthing tilt.
Algorithms 18 00299 g004
Figure 5. Schematic diagram of non-linear decreasing function about weight coefficient.
Figure 5. Schematic diagram of non-linear decreasing function about weight coefficient.
Algorithms 18 00299 g005
Figure 6. Flowchart for IDMMFO proposed in this study.
Figure 6. Flowchart for IDMMFO proposed in this study.
Algorithms 18 00299 g006
Figure 7. Overall design diagram of ARP test.
Figure 7. Overall design diagram of ARP test.
Algorithms 18 00299 g007
Figure 8. Optimization curves for ARP trajectories obtained by monitoring upper computer.
Figure 8. Optimization curves for ARP trajectories obtained by monitoring upper computer.
Algorithms 18 00299 g008
Figure 9. Tracking control curves for ARP trajectories obtained by monitoring upper computer.
Figure 9. Tracking control curves for ARP trajectories obtained by monitoring upper computer.
Algorithms 18 00299 g009
Figure 10. Designated fixed-point regions’ curves for ARP trajectory optimization.
Figure 10. Designated fixed-point regions’ curves for ARP trajectory optimization.
Algorithms 18 00299 g010
Figure 11. Designated fixed-point regions’ curves for ARP trajectory tracking control.
Figure 11. Designated fixed-point regions’ curves for ARP trajectory tracking control.
Algorithms 18 00299 g011
Figure 12. Actual unmanned aerial image for ARP trajectory tracking control fixed-point regions.
Figure 12. Actual unmanned aerial image for ARP trajectory tracking control fixed-point regions.
Algorithms 18 00299 g012
Figure 13. ARP trajectory optimization curves in Matlab simulation environment.
Figure 13. ARP trajectory optimization curves in Matlab simulation environment.
Algorithms 18 00299 g013
Table 1. Summary of parking trajectory optimization methods.
Table 1. Summary of parking trajectory optimization methods.
MethodReferenceAdvantagesLimitations
Geometric method[6]Fast computation speedUtilize partial capabilities
Sampling-based method[7]Dimension-free solution spaceStochastic results
Search-based method[8]Obstacle avoidance capabilityGrid resolution determines accuracy
Numerical optimization[9,10]Intuitive modelingPoor computational timeliness
Table 2. Parameter settings for ARP trajectory optimization model.
Table 2. Parameter settings for ARP trajectory optimization model.
NameSymbolValue
Initiating tilt angle threshold Δ B   max π 75
Center point number n s 10
Parking tilt angle threshold Δ S   max π 75
Parking location error threshold Δ y n s 0.15 m
Parking process cycle Δ t 1500 μ s
Attitude angle difference threshold Δ L max 5 · 10 4 π
Parking interval threshold Δ max 10 3 m
Table 3. Parameter settings of IDMMFO-GM algorithm for ARP reference trajectory optimization model.
Table 3. Parameter settings of IDMMFO-GM algorithm for ARP reference trajectory optimization model.
NameSymbolValue
Moth population sizen30
Iteration number t max 80
Logarithmic helical waveform adjustment coefficient τ 1
Minimum weight coefficient ω min 0.3
Maximum weight coefficient ω min 0.9
Non-linear decreasing optimization factor β 1.85
Directional mutation adjustment coefficient ω m 0.66
Maximum vertical axis offset for collision-correction garage Δ Y f c , max 0.92 m
Abscissa moving to the right empirical coefficient c f c 0.58
Maximum vertical axis offset of modification berthing tilt Δ Y S I , max 0.84 m
Table 4. Berthing tilt angles for ARP trajectory optimization and tracking control.
Table 4. Berthing tilt angles for ARP trajectory optimization and tracking control.
AlgorithmsOptimizationTracking Control
IDMMFO-GM0.430.48
IIMFO-GC1.031.08
IISSO3.833.90
IPSO1.701.77
Table 5. Fixed-point regions’ positions and path lengths for ARP trajectory optimization.
Table 5. Fixed-point regions’ positions and path lengths for ARP trajectory optimization.
AlgorithmsCenter Point Coordinates (m)Path Length (m)
IDMMFO-GM(1.56, 2.39), (1.57, 4.63), (1.92, 6.21)9.435
IIMFO-GC(1.44, 2.38), (1.47, 4.64), (1.81, 6.22)9.483
IISSO(1.18, 2.41), (1.43, 4.65), (1.72, 6.23)9.693
IPSO(1.10, 2.40), (1.22, 4.60), (1.56, 6.20)9.768
Table 6. Fixed-point regions’ positions and path lengths for ARP trajectory tracking control.
Table 6. Fixed-point regions’ positions and path lengths for ARP trajectory tracking control.
AlgorithmsCenter Point Coordinates (m)Path Length (m)
IDMMFO-GM(1.50, 2.37), (1.51, 4.61), (1.86, 6.19)9.456
IIMFO-GC(1.38, 2.37), (1.39, 4.63), (1.75, 6.21)9.508
IISSO(1.21, 2.40), (1.42, 4.64), (1.85, 6.22)9.617
IPSO(1.22, 2.39), (1.28, 4.55), (1.62, 6.11)9.647
Table 7. Comparison of parking time required by different algorithms.
Table 7. Comparison of parking time required by different algorithms.
AlgorithmsOptimization Time Required (s)Tracking Control Time (s)
IDMMFO-GM9.0218.79
IIMFO-GC9.4119.60
IISSO9.5719.94
IPSO9.6820.17
Table 8. Fixed-point positions and path lengths for ARP trajectory optimization in Matlab simulation environment.
Table 8. Fixed-point positions and path lengths for ARP trajectory optimization in Matlab simulation environment.
AlgorithmsCenter Point Coordinates (m)Path Length (m)
IDMMFO-GM(1.55, 2.44), (1.53, 3.84), (2.07, 6.01)9.19
IIMFO-GC(1.20, 2.45), (1.21, 3.95), (1.92, 6.15)9.75
IISSO(1.32, 2.49), (1.35, 3.86), (2.02, 6.15)9.63
IPSO(1.11, 2.45), (1.22, 3.93), (1.89, 6.15)9.88
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

Chen, Y.; Chen, Y.; Guo, Y.; Wang, L.; Liu, G. Improved Directional Mutation Moth–Flame Optimization Algorithm via Gene Modification for Automatic Reverse Parking Trajectory Optimization. Algorithms 2025, 18, 299. https://doi.org/10.3390/a18060299

AMA Style

Chen Y, Chen Y, Guo Y, Wang L, Liu G. Improved Directional Mutation Moth–Flame Optimization Algorithm via Gene Modification for Automatic Reverse Parking Trajectory Optimization. Algorithms. 2025; 18(6):299. https://doi.org/10.3390/a18060299

Chicago/Turabian Style

Chen, Yan, Yi Chen, Yang Guo, Longda Wang, and Gang Liu. 2025. "Improved Directional Mutation Moth–Flame Optimization Algorithm via Gene Modification for Automatic Reverse Parking Trajectory Optimization" Algorithms 18, no. 6: 299. https://doi.org/10.3390/a18060299

APA Style

Chen, Y., Chen, Y., Guo, Y., Wang, L., & Liu, G. (2025). Improved Directional Mutation Moth–Flame Optimization Algorithm via Gene Modification for Automatic Reverse Parking Trajectory Optimization. Algorithms, 18(6), 299. https://doi.org/10.3390/a18060299

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