# Mobile Robot Path Planning Based on Time Taboo Ant Colony Optimization in Dynamic Environment

^{1}College of Electronics and Information Engineering, Sichuan University, Chengdu, China^{2}The Second Research Institute of Civil Aviation Administration of China, Chengdu, China^{3}Civil Aviation Logistics Technology Company Limited, Chengdu, China

This article aims to improve the problem of slow convergence speed, poor global search ability, and unknown time-varying dynamic obstacles in the path planning of ant colony optimization in dynamic environment. An improved ant colony optimization algorithm using time taboo strategy is proposed, namely, time taboo ant colony optimization (TTACO), which uses adaptive initial pheromone distribution, rollback strategy, and pheromone preferential limited update to improve the algorithm's convergence speed and global search ability. For the poor global search ability of the algorithm and the unknown time-varying problem of dynamic obstacles in a dynamic environment, a time taboo strategy is first proposed, based on which a three-step arbitration method is put forward to improve its weakness in global search. For the unknown time-varying dynamic obstacles, an occupancy grid prediction model is proposed based on the time taboo strategy to solve the problem of dynamic obstacle avoidance. In order to improve the algorithm's calculation speed when avoiding obstacles, an ant colony information inheritance mechanism is established. Finally, the algorithm is used to conduct dynamic simulation experiments in a simulated factory environment and is compared with other similar algorithms. The experimental results show that the TTACO can obtain a better path and accelerate the convergence speed of the algorithm in a static environment and can successfully avoid dynamic obstacles in a dynamic environment.

## Introduction

In mobile robot navigation, global path planning has always been one of the research hotspots. At present, the research on path planning of mobile robot in static environment has been relatively mature, bringing many excellent kinds of algorithms. There are some traditional algorithms, such as A* algorithm, artificial potential field method (Rimon and Koditschek, 1992), and Dijkstra. Besides, heuristic optimization algorithms are also among the lists, including genetic algorithm, neural network algorithm (Khan et al., 2020c), particle swarm optimization algorithm, ant colony algorithm (Fan et al., 2003), cuckoo algorithm (Mohanty and Parhi, 2016), bug algorithm (Khan et al., 2020a), and so on. However, all kinds of algorithms are more or less limited to algorithm deficiencies. Compared with the traditional gradient descent algorithm, the metaheuristic algorithm performs better in convergence speed, and global optimization ability and hence is widely used in trajectory planning (Khan et al., 2020b), prediction, resource scheduling, and other fields. Ant colony algorithm with its good robustness, positive feedback, and parallel computing ability has been widely used in robot path planning and achieved good results.

In Zhou et al. (2013), an improved ant colony optimization (ACO) algorithm is proposed. By modifying the initial environment pheromone and state transition probability, the search deadlock can be eliminated. The combination of deterministic search and random search can reduce redundant paths. Jiang et al. (2019) adopt a method to make the initial pheromone uneven, which can reduce the blind search path of ants, cut down the running time of the algorithm, and improve the convergence rate of the algorithm. In Luo et al. (2019), the improved pheromone updating strategy was used to update the excellent path and punish the poor path; meanwhile, the upper and lower limits of pheromone were set. In Liu and Zhang (2016), the simulated annealing algorithm is added to the process of simulated annealing ant colony algorithm formed by ant colony algorithm, and it is applied to path planning to solve the local optimal problem caused by premature ant colony algorithm. However, the working environment of mobile robot is always dynamic, such as intelligent factory, hospital, supermarket, and so on. Therefore, it is a difficult problem to avoid obstacles successfully and make quadratic optimal path planning after encountering dynamic obstacles. In Li et al. (2019), an inertial positioning strategy is proposed to enable the robot to predict the position of the target in advance. From the predicted position, the robot path is generated by cubic spline interpolation, and then the improved particle swarm optimization algorithm with random positive feedback factor in speed update is used to optimize the path. As it is very important to track and predict dynamic obstacles in dynamic environment, Ferguson et al. (2008) proposed that if a dynamic obstacle runs on a straight road, it is likely that it will continue to travel along the same straight line in the future. Li et al. (2017) constructed a prediction model to avoid obstacles. In Kim et al. (2017), a trajectory prediction method based on occupancy grid and neural network is proposed. In Qu and Huang (2015), different obstacle avoidance strategies were set up to avoid dynamic obstacles when the mobile robot met with dynamic obstacles. The size of dynamic obstacles is considered in Xu et al. (2019) on the basis of Qu and Huang (2015). The above literatures predict that the dynamic obstacles are moving on a straight line without considering the change of the speed of the dynamic obstacles. There are unknown dynamic obstacles in the dynamic environment. Ant colony algorithm also has the problems of slow convergence speed and poor global search ability.

