• Nie Znaleziono Wyników

The electrooculography control system / PAR 12/2012 / 2012 / Archiwum / Strona główna | PAR Pomiary - Automatyka - Robotyka

N/A
N/A
Protected

Academic year: 2021

Share "The electrooculography control system / PAR 12/2012 / 2012 / Archiwum / Strona główna | PAR Pomiary - Automatyka - Robotyka"

Copied!
4
0
0

Pełen tekst

(1)

160

Nauka

The electrooculography control system

Damian Pakulski, Artur Gmerek

Institute of Automatic Control, Lodz University of Technology

Abstract: The aim of the project described in this paper was to

develop the methods of recording and analysis of EOG signals meant for manipulator control. Electrooculography (EOG) is a tech-nique for measuring of the resting potential of an eyeball, indi-cative of the electrical activity of the retina. This paper presents the complete electrooculographic system which cooperates with the special 2-DOF manipulator. The end-effector of manipulator is a laser pointer. In order to adjust signal to manipulator control, data must be collected and then digitally processed. There has been used the nonparametric model (classifier) based on Artifi-cial Neural Networks (ANN). The task of the classifier was the assignment of an unknown fragment of the signal to one of eight classes of the eyeball movements. Application can be used by handicapped patients, who are able to communicate with others by their eyes only.

Keywords: electrooculography, EOG, HMI, BMI, manipulator

control

1. Introduction

The electrooculographic signals appear when someone moves his or her eyes. EOG signals are usually used in diagnosis of eye diseases. Since these signals are determined, they may be used for manipulators control. This paper describes a system which, based on the information from EOG signals, is able to control external devices.

Proper processing of EOG signal and its usa-ge in manipulator control is complicated. Signals have to be registered from the skin, then proces-sed in the multilevel process, after that the cha-racteristic features of signals are designated and finally vectors of features are classified to the di-stinguished classes.

EOG signals are much simpler to record and process than e.g. EEG (electroencephalographic) signals, however not many scientists know abo-ut their existence.

There are not many papers about processing and usage of EOG signals. Usakli and Gurkan used EOG signals for control of simple virtual keyboard. The accuracy of classifi-cation was 95 % [1].

Some scientists advanced conventional EOG apparatuses to their wireless forms. For example Ubeda et al. has cre-ated a wireless system which has been successfully used for industrial robot control [2].

Many papers concentrate on register and digital proces-sing of signal [3, 4]. Researchers usually used following fe-atures: polarization of signal amplitude, slope (based on

de-rivative of the signal), meaning value and duration of signal peak [4, 5]. Classification is usually done with the use of sta-tistical models [5, 6].

2. The general description of the system

System consists of several parts. The first part is connec-ted with a signal recording from the skin. It can be done with the use of specially designed EOG apparatuses. After that, the signal is routed to the high-level controller whe-re it’s digitally processed. The final stage of it is classifica-tion with the use of an ANN, which assign signals to specific classes. These classes are connected to particular movements e.g. movement of an eye to its left or right position, closing of the eye, etc. After that these movements are mapped to specific motion mechanism of a 2-DOF manipulator. These motion commands are sent via USB to a low-level control-ler (ATmega8 microprocessor), which controls the manipu-lator directly (fig. 1).

Fig. 1. General scheme of the system Rys. 1. Ogólny schemat systemu sterowania

Visual feedback Control Object Digital processing system EOG EOG

2.1. EOG apparatuses

EOG apparatuses have been designed to properly record EOG signals from the skin. These consist of 5 important components. The first thing is instrumentation amplifier. After signal has been registered by the instrumentation amplifier, it is routed to a high-pass filter in order to remo-ve constant component of the signal. After that the signal is amplified several times and finally is routed to the low-pass filter, which also acts as an antyaliasing filter. Such output signal can be finally converted to digital form. The PCB of the device was designed in Altium Designer (fig. 2). It has been used second order Butterworth filter.

(2)

Pomiary automatyka Robotyka nr 12/2012

161

2.2. High-level controller

High-level controller consists of functions written in C# language, which are responsible for communication with acquisition card, signal processing and communication with low-level manipulator controller.

During experiments which have been intended to show the nature of the EOG signals, there has also been used another application for data acquisition. In this program, the graphical commands appear in the application win-dow that the user has to follow. During it the EOG si-gnals are registered.

2.3. Low-level controller and manipulator

Low-level controller is responsible for manipulator con-trol. The controller is based on popular ATmega8 Atmel

