Skip to main content
PLOS Digital Health logoLink to PLOS Digital Health
. 2026 Sep 25;5(9):e0001722. doi: 10.1371/journal.pdig.0001722

Strategies for integrating artificial intelligence and cognitive assessment to predict disability progression in relapsing-remitting multiple sclerosis: A model development study

Chao Zhu 1,*,☯,‡, Xin Zhang 2,3,4,‡, Anneke van der Walt 1,5, Bruce Taylor 6, Mastura Monif 1,5,7, Tomas Kalincik 7,8, Jeanette Lechner-Scott 9,10, Katherine Buzzard 11, Trevor Kilpatrick 7,12, Michael Barnett 13,14, Zhen Zhou 15, Vilija Jokubaitis 1, Melissa Gresle 1, David Darby 1, Deval Mehta 3,16,17, Zongyuan Ge 3,16,18,*, Helmut Butzkueven 1,5,☯, Daniel Merlo 1,☯
Editor: Zhichao Zuo19
PMCID: PMC13614581  PMID: 42789556

Abstract

Serial cognitive assessment in multiple sclerosis can help identify patients at higher risk of disability progression, but high dimensionality of reaction-time data makes analysis challenging. We developed a method to convert longitudinal reaction-time data into images and applied deep survival modelling to predict disability progression in relapsing-remitting MS (RRMS). In this cohort study, clinical data were obtained from the MSBase registry and cognitive data from the MSReactor computerised cognitive battery between February 2016 and September 2022, with a median follow-up of 3.2 years. The serial reaction-time data from three tasks (psychomotor function [R], attention [G], and working memory [B]) were converted into multicolour images using RGB encoding. We extracted the key features from the images using a convolutional neural network and combined them with clinical variables in a Transformer-based survival model (MS-TranSurv) to predict time to confirmed disability progression. Discrimination, calibration, and accuracy were assessed using the C-index, integrated Brier score (iBS), and time-dependent area under the receiver operating characteristic (tAUROC). Performance was compared with other machine learning models, including Dynamic DeepHit, Recurrent Deep Survival Machines, a Cox proportional hazards model in traditional statistics using clinical variables only, and a version of MS-TransSurv using mean test values. A total of 746 RRMS patients were included. MS-TranSurv showed slightly higher discrimination compared with benchmark models, with a C-index of 0.61 (95% CI 0.54–0.68) and tAUROC of 0.74 (95% CI 0.63–0.85), as well as comparable calibration, with an iBS of 0.24 (95% CI 0.16–0.32). Using individual test-level data provided slightly better performance than using summary measures. Longitudinal cognitive reaction-time data can be used for survival-based prediction of disability progression in RRMS. This framework supports remote cognitive monitoring and may improve risk stratification and clinical trial enrichment, with potential applicability to other high-dimensional digital biomarkers.

Author summary

People with multiple sclerosis often experience changes in thinking speed, attention, and memory, sometimes years before clear physical disability appears. Digital cognitive tests make it possible to measure these changes repeatedly, including at home, but the large amount of data they produce is difficult to analyse and is often simplified in ways that may lose important information. In this study, we developed a new approach to make better use of these data. We transformed repeated reaction-time measurements from simple cognitive tasks into colour-based images that capture patterns of performance over time. We then used a machine learning method designed to analyse changes over time to estimate the risk of future disability progression. By keeping more detailed information from each test, our approach performed better than methods that rely on summary measures. Our findings show that repeated, low-burden cognitive testing can be used to help identify people with multiple sclerosis who are at higher risk of worsening disability. This approach could support earlier clinical review, improve the selection of participants for clinical trials, and may be adapted for use with other types of digital health data in the future.

Introduction

Cognitive impairment affects 54–65% of patients with multiple sclerosis (MS) [1]. Processing speed and episodic memory are the most commonly affected cognitive domains [2]. Previous results suggested that the risk of disability progression in patients with relapsing-remitting MS (RRMS) can be predicted by cognitive change trajectories [3,4]. The use of computerised neuropsychological assessment devices (CNADs) makes it simpler and more effective to collect serial cognitive data, including reaction time-based tests [5,6] In addition, CNADs are usually self-administered, therefore, require few or no staff resources and less time to administer, greatly improving the convenience of data collection [7]. However, multiple tasks in a test run and multiple test time points produce large datasets, posing challenges for analysis and interpretation. A common way to analyse these data is to reduce dimensionality by creating summary information, for example, by averaging the reaction time of correct answers over a single testing session [3,8]. However, this method has limitations, as it is susceptible to outliers and does not take into account variations in individual reaction time between different correct responses, informative variation of response times during a test session, and superimposed differential learning effects. Machine-learning (ML) models can map associations that may be too complex to be identified by traditional methods, [9] providing an alternative that can potentially use all the obtained high-volume reaction time data rather than averaging it [10]. However, many existing ML studies in MS rely on binary outcomes defined over fixed time windows, which do not fully capture the time-to-event nature of disability progression or account for censoring. Integrating ML with survival analysis allows longitudinal data to be modelled more appropriately while preserving temporal information.

In this study, we introduce a novel ML model to predict disability progression in RRMS patients by converting high-dimensional reaction time data into multicoloured images and incorporating clinical demographics and characteristics. We extracted key features from reaction images, using a convolutional neural network (CNN), and then used these features to perform Transformer survival models. We collected cognitive data using the MSReactor computerised cognitive battery, which uses reaction time-based tasks to serially monitor cognitive performance in patients with RRMS [11,12]. We hypothesised that incorporating data from each individual test over time improves the performance of the predictive model compared to using the average of all tests. Additionally, we compared the performance of our model with two benchmark ML survival models.

Methods

Ethics statement

