<!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>Monitoring Cardiovascular Risk by Video Processing and Fuzzy Rules</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Computer Science Department, University of Bari Aldo Moro</institution>
          ,
          <addr-line>Italy; Via Orabona, 4 - 70125 Bari</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Member of INDAM Research Group GNCS</institution>
        </aff>
      </contrib-group>
      <fpage>119</fpage>
      <lpage>124</lpage>
      <abstract>
        <p>To measure vital parameters, traditional devices are equipped with sensors that need to be used through contact with the subject's skin. In recent years photoplethysmography has been developed as a contactless method to monitor vital signs. Thanks to this method, di culties concerning the detection of parameters through contact devices can be overcome, especially in elderly subjects. In this work we use remote photoplethysmography to estimate cardiovascular parameters through the use of a contactless device equipped with a re ective mirror and a webcam that captures video frames of people's faces. Besides, we use the clustering technique to automatically estimate the lips colour. Finally, the measured parameters are used as input to fuzzy inference rules integrated into our system, in order to predict cardiovascular risk.</p>
      </abstract>
      <kwd-group>
        <kwd>Contact-less monitoring Photoplethysmography Signal processing Video imaging Personal health care Fuzzy inference system Cardiovascular disease</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        According to a 2015 report3, cardiovascular diseases are one of the leading causes
of death in the world. Therefore, monitoring cardiovascular functions is essential
to prevent the onset of chronic diseases and carry out therapies in an appropriate
manner. In order to detect the risk level of cardiovascular diseases [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], it is
essential to continually monitor vital parameters, such as heart rate, breathing rate
and arterial blood oxygen saturation. One of the most common techniques to
correctly estimate vital parameters is using a device such as an electrocardiogram
(ECG). It is equipped with electrodes that require contact with the subject's
skin. For this reason, ECG becomes an invasive device, whose intensive use, as
well as the incorrect positioning of its electrodes, may irritate the subject's skin.
      </p>
      <p>Another low-cost non-invasive technique that detects the cardiovascular pulse
wave through variations in transmitted or re ected light is
photoplethysmography (PPG). Through PPG, it is possible to obtain values such as heart rate,</p>
      <p>
        Copyright c 2019 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
