m+Medelevator.RU
← Поиск публикаций
Scientific reports · 2025

Эффективность моделей машинного обучения для прогнозирования симптомов высокой чувствительности при множественном склерозе.

СтатьяНаблюдательное исследованиеНазвание и аннотация: Машинный перевод · не проверен
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Roy Subhrajit, Mincu Diana, Proleev Lev, Ghate Chintan, Graves Jennifer S, Steiner David F, Hartsell Fletcher Lee, Heller Katherine

Аннотация

Текущий уход за многочисленными склерозами (МС) в первую очередь опирается на редко получаемые данные, такие, как магнитно-резонансная съемка, клинические лабораторные тесты или клиническая история, что приводит к незначительным изменениям, которые могут произойти в период между посещениями. Мобильные технологии позволяют осуществлять постоянный сбор данных и прокладывают путь к прогнозированию сложных аспектов НР, таких, как симптомы и заболевания. С этой целью мы провели первое в своем роде исследование по наблюдению под названием MS Mosail. Во-первых, мы разработали и публично запустили мобильное приложение для сбора продольных данных по предметам MS в Соединенных Штатах. Во-вторых, мы провели исследование через 3 годы для того, чтобы зафиксировать сложные модели этого медленно прогрессирующего заболевания. Наконец, мы ретроспективно разработали three Классические методы и методы ML two модели глубокого изучения, позволяющие точно и постоянно прогнозировать five симптомы высокого уровня жизни (усталость, сенсорное расстройство, неустойчивость ходьбы, депрессия или беспокойство и спазмы/спамы) three За несколько месяцев до этого.
Оригинал публикации

Performance of machine learning models for predicting high-severity symptoms in multiple sclerosis.

Current care in multiple sclerosis (MS) primarily relies on infrequently obtained data such as magnetic resonance imaging, clinical laboratory tests or clinical history, resulting in subtle changes that may occur between visits being missed. Mobile technology enables continual collection of data and can pave the path for predicting complex aspects of MS such as symptoms and disease courses. To this end, we conducted a first-of-its-kind observational study called MS Mosaic. First, we developed and publicly launched a mobile app for collecting longitudinal data from MS subjects in the United States. Second, we ran the study across 3 years in order to capture complex patterns for this slow progressing disease. Finally, we retrospectively developed three classical ML methods and two deep learning models to accurately and continually predict the incidence of five high-severity symptoms (fatigue, sensory disturbance, walking instability, depression or anxiety and cramps/spasms) three months in advance.

Перевод полного текста: Перевод в очереди

Читать найденный полный текст

https://creativecommons.org/licenses/by-nc-nd/4.0/ Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ .

Introduction

Multiple sclerosis (MS) is an immune-mediated disease characterized by the accrual of demyelinated lesions within the central nervous system (CNS). The symptoms imposed by such lesions can vary greatly on account of differences in lesion location, the extent of damage, and the nervous system’s fluctuating adaptations to neuronal injury. Such diverse disease phenotypes call for individualized approaches to care. Currently, care in MS is limited to infrequent snapshots of disease course captured in semi-annual visits and annual MRIs.

Digital health technology could fill the gap in the data needed to manage MS symptomatology better, and to catch subtle changes in function. Device ubiquity makes smartphones an ideal instrument for measuring chronic disease, especially with the advent of phone-based research platforms that can prompt surveys, perform assessments through phone sensors, and link to other devices. Ease of use and scale lend themselves naturally to capturing a diverse set of experiences by collecting a wide array of data, unlocking the potential for machine learning (ML) to be used. ML approaches have enabled insights using healthcare data at individual and population levels in a suite of domains such as neurology 1 , radiology 2 – 4 , pathology 5 , 6 , ophthalmology 7 , 8 , nephrology 9 , and genomics 10 , 11 . Within multiple sclerosis research, ML has predicted disease progression, facilitated MS sub-typing, detected MRI lesions, and refined several clinical endpoints 12 – 16 . A majority of these approaches primarily rely on using clinically-acquired information such as magnetic resonance imaging (MRI) 16 , clinical laboratory tests or clinical history 14 . Under this paradigm, disease progression data of an individual is obtained only infrequently during clinic visits and hence the subtle changes that may occur between visits are missed. Mobile technology enables continual collection of data and can pave the path for predicting complex aspects of MS such as symptoms and disease courses. We might learn what symptoms MS subjects are likely to develop, why they are experiencing the ones they have, and what treatments are more suited for their current disease burden. A few recent studies have demonstrated that mobile-based multiple sclerosis apps can reliably measure functional impairments of MS 17 , 18 .

To this end, we conducted the MS Mosaic observational study that leverages mobile devices to collect continual, subject-centered data so that ML methods can generate actionable clinical predictions on this data collected on a large-scale. We investigated whether ML techniques can be used to continually predict the occurrence of high-severity symptoms within a forward-looking window of three months. The symptoms we chose to focus on are fatigue, sensory disturbance, walking instability, depression or anxiety, and cramps (clinically referred to as spasms), such that they are clinically actionable and a wide array of potentially affected functions are represented. If these predictions prove reliable, this line of research can inform future study/app developments that provide app users and care providers with insights that can profoundly impact self-efficacy and self-care. We also evaluated model performance on different subgroups of the data sliced according to multiple sclerosis subtypes and age to investigate whether the models can capture a part of the individual experience. Moreover, we performed feature ablation studies to understand the performance contributions of different modalities of data collected via the MS Mosaic app, so that in the future we reduce the data entry burden for patients suffering from chronic health conditions.

Results

Overview of approach

We developed the MS Mosaic mobile application during a two-year collaboration between a professional software development team, MS care providers, data scientists, and MS participants. User experience research studies were performed involving MS subjects which informed the design of the app. We publicly launched the app in the United States on the Apple App Store and ran a prospective, case-control, site-less study across three years from September 29, 2017, until December 19, 2020. After the completion of the study, the recorded data was retrieved and de-identified. Subsequently, for each subject, we partitioned the entire time period into sliding subject-time instances (across the time dimension) that contain the subject’s data at a specific period of time. In our study, the instance length was chosen to be seven days to accommodate the weekly surveys. For each instance (i.e. triggered at weekly intervals), we predicted whether the median self-reported severity of one of the five symptoms would be above a score of two (moderate disability) in the next three months. More specifically, when constructing the labels, we check whether the symptom with the given threshold has occurred at any point within the prediction window and we set it to 1 (or True) if so. This means that at every time point we are predicting whether or not the symptom will appear at all, with a given severity, over the next 3 months. The symptoms were chosen in a way that successfully predicting them is clinically actionable. For model development, we only used subjects (N = 713) who used the app for more than three months. The dataset was divided randomly by participants into 80% (N = 567) development and 20% blind test (N = 146) cohorts for model development and testing, respectively. We used the development cohort to train and validate the models using the 5-fold cross validation approach. Three classical machine learning (logistic regression, multi-layer perceptron, and gradient boosted classifier) and two deep learning methods (recurrent neural network and temporal convolutional network) were separately trained to find the best performing model.

