Original Paper
Abstract
Background: Stress is a risk factor associated with physiological and mental health problems. Unobtrusive, continuous stress sensing would enable precision health monitoring and proactive interventions, but current sensing methods are often inconvenient, expensive, or suffer from limited adherence. Prior work has shown the possibility to detect acute stress using biomechanical models derived from passive logging of computer input devices.
Objective: Our objective is to detect acute stress from passive movement measurements of everyday interactions on a laptop trackpad: (1) click, (2) steer, and (3) drag and drop.
Methods: We built upon previous work, detecting acute stress through the biomechanical analyses of canonical computer mouse interactions and extended it to study similar interactions with the trackpad. A total of 18 participants carried out 40 trials each of three different types of movement—(1) click, (2) steer, and (3) drag and drop—under both relaxed and stressed conditions.
Results: The mean and SD of the contact area under the finger were higher when clicking trials were performed under stressed versus relaxed conditions (mean area: P=.009, effect size=0.76; SD area: P=.01, effect size=0.69). Further, our results show that as little as 4 clicks on a trackpad can be used to detect binary levels of acute stress (ie, whether it is present or not).
Conclusions: We present evidence that scalable, inexpensive, and unobtrusive stress sensing can be done via repurposing passive monitoring of computer trackpad usage.
doi:10.2196/22743
Keywords
Introduction
Overview
Several health risks such as cardiovascular disease and immune deficiencies, which can diminish the quality of life and shorten life expectancy [
], are linked to repetitive daily acute stress (ie, short-term response to a perceived threat or challenge [ , ]). Stress can also have a profound impact on cognitive and emotional well-being. Advances in wearable technology enable affective and cognitive state measurements. Still, wearable devices can suffer from high attrition and low adoption, in general, and getting stable stress measurements “in the wild” (eg, heart rate variability [HRV] and electrodermal activity [EDA]) remains challenging.Previous lab studies have shown that data from interactions with everyday devices, such as computer mouse movements, keyboard pressure, smartphone touch, and key swipes, or even the steering wheel of a car, can be used in an unobtrusive and scalable way to detect the presence of acute stress [
- ]. To the best of our knowledge, this paper presents the first work showing the feasibility of detecting acute stress from interactions with laptop computer trackpads.There are several billion personal computing devices (PCDs) deployed in the world, and this number increases by around 300 million every year [
]. Laptops, or notebooks, represent the largest (42%) and the fastest-growing segment [ ] among PCDs. Most laptop users prefer the trackpad over an external mouse, for improved mobility or due to space limitations. Investigating biomechanics and motor control of finger dynamics during trackpad use can lead to reliable detection of acute stress, especially for long-term unobtrusive continuous monitoring. We propose two research questions (RQs):- RQ1: Can we assess differences between stress versus relaxation through changes in the damping ratio (Γ) and damping frequency (ω) of a mass-spring-damper (MSD) model derived from finger strokes on a laptop trackpad, similar to our previous study on a computer mouse [ ]?
- RQ2: Are there differences between stress and relaxation in other metrics of finger dynamics, such as contact area, velocity, and acceleration, which are theoretically linked to muscle tension?
We conducted a within-subjects study (N=18) counterbalancing relaxed and stressed conditions. Subjects performed 40 trials each of three canonical computer tasks using a trackpad, namely, clicking, steering, and drag and drop (see
and ), similar to what Sun et al did with a computer mouse [ ]. We focused our analyses on metrics derived from finger dynamics. Our results confirm a significantly higher mean and SD of the contact area under the finger for the tasks performed under stress compared to relaxed conditions, even among the initial 10% of the data (ie, 4 out of 40 clicks) from clicking trials. To the best of our knowledge, this is the first systematic study that links acute stress to finger strokes on the trackpad of a laptop device.Task type | Distance by configuration, pixels | Width by configuration, pixels | ||||||||||
1 | 2 | 3 | 4 | 5 | 1 | 2 | 3 | 4 | ||||
Click | 64 | 128 | 256 | 512 | 1024 | 8 | 16 | 32 | 64 | |||
Drag and drop | 64 | 128 | 256 | 512 | 1024 | 16 | 32 | 64 | 128 | |||
Steer | 64 | 128 | 256 | 512 | 1024 | 8 | 16 | 32 | 64 |
Background
Stress Measurements
Stress can be measured via self-reports or physiological signals. Self-reported stress (SRS) can be measured through the Perceived Stress Scale (PSS) [
, ]. Typically, a simplified version with a single 11-item scale of stress, ranging from 0 to 10, is used in repeated-measure studies [ , ]. Although subjective responses are commonly used, they are not precise and suffer from response bias and noncompliance [ ], making them impractical for long-term monitoring.Complementarily, physiological measurement of stress can be done by an indirect observation of the autonomic nervous system (ANS) signal [
]. A popular metric is EDA [ , ]. EDA, formerly known as the galvanic skin response, is a measurement of skin conductance due to the activation of the eccrine sweat glands, which are only innervated by the sympathetic nervous system (SNS). The SNS is one of the branches of the ANS linked to the “fight or flight” response, the coordinated response by the body organs to a threat signal (ie, stressor). High average levels and an increase in skin conductance responses (SCRs) (ie, the number of EDA peaks) are associated with stress [ ]. Another popular measure is HRV, which is the measurement of the time variation between R-R peaks of an electrocardiogram (ECG) signal due to the sinusoidal arrhythmia [ ]. EDA and ECG can be obtained in ambulatory settings using wearable devices. However, these sensors are obtrusive, leading to dropout, and are also affected by motion artifacts. In this paper, we validated our stressor with SRS and EDA.Links Between Stress, Motor Control, and Muscle Tension
Previous research suggests that hormones and neurotransmitters released during heightened stress arousal can influence motor output [
]. Noteboom et al [ ] carried out a precision task that required a submaximal isometric pinch grip. Their research found that the steadiness in electromyography (EMG) activity in the first dorsal interosseous (FDI) muscle of the hand (see ), and the flexor digitorum superficialis muscle of the forearm, was increased during stress, especially in those with moderate anxiety trait compared to those with low anxiety trait. Laidlaw et al [ ] measured the motor unit activity using intramuscular EMG recordings in the FDI during a pinch grip task. They concluded that increased variability of motor unit discharge is associated with reductions in steadiness. Coombes et al [ ] showed that the force production in wrist and finger extensor muscles was increased during continuous exposure to unpleasant stimuli, compared to neutral stimuli, for a voluntary bimanual maximal isometric contraction task. Arnich et al [ ] showed that nervous or anxious individuals have higher levels of movement variability while sitting (ie, a higher center of pressure dispersion on the seat). These studies provide evidence on how acute stress can influence variability while performing a motor task.Additionally, various studies have shown that acute mental stress increases muscle tension in the neck, forehead, and arms [
- ]. The shoulder's trapezius muscle [ ], as well as biceps and triceps [ ], have shown direct changes due to mental arithmetic tasks. In this study, we used two types of biomechanical metrics: those that are influenced by changes in muscle tension and motor control variability due to stress.Effects of Stress on the Manipulation of Computer Input Devices
Sun et al [
] showed a direct correlation between stress, muscle tension, and movement of a computer mouse by approximating the mouse movement trajectories as a step response of an MSD system. They calculated the Γ and ω, both of which were higher under stress. Hernandez et al showed a higher contact area with the surface of a capacitive mouse under stressful conditions compared to relaxed conditions [ ]. Wahlstrom et al [ ] showed that muscle activity in the right extensor digitorum (ED) and right trapezius muscles were greater in stressed situations evoked by time pressure and verbal provocation while working with a computer mouse. Carneiro et al [ ] showed that acceleration and mean and maximum intensity (aka, pressure) of touch when interacting with touchscreen devices were higher under stressful conditions. While not the same as stress, Gao et al [ ] showed that the velocity and contact area of the finger strokes during the frustrated state in comparison to the relaxed state were among the main features used in a machine learning (ML) prediction model of frustration during game-playing interactions on an iPod. To the best of our knowledge, there is no prior research on systematic stress detection using finger dynamics during laptop trackpad use.Biomechanics of Trackpad Versus Mouse Usage
It is important to understand the biomechanical differences between trackpad and mouse use [
]. Direct comparisons between methods and metrics used with a computer mouse may not be feasible for a trackpad. Mouse use primarily triggers the large trapezius muscles for moving the entire arm leading to horizontal and vertical movement of the cursor on the screen [ ]. Although both mouse and trackpad movements use the ED muscle for clicking, trackpad displacement mainly involves the rather small FDI hand muscle [ ]. shows the relative sizes of the muscles of the arm and hand.In comparison to the trackpad, mouse use induces larger shoulder abduction and smaller elbow flexion [
]. Trackpad use requires a more static posture of the upper arm to maintain stabilization of the hand but a more rigorous movement of fingers [ ]. Stress detection via an approximation of muscle tension [ ] benefits from more muscle activity. However, the absolute level of muscle activity in the FDI during trackpad usage is low compared to that in the bigger trapezius muscle during computer mouse usage [ , ]. As a result, it could be hard to rely on muscle tension and stiffness to infer stress using trackpad versus mouse data [ , ].Methods
Subjects
We recruited 22 subjects (10 males [45%] and 12 females [55%]), with ages ranging from 19 to 68 (mean 37, SD 16), not screened for preferences in using a computer mouse or trackpad. We eliminated 4 subjects for whom our stressor did not have any effect on SRS, leaving a total of 18 subjects (8 males [44%] and 10 females [56%]). Of the remaining 18 subjects, 11 (61%) reported using a computer mouse and 9 (50%) reported using a laptop trackpad daily. The mean self-reported daily usage duration of the laptop trackpad (mean 2.6, SD 3.1 hours) was significantly lower (t17=2.1, P=.03) than that of the computer mouse (mean 5.2, SD 3.1 hours). Subjects provided written informed consent before participation and were given US $20 gift cards for their participation. The study was approved by the Institutional Review Board of Stanford University.
Apparatus
The experiment was performed in an office setting without any distractions. We used a 15-inch 2015 MacBook Pro (Apple Inc) (see
) equipped with a 140×70-mm Force Touch trackpad with sensitivity preset to a default value of 1.0. An overhead camera captured hand movement, and our logging software captured trackpad and cursor activity. The logger was implemented in C and Swift (Apple Inc) using Apple’s MultiTouchSupport framework. It recorded coordinates rounded to the nearest hundredth of a millimeter with an average sampling rate of 8.17 milliseconds (SD 3.75), multiple finger touches marked with ID numbers, contact shape under the finger (ie, major and minor axes of the ellipse), interaction type (ie, touching, dragging, etc), and pressed state (ie, active or inactive).Stimuli
The stimuli consisted of Relaxation and Stressor phases replicated from prior studies [
, ]. During the Relaxation phase, we instructed subjects to breathe deeply while viewing a soothing video, which is recommended over doing nothing [ ]. The acute Stressor phase consisted of an arithmetic cognitive stressor combined with social evaluation (ie, the presence of an experimenter continuously observing and correcting if the subject made a mistake), derived from the Trier Social Stress Test [ ], and enhanced with a biased financial stimulus. The test required subjects to perform a series of subtractions out loud (eg, subtract 13 from 2017, and so forth) under the scrutiny of the experimenter. If the subject made a mistake, or if he or she took more than four seconds to respond, the experimenter asked the subject to start again from 2017. The subject was offered an additional US $1 for every 10 consecutive arithmetic operations performed correctly, but only US $1 was to be deducted for each mistake. All subjects made mistakes that made them “lose” money, but after debriefing, they all received full compensation. The financial part of the stimulus based on performance could have been more frustrating than stressful for some subjects. However, it was added, as was done in our previous study [ ], since frustration can further exacerbate acute stress.Experimental Tasks
All subjects performed three types of tasks—click, steer, and drag and drop (see
)—as in our previous study using the computer mouse [ ]. Five different distance (D) and four different width (W) configurations were used for each of the three task types, resulting in a total of 20 configurations per task (see ) [ ]. Users performed two trials per configuration within each task type (see ). Tasks of the same type were grouped to prevent performance differences due to subjects needing to adjust to different task types. In total, each experimental condition, tStressed (stressed task) and tRelaxed (relaxed task), had 120 trials (3 task types × 40 trials).Experimental Design
Testing Procedure
The experiment consisted of four distinct phases (see
):- Baselining and Relaxation: a 5-minute phase designed to normalize the effects of any stressors, including any external factors, and to bring the subject to a baseline level.
- tRelaxed: an approximately 7-minute phase (mean 6.8, SD 1.7 minutes) during which subjects were instructed to perform the randomized tasks—click, drag and drop, and steer (see )—as quickly and accurately as possible.
- Stressor: a 5-minute stress-inducing phase.
- tStressed: an approximately 7-minute phase (mean 6.8, SD 1.5 minutes) during which subjects were instructed to perform the randomized tasks—click, drag and drop, and steer (see )—as quickly and accurately as possible.
The 18 subjects were assigned to one of the two counterbalanced arms: Relax-Stress (3 males [17%] and 5 females [28%]) and Stress-Relax (5 males [28%] and 5 females [28%]) (see
). The Stress-Relax arm required an additional baselining phase, before tRelaxed, to normalize the effects of external factors before applying the stressor. Subjects wore an E4 wristband (Empatica Inc) to measure EDA in their nondominant hand and provided perceived self-reported stress, tension, and concentration levels on a scale of 0-10, before and after each phase (see ).Data Processing
Self-Report and Ancillary Data
SRS was assessed using a simplified version of the PSS [
], an 11-point scale question—“What is your current level of stress?” where responses ranged from Low (0) to High (10)—immediately after completion of each phase (see ). To verify that the stressor did not induce cognitive alterations, we assessed perceived concentration, ranging from Low (0) to High (10), and measured trial completion time. Finally, we captured ancillary data on perceived muscle tension, ranging from None (0) to High (10). Self-report markers (SRs) in show the time points during the experiment where these data were collected. To estimate the self-reported metrics during any phase, the before and after values were averaged for that phase. For example, the average of SR4 and SR5 values for stress for subjects in arm A (see ) gave us an estimate of the SRS value during the tStressed phase.All self-reported metrics were min-max normalized across the four phases—Relaxation, Stressor, tRelaxed, and tStressed—unless stated otherwise. For normally distributed data, where the Shapiro-Wilk test was not significant, we applied a 1-tailed paired t test. Otherwise, we applied a 1-tailed Wilcoxon signed-rank test. We used 1-sided comparisons, as we had prior knowledge about the expected direction of changes in the different metrics, and the stressor task we used has already been shown to be effective in inducing stress in prior studies [
, , ]. Effect sizes (Cohen d) are provided for within-group changes for primary measures, where Cohen d values between 0.20 and 0.49 indicate a small effect, values between 0.50 and 0.79 indicate a medium effect, and values of 0.80 and above indicate a large effect [ ]. For any bivariate correlations, we used the Pearson correlation coefficient for normally distributed data; otherwise, we used Spearman rho.Out of 22 subjects, 4 (18%) showed no change in SRS across the two extreme phases—Stressor and Relaxation—and were excluded from all analyses, leaving a working set of 18 subjects.
EDA Processing
We eliminated 3 of the 18 subjects (17%) before the analysis, leaving a total of 15 subjects (83%) for EDA analysis: 1 subject did not have a signal due to loose contact, another had an anomalous signal above 20 µS [
], and 1 had more than 5% noisy 5-second epochs estimated with the EDA Explorer [ ]. For the remaining 15 subjects, EDA signals were filtered using a 6th-order 1-Hz low-pass Butterworth filter [ ]. Then, using Ledalab, version 3.2.5 [ ], we obtained the tonic mean, phasic mean, and the number of SCR peaks with an amplitude above 0.01 µS. Only data from tRelaxed and tStressed phases were considered for the EDA analyses.RQ1: MSD Model Evaluation
We modeled trackpad finger trajectories using a linear predictive coding (LPC) inverse filtering technique [
] as in Sun et al, who successfully modeled the arm movement as an approximation of a step response of a single-degree-of-freedom MSD system [ ]. The LPC approximation for the MSD model has been used in several other studies, like in our previous work using steering wheel data [ ] and also by Guo et al [ ], using data from touchpad interactions. However, unlike mouse movements, which are primarily continuous and more standardized across subjects, there are many quirks in the way different individuals interact with the trackpad. Since subjects were given the freedom to use the trackpad as normally as possible, we observed that 17 out of 18 subjects (94%) used multiple fingers from their dominant hand, and/or used fingers from both hands (see ), creating many discontinuities in the finger strokes during each trial (see ). Across all subjects, a mean of 38.0% (SD 13.9) of the trials had at least one gap in the continuity of the finger stroke because subjects either used multiple hands (see , A), multiple fingers (see , B), or even the same finger, but the finger hovered on the trackpad. We used our ancillary videos to observe this behavior, as it was impossible to use logger data alone to verify that the subject used the same finger multiple times or separate fingers during one trial.We identify gaps (see
, A) by searching for large variations in x or y coordinates and keeping points that represented the largest continuous movement of the underlying stroke (see , B—green trace). We fitted an approximation to the MSD model [ ] to this stroke and extracted Γ and ω for the horizontal x-direction, which contained most of the displacement information for our tasks.RQ2: Measurements of Finger Dynamics From Trackpad Interactions
Under stress, wrist and forearm muscles present changes in mean force production [
] and motor control variability [ ]. Therefore, we measured mean and SD values for three typical finger dynamics measurements: velocity, acceleration, and contact area under the finger. We kept all strokes and substrokes for every trial by identifying the gaps between partial movements (see , B) and averaged their metrics for each trial. We estimated the contact area of the ellipse (π × a × b) between the finger and the trackpad using the major axis (a) and minor axis (b) provided by the logger. We calculated finger velocity by differentiating position information and finger acceleration by differentiating velocity information. We used only horizontal (x-direction) displacement data, which contained most of the information for our tasks.Statistical Modeling and Sensitivity Analysis
First, we evaluated a Mixed Task omnibus model independent of specific task types—click, drag and drop, and steer—and task configurations (W × D). Values for each task type were obtained by averaging across all configurations and repetitions (ie, 40 trials) for each of the tStressed and tRelaxed phases for each subject. Then, a single value for each tStressed and tRelaxed phase was obtained after averaging across all three task types for each subject. Variables with significant differences across the tStressed and tRelaxed phases in the Mixed Task model were further examined using Task-Specific models. To avoid inflation, we applied Bonferroni correction (0.05/3 = 0.017) for Task-Specific models. Finally, for the type of task with the most significant difference, we applied a sensitivity analysis comparing the initial 10% (ie, 4 trials out of 40) of data across the tStressed and tRelaxed phases. We also carried out post hoc power (β) analyses on all finger dynamics measures that were found to be significant. Additionally, to check if the order of stress-relax condition has any effect, we investigated the Order (ie, A vs B; see
) × Condition (ie, stress vs relax) interaction effect using analyses of variance on all finger dynamics measures that were found to be significant.Results
Mental Stress Validation
SRS and Tension Metrics
On average, the SRS was significantly higher during the Stressor phase (mean 0.56, SE 0.04) compared to the Relaxation phase (mean 0.15, SE 0.03) (Z17=3.72, P<.001). The SRS was also significantly higher during the tStressed phase (mean 0.72, SE 0.03) compared to the tRelaxed phase (mean 0.23, SE 0.04) (t17=13.06, P<.001).
shows a comparison of min-max normalized SRS values for the four phases of the experiment. shows the average raw SRS values at the end of the Relaxation, tRelaxed, Stressor, and tStressed phases. It can be observed that SRS levels go down over time during the tStressed phase.Time point | Mean (SE) |
End of Relaxation phase | 2.27 (0.42) |
End of tRelaxeda phase | 3.78 (0.42) |
End of Stressor phase | 6.22 (0.61) |
End of tStressedb phase | 4.50 (0.42) |
atRelaxed: relaxed task.
btStressed: stressed task.
In addition to SRS, we found that the perceived tension was significantly higher during Stressor (mean 0.52, SE 0.05) versus Relaxation (mean 0.09, SE 0.02) (Z17=3.59, P<.001) phases and during tStressed (mean 0.78, SE 0.03) versus tRelaxed (mean 0.29, SE 0.04) (t17=11.79, P<.001) phases. Furthermore, perceived tension and SRS were highly correlated (r=.74, P<.001).
No statistical differences (t17=0.58, P=.29) were observed for trial completion time between tRelaxed (mean 2.04, SE 0.14 seconds) and tStressed (mean 2.10, SE 0.13 seconds). Additionally, we found no statistically significant differences for perceived concentration during Stressor versus Relaxation phases (Z17=1.46, P=.07), and tStressed versus tRelaxed phases (Z17=0.56, P=.28). This shows that our stressor elicited an affective response as opposed to a response due to changes in cognitive performance.
Physiological Stress
All metrics for EDA were significantly higher. Mean phasic EDA during tStressed (mean 0.040, SE 0.015 S) compared to tRelaxed (mean 0.020, SE 0.006 S) was higher (Z14=2.33, P<.01); mean tonic EDA during tStressed (mean 4.223, SE 1.389 S) compared to tRelaxed (mean 2.057, SE 0.806 S) was higher (Z14=3.181, P<.001); and the number of EDA peaks (ie, SCR events) during tStressed (mean 68.2, SE 16.9) compared to tRelaxed (mean 40.4, SE 11.7) was higher as well (Z14=2.86, P<.01).
Overall, both SRS and EDA evaluations showed that our stressor was effective in inducing acute stress, as planned.
Trackpad Interactions
Mixed Task Models
Both the mean and SD of contact area under the finger were significantly different between tRelaxed and tStressed phases with large effect sizes (Cohen d>0.8) and large post hoc power (β>97%) (see
). The mean and SD of velocity and acceleration, as well as the two LPC-approximated biomechanical MSD parameters (Γ and ω), were not significantly different. Paired t tests were carried out for all these measures except for Γ, for which a Wilcoxon signed-rank test was carried out. For mean contact area, the Order × Condition interaction effect was not significant (F1,32=1.87, P=.18). However, for the SD of contact area, the interaction effect was significant (F1,32=11.17, P<.01), suggesting that the Order of the conditions did have a significant effect on the overall SD of the contact area across the two Conditions.Measure | tRelaxeda, mean (SE) | tStressedb, mean (SE) | t test (17) | Z test (17) | P value | Cohen d | |
Normalized velocity | |||||||
Mean | 0.47 (0.16) | 0.49 (0.12) | 0.50 | N/Ac | .31 | 0.15 | |
SD | 0.39 (0.14) | 0.47 (0.20) | 1.42 | N/A | .09 | 0.48 | |
Normalized acceleration | |||||||
Mean | 0.35 (0.15) | 0.43 (0.18) | 1.36 | N/A | .10 | 0.49 | |
SD | 0.31 (0.17) | 0.42 (0.17) | 1.54 | N/A | .07 | 0.64 | |
Normalized area | |||||||
Mean | 0.40 (0.18) | 0.55 (0.16) | 2.18 | N/A | .02d | 0.87 | |
SD | 0.39 (0.17) | 0.53 (0.13) | 2.08 | N/A | .03 | 0.92 | |
Mass-spring-damper model | |||||||
Γ (damping ratio) | 0.538 (0.007) | 0.540 (0.006) | N/A | 0.11 | .46 | 0.09 | |
ω (damping frequency) (rad/s) | 0.256 (0.006) | 0.261 (0.005) | 1.21 | N/A | .12 | 0.17 |
atRelaxed: relaxed task.
btStressed: stressed task.
cN/A: not applicable.
dItalicized values indicate significance (P<.05).
Task-Specific Models
Task-Specific models for mean and SD of the contact area under the finger (see
) were performed for all three task types. Significant differences (P<.02) between tStressed and tRelaxed were observed for click tasks only, both for mean area (Z17=2.37, P=.009, β=91%) and for SD of the area (Z17=2.33, P=.01, β=86%). Overall, click tasks (see , A and E) show large percentage differences between tRelaxed and tStressed phases.The interaction effects for mean and SD of contact area during click tasks were not significant (mean area: F1,32=0.00, P=.98; SD area: F1,32=1.39, P=.25). We also evaluated the interaction effects for SD of the contact area for drag and drop (F1,32=1.82, P=.19) and steer (F1,32=4.48, P=.04), the latter of which was significant, suggesting that the significant interaction in SD of the contact area variable in the Mixed Task model (see the Mixed Task Models section) is mainly due to significant interaction effect only in steer task trials. Overall, our results suggest that finger dynamics from click tasks alone, which are the most common computer interactions (see Discussion section), and are unaffected by Order effects, can be used as robust measurements to detect acute stress.
Sensitivity Analyses
Data Reduction
In this section, we focus on click data, which was the only task type contributing to the overall differences in the Mixed Task model. We started looking for data closest to the stressor (ie, the initial 10% [4 clicks out of 40]), and we intended to explore bigger segments (ie, 20%, 30%, etc) in case we did not find a signal sufficient to detect acute stress across the two conditions. To our surprise, with only 4 clicks, we could see a significant difference across the two phases (see
). This result may be because the effect of the stressor is higher earlier during the tStressed phase, and it decays over time (see ). Similar sensitivity results have been observed in other biomechanical models of stress [ ]. Neither of the two variables mentioned in showed any significant interaction effect (mean area: F1,32=0.00, P=.99; SD area: F1,32=0.50, P=.49), which reconfirms that click tasks are not influenced by Order effects.Measure | No. of clicks (N=40), n (%) | tRelaxeda, mean (SE) | tStressedb, mean (SE) | t test (17) | P value | Cohen d | β, % |
Mean area (mm2) | 4 (10) | 270.9 (6.3) | 284.6 (8.1) | 2.81 | <.01c | 0.44 | 56 |
SD area (mm2) | 4 (10) | 16.7 (1.6) | 21.2 (1.3) | 2.88 | <.01 | 0.73 | 91 |
atRelaxed: relaxed task.
btStressed: stressed task.
cItalicized values indicate significance (P<.05).
Click Rate Manipulation
Our original manipulation generated click trials at a rate of roughly 1 click per 3.5 seconds: 40 click trials were completed in an average of 136 seconds (SD 31). To create a scenario in which the clicks are obtained at a slower rate, which could also be plausible in the wild, we tested the artificially slowest rate by decimating the samples, using only 10% of the data distributed across the entire range of the production of the click trials. We picked the first, the last, and 2 random click trials from 1 to 40, in this way simulating a scenario in which clicks are generated once every ~45 seconds. As it turns out, both area measures were still significantly different across two stress conditions. The mean of the mean area for tStressed was 277 mm2 (SE 8.61) and for tRelaxed was 267 mm2 (SE 6.4) (t17=2.07, P=.03, d=0.32 , β=37%). The mean of the SD area for tStressed was 22 mm2 (SE 1.8) and for tRelaxed was 18 mm2 (SE 1.5) (t17=1.86, P=.04, d=0.54, β=71%). Further, no significant interaction effect was found for either of these two measures as well (mean area: F1,32=0.14, P=.72; SD area: F1,32=1.98, P=.17).
Individual Differences
When looking at individual differences for all tasks, 12 out of 18 (67%) participants showed an expected increase in either the mean or the SD of the area under the finger. For the initial 10% (ie, 4 out of 40 clicks), 13 out of 18 (72%) subjects had changes in the expected direction for either mean or SD (see
). Participants A1, A4, B10, B1, and B3 showed an opposite trend for the mean area (see , A), while participants A10, A2, A5, B3, and B7 showed an opposite trend for SD area (see , B). Subject B3 showed an opposite trend for both measures. If we were to consider a hard evaluation where both metrics must occur at the same time, we would see 11 out of 18 (61%) subjects satisfying the expected change. However, if we were to detect stress whenever either of the two measures has the right trend, we would detect stress changes in 17 out of 18 (94%) subjects. This latter approach is plausible, as both measurements are theoretically linked to changes in either muscle tension or motor control alterations due to stress (see section RQ2: Measurements of Finger Dynamics From Trackpad Interactions).Discussion
Principal Findings
Enabling precision health and effective stress management regimes are dependent on the evolution of ubiquitous real-time stress sensors and algorithms. An ideal scenario would be to passively obtain data from everyday use devices, rather than having people wear sensors or answer survey questions. In this study, we aim at assessing the feasibility of using passively obtained laptop trackpad data to detect acute stress. We present evidence that binary levels of acute stress (ie, whether it is present or not) can be detected from finger strokes alone.
In response to RQ1, we found out that our approximation to an MSD model, previously used with data from the computer mouse [
], cannot be used directly on trackpad data. Our analyses provide new insights into the complexity of the use of finger stroke data from trackpad operations for applying an MSD model. Unlike a computer mouse, handling a laptop trackpad is subject dependent. Some people may employ multiple hands and/or multiple fingers to perform the same tasks. This creates challenges to process the data due to the gaps present in the strokes and the difficulty of obtaining a clean intentional segment of data, with a clear beginning and end, required to get meaningful MSD results. These limitations leave little useful data for analysis, and we did not observe a difference in either of the two MSD parameters (ω and Γ) between the tRelaxed versus tStressed phases. However, our analyses were restricted to the largest stroke per trial. It is possible that in the wild, where we can collect larger amounts of data that would allow us to extract valid displacement segments, an MSD approach may still be useful to assess changes due to muscle tension under acute stress.Our RQ2’s results are encouraging, showing the robustness of the mean and SD of the finger contact area as a stress sensor. Both metrics were higher during the stressed tasks as compared to the relaxed tasks. We show that as few as 4 click trials per subject are sufficient to see a significant difference, which is promising for longitudinal studies. Overall, we present evidence of the use of the finger contact area from laptop trackpad measurements to detect acute stress while performing common computer tasks.
Acute Stress Detected Using Click Finger Dynamics
This is the first study showing that the mean and SD of the contact area under the finger on a trackpad are higher under stress compared to a relaxed state (ie, Mixed Task model). Theoretically, the mean value is related to mean force production [
] and higher variability [ ] under stressful situations in the wrist and forearm muscles. There may be other underlying mechanisms (eg, changes in hand or body posture [ ]) through which stress may influence finger dynamics, and future studies should monitor those variables as well. In the Task-Specific model, differences in mean and SD of the contact area under the finger were different for click trials. If combined, mean or SD, we could detect up to 94% of acute stress events. This is encouraging because clicking tasks represent nearly 70% of all computer mouse events in a typical day [ ].With just the initial 10% of clicking trials (ie, 4 clicks out of 40), we could still see small and medium effect size differences in mean and SD of the contact area under the finger. Since click trials were not always carried out right after the stressor, the difference is not due to ordering effects; here we are referring to ordering of click, steer, and drag and drop, and not the ordering of stress-relax conditions. We attribute the strength of using so little data to the proximity to the stressor, as there is a clear decay of stress over time, which would clearly affect values averaged over longer periods. Furthermore, we simulated a scenario where clicks are produced at a different rate (ie, going from 1 click produced every ~3.5 seconds to every ~45 seconds). We obtained significant results even for the lowest click productivity we could simulate with our data (1 click/45 s). In a separate pilot study, collecting computer mouse data “in the wild,” we have seen that a typical user may generate a click every 10-30 seconds, and at least 1000 clicks are generated in any given working day. Thus, we feel confident we can use our findings as the basis for a passive, continuous, scalable, inexpensive, and unobtrusive stress sensor. In the wild, of course, changes in muscle tension would not only be due to affective (ie, ANS) processes but also due to cognitive processes (see Potential Interaction Effects With Task Performance section). Ultimately, a reliable “in the wild” stress detection system would have to combine multiple modalities, such as biomechanical, behavioral, and physiological sensors, as well as contextual information.
Potential Interaction Effects With Task Performance
Mean and SD of finger velocity and acceleration were similar across the two phases, as well as trial completion time. This reconfirms that our stressor did not change the cognitive performance of the subjects but only their affective state. However, the relationships between stress, velocity, and acceleration may not be simple. For example, one may say that under a stressful situation, a user may want to move the fingers with higher velocity and/or acceleration; however, after a certain point, it will also start affecting the accuracy of this fine motor control task [
]. Thus, the user may not use higher velocities and/or acceleration under stress. Further studies with different elicitations to modify the performance rewards must be performed to observe interaction effects between these variables.Contrasting With Other Touch Technologies
At least two studies have shown higher finger pressure under stress [
] and under frustrating [ ] conditions while using touchscreen devices. However, the usage and handling of touchscreen devices are not the same as that of a trackpad, in terms of fine and precise interaction [ ]. The capacitive technologies used in touchscreens and trackpads are different in terms of how much pressure needs to be applied: typically, the trackpad requires stronger pressure [ ]. Additional research would be needed to determine if our finger dynamics from contact area (ie, mean and SD) can be translated to other types of touch-sensitive devices.Limitations
Our study has four limitations related to sample size, stressor effect size, apparatus, and assumptions for modeling. First, because of the small sample size (N=18) we could not investigate the effects of age, gender, length of experience with trackpads, and frequency of day-to-day usage of trackpads. We also could not build reliable predictive models (eg, using different ML techniques), which could parse out the importance of various features in predicting acute stress. Second, given the mild nature of the stressor, not all users (18/22, 82%) responded to our manipulation. Nevertheless, this level of efficacy is expected for a mild stressor and in line with our prior study [
]. Third, although we do not expect the behavior of users to be fundamentally different across different laptops, our experiment should be revalidated on other models of trackpads. Fourth, using finger contact area as a proxy to pressure assumes a linear relationship between the two. However, factors like the angle of the finger can also influence this relationship. Since the time of the data collection for this study, Apple has updated the MultiTouchSupport framework, and it now also provides information about pressure and capacitance density underneath the fingers. Additional models collecting this new data would be quite useful to strengthen the precision of our detection method further.Future Directions
We plan to expand current results by running lab experiments with larger sample sizes; by logging other actions performed using trackpads, such as scrolling and multiple finger gestures; and by collecting other behavioral metrics, such as click production rate, the timing between clicks, etc. Once we collect more data, both in the laboratory settings and “in the wild,” we aim at building predictive models that include both biomechanical and behavioral metrics to increase the accuracy and specificity of stress prediction in real time.
As we move out of the lab, we will explore ways to carry out longitudinal studies collecting data from our passive loggers across devices (ie, mice, trackpads, touchpads), contextual data, and stress “labels” obtained from empirical sampling methods or physiological measurements. As we accumulate richer and bigger datasets, we plan to investigate data-intensive unsupervised and supervised ML methods to optimize data collection, preprocessing, and prediction. For example, we plan to investigate algorithms to parse types of events and movements (eg, clicks, drag and drop, etc) or to select segments that may have the right morphology to derive biomechanical features (eg, MSD parameters, contact area, etc). Ultimately, we hope that our lab and field findings can help select the appropriate behavioral, biomechanical, contextual, and perceptual features (ie, feature engineering) to train ML systems to be able to detect stress levels throughout the day.
Conclusions
The current methods for sensing stress are often inconvenient, expensive, or suffer from limited adherence. In this lab study, we show the efficacy of repurposing signals from a laptop trackpad to detect acute mental stress. We showed that with a handful of click events, we could use the mean and SD of the finger contact area to obtain a binary estimation of acute stress (ie, whether it is present or not). We validated our sensing models against well-known stress metrics such as self-reports and EDA. Complementarily, we validated that we did not elicit performance or cognitive confounds that may affect our affective stress elicitation. These results provide a firm baseline toward our future goal of deploying our algorithms in the wild, leveraging the trackpad as a potential unobtrusive, scalable, continuous, and inexpensive stress sensor.
Acknowledgments
We appreciate the financial support provided by the late Prof Sam Gambhir, the Precision Health and Integrated Diagnostics Center, Prof Sarah L Billington, and Prof James A Landay, as well as the advice provided by Dr Jean Costa.
was licensed from QA International, science photo library, and labels were added to the four muscles.Conflicts of Interest
None declared.
References
- Epel ES, Blackburn EH, Lin J, Dhabhar FS, Adler NE, Morrow JD, et al. Accelerated telomere shortening in response to life stress. Proc Natl Acad Sci U S A 2004 Dec 07;101(49):17312-17315. [CrossRef] [Medline]
- Lazarus RS. Psychological Stress and the Coping Process. New York, NY: McGraw-Hill; 1966.
- Tomaka J, Blascovich J, Kelsey RM, Leitten CL. Subjective, physiological, and behavioral effects of threat and challenge appraisal. J Pers Soc Psychol 1993;65(2):248-260. [CrossRef]
- Sun D, Paredes PE, Canny J. MouStress: Detecting stress from mouse motion. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems.: ACM; 2014 Presented at: SIGCHI Conference on Human Factors in Computing Systems; April 26-May 1, 2014; Toronto, Canada p. 61-70. [CrossRef]
- Paredes PE, Ordonez F, Ju W, Landay J. Fast & Furious: Detecting Stress with a Car Steering Wheel. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems.: ACM; 2018 Presented at: SIGCHI Conference on Human Factors in Computing Systems; April 21-26, 2018; Montreal, Canada p. 1-12 URL: https://dl.acm.org/doi/10.1145/3173574.3174239
- Hernandez J, Paredes PE, Roseway A, Czerwinski M. Under pressure: Sensing stress of computer users. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems.: ACM; 2014 Presented at: SIGCHI Conference on Human Factors in Computing Systems; April 26-May 1, 2014; Toronto, Canada p. 51-60. [CrossRef]
- Gao Y, Bianchi-Berthouze N, Meng H. What does touch tell us about emotions in touchscreen-based gameplay? ACM Trans Comput Hum Interact 2012 Dec 01;19(4):1-30. [CrossRef]
- Exposito M, Hernandez J, Picard RW. Affective keys: Towards unobtrusive stress sensing of smartphone users. In: Proceedings of the 20th International Conference on Human-Computer Interaction with Mobile Devices and Services.: ACM; 2018 Presented at: 20th International Conference on Human-Computer Interaction with Mobile Devices and Services; September 3-6, 2018; Barcelona, Spain p. 139-145. [CrossRef]
- Tankovska H. Global shipments of tablets, notebook and desktop PCs 2017-2022. Statista. 2020 Aug 27. URL: https://www.statista.com/statistics/866044/global-shipments-forecast-for-tablets-notebook-and-desktop-pcs/ [accessed 2020-04-22]
- Cohen S, Kamarck T, Mermelstein R. A global measure of perceived stress. J Health Soc Behav 1983 Dec;24(4):385-396. [Medline]
- Roberti J, Harrington L, Storch E. Further psychometric support for the 10-item version of the perceived stress scale. J Coll Couns 2006;9(2):135-147. [CrossRef]
- Balters S, Mauriello ML, Park SY, Landay JA, Paredes PE. Calm commute: Guided slow breathing for daily stress management in drivers. Proc ACM Interact Mob Wearable Ubiquitous Technol 2020 Mar 18;4(1):1-19. [CrossRef]
- Sarker H, Tyburski M, Rahman MM, Hovsepian K, Sharmin M, Epstein DH, et al. Finding significant stress episodes in a discontinuous time series of rapidly varying mobile sensor data. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems. 2016 Presented at: SIGCHI Conference on Human Factors in Computing Systems; May 7-12, 2016; San Jose, CA p. 4489-4501 URL: https://doi.org/10.1145/2858036.2858218 [CrossRef]
- Kim H, Cheon E, Bai D, Lee YH, Koo B. Stress and heart rate variability: A meta-analysis and review of the literature. Psychiatry Investig 2018 Mar;15(3):235-245 [FREE Full text] [CrossRef] [Medline]
- Setz C, Arnrich B, Schumm J, La Marca R, Tröster G, Ehlert U. Discriminating stress from cognitive load using a wearable EDA device. IEEE Trans Inf Technol Biomed 2010 Mar;14(2):410-417. [CrossRef] [Medline]
- Boucsein W. Electrodermal Activity. New York, NY: Springer; 1992.
- Noteboom JT, Fleshner M, Enoka RM. Activation of the arousal response can impair performance on a simple motor task. J Appl Physiol (1985) 2001 Aug;91(2):821-831. [CrossRef] [Medline]
- Laidlaw DH, Kornatz KW, Keen DA, Suzuki S, Enoka RM. Strength training improves the steadiness of slow lengthening contractions performed by old adults. J Appl Physiol (1985) 1999 Nov;87(5):1786-1795. [CrossRef] [Medline]
- Coombes SA, Cauraugh JH, Janelle CM. Emotion and movement: Activation of defensive circuitry alters the magnitude of a sustained muscle contraction. Neurosci Lett 2006 Apr 03;396(3):192-196. [CrossRef] [Medline]
- Arnrich B, Setz C, La Marca R, Tröster G, Ehlert U. What does your chair know about your stress level? IEEE Trans Inf Technol Biomed 2010 Mar;14(2):207-214. [CrossRef] [Medline]
- Davis M, Robbins Eshelman E, McKay M. The Relaxation and Stress Reduction Workbook. 7th edition. Oakland, CA: New Harbinger Publications; 2019.
- Cacioppo JT, Tassinary LG. Inferring psychological significance from physiological signals. Am Psychol 1990 Jan;45(1):16-28. [CrossRef] [Medline]
- Sainsbury P, Gibson JG. Symptoms of anxiety and tension and the accompanying physiological changes in the muscular system. J Neurol Neurosurg Psychiatry 1954 Aug;17(3):216-224 [FREE Full text] [CrossRef] [Medline]
- Hoehn-Saric R, McLeod DR, Funderburk F, Kowalski P. Somatic symptoms and physiologic responses in generalized anxiety disorder and panic disorder: An ambulatory monitor study. Arch Gen Psychiatry 2004 Sep;61(9):913-921. [CrossRef] [Medline]
- Lundberg U, Kadefors R, Melin B, Palmerud G, Hassmen P, Engstrom M, et al. Psychophysiological stress and EMG activity of the trapezius muscle. Int J Behav Med 1994;1(4):354-370. [CrossRef] [Medline]
- van Loon EM, Masters RS, Ring C, McIntyre DB. Changes in limb stiffness under conditions of mental stress. J Mot Behav 2001 Jun;33(2):153-164. [CrossRef] [Medline]
- Wahlström J, Hagberg M, Johnson PW, Svensson J, Rempel D. Influence of time pressure and verbal provocation on physiological and psychological reactions during work with a computer mouse. Eur J Appl Physiol 2002 Jul;87(3):257-263. [CrossRef] [Medline]
- Carneiro D, Castillo JC, Novais P, Fernández-Caballero A, Neves J. Multimodal behavioral analysis for non-invasive stress detection. Expert Syst Appl 2012 Dec;39(18):13376-13389. [CrossRef]
- Conte C, Ranavolo A, Serrao M, Silvetti A, Orengo G, Mari S, et al. Kinematic and electromyographic differences between mouse and touchpad use on laptop computers. Int J Ind Ergon 2014 May;44(3):413-420. [CrossRef]
- Dennerlein JT, Johnson PW. Different computer tasks affect the exposure of the upper extremity to biomechanical risk factors. Ergonomics 2006 Jan 15;49(1):45-61. [CrossRef] [Medline]
- Piferi RL, Kline KA, Younger J, Lawler KA. An alternative approach for achieving cardiovascular baseline: Viewing an aquatic video. Int J Psychophysiol 2000 Aug;37(2):207-217. [CrossRef]
- Kirschbaum C, Pirke KM, Hellhammer DH. The 'Trier Social Stress Test'--A tool for investigating psychobiological stress responses in a laboratory setting. Neuropsychobiology 1993;28(1-2):76-81. [CrossRef] [Medline]
- Lakens D. Calculating and reporting effect sizes to facilitate cumulative science: A practical primer for t-tests and ANOVAs. Front Psychol 2013 Nov 26;4:863 [FREE Full text] [CrossRef] [Medline]
- Hernandez J, Riobo I, Rozga A, Abowd G, Picard R. Using electrodermal activity to recognize ease of engagement in children during social interactions. In: Proceedings of the ACM International Joint Conference on Pervasive and Ubiquitous Computing. 2014 Presented at: ACM International Joint Conference on Pervasive and Ubiquitous Computing; September 13-17, 2014; Seattle, WA. [CrossRef]
- Taylor S, Jaques N, Chen W, Fedor S, Sano A, Picard RW. Automatic identification of artifacts in electrodermal activity data. In: Proceedings of the 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC). 2015 Presented at: 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); August 25-29, 2015; Milan, Italy p. 1934-1937 URL: http://europepmc.org/abstract/MED/26736662 [CrossRef]
- Topogulu Y, Watson J, Suri R, Ayaz H. Electrodermal activity in ambulatory settings: A narrative review of literature. In: Proceedings of the AHFE 2019 International Conference on Neuroergonomics and Cognitive Engineering, and the AHFE International Conference on Industrial Cognitive Ergonomics and Engineering Psychology. Cham, Switzerland: Springer Nature; 2019 Presented at: AHFE 2019 International Conference on Neuroergonomics and Cognitive Engineering, and the AHFE International Conference on Industrial Cognitive Ergonomics and Engineering Psychology; July 24-28, 2019; Washington, DC p. 91-102. [CrossRef]
- Benedek M, Kaernbach C. A continuous measure of phasic electrodermal activity. J Neurosci Methods 2010 Jun 30;190(1):80-91 [FREE Full text] [CrossRef] [Medline]
- O'Shaughnessy D. Linear predictive coding. IEEE Potentials 1988 Feb;7(1):29-32. [CrossRef]
- Guo W, Wang J. Understanding mobile reading via camera based gaze tracking kinematic touch modeling. In: Proceedings of the 20th ACM International Conference on Multimodal Interaction (ICMI). 2018 Presented at: 20th ACM International Conference on Multimodal Interaction (ICMI); October 16-20, 2018; Boulder, CO. [CrossRef]
- Qin J, Chen H, Dennerlein JT. Wrist posture affects hand and forearm muscle stress during tapping. Appl Ergon 2013 Nov;44(6):969-976. [CrossRef] [Medline]
- Antal M, Egyed-Zsigmond E. Intrusion detection using mouse dynamics. IET Biometrics 2019;8(5):285-294. [CrossRef]
- Kowatsch T, Wahle F, Filler A. stressOUT: Design, implementation and evaluation of a mouse-based stress management service. In: Proceedings of the 12th International Conference on Design Science Research in Information Systems and Technology (DESRIST 2017). Karlsruhe, Germany: Karlsruher Institut für Technologie; 2017 Presented at: 12th International Conference on Design Science Research in Information Systems and Technology (DESRIST 2017); May 30-June 1, 2017; Karlsruhe, Germany p. 37-45. [CrossRef]
- Maleckar A, Kljun M, Rogelj P, Pucihar K. Evaluation of common input devices for web browsing: Mouse vs touchpad vs touchscreen. In: Proceedings of the Human-Computer Interaction in Information Society. 2016 Presented at: Human-Computer Interaction in Information Society; October 9-13, 2016; Ljubljana, Slovenia URL: https://hci.si/wp-content/uploads/2016/10/HCI-IS_2016_paper_6.pdf
Abbreviations
ANS: autonomic nervous system |
β: post hoc power |
D: distance |
ECG: electrocardiogram |
ED: extensor digitorum |
EDA: electrodermal activity |
EMG: electromyography |
ESM: empirical sampling methods |
FDI: first dorsal interosseous |
Γ: damping ratio |
HRV: heart rate variability |
LPC: linear predictive coding |
ML: machine learning |
MSD: mass spring damper |
ω: damping frequency |
PCD: personal computing device |
PSS: Perceived Stress Scale |
RQ: research question |
SCR: skin conductance response |
SNS: sympathetic nervous system |
SR: self-report marker |
SRS: self-reported stress |
tRelaxed: relaxed task |
tStressed: stressed task |
W: width |
Edited by G Eysenbach; submitted 22.07.20; peer-reviewed by P Hsiao, P Jimenez; comments to author 08.08.20; revised version received 20.08.20; accepted 07.09.20; published 23.10.20
Copyright©Rahul Goel, Michael An, Hugo Alayrangues, Amirhossein Koneshloo, Emmanuel Thierry Lincoln, Pablo Enrique Paredes. Originally published in the Journal of Medical Internet Research (http://www.jmir.org), 23.10.2020.
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 the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on http://www.jmir.org/, as well as this copyright and license information must be included.