Abstract:In order to optimize the operation routes of agricultural machinery for cleaning old pineapple seedlings in pineapple orchards and reduce consumption in non-working areas, a path planning method integrating improved genetic particle swarm optimization (GPSO) and Q-Learning(QL) algorithms was proposed to optimize the complete coverage operation path of unmanned machines in multi-field pineapple orchards. Images of the target farmland were obtained by unmanned aerial vehicle and converted into a coordinate map. Each field was traversed at 5° intervals from 0° to 355° to find the optimal travel angle. To address the inherent problem such as slow convergence and getting stuck into a local optimum in traditional GPSO algorithms, an improved GPSO algorithm, namely IHGPSO, was proposed to improve the generation and selection method of initial populations, a multi-objective weighted fitness function was designed, and a dynamic adjustment probability was added to particle exchange mechanism, thereby obtaining the optimal traversal order for multi-field complete coverage operation of pineapple orchard. To address the inherent problem in original QL algorithm, such as low exploration efficiency and slow convergence, an improved QL algorithm, namely order initialization Q-Learning(OI-QL) was proposed, which improved initialization of Q-table, proposed learning rate, and designed a reward function, thereby connecting multi-field complete coverage operation path of pineapple orchard. Simulation results showed that when the sub-area point groups contained 30 points, the IHGPSO algorithm outperformed the GPSO algorithm in solving the problem of the optimal traversal order. The average path length planned by OI-QL algorithm was 28.1% shorter than that planned by QL algorithm, and the average number of convergence iterations and the average convergence time by using OI-QL algorithm was 37.3% and 25.7% less than those by using QL algorithm, respectively. These results indicated that the method can effectively complete the complete coverage operation path planning of pineapple orchard.