Characteristics of study population

A total of 1804 participants downloaded the MS Mosaic app and enrolled in the study. Since the prediction horizon was set to three months, only participants who used the App for more than three months were considered for this analysis. This led to a cohort of 713 participants comprising 39.52% of users who downloaded the app. The amount of time each participant dedicated to the study varied, with the mean, median and standard deviation reported in Table  1 . On average, participants used the app for at least a year, with the lower quartile at 146 days for the development set and 162 days for the test set, and the upper quartile at 598 days for the development set and 665 days for the test set. We want to also note, we saw a sharp drop in participants in March 2020 at the onset of the pandemic, which would skew these averages. The study was stopped in December 2020, meaning there were around 6 months of low utilization.

As a part of the initial survey, 623 participants (87.37%) of the cohort chose to report their age (mean [SD], 46.27 [11.46]). The development cohort and blind test cohort were chosen randomly and consisted of 567 (mean [SD] age, 46.42 [11.51]) and 146 (mean [SD] age, 45.71 [11.29]) participants respectively. Table  1 includes characteristics for the development and blind test cohorts. The mean [SD] number of days the participants used the app were 378 [267] and 388 [262] for the development and blind test set respectively. The mean [SD] diagnosis age of MS was 30.64 [10.99]. Table 1 Baseline characteristics of the development and blind test cohorts. Characteristic Development cohort Blind test cohort Unique participants, no. 567 146 Enrollment duration, mean (SD, median), days 378 (267, 293) 388 (262, 279) Age, mean (SD), y 46.41 (11.51) 45.71 (11.29) Age, group, y (Prevalence %)    \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$<30$$\end{document} < 30 41 (7.23) 9 (6.16)   30–50 242 (42.68) 67 (45.89)   50–70 190 (33.51) 44 (30.14)      \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$>70$$\end{document} > 70 7 (1.23) 1 (0.68) Medical history, No. (Prevalence %)   History of MS in family 109 (19.22) 37 (25.34)   History of vitamin D deficiency 253 (44.62) 65 (44.52)   History of hypertension 94 (16.57) 23 (15.75)   History of thyroid disease 71 (12.52) 11 (7.53)   History of cancer 29 (5.11) 5 (3.42)   History of diabetes 27 (4.76) 7 (4.79)   History of seizure or epilepsy 26 (4.58) 6 (4.10) Multiple Sclerosis subtypes, No. (Prevalence %)   Relapsing-remitting 379 (66.84) 103 (70.55)   Primary progressive 34 (5.99) 3 (2.05)   Secondary progressive 27 (4.76) 6 (4.11)   Progressive relapsing 9 (1.58) 2 (1.37)   Control 13 (2.29) 8 (5.48) Symptoms, Total no. reported (Prevalence %)   Fatigue 26404 (90.65) 7350 (91.78)   Weakness 25388 (77.07) 5738 (73.97)   Bladder problems 25123 (69.31) 5751 (65.07)   Cognitive changes or brain fog 24299 (79.19) 6134 (78.08)   Depression or anxiety 20756 (77.60) 4220 (75.34)   Walking instability or coordination problems 20099 (76.54) 4568 (73.29)   Bowel problems 19881 (64.20) 4438 (60.96)   Cramps 15577 (62.96) 2882 (59.59)   Headache 13002 (71.78) 3079 (75.34)   Sensory disturbance 11998 (56.79) 3053 (56.84)   Vertigo or dizziness 10119 (59.44) 2538 (58.21)   Vision loss/blurred vision 6848 (48.85) 2190 (48.63)   Difficulty swallowing 6704 (38.98) 2067 (35.62)   Sexual problems 6669 (39.68) 1663 (38.35)   Hearing changes 5198 (32.63) 1099 (30.82)   Double vision 4542 (33.51) 1274 (36.30)   Facial weakness 3965 (28.40) 582 (20.54)   Slurred speech 3853 (31.22) 1271 (28.77)   Loss of taste 3466 (24.87) 1004 (20.55) subjects with relapses, No. 252 59 Total relapses, no. 1427 204

Table 1 Baseline characteristics of the development and blind test cohorts. Characteristic Development cohort Blind test cohort Unique participants, no. 567 146 Enrollment duration, mean (SD, median), days 378 (267, 293) 388 (262, 279) Age, mean (SD), y 46.41 (11.51) 45.71 (11.29) Age, group, y (Prevalence %)    \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$<30$$\end{document} < 30 41 (7.23) 9 (6.16)   30–50 242 (42.68) 67 (45.89)   50–70 190 (33.51) 44 (30.14)      \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$>70$$\end{document} > 70 7 (1.23) 1 (0.68) Medical history, No. (Prevalence %)   History of MS in family 109 (19.22) 37 (25.34)   History of vitamin D deficiency 253 (44.62) 65 (44.52)   History of hypertension 94 (16.57) 23 (15.75)   History of thyroid disease 71 (12.52) 11 (7.53)   History of cancer 29 (5.11) 5 (3.42)   History of diabetes 27 (4.76) 7 (4.79)   History of seizure or epilepsy 26 (4.58) 6 (4.10) Multiple Sclerosis subtypes, No. (Prevalence %)   Relapsing-remitting 379 (66.84) 103 (70.55)   Primary progressive 34 (5.99) 3 (2.05)   Secondary progressive 27 (4.76) 6 (4.11)   Progressive relapsing 9 (1.58) 2 (1.37)   Control 13 (2.29) 8 (5.48) Symptoms, Total no. reported (Prevalence %)   Fatigue 26404 (90.65) 7350 (91.78)   Weakness 25388 (77.07) 5738 (73.97)   Bladder problems 25123 (69.31) 5751 (65.07)   Cognitive changes or brain fog 24299 (79.19) 6134 (78.08)   Depression or anxiety 20756 (77.60) 4220 (75.34)   Walking instability or coordination problems 20099 (76.54) 4568 (73.29)   Bowel problems 19881 (64.20) 4438 (60.96)   Cramps 15577 (62.96) 2882 (59.59)   Headache 13002 (71.78) 3079 (75.34)   Sensory disturbance 11998 (56.79) 3053 (56.84)   Vertigo or dizziness 10119 (59.44) 2538 (58.21)   Vision loss/blurred vision 6848 (48.85) 2190 (48.63)   Difficulty swallowing 6704 (38.98) 2067 (35.62)   Sexual problems 6669 (39.68) 1663 (38.35)   Hearing changes 5198 (32.63) 1099 (30.82)   Double vision 4542 (33.51) 1274 (36.30)   Facial weakness 3965 (28.40) 582 (20.54)   Slurred speech 3853 (31.22) 1271 (28.77)   Loss of taste 3466 (24.87) 1004 (20.55) subjects with relapses, No. 252 59 Total relapses, no. 1427 204

