<!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>
      <journal-title-group>
        <journal-title>M. García-Romero); amrojas@us.es (A. Martínez-Rojas); jgenriquez@us.es (J. G. Enríquez);
ajramirez@us.es (A. Jiménez-Ramírez)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>A Tool for Incorporating Eye Tracking Data in RPA: Enhancing User Behavior Logs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>M. García-Romero</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonio Martínez-Rojas</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>J. G. Enríquez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A. Jiménez-Ramírez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Seville. Department of Computer Languages and Systems. E.T.S. Ingeniería Informática. Avd. Reina Mercedes</institution>
          ,
          <addr-line>s/n, 41012, Seville</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>This paper presents UBGI, an innovative tool designed to enhance Robotic Process Automation (RPA) by integrating eye tracking data with user interface (UI) logs. UBGI processes and combines gaze logs with UI logs to create enriched User Behaviour (UB) logs, enabling more precise identification of user focus areas. By applying filtering masks to screenshots, UBGI highlights relevant data, facilitating analysis of user interactions. This tool enables further analysis of user behaviour through an external source, specifically eye tracking data.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Robotic Process Automation</kwd>
        <kwd>Robotic Process Mining</kwd>
        <kwd>User Behaviour Mining</kwd>
        <kwd>User Behaviour Log</kwd>
        <kwd>Eye Tracking</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In the current era of Hyperautomation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], companies are driven to quickly identify and
automate every possible business process. This trend coincides with the growing popularity
of RPA. Unlike traditional automation methods, such as those based on APIs, RPA is based on
graphical user interfaces to automate and integrate systems [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        As the first condition for automating a process, it is necessary to understand how it is
performed and even discover what process needs to be automated. To address this, the so-called
mining techniques emerged. Mining techniques like Robotic Process Mining (RPM) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and
User Behaviour Mining (UBM) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] are essential to identify process models that represent human
behaviour, facilitating automation of processes.
      </p>
      <p>
        These techniques rely on the UI log [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], which records user actions as clicks or keystrokes
