Next Article in Journal
Quality Attributes Prediction of Flame Seedless Grape Clusters Based on Nutritional Status Employing Multiple Linear Regression Technique
Previous Article in Journal
Exogenous Proline, Methionine, and Melatonin Stimulate Growth, Quality, and Drought Tolerance in Cauliflower Plants
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimizing the Path of Plug Tray Seedling Transplanting by Using the Improved A* Algorithm

1
College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
2
College of Mechanical Engineering and Automation, Beihang University, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Agriculture 2022, 12(9), 1302; https://doi.org/10.3390/agriculture12091302
Submission received: 19 July 2022 / Revised: 10 August 2022 / Accepted: 23 August 2022 / Published: 25 August 2022
(This article belongs to the Section Agricultural Technology)

Abstract

:
In greenhouse nurseries, one of the important tasks of the automatic transplanter is replanting missing or bad seedling holes with healthy seedlings. This requires the transplanter to spend significant time moving between the supply trays and target trays during replanting. The diversity and complexity of the transplanting routes affect transplanter efficiency. Path planning method can find a better path for the manipulator and improve the efficiency of transplantation. The A* algorithm (A*), which is one of the optimal path search algorithms, is often used in practical applications of path planning. In this paper, the heuristic function of the A* is optimized by the ant colony algorithm (ACA), and an improved A* algorithm (Imp-A*) is obtained. Simulation tests and transplanting trials of Imp-A*, A*, ACA, Dijkstra (DA), and common sequence method (CSM) were carried out using 32-, 50-, 72-, and 128-hole plug trays. The results show that Imp-A* inherits the advantages of A* and ACA in terms of path planning length and computation time. Compared to A*, ACA, DA, and CSM, the transplanting time for Imp-A* was reduced by 2.4%, 12.84%, 11.63%, and 14.27%, respectively. In just six trays of transplanting tasks, Imp-A* saves 60.91 s compared to CSM, with an average time saving of 10.15 s per tray. The combination optimization algorithm has similar application prospects in agriculture.

1. Introduction

Seedling transplanting has the advantage of climate compensation, which can improve the survival rate and output. It has replaced the traditional direct seeding method in the North-West of China [1,2,3,4]. Seedling leakage, seedling germination, and seedling stunting occur in the cultivation of seedlings, with healthy seedlings accounting for 80–95% of the population [5]. To ensure the consistency and effectiveness of field transplanting, seedling growth must be monitored, and seedlings missing, or bad seedling holes should be eliminated and replaced with healthy seedlings. At present, the common sequence method (CSM) is still used for the replanting of seedlings, but this method is invalid in path planning [6].
The researchers used machine vision technology [6,7,8,9] and image processing algorithms [10,11,12] to detect the growth status of plug tray seedlings and identify unhealthy seedlings in preparation for replanting. When the replanting of seedlings begins, the manipulator needs to grasp the healthy seedlings from the plug tray that supplies seedlings and transplants them to the plug tray that needs replenishment seedlings, and this process involves the reciprocating movements of the manipulator with different routes. In the case of manipulator moving speed, the shorter the moving route, the higher the transplanting efficiency. Seedling transplanting path planning is similar to the traveling salesman problem (TSP) [13,14], where the optimal path is found after passing through all the city nodes entering from the source. The length of the transplanting path and computation time are two important indexes to measure the algorithm model. Greedy algorithm (GRA) and genetic algorithm (GA) are used to solve single-source path planning. According to the characteristics of this algorithm, GRA looks for local optimal solutions step by step, the final result may be infinitely close to the optimal solution, but it requires more time than other algorithms. GA has advantages in computation time, but it does not always find the optimal solution. The greedy genetic algorithm (GGA), developed by combining GRA and GA, has been used to good effect for the thinning and transplanting of plug tray seedlings, with improved path optimization and computation time [15,16,17,18,19,20,21]. Ant colony algorithm (ACA) is a common algorithm to solve combinatorial optimization problems, and its optimal path is determined by the pheromone concentration released by bionic ants. However, the biggest drawback of the ACA is that it tends to fall into local optimality and converge too slowly. Resulting ACA does not perform well in terms of path planning length and algorithm computation time, but improved and optimized ACA often shows excellent performance [13,22,23,24,25,26].
To improve the computing speed of the path planning algorithm model, researchers have begun to explore more effective algorithm models. A* algorithm (A*), as one of the optimal path search algorithms, adopts the breadth-first search strategy, a heuristic function to guide the search direction, effectively shortens the path search length computation time. With the development of computer science, people’s demands and expectations of the A* algorithm have grown more and more, and they have started to search for faster and more efficient ways to improve the A* algorithm. The combination of ACA and A* as a new method, by combining bidirectional search with intelligent ACA, the selection factor of the heuristic function of A* is obtained, then use the factor to improve the algorithm function and get a more efficient improved A* algorithm (Imp-A*) [27,28]. However, there are relatively few cases in which Imp-A* is applied to transplanter path planning.
The calculation time and path optimization of the seedling transplanter path planning algorithm model is studied. Under the guidance and optimization of the heuristic function of ACA, this method is applied to seedling transplanting path planning of transplanters based on the network grid model. The Imp-A* searches from source O to target grid node E and also searches from target grid node E to source O. The algorithm terminated when the same coincidence grid node is searched in both directions. By training the heuristic function of A* with ACA, more accurate heuristic function factors can be obtained in a shorter time, and the efficiency of A* can be improved. The main contributions of this study were as follows:
  • The A* algorithm was optimized and improved in combination with the ACA, an improved A* algorithm (Imp-A*) was obtained, and the algorithm model was applied to the field of plug tray seedling transplantation successfully, and it provided the optimal path for replanting seedlings of the manipulator.
  • The path planning length and calculation time data of the Imp-A* model were obtained through simulation tests, and compared with simulation data of other algorithm models, the optimal route length and calculation time of the algorithm model were obtained.
  • Based on the simulation model, the transplanting trials of replanting were designed, the Imp-A* in this paper was applied to the practical operation, and the robustness of the algorithm was tested; the efficiency and practicability of the Imp-A* were verified.
The rest of the paper is divided into the following sections: The second section introduces the working principle of transplanter and several path planning algorithm models. In the third section, the simulation test and transplanting trials results are explained and analyzed in detail. Finally, Section 4 and Section 5 describe the discussion and introduction of this study.

2. Materials and Methods

2.1. Structure of the Device and Path Planning Principles

