| Literature DB >> 33821457 |
Paul Freihaut1, Anja S Göritz2, Christoph Rockstroh2, Johannes Blum2.
Abstract
Computer mouse tracking offers a simple and cost-efficient way to gather continuous behavioral data and has mostly been utilized in psychological science to study cognitive processes. The present study extends the potential applicability of computer mouse tracking and investigates the feasibility of using computer mouse tracking for stress measurement. Drawing on first empirical results and theoretical considerations, we hypothesized that stress affects sensorimotor processes involved in mouse usage. To explore the relationship between stress and computer mouse usage, we conducted a between-participant field experiment in which N = 994 participants worked on four mouse tasks in a high-stress or low-stress condition. In the manipulation check, participants reported different stress levels between the two conditions. However, frequentist and machine learning data analysis approaches did not reveal a clear and systematic relationship between mouse usage and stress. These findings challenge the feasibility of using straightforward computer mouse tracking for generalized stress measurement.Entities:
Keywords: Behavior; Computer mouse; Machine learning; Measurement; Stress; Tracking
Mesh:
Year: 2021 PMID: 33821457 PMCID: PMC8613085 DOI: 10.3758/s13428-021-01568-8
Source DB: PubMed Journal: Behav Res Methods ISSN: 1554-351X
Fig. 1Screenshot of the counting task
Fig. 2Screenshot of the point-and-click task. Translation of instructions above the black-framed playing field: Click on the circle (in bold); remaining trials: 17 out of 17
Fig. 3Screenshot of the drag-and-drop task. Translation of instructions above the black-framed playing field: Drag the circle into the square (in bold); remaining trials: 12 out of 12
Fig. 4Screenshot of the slider task. Translation of instructions above the black-framed playing field: Drag the white square onto the gray square (in bold); remaining trials: 12 out of 12
Fig. 5Screenshot of the follow-the-circle task. Translation of instructions: Follow the circle with the mouse cursor (in bold); Task starts as soon as the mouse cursor moves inside the circle and ends after: 25 s
Fig. 6Flowchart of the experimental procedure
Description of mouse usage features
| Feature name | Feature description | Calculated for mouse task |
|---|---|---|
| Temporal features | ||
| Task time | Time difference between the last and first data point on the task page in seconds | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Working time | Time difference between the last data point on the task page and the first data point when participants started working on the task in seconds (e.g., the click on the first circle in the point-and-click task) | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Average mouse speed | Average speed of the mouse cursor during the task. Mean of ∆Euclidean distance/∆time between consecutive mouse movement data points in pixels per second | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Standard deviation of mouse speed | Standard deviation of mouse cursor speed during the task. Std. of ∆Euclidean distance/∆time between consecutive mouse movement data points in pixels per second | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Average positive mouse acceleration | Average positive acceleration of the mouse cursor during the task. Mean of ∆+speed/∆time between consecutive mouse speed data points in pixels per s2 | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Standard deviation of positive mouse acceleration | Standard deviation of positive acceleration of the mouse cursor during the task. Std of ∆+speed/∆time between consecutive mouse speed data points in pixels per s2 | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Average negative mouse acceleration | Average negative acceleration of the mouse cursor during the task. Mean of ∆-speed/∆time between consecutive mouse speed data points in pixels per s2 | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Standard deviation of negative mouse acceleration | Standard deviation of negative acceleration of the mouse cursor during the task. Std of ∆-speed/∆time between consecutive mouse speed data points in pixels per s2 | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Spatial features | ||
| Total mouse distance | Total mouse distance traveled during the task. Sum of Euclidean distances between consecutive mouse movement data points in pixels | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Average mouse angle | Average angle of the mouse movement during the task. Mean of angles between consecutive mouse movement vectors (three consecutive mouse movement data points) in degrees | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Standard deviation of mouse angle | Standard deviation of angles of the mouse movement during the task. Std of angles between consecutive mouse movement vectors (three consecutive mouse movement data points) in degrees | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Changes in | Number of directional changes in the | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Changes in | Number of directional changes in the | point-and-click task, drag-and-drop task, slider task, follow-the-circle task |
| Task-specific features | ||
| Total deviation from ideal line | Total deviation in the movement from an ideal line representing the straight connection between start and end positions of a trial. Sum of the deviations from an ideal line of every movement data point | point-and-click task, drag-and-drop task |
| Mean deviation from ideal line | Average deviation in the movement from an ideal line representing the straight connection between start and end positions of a trial. Mean of deviations from an ideal line of every movement data point | point-and-click task, drag-and-drop task |
| Standard deviation of deviation from ideal line | Standard deviation of the deviation of the movement from an ideal line representing the straight connection between start and end positions of a trial. Std of deviations from an ideal line of every movement data point | point-and-click task, drag-and-drop task |
| In circle ratio | Ratio of the time the mouse cursor was inside the task circle in the follow-the-circle task to the time the mouse cursor was outside of the task circle | follow-the-circle task |
Results of the condition prediction (machine learning classification)
| Algorithm | Point-and-click task | Drag-and-drop task | Slider task | Follow-the-circle task | ||||
|---|---|---|---|---|---|---|---|---|
| Accuracy | Accuracy | Accuracy | Accuracy | |||||
| Application stage features (without baseline) | ||||||||
| LogReg | 52 | 0.198 | 51 | 0.501 | 50 | 0.5808 | ||
| SVC | 51 | 0.411 | 53 | 0.122 | 48 | 0.9441 | ||
| RFC | 48 | 0.880 | 53 | 0.072 | 53 | 0.074 | 46 | 0.99 |
| Difference score features (with baseline) | ||||||||
| LogReg | 53 | 0.090 | 53 | 0.116 | 50 | 0.7106 | ||
| SVC | 54 | 0.060 | 52 | 0.196 | 51 | 0.8124 | ||
| RFC | 51 | 0.222 | 51 | 0.287 | 50 | 0.4671 | ||
Note. The accuracy columns represent the mean five-fold-cross validation score. The p columns represent the p values of the permutation tests. LogReg: logistic regression; SVC: support vector machine classification; RFC: random forest classification. *p < .05, **p < .0083 (Bonferroni-corrected p value)
Results of the valence and arousal predictions (machine learning regression)
| Algorithm | Point-and-click task | Drag-and-drop task | Slider task | Follow-the-circle task | ||||
|---|---|---|---|---|---|---|---|---|
| Valence | Arousal R2 score | Valence | Arousal R2 score | Valence | Arousal R2 score | Valence | Arousal | |
| Application stage mouse features and valence/arousal ratings (without baseline) | ||||||||
| LinReg | −0.01 | −0.04 | −0.00 | −0.03 | −0.01 | 0.00 | −0.00 | −0.03 |
| SVR | −0.12 | −0.08 | −0.03 | −0.08 | −0.07 | −0.05 | −0.10 | −0.05 |
| RFR | −0.05 | −0.06 | −0.05 | −0.05 | −0.04 | −0.08 | −0.09 | −0.07 |
| Difference score mouse features and valence/arousal ratings (with baseline) | ||||||||
| LinReg | −0.01 | −0.03 | −0.00 | −0.01 | 0.00 | −0.02 | −0.02 | −0.02 |
| SVR | −0.08 | −0.06 | −0.06 | −0.06 | −0.10 | −0.06 | −0.09 | −0.04 |
| RFR | −0.07 | −0.02 | −0.06 | −0.02 | −0.05 | −0.04 | −0.02 | −0.05 |
Note. The R score columns represent the mean five-fold-cross validation R scores. LinReg: linear regression; SVR: support vector machine regression; RFR: random forest regression
Fig. 7Visualization of the mouse usage behavior of a sample participant in the drag-and-drop task. The rectangular frame represents the computer screen. The dots represent single mouse data points. Mouse movement data points are chronologically ordered from purple to yellow. Mouse clicks are represented by black dots
Results of the condition (classification), valence, and arousal predictions (regression) using the mouse usage images as the model input
| Included only the data of the application stage (without baseline) | Included the data of the application stage and baseline stage (with baseline) | |||||
|---|---|---|---|---|---|---|
| Mouse task | Condition prediction (Accuracy) | Arousal prediction (R2 score) | Valence prediction (R2 score) | Condition prediction (Accuracy) | Arousal prediction (R2 score) | Valence prediction (R2 score) |
| Point-and-click task | 53 | −1.27 | −4.23 | 44 | −1.55 | −4.41 |
| Drag-and-drop task | 54 | −1.10 | −5.22 | 56 | −1.24 | −2.64 |
| Slider task | 58 | −1.56 | −4.66 | 50 | −2.63 | −2.93 |
| Follow-the-circle task | 49 | −1.22 | −2.74 | 55 | −2.10 | −2.14 |
Note. The algorithm was a convolutional neural network (resnet 34). The model that was trained with 80% of the sample drawn at random, and the results represent the prediction performance on the remaining 20% of the sample