<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Gaze Analytics Pipeline for Unity 3D Integration</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Andrew T. Duchowski</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sabarish V. Babu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Je↵ Bertrand</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Krzysztof Krejtz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Introduction &amp; Background</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>National Information Processing Institute and University of Social Sciences and Humanities</institution>
          ,
          <addr-line>Warsaw</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>School of Computing, Clemson University</institution>
          ,
          <addr-line>Clemson, SC</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2014</year>
      </pub-date>
      <fpage>7</fpage>
      <lpage>11</lpage>
      <abstract>
        <p>A data processing pipeline is described for gaze analytics featuring velocity-based signal filtering leading to inferential statistics of fixation transitions. The approach is demonstrated on data collected from a virtual environment study conducted in Unity 3D testing the visibility of a wayfinding aid. Analysis of human spatial cognition when navigating within physical or virtual environments can be bolstered by collecting eye movements with the help of an eye tracker. In physical reality, a head-mounted tracker can be worn during navigation with recorded gaze data often mapped to the screen coordinates of a forward-facing camera. In virtual reality, gaze data can be recorded with a so-called remote, or table-mounted eye tracker placed in front of the display screen on which the virtual environment is presented. In both cases gaze data will eventually need to be processed in order to infer insights about human visual attention to elements in the environment. Application of inferential statistics to collected gaze data often relies on characterization of the raw data into fixations, usually derived from some form of filtering, e.g., dispersion-based or velocity-based. Unfortunately, most commercial software packages provide only a limited choice of fixation detection algorithms (i.e., filters), often hiding implementation details or filter parameters from the user. Some systems (e.g., Ogama) still rely on the dispersion-based “fixation pickers” [7] which have been shown to be less than reliable, particularly when evaluating data captured on di↵erent platforms, at di↵erent sampling rates [10]. Velocity-based filters, or “saccade pickers”, while perhaps more dicult to tune, o↵er a more reliable alternative. Beyond the lack of sucient control over filtering parameters, commercial packages often do not include flexible means for statistical analysis. This is hardly surprising, however, since eye tracking vendors can hardly be expected to anticipate all possible experimental designs for which their devices are used. In this paper we describe a gaze analytics pipeline through which raw gaze data is processed. The pipeline consists of the following steps: 1. denoising and filtering raw gaze data gi = (xi, yi, ti), and classifying raw gaze into fixations fi = (xi, yi, ti, di), where (xi, yi) coordinates indicate the position of the gaze</p>
      </abstract>
      <kwd-group>
        <kwd>virtual environments</kwd>
        <kwd>wayfinding</kwd>
        <kwd>gaze analytics</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>(a) No wayfinding aid
(b) Wayfinding aid at bottom-right
point or centroid of the fixation, with ti indicating the timestamp of the gaze point
or fixation and di the fixation’s duration,
2. collating fixation-related information for its subsequent statistical comparison,
3. interpreting and visualizing statistical tests conducted on processed data.
Visualization of the data at each stage of the pipeline is particularly helpful in
finetuning parameters, such as threshold levels for velocity-based filtering.</p>
      <p>
        We demonstrate the utility of the analytics pipeline on data collected from a
wayfinding study in a virtual environment (see Fig. 1) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Previously, analysis was conducted
only on smoothed gaze data, with comparison of gaze time on, gaze transitions to, and
proportion of gaze time over screen elements. Here, we revisit this data set and feed the
raw data through the analytics pipeline, terminating in entropy transition matrix analysis
of fixations captured on an Area Of Interest (AOI) grid overlaid atop the screen.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Fixation Filtering</title>
      <p>
        The eye tracker outputs a stream of gaze points (xi, yi, ti). Typically, this data is noisy
and requires smoothing (see Fig. 2). Treating xi or yi independently, smoothing or
differentiating (to order s) is achieved by convolving 2p+1 inputs with filter hti,s and 2q+1
(previous) outputs x˙i or y˙i with filter gti,s at midpoint i [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]:
and similarly for yi and y˙i, where n and s denote the polynomial fit to the data and its
derivative order, respectively [
        <xref ref-type="bibr" rid="ref10 ref5">5,10</xref>
        ]. Based on prior work and evaluation of calibration
data, we chose a 4th order Butterworth filter to smooth the raw gaze data with sampling
and cuto↵ frequencies of 60 and 6.15 Hz, respectively [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] (see Fig. 2(b)).
      </p>
      <p>
        Following Andersson et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and Nystro¨ m and Holmqvist [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], a second-order
