Project_Report (1)
Project_Report (1)
Bachelor thesis
by
Bhanu Pratap Singh Bankoti
Chandra Shekhar Gupta
A thesis submitted to
Indian Institute of Information Technology, Kalyani
We hereby declare that the work being presented in this thesis entitled,
“Multitasking in Divided Attention”, submitted to Indian Institute of Infor-
mation Technology, Kalyani in partial fulfillment for the award of the degree
of Bachelor of Technology in Computer Science and Engineering during the
period from Jan, 2019 to May, 2019 under the supervision of Dr. Oishila
Bandyopadhyay, Department of Computer Science and Engineering, Indian
Institute of Information Technology, Kalyani, West Bengal 741235, India,
does not contain any classified information.
Signed:
Date:
i
Certificate
Date:
Acknowledgments
We would like to express our sincere thanks and gratitude to our Super-
visor Dr. Oishila Bandyopadhyay, who gave us the golden opportunity to do
this wonderful project and guided us immensely through the course of the
project. We came to know about so many new things, all thanks to her.
We also thank our parents for their motivation and support. We must
thank to our classmates for their timely help and support for completion of
this project.
Last but not the least, We would like to thank all those who had helped
directly or indirectly in this project.
Date:
iii
Abstract
iv
Contents
Acknowledgements iii
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Types of attention . . . . . . . . . . . . . . . . . . . . 1
1.1.2 Determinants of attention . . . . . . . . . . . . . . . . 2
1.2 Divided Attention . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Attention Assessment 4
2.1 Current methods of assessment . . . . . . . . . . . . . . . . . 4
2.2 Attention Test . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Test for Divided Attention . . . . . . . . . . . . . . . . . . . 5
3 Work Done 6
3.1 Proposed algorithm . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.1 Task 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2.2 Task 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2.3 Task 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3 Labelling of Dataset . . . . . . . . . . . . . . . . . . . . . . . 11
v
6 Discussion 24
vi
Chapter 1
Introduction
1.1 Background
Attention, in psychology is the concentration of awareness on some phe-
nomenon to the exclusion of other stimuli. Attention is best described as
the sustained focus of cognitive resources on information while filtering or
ignoring extraneous information. It is a very basic function that often is a
precursor to all other neurological/cognitive functions. It is awareness of the
here and now in a focal and perceptive way. Although human experience is
determined by the way people direct their attention, it is evident that they
do not have complete control over such direction. There are, for example,
times when an individual has difficulty concentrating attention on a task, a
conversation, or a set of events. At other times an individual's attention is
captured by an unexpected event rather than voluntarily directed toward it.
1
ability to respond simultaneously to multiple tasks or multiple task demands
[12].
– Motivation
– Intensity
– Size
– Change
– Color
– Clarity
– Repetition
– Interest
– Motives
– Mental set
– Emotional state
– Habit
2
activity at a time [12].
• When you are eating and talking at the same time, or even when you are
watching TV and talking on the phone, you are using divided attention.
The loss of divided attention skill is also highly associated with other age-
related risks [3], including falls and the onset of Mild Cognitive Impairment
(MCI) [7], often a precursor to Alzheimer's Disease. Screening tests for MCI
are coarse at best; by the time someone does poorly enough to be considered
impaired, his or her family have often been worried for months or years. This
is especially problematic, considering that current pharmacological agents for
Alzheimer's treatment can only slow the symptoms of the disease, not bring
back what has been lost.
3
Chapter 2
Attention Assessment
4
gate concentration (see my page on Attention problems for an explanation
of different types). Unfortunately, attention tests rarely resemble daily life
activities and it is therefore questionable how accurately they really measure
your concentration skills in daily life. One thing is certain though, most
such tests require quite a lot of focus. Probably much more than daily life
activities.
5
Chapter 3
Work Done
We have introduced visual search and multitask paradigm to study the di-
vided attention. Initial consideration of divided attention is limited to a
consideration of simple stimuli and tasks and focuses on divided attention
across space.
6
• Label the data based on the mean and standard deviation of the at-
tention score.
• Apply machine learning model to classify the attention type (Low, Av-
erage, High).
3.2 Function
In this work we have developed three distinct task which will have spatial
identification test, color and number test (Figure 3.1), which will monitor
the attention level by using visual effect and multi-tasking. A user has to
press the specified key at instant, the target stimuli occur [11].
In this test, there is predefined input which will keeps on changing randomly
at the time interval of 750 milliseconds. This whole process of test occur
in order i.e., firstly angle determination test is done (task 1), then color se-
lection test (task 2) and then number selection test (task 3) (Figure 3.1).
Each test is of 3 seconds and this is repeated 20 times. If a user is unable
to respond within that 6 seconds, either he missed it or unable to act, it will
be considered as wrong outcome. If user is fast and smart enough to act
decisively and press right key for that target stimuli, answer is recorded as
true, otherwise false value is stored in database.
7
3.2.1 Task 1
In first task, we try to measure the attention level of a user related to spatial
movement of stimuli. In this test, an angle is generated randomly and it
keeps on changing at each 750 milliseconds. A user is given input as particu-
lar angle (in degree) and he have to click the “left arrow" at the instant when
that particular angle (target stimuli) is shown in the clock (Figure 3.2). This
task run for 6 seconds only and user has to respond correctly within this 6
seconds. At the same instant, evaluation is done and the output is stored in
database. And this task again run after task 2 and task 3 are performed. 20
records are created in this process.
8
3.2.2 Task 2
In this task, we are concerned with chromatic stimulus behavioural process.
We have to select a given color out of the rest of the colors (8 colors) which
are generated randomly at regular interval of time and changes periodically
at time interval of 750 milliseconds (Figure 3.3). We will use “up-arrow"
for responding for the given color (target stimuli). If the time limit (i.e., 6
seconds for each question) is elapsed and the color is not selected then the
question will be marked missed. For example, in Figure 3.3 target stimuli is
gray and instant stimuli is blue.
9
3.2.3 Task 3
In this game we are concerned with stimulus and response related to number
game. We have to correctly select a number which is generated randomly
using a pseudo number generator that keeps on changing every 750 millisec-
onds (ranging from 1-8 inclusive). We will use “right-arrow" for selecting the
given target color. If the time limit (i.e., 6 seconds for each question) is ex-
ceeded and the number is not yet selected then the question will be marked
missed. This task is also performed 20 times. For example, in given Figure
3.4, a user is asked to press right key when orange square box shows 5 as
target stimuli is 5.
10
3.3 Labelling of Dataset
The dataset that is collected is not labeled so we have done statistical analysis
on the data in order to label it as High, Average or Low divided attention.
The steps for labeling a dataset is as follows :
1. Firstly, we have done the statistical analysis individually for each of the
three cognitive tasks. We are using mean(µ) and standard deviation(σ)
in order to differentiate between the three classes. Let the 3 cognitive
tasks be task-a, task-b, and task-c then the corresponding statistical
parameters for these are (µa , σ a ), (µb , σ b ), (µc , σ c ). We have also clas-
sified the performance in these individual tasks into 3 classes(High(H),
Average(A), and Low(L)) as follows :
Ha = above µa + σ a Aa = between µa - σ a and µa + σ a
La = below µa - σ a
Hb = above µb + σ b Ab = between µb - σ b and µb + σ b
Lb = below µb - σ b
Hc = above µc + σ c Ac = between µc - σ c and µc + σ c Lc
= below µc - σ c
2. Again we will do the statistical analysis but now for the combined
cognitive task comprising of all the three sub-tasks a, b and c. The
statistical parameters for this combined task are (µ, σ).
11
Scatter plot of Task-1, Task-2 and task-3 are shown in Figure 3.5, in
which green bubble represent High attention score, red dot represent Average
attention score, whereas blue bubble represent Low attention score.
12
Index Task-1 Task-2 Task-3 Z
0 8 13 13 0
1 13 11 12 0
2 7 10 18 -1
3 8 14 11 0
4 11 16 17 1
5 14 15 12 1
6 9 10 16 0
7 13 12 11 0
8 9 9 15 0
9 8 15 17 1
10 12 13 11 0
11 15 16 15 1
12 15 14 15 1
Target Value Z (in table 3.1) is divided into 3 class namely -1, 0, 1 where,
13
Chapter 4
Naive Bayes classifier is the fast, accurate and reliable algorithm. Naive
Bayes classifiers have high accuracy and speed on large datasets. Naive
Bayes classifier assumes that the effect of a particular feature in a class is
independent of other features. Even if these features are interdependent,
these features are still considered independently. This assumption simplifies
14
computation, and that’s why it is considered as naive. This assumption is
called class conditional independence.
P (D|h)P (h)
P (h|D) =
P (D)
• P(h): the probability of hypothesis h being true (regardless of the data).
This is known as the prior probability of h.
• P(D|h): the probability of data d given that the hypothesis h was true.
This is known as the posterior probability.
4. See which class has a higher probability, given the input belongs to the
higher probability class.
The main objective is to segregate the given dataset in the best possible
way. The distance between either nearest points is known as the margin. The
15
objective is to select a hyperplane with the maximum possible margin be-
tween support vectors in the given dataset. SVM searches for the maximum
marginal hyperplane in the following steps:
2. Select the right hyperplane with the maximum segregation from either
nearest data points.
Deep decision trees may suffer from overfitting, but random forests pre-
vent from overfitting by creating trees on random subsets. The main reason
is that it takes the average of all the predictions, which cancels out the biases.
Random Forest adds additional randomness to the model while growing the
trees. Instead of searching for the most important feature while splitting a
node, it searches for the best feature among a random subset of features.
This results in a wide diversity that generally results in a better model.
16
It works in four steps:
4. Select the prediction result with the most votes as the final prediction.
17
4.2 Results
In order to classify the Divided Attention of a subject, we have employed
three machine learning classification algorithms (SVM, Naive Bayes classi-
fier and Random Forest). We have done a comparative analysis among them
on the basis of their efficiency. From the analysis we can conclude that the
efficiency of Random forest classifier is better as compared to SVM and Naive
Bayes classifier. Apart from this, we have also plotted the confusion matrix
of all the three classifiers that can be used to describe the performance of
our classification model(or classifier) on a set of test data whose true values
are known.
predicted value
-1 0 1
-1 2 6 0
True value
0 0 49 1
1 0 7 7
18
predicted value
-1 0 1
-1 3 5 0
True value
0 2 48 0
1 0 1 13
predicted value
-1 0 1
-1 4 4 0
True value
0 1 49 0
1 0 2 12
19
Above confusion matrix of Random Forest Classifier indicate that for 8
instances of Low attention class, 4 instances are correctly predicted but 4
are incorrectly predicted into Average attention class. For 50 instances of
Average class, 49 are predicted correctly but 1 instance is misclassified as
Low attention class. For 14 instances of High class attention, 12 of them
are predicted correctly but 2 instances is incorrectly predicted as Average
attention class. So, performance of this model for our dataset is 90.27%.
We have found the accuracy of all three classifiers using the given dataset.
Classifier Accuracy
SVM 88.88
20
Chapter 5
Most of the students with average divided attention have either good or
average academic performance and the students with low divided attention
have poor academic performance.
From these results (Figure 5.1), we can conclude that divided attention has
a strong association with academic functioning and students with attention
problems have a subsequent decline in their academics.
21
Figure 5.1: Plot of Attention Score and Academic Performance.
22
length (L’ ) with minimum error (Error = L’ - L). We are taking the subject's
performance error as a parameter to analyze the relationship between Linear
Perception and their Divided Attention.
For the analysis, we have plotted a graph (Figure 5.2) between Divided
Attention score and Linear Perception response (error).
From Figure 5.2 we cannot observe any strong association between Lin-
ear Perception and Divided Attention. The possible causes may be due to
insufficient dataset or the discrepancy in the subject's Divided Attention and
most of the data we have collected corresponds to the subject with no at-
tention difficulties. So this analysis can give a better result if we have more
data and more feature parameters (especially data of the subject's facing
with attention problems).
23
Chapter 6
Discussion
24
References
25
[9] Edwards JD, Ross LA, Wadley VG, Clay OJ, Crowe M, et al. The useful
field of view test: normative data for older adults. Arch Clin Neuropsychol.
2006 May;21(4):275âĂŞ86. [PubMed]
[10] Jimison HB, Pavel M. Integrating computerbased health coaching into
elder home care. In: Mihailidis A, Boger J, Kautz H, Normie L, editors.
Technology and Aging. IOS Press; Amsterdam, The Netherlands: 2008.
[11] Jimison HB, Pavel M, Bissell P, McKanna J. A framework for cognitive
monitoring using computer game interactions. Studies in Health Tech and
Informatics. 2007;129(2):1073âĂŞ1077. [PubMed]
[12] http://thepeakperformancecenter.com/educational-
learning/learning/process/obtaining/types-of-attention/
[13] https://www.cc.gatech.edu/ isbell/reading/papers/Rish.pdf
[14] www.jmlr.org/papers/volume2/tong01a/tong01a.pdf
[15] http://www.jmlr.org/papers/volume13/biau12a/biau12a.pdf
26