In order to solve the problem of forecasting airflow temperature in heading face, a new model of forecasting airflow temperature in heading face with Matlab programming is built on the BP neural network model, making use of genetic algorithms to optimize the initial weights and thresholds of the network. According to the analysis of test carried out in a coal mine in Huainan, the results show that the model of fast convergence and high prediction accuracy is one of the most effective ways of forecasting airflow temperature in heading face.