Savitzky-Golay (SG) filter [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] is used to di↵erentiate the (smoothed) positional gaze
signal into its velocity estimate. The Savitzky-Golay filter fits a polynomial curve of
order n via least squares minimization prior to calculation of the curve’s sth derivative
(a) Raw gaze data
(b) Smoothed gaze data
(e.g., 1st derivative (s = 1) for velocity estimation). We use a 6-tap (96 ms) SG filter
with a threshold of ± 20 deg/s to produce fixations (see Fig. 3).
      </p>
      <p>Fine-tuning of the velocity threshold in degrees per second depends on viewing
distance and screen resolution (e.g., in dots per inch). In the exemplar fixations of Fig. 3,
an 1824⇥1026 display (80 00 diagonal) was viewed at 7000.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Statistical Comparison</title>
      <p>
        Quantitative analysis of filtered fixation data generally depends on application of
inferential statistics, e.g., comparison of means via analysis of variance (ANOVA). Typical
eye movement metrics include number of saccades, saccade length and duration,
saccadic amplitude, convex hull area, spatial density, number of fixations, fixation
durations, and a fixation/saccade ratio [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. We extend these analyses by considering entropy
transition matrix analysis of fixations [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>Assigning a character label to each of the 4 ⇥ 3 grid cells leads to a {a, b, c, d} ⌦
{a, b, c} labeling scheme (with cell aa at bottom-left in Fig. 3). Accumulating single
fixation transitions between cells and normalizing to the source leads to a first-order
Markov model of gaze transitions represented by transition matrices visualized in Fig. 4.
The matrix representing the viewing condition with the wayfinding aid (Fig. 4(b)) shows
a higher probability of transitions to the bottom-right cell where the aid was present
(compare columns da in the matrices). A critical question is whether these transitions,
on average, di↵ered significantly under the given experimental conditions.</p>
      <p>Considering the set of AOIs as S = {1, . . . , s}, transition matrices a↵ord computation
of Shannon’s entropy Ht = Pi2S ⇡ i P j pi j log pi j where pi j denotes the probability
of transitioning from the ith to the jth A2SOI, which in turn allows statistical
comparison of matrices. In this particular instance, a Welch two sample t-test shows lack of
significance of fixation transition entropies between the two wayfinding aid conditions
(t = 0.85, p = 0.41, n.s.). Lack of significance is likely due to the relatively low number
0.30
0.09
0.10
0.08
0.03
0.0
0.01
0.01
0.0
0.0
0.01
0.0</p>
      <p>Heatmap</p>
      <p>Heatmap
l)s684
iit(rxepeondao
-cy342
(a)</p>
      <p>Data
from
session
without wayfinding
aid
(b)</p>
      <p>Data
from
session
with
wayfinding
aid
3. Representative (individual) scanpaths
with no wayfinding aid (1543 fixations)
from filtering
corresponds
of smoothed data. The
to the raw and smooth
scanpath
capdata in Fig. 2.
of participants. Presence of the wayfinding aid resulted in a higher mean transition
entropy (M = 0.65, SD = 0.12) than when it was absent (M = 0.62, SD = 0.04), suggesting
that users tended to make (slightly) more transitions with the wayfinding aid present
than without it, e.g., without the aid, viewers tended to transition to the screen center
(grid cells bb and cb, c.f. Figs. 4(a)–4(b) and Fig. 4(c)). Power analysis suggests that
the e↵ect of the wayfinding aid on gaze transitions may reach significance ( p &lt; 0.05)
with about 400 participants (per between-subjects group).
4</p>
    </sec>
    <sec id="sec-4">
      <title>Discussion &amp; Conclusions</title>
      <p>A data pipeline was described for processing raw gaze data through filtering and
velocitybased fixation classification followed by collation of fixations into transitions for
entropybased statistical comparison.</p>
      <p>With gaze data recorded in individual XML files, the entire processing pipeline,
complete with data visualizations, is readily implemented in Python and R, the free
software environment for statistical computing.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Andersson</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , Nystro¨m,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Holmqvist</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.</surname>
          </string-name>
          :
          <article-title>Sampling frequency and eye-tracking measures: how speed a↵ects durations, latencies, and more</article-title>
          .
          <source>Journal of Eye Movement Research</source>
          <volume>3</volume>
          (
          <issue>3</issue>
          ),
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bertrand</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ebrahimi</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wachter</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Luo</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Babu</surname>
            ,
            <given-names>S.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duchowski</surname>
            ,
            <given-names>A.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Meehan</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gramopadhye</surname>
            ,
            <given-names>A.K.</given-names>
          </string-name>
          :
          <article-title>Visual Attention to Wayfinding Aids in Virtual Environments</article-title>
          .
          <source>In: Proceedings of the Joint Virtual Reality Conference (JVRC)</source>
          (
          <volume>11</volume>
          -
          <issue>13</issue>
          <year>December 2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Duchowski</surname>
            ,
            <given-names>A.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pelfrey</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>House</surname>
            ,
            <given-names>D.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Measuring Gaze Depth with an Eye Tracker During Stereoscopic Display</article-title>
          .
          <source>In: Applied Perception in Graphics &amp; Visualization (APGV)</source>
          . ACM, Toulouse, France (
          <year>August</year>
          27-28
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>J.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kotval</surname>
            ,
            <given-names>X.P.</given-names>
          </string-name>
          :
          <article-title>Computer Interface Evaluation Using Eye Movements: Methods and Constructs</article-title>
          .
          <source>International Journal of Industrial Ergonomics</source>
          <volume>24</volume>
          ,
          <fpage>631</fpage>
          -
          <lpage>645</lpage>
          (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Gorry</surname>
          </string-name>
          , P.A.:
          <article-title>General Least-Squares Smoothing and Di↵erentiation by the Convolution (Savitzky-Golay) Method</article-title>
          .
          <source>Analytical Chemistry</source>
          <volume>62</volume>
          (
          <issue>6</issue>
          ),
          <fpage>570</fpage>
          -
          <lpage>573</lpage>
          (
          <year>1990</year>
          ), http://pubs. acs.org/doi/abs/10.1021/ac00205a007
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Hollos</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hollos</surname>
            ,
            <given-names>J.R.</given-names>
          </string-name>
          : Recursive Digital Filters:
          <string-name>
            <given-names>A Concise</given-names>
            <surname>Guide. Exstrom Laboratories</surname>
          </string-name>
          , LLC.,
          <string-name>
            <surname>Longmont</surname>
          </string-name>
          , CO (
          <year>April 2014</year>
          ), iSBN:
          <volume>9781887187244</volume>
          (
          <issue>ebook</issue>
          ), URL: http://www. abrazol.com/books/filter1/
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Karn</surname>
          </string-name>
          , K.S.: “Saccade Pickers” vs. “
          <article-title>Fixation Pickers”: The E↵ect of Eye Tracker Choice on Research Findings (Panel Discussion)</article-title>
          .
          <source>In: ETRA '00: Proceedings of the 2004 Symposium on Eye Tracking Research &amp; Applications</source>
          . pp.
          <fpage>87</fpage>
          -
          <lpage>88</lpage>
          . ACM, New York, NY (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Krejtz</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Szmidt</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duchowski</surname>
            ,
            <given-names>A.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krejtz</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Entropy-based Statistical Analysis of Eye Movement Transitions</article-title>
          .
          <source>In: Proceedings of the 2014 Symposium on Eye-Tracking Research and Applications. ETRA '14</source>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          , New York, NY (
          <year>2014</year>
          ), http://doi.acm.
          <source>org/10</source>
          . 1145/2578153.2578168
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Nystro¨m,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Holmqvist</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.</surname>
          </string-name>
          :
          <article-title>An adaptive algorithm for fixation, saccade, and glissade detection in eyetracking data</article-title>
          .
          <source>Behaviour Research Methods</source>
          <volume>42</volume>
          (
          <issue>1</issue>
          ),
          <fpage>188</fpage>
          -
          <lpage>204</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Ouzts</surname>
            ,
            <given-names>A.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duchowski</surname>
            ,
            <given-names>A.T.</given-names>
          </string-name>
          :
          <article-title>Comparison of Eye Movement Metrics Recorded at Di↵erent Sampling Rates</article-title>
          .
          <source>In: Proceedings of the 2012 Symposium on Eye-Tracking Research and Applications. ETRA '12</source>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          , New York,
          <source>NY (March</source>
          <volume>28</volume>
          -30
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Savitzky</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Golay</surname>
            ,
            <given-names>M.J.E.</given-names>
          </string-name>
          :
          <article-title>Smoothing and di↵erentiation of data by simplified least squares procedures</article-title>
          .
          <source>Analytical Chemistry</source>
          <volume>36</volume>
          (
          <issue>8</issue>
          ),
          <fpage>1627</fpage>
          -
          <lpage>1639</lpage>
          (
          <year>1964</year>
          ), http://pubs.acs.org/doi/ abs/10.1021/ac60214a047
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>