\documentclass[twocolumn,twoside]{article}
\makeatletter\if@twocolumn\PassOptionsToPackage{switch}{lineno}\else\fi\makeatother

\usepackage{amsfonts,amssymb,amsbsy,latexsym,amsmath,tabulary,graphicx,times,xcolor}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Following additional macros are required to function some 
% functions which are not available in the class used.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{url,multirow,morefloats,floatflt,cancel,tfrupee}
\makeatletter


\AtBeginDocument{\@ifpackageloaded{textcomp}{}{\usepackage{textcomp}}}
\makeatother
\usepackage{colortbl}
\usepackage{xcolor}
\usepackage{pifont}
\usepackage[nointegrals]{wasysym}
\urlstyle{rm}
\makeatletter

%%%For Table column width calculation.
\def\mcWidth#1{\csname TY@F#1\endcsname+\tabcolsep}

%%Hacking center and right align for table
\def\cAlignHack{\rightskip\@flushglue\leftskip\@flushglue\parindent\z@\parfillskip\z@skip}
\def\rAlignHack{\rightskip\z@skip\leftskip\@flushglue \parindent\z@\parfillskip\z@skip}

%Etal definition in references
\@ifundefined{etal}{\def\etal{\textit{et~al}}}{}


%\if@twocolumn\usepackage{dblfloatfix}\fi
\usepackage{ifxetex}
\ifxetex\else\if@twocolumn\@ifpackageloaded{stfloats}{}{\usepackage{dblfloatfix}}\fi\fi