Baseline characteristics of the development and blind test cohorts.

Across the 623 participants considered in this study, the most frequently reported comorbidities were: vitamin D deficiency (318 [51.04%]), hypertension (117 [18.78%]), thyroid disease (82 [13.16%]), cancer (34 [5.46%]), diabetes (34 [5.46%]), and seizure or epilepsy (32 [5.14%]). We report further details on all comorbidities reported by the participants in the Supplemental material. In addition, 146 [23.4%] participants reported a family history of MS.

A total of 482 (77.37%) participants had relapsing-remitting, 37 (5.94%) had primary progressive, 33 (5.30%) had secondary progressive, 11 (1.77%) had progressive relapsing MS (a term the medical community has since moved away from, but for the purposes of staying true to the data that was collected we report it here separately), and 21 (3.37%) were control participants.

Out of the 19 symptoms included in the daily symptom surveys, Fatigue was reported most frequently (33,754 [90.88%]), followed by weakness (31,126 [76.43%]) and bladder problems (30,874 [68.44%]). Cognitive changes or brain fog (30,433 [78.96%]), depression or anxiety (24,976 [77.14%]) and walking instability of coordination problems (24,667 [75.88%]) closely followed. The weekly relapse survey data showed that 1631 relapses were reported by 311 unique participants.

When looking at wearable data, a total of 713 participants from the leftover cohort recorded step and sleep counts. Percentage-wise that represents 31% of the development set, and 7% of the test set.

A more in-depth look at the frequency and dropout in per-feature imputation is presented in the supplementary material.

Model discrimination

Table  2 displays the performance of all models on predicting whether the median severity of self-reported symptoms within a forward-looking prediction window of 3 months is above two (moderate to high severity). The key performance measures assessing the performance obtained by each model on predicting the occurrence of high-severity symptoms are provided in Table  2 . Gradient boosting Classifier outperformed other ML and DL models for all 5 symptoms. On the blind test cohort, GBC achieved an AUROC of 0.886 (95% CI 0.870–0.901) for cramps, 0.881 (95% CI 0.868–0.895) for depression or anxiety, 0.824 (95% CI 0.813–0.836) for Fatigue, 0.899 (95% CI 0.883–0.915) for sensory disturbance, and 0.899 (95% CI 0.891–0.909) for walking instability or coordination problems. The fact that GBC outperformed deep learning algorithms is not surprising and has been observed in relatively smaller and tabular datasets 19 .

Based on AUROC, the best performing deep learning model and the second best performing model overall was TCN. GBC demonstrated an increase in 0.155, 0.136, 0.042, 0.143 and 0.125 of AUROC compared to TCN on predicting the incidence of high-severity cramps, depression or anxiety, fatigue, sensory disturbance, and walking instability or coordination problems respectively.

