A Deterministic N-of-1 Pipeline for Multimodal Digital Phenotyping in ADHD and Bipolar Disorder
Year: 2025
Type: dissertation
Abstract: Attention-Deficit/Hyperactivity Disorder (ADHD) and Bipolar Disorder (BD) are characterised by marked intra-individual variability in sleep, activity and cardiovascular signals. Digital phenotyping offers a promising opportunity to capture such temporal patterns, but existing work often lacks deterministic pipelines, transparent heuristics, leakage-resistant evaluation, and long-term N-of-1 designs. This research presents a fully deterministic, ten-stage N-of-1 pipeline operating over eight years of multimodal wearable data. State of Mind (SoM) — a user-reported three-class measure of daily subjective stability exported from Apple Health — serves as the primary supervised target. The Personal Behaviour Stability Index (PBSI), a transparent physiological composite derived from sleep, heart-rate and activity metrics, is incorporated only as an auxiliary feature. The modelling framework includes: (i) ML6 baseline with Logistic Regression under calendar-based cross-validation; (ii) ML7 baseline with LSTM for sequence modelling; (iii) ML6-Extended comparing ten classical algorithms (Random Forest, XGBoost, LightGBM, Gradient Boosting, SVM, Gaussian Naive Bayes, KNN); and (iv) ML7-Extended evaluating four deep learning architectures (LSTM, GRU, Conv1D, CNN-LSTM). All stages incorporate strict anti-leak safeguards, drift detection (ADWIN, KS) and SHAP interpretability. Although the full dataset spans 2017–2025, predictive modelling was restricted to 77 SoM-labelled days (2024–2025) due to sparse user-reported labels. Results show that Random Forest achieved the best classical performance (macro-F1 ≈ 0.52), while LSTM was the best sequence model (macro-F1 ≈ 0.50). All models showed moderate performance, reflecting the challenging nature of predicting user-reported stability from sparse labels. These findings demonstrate the feasibility of predicting a user-defined behavioural stability construct (SoM) under strict anti-leak conditions. The deterministic pipeline may serve as a template for future N-of-1 digital phenotyping studies with reproducible and transparent analytical workflows.
Source: NORMA
Author: Marques Teixeira, Rodrigo
Institution: National College of Ireland
Language: English
Subfield: Experimental and Cognitive Psychology
Field: Psychology
Domain: Social Sciences
Open Access status: green
OpenAlex ID: W7209241374