\AtBeginDocument{
\expandafter\ifx\csname eqalign\endcsname\relax
\def\eqalign#1{\null\vcenter{\def\\{\cr}\openup\jot\m@th
  \ialign{\strut$\displaystyle{##}$\hfil&$\displaystyle{{}##}$\hfil
      \crcr#1\crcr}}\,}
\fi
}

%For fixing hardfail when unicode letters appear inside table with endfloat
\AtBeginDocument{%
  \@ifpackageloaded{endfloat}%
   {\renewcommand\efloat@iwrite[1]{\immediate\expandafter\protected@write\csname efloat@post#1\endcsname{}}}{\newif\ifefloat@tables}%
}%

\def\BreakURLText#1{\@tfor\brk@tempa:=#1\do{\brk@tempa\hskip0pt}}
\let\lt=<
\let\gt=>
\def\processVert{\ifmmode|\else\textbar\fi}
\let\processvert\processVert

\@ifundefined{subparagraph}{
\def\subparagraph{\@startsection{paragraph}{5}{2\parindent}{0ex plus 0.1ex minus 0.1ex}%
{0ex}{\normalfont\small\itshape}}%
}{}

% These are now gobbled, so won't appear in the PDF.
\newcommand\role[1]{\unskip}
\newcommand\aucollab[1]{\unskip}
  
\@ifundefined{tsGraphicsScaleX}{\gdef\tsGraphicsScaleX{1}}{}
\@ifundefined{tsGraphicsScaleY}{\gdef\tsGraphicsScaleY{.9}}{}
% To automatically resize figures to fit inside the text area
\def\checkGraphicsWidth{\ifdim\Gin@nat@width>\linewidth
	\tsGraphicsScaleX\linewidth\else\Gin@nat@width\fi}

\def\checkGraphicsHeight{\ifdim\Gin@nat@height>.9\textheight
	\tsGraphicsScaleY\textheight\else\Gin@nat@height\fi}

\def\fixFloatSize#1{}%\@ifundefined{processdelayedfloats}{\setbox0=\hbox{\includegraphics{#1}}\ifnum\wd0<\columnwidth\relax\renewenvironment{figure*}{\begin{figure}}{\end{figure}}\fi}{}}
\let\ts@includegraphics\includegraphics

\def\inlinegraphic[#1]#2{{\edef\@tempa{#1}\edef\baseline@shift{\ifx\@tempa\@empty0\else#1\fi}\edef\tempZ{\the\numexpr(\numexpr(\baseline@shift*\f@size/100))}\protect\raisebox{\tempZ pt}{\ts@includegraphics{#2}}}}

%\renewcommand{\includegraphics}[1]{\ts@includegraphics[width=\checkGraphicsWidth]{#1}}
\AtBeginDocument{\def\includegraphics{\@ifnextchar[{\ts@includegraphics}{\ts@includegraphics[width=\checkGraphicsWidth,height=\checkGraphicsHeight,keepaspectratio]}}}

\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}

\def\URL#1#2{\@ifundefined{href}{#2}{\href{#1}{#2}}}

%%For url break
\def\UrlOrds{\do\*\do\-\do\~\do\'\do\"\do\-}%
\g@addto@macro{\UrlBreaks}{\UrlOrds}



\edef\fntEncoding{\f@encoding}
\def\EUoneEnc{EU1}
\makeatother
\def\floatpagefraction{0.8} 
\def\dblfloatpagefraction{0.8}
\def\style#1#2{#2}
\def\xxxguillemotleft{\fontencoding{T1}\selectfont\guillemotleft}
\def\xxxguillemotright{\fontencoding{T1}\selectfont\guillemotright}

\newif\ifmultipleabstract\multipleabstractfalse%
\newenvironment{typesetAbstractGroup}{}{}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[authoryear]{natbib}



\newif\ifnokeywords\nokeywordsfalse

\makeatletter\input{size10-pointfive.clo}\makeatother%
\definecolor{kwdboxcolor}{RGB}{242,242,242}
\usepackage[hidelinks,colorlinks=true,allcolors=blue]{hyperref}
\linespread{1}                 
\def\floatpagefraction{0.8}

\usepackage[paperheight=11.69in,paperwidth=8.26in,top=1in,bottom=1in,left=1in,right=.75in,headsep=24pt]{geometry}

\usepackage{multirow-custom}

\makeatletter

\def\hlinewd#1{%
  \noalign{\ifnum0=`}\fi\hrule \@height #1%
  \futurelet\reserved@a\@xhline}
\def\tbltoprule{\hlinewd{1pt}\\[-14pt]}
\def\tblbottomrule{\noalign{\vspace*{6pt}}\hline\noalign{\vspace*{2pt}}}
\def\tblmidrule{\hline\noalign{\vspace*{2pt}}}



\let\@articleType\@empty
\let\@journalDoi\@empty
\let\@journalVolume\@empty
\let\@journalIssue\@empty
\let\@crossMarkLink\@empty
\let\@receivedDate\@empty
\let\@acceptedDate\@empty
\let\@revisedDate\@empty
\let\@publishedDate\@empty
\let\@copyrightYear\@empty
\let\@firstPage\@empty
\def\articleType#1{\gdef\@articleType{#1}}
\def\journalDoi#1{\gdef\@journalDoi{#1}}
\def\crossMarkLink#1{\gdef\@crossMarkLink{#1}}
\def\receivedDate#1{\gdef\@receivedDate{#1}}
\def\acceptedDate#1{\gdef\@acceptedDate{#1}}
\def\revisedDate#1{\gdef\@revisedDate{#1}}
\def\publishedDate#1{\gdef\@publishedDate{#1}}
\def\copyrightYear#1{\gdef\@copyrightYear{#1}}
\def\journalVolume#1{\gdef\@journalVolume{#1}}
\def\journalIssue#1{\gdef\@journalIssue{#1}}
\def\firstPage#1{\gdef\@firstPage{#1}}
\let\@issuelogo\@empty%
\let\@issuelogoex\@empty%
\def\issuelogo#1{\gdef\@issuelogo{#1}}
\def\issuelogoex#1{\gdef\@issuelogoex{#1}}


\def\author#1{%
  \gdef\@author{%
    \hskip-\dimexpr(\tabcolsep)\hskip5pt%
    \parbox{\dimexpr\textwidth-1pt}%
    {\fontsize{11}{13}\selectfont\raggedright #1}%
  }%
}


\usepackage{pharmascope-abs}
\usepackage{caption}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage[noindentafter,explicit]{titlesec}
\usepackage{fontspec}

\setmainfont[%
BoldFont=cambriab.ttf,%
ItalicFont=CAMBRIAI.TTF,%
BoldItalicFont=CAMBRIAZ.TTF]{Cambria.ttf}
\lefthyphenmin = 3

\def\title#1{%
  \gdef\@title{%
      \vspace*{-40pt}%
       \ifx\@articleType\@empty\else{\fontsize{10}{12}\scshape\selectfont\hspace{8pt}\@articleType\hfill\mbox{}\par\vspace{2pt}}\fi%
       \minipage{\linewidth}
         \hrulefill\\[-0.7pt]%%{\includegraphics[width=75pt,height=50pt]{ijrps_logo.png}}\hfill
         \mbox{~}\hspace{5pt}\parbox{.1\linewidth}{\IfFileExists{images/\@issuelogo.\@issuelogoex}{\includegraphics[width=79pt,height=61pt]{images/\@issuelogo.\@issuelogoex}}{\includegraphics[width=75pt,height=50pt]{ijrps_logo.png}}}\hfill
         \fcolorbox{kwdboxcolor}{kwdboxcolor}{\parbox{.792\linewidth}{%
          \begin{center}\fontsize{17}{17}\selectfont\scshape\vskip-7pt International Journal of Research in Pharmaceutical Sciences\hfill\end{center}%
          \vspace*{-10pt}\hspace*{4pt}{\fontsize{8}{9}\selectfont Published by JK Welfare \& Pharmascope Foundation\hfill  Journal Home Page: \href{https://ijrps.com}{\color{blue}\underline{\smash{https://ijrps.com}}}}\hspace*{4pt}\mbox{}}}%
       \par\vspace*{-1pt}\rule{\linewidth}{1.3pt}%
       \endminipage%
    \par\vspace*{9.2pt}\parbox{.98\linewidth}{\linespread{.9}\raggedright\fontsize{14}{17}\selectfont #1}%
    \vspace*{-8pt}%
  }
}


\setlength{\parindent}{0pt}
\setlength{\parskip}{0.4pc plus 1pt minus 1pt}

\def\abbrvJournalTitle{Int. J. Res. Pharm. Sci.}

\fancypagestyle{headings}{%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0.3pt}
  \fancyhf{}%
  \fancyhead[R]{%
    \fontsize{9.12}{11}\selectfont\RunningAuthor,\ \abbrvJournalTitle,\ \ifx\@journalVolume\@empty X\else\@journalVolume\fi%
    \ifx\@journalIssue\@empty\else(\@journalIssue)\fi%
    ,\ \ifx\@firstPage\@empty 1\else\@firstPage\fi-\pageref*{LastPage}%
  }%
  \fancyfoot[LO,RE]{\fontsize{9.12}{11}\selectfont\textcopyright\ International Journal of Research in Pharmaceutical Sciences}%
  \fancyfoot[RO,LE]{\fontsize{9.12}{11}\selectfont\thepage}
}\pagestyle{headings}

                                                         
\fancypagestyle{plain}{%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0.3pt}%
  \fancyhf{}%
  \fancyhead[R]{%
    \fontsize{9.12}{11}\selectfont\RunningAuthor,\ \abbrvJournalTitle,\ \ifx\@journalVolume\@empty X\else\@journalVolume\fi%
    \ifx\@journalIssue\@empty\else(\@journalIssue)\fi%
    ,\ \ifx\@firstPage\@empty 1\else\@firstPage\fi-\pageref*{LastPage}%
  }%
  \fancyfoot[LO,RE]{\fontsize{9.12}{11}\selectfont\textcopyright\ International Journal of Research in Pharmaceutical Sciences}%
  \fancyfoot[RO,LE]{\fontsize{9.12}{11}\selectfont\thepage}
  \ifx\@firstPage\@empty\else\setcounter{page}{\@firstPage}\fi
}


\def\NormalBaseline{\def\baselinestretch{1.1}}
\usepackage{textcase}
\setcounter{secnumdepth}{0}

\titleformat{\section}[block]{\bfseries\boldmath\NormalBaseline\filright\fontsize{10.5}{13}\selectfont}
{\thesection}
{6pt}
{\MakeTextUppercase{#1}}
[]
\titleformat{\subsection}[block]{\bfseries\boldmath\NormalBaseline\filright\fontsize{10.5}{12}\selectfont}
{\thesubsection}
{6pt}
{#1}
[]
\titleformat{\subsubsection}[block]{\NormalBaseline\filright\fontsize{10.5}{12}\selectfont}
{\thesubsubsection}
{6pt}
{#1}
[]
\titleformat{\paragraph}[block]{\NormalBaseline\filright\fontsize{10.5}{10}\selectfont}
{\theparagraph}
{6pt}
{#1}
[]
\titleformat{\subparagraph}[block]{\NormalBaseline\filright\fontsize{10.5}{12}\selectfont}
{\thesubparagraph}
{6pt}
{#1}
[]

\titlespacing{\section}{0pt}{.5\baselineskip}{.5\baselineskip}  
\titlespacing{\subsection}{0pt}{.5\baselineskip}{.5\baselineskip}  
\titlespacing{\subsubsection}{0pt}{.5\baselineskip}{.5\baselineskip}  
\titlespacing{\paragraph}{0pt}{.5\baselineskip}{.5\baselineskip}  
\titlespacing{\subparagraph}{0pt}{.5\baselineskip}{.5\baselineskip}

\captionsetup[figure]{skip=1.4pt,font=bf,labelsep=colon,justification=raggedright,singlelinecheck=false}
\captionsetup[table]{skip=1.4pt,font=bf,labelsep=colon,justification=raggedright,singlelinecheck=false}

\def\bibyear#1{#1}
%\def\bibjtitle#1{#1}   %%Publisher request
\def\bibauand{}
\setlength\bibsep{3pt}
\setlength\bibhang{8pt}

\makeatother
\date{}


\usepackage{float}

\begin{document}


\def\RunningAuthor{Akshay S et al.}
\firstPage{2127}
\articleType{Original Article}
\receivedDate{09.03.2019}
\acceptedDate{17.06.2019}
\revisedDate{13.06.2019}
\journalVolume{10}
\journalIssue{3}
\journalDoi{ijrps.v10i3.1438}
\copyrightYear{2019}
\def\authorCount{3}
\def\affCount{1}

\def\journalTitle{International Journal of Research in Pharmaceutical Sciences}

\title{An R based interface to understand cognitive ability of different participants using fixation and saccade detection}
\author{Akshay~S\textsuperscript{*},  
            Ashika~P, 
            Aswathy~Ramesh~\\[5pt]{Department of Computer Science\unskip, Amrita School of Arts and Sciences,  Amrita Vishwa Vidyapeetham, Mysuru-570026, Karnataka, India}}

\begin{abstract}
Eye-tracking is an emerging area of science in a wide range of computer vision-based applications. Eye-tracking mainly deals with where the person is looking at and for what duration. In this work, we propose an R based interface to visualize the eye-tracking data as fixations and saccades that depicts where the person looking at {\textendash}fixations and saccades and what duration {\textendash} fixation duration. Through the eye-tracking metrics that are visualized in our work, one can visualize the difference between the viewing behaviour of various participants. The differences thus depicted can later be studied in order to understand the cognitive abilities of the participants. The paper contains a detailed survey of the existing literature and the experimental results generated using the R interface.
\end{abstract}\def\keywordstitle{Keywords}

\begin{keywords}Eye-tracking,\newline Fixations and saccades,\newline R shiny app,\newline Cognitive ability
\end{keywords}
\twocolumn[ \maketitle {\printKwdAbsBox}]
\makeatletter{\raggedright\textsuperscript{*}Corresponding Author\par Name:\ Akshay~S~\\ Phone:\ +91 8884344987~\\  Email:\ s\_akshay@asas.mysuru.amrita.edu
        \par}\vspace*{-11pt}\hrulefill\par{\fontsize{12}{14}\selectfont ISSN: 0975-7538}\par% 
        \textsc{DOI:}\ \href{https://doi.org/10.26452/\@journalDoi}{\textcolor{blue}{\underline{\smash{https://doi.org/10.26452/\@journalDoi}}}}\par%
        \vspace*{-11pt}\hrulefill\\{\fontsize{9.12}{10.12}\selectfont Production and Hosted by}\par{IJRPS |~\href{https://ijrps.com}{https://ijrps.com}}\par%
        \vspace*{-2pt}{\fontsize{9.12}{10.12}\selectfont\textcopyright\ \@copyrightYear\ $|$ All rights reserved.}\par%
        \vspace*{-11pt}\rule{\linewidth}{1.2pt}
        \makeatother
        
    
\section{Introduction}
 The computer vision is the field of research where the machines are given intelligence as humans, and appropriate interpretation is done to analyse accordingly. It provides the necessary information depending on the observations made by the machine. Brains of human enable them to visualize things so easily, but for a machine to work similarly, it requires extraction, analysis of the information and then delivering the information with the help of specific algorithms for automatic visualization. It holds various applications in different fields like agriculture, biometrics, character recognition, gesture analysis, medical image analysis, and so on. One of the emerging areas which use computer vision is eye-tracking, which is measuring, recording and study of eye movements for visual presentation.

The study of eye movements had been started in the late 1800s using direct observations. The movement of the eye includes the intermediate stops for a span of time for the central fovea vision called fixations and movements between those fixations called saccades. Gaze points are the coordinate points (x,y) placed on the stimulus and fixations are multiple gaze points concentrated in a particular region subjected to change with respect to eye tracker configuration. For instance, gaze point for a tracker working at 60Hz will be with an interval of 16.7 milliseconds, and that of 300Hz will be 3 milliseconds apart. The fixations include start and end timestamps, including duration, which is calculated using a specific algorithm. Obsession, perceptibility, mental processing can be inferred from these above calculations. The eye tracker uses infrared light, which is focussed towards the pupil, and the reflection will be calculated with respect to a stimulus, which is called as eye-tracking raw data. This data will be further processed for calculations such as gaze points, fixations, saccades, and so on. This data can be used to inspect the cognitive ability and workload of a particular participant. This technology has a wide range of applications also such in driving, reading, surfing, searching and perceiving things. This has even reached to the industries of medicine and defence along within advertising, packaging, web designing and so on. The scope of research is increasing in areas like psychology and physiology.

This paper discusses the raw data which is processed for the calculation of fixations and saccade using dispersion algorithm and also visualizing fixations using heatmap over the stimulus and also saccades for representing the order of movements between the fixations. This visualization can be used to infer the cognitive ability of different participants and in analysing their Area of Interest.

\textbf{Literature survey}

\unskip~\citep{557817:12808673}  proposed a novel fixation detection algorithm where target appearance will be constant and use fine-grained fixation annotations on dataset MPIIEgo Fixation which outperforms velocity- and dispersion-based algorithm especially with respect to a number of fixations. Evaluation on the performance on the basis of evaluation metrics on fragmentation and merge errors. This enhanced the visualization and analysis of the scene image. \textbf{\space }

\unskip~\citep{557817:12808674}  compare six characteristics of eye movement fixation in three conditions such as normal control eyes, non-amblyopic fellow eyes and amblyopic eyes. They proposed meditation analysis for the representation of error magnitude and microsaccade amplitude and also fixation stability. Summarization using box plot and usage of Kruskal-Wallis test along with Post-hoc pairwise comparison is done. The effective method of eye movement determination is using  reclaim package along with the Shapiro{\textendash}Wilk test.  

\unskip~\citep{557817:12808675}  introduced a novel method iMap for computation of fixations. Fixation data is smoothed using a Gaussian kernel to generate 3D fixation maps. In order to assess the significance of fixation spots, robust statistical random field theory (RFT) approach is used.  They compared and analysed high- and low-checkers implement different strategies with false information.

\unskip~\citep{557817:12808676}  propose a velocity-based algorithm to detect fixations with specific thresholds and this algorithm is based on control chart procedures and robust minimum determinant covariance estimators (MDC).  Binocular-Individual Threshold (BIT) was applied on a dataset, which is huge with different frequencies and concerned with various situations such as reading, viewing the scene and also in supermarket perception. Frequency distributions based on fixations and saccade length was plotted. The algorithm is secure and isolated from the machine.

\unskip~\citep{557817:12808677}  proposed an adaptive algorithm for detecting fixation, saccade and glissade on eye data. They also proposed new velocity-based algorithm identifies glissades as a different class of eye movement. They addressed many limitations of current algorithms and also developed data-driven algorithms. The algorithm is adaptive to noise dependent velocity -based threshold and also was successful in detecting glissades. 

\unskip~\citep{557817:12808678}  used dispersion -threshold-based algorithm for the detecting fixations of gaze data from chess players. The optimum threshold value was found using various factors like a number of fixations, spatial dispersion and difference between scan paths. Fixations with radius 1 degree will provide replicable results with the usage of 90 percent gaze data. Different threshold values are taken, and later, one optimum threshold is considered. The threshold values less than .7 degree will result in different fixations than that of less than 1.3 degrees.

\unskip~\citep{557817:12808679} review neural activity related to fixational eye movements with participants having the visual disease and normal vision. They discussed various difficulties while fixation happens with respect to normal and impairment eye, specifically oculomotor diseases. They also proposed some of the factors which can be applied to the visualization of such fixations. The patients produced neither microsaccade nor any drifts as its amplitude was very negligible.

\unskip~\citep{557817:12808680} evaluated several measures based on eye movement location and scan paths while observing computer interfaces, also presented a framework for the analysis of eye data. They tested the gaze points with respect to spatial and temporal constraints. The poor interface resulted in more saccade with less directed search, more fixations and less interpretability. In the good interface, an instinct determination could be made to check whether the desired feature is available within the same context.

\unskip~\cite{557817:12808680}  proposed five algorithms which constitute a classification of various classes. Detecting fixations and saccades are an inevitable part of the study of eye movements, which reduces the difficulty in tracking eye movements. Features are measured for the algorithms. Through these analyses, the most precise and accurate fixation identification found using I-HMM and IDT with the presence of noise in the device. The I-MST also makes the identification robust but considering all algorithms; it is slower. The I-VT has the simplest of all the algorithms, and it starts by estimating point to point speeds for all points in the protocol.

\unskip~\citep{557817:12808681} explains descriptive studies in the field of eye-tracking, with the features regarding different types of devices, algorithms related to pupil recognition, image processing and filtering of data. The paper was a promising work for future researchers. The paper was a promising work for future researchers. coil method has very high accuracy and good resolution, and it is used for the measurement of torsion actions with minute variations in the design of the coil. It has explained methods like estimating movements with respect to the head and the second approach measures eye position comparative to the environments.

\unskip~\citep{557817:12808682} reviews different methods of tracking eye movements. The main purpose is to encourage human-computer communication based on the eye. Through the analysis, they found none of the existing methods is universally best for all applications. The sclera coil method has very high accuracy and good resolution, and it is used for the measurement of torsion actions with minute variations in the design of the coil. It has explained methods like estimating movements with respect to the head and the second approach measures eye position comparative to the environments.

\unskip~\citep{557817:12808683} describe the involvement of eye movement in the research of Human-Computer Interaction. The intent of the paper was to present a review on the latest technologies in the remote tracking of the eye. This contained the basic terminologies and descriptions, future enhancement in the field of eye-tracking.

\unskip~\citep{557817:12808684} Elucidated the eye-tracking heat maps were very popular and effective in summarization and communication of data. Still, heat maps are often used improper and for imprecise reasons. Moreover, all the reasons are not being represented for actual interpretation. The objective of this paper is a review on several types of heat maps as visualizations in different aspects of visual attention and provides information on when, how to explicate heat maps. Its formation of heat maps and how to transform heat maps by manipulating various display settings. proposed a quantitative measure based on the Voronoi diagram, which separates regions of points based on distance. The method was listed in three conditions resulting in various optical distributions of fixations. It mainly focuses on the spatial feature description of eye movement.

\unskip~\citep{557817:12808685}  discussed the application to quantification of similarity traces and the degree of coverage by fixation using fixation maps. The different traces were normalized with the clusters of fixations for comparison. This paper discussed the importance of visualization and communication of large eye movement data sets.


\bgroup
\fixFloatSize{images/5ee09e1a-c0c3-4077-bd24-053a155f4c2b-upicture1.png}
\begin{figure}[!htbp]
\centering \makeatletter\IfFileExists{images/5ee09e1a-c0c3-4077-bd24-053a155f4c2b-upicture1.png}{\includegraphics{images/5ee09e1a-c0c3-4077-bd24-053a155f4c2b-upicture1.png}}{}
\makeatother 
\caption{\boldmath {Fixations calculated using IDT algorithm}}
\label{f-b7088fbf9117}
\end{figure}
\egroup
\unskip~\citep{557817:12808686}  proposed eye-tracking methods with respect to various errors. Those errors are common and include more noise. It is time-consuming and requires manual effort for the correction. The validation of heuristic-based technique and lessening of the mistakes in association with fixations. It can be applied for the reading of objects placed in a sequential manner.
    
\section{\textbf{Proposed method}}
The method followed in our work is creating a GUI in R Studio by using a package called `shiny'. Shiny is an open source package for creating applications for an easier and efficient way of implementing the data. Therefore, making the analysis of the data into applications without the use of any other scripting languages.


\bgroup
\fixFloatSize{images/d2fb2592-e8a0-4ceb-8ddb-e5400b1a7af2-upicture2.png}
\begin{figure}[!htbp]
\centering \makeatletter\IfFileExists{images/d2fb2592-e8a0-4ceb-8ddb-e5400b1a7af2-upicture2.png}{\includegraphics{images/d2fb2592-e8a0-4ceb-8ddb-e5400b1a7af2-upicture2.png}}{}
\makeatother 
\caption{\boldmath {Raw eye tracking data}}
\label{f-1381c3821b4a}
\end{figure}
\egroup
The data is loaded into the application and then processed to detect fixations and saccades using dispersion algorithm and then visualized the same on the stimulus. The stimulus is various images on which the participant data is recorded.

\textbf{Algorithm}

Start

Step1: load data (start\_point, x, y)

Step2: initialize variables 

Step3: window start position start =1 

Step4: while we move the window by 1, if D {\textgreater} threshold 

Step5: window end position 

Step6: create a window 

Step7: dispersion 

D = (max(x) - min(x)) + (max(y) - min(y))

Step8: while: we expand the window by 1 using j 

Step9: select window (j - 1) as fixation 

Step10: handle the last window if data ends during a fixation 

Step11: fixations= data frame (result)

Step12: saccade=movement between the fixations

End
    
\section{Results and Discussion}
 The experiments were conducted on ten participants on 12 image stimulus, and the experiments were carried out using an SMI eye tracking device. The raw data depicted in Figure~\ref{f-1381c3821b4a} collected by the eye tracking device are processed to generate the fixation and saccades as depicted in Figures~\ref{f-b7088fbf9117}, \ref{f-41852b91d5e5} and~\ref{f-b47c9b638376}. The fixations points are then plotted with saccades on the stimulus depicted inFigure~\ref{f-41852b91d5e5}. 


\bgroup
\fixFloatSize{images/450fd982-469d-4255-a23a-ec7dd5f5e574-upicture3.png}
\begin{figure}[!htbp]
\centering \makeatletter\IfFileExists{images/450fd982-469d-4255-a23a-ec7dd5f5e574-upicture3.png}{\includegraphics{images/450fd982-469d-4255-a23a-ec7dd5f5e574-upicture3.png}}{}
\makeatother 
\caption{\boldmath {Fixations: where the person is looking at with numbers}}
\label{f-41852b91d5e5}
\end{figure}
\egroup

\bgroup
\fixFloatSize{images/b73ca5e2-b8be-4353-8ec9-b9fafe5869eb-upicture4.png}
\begin{figure}[!htbp]
\centering \makeatletter\IfFileExists{images/b73ca5e2-b8be-4353-8ec9-b9fafe5869eb-upicture4.png}{\includegraphics{images/b73ca5e2-b8be-4353-8ec9-b9fafe5869eb-upicture4.png}}{}
\makeatother 
\caption{\boldmath {Saccades: movement between the fixations}}
\label{f-b47c9b638376}
\end{figure}
\egroup
The results show the visualization provided by the R interface for fixation and saccades on the given image stimulus. This visualization can be further processed to understand the viewing behaviour of the participant. The raw data is processed, and fixations are detected using IDT algorithm.
    
\section{Conclusion}
 The proposed work provides an R based interface to visualize the fixation and saccades. Through this visualization, the viewing behaviour of the participant can be understood. Highly dispersed saccades and longer fixation duration and dispersed fixation can depict a problem faced by the participant while the participant is trying to view the stimulus. Thus, we conclude that our work focuses on the basic need of understanding the fixation and saccades during an eye-tracking experiment. 
\section*{Acknowledgement}We are grateful to the Department of Computer Science and Engineering, Amrita School of Engineering, Amrita Vishwa Vidyapeetham, Bengaluru campus for providing us with SMI eye-tracking devices and laboratory facilities for collecting eye gaze data. We have used SMI RedN professional eye tracker, with a maximum frequency of 60 Hz. Participants for our experiments are provided by the Department of Computer Science and Engineering, Amrita School of Engineering, Bengaluru.
    

\bibliographystyle{pharmascope_apa-custom}

\bibliography{\jobname}
\end{document}
