<!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>A concept of bimodal visual emotion recognition in computer users</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jaromir Przybylo</string-name>
          <email>przybylo@agh.edu.pl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Eliasz Kantoch</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Piotr Augustyniak</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>AGH University of Science and Technology</institution>
          ,
          <addr-line>30 Mickiewicza Ave. 30-059 Krakow</addr-line>
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Touchless measurement of a ects in computer users is gaining much interests in current man-machine interactions. In this work we present the concept of bimodal visual emotion recognition in computer users. Our idea builds on two di erent paradigms: a pulse detection based on face image processing and an analysis of scanpath features using eyetracking. The concept is supported by mutual correspondence of the two di erent methods, while both originate from a video frame sequence possibly acquired with a single sensor. Besides the novel concept, we also put forward several suggestions for future work.</p>
      </abstract>
      <kwd-group>
        <kwd>Emotion recognition</kwd>
        <kwd>videopletysmography</kwd>
        <kwd>scanpath analysis</kwd>
        <kwd>eyetracking</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Computer users' emotions are currently considered as an e ective mean to
improve man-machine interactions, avoid misleading presentation of information,
controlling of virtual personalities (bots), real assisted living systems or games.
Recent development in biosignal sensing technologies allows to monitor human
vital signs during everyday tasks such as doing computer work or playing
computer games. The emotional state of the human is correlated with the heart rate
measured by various methods including electrocardiography or infra-red
plethysmography.</p>
      <p>Most of systems presented as far require a wearable device which may be
cumbersome or intrusive in some scenarios. The novelty of our approach
consists in a touchless emotion recognition based on two complementary paradigms
and visual systems. The touchless measurement of a ects in computer users is
gaining much interests in future man-machine interactions.</p>
      <p>In this work we present the concept of bimodal visual emotion recognition in
computer users. The remaining part of this paper is organized as follows. Section
2 describes the material and methods. Section 3 presents principal ndings and
discussion of the results and concludes the paper.</p>
    </sec>
    <sec id="sec-2">
      <title>Material and methods</title>
      <p>The proposed concept is based on image analysis and two di erent paradigms
of emotion recognition previously studied by our group: a pulse detection and a
scanpath features analysis.
2.1</p>
      <sec id="sec-2-1">
        <title>Hardware set-up</title>
        <p>
          The hardware set-up included: a computer, a web camera, the wireless ECG