Clinical data was collected via the MSBase registry (registered with WHO ICTRP, ID ACTRN12605000455662), an international observational cohort study of MS [13]. Ethical approval for the MSBase registry was granted by the Alfred Health Human Research and Ethics Committee and the local ethics committees at participating centres. All participants provided written or verbal consent under local regulations prior to data collection. Demographic and clinical data were collected during routine clinic visits at all study sites via the locally installed iMed or MDS MSBase data entry systems and monitored through a series of procedures to maintain data quality [14]. This study followed the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) reporting guidelines [15].

De-identified clinical and cognitive data were accessed for research purposes on 15 January 2025. Data security procedures, including data storage, transfer, access control, encryption, and governance arrangements, are described in the supplementary materials (S1 Text). All analyses were conducted on de-identified datasets, and the authors did not have access to any information that could identify individual participants during or after data access.

Patient population

Patients with RRMS were recruited from 4 tertiary MS clinics in Australia between March 2016 and December 2019. Patients with upper limb, visual, or cognitive deficits preventing the use of touchscreen devices were excluded from the study. An internet-connected tablet or computer was required for optional home-based testing. Ownership of a touchscreen device was not part of the inclusion or exclusion criteria. MSReactor testing was completed during clinic visits approximately every 6 months using iPad tablets provided at each study site, to ensure accessibility and consistency of testing. Participants could also choose to complete optional remote testing using their own tablet or computer, provided that the device had an internet connection to upload results to the MSReactor database. A total of 746 participants with RRMS were included in the final analysis.

Study design and settings

All participants were enrolled during outpatient visits and provided access to a secure testing website for cognitive assessments. Cognitive data was collected at baseline and approximately every six months during routine clinic appointments. In addition to clinic-based assessments, participants had the option to complete tests at home with an unlimited frequency of testing (monthly testing suggested). Participants completed at least one practice test prior to clinic-based tests and were encouraged to practice before home testing. To ensure sufficient longitudinal cognitive data for model development, participants who completed less than 3 MSReactor tests or were enrolled for less than 180 days were excluded from the study.

The MSReactor computerised cognitive screening battery is a web-based tool designed for self-assessment. It consists of reaction time tasks measuring psychomotor function (simple reaction time [SiRT]), attention (choice reaction time [ChRT]), and working memory (one back [OBK]). Participants respond to stimuli appearing onscreen as quickly as possible, with the system recording response speed in milliseconds and accuracy automatically. Participants continue each task until they achieve at least 30 correct responses. Participants typically completed the reaction time tests in 5 minutes.

Study endpoint and definitions

The study baseline was defined at the date of the first MSReactor test. The baseline EDSS score was the EDSS score closest to the study baseline obtained within 6 months. The study outcome was a confirmed disability progression event, defined as the confirmed increase in EDSS score of 0.5 or greater for patients with a baseline score greater than 5.5 (or 1.0 or more steps for those with a baseline score between 1.0 and 5.5) and 1.5 or more steps if the baseline score was 0. To detect and confirm disability progression, two subsequent assessments were required, with at least 6 months between assessments [16]. To mitigate the risk of temporary fluctuation being labelled as the baseline EDSS, we excluded EDSS scores obtained within 30 days after a relapse onset date. We defined relapse as having new or recurrent neurologic symptoms lasting for 24 hours or more without fever or infection [17].

Model development and validation

Our primary goal was to develop a CNN-based Transformer survival (MS-TranSurv) model consisting of a feature extraction module and an encoder module to predict the risk of disability progression. Longitudinal cognitive data were first organised using monthly time points prior to image construction. If multiple MSReactor assessments were completed within the same month, only the last assessment was retained as the representative observation for that month. When no assessment was available for a given month, a variation of the last-observation-carried-forward (LOCF) approach was applied to handle missing longitudinal data. We then converted each patient’s test results (longitudinal set of reaction time test series) into a structured image in order to facilitate the CNN to extract key features from high-dimensional reaction time data (example shown in Fig 1). Each patient has a unique reaction image, where the pixel colour represents the test results encoded using the Red, Green, and Blue (RGB) colour system (a colour system that combines red, green, and blue to produce different colours on an electronic screen [18]. Red, green, and blue correspond to three reaction time tasks (psychomotor function [R], attention [G], and working memory [B]), respectively). The X-axis is the response dimension, with a fixed length of 30, corresponding to patients completing 30 of the three tasks in each test. The Y-axis corresponds to the aligned longitudinal testing sequence, with each horizontal line of pixels corresponding to the results of a single monthly observation (Fig 1). This representation was designed not only to preserve sequential response variability within individual tests, but also to capture potential longitudinal patterns at corresponding response positions across repeated testing sessions, thereby introducing an additional structured dimension beyond a simple one-dimensional temporal sequence. We used the min-max normalisation method to convert the reaction time αi (in milliseconds) for each of the three tasks to a number α^i in the range 0–255, as follows:

Fig 1. Example of generating a reaction image from individual data and the architecture of MS-TranSurv model.

Fig 1

PF = Psychomotor Function (Red), ATT = Attention (Green), WM = Working Memory (Blue), CNN = Convolutional Neural Network, and MLP = Multi-Layer Perceptron.

α^i=255×αi−αminαmax−αmin, i=R, G, B,

where the αmax and αmin represent the maximum and minimum reaction time of each patient for the corresponding task in all tests.

For each cognitive task, individual response-time values were sorted, and the 2nd and 98th percentiles were used as the lower and upper thresholds, respectively. Values below the lower threshold or above the upper threshold were capped at their respective thresholds before normalisation to reduce the influence of extreme values. After obtaining the RGB code, we used RGB Pillow (version 10.0.0) to generate the reaction images. Each pixel z in the image consists of a superposition of α^R, α^G and α^B. The reaction images were first partitioned into image patches according to predefined prediction windows along the longitudinal dimension (S1 Fig). These patches were then processed using a pretrained CNN (developed using the Python package of PyTorch [version 2.1]) for feature extraction and dimensionality reduction. The extracted features for each prediction window were subsequently combined with clinical covariates through multiple fully connected layers, forming the extraction module.

