Lost circulation accidents in drilling operations occur suddenly and are difficult to manage. Traditional drilling lost circulation prediction methods are based on the physical theory model, which does not consider various engineering and random factors in the drilling and completion process. It is too dependent on the empirical model, which makes it difficult for the existing lost circulation prediction method to obtain better prediction performance. Therefore, a new and efficient well leakage prediction method is needed. In this paper, logging data from the Hutan 1 well is used as the training set, and the principal components are extracted by Principal Component Analysis (PCA) to reduce the dimensions of the model data and remove noise. Based on the actual well leakage position, a Support Vector Machine (SVM) prediction model suitable for this block is established after supervision and training. To avoid the problem of local optimum and over-fitting caused by the initial parameters of the model, the penalty factor C of the Support Vector Machine and the kernel parameter g of the kernel function are optimized by the Fruit Fly Optimization Algorithm (FOA) and applied to the actual prediction of the block. The improved prediction result is very close to the actual well leakage position; model accuracy rate reaches 93%, reflecting the superiority of the Fruit Fly Optimization Algorithm in improving the accuracy of the machine learning model. Furthermore, this new model can help the drilling team to efficiently deal with lost circulation during drilling.