The invention discloses an automatic
sleep staging method of a single-lead electroencephalogram. A training model comprises a
feature extraction module and a staging optimization module, the
feature extraction module comprises CNNs (convolutional neural networks) (1) and an Softmax layer (2), the staging optimization module comprises bi-directional LSTM (long-
short term memory) recurrent neural networks (3) and a CRF (corticotropin releasing factor)
conditional random field model (4), and the CNNs (1), the Softmax layer (2), the LSTM recurrent neural networks (3) and the CRF
conditional random field model (4) are sequentially connected. The method only needs the single-lead sleep electroencephalogram, portable and comfortable
sleep monitoring requirements are met, temporal and spatial characteristics of the electroencephalogram are sufficiently excavated according to the convolutional neural networks and the recurrent neural networks, the method has
dynamic learning capacity and can adapt to great changed environments of diseases, the staging optimization module sufficiently considers relation between the front and the back of N 30s of electroencephalogram data, and the staging accuracy and the generalization ability of the model are improved.