This article proposes a novel, improved ACO algorithm using time taboo strategy, namely, time taboo ant colony algorithm, which aims to solve the path planning problem of mobile robot in dynamic environment. It utilizes the adaptive initial pheromone uneven distribution to reduce the blindness of ants in early path finding. And, the problem of deadlock is solved by the rollback strategy; pheromone preferential limited update is adopted to reduce pheromone redundancy. The above improvements are designed to improve the convergence speed and global search ability of the algorithm. The corresponding strategies, mechanisms, and prediction models are proposed to avoid dynamic obstacles. Based on the improvement, strategy, and prediction model mentioned above, the dynamic obstacle avoidance of mobile robot is effectively realized and verified by simulation.

## Ant Colony Optimization

ACO is a heuristic global optimization algorithm in evolutionary algorithm. In the process of searching the path, ants release pheromones on the path through which they have passed. The shorter the path is, the higher the concentration of pheromone released will be. Therefore, the following ants will favorably choose the path with highest concentration of pheromone, as a result of which an optimal path can be obtained.

In order to reduce the detour of ants in the process of searching, the algorithm introduces the concept of taboo table. In the process of ant searching, the taboo table is added to the path nodes that have been explored, and the next time ants select the path nodes, optional nodes will exclude those in the taboo table. At the same time, the heuristic function η is introduced, and the following transfer function is used to improve the search efficiency of ant colony. The transfer formula (1) and the heuristic function (2) are as follows:

In the formula,τ_{ij} represents the pheromone concentration from the *i*th node to the *j*th node on the feasible path node. η_{ij} represents the heuristic value from the *i*th path node to the *j*th path on the feasible path, and its value is the reciprocal of the distance from the *j*th node to the end point, as shown in formula (2), *d*_{j} represents the distance from the *j*th node to the end point. *S* represents the current path node. *A* represents the nodes that ants can still choose after removing obstacles and path nodes in the taboo table. α and β represent the importance of pheromone and heuristic pheromone, respectively. According to this formula, we can know that the higher the pheromone concentration is, the higher the heuristic pheromone will be, and the greater the probability of ants selecting the node will be.

At the same time, the pheromone concentration on the map will gradually evaporate with the running time. The updating of pheromone is shown in the following formulas (3) and (4).

ρ stands for the evaporation coefficient of pheromone. The larger the value is, the more the pheromone evaporates, with its value between (0 and 1). Pheromone evaporation can avoid excessive accumulation of pheromone. Δτ_{ij}(*t*) represents the pheromone increment from the *i*th node to the *j*th node at time *t*. Its definition is shown by formula (5).

In the formula, *K* represents the *k*th ant, *L*_{k} represents the total length of the *k*th ant's path, *P* represents the nodes in the path, *P*(*i, j*) represents the path nodes from *i* to *j*, and *Q* represents the pheromone strength. The formula shows that only the ants that have reached to the destination can update pheromones, and the pheromone concentration is inversely proportional to the length of the path. Although the ants in the ant colony do not communicate directly, they communicate through pheromone, an indirect medium, to achieve the goal of optimal path planning.

## Ant Colony Optimization Improvement

Some factors will directly affect the performance of ant colony algorithm, such as pheromone, pheromone updating rule, heuristic pheromone, state transition rule, and deadlock and self-locking of ant colony algorithm. However, the improvement of the initial pheromone is still rigid, which is not conducive to the global search of the algorithm, and the processing of pheromone change caused by the improved deadlock problem is not perfect yet. In this article, pheromone, deadlock and self-locking, and pheromone update mechanism are improved. Based on these improvements, the time taboo ACO (TTACO) is further proposed.

### Adaptive Initial Pheromone Distribution

In the basic ant colony algorithm, the pheromone distribution is quite even; even pheromone distribution may cause ants wander around and backtrack, rendering too-long search time of ants in the early stage of the algorithm, and the length of the search path is increased. In this article, the pheromone near the connection line is added according to the distance from the starting point to the end point, and the pheromone of the node closer to the connection line is higher in concentration. At the same time, in order to prevent the algorithm from falling into local optimum due to the initial pheromone, the algorithm will determine the number of pheromones added according to the proportion of obstacles on and near the starting and ending lines. The formula is as follows:

