With the development and leap of artificial intelligence technology, more and more robots have penetrated into all walks of life. Today’s agriculture is changing in the direction of modernization and automation. On the one hand, because of rising labor costs, it cannot afford to consume a large amount of labor for agricultural operations. On the other hand, the population is growing rapidly, and traditional agricultural production, picking, and other links have been unable to keep pace with the development of the times. Therefore, it is very necessary to use artificial intelligence technology to transform traditional agriculture. The purpose of this paper is to use artificial intelligence technology to plan, track, and optimize the displacement trajectory of the agricultural picking robot, so as to improve the working efficiency of the picking robot. In this paper, the neural network, the D-H modeling method of the manipulator, and the forward and reverse motion of the manipulator are explained and analyzed, and based on the relevant algorithms of neural network, the manipulator is modeled, and then the, forward and reverse motion of the manipulator is analyzed in detail, and the digital model of the picking robot is constructed. Then, the angle and motion speed of each joint of the robot are analyzed to reduce the motion trajectory error caused by friction and other factors. Then, the simulation experiment of the displacement trajectory tracking control is carried out, and the linear trajectory motion and the arc trajectory motion are deeply analyzed, and the axis error is greatly reduced after 6 iterations. Finally, the displacement trajectory is optimized. The optimized total movement time is shortened by 6.84 seconds, which enables the picking robot to not only ensure work efficiency but also accurately complete the planned displacement trajectory. After continuous experiments on the algorithm model and the picking robot, the actual trajectory of the picking robot at 0.7 seconds can be expected. The trajectories are completely coincident, indicating that the neural network plays a very important role in the trajectory research of picking robots.