Classification of electroencephalogram (EEG) signal data plays a vital role in epilepsy detection. Recently sparse representation-based classification (SRC) methods have achieved the good performance in EEG signal automatic detection, by which the EEG signals are sparsely represented using a few active coefficients in the dictionary and classified according to the reconstruction criteria. However, most of SRC learn a linear dictionary for encoding, and cannot extract enough information and nonlinear relationship of data for classification. To solve this problem, a hierarchical discriminative sparse representation classification model (called HD-SRC) for EEG signal detection is proposed. Based on the framework of neural network, HD-SRC learns the hierarchical nonlinear transformation and maps the signal data into the nonlinear transformed space. Through incorporating this idea into label consistent K singular value decomposition (LC-KSVD) at the top layer of neural network, HD-SRC seeks discriminative representation together with dictionary, while minimizing errors of classification, reconstruction and discriminative sparse-code for pattern classification. By learning the hierarchical feature mapping and discriminative dictionary simultaneously, more discriminative information of data can be exploited. In the experiment the proposed model is evaluated on the Bonn EEG database, and the results show it obtains satisfactory classification performance in multiple EEG signal detection tasks.