In the formula, τ is the pheromone of ant colony algorithm, τ_{0} is the basic pheromone, ϑ is the adaptive parameter, and μ is the distance between the node and the line; the closer the distance is, the greater the value will be, with the range of the value being [0, 1]. When the distance between the obstacle and the connection exceeds a set value, the value of *u* is taken as zero. The closer the grid is to the line, the higher the pheromone concentration will be. Because of the existence of obstacles, ε will decrease, resulting in the decrease of the overall pheromone. According to the connection between the starting point and the end point, it is highly probable that the optimal path is the path near the line, and the condition of the obstacle near the line will hinder the degree of the optimal path near the line. Therefore, the uneven distribution of the initial pheromone is conducive to the ants' searching for the best path in the early stage.

### Solving Deadlock and Self-Locking Problems

When the ants explore the path in the early stage, because of the restriction of the map environment and the taboo table, the individual ant may fall into the dilemma of finding nowhere to go before reaching the end point. It can be divided into deadlock and self-locking. Inspired by Dai et al. (2019), this article uses a rollback strategy to solve the deadlock and self-locking problems and divides the taboo table into a global taboo table and a local taboo table. The global taboo table records information of deadlock location, and the local taboo table, inherited from the global taboo table, records the information of the ant's walking path node and the self-locking position node. The ant chooses the path according to the local taboo table. When the ant has a deadlock problem caused by the environment, the ant is made to retreat two steps, and the place where the ant falls into the deadlock will be added to the global taboo table to reduce the possibility that the ant falls into the same deadlock again. When the ant is self-locked because of its walking path, the ant is made to go back two steps. Different from the deadlock, the position where the ant self-locking occurs will be added to the local taboo table to prevent the ant from repeatedly walking into the same self-locking node.

### Pheromone Update Rules

Because of the introduction of the rollback strategy, all ants can successfully find the end point. Although the search ability of the algorithm is improved, the increase in the number of ants that successfully reach the end point leads to pheromone redundancy. So pheromones of ants will be updated only with the shortest path and shorter path to reduce the redundancy of pheromones on the map. The number of ants updated with the pheromone is determined by the scale of the map. The larger the map is, the more ants can get pheromone updates.

### TTACO

The basic ant colony algorithm introduces a taboo table, but its use of the taboo table is limited to preventing ants from walking nodes that have been already walked. In order to further improve the algorithm's global search capability, algorithm convergence speed, and the ability to avoid dynamic obstacles, this article proposes a time taboo strategy: In the case of path redundancy or detection of dynamic obstacles, ants will be prohibited from accessing certain path nodes for a certain period of time until path redundancy is avoided, or dynamic obstacles are successfully avoided, and then the prohibition is canceled in a specific way. And based on this strategy, a three-step arbitration method and an occupancy grid prediction model are proposed to improve the algorithm's global search ability and the ability to avoid dynamic obstacles.

#### Three-Step Arbitration Method

In the crawling process of ants, there will inevitably be path redundancy, as for which this article divides it into two situations: one is redundancy situation I, and the other is redundancy situation II. The two cases are shown in Figure 1, where the top two grids show situation I, and the bottom two are situation II.

When the redundancy situation occurs, the path is divided into three steps. The first step is before the situation occurs, the second step is when the situation occurs, and the third step is after the situation occurs. The specific judgment method is as follows. *S*_{12} and *S*_{13} are used to represent the distance between the first step and the second or third step, respectively. The specific determination rules are shown in Table 1 below.

When it is determined that the second step is redundant, the algorithm will record the node where the problem occurs. When the ant crawls to the first step, the algorithm will temporarily add the path node of the second step to the taboo table, so that the ant cannot choose the second step. In this way, the algorithm will accelerate the convergence speed and improve global search capability. The crawling paths of ants in the early stage are more chaotic, and more redundant ones will also occur, so the method is disabled in this period. The algebra that specifically enables the method is shown in formula (7):

*K*_{s} is the algebra of activating the method, and MM is the scale of the map. The larger the scale of the map is, the later the method will be activated. In order to enable a suitable number of ants to invoke the method and avoid multiple redundant path nodes caused by an individual ant to trigger the method at the same time, which will lead to redundant path, and having referred to the cuckoo algorithm (Luan et al., 2015), the following trigger mechanism is proposed.

1. This method is only enabled from the generation of ants crawling a relatively stable path.

2. The use of this method or not will be determined by the probability before each ant searches.

3. When the ant using this method encounters a redundant node, the use of this method or not will be once again determined at the node according to the probability.

#### Occupancy Grid Prediction Model

