A reasonable arrangement of filling pipelines can solve the problems of low line magnification, a high flow rate, large pipe pressure, etc., in deep well filling slurry transportation. The transportation pressure loss value of filling slurry is the main parameter for the layout design of filling pipelines. At present, pressure loss data are mainly obtained through the loop pipe experiment, which has problems such as a large amount of labor, high cost, low efficiency, and a limited amount of experimental data. In this paper, combined with a new generation of artificial intelligence technology, the random forest machine learning algorithm is used to analyze and model the experimental data of a loop pipe to predict the pressure loss of slurry transportation. The degree of precision reaches 0.9747, which meets the design accuracy requirements, and it can replace the loop pipe experiment to assist with the filling design