The invention discloses a hierarchical collision
early warning system and method for cooperative operation of unmanned
agricultural machinery, and the method comprises the steps: building a TGAP neural
network model, carrying out the multi-
modal trajectory prediction of the driving trajectory of the unmanned
agricultural machinery in the future several seconds, firstly, roughly detecting whether the collision occurs or not through employing an AABB according to the predicted trajectory point, and if the collision occurs, carrying out the early warning of the collision of the unmanned
agricultural machinery; and if the collision is determined to occur, detecting again by using an OBB
algorithm, and if the collision is determined to occur, returning to the first time point when the collision occurs, and comparing the first time point with the safe collision time of the unmanned agricultural
machine so as to carry out graded collision early warning. According to the invention, trajectory prediction is carried out by using the neural
network model, and collision early warning of the unmanned agricultural
machine cluster in the agricultural operation process can be carried out in real time in combination with the bounding box
collision detection algorithm, and the early warning is timely and accurate.