Highly dynamic scenes have brought great challenges to robot path planning. In Zhao et al. (2020), the classical method of detecting and planning at the same time cannot meet the requirement of safely avoiding dynamic obstacles. Kim et al. (2017) use a prediction method based on occupancy grids, where the scene is divided into grids, and the occupancy grids are used to represent the possible locations of dynamic obstacles in the future. Ferguson et al. (2008) propose that if a dynamic obstacle is driving on a straight road, it is very likely that it will continue to drive along the same straight line in the future. Rummelhard et al. (2014) proposes a new grid-based collision risk prediction method. Li et al. (2017) take the mobile robot's kinematics model as the algorithm's trajectory prediction model. Riosmartinez et al. (2013) propose a pedestrian area based on Gaussian distribution. Two individual areas of different sizes are constructed with pedestrians as the center, with the area in front of the pedestrian being lager, assuming that our dynamic obstacles are most likely to be moving mechanical vehicles and pedestrians, as shown in Figure 2.

The kinematics of mobile robot is described in Boukens et al. (2019) and Keyvan et al. (2020). The motion model of a dynamic obstacle can be expressed by the following differential equation, where (*x, y*) is the position, θ is the angle of the dynamic obstacle velocity, *v* is the velocity, *k* is the curvature, and ω is the angular velocity. It can be seen from the formula that when the velocity is constant, the greater the curvature is, the greater the value of θ will be, and the greater the angular velocity ω of the dynamic obstacle will be.

It is assumed that the dynamic obstacle has two predicted steering angles, a safe steering predicted angle and an emergency steering predicted angle. Let θ in the above formula be the safe steering prediction angle, that is, the angle at which a slight path deviation of dynamic obstacles may occur is considered, and the safe steering angle is considered only when starting to predict. θ_{d} is the emergency steering predicted angle, which represents the angle when the emergency steering of the dynamic obstacle occurs, and each step of the prediction has an emergency steering angle. The schematic diagram is shown in Figure 3.

In the figure, θ is the predicted angle of safe steering, and θ_{d} is the predicted angle of emergency steering, and its formula is as follows:

In the above formulas, *L*_{a} is the offset distance in the vertical direction when the dynamic obstacle makes an emergency turn, and *L*_{b} is the distance in the horizontal direction when the dynamic obstacle is making an emergency turn. *l*_{a} is the vertical distance when the dynamic obstacle slightly deviates from the path, and *l*_{b} is the horizontal distance when the dynamic obstacle slightly deviates from the path. And the angle of θ is set as (0, 26.12°) and the angle of θ_{d} (0, 45°).

Figure 4 shows a schematic diagram of path nodes that have been marked as occupied. According to the previously set angle, further specific analysis of whether a path node is affected by dynamic obstacles is determined by the following formula, where *m* is the ratio of the affected area of a grid to the whole grid area. As shown in Figure 4, the ratio of the area of the blue trapezoid to the area of the whole grid and the value is affected by θ. *L*_{i} is the vertical distance from the center of the *i*th grid to the velocity direction of the dynamic obstacle, as shown by the golden yellow straight line in Figure 4. γ is an adaptive parameter whose value is shown in formula (13). θ_{i} is the angle between the center of the *i*th grid and the speed direction of the dynamic obstacle, which includes θ_{d}. When the value of *f* is > 0.5, it means that the grid is affected and will be tinted yellow.

Combining the possible movement of the dynamic obstacle and the dynamic obstacle movement model, the following occupancy grid prediction model is proposed. When the mobile robot detects a dynamic obstacle, it is predicted that the future path of the dynamic obstacle will continue to follow the current speed direction of the dynamic obstacle, as shown in the red grids in Figure 5 below, and a certain probability of deviation to the original speed direction, as indicated in yellow grids. The longer the path is, the higher the probability of deviating from the red path may be. We set that the predicted footprint of the dynamic obstacle is related to the angular velocity of the movement of the dynamic obstacle. The forecast is shown in Figure 5 below. *v* is the current speed of the dynamic obstacle and remains unchanged. The upper part of Figure 5 shows the step-by-step occupancy grid prediction map when the angular velocity ω of dynamic obstacle movement is large, and the lower part of Figure 5 shows the step-by-step occupancy grid prediction map when the angular velocity ω of dynamic obstacle movement is small. The solid circle in the figure represents the location of the dynamic obstacle at the current time, and the dotted circle represents the location of the dynamic obstacle at the future time.

**Figure 5**. Schematic illustration of step-by-step occupancy grids prediction for dynamic obstacles with different angular velocities.