With a 0.5 probability as the cutoff, GBC achieved a PPV and sensitivity of 0.771 [95% CI 0.736–0.815] and 0.459 [95% CI 0.427–0.498] for cramps, 0.800 [95% CI 0.772–0.827] and 0.538 (0.508, 0.573) for depression or anxiety, 0.731 [95% CI 0.704–0.752] and 0.593 [95% CI 0.573–0.616) for fatigue, 0.772 [95% CI 0.732–0.812] and 0.443 [95% CI 0.402–0.483] for sensory disturbance, 0.763 [95% CI 0.735–0.794] and 0.527 [95% CI 0.504–0.562] for walking instability or coordination problems respectively. We show the receiver operating characteristic curves for all models in Fig.  1 which further demonstrates the superiority of GBC. Table 2 Results obtained by machine learning models when predicting a symptom severity \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$> 2, 3$$\end{document} > 2 , 3 months in advance. Model AUROC [95% CI] AUPRC [95% CI] Brier score [95% CI] Symptom: cramps   Gradient boosting classifier 0.886 [0.870, 0.901] 0.664 [0.630, 0.700] 0.063 [0.058, 0.068]   Logistic regression 0.613 [0.589, 0.635] 0.171 [0.153, 0.197] 0.126 [0.122, 0.132]   Multi-layer perceptron 0.500 [0.500, 0.500] 0.559 [0.554, 0.563] 0.167 [0.165, 0.170]   Recurrent neural network 0.562 [0.542, 0.587] 0.136 [0.122, 0.153] 0.160 [0.158, 0.163]   Temporal convolutional network 0.731 [0.709, 0.751] 0.327 [0.294, 0.369] 0.132 [0.127, 0.140]   Symptom propagation method 0.549 [0.531, 0.568] 0.265 [0.251, 0.276] 0.256 [0.243, 0.271]   Gradient boosting classifier w/o cramps 0.755 [0.734, 0.773] 0.619 [0.582, 0.635] 0.061 [0.057, 0.064] Symptom: depression or anxiety   Gradient boosting classifier 0.881 [0.868, 0.895] 0.715 [0.688, 0.741] 0.086 [0.081, 0.092]   Logistic regression 0.568 [0.547, 0.588] 0.266 [0.242, 0.296] 0.160 [0.154, 0.166]   Multi-layer perceptron 0.500 [0.500, 0.500] 0.588 [0.583, 0.593] 0.147 [0.141, 0.153]   Recurrent neural network 0.525 [0.503, 0.546] 0.214 [0.196, 0.242] 0.154 [0.148, 0.159]   Temporal convolutional network 0.745 [0.726, 0.765] 0.490 [0.456, 0.530] 0.205 [0.202, 0.208]   Symptom propagation method 0.587 [0.560, 0.595] 0.389 [0.362, 0.402] 0.218 [0.192, 0.248]   Gradient boosting classifier w/o depression or anxiety 0.763 [0.753, 0.775] 0.638 [0.618, 0.664] 0.091 [0.088, 0.093] Symptom: fatigue   Gradient boosting classifier 0.824 [0.813, 0.836] 0.755 [0.739, 0.777] 0.160 [0.155, 0.166]   Logistic regression 0.677 [0.662, 0.695] 0.593 [0.572, 0.616] 0.210 [0.206, 0.215]   Multi-layer perceptron 0.608 [0.593, 0.623] 0.452 [0.433, 0.474] 0.227 [0.223, 0.232]   Recurrent neural network 0.673 [0.659, 0.688] 0.570 [0.548, 0.596] 0.211 [0.207, 0.217]   Temporal convolutional network 0.782 [0.770, 0.796] 0.704 [0.681, 0.724] 0.188 [0.181, 0.194]   Symptom propagation method 0.583 [0.574, 0.609] 0.462 [0.428, 0.487] 0.250 [0.238, 0.271]   Gradient boosting classifier w/o fatigue 0.744 [0.727, 0.761] 0.678 [0.652, 0.691] 0.187 [0.184, 0.189] Symptom: sensory disturbance   Gradient boosting classifier 0.899 [0.883, 0.915] 0.654 [0.612, 0.695] 0.062 [0.058, 0.067]   Logistic regression 0.747 [0.726, 0.768] 0.322 [0.291, 0.357] 0.101 [0.096, 0.106]   Multi-layer perceptron 0.500 [0.500, 0.500] 0.557 [0.553, 0.561] 0.103 [0.097, 0.108]   Recurrent neural network 0.630 [0.600, 0.658] 0.260 [0.226, 0.298] 0.097 [0.092, 0.103]   Temporal convolutional network 0.756 [0.729, 0.779] 0.456 [0.415, 0.490] 0.083 [0.078, 0.088]   Symptom propagation method 0.522 [0.492, 0.548] 0.239 [0.225, 0.257] 0.152 [0.136, 0.173]   Gradient boosting classifier w/o sensory disturbance 0.821 [0.81, 0.836] 0.571 [0.567, 0.573] 0.075 [0.071, 0.079] Symptom: walking instability or coordination problems   Gradient boosting classifier 0.899 [0.891, 0.909] 0.753 [0.732, 0.777] 0.103 [0.097, 0.109]   Logistic regression 0.738 [0.721, 0.755] 0.513 [0.488, 0.547] 0.153 [0.147, 0.158]   Multi-layer perceptron 0.661 [0.643, 0.677] 0.393 [0.368, 0.419] 0.166 [0.160, 0.172]   Recurrent neural network 0.714 [0.695, 0.731] 0.455 [0.429, 0.486] 0.191 [0.189, 0.194]   Temporal convolutional network 0.774 [0.763, 0.787] 0.439 [0.418, 0.471] 0.155 [0.149, 0.161]   Symptom propagation method 0.594 [0.577, 0.627] 0.365 [0.340, 0.381] 0.216 [0.199, 0.236]   Gradient boosting classifier w/o walking Instability 0.840 [0.826, 0.852] 0.715 [0.682, 0.739] 0.127 [0.123, 0.130] To demonstrate the discriminatory performance of the models, we reported the area under the receiver operating characteristic curve (AUROC) and the area under the precision recall curve (AUPRC). In addition, we demonstrated calibration performance by reporting the Brier score obtained by the models. For all reported results, we computed the 95% confidence interval using \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$N=200$$\end{document} N = 200 bootstrap estimators. Significant values are in bold.