The heart of the encoder module was a transformer-based deep survival model [19]. The extracted features were combined and passed to a Transformer encoder via an embedding layer to predict the probability of reaching a confirmed disability progression over time. The Transformer model views each patient as a ‘sentence’, where the combination of positional encoding and feature embedding forms the ‘words’ of that sentence. Each ‘word’ encapsulates the patient’s information at a specific time, allowing the model to efficiently capture intricate temporal patterns within patient data. This unique approach makes the Transformer model a highly effective tool for predicting events over time. The Transformer encoder was trained using a compact architecture due to the limited size of the survival dataset. The CNN-Transformer architecture was adapted from our previously published UniSurv framework, [20] with modifications to accommodate longitudinal cognitive image representations. Detailed architectural specifications, training procedures, hyperparameter settings, and reproducibility information are provided in the supplement (S1 Text). To assess model performance robustly, we employed five-fold cross-validation, randomly partitioning the dataset into training, validation, and test sets with a ratio of 7:1:2 in each iteration.

Statistical analysis

The performance of the MS-TranSurv model was compared with two benchmark models that support time-varying covariates: the Dynamic DeepHit (DDH) [21] model and the Recurrent Deep Survival Machines (RDSM) [22] model, as well as a Cox proportional hazards (PH) model [23] incorporating only clinical variables as a conventional baseline comparator. DDH and RDSM are multilayer perceptron models that incorporate recurrent neural networks for dynamic analysis of survival data. To determine if the model performance could be improved by using individual test results instead of the mean of all tests, we used the averages and the corresponding standard deviations of all tests to replace the features extracted by CNN (we refer to this model as MS-TranSurv-mean model throughout the rest of the paper). These features were then combined with clinical covariates and passed to the Transformer encoder module. Model performance was assessed by discrimination and calibration. The time-dependent area under the receiver operating characteristic curve (tAUROC) and the Uno survival C-index were used to evaluate the model’s discriminative ability, with values closer to 1 indicating more accurate models [24,25]. The Brier score was applied to estimate the calibration ability, which is the mean squared difference between the observed and the predicted outcome, with a score close to 0 indicating good accuracy and a score close to 1 indicating poor accuracy [26].

All analyses were conducted using either Python version 3.9.17 (Python Software Foundation), or R software version 4.3.2 (R Foundation for Statistical Computing). The level of significance was set at a 2-sided P < 0.05.

Results

Characteristics of study population

The study population was primarily composed of women (76%), with a mean (SD) age of 42.8 (10.9) years and a median follow-up period of 3.2 years (IQR, [2.1 – 4.6]). Of the 746 included participants, 148 (19%) showed a confirmed disability progression prior to the end of follow-up. Overall, the participants had a median disease duration of 8.5 years (IQR, 4.3 – 13.4), a relatively long treatment exposure duration (median, 5.0 years [IQR, 2.2 – 8.4]), and a low EDSS score at baseline (median, 2.0 [IQR, 1.0 – 3.0]). Characteristics of the included participants are reported in Table 1.

Table 1. Clinical Characteristics at baseline†.

Total

(n = 746)
Age, yrs 42.8 ± 10.9
 Sex
 Female 569 (76)
 Male 177 (24)
Disability (EDSS) 2.0 (1.0 – 3.0)
The number of DMT used before baseline† 2.0 (1.0 – 3.0)
The number of relapses 1 year before baseline† 0.0 (0.0 – 0.0)
The number of relapses 2 years before baseline† 0.0 (0.0 – 1.0)
Disease duration, yrs 8.5 (4.3 – 13.4)
Cumulative DMT usage time before baseline, yrs 5.0 (2.2 – 8.4)

Values are median (interquartile range), n (%), or mean ± SD.

† The study baseline was defined at the date of the first MSRactor test.

DMT = Disease-Modifying Therapies; EDSS = Expanded Disability Status Scale.

Model discrimination

MS-TranSurv model presented the highest discriminative performance with a C-index of 0.61 (95% CI, 0.54-0.68) compared to the DDH model (0.52; [95% CI, 0.40-0.65]) and the RDSM model (0.53; [95% CI, 0.38-0.68]), and the Cox PH model based on clinical variables only (0.53, [95% CI, 0.45-0.61]). The MS-TranSurv model using the individual test data showed a slightly improved C-index relative to the MS-TranSurv-mean model (0.60; 95% CI, 0.54-0.65) using the whole test average, although the 95% CIs overlapped substantially.

MS-TranSurv model achieved an average tAUROC of 0.74 (95% CI, 0.63-0.85), which was numerically higher than the benchmark models (Table 2). We also compared yearly tAUROC across the first five years of follow-up and found that the MS-TranSurv generally showed better discrimination than the other models. The average tAUROC of MS-TranSurv was comparable to that of MS-TranSurv-mean (0.71; 95% CI [0.63-0.79]), with widely overlapped 95% CIs. However, the yearly tAUROC curve for MS-TranSurv was generally above that of MS-TranSurv-mean, except at year 4 when the two models showed similar performance (Fig 2A). The yearly tAUROC values for all four models are reported in the Supplementary (S1 Table).

Table 2. Model performances.

Cox PH MS-TranSurv MS-TranSurv-mean DDH RDSM
C-index (95% CI) 0.53 (0.45 – 0.61) 0.61 (0.54 – 0.68) 0.60 (0.54 – 0.65) 0.52 (0.40 – 0.65) 0.53 (0.38 – 0.68)
tAUROC (95% CI) 0.60 (0.50 – 0.69) 0.74 (0.63 – 0.85) 0.71 (0.63 – 0.79) 0.67 (0.57 – 0.77) 0.70 (0.63 – 0.76)
Integrated Brier score (95% CI) 0.13 (0.12 – 0.15) 0.24 (0.16 – 0.32) 0.29 (0.14 – 0.43) 0.28 (0.21 – 0.35) 0.29 (0.23 – 0.34)

tAUROC = Time-dependent area under the receiver operating characteristic curve.

