<!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>An a ective personal trainer for elderly people</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>J. A. Rincon</string-name>
          <email>fjrincon@dsic.upv.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A. Costa</string-name>
          <email>facosta@di.uminho.pt</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>P. Novais</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V. Julian</string-name>
          <email>vjulian@upv.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>C. Carrascosa</string-name>
          <email>carrasco@dsic.upv.esg</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>ALGORITMI Centre, Universidade do Minho</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Universitat Politecnica de Valencia. Institut Valencia d'Investigacio en Intel ligencia Arti cial</institution>
          ,
          <addr-line>VRAIN</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <abstract>
        <p>The main goal of this paper is to try to increase the comfort and well-being of older people through the employment of some kind of automated processes that simplify daily work. So, this paper presents a prototype of an a ective personal robotic trainer which, together with a non-invasive sensor, allows caregivers to monitor certain physical activities in order to improve their performance. In addition, the proposed system also takes into account how the person feels during the performance of the physical exercises and thus, determine more precisely if the exercise is appropriate or not for a speci c person.</p>
      </abstract>
      <kwd-group>
        <kwd>Assistant Robot</kwd>
        <kwd>Emotion detection</kwd>
        <kwd>Elderly</kwd>
        <kwd>Edge AI</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The continuous increase of the amount of elderly people [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] (due to better medical services and
increased quality of life) means that there is an upsurge in sedentary habits [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Although there are
some services that caregivers can provide remotely (like video calls and smart devices), allowing them
to be in contact with their care-receivers [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], this attention is short-focused (only when the call is
being made). Cognitive assistants provide an advantage of daily monitoring of health in a convenient
and fast way, easing the strain of caregivers and care-receivers [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. This leads to an increase of health
and well-being of the elderly, keeping them active in their own home. The goal is to provide constant
monitoring of the elderly, and by using arti cial intelligence techniques, detect underlying health
problems and poor lifestyle habits.
      </p>
      <p>With the usage of wearable sensors the detection of emotions is possible attending to bio-markers
such as pulse, blood pressure and muscular response. The acquisition of the emotional states of the
care-receiver can be used to infuse the cognitive assistant of emotional responses to interact smoothly
with the care-receivers. The objective of this feature is to create a nity and a ection of the
carereceivers with the cognitive assistant, improving the acceptation values of them towards digital
devices.</p>
      <p>
        Cognitive assistants can be composed of just software (interfaced through common devices like
a smartphone) or in partnership with speci c hardware, like assistant robots. Some examples are
presented in depth by Martinez-Martin et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Another example is the Vizzi robot [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] that has
a friendly appearance and proposes Exergames. Detecting emotional states there is SocialRobot [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]
with the ability to recognise human emotions, faces, and produce an empathetic interaction with
the care-receivers. Using robots to detect human actions is the Geo rey robot [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] that uses cameras
      </p>
      <p>
        to visually identify the care-receivers' physical movements and classi es them using deep learning
methods. Using wearable devices (like wristbands) with accelerometers and gyroscopes are the works
of [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] that use state of the art approaches, like Deep Learning methods, to achieve over 90%
accuracy in detecting physical activities.
      </p>
      <p>We present the EmIR 3.0, an advancement over the previous versions, where the newest feature
is to be a trainer capable of recommending, detecting and classifying human-performed activities.
Apart from this, the robot is now able to freely navigate and its body is fully changed and is taller,
being able to interact better with the care-receivers.</p>
      <p>The rest of the paper is structured as follows: section 2 presents a related work section; section 3
explains the proposed approach; nally, section 4 gives some conclusions and possible future works.
2</p>
    </sec>
    <sec id="sec-2">
      <title>EmIR 3.0 description</title>
      <p>
        EmIR 3.0 is a low cost robot (see Figure 1) which has been designed divided into two layers. There
is a low-level, reactive layer using an Arduino Mega 2560, which allows motor control and access to
ultrasonic sensors for obstacle detection, allowing the robot to have a reactive behaviour. The
highlevel layer is controlled using a raspberry pi 3 b+. allowing to have a higher behaviour controlling a
7-inch LCD screen, on which it is possible to visualise the face of the robot along with the di erent
physical activities that the robot can recommend. EmIR 3.0 has been built in a modular way,
facilitating the incorporation of new elements such as lidars, environmental sensors, etc. . . It also
has a camera that allows you to identify people and their emotions [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>EmIR 3.0 capabilities can be split into two parts: recommending and classifying. The exercise
recommendation follows the care-receivers pro le, thus their medical condition. The classi cation is
composed by the limbs and body position detection and, using deep learning methods, classi cation
and model veri cation. This leads to a comprehensive report of the exercise performance and the
care-receiver health condition.
2.1</p>
      <p>Activities Recommendation
The activities have been selected by physiotherapists, who have helped to determine which exercises
focus on the upper-body. This resulted in the following exercises:
1. Wall Push Up: (strength) The performer should stand at arm's length in front of a wall.</p>
      <p>Lean forward a little and place the hand palms on the wall at shoulder width, moving the body
towards the wall and back, while keeping the feet still.
2. Sit to stand: (strength) Using a chair, the performer should sit on the edge of it, feet apart at
the hip level. Lean forward slightly and stand up slowly, maintaining the head leveled.
3. Mini squats: (strength) The performer has to rest its hands on the back of the chair for stability
and stand with the feet spread across the hips. Then bend the knees while being comfortable.</p>
      <p>Keep the back straight at all times. Gently stand up, squeezing the buttocks as you do so.
4. Back Leg Raises: (balance) The performer has to slowly lift the right leg backwards, without
bending the knees, while the chest moves slightly toward the front. Hold that position for one
second and then gently lower the leg.
5. Clock Reach: (balance) The performer has to imagine that it is on top of a clock, facing 12
o'clock. Holding on a chair at its side, the performer must lift the leg opposing the hand holding
the hand, and with the free arm, lift pointing at 12 o'clock and move to 3 (or 9) o'clock and
back.
We have used AVNET to detect if the activities are properly done. As some of the activities to be
performed involve chest movement, the sensor was placed in a harness which is used by the patient
as can be seen in Figure 2.</p>
      <p>Activities Classi cation Once de ned the exercises to classify, the following step is to create
our dataset. This was necessary because there is no public dataset, which measures these kind
of exercises. Ten persons were used to which a total of six repetitions per exercise were captured
during 10 sessions, creating a database of 25.000 data. These data were then partitioned into three
sub-datasets, one for training with 80% of the data, 10% for teas and, nally, 10% for validation.</p>
      <p>
        Once the dataset was created, it was normalised between [
        <xref ref-type="bibr" rid="ref1">-1,1</xref>
        ] so that the dataset is on a common
scale. This allows us to avoid distortions, since the characteristics of each measure have di erent
ranges. Once the data was normalised, the next thing to do was to train our network. To do this, the
data from our dataset were restructured. Converting them into matrices of 10 columns by 50 rows,
where the 10 columns represent the data acquired by the sensor fAcceleration (X,Y,Z) Rotation
(X,Y,Z) and Linear Speed (W, X, Y,Z)g, while the 50 rows represent the captured samples. This
last value can be modi ed, changing the number of samples to train. In the various experiments that
were performed, using 50 rows was the con guration that delivered the best result. This result of
our classi cation of activities can be seen in the confusion matrix (Figure 3). The matrix columns
represent the number of predictions for each class, while each row represents the instances in the
real class.
      </p>
      <p>It can be observed that we have a success rate per exercise between 50 to 60%. this is due to small
movements generated by patients, movements such as moving to the sides during the performance
of exercises. As well as small spasms or involuntary movements. To try to solve this problem, we are
getting more samples and we will try to lter or eliminate those involuntary or voluntary movements
of patients.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusions and future work</title>
      <p>Cognitive assistants and assistive robots are now ready to be used in a home environment. This
is the care of EmIR 3.0. It is responsible of monitoring the performance of physical exercises and
interact with the care-receivers and recognizing emotions and perform activities recommendation
based on the monitoring of the exercises.</p>
      <p>As future works, we aim to test EmIR with patients and workers of a daycare centre. The
validation will be performed through the recommended exercises under the supervision of caregivers.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgements</title>
      <p>This work was partly supported by the Spanish Government (RTI2018-095390-B-C31) and FCT|Fundac~ao
para a Ci^encia e Tecnolog a through the Post-Doc scholarship SFRH/BPD/102696/2014 (A. Costa)
and UID/CEC/00319/2019.</p>
      <p>Fig. 3: Confusion matrix obtained from classi cation.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>United</given-names>
            <surname>Nations</surname>
          </string-name>
          ,
          <article-title>Department of Economic and Social A airs, Population Division</article-title>
          . World population ageing
          <year>2015</year>
          .
          <article-title>(ST/ESA/SER</article-title>
          .A/390),
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Margie</surname>
            <given-names>E Lachman</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lewis</surname>
            <given-names>Lipsitz</given-names>
          </string-name>
          , James Lubben, Carmen Castaneda-Sceppa, and
          <string-name>
            <surname>Alan M Jette.</surname>
          </string-name>
          <article-title>When adults don't exercise: Behavioral strategies to increase physical activity in sedentary middle-aged and older adults</article-title>
          . Innovation in aging,
          <volume>2</volume>
          (
          <issue>1</issue>
          ):igy007,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Demetrio</given-names>
            <surname>Naccari</surname>
          </string-name>
          <string-name>
            <surname>Carlizzi</surname>
          </string-name>
          , Giuseppe Quattrone, Chiara Sancin, and
          <string-name>
            <given-names>Maurizio</given-names>
            <surname>Turchi</surname>
          </string-name>
          .
          <article-title>Telemedicine and impact of changing paradigm in healthcare. New Metropolitan Perspectives: Local Knowledge and Innovation Dynamics Towards Territory Attractiveness Through the Implementation</article-title>
          of Horizon/E2020/Agenda2030{,
          <volume>1</volume>
          :
          <fpage>39</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Angelo</given-names>
            <surname>Costa</surname>
          </string-name>
          , Vicente Julian, and Paulo Novais, editors.
          <source>Personal Assistants: Emerging Computational Technologies</source>
          . Springer International Publishing,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Ester</given-names>
            <surname>Martinez-Martin and Angel P. del Pobil</surname>
          </string-name>
          .
          <article-title>Personal Robot Assistants for Elderly Care: An Overview</article-title>
          , pages
          <volume>77</volume>
          {
          <fpage>91</fpage>
          . Springer International Publishing, Cham,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Martina</given-names>
            <surname>Caic</surname>
          </string-name>
          , Joa~o Avelino, Dominik Mahr, Gaby Odekerken-Schroder, and Alexandre Bernardino.
          <article-title>Robotic versus human coaches for active aging: An automated social presence perspective</article-title>
          .
          <source>International Journal of Social Robotics</source>
          ,
          <year>July 2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>David</given-names>
            <surname>Portugal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Luis</given-names>
            <surname>Santos</surname>
          </string-name>
          , Paulo Alvito, Jorge Dias, George Samaras, and Eleni Christodoulou.
          <article-title>SocialRobot: An interactive mobile robot for elderly home care</article-title>
          .
          <source>In 2015 IEEE/SICE International Symposium on System Integration (SII)</source>
          . IEEE,
          <year>December 2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Edmanuel</given-names>
            <surname>Cruz</surname>
          </string-name>
          , Felix Escalona, Zuria Bauer, Miguel Cazorla,
          <article-title>Jose Garc a-Rodr guez</article-title>
          , Ester MartinezMartin, Jose Carlos Rangel, and Francisco Gomez-Donoso.
          <article-title>Geo rey: An automated schedule system on a social robot for the intellectually challenged</article-title>
          .
          <source>Computational Intelligence and Neuroscience</source>
          ,
          <year>2018</year>
          :
          <volume>1</volume>
          {
          <fpage>17</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Praneeth</given-names>
            <surname>Vepakomma</surname>
          </string-name>
          , Debraj De,
          <string-name>
            <surname>Sajal K. Das</surname>
            , and
            <given-names>Shekhar</given-names>
          </string-name>
          <string-name>
            <surname>Bhansali</surname>
          </string-name>
          .
          <article-title>A-wristocracy: Deep learning on wrist-worn sensing for recognition of user complex activities</article-title>
          .
          <source>In 2015 IEEE 12th International Conference on Wearable and Implantable Body Sensor Networks (BSN)</source>
          . IEEE,
          <year>June 2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Liang</surname>
            <given-names>Cao</given-names>
          </string-name>
          , Yufeng Wang, Bo Zhang, Qun Jin, and
          <string-name>
            <surname>Athanasios</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Vasilakos</surname>
          </string-name>
          . GCHAR:
          <article-title>An e cient groupbased context|aware human activity recognition on smartphone</article-title>
          .
          <source>Journal of Parallel and Distributed Computing</source>
          ,
          <volume>118</volume>
          :
          <fpage>67</fpage>
          {
          <fpage>80</fpage>
          ,
          <year>August 2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. Jaime Andres Rincon,
          <string-name>
            <given-names>Alberto</given-names>
            <surname>Martin</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          ^ngelo Costa, Paulo Novais, Vicente Julian, and
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Carrascosa</surname>
          </string-name>
          .
          <article-title>Emir: An emotional intelligent robot assistant</article-title>
          .
          <source>In AfCAI</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>