With the burgeoning impact of artificial intelligence on the traditional UAV industry, the pursuit of autonomous UAV flight has emerged as a focal point of contemporary research. Addressing the imperative for advancing critical technologies in autonomous flight, this paper delves into the realm of UAV flight state recognition and trajectory prediction. Presenting an innovative approach focused on improving the precision of unmanned aerial vehicle (UAV) path forecasting via the identification of flight states, this study demonstrates its efficacy through the implementation of two prediction models. Firstly, UAV flight data acquisition was realized in this paper by the use of multi-sensors. Finally, two models for UAV trajectory prediction were designed based on machine learning methods and classical mathematical prediction methods, respectively, and the results before and after flight pattern recognition are compared. The experimental results show that the prediction error of the UAV trajectory prediction method based on multiple flight modes is smaller than the traditional trajectory prediction method in different flight stages.