Fig 2. Time-dependent model performance in 6 years.

Fig 2

A Time-dependent AUROC tAUROC and B Brier score curves for prediction models calculated at 0.5-year intervals.

Model calibration

The Cox PH model had the lowest integrated Brier score (iBS) of 0.13 (95% CI, 0.12-0.15), followed by the MS-TranSurv (iBS 0.24; 95% CI, 0.16 - 0.32), DDH (0.28; 95% CI, 0.21-0.35), and RDSM (0.29; 95% CI, 0.23-0.34). MS-TranSurv also showed a lower iBS than MS-TranSurv-mean (0.29; 95% CI, 0.14-0.42), suggesting that incorporating individual test-level longitudinal data may improve calibration compared with using mean cognitive summaries alone. To further assess calibration performance over time, Brier scores were examined at 6-month intervals during follow-up (Fig 2B). MS-TranSurv model generally maintained lower Brier scores than the DDH, RDSM, and MS-TranSurv-mean models across all time points, suggesting more stable calibration performance over time.

Furthermore, we used the MS-TranSurv model to predict survival curves for 2 patients over 6 years (Fig 3) to visually represent what the model can predict. The data utilised for these predictions included one patient who experienced a confirmed disability progression event at 4.58 years, and another patient who remained event-free and was censored at 5.67 years. Additionally, population-averaged survival curves, derived from the average survival probabilities across the entire population over time, were presented for reference.

Fig 3. Predicted survival curves for two patients over a six-year period, generated using the MS-TranSurv model.

Fig 3

EDSSb, EDSS2.5, and EDSS5.5 were EDSS at the baseline, 2.5 years, and 5.5 years, respectively. The survival curve of with-event (red line) corresponds to a patient who experienced a confirmed disability progression event at 4.58 years. In contrast, the green line depicts the survival curve of a patient who remained event-free and censored at 5.61 years. For reference, population-average survival curves, obtained by averaging the predicted survival probabilities of all individuals in the cohort, are also provided.

Discussion

In this prospective cohort study, we used longitudinal cognitive monitoring data and incorporated common clinical variables to develop a Transformer-based deep-survival model to predict time to disability progression at the individual level in RRMS patients. Compared with the two benchmark models, the MS-TranSurv model demonstrated improved

discrimination and calibration. The MS-TranSurv model using individual cognitive test data could marginally improve the accuracy of predictions compared to the MS-TranSurv-Mean model, which uses the average value of the entire test data.

A growing body of evidence supports the capacity of machine learning (ML) algorithms to extract useful information from images and high-dimensional cognitive data [9,27,28]. Previous studies have demonstrated the advantages of ML algorithms in using MRI information incorporating clinical variables to define biomarkers that predict cognitive changes in MS [28–30]. However, to our knowledge, our CNN-based Transformer survival model is unique in predicting disability progression in MS using longitudinal cognitive data. Our findings extend previous research by providing another way to assess the role of subtle cognitive changes in predicting subsequent disability progression, and provide evidence supporting the feasibility of using repeated, low-burden, automated cognitive data acquisition for predicting disability progression.

Considering the limited sample size, both MS-TranSurv and MS-TranSurv-mean models showed reasonable discrimination and calibration performance. Compared with DDH and RDSM, both models showed numerically better discrimination, while MS-TranSurv also showed a numerically lower iBS than the other deep learning survival models. Interestingly, despite using only clinical variables, the Cox PH model achieved discrimination comparable to DDH and RDSM and showed the lowest iBS, suggesting better average calibration of absolute risk estimates. This difference between discrimination and calibration may reflect that the iBS is sensitive to the accuracy of absolute risk estimates and the overall event rate, whereas the C-index and tAUROC focus on ranking patients by risk. Therefore, a model may achieve a low iBS by estimating average risk well, even if it has limited ability to separate higher-risk from lower-risk patients [31]. These findings indicate that simply incorporating longitudinal cognitive data into a survival model may not automatically improve predictive performance. Instead, how high-dimensional longitudinal cognitive signals are represented and processed appears to be important. The better discrimination observed with MS-TranSurv suggests that the proposed framework may extract informative longitudinal cognitive features that were not fully captured by the other benchmark approaches. Moreover, MS-TranSurv showed a slightly higher average tAUROC point estimate than benchmark models, suggesting a potential benefit of incorporating individual-level test data. However, the substantial overlap in their 95% CIs, likely due to the limited sample size, indicates that this improvement might be marginal. In particular, the identical performance of the two models at year 4, could also be attributed to a large number of patients being censored during that period.

In addition, the longitudinal Brier score trajectories suggest that calibration deteriorated more gradually over time for MS-TranSurv than for the other deep learning models, although confidence intervals remained overlapping. The Cox PH model demonstrated the strongest overall calibration performance (S1 Table), which may reflect the stability of simpler assumption-based statistical models in relatively limited datasets [20,32]. However, the superior discrimination achieved by MS-TranSurv suggests that effective extraction of longitudinal cognitive features may provide additional prognostic information beyond conventional clinical variables alone. As our cohort is still ongoing and the sample size is increasing, we anticipate further improvement in the accuracy of the model.

CNN has proven highly effective in recognising patterns within image data and handling complex image recognition tasks [33,34]. It also offers benefits in dimensionality reduction by learning low-dimensional representations of high-dimensional data and extracting hierarchical features while retaining essential information and enhancing interpretability [35,36]. Leveraging these advantages of CNN in processing high-dimensional data, we generated images based on each participant’s cognitive test data and then input them into the CNN to extract features for the encoder module. This approach yielded superior results compared to directly averaging all test results.

Reaction-time data may include fluctuations related to fatigue, learning effects, or occasional extreme responses. In this study, extreme values were capped using the task-specific 2nd and 98th percentile thresholds before min–max normalisation, reducing the influence of outliers while retaining potentially informative variation in response-time patterns. However, this approach may not fully remove the influence of measurement variability or extreme responses. Importantly, the image-based representation and CNN feature extraction were designed to learn patterns across repeated responses rather than depend on single response-time values. In addition, the availability of multiple repeated responses within each test session further reduces the influence of extreme values on feature extraction and prediction.