Table 2 Results obtained by machine learning models when predicting a symptom severity \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$> 2, 3$$\end{document} > 2 , 3 months in advance. Model AUROC [95% CI] AUPRC [95% CI] Brier score [95% CI] Symptom: cramps   Gradient boosting classifier 0.886 [0.870, 0.901] 0.664 [0.630, 0.700] 0.063 [0.058, 0.068]   Logistic regression 0.613 [0.589, 0.635] 0.171 [0.153, 0.197] 0.126 [0.122, 0.132]   Multi-layer perceptron 0.500 [0.500, 0.500] 0.559 [0.554, 0.563] 0.167 [0.165, 0.170]   Recurrent neural network 0.562 [0.542, 0.587] 0.136 [0.122, 0.153] 0.160 [0.158, 0.163]   Temporal convolutional network 0.731 [0.709, 0.751] 0.327 [0.294, 0.369] 0.132 [0.127, 0.140]   Symptom propagation method 0.549 [0.531, 0.568] 0.265 [0.251, 0.276] 0.256 [0.243, 0.271]   Gradient boosting classifier w/o cramps 0.755 [0.734, 0.773] 0.619 [0.582, 0.635] 0.061 [0.057, 0.064] Symptom: depression or anxiety   Gradient boosting classifier 0.881 [0.868, 0.895] 0.715 [0.688, 0.741] 0.086 [0.081, 0.092]   Logistic regression 0.568 [0.547, 0.588] 0.266 [0.242, 0.296] 0.160 [0.154, 0.166]   Multi-layer perceptron 0.500 [0.500, 0.500] 0.588 [0.583, 0.593] 0.147 [0.141, 0.153]   Recurrent neural network 0.525 [0.503, 0.546] 0.214 [0.196, 0.242] 0.154 [0.148, 0.159]   Temporal convolutional network 0.745 [0.726, 0.765] 0.490 [0.456, 0.530] 0.205 [0.202, 0.208]   Symptom propagation method 0.587 [0.560, 0.595] 0.389 [0.362, 0.402] 0.218 [0.192, 0.248]   Gradient boosting classifier w/o depression or anxiety 0.763 [0.753, 0.775] 0.638 [0.618, 0.664] 0.091 [0.088, 0.093] Symptom: fatigue   Gradient boosting classifier 0.824 [0.813, 0.836] 0.755 [0.739, 0.777] 0.160 [0.155, 0.166]   Logistic regression 0.677 [0.662, 0.695] 0.593 [0.572, 0.616] 0.210 [0.206, 0.215]   Multi-layer perceptron 0.608 [0.593, 0.623] 0.452 [0.433, 0.474] 0.227 [0.223, 0.232]   Recurrent neural network 0.673 [0.659, 0.688] 0.570 [0.548, 0.596] 0.211 [0.207, 0.217]   Temporal convolutional network 0.782 [0.770, 0.796] 0.704 [0.681, 0.724] 0.188 [0.181, 0.194]   Symptom propagation method 0.583 [0.574, 0.609] 0.462 [0.428, 0.487] 0.250 [0.238, 0.271]   Gradient boosting classifier w/o fatigue 0.744 [0.727, 0.761] 0.678 [0.652, 0.691] 0.187 [0.184, 0.189] Symptom: sensory disturbance   Gradient boosting classifier 0.899 [0.883, 0.915] 0.654 [0.612, 0.695] 0.062 [0.058, 0.067]   Logistic regression 0.747 [0.726, 0.768] 0.322 [0.291, 0.357] 0.101 [0.096, 0.106]   Multi-layer perceptron 0.500 [0.500, 0.500] 0.557 [0.553, 0.561] 0.103 [0.097, 0.108]   Recurrent neural network 0.630 [0.600, 0.658] 0.260 [0.226, 0.298] 0.097 [0.092, 0.103]   Temporal convolutional network 0.756 [0.729, 0.779] 0.456 [0.415, 0.490] 0.083 [0.078, 0.088]   Symptom propagation method 0.522 [0.492, 0.548] 0.239 [0.225, 0.257] 0.152 [0.136, 0.173]   Gradient boosting classifier w/o sensory disturbance 0.821 [0.81, 0.836] 0.571 [0.567, 0.573] 0.075 [0.071, 0.079] Symptom: walking instability or coordination problems   Gradient boosting classifier 0.899 [0.891, 0.909] 0.753 [0.732, 0.777] 0.103 [0.097, 0.109]   Logistic regression 0.738 [0.721, 0.755] 0.513 [0.488, 0.547] 0.153 [0.147, 0.158]   Multi-layer perceptron 0.661 [0.643, 0.677] 0.393 [0.368, 0.419] 0.166 [0.160, 0.172]   Recurrent neural network 0.714 [0.695, 0.731] 0.455 [0.429, 0.486] 0.191 [0.189, 0.194]   Temporal convolutional network 0.774 [0.763, 0.787] 0.439 [0.418, 0.471] 0.155 [0.149, 0.161]   Symptom propagation method 0.594 [0.577, 0.627] 0.365 [0.340, 0.381] 0.216 [0.199, 0.236]   Gradient boosting classifier w/o walking Instability 0.840 [0.826, 0.852] 0.715 [0.682, 0.739] 0.127 [0.123, 0.130] To demonstrate the discriminatory performance of the models, we reported the area under the receiver operating characteristic curve (AUROC) and the area under the precision recall curve (AUPRC). In addition, we demonstrated calibration performance by reporting the Brier score obtained by the models. For all reported results, we computed the 95% confidence interval using \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$N=200$$\end{document} N = 200 bootstrap estimators. Significant values are in bold.

Results obtained by machine learning models when predicting a symptom severity \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$> 2, 3$$\end{document} > 2 , 3 months in advance.

To demonstrate the discriminatory performance of the models, we reported the area under the receiver operating characteristic curve (AUROC) and the area under the precision recall curve (AUPRC). In addition, we demonstrated calibration performance by reporting the Brier score obtained by the models. For all reported results, we computed the 95% confidence interval using \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$N=200$$\end{document} N = 200 bootstrap estimators.

Significant values are in bold.

Figure 1 Receiver operating characteristic curves (left column) and calibration curves (right column) for machine learning models (gradient boosting classifier, logistic regression, multi-layer perceptron, recurrent neural network, and temporal convolutional network) for predicting whether the median value of a user-reported symptom will be of high-severity ( \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$>2$$\end{document} > 2 ) in the next three months. The symptoms considered are ( A ) cramps, ( B ) depression or anxiety, ( C ) fatigue, ( D ) sensory disturbance, and ( E ) walking instability or coordination problems respectively.

Receiver operating characteristic curves (left column) and calibration curves (right column) for machine learning models (gradient boosting classifier, logistic regression, multi-layer perceptron, recurrent neural network, and temporal convolutional network) for predicting whether the median value of a user-reported symptom will be of high-severity ( \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$>2$$\end{document} > 2 ) in the next three months. The symptoms considered are ( A ) cramps, ( B ) depression or anxiety, ( C ) fatigue, ( D ) sensory disturbance, and ( E ) walking instability or coordination problems respectively.

Model calibration

In addition to having good discriminative performance, machine learning models need to be well-calibrated. We use the Brier score to evaluate model calibration which are shown in Table  2 and the calibration curves are shown in the supplementary material. The trained Gradient Boosting Classifier models reports the lowest Brier score for all 5 symptoms thereby demonstrating their predictions have the lowest uncertainty. We verify this by visually inspecting the calibraton curves shown in Fig.  1 which demonstrate that the trained GBC models are well-calibrated for all symptoms.

Subgroup analyses

To evaluate the model performance in different multiple sclerosis subtypes, we selected participants from the blind test cohort who have self-reported to have one of the four common MS subtypes: relapsing remitting (103 participants), primary progressive (3 participants), secondary progressive (6 participants), and progressive relapsing (2 participants). The subgroups in this case were fairly small because there were not many participants in the full dataset who met the criteria for those subgroups. We would also like to acknowledge that the field has moved away from the term “progressive relapsing”, however at the time of the study design this was still in use and therefore we have left it in to report the data as collected. In future iterations these participants would be collapsed into a “progressive MS” group. The AUROC obtained by the GBC model for these subtypes are shown in Fig.  2 . Overall the performance obtained on relapsing-remitting and secondary progressive participants were of higher quality compared to primary progressive and progressive relapsing. We reckon this is possibly due to the lower number of participants available for these subtypes both in the development and blind test set.

