<!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>Towards Automated Pain Detection in Children using Facial and Electrodermal Activity</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Xiaojing Xu</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Busra Tugce Susam</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hooman Nezamfar</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Damaris Diaz</string-name>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kenneth D. Craig</string-name>
          <xref ref-type="aff" rid="aff5">5</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Matthew S. Goodwin</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Murat Akcakaya</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jeannie S. Huang</string-name>
          <xref ref-type="aff" rid="aff6">6</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Virginia R. de Sa</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Cognitive Science</institution>
          ,
          <addr-line>UC San Diego, La Jolla, CA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Electrical and Computer Engineering, Northeastern University</institution>
          ,
          <addr-line>Boston, MA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Electrical and Computer Engineering</institution>
          ,
          <addr-line>UC San Diego, La Jolla, CA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Department of Electrical and Computer Engineering, University of Pittsburgh</institution>
          ,
          <addr-line>Pittsburgh, PA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Department of Health Sciences, Northeastern University</institution>
          ,
          <addr-line>Boston, MA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff5">
          <label>5</label>
          <institution>Department of Psychology,University of British Columbia Vancouver</institution>
          ,
          <addr-line>BC</addr-line>
          ,
          <country country="CA">Canada</country>
        </aff>
        <aff id="aff6">
          <label>6</label>
          <institution>Rady Childrens Hospital and Department of Pediatrics</institution>
          ,
          <addr-line>UC San Diego, CA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <fpage>2</fpage>
      <lpage>5</lpage>
      <abstract>
        <p>Accurately determining pain levels in children is di cult, even for trained professionals and parents. Facial activity and electrodermal activity (EDA) provide rich information about pain, and both have been used in automated pain detection. In this paper, we discuss preliminary steps towards fusing models trained on video and EDA features respectively. We demonstrate the bene t of the fusion with a special test case involving domain adaptation and improved accuracy relative to using EDA and video features alone.</p>
      </abstract>
      <kwd-group>
        <kwd>Automated Pain Detection</kwd>
        <kwd>EDA</kwd>
        <kwd>Facial Action Units</kwd>
        <kwd>GSR</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Accurate pain assessment in children is basic to safe and e cacious pain