recorder Aspekt 500, the wearable heart rate monitor (two-electrode chest sensor
H7 by Polar) and the eyetracking multisensor measurement system JAZZ-novo.
The experiment set-up allowed simultaneous acquisition of the
electrocardiogram and eye movements together with the operator's face video signal. The
computer was running a video acquisition software, a custom-developed ECG
acquisition software and MATLAB scripts for control of the experiment
protocol. The camera built-in microphone redundantly recorded the ambient audio
signal (16 kHz sampling frequency) in order to synchronize recordings to the
auditory stimulus. Volunteers were recruited in the study. They were asked to
wear the measurement devices while working on the computer or playing. The
hardware set-up diagram is shown in Fig. 1. and a sample volunteer during the
experiments is presented in the Fig. 2.
Face detection is a common procedure required by each of the two paradigms
prior to emotion detection. There are many sources of variation in facial
appearance. They can be categorized [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] into two groups - intrinsic factors related to
the physical nature of the face (identity, age, sex, facial expression) and extrinsic
factors resulting from the scene and lighting conditions (illumination, viewing
geometry, imaging process, occlusion, shadowing). All these factors make face
detection and recognition (especially distinguishing various facial actions) a
difcult task. Therefore, many approaches to face detection and recognition in
natural conditions appeared in recent years. A surveys of those methods are
presented in articles [18], [17]. One such well-known approach to face detection
that has the most impact is the work by Viola and Jones [16]. The proposed
face detector can run in real time and it is based on the integral image, classi er
learning with AdaBoost and the attentional cascade structure. Also, there are
many high quality publicly available code repositories with e cient
implementations of this algorithm, for example the OpenCV library [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Another fast and
reliable face detection method can be found in DLib library [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. It is based on
the Histograms of Oriented Gradients (HoG) algorithm proposed in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ],
combined with Max-Margin Object Detection (MMOD) [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] which produces high
quality detectors from relatively small amounts of training data. Wide
availability of databases and benchmarks for 'in-the-wild' object detection, stimulated
research on face detection and recognition using Deep Convolutional Neural
Networks DCNN [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. One of the advantages of the DCNN is that it can be used
either for feature extraction or/and classi cation tasks, thus eliminating the need
of nding good discriminative face features. Video-based heart rate estimation
requires the face to be detected continuously i.e. in each of the video frames. In
case when the face cannot be detected, the KLT tracking algorithm [14] can be
used to estimate face position in the consecutive frames (Fig. 3).
        </p>
        <p>In present work we combine Dlib face detector (which seems to be faster and
more robust than the Viola-Jones detector) with the KLT tracking algorithm to
e ciently track the face in the video sequence. In each frame we try to detect
and localize the face. If the face is not detected, the KLT tracker is used to track
facial features and to estimate its position between frames. Then a Region of
Interest (ROI) is computed based on the object detection and tracking results.
It is used to calculate the mean value of local color components inside the ROI.
These values are stored in a bu er of the length of N points for the heart rate
estimation.</p>
        <p>
          In case of computer users, some geometry-related assumptions facilitate the
face recognition [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. Provided the user is facing the screen, which frequently is
the most natural position, the camera mounted on the top of the screen captures
the face of the user. Moreover, the computer is usually operated by a single user,
thus the detection of multiple faces is not applicable.
2.3
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Visual detection of pulse</title>
        <p>
          Videoplethysmography initiated by the paper by Verkruysse [15] is currently
recognized as a promising noninvasive heart rate measurement method,
advantageous for ubiquitous monitoring of humans in their natural living conditions
[
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. Using this method in an unstable lighting conditions (e.g. in computer
users with faces illuminated by the screen) was studied in our previous paper
[
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. We examined various image acquisition aspects including the lighting
spectrum, frame rate and compression and their in uence on pulse detection accuracy
(Fig. 4). We implemented a pulse detection algorithm based on the power
spectral density, estimated using Welch's technique. The experimental results showed
that lighting conditions and selected video camera settings, such as compression
and the sampling frequency, in uence the heart rate detection accuracy, however
in a stable light from a uorescent source the heart rate measurement error was
as low as 0.35 beats per minute (bpm).
        </p>
        <p>In the particular case of computer users there are two methods for
compensation of the illumination changes:
{ the a priori analysis of the displayed content, and
{ the a posteriori analysis of the features of acquired image.</p>
        <p>
          The analysis of the displayed content provides usable information to the
compensation algorithm about the average color of the screen, possible scene changes or
ickering (Fig. 5). This method does not take into account external illumination
sources and thus has to be complemented by the a posteriori analysis of the
features of acquired image. The latter method, however, operates on captured
visual scene and may cause delays impairing the real-time detection of emotion.
In [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] authors describe a color-based face segmentation algorithm with automatic
calibration of skin-color model parameters, using a ash illumination from the
computer screen. The proposed algorithm allows to increase the e ciency of face
segmentation, and can be used to a priori analysis of the displayed content.
2.4
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Emotion-related scanpaths changes</title>
        <p>In [13] we proved the emotional in uence on the human scanpath. This method
assumes that the emotional state of the observer can distract his or her visual
attention and can be reliably expressed in parameters of eye movements. We
performed visual task experiments in order to record scanpaths from volunteers
under the auditory stress of controlled intensity. We used a calibrated set of
stimuli and recorded the response of volunteers' central nervous system expressed
by the heart rate. For each e ciently stimulated participant, we related the
scanpath parameters to the accuracy of solving a given task and to participant's
comment. As a principal result, we obtained a signi cant change of:
{ the saccade frequency in 90 % and
{ the maximum velocity in xation phase in 80 %
of participants under stress. These results prove the in uence of emotions on
visual acuity, feasibility of eyetracking-based assessment of emotional state and
motivate further investigations. In our studies, as other sources suggest, we
employed a thorough eyetracker calibration procedure. In case of computer users,
the calibration can be simpli ed to a procedure that consists of following a point,
video or other graphical element that moves across the screen. Moreover, there
are commercially available low-cost eyetrackers designed for PC gaming and
laptop users.</p>
        <p>Otherwise, in case of computer users, the calibration can eventually be
omitted. In several everyday usage scenarios computer users interact with the
content immediately as it is displayed, thus focus their gaze accordingly to newly
displayed items. This concept is worth further studies on whether temporal
synchronicity of the displayed content (e.g. a text prompt) provides accurate data
to substitute geometrical calibration of the gaze focus and the displayed cue.
Additionally, the method assumes the geometrical position of the eyetracking
camera to be constant with respect to the displaying screen. It is then worth
studying whether the face detection, performed independently on gaze tracking,
yields su cient data for rough positioning of the eyes. Finally, possible errors in
gaze tracking may not be signi cantly in uencing the accuracy of calculation of
saccade frequency or maximum velocity in xation phase.
2.5</p>
      </sec>
      <sec id="sec-2-4">
        <title>Combining data from two visual measurement modes</title>
        <p>At rst glance the simultaneous usage of two independent information sources
improves the correctness of emotion recognition, however optimal use of bimodal
data needs more investigation. Current results show high degree of correlation
of the heart and eyetracking parameters. However, the investigations were made
in stationary conditions where the stimulus was absent or present, while a static
stimulus rarely occurs in real life scenarios. Little is known about the dynamic
responses of cardiovascular and perceptual systems to the sudden presence of the
stimulus. Another studies should consider the possible habituation to stimuli of
long duration.</p>
        <p>On the other hand, auditory stimuli applied in our experiments are
standardized in two dimensions: intensity and valence. Further experiments should
clarify whether both responses are equally related to the stimulus parameters or
there is another nonlinear model that optimally maps the 2D stimulus space to
the 2D cardio-perceptual response.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Discussion and conclusions</title>
      <p>In our work we showed the high degree of the correlation of the heart and
eyetracking parameters. However, the study had some limitations including
laboratory conditions. The presented bimodal approach can be used to increase the
accuracy of existing methods of emotion recognition based on the analysis of
facial expressions. It may help to provide more data about subject's vital signs
and as a result - to facilitate the emotion recognition without the need of
sophisticated wearable sensor systems. The advantage of our approach is twofold:
{ it allows for a touchless measurement, with application of suitable optics
even a distant measurement is possible, and
{ provided the face recognition is accurate, it enables a calibration-free
operation, and therefore could be used con dentially (i.e. in an unconscious
computer operator).</p>
      <p>Although two di erent paradigms were proposed for a concurrent and
complementary use, it doesn't necessarily require two di erent sensors. Our future
work will pave the way for using a single high resolution camera (preferentially
mounted above of the laptop screen) to provide image for both eye motion and
pulse wave detection. Several other issues we should address in our research plans
include:
{ Facial action recognition could also provide additional insight into user's
emotional state. However, measuring involuntary emotions from video
sequences is still a challenge.
{ Face detection and tracking can be extended to eye-gaze estimation.
However, further study is required to verify if gaze tracking accuracy impacts the
calculation of saccade frequency or maximum velocity in xation phase.
{ The concept of using temporal synchronicity of the displayed content (e.g. a
text prompt) to calibrate eye-tracking requires further studies.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgment</title>
      <p>This scienti c work is supported by the AGH University of Science and
Technology in year 2018 as a research project No. 11.11.120.612.
13. Przybylo, J., Kantoch, E., Augustyniak, P. Eyetracking-based assessment of a
ectrelated decay of human performance in visual tasks. Future Generation Computer
Systems, 2018, https://doi.org/10.1016/j.future.2018.02.012
14. Tomasi, C., Kanade, T. Detection and tracking of point features. International</p>
      <p>Journal of Computer Vision 1991.
15. Verkruysse, W., Svaasand, L.O., Nelson, J.S. Remote plethysmographic imaging
using ambient light. Optics express, 16(26), 2008, 21434-21445
16. Viola, P., Jones, M. Rapid object detection using a boosted cascade of simple
features. Proceedings of the 2001 IEEE Computer Society Conference on Computer
Vision and Pattern Recognition. CVPR 2001, vol. 1, pp. I-511-I-518
17. Zafeiriou, S., Zhang, C., Zhang, Z. A survey on face detection in the wild: past,
present and future. Computer Vision and Image Understanding, 138, 2015, 1-24.
18. Zhang, C., Zhang, Z. A survey of recent advances in face detection. 2010</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Dalal</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Triggs</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <article-title>Histograms of oriented gradients for human detection</article-title>
          .
          <source>In CVPR</source>
          <year>2005</year>
          , IEEE Computer Society Conference on
          <source>Computer Vision and Pattern Recognition</source>
          , Vol.
          <volume>1</volume>
          ,
          <issue>2005</issue>
          , pp.
          <fpage>886</fpage>
          -
          <lpage>893</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>2. http://dlib.net/</mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Gong</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McKenna</surname>
            ,
            <given-names>S.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Psarrou</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Dynamic Vision, From Images to Face Recognition</article-title>
          . Imperial College Press,
          <year>London 2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Jablonski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Przybylo</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Woloszyn</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <article-title>Automatic face segmentation for humancomputer interface (in Polish) Automatyka, 9</article-title>
          ,
          <year>2005</year>
          ,
          <fpage>587</fpage>
          -
          <lpage>600</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Jiang</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Learned-Miller</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <article-title>Face detection with the faster R-CNN</article-title>
          .
          <source>In 12th IEEE International Conference on Automatic Face &amp; Gesture Recognition (FG</source>
          <year>2017</year>
          ),
          <year>2017</year>
          ,
          <fpage>650</fpage>
          -
          <lpage>657</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>King</surname>
            ,
            <given-names>D.E.</given-names>
          </string-name>
          <article-title>Max-margin object detection</article-title>
          .
          <source>arXiv preprint</source>
          ,
          <year>2015</year>
          , arXiv:
          <fpage>1502</fpage>
          .
          <fpage>00046</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhao</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pietikainen</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <article-title>Remote heart rate measurement from face videos under realistic situations</article-title>
          .
          <source>Proc. of the IEEE Conference on Computer Vision and Pattern Recognition</source>
          ,
          <year>2014</year>
          ,
          <fpage>4264</fpage>
          -
          <lpage>4271</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>8. https://opencv.org/</mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Parkhi</surname>
            ,
            <given-names>O. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vedaldi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>Deep Face Recognition</article-title>
          . In BMVC Vol.
          <volume>1</volume>
          , No.
          <volume>3</volume>
          ,
          <issue>2015</issue>
          , p.
          <fpage>6</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Poh</surname>
            ,
            <given-names>M.Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McDu</surname>
            ,
            <given-names>D.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Picard</surname>
            ,
            <given-names>R.W.</given-names>
          </string-name>
          <article-title>Non-contact, automated cardiac pulse measurements using video imaging and blind source separation</article-title>
          .
          <source>Optics express</source>
          ,
          <volume>18</volume>
          (
          <issue>10</issue>
          ),
          <fpage>10762</fpage>
          -
          <lpage>10774</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Przybylo</surname>
          </string-name>
          J.:
          <article-title>Vision Based Facial Action Recognition System for People with Disabilities</article-title>
          .
          <source>Proc. 8-th international conference on Human System Interactions (HSI2015)</source>
          ,
          <year>2015</year>
          ,
          <fpage>244</fpage>
          -
          <lpage>248</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Przybylo</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kantoch</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jablonski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Augustyniak</surname>
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Distant</surname>
          </string-name>
          <article-title>Measurement of Plethysmographic Signal in Various Lighting Conditions Using Con gurable FrameRate Camera</article-title>
          . Metrol. Meas. Syst., Vol.
          <volume>23</volume>
          ,
          <year>2016</year>
          , No.
          <issue>4</issue>
          , pp.
          <fpage>579</fpage>
          -
          <lpage>592</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>