This paper analyzes the basic principle and function of relay protection, summarizes the common fault types, and analyzes the fault analysis methods and treatment measures combined with actual cases. With the development of the power industry, people's demand for electricity is growing, there is a contradiction between the current power resources and user demand for electricity, the main reason is that the substation operation there are some problems, causing power resources hard work. Firstly, an. Abstract: Nowadays, existing fault diagnosis technologies have problems such as slow response speed, low accuracy, and weak adaptive ability. To prevent overfitting, this article can use a strictly separated set of training and testing samples to train the model.