arterial blood oxygen saturation, blood pressure, cardiac output and autonomic
function [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In recent years, through the use of digital cameras and video image
processing algorithms it has been possible to measure the values of heartbeats by
PPG. Verkruysse's work [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] introduced the remote plethysmographic (RPPG)
signal captured through a camera containing this signal. The vital parameters
are then estimated through the use of image processing and blind source
separation [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>
        This paper provides a synthetic description of the ongoing PhD research
activity of the author. A more detailed description can be found in [
        <xref ref-type="bibr" rid="ref10 ref2 ref3">10, 3, 2</xref>
        ]. The
goal of the research is to develop an innovative solution for non-contact
monitoring of vital signs that satis es both low-cost and comfort requirements and
acts as a decision-making system to support medical diagnosis of cardiovascular
disease. The proposed monitoring system is based on a see-through mirror
provided with a camera to acquire video frames of the mirrored face of the person.
      </p>
      <p>Using photopletismography, the video frames are processed in order to derive
an estimate of vital parameters such as Heart Rate (HR), Breathing Rate (BR)
and Oxygen Saturation in blood (SpO2). As an additional vital sign, lips colour
is automatically detected using clustering-based color quantization. Unlike other
existing contact-less monitoring solutions, that are oriented only to measure
vital parameters, the proposed solution integrates an intelligent component that
provides for a support to medical diagnosis of cardiovascular disease. This
component uses fuzzy IF-THEN rules to infer a cardiovascular risk level starting
from the values of the vital parameters.</p>
      <p>The proposed solution is a cheap device that is easy to use, lending itself
very well for domestic use as well as for telemedicine applications.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Materials and Methods</title>
      <p>This work proposes a solution for real-time estimation of cardiovascular
parameters without the use of contact sensors, but with the use of a see-through mirror
equipped with a HD camera that acquires the video frames of human faces and
processes the signal from facial blood vessels to measure heart rate, breathing
rate and blood oxygen saturation values. Our aim is to create a smart personal
monitoring device made of a few assembled low-cost HW components. The
principal device is a see-through mirror which has a 12" 12" 3mm thick acrylic
lm that is partially re ective and partially transparent. A monitor is put in the
darker side so that the output of the system can be displayed through the mirror.
A Microsoft LifeCam has been used to ensure high images quality and
sharpness. It is quite small and is equipped with autofocus and a 1080p HD sensor.
This type of camera has been integrated with the see-through mirror to ensure
quality video images. Two LED strips, each composed of 18 LED lights, have
the following features: 12V, 6.0W, 0.5A and 120 beam angle. They have been
placed on both sides of the frame to ensure good lighting during the acquisition
phase of the video frames. The HW equipment is completed by a client/server
architecture. The client is a Raspberry pi 3 board, which sends frames to the
server that processes them to perform the signal analysis. In the current
prototypical version of the system, the server is a desktop computer equipped with
CPU Intel(R) Core(TM) i5-5200 2.20GHz 64 bit, 4GB RAM and 500GB hard
disk.</p>
      <p>
        The software architecture of the system includes a back-end and a
frontend module. The front-end module acquires the video frames through a camera
and sends them to the back-end module. The back-end module runs a face
tracker within the video frames and localizes the region of interest (ROI) useful
to estimate the vital signs. A pretrained frontal face detector is used to detect the
face within video frames, which is available with the library Dlib [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Given the
face region identi ed by the face detector, we localize the ROI [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] corresponding
to a region with a strong passage of blood modulation, so as to enable evaluation
of vital signs by means of PPG. Speci cally, the ROI is separated into the three
RGB channels and spatially averaged overall pixel to yield a red, blue and green
measurement value for each frame. These values are processed to derive a PPG
signal that is susceptible to motion-induced signal corruption and for this reason
we applied a ltering phases [
        <xref ref-type="bibr" rid="ref13 ref8">8, 13</xref>
        ]. Then, we applied Independent Component
Analysis (ICA) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and Fast Fourier Transform (FFT) to detect the vital signs.
Finally, the values were sent back in JSON format to the front-end module,
which shows them graphically to the user through the mirror.
      </p>
      <p>In order to evaluate the health condition, lip color has been used as an
additional parameter. Normal people show lips with a pinkish nuance, while altered
states or illness may provoke a modi cation of this color. Using image processing
techniques applied to a speci c ROI acquired from an image of the patient's face,
we automatically detect the lip color. ROI is processed after lips are detected
and isolated. Then the dominant colour is classi ed as "regular", "altered" or
"purplish". In order to quantify the lip color and detect the dominant color in
the ROI, we apply a K-Means clustering with k = 3. Then, by means of K-Means
algorithm, we obtain a histogram with the percentages of the three main colors
expressed in RGB format. Finally, we convert the value of the dominant color
into hexadecimal, associating it to a nominal label with the help of the library
"N ameT hatColor"4. We developed a Fuzzy Inference System (FIS) with the
help of the physician once all the parameters had been obtained. On the basis of
the estimated vital signs, fuzzy rules have been de ned to support the diagnosis
of cardiovascular disease by assessing a risk level. The linguistic input variables
created are HR, BR, SpO2, LipsColor, which represent the measured vital
signs. Furthermore, the output variable called RiskLevel represents the level of
risk for cardiovascular disease. Besides, for each linguistic variable, we combined
the linguistic terms with the relative fuzzy set. Finally, we obtained a total of 81
rules by de ning a rule for each combination of input and output fuzzy values.
4 http://chir.ag/projects/name-that-color/</p>
    </sec>
    <sec id="sec-3">
      <title>Preliminary results</title>
      <p>We have conducted two experiments. In the rst experiment we involved healthy
people, for a total of 25 participants (19 males, 6 females) from 18 to 65 years
old and with varying skin colors. In the second experiment, we considered a
sample of 10 subjects (5 females and 5 males) from 66 to 96 years old. All
subjects were elderly people with cardiovascular diseases undergoing
pharmacological treatment. During the experiments, HR and SpO2 values were collected
simultaneously from our system and through a Finger tip Pulse Oximeter worn
by the subjects. Then measurements from these two di erent sources were used
for comparison. We considered the pulse oximeter for comparison because it is
based on PPG that is the same principle underlying our device. A comparison
with the use of ECG was avoided because it is based on a completely di erent
approach.</p>
      <p>
        In each test the subject was sitting in front of the mirror for 1 minute at a
distance of 50cm ca. from the integrated HD camera. In Table 1 we summarize
the statistics computed on the di erence between the pulse oximeter and our
device. The measurements obtained by our device are, in most cases, comparable to
those of the pulse oximeter. It can be seen that the error increases in case of
unhealthy people. This was due to the fact that most of unhealthy people involved
in the tests were elderly subjects who had di culties in standing still in front
of the device because of their neurological problems (for example, Parkinson's
disease [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) . However, the results are in agreement with the literature [
        <xref ref-type="bibr" rid="ref11 ref9">11, 9</xref>
        ]
since the average di erence falls within 5 bpm, which is in an acceptable margin
of error.
      </p>
      <p>all subjects healthy subjects unhealthy subjects
HR 3:45 2:93 2:87 2:39 4:90 3:74</p>
      <p>SpO2 1:83 2:43 1:54 1:76 2:56 3:63</p>
      <p>We constructed a dataset by measuring and collecting the four vital signs
of 116 people. In this way, the e ectiveness of the fuzzy rule-based system in
simulating the decision of the expert has been tested. A second physician,
different from the physician responsible for building the fuzzy knowledge base, has
been involved to label the dataset, have a di erent expert opinion and make a
more reliable validation process. Thanks to his knowledge and experience, the
physician rst observed the measured life signs and then assigned them a risk
label. The labelled dataset represents the ground truth for the evaluation of the
diagnostic results obtained with the developed FIS. We have applied the
inference of fuzzy rules to obtain a risk label (Low, Medium, High, or Very High) for
each subject of the dataset.
Risk class acc tnr tpr ppv npv tp tn fp fn</p>
      <p>For each of the four output classes, we evaluated the accuracy together with
additional measures that are commonly considered in classi cation tasks. In
particular, while analyzing a single class c, we consider accuracy (acc), true
positive (tp), true negative (tn), false positive (fp), and false negative (fn).</p>
      <p>Moreover we considered:
tp
Positive Predictive Value: ppv = tp+fp Ratio of correctly classi ed
samples w.r.t. those identi ed as pertaining to class c
tn
Negative Predictive Value: npv = tn+fn . Ratio of correctly classi ed
samples w.r.t. those identi ed as not pertaining to class c</p>
      <p>tp
True Positive Rate: tpr = tp+fn . Ratio of samples correctly classi ed as
belonging to class c w.r.t. those actually belonging to class c</p>
      <p>tn
True Negative Rate: tnr = fp+tn . Ratio of samples correctly classi ed as
not belonging to class c w.r.t. those actually not belonging to class c
The values of these measures evaluated for each class are reported in Table 2.
It can be seen that in general the tnr and npv values are greater than those of
tpr and ppv. This means that the fuzzy system is more e ective in determining
the non-membership to each class than the sensitivity to each speci c class. This
could be related to the unbalancement of the dataset.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion and future works</title>
      <p>One of the main research areas in the eld of biomedical engineering is the design
of non-invasive and low-cost solutions for monitoring vital parameters. Our aim
is to create easy-to-use accurate solutions that can be used both at home and in
clinics. With our system, vital signs can be monitored at home in a comfortable
way, without the need for additional invasive or even expensive medical devices.
Our solution represents an innovative and smart object that can be of extremely
useful in the eld of Personal Healthcare. It was intended to be used for daily
personal monitoring of vital signs. This system is a proof-of-concept methodology
that still needs re nement. Nevertheless, results of experiments have shown that
it provides e ective measurements of vital signals as well as a reliable intelligent
component based on fuzzy rules, which is able to simulate the expert physician
decision. In our future works, we aim to improve our methodology through the
acquisition of more data from ill people, and the integration of information such
as demographic characteristics and patients and their family's history. We aim
to carry out large-scale tests with patients su ering from cardiovascular diseases,
through machine learning methods to automatically learn fuzzy rules from data.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>The author wish to thank Prof. Giovanna Castellano for supervising his PhD
research activity.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Allen</surname>
          </string-name>
          , J.:
          <article-title>Photoplethysmography and its application in clinical physiological measurement</article-title>
          .
          <source>Physiological measurement 28</source>
          (
          <issue>3</issue>
          ),
          <source>R1</source>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Casalino</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castellano</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castiello</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pasquadibisceglie</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaza</surname>
          </string-name>
          , G.:
          <article-title>A fuzzy rule-based decision support system for cardiovascular risk assessment</article-title>
          . In: Fuller,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Giove</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Masulli</surname>
          </string-name>
          ,
          <string-name>
            <surname>F</surname>
          </string-name>
          . (eds.)
          <source>Fuzzy Logic and Applications</source>
          . pp.
          <volume>97</volume>
          {
          <fpage>108</fpage>
          . Springer International Publishing,
          <string-name>
            <surname>Cham</surname>
          </string-name>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Casalino</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castellano</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pasquadibisceglie</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaza</surname>
          </string-name>
          , G.:
          <article-title>Contact-less realtime monitoring of cardiovascular risk using video imaging and fuzzy inference rules</article-title>
          .
          <source>Information</source>
          <volume>10</volume>
          ,
          <issue>9</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Comon</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Independent component analysis, a new concept?</article-title>
          <source>Signal Processing</source>
          <volume>36</volume>
          ,
          <volume>287</volume>
          {
          <fpage>314</fpage>
          (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Cook</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Togni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schaub</surname>
            ,
            <given-names>M.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wenaweser</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hess</surname>
            ,
            <given-names>O.M.:</given-names>
          </string-name>
          <article-title>High heart rate: a cardiovascular risk factor?</article-title>
          <source>European heart journal 27(20)</source>
          ,
          <volume>2387</volume>
          {
          <fpage>2393</fpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Diaz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ferrer</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Impedovo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pirlo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vessio</surname>
          </string-name>
          , G.:
          <article-title>Dynamically enhanced static handwriting representation for parkinson's disease detection</article-title>
          .
          <source>Pattern Recognition Letters</source>
          <volume>128</volume>
          ,
          <issue>204</issue>
          {
          <fpage>210</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Kazemi</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sullivan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>One millisecond face alignment with an ensemble of regression trees</article-title>
          .
          <source>2014 IEEE Conference on Computer Vision</source>
          and Pattern Recognition pp.
          <year>1867</year>
          {
          <year>1874</year>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Kranjec</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Begus</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gersak</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Drnovsek</surname>
          </string-name>
          , J.:
          <article-title>Non-contact heart rate and heart rate variability measurements: A review</article-title>
          .
          <source>Biomed. Signal Proc. and Control</source>
          <volume>13</volume>
          ,
          <issue>102</issue>
          {
          <fpage>112</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Lam</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuno</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Robust heart rate measurement from video using select random patches</article-title>
          .
          <source>2015 IEEE Int. Conf. on Computer Vision</source>
          (ICCV) pp.
          <volume>3640</volume>
          {
          <issue>3648</issue>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Pasquadibisceglie</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaza</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castellano</surname>
          </string-name>
          , G.:
          <article-title>A personal healthcare system for contact-less estimation of cardiovascular parameters</article-title>
          .
          <source>2018 AEIT International Annual</source>
          Conference pp.
          <volume>1</volume>
          {
          <issue>6</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <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>
          </string-name>
          , R.W.:
          <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>
          ),
          <volume>10762</volume>
          {
          <fpage>10774</fpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Rouast</surname>
            ,
            <given-names>P.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Adam</surname>
            .,
            <given-names>M.T.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chiong</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cornforth</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lux</surname>
          </string-name>
          , E.:
          <article-title>Remote heart rate measurement using low-cost rgb face video: a technical literature review</article-title>
          .
          <source>Frontiers of Computer Science</source>
          <volume>12</volume>
          ,
          <issue>858</issue>
          {
          <fpage>872</fpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Tarvainen</surname>
            ,
            <given-names>M.P.</given-names>
          </string-name>
          , Ranta-aho, P.O.,
          <string-name>
            <surname>Karjalainen</surname>
            ,
            <given-names>P.A.</given-names>
          </string-name>
          :
          <article-title>An advanced detrending method with application to hrv analysis</article-title>
          .
          <source>IEEE Transactions on Biomedical Engineering</source>
          <volume>49</volume>
          , 172{
          <fpage>175</fpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Verkruysse</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Svaasand</surname>
            ,
            <given-names>L.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nelson</surname>
            ,
            <given-names>J.S.:</given-names>
          </string-name>
          <article-title>Remote plethysmographic imaging using ambient light</article-title>
          .
          <source>Optics express</source>
          <volume>16</volume>
          (
          <issue>26</issue>
          ),
          <volume>21434</volume>
          {
          <fpage>21445</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>