The overall framework of converting high-dimensional longitudinal signals into images and using a CNN-Transformer pipeline is not limited to reaction-time data. This approach can be applied to other complex data streams such as smartphone-derived digital biomarkers, gait sensor outputs, or high-dimensional proteomic and immunologic time-series. This suggests potential applicability in other MS research settings where detailed longitudinal patterns are informative but difficult to model with traditional methods. Using MSReactor, each test session generated approximately 90 variables (30 reaction times across each of three tasks). However, other digital performance tests can generate thousands of data points within seconds (for example, drawing tasks on touchscreens), which are typically heavily summarised before analysis [37]. Our approach could instead represent these high-dimensional data as multicoloured images, allowing the model to capture information and hidden features that would otherwise be lost when the data are summarised.

More broadly, this framework aligns with the emerging concept of digital phenotyping, in which high-frequency behavioural and cognitive data are used to characterise individual-level patterns and derive digital biomarkers for disease monitoring and prediction. Recent work has highlighted the potential of small-data machine learning approaches to capture meaningful behavioural patterns even in settings with limited sample sizes [38]. In this context, repeated longitudinal cognitive testing may provide individualised digital behavioural features that are difficult to capture using conventional clinical variables alone and may ultimately support personalised monitoring and prediction of disease progression in MS.

There are also clear methodological advantages over conventional ML survival models. The CNN captures important within-test patterns that are lost when using mean values, and the Transformer encoder is well-suited for learning long-range dependencies over irregularly collected cognitive data. This likely explains the consistently better discrimination and calibration observed with MS-TranSurv and highlights the value of preserving temporal structure rather than merely relying on summary statistics [39].

Importantly, MS-TranSurv may also have practical clinical relevance. Serial digital cognitive testing is low cost, can be completed outside routine clinic visits, and requires minimal clinical staff time. Previous studies have also demonstrated good long-term acceptability of smart-device monitoring among people living with MS [40,41]. By capturing longitudinal cognitive change, MS-TranSurv may help identify early signals of disability progression and support timely clinical review [42]. Individualised progression risk estimates may also have value in clinical trial design by helping identify patients at higher progression risk, thereby improving trial efficiency and potentially reducing required sample sizes. However, the overall discriminative performance remained moderate and external validation has not yet been performed. Therefore, the current findings should primarily be interpreted as supporting the feasibility of longitudinal cognitive deep-survival modelling rather than a fully clinically validated prediction tool at the current stage. Further validation in larger and independent cohorts will be necessary before clinical implementation [43].

The strategies employed in the MS-TranSurv model for handling complex, high-dimensional data could potentially be adapted for application in other domains as well. For example, converting high-dimensional flow cytometry and serum proteomics data into images and then using CNN for dimensionality reduction and feature extraction to predict disease progression in MS [44].

Limitations

The model did not include other variables that could further improve the prediction of disability progression, such as comorbidities, BMI, and quality of life, as they are not yet routinely collected in MSBase. Previous studies have demonstrated that baseline MRI features, especially brain atrophy, are strong predictors of future cognitive decline and disability progression [45]. However, as MRI information collection was optional in MSBase, with more than 60% of MRI data missing, MRI data was unavailable for inclusion. Follow-up duration is another limitation. The median follow-up of 3.2 years may be relatively short for detecting disability progression in MS. Although the survival modelling framework accounts for right-censored observations and varying follow-up times, limited follow-up may reduce the number of observed progression events and restrict the ability to capture longer-term progression patterns. These factors may affect model training and estimation of longer-term progression risk. In addition, the lack of external validation increases the likelihood of overfitting and may reduce model performance when applied to data from different cohorts. Ongoing data collection and future external validation in cohorts with longer follow-up will therefore be important to assess the stability, calibration, and generalisability of MS-TranSurv.

Furthermore, the current image transformation approach was based on a relatively simple min-max normalisation and RGB encoding strategy and did not systematically investigate how different time-series-to-image transformation methods may influence preservation of temporal correlations or feature interpretability. More mathematically grounded approaches, such as Gramian Angular Field or Markov Transition Field representations, [46,47] may represent valuable directions for future work. Also, home/hospital-based testing frequency varied substantially across participants. Although monthly discretisation and a variation of the LOCF approach were used to standardise irregular longitudinal observations, the model may still have represented patients with more frequent or regular testing more effectively than those with sparse assessments. MSReactor assessments were also completed during routine clinic visits approximately every 6 months, providing a consistent source of cognitive data and reducing reliance on variable home-testing frequency alone. Future studies incorporating more flexible time-aware architectures or optimising the temporal resolution of the model relative to the underlying data structure may further improve prediction performance and survival trajectory estimation.

A further limitation is potential selection bias related to the requirements for digital task completion. MSReactor was developed as a digital cognitive monitoring tool for people with RRMS who can complete repeated device-based cognitive assessments. Participants were required to be able to use a touchscreen device and complete at least three MSReactor assessments, and patients with upper limb, visual, or cognitive deficits that prevented reliable task completion were excluded. These criteria were necessary to ensure reliable task completion and sufficient longitudinal data for model development. However, this may have resulted in the under-representation of patients with greater barriers to digital testing, limiting the generalisability of MS-TranSurv to the broader MS population. Despite this limitation, the findings support the potential of smartphone-based cognitive monitoring as a practical approach for capturing longitudinal cognitive changes that may provide early signals of future disability progression. Future external validation in broader clinical cohorts and further development of accessible digital assessment platforms will be important before wider clinical implementation.

Conclusion