According to the original path and the predicted path of the dynamic obstacle, it should be judged whether it is necessary to call the model, and the time point to call the occupancy grid prediction model should be calculated. Suppose the mobile robot is walking along the original path, when the distance between the mobile robot and the dynamic obstacle is less than the safe distance, the occupancy grid prediction model is called in the first two-unit time when it is less than the safety distance. After the time and location of the occupancy grid prediction model are obtained, the nodes affected by the occupancy grid prediction model are recorded. The formula for the distance between the mobile robot and the dynamic obstacle is as follows, where (*x*_{a}, *y*_{a}) represents the position of the mobile robot, (*x*_{b}, *y*_{b}) represents the position of the dynamic obstacle, *S* represents the safety distance, and let *S*_{0} be the judgment limit for safety distance.

Occupancy grid prediction model predicts the distance of dynamic obstacle based on the track length of dynamic obstacle when the distance between mobile robot and dynamic obstacle is less than safety distance. As shown in the following formula (15), *F* (*s*) represents the cumulative length of the dynamic obstacle track length *S*_{b} when the distance between the mobile robot and dynamic obstacle is less than the safety distance, and the rounded-up value is the predicted distance of the algorithm for dynamic obstacles.

The rules for calling the occupancy grid prediction model are as follows:

1. When the mobile robot detects an unknown dynamic obstacle, it is predicted based on the occupancy grid prediction model to obtain the initial predicted position, time, and occupied grids of the dynamic obstacle.

2. According to the position, time, and occupied grids obtained in the first step, the path nodes that may be affected will be added to the local taboo table. The TTACO will be run, and every time a moment has passed, the path nodes that the dynamic obstacle has passed and are no longer possible to pass are removed from the local taboo table until all the occupancy grids do not exist in the local taboo table.

3. We only consider the possible path nodes during the period of time when the dynamic obstacle has an impact on the mobile robot. Therefore, if the dynamic obstacle deviates from the red predicted line during this process, we repredict and repeat the above processes 1, 2, and 3.

When removing path nodes from the local taboo table, we adopt dislocation overlap elimination. To be specific, we overlap the occupancy grid prediction maps of two moments to obtain the occupancy grid map of the next moment. The schematic diagram is shown in Figure 6 below.

The predictive model is used to predict the possible path nodes of dynamic obstacles in the future moments, study the influence of the possible path nodes of dynamic obstacles on the path of the mobile robot, and give the mobile robot enough time to meet the real-time requirements of the algorithm in the high dynamic environment.

## Dynamic Obstacle Avoidance

### Two Cases of Dynamic Obstacle Avoidance

Dynamic obstacle avoidance is divided into two situations: “encounter” and “chase.” Such division is based on the angle between the speed direction of the mobile robot and the dynamic obstacle speed. When the angle is > 90°, the “encounter” happens, and when it is ≤ 90°, the “chase” occurs. In both cases, the occupancy grid prediction method is used to avoid obstacles. However, when the mobile robot is in a chasing situation with a dynamic obstacle and as the distance is getting closer and closer, it cannot safely pass through. That is, in the TTACO, when the movement of the dynamic obstacle reaches the last predicted ending position, the ant still has not avoided the dynamic obstacle, and the occupancy grid prediction model is called again. If a better path cannot be obtained after calling the model again or several times, the next-generation ants of the TTACO will choose a safe position according to the occupancy grid prediction model and wait for a period of time when avoiding obstacles.

### Ant Colony Information Inheritance Mechanism

When using the occupancy grid prediction model for dynamic obstacle avoidance, in order to improve the calculation speed of the algorithm, we put forward the ant colony information inheritance mechanism. The initial pheromone and taboo table of ACO are determined as follows:

Among them, *Tua*_{d} is the initial pheromone when the algorithm is called to avoid dynamic obstacles. *Tua* is the original ant colony pheromone matrix, and the values in the matrix are all constant C. *Tua*_{s} is the pheromone matrix left by the global ACO algorithm after the upper and lower limits are optimized. *TABU*_{d} is the global taboo table that calls the ant colony algorithm when the mobile robot avoids dynamic obstacles, and *TABU*_{s} is the global taboo table obtained after the global ACO algorithm runs, and it contains all deadlock position information. Through the inheritance mechanism of the above initial pheromone and the global taboo table, the running speed of the algorithm can be accelerated.

### Algorithm Flow

The pseudocode of this algorithm is shown in Table 2. *TABU*_{s} is a local taboo list; *allow*_{k} is the list of optional nodes; and *TABU*_{lock} is the deadlock taboo list. And the computational complexity of the algorithm is O (n ^{∧} 3). The robot first performs global path planning according to the TTACO and then detects whether there are unknown dynamic obstacles and dynamic obstacle information through its sensors. If there are dynamic obstacles, the occupancy grid prediction model will be used to predict based on the information of the detected dynamic obstacles, and the TTACO is called to replan the path after the ant colony pheromone inheritance mechanism is activated.

