| Literature DB >> 31197629 |
Maya B Mathur1,2, David B Reichling3.
Abstract
Mouse-tracking is a sophisticated tool for measuring rapid, dynamic cognitive processes in real time, particularly in experiments investigating competition between perceptual or cognitive categories. We provide user-friendly, open-source software ( https://osf.io/st2ef/ ) for designing and analyzing such experiments online using the Qualtrics survey platform. The software consists of a Qualtrics template with embedded JavaScript and CSS along with R code to clean, parse, and analyze the data. No special programming skills are required to use this software. As we discuss, this software could be readily modified for use with other online survey platforms that allow the addition of custom JavaScript. We empirically validate the provided software by benchmarking its performance on previously tested stimuli (android robot faces) in a category-competition experiment with realistic crowdsourced data collection.Entities:
Keywords: Cognition; Experimental design; Mouse-tracking; Qualtrics; R; Response dynamics
Mesh:
Year: 2019 PMID: 31197629 PMCID: PMC6797645 DOI: 10.3758/s13428-019-01258-6
Source DB: PubMed Journal: Behav Res Methods ISSN: 1554-351X
Fig. 1Typical outcome measures for category-competition experiments. In this example, a hypothetical subject’s cursor trajectory suggests initial attraction to the “robot” category, but in an early change of direction, the subject appears to become more attracted to the “human” category. There is a final, weak attraction once again to the “robot” category, but the subject ultimately categorizes the face as “human”. In our implementation, there is a 570-px horizontal distance between the category buttons and a 472-px vertical distance between the category buttons and the middle of the Next button
Modifiable JavaScript global variables
| Variable | Default | Meaning |
|---|---|---|
| howManyPracticeImages | 6 | The number of practice stimuli (for which no mouse trajectories will |
| be recorded) | ||
| howManyRealImages | 10 | The number of experimental stimuli (for which mouse trajectories will |
| be recorded) | ||
| maxAnswerTime | 5000 | The maximum time (ms) that can be spent on a trial. |
| Trials with longer answer times will receive a “took too long” alert. | ||
| maxLatency | 700 | The maximum time (ms) after trial onset for which subject can |
| leave mouse position unchanged. | ||
| Trials with longer latencies will receive a “started too late” alert. |
Codebook of mouse-tracking, timing, and computing system variables in raw Qualtrics data
| Variable | Units | Meaning |
|---|---|---|
| xPos | px | |
| corner of browser window | ||
| yPos | px | |
| time | ms since 1970-01-01 | Time at which each coordinate pair was measured |
| 0:00:00 UTC | ||
| onLoadTime | ms since 1970-01-01 | Time at which page for each trial started loading |
| 0:00:00 UTC | ||
| onReadyTime | ms since 1970-01-01 | Time at which the page for each trial was loaded |
| 0:00:00 UTC | (beginning of trial) | |
| buttonClickTime | ms since 1970-01-01 | Time at which subject made category decision |
| 0:00:00 UTC | (end of trial) | |
| pageSubmitTime | ms since 1970-01-01 | Time at which subject proceeded to next trial by |
| 0:00:00 UTC | clicking “Next” | |
| windowWidth | px | Width of subject’s browser window at beginning of trial |
| windowHeight | px | Height of subject’s browser window at beginning of trial |
| alerts | N/A | Alerts received during each trial: |
| 0 = none | ||
| 1 = started too early | ||
| 2 = started too late | ||
| 3 = surpassed time limit for trial | ||
| 4 = window too small to fully display experiment | ||
| latency | ms | Time between onReadyTime and first mouse move |
| stimulusOrder | N/A | Stimulus URLs for each trial in the order presented to |
| subject | ||
| browser_Browser | N/A | Internet browser |
| browser_Version | N/A | Browser version |
| browser_Operating.System | N/A | Operating system |
| browser_Resolution | N/A | Browser resolution |
Fig. 2Mouse trajectories for a single subject categorizing unambiguous (top row) versus ambiguous (bottom row) humanoid robot faces. Trajectories have been rescaled to unit length in both the x- and y-dimensions
Demographics and computing system characteristics for subjects in validation study
| Overall | |
|---|---|
| Total N | 188 |
| Age (mean (SD)) | 36.80 (11.73) |
| Education (n (%)) | |
| Did not graduate high school | 2 (1.1) |
| Graduated 2-year college | 35 (18.6) |
| Graduated 4-year college | 75 (39.9) |
| Graduated high school | 54 (28.7) |
| Post-graduate degree | 22 (11.7) |
| Female (mean (sd)) | 0.52 (0.50) |
| Race (n (%)) | |
| Black/African American | 16 (8.5) |
| Caucasian | 144 (76.6) |
| Native American | 8 (4.3) |
| East Asian | 12 (6.4) |
| Hispanic | 14 (7.4) |
| Middle Eastern | 4 (2.1) |
| Southeast Asian | 3 (1.6) |
| South Asian | 2 (1.1) |
| Browser (n (%)) | |
| Chrome | 153 (81.4) |
| Edge | 2 (1.1) |
| Firefox | 33 (17.6) |
| Operating system (n (%)) | |
| Chrome OS | 7 (3.7) |
| Linux | 6 (3.2) |
| Macintosh | 19 (10.1) |
| Windows | 155 (82.4) |
Summary of all 711 alert messages received in validation study across all 1880 trials
| Alert type | % of all alerts received |
|---|---|
| Started too early | 40 |
| Started too late | 31 |
| Surpassed trial time limit | 8 |
| Window too small | 21 |
Percent of subjects (n = 188) receiving each type of alert message at least once across 10 trials
| Alert type | % of subjects |
|---|---|
| Started too early | 60 |
| Started too late | 58 |
| Surpassed trial time limit | 20 |
| Window too small | 10 |
Fig. 3Violin plots showing standardized outcome data for 1880 trials (188 subjects) for ambiguous versus unambiguous face stimuli. Violin contours are mirrored kernel density estimates. Horizontal lines within violins are medians. = GEE estimate of mean difference (ambiguous - unambiguous); p = p value for difference estimated by robust GEE inference