Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Psychiatry

Sec. Digital Mental Health

Volume 16 - 2025 | doi: 10.3389/fpsyt.2025.1564351

This article is part of the Research TopicAI Approach to the Psychiatric Diagnosis and Prediction Volume IIView all 5 articles

Machine Learning on a Smartphone-Based CPT for ADHD Prediction

Provisionally accepted
  • Qbtech AB, Stockholm, Sweden

The final, formatted version of the article will be published soon.

Objectives: Continuous Performance Tests (CPTs) are widely utilized as objective measures in the assessment of Attention-Deficit/Hyperactivity Disorder (ADHD). The integration of sensor data in smartphones has become increasingly common as a way of monitoring several behavioral indicators of mental health. Machine learning has started being utilized in the field of ADHD to improve diagnosis. This investigation explores (i) the feasibility of using smartphone devices to administer a CPT for ADHD assessment and (ii) whether data from built-in sensors in smartphone devices is useful for predicting a diagnosis.The study uses data from a control group of neurotypical individuals and an ADHD cohort of unmedicated patients. The dataset is divided into a training and test set, and a machine learning model is developed using the training set. The model is trained by dividing features into four groups, Demographic, CPT, Face, and Motion, which are then sequentially added and evaluated on their ability to predict ADHD.Results: A total of 952 neurotypical individuals and 292 unmedicated ADHD patients were part of the study. The best performing model combines all feature groups by a sensitivity of 0.808, specificity of blue and area under the precision-recall curve (PR-AUC) of 0.799, with a considerable performance increase due to the phone sensor features addition. Results did not differ significantly by age group (6-11 and 12-60 years old) and sex.The study provides a robust machine-learning model that is based on a large control group together with an ADHD cohort. The experiments demonstrated that ADHD can be assessed with high accuracy using CPTs on smartphones. Integrating face-tracking and motion sensor data with CPT features further enhanced performance, indicating that data from a smartphone device can surpass the accuracy of traditional computer-based ADHD assessments.

Keywords: ADHD, machine learning, CPT, smartphone, Mobile, Motion sensor, Face tracking, AI

Received: 21 Jan 2025; Accepted: 21 Oct 2025.

Copyright: © 2025 Larsson, Casals and Hansen. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Simon Larsson, larssonsimon0@gmail.com
Núria Casals, nuria.casals@qbtech.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.