management. Under-estimation leads to patient su ering and inadequate care while
over-estimation leads to adverse side-e ects, including opioid addiction [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The
most widely used method to assess clinical pain is patient self-report [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
However, this method is subjective and vulnerable to social biases, and requires
substantial cognitive, linguistic, and social competencies [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Objective pain
estimation is required for appropriate pain management in the clinical setting.
      </p>
      <p>In previous work, features extracted from facial action units (AUs) and EDA
signals have both been used to automatically detect pain events using machine
learning methods [3{6].
2.1</p>
    </sec>
    <sec id="sec-2">
      <title>Methods</title>
      <sec id="sec-2-1">
        <title>Participants</title>
        <p>Forty-two pediatric research participants (30 males, 12 females) aged 13[10,15]
(median [25%, 75%]) years and primarily Hispanic (79%) who had undergone
medically necessary laparoscopic appendectomy were recruited for a study
examining automated assessment of children's post-operative pain using video and
body sensors. Children and their parents provided assent and parental consent
prior to study evaluations.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Experimental Design and Data Collection</title>
        <p>
          Data were collected over 3 visits (V): (V1) within 24 hours after appendectomy
in hospital; (V2) in hospital one calendar day after V1; and (V3) a follow-up
visit in an outpatient lab up to 42 days postoperatively. At each visit, videos (60
fps at 853x480 pixel resolution) of the patient's face and EDA responses (using
A ectiva Q sensor) were recorded while manual pressure was exerted at the
surgical site for 10 seconds (equivalent of a clinical examination). Participants
rated their pain level using a 0-10 Numerical Rating Scale, where 0 = no pain and
10 = worst pain ever. Following convention for recognizing clinically signi cant
pain [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], videos and EDA with ratings of 0-3 were labeled as no pain, and videos
with ratings of 4-10 were labeled as pain. We obtained 22 pain samples from V1,
8 pain and 8 no pain samples from V2, and 22 no pain samples from V3.
2.3
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Feature Extraction</title>
        <p>
          Video Features: Each 10-second video was processed with iMotions software
which automatically estimates the log probabilities of 20 AUs (AU 1, 2, 4, 5, 6,
7, 9, 10, 12, 14, 15, 17, 18, 20, 23, 24, 25, 26, 28, 43) and 3 head pose indicators
(yaw, pitch and roll) from each frame. We then applied 11 statistics (mean, max,
min, standard deviation, 95th, 85th, 75th, 50th, 25th percentiles, half-recti ed
mean, and max-min) to each AU over all frames to obtain 11 23 features.
EDA Features: EDA signals were trimmed to 30 seconds (10 seconds before,
during, and after the pressure respectively), smoothed by a 0.35 Hz FIR low
pass lter, down-sampled to 1 Hz, and normalized with z-score normalization.
We then applied timescale decomposition (TSD) with standard deviation metric,
and computed the mean, SD, and entropy of each row of each TSD, to obtain a
feature vector of length 90 [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
2.4
        </p>
      </sec>
      <sec id="sec-2-4">
        <title>Machine Learning Models</title>
        <p>
          Support Vector Machine (SVM): A linear SVM was used to obtain a pain
score as well as a pain prediction for each sample using video/EDA features after
PCA. The number of principal components was chosen using cross-validation.
In other ways, training was as in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] (Inputs were normalized with z-score
normalization over the full dataset).
        </p>
      </sec>
      <sec id="sec-2-5">
        <title>Linear Discriminant Analysis (LDA): LDA was used to di erentiate be</title>
        <p>tween pain and no pain using pain scores from the SVMs. Inputs were either one
single pain score from one SVM, or a fusion of pain scores from both SVMs.</p>
        <p>Automated Pain Detection using Facial and Electrodermal Activity
1
Video Features
8
EDA score</p>
        <p>6
EDA
SVM</p>
        <p>2</p>
        <p>
          EDA Features
We rst used V1 pain and V3 no pain samples to train an SVM for classi cation,
following 1 ) 3 and 2 ) 4 in Figure 1. Table 1 shows the performance on V2 was
ne for EDA, but suboptimal for video features. We hypothesized that this was
due to iMotions feature sensitivity to environmental di erences between V1/2
(in hospital) and V3 (in outpatient lab) [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. One solution to this problem was
to use V2 to train the model. However with only 16 datapoints in V2, results
had very large variance. Likewise, training with V1/3 and V2 data together
did not improve V2 performance. Consequently, we needed to solve the domain
adaptation problem which learns a model from a source domain (V1/3) and
performs it on a di erent target domain (V2).
We hoped to improve performance on V2 by combining video and EDA features.
Our rst simple attempt at fusion was to t an LDA model to distinguish between
pain v. no pain using the output pain scores from each of the SVM models trained
with video and EDA features respectively (1; 2 ) 5; 6 ) 7; 8 ) 9 in Figure 1).
However, this method performed poorly (0.56) compared to using EDA features
alone.
In the fusion, our LDA classi er had only two inputs: video and EDA SVM
pain scores. Since the dimension of features was greatly reduced by SVM, it
became feasible to train a classi er using only V2 samples. Relative to Figure 1,
we thus trained 1,2 with V1/3, and 7,8 with V2 data using cross-validation.
The accuracy using video scores was 0.69, much higher than 0.5, showing the
bene t of training on target domain V2, even if the features, V2 scores, were
obtained from a model trained on V1/3. Finally with a fusion of SVM output
scores for video and EDA, we achieved the comparative best accuracy of 0.84.
For comparison, directly concatenating video and EDA features (fusion at the
feature level) did not perform well (0.56).
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>We present preliminary results from a fusion approach to detecting pain in
children. While the results demonstrate improvement with our domain adaptation
fusion approach than with video or EDA features alone, we believe these results
can be further improved by tailoring the two modalities to be more sensitive to
their relative bene ts and limitations.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>This work was supported by National Institutes of Health National Institute of
Nursing Research grant R01 NR013500.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>B. L.</given-names>
            <surname>Quinn</surname>
          </string-name>
          , E. Seibold, and
          <string-name>
            <given-names>L.</given-names>
            <surname>Hayman</surname>
          </string-name>
          .
          <article-title>Pain assessment in children with special needs: A review of the literature</article-title>
          .
          <source>Exceptional Children</source>
          ,
          <volume>82</volume>
          (
          <issue>1</issue>
          ):
          <volume>44</volume>
          {
          <fpage>57</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>G.</given-names>
            <surname>Zamzmi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.-Y.</given-names>
            <surname>Pai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Goldgof</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kasturi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Ashmeade</surname>
          </string-name>
          .
          <article-title>Machine-based multimodal pain assessment tool for infants: a review</article-title>
          .
          <source>preprint arXiv:1607.00331</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>K.</given-names>
            <surname>Sikka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Ahmed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Diaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Goodwin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. D.</given-names>
            <surname>Craig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Bartlett</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J. S.</given-names>
            <surname>Huang</surname>
          </string-name>
          .
          <article-title>Automated assessment of childrens postoperative pain using computer vision</article-title>
          . Pediatrics,
          <volume>136</volume>
          (
          <issue>1</issue>
          ):e124{
          <fpage>e131</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>S.</given-names>
            <surname>Gruss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Treister</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Werner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. C.</given-names>
            <surname>Traue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Crawcour</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Andrade</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Walter</surname>
          </string-name>
          .
          <article-title>Pain intensity recognition rates via biopotential feature patterns with support vector machines</article-title>
          .
          <source>PloS one</source>
          ,
          <volume>10</volume>
          (
          <issue>10</issue>
          ):
          <fpage>e0140330</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>B. T.</given-names>
            <surname>Susam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Akcakaya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Nezamfar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Diaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>R. de Sa</surname>
          </string-name>
          , K. D.
          <string-name>
            <surname>Craig</surname>
            ,
            <given-names>J. S.</given-names>
          </string-name>
          <string-name>
            <surname>Huang</surname>
            , and
            <given-names>M. S.</given-names>
          </string-name>
          <string-name>
            <surname>Goodwin</surname>
          </string-name>
          .
          <article-title>Automated pain assessment using electrodermal activity data and machine learning (in press)</article-title>
          .
          <source>In Engineering in Medicine and Biology Society (EMBC)</source>
          ,
          <source>2018 40th Annual International Conference of the IEEE. IEEE</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>X.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. D.</given-names>
            <surname>Craig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Diaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Goodwin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Akcakaya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. T.</given-names>
            <surname>Susam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. S.</given-names>
            <surname>Huang</surname>
          </string-name>
          , and V. R. de Sa.
          <article-title>Automated pain detection in facial videos of children using human-assisted transfer learning (in press)</article-title>
          .
          <source>In Joint Workshop on Arti cial Intelligence in Health</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>Ho man, A</article-title>
          .
          <string-name>
            <surname>Sadosky</surname>
            , E. Dukes, and
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Alvir</surname>
          </string-name>
          .
          <article-title>How do changes in pain severity levels correspond to changes in health status and function in patients with painful diabetic peripheral neuropathy</article-title>
          .
          <source>Pain</source>
          ,
          <volume>149</volume>
          (
          <issue>2</issue>
          ), May
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>