On basis of analyzing the principles and structure of adaptive neural fuzzy inference system (ANFIS), this thesis used subtractive clustering algorithm to get fuzzy inference rule numbers and confirm the network structure. In addition, the thesis built ANFIS model adapted to coal mining workface stray current security prediction. The model can do workface stray current security prediction by the easy measured parameters of non-production field. If the stray current exceeds standard, the system will alarm on time. Moreover, the thesis compared accuracy rate of the security prediction results under different membership functions. The results indicate that the prediction accuracy of ANFIS based on subtractive clustering is the highest and its computing speed is faster. The prediction results to practical project data indicate that stray current security prediction based on ANFIS has favorable practicality and effect.