Implementation of a New Algorithm for Drone Control Using BCI System
Implementation of a New Algorithm for Drone Control Using BCI System
DOI: http://doi.org/10.24086/cocos2022/paper.811
4th International Conference on Communication Engineering and Computer Science (CIC-COCOS’2022) 138
Acquisition Signals and TGAM treatment The attention and meditation level are related to personal
mental and physical states. The attention level is increased
NeuroSky mindwave 2 with the concentration, while meditation requires more
uses TGAM module to extract and process the brain signals training, sustainable mental and physical relaxation process
in this system. The TGAM module uses single channel with during the experiment. This promotes the use of attention and
dry electrode to capture the brain signals and eye-blink from not meditation [24]. The eye-blink reading can be acquired
the user’s scalp at Fp1 position as clarified in Fig 3. from the raw wave EEG. The NeuroSky TGAM module reads
the eye-blink as an unsigned single byte with range strength
between 1-255 integer value. The binary code designed in the
present work requires the correct classification of attention
and eye-blinking signal to drive the correct control action.
Digital
Analog
AFE
A/D
Logic UART Bluetooth
Digital where, 𝑇𝑖 is data collection time, 𝑆̅𝑖 is the average of the
Signal Converter Signal
circuit experimental attention levels of the five individuals and N is
Fig. 4. Pre-treatment circuits block diagram the number of readings.
Essentially the pre-treatment circuit has Analog Front End
(AFE) stage, analog-to-digital convertor (A/D), digital logic Eye-Blink Strength Classification
circuit. Once the AFE stage accomplishes, the signals pass to The drone’s control commands are executed using eye-blink
the A/D converter for sampling at 512 Hz, and coded with 12 signal based on the intensity of blink. In order to define an
bits. The digital logic circuit is used to output the serial data accurate blink threshold separating on-blink represented by
via Universal Asynchronous Receiver and Transmitter 1-binary and off-blink for 0-binary, many tests on different
(UART) interface. Typically, the UART output is connected users must be performed. The Support Vector Machine (SVM)
to a Bluetooth module UART input for transmitting the algorithm is utilized to classify the collected data. The output
signals to the PC [23]. The equation of converting raw value of the SVM is the optimal eye-blink intensity used for
to the voltage is given by: classification.
Algorithm Development
DOI: http://doi.org/10.24086/cocos2022/paper.811
4th International Conference on Communication Engineering and Computer Science (CIC-COCOS’2022) 140
Yes
According to the coming signals from the brain to generate
Attention (ATT) detection
EBC, the approved algorithm is employed to control various
Yes
drone's movements as follow; 0000/ Land, 1111/Take-off,
1001/Up, 0110/Down, 1100/Left, 0011/Right, 1110/Forward, ATT > y
During 3 sec
0001/Backward and 1010/Stop. All the movements are
Yes
executed using both layer in a successive manner except the Drone Takeoff
stop motion, which is executed by using only the EBC
because it can be a critical movement. EBC detection during 5 sec.
Regardless of the blink strength, a timer of 5 seconds is
triggered with the first active blink for generating the EBC. Yes EBC= 1010 No
Once the generating EBC, the ATT is detected based on the
movement to be executed, and detects during a surveillance Drone Stop
Timer sec
period of 7 seconds. The ATT must be greater than detected No ATT = y
"S" during 3 seconds to execute the SCL, else the device
Yes
carries on with the current movement.
Once the devices are coupled, the drone is ready for receiving No
ATT > y
During 3 sec
the Take-off command. After Take-off, the drone waits to
Yes
receive for the next movements' commands based on the Yes
Drone (Forward-Backward-
user's intention. As soon as the drone is received the land's Left-Right-Up-Down)
No Drone Land
Yes
seconds if not Take-off again.
Timer sec
EBC=1111?
Experimental Results
No
The system is evaluated through a practical experiment
including five participants. The practical experiment is Device OFF
executed in a convenient position and quiet ambience free of Fig. 5. Drone control algorithm
the negative factors affecting.
Table 2 Calculation of LRM constants
4.1 Evaluation of dynamic attention threshold
𝑇𝑖 𝑆𝑖I 𝑆𝑖II 𝑆𝑖III 𝑆𝑖IV 𝑆𝑖V 𝑆̅𝑖 𝑇𝑖2 𝑇𝑖 𝑆̅𝑖
A period of 11 seconds is adopted to collect the attention 1 38 24 54 29 56 40.2 1 40.2
levels' data for five individuals experimentally as shown in 2 66 72 56 53 93 68 4 136
Table 2. After calculating the LRM’s constants by the 10
equations 5, 6, and 7, the attention level’s dynamic threshold 3 83 91 74 77 85 9 255
0
is credible as: 10 10 383.
𝑆 = 3.0273𝑥 + 65 (8) 4 96 96 87 95.8 16
0 0 2
The adopted mechanism of the attention level for controlling 10 10 10
is as follows; achieving strong value (logic "1") by raising 5 93 84 95.4 25 477
0 0 0
over the attention level more than the threshold value for three 10 548.
second. 6 88 97 81 91 91.4 36
0 4
641.
7 91 85 96 96 90 91.6 49
2
8 87 88 94 96 80 89 64 712
667.
9 90 93 90 90 88 74.2 81
8
10
10 97 81 90 83 95 89.2 892
0
10 12 102
11 81 84 97 96 93
0 1 3
DOI: http://doi.org/10.24086/cocos2022/paper.811
4th International Conference on Communication Engineering and Computer Science (CIC-COCOS’2022) 142
DOI: http://doi.org/10.24086/cocos2022/paper.811