In this cohort study, we developed and validated the MS-TranSurv model, a risk assessment tool incorporating cognitive data to predict disability progression in RRMS. Compared with benchmark models, MS-TranSurv demonstrated improved discrimination and calibration performance, supporting the feasibility of incorporating longitudinal cognitive data into deep-survival modelling frameworks for disability progression prediction in MS. The results could help stratify potential trial participants to select subgroups with higher disability progression risk for clinical trials and ultimately prove useful for individual disease and therapeutic response monitoring. Our novel method is potentially applicable to digital and other datasets with much higher dimensionality than MSReactor, and could discover hidden data features with prognostic significance in them.

Data Access, Responsibility, and Analysis

C. Zhu and X. Zhang had full access to all of the data in the study and took responsibility for the integrity of the data and the accuracy of the data analysis.

Supporting information

S1 Text. MS–TranSurv Architecture, Training Procedures, and Prediction.

This file includes additional details on the MS-TranSurv architecture, longitudinal data preprocessing, image construction, model training procedures, prediction framework, survival loss function, data security procedures, and supplementary model performance results.

(DOCX)

pdig.0001722.s001.docx (23KB, docx)
S1 Fig. Overview of the MS-TranSurv architecture.

Reaction image patches and patient-level clinical information are processed through separate feature extraction modules. The extracted latent features are then fused and passed into a Transformer encoder to estimate survival probabilities over time.

(DOCX)

pdig.0001722.s002.docx (151.4KB, docx)
S1 Table. Model performance with yearly tAUROC and Brier scores.

This table reports C-index, integrated Brier score, average tAUROC, yearly tAUROC, and yearly Brier scores for the Cox PH, MS-TranSurv, MS-TranSurv-mean, DDH, and RDSM models.

(DOCX)

pdig.0001722.s003.docx (22.3KB, docx)

Acknowledgments

We wish to thank all of the patients and their caregivers who participated in this study and contributed data to the MSReactor computerised cognitive battery and MSBase registry.

Data Availability

The patient-level clinical and cognitive data used in this study cannot be made publicly available because they contain sensitive human participant information and are subject to ethical, privacy, and data-governance restrictions imposed by the contributing data controllers and participating institutions. The data were obtained through MSBase and MSReactor under the relevant governance and data-use arrangements. De-identified data may be made available to qualified researchers subject to approval by the relevant data controllers and applicable governance requirements. Requests for access to the study data should be directed to MSBase at info@msbase.org.

Funding Statement

The original MSReactor cohort study was part-funded by Biogen and Novartis Australia (unrestricted funding, grant CFTY720D2418T to DM). In this study, the funders had no role in study design, data collection and analysis, the decision to publish, or preparation of the manuscript.

