AppsFromResearch
BiAffect icon

BiAffect

Evidence Tier:VALIDATED

Proven effective in research studies · Supported by multiple studies

For:Researchers & AcademicsGeneral Public & EnthusiastsPatients & Caregivers

App Summary

BiAffect is a research app that passively monitors smartphone keyboard activity, such as typing speed and errors, to identify digital biomarkers associated with mood changes in people with and without bipolar disorder. The associated research (N=250) found that more severe depression significantly correlated with more variable typing speed, shorter typing sessions, and lower accuracy. Based on these findings, the authors conclude that unobtrusively collected keystroke data is a feasible foundation for developing digital tools to detect and monitor mood disturbances.

App Screenshots

BiAffect screenshot 1 of 3BiAffect screenshot 2 of 3BiAffect screenshot 3 of 3

Detailed Description

Functionality & Mechanism

BiAffect is a research application designed for passive digital phenotyping of mood states. The system leverages a custom virtual keyboard that replaces the default interface to unobtrusively collect keystroke dynamics metadata, including typing speed, error rate, and session duration. This data, along with passive sensor information from the device's accelerometer, is captured during routine use. Participants may also complete periodic self-report questionnaires to correlate objective behavioral data with subjective mood states, facilitating longitudinal analysis.

Evidence & Research Context

  • In an analysis of over 86,000 typing sessions from 147 users, more severe self-reported depression was significantly associated with more variable typing speed (P<.001), shorter session duration (P<.001), and lower accuracy (P<.05).
  • A feasibility study in a cohort with bipolar disorder demonstrated that passively collected metadata could be used to create statistically significant models predicting clinician-rated depression (HDRS, conditional R²=.63) and mania (YMRS, R²=.34) scores.
  • The platform's kinematic data has been used to develop models that predict chronological age, finding significant differences in prediction error between participants screening positive versus negative for bipolar disorder risk.
  • The association between keystroke dynamics and mood was found to persist even after statistically controlling for confounding variables such as diurnal patterns and the effects of aging on typing performance.

Intended Use & Scope

This application is intended for researchers investigating digital biomarkers for mood disorders. Its primary utility is as a platform for passive data collection to explore correlations between keyboard dynamics and mental health states. The system does not provide diagnostic outputs or clinical guidance and is not a substitute for professional medical evaluation or treatment.

Studies & Publications

3 publications

Peer-reviewed research associated with this app.

Effectiveness/Outcome Study

The Effects of Bipolar Disorder Risk on a Mobile Phone Keystroke Dynamics Based Biomarker of Brain Age

Zulueta et al. (2021) · Frontiers in Psychiatry

Keystroke patterns successfully predicted age and detected differences between bipolar and non-bipolar participants.

Background: Research by our group and others have demonstrated the feasibility of using mobile phone derived metadata to model mood and cognition. Given the effects of age and mood on cognitive performance, it was hypothesized that using such data a model could be built to predict chronological age and that differences between predicted age and actual age could be a marker of pathology.Methods: These data were collected via the ongoing BiAffect study. Participants complete the Mood Disorders Questionnaire (MDQ), a screening questionnaire for bipolar disorder, and self-reported their birth year. Data were split into training and validation sets. Features derived from the smartphone kinematics were used to train random forest regression models to predict age. Prediction errors were compared between participants screening positive and negative on the MDQ.Results: Three hundred forty-four participants had analyzable data of which 227 had positive screens for bipolar disorder and 117 had negative screens. The absolute prediction error tended to be lower for participants with positive screens (median 4.50 years) than those with negative screens (median 7.92 years) (W = 508, p = 0.0049). The raw prediction error tended to be lower for participants with negative screens (median = −5.95 years) than those with positive screens (median = 0.55 years) (W = 1,037, p= 0.037).Conclusions: The tendency to underestimate the chronological age of participants screening negative for bipolar disorder compared to those screening positive is consistent with the finding that bipolar disorder may be associated with brain changes that could reflect pathological aging. This interesting result could also reflect that those who screen negative for bipolar disorder and who engaged in the study were more likely to have higher premorbid functioning. This work demonstrates that age-related changes may be detected via a passive smartphone kinematics based digital biomarker.
... Read More
Effectiveness/Outcome Study

Effects of mood and aging on keystroke dynamics metadata and their diurnal patterns in a large open-science sample: A BiAffect iOS study

Vesel et al. (2020) · Journal of the American Medical Informatics Association

Typing patterns on smartphones were significantly associated with depression severity, supporting use as mood indicators.

Objective Ubiquitous technologies can be leveraged to construct ecologically relevant metrics that complement traditional psychological assessments. This study aims to determine the feasibility of smartphone-derived real-world keyboard metadata to serve as digital biomarkers of mood. Materials and Methods BiAffect, a real-world observation study based on a freely available iPhone app, allowed the unobtrusive collection of typing metadata through a custom virtual keyboard that replaces the default keyboard. User demographics and self-reports for depression severity (Patient Health Questionnaire-8) were also collected. Using >14 million keypresses from 250 users who reported demographic information and a subset of 147 users who additionally completed at least 1 Patient Health Questionnaire, we employed hierarchical growth curve mixed-effects models to capture the effects of mood, demographics, and time of day on keyboard metadata. Results We analyzed 86 541 typing sessions associated with a total of 543 Patient Health Questionnaires. Results showed that more severe depression relates to more variable typing speed (P?<?.001), shorter session duration (P?<?.001), and lower accuracy (P?<?.05). Additionally, typing speed and variability exhibit a diurnal pattern, being fastest and least variable at midday. Older users exhibit slower and more variable typing, as well as more pronounced slowing in the evening. The effects of aging and time of day did not impact the relationship of mood to typing variables and were recapitulated in the 250-user group. Conclusions Keystroke dynamics, unobtrusively collected in the real world, are significantly associated with mood despite diurnal patterns and effects of age, and thus could serve as a foundation for constructing digital biomarkers.
... Read More

BiAffect

Free