In this paper, redundant information was removed from the data by Gaussian filtering, downsampling, and short-time Fourier transform. The feature extraction method of the traditional machine learning is difficult to capture the high-dimension information between adjacent sequences. One is the detection based on abnormal waveform, the other is the analysis of EEG signals based on the traditional machine learning. There are two main EEG signals detection methods for epilepsy. The diagnosis of epilepsy mainly depends on electroencephalogram (EEG) signals detection and analysis. Its repeated seizure attacks have a great negative impact on patients’ physical and mental health. Epilepsy is a common chronic neurological disease.