Cervical spondylotic myelopathy (CSM) is the most severe type of cervical spondylosis. It is challenging to achieve early diagnosis with current clinical diagnostic tools. In this paper, we propose an end-to-end deep learning approach for early diagnosis of CSM. Electroencephalography (EEG) experiments were conducted with patients having spinal cord cervical spondylosis and age-matched normal subjects. A Convolutional Neural Network with Long Short-Term Memory Networks (CNN-LSTM) model was employed for the classification of patients versus normal individuals. In contrast, a Convolutional Neural Network with Bidirectional Long Short-Term Memory Networks and attention mechanism (CNN-BiLSTM-attention) model was used to classify regular, mild, and severe patients. The models were trained using focal Loss instead of traditional cross-entropy Loss, and cross-validation was performed. Our method achieved a classification accuracy of 92.5 % for the two-class classification among 40 subjects and 72.2 % for the three-class classification among 36 subjects. Furthermore, we observed that the proposed model outperformed traditional EEG decoding models. This paper presents an effective computer-aided diagnosis method that eliminates the need for manual extraction of EEG features and holds potential for future auxiliary diagnosis of spinal cord-type cervical spondylosis.