## Simulation Experiment

In order to verify TTACO's algorithm convergence speed, global search ability, and capability to avoid dynamic obstacles, a simulation experiment of dynamic obstacle avoidance was carried out in a 30 × 30 simulated factory environment. In order to further verify the performance of the algorithm, it was compared with the algorithms produced by similar articles. The computer performance parameters for the simulation are Intel Core i5-6300HQ processor with a main frequency of 2.30 GHz, a memory size of 8G, the running system of Windows 10, and the simulation software of MATLAB.

### Simulation Experiment in Dynamic Environment

The following simulation is to verify the path planning ability and dynamic obstacle avoidance ability of TTACO in dynamic environment. As shown in Figure 7, Environment 1 is a simulated 30 × 30 factory environment, with three dynamic obstacles set up along the way. Obstacle 1 is a dynamic obstacle moving upward at a speed slightly faster than the mobile robot; Obstacle 2 is a dynamic obstacle moving to the left with a slightly slower speed; and Obstacle 3 is a dynamic obstacle moving downward whose speed is the same as that of the mobile robot. The golden path in the picture is the current planned global path, and the red path is the trajectory of the mobile robot after it has walked along the path. The pink path node is the position of the dynamic obstacle when calling the occupancy grid prediction model. The red path node is the predicted walking path for dynamic obstacles. The yellow path node is the path node where the dynamic obstacle may deviate and make a turn. When the mobile robot encounters a dynamic obstacle, the occupancy grid prediction model is called, and the path is replanned. From the results, we can see that the mobile robot first moves forward along the preset path; then, it calls the obstacle avoidance algorithm and occupation prediction model three times and replans the path three times. The first two calls of occupancy grid prediction model have successfully enabled the robot to avoid the obstacles, and the last call also achieved the purpose of obstacle avoidance through changing the path.

### Comparison of Similar Algorithms

In order to further verify the performance of the TTACO algorithm, the following four sets of comparative experiments are designed to compare the algorithm in this article with the algorithms from other articles.

Environment 2 is shown in Figure 8 as the environment map in Dai et al. (2019). The improved ant colony algorithm in the literature uses the characteristics of A * algorithm and maximum–minimum ant system and introduces the retraction mechanism to solve the deadlock problem. IACO is used to represent the algorithm in Dai et al. (2019). It can be seen from Figure 8 and Table 3 that both TTACO and IACO successfully find a path; however, the path obtained by TTACO is shorter and converges faster, with the optimal path length being 49.5564 and the average time of iteration 6.7, whereas ACO fails to plan a path.

Environment 3 is shown in Figure 9 as the environment map in Zhang et al. (2019). In the algorithm, the ant colony is inspired to search the planned path by the improved artificial potential field algorithm. At the same time, the negative feedback channel is constructed by the convergence times, and the size of the environment map is 20 × 20. IACO1 is used to represent the algorithm in Zhang et al. (2019). It can be seen from Figure 9 and Table 3 that the path and times of iteration obtained by the algorithm in this article are better than those given by Zhang et al. (2019) and the ACO algorithm. The optimal path length is 30.97, and the average time of iteration is 3.5.

Environment 4 is shown in Figure 10 as the environment map in Xiaoxu et al. (2018); this article mainly adopts the strategy of death and rollback for the deadlock problem of ant colony, improves the state transition rules of ant colony algorithm, optimizes the composition structure of pheromone, and replaces the algorithm in the literature with IACO2, with the map size of 30 × 30. From Figure 10 and Table 3, we can see that the path obtained by the algorithm in this article is shorter, which is 44.12, and the average time of iteration is nine times, which is better than the algorithm in Xiaoxu et al. (2018) and ACO.

Environment 5 is shown in Figure 11 as the environment map in Ma and Mei (2020). The reference algorithm is JPACSPF, which combines the search strategy of ant colony algorithm and jump point search algorithm, and introduces the decreasing coefficient of potential field resultant force. The size of environment map is 30 × 30. Figure 11 shows the paths planned by different algorithms. It can be seen from Figure 11 and Table 3 that the path obtained by the TTACO algorithm is shorter than the path obtained by JPACSPF and ACO, and the average time of iteration of TTACO is better than that of the ACO algorithm. The optimal path length is 43.9411, and the average time of iteration is 9.

By comparing with other algorithms, it can be concluded that both the length of the path and the time of iteration in TTACO are better than those in similar literatures, and the algorithm of this article can get a better path in a shorter time than the ACO.