microcontroller. The object is constructed from two hob-by servos, which axis is shifted hob-by 90 degrees. The end-effector of manipulator is a laser point. This kind of servos is controlled in a very specific way. These accept only pul-se width modulation (PWM) signal with 50 Hz frequen-cy. The position of the servo can be regulated by changing the duty cycle from 1 ms to 2 ms, where 1.5 ms is neutral position of servo and remaining two are its extreme posi-tions. Microcontroller communicates with high-level con-troller through UART protocol with the use of USB trans-mission. There was used the FTDI UART-USB converter.

3. Signal Processing and Classification

Signal processing is composed of the following stages: filte-ring, division into sections based on the movement pattern, and finally calculation of signal descriptors. After receiving the signal, it has been filtered with low-pass filter, which transfers function that can be described as:

( ) 2 2 0.31 0.24 0.31 0.24 0.38 s s G s s + s + = + −

This kind of filter removes almost all noise, remaining, as a result, a pure determined signal (fig. 3).

Then these signals were processed again in order to di-vide them into sections, in which motion appears. It has been done based on a modified threshold algorithm. The beginning of the motion has been designated based on the derivative of fragment of the signal (DS). When DS is big-ger, then the established threshold, it means that patient has moved his/her eyes. The end of the motion has been designated based on moments passing by zero. The

cha-Fig. 2. Circuit diagram of EOG apparatus

Fig. 2. Schemat elektryczny opracowanego aparatu EOG

1 1 2 2 3 3 4 4 D D C C B B A A Title Number Revision Size A4 Date: 2012-11-20 Sheet of

File: C:\Users\..\EOG.SchDoc Drawn By:

-V 4 IN+ 3 IN-2 OUT 6 REF 5 RG 1 RG 8 +V 7 U1 INA128UA 1k6 R1 Res3 100K R2 Res3 100K R3 Res3 V_PLUS V_MIN 1k6 R19 Res3 3 2 1 A 8 4 U3A OP213FS 6 5 7 B 8 4 U3B OP213FS V_PLUS V_MIN 20K R9 Res3 390K R5 Res3 39pF C5 Cap 390K R12 Res3 V_MIN V_PLUS J1 Socket Wzmacniacz instrumentacyjny - G = 16 0.1uF C8 Cap 11K R6 Res3 11K R7 Res3 V_MIN V_PLUS Filtr dolnoprzepustowy - fc = 100Hz 0.47uF C7 Cap 0.47uF C6 Cap 750K R4 Res3 1Meg5 R8 Res3 V_MIN V_PLUS Filtr górnoprzepustowy - fc =0,3Hz V_PLUS V_MIN 1K R11 Res3 10K R10 Res3 910 R13 Res3 V_MIN V_PLUS 1K R16 Res3 1K R15 Res3 51K R14 Res3 Wzmacniacz odwracajacy - G = 50 Wzmacniacz odwracajacy - G = 10 5 6 7 B 8 4 U2B OP213FS 2 3 A 1 8 4 U2A OP213FS 5 6 7 B 8 4 U4B OP213FS 2 3 1 A 8 4 U4A OP213FS 0.22uF C4 Cap V_PLUS V_MIN 1 2 3 4 P1 Header 4 1 2 3 4 P2 Header 4 GND GND GND GND GND GND GND

Fig. 3. Time domain and spectrogram of filtered signal. It can be

seen on the spectrogram that, inter alia, the 50 Hz noise has been removed

Rys. 3. Sygnał w dziedzinie czasu i spektrogram odfiltrowanego

sygnału EOG. Na rysunku możemy zauważyć, iż między innymi została usunięta składowa 50 Hz

0 1 2 3 4 5 6 x 104 −4 −3 −2 −1 0 1 2 3 4 0.5 1 1.5 2 2.5 x 104 0 0.2 0.4 0.6 0.8 1 samples samples voltage [V] frequency [Hz]

(3)

162

Nauka

ced one additional electrode on the patient, which would connect the subject to the ground of the devices. The following classes of motions were used: left eye position, right position, upper position, button position, single blink, double fast blink, close and open eyes. Study of the signal shows that the values of signal amplitude of the blinks are too low, compared to other motions. Consequently, because the division algorithm has been used based on time doma-in of the signal, bldoma-inks have been excluded from the con-trol algorithm.

Fig. 5. Architecture of the ANN used for the signal classification Rys. 5. Architektura sztucznej sieci neuronowej użytej do