In addition, we also partitioned the blind test cohort according to age and report the performance obtained by GBC in Fig.  2 . We followed the categorization of Table  1 , however, removed the “age \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$> 70$$\end{document} > 70 ” subgroup since it contained only one participant in the blind test cohort. The remaining subgroups “ age \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$< 30$$\end{document} < 30 ”, “30 \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$<=$$\end{document} < = age \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$< 50$$\end{document} < 50 ”, and “50 \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$<=$$\end{document} < = age \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$< 70$$\end{document} < 70 ” contained 9, 67, and 44 participants respectively in the blind test set. Overall we observe AUROC to be in similar range across age-based subgroups. Figure 2 Area under the receiver operating characteristic curve (AUROC) obtained by Gradient boosting classifier (GBC) for predicting occurrence of high-severity symptoms on different subgroups of the data: ( A ) four subtypes of multiple sclerosis and ( B ) three age groups. We include the 95% confidence intervals as error-bars. The bar representing “age \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$< 30$$\end{document} < 30 ” for Cramps is missing from the figure due to the absence of participants in that intersection.

Area under the receiver operating characteristic curve (AUROC) obtained by Gradient boosting classifier (GBC) for predicting occurrence of high-severity symptoms on different subgroups of the data: ( A ) four subtypes of multiple sclerosis and ( B ) three age groups. We include the 95% confidence intervals as error-bars. The bar representing “age \documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$< 30$$\end{document} < 30 ” for Cramps is missing from the figure due to the absence of participants in that intersection.

Identification of key predictive features

Figure  3 showcases the Gradient Boosting Classifier’s performance using only the elements of distinct feature groups: symptoms, demographics (only included age in our case), functional tests, passive signals, active features (union of symptoms and functional tests), and finally a set with all features. Note that age is the only static feature in our feature set, while others are continually collected.

The “all features” group has the highest performance out of all the segments, however the results depict that symptoms alone account for the biggest performance contribution compared to all remaining groups in most cases. Out of the sequential features, passive signals are found to be least predictive for all symptoms. The performance of functional tests come between symptoms and passive signals (four out of five symptoms). Overall the static “demographics” feature show the least performance compared to the dynamic feature groups.

In addition to investigating the impact of categories of features, we identified importance of individual features by performing permutation feature importance for the GBC model 20 . We found that the most predictive feature for a particular symptom is its past trajectory—consistent across all five symptoms considered in Table  2 . This is as expected, and serves as a sanity check for our resulting models. The next most predictive features are not predictable and can be either other symptoms, functional tests, or passive signals. For example in the case of cramps we can see that the top 5 predictive features are all related in some way to spasticity, but bladder spasticity is an interesting one to make the top 5. We provide the top five features and their importance scores for each symptom in the Supplementary material.

Feature ablation studies

One important thing to note is that when the model is predicting the future trajectory of a particular symptom, it’s past data is included in the feature set. First, we ran an ablation study where for each symptom label we removed the predicted symptom from the feature set, so that when the model is predicting whether a symptom will be severe three months in the future, it has no information of what happened in the past. Results are reported in Table  2 . AUROCs obtained were 0.755 [95% CI 0.734–0.773], 0.763 [95% CI 0.753–0.775], 0.744 [95% CI 0.727 0.761], 0.821 [95% CI 0.81–0.836], and 0.840 [95% CI 0.826 0.852] for cramps, depression or anxiety, fatigue, sensory disturbance, and walking instability, demonstrating a drop of 0.131, 0.083, 0.071, 0.090, and 0.048 respectively. On one hand, the performance drop indicates that a particular symptom’s past data is important while predicting its future trajectory. This finding is consistent with the feature importance analysis described in “ Identification of key predictive features ” section. On the other hand, even without that and by using data from solely other symptoms, functional tests, passive signals, and demographics, high performance could be achieved. This is also consistent with “ Identification of key predictive features ” section where we report that other predictive features apart from top most feature don’t follow a pattern. This highlights the importance of considering all available data collectively, which proves the need for methods that can analyze a wide range of data simultaneously.

Second, we included a simple rule-based algorithm as a baseline in Table  2 which produces a positive prediction if the median value of the severity score of the symptom in the previous three months was above threshold i.e. propagates the past. We term this rule as the “symptom propagation method” and it substantially under-performs GBC. This is meant to serve as proof that simply taking into account the symptom’s past values is not enough for an accurate assessment of that symptom’s future trajectory. Figure 3 Area under the receiver operating characteristic curve (AUROC) achieved by Gradient Boosting Classifier (GBC) while predicting the incidence of high-severity symptoms on different groups of features: symptoms, demographics (only included age in our case), functional tests, passive signals, active features (combination of symptoms and functional tests), and lastly a set with all features. 95% confidence intervals have been included as error-bars.

Area under the receiver operating characteristic curve (AUROC) achieved by Gradient Boosting Classifier (GBC) while predicting the incidence of high-severity symptoms on different groups of features: symptoms, demographics (only included age in our case), functional tests, passive signals, active features (combination of symptoms and functional tests), and lastly a set with all features. 95% confidence intervals have been included as error-bars.

Discussion

Through this multi-year cross-discipline study we have shown that the creation of a mobile app for people suffering with a chronic health condition is a vital step in collecting quality data that can be used for downstream prediction tasks. People affected by MS want to better understand their disease course, and to that end can contribute a wealth of information to aid the development of better predictive models.

Furthermore, using both active and passive data, we demonstrate that ML algorithms can predict high-severity symptoms in MS using functional tests and symptom surveys collected via a mobile app and passive signals from wearable devices. Symptomatic uncertainties associated with MS can have a substantial impact on quality of life, as individuals struggle to anticipate how they will feel each day, whether their symptoms will impede daily tasks, or know if particular symptoms originate from their MS. By focusing on actionable prediction of high-severity symptoms, the algorithm described here could improve anticipatory guidance and symptom management. For example, forecasting a change in walking ability can enable a clinician and subject to proactively discuss current activities and motivate the utilization of resources, such as physical therapy, before symptoms progress. Similarly, for predicted sensory disturbances or depression, mitigating medications can be discussed and considered preemptively. This avoids care delays or preventable burdens to subjects or caregivers who might need additional trips for further testing or procedures. The MS Mosaic App generated symptom summary reports for the participants on demand (e.g. for the previous 6 months), so that this report could be used in clinical conversation. Given the baseline results were close to random when using that information in isolation, we envision our model’s purpose is to provide additional context by summarizing a large amount of data points and predicting what the symptom trajectory might look like in the next 3-6 months. We believe this data will accelerate reactive conversations during clinical encounters and improve quality of life.