## Conclusion

This article introduces a novel approach using the TTACO to solve the path planning problem of mobile robots in a dynamic environment. Through the improved adaptive initial pheromone, the death rollback strategy, and the improved pheromone update strategy, the algorithm's convergence speed and global search ability are effectively improved. The three-step arbitration method and occupancy grid prediction model based on the time taboo strategy further improve the algorithm's global search ability and the capability to avoid dynamic obstacles. Through simulation on MATLAB, the experimental results prove that the algorithm can plan a better path in a dynamic environment, so as to realize the navigation of the mobile robot in a dynamic environment. Although the algorithm proposed in this article is novel and has some practical significance, the experimental results need to be further improved, and the details of the article need to be further polished.

## Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

## Author Contributions

NX proposed time taboo ant colony optimization (TTACO). XZ provided algorithm improvement guidance and general direction control. YX tested and annotated the algorithm. XY carried out MATLAB simulation in different environments based on the algorithm. JM participated in the preparation of the algorithm and the writing of the paper. All authors contributed to the article and approved the submitted version.

## Funding

This work was supported by the National Natural Science Foundation of China (No. U1933123).

## Conflict of Interest

XY was employed by the company “Civil Aviation Logistics Technology Company Limited.”

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.

## References

Boukens, M., Boukabou, A., and Chadli, M. J. A. S. (2019). A real time self-tuning motion controller for mobile robot systems. *IEEE/CAA J. Automat. Sin.* 6, 84–96. doi: 10.1109/JAS.2018.7511216

Dai, X., Long, S., Zhang, Z., and Gong, D. (2019). Mobile robot path planning based on ant colony algorithm with A* heuristic. *Method* 13:15. doi: 10.3389/fnbot.2019.00015

Fan, X., Luo, X., Yi, S., Yang, S., and Zhang, H. (2003). Optimal path planning for mobile robots based on intensified ant colony optimization algorithm. *IEEE Int. Conf. Robot*. 1, 131–136. doi: 10.1109/RISSP.2003.1285562

Ferguson, D., Darms, M., Urmson, C., and Kolski, S. (2008). Detection, prediction, and avoidance of dynamic obstacles in urban environ ments. in 2008 IEEE intelligent vehicles *Symposium* 1, 1149–1154. doi: 10.1109/IVS.2008.4621214

Jiang, M., Wang, F., and Ge, Y. (2019). Research on path planning of mobile robot based on improved ant colony algorithm. *Chin. J. Sci. Instrum.* 40, 113–121. doi: 10.19650/j.cnki.cjsi.J1804429

Keyvan, M., Razeghi-Jahromi, M., Homaifr, A., and Sinica, H. (2020). A stable analytical solution method for car-like robot trajectory tracking and optimization. *IEEE/CAA J. Automat. Sin.* 7, 42–50. doi: 10.1109/JAS.2019.1911816

Khan, A. H., Cao, X., Li, S., and Luo, C. (2020a). Using social behavior of beetles to establish a computational model for operational management. *IEEE Trans. Comput. Soc. Syst.* 7, 492–502. doi: 10.1109/TCSS.2019.2958522

Khan, A. H., Hamza, K., Xinwei, C., and Shuai (2020b). BAS-ADAM: An ADAM based approach to improve the performance of beetle antennae search optimizer. *IEEE/CAA J. Automat. Sin.* 7, 150–160. doi: 10.1109/JAS.2020.1003048

Khan, A. H., Li, S., and Luo, X. (2020c). Obstacle avoidance and tracking control of redundant robotic manipulator: an RNN-based metaheuristic approach. *IEEE Trans. Indus. Inform.* 16, 4670–4680. doi: 10.1109/TII.2019.2941916

Kim, B., Kang, C. M., Kim, J., Lee, S. H., Chung, C. C., and Choi, J. W. (2017). “Probabilistic vehicle trajectory prediction over occupancy grid map via recurrent neural network,” in *2017 IEEE 20th International Conference on Intelligent Transportation Systems*. Yokohama: ITSC. doi: 10.1109/ITSC.2017.8317943

Li, W., Tan, M., Wang, L., and Wang, Q. (2019). A cubic spline method combing improved particle swarm optimization for robot path planning in dynamic uncertain environment. *Int. J. Adv. Robot. Syst.* 16:172988141989166. doi: 10.1177/1729881419891661

Li, X., Sun, Z., Cao, D., Liu, D., and He, H. (2017). Development of a new integrated local trajectory planning and tracking control framework for autonomous ground vehicles. *Mech. Syst. Signal Process.* 87, 118–137. doi: 10.1016/j.ymssp.2015.10.021