klasy-fikacji sygnałów

racteristics of the EOG signals require passing only once through zeros and then relatively slowly reaching zero thro-ugh exponential curve. These calculations have been repe-ated, while windows travel through recorded fragment of the signal (fig. 4).

Fig. 6. The system designer during the experiments

Rys. 6. Projektant systemu podczas przeprowadzania

ekspery-mentów

Fig. 7. Simple characteristics of EOG signals Rys. 7. Przykładowe charakterystyki sygnałów EOG

0 10 20 30 40 50 60 −6 −4 −2 0 2 4 6 time[s] Amplitude[V] 0 10 20 30 40 50 60 −4 −2 0 2 4 time[s] Amplitude[V]

move to the left

move to the right

move to the top

move to the bottom

After recording the principal movements, signals were processed, which final stage designated the vector of fe-atures. This vector of features was used to teach on ANN. After teaching, the ANN was prepared for real time ope-ration. The code was written in C# language.

5. Results and EOG signals

characteristic

Electrooculographic signals, similarly to other signals, can be considered in spectral or time domain. Signals in time domain give many information and are relatively easy to be interpreted. Experiments provide insight into the

natu-Fig. 4. Illustration of the signal division into sections. Blue points

correspond to the beginning and red points to the end of motion

Rys. 4. Ilustracja algorytmu podziału sygnału na fragmenty,

w których występował ruch. Niebieskie punkty symbo-lizują początek ruchu, a czerwone jego koniec

It is important to finish the motion before recording is stopped, otherwise signal may be divided between different recordings, which causes system malfunction.

After signal division, descriptors of motion have been designated. There have been used the following features: an amplitude of the signal, middle value, mean frequency, du-ration of divided fragment of motion and slope of the signal Vector of features was routed to the ANN, where it was classified to one of several classes (fig. 5).

4. Experiments

Experiments were done on the one subject (fig. 6). It is important that during signal recording there should be

(4)

pla-Pomiary automatyka Robotyka nr 12/2012

163

Artur Gmerek, MSc

He received the MSc degree in the field of Automatics and Robo-tics, majoring in Control of Industrial Processes and Applied Computer Science from Lodz University of Tech-nology, Poland, in 2008. His research interests include rehabilitation robots and biomedical systems. He currently studies for a PhD at the Lodz Univer-sity of Technology in Institute of Auto-matic Control.

e-mail: artur.gmerek@p.lodz.pl

Damian Pakulski, BSc, Eng.

He is studying an Automatic Control and Robotics at the Lodz University of Tech-nology. In 2012 he defended his BSc, Eng thesis “Feasibility study of use of electro-oculography signals for control of mani-pulators”. In his range of his interests are signal processing and robotics.

e-mail: dondmno@gmail.com re of EOG signals. Research study shows that left and

right, as well as upper and bottom eyes movement can be easily distinguished. Depending on the placement of elec-trodes, the amplitude of upper and left motion pattern would be positive, while the amplitude of right and bot-tom eye movement would be negative. Besides, amplitude of upper and bottom eye movement is lower then left-right eye movement (fig. 7).

User was able to successfully control the manipulator with the created algorithm. Results of experiments also show that only one channel of electrode is sufficient to cor-rectly control the manipulator.

6. Conclusions

The aim of the project was achieved. There has been cre-ated a fully automcre-ated system which has been successful-ly used for manipulator control. Recorded signal has been high-quality compared to the signal of other researchers. This means that the EOG apparatuses have been properly designed. Overall accuracy calculated on the basis of seve-ral dozens of measurements has been 91 %. This results have been calculated in offline experiments after dividing the set in 7:3 proportion (training:test). This accuracy could be probably greater with the use of additional featu-res connected to spectral characteristics of the signals. The experiments showed that EOG signals could be used even in more complicated control systems than 2-DOF mani-pulators.

7. Future Work

Future work will be connected with verification the degree of discrimination of other features. In the future there should be, for example, tested the non-linear dynamics descriptors e.g. fractal dimensions, Lyapunov exponent and others. These descriptors are not much correlated with pre-viously used ones.

It is also important to improve the division algorithm by the spectral information. After such refinement, it wo-uld be possible to use blinks in the system.

There will be also created more complicated control system, probably virtual keyboard or some sort of mobi-le application.

Bibliography

1. Usakli A.B., Gurkan S., Design of a Novel Efficient