Gradient Boosting Classifiers (GBC) outperformed all other models and could predict whether the five chosen symptoms would cross over a moderate discomfort threshold three months in advance. While deep learning models perform well on large datasets, our work shows that more classic methods outperform them in this context, showcasing that it’s only sometimes necessary to use the most complex setup 21 . It has been demonstrated earlier that tree ensemble models outperform deep neural networks for tabular datasets. Since our dataset is tabular, sequential, and relatively small, GBC, a tree ensemble model, outperformed deep learning models such as TCN and RNN. We do note that overall TCN was the second best model.

Feature ablation studies showed that while the complete feature set demonstrated the highest model performance (based on AUROC), models without demographic information performed similarly. This result suggests that recording demographic data for predictive purposes may be optional. Future work is warranted to investigate whether demographic data benefits model performance and clinical utility, enabling additional vital considerations regarding the balance between data needs and privacy.

We also acknowledge certain limitations of this study which we discuss alongside potential solutions which we incorporated in further iterations of the app. First, symptom experience is subjective, so the same recorded score on the Lickert scale may be interpreted and assigned differently by different individuals. More effort could be made in future work to help individuals calibrate and standardize responses. Second, elements of data collection requiring significant effort may limit data completeness in some cases. In addition there was a noticed drop-off in engagement—from the 1804 participants who downloaded the app, only 713 participants reliably provided at least three months’ worth of data, with the median engagement overall being approximately seven weeks. Participant dropoff may also lead to some response bias in the data based on who signed up and continued to engage over time. Specifically, the population regularly engaging with the app represented a younger population than current epidemiological estimations suggest 22 . The app being restricted to English speakers, and iPhone users also contributed to this bias. To correct this, newer versions of the app have been designed for both iOS and Android, and have significantly improved upon the data entry burden. The solution employed in the study to improve retention consisted of daily notifications, with each day’s survey auto-populated with the previous entry’s responses - thus reducing the participant’s “entry burden” to documenting the changes in symptom severity or medication usage since the last survey. Third, some of the patients were treated with symptomatic therapies to manage the studied symptoms—a limitation of the observational nature of this study. The participants were asked to log their medication usage to account for potential symptom modifier effects in retrospective analysis, however the medication data was not standardized leading to a large number of different medications and categories (in the order of hundreds) which introduced a lot of noise in our models. We made the decision to cut them from the current study, and re-evaluated the medication imputation feature in the new version of the app. Fourth, instead of using validated survey instruments such as the Multiple Sclerosis Quality of Life Inventory (MSQLI), we used light-weight surveys. MSQLI was designed for use during clinical encounters and was meant to be collected on a less frequent basis. We anticipated that replicating it in the smartphone context would lead to a significantly greater burden on the participants where surveys were asked on a daily basis. We used the light-version to improve retention. Lastly, while substantial efforts were made to inform app development from machine learning and clinical perspectives, the app’s user experience could be further optimized for usability and engagement for the intended user population. This has now been iterated upon, and future versions of the app have accessibility at the top of mind.

To sum up, in this study we designed, built and launched an app that collected MS related data; ran the study for over 3 years; and we developed a model for symptom prediction in MS using subject provided responses and wearable data over time. This approach has the potential to empower subjects as experts of their own experience in order to improve symptom management, and to optimize the often limited interactions with physicians and clinical experts.

Methods

Study design and participants

We performed a prospective, case-control, siteless study through a mobile application, MS Mosaic for data collection and retrospectively developed machine learning models. The mobile application was designed during a two-year collaboration between a professional software development team (Thread Research) and MS care providers, data scientists, MS subjects, and computer science undergraduates recruited at Duke University. An overview of the study design and development steps can be seen in Fig.  4 . Institutional review boards at Duke University and Duke Health approved the relevant aspects of the mobile application development process and the primary research protocol. All methods were performed in accordance with the relevant guidelines and regulations of Duke University and Duke Neurology who sponsored the study. All study data are stored in a HIPAA-compliant trench of Amazon Web Services. The analyses presented here were performed in collaboration with Google data scientists. Figure 4 Study diagram showcasing all the steps from inception to research output.

Study diagram showcasing all the steps from inception to research output.

The app was available in the United States for download from the Apple App Store from the study’s launch on September 29, 2017, until December 19, 2020. Eligibility criteria included possessing a compatible Apple iPhone, being 18 or older, United States residency, and proficiency in English. Participation was not limited to people with multiple sclerosis since we deemed it necessary to obtain a baseline from healthy controls. All participants provided electronically signed informed consent, which included permissions on data sharing. The analyses presented here were performed on the large subset of participants that permitted sharing their anonymized data with collaborators outside of Duke University. The study’s consent form and methods used for anonymization are provided in the Supplementary material. The study app confirmed eligibility, offered study education, obtained consent, assisted participants through various study-related tasks, provided curated disease education, and summarized submitted data for the participant’s use. Newly enrolled participants would complete an initial background survey for general demographics (age, gender, geographic region where they grew up, smoking history, history of mononucleosis). Contributors were then asked if they had been diagnosed with MS and, if so, answered basic information about the nature and length of their MS experience (type of MS, age at diagnosis, history of previous disease modifier use) and more in-depth surveys regarding their MS symptoms. Participants were then prompted daily to record their medication adherence and rate symptom severity on a 5-point Likert scale 23 from a pre-populated list of the most common MS-associated symptoms. Each day’s symptom survey was pre-populated to reduce data entry fatigue with the most recent responses. Participants only needed to rate a given symptom by how much it had changed since the last entry. The medications were removed from the final list of features, due to the large amount of non-standard entries which expanded the feature space by more than 10,000. This huge amount of sparsity made learning impossible, and in the future we plan to standardize at least the medication category and mode of action.

Participants also completed the following open-source performance assessment tests in a bi-weekly cadence: two finger tapping interval, timed 25-foot walk, PASAT, nine-hole peg test, and spatial memory Test. The two finger tapping interval asks the participants to tap their fingers on their phone’s screen and is meant to measure speed, coordination, and rate of fatigue. The timed 25-Step Walk prompts to measure a 25-foot walk with the phone in the participants pockets for measuring gait and balance. The PASAT test asks users to add a series of numbers together and tap on the correct sum at the bottom of the screen to test auditory information processing speed and flexibility, and calculation ability. The nine-hole peg test prompts participants to “pinch” a solid circle and move it to the proper place on the screen for measuring upper-extremity function. The spatial memory test causes flowers to light up on the screen. The participants are asked to tap on the flowers in the same pattern that they appeared for testing short-term memory.

Lastly, the Apple Health app passively collected three optional physiologic measures: daily step counts, sleep data, and heart rate. No participants were obligated to share this physiological data, and they had the option to specify exactly what (if any) information they would like to share as part of the consent process. The initial baseline assessments took up to thirty minutes to complete, whereas each day’s diary entries were intended to be completed within 2 minutes. This gave an excellent overview of many aspects of a participant’s health state while providing a good picture of what items were more cumbersome to obtain based on the missingness in the data. Participants were asked to participate in the study for at least six months. The study collected data from September 2017 to July 2021, and 1804 participants enrolled in total. This data collected by Duke was then de-identified by a third party before being transferred to Google for this research, and as such only age remains as a demographic feature.

Data preprocessing

The preprocessing pipeline consisted of transforming the data into a sequential representation that was then used for modelling purposes, similar to our prior work 24 . The raw data is taken through a set of processing steps into a common sequential representation called Subject (inspired from previous work on EHR datasets 25 ), after which a Label Creator runs on all processed data and enriches it with the symptom labels. All categorical features are one-hot encoded based on an established vocabulary that’s training set dependent. After training, a prediction format is used to save all model output. This in turn gets fed into the metrics pipeline which can provide results at both population and subgroup levels.

From the total number of participants who downloaded the app, we excluded those that did not use the app for at least 3 months. This was meant to reduce noise from participants who provided only limited data points. Furthermore, eighteen accounts for which the initial survey was filled multiple times were excluded because we could not be confident that the data belonged to a single person. We also conducted symptom-level de-duplication. In some cases, the same symptoms were recorded by the app in quick succession. In these instances, we only considered the final symptom-associated value for the given block of symptom recordings.

Ground-truth labels using self-reported symptoms

Keeping clinical actionability as the primary goal, we focused on early prediction of high-severity symptoms. Out of the nineteen symptoms recorded in the MS Mosaic app, we chose five (cramps, depression or anxiety, fatigue, sensory disturbance, and walking instability or coordination problems) since these can be alleviated by interventions and occurred with high-frequency in the dataset. For example, clinicians may use physical therapy to control fatigue and walking instability, anticonvulsants for sensory disturbance, mood stabilizers for depression and anxiety, and muscle relaxants for cramps.

The symptom information in the dataset is self-reported and consists of the symptom name, date, and time it was registered, and the severity rated on a Likert scale 23 . We performed continuous predictions triggered at weekly intervals on whether the median severity of one of the five symptoms would be above two in the next three months in the future. The prediction window was chosen based on clinical input, keeping deployment in mind. Prediction was formulated as a binary classification task, but we noted high class-imbalance. Positive labels (i.e. instances where symptom severity in the next three months will be greater than two) were the minority class and constituted 17.82%, 24.71%, 41.00%. 16.07%, and 28.39% of the dataset for cramps, depression or anxiety, fatigue, sensory disturbance and walking instability respectively.

A severity of 0 would be the equivalent of a symptom not experienced currently. Participants were asked to report new symptoms or any changes to the existing symptoms daily. In the cases where nothing changed, their previous answers would be propagated downstream. The intention was that a clinician could check whether their subject would be at risk of any significant symptom evolution before their subsequent visit and provide anticipatory guidance or take preventive measures.

Model development

For each subject in the cohort, we created a sequence of instances by partitioning the entire period. Each instance contained the information recorded by the MS Mosaic app within a three year period. The available data within each instance was combined across the time dimension to form a feature set used as input to our predictive models.

We divided the data randomly by participant into 80% (N = 567) development and 20% blind test (N = 146) cohorts for model development and testing, respectively. We compared five modeling strategies: 3 classical ML algorithms (logistic regression (LR) , gradient boosting classifier (GBC) 26 , multilayer perceptron (MLP) and two sequential deep neural networks (recurrent neural networks (RNN) 27 and temporal convolutional neural (TCN) networks 28 ). To implement the classical ML algorithms, we used the Python scikit-learn library (Python Software Foundation) version 1.0.2 29 . TensorFlow 30 and Keras 31 were used to implement the deep neural network models. The development cohort was used to train and validate the models through 5-fold cross-validation. We replaced missing values in the data with zeros. Note that we pre-populate the daily surveys with a participant’s previous responses, hence a lack of response will not lead to a zero entry rather the response the participants entered previously. The best performing model for each of the five modeling strategies was then evaluated on the blind test cohort which had not been used for model training. All data processing and analysis were implemented in Python version 3.9.14, NumPy version 1.23.2, and Apache beam version 2.43.0.

Statistical analysis

We evaluated the discriminative performance by comparing two performance metrics: the area under the receiver operating characteristic curve (AUROC) was used to assess the trade-off between sensitivity and specificity across varying thresholds, and the area under the precision recall curve (AUPRC) presented further information for imbalanced prediction tasks when the percentage of positive labels was low 32 . For both the AUROC and AUPRC, values closer to 1 correspond to more accurate models.

Model calibration was measured by computing the Brier score which represents the mean squared error between the observed and predicted risk. The lower the Brier score is for a set of predictions, the better the predictions are calibrated.

In addition, we reported the receiver operating characteristic, precision-recall, and calibration curves as a visual verification of the discriminatory and calibration performance of the models.

The metrics were implemented using the scikit-learn version 1.0.2 Python library 29 . 95% confidence intervals were obtained through bootstrapping using 200 bootstrap estimators.

Multiple sclerosis can have four subtypes: relapsing-remitting, secondary-progressive, primary-progressive, and progressive-relapsing. To assess the ability of the ML models in different MS subtypes, we divided the blind test cohort into these four groups and computed the performance metrics. In addition, we stratified the blind test cohort by age (only demographic attribute that was available in the data) to demonstrate performance across subgroups. We were unable to retrieve the gender information of participants due to technical failure during data storage.

We performed different feature ablation experiments to assess each feature group’s association with symptom prediction. We divided the feature set into the following groups: demographics, questionnaires, functional tests, and passive signals, and evaluated performance when the models were trained separately on these feature groups.

Supplementary Information

Supplementary Information.

Supplementary Information.

Предметные рубрики MeSH

ИП Урсолов Владлен Сергеевич

ИНН 500118482352 · ОГРНИП 314500117700049

Реквизиты и контакты