References

  • 1.Rao SM, Leo GJ, Bernardin L, Unverzagt F. Cognitive dysfunction in multiple sclerosis. I. Frequency, patterns, and prediction. Neurology. 1991;41(5):685–91. doi: 10.1212/wnl.41.5.685 [DOI] [PubMed] [Google Scholar]
  • 2.Benedict RHB, Amato MP, DeLuca J, Geurts JJG. Cognitive impairment in multiple sclerosis: clinical management, MRI, and therapeutic avenues. Lancet Neurol. 2020;19(10):860–71. doi: 10.1016/S1474-4422(20)30277-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Merlo D, Stankovich J, Bai C, Kalincik T, Zhu C, Gresle M, et al. Association Between Cognitive Trajectories and Disability Progression in Patients With Relapsing-Remitting Multiple Sclerosis. Neurology. 2021;97(20):e2020–31. doi: 10.1212/WNL.0000000000012850 [DOI] [PubMed] [Google Scholar]
  • 4.Ziccardi S, Guandalini M, Fuchs TA, Calabrese M, Benedict RH. The time to include cognition in the multiple sclerosis concept of progression independent from relapse activity is now. Mult Scler. 2024;30(11–12):1402–4. doi: 10.1177/13524585241264476 [DOI] [PubMed] [Google Scholar]
  • 5.Wojcik CM, Beier M, Costello K, DeLuca J, Feinstein A, Goverover Y, et al. Computerized neuropsychological assessment devices in multiple sclerosis: A systematic review. Mult Scler. 2019;25(14):1848–69. doi: 10.1177/1352458519879094 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Foong YC, Bridge F, Merlo D, Gresle M, Zhu C, Buzzard K, et al. Smartphone monitoring of cognition in people with multiple sclerosis: A systematic review. Mult Scler Relat Disord. 2023;73:104674. doi: 10.1016/j.msard.2023.104674 [DOI] [PubMed] [Google Scholar]
  • 7.Bauer RM, Iverson GL, Cernich AN, Binder LM, Ruff RM, Naugle RI. Computerized neuropsychological assessment devices: joint position paper of the American Academy of Clinical Neuropsychology and the National Academy of Neuropsychology. Arch Clin Neuropsychol. 2012;27(3):362–73. doi: 10.1093/arclin/acs027 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.De Meijer L, Merlo D, Skibina O, Grobbee EJ, Gale J, Haartsen J, et al. Monitoring cognitive change in multiple sclerosis using a computerized cognitive battery. Mult Scler J Exp Transl Clin. 2018;4(4):2055217318815513. doi: 10.1177/2055217318815513 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Seccia R, Romano S, Salvetti M, Crisanti A, Palagi L, Grassi F. Machine Learning Use for Prognostic Purposes in Multiple Sclerosis. Life (Basel). 2021;11(2):122. doi: 10.3390/life11020122 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Zhang W, Salmi A, Yang C, Jiang F. Innovative Noise Extraction and Denoising in Low-Dose CT Using a Supervised Deep Learning Framework. Electronics. 2024;13(16):3184. doi: 10.3390/electronics13163184 [DOI] [Google Scholar]
  • 11.Merlo D, Darby D, Kalincik T, Butzkueven H, van der Walt A. The feasibility, reliability and concurrent validity of the MSReactor computerized cognitive screening tool in multiple sclerosis. Ther Adv Neurol Disord. 2019;12:1756286419859183. doi: 10.1177/1756286419859183 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Merlo D, Ja J, Foong YC, Zhu C, Gresle M, Kalincik T, et al. Long-term acceptability of MSReactor digital cognitive monitoring among people living with multiple sclerosis. Mult Scler. 2025;31(5):595–606. doi: 10.1177/13524585251329035 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Butzkueven H, Chapman J, Cristiano E, Grand’Maison F, Hoffmann M, Izquierdo G, et al. MSBase: an international, online registry and platform for collaborative outcomes research in multiple sclerosis. Mult Scler. 2006;12(6):769–74. doi: 10.1177/1352458506070775 [DOI] [PubMed] [Google Scholar]
  • 14.Kalincik T, Kuhle J, Pucci E, Rojas JI, Tsolaki M, Sirbu C-A, et al. Data quality evaluation for observational multiple sclerosis registries. Mult Scler. 2017;23(5):647–55. doi: 10.1177/1352458516662728 [DOI] [PubMed] [Google Scholar]
  • 15.von Elm E, Altman DG, Egger M, Pocock SJ, Gøtzsche PC, Vandenbroucke JP, et al. The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: guidelines for reporting observational studies. Lancet. 2007;370(9596):1453–7. doi: 10.1016/S0140-6736(07)61602-X [DOI] [PubMed] [Google Scholar]
  • 16.Zhu C, Kalincik T, Horakova D, Zhou Z, Buzzard K, Skibina O, et al. Comparison Between Dimethyl Fumarate, Fingolimod, and Ocrelizumab After Natalizumab Cessation. JAMA Neurol. 2023;80(7):739–48. doi: 10.1001/jamaneurol.2023.1542 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Schumacher GA, Beebe G, Kibler RF, Kurland LT, Kurtzke JF, Mcdowell F, et al. Problems Of Experimental Trials Of Therapy In Multiple Sclerosis: Report By The Panel On The Evaluation Of Experimental Trials Of Therapy In Multiple Sclerosis. Ann N Y Acad Sci. 1965;122:552–68. doi: 10.1111/j.1749-6632.1965.tb20235.x [DOI] [PubMed] [Google Scholar]
  • 18.Hirsch R. Exploring colour photography: Aa complete guide. Laurence King. 2005. [Google Scholar]
  • 19.Hu S, Fridgeirsson E, Wingen G v, Welling M. Transformer-Based Deep Survival Analysis. In: Proceedings of AAAI Spring Symposium on Survival Prediction - Algorithms, Challenges, and Applications, 2021. https://proceedings.mlr.press/v146/hu21a.html
  • 20.Zhang X, Mehta D, Hu Y, Zhu C, Darby D, Yu Z, et al. Adaptive transformer modelling of density function for nonparametric survival analysis. Mach Learn. 2025;114(2). doi: 10.1007/s10994-024-06686-w [DOI] [Google Scholar]
  • 21.Lee C, Yoon J, Schaar M van der. Dynamic-DeepHit: A Deep Learning Approach for Dynamic Survival Analysis With Competing Risks Based on Longitudinal Data. IEEE Trans Biomed Eng. 2020;67(1):122–33. doi: 10.1109/TBME.2019.2909027 [DOI] [PubMed] [Google Scholar]
  • 22.Nagpal C, Jeanselme V, Dubrawski A. Deep parametric time-to-event regression with time-varying covariates. In: Proceedings of Machine Learning Research, 2021. https://proceedings.mlr.press/v146/nagpal21a.html
  • 23.Cox DR. Regression Models and Life-Tables. Journal of the Royal Statistical Society Series B: Statistical Methodology. 1972;34(2):187–202. doi: 10.1111/j.2517-6161.1972.tb00899.x [DOI] [Google Scholar]
  • 24.Heagerty PJ, Zheng Y. Survival model predictive accuracy and ROC curves. Biometrics. 2005;61(1):92–105. doi: 10.1111/j.0006-341X.2005.030814.x [DOI] [PubMed] [Google Scholar]
  • 25.Uno H, Cai T, Pencina MJ, D’Agostino RB, Wei LJ. On the C-statistics for evaluating overall adequacy of risk prediction procedures with censored survival data. Stat Med. 2011;30(10):1105–17. doi: 10.1002/sim.4154 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.brier GW. Verification Of Forecasts Expressed In Terms Of Probability. Mon Wea Rev. 1950;78(1):1–3. doi: 10.1175/1520-0493(1950)078<0001:vofeit>2.0.co;2 [DOI] [Google Scholar]
  • 27.Kam K, Parekh A, Wickramaratne S, Varga AW. Using machine learning to extract cognitive status from the sleep EEG in progressing stages of dementia: defining interpretable and age-related features. Sleep. 2023;46(3):zsac324. doi: 10.1093/sleep/zsac324 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Labiano-Fontcuberta A, Costa-Frossard L, Sainz de la Maza S, Rodríguez-Jorge F, Chico-García JL, González PN, et al. Predictive models of multiple sclerosis-related cognitive performance using routine clinical practice predictors. Mult Scler Relat Disord. 2023;76:104849. doi: 10.1016/j.msard.2023.104849 [DOI] [PubMed] [Google Scholar]
  • 29.Buyukturkoglu K, Zeng D, Bharadwaj S, Tozlu C, Mormina E, Igwe KC, et al. Classifying multiple sclerosis patients on the basis of SDMT performance using machine learning. Mult Scler. 2021;27(1):107–16. doi: 10.1177/1352458520958362 [DOI] [PubMed] [Google Scholar]
  • 30.Al-Iedani O, Lea S, Alshehri A, Maltby VE, Saugbjerg B, Ramadan S, et al. Multi-modal neuroimaging signatures predict cognitive decline in multiple sclerosis: A 5-year longitudinal study. Mult Scler Relat Disord. 2024;81:105379. doi: 10.1016/j.msard.2023.105379 [DOI] [PubMed] [Google Scholar]
  • 31.Steyerberg EW, Vickers AJ, Cook NR, Gerds T, Gonen M, Obuchowski N, et al. Assessing the performance of prediction models: a framework for traditional and novel measures. Epidemiology. 2010;21(1):128–38. doi: 10.1097/EDE.0b013e3181c30fb2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Hu Y, Zhang X, Slavin V, Belsti Y, Tiruneh SA, Callander E, et al. Beyond Comparing Machine Learning and Logistic Regression in Clinical Prediction Modelling: Shifting from Model Debate to Data Quality. J Med Internet Res. 2025;27:e77721. doi: 10.2196/77721 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521(7553):436–44. doi: 10.1038/nature14539 [DOI] [PubMed] [Google Scholar]
  • 34.Krizhevsky A, Sutskever I, Hinton GE. ImageNet classification with deep convolutional neural networks. Commun ACM. 2017;60(6):84–90. doi: 10.1145/3065386 [DOI] [Google Scholar]
  • 35.Hinton GE, Salakhutdinov RR. Reducing the dimensionality of data with neural networks. Science. 2006;313(5786):504–7. doi: 10.1126/science.1127647 [DOI] [PubMed] [Google Scholar]
  • 36.Bengio Y, Courville A, Vincent P. Representation Learning: A Review and New Perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2013;35(8):1798–828. doi: 10.1109/TPAMI.2013.50 [DOI] [PubMed] [Google Scholar]
  • 37.Zhu Z, Wu E, Leng P, Sun J, Ma M, Pan Z. Finger drawing on smartphone screens enables early Parkinson’s disease detection through hybrid 1D-CNN and BiGRU deep learning architecture. PLoS One. 2025;20(7):e0327733. doi: 10.1371/journal.pone.0327733 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Wang P, Liu H, Shi Y, Liu A, Zhu Q, Albu I, et al. Harnessing Small‐Data Machine Learning for Transformative Mental Health Forecasting: Towards Precision Psychiatry With Personalised Digital Phenotyping. Med Research. 2025;1(2):226–38. doi: 10.1002/mdr2.70017 [DOI] [Google Scholar]
  • 39.Silvestrini A, Veredas D. TEmporal Aggregation Of Univariate And Multivariate Time Series Models: A Survey. Journal of Economic Surveys. 2008;22(3):458–97. doi: 10.1111/j.1467-6419.2007.00538.x [DOI] [Google Scholar]
  • 40.Montalban X, Graves J, Midaglia L, Mulero P, Julian L, Baker M, et al. A smartphone sensor-based digital outcome assessment of multiple sclerosis. Mult Scler. 2022;28(4):654–64. doi: 10.1177/13524585211028561 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Midaglia L, Mulero P, Montalban X, Graves J, Hauser SL, Julian L, et al. Adherence and Satisfaction of Smartphone- and Smartwatch-Based Remote Active Testing and Passive Monitoring in People With Multiple Sclerosis: Nonrandomized Interventional Feasibility Study. J Med Internet Res. 2019;21(8):e14863. doi: 10.2196/14863 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Stangel M, Penner IK, Kallmann BA, Lukas C, Kieseier BC. Towards the implementation of “no evidence of disease activity” in multiple sclerosis treatment: the multiple sclerosis decision model. Ther Adv Neurol Disord. 2015;8(1):3–13. doi: 10.1177/1756285614560733 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Vickers AJ, Elkin EB. Decision curve analysis: a novel method for evaluating prediction models. Med Decis Making. 2006;26(6):565–74. doi: 10.1177/0272989X06295361 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Gross CC, Schulte-Mecklenbeck A, Steinberg OV, Wirth T, Lauks S, Bittner S, et al. Multiple sclerosis endophenotypes identified by high-dimensional blood signatures are associated with distinct disease trajectories. Sci Transl Med. 2024;16(740):eade8560. doi: 10.1126/scitranslmed.ade8560 [DOI] [PubMed] [Google Scholar]
  • 45.Lomer NB, Asalemi KA, Saberi A, Sarlak K. Predictors of multiple sclerosis progression: A systematic review of conventional magnetic resonance imaging studies. PLoS One. 2024;19(4):e0300415. doi: 10.1371/journal.pone.0300415 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Wang Z, Oates T. Encoding time series as images for visual inspection and classification using tiled convolutional neural networks. 2014.
  • 47.Wang Z, Oates T. Imaging time-series to improve classification and imputation. In: 2015. https://arxiv.org/abs/1506.00327

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

