Accepted for/Published in: JMIR AI
Date Submitted: Dec 22, 2025
Open Peer Review Period: Dec 22, 2025 - Feb 16, 2026
Date Accepted: Jun 12, 2026
(closed for review but you can still tweet)
Artificial Intelligence Prediction of Individual Treatment Response to Smartphone-Based Mindfulness in Autistic Adults with Anxiety Symptoms: A Randomized Controlled Trial Analysis
ABSTRACT
Background:
Anxiety disorders are highly prevalent among autistic adults, with 20%-65% experiencing at least one diagnosable anxiety disorder. While mindfulness-based interventions have demonstrated efficacy for anxiety reduction, treatment response varies considerably across individuals. Machine learning approaches offer potential for identifying who is most likely to benefit from smartphone-based mindfulness interventions, enabling personalized treatment recommendations.
Objective:
This study aimed to develop and evaluate machine learning models to predict individual treatment response to a smartphone-based mindfulness intervention for autistic adults. We identify baseline characteristics that distinguish responders from non-responders, explore few-shot learning with large language models (LLMs) as a complementary approach for low-data clinical prediction, and implement a Personalized Advantage Index for individualized treatment recommendations.
Methods:
We conducted a secondary analysis of a randomized controlled trial comparing a 6-week smartphone-based mindfulness intervention with a waitlist control in autistic adults. Among 73 participants who completed the intervention, we defined responders as those achieving ≥7-point reduction in State-Trait Anxiety Inventory state anxiety scores. Baseline predictors included demographic variables, autism trait measures, and self-report questionnaires assessing anxiety symptoms, perceived stress, affect, and mindfulness. In order to discover what machine learning model was most most predictive of response, we trained six different models (logistic regression, Random Forest, XGBoost, TabNet, Tab-ICL, and TabPFN) using nested 10-fold cross-validation with inner 5-fold cross-validation for hyperparameter tuning, evaluated GPT-4o few-shot learning with tokenized features at 20–70 shots, and implemented Personalized Advantage Index analysis.
Results:
Random Forest achieved the highest predictive performance for state anxiety response (AUC 0.79, 95% CI 0.66-0.91), followed by TabPFN (AUC 0.78, 95% CI 0.64-0.94) and logistic regression (AUC 0.77, 95% CI 0.73-0.81). Higher baseline state anxiety (coefficient 1.20, P<.001) predicted better treatment response, while higher Autism Quotient at baseline (coefficient -0.17, P=.001), older age (coefficient -0.18, P=.02), and lower childhood pretend play scores (coefficient -0.93, P=.007) were associated with poorer response. Few-shot learning with 7-feature tokenization achieved accuracy of 0.867 at 70 shots, compared to 0.733 for Random Forest. Prediction of trait anxiety changes was substantially weaker (AUCs 0.46-0.68), likely reflecting the inherent stability of this personality dimension. The Personalized Advantage Index predicted 75% of participants would benefit more from the mindfulness intervention than waitlist control, though interaction terms were non-significant.
Conclusions:
Machine learning models successfully identified baseline characteristics predicting state anxiety response to a smartphone-based mindfulness intervention in autistic adults. Few-shot learning with LLMs demonstrated superior performance to traditional machine learning when provided with compact, high-signal feature representations, offering a promising approach for clinical prediction in small-sample settings. These findings demonstrate the feasibility of precision psychiatry in digital mental health interventions for autistic adults.As online mental health interventions become ubiquitous, patients and clinicians can know whether a particular intervention is more or less likely to benefit an individual patient.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.