A kind of switching device based on EOG
Technical field
The utility model is related to the technical field of switch control based on human-body biological signal, and in particular to one kind is based on EOG
Switching device.
Background technology
Man-machine interface, which refers to set up between people and computer, contacts, exchanges the input/output interface of information, and traditional is man-machine
Interface mainly has keyboard, mouse, display, printer etc..With the further development of science and technology, there are some new human-machine interfaces again
Mouth mode, such as touch-screen, speech recognition, gesture identification etc., these man-machine interface modes have been made highly developed, in many feelings
Traditional keyboard and mouse has been instead of under condition.However, having the disabled person of dyskinesia, such as amyotrophic lateral sclerosis for those
Lateral sclerosis ALS patients, brain stem stroke patient, patients with spinal cord injury etc., these crowds often have clear-headed consciousness, but can not
Realized and interacted with extraneous using those existing ripe man-machine interfaces.In order to improve this kind of crowd quality of life, it is necessary to
A kind of man-machine interface mode that these new patients can use, the research of new man-machine interface this kind of in recent years also has become
Focus both domestic and external.The new man-machine interface of one type using bioelectrical signals realize, mainly include brain electricity (EEG,
Electroencephalogram), myoelectricity (EMG, Electromyography), electrocardio (ECG, Electrocardiogram),
Eye is electric (EOG, Electrooculogram).It is based on the significantly challenge of man-machine interface faced one that bioelectrical signals are realized
Switch control, because bioelectrical signals are very faint in itself, and no matter which kind of state human body is under and all exists, so it is difficult to
Determine a suitable trigger condition.The on & off switch of one function admirable needs to meet two conditions:One is quick response, that is, is worked as
Energy quick response when user needs to perform switch motion;Two be low wrong report, i.e., to the greatest extent may be used when user need not perform switch motion
Can not occur misoperation.
In above bioelectrical signals, electrocardio is because be difficult that, by people's autonomous control, general be rarely used in is realized actively
The man-machine interface of formula, is only suitable for the passive interface for making some monitoring types.Electromyographic signal is the electricity produced by muscular movement
Signal, it requires that user has movable while being adapted to the musculature as control signal again, this is for certain
A little disabled more serious patients do not apply to simultaneously.The man-machine interface realized with brain electricity is also known as brain-computer interface, but published at present big
Most brain-computer interface researchs belong to synchronization (synchronous) type, i.e., can not distinguish state of a control and idle condition.This
The control of switch that patent is related to belong to asynchronous (asynchronous) type, i.e. user can be sent according to the wish of oneself or
Person does not send switch command.Such as Publication No. CN102799274A Chinese utility model patent application, in November, 2012
A kind of asynchronous brain method of switching based on Steady State Visual Evoked Potential is disclosed within 28th, it persistently flashes including 4 different frequencies
Button (one of on & off switch, 3 pseudo- keys), the 6 road EEG signals of 6 positions of collection scalp are divided in stimulating course
Analysis, when the energy of the SSVEP energy ratios of on & off switch other pseudo- keys is big, and narrow band energy and the wide band energy ratio of on & off switch exceed
Default threshold value, then be determined as state of a control, be otherwise determined as idle condition.The program uses 6 electrodes, it appears be not special
It is convenient;Require that user does not watch any flicker key attentively under idle condition, but involuntary can watch target attentively unavoidably when being used for a long time
Button, is easily reported by mistake;And SSVEP induced using the interface that persistently flashes, time length easily makes one fatigue.If user
There is no suitable myoelectricity as control signal source, it is impossible to which the action of autonomous control eyeball produces eye electricity, then the utility model of the disclosure
Method is a selection well.
Eye is electric (EOG, Electrooculogram), is by actions such as eyeball horizontal movement, vertical movement, rotation or blinks
The bioelectrical signals of generation.In these electro-ocular signals, signal of blinking is more stablized, significantly, so being particularly suited for realizing
Asynchronous man-machine interface on & off switch.Such as Publication No. CN1601445A Chinese utility model patent application (having recalled),
Disclosed on March 30th, 2005 a kind of " multi functional human body bioeyes electrical switching controller ", the program is by subject continuous 3
Secondary, 4 times, 5 corresponding electro-ocular signals of blinking are as control command, for switch external equipment.Although simple in construction, need
Multiple just one control command of correspondence of blinking, so might have following two problems:First, during the output of single control command
Between it is long, if it is middle certain once blink and do not detect, then the time can become longer, so real-time can be poor;
Second, the occasion for needing frequent operation, the burden that the mode so repeatedly blinked is caused to user can be heavier.
Utility model content
The purpose of this utility model is that there is provided a kind of switch based on EOG in order to solve drawbacks described above of the prior art
Device, the switching device has simple to operate, the switch command fast response time of state of a control, while keeping low under idle condition
False positive rate.
The purpose of this utility model can be reached by adopting the following technical scheme that:
A kind of switching device based on EOG, the switching device includes EOG switches interface, the eye electricity collection being sequentially connected
Module, signal detection module and control feedback module, wherein,
The EOG switches interface includes an On/Off key, and the On/Off keys are glittering at random with certain forms;
The electric acquisition module of the eye is used to gather electro-ocular signal when user sends switch command by blinking and by signal
Input the signal detection module;
The signal detection module carries out one-time detection after the flicker of On/Off keys each time, for determining whether user sends out
Switch command is sent to the control feedback module;
The control feedback module is used for the visual feedback or action feedback of switch command.
Further, the signal detection module includes silver chloride electrode unit, signal amplification unit, the letter being sequentially connected
Number filter unit, A/D converting units and serial communication unit, wherein,
The silver chloride electrode unit includes 3 electrodes, respectively the grounding electrode of forehead, the eye electricity above left/right eye
The reference electrode of acquisition electrode, left/right ear-lobe;
The signal amplification unit is designed based on INA128 chips, and its common-mode rejection ratio exists in more than 120db, multiplication factor
More than 1000 times;
The signal filtering unit is designed based on OPA4227 chips, including a cut-off frequency is irrigated for 3Hz second order Bart
The quadravalence Butterworth LPF that this high-pass filter, a cut-off frequency are 25Hz, and a Butterworth 50Hz
Notch filter;
The A/D converting units are designed based on AD7606 chips, and its conversion accuracy is 16;
The serial communication unit is realized based on the serial communication modular that STM32 is carried.
Further, the glittering attribute of the On/Off keys is color.
Further, the glittering mode of the On/Off keys is specially:With 1.2 seconds for a cycle, in a cycle
On/Off keys it is random it is glittering once, glittering 100 milliseconds of duration, the glittering time interval of On/Off keys in the two neighboring cycle
More than or equal to 600 milliseconds.
Further, the control feedback module uses display, the result for showing signal detection module identification.
Further, the control feedback module uses external feedback equipment, and feedback is provided by the specific action of equipment.
The utility model has the following advantages and effect relative to prior art:
Switching device based on EOG disclosed in the utility model effectively blinks strict be used as of the glittering sequential of On/Off keys
Opportunity, involuntary blink appears precisely at probability in the glittering corresponding sequential of On/Off keys in itself under such idle condition
Just than relatively low, need to meet waveforms detection condition in addition, some it is smaller not independently blink can waveforms detection bar
Excluded in part, the spontaneous electric signal of other non-blinks then hardly causes false triggering, so greatly reducing rate of false alarm.Together
When, under state of a control, as long as seeing that On/Off keys are blinked just can quickly export ON/OFF control command (1 second at once after glittering
It is many), pass on the switch control of user to be intended in time.
Brief description of the drawings
Fig. 1 is a kind of composition frame chart of the switching device based on EOG disclosed in the utility model;
Fig. 2 is the composition frame chart of the electric acquisition module of eye in the utility model;
Fig. 3 is the flow chart of the on & off switch implementation method of the switching device based on EOG disclosed in the utility model.
Embodiment
It is new below in conjunction with this practicality to make the purpose, technical scheme and advantage of the utility model embodiment clearer
Accompanying drawing in type embodiment, the technical scheme in the utility model embodiment is clearly and completely described, it is clear that retouched
The embodiment stated is a part of embodiment of the utility model, rather than whole embodiments.Based on the implementation in the utility model
Example, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made is belonged to
The scope of the utility model protection.
Embodiment one
As shown in figure 1, present embodiment discloses a kind of switching device based on EOG, the switching device includes being sequentially connected
EOG switches interface, the electric acquisition module of eye, signal detection module, control feedback module,
Wherein, the EOG switches interface includes an On/Off key, positioned at the screen lower right corner;
On/Off keys on the EOG switches interface are glittering at random with certain forms, and specific glittering mode is to be with 1.2 seconds
A cycle, in a cycle On/Off keys it is random it is glittering once, glittering 100 milliseconds of the duration, in the two neighboring cycle
The glittering time interval of On/Off keys is more than or equal to 600 milliseconds, and glittering attribute is color.
The electric acquisition module of the eye is used to gather electro-ocular signal when user sends switch command by blinking and by signal
Input signal detection module, sample rate is 250Hz, can be divided into silver chloride electrode unit, signal amplification unit, signal filtering list
Member, A/D converting units, serial communication unit totally 5 units, as shown in Figure 2, the feature of unit is as follows:
1) silver chloride electrode unit has the eye above the grounding electrode (GND) of 3 electrodes, respectively forehead, left/right eye
Electric acquisition electrode (E), the reference electrode (REF) of left/right ear-lobe.
2) signal amplification unit is based primarily upon the design of INA128 chips, and its common-mode rejection ratio is in more than 120db, multiplication factor
More than 1000 times;
3) signal filtering unit is based primarily upon the design of OPA4227 chips, contains the second order bar that a cut-off frequency is 3Hz
Special Butterworth high-pass filter, the quadravalence Butterworth LPF that a cut-off frequency is 25Hz, and a Butterworth
50Hz notch filters;
4) A/D converting units are based primarily upon the design of AD7606 chips, and its conversion accuracy is 16;
5) serial communication unit is based primarily upon the serial communication modular realization that STM32 is carried.
The electric acquisition module of the eye is gathered from the electric data (400 milliseconds) of the glittering latter 100-500 milliseconds eye of On/Off keys totally
Signal detection module is passed to as initial characteristicses.
The signal detection module carries out one-time detection after the flicker of On/Off keys each time, for determining whether user sends out
Send switch command.
The signal detection module specific workflow is that initial characteristicses are carried out with difference, Wave crest and wave trough detection, crest ripple
The operations such as energy balane, threshold decision between the calculating of paddy distance, Wave crest and wave trough identify that blink is acted from electro-ocular signal, enter
And obtain effective switch command.
It is described to control feedback module to be visual feedback, using a common display, for showing signal detection module
The result of identification, directly can also connect external equipment by switch, feedback is provided by the specific action of equipment.
Above-mentioned EOG switches interface (GUI), signal detection module, control feedback module can be equipped with Windows XP at one
Or realized in the common computer of Windows 7 or other operating systems.
Embodiment two
As shown in figure 3, present embodiment discloses a kind of on & off switch implementation method based on EOG, the implementation method is based on real
Apply the switching device based on EOG disclosed in example one to carry out, specifically include the following steps:
On/Off keys on step S1, EOG switch interface are glittering at random with certain forms, and specific glittering mode is with 1.2
Second be a cycle, in a cycle On/Off keys it is random it is glittering once, glittering 100 milliseconds of duration, two neighboring week
The glittering time interval of On/Off keys is more than or equal to 600 milliseconds in phase, and glittering attribute is color.
(totally 400 in the least from the electric data of the glittering latter 100-500 milliseconds eye of On/Off keys for the electric acquisition module collection of step S2, eye
Second) as characteristic value pass to signal detection module.
Step S2 is specifically included:
S21, the eye electricity by silver chloride electrode unit above grounding electrode (GND) respectively positioned at forehead, left/right eye
Reference electrode (REF) the collection electro-ocular signal of acquisition electrode (E), left/right ear-lobe;
When On/Off keys are glittering, silver chloride electrode unit starts to gather electro-ocular signal, a length of 600 milliseconds during collection, to institute
The electric data of 600 milliseconds of eye collecting make it is further extract, that is, extract 100-500 millisecond it is interval in totally 400 milliseconds of length
Data.
S22, by signal amplification unit electro-ocular signal is amplified;
Signal amplification unit is designed based on INA128 chips, and its common-mode rejection ratio is in more than 120db, and multiplication factor is 1000
More than times.
S23, by signal filtering unit the electro-ocular signal after amplification is irrigated by cut-off frequency for 3Hz second order Bart respectively
This high-pass filter, cut-off frequency are 25Hz quadravalence Butterworth LPF, and Butterworth 50Hz notch filters
Device is filtered;
Signal filtering unit is designed based on OPA4227 chips, contains the second order Butterworth that a cut-off frequency is 3Hz
High-pass filter, the quadravalence Butterworth LPF that a cut-off frequency is 25Hz, and a Butterworth 50Hz are fallen into
Wave filter.
S24, by A/D converting units to filtered electro-ocular signal carry out A/D be converted to characteristic value;
A/D converting units are designed based on AD7606 chips, and its conversion accuracy is 16.
S25, characteristic value passed to by signal detection module by serial ports by serial communication unit;
Serial communication unit is based primarily upon the serial communication modular realization that STM32 is carried.
Step S3, signal detection module call the electric recognizer of eye to carry out difference, Wave crest and wave trough detection, crest to characteristic value
The identification blink action from eye electric data after energy balane, threshold decision operation between the calculating of trough distance, Wave crest and wave trough;
Think that user sends active blink action (being in state of a control) if the electric recognizer output result of eye is 1,
Switch command is sent to controlling feedback module, and return to step S2 continues to detect;If the electric recognizer output result of eye is 0
Think that user does not send active blink action (being in idle condition), do not send switch command, and return to step S2 continues to examine
Survey.
The step S3 is specifically included:
S31, first-order difference is asked to characteristic value Si, obtain differential signal Di, specific method is:
Di=Si+1-Si;
S32, waveforms detection and relevant matches are carried out to differential signal Di, when waveforms detection passes through, and relevant matches
When degree reaches threshold value set in advance, eye electricity recognizer output 1, otherwise, output 0;
The differential signal Di is the sinusoidal waveform of zero phase, and the waveforms detection refers to detect following two detector bars
Part:
(1) trough D after crest appearanceminTo DmaxThe position of millisecond occurs, such as Dmin=40 milliseconds, Dmax=140 millis
Second, different value can be set according to different user;
(2) energy summation of crest to trough this segment difference sub-signal is more than threshold value E set in advance, such as E=10000, can
Different value is set according to different user.
The blink action for switch command is carried out into visual feedback for S4, control feedback module or action is fed back.
In summary, a kind of switching device and on & off switch implementation method based on EOG disclosed in above-described embodiment, by On/
The glittering sequential of Off keys is strictly used as the opportunity effectively blinked, and involuntary blink appears precisely at On/ under such idle condition
Probability in the glittering corresponding sequential of Off keys needs to meet waveforms detection condition, some are smaller in addition inherently than relatively low
Not independently blink can be excluded in the condition of waveforms detection, the spontaneous electric signal of other non-blinks then hardly causes mistake
Triggering, so greatly reducing rate of false alarm.Meanwhile, under state of a control, as long as seeing that On/Off keys are blinked at once after glittering
ON/OFF control command (more than 1 second) just can be quickly exported, passes on the switch control of user to be intended in time.
Above-described embodiment is the utility model preferably embodiment, but embodiment of the present utility model is not by above-mentioned
The limitation of embodiment, it is other it is any without departing from Spirit Essence of the present utility model with made under principle change, modify, replace
Generation, combination, simplification, should be equivalent substitute mode, are included within protection domain of the present utility model.