within a graphical user interface. In addition, the information on the screen can be incorporated
as features to provide context for user actions. This can be useful for analysing the routines or
decisions recorded in the UI log [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        Nevertheless, a challenge arises because of the extensive amount of data contained in the
screenshots. These screenshots capture relevant and irrelevant information, encompassing all UI
elements displayed on the screen [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Consequently, extracting meaningful insights from UI logs
becomes challenging, especially when dealing with complex and information-dense graphical
user interfaces. This mixture of data requires careful filtering to ensure optimal performance.
To address this problem, eye tracking technology can be applied to capture the points of the
screen where the user focuses his gaze while interacting with the user interface [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Additional
gaze information such as the Point of Gaze (POG), gaze fixations and dispersion [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] are obtained
by eye tracking software based on webcams or infrared eye tracking tools. This additional
gaze information is essential to define attention areas and enables us to distinguish between
relevant and irrelevant data in the screenshots [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], as shown in Figure 1. These partially-masked
screenshots can help by revealing the UI elements users need to interact with, connecting clicks
or keystrokes to specific on-screen content.
      </p>
      <p>
        This article introduces User Behaviour and Gaze Integrator (UBGI)1, a tool capable of
performing the following functions:
• Proccess and combine the eye tracking data extracted from the eye tracking software as a
gaze log with the UI log defined in. The gaze log is any CSV file that includes gaze events
as defined in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The UI log supports formats such as XES/CSV/MHT that include user
actions, as reflected in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. As a result of this combination, the User Behaviour (UB) log is
obtained [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] .
• Generate screenshots from those obtained in the UI log with an overlay mask. This mask
covers all regions of the screenshot where fixations have not been detected, leaving visible
only the regions where fixations have been already detected. These visible regions in the
screenshots represent the attention areas [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        The UB log and the generated screenshots can be used as seen in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] to filter information
extracted from the screen to improve performance, which is useful for RPM approaches such as
routine discovery proposals [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] or decision models [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>The remainder of this work is structured as follows. Section 2 describes the main features
of the tool. In Section 3, the maturity of the tool is discussed. Section 4 provides links to the
demonstration of the tool in the form of a video. Finally, the conclusions of this work are
presented in Section 5</p>
      <sec id="sec-1-1">
        <title>1Source Code: https://github.com/RPA-US/ubgi</title>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. UBGI Tool Features</title>
      <p>The proposed tool has been developed as a web application using Django REST framework for
Python. JavaScript is used for client-side rendering, and PostgreSQL is used as the database.</p>
      <p>
        The innovative features of the tool reside in two phases: the UB Log Gaze Enricher phase and
the Filtering Mask phase. Before these two phases, the user must record the execution of the
process, i.e., the case study. The case study consists of one or more UI logs and gaze logs for
one or more scenarios. To obtain the UI log for each scenario with the screenshots associated
with each action, loggers are used to monitor the user’s activity and save it. To obtain the gaze
log, it is necessary to have an eye tracking tool, such as webcam-based eye tracking software
that can capture the POGs on the screen during the case study recording. WebgaWzer.js is an
open source webcam-based eye tracking web application 2 [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. It is already included in the
UBGI tool.
      </p>
      <p>
        Once the case study is available and loaded into the UBGI tool, it is executed through the
following phases:
• UB Log Gaze Enricher phase: In this phase, we integrate the UI log with the gaze log to
form the UB log. The eye tracking software data is analyzed to identify gaze events such
as fixations, saccades, and dispersion values [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The integration of information from two
diferent logs into a single log is made possible by timestamps (in UTC format), which
allow us to match user actions, such as clicks and keystrokes, with the corresponding
gaze events occurring within the time interval of a specific action and the next one. In
this way, we obtain the UB Log enriched with gaze data.
• Filtering Mask phase: From the screenshots extracted from the UI log, a copy of each
is generated. For each of these new screenshot copies, a gaze-based mask is created.
This gaze-based mask consists of a black filter mask that covers the entire screenshot,
except for the regions identified as attention areas [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The attention areas, which are the
regions that are not overlapped by the filtering mask, are circles drawn from the centroid
of each fixation with a radius determined by the value of the dispersion. The user can
increase or decrease this parameter within the UBGI tool [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. In this way, it is possible to
observe which regions of the screen have been viewed by the user and which have not,
to determine the relevant and irrelevant information between the user actions. Figure 1
shows an example of a screenshot copy generated in this phase.
      </p>
      <p>The UB log generated in the UB Log Gaze Enricher phase and the screenshots that include
the filtering mask can be downloaded as a.zip file once the case study is executed.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Tool Maturity</title>
      <p>The UBGI tool is currently in a stable version that meets its purposes. Nevertheless, there are
several lines of research and future work that can contribute to a higher level of maturity.</p>
      <p>First, the UBGI tool demonstrates flexibility in adjusting diferent parameters and formats of
UI logs. However, it does not have the same level of adaptability for gaze logs. In future work,</p>
      <sec id="sec-3-1">
        <title>2Webgazer.js source code: https://github.com/brownhci/WebGazer.</title>
        <p>it is necessary to deepen the understanding of the various available eye tracking software and
apply a similar treatment to that used for UI logs. This will allow UBGI to process any gaze log
from any eye tracking software.</p>
        <p>Second, determining the attention areas and gaze masks in the Filtering mask phase only
considers fixation and dispersion gaze events. Other parameters can be configured to determine
an optimal drawing of the attention areas and, conversely, the filtering mask (e.g., thresholds,
saccade eye movements, etc.).</p>
        <p>Third, the artefacts generated in the phases of the UBGI tool contain important information
only if they are going to be processed. Therefore, it is important to integrate the artefacts
generated in the UBGI phases into new phases or modules that can be created within the tool for
the discovery of automatable processes. Even include the UBGI tool in other tools that perform
the function of extracting features from the UI for process discovery.</p>
        <p>UBGI has been subjected to pilot tests in simulated environments that replicate real-use
conditions. These tests have provided valuable data to identify possible improvements and
confirm the efectiveness of UBGI in data integration and analysis. However, implementation
in real productive environments will be crucial to evaluate its performance in intensive use
situations and its capacity to handle massive amounts of data.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Tool Demonstration</title>
      <p>In this section, we present a demonstration of the artefacts generated by the UBGI tool. To do
this, we will record and execute a complete case study3. The case study simulates a process
within the HR department of a company. Specifically, the case study involves an administrative
worker who must attach the COVID 19 certificates of company employees to the database from
a folder. If an employee is not found in the database, the administrator must report the missing
employee with his COVID 19 certificate.</p>
      <p>For recording the UI log, we use Steprecorders, a native application of the Windows operating
system. To record the gaze log, we use the Webgazer.js eye tracking software.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>The User Behaviour Gaze Integrator (UBGI) tool contributes to the BPM community with
the ability to integrate and analyse eye tracking data and user interface logs, enabling the
consideration of broader contextual information when studying user behaviour. Therefore, this
opens up new lines of work in fields such as RPA, UBM, and RPM.</p>
      <p>The proposed tool processes user activities by first integrating UI logs with gaze logs to
form an enriched UB log. This is achieved through the UB Log Gaze Enricher phase, which
matches user actions with corresponding gaze events using timestamps. In the subsequent
Filtering Mask phase, the tool generates modified screenshots highlighting attention areas by
overlapping a gaze-based mask, revealing relevant and irrelevant information found in the
screenshots, whether the user is performing an action or not. These capabilities allow for a</p>
      <sec id="sec-5-1">
        <title>3Video: https://youtu.be/hW4-oQRNBC8</title>
        <p>more detailed analysis of user interactions, providing valuable insights to further analysis for
process automation strategies.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This research was supported by the EQUAVEL project PID2022-137646OB-C31, funded
by MICIU/AEI/10.13039/501100011033 and by FEDER, UE; the DISCOVERY project
(2021/C005/00148631), funded by Unión Europea NextGeneration EU and “Plan de Recuperación,
Transformación y Resiliencia” of the Ministry of Economic and Digital Transformation; and the
grant FPU20/05984 funded by MICIU/AEI/10.13039/501100011033 and by FSE+.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Jiménez-Ramírez</surname>
          </string-name>
          ,
          <article-title>Humans, processes and robots: a journey to hyperautomation</article-title>
          , in: International Conference on Business Process Management, Springer,
          <year>2021</year>
          , pp.
          <fpage>3</fpage>
          -
          <lpage>6</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>W. M. Van der Aalst</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Bichler</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Heinzl</surname>
          </string-name>
          , Robotic process automation,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J.-R.</given-names>
            <surname>Rehse</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Abb</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Berg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bormann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Kampik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Warmuth</surname>
          </string-name>
          ,
          <article-title>User behavior mining: A research agenda</article-title>
          ,
          <source>Business &amp; Information Systems Engineering</source>
          (
          <year>2024</year>
          )
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Agostinelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lupia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Marrella</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mecella</surname>
          </string-name>
          ,
          <article-title>Reactive synthesis of software robots in rpa from user interface logs</article-title>
          ,
          <source>Computers in Industry</source>
          <volume>142</volume>
          (
          <year>2022</year>
          )
          <fpage>103721</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Martínez-Rojas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Jiménez-Ramírez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. G.</given-names>
            <surname>Enríquez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. A.</given-names>
            <surname>Reijers</surname>
          </string-name>
          ,
          <article-title>A screenshotbased task mining framework for disclosing the drivers behind variable human actions</article-title>
          ,
          <source>Information Systems</source>
          <volume>121</volume>
          (
          <year>2024</year>
          )
          <fpage>102340</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Martínez-Rojas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. A.</given-names>
            <surname>Reijers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Jiménez-Ramírez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. G.</given-names>
            <surname>Enríquez</surname>
          </string-name>
          ,
          <article-title>What are you gazing at? an approach to use eye-tracking for robotic process automation</article-title>
          ,
          <source>in: International Conference on Business Process Management</source>
          , Springer,
          <year>2023</year>
          , pp.
          <fpage>120</fpage>
          -
          <lpage>134</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Martínez-Rojas.</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Jiménez-Ramírez.</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. G.</given-names>
            <surname>Enríquez.</surname>
          </string-name>
          ,
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>Lizcano-Casas., Incorporating the user attention in user interface logs</article-title>
          ,
          <source>in: Proceedings of the 18th International Conference on Web Information Systems and Technologies - WEBIST„ INSTICC, SciTePress</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>415</fpage>
          -
          <lpage>421</lpage>
          . doi:
          <volume>10</volume>
          .5220/0011568000003318.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>D. D.</given-names>
            <surname>Salvucci</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Goldberg</surname>
          </string-name>
          ,
          <article-title>Identifying fixations and saccades in eye-tracking protocols</article-title>
          ,
          <source>in: Proceedings of the 2000 symposium on Eye tracking research &amp; applications,</source>
          <year>2000</year>
          , pp.
          <fpage>71</fpage>
          -
          <lpage>78</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Martínez Rojas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. Jiménez</given-names>
            <surname>Ramírez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. Gonzalez</given-names>
            <surname>Enriquez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. A.</given-names>
            <surname>Reijers</surname>
          </string-name>
          ,
          <article-title>A toolsupported method to generate user interface logs</article-title>
          ,
          <source>in: 56th Hawaii International Conference on System Sciences</source>
          (
          <year>2023</year>
          ), pp.
          <fpage>5472</fpage>
          -
          <lpage>5481</lpage>
          ., HICSS: Hawaii International Conference of System Sciences,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A.</given-names>
            <surname>Papoutsaki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sangkloy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Laskey</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Daskalova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hays</surname>
          </string-name>
          ,
          <article-title>Webgazer: scalable webcam eye tracking using user interactions</article-title>
          ,
          <source>in: Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence, IJCAI'16</source>
          , AAAI Press,
          <year>2016</year>
          , p.
          <fpage>3839</fpage>
          -
          <lpage>3845</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>