S1 Text. MS–TranSurv Architecture, Training Procedures, and Prediction.

This file includes additional details on the MS-TranSurv architecture, longitudinal data preprocessing, image construction, model training procedures, prediction framework, survival loss function, data security procedures, and supplementary model performance results.

(DOCX)

pdig.0001722.s001.docx (23KB, docx)
S1 Fig. Overview of the MS-TranSurv architecture.

Reaction image patches and patient-level clinical information are processed through separate feature extraction modules. The extracted latent features are then fused and passed into a Transformer encoder to estimate survival probabilities over time.

(DOCX)

pdig.0001722.s002.docx (151.4KB, docx)
S1 Table. Model performance with yearly tAUROC and Brier scores.

This table reports C-index, integrated Brier score, average tAUROC, yearly tAUROC, and yearly Brier scores for the Cox PH, MS-TranSurv, MS-TranSurv-mean, DDH, and RDSM models.

(DOCX)

pdig.0001722.s003.docx (22.3KB, docx)

Data Availability Statement

The patient-level clinical and cognitive data used in this study cannot be made publicly available because they contain sensitive human participant information and are subject to ethical, privacy, and data-governance restrictions imposed by the contributing data controllers and participating institutions. The data were obtained through MSBase and MSReactor under the relevant governance and data-use arrangements. De-identified data may be made available to qualified researchers subject to approval by the relevant data controllers and applicable governance requirements. Requests for access to the study data should be directed to MSBase at info@msbase.org.


Articles from PLOS Digital Health are provided here courtesy of PLOS

RESOURCES