<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMBE</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR Biomed Eng</journal-id>
      <journal-title>JMIR Biomedical Engineering</journal-title>
      <issn pub-type="epub">2561-3278</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v5i1e17106</article-id>
      <article-id pub-id-type="pmid">34888487</article-id>
      <article-id pub-id-type="doi">10.2196/17106</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Original Paper</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Original Paper</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Challenges and Opportunities in Collecting and Modeling Ambulatory Electrodermal Activity Data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Eysenbach</surname>
            <given-names>Gunther</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Kichline</surname>
            <given-names>Tiffany</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Aslanidis</surname>
            <given-names>Theodoros</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Coffman</surname>
            <given-names>Donna L</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution>Department of Epidemiology and Biostatistics</institution>
            <institution>Temple University</institution>
            <addr-line>1301 Cecil B. Moore Ave</addr-line>
            <addr-line>Ritter Annex, 9th floor</addr-line>
            <addr-line>Philadelphia, PA, 19122</addr-line>
            <country>United States</country>
            <phone>1 2152044420</phone>
            <email>dcoffman@temple.edu</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-6305-6579</ext-link>
        </contrib>
        <contrib id="contrib2" contrib-type="author">
          <name name-style="western">
            <surname>Cai</surname>
            <given-names>Xizhen</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff2" ref-type="aff">2</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-2097-1755</ext-link>
        </contrib>
        <contrib id="contrib3" contrib-type="author">
          <name name-style="western">
            <surname>Li</surname>
            <given-names>Runze</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-0154-2202</ext-link>
        </contrib>
        <contrib id="contrib4" contrib-type="author">
          <name name-style="western">
            <surname>Leonard</surname>
            <given-names>Noelle R</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff4" ref-type="aff">4</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-6498-3577</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Department of Epidemiology and Biostatistics</institution>
        <institution>Temple University</institution>
        <addr-line>Philadelphia, PA</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff2">
        <label>2</label>
        <institution>Department of Mathematics and Statistics</institution>
        <institution>Williams College</institution>
        <addr-line>Williamstown, MA</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff3">
        <label>3</label>
        <institution>Department of Statistics</institution>
        <institution>Pennsylvania State University</institution>
        <addr-line>State College, PA</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff4">
        <label>4</label>
        <institution>Rory Meyers College of Nursing</institution>
        <institution>New York University</institution>
        <addr-line>New York City, NY</addr-line>
        <country>United States</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Donna L Coffman <email>dcoffman@temple.edu</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <season>Jan-Dec</season>
        <year>2020</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>12</day>
        <month>6</month>
        <year>2020</year>
      </pub-date>
      <volume>5</volume>
      <issue>1</issue>
      <elocation-id>e17106</elocation-id>
      <history>
        <date date-type="received">
          <day>19</day>
          <month>11</month>
          <year>2019</year>
        </date>
        <date date-type="rev-request">
          <day>12</day>
          <month>12</month>
          <year>2019</year>
        </date>
        <date date-type="rev-recd">
          <day>29</day>
          <month>1</month>
          <year>2020</year>
        </date>
        <date date-type="accepted">
          <day>13</day>
          <month>5</month>
          <year>2020</year>
        </date>
      </history>
      <copyright-statement>©Donna L Coffman, Xizhen Cai, Runze Li, Noelle R Leonard. Originally published in JMIR Biomedical Engineering (http://biomedeng.jmir.org), 12.06.2020.</copyright-statement>
      <copyright-year>2020</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Biomedical Engineering, is properly cited. The complete bibliographic information, a link to the original publication on http://biomedeng.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="http://biomedeng.jmir.org/2020/1/e17106/" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>Ambulatory assessment of electrodermal activity (EDA) is an emerging technique for capturing individuals’ autonomic responses to real-life events. There is currently little guidance available for processing and analyzing such data in an ambulatory setting.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>This study aimed to describe and implement several methods for preprocessing and constructing features for use in modeling ambulatory EDA data, particularly for measuring stress.</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>We used data from a study examining the effects of stressful tasks on EDA of adolescent mothers (AMs). A biosensor band recorded EDA 4 times per second and was worn during an approximately 2-hour assessment that included a 10-min mother-child videotaped interaction. The initial processing included filtering noise and motion artifacts.</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>We constructed the features of the EDA data, including the number of peaks and their amplitude as well as EDA reactivity, quantified as the rate at which AMs returned to baseline EDA following an EDA peak. Although the pattern of EDA varied substantially across individuals, various features of EDA may be computed for all individuals enabling within- and between-individual analyses and comparisons.</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p>The algorithms we developed can be used to construct features for dry-electrode ambulatory EDA, which can be used by other researchers to study stress and anxiety.</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>electrodermal activity</kwd>
        <kwd>functional data analysis</kwd>
        <kwd>ambulatory stress assessment</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <sec>
        <title>Background</title>
        <p>Electrodermal activity (EDA), commonly known as galvanic skin response, is a measure of sympathetic nervous system activity that is used to assess physiological arousal. Measurement of and methods for examining EDA in the laboratory setting have been well described [<xref ref-type="bibr" rid="ref1">1</xref>], but there is less guidance for ambulatory EDA. The aim of this study was to describe and illustrate several analytic methods, specifically functional data analysis (FDA) [<xref ref-type="bibr" rid="ref2">2</xref>] and local polynomial regression with autoregressive (AR) errors [<xref ref-type="bibr" rid="ref3">3</xref>], neither of which have previously been applied to EDA data. We also addressed the challenges of collecting ambulatory EDA, denoising the data, and detecting meaningful features common across participants. We concluded with opportunities and limitations of the future use of ambulatory EDA data.</p>
      </sec>
      <sec>
        <title>Electrodermal Activity</title>
        <p>EDA has been measured in the laboratory using gel electrodes typically placed on the palm. Entire books [<xref ref-type="bibr" rid="ref1">1</xref>] and publication standards (eg, Society for Psychophysiological Research Ad Hoc Committee on Electrodermal Measures [<xref ref-type="bibr" rid="ref4">4</xref>]) have been written about the measurement and the use of EDA data collected in the laboratory. However, much less has been written about the measurement of EDA in ambulatory settings [<xref ref-type="bibr" rid="ref5">5</xref>], which has recently become popular because of the availability of dry-electrode wrist-worn devices that can be used while participants go about their daily activities. These devices have dry electrodes that are placed on the ventral wrist as opposed to laboratory placement on the palm. Emotional effects on EDA can be more sensitively recorded with electrodes on the palm rather than the wrist, but obviously, electrodes on the palm would interfere with normal activities. However, dry electrodes used in ambulatory measurement have uncertain contact with the skin in comparison with gel electrodes used in laboratory-based measurements. Important issues in the measurement of ambulatory EDA are the influence of temperature (both ambient and skin) and physical activity [<xref ref-type="bibr" rid="ref4">4</xref>]. Several wrist-worn devices have been developed for the ambulatory collection of EDA as well as temperature and three-axis accelerometry [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref7">7</xref>] (eg, Affectiva Q sensor) and, more recently, blood volume pulse (eg, Empatica E4). This study used the iCalm device [<xref ref-type="bibr" rid="ref8">8</xref>], which measures temperature and accelerometry as well as EDA (the <italic>Methods</italic> section provides a detailed description about this).</p>
        <p>All these devices record the overall skin conductance (SC), which can be decomposed into what is referred to as tonic and phasic activity components [<xref ref-type="bibr" rid="ref9">9</xref>-<xref ref-type="bibr" rid="ref11">11</xref>]. Tonic activity varies slowly and is also referred to as skin conductance level (SCL). Individuals have different levels of tonic activity, that is, some individuals have a higher level of tonic activity and others have a lower level of tonic activity. In contrast, phasic activity varies rapidly in response to stimuli such as stress and is also referred to as the skin conductance response (SCR). The SCR amplitude is considered to be a measure of sympathetic activity. SCR is characterized by a rapid incline to a peak and then a slower decline back to the individual’s SCL [<xref ref-type="bibr" rid="ref1">1</xref>]. Typically, the goal is to detect these peaks and compute their features (eg, amplitude), which can serve as predictors or outcomes in statistical models. Although the features can be detected by visualizing the data and coding the peaks, the amount of data that are typically collected in ambulatory research studies makes this time consuming and impractical. Next, we introduce the study from which the data were obtained before returning to approaches for analyzing ambulatory EDA data.</p>
      </sec>
      <sec>
        <title>Power Source Parenting Study</title>
        <p>Many adolescent mothers (AMs) have challenges effectively regulating emotion, which interferes with their use of positive parenting skills and places them at risk of maltreating their children. Data for this study were collected from participants in a pilot, group-randomized controlled trial of the Power Source Parenting (PSP) intervention for high-risk AMs [<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref13">13</xref>]. The AMs were homeless and lived with their children in transitional living programs (TLPs) in a Northeast state. Each participant received a baseline and 2 postintervention follow-up assessments (at 3 and 6 months). Each assessment lasted between 1.5 and 2 hours, and the AMs wore the iCalm biosensor band that measured EDA throughout each of the 3 assessments, which included 2 potentially stressful tasks: (1) a timed Stroop task and (2) a 10-min videotaped mother-child interaction. We examined EDA at each assessment for the Stroop and video interaction tasks. We chose these 2 tasks because we expected that they induce different types of stressors (eg, Stroop task is a cognitive stressor) and they have differing degrees of structured activity. The Stroop task was more structured than the videotaped interaction task, and it more closely resembles the measurement of EDA in the laboratory (ie, AMs complete the computerized task seated alone without her child present). In contrast, the semistructured mother-child videotaped interaction does not have the constraints of carefully controlled laboratory settings but provides more ecologically valid information about maternal and child behaviors concurrent with measurement of AMs’ EDA that can be examined across participants.</p>
        <p>In our study, different AMs had quite different features in their EDA profiles (ie, the EDA level over the time span of a single task), making it difficult to compare them directly. Some of the differences are noise, such as those from movement artifacts. Despite innovations in devices, ambulatory assessment of EDA is inherently noisier than laboratory assessment because of these movement artifacts and the dry electrodes. Thus, the first step in processing EDA data is to identify these artifacts so that these data can be discarded. The step typically involves applying a signal processing filter, such as a Hanning filter with a 1-second window [<xref ref-type="bibr" rid="ref14">14</xref>], a zero-phase order 10 low-frequency Butterworth filter [<xref ref-type="bibr" rid="ref5">5</xref>], or a finite impulse response (FIR) low-pass filter [<xref ref-type="bibr" rid="ref15">15</xref>]. The application of a signal processing filter is not mandatory, as the next step, identifying valid versus invalid data, can be applied directly to the raw, unfiltered data [<xref ref-type="bibr" rid="ref15">15</xref>]. Taylor et al [<xref ref-type="bibr" rid="ref15">15</xref>] developed an algorithm using support vector machines (SVMs) to identify valid versus invalid data and applied it to both the raw SC data and SC data filtered using an FIR low-pass filter. SVMs have a disadvantage in that it is not transparent what rules are being implemented to classify data as valid versus invalid. In contrast, a rule-based algorithm was proposed [<xref ref-type="bibr" rid="ref16">16</xref>] for classifying data as valid or not. For example, values of less than 0.05 μS could be excluded [<xref ref-type="bibr" rid="ref5">5</xref>]. A disadvantage of this type of approach is that it is less flexible; however, it does not have the reproducibility problems that the Taylor et al [<xref ref-type="bibr" rid="ref15">15</xref>] approach may have [<xref ref-type="bibr" rid="ref16">16</xref>]. Usually, a combination of a signal processing filter and either a rule-based approach or a machine learning approach is used to identify and discard invalid data [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref15">15</xref>]. Given the valid data, the next step is to separate the tonic and phasic components.</p>
        <p>Many of the previous methods for separating the components are based on EDA data collected in the laboratory in which the participant is exposed to a stimulus, such as a loud noise, at regular intervals (eg, interstimulus interval of 8 seconds). These methods include the sigmoid exponential model [<xref ref-type="bibr" rid="ref11">11</xref>] and negative deconvolution [<xref ref-type="bibr" rid="ref9">9</xref>]. Although these methods were developed for data collected in the laboratory, the negative deconvolution method has been applied to ambulatory data [<xref ref-type="bibr" rid="ref14">14</xref>]. There is a question as to whether it is important to separate these components in ambulatory data because the stimuli are typically more gradual (typically referred to as nonspecific SC responses [<xref ref-type="bibr" rid="ref1">1</xref>]) as opposed to the abrupt startle response stimuli typically used in laboratory research. Hernandez et al [<xref ref-type="bibr" rid="ref14">14</xref>] analyzed the data without decomposing the tonic and phasic components and by decomposing them using nonnegative deconvolution and found that the decomposition provided more discriminative information. Thus, they recommended decomposing the EDA. Regardless of whether the EDA is decomposed or not, the next step is to identify features of the data, typically peaks, and compute the characteristics of these features.</p>
        <p>One automated approach to detecting peaks and constructing features is available on an interactive website at the MIT Media Lab [<xref ref-type="bibr" rid="ref15">15</xref>] and uses SVMs, although the focus was primarily on identifying valid versus invalid data. Kleckner et al [<xref ref-type="bibr" rid="ref16">16</xref>] also did not focus on detecting peaks but only on identifying valid versus invalid data. Thus, there is very little guidance on detecting peaks once data have been identified as valid. We initially used the Taylor et al [<xref ref-type="bibr" rid="ref15">15</xref>] approach and discovered that the approach did not identify many of the peaks and marked much of the data as invalid. The results of applying this approach are presented in <xref rid="figure1" ref-type="fig">Figure 1</xref> for one AM as an example and are what motivated us to try to find a better approach to detecting peaks in the ambulatory setting.</p>
        <p>In general, our approach was to (1) use the raw SC data or SC data filtered with an FIR low-pass filter, (2) identify valid versus invalid data using rules established in the literature, (3) decompose the signal into its tonic and phasic components using negative deconvolution, (4) apply a spline-based smoothing technique (eg, B-spline regression or local polynomial regression with AR errors) to the EDA profile, and (5) compute various features of the peaks identified from the smoothed curve. The latter 2 steps, particularly the spline-based approaches, are the unique contributions of this study. Comparisons between different groups of individuals can then be performed on the peak features, if desired.</p>
        <fig id="figure1" position="float">
          <label>Figure 1</label>
          <caption>
            <p>Electrodermal activity peak detection results for the free-play (first 5 min) and teaching (second 5 min) videotaped interaction tasks for one control group mother (patient ID=102) and at baseline and 3-month follow-up assessments. EDA: electrodermal activity.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>iCalm Sensor Band</title>
        <p>The iCalm applies a constant voltage to the skin through 2 silver/silver chloride metal electrodes and measures the resulting current [<xref ref-type="bibr" rid="ref8">8</xref>,<xref ref-type="bibr" rid="ref13">13</xref>]. A transconductance amplifier is used to convert the current to a voltage, which is sampled at a rate of 4 Hz using a 12-bit analog-to-digital converter. Three-axis accelerometry and temperature were sampled at the same rate. The iCalm has been validated against laboratory measures of EDA [<xref ref-type="bibr" rid="ref6">6</xref>]. The iCalm connects via Bluetooth to Android-based mobile phones.</p>
      </sec>
      <sec>
        <title>Participants</title>
        <p>The data were obtained from the aforementioned PSP intervention study of 71 mothers. The EDA values for some mothers were very low, which was primarily because of a lack of contact between the skin and the electrodes. The general guidance in the literature is to discard data in which the EDA is approximately 0 [<xref ref-type="bibr" rid="ref16">16</xref>], as it indicates that the electrodes were not in good contact with the skin. Details regarding these invalid data are given in section Data Preprocessing. Finally, there were 5 AMs who did not return at any of the follow-up assessments and several AMs who had data at one but not both of the follow-up assessment periods; thus, we used 6-month follow-up data if an AM did not have data at the 3-month follow-up. The final sample size numbers are given following discussion of the identification of valid versus invalid data.</p>
      </sec>
      <sec>
        <title>Procedures</title>
        <p>The AMs were interviewed at the TLP in a private room by trained interviewers. The interviews included a survey questionnaire examining demographic and background characteristics; questions regarding mental health, parenting, and risk-taking behaviors; as well as activities described in the <italic>Measures</italic> section. AMs wore the iCalm band on their right wrist throughout the duration of each interview. Following the interview, mothers in the intervention TLPs received the PSP intervention, whereas the control TLPs received standard care [<xref ref-type="bibr" rid="ref12">12</xref>].</p>
      </sec>
      <sec>
        <title>Measures</title>
        <p>Each assessment included the computer-delivered survey, a variety of computerized tasks including the Stroop task, and the 10-min videotaped interaction of mothers with their child. In this analysis, we focused on the Stroop task and the videotaped interaction task. The Stroop task involved reading the written color names independent of the color name that is written as quickly as possible in 1 min. For the videotaped interaction task, the mothers were asked to play with their child as they usually do for the first 5 min, which we will refer to as free play. For the second 5 min of the interaction task, the mothers were asked to teach their child a concept that was slightly above their developmental level. This latter task, which we will refer to as teaching, was intended to be slightly frustrating for the mother and the child. In addition, a physical task (going up and down stairs for approximately 5 min) was only performed at the baseline assessment and only for the intervention group AMs. We examined these data as a comparison task in which there is a lot of movement.</p>
      </sec>
      <sec>
        <title>Data Analysis</title>
        <p>The data analysis for analyzing and comparing the EDA profiles entails several steps described earlier, including preprocessing, smoothing, identifying peaks, computing features of the peaks, and, finally, statistical modeling. In this section, we present the details of these steps with regard to our data. The R code for implementing the analysis is provided in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. To date, software for identifying invalid data, decomposing SC, detecting peaks, and constructing features has been written in either MATLAB or Python. To our knowledge, there are no R packages for handling these tasks.</p>
        <sec>
          <title>Data Preprocessing</title>
          <p><italic>Data preprocessing</italic> involved computing the elapsed time since the beginning of the Stroop and video interaction tasks for each mother at the baseline and follow-up assessments so that both assessments and all AMs would be on the same time scale. Next, we constructed plots of EDA for each mother by task to visualize motion artifacts and loose band connections. For the filtered data, we generated an FIR low-pass filter using the function <italic>fir1</italic> in the R package <italic>signal</italic> and chose the number of coefficients as 16 (ie, the sample rate×4). We considered EDA values that were approximately 0 as invalid, as these usually indicate that the band had a loose connection and did not accurately record EDA [<xref ref-type="bibr" rid="ref5">5</xref>]. These data were removed from both the filtered and raw SC data. We also examined plots of the EDA during the physical task to ensure that, as expected, EDA increased with physical activity and that the band had a good connection. Finally, each mother at each of the baseline and follow-up assessments had differing ranges of EDA values (eg, refer to the y-axis in <xref rid="figure1" ref-type="fig">Figure 1</xref>). Hence, in accordance with standard practice [<xref ref-type="bibr" rid="ref14">14</xref>], we normalized EDA values by the range and distance from the maximum value:</p>
          <graphic xlink:href="biomedeng_v5i1e17106_fig11.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          <p>where the one minus is to correct the sign of the normalized EDA values to be the same as the original EDA values. Next, we used 2 methods for <italic>data smoothing</italic>: FDA with B-splines and local polynomial regression for data with AR errors.</p>
        </sec>
        <sec>
          <title>Functional Data Analysis</title>
          <p>FDA considers the EDA profile as a single entity rather than as a collection of data points. Missing data or unequally spaced measurements are smoothed over. The target function is estimated by a linear combination of basis functions, specifically spline functions (hence the name B-splines) of a specific polynomial order <italic>m.</italic> The entire range of the target function is divided into subintervals at breakpoints called knots. Splines are then fitted in each interval and are adjusted to join the knots to estimate the underlying smoothed function. We also added a penalty on the roughness of the fitted curve, with the tuning parameter chosen by the generalized cross-validation (GCV) index. In addition, the number of knots was chosen by the method proposed by Ruppert [<xref ref-type="bibr" rid="ref17">17</xref>]. We implemented this approach using the <italic>fda</italic> R package to smooth the data and create functional profiles. Specifically, we used the function <italic>create.bspline.basis</italic> to generate B-spline basis functions and then used the functions <italic>fdPar</italic> and <italic>smooth.basis</italic> to produce the fitted functional form as well as the corresponding value for the GCV index. The first 2 derivatives of the estimated function were calculated and saved for future use. The estimated smoothed curve captures the general features of the normalized EDA profile. The results could change significantly for the choice of location of knots and the number of knots. We chose the knots to be equally spaced on the time span, but it is not necessary that they be equally spaced [<xref ref-type="bibr" rid="ref18">18</xref>]. If they are not equally spaced, then the spacing may need to be customized for each individual. For example, knots could be placed more closely together when the EDA profile is changing significantly and placed further apart when the EDA profile does not change as much (ie, when the EDA profile is flat).</p>
        </sec>
        <sec>
          <title>Local Polynomial Regression</title>
          <p><italic>Local polynomial regression with AR errors</italic> is another technique to obtain a smooth estimate of the EDA profile. We applied a version of local linear regression for data with AR errors [<xref ref-type="bibr" rid="ref3">3</xref>] because the EDA data in a profile is longitudinal and from the same individual (hence correlated). This approach assumes that the response variable is the sum of a smoothed unknown function of time and an error term, where the error term follows an AR model with d terms:</p>
          <graphic xlink:href="biomedeng_v5i1e17106_fig12.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          <p>For a fixed <italic>d</italic>, the estimation procedure starts by obtaining an initial estimate <inline-graphic xlink:href="biomedeng_v5i1e17106_fig15.png" xlink:type="simple" mimetype="image"/> by assuming working independence among observations and then calculating the corresponding residuals <inline-graphic xlink:href="biomedeng_v5i1e17106_fig16.png" xlink:type="simple" mimetype="image"/>. The initial estimate <inline-graphic xlink:href="biomedeng_v5i1e17106_fig15.png" xlink:type="simple" mimetype="image"/> is calculated by local linear regression with the plug-in bandwidth selector. The problem can be converted to a partial linear problem as follows:</p>
          <graphic xlink:href="biomedeng_v5i1e17106_fig13.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          <p>and <inline-graphic xlink:href="biomedeng_v5i1e17106_fig17.png" xlink:type="simple" mimetype="image"/> and <inline-graphic xlink:href="biomedeng_v5i1e17106_fig18.png" xlink:type="simple" mimetype="image"/> are estimated by profile least squares. More specifically, we first estimate <inline-graphic xlink:href="biomedeng_v5i1e17106_fig18.png" xlink:type="simple" mimetype="image"/> by the so-called <italic>difference-based method</italic> [<xref ref-type="bibr" rid="ref19">19</xref>] and then derive a local linear smoother on the difference:</p>
          <graphic xlink:href="biomedeng_v5i1e17106_fig14.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          <p>as an estimate of the final <inline-graphic xlink:href="biomedeng_v5i1e17106_fig17.png" xlink:type="simple" mimetype="image"/>. The number of AR terms, <italic>d</italic>, is selected by a penalization method, with the tuning parameter selected by the Bayesian information criterion [<xref ref-type="bibr" rid="ref20">20</xref>]. The local linear approach may not work well in cases where the fitted curve is lower than the actual EDA profile or is influenced by some outliers with extreme values. The local linear regression may also over smooth the fitted curves and therefore miss capturing peaks in the EDA profiles. In these cases, local quadratic regression or local cubic regression may yield better results. We applied both the local quadratic and local cubic regressions, but the fit was similar to the local linear regression; hence, we present only the local linear regression results in the Results section. Other literature [<xref ref-type="bibr" rid="ref15">15</xref>] on analyzing EDA data suggests using a low-pass filter to denoise data first. Thus, we also tried the combination of an FIR low-pass filter and local linear regression as well as using local linear regression alone.</p>
        </sec>
        <sec>
          <title>Identifying Peaks</title>
          <p>Using the smoothed EDA profiles, our interest lies in identifying features related to significant local maxima (ie, peaks). Correct peaks should increase quickly and then decrease more slowly, with large enough rise and drop [<xref ref-type="bibr" rid="ref1">1</xref>]. To identify peaks, we used the first and second derivatives saved earlier during the spline smoothing estimation. The local maxima are locations where the first derivative is 0 and the second derivative is negative. We first found all local maxima and then filtered them by the magnitude of the rises/drops. Specifically, for each local maximum, we identified the nearest local minimum on each side and then calculated the corresponding drop. If both drops are larger than a preset threshold, the local maximum is identified as a peak. The threshold was set to 0.1 [<xref ref-type="bibr" rid="ref1">1</xref>]. There could be an incomplete peak at the right limit of the EDA profile, which we did not identify as a useful peak even if its drop satisfies the 0.1 criterion.</p>
        </sec>
        <sec>
          <title>Computing Features of the Identified Peaks</title>
          <p>To make a comparison between different individuals, we computed the characteristics or features of the identified peaks, including the number of identified peaks, time to the first peak, time to the highest peak, and maximum value (ie, amplitude) at the first peak. Initially, we also considered the area under the entire smoothed curve. However, the actual observed time span for each individual was not exactly the same, although the actual task was designed to last the same amount of time, making the area under the curve (AUC) not very comparable across individuals for a given task. Nevertheless, for data in which the time span is the same for each individual, AUC may be a meaningful feature. For each task, we calculated the abovementioned peak features for each AMs’ EDA profile. The R code for identifying and computing the features of the peaks is provided in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p>
          <p>The final step is statistical modeling using the features of EDA peaks. This step depends, of course, on whether there are groups to be compared and repeated features on the same individual (eg, baseline and postintervention). Thus, any statistical model could potentially be used depending on the characteristics of a particular study.</p>
        </sec>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <p>We began by examining plots of the EDA for each mother by task. Graphical display of the data showed EDA varied both between individuals and within individuals during both tasks. Owing to space, we did not present figures for all the AMs. Instead, we focused on one control group AM (patient ID [PID] 102) and one intervention group AM (PID 202).</p>
      <p>We also examined plots of the EDA data for the physical task for the intervention AMs at baseline. The examination of these plots revealed that the AMs’ EDA increased, as it should (<xref rid="figure2" ref-type="fig">Figure 2</xref> shows an example plot of one mother) during the physical task.</p>
      <fig id="figure2" position="float">
        <label>Figure 2</label>
        <caption>
          <p>Electrodermal activity for physical task at baseline for one intervention group mother. A loess curve has been fit to the data. EDA: electrodermal activity; PID: patient ID.</p>
        </caption>
        <graphic xlink:href="biomedeng_v5i1e17106_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
      </fig>
      <sec>
        <title>Local Polynomial Regression</title>
        <p>Next, we present the results of the local linear regression with AR errors. <xref rid="figure3" ref-type="fig">Figure 3</xref> shows the smoothed function overlaying the normalized EDA values for the baseline and 3-month follow-up assessments for the teaching task for one control group AM. <xref rid="figure4" ref-type="fig">Figure 4</xref> presents the smoothed function overlaying the normalized EDA values for baseline and 3-month follow-up assessments for the free-play task for the same AM, as presented in <xref rid="figure3" ref-type="fig">Figure 3</xref>. In the case of this AM, the smoothed function does not fit the actual peaks in the data very well. Specifically, the smoothed peaks are dampened in comparison with the actual peaks, which creates a problem for identifying peaks because they are defined by their increase/decrease. Even if peaks are identified, some features of the peaks (eg, amplitude) would be dampened in comparison with the actual data. We also tried using an FIR low-pass filter before smoothing with local linear regression for AR errors. However, this did not substantially improve the fit of the estimated functions to the actual data. <xref rid="figure5" ref-type="fig">Figure 5</xref> shows the smoothed function overlaying the normalized EDA values after applying the FIR low-pass filter for the baseline and 3-month follow-up assessments for the teaching task for the same AM, as presented in <xref rid="figure3" ref-type="fig">Figure 3</xref>. The free-play task is presented in <xref rid="figure6" ref-type="fig">Figure 6</xref>. It is evident that the FIR low-pass filter did not change the estimated EDA profiles substantially from the raw SC data. We next attempted smoothing using B-splines to estimate the functional EDA profiles.</p>
        <fig id="figure3" position="float">
          <label>Figure 3</label>
          <caption>
            <p>Local linear regression with autoregressive errors for the teaching task at baseline and 3-month follow-up assessments for one mother (patient ID=102). EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure4" position="float">
          <label>Figure 4</label>
          <caption>
            <p>Local linear regression with autoregressive errors for the free-play task at baseline and 3-month follow-up assessments for one mother. EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig4.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure5" position="float">
          <label>Figure 5</label>
          <caption>
            <p>Local linear regression with autoregressive errors for the teaching task at baseline and 3-month follow-up assessments for one mother after applying a low-pass filter. EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig5.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure6" position="float">
          <label>Figure 6</label>
          <caption>
            <p>Local linear regression with autoregressive errors for the free-play task at baseline and 3-month follow-up assessments for one mother after applying a low-pass filter. EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig6.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Functional Data Analysis</title>
        <p>In implementing the smoothing via B-splines, we used 13 basis functions. We plotted the smoothed versus normalized EDA for each AM, for each task, and for each assessment. The plots for the same AM illustrated in <xref rid="figure3" ref-type="fig">Figures 3</xref> and <xref rid="figure4" ref-type="fig">4</xref> are shown in <xref rid="figure7" ref-type="fig">Figure 7</xref>, left column. The figure illustrates a potential problem with the B-spline approach, which relies on a cubic polynomial. To fit the first peak, the cubic function, by definition, must first increase and then decrease before increasing again. In so doing, the function imposes a false peak just before the actual first peak, and therefore, the function does not fit the actual data well (<xref rid="figure7" ref-type="fig">Figure 7</xref>). A different polynomial could be chosen for fitting the B-splines, but it would also impose a particular functional form that may not fit the actual data well. <xref rid="figure8" ref-type="fig">Figure 8</xref> shows the EDA profiles for the teaching task for the same AM (PID 102), as shown in <xref rid="figure7" ref-type="fig">Figure 7</xref>. In comparison with the local linear regression approach illustrated in <xref rid="figure3" ref-type="fig">Figure 3</xref>, the B-spline approach illustrated in <xref rid="figure8" ref-type="fig">Figure 8</xref> appears to fit at least as well for PID 102. In addition, the B-spline approach fits some individuals better than the local linear regression (not shown). For example, EDA for the free-play task for one intervention group AM is presented in <xref rid="figure9" ref-type="fig">Figure 9</xref>, and EDA for the teaching task for the same AM is presented in <xref rid="figure10" ref-type="fig">Figure 10</xref>. For this AM, the B-spline approach seemed to work well. We will discuss the 2 smoothing approaches further in the <italic>Discussion</italic> section.</p>
        <fig id="figure7" position="float">
          <label>Figure 7</label>
          <caption>
            <p>Electrodermal activity (EDA) for the free-play task at baseline and 3-month follow-up assessments for one mother (patient ID=102). The left column shows the estimated B-spline smoothed function overlaying the normalized EDA values. The right column shows the identified peaks and the values for peak features. The red dashed vertical lines demarcate the first peak, the black dashed vertical lines demarcate the highest peak, and the blue dashed vertical lines demarcate all other identified peaks. AUC: area under the curve; EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig7.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure8" position="float">
          <label>Figure 8</label>
          <caption>
            <p>Electrodermal activity (EDA) for the teaching task at baseline and 3-month follow-up assessments for one mother (patient ID=102). The left column shows the estimated B-spline smoothed function overlaying the normalized EDA values. The right column shows the identified peaks and the values for peak features. The red dashed vertical lines demarcate the first peak, the black dashed vertical lines demarcate the highest peak, and the blue dashed vertical lines demarcate all other identified peaks. AUC: area under the curve; EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig8.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure9" position="float">
          <label>Figure 9</label>
          <caption>
            <p>Electrodermal activity (EDA) for the free-play task at baseline, 3-month, and 6-month assessments for one mother (patient ID=202). The left column shows the estimated B-spline smoothed function overlaying the normalized EDA values. The right column shows the identified peaks and the values for peak features. The red dashed vertical lines demarcate the first peak, the black dashed vertical lines demarcate the highest peak, and the blue dashed vertical lines demarcate all other identified peaks. AUC: area under the curve; EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig9.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure10" position="float">
          <label>Figure 10</label>
          <caption>
            <p>Electrodermal activity (EDA) for the teaching task at baseline, 3-month, and 6-month assessments for one mother (patient ID=202). The left column shows the estimated B-spline smoothed function overlaying the normalized EDA values. The right column shows the identified peaks and the values for peak features. The red dashed vertical lines demarcate the first peak, the black dashed vertical lines demarcate the highest peak, and the blue dashed vertical lines demarcate all other identified peaks. AUC: area under the curve; EDA: electrodermal activity; PID: patient ID.</p>
          </caption>
          <graphic xlink:href="biomedeng_v5i1e17106_fig10.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Computing Features of the Identified Peaks</title>
        <p>Next, we identified peaks and computed various features of the peaks from the estimated EDA profiles. <xref rid="figure7" ref-type="fig">Figure 7</xref> (right column) illustrates the identified peaks and presents the values for the peak features. The red dashed vertical lines demarcate the first peak, the black dashed vertical lines demarcate the highest peak, and the blue dashed vertical lines demarcate all other identified peaks. The time to first peak and the highest peak (both in seconds), the normalized EDA value at the highest peak (ie, amplitude), the drop from the highest peak (ie, reactivity), and the number of peaks are all presented in <xref rid="figure7" ref-type="fig">Figure 7</xref>, right column for one AM. The peaks were identified, and the features were computed for all AMs. These may be saved in a file for statistical analysis. Our sample size was ultimately too small for statistical significance testing between the intervention and control groups (ie, between-subjects), but we present descriptive statistics of the peak features in <xref ref-type="table" rid="table1">Table 1</xref>.</p>
        <table-wrap position="float" id="table1">
          <label>Table 1</label>
          <caption>
            <p>Descriptive statistics for peak features by task among those adolescent mothers with identified peaks.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="30"/>
            <col width="470"/>
            <col width="250"/>
            <col width="250"/>
            <thead>
              <tr valign="top">
                <td colspan="2">Peak feature/task</td>
                <td>Baseline, mean (SD)</td>
                <td>Follow-up<sup>a</sup>, mean (SD)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td colspan="4">
                  <bold>Time to the highest peak (seconds)</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Stroop</td>
                <td>122.14 (63.42)</td>
                <td>103.30 (61.45)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Teaching</td>
                <td>144.29 (87.07)</td>
                <td>123.55 (94.04)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Free play</td>
                <td>201.79 (87.07)</td>
                <td>215.10 (93.17)</td>
              </tr>
              <tr valign="top">
                <td colspan="4">
                  <bold>Value at highest peak (μS)</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Stroop</td>
                <td>0.67 (0.21)</td>
                <td>0.75 (0.21)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Teaching</td>
                <td>0.50 (0.29)</td>
                <td>0.67 (0.22)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Free play</td>
                <td>0.59 (0.26)</td>
                <td>0.48 (0.25)</td>
              </tr>
              <tr valign="top">
                <td colspan="4">
                  <bold>Drop from the highest peak (seconds)</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Stroop</td>
                <td>13.18 (10.76)</td>
                <td>17.91 (18.87)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Teaching</td>
                <td>30.12 (17.49)</td>
                <td>27.90 (43.01)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Free play</td>
                <td>29.86 (24.71)</td>
                <td>27.76 (18.41)</td>
              </tr>
              <tr valign="top">
                <td colspan="4">
                  <bold>Number of peaks</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Stroop</td>
                <td>6.39 (3.34)</td>
                <td>5.13 (3.05)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Teaching</td>
                <td>4.14 (3.51)</td>
                <td>6.86 (3.61)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Free play</td>
                <td>5.59 (2.95)</td>
                <td>5.71 (3.33)</td>
              </tr>
              <tr valign="top">
                <td colspan="4">
                  <bold>Time to the first peak (seconds)</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Stroop</td>
                <td>45.66 (36.14)</td>
                <td>51.49 (49.47)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Teaching</td>
                <td>90.61 (86.08)</td>
                <td>27.73 (18.91)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Free play</td>
                <td>95.78 (69.93)</td>
                <td>81.25 (90.94)</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table1fn1">
              <p><sup>a</sup>Note that follow-up is at 3 months unless it was missing, in which case, the 6-month follow-up assessment for that individual was used (n=23 adolescent mothers [AMs] for the Stroop task, n=14 AMs for the teaching task at both baseline and follow-up, and n=17 AMs for the free-play task at both baseline and follow-up).</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <p>Our goal was to present 2 approaches for smoothing and summarizing EDA data by identifying EDA peaks and computing features of those peaks, including the number of peaks, time to first peak, time to highest peak, amplitude of the highest peak, and the time it takes to drop from the highest peak (ie, reactivity). These are certainly not all the features that could be constructed; rather, these are the ones that we thought may be most informative based on the laboratory EDA literature. It is quite possible that other features might be more interesting for ambulatory EDA. Similarly, the approaches we presented for smoothing the data are not the only 2 options [<xref ref-type="bibr" rid="ref15">15</xref>,<xref ref-type="bibr" rid="ref16">16</xref>]. Future research needs to examine other possible smoothing methods because the 2 approaches we used did not fit some individuals very well. On the other hand, there may be data for which these methods will fit better than others, as it really depends on the characteristics of a particular dataset. Even within our own data, we found instances where one approach fits the data better than the other and vice versa. Smoothing, identification, and construction of peak features are dependent on data quality.</p>
      <p>A larger issue with regard to the use of EDA data for measuring stress, particularly in the ambulatory setting, is the degree to which it is an ecologically valid measure of stress. In the ambulatory setting, it is particularly difficult to distinguish emotional arousal from, for example, hand motions. It may be that the 2 of these are correlated to some degree because if people are emotionally aroused while talking, they may be moving their hands around a lot. Although the device contains an accelerometer, this does not entirely solve this problem. Other devices have been proposed for assessing stress that do not involve EDA. For example, the cStress device triangulates on stress by measuring respiration and heart rate variability via a chest strap [<xref ref-type="bibr" rid="ref21">21</xref>]. On the other hand, a chest strap device is not as appealing as a wrist-worn device for most participants. Nevertheless, as the technology for the measurement of ambulatory EDA improves, the longitudinal measurement of EDA may have significant clinical implications, as providers and patients can review patterns of arousal that correspond to particular environmental stressors at specific times of day and help patients plan strategies for dealing with these stressors [<xref ref-type="bibr" rid="ref22">22</xref>]. Similarly, the measurement of EDA may enable better stress management in the workplace, particularly in highly stressful occupations [<xref ref-type="bibr" rid="ref23">23</xref>].</p>
      <sec>
        <title>Limitations</title>
        <p>As mentioned previously, a lot of data were lost because the electrodes did not have a good connection with the skin, which resulted in EDA values that were approximately 0. Thus, the first lesson is to make sure that there is a good connection between the dry electrodes on the device and the skin. This means that the electrodes must be touching the skin on the ventral side of the wrist, which means that the device must be fairly tight on the wrist. People often do not wear watches, bands, or bracelets as tight as is necessary for the EDA device. Therefore, we suggest real-time monitoring of incoming EDA data so that if all the values are approximately 0, the participant could be contacted to inform them to tighten the device. Note that simply detecting that data are not being recorded in real time is not enough; there must be real-time detection of data that is being recorded but is essentially 0. Some of our EDA data were not usable because the band lost contact with the skin during some tasks, particularly early in the interview. By <italic>loose connection</italic>, we mean that the electrodes on the band did not have a good connection with the skin. We do not mean that the band was not connected in terms of recording the EDA. If the band was not recording, then EDA was missing at that particular measurement. This did happen sometimes but not enough to present a problem, particularly because we were able to smooth over it using the proposed smoothing approaches. It should be noted that the loose connection problem is not limited to the particular device, the iCalm, that we used. Empatica E4 also has this problem, as we have used it in a pilot study [<xref ref-type="bibr" rid="ref24">24</xref>] and lost data because of a loose connection. Other studies using wrist-based ambulatory measures of EDA with the Affectiva Q Sensor have reported greater success [<xref ref-type="bibr" rid="ref25">25</xref>,<xref ref-type="bibr" rid="ref26">26</xref>] in both controlled and uncontrolled settings. However, other studies using the Affectiva Q sensor have reported data lost to electrode connection problems (eg, 31% [<xref ref-type="bibr" rid="ref14">14</xref>] and 17% [<xref ref-type="bibr" rid="ref22">22</xref>]). A total of 22.5% of data were lost because of electrode connection problems for the free-play task and 24% for the teaching task.</p>
        <p>Owing to the loose connection problems during data collection, our sample size was substantially reduced, which limits our ability to draw conclusions about the between-subject effects of the intervention on the features constructed from the EDA data. Nevertheless, we think it is important to draw attention to data collection challenges as the measurement of ambulatory EDA has become more popular. In addition, researchers currently collecting EDA data have limited guidance on how to preprocess the data before statistical analysis.</p>
        <p>A second challenge in EDA data collection is motion artifacts. These are identifiable as sharp spikes or drops in EDA data. One concern with the free-play task is that there were many more potential motion artifacts than there were in the teaching task because the AMs may have been moving around more during the free-play task. Another issue that may sometimes occur is that the EDA during the current task could be affected by the EDA response to the previous task. In our study, we tried to minimize this by having recovery periods between tasks, but, of course, there is no guarantee that the recovery periods were long enough. An individual’s EDA does not always return to the previous baseline, so it can be difficult to assess if the recovery period is long enough.</p>
      </sec>
      <sec>
        <title>Conclusions</title>
        <p>In summary, in light of the increase in wearables for the continuous, ambulatory collection of EDA and associated challenges collecting data outside of the laboratory, analytic methods for computing various features of EDA are needed to help meet these challenges. We described 2 methods for smoothing and summarizing EDA data using FDA and local polynomial regression with AR errors. As the technology of wearable devices continues to advance, future research opportunities abound for improvement in device design that may improve the electrodes and their connection with the skin and facilitate in the development of improved methods for smoothing the data, identifying peaks, and constructing features.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group>
      <supplementary-material id="app1">
        <label>Multimedia Appendix 1</label>
        <p>R code for conducting the functional data analysis with B-splines and the local polynomial regression with autoregressive errors.</p>
        <media xlink:href="biomedeng_v5i1e17106_app1.docx" xlink:title="DOCX File , 27 KB"/>
      </supplementary-material>
    </app-group>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">AMs</term>
          <def>
            <p>adolescent mothers</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">AR</term>
          <def>
            <p>autoregressive</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">AUC</term>
          <def>
            <p>area under the curve</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb4">EDA</term>
          <def>
            <p>electrodermal activity</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb5">FDA</term>
          <def>
            <p>functional data analysis</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb6">FIR</term>
          <def>
            <p>finite impulse response</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb7">GCV</term>
          <def>
            <p>generalized cross-validation</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb8">NIDA</term>
          <def>
            <p>National Institute on Drug Abuse</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb9">NIEHS</term>
          <def>
            <p>National Institute on Environmental Health Sciences</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb10">PI</term>
          <def>
            <p>principal investigator</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb11">PID</term>
          <def>
            <p>patient ID</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb12">PSP</term>
          <def>
            <p>Power Source Parenting</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb13">SC</term>
          <def>
            <p>skin conductance</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb14">SCL</term>
          <def>
            <p>skin conductance level</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb15">SCR</term>
          <def>
            <p>skin conductance response</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb16">SVM</term>
          <def>
            <p>support vector machine</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb17">TLP</term>
          <def>
            <p>transitional living program</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <ack>
      <p>This study was supported by the National Institute on Drug Abuse (NIDA) Grant R34 DA032960 (principal investigator [PI]: NL) and the National Institute on Environmental Health Sciences (NIEHS) K01 ES025437 (PI: DC). The content is solely the responsibility of the authors and does not necessarily represent the official views of the NIDA, the NIEHS, or the National Institutes of Health.</p>
    </ack>
    <fn-group>
      <fn fn-type="conflict">
        <p>None declared.</p>
      </fn>
    </fn-group>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Boucsein</surname>
              <given-names>W</given-names>
            </name>
          </person-group>
          <source>Electrodermal activity. 2nd edition</source>
          <year>2012</year>
          <publisher-loc>New York</publisher-loc>
          <publisher-name>Springer</publisher-name>
        </nlm-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ramsay</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Silverman</surname>
              <given-names>B</given-names>
            </name>
          </person-group>
          <source>Functional Data Analysis</source>
          <year>2005</year>
          <publisher-loc>Hoboken, New Jersey</publisher-loc>
          <publisher-name>John Wiley &amp; Sons, Inc</publisher-name>
        </nlm-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Li</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Local linear regression for data with AR errors</article-title>
          <source>Acta Math Appl Sin</source>
          <year>2009</year>
          <month>07</month>
          <day>1</day>
          <volume>25</volume>
          <issue>3</issue>
          <fpage>427</fpage>
          <lpage>44</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/20161374"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s10255-008-8813-3</pub-id>
          <pub-id pub-id-type="medline">20161374</pub-id>
          <pub-id pub-id-type="pmcid">PMC2779551</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref4">
        <label>4</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Boucsein</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Fowles</surname>
              <given-names>DC</given-names>
            </name>
            <name name-style="western">
              <surname>Grimnes</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Ben-Shakhar</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Roth</surname>
              <given-names>WT</given-names>
            </name>
            <name name-style="western">
              <surname>Dawson</surname>
              <given-names>ME</given-names>
            </name>
            <name name-style="western">
              <surname>Filion</surname>
              <given-names>DL</given-names>
            </name>
            <collab>Society for Psychophysiological Research Ad Hoc Committee on Electrodermal Measures</collab>
          </person-group>
          <article-title>Publication recommendations for electrodermal measurements</article-title>
          <source>Psychophysiology</source>
          <year>2012</year>
          <month>08</month>
          <volume>49</volume>
          <issue>8</issue>
          <fpage>1017</fpage>
          <lpage>34</lpage>
          <pub-id pub-id-type="doi">10.1111/j.1469-8986.2012.01384.x</pub-id>
          <pub-id pub-id-type="medline">22680988</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Doberenz</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Roth</surname>
              <given-names>WT</given-names>
            </name>
            <name name-style="western">
              <surname>Wollburg</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Maslowski</surname>
              <given-names>NI</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Methodological considerations in ambulatory skin conductance monitoring</article-title>
          <source>Int J Psychophysiol</source>
          <year>2011</year>
          <month>05</month>
          <volume>80</volume>
          <issue>2</issue>
          <fpage>87</fpage>
          <lpage>95</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/21320551"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.ijpsycho.2011.02.002</pub-id>
          <pub-id pub-id-type="medline">21320551</pub-id>
          <pub-id pub-id-type="pii">S0167-8760(11)00052-3</pub-id>
          <pub-id pub-id-type="pmcid">PMC3075336</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Poh</surname>
              <given-names>MZ</given-names>
            </name>
            <name name-style="western">
              <surname>Swenson</surname>
              <given-names>NC</given-names>
            </name>
            <name name-style="western">
              <surname>Picard</surname>
              <given-names>RW</given-names>
            </name>
          </person-group>
          <article-title>A wearable sensor for unobtrusive, long-term assessment of electrodermal activity</article-title>
          <source>IEEE Trans Biomed Eng</source>
          <year>2010</year>
          <month>05</month>
          <volume>57</volume>
          <issue>5</issue>
          <fpage>1243</fpage>
          <lpage>52</lpage>
          <pub-id pub-id-type="doi">10.1109/tbme.2009.2038487</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref7">
        <label>7</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zangróniz</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Martínez-Rodrigo</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Pastor</surname>
              <given-names>JM</given-names>
            </name>
            <name name-style="western">
              <surname>López</surname>
              <given-names>MT</given-names>
            </name>
            <name name-style="western">
              <surname>Fernández-Caballero</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Electrodermal activity sensor for classification of calm/distress condition</article-title>
          <source>Sensors (Basel)</source>
          <year>2017</year>
          <month>10</month>
          <day>12</day>
          <volume>17</volume>
          <issue>10</issue>
          <fpage>-</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=s17102324"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/s17102324</pub-id>
          <pub-id pub-id-type="medline">29023403</pub-id>
          <pub-id pub-id-type="pii">s17102324</pub-id>
          <pub-id pub-id-type="pmcid">PMC5677183</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref8">
        <label>8</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Fletcher</surname>
              <given-names>RR</given-names>
            </name>
            <name name-style="western">
              <surname>Dobson</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Goodwin</surname>
              <given-names>MS</given-names>
            </name>
            <name name-style="western">
              <surname>Eydgahi</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Wilder-Smith</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Fernholz</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Kuboyama</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Hedman</surname>
              <given-names>EB</given-names>
            </name>
            <name name-style="western">
              <surname>Poh</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Picard</surname>
              <given-names>RW</given-names>
            </name>
          </person-group>
          <article-title>iCalm: wearable sensor and network architecture for wirelessly communicating and logging autonomic activity</article-title>
          <source>IEEE Trans Inf Technol Biomed</source>
          <year>2010</year>
          <month>03</month>
          <volume>14</volume>
          <issue>2</issue>
          <fpage>215</fpage>
          <lpage>23</lpage>
          <pub-id pub-id-type="doi">10.1109/TITB.2009.2038692</pub-id>
          <pub-id pub-id-type="medline">20064760</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref9">
        <label>9</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Benedek</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kaernbach</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>Decomposition of skin conductance data by means of nonnegative deconvolution</article-title>
          <source>Psychophysiology</source>
          <year>2010</year>
          <month>07</month>
          <day>1</day>
          <volume>47</volume>
          <issue>4</issue>
          <fpage>647</fpage>
          <lpage>58</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://dx.doi.org/10.1111/j.1469-8986.2009.00972.x"/>
          </comment>
          <pub-id pub-id-type="doi">10.1111/j.1469-8986.2009.00972.x</pub-id>
          <pub-id pub-id-type="medline">20230512</pub-id>
          <pub-id pub-id-type="pii">PSYP972</pub-id>
          <pub-id pub-id-type="pmcid">PMC2904901</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref10">
        <label>10</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Benedek</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kaernbach</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>A continuous measure of phasic electrodermal activity</article-title>
          <source>J Neurosci Methods</source>
          <year>2010</year>
          <month>06</month>
          <day>30</day>
          <volume>190</volume>
          <issue>1</issue>
          <fpage>80</fpage>
          <lpage>91</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0165-0270(10)00233-5"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.jneumeth.2010.04.028</pub-id>
          <pub-id pub-id-type="medline">20451556</pub-id>
          <pub-id pub-id-type="pii">S0165-0270(10)00233-5</pub-id>
          <pub-id pub-id-type="pmcid">PMC2892750</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref11">
        <label>11</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lim</surname>
              <given-names>CL</given-names>
            </name>
            <name name-style="western">
              <surname>Rennie</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Barry</surname>
              <given-names>RJ</given-names>
            </name>
            <name name-style="western">
              <surname>Bahramali</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Lazzaro</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Manor</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Gordon</surname>
              <given-names>E</given-names>
            </name>
          </person-group>
          <article-title>Decomposing skin conductance into tonic and phasic components</article-title>
          <source>Int J Psychophysiol</source>
          <year>1997</year>
          <month>02</month>
          <volume>25</volume>
          <issue>2</issue>
          <fpage>97</fpage>
          <lpage>109</lpage>
          <pub-id pub-id-type="doi">10.1016/s0167-8760(96)00713-1</pub-id>
          <pub-id pub-id-type="medline">9101335</pub-id>
          <pub-id pub-id-type="pii">S0167-8760(96)00713-1</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref12">
        <label>12</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Leonard</surname>
              <given-names>NR</given-names>
            </name>
            <name name-style="western">
              <surname>Casarjian</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Fletcher</surname>
              <given-names>RR</given-names>
            </name>
            <name name-style="western">
              <surname>Praia</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Sherpa</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Kelemen</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Rajan</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Salaam</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Cleland</surname>
              <given-names>CM</given-names>
            </name>
            <name name-style="western">
              <surname>Gwadz</surname>
              <given-names>MV</given-names>
            </name>
          </person-group>
          <article-title>Theoretically-based emotion regulation strategies using a mobile app and wearable sensor among homeless adolescent mothers: acceptability and feasibility study</article-title>
          <source>JMIR Pediatr Parent</source>
          <year>2018</year>
          <volume>1</volume>
          <issue>1</issue>
          <fpage>e1</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://pediatrics.jmir.org/2018/1/e1/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/pediatrics.9037</pub-id>
          <pub-id pub-id-type="medline">30637376</pub-id>
          <pub-id pub-id-type="pmcid">PMC6326370</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref13">
        <label>13</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Rajan</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Leonard</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Fletcher</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Casarjian</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Casarjian</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Cisse</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Gwadz</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Ambulatory autonomic activity monitoring among at-risk adolescent mothers</article-title>
          <source>J Mob Technol Med</source>
          <year>2012</year>
          <volume>1</volume>
          <issue>3</issue>
          <fpage>25</fpage>
          <lpage>31</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/23626657"/>
          </comment>
          <pub-id pub-id-type="doi">10.7309/jmtm.19</pub-id>
          <pub-id pub-id-type="medline">23626657</pub-id>
          <pub-id pub-id-type="pmcid">PMC3634597</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hernandez</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Riobo</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Rozga</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Abowd</surname>
              <given-names>GD</given-names>
            </name>
            <name name-style="western">
              <surname>Picard</surname>
              <given-names>RW</given-names>
            </name>
          </person-group>
          <article-title>Using Electrodermal Activity to Recognize Ease of Engagement in Children During Social Interactions</article-title>
          <source>Proceedings of the International Conference on Ubiquitous Computing</source>
          <year>2014</year>
          <conf-name>UbiComp '14</conf-name>
          <conf-date>September, 2014</conf-date>
          <conf-loc>Seattle Washington</conf-loc>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://dl.acm.org/doi/proceedings/10.1145/2632048"/>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Taylor</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Jaques</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Fedor</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Sano</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Picard</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>Automatic Identification of Artifacts in Electrodermal Activity Data</article-title>
          <source>37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society</source>
          <year>2015</year>
          <conf-name>EMBC'15</conf-name>
          <conf-date>August 25-29, 2015</conf-date>
          <conf-loc>Milan, Italy</conf-loc>
          <pub-id pub-id-type="doi">10.1109/embc.2015.7318762</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kleckner</surname>
              <given-names>IR</given-names>
            </name>
            <name name-style="western">
              <surname>Jones</surname>
              <given-names>RM</given-names>
            </name>
            <name name-style="western">
              <surname>Wilder-Smith</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Wormwood</surname>
              <given-names>JB</given-names>
            </name>
            <name name-style="western">
              <surname>Akcakaya</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Quigley</surname>
              <given-names>KS</given-names>
            </name>
            <name name-style="western">
              <surname>Lord</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Goodwin</surname>
              <given-names>MS</given-names>
            </name>
          </person-group>
          <article-title>Simple, transparent, and flexible automated quality assessment procedures for ambulatory electrodermal activity data</article-title>
          <source>IEEE Trans Biomed Eng</source>
          <year>2018</year>
          <month>07</month>
          <volume>65</volume>
          <issue>7</issue>
          <fpage>1460</fpage>
          <lpage>7</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/28976309"/>
          </comment>
          <pub-id pub-id-type="doi">10.1109/TBME.2017.2758643</pub-id>
          <pub-id pub-id-type="medline">28976309</pub-id>
          <pub-id pub-id-type="pmcid">PMC5880745</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ruppert</surname>
              <given-names>D</given-names>
            </name>
          </person-group>
          <article-title>Selecting the number of knots for penalized splines</article-title>
          <source>J Comput Graph Stat</source>
          <year>2012</year>
          <month>01</month>
          <volume>11</volume>
          <issue>4</issue>
          <fpage>735</fpage>
          <lpage>57</lpage>
          <pub-id pub-id-type="doi">10.1198/106186002853</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tan</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Shiyko</surname>
              <given-names>MP</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Dierker</surname>
              <given-names>L</given-names>
            </name>
          </person-group>
          <article-title>A time-varying effect model for intensive longitudinal data</article-title>
          <source>Psychol Methods</source>
          <year>2012</year>
          <month>03</month>
          <volume>17</volume>
          <issue>1</issue>
          <fpage>61</fpage>
          <lpage>77</lpage>
          <pub-id pub-id-type="doi">10.1037/a0025814</pub-id>
          <pub-id pub-id-type="medline">22103434</pub-id>
          <pub-id pub-id-type="pii">2011-26979-001</pub-id>
          <pub-id pub-id-type="pmcid">PMC3288551</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Fan</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>An overview on nonparametric and semiparametric techniques for longitudinal data</article-title>
          <source>Front Stat</source>
          <year>2006</year>
          <fpage>277</fpage>
          <lpage>303</lpage>
          <pub-id pub-id-type="doi">10.1142/9781860948886_0013</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref20">
        <label>20</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Schwarz</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Estimating the dimension of a model</article-title>
          <source>Ann Statist</source>
          <year>1978</year>
          <month>03</month>
          <volume>6</volume>
          <issue>2</issue>
          <fpage>461</fpage>
          <lpage>4</lpage>
          <pub-id pub-id-type="doi">10.1214/aos/1176344136</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hovsepian</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>al'Absi</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Ertin</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Kamarck</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Nakajima</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kumar</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>cStress: towards a gold standard for continuous stress assessment in the mobile environment</article-title>
          <source>Proc ACM Int Conf Ubiquitous Comput</source>
          <year>2015</year>
          <month>09</month>
          <volume>2015</volume>
          <fpage>493</fpage>
          <lpage>504</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/26543926"/>
          </comment>
          <pub-id pub-id-type="doi">10.1145/2750858.2807526</pub-id>
          <pub-id pub-id-type="medline">26543926</pub-id>
          <pub-id pub-id-type="pmcid">PMC4631393</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref22">
        <label>22</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sano</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Taylor</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>McHill</surname>
              <given-names>AW</given-names>
            </name>
            <name name-style="western">
              <surname>Phillips</surname>
              <given-names>AJ</given-names>
            </name>
            <name name-style="western">
              <surname>Barger</surname>
              <given-names>LK</given-names>
            </name>
            <name name-style="western">
              <surname>Klerman</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Picard</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>Identifying objective physiological markers and modifiable behaviors for self-reported stress and mental health status using wearable sensors and mobile phones: observational study</article-title>
          <source>J Med Internet Res</source>
          <year>2018</year>
          <month>06</month>
          <day>8</day>
          <volume>20</volume>
          <issue>6</issue>
          <fpage>e210</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.jmir.org/2018/6/e210/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/jmir.9410</pub-id>
          <pub-id pub-id-type="medline">29884610</pub-id>
          <pub-id pub-id-type="pii">v20i6e210</pub-id>
          <pub-id pub-id-type="pmcid">PMC6015266</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref23">
        <label>23</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Furberg</surname>
              <given-names>RD</given-names>
            </name>
            <name name-style="western">
              <surname>Taniguchi</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Aagaard</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Ortiz</surname>
              <given-names>AM</given-names>
            </name>
            <name name-style="western">
              <surname>Hegarty-Craver</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Gilchrist</surname>
              <given-names>KH</given-names>
            </name>
            <name name-style="western">
              <surname>Ridenour</surname>
              <given-names>TA</given-names>
            </name>
          </person-group>
          <article-title>Biometrics and policing: a protocol for multichannel sensor data collection and exploratory analysis of contextualized psychophysiological response during law enforcement operations</article-title>
          <source>JMIR Res Protoc</source>
          <year>2017</year>
          <month>03</month>
          <day>17</day>
          <volume>6</volume>
          <issue>3</issue>
          <fpage>e44</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.researchprotocols.org/2017/3/e44/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/resprot.7499</pub-id>
          <pub-id pub-id-type="medline">28314707</pub-id>
          <pub-id pub-id-type="pii">v6i3e44</pub-id>
          <pub-id pub-id-type="pmcid">PMC5375974</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref24">
        <label>24</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Leonard</surname>
              <given-names>NR</given-names>
            </name>
            <name name-style="western">
              <surname>Silverman</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Sherpa</surname>
              <given-names>DP</given-names>
            </name>
            <name name-style="western">
              <surname>Naegle</surname>
              <given-names>MA</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Coffman</surname>
              <given-names>DL</given-names>
            </name>
            <name name-style="western">
              <surname>Ferdschneider</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Mobile health technology using a wearable sensorband for female college students with problem drinking: an acceptability and feasibility study</article-title>
          <source>JMIR Mhealth Uhealth</source>
          <year>2017</year>
          <month>07</month>
          <day>7</day>
          <volume>5</volume>
          <issue>7</issue>
          <fpage>e90</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://mhealth.jmir.org/2017/7/e90/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/mhealth.7399</pub-id>
          <pub-id pub-id-type="medline">28687533</pub-id>
          <pub-id pub-id-type="pii">v5i7e90</pub-id>
          <pub-id pub-id-type="pmcid">PMC5522582</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref25">
        <label>25</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Carreiro</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Fang</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Wittbold</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Weng</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Mullins</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Smelson</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Boyer</surname>
              <given-names>EW</given-names>
            </name>
          </person-group>
          <article-title>IMStrong: deployment of a biosensor system to detect cocaine use</article-title>
          <source>J Med Syst</source>
          <year>2015</year>
          <month>12</month>
          <volume>39</volume>
          <issue>12</issue>
          <fpage>186</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/26490144"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s10916-015-0337-9</pub-id>
          <pub-id pub-id-type="medline">26490144</pub-id>
          <pub-id pub-id-type="pii">10.1007/s10916-015-0337-9</pub-id>
          <pub-id pub-id-type="pmcid">PMC4888957</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref26">
        <label>26</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Quick</surname>
              <given-names>JA</given-names>
            </name>
            <name name-style="western">
              <surname>Bukoski</surname>
              <given-names>AD</given-names>
            </name>
            <name name-style="western">
              <surname>Doty</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Bennett</surname>
              <given-names>BJ</given-names>
            </name>
            <name name-style="western">
              <surname>Crane</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Barnes</surname>
              <given-names>SL</given-names>
            </name>
          </person-group>
          <article-title>Objective measurement of clinical competency in surgical education using electrodermal activity</article-title>
          <source>J Surg Educ</source>
          <year>2017</year>
          <volume>74</volume>
          <issue>4</issue>
          <fpage>674</fpage>
          <lpage>80</lpage>
          <pub-id pub-id-type="doi">10.1016/j.jsurg.2017.01.007</pub-id>
          <pub-id pub-id-type="medline">28373078</pub-id>
          <pub-id pub-id-type="pii">S1931-7204(17)30021-1</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
