By analyzing common artificial intelligence technologies, the paper introduced design of software and structure of a drainage system of coal mine underground based on artificial intelligence control. By detecting water level in sump and other parameters, the system controls pumps to work by turns and standby pump to start at duly time, so as to schedule dumps run reasonably, and it has function of fault alarming, which decreases labor intensity of workers greatly and improves utilization rate of devices. The system also has good expansibility and is fit for different fields.