CN117075741B - A consciousness interactive communication method and system - Google Patents
A consciousness interactive communication method and system Download PDFInfo
- Publication number
- CN117075741B CN117075741B CN202311338300.6A CN202311338300A CN117075741B CN 117075741 B CN117075741 B CN 117075741B CN 202311338300 A CN202311338300 A CN 202311338300A CN 117075741 B CN117075741 B CN 117075741B
- Authority
- CN
- China
- Prior art keywords
- electroencephalogram
- waveform
- eyeball
- preset
- length
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004891 communication Methods 0.000 title claims abstract description 17
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 14
- 210000005252 bulbus oculi Anatomy 0.000 claims abstract description 91
- 230000004424 eye movement Effects 0.000 claims abstract description 7
- 210000004556 brain Anatomy 0.000 claims description 60
- 238000012790 confirmation Methods 0.000 claims description 14
- 230000003993 interaction Effects 0.000 claims description 4
- 208000003443 Unconsciousness Diseases 0.000 abstract description 10
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 238000012545 processing Methods 0.000 abstract description 2
- 238000000537 electroencephalography Methods 0.000 description 54
- 238000006243 chemical reaction Methods 0.000 description 12
- 210000001508 eye Anatomy 0.000 description 12
- 230000001186 cumulative effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 210000005036 nerve Anatomy 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 208000007204 Brain death Diseases 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 210000000133 brain stem Anatomy 0.000 description 2
- 230000011514 reflex Effects 0.000 description 2
- 230000029058 respiratory gaseous exchange Effects 0.000 description 2
- 230000001755 vocal effect Effects 0.000 description 2
- 206010011224 Cough Diseases 0.000 description 1
- 241000282412 Homo Species 0.000 description 1
- 241001282135 Poromitra oscitans Species 0.000 description 1
- 206010048232 Yawning Diseases 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 230000003930 cognitive ability Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004060 metabolic process Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 235000015097 nutrients Nutrition 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 206010041232 sneezing Diseases 0.000 description 1
- 230000002269 spontaneous effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/013—Eye tracking input arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/015—Input arrangements based on nervous system activity detection, e.g. brain waves [EEG] detection, electromyograms [EMG] detection, electrodermal response detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/12—Classification; Matching
- G06F2218/14—Classification; Matching by matching peak patterns
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Neurology (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Neurosurgery (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Dermatology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
Description
技术领域Technical field
本发明属于数据处理技术领域,具体涉及一种意识交互沟通方法。The invention belongs to the field of data processing technology, and specifically relates to a consciousness interactive communication method.
背景技术Background technique
植物人(PVS)是与植物生存状态相似的特殊的人体状态。除保留一些本能性的神经反射和进行物质及能量的代谢能力外,认知能力(包括对自己存在的认知力)已完全丧失,无任何主动活动。又称植质状态、不可逆昏迷。植物人的脑干仍具有功能,向其体内输送营养时,还能消化与吸收,并可利用这些能量维持身体的代谢,包括呼吸、心跳、血压等。对外界刺激也能产生一些本能的反射,如咳嗽、喷嚏、打哈欠等。但机体已没有意识、知觉、思维等人类特有的高级神经活动。脑电图呈杂散的波形。植物状态与脑死亡不同,脑死亡指包括脑干在内的全脑死亡。脑死亡者,无自主呼吸,脑电图呈一条直线。Vegetative state (PVS) is a special human state similar to the living state of plants. In addition to retaining some instinctive nerve reflexes and the ability to metabolize matter and energy, cognitive abilities (including the ability to recognize one's own existence) have been completely lost, and there is no active activity. Also known as vegetative state and irreversible coma. The brainstem of a vegetative person is still functional. It can digest and absorb nutrients when transporting them to the body, and can use this energy to maintain the body's metabolism, including breathing, heartbeat, blood pressure, etc. Some instinctive reflexes can also occur in response to external stimuli, such as coughing, sneezing, yawning, etc. But the body no longer has consciousness, perception, thinking and other advanced neural activities unique to humans. The electroencephalogram showed spurious waveforms. The vegetative state is different from brain death, which refers to the death of the whole brain, including the brainstem. A brain-dead person has no spontaneous breathing and the electroencephalogram shows a straight line.
但是,部分植物人经过治疗和恢复,能够实现一定的脑电图波动和/或能够自主控制眼部的运动。但是无法进行言语的交流。为了与方便与此种患者进行意识交互沟通,我们通常采用提取脑电图或眼动仪的特征部分,来进行意识形态的标记,从而实现一定的交互。However, after treatment and recovery, some vegetative people can achieve certain electroencephalogram fluctuations and/or be able to control eye movements independently. But verbal communication is impossible. In order to facilitate conscious interactive communication with such patients, we usually extract the characteristic parts of the electroencephalogram or eye tracker to mark the ideology, so as to achieve a certain degree of interaction.
但是,现有技术中的单纯的脑电图的分析和单纯的眼动仪的分析的分析结果都存在较大的误差,相比于直接正面言语交流,还是存在较大的识别正确率的问题,从而给交互带来了较大的障碍。However, the analysis results of pure electroencephalogram analysis and pure eye tracker analysis in the existing technology have large errors. Compared with direct frontal verbal communication, there is still a problem of greater recognition accuracy. , thus bringing greater obstacles to interaction.
此外,无论是眼动仪还是脑电图,都会出现无意识的盯着某个地方或者无意识的出现波形的跳动,单以其中一个结果作为最终的一个交互结果是正确率过低的。In addition, whether it is an eye tracker or an electroencephalogram, there will be unconscious staring at a certain place or unconscious waveform beating. Taking one of the results as the final interaction result is too low in accuracy.
因此,目前需要一种能够克服上述技术问题的一种意识交互沟通方法及系统。Therefore, there is currently a need for a consciousness interactive communication method and system that can overcome the above technical problems.
发明内容Contents of the invention
本发明的目的是提供一种意识交互沟通方法,用以解决现有技术中存在的上述问题。The purpose of the present invention is to provide a consciousness interactive communication method to solve the above problems existing in the prior art.
为了实现上述目的,本发明采用以下技术方案:In order to achieve the above objects, the present invention adopts the following technical solutions:
本发明提供了一种意识交互沟通方法,包括The present invention provides a consciousness interactive communication method, including
显示问题图像,其中,所述问题图像包括文字数据、第一按钮符号和第二按钮符号;Display a question image, wherein the question image includes text data, a first button symbol and a second button symbol;
采集眼球朝向方向,并输出为眼球方向;Collect the eyeball direction and output it as the eyeball direction;
判断所述眼球方向与预存的第一按钮或第二按钮的其中之一对应的第一位置数据是否一致,若是,则采集预设时间内的脑电图;判断脑电图的波形是否与预存的第一脑电波匹配,若匹配,则输出与所述第一位置数据对应的文字数据;Determine whether the eyeball direction is consistent with the first position data corresponding to one of the pre-stored first button or the second button. If so, collect the electroencephalogram within a preset time; determine whether the waveform of the electroencephalogram is consistent with the pre-stored first position data. The first brain waves match, and if they match, text data corresponding to the first position data is output;
所述采集眼球朝向方向,并输出为眼球方向包括如下步骤:The method of collecting the eyeball direction and outputting it as the eyeball direction includes the following steps:
采集所述眼球朝向的实时方向;Collect the real-time direction of the eyeball orientation;
判断所述眼球朝向处于预设方向区域的累计时长是否超过确认阈值,若是,将所述预设方向区域输出为眼球方向;Determine whether the cumulative duration of the eyeball orientation in the preset direction area exceeds a confirmation threshold, and if so, output the preset direction area as the eyeball direction;
所述采集预设时间内的脑电图包括:The collection of EEG within a preset time includes:
所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的起点相同;The starting point of the timeline of the preset time is the same as the starting point of the timeline of the time remaining within the preset direction area;
采集预设时间内的脑电图;Collect EEG within a preset time;
所述判断脑电图的波形是否与预存的第一脑电波匹配包括:Determining whether the waveform of the electroencephalogram matches the prestored first brain wave includes:
预存与文字数据对应的第一脑电波;Pre-store the first brain wave corresponding to the text data;
将所述脑电图的波形以相邻的两个波峰至波峰分割为第一片段,判断所述第一片段的波峰幅度或波谷幅度的其中之一是否大于第一预设阈值,若否,则删除该第一片段,若是,则将相邻的第一片段的波峰之间的横坐标作为第一长度;Divide the electroencephalogram waveform into a first segment from two adjacent wave peaks, and determine whether one of the peak amplitude or the trough amplitude of the first segment is greater than a first preset threshold; if not, Then delete the first segment, and if so, use the abscissa between the peaks of the adjacent first segments as the first length;
判断最小的第一长度是否低于第二预设阈值,若是,则将所述脑电图的波形配置在网格内,并将所述第二预设阈值配置为单位网格长度,若否,则将所述最小的第一长度配置为单位网格长度;Determine whether the minimum first length is lower than the second preset threshold. If so, configure the electroencephalogram waveform in the grid, and configure the second preset threshold as the unit grid length. If not , then configure the minimum first length as the unit grid length;
将脑电图的波形的所有第一片段的波峰或波谷的最大幅度点和其中一个单位网格的左下角端点重合;Coincide the maximum amplitude point of the peak or trough of all the first segments of the EEG waveform with the lower left corner endpoint of one of the unit grids;
统计所述脑电图的波形与第一脑电波之间的未重合的面积所占网格数量,将所占网格数量最少的第一脑电图判定为与所述脑电图的波形匹配。The number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first brain wave is counted, and the first electroencephalogram occupying the smallest number of grids is determined to match the waveform of the electroencephalogram. .
本发明提供了一种意识交互沟通方法的系统,包括The present invention provides a system of consciousness interactive communication method, including
图像显示模块,其用于显示问题图像,其中,所述问题图像包括文字数据、第一按钮符号和第二按钮符号;An image display module configured to display a question image, wherein the question image includes text data, a first button symbol and a second button symbol;
眼动仪,其用于采集眼球朝向方向,并输出为眼球方向;Eye tracker, which is used to collect the eyeball direction and output it as the eyeball direction;
处理器,其用于判断所述眼球方向与预存的第一按钮或第二按钮的其中之一对应的第一位置数据是否一致,若是,则采集预设时间内的脑电图;并且判断脑电图的波形是否与预存的第一脑电波匹配,若匹配,则输出与所述第一位置数据对应的文字数据;A processor configured to determine whether the eyeball direction is consistent with the first position data corresponding to one of the prestored first button or the second button, and if so, collect the electroencephalogram within a preset time; and determine whether the brain Whether the waveform of the electrogram matches the pre-stored first brain wave, and if it matches, output text data corresponding to the first position data;
所述采集眼球朝向方向,并输出为眼球方向包括如下步骤:The method of collecting the eyeball direction and outputting it as the eyeball direction includes the following steps:
采集所述眼球朝向的实时方向;Collect the real-time direction of the eyeball orientation;
判断所述眼球朝向处于预设方向区域的累计时长是否超过确认阈值,若是,将所述预设方向区域输出为眼球方向;Determine whether the cumulative duration of the eyeball orientation in the preset direction area exceeds a confirmation threshold, and if so, output the preset direction area as the eyeball direction;
所述则采集预设时间内的脑电图包括:The collection of EEG within a preset time period includes:
所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的起点相同;The starting point of the timeline of the preset time is the same as the starting point of the timeline of the time remaining within the preset direction area;
采集预设时间内的脑电图;Collect EEG within a preset time;
所述判断脑电图的波形是否与预存的第一脑电波匹配包括:Determining whether the waveform of the electroencephalogram matches the prestored first brain wave includes:
预存与文字数据对应的第一脑电波;Pre-store the first brain wave corresponding to the text data;
将所述脑电图的波形以相邻的两个波峰至波峰分割为第一片段,判断所述第一片段的波峰幅度或波谷幅度的其中之一是否大于第一预设阈值,若否,则删除该第一片段,若是,则将相邻的第一片段的波峰之间的横坐标作为第一长度;Divide the electroencephalogram waveform into a first segment from two adjacent wave peaks, and determine whether one of the peak amplitude or the trough amplitude of the first segment is greater than a first preset threshold; if not, Then delete the first segment, and if so, use the abscissa between the peaks of the adjacent first segments as the first length;
判断最小的第一长度是否低于第二预设阈值,若是,则将所述脑电图的波形配置在网格内,并将所述第二预设阈值配置为单位网格长度,若否,则将所述最小的第一长度配置为单位网格长度;Determine whether the minimum first length is lower than the second preset threshold. If so, configure the electroencephalogram waveform in the grid, and configure the second preset threshold as the unit grid length. If not , then configure the minimum first length as the unit grid length;
将脑电图的波形的所有第一片段的波峰或波谷的最大幅度点和其中一个单位网格的左下角端点重合;Coincide the maximum amplitude point of the peak or trough of all the first segments of the EEG waveform with the lower left corner endpoint of one of the unit grids;
统计所述脑电图的波形与第一脑电波之间的未重合的面积所占网格数量,将所占网格数量最少的第一脑电图判定为与所述脑电图的波形匹配。The number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first brain wave is counted, and the first electroencephalogram occupying the smallest number of grids is determined to match the waveform of the electroencephalogram. .
有益效果:Beneficial effects:
本发明通过上述眼球朝向和脑电图的波形的双重判断,从而实现了两种电信号的双重校验,从而输出的文字数据的正确率更加高。此外,眼动仪可作为是否为脑电图的选取时间段的定位,从而避免无意识引发的脑电图异常波动而带来的错误判断和无意识的眼动停留方向带来的错误判断。The present invention realizes double verification of the two electrical signals through the above-mentioned double judgment of eyeball orientation and electroencephalogram waveform, so that the accuracy of the output text data is higher. In addition, the eye tracker can be used to determine whether the selected time period is EEG, thus avoiding misjudgments caused by abnormal fluctuations in EEG caused by unconsciousness and misjudgments caused by unconscious eye movement direction.
附图说明Description of the drawings
图1为本发明一种意识交互沟通方法的第一流程图;Figure 1 is a first flow chart of a consciousness interactive communication method according to the present invention;
图2为本发明一种意识交互沟通方法的第二流程图;Figure 2 is a second flow chart of a consciousness interactive communication method of the present invention;
图3为脑电图的波形示意图;Figure 3 is a schematic diagram of the waveform of EEG;
图4为实物演示状态示意图。Figure 4 is a schematic diagram of the physical demonstration state.
具体实施方式Detailed ways
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将结合附图和实施例或现有技术的描述对本发明作简单地介绍,显而易见地,下面关于附图结构的描述仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在此需要说明的是,对于这些实施例方式的说明用于帮助理解本发明,但并不构成对本发明的限定。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts. It should be noted here that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
实施例:Example:
如图1、3、4所示,本实施例提供了一种意识交互沟通方法,包括As shown in Figures 1, 3, and 4, this embodiment provides a consciousness interactive communication method, including
显示问题图像,其中,所述问题图像包括文字数据、第一按钮符号和第二按钮符号;Display a question image, wherein the question image includes text data, a first button symbol and a second button symbol;
采集眼球朝向方向,并输出为眼球方向;Collect the eyeball direction and output it as the eyeball direction;
判断所述眼球方向与预存的第一按钮或第二按钮的其中之一对应的第一位置数据是否一致,若是,则采集预设时间内的脑电图;判断脑电图的波形是否与预存的第一脑电波匹配,若匹配,则输出与所述第一位置数据对应的文字数据。Determine whether the eyeball direction is consistent with the first position data corresponding to one of the pre-stored first button or the second button. If so, collect the electroencephalogram within a preset time; determine whether the waveform of the electroencephalogram is consistent with the pre-stored first position data. The first brain waves match, and if they match, text data corresponding to the first position data is output.
本发明通过上述眼球朝向和脑电图的波形的双重判断,从而实现了两种电信号的双重校验,从而输出的文字数据的正确率更加高。此外,眼动仪可作为是否为脑电图的选取时间段的定位,从而避免无意识引发的脑电图异常波动而带来的错误判断和无意识的眼动停留方向带来的错误判断。The present invention realizes double verification of the two electrical signals through the above-mentioned double judgment of eyeball orientation and electroencephalogram waveform, so that the accuracy of the output text data is higher. In addition, the eye tracker can be used to determine whether the selected time period is EEG, thus avoiding misjudgments caused by abnormal fluctuations in EEG caused by unconsciousness and misjudgments caused by unconscious eye movement direction.
使用时,与病人交互的人可口述问题,并准备相应的问题图像,或者直接在如图4所示的问题图像上写明问题。When used, the person interacting with the patient can dictate the problem and prepare the corresponding problem image, or directly write the problem on the problem image as shown in Figure 4.
其中,“采集眼球朝向方向”的方式可为:通过眼动仪采集眼球的朝向方向。所述眼动仪为现有技术。Among them, the method of "collecting the eyeball direction" may be: collecting the eyeball direction through an eye tracker. The eye tracker is an existing technology.
其中,所述“则输出与所述第一位置数据对应的文字数据”,就是说,“则输出与所述第一位置数据对应的第一按钮或第二按钮对应的文字数据”,也就是说,所述第一按钮和第二按钮可分别对应文字数据如下表格所述:Among them, "then output text data corresponding to the first position data", that is to say, "then output text data corresponding to the first button or second button corresponding to the first position data", that is, That is, the first button and the second button can respectively correspond to text data as described in the following table:
其中,本发明设有数据库,数据库用于预存与第一按钮符号和第二按钮符号对应的第一位置数据;并且数据库还用于预存与第一标准电波对应的第一符号特征。Among them, the present invention is provided with a database, which is used to pre-store the first position data corresponding to the first button symbol and the second button symbol; and the database is also used to pre-store the first symbol feature corresponding to the first standard radio wave.
其中,参见图1、3、4,所述采集眼球朝向方向,并输出为眼球方向包括如下步骤:Among them, referring to Figures 1, 3, and 4, collecting the eyeball direction and outputting it as the eyeball direction includes the following steps:
采集所述眼球朝向的实时方向;Collect the real-time direction of the eyeball orientation;
判断所述眼球朝向处于预设方向区域的累计时长是否超过确认阈值,若是,将所述预设方向区域输出为眼球方向;Determine whether the cumulative duration of the eyeball orientation in the preset direction area exceeds a confirmation threshold, and if so, output the preset direction area as the eyeball direction;
所述则采集预设时间内的脑电图包括如下步骤:The method of collecting EEG within a preset time includes the following steps:
所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的起点相同;The starting point of the timeline of the preset time is the same as the starting point of the timeline of the time remaining within the preset direction area;
采集预设时间内的脑电图。Collect EEG within a preset time.
本发明通过采集眼球停滞时的起始时间,来作为采集脑电图的判断条件,可便于用户先看到第一按钮或第二按钮的文字数据,从而可在看到第一按钮对应的文字数据后,并且理解上述文字数据后,引发对其的想法,从而截取与上述眼球方向对应的预设时间内的脑电图,从而使采集的脑电图更加具备针对性,并且为脑电图的波形判断过滤了很多不必要的脑电图的时间段。The present invention collects the starting time when the eyeballs stagnate as a judgment condition for collecting electroencephalogram, which can facilitate the user to see the text data of the first button or the second button first, so that the user can see the text corresponding to the first button. After the data is collected, and after understanding the above text data, it triggers thoughts about it, thereby intercepting the EEG within the preset time corresponding to the above eyeball direction, so that the collected EEG is more targeted and is an EEG The waveform judgment filters out many unnecessary EEG time periods.
其中,所述问题图像中,可设置为,左侧是第一按钮,右侧是第二按钮,第一按钮内设有与其对应的文字数据,第二按钮内设有与其对应的文字数据。Wherein, in the question image, it can be configured that the left side is a first button and the right side is a second button. The first button is provided with text data corresponding to it, and the second button is provided with text data corresponding to it.
其中,所述预设时间和确认阈值均相同,其均可为1秒、2秒、3秒、4秒或5秒,也就是说,眼球开始看之后的时间段有效。Wherein, the preset time and the confirmation threshold are the same, and they can be 1 second, 2 seconds, 3 seconds, 4 seconds or 5 seconds. That is to say, the time period after the eyeball starts looking is valid.
当然,所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的起点相同,但是保持在预设方向区域内的时间可长于所述预设时间1秒或2秒或3秒,例如,所述预设时间为3秒,代表眼球看了三米秒,而保持在预设方向区域内的时间可为4秒或5秒或6秒,代表采集眼球开始看之后的4秒或5秒或6秒内的脑电图,从而增加采集的精度。Of course, the starting point of the time axis of the preset time is the same as the starting point of the time axis of the time remaining in the preset direction area, but the time staying in the preset direction area can be longer than the preset time by 1 second or 2 seconds. seconds or 3 seconds. For example, the preset time is 3 seconds, which means that the eyeballs have been looking for three meters for seconds, and the time remaining in the preset direction area can be 4 seconds, 5 seconds, or 6 seconds, which means that the eyeballs have been collected and started to look. Then the EEG within 4 seconds or 5 seconds or 6 seconds, thereby increasing the accuracy of the acquisition.
其中,预设方向区域可仅仅为左侧一个区域,右侧一个区域,共两个区域;或者,上下左右各一个区域,共4个区域。Among them, the preset direction area can be only one area on the left and one area on the right, a total of two areas; or one area each up, down, left, and right, a total of four areas.
当然,作为一种变形结构还可为,参见图1、3、4,所述采集眼球朝向方向,并输出为眼球方向包括如下步骤:Of course, as a deformation structure, it can also be, see Figures 1, 3, and 4. The method of collecting the eyeball direction and outputting it as the eyeball direction includes the following steps:
采集所述眼球朝向的实时方向;Collect the real-time direction of the eyeball orientation;
判断所述眼球朝向处于预设方向区域的累计时长是否超过确认阈值,若是,将所述预设方向区域输出为眼球方向;Determine whether the cumulative duration of the eyeball orientation in the preset direction area exceeds a confirmation threshold, and if so, output the preset direction area as the eyeball direction;
所述则采集预设时间内的脑电图包括如下步骤:The method of collecting EEG within a preset time includes the following steps:
所述预设时间的时间轴的终点与保持在预设方向区域内的时间的时间轴的终点相同;采集预设时间内的脑电图。The end point of the time axis of the preset time is the same as the end point of the time axis remaining in the preset direction area; the electroencephalogram within the preset time is collected.
本发明通过采集眼球停滞时的终止时间,来作为采集脑电图的判断条件,可便于用户先看到第一按钮或第二按钮的文字数据,从而可在看到第一按钮对应的文字数据后,并且理解上述文字数据后,引发对其的想法,从而截取与上述眼球方向对应的预设时间内的脑电图,从而使采集的脑电图更加具备针对性,并且为脑电图的波形判断过滤了很多不必要的脑电图的时间段。The present invention collects the end time when the eyeballs stagnate as a judgment condition for collecting electroencephalogram, which can facilitate the user to see the text data of the first button or the second button first, so that the user can see the text data corresponding to the first button. Finally, after understanding the above text data, it triggers thoughts about it, thereby intercepting the EEG within the preset time corresponding to the above eyeball direction, thereby making the collected EEG more targeted and providing the basis for EEG analysis. Waveform judgment filters out many unnecessary EEG time periods.
其中,保持在预设方向区域内的时间的时间轴的终点可理解为,以保持在预设方向区域内的时间刚好超过确认阈值的时间点为终点。The end point of the time axis of the time remaining in the preset direction area can be understood as the time point when the time remaining in the preset direction area just exceeds the confirmation threshold.
其中,所述预设时间和保持在预设方向区域内的时间可相同,其均可为1秒、2秒、3秒、4秒或5秒,也就是说,眼球开始看之后的时间段有效。Wherein, the preset time and the time to stay in the preset direction area can be the same, which can be 1 second, 2 seconds, 3 seconds, 4 seconds or 5 seconds, that is, the time period after the eyeballs start to look. efficient.
当然,所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的终点相同,但是保持在预设方向区域内的时间可长于所述预设时间1秒或2秒或3秒,例如,所述预设时间为3秒,代表眼球看了三米秒,而保持在预设方向区域内的时间可为4秒或5秒或6秒,代表采集想控制眼球开始看的1秒或2秒或3秒之前的脑电图,从而增加采集的精度。Of course, the starting point of the time axis of the preset time is the same as the end point of the time axis of the time remaining in the preset direction area, but the time staying in the preset direction area can be longer than the preset time by 1 second or 2 seconds. Seconds or 3 seconds. For example, the preset time is 3 seconds, which means that the eyeballs are looking for three meters for seconds, and the time remaining in the preset direction area can be 4 seconds, 5 seconds, or 6 seconds, which means that the eyeballs are collected and controlled. Start looking at the EEG 1 second or 2 seconds or 3 seconds ago, thereby increasing the accuracy of the collection.
其中,参见图2、3、4,所述判断脑电图的波形是否与预存的第一脑电波匹配包括:Among them, referring to Figures 2, 3, and 4, the determination of whether the waveform of the electroencephalogram matches the prestored first brain wave includes:
预存与文字数据对应的第一脑电波;Pre-store the first brain wave corresponding to the text data;
将所述脑电图的波形以相邻的两个波峰至波峰为分割为第一片段,判断所述第一片段的波峰幅度或波谷幅度的其中之一是否大于第一预设阈值,若否,则删除该第一片段,若是,则将相邻的第一片段的波峰之间的横坐标作为第一长度,并删除第一长度中的被删除的第一片段的相邻两侧的第一长度;Divide the electroencephalogram waveform into a first segment from two adjacent wave peaks, and determine whether one of the peak amplitude or the trough amplitude of the first segment is greater than a first preset threshold; if not, , then delete the first segment. If so, use the abscissa between the peaks of the adjacent first segments as the first length, and delete the first length on both sides of the adjacent first segment. a length;
判断最小的第一长度是否低于第二预设阈值,若是,则将所述脑电图的波形配置在网格内,并将所述第二预设阈值配置为单位网格长度,若否,则将所述最小的第一长度配置为单位网格长度;Determine whether the minimum first length is lower than the second preset threshold. If so, configure the electroencephalogram waveform in the grid, and configure the second preset threshold as the unit grid length. If not , then configure the minimum first length as the unit grid length;
将脑电图的波形的所有第一片段的波峰或波谷的最大幅度点和其中一个单位网格的左下角端点重合;Coincide the maximum amplitude point of the peak or trough of all the first segments of the EEG waveform with the lower left corner endpoint of one of the unit grids;
统计所述脑电图的波形与第一脑电波之间的未重合的面积所占网格数量,将所占网格数量最少的第一脑电图判定为与所述脑电图的波形匹配。The number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first brain wave is counted, and the first electroencephalogram occupying the smallest number of grids is determined to match the waveform of the electroencephalogram. .
本发明通过上述网格匹配方式将第一脑电波与所述脑电图的波形进行匹配,从而找出数据库中预存的与现有的脑电图的波形最为匹配的第一脑电波。此外,本发明选择的网格方式是需要强调的,由于不同的人的神经的反应力不同或兴奋程度不同,检测出的脑电图的波形的波峰波谷也不同,而数据库中存储的仅仅是较长常规的兴奋程度或者反应力而预存的第一脑电波,并且所述第一脑电波含有与其对应的第一文字。那么,如果要找出与其最为匹配的第一脑电波,势必要考虑到目前人们的兴奋程度和反应力对目前的脑电图的波形的影响。因此,根据不同的脑电图的波峰之间的距离而配置相应大小的网格,从而进行网格数量的统计,会更加合理的统计出与其网格数量对应的、匹配的第一脑电波。The present invention matches the first brain wave with the waveform of the electroencephalogram through the above grid matching method, thereby finding the first brain wave pre-stored in the database that best matches the existing electroencephalogram waveform. In addition, the grid method selected by the present invention needs to be emphasized. Since different people have different nerve reactions or different levels of excitement, the peaks and troughs of the detected EEG waveforms are also different, and what is stored in the database is only The first brain wave is pre-stored due to a longer conventional level of excitement or reaction, and the first brain wave contains the first text corresponding to it. Then, if we want to find the first brain wave that best matches it, we must take into account the impact of people's current level of excitement and reaction on the current EEG waveform. Therefore, by configuring grids of corresponding sizes according to the distances between the wave peaks of different EEGs, and counting the number of grids, it will be more reasonable to count the matching first brain waves corresponding to the number of grids.
其中,所述第一阈值、第二阈值均可为以相同方式统计出的所有预存的第一脑电波的波峰和波峰之间的最小距离。Wherein, the first threshold and the second threshold may both be the minimum distance between the peaks of all pre-stored first brain waves calculated in the same manner.
其中,统计所述脑电图的波形与第一脑电图之间的未重合的面积所占网格数量,这一数量可表示两个波形的波形差距是否较大还是较小,需要说明的是,所占网格数量按四舍五入计算,也就是说,占据一个网格不到一半,则不统计,若超过一半,则算作占据一个网格。Among them, the number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first electroencephalogram is counted. This number can indicate whether the waveform difference between the two waveforms is larger or smaller. It needs to be explained. Yes, the number of occupied grids is calculated based on rounding. That is to say, if it occupies less than half of a grid, it will not be counted. If it occupies more than half, it will be counted as occupying one grid.
其中,所有第一片段的波峰或波谷的最大幅度点可理解为,若波峰为(1,10),波谷为(3,-20),则以波谷为最大幅度点,也就是说,所有第一片段的波峰或波谷的最大幅度点统计的是最大幅度的绝对值最大的点。Among them, the maximum amplitude point of all the peaks or troughs of the first segment can be understood as, if the peak is (1,10) and the trough is (3,-20), then the trough is the maximum amplitude point, that is, all the peaks and troughs of the first segment are The statistics of the maximum amplitude point of a wave peak or trough in a segment are the points with the largest absolute value of the maximum amplitude.
以所述脑电图的相邻的波峰的横坐标的最小间距配置为网格的长度,The minimum distance between the abscissas of adjacent wave peaks of the electroencephalogram is configured as the length of the grid,
其中,网格长度的平方可以理解为网格的面积,以上述方式配置的方格长度,可更好地适应于不同的人体。Among them, the square of the grid length can be understood as the area of the grid. The grid length configured in the above way can better adapt to different human bodies.
其中,“则删除该第一片段可理解为”和“并删除第一长度中的被删除的第一片段的相邻两侧的第一长度”,波形图中直接删除该段第一片段,并且,其他的第一片段的位置不动,也就是说,如果删除了这一第一片段,则一般不能统计到这一第一片段的两侧相邻的波峰作为最小的第一长度。Among them, "then delete the first segment can be understood as" and "and delete the first length on both sides of the adjacent two sides of the deleted first segment in the first length", and the first segment is directly deleted in the waveform diagram, Moreover, the positions of other first segments do not change. That is to say, if this first segment is deleted, the adjacent wave peaks on both sides of this first segment cannot generally be counted as the minimum first length.
若是,则判断所述眼球朝向方向朝向所述第一按钮或第二按钮的其中之一对应的第一位置数据的时间是否超过确认阈值;If so, determine whether the time for which the eyeball is directed toward the first position data corresponding to one of the first button or the second button exceeds a confirmation threshold;
当然,作为一种变形结构还可为,参见图2、3、4,所述判断脑电图的波形是否与预存的第一脑电波匹配包括:Of course, as a deformation structure, it can also be, see Figures 2, 3, and 4. Determining whether the waveform of the electroencephalogram matches the prestored first brain wave includes:
预存与文字数据对应的第一脑电波;Pre-store the first brain wave corresponding to the text data;
将所述脑电图的波形以波峰至波谷为分割为第一片段,判断所述第一片段的波峰幅度或波谷幅度的其中之一是否大于第一预设阈值,若否,则删除该第一片段,若是,则将相邻的第一片段的波谷之间的横坐标作为第一长度,并删除第一长度中的被删除的第一片段的相邻两侧的第一长度;Divide the electroencephalogram waveform into first segments from peak to trough, and determine whether one of the peak amplitude or trough amplitude of the first segment is greater than a first preset threshold; if not, delete the first segment. A segment, if so, use the abscissa between the troughs of adjacent first segments as the first length, and delete the first lengths on both adjacent sides of the deleted first segment in the first length;
判断最小的第一长度是否低于第二预设阈值,若是,则将所述脑电图的波形配置在网格内,并将所述第二预设阈值配置为单位网格长度,若否,则将所述最小的第一长度配置为单位网格长度;Determine whether the minimum first length is lower than the second preset threshold. If so, configure the electroencephalogram waveform in the grid, and configure the second preset threshold as the unit grid length. If not , then configure the minimum first length as the unit grid length;
将脑电图的波形的所有第一片段的波峰或波谷的最大幅度点和其中一个单位网格的左下角端点重合;Coincide the maximum amplitude point of the peak or trough of all the first segments of the EEG waveform with the lower left corner endpoint of one of the unit grids;
统计所述脑电图的波形与第一脑电波之间的未重合的面积所占网格数量,将所占网格数量最少的第一脑电图判定为与所述脑电图的波形匹配。The number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first brain wave is counted, and the first electroencephalogram occupying the smallest number of grids is determined to match the waveform of the electroencephalogram. .
本发明通过上述网格匹配方式将第一脑电波与所述脑电图的波形进行匹配,从而找出数据库中预存的与现有的脑电图的波形最为匹配的第一脑电波。此外,本发明选择的网格方式是需要强调的,由于不同的人的神经的反应力不同或兴奋程度不同,检测出的脑电图的波形的波峰波谷也不同,而数据库中存储的仅仅是较长常规的兴奋程度或者反应力而预存的第一脑电波,并且所述第一脑电波含有与其对应的第一文字。那么,如果要找出与其最为匹配的第一脑电波,势必要考虑到目前人们的兴奋程度和反应力对目前的脑电图的波形的影响。因此,根据不同的脑电图的波谷之间的距离而配置相应大小的网格,从而进行网格数量的统计,会更加合理的统计出与其网格数量对应的、匹配的第一脑电波。The present invention matches the first brain wave with the waveform of the electroencephalogram through the above grid matching method, thereby finding the first brain wave pre-stored in the database that best matches the existing electroencephalogram waveform. In addition, the grid method selected by the present invention needs to be emphasized. Since different people have different nerve reactions or different levels of excitement, the peaks and troughs of the detected EEG waveforms are also different, and what is stored in the database is only The first brain wave is pre-stored due to a longer conventional level of excitement or reaction, and the first brain wave contains the first text corresponding to it. Then, if we want to find the first brain wave that best matches it, we must take into account the impact of people's current level of excitement and reaction on the current EEG waveform. Therefore, by configuring grids of corresponding sizes according to the distances between the troughs of different EEGs, and counting the number of grids, it will be more reasonable to count the matching first brain waves corresponding to the number of grids.
其中,所述第一阈值、第二阈值均可为以相同方式统计出的所有预存的第一脑电波的波峰和波谷之间的最小距离。Wherein, the first threshold and the second threshold may both be the minimum distance between the peaks and troughs of all pre-stored first brain waves calculated in the same manner.
其中,统计所述脑电图的波形与第一脑电图之间的未重合的面积所占网格数量,这一数量可表示两个波形的波形差距是否较大还是较小,需要说明的是,所占网格数量按四舍五入计算,也就是说,占据一个网格不到一半,则不统计,若超过一半,则算作占据一个网格。Among them, the number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first electroencephalogram is counted. This number can indicate whether the waveform difference between the two waveforms is larger or smaller. It needs to be explained. Yes, the number of occupied grids is calculated based on rounding. That is to say, if it occupies less than half of a grid, it will not be counted. If it occupies more than half, it will be counted as occupying one grid.
其中,所有第一片段的波峰或波谷的最大幅度点可理解为,若波峰为(1,10),波谷为(3,-20),则以波谷为最大幅度点,也就是说,所有第一片段的波峰或波谷的最大幅度点统计的是最大幅度的绝对值最大的点。Among them, the maximum amplitude point of all the peaks or troughs of the first segment can be understood as, if the peak is (1,10) and the trough is (3,-20), then the trough is the maximum amplitude point, that is, all the peaks and troughs of the first segment are The statistics of the maximum amplitude point of a wave peak or trough in a segment are the points with the largest absolute value of the maximum amplitude.
以所述脑电图的相邻的波谷的横坐标的最小间距配置为网格的长度,The minimum spacing between the abscissas of adjacent troughs of the electroencephalogram is configured as the length of the grid,
其中,网格长度的平方可以理解为网格的面积,以上述方式配置的方格长度,可更好地适应于不同的人体。Among them, the square of the grid length can be understood as the area of the grid. The grid length configured in the above way can better adapt to different human bodies.
其中,“则删除该第一片段可理解为”和“并删除第一长度中的被删除的第一片段的相邻两侧的第一长度”,波形图中直接删除该段第一片段,并且,其他的第一片段的位置不动,也就是说,如果删除了这一第一片段,则一般不能统计到这一第一片段的两侧相邻的波谷作为最小的第一长度。Among them, "then delete the first segment can be understood as" and "and delete the first length on both sides of the adjacent two sides of the deleted first segment in the first length", and the first segment is directly deleted in the waveform diagram, Moreover, the positions of other first segments do not change. That is to say, if this first segment is deleted, the adjacent troughs on both sides of this first segment cannot generally be counted as the minimum first length.
本发明参见图1、3、4,一种意识交互沟通方法的系统,包括Referring to Figures 1, 3, and 4 of the present invention, a system of consciousness interactive communication methods includes
图像显示模块,其用于显示问题图像,其中,所述问题图像包括文字数据、第一按钮符号和第二按钮符号;An image display module configured to display a question image, wherein the question image includes text data, a first button symbol and a second button symbol;
眼动仪,其用于采集眼球朝向方向,并输出为眼球方向;Eye tracker, which is used to collect the eyeball direction and output it as the eyeball direction;
处理器,其用于判断所述眼球方向与预存的第一按钮或第二按钮的其中之一对应的第一位置数据是否一致,若是,则采集预设时间内的脑电图;并且判断脑电图的波形是否与预存的第一脑电波匹配,若匹配,则输出与所述第一位置数据对应的文字数据。A processor configured to determine whether the eyeball direction is consistent with the first position data corresponding to one of the prestored first button or the second button, and if so, collect the electroencephalogram within a preset time; and determine whether the brain Whether the waveform of the electrogram matches the pre-stored first brain wave, if so, text data corresponding to the first position data is output.
本发明通过上述眼球朝向和脑电图的波形的双重判断,从而实现了两种电信号的双重校验,从而输出的文字数据的正确率更加高。此外,眼动仪可作为是否为脑电图的选取时间段的定位,从而避免无意识引发的脑电图异常波动而带来的错误判断和无意识的眼动停留方向带来的错误判断。The present invention realizes double verification of the two electrical signals through the above-mentioned double judgment of eyeball orientation and electroencephalogram waveform, so that the accuracy of the output text data is higher. In addition, the eye tracker can be used to determine whether the selected time period is EEG, thus avoiding misjudgments caused by abnormal fluctuations in EEG caused by unconsciousness and misjudgments caused by unconscious eye movement direction.
其中,“采集眼球朝向方向”的方式可为:通过眼动仪采集眼球的朝向方向。所述眼动仪为现有技术。Among them, the method of "collecting the eyeball direction" may be: collecting the eyeball direction through an eye tracker. The eye tracker is an existing technology.
其中,所述“则输出与所述第一位置数据对应的文字数据”,就是说,“则输出与所述第一位置数据对应的第一按钮或第二按钮对应的文字数据”,也就是说,所述第一按钮和第二按钮可分别对应文字数据如下表格所述:Among them, "then output text data corresponding to the first position data", that is to say, "then output text data corresponding to the first button or second button corresponding to the first position data", that is, That is, the first button and the second button can respectively correspond to text data as described in the following table:
其中,本发明设有数据库,数据库用于预存与第一按钮符号和第二按钮符号对应的第一位置数据;并且数据库还用于预存与第一标准电波对应的第一符号特征。Among them, the present invention is provided with a database, which is used to pre-store the first position data corresponding to the first button symbol and the second button symbol; and the database is also used to pre-store the first symbol feature corresponding to the first standard radio wave.
其中,参见图1、3、4,所述采集眼球朝向方向,并输出为眼球方向包括如下步骤:Among them, referring to Figures 1, 3, and 4, collecting the eyeball direction and outputting it as the eyeball direction includes the following steps:
采集所述眼球朝向的实时方向;Collect the real-time direction of the eyeball orientation;
判断所述眼球朝向处于预设方向区域的累计时长是否超过确认阈值,若是,将所述预设方向区域输出为眼球方向;Determine whether the cumulative duration of the eyeball orientation in the preset direction area exceeds a confirmation threshold, and if so, output the preset direction area as the eyeball direction;
所述则采集预设时间内的脑电图包括如下步骤:The method of collecting EEG within a preset time includes the following steps:
所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的起点相同;采集预设时间内的脑电图。The starting point of the timeline of the preset time is the same as the starting point of the timeline of time remaining in the preset direction area; the electroencephalogram within the preset time is collected.
本发明通过采集眼球停滞时的起始时间,来作为采集脑电图的判断条件,可便于用户先看到第一按钮或第二按钮的文字数据,从而可在看到第一按钮对应的文字数据后,并且理解上述文字数据后,引发对其的想法,从而截取与上述眼球方向对应的预设时间内的脑电图,从而使采集的脑电图更加具备针对性,并且为脑电图的波形判断过滤了很多不必要的脑电图的时间段。The present invention collects the starting time when the eyeballs stagnate as a judgment condition for collecting electroencephalogram, which can facilitate the user to see the text data of the first button or the second button first, so that the user can see the text corresponding to the first button. After the data is collected, and after understanding the above text data, it triggers thoughts about it, thereby intercepting the EEG within the preset time corresponding to the above eyeball direction, so that the collected EEG is more targeted and is an EEG The waveform judgment filters out many unnecessary EEG time periods.
其中,所述问题图像中,可设置为,左侧是第一按钮,右侧是第二按钮,第一按钮内设有与其对应的文字数据,第二按钮内设有与其对应的文字数据。Wherein, in the question image, it can be configured that the left side is a first button and the right side is a second button. The first button is provided with text data corresponding to it, and the second button is provided with text data corresponding to it.
其中,所述预设时间和确认阈值均相同,其均可为1秒、2秒、3秒、4秒或5秒,也就是说,眼球开始看之后的时间段有效。Wherein, the preset time and the confirmation threshold are the same, and they can be 1 second, 2 seconds, 3 seconds, 4 seconds or 5 seconds. That is to say, the time period after the eyeball starts looking is valid.
当然,所述预设时间的时间轴的起点与保持在预设方向区域内的时间的时间轴的起点相同,但是保持在预设方向区域内的时间可长于所述预设时间1秒或2秒或3秒,例如,所述预设时间为3秒,代表眼球看了三米秒,而保持在预设方向区域内的时间可为4秒或5秒或6秒,代表采集眼球开始看之后的4秒或5秒或6秒内的脑电图,从而增加采集的精度。Of course, the starting point of the time axis of the preset time is the same as the starting point of the time axis of the time remaining in the preset direction area, but the time staying in the preset direction area can be longer than the preset time by 1 second or 2 seconds. seconds or 3 seconds. For example, the preset time is 3 seconds, which means that the eyeballs have been looking for three meters for seconds, and the time remaining in the preset direction area can be 4 seconds, 5 seconds, or 6 seconds, which means that the eyeballs have been collected and started to look. Then the EEG within 4 seconds or 5 seconds or 6 seconds, thereby increasing the accuracy of the collection.
其中,预设方向区域可仅仅为左侧一个区域,右侧一个区域,共两个区域;或者,上下左右各一个区域,共4个区域。Among them, the preset direction area can be only one area on the left and one area on the right, a total of two areas; or one area each up, down, left, and right, a total of four areas.
当然,作为一种变形结构还可为,参见图1、3、4,所述采集眼球朝向方向,并输出为眼球方向包括如下步骤:Of course, as a deformation structure, it can also be, see Figures 1, 3, and 4. The method of collecting the eyeball direction and outputting it as the eyeball direction includes the following steps:
采集所述眼球朝向的实时方向;Collect the real-time direction of the eyeball orientation;
判断所述眼球朝向处于预设方向区域的累计时长是否超过确认阈值,若是,将所述预设方向区域输出为眼球方向;Determine whether the cumulative duration of the eyeball orientation in the preset direction area exceeds a confirmation threshold, and if so, output the preset direction area as the eyeball direction;
所述则采集预设时间内的脑电图包括如下步骤:The method of collecting EEG within a preset time includes the following steps:
所述预设时间的时间轴的终点与保持在预设方向区域内的时间的时间轴的终点相同;采集预设时间内的脑电图。The end point of the time axis of the preset time is the same as the end point of the time axis remaining in the preset direction area; the electroencephalogram within the preset time is collected.
本发明通过采集眼球停滞时的终止时间,来作为采集脑电图的判断条件,可便于用户先看到第一按钮或第二按钮的文字数据,从而可在看到第一按钮对应的文字数据后,并且理解上述文字数据后,引发对其的想法,从而截取与上述眼球方向对应的预设时间内的脑电图,从而使采集的脑电图更加具备针对性,并且为脑电图的波形判断过滤了很多不必要的脑电图的时间段。The present invention collects the end time when the eyeballs stagnate as a judgment condition for collecting electroencephalogram, which can facilitate the user to see the text data of the first button or the second button first, so that the user can see the text data corresponding to the first button. Finally, after understanding the above text data, it triggers thoughts about it, thereby intercepting the EEG within the preset time corresponding to the above eyeball direction, thereby making the collected EEG more targeted and providing the basis for EEG analysis. Waveform judgment filters out many unnecessary EEG time periods.
其中,保持在预设方向区域内的时间的时间轴的终点可理解为,以保持在预设方向区域内的时间刚好超过确认阈值的时间点为终点。The end point of the time axis of the time remaining in the preset direction area can be understood as the time point when the time remaining in the preset direction area just exceeds the confirmation threshold.
其中,所述预设时间和保持在预设方向区域内的时间可相同,其均可为1秒、2秒、3秒、4秒或5秒,也就是说,眼球开始看之后的时间段有效。Wherein, the preset time and the time to stay in the preset direction area can be the same, which can be 1 second, 2 seconds, 3 seconds, 4 seconds or 5 seconds, that is, the time period after the eyeballs start to look. efficient.
当然,所述预设时间的时间轴的终点与保持在预设方向区域内的时间的时间轴的终点相同,但是保持在预设方向区域内的时间可长于所述预设时间1秒或2秒或3秒,例如,所述预设时间为3秒,代表眼球看了三米秒,而保持在预设方向区域内的时间可为4秒或5秒或6秒,代表采集想控制眼球开始看的1秒或2秒或3秒之前的脑电图,从而增加采集的精度。Of course, the end point of the time axis of the preset time is the same as the end point of the time axis of the time remaining in the preset direction area, but the time of staying in the preset direction area can be longer than the preset time by 1 second or 2 seconds. Seconds or 3 seconds. For example, the preset time is 3 seconds, which means that the eyeballs are looking for three meters for seconds, and the time remaining in the preset direction area can be 4 seconds, 5 seconds, or 6 seconds, which means that the eyeballs are collected and controlled. Start looking at the EEG 1 second or 2 seconds or 3 seconds ago, thereby increasing the accuracy of the collection.
其中,参见图2、3、4,所述判断脑电图的波形是否与预存的第一脑电波匹配包括:Among them, referring to Figures 2, 3, and 4, the determination of whether the waveform of the electroencephalogram matches the prestored first brain wave includes:
预存与文字数据对应的第一脑电波;Pre-store the first brain wave corresponding to the text data;
将所述脑电图的波形以相邻的两个波峰至波峰为分割为第一片段,判断所述第一片段的波峰幅度或波谷幅度的其中之一是否大于第一预设阈值,若否,则删除该第一片段,若是,则将相邻的第一片段的波峰之间的横坐标作为第一长度,并删除第一长度中的被删除的第一片段的相邻两侧的第一长度;Divide the electroencephalogram waveform into a first segment from two adjacent wave peaks, and determine whether one of the peak amplitude or the trough amplitude of the first segment is greater than a first preset threshold; if not, , then delete the first segment. If so, use the abscissa between the peaks of the adjacent first segments as the first length, and delete the first length on both sides of the adjacent first segment. a length;
判断最小的第一长度是否低于第二预设阈值,若是,则将所述脑电图的波形配置在网格内,并将所述第二预设阈值配置为单位网格长度,若否,则将所述最小的第一长度配置为单位网格长度;Determine whether the minimum first length is lower than the second preset threshold. If so, configure the electroencephalogram waveform in the grid, and configure the second preset threshold as the unit grid length. If not , then configure the minimum first length as the unit grid length;
将脑电图的波形的所有第一片段的波峰或波谷的最大幅度点和其中一个单位网格的左下角端点重合;Coincide the maximum amplitude point of the peak or trough of all the first segments of the EEG waveform with the lower left corner endpoint of one of the unit grids;
统计所述脑电图的波形与第一脑电波之间的未重合的面积所占网格数量,将所占网格数量最少的第一脑电图判定为与所述脑电图的波形匹配。The number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first brain wave is counted, and the first electroencephalogram occupying the smallest number of grids is determined to match the waveform of the electroencephalogram. .
本发明通过上述网格匹配方式将第一脑电波与所述脑电图的波形进行匹配,从而找出数据库中预存的与现有的脑电图的波形最为匹配的第一脑电波。此外,本发明选择的网格方式是需要强调的,由于不同的人的神经的反应力不同或兴奋程度不同,检测出的脑电图的波形的波峰波谷也不同,而数据库中存储的仅仅是较长常规的兴奋程度或者反应力而预存的第一脑电波,并且所述第一脑电波含有与其对应的第一文字。那么,如果要找出与其最为匹配的第一脑电波,势必要考虑到目前人们的兴奋程度和反应力对目前的脑电图的波形的影响。因此,根据不同的脑电图的波峰之间的距离而配置相应大小的网格,从而进行网格数量的统计,会更加合理的统计出与其网格数量对应的、匹配的第一脑电波。The present invention matches the first brain wave with the waveform of the electroencephalogram through the above grid matching method, thereby finding the first brain wave pre-stored in the database that best matches the existing electroencephalogram waveform. In addition, the grid method selected by the present invention needs to be emphasized. Since different people have different nerve reactions or different levels of excitement, the peaks and troughs of the detected EEG waveforms are also different, and what is stored in the database is only The first brain wave is pre-stored due to a longer conventional level of excitement or reaction, and the first brain wave contains the first text corresponding to it. Then, if we want to find the first brain wave that best matches it, we must take into account the impact of people's current level of excitement and reaction on the current EEG waveform. Therefore, by configuring grids of corresponding sizes according to the distances between the wave peaks of different EEGs, and counting the number of grids, it will be more reasonable to count the matching first brain waves corresponding to the number of grids.
其中,所述第一阈值、第二阈值均可为以相同方式统计出的所有预存的第一脑电波的波峰和波峰之间的最小距离。Wherein, the first threshold and the second threshold may both be the minimum distance between the peaks of all pre-stored first brain waves calculated in the same manner.
其中,统计所述脑电图的波形与第一脑电图之间的未重合的面积所占网格数量,这一数量可表示两个波形的波形差距是否较大还是较小,需要说明的是,所占网格数量按四舍五入计算,也就是说,占据一个网格不到一半,则不统计,若超过一半,则算作占据一个网格。Among them, the number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first electroencephalogram is counted. This number can indicate whether the waveform difference between the two waveforms is larger or smaller. It needs to be explained. Yes, the number of occupied grids is calculated based on rounding. That is to say, if it occupies less than half of a grid, it will not be counted. If it occupies more than half, it will be counted as occupying one grid.
其中,所有第一片段的波峰或波谷的最大幅度点可理解为,若波峰为(1,10),波谷为(3,-20),则以波谷为最大幅度点,也就是说,所有第一片段的波峰或波谷的最大幅度点统计的是最大幅度的绝对值最大的点。Among them, the maximum amplitude point of all the peaks or troughs of the first segment can be understood as, if the peak is (1,10) and the trough is (3,-20), then the trough is the maximum amplitude point, that is, all the peaks and troughs of the first segment are The statistics of the maximum amplitude point of a wave peak or trough in a segment are the points with the largest absolute value of the maximum amplitude.
以所述脑电图的相邻的波峰的横坐标的最小间距配置为网格的长度,The minimum distance between the abscissas of adjacent wave peaks of the electroencephalogram is configured as the length of the grid,
其中,网格长度的平方可以理解为网格的面积,以上述方式配置的方格长度,可更好地适应于不同的人体。Among them, the square of the grid length can be understood as the area of the grid. The grid length configured in the above way can better adapt to different human bodies.
其中,“则删除该第一片段可理解为”和“并删除第一长度中的被删除的第一片段的相邻两侧的第一长度”,波形图中直接删除该段第一片段,并且,其他的第一片段的位置不动,也就是说,如果删除了这一第一片段,则一般不能统计到这一第一片段的两侧相邻的波峰作为最小的第一长度。Among them, "then delete the first segment can be understood as" and "and delete the first length on both sides of the adjacent two sides of the deleted first segment in the first length", and the first segment is directly deleted in the waveform diagram, Moreover, the positions of other first segments do not change. That is to say, if this first segment is deleted, the adjacent wave peaks on both sides of this first segment cannot generally be counted as the minimum first length.
若是,则判断所述眼球朝向方向朝向所述第一按钮或第二按钮的其中之一对应的第一位置数据的时间是否超过确认阈值。If so, it is determined whether the time during which the eyeball is directed toward the first position data corresponding to one of the first button or the second button exceeds a confirmation threshold.
当然,作为一种变形结构还可为,参见图1、3、4,所述判断脑电图的波形是否与预存的第一脑电波匹配包括:Of course, as a deformation structure, it can also be, see Figures 1, 3, and 4. Determining whether the waveform of the electroencephalogram matches the prestored first brain wave includes:
预存与文字数据对应的第一脑电波;Pre-store the first brain wave corresponding to the text data;
将所述脑电图的波形以波峰至波谷为分割为第一片段,判断所述第一片段的波峰幅度或波谷幅度的其中之一是否大于第一预设阈值,若否,则删除该第一片段,若是,则将相邻的第一片段的波谷之间的横坐标作为第一长度,并删除第一长度中的被删除的第一片段的相邻两侧的第一长度;Divide the electroencephalogram waveform into first segments from peak to trough, and determine whether one of the peak amplitude or trough amplitude of the first segment is greater than a first preset threshold; if not, delete the first segment. A segment, if so, use the abscissa between the troughs of adjacent first segments as the first length, and delete the first lengths on both adjacent sides of the deleted first segment in the first length;
判断最小的第一长度是否低于第二预设阈值,若是,则将所述脑电图的波形配置在网格内,并将所述第二预设阈值配置为单位网格长度,若否,则将所述最小的第一长度配置为单位网格长度;Determine whether the minimum first length is lower than the second preset threshold. If so, configure the electroencephalogram waveform in the grid, and configure the second preset threshold as the unit grid length. If not , then configure the minimum first length as the unit grid length;
将脑电图的波形的所有第一片段的波峰或波谷的最大幅度点和其中一个单位网格的左下角端点重合;Coincide the maximum amplitude point of the peak or trough of all the first segments of the EEG waveform with the lower left corner endpoint of one of the unit grids;
统计所述脑电图的波形与第一脑电波之间的未重合的面积所占网格数量,将所占网格数量最少的第一脑电图判定为与所述脑电图的波形匹配。The number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first brain wave is counted, and the first electroencephalogram occupying the smallest number of grids is determined to match the waveform of the electroencephalogram. .
本发明通过上述网格匹配方式将第一脑电波与所述脑电图的波形进行匹配,从而找出数据库中预存的与现有的脑电图的波形最为匹配的第一脑电波。此外,本发明选择的网格方式是需要强调的,由于不同的人的神经的反应力不同或兴奋程度不同,检测出的脑电图的波形的波峰波谷也不同,而数据库中存储的仅仅是较长常规的兴奋程度或者反应力而预存的第一脑电波,并且所述第一脑电波含有与其对应的第一文字。那么,如果要找出与其最为匹配的第一脑电波,势必要考虑到目前人们的兴奋程度和反应力对目前的脑电图的波形的影响。因此,根据不同的脑电图的波谷之间的距离而配置相应大小的网格,从而进行网格数量的统计,会更加合理的统计出与其网格数量对应的、匹配的第一脑电波。The present invention matches the first brain wave with the waveform of the electroencephalogram through the above grid matching method, thereby finding the first brain wave pre-stored in the database that best matches the existing electroencephalogram waveform. In addition, the grid method selected by the present invention needs to be emphasized. Since different people have different nerve reactions or different levels of excitement, the peaks and troughs of the detected EEG waveforms are also different, and what is stored in the database is only The first brain wave is pre-stored due to a longer conventional level of excitement or reaction, and the first brain wave contains the first text corresponding to it. Then, if we want to find the first brain wave that best matches it, we must take into account the impact of people's current level of excitement and reaction on the current EEG waveform. Therefore, by configuring grids of corresponding sizes according to the distances between the troughs of different EEGs, and counting the number of grids, it will be more reasonable to count the matching first brain waves corresponding to the number of grids.
其中,所述第一阈值、第二阈值均可为以相同方式统计出的所有预存的第一脑电波的波峰和波谷之间的最小距离。Wherein, the first threshold and the second threshold may both be the minimum distance between the peaks and troughs of all pre-stored first brain waves calculated in the same manner.
其中,统计所述脑电图的波形与第一脑电图之间的未重合的面积所占网格数量,这一数量可表示两个波形的波形差距是否较大还是较小,需要说明的是,所占网格数量按四舍五入计算,也就是说,占据一个网格不到一半,则不统计,若超过一半,则算作占据一个网格。Among them, the number of grids occupied by the non-overlapping area between the waveform of the electroencephalogram and the first electroencephalogram is counted. This number can indicate whether the waveform difference between the two waveforms is larger or smaller. It needs to be explained. Yes, the number of occupied grids is calculated based on rounding. That is to say, if it occupies less than half of a grid, it will not be counted. If it occupies more than half, it will be counted as occupying one grid.
其中,所有第一片段的波峰或波谷的最大幅度点可理解为,若波峰为(1,10),波谷为(3,-20),则以波谷为最大幅度点,也就是说,所有第一片段的波峰或波谷的最大幅度点统计的是最大幅度的绝对值最大的点。Among them, the maximum amplitude point of all the peaks or troughs of the first segment can be understood as, if the peak is (1,10) and the trough is (3,-20), then the trough is the maximum amplitude point, that is, all the peaks and troughs of the first segment are The statistics of the maximum amplitude point of a wave peak or trough in a segment are the points with the largest absolute value of the maximum amplitude.
以所述脑电图的相邻的波谷的横坐标的最小间距配置为网格的长度,The minimum spacing between the abscissas of adjacent troughs of the electroencephalogram is configured as the length of the grid,
其中,网格长度的平方可以理解为网格的面积,以上述方式配置的方格长度,可更好地适应于不同的人体。Among them, the square of the grid length can be understood as the area of the grid. The grid length configured in the above way can better adapt to different human bodies.
其中,“则删除该第一片段可理解为”和“并删除第一长度中的被删除的第一片段的相邻两侧的第一长度”,波形图中直接删除该段第一片段,并且,其他的第一片段的位置不动,也就是说,如果删除了这一第一片段,则一般不能统计到这一第一片段的两侧相邻的波谷作为最小的第一长度。Among them, "then delete the first segment can be understood as" and "and delete the first length on both sides of the adjacent two sides of the deleted first segment in the first length", and the first segment is directly deleted in the waveform diagram, Moreover, the positions of other first segments do not change. That is to say, if this first segment is deleted, the adjacent troughs on both sides of this first segment cannot generally be counted as the minimum first length.
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311338300.6A CN117075741B (en) | 2023-10-17 | 2023-10-17 | A consciousness interactive communication method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311338300.6A CN117075741B (en) | 2023-10-17 | 2023-10-17 | A consciousness interactive communication method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117075741A CN117075741A (en) | 2023-11-17 |
CN117075741B true CN117075741B (en) | 2023-12-12 |
Family
ID=88715624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311338300.6A Active CN117075741B (en) | 2023-10-17 | 2023-10-17 | A consciousness interactive communication method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117075741B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144238A (en) * | 2018-05-14 | 2019-01-04 | 孙佳楠 | A kind of man-machine interactive system and its exchange method based on eye electricity coding |
CN110837298A (en) * | 2019-10-31 | 2020-02-25 | 福建心动生物科技有限公司 | Brain wave remote control training system and method based on concentration and vision |
CN112034977A (en) * | 2019-06-04 | 2020-12-04 | 陈涛 | Method for MR intelligent glasses content interaction, information input and recommendation technology application |
CN112957014A (en) * | 2021-02-07 | 2021-06-15 | 广州大学 | Pain detection and positioning method and system based on brain waves and neural network |
CN113662563A (en) * | 2021-09-02 | 2021-11-19 | 潍坊医学院 | EEG data storage and transmission method and system based on neural network |
CN116098633A (en) * | 2022-12-12 | 2023-05-12 | 首都医科大学附属北京天坛医院 | A minimally invasive interventional brain-computer interface mind control system for disturbance of consciousness |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105528084A (en) * | 2016-01-21 | 2016-04-27 | 京东方科技集团股份有限公司 | Display control device, display control method thereof and display control system |
US11647956B2 (en) * | 2018-03-19 | 2023-05-16 | Neurofeedback-Partner GmbH | Electroencephalogram system and method |
-
2023
- 2023-10-17 CN CN202311338300.6A patent/CN117075741B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144238A (en) * | 2018-05-14 | 2019-01-04 | 孙佳楠 | A kind of man-machine interactive system and its exchange method based on eye electricity coding |
CN112034977A (en) * | 2019-06-04 | 2020-12-04 | 陈涛 | Method for MR intelligent glasses content interaction, information input and recommendation technology application |
CN110837298A (en) * | 2019-10-31 | 2020-02-25 | 福建心动生物科技有限公司 | Brain wave remote control training system and method based on concentration and vision |
CN112957014A (en) * | 2021-02-07 | 2021-06-15 | 广州大学 | Pain detection and positioning method and system based on brain waves and neural network |
CN113662563A (en) * | 2021-09-02 | 2021-11-19 | 潍坊医学院 | EEG data storage and transmission method and system based on neural network |
CN116098633A (en) * | 2022-12-12 | 2023-05-12 | 首都医科大学附属北京天坛医院 | A minimally invasive interventional brain-computer interface mind control system for disturbance of consciousness |
Also Published As
Publication number | Publication date |
---|---|
CN117075741A (en) | 2023-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11382561B2 (en) | In-ear sensing systems and methods for biological signal monitoring | |
US8979730B2 (en) | Method and system for providing behavioural therapy for insomnia | |
KR102100120B1 (en) | Method, apparatus and computer program for monitoring of bio signals | |
Navarro-Sune et al. | Riemannian geometry applied to detection of respiratory states from EEG signals: the basis for a brain–ventilator interface | |
CN111921161B (en) | Cervical vertebra rehabilitation training monitoring method and device | |
CN106377252A (en) | Biologic information feedback system based on virtual reality | |
JP6710636B2 (en) | Local collection of biosignals, cursor control in bioelectric signal-based speech assist interface, and bioelectric signal-based alertness detection | |
CN102708288A (en) | Brain-computer interface based doctor-patient interaction method | |
US20210022636A1 (en) | Bio-signal detecting headband | |
CN110464344A (en) | The method for collecting the device of eeg signal acquisition and music and its playing music | |
WO2020133536A1 (en) | Sleep state determining method and apparatus | |
CN113633260B (en) | Polysomnography, computer equipment and readable storage medium | |
CN206285117U (en) | Intelligence hearing terminal | |
CN113855052A (en) | Neural feedback intervention system and method based on memorial meditation | |
CN116649913A (en) | A sleep quality assessment system based on global slow waves | |
CN105700687A (en) | Single-trial electroencephalogram P300 component detection method based on folding HDCA algorithm | |
CN117075741B (en) | A consciousness interactive communication method and system | |
CN113974557A (en) | Deep neural network anesthesia depth analysis method based on electroencephalogram singular spectrum analysis | |
CN211957134U (en) | Sleep quality monitoring and interaction system | |
CN112037916A (en) | Shared multifunctional sudden death prevention physiological information detection system and method thereof | |
CN113729732B (en) | Sleep quality monitoring system and method based on EEG signal | |
CN111857352A (en) | A gesture recognition method based on an imaginary brain-computer interface | |
CN112294329B (en) | A psychological monitoring system and method based on music emotion recognition | |
CN212700314U (en) | Cervical vertebra rehabilitation training monitoring devices | |
US20230118304A1 (en) | System, method, portable device, computer apparatus and computer program for monitoring, characterisation and assessment of a user's cough |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |