The mechanism of coal and gas outburst disasters is perplexing, and the evaluation methods of outburst disasters based on various sensitive indicators often have some imprecision and fuzziness. With the concept of accurate and intelligent mining in coal mines proposed in China, selecting quantifiable parameters for machine learning risk prediction can avoid the deviation caused by human subjectivity, and improve the accuracy of coal and gas outburst prediction. Aiming at the shortcomings of the support vector machine (SVM) such as low noise resistance and being prone to be influenced by parameters easily, this research proposed a prediction method based on a grey wolf optimizer to optimize the support vector machine (GWO-SVM). To coordinate the global and local optimization ability of the GWO, Tent Chaotic Mapping and DLH strategies were introduced to improve the optimization ability of the GWO and reduce the local optimal probability. The improved prediction model IGWO-SVM was used to predict the coal and gas outburst. The results showed that this model has faster training speed and higher classification prediction accuracy than the SVM and GWO-SVM models, which the accuracy rate reaching 100%. Finally, to obtain the correlation between the parameters of the coal and gas outburst prediction parameters, the random forest algorithm was used for training, and the three parameters with the highest feature importance were selected to rebuild the data set for machine learning. The accuracy of the IGWO-SVM outburst prediction model based on Random Forest was still 100%. Therefore, even if some prediction parameters are missing, the outburst can still be effectively predicted by using the RF-IGWO-SVM model, which is beneficial for the model application and underground safety management.