Liu, K., and Zhang, M. (2016). “Path planning based on simulated annealing ant colony algorithm,” in *2016 9th International Symposium on Computational Intelligence and Design*. Hangzhou: ISCID, 461–466. doi: 10.1109/ISCID.2016.2114

Luan, X. L., Gong, F. X., Wei, Z. Q., Yin, B., and Sun, Y. T. (2015). “Using ant colony optimization and cuckoo search in AUV 3D path planning,” in *The 2015 International Conference on Software Engineering and Information Technology*. Guilin: SEIT2015, 208–212. doi: 10.1142/9789814740104_0041

Luo, Q., Wang, H., Zheng, Y., and He, J. (2019). Research on path planning of mobile robot based on improved ant colony algorithm. *Neural Comput. Appl.* 32, 1555–1566. doi: 10.1007/s00521-019-04172-2

Ma, X. L., and Mei, H. (2020). Mobile robot global path planning based on improved ant colony system algorithm with potential field. *J. Mech. Eng*. 19–27. doi: 10.3901/JME.2021.01.019

Mohanty, P. K., and Parhi, D. R. (2016). Optimal path planning for a mobile robot using cuckoo search algorithm. *J. Exp. Theor. Artif. Intell.* 28, 35–52. doi: 10.1080/0952813X.2014.971442

Qu, H., and Huang, L. W. (2015). Research of improved ant colony based robot path planning under dynamic environment. *J. Univ. Electr. Sci. Technol. China* 44, 260–265. doi: 10.3969/j.issn.1001-0548.2015.02.017

Rimon, E., and Koditschek, D. E. (1992). Exact robot navigation using artificial potential functions. *IEEE Trans. Robot. Autom.* 8, 501–518. doi: 10.1109/70.163777

Riosmartinez, J., Escobedo, A., Spalanzani, A., and Laugier, C. (2013). “Intention Driven Human Aware Navigation for Assisted Mobility,” in *Workshop on Assistance & Service Robotics in A Human Environment at Iros* (Tokyo).

Rummelhard, L., Nègre, A., Perrollaz, M., and Laugier, C. (2014). *Probabilistic Grid-based Collision Risk Prediction for Driving Application.* San Francisco, CA: ISER. doi: 10.1007/978-3-319-23778-7_54

Xiaoxu, W., Guoliang, W., Yan, S., and Xuegang, H. J. (2018). Improved ACO-based path planning with rollback and death strategies. *Syst. Sci. Cont. Eng.* 6, 102–107. doi: 10.1080/21642583.2018.1471426

Xu, K. B., Lu, H. Y., and Huang, Y. (2019). Robot path planning based on double-layer ant colony optimization algorithm and dynamic environment. *Acta Electr. Sin.* 47, 2166–2176. doi: 10.3969/j.issn.0372-2112.2019.10.019

Zhang, Q., Cheng, B. K., Liu, X. Y., Liu, X. Y., and Machinery, H. Y. (2019). “Ant colony optimization with improved potential field heuristic for robot path planning”. *in 2018 37th Chinese Control Conference (CCC)* (Wuhan: Transactions of the Chinese Society for Agricultural Machinery), 5317–5321. doi: 10.6041/j.issn.1000-1298.2019.05.003

Zhao, Q., Chen, Y., Luo, B., and Zhang, L. P. (2020). A local path planning algorithm integrating pedestrian forecast information. *Trans. Chin. Soc. Agric. Mach.* 50, 30–39. doi: 10.13203/j.whugis20200105

Keywords: path planning, mobile robot, ant colony algorithm, dynamic environment, time taboo strategy

Citation: Xiong N, Zhou X, Yang X, Xiang Y and Ma J (2021) Mobile Robot Path Planning Based on Time Taboo Ant Colony Optimization in Dynamic Environment. *Front. Neurorobot.* 15:642733. doi: 10.3389/fnbot.2021.642733

Received: 16 December 2020; Accepted: 25 January 2021;

Published: 01 March 2021.

Edited by:

Zhan Li, University of Electronic Science and Technology of China, ChinaReviewed by:

Dechao Chen, Hangzhou Dianzi University, ChinaAmeer Hamza Khan, Hong Kong Polytechnic University, Hong Kong

Xin Luo, Chongqing Institute of Green and Intelligent Technology (CAS), China

Copyright © 2021 Xiong, Zhou, Yang, Xiang and Ma. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Xinzhi Zhou, xz.zhou@scu.edu.cn; Xiuqing Yang, yangxiuqing@caacetc.com; Yong Xiang, xiangyong@caacetc.com