Among all the factors affecting the destructiveness of debris flow, the mean velocity is one of the most important characteristics. In this paper, we aim to apply a particle swarm optimization (PSO) based on the relevance vector machine (RVM) to predict the mean velocity. The PSO is used to optimize kernel parameters inside the RVM, whereas the RVM is responsible for completing the prediction task. Through sample training, a nonlinear relationship can be obtained, enabling a rapid prediction of the mean velocity for new samples. The debris flow dataset of Jiangjia Gully is used to evaluate the performance of PSO‐RVM in this study. Besides, we further compare the prediction results of PSO‐RVM with other prominent approaches, for example, the support vector machine (SVM), BP neural network (BP), and the RVM. The results show that the mean relative error (MRE) of PSO‐RVM is only 0.69%. In addition, BP yields the highest MRE (27.61%), and the MRE (2.75%) corresponding to the RVM is lower than that (5.98%) yielded by the SVM. For the root mean square error (RMSE) and Theil's inequality coefficient (TIC), the PSO‐RVM method still generates much lower RMSE (6.48%) and TIC (0.179%) values than the other three methods. Overall, compared with current debris flow prediction models, the PSO‐RVM achieves high prediction accuracy, fewer optimization parameters, and low computational complexity. Finally, a sensitivity analysis is conducted to explore the dominative factors of debris flow.