CN116269446A - Method, electronic equipment and medium for classifying format tower electroencephalogram signals based on algebraic topology - Google Patents
Method, electronic equipment and medium for classifying format tower electroencephalogram signals based on algebraic topology Download PDFInfo
- Publication number
- CN116269446A CN116269446A CN202310295594.2A CN202310295594A CN116269446A CN 116269446 A CN116269446 A CN 116269446A CN 202310295594 A CN202310295594 A CN 202310295594A CN 116269446 A CN116269446 A CN 116269446A
- Authority
- CN
- China
- Prior art keywords
- gestalt
- eeg
- eeg signal
- algebraic topology
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000012545 processing Methods 0.000 claims abstract description 22
- 238000002474 experimental method Methods 0.000 claims abstract description 9
- 230000000638 stimulation Effects 0.000 claims abstract description 9
- 230000000007 visual effect Effects 0.000 claims abstract description 7
- 238000007781 pre-processing Methods 0.000 claims abstract description 6
- 230000015654 memory Effects 0.000 claims description 22
- 239000011159 matrix material Substances 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 5
- 238000012549 training Methods 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000006403 short-term memory Effects 0.000 claims description 3
- 238000005070 sampling Methods 0.000 claims description 2
- 239000000284 extract Substances 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000013528 artificial neural network Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000000739 chaotic effect Effects 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004438 eyesight Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008909 emotion recognition Effects 0.000 description 1
- 206010015037 epilepsy Diseases 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000004424 eye movement Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003340 mental effect Effects 0.000 description 1
- 230000006996 mental state Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000008667 sleep stage Effects 0.000 description 1
- 230000002269 spontaneous effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/369—Electroencephalography [EEG]
- A61B5/372—Analysis of electroencephalograms
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/369—Electroencephalography [EEG]
- A61B5/377—Electroencephalography [EEG] using evoked responses
- A61B5/378—Visual stimuli
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- Psychiatry (AREA)
- Veterinary Medicine (AREA)
- Artificial Intelligence (AREA)
- Heart & Thoracic Surgery (AREA)
- Public Health (AREA)
- Animal Behavior & Ethology (AREA)
- Surgery (AREA)
- Pathology (AREA)
- Medical Informatics (AREA)
- Evolutionary Computation (AREA)
- Theoretical Computer Science (AREA)
- Psychology (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Fuzzy Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physiology (AREA)
- Signal Processing (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
本发明公开了一种基于代数拓扑的格式塔脑电信号分类方法、电子设备、介质,包括对受试者进行轮廓识别图片的视觉刺激实验,获取原始的格式塔脑电信号数据;对原始的格式塔脑电信号数据进行预处理;对预处理后的格式塔脑电信号数据进行代数拓扑处理;构建格式塔脑电信号分类网络,对代数拓扑处理后的格式塔脑电信号数据进行分类。本发明通过引入代数拓扑工具,提取格式塔脑电信号的拓扑空间特征并将其数字化作为分类对象,使得数据大小有了数量级的降低,大大降低了计算复杂度,节约计算资源,能够有效提高分类准确率。
The invention discloses a method for classifying Gestalt EEG signals based on algebraic topology, electronic equipment, and a medium, including performing a visual stimulation experiment on subjects with contour recognition pictures to obtain original Gestalt EEG signal data; Preprocessing the Gestalt EEG signal data; performing algebraic topology processing on the preprocessed Gestalt EEG signal data; constructing a Gestalt EEG signal classification network to classify the Gestalt EEG signal data after algebraic topology processing. The present invention introduces an algebraic topology tool, extracts the topological space features of the Gestalt EEG signal and digitizes it as a classification object, which reduces the data size by an order of magnitude, greatly reduces the computational complexity, saves computational resources, and can effectively improve the classification Accuracy.
Description
技术领域technical field
本发明属于脑电信号分类领域,尤其涉及一种基于代数拓扑的格式塔脑电信号分类方法、电子设备、介质。The invention belongs to the field of electroencephalogram signal classification, and in particular relates to a method for classifying gestalt electroencephalogram signals based on algebraic topology, electronic equipment and media.
背景技术Background technique
近年来深度学习的飞速发展对诸多研究领域都有着一定的促进作用,特别是计算机视觉、模式识别和信号处理及检测等领域尤为明显。随着神经网络的不断改进和广泛应用,深度学习也被引入到脑电波信号(Electroencephalogram)的处理之中。现有的深度神经网络分类的脑电信号主要可分为情感识别、运动想象、脑力负荷测试、癫痫检测和睡眠阶段评分等几大类型,它们同属于对知觉和直观刺激产生的脑电信号。传统的脑电信号分类通常包含特征提取这一重要步骤,而特征提取高度依赖于领域知识且费时费力;神经网络能够在大量数据训练的基础上自动提取可区分的特征,这一特性大大提高了脑电信号的分类准确率。然而擅于处理时序信号的LSTM和当前比较强大的Transformer网络分类格式塔与非格式塔这种意识层面的脑电信号时,其分类准确度较低。In recent years, the rapid development of deep learning has promoted many research fields, especially in the fields of computer vision, pattern recognition, signal processing and detection. With the continuous improvement and wide application of neural networks, deep learning has also been introduced into the processing of electroencephalogram signals. The EEG signals classified by the existing deep neural network can be mainly divided into several types such as emotion recognition, motor imagery, mental load test, epilepsy detection, and sleep stage scoring. They all belong to the EEG signals generated by perception and intuitive stimulation. Traditional EEG signal classification usually includes an important step of feature extraction, which is highly dependent on domain knowledge and is time-consuming and laborious; neural networks can automatically extract distinguishable features based on a large amount of data training, which greatly improves the Classification accuracy of EEG signals. However, when LSTM, which is good at processing time-series signals, and the current relatively powerful Transformer network classify gestalt and non-gestalt EEG signals at the conscious level, the classification accuracy is low.
发明内容Contents of the invention
针对现有技术不足,本发明提供了一种基于代数拓扑的格式塔脑电信号分类方法、电子设备、介质。Aiming at the deficiencies of the prior art, the present invention provides a method for classifying Gestalt EEG signals based on algebraic topology, electronic equipment, and media.
根据本申请实施例的第一方面,提供了一种基于代数拓扑的格式塔脑电信号分类方法,具体包括以下步骤:According to the first aspect of the embodiments of the present application, a method for classifying Gestalt EEG signals based on algebraic topology is provided, which specifically includes the following steps:
步骤S1,对受试者进行轮廓识别图片的视觉刺激实验,获取原始的格式塔脑电信号;Step S1, subjecting subjects to a visual stimulation experiment of contour recognition pictures to obtain original Gestalt EEG signals;
步骤S2,对原始的格式塔脑电信号进行预处理;Step S2, preprocessing the original Gestalt EEG signal;
步骤S3,对预处理后的格式塔脑电信号进行代数拓扑处理;Step S3, performing algebraic topology processing on the preprocessed Gestalt EEG signal;
步骤S4,构建格式塔脑电信号分类网络,对代数拓扑处理后的格式塔脑电信号进行分类。Step S4, constructing a Gestalt EEG signal classification network to classify the Gestalt EEG signals after the algebraic topology processing.
根据本申请实施例的第二方面,提供了一种电子设备,包括存储器和处理器,所述存储器与所述处理器耦接;其中,所述存储器用于存储程序数据,所述处理器用于执行所述程序数据以实现上述的基于代数拓扑的格式塔脑电信号分类方法。According to a second aspect of the embodiments of the present application, an electronic device is provided, including a memory and a processor, the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to The program data is executed to realize the above-mentioned algebraic topology-based Gestalt EEG signal classification method.
根据本申请实施例的第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现上述的基于代数拓扑的格式塔脑电信号分类方法。According to a third aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned algebraic topology-based Gestalt EEG signal classification method is implemented.
与现有技术不同,本发明的有益效果为:本发明提供了一种基于代数拓扑的格式塔脑电信号分类方法,通过引入代数拓扑工具,提取格式塔脑电信号的拓扑空间特征并将其数字化作为分类对象,使得数据大小有了数量级的降低,大大降低了计算复杂度,节约计算资源,能够有效提高分类准确率。Different from the prior art, the beneficial effects of the present invention are as follows: the present invention provides a method for classifying Gestalt EEG signals based on algebraic topology, by introducing an algebraic topology tool, extracting the topological space features of Gestalt EEG signals and Digitization as the classification object reduces the data size by orders of magnitude, greatly reduces the computational complexity, saves computing resources, and can effectively improve the classification accuracy.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例提供的一种基于代数拓扑的格式塔脑电信号分类方法的流程图;Fig. 1 is a flow chart of a method for classifying Gestalt EEG signals based on algebraic topology provided by an embodiment of the present invention;
图2是格式塔和混乱图;Figure 2 is a gestalt and confusion map;
图3是采集单次格式塔脑电信号的示意图;3 is a schematic diagram of collecting a single Gestalt EEG signal;
图4是对原始脑电信号进行预处理的示意图;4 is a schematic diagram of preprocessing the original EEG signal;
图5是代数拓扑处理的示意图;Fig. 5 is a schematic diagram of algebraic topology processing;
图6是格式塔脑电信号分类网络的示意图;6 is a schematic diagram of a Gestalt EEG signal classification network;
图7是本发明实施例提供的一种电子设备的示意图。Fig. 7 is a schematic diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
需要说明的是,在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。It should be noted that, in the case of no conflict, the features in the following embodiments and implementation manners can be combined with each other.
本发明提供了一种基于代数拓扑的格式塔脑电信号分类方法,所述格式塔脑电信号由受试者在观看格式塔和非格式塔(混乱图)图片时产生,格式塔和混乱图的示例如图2所示,这种图片的特别之处在于人们在视觉上很容易将他们区分出来,前者的三个带有缺口的小圆之间构成了一个明显的三角形轮廓,而后者只是在前者的基础上稍微转动一下小圆形成,小圆之间明显不构成三角形轮廓。人们很容易通过肉眼区别出这两种图片,神经网络却不行,经典的CNN,LSTM,Transformer等对这两种图片的分类结果均只有50%左右的准确率。实验证明,神经网络对这种脑电信号的分类效果的提升也收效甚微,为此,本发明引入代数拓扑工具,拓扑是基于网络形状和结构的体量研究,结合代数的分析,将较为抽象的高维空间特征映射或降维成易于理解的数字特征,进而对数字量进行分析。The present invention provides a method for classifying Gestalt EEG signals based on algebraic topology. The Gestalt EEG signals are generated by subjects when viewing Gestalt and non-Gestalt (chaotic graph) pictures. An example of this is shown in Figure 2. The special feature of this kind of picture is that it is easy for people to distinguish them visually. The former three small circles with gaps form an obvious triangular outline, while the latter is just On the basis of the former, turn the small circles slightly to form, and the triangle outline is obviously not formed between the small circles. It is easy for people to distinguish the two kinds of pictures with the naked eye, but the neural network cannot. The classification results of the classic CNN, LSTM, Transformer, etc. for the two kinds of pictures are only about 50% accurate. Experiments have proved that neural networks have little effect on improving the classification effect of EEG signals. Therefore, the present invention introduces algebraic topology tools. Topology is based on the volume research of network shape and structure. Combined with algebraic analysis, it will be more Abstract high-dimensional spatial features are mapped or dimensionally reduced into easy-to-understand digital features, and then digital quantities are analyzed.
图1示出了本发明实施例提供的一种基于代数拓扑的格式塔脑电信号分类方法的流程图,所述方法具体包括以下子步骤:Fig. 1 shows a flow chart of a method for classifying Gestalt EEG signals based on algebraic topology provided by an embodiment of the present invention, the method specifically includes the following sub-steps:
步骤S1,对受试者进行轮廓识别图片的视觉刺激实验,获取原始的格式塔脑电信号数据。In step S1, the subject is subjected to a visual stimulation experiment of contour recognition pictures to obtain original Gestalt EEG signal data.
具体地,在本实例中步骤S1中通过视觉刺激实验获取原始格式塔脑电信号数据的过程如下:Specifically, in this example, the process of obtaining original Gestalt EEG signal data through a visual stimulation experiment in step S1 is as follows:
步骤S101,募集20名视力和精神状态正常、身体状况健康的志愿者,让受试者在屏蔽室无干扰状态下独自接受实验刺激及信号采集记录。Step S101, recruit 20 volunteers with normal eyesight and mental state, and healthy physical condition, and let the subjects receive the experimental stimulation and signal collection and recording alone in a shielded room without interference.
步骤S102,每位受试者观察10次格式塔图片及30次混乱图图片,每次观察时长为10s,次与次之间间隔时间为1s,具体流程如图3所示。Step S102, each subject observes
步骤S103,检查采集的格式塔脑电信号数据的有效性。Step S103, checking the validity of the collected Gestalt EEG signal data.
步骤S2,对步骤S1中获取的原始格式塔脑电信号进行预处理,使其成为适合作为代数拓扑工具处理的数据对象。Step S2, preprocessing the original Gestalt EEG signal acquired in step S1, making it a data object suitable for processing as an algebraic topology tool.
如图4所示,步骤S2中处理原始格式塔脑电信号的具体过程如下:As shown in Figure 4, the specific process of processing the original gestalt EEG signal in step S2 is as follows:
步骤S201,电极选择;采集到的原始格式塔脑电信号中有64个电极,选择1-59路作为处理对象,60-64路为定位电极,需要删除。Step S201 , electrode selection; there are 64 electrodes in the collected original Gestalt EEG signals, and channels 1-59 are selected as processing objects, and channels 60-64 are positioning electrodes, which need to be deleted.
步骤S202,滤波;使用带通滤波将格式塔脑电信号频率限制在0.1-45hz范围内,既去除了较高和较低波段的干扰信号,又基本保留了所有有效的脑电信号;Step S202, filtering; using band-pass filtering to limit the frequency of the Gestalt EEG signal within the range of 0.1-45hz, which not only removes the interference signals of the higher and lower bands, but also basically retains all effective EEG signals;
步骤S203,伪迹去除;信号采集过程中不可避免的会出现各种其他生物信号的伪迹干扰,故需进行针对眨眼、眼动、机电等各种伪迹噪声的去除。基于人脑常态信号的标准设定一噪声幅度阈限,将幅值尖峰超过噪声阈限的试次予以筛选摒除;Step S203, artifact removal; artifact interference from various other biological signals will inevitably occur during the signal acquisition process, so it is necessary to remove various artifact noises such as blinking, eye movement, and electromechanical noise. Based on the standard of the normal signal of the human brain, a noise amplitude threshold is set, and the trials with amplitude peaks exceeding the noise threshold are screened out;
步骤S204,基线校准;以每次实验开始前1s状态的脑电信号的均值作为该次自发脑电的基线,再用脑电信号减去基线从而得到相应的校准信号。Step S204, baseline calibration; the mean value of the EEG signal in the
步骤S3,对预处理后的格式塔脑电信号进行代数拓扑处理。Step S3, performing algebraic topology processing on the preprocessed Gestalt EEG signal.
具体地,经过步骤S2的处理,每个试次时段的信号为:Specifically, after the processing of step S2, the signal of each trial period is:
步骤S301,对每个试次时段的信号FEEG中的每一路信号即每一行进行希尔伯特变换并整合;Step S301, performing Hilbert transform and integrating each signal in the signal F EEG of each trial period, that is, each row;
其中N为数据长度,M为脑电信号采集的电极数目。Among them, N is the data length, and M is the number of electrodes for EEG signal collection.
其中,t表示时间变量,τ是卷积积分中的哑变量;Among them, t represents the time variable, and τ is the dummy variable in the convolution integral;
步骤S302,计算每一电极的瞬时相位:Step S302, calculate the instantaneous phase of each electrode:
其中,fi为FEEG中的第i行;Among them, f i is the i-th line in F EEG ;
步骤S303,采用锁相值(Phase Locking Value,PLV)相位同步分析法,计算关联矩阵对应元素的值;Step S303, using the phase locking value (Phase Locking Value, PLV) phase synchronization analysis method to calculate the value of the corresponding element of the correlation matrix;
其中,j为虚数单位,φP(n)、φq(n)表示电极p和q中的第n个采样时刻的瞬时相位。对(5)式计算结果取绝对值,并对整个矩阵归一化可得最终的关联矩阵CM×M:Among them, j is the imaginary number unit, φ P (n), φ q (n) represent the instantaneous phase of the nth sampling moment in electrodes p and q. Take the absolute value of the calculation result of formula (5), and normalize the entire matrix to get the final correlation matrix C M×M :
步骤S304,基于关联矩阵CM×M构建VR复形。Step S304, constructing a VR complex based on the correlation matrix C M×M .
具体地,关联矩阵CM×M中行列数代表着独立成分的初始数目,每行记录的值表征其与其他成分之间的“距离”,可以想象在高维空间中这一系列MM个独立成分依照各自的位置距离关系于空间中固定排布,从而可构建VR(Vietoris-Rips complex)复形。从零连接到复杂连接点集的滤值过程如图5所示,该过程中连接关系是随着滤值增长而变化的。Specifically, the number of rows and columns in the incidence matrix C M×M represents the initial number of independent components, and the value recorded in each row represents the "distance" between it and other components. It is conceivable that this series of M independent components in a high-dimensional space The components are fixedly arranged in space according to their position and distance, so that a VR (Vietoris-Rips complex) complex can be constructed. The filtering value process from zero connection to complex connection point set is shown in Figure 5. In this process, the connection relationship changes as the filtering value grows.
步骤S305,基于VR复形计算拓扑空间中n维孔洞数的代数对象—贝蒂数,共有β0,β1,β2三个维度的特征,取β0作为格式塔脑电信号分类网络的输入。Step S305, calculate the algebraic object of the n-dimensional hole number in the topological space based on the VR complex—Betty number, which has three dimensions of β 0 , β 1 , and β 2 features, and take β 0 as the input of the Gestalt EEG signal classification network .
步骤S4,构建格式塔脑电信号分类网络,对代数拓扑处理后的格式塔脑电信号进行分类。Step S4, constructing a Gestalt EEG signal classification network to classify the Gestalt EEG signals after the algebraic topology processing.
在本实例中,分别以长短期记忆网络(LSTM,Long Short-Term Memory)和Transformer编码器作为基础网络构建格式塔脑电信号分类网络。In this example, a Gestalt EEG signal classification network is constructed with a long short-term memory network (LSTM, Long Short-Term Memory) and a Transformer encoder as the basic network.
进一步地,所述步骤S4还包括:对格式塔脑电信号分类网络进行训练。Further, the step S4 also includes: training the Gestalt EEG signal classification network.
步骤S401,将待分类的格式塔脑电信号数据按照8:2的比例分为训练集和测试集。Step S401, dividing the Gestalt EEG signal data to be classified into a training set and a testing set according to a ratio of 8:2.
步骤S402,利用训练集训练格式塔脑电信号分类网络,并保存模型参数。Step S402, using the training set to train the Gestalt EEG signal classification network, and saving the model parameters.
步骤S403,用测试集测试格式塔脑电信号分类网络的准确率,直至达到自定义的准确率阈值。Step S403, using the test set to test the accuracy of the Gestalt EEG signal classification network until reaching a self-defined accuracy threshold.
如图7所示,本申请实施例提供一种电子设备,其包括存储器101,用于存储一个或多个程序;处理器102。当一个或多个程序被处理器102执行时,实现如上述第一方面中任一项的方法。As shown in FIG. 7 , an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; and a processor 102 . When one or more programs are executed by the processor 102, the method according to any one of the first aspect above is realized.
还包括通信接口103,该存储器101、处理器102和通信接口103相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。存储器101可用于存储软件程序及模块,处理器102通过执行存储在存储器101内的软件程序及模块,从而执行各种功能应用以及数据处理。该通信接口103可用于与其他节点设备进行信令或数据的通信。It also includes a communication interface 103, the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly, so as to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The memory 101 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 101 . The communication interface 103 can be used for signaling or data communication with other node devices.
其中,存储器101可以是但不限于,随机存取存储器101(Random Access Memory,RAM),只读存储器101(Read Only Memory,ROM),可编程只读存储器101(ProgrammableRead-Only Memory,PROM),可擦除只读存储器101(Erasable Programmable Read-OnlyMemory,EPROM),电可擦除只读存储器101(Electric Erasable Programmable Read-OnlyMemory,EEPROM)等。Wherein, memory 101 can be but not limited to, random access memory 101 (Random Access Memory, RAM), read-only memory 101 (Read Only Memory, ROM), programmable read-only memory 101 (Programmable Read-Only Memory, PROM), Erasable Programmable Read-Only Memory 101 (Erasable Programmable Read-Only Memory, EPROM), Electrically Erasable Programmable Read-Only Memory 101 (Electric Erasable Programmable Read-Only Memory, EEPROM) and the like.
处理器102可以是一种集成电路芯片,具有信号处理能力。该处理器102可以是通用处理器102,包括中央处理器102(Central Processing Unit,CPU)、网络处理器102(Network Processor,NP)等;还可以是数字信号处理器102(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 can be a general-purpose processor 102, including a central processing unit 102 (Central Processing Unit, CPU), a network processor 102 (Network Processor, NP), etc.; it can also be a digital signal processor 102 (Digital Signal Processing, DSP ), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
在本申请所提供的实施例中,应该理解到,所揭露的方法及系统,也可以通过其它的方式实现。以上所描述的方法及系统实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的方法及系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided in this application, it should be understood that the disclosed method and system may also be implemented in other ways. The method and system embodiments described above are only illustrative, for example, the flowcharts and block diagrams in the accompanying drawings show the system of possible implementations of methods and systems, methods and computer program products according to multiple embodiments of the present application Architecture, function and operation. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
另一方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器102执行时实现如上述第一方面中任一项的方法。所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器101(ROM,Read-Only Memory)、随机存取存储器101(RAM,RandomAccess Memory)、磁碟或者光盘等各种可以存储程序代码的介质。On the other hand, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by the processor 102, the method according to any one of the above-mentioned first aspects is implemented. If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory 101 (ROM, Read-Only Memory), random access memory 101 (RAM, RandomAccess Memory), magnetic disk or optical disk, etc., which can store program codes. medium.
本领域技术人员在考虑说明书及实践这里公开的内容后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的。Other embodiments of the present application will readily occur to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered as illustrative only.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310295594.2A CN116269446A (en) | 2023-03-24 | 2023-03-24 | Method, electronic equipment and medium for classifying format tower electroencephalogram signals based on algebraic topology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310295594.2A CN116269446A (en) | 2023-03-24 | 2023-03-24 | Method, electronic equipment and medium for classifying format tower electroencephalogram signals based on algebraic topology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116269446A true CN116269446A (en) | 2023-06-23 |
Family
ID=86823863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310295594.2A Pending CN116269446A (en) | 2023-03-24 | 2023-03-24 | Method, electronic equipment and medium for classifying format tower electroencephalogram signals based on algebraic topology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116269446A (en) |
-
2023
- 2023-03-24 CN CN202310295594.2A patent/CN116269446A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110547783B (en) | Non-contact heart rate detection method, system, equipment and storage medium | |
WO2021226778A1 (en) | Epileptic electroencephalogram recognition system based on hierarchical graph convolutional neural network, terminal, and storage medium | |
Hramov et al. | Wavelets in neuroscience | |
CN110338786B (en) | A method, system, device and medium for identifying and classifying epileptiform discharges | |
CN103345600B (en) | A kind of ecg signal data processing method | |
CN111657935A (en) | Epilepsia electroencephalogram recognition system based on hierarchical graph convolutional neural network, terminal and storage medium | |
CN111481192B (en) | A method for detecting R wave of ECG signal based on improved U-Net | |
US20070225932A1 (en) | Methods, systems and computer program products for extracting paroxysmal events from signal data using multitaper blind signal source separation analysis | |
WO2021159571A1 (en) | Method and device for constructing and identifying multiple mood states using directed dynamic functional brain network | |
Madanu et al. | Depth of anesthesia prediction via EEG signals using convolutional neural network and ensemble empirical mode decomposition | |
CN113349793A (en) | Arrhythmia classification method based on layered attention model | |
CN113331845A (en) | Electroencephalogram signal feature extraction and accuracy discrimination method based on continuous coherence | |
CN113180696A (en) | Intracranial electroencephalogram detection method and device, electronic equipment and storage medium | |
CN113180659B (en) | Electroencephalogram emotion recognition method based on three-dimensional feature and cavity full convolution network | |
CN113208633A (en) | Emotion recognition method and system based on EEG brain waves | |
CN116602676A (en) | A method and system for EEG emotion recognition based on multi-feature fusion and CLSTN | |
CN116881762A (en) | Emotion recognition method based on dynamic brain network characteristics | |
CN109068024A (en) | The method that a kind of pair of space-time signal is filtered | |
CN113974653B (en) | Method and device for detecting optimized spike based on about log index, storage medium and terminal | |
CN109953757A (en) | Real-time monitoring method of mental load for continuous tracking control and shooting tasks | |
CN109498001B (en) | Sleep quality evaluation method and device | |
CN116269446A (en) | Method, electronic equipment and medium for classifying format tower electroencephalogram signals based on algebraic topology | |
Fraga et al. | Comparison of higuchi, katz and multiresolution box-counting fractal dimension algorithms for eeg waveform signals based on event-related potentials | |
CN111616680A (en) | A method and system for automatic identification of mental load | |
CN115969398B (en) | Blink detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |