Introduction

Tremors are involuntary, rhythmic oscillations in one or more body parts. They are the most common movement disorder found in clinical practice.1 Prevalence varies depending on tremor type. Essential tremor (ET) is the most common form, with prevalence rates ranging from 0.4% to 5.6%.2 Hand tremors are suggestive of many medical conditions, as well as other factors such as fear or fatigue.

This study focuses on resting tremors. Resting tremors occur in the absence of voluntary muscle activity. These tremors occur when a body part is relaxed and completely supported against gravity3 and can be exacerbated by increased cognitive load.4 Resting tremors are more easily identifiable in mouse cursor movements than action tremors. The low resolution of the cursor position sampling makes it difficult to detect action tremors while the cursor is in motion. Resting tremor is often symptomatic of specific medical conditions, including Parkinson’s disease (PD)5,6,7 and forms of ET.3,4 Dopaminergic deficiency in PD results in symptoms such as tremors and cognitive decline,7 evidence of which may be apparent in how people interact with computers.8 Prior studies have examined the effect of neurodegenerative disorders such as PD on computer mouse cursor control9 and cursor movement reaction time10 and the utility of assistive technologies to help those with motor impairments to better use computer input devices11 and filter tremulous movement from mouse cursors before it reaches computer interfaces.12 Others have used smartphone accelerometers to assess tremor frequencies.13 These studies are often small scale, limiting their generalizability, and require explicit measurement of tremor characteristics, which is both burdensome and unnatural. In contrast, log-based monitoring requires no additional action from patients or clinicians and can be deployed longitudinally at massive scale.14,15 Prior studies of the logs from millions of search engine and social media users have highlighted opportunities in using these data for the early detection of medical conditions, such as pancreatic cancer16 and lung cancer,17 and disease surveillance in general.18,19

The availability of large-scale, longitudinal computer mouse cursor movement data presents an opportunity to study hand tremors in ways that are infeasible in limited-duration laboratory settings or brief bedside evaluations. Numerous studies of the epidemiology of tremors can be enabled using anonymized population-scale data, including cohort analyses based on factors such as geographic location and demographics. With explicit consent, user-centric screening services housed within search engines could be employed to inform at-risk individuals and to perform longitudinal studies to track the status and progression of known illness.

Mouse cursor motion data have been used in prior studies and applications, including measuring search engine relevance,14 prefetching search results,20 detecting click and identity fraud,21,22 tracking attention in computer users,23,24 computer interface design,25 measuring website engagement,26 and searcher intent understanding.27 The timing of keystrokes in search queries has also been used for population-scale physiological sensing.28 Most relevant to this study is prior research on applying cursor motion data to detect the possibility of neurological disease8 or anxiety29 in search engine users.

This study continues and significantly expands on earlier work,8 which focused on discriminating between PD and ET with a machine-learned classifier that employed >50 search-log features, most of which were non-cursor based and only two features that were based on cursor tremor estimates. In ref. 8, little detail is provided about the methodology used for tremor estimation and no attempt is made to validate tremors detected from search logs, two shortcomings that are addressed in this article. Validation of the presence of tremors is essential in establishing the generalizability of the tremor estimation methods beyond a single application. We focus here on cursor-based tremor estimation. We present a detailed description of the log-based tremor estimation methodology and report on four complementary and comprehensive validation analyses, including a 1000-person target selection study independent from the search logs which shows that large-scale tremor estimation is feasible. We consider the feasibility of discriminating between PD and ET based on known differences in tremor frequency distributions in these diseases.30 The validation of the tremor estimation methods provide evidence that anonymized cursor motion can be harnessed as a population-scale tremor sensor, with applications including epidemiologic studies and opt-in services for screening and for monitoring disease progression in individuals.

We collect cursor logs from an anonymized sample of millions of searchers on the Microsoft Bing search engine (http://bing.com) and analyze the data retrospectively. Post hoc validation of cursor tremor estimates is challenging given only anonymized log data. As a second channel of information, we analyze correlations between observed cursor tremors and searchers’ self-reported interests in tremors as expressed through their search queries. Clinical knowledge about the influence of demographics and specific medical conditions on cursor tremor prevalence and characteristics is also considered. Finally, a target selection study was performed, where 1000 remote participants selected on-screen targets and self-reported hand tremors and their known causes. Analyzing the cursor movements from this study provided additional validation of the cursor-based tremor estimation methodology.

Results

Four different analyses were performed to assess the validity of cursor-based tremor estimation: (a) connection with searchers’ interests as indicated in their search queries; (b) differences in cursor tremor prevalence and frequencies based on demographics; (c) shifts noted in the distribution of cursor tremor frequencies when conditioned on observing evidence in searchers’ queries of having received a clinical diagnosis, and (d) a target selection study where participants selected on-screen targets with their mouse pointer (and all cursor movements were recorded) and self-reported hand tremors and associated medical conditions.

Queries as self-reporting

Individuals affected by medical symptoms and conditions are likely to search for information about them on web search engines.31,32 Contingency matrices were generated for whether searchers had one or more cursor tremor events (yes/no) and whether they performed one or more searches for tremors or related synonyms (e.g., “tremors,” “shaky hands,” etc.) (yes/no) over the observation period. Percentage deviations for each cell (i.e., the difference from expected, defined as (observed – expected)/expected × 100) were computed during Chi-squared analyses (where observed = frequency count in each cell and expected = (row total × column total)/grand total): +0% means that the combination is observed as expected, while +100% means it is observed twice as much as expected. Percentage deviation increases with the number of oscillations used to define a cursor tremor event (nosc) from 15% at nosc ≥ 1 to 190% at nosc ≥ 4 and is significant across all tested values of nosc in the range1,33 (Chi-squared tests: all χ2(1) ≥ 94.76, all p < 0.001, all φ (effect sizes as phi correlations) >0.003). The searcher counts for nosc ≥ 2 are reported in Table 1 for all tremor searches (row (a)) and for filtering tremor searchers to those who issued queries that show stronger evidence, which are referred to as “experiential queries” (row (b)). Experiential queries are typically first-person statements providing stronger evidence of tremor incidence (e.g., “my shaky hands,” “I have tremors”) than episodes of general tremor searching (excluding, using look-up tables, queries such as those that were natural language questions, related to others (e.g., friends, relatives), or related to domestic animals). Experiential queries have been leveraged in prior research as evidence of clinical diagnosis in search-log studies of brain disease,8 cancer,17 and pregnancy.34 These first-person statements offer more evidence that observed tremor searches are connected to personal experiences with tremors. Later, this is extended to experiential diagnostic queries: first-person statements containing evidence of clinical diagnosis. Table 1 shows that the percentage deviation for yes–yes (highlighted) is higher for experiential tremor searchers (+120%) than for all tremor searchers (+99%). Overall, the results show that searchers with cursor tremor events are more likely to self-report tremor-related interests. These findings, especially those for experiential searchers (Table 1, row (b)), offer some confirmatory evidence that cursor-based tremor estimates capture tremors experienced by searchers.

Table 1 Contingency tables with counts of searchers and percentage deviations from expected counts (shown in parentheses) broken down by the presence/absence of tremor-related searches and the presence/absence of cursor tremor events (all filtered to events with nosc ≥ 2)

Searcher demographics

The appearance of similar trends in mouse cursor tremor estimates would add further supportive evidence on the validity of cursor motion as a tremor sensor. In total, 2,740,051 searchers (14.3% of all 19M searchers in the dataset) had at least one cursor tremor event with nosc ≥ 2 (7,288,536 cursor tremor events in total). The mean average (M) number of cursor tremor events per searcher was 2.62 (standard deviation (SD) = 4.99, median = 1). The average cursor tremor frequency per searcher was 6.81 hertz (Hz) (SD = 4.04 Hz, median = 6 Hz) and the macro-average cursor tremor frequency (averaged within the observed activity of each searcher and then again over all searchers) was 6.86 Hz (SD = 3.46 Hz, median = 6 Hz).

Age and gender classifications generated by proprietary statistical classifiers from the Bing search engine were available for approximately 300k of the 2.7M searchers in the cursor tremor dataset with nosc ≥ 2 (11.1%). The age and gender classifiers were trained by another team at Microsoft on longitudinal search queries and search-result clicks from a separate set of web searchers for whom self-reported demographics were available. The accuracy of both classifiers is approximately 80%. For each of the 300k searchers, the age classifier provided an age estimate comprising one of the five groups: <18 years (0.03% of cursor tremor searchers), 18–24 years (1.71%), 25–34 years (1.20%), 35–49 years (6.09%), and ≥50 years (90.96%). Gender classifications were divided between male (50.51% of the 300k searchers) and female (49.49%). Figure 1 summarizes cursor tremor quantity and cursor tremor frequencies by estimated age and gender. Note that statistically significant differences in the average number of queries submitted or the amount of time spent on result pages were not observed between the different age groups and between the different genders.

Fig. 1
figure 1

Average cursor tremor count and average cursor tremor frequency, by age and gender. a Mean average number of cursor tremor events per age group and gender, and b mean average cursor tremor frequency per age group and gender. Error bars denote standard error of the mean. To compute the macro-average used in b, the average cursor tremor frequency per searcher is computed and then averaged again across all searchers in each age group category. This ensures that no single searcher unduly influences overall statistics

Two-way analyses of variance were conducted on the influence of age and gender on cursor tremor counts and cursor tremor frequency. All effects were statistically significant at the α = 0.05 significance level apart from gender. The main effects for age were significant for cursor tremor count (F(4,298636) = 234.26, p < 0.0005) and cursor tremor frequency (F(4,298636) = 45.46, p = 0.002), with small effect sizes (count: η2 = 0.004, frequency: η2 = 0.0007). Tukey post hoc tests indicate significant differences in cursor tremor counts between ≥50 years (M = 4.11, SD = 8.49) and all other groups apart from <18 years (M = 2.35, SD = 2.24), but only significant differences in cursor tremor frequency between ≥50 years (M = 6.88 Hz, SD = 3.32 Hz) and <18 years (M = 7.38 Hz, SD = 3.65 Hz) and 18–24 (M = 7.09 Hz, SD = 3.57 Hz). Although women are more likely to present with tremors in early PD,35 few studies have offered evidence of significant gender effects on tremor characteristics.36 The main effects for gender were not significant for cursor tremor count (F(4,298636) = 0.72, p = 0.396) and cursor tremor frequency (F(4,298636)= 0.29, p = 0.590). The interaction effects were significant for cursor tremor count (F(4,298636) = 9.46, p < 0.0005) and cursor tremor frequency (F(4,298636) = 4.07, p = 0.003).

Evidence of clinical diagnosis

Clinical studies have shown that tremor frequencies vary per medical condition.37 Another way to validate the cursor-based tremor estimates is to examine whether the expected changes in tremor frequency for different medical conditions are also evident in cursor-based tremors. PD and ET were selected as the target conditions since resting tremors are observed in both conditions,3,6 the conditions are prevalent and affect millions of people worldwide, and they have distinct tremor frequency distributions. As with the earlier analysis of searchers’ self-reported tremor interests, first-person experiential diagnostic queries (containing evidence suggesting that the user was diagnosed with a medical condition) such as “just been diagnosed with parkinsons” or “treating my essential tremor” issued on the Bing search engine were used as diagnostic evidence. The patterns used to identify experiential diagnostic queries are listed in Supplementary Table 1. Cases exhibiting evidence that diagnostic queries were invalid, e.g., questions, related to others (e.g., friends, relatives), related to domestic animals, and so on, were excluded. Only cursor tremor searchers who issued one or more valid experiential diagnostic queries for PD or ET were included in this part of the analysis.

As may be expected, experiential diagnostic queries occur infrequently in search log data. There were few searchers in the 17-day experiment from mid-September until early October who issued experiential diagnostic queries for PD or ET. To find more experiential diagnostic searchers in the cursor tremors dataset for each condition, the observation period to identify experiential diagnostic PD or experiential diagnostic ET cursor tremor searchers was extended back 6 months before the start of the experiment to March 2017. The extended time frame was only used to find additional experiential diagnostic searchers; all analysis of cursor tremor events was still only performed on data from the 17-day observation period. Any experiential diagnostic search from a cursor tremor searcher appearing in that extended time was counted as evidence of clinical diagnosis. In total, 157 experiential diagnostic PD cursor tremor searchers and 109 experiential diagnostic ET cursor tremor searchers were discovered in the logs, contributing 754 and 519 cursor tremor events at nosc ≥ 2, respectively. The cursor tremor frequency distributions for searchers in these two groups were computed and compared against the cursor tremor frequency distribution across all searchers.

Pointwise mutual information (PMI)6,38 is a measure of association from information theory and statistics. PMI was used to quantify the change in probability of observing a specific cursor tremor frequency given evidence of condition diagnosis over the background across all cursor tremor events, independent of the condition (i.e., log[p(tremor frequency|evidence of condition)/p(tremor frequency)]). The PMI score is computed at each frequency in the range [1 Hz, 15 Hz]. Figure 2 shows the PMI score distributions for PD and ET. For each condition, the regions where the cursor tremor frequency values are higher than expected (PMI > 0) correspond to tremor frequency ranges identified during clinical studies: Parkinsonian tremors (3–7 Hz)30,39,40 and ETs (4–12 Hz).41

Fig. 2
figure 2

Pointwise mutual information (PMI) score by cursor tremor frequency, by medical condition. PMI score represents the change in probability of observing a specific cursor tremor frequency given evidence of condition diagnosis over the background distribution, computed across all cursor tremor events independent of condition. The PMI score distributions per cursor tremor frequency are shown for experiential diagnostic Parkinson’s disease searchers (dashed line) or experiential diagnostic essential tremor searchers (solid line)

For ET, the region of PMI > 0 (4–10 Hz) has a lower upper threshold than the 4–12 Hz reported in clinical studies.41 Explanations for this include a right skew in the age distribution of searchers in the cursor tremor dataset: >90% of cursor tremor searchers are aged ≥50 years and tremor frequencies can decrease with age,42 and the nature of the task: search is cognitively demanding43 and tremor frequencies can be lower for more focused tasks.44

Target selection

In total, there were 1000 participants in the target selection study. In all, 6.7% self-reported experiencing hand tremors and 2.6% self-reported ET as the known cause of their hand tremors (aligned with prior studies2,45). Participants who self-identified with no hand tremor are regarded as controls. The gender of those reporting tremors was distributed as 55.2% male (n = 35), 41.8% female (n = 28), and 6.0% (n = 4) did not report their gender. There were six age groups: 18–24 years (10.5%, n = 7), 25–34 years (41.8%, n = 28), 35–44 years (9.0%, n = 6), 45–54 years (6.0%, n = 4), 55–64 years (20.9%, n = 14), and ≥65 years (9.0%, n = 6). Other medical conditions were less prevalent in the self-report data (e.g., stroke [0.7% of participants], multiple sclerosis [0.5%], and PD [0.2%]). In the raw cursor data (no downsampling), the average number of cursor events per task was 1601 (SD = 1109), the average distance traveled by the mouse cursor per task was 19,735 pixels (px) (SD = 9364 px), and the average time per task was 113 s (SD = 57 s).

Cursor tremor events were observed for 73.1% of participants (n = 49 of 67) who self-reported hand tremors versus 3.4% of controls (n = 32 of 933) (Z = 20.23, p < 0.001). Cursor tremor frequencies for the 73 cursor tremor events observed from the 26 participants self-reporting ET (M = 9.12Hz; SD = 5.31Hz) significantly differed from frequencies of all other cursor tremor events in the dataset (M = 5.93Hz; SD = 4.49Hz; t(275) = 3.70, p < 0.01). The frequency range with PMI score > 0 was 6–12 Hz; this is toward the upper end of the range of tremor frequencies observed in clinical studies on ET,41 perhaps reflecting the younger demographic in the participant population of the target selection study.46

Discussion

The findings of this feasibility study demonstrate alignment between cursor tremor events and both self-reported interest in tremors and findings of clinical studies, providing evidence in support of using cursor movements as a population-scale sensor of cursor tremor events. Clinical studies have shown that tremor incidence increases with age47 and that tremor frequencies decrease with age.46,48 The variations in cursor tremor quantity and cursor tremor frequency with searcher demographics observed in this study are concordant with findings in those studies, providing additional supportive evidence for mouse cursor motion as a means of tremor estimation. The alignment between cursor tremor distributions from searchers issuing experiential diagnostic queries and tremor distributions from clinical studies30,39,40,41 further supports the use of mouse cursor motion for tremor estimation. The consistency offers additional confirmatory evidence that observed cursor tremor events capture real tremors and are less likely to be attributable to other possible causes, such as myoclonus.49 While the results are promising, additional validation is required. The sensitivity and specificity of detecting tremor via the use of computer mice needs to be determined with patients and controls. Such studies will help answer important questions such as the level of severity of cursor tremors required to separate them from other extraneous movements.

The data analyzed were from a short (17-day) experiment for a sample of search traffic on a specific search engine (Bing). First-person experiential queries were used to flag likely tremor sufferers and experiential diagnostic queries were used to identify those likely to have been diagnosed with medical conditions. Experiential queries have been used in previous studies to identify searchers exhibiting evidence of diagnosis,8,17,34 but more work is needed to validate this approach with patients, especially given that misdiagnosis of both PD and ET are common, as is confusion over general Parkinsonism.50 The relationship between search tasks and characteristics of tremor-like movements needs to be understood, including the presence and influences of anxiety, including anxiety induced in the process of search and retrieval (e.g., searching on alarming medical conditions32). The target selection study offered an additional source of validation independent of the search logs and where participants self-reported known causes of hand tremors in line with established prevalence rates.45 More cursor movement data are needed over a longer time frame and multiple application settings to obtain more robust insights, including how cursor tremor frequencies change for searchers over time.51

Future work includes exploring the application of these methods to additional tremor types and other conditions with motor symptoms, as well as studying environmental sources of vibration (e.g., computer usage on airplanes or on public transportation). There are many types of tremor, including rhythmic and non-rhythmic and task or situation-related tremors, and almost all with overlapping frequency ranges. Different tremors need to be recorded in different ways, e.g., resting tremors will disappear with intentional mouse movements. High frequency tremors, such as exaggerated physiological tremor (caused by fatigue, metabolic diseases, alcohol withdrawal, and others), may not be recordable by a computer mouse due to friction and low sampling rates. Action tremors may be detectable from cursor trails given more granular tracking of computer mouse cursor position to estimate tremor behaviors while the cursor is in motion. Factors that could affect the reliability of the cursor tremor estimation also require further investigation. Computer mice move in proportion to the velocity and/or acceleration of mouse movements.52 Mouse motion therefore does not provide a linear transduction of tremor amplitude, which could be biased by higher tremor frequencies. The current study focuses on small cursor movements (≤15 px), which may be less affected by these biases, and filters cursor tremor events to those with frequencies from 1 to 15 Hz to reduce errors attributable to sampling noise. A thorough assessment is required of possible bias in tremor amplitude related to the use of cursor data. Standardizing cursor tremor estimation methods across different system settings (e.g., screen resolutions, display dimensions, input device types, mouse sensitivities) may improve tremor estimates. This study could not control for these settings in the retrospective log analyses, but the target selection study did control for display dimensions and input device type.

The methods described in this article are meant to complement, not replace, traditional studies of tremor by offering a new lens on tremors across thousands or millions of individuals. Logs need to be used carefully: logged search activity can be affected by many aspects of the search experience including query autocompletion53 and result page content.54 The nature of the search query (e.g., informational or navigational) can also impact people’s cursor movements on result pages.15 Log-based monitoring is especially useful in studies where broad regional analyses are paramount over attention to individual detail, such as monitoring large-scale trends and epidemics, or for other applications such as population-scale physiological sensing,28 but they are unlikely to be sufficiently discriminative for diagnostic inferences on their own.

As mentioned earlier, log-based tremor estimates can be combined with other signals to detect evidence of neurodegenerative disease.8 Beyond contributing as features in automated disease detection, there are other possible applications of cursor tracking. These include studying cursor-based tremors in cohorts generated based on location, demographics, or other data (e.g., topical interests as inferred from query logs), an analysis that is challenging to do at scale using current methods. Longitudinal studies of cursor-based tremors could enable the provision of opt-in services for screening for neurological disorders and for the tracking of disease progression in people with confirmed neurodegenerative diseases. Such studies could also assist physicians by providing longitudinal patterns or trends in tremors using data collected unobtrusively from people’s everyday activities, a signal that is currently unavailable for clinical use. Technologies such as Personal KinetiGraph (http://globalkineticscorporation.com/the-pkg-system) or Kinesia (http://glneurotech.com/kinesia) have a similar objective but impose additional burden by requiring that patients use devices such as smart watches that provide continuous monitoring and assessment of tremors. Search log analyses can complement these methods on an individual basis and can uniquely provide population-scale tremor insights across millions of search engine users.

In applications, it is of paramount importance to ensure user privacy and to provide users with means to opt-in and easily opt-out of any services related to tremor estimation. Looking ahead on these and similar applications and analyses, search providers must keep their users informed and in control. Searchers must consent to long-term tracking, and search providers should clearly communicate both what data are being recorded and how they are being used. Follow-up studies are required with known tremor patients with different medical conditions and clinicians to further validate tremor estimation via mouse cursor movements and evaluate the diagnostic and prognostic utility of this promising new class of motor signal.

Methods

Large-scale search log study

Anonymized data were collected from >19M users of the Bing search engine in the United States (a random sample of the larger user population). Data were collected from consenting users (per the terms of the end user license agreement) as part of a separate, unrelated experiment to measure user engagement with the search engine. Data collection did not influence the presentation of search results or other aspects of the user experience. The experiment ran for 17 days, from September 19, 2017 to October 5, 2017 inclusive and covered all queries from searchers included in the study. It used existing methods for mouse cursor tracking at scale on the Bing search results page.14,15 Mouse cursor position was logged every 10 px of computer mouse motion. Time-based sampling and interpolation of cursor positions were not used. Ten pixels corresponds to approximately 2.5 mm in on-screen distance at the standard resolution of 96 dots per inch. Only mouse cursor movements were tracked in this study; on-screen touch or gestural movements were not monitored. The information in the logs is insufficient to differentiate between cases where searchers were manipulating a physical computer mouse controlled with a hand or using a trackpad controlled by a single finger.

All analysis was conducted offline on existing data. The data were recorded in such a way that searchers cannot be identified, directly or through identifiers linked to them. Each searcher is represented by a unique identifier (one-way hash) stored in a web browser cookie that persisted over multiple search sessions. An external review of the study protocol by Western Institutional Review Board (WIRB) approved the search log study, with the determination that the research met the requirements for IRB exemption under 45 CFR 46.101(b)(4).

Sequences of consecutive cursor location data points are used to estimate hand tremor events. Although the hand is at rest, tremors may still cause observable variations in the mouse cursor position. The simple method developed to estimate hand tremors from large-scale cursor data defined a cursor tremor event as an observed tremor-like movement with (a) at least one oscillation (i.e., a short cursor movement in one cardinal direction [north, south, east, or west] followed by an immediate movement in the opposite direction) (e.g., move the cursor north [toward the top of the screen] and then move the cursor south [toward the bottom of the screen]), and (b) cursor movements of ≤15 px in both directions. Although most cursor movements were recorded every 10 px, the observed distances were occasionally slightly larger than that due to factors including network latencies, mouse precision, computational delays, etc. The tremor estimation threshold was set to 15 px to ensure that these cursor events were still included in the analysis. Applying this restriction helps to clearly distinguish cursor-based tremors from intentional actions, such as clicking on a hyperlink or right–left movements associated with reading.24 It is unlikely that computer users would voluntarily produce such small oscillations in cursor position. Cursor movement patterns that did not meet these criteria were ignored. Given the coarseness of the cursor data, more sophisticated tremor detectors such as those utilizing zero crossing (e.g., ref. 55) could not be used.

In practice, cursor movements will rarely occur precisely along the horizontal and vertical axes between east–west and north–south, respectively. To improve the robustness of the tremor estimation and allow minor deviations in cursor direction, 90-degree regions were established around each of the four cardinal directions: 45° before the cardinal direction and 45° after the cardinal direction. For example, “north” was defined as the region from north west (315°N) to north east (45°N). The minimum number of oscillations (nosc) required for a sequence of cursor movements to be classified as a cursor tremor event can be adjusted per precision and recall requirements (higher values of nosc improve precision but harm recall). The total oscillation time in seconds is determined using the timestamps for each log entry and used in conjunction with oscillation counts to estimate tremor frequencies in hertz (Hz). There can be multiple cursor tremor events per query impression, defined as an instance of the submission of a query, the generation and presentation of a results page by the search engine, and the interaction with that page by the searcher. In total, 38,148,131 cursor tremor events with at least one oscillation (nosc ≥ 1) and frequencies ranging from 1 to 15 Hz inclusive were extracted from 5,726,038 searchers across all values of nosc in the range.1,33 Cursor tremor with frequencies <1 Hz or >15 Hz are likely caused by sampling noise and are excluded from the dataset.

Target selection study

To help further validate the use of cursor movements as a source of tremor signal, a crowdsourced study was designed that uses a target-selection methodology from previous tremor studies.9 The study also collected self-report data about hand tremors from participants. Participants completed a consent form at the start of the study. They were recruited from a micro-tasking vendor (http://clickworker.com) in the English-speaking United States market. Participants were asked to select (click) with their mouse cursor 25 targets (squares) positioned randomly in a 1024 × 768 px bounding box on the screen (all participants used a device with at least these display dimensions). Participation was limited to one task per participant and participants were paid 50¢ per task. The x- and y-coordinates of mouse movements and every mouse click (on target and off target) were recorded using JavaScript. Target width was randomly selected from {8 px, 16 px, 32 px}. To reduce learning effects, a random delay of 1–3 s inclusive was applied after each click on a target before the next target was displayed. After clicking a target, the center point of the next target was computed at a random angle and a random distance from {192 px, 384 px, 768 px}. If the next target position was outside the bounding box (even partially), the location was recomputed until the full target was visible. Participants were required to use a standard optical computer mouse rather than stylus pens or touchscreens. JavaScript was used to enforce the use of a computer mouse. However, it was unable to distinguish between mouse, trackball, and touchpad usage; for that, the study relied on participants’ adherence to task guidelines, where it was clearly stated that only optical mice should be used.

To understand the validity of the cursor tremor estimation method from the large-scale study, cursor data were downsampled to retain mouse cursor positions every 10 px of cursor movement and cursor tremor events were defined as oscillations of ≤15 px horizontally or vertically with a frequency of 1–15 Hz inclusive; the same definitions as earlier. Downsampling reduced the number of mouse cursor events by around 50%.

Immediately after the target selection task, participants completed a survey to collect demographics (age, gender), computer experience (years), the presence of hand tremors (yes/no), and the medical condition(s) that cause these tremors (if known). All questions were optional. The study protocol was reviewed and approved by the IRB at Microsoft Research.

Methods for both studies were performed in accordance with relevant guidelines and regulations.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.