Figure 1a shows the three-dof transplanting device supporting X, Y, and Z movements. As shown in Figure 1b, dark circles represent healthy seedlings, and white circles represent holes removed from poor-quality seedlings. When transplanting, the manipulator starts at the O-source point and transplants healthy seedlings from the seedling supply trays (referred to as S tray hereafter) to the inferior seedling holes in the target trays (referred to as T tray hereafter).
The random position of the holes in the S tray for healthy seedlings and the T tray for poor quality seedlings determines the variety and complexity of the transplanting path planning. For a given control system parameter, the three-dof transplanting system moves at a given speed, and the transplanting unit needs to be paused during transplanting, depending on the speed at which the transplanting task is completed. The transplanting path optimization is based on the traditional Common Sequence Method (CSM) and uses a path search algorithm to plan the shortest possible reciprocal movement sequence for the manipulator, shortening the length of its movement route to reduce the pause time of the transporter and improve the efficiency of the transplanter.

2.2. Path Planning Methods

The seedling trays with different numbers have the same external size (560 mm in length and 280 mm in width). A total of 32 (specification: 4 × 8), 50 (specification: 5 × 10), 72 (specification: 6 × 12), and 128 (specification: 8 × 16) holes are frequently used in the North-West of China. It is known from reference [21] that the randomness of the positions of M 1 M G holes in the S tray and N M N G healthy seedlings in the T tray determine that there are paths available for replanting seedlings. In the case of 50 holes, if inferior quality seedlings account for 5–20% of the total, M = 5 in the S tray and the healthy seedlings N = 45 in the S tray, there are 45 ! × 5 ! / 45 5 ! 1.76 × 10 10 alternative transplanting paths. If the traversal method is used to find the optimal path, the calculation is too much, and the operation time is too long, it is not in line with the concept of fast and efficient automatic transplanting equipment. Therefore, it is necessary to find an effective path planning algorithm.
As shown in Figure 2a, the location of the seedless holes in visual image processing is transmitted to PC in the form of a digital matrix that is converted to a grid map of coordinates when a path planning model is established. Set the S tray numeric matrix to S and the T tray numeric matrix to T, scanning the matrix from left to right, top to bottom, corresponding to the coordinate grid, as shown in Figure 2b. The position of the holes in the S tray can be expressed in S i , and the position of holes in the T tray can be expressed in Tj, corresponding position of the holes of missing and bad seedlings.
The length of path planning is the sum of the horizontal and vertical distances. For greater clarity, the path is represented by the shortest distance between two points. Starting with the coordinates of source point O, the manipulator moves toward the X and Y axes. First, the manipulator reaches the S tray and selects a healthy seedling to transplant into the hole in the T tray. The distance traveled by the manipulator for a single replanting task can be expressed as:
x S i x T j + y S i y T j + ( x S i x T j ' ) + y T j ' y S i
where x and y are the horizontal and vertical coordinates of the holes position of the manipulator, x S i , and are the horizontal and vertical coordinates of healthy seedling holes located in the S tray to be captured in the next step, x T j ' , and are the horizontal and vertical coordinate of the holes location of the T tray to be transplanted into seedlings.
Where x T j and y T j are the horizontal and vertical coordinates of the position of the cavity in which the transplanter was located at the time of the previous transplanting step, and x S i and y S i are the horizontal and vertical coordinates of the position of the healthy cavity in the supply cavity to be picked up in the next step, and x T j ' and y T j ' are the horizontal and vertical coordinates of the empty holes in the destination holes to be replanted.

2.2.1. Common Sequence Method (CSM)

CSM is one of the most commonly used transplanting methods in practical production. The classic method is to scan the S and T tray from top to bottom, from left to right, and remove healthy seedlings from the S Tray, transplanting healthy seedlings into the T tray. This method does not plan or compare the path of plug seedlings nor involve the operation of a path planning algorithm. There is no algorithm for calculating time because the path planning of the process has been determined. Therefore, the CSM only takes part in the comparison test of the path planning length and does not take part in the comparison test of the calculation time (Figure 3).

2.2.2. Dijkstra Algorithm (DA)

DA is a greedy algorithm that solves the problem of the shortest path for a single source by first finding the shortest path, then the second shortest path is found by referring to this shortest path until the shortest path from the source to the target node is found. DA was applied to pot seedling transplanting path planning, which could be transformed into the scanning of the S tray and T tray from bottom to top and from left to right; starting from the source point, the manipulator grasps the healthy pot seedlings in the S tray nearest to itself and transplants them to the first hole position scanned in the T tray. Then, using this location as a source of greed, look for the nearest healthy pot seedlings in the S tray and transplant them to the next hole scanned in the T tray (each node can be visited only once). As shown in Figure 4, circulate until all the holes in the T tray are filled, and transplanting all healthy pot seedlings into the S tray was considered an experimental group. Several groups of experiments were carried out, and the calculation time required by the DA model to complete the path planning and the path length of transplanting were counted.

2.2.3. Ant Colony Algorithm (ACA)

ACA means that the feasible solution of the problem to be optimized is expressed by the path of ants, and all the paths of the ant colony constitute the solution space of the problem to be optimized. Ants with shorter paths release more pheromones, and over time, the accumulation of pheromones increases in ants with shorter paths, and the number of ants choosing path increases [25,27]. Finally, the ant colony focuses on the optimal path under the action of positive feedback, and the corresponding path is the optimal solution to the problem to be optimized.
To ensure that each healthy seedling grid in the S tray and each empty grid in the T tray can be visited only once, Openlist and Closelist were created to store the grids that need to be visited, and the grids were visited by ants. Closelist allows ants to retrace their journeys after completing a path search. Assuming that the n ant set U remains the same, and in U, the starting point O for all ants is used as the starting point U. Setting the rules for each ant’s movement: from the starting point to the healthy seedling hole in the S tray, the hole will be added to the Closelist when they leave, then the ant moves to the hole position in T tray, and when they leave, the hole will be added to the Openlist. The ant must then maintain a healthy seedling position in S tray and circulate until it visits all the holes. Any ant k will make a probabilistic decision when implementing these rules. After selecting grid i, it visits the next grid j with the following probabilities:
P ij k ( t ) = { τ i j ( t ) α η i j β j N j k τ i j ( t ) α η i j β ,   if   i N j k 0 , e l s e
When the ant is in j, it visits the next grid i with the following probabilities:
P ij k ( t ) = { τ i j ( t ) α η i j β i i k τ ij ( t ) α η ij β ,   if   j N i k 0 ,   else
where τ ij t is the pheromone between grid i and j after t iterations, η = 1 / d ij is the heuristic information, and d ij is the distance from grid i to grid j. α is the degree effect of pheromone concentration on ant behavior, β is the degree effect of path length on ant behavior, N i k denotes an unvisited seeded hole in grid S, and N j k denotes an unvisited empty hole in the grid T.
When n ants pass through all the holes in the grid T, the pheromones in their path are with the Equations (4) and (5) as follows:
τ ij t + 1 = 1 ρ τ ij t + Δ τ ij t , t + 1
Δ τ ij t , t + 1 = k 1 m Δ τ ij k t , t + 1
where ρ is the fluctuation of pheromones ( ρ 0 , 1 ), Δ τ ij k t , t + 1 is the total amount of pheromones released by ant k on the path of the current cycle (i, j). Δ τ ij t , t + 1 denotes the pheromone increment on the path (i, j) in each cycle. Pheromones can be updated by various methods, and volatilization is one way of pheromone update; when the path is not selected by ants, the pheromone on that path will also volatilize over time, which leads to an infinite accumulation of pheromones that mislead ants. Δ τ ij k t , t + 1 can be defined as follows:
Δ τ ij k ( t , t + 1 ) = { Q / L k ,   path   ( i , j )   is   visited   in   t   iterations   0 ,   else
where Q is a constant representing the number of pheromones stored in a given ant path search after an iteration, L k being the total length of the ant k path search.
ACA flowchart, shown in Figure 5 and Figure 6a, is the ACA’s roadmap for planning a 50-hole plantings path. Set the maximum number of iterations per path search performed by the ACA to 50, and the variation between the optimal path length and average path length of the path optimization task segment and the number of iterations performed by the ACA model is shown in Figure 6b. Experimental results show that the algorithm is effective and has good convergence. Thus, the relatively optimal transplanting path is the route chosen by the vast majority of ants.

2.2.4. A* Algorithm (A*)

A* is one of the most popular and effective heuristic search path optimization algorithms. The innovation of this algorithm is to select the next node using the known global information and carry out probability analysis and cost analysis [28]. According to the estimated distance between the current node and the target node, the algorithm evaluates the nodes on the optimal path, realizes the search of the nearest node, and improves search efficiency.
The heart of A* is the creation of the heuristic function. Assuming that ε is the current grid node position, the heuristic function for this node can be expressed as:
f ε = g ε + h ε
where g ε is the actual distance function from the source point O to the current grid (S grid) node ε , and h ε is the minimum estimated distance from the current grid node ε to the target grid(T grid) node e. Since h ε is an estimate of the minimum distance ignoring obstacles and movement rules, h ε is defined as the Euclidean distance from the S grid node ε to the T grid e in the path-finding model; if we make h = 0, A* will degrade to DA.
Suppose the source point coordinates are O O x , O y , a healthy seedling hole coordinates S ix , S iy in the S grid is the intermediate node, and empty hole coordinates T jx , T jy in the T grid is the target node, then the heuristic function can be expressed as:
f ε = g ε + S ix T jx 2 + S iy T jy 2
where g ε = t = 1 n d t , d t is the distance between two neighboring grids.
Instead of traversing all nodes, A* introduces heuristic information to guide the movement to the target node, making it easier for the algorithm to accelerate computations. However, ignoring a large number of “dotted points” in the search process can affect computations. Because of the complexity of the real environment, it is sometimes wrong to introduce heuristic information into the cost function, so we improved and optimized it in conjunction with the ACA.

2.2.5. Improved A* Algorithm (Imp-A*)

The A* uses a heuristic function to evaluate the cost from the current node ε to the target node e. In grid search mapping, the heuristic function refers to the Manhattan distance from the current node to the target node:
h ( ε ) = | S ex T ε x | + | S ey T ε y |
where S ex and S ey are the x and y coordinates of the current node, and T ε x and T ε y are the x and y coordinates of the target node.
Due to the existence of obstacles in the actual environment, h ε in Equation (9) is not necessarily smaller than h ε in Equation (7); this will result in the shortest route in the plan not necessarily being the best or taking the least time. Based on this question, we introduce the Imp-A*. Imp-A* searches from source O to target grid node e and also searches from target node e to source O. The algorithm terminates when the same grid node is searched in both directions. The optimization of the grid method transplanting path for inserted tray seedlings is a non-negative weighting problem, and there are no other dynamic influences, so this study incorporates ACA to train the heuristic function of A* to improve the efficiency of A*.
The speed of the algorithm depends on the heuristic function, and using ACA to train the heuristic function improves the flexibility of the algorithm and brings the algorithm closer to the actual value. However, the biggest drawback of ACA is its tendency to fall into local optimum solutions. In this paper, we propose an ACA based on parallel rewards for this problem, where parallelism means multiple backups for ants, and rewards mean additional information to the optimal path as well as rewarding the pheromone of the paths adjacent to the optimal path. If additional pheromones are rewarded to the current optimal path, the formula is as follows:
Δ ij ε j = ρ Δ ij ε j
where Δ ij ε j is the additional reward pheromone, ρ is the reward factor, and ε j is the set of nodes.
Pheromone update formula:
ij ε j = ρ × ij ε j + Δ ij ε j + Δ ij ε j
The pheromone of the reward to the neighboring path is denoted as:
Δ ij ε j = ( ρ   ) m Δ ij ε j
where m is the reward coefficient m N and m is positively related to the distance between adjacent and optimal paths. Assuming that in a grid system of n nodes, m artificial ants are moving at speed υ k . Ant k is searching for the optimal path, and the current node is evaluated using a bidirectional A* based on a parallel reward ant colony system to train the heuristic function. Initialize the pheromone of the raster topology edge as < ε i , ε j > , then:
ij ε j = const
where const is a constant, Δ ij ε j = 0 , then ij ε j = 1 / d ij , where d ij is the distance from the node ε i to node ε j , then the following equation is established:
μ ij ε j = 1 / TC ij max TC ij design TC ij average TC ij design L ij 2 ρ ij υ k
where μ ij ε j is the heuristic information function, TC ij max is the hourly maximum ant colony flow, TC ij design is the set hourly ant colony flow, TC ij average is the hourly average ant colony flow, υ k is the current velocity, ρ ij is the current flow density, and L ij is the path distance. Nmax is the maximum number of cycles of the ACA, which is achieved by the following steps.
Assuming that ε O is the source node and ε e is the target node, the grid map is searched from the original node using the bidirectional A* algorithm. If the node ε i is not the target node, it needs to be extended in the next cycle, denoting the set ε j of this node denoted as:
f ε j = g ε j + h ε j
Using a parallel reward ant colony system to train h ε j , computing from the current node ε jx to the target node ε jx ε j , placing m ants and their k backup ants into the node ε jx , using the following equation for selection:
p ij k V jx = { arg   max   { ij x k ε j x α η ij x k ε j x β } · · · ( 1 )           q q 0 ij x k ε j x α η ij x k ε j x β μ ij x k ε j x γ x = 1 n ij x k ε j x α η ij x k ε j x β μ ij x k ε j x γ · · · ( 2 )         o t h e r w i s e
where q 0 is a fixed value and q is a random number. The next node is selected according to Equation (1) if q 0 q ; otherwise, the next node is selected according to Equation (2).
Each ant will choose a least-cost path after one cycle, and the pheromone will be updated as the ant chooses its path:
ij ε j = 1 ρ ij ε j + Δ ij k ε j
where ρ is the pheromone volatility and Δ ij k ε j = Q / d ij is the total amount of pheromone released by ant k on the pathway.
When m ants have all reached the target node, the optimal path is selected based on the minimum cost path obtained by the global pheromone update in step (3), and additional pheromones are rewarded according to the following equation:
ij ε j = 1 ρ ij ε j + Δ ij ε j + Δ ij ε j
where Δ ij ε j = ρ Δ ij ε j , ρ is the pheromone reward factor and:
Δ ij = k = 1 m Δ ij k
where Δ ij is the amount of pheromone reward, and are the pheromones released by ant k on the path. Δ ij k = Q / L , where L is the distance traveled by the ants on the optimal path to reach the target node in one cycle. Moreover, additional pheromones need to be rewarded to neighboring paths:
ij y ε j y = 1 ρ ij y ε j y + Δ ij y ε j y
where Δ ij y ε j y = ( ρ   ) n Δ ij x ε j x , and Δ ij y ε j y are the amount of pheromone reward.
When the number of loops reaches Nmax, the optimal path obtained is compared and the smallest path is selected. The estimated cost of the optimal path is based on the following formula:
h ε j = Min T
where T = L ij / υ k + p ij T ij + pT is the length of each road segment on the optimal path.
To find the best path to the other nodes, get an estimated distance for each node through the following steps:
f ε j oe = g ε j oe + h ε j oe
where ε j oe ε j , insert nodes into an openlist and rank them in descending order according to their assessment.
Storing the source points in the Openlist table, indicating that the source node O is the smallest node, and then set the cost of O to g 1 o = 0 , and the cost of the other nodes to infinity.
After accessing the original node, perform the following actions on the remaining node n:
  • Calculate the cost of each successor node ε using the concurrent reward-based ACA:
    f 1 ' ε = g 1 ε + h 1 ' ε
  • Set visiting rules to give priority to all nodes with status “1” in the S grid and then to those with status “0” in the T grid.
  • Search for the target node and add it to the Openlist.
Delete the node m with the smallest cost f 1 ' ε from the Openlist, and change the search status of the node ε to Least, determine whether node m satisfies the above two termination conditions. If they are satisfied, the last step is performed; if not, the following steps are performed at the next node.
Determining the termination node k of a bidirectional search based on the above termination conditions can obtain the same optimal path as the A* algorithm but greatly reduces the algorithm’s running time. In addition, two backtracking searches were conducted, including two paths from source node O to termination node k and from termination node k to target node e, to complete the calculation of the optimal path. Figure 7 shows a schematic of the bidirectional search principle.
The heuristic function of A* was trained and improved using ACA, and it achieved bi-directional guidance during path finding. When the program starts running, one search path starts from the source point O and visits a healthy seedling grid in the S tray, and the visited healthy seedling grid is added to Closelist and then visits a hole grid in T tray, and the visited hole grid is added to Openlist. While the other search path starts from the source point O and visits a hole grid in T tray, then visits a healthy seedling grid in S tray. Both search paths start at the same time, and the algorithm terminates when both search paths meet at the same node, and all the hole grids in the T tray have been visited. After several searches, the paths of the bidirectional search are connected to the optimal path. Figure 8 shows the detailed search flow diagram of Imp-A*; Figure 9 shows a schematic diagram of the optimal path for path planning using Imp-A* for a 50-hole tray.

3. Results

To validate the efficacy and performance of the Imp-A* designed in this paper, migration path planning simulations were performed using 32-, 50-, 72-, and 128-hole plug trays. The simulation environment is PYTHON 3.6, and the algorithm compiler is PyCharm Community Edition 2020.3.3.

3.1. Randomized Comparative Simulation Test

To verify the advantages and disadvantages between the Imp-A* and other algorithm models, comparative experiments using the CSM, DA, ACA, and A* as comparison schemes with metrics of transplant path planning length and computation time. Since the CSM has a known transplanting route and does not involve computing time, the CSM is only involved in the transplanting path length comparison and not in the algorithm computing time comparison.
Choose from 32, 50, 72, and 128 holes for simulation, with the T tray and S tray the same size. The number and location of no seedling plug were randomized, the task of replanting one destination tray was defined as one section, and the number of healthy seedlings in an S tray was defined as one group. Poor quality seedlings accounted for 5–20% of the plug trays and required an S tray seedling to give 5–10 T trays seedlings. The length of each transplanting path and the time of the algorithm at each node are calculated and summarized as the experimental results of each group. As shown in Table 1, the number of missing seedlings in each group of plug trays for each of the four sizes; for example, in the first set of tests with 32-hole plug trays, the number of healthy seedlings in the S trays was 25, and replanting was carried out to 5 T trays; in the second set of experiments with 32-hole plug trays, the number of healthy seedlings in the S trays was 26, and replanting was carried out to 6 T trays.

3.2. Analysis of Randomized Comparative Simulation Test Results

Figure 10 shows the results of the 32-, 50-, 72-, and 128-hole path planning length simulations. DA, A*, and Imp-A* have a similar length of complementary path planning, significantly shorter than CSM, and ACA is superior to the CSM in the length of pathway planning but not as long as DA, A*, and Imp-A*. Based on the results, the statistical transplanting path planning lengths for CMS, DA, ACA, A*, and Imp-A* in the 32-hole plug trays simulation test were 208,690.0, 176,120.0, 193,250.0, 16,560.0, and 163,10.0 mm, respectively; 50-hole path planning lengths were 289,238.0, 269,252.0, 276,670.0, 261,354.0, and 25,666.0 mm, respectively; 72-hole path planning lengths were 428,337.0, 315,354.9, 412,227.0, 305,276.4, and 303,399.0 mm, respectively; 128-hole path planning lengths were 740,250.0, 599,274.5, 701,215.0, 584,310.0, and 580,490.0 mm, respectively. By comparison, we can see the superiority of the five path planning algorithm models in the following order: Imp-A*, A*, DA, ACA, and CSM. Imp-A*, A*, and DA perform significantly better than other algorithm models in terms of path planning length when plugs were increased to 72 and 128 holes. When the number of holes increases, the invalid search of the ACA increases sharply and is more likely to fall into the local optimum, the Imp-A* has a precise heuristic function of bidirectional guidance, and it can find the optimal path more precisely.
To demonstrate the superiority of Imp-A* in transplantation path planning, the differences between Imp-A* and the other four transplantation path planning length ratio algorithm models were calculated, as shown in Figure 11. At 32 holes, the optimal path planning length for Imp-A* was 25.1% for CSM, 9.2% for DA, 18.8% for ACA, and 1.6% for A*. At 50 holes, Imp-A* had a 16.4% better path planning length than CSM, 6.3% better than DA, 11.7% better than ACA, and 3.1% better than A*. The maximum path planning length for Imp-A* was 16.4% for CSM, 6.3% for DA, 11.7% for ACA, and 3.1% for A*. Imp-A* had a maximum path planning length of 31.3% compared to CSM, 5.6% compared to DA, and 29.7% compared to ACA under 72 holes. At 128 points, the maximum path planning length for Imp-A* was 24.9% for CSM, 5.4% for DA, 18.9% for ACA, and 1.1% for A*. Data show that Imp-A* has a significantly shorter path planning length than CSM and ACA and a significantly shorter path planning length than DA.
Figure 12 shows a comparison of the computation times for different algorithmic models for path planning. It can be seen that the path planning time of A* and Imp-A* is significantly shortened compared with DA and ACA, and the path planning time of Imp-A* is substantially shortened compared with ACA and A* after the improvement of the heuristic function of A* by using ACA. Based on the results of the experiment, the statistical results show that DA, ACA, A*, and Imp-A* took 29.62 s, 19.84 s, 7.97 s, and 4.86 s for 32 holes; 40.73 s, 29.17 s, 11.12 s, and 9.47 s for 50 holes; 56.36 s, 39.84 s, 27.43 s, and 16.46 s for 72 holes; 96.74 s, 86.40 s, 48.64 s, and 36.88 s for 128 holes transplanting path, respectively. Comparing four algorithm models, the order of time required for path planning is Imp-A*, A*, ACA, and DA. Because when the number of holes increases, ACA and DA search for invalid nodes more frequently and are more likely to fall into local optimality, whereas Imp-A* has a heuristic function of fast bidirectional guidance to find the optimal path in a shorter time.
To further illustrate the superiorities of Imp-A* in computation time for transplantation path planning, a graph of computational time variation between Imp-A* and three other algorithm models was obtained, as shown in Figure 13. Imp-A* had a maximum calculation time of 86.0% of DA, 80.1% of ACA, and 46.5% of A* in 32 holes. At 50 holes, Imp-A* had a maximum calculation time of 79.9% of DA, 71.5% of ACA, and 20.5% of A*. In 72 holes, the calculation time of Imp-A* was 71.8% compared to DA, 63.0% compared to ACA, and 41.4% compared to A*. At 128 holes, the calculation time of Imp-A* was 63.4% compared to DA and 41.4% compared to A*. In 128 cavities, the calculation time of Imp-A* was optimized by 63.4% compared to DA, up to 58.9% compared to ACA, and 28.1% compared to A*.
As shown in Figure 14a, the standard deviation values of the simulated path planning lengths of the four algorithm models are analyzed. The standard deviation DA, ACA, A*, and Imp-A* path planning lengths were from 1333.44 to 2120.31, from 1264.09 to 2274.91, from 1273.91 to 2169.12, and from 1073.91 to 1869.12, respectively. Figure 14b shows the standard deviation values of the simulated computation times of the four algorithm models. The computation time standard deviation was from 0.16 to 0.33, from 0.17 to 0.27, from 0.12 to 0.20, and from 0.10 to 0.17 for the four algorithm models, respectively. It can be seen that the maximum value of path planning length and computation time Imp-A* are smaller than other algorithm models, and the minimum value is smaller than other algorithm models. The results show that Imp-A* is more stable in obtaining the optimal transplanting path for transplanted seedlings of different specifications than DA, ACA, and A *, with a smaller time gap calculated by algorithmic models.
Simulation tests show that Imp-A* has plug trays significant advantage over CSM and ACA and is shorter than DA and A* in the planning length of the transplanting pathway. Imp-A* is significantly shorter than DA and ACA and shorter than A* in terms of computation time in the algorithm model. Imp-A* shows better optimization capability and efficiency, both in terms of path planning length and calculation time.

3.3. Test Verification

To verify the performance of the Imp-A, the implants under different algorithmic models were experimentally investigated. The path planning lengths and computation times of CSM, DA, ACA, A*, and Imp-A* for transplanting 50 holes tray seedlings were counted. Figure 15a shows the automatic transplanter developed by our team, and Figure 15b shows the sample transplanter used for the experiment.
Tomato seedlings are placed in cuttings at the age of 15 d and are grown in 50 holes at the “Muxi Greenhouse” nursery in Xinjiang, China. In total, 35 trays of seedlings were selected, and 30 of these trays were divided into five groups, with six trays in each group serving as T trays and the number of missing seedlings in each group corresponding to the number of trays in each group. The remaining five trays were used as S trays, and the number of seedlings lost per T tray is shown in Table 2. Before the test, a visual inspection of the plug seedlings was performed, the plug substrate was derived, and unhealthy plug seedlings were removed from the T tray by a manipulator (the lab-developed plug seedling visual inspection device and the transplanter were two parts of the test that have not incorporated but do not affect the test). At the beginning of the experiment, one path planning algorithm was selected to transplant the first group of 6 T trays, and after completing the task (and all the time it took), another tray was replaced with another until healthy seedlings were transplanted from the S tray. The remaining four groups were then transplanted using other algorithms. The distance between the T tray and S tray is 100 mm, depending on the actual demand. The manipulator is known to move at speeds of 200 mm/s, 200 mm/s, and 100 mm/s in the X, Y, and Z directions, respectively. The manipulator takes to fall by 1.0 s and rise by 0.8 s (the transplanter is more stable). The length of the replanting path (known as the replication path) and time (known as the replanting time) required for the manipulator to complete each plug of seedlings are recorded, as shown in Table 2.
As can be seen from Table 2, CSM, DA, ACA, A*, and Imp-A* have significantly improved performance in practice. The total path planning length of these five algorithm models was 38,986.0, 36,438.0, 37,586.0, 36,170.0, and 35,996.0 mm, respectively, and optimization capability affected: Imp-A* > A* > DA > ACA > CSM. Imp-A*, A*, and DA have similar path planning lengths, 7.67%, 7.22%, and 6.54% shorter than CSM, and 4.23%, 3.78%, and 3.01% shorter than ACA, respectively. The calculation times of DA, ACA, A*, and Imp-A* were 4.53, 4.33, 3.92, and 2.95 s, respectively, and Imp-A* was 34.88%, 31.87%%, and 24.74% less than DA, ACA, and A*, respectively. The total replanting time was 426.93, 414.20, 419.93, 374.85, and 366.02 s using CSM, DA, ACA, A*, and Imp-A* for a total of 39 × 6 holes in the 6 T trays, in descending order: Imp-A*, A*, DA, ACA, and CSM. While the ACA’s calculation time is shorter than DA’s, its path planning is longer than DA’s, leading to longer manipulator execution during the transplant process. Imp-A* saved 60.91 s on CSM, 48.18 s on DA, 53.91 s on ACA, and 8.83 s on A*. The average value of the length of the transplanting path and the time taken by the manipulator to complete each seedling in a plug tray. It is easy to see that Imp-A* performs best in terms of path planning length, computation time, and replantating time.
Data from six transplantation trials in Table 2 were analyzed. Figure 16 shows the optimization rate of Imp-A* relative to the other four algorithm models in terms of path planning length, computation time, and replanting time. It can be seen that Imp-A* has the highest optimization rate of 40.00% and 36.36% in terms of computation time compared to DA and ACA. Imp-A* has superior performance in computation time and can be applied to a variety of plug tray specifications. Validation tests show that the Imp-A* proposed in this paper performs well and has a good path optimization capability, and the practical results match the simulation results.

4. Discussion

The layout of transplanted seedlings was simulated by establishing a matrix grid of transplanted seedlings. Simulation tests were carried out by using the path optimization model. The path planning length and computation time of different algorithm models were obtained. Simulation results show that the proposed algorithm has good performance in path planning length and algorithm computation time. To verify the reliability and practicality of the algorithm model, experiments were carried out on the transplanting of plug tray seedlings. The results show that the Imp-A* can plan the optimal transplanting path for the manipulator in less time, and the efficiency of the transplanter can be improved by using a superior algorithm model when the transplanter control system is determined.
Imp-A* had an average path planning length of 27,185.0, 43,844.3, 50,733.2, and 96,765.0 mm, and average calculation times of 0.83, 1.58, 2.72, and 6.81 s, respectively, when plug tray size was 32, 50, 72, and 128 holes, respectively, in a simulation test of Section 3.2 of 128 holes of paper. In the transplanting trials in Section 3.3 of this paper, the time taken to transplant Imp-A* was calculated to be 2.4%, 12.84%, 11.63%, and 14.27% shorter compared to A*, ACA, DA, and CSM, respectively. In the literature [23], by analyzing the performance of the algorithm GA and ACA from the perspective of path planning length and computation time, it was concluded that ACA is superior to GA in path planning length but far less than GA in computation time. Due to the difference in the size of the insert plug tray and the motion of the manipulator, the data of the path planning length proposed in this paper cannot be compared with the literature [23], but it has obvious advantages in computation time. By applying the greedy algorithm (GRA) model to the transplantation path planning problem [17], the path planning length of different holes is obtained, and the data are similar to this paper. It can be seen from the above that although DA’s path planning length is similar to that of Imp-A*, the significant difference in algorithm model computation time is because GRA’s computation time is limited by local search elements, and the optimal solution cannot be found quickly.
Path planning length and computation time are two important indexes of the algorithm model. The length of path planning and computation time will directly affect transplanting efficiency and actual production efficiency. The Imp-A* algorithm developed in this paper has good performance in both aspects; the algorithm is stable and can provide a reference for the optimization of the migration path. However, the algorithm model in this paper has some shortcomings. For example, this algorithm model is suitable for transplanting seedlings in transplanters of the same specification. If the size of the transplanter and T tray is different, the algorithm model needs to be improved to adapt to different operating environments.

5. Conclusions

In this paper, the heuristic function of A* is trained and improved, and the path optimization performance of each algorithm is compared by simulation tests and transplantation trials.
In the 50-hole path planning length simulation test, the average path lengths of Imp-A*, A*, ACA, DA, and CSM to complete the transplanting task in one T tray differed significantly. The ACA did not perform as well in path planning, with Imp-A* and A* performing more prominently as the hole tray sizes became larger. In the 50-hole operation time simulation test, the average running time for Imp-A*, A*, ACA, and DA to complete a T tray transplanting task differed significantly. The DA performed the worst in terms of algorithm calculation time, with the DA and ACA significantly decreasing as the hole size became larger and the Imp-A* still maintaining a fast calculation time. In the 50-hole transplanting trial, the transplanting time of different algorithm models is very different. The actual performance of Imp-A* matches the simulation results, and the path planning algorithm developed in this paper for transplanting seedlings in plug trays performs well and is ideal for practical applications. In mass production, transplanting path planning by the transplanting method can save a lot of time and improve the efficiency of transplanting machinery.
Taken together, Imp-A* inherits the strengths of ACA and A* and has significant advantages in transplant path planning simulation tests and practical production. This research can provide ideas and references for improving the efficiency of transplanting machinery and accelerating the automation and intelligence of transplanting machinery.

Author Contributions

Conceptualization, X.L. and W.W.; methodology, X.L. and W.W.; software, X.L. and W.W.: validation, X.L., G.L. and R.L.; formal analysis, F.L.; investigation, X.L.; resources, W.W.; data curation, X.L., writing—original draft preparation, X.L.; writing—review and editing, W.W.; visualization, W.W.; supervision, R.L. and F.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by The National Natural Science Foundation of China (Grant No. 61763042).

Data Availability Statement

The datasets used and/or analyzed during the current study are available from the corresponding author on reasonable request.

Acknowledgments

The authors gratefully acknowledge the financial support provided by The National Natural Science Foundation of China (61763042). Any opinions, findings, conclusions, or recommendations expressed in this publication are those of the authors and do not necessarily reflect the view of Shihezi University.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hu, J.P.; Yan, X.Y.; Ma, J.; Qi, C.H.; Francis, K.; Mao, H. Dimensional synthesis and kinematics simulation of a high-speed plug seedling transplanting robot. Comput. Electron. Agric. 2014, 107, 64–72. [Google Scholar] [CrossRef]
  2. Yu, X.; Zhao, Y.; Chen, B.; Zhou, M.; Zhang, Z. Current situation and prospect of transplanter. Trans. Chin. Soc. Agric. Mach. 2014, 45, 44–53. [Google Scholar]
  3. Wang, Y.W.; He, Z.L.; Wang, J.; Wu, C.Y.; Yu, G.H.; Tang, Y.H. Experiment on transplanting performance of automatic vegetable pot seedling transplanter for dry land. Trans. Chin. Soc. Agric. Eng. 2018, 34, 19–25. [Google Scholar]
  4. Huang, M.; Fang, S.L.; Cao, F.; Chen, J.N. Early sowing increases grain yield of machine-transplanted late-season rice under single-seed sowing. Field Crops Res. 2020, 253, 107832. [Google Scholar] [CrossRef]
  5. Tong, J.H.; Jiang, H.Y.; Zhou, M. Optimization of Seedling Transplanting Path Based on Genetic Algorithm. Trans. Chin. Soc. Agric. Mach. 2013, 44, 45–49+26. [Google Scholar]
  6. Tong, J.H.; Jiang, H.Y.; Wei, Z. Development of automatic system for the seedling transplanter based on machine vision technology. In Proceedings of the 2012 IEEE International Conference on Computer Science and Automation Engineering (CSAE), Zhangjiajie, China, 25–27 May 2012; pp. 742–746. [Google Scholar]
  7. Ureña, R.; Rodríguez, F.; Berenguel, M. A machine vision system for seeds quality evaluation using fuzzy logic. Comput. Electron. Agric. 2001, 32, 1–20. [Google Scholar] [CrossRef]
  8. Tong, J.H.; Shi, H.F.; Wu, C.Y.; Jiang, H.Y.; Yang, T.W. Skewness correction and quality evaluation of plug seedling images based on Canny operator and Hough transform. Comput. Electron. Agric. 2018, 155, 461–472. [Google Scholar] [CrossRef]
  9. Syed, T.N.; Liu, J.Z.; Zhou, X.; Zhao, S.Y. Seedling-lump integrated non-destructive monitoring for automatic transplanting with Intel RealSense depth camera. Artif. Intell. 2019, 3, 18–32. [Google Scholar] [CrossRef]
  10. Tai, Y.W.; Ling, P.P.; Ting, K.C. Machine vision assisted robotic seedling transplanting. ASAE 1994, 31, 661–667. [Google Scholar] [CrossRef]
  11. Tong, J.H.; Yu, J.L.; Wu, C.Y.; Yu, G.H.; Shi, H.Q. Health information acquisition and position calculation of plug seedling in greenhouse seedling bed. Comput. Electron. Agric. 2021, 185, 106146. [Google Scholar] [CrossRef]
  12. Tong, J.H.; Li, J.B.; Jiang, H.Y. Machine vision techniques for the evaluation of seedling quality based on leaf area. Biosys. Eng. 2013, 115, 369–379. [Google Scholar] [CrossRef]
  13. Mavrovouniotis, M.; Yang, S.X. Ant colony optimization with immigrants schemes for the dynamic travelling salesman problem with traffic factors. Appl. Soft Comput. 2013, 13, 4023–4037. [Google Scholar] [CrossRef]
  14. Saad, S.; Wan, N.; Jamil, S.J. Solving standard traveling salesman problem and multiple traveling salesman problem by using branch-and-bound. Am. Inst. Phys. 2013, 1522, 1406–1411. [Google Scholar]
  15. Chen, Y.M. Management of water resources using improved genetic algorithms. Comput. Electron. Agric. 1997, 18, 117–127. [Google Scholar] [CrossRef]
  16. Choi, I.C.; Kim, S.I.; Kim, H.S. A genetic algorithm with a mixed region search for the asymmetric traveling salesman problem. Comput. Oper. Res. 2003, 30, 773–786. [Google Scholar] [CrossRef]
  17. Tong, J.H.; Yu, G.H.; Wu, C.Y. Greedy Algorithm & Fixed Sequence Methods Comparison for Seedlings Lower Density Transplanting Path Planning. In Proceedings of the American Society of Agricultural and Biological Engineers 2016 ASABE International Meeting, Lake Buena Vista, FL, USA, 16–20 July 2016; Volume 17, pp. 1–6. [Google Scholar]
  18. Keshanchi, B.; Souri, A.; Navimipour, N.J. An improved genetic algorithm for task scheduling in the cloud environments using the priority queues. J. Syst. Softw. 2017, 124, 1–21. [Google Scholar] [CrossRef]
  19. Tong, J.H.; Wu, C.Y.; Jiang, H.Y.; Yu, Y.X.; Rao, X.Q. Optimizing the path of seedling low-density transplanting by using greedy genetic algorithm. Comput. Electron. Agric. 2017, 142, 356–368. [Google Scholar] [CrossRef]
  20. He, L.Y.; Yang, T.W.; Wu, C.Y. Optimization of Replanting Tour Planning Based on Greedy Genetic Algorithm. Trans. Chin. Soc. Agric. Mach. 2017, 48, 36–43. [Google Scholar]
  21. Tong, J.H.; Jiang, H.Y.; Wu, C.Y. Optimization of Seedlings Lower Density Transplanting Path Based on Greedy Algorithm. Trans. Chin. Soc. Agric. Mach. 2016, 43, 8–13. [Google Scholar]
  22. Ghafurian, S.; Javadian, N. An ant colony algorithm for solving fixed destination multi-depot multiple traveling salesmen problems. Appl. Soft Comput. 2011, 11, 1256–1262. [Google Scholar] [CrossRef]
  23. Jiang, Z.H.; Zhou, M.C.; Tong, J.H.; Jiang, H.Y.; Yang, Y.F.; Wang, A.C.; You, Z.H. Comparing an ant colony algorithm with a genetic algorithm for replanting tour planning of seedling transplanter. Comput. Electron. Agric. 2015, 11, 225–233. [Google Scholar] [CrossRef]
  24. Keskinturk, T.; Yildirim, M.B.; Barut, M. An ant colony optimization algorithm for load balancing in parallel machines with sequence-dependent setup times. Comput. Oper. Res. 2012, 39, 1225–1235. [Google Scholar] [CrossRef]
  25. Rada-Vilela, J.; Chica, M.; Cordón, Ó.; Damas, S. A comparative study of Multi-Objective Ant Colony Optimization algorithms for the Time and Space Assembly Line Balancing Problem. Appl. Soft Comput. 2013, 13, 4370–4382. [Google Scholar] [CrossRef]
  26. Zhang, A.B.; Qian, T.H.; Wu, X.C. An improved ant colony algorithm for path planning of manipulator. In Proceedings of the International Information Technology and Artificial Intelligence Conference (ITAIC), Chongqing, China, 11–13 December 2020; pp. 1358–1362. [Google Scholar]
  27. Chen, Y.Q.; Guo, J.L.; Yang, H.D.; Wang, Z.Q.; Liu, H.L. Research on navigation of bidirectional A* algorithm based on ant colony algorithm. J. Supercomput. 2020, 77, 1958–1975. [Google Scholar] [CrossRef]
  28. Sang, H.; You, Y.; Sun, X.; Zhou, Y.; Liu, F. The hybrid path planning algorithm based on improved A* and artificial potential field for unmanned surface vehicle formations. Ocean Eng. 2021, 223, 108709. [Google Scholar] [CrossRef]
Figure 1. Diagram of (a) the 3-dof transplanting device and (b) tray location and transplanting path. The red circles indicate healthy seedlings to be transplanted; the grey circles indicate healthy seedlings; the white circles indicate empty holes.
Figure 1. Diagram of (a) the 3-dof transplanting device and (b) tray location and transplanting path. The red circles indicate healthy seedlings to be transplanted; the grey circles indicate healthy seedlings; the white circles indicate empty holes.
Agriculture 12 01302 g001
Figure 2. Diagram of (a) digital matrix of plug tray information and (b) grid network model. Si indicates the hole location of the seedling supply tray and Ti indicates the hole location of the target tray.
Figure 2. Diagram of (a) digital matrix of plug tray information and (b) grid network model. Si indicates the hole location of the seedling supply tray and Ti indicates the hole location of the target tray.
Agriculture 12 01302 g002
Figure 3. Diagram of CSM to complete 50 holes transplanting path planning. The red circles indicate healthy seedlings to be transplanted; the green circles indicate healthy seedlings; the white circles indicate empty holes.
Figure 3. Diagram of CSM to complete 50 holes transplanting path planning. The red circles indicate healthy seedlings to be transplanted; the green circles indicate healthy seedlings; the white circles indicate empty holes.
Agriculture 12 01302 g003
Figure 4. Diagram of DA to complete 50 holes transplanting path planning. The red circles indicate healthy seedlings to be transplanted; the green circles indicate healthy seedlings; the white circles indicate empty holes.
Figure 4. Diagram of DA to complete 50 holes transplanting path planning. The red circles indicate healthy seedlings to be transplanted; the green circles indicate healthy seedlings; the white circles indicate empty holes.
Agriculture 12 01302 g004
Figure 5. Flowchart of ACA.
Figure 5. Flowchart of ACA.
Agriculture 12 01302 g005
Figure 6. Diagram of (a) path planning of ACA and (b) variation of ACA path planning length with the number of iterations. The red circles indicate healthy seedlings to be transplanted; the grey circles indicate healthy seedlings; the white circles indicate empty holes.
Figure 6. Diagram of (a) path planning of ACA and (b) variation of ACA path planning length with the number of iterations. The red circles indicate healthy seedlings to be transplanted; the grey circles indicate healthy seedlings; the white circles indicate empty holes.
Agriculture 12 01302 g006
Figure 7. Bidirectional A* schematic.
Figure 7. Bidirectional A* schematic.
Agriculture 12 01302 g007
Figure 8. Flow chart of the Imp-A algorithm.
Figure 8. Flow chart of the Imp-A algorithm.
Agriculture 12 01302 g008
Figure 9. Diagram of Imp-A* model to complete 50 holes transplanting path planning. The red circles indicate healthy seedlings to be transplanted; the green circles indicate healthy seedlings; the white circles indicate empty holes.
Figure 9. Diagram of Imp-A* model to complete 50 holes transplanting path planning. The red circles indicate healthy seedlings to be transplanted; the green circles indicate healthy seedlings; the white circles indicate empty holes.
Agriculture 12 01302 g009
Figure 10. Comparison of planned path length for different size plug trays based on simulation tests.
Figure 10. Comparison of planned path length for different size plug trays based on simulation tests.
Agriculture 12 01302 g010
Figure 11. Changes in the path planning length difference ratio between Imp-A* and other algorithmic models. D1 = (CSM-Imp-A*)/CSM, D2 = (DA-Imp-A*)/DA, D3 = (ACA-Imp-A*)/ACA, D4 = (A*-Imp-A*)/A*.
Figure 11. Changes in the path planning length difference ratio between Imp-A* and other algorithmic models. D1 = (CSM-Imp-A*)/CSM, D2 = (DA-Imp-A*)/DA, D3 = (ACA-Imp-A*)/ACA, D4 = (A*-Imp-A*)/A*.
Agriculture 12 01302 g011
Figure 12. Comparison of calculation time for different size plug trays.
Figure 12. Comparison of calculation time for different size plug trays.
Agriculture 12 01302 g012aAgriculture 12 01302 g012b
Figure 13. Variation of the calculation time difference ratio between Imp-A* and other algorithmic models. T1 = (DA-Imp-A*)/DA, T2 = (ACA-Imp-A*)/ACA, T3 = (A*-Imp-A*)/A*.
Figure 13. Variation of the calculation time difference ratio between Imp-A* and other algorithmic models. T1 = (DA-Imp-A*)/DA, T2 = (ACA-Imp-A*)/ACA, T3 = (A*-Imp-A*)/A*.
Agriculture 12 01302 g013
Figure 14. Standard deviation diagram of (a) path planning length and (b) calculation time.
Figure 14. Standard deviation diagram of (a) path planning length and (b) calculation time.
Agriculture 12 01302 g014
Figure 15. Diagram of (a) automatic transplanter and (b) plug tray seedlings sample.
Figure 15. Diagram of (a) automatic transplanter and (b) plug tray seedlings sample.
Agriculture 12 01302 g015
Figure 16. Comparison of the optimization efficiency of Imp-A* with other algorithms (16).
Figure 16. Comparison of the optimization efficiency of Imp-A* with other algorithms (16).
Agriculture 12 01302 g016
Table 1. Number of transplanted seedlings for random comparison tests.
Table 1. Number of transplanted seedlings for random comparison tests.
Plug Tray Size/HoleTest GroupsThe Number of T TrayTotal
12345678910
32156635-----25
2364535----26
3634653----27
42455354---28
54356245---29
65443653---30
5017635496---40
254476384--41
3756897----42
433764957--44
5106447573--46
669745736--47
721856411795--55
2117885667--58
3957876108--60
475568106410-63
510810567875-65
661191095711--68
1281129151181091315-102
21610129139111016-106
31114109151214899111
415912119121311149114
512148191011912815118
618119910138121714121
Table 2. Comparison of plug seedling replanting results for different algorithms.
Table 2. Comparison of plug seedling replanting results for different algorithms.
No. of T TrayNumber of Transplanted SeedlingsPath Planning Length (mm)Calculation Time (s)Replanting Time (s)
CSMDAACAA*Imp-A*DAACAA*Imp-A*CSMDAACAA*Imp-A*
132912.02686.02804.02642.02596.00.400.360.310.2436.5635.4336.0232.2130.98
244536.04262.04398.04236.04210.00.450.440.400.2844.6843.3143.9939.1838.05
366108.05230.05620.05186.05186.00.660.620.580.4452.5448.1550.1041.9340.37
477088.06770.06906.06724.06708.00.710.680.630.4877.4475.8676.5368.6267.54
598662.08466.08512.08396.08372.01.091.020.960.7295.3194.3394.5685.9884.06
6109680.09024.09346.08986.08924.01.221.211.040.79120.40117.12118.73106.93105.02
Total3938,986.036,438.037,586.036,170.035,996.04.534.333.922.95426.93414.20419.93374.85366.02
Average999.6934.3963.7927.4923.00.120.110.100.0810.9510.6210.779.619.39
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Li, X.; Wang, W.; Liu, G.; Li, R.; Li, F. Optimizing the Path of Plug Tray Seedling Transplanting by Using the Improved A* Algorithm. Agriculture 2022, 12, 1302. https://doi.org/10.3390/agriculture12091302

AMA Style

Li X, Wang W, Liu G, Li R, Li F. Optimizing the Path of Plug Tray Seedling Transplanting by Using the Improved A* Algorithm. Agriculture. 2022; 12(9):1302. https://doi.org/10.3390/agriculture12091302

Chicago/Turabian Style

Li, Xiaojun, Weibing Wang, Ganghui Liu, Runze Li, and Fei Li. 2022. "Optimizing the Path of Plug Tray Seedling Transplanting by Using the Improved A* Algorithm" Agriculture 12, no. 9: 1302. https://doi.org/10.3390/agriculture12091302

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