Objective approach to diagnosing attention deficit hyperactivity disorder by using pixel subtraction and machine learning classification of outpatient consultation videos
- PMID: 39716052
- PMCID: PMC11667993
- DOI: 10.1186/s11689-024-09588-z
Objective approach to diagnosing attention deficit hyperactivity disorder by using pixel subtraction and machine learning classification of outpatient consultation videos
Abstract
Background: Attention deficit hyperactivity disorder (ADHD) is a common childhood neurodevelopmental disorder, affecting between 5% and 7% of school-age children. ADHD is typically characterized by persistent patterns of inattention or hyperactivity-impulsivity, and it is diagnosed on the basis of the criteria outlined in the Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition, through subjective observations and information provided by parents and teachers. Diagnosing ADHD in children is challenging, despite several assessment tools, such as the Swanson, Nolan, and Pelham questionnaire, being widely available. Such scales provide only a subjective understanding of the disorder. In this study, we employed video pixel subtraction and machine learning classification to objectively categorize 85 participants (43 with a diagnosis of ADHD and 42 without) into an ADHD group or a non-ADHD group by quantifying their movements.
Methods: We employed pixel subtraction movement quantization by analyzing movement features in videos of patients in outpatient consultation rooms. Pixel subtraction is a technique in which the number of pixels in one frame is subtracted from that in another frame to detect changes between the two frames. A difference between the pixel values indicates the presence of movement. In the current study, the patients' subtracted image sequences were characterized using three movement feature values: mean, variance, and Shannon entropy value. A classification analysis based on six machine learning models was performed to compare the performance indices and the discriminatory power of various features.
Results: The results revealed that compared with the non-ADHD group, the ADHD group had significantly larger values for all movement features. Notably, the Shannon entropy values were 2.38 ± 0.59 and 1.0 ± 0.38 in the ADHD and non-ADHD groups, respectively (P < 0.0001). The Random Forest machine learning classification model achieved the most favorable results, with an accuracy of 90.24%, sensitivity of 88.85%, specificity of 91.75%, and area under the curve of 93.87%.
Conclusion: Our pixel subtraction and machine learning classification approach is an objective and practical method that can aid to clinical decisions regarding ADHD diagnosis.
Keywords: Attention deficit hyperactivity disorder; Machine learning; Nolan; Pelham questionnaire; Pixel subtraction; Swanson; Video analysis.
© 2024. The Author(s).
Conflict of interest statement
Declarations. Ethics approval and consent to participate: Written informed consent was obtained from the participants’ family members or legal guardians after the study procedures had been explained. Informed consent was also obtained for publication of their children’s images. This study was approved by the Institutional Review Board of Kaohsiung Medical University Hospital (KMUIRB-SV(I)- 20190060). Consent for publication: Not applicable. Competing interests: The authors declare no competing interests.
Figures








Similar articles
-
Early and Objective Evaluation of the Therapeutic Effects of ADHD Medication through Movement Analysis Using Video Recording Pixel Subtraction.Int J Environ Res Public Health. 2022 Mar 8;19(6):3163. doi: 10.3390/ijerph19063163. Int J Environ Res Public Health. 2022. PMID: 35328850 Free PMC article.
-
Objective and automatic assessment approach for diagnosing attention-deficit/hyperactivity disorder based on skeleton detection and classification analysis in outpatient videos.Child Adolesc Psychiatry Ment Health. 2024 May 27;18(1):60. doi: 10.1186/s13034-024-00749-5. Child Adolesc Psychiatry Ment Health. 2024. PMID: 38802862 Free PMC article.
-
Interpretable machine learning approaches for children's ADHD detection using clinical assessment data: an online web application deployment.BMC Psychiatry. 2025 Feb 17;25(1):139. doi: 10.1186/s12888-025-06573-1. BMC Psychiatry. 2025. PMID: 39962416 Free PMC article.
-
[Narrative review of scales assessing attention-deficit/hyperactivity disorder in children and adolescents].Medwave. 2014 Jan 20;14(1):e5887. doi: 10.5867/medwave.2014.01.5887. Medwave. 2014. PMID: 25198512 Review. Spanish.
-
Attention deficit hyperactivity disorder.Indian J Pediatr. 2015 Mar;82(3):267-71. doi: 10.1007/s12098-014-1556-7. Epub 2014 Sep 4. Indian J Pediatr. 2015. PMID: 25186567 Review.
Cited by
-
Artificial intelligence for children with attention deficit/hyperactivity disorder: a scoping review.Exp Biol Med (Maywood). 2025 Apr 24;250:10238. doi: 10.3389/ebm.2025.10238. eCollection 2025. Exp Biol Med (Maywood). 2025. PMID: 40342813 Free PMC article.
References
-
- Huang CL, Wang JJ, Ho CH. Trends in incidence rates of diagnosed attention-deficit/hyperactivity disorder (ADHD) over 12 years in Taiwan: a nationwide population-based study. Psychiatry Res. 2020;284:112792. - PubMed
-
- Tseng MH, et al. Relationship between motor proficiency, attention, impulse, and activity in children with ADHD. Dev Med Child Neurol. 2004;46(6):381–8. - PubMed
-
- Chen MH, Tsai SJ. Treatment-resistant panic disorder: clinical significance, concept and management. Prog Neuropsychopharmacol Biol Psychiatry. 2016;70:219–26. - PubMed
-
- Boland H, et al. A literature review and meta-analysis on the effects of ADHD medications on functional outcomes. J Psychiatr Res. 2020;123:21–30. - PubMed
-
- Wood AC, et al. Is overactivity a core feature in ADHD? Familial and receiver operating characteristic curve analysis of mechanically assessed activity level. J Am Acad Child Adolesc Psychiatry. 2009;48(10):1023–30. - PubMed
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Medical