Human – Computer Interface: An Electrooculagram Based Virtual Keyboard, “IEEE Transactions on

Instru-mentation and Measurement”, 2010, vol. 59, 2099–2108. 2. Ubeda A., Ianez E., Azorin J.M., Wireless and

Porta-ble EOG-Based Interface for Assisting DisaPorta-bled People,

“IEEE/ASME Transactions on Mechatronics”, 2011, vol. 16, 870–873.

3. Kuo C.-H., Chan Y.-C., Chou H.-C., Siao J.-W.,

Eyeglasses based electrooculography human-wheelchair interface, Proc. IEEE Int. Conf. Systems, Man and

Cybernetics SMC, 2009, 4746–4751.

4. Kherlopian A.R., Gerrein J.P., Yue M., Kim K.E., Kim J.W., Sukumaran M., Sajda P., Electrooculogram based

system for computer control using a multiple feature

classification model, Proc. 28th Annual Int. Conf. of

the IEEE Engineering in Medicine and Biology Socie-ty EMBS, 2006, 1295–1298.

5. Bulling A., Ward J.A., Gellersen H., Troster G., Eye

Movement Analysis for Activity Recognition Using Elec-trooculography, “IEEE Transactions on Pattern

Analy-sis and Mechine Intelligence”, 2011, vol. 33, 741–753. 6. Barea R., Boquete L., Mazo M., Lopez E., System for

assisted mobility using eye movements based on electro-oculography, “IEEE Transactions on Neuronal Systems

and Rehabilitation Engineering”, 2002, 10, 209–218.

System sterowania wykorzystujący sygnał

elektrookulograficzny

Streszczenie: Celem projektu było opracowanie metod

prze-twarzania i analizy sygnałów elektrookulograficznych (EOG) na potrzeby sterowania manipulatorów. Elektrookulografia jest techniką polegającą na pomiarze potencjału szczątkowego gałki ocznej, który wynika z elektrycznej aktywności siatkówki. W pracy przedstawiony jest kompletny system elektrookulogra-ficzny, który steruje laserowym wskaźnikiem o dwóch stopniach swobody. W celu dostosowania sygnału EOG do sterowania manipulatora musi zostać on zarejestrowany przez czuły gal-wanometr zwany elektrookulografem, a następnie przetworzony w wieloetapowym procesie przetwarzania cyfrowego. Końco-wym etapem przetwarzania jest klasyfikacja z wykorzystaniem sztucznych sieci neuronowych. Aplikacja może zostać wykorzy-stana przez osoby niepełnosprawne mające kontrolę jedynie nad ruchem swoich oczu.

Słowa kluczowe: elektrookulografia, EOG, HMI, BMI,

Cytaty

Powiązane dokumenty

Rachunki te mają umożliwić szczegółową rejestrację prze­ pływów wody między środowiskiem a gospodarką (wkład natury – natural inputs), tego, co się dzieje w

Międzynarodowych Standardów Rachunkowości i Sprawozdawczości ISAR, zawarte w dokumencie "Position Paper"", obejmują takie zagadnienia, jak: uznanie kosztów środowiskowych w okresie,

Drugim elementem raportu rocznego jest sprawozdanie z działalności, które muszą sporządzać: spółki kapitałowe, spółki komandytowo-akcyjne, towarzy- stwa ubezpieczeń

44 c.1.: 1 udzia³owcy ¿adnej ze spó³ek nie uzyskuj¹ wiêcej ni¿ 60% ogólnej liczby g³osów na walnym zgromadzeniu udzia³owców spó³ki po³¹czonej, 2 wartoœci godziwe

W momencie zamknięcia kontraktu opcji na rynku terminowym od jednostki wymaga się następujących zapisów – zapis księgowy: 2 Ct – rachunek inwestycyjny w biurze maklerskim 100

Zaprezentowane definicje wskazują wyraźnie na cel rachunku kosztów, którym jest dostarczanie informacji decydentom do oceny sytuacji, podejmowania decyzji gospodarczych i kontroli

W ten sposób pomiar wartoÊci wyniku finansowego znajduje swoje odniesienie do koncepcji zachowania kapita∏u, czyli wp∏ywu zmian cen na mo˝liwoÊç odtworzenia majàtku

Przykłady sytuacji, które osobno lub łącznie powodują, że umowa leasingu zostanie zazwyczaj zaliczona do leasingu finansowego, są następujące [Międzynarodowe… 2007]: – na