The invention discloses an electroencephalogram
signal clustering method based on a Mama framework and comparative learning, and belongs to the crossing field of
engineering application and
information science, and the method comprises the following steps: collecting and preprocessing
label-free electroencephalogram data; the method comprises the following steps of: constructing a Mama-based feature extractor, dividing an input electroencephalogram
signal into a plurality of slices by adopting an electroencephalogram
signal slice embedding strategy so as to obtain fine-grained local information, and modeling a potential context relationship by utilizing a slice
perception scanning mechanism; the method comprises the following steps: constructing an
original data view and an enhanced
data view, and respectively inputting samples of the two data views into two Mamba feature extractors with shared network parameters for feature embedding;
processing the feature pairs of the two views using an instance
projector, constructing weighted instance level contrast learning wherein the distance in the
original data space provides weight information;
processing feature pairs of the two views by using a clustering
projector, and constructing a clustering distribution discrimination contrast learning
branch and a semantic
perception contrast learning
branch; and finally, performing joint training by using the comparative learning branches, and outputting a high-quality clustering result by ensuring feature, clustering distribution and
semantic consistency.