The invention relates to an
epilepsy prediction method based on adaptive sparse attention and a hierarchical graph
convolution network, and the method comprises the steps: carrying out the
time domain convolution, spectrum transformation and
Haar wavelet down-sampling of an electroencephalogram
signal, respectively generating
time domain,
spectral domain and fidelity down-sampling features, and fusing the features into a low-level
feature set; on the basis of a sparse attention mechanism, constructing and applying a multi-level sparse
mask to adaptively screen and weight-aggregate key discriminative features in the
feature set to obtain screened features; on the basis of the feature, by constructing a local channel graph and a global
frequency band graph and respectively executing graph
convolution, capturing local
spatial correlation of each channel in a single
frequency band and global cross-frequency-band spatial dependence among different frequency bands, and fusing the local
spatial correlation and the global cross-frequency-band spatial dependence into an embedded feature; and inputting the embedded features into a classifier to obtain a state probability, and triggering an alarm based on the state probability. Therefore, the problems of key
information loss, insufficient time-space spectrum dependent modeling and feature redundancy are solved, and the accuracy, stability and real-time performance of
epilepsy prediction are improved.