Classifying Self-Reported Rheumatoid Arthritis Flares Using Daily Patient-Generated Data From a Smartphone App: Exploratory Analysis Applying Machine Learning Approaches
- PMID: 38743480
- PMCID: PMC11134244
- DOI: 10.2196/50679
Classifying Self-Reported Rheumatoid Arthritis Flares Using Daily Patient-Generated Data From a Smartphone App: Exploratory Analysis Applying Machine Learning Approaches
Abstract
Background: The ability to predict rheumatoid arthritis (RA) flares between clinic visits based on real-time, longitudinal patient-generated data could potentially allow for timely interventions to avoid disease worsening.
Objective: This exploratory study aims to investigate the feasibility of using machine learning methods to classify self-reported RA flares based on a small data set of daily symptom data collected on a smartphone app.
Methods: Daily symptoms and weekly flares reported on the Remote Monitoring of Rheumatoid Arthritis (REMORA) smartphone app from 20 patients with RA over 3 months were used. Predictors were several summary features of the daily symptom scores (eg, pain and fatigue) collected in the week leading up to the flare question. We fitted 3 binary classifiers: logistic regression with and without elastic net regularization, a random forest, and naive Bayes. Performance was evaluated according to the area under the curve (AUC) of the receiver operating characteristic curve. For the best-performing model, we considered sensitivity and specificity for different thresholds in order to illustrate different ways in which the predictive model could behave in a clinical setting.
Results: The data comprised an average of 60.6 daily reports and 10.5 weekly reports per participant. Participants reported a median of 2 (IQR 0.75-4.25) flares each over a median follow-up time of 81 (IQR 79-82) days. AUCs were broadly similar between models, but logistic regression with elastic net regularization had the highest AUC of 0.82. At a cutoff requiring specificity to be 0.80, the corresponding sensitivity to detect flares was 0.60 for this model. The positive predictive value (PPV) in this population was 53%, and the negative predictive value (NPV) was 85%. Given the prevalence of flares, the best PPV achieved meant only around 2 of every 3 positive predictions were correct (PPV 0.65). By prioritizing a higher NPV, the model correctly predicted over 9 in every 10 non-flare weeks, but the accuracy of predicted flares fell to only 1 in 2 being correct (NPV and PPV of 0.92 and 0.51, respectively).
Conclusions: Predicting self-reported flares based on daily symptom scorings in the preceding week using machine learning methods was feasible. The observed predictive accuracy might improve as we obtain more data, and these exploratory results need to be validated in an external cohort. In the future, analysis of frequently collected patient-generated data may allow us to predict flares before they unfold, opening opportunities for just-in-time adaptative interventions. Depending on the nature and implication of an intervention, different cutoff values for an intervention decision need to be considered, as well as the level of predictive certainty required.
Keywords: arthritic; arthritis; classification; classify; flare; flares; joint; joints; machine learning; mobile health; mobile phone; musculoskeletal; patient-generated health data; rheumatic; rheumatism; rheumatoid arthritis; smartphone; symptom; symptoms.
©Julie Gandrup, David A Selby, William G Dixon. Originally published in JMIR Formative Research (https://formative.jmir.org), 14.05.2024.
Conflict of interest statement
Conflicts of Interest: JG is currently employed at UCB Pharma, but this work was completed before joining UCB Pharma. WGD has received consultancy fees from Google, unrelated to this work. DAS declares no conflicts of interest.
Figures


Similar articles
-
Using patient-reported data from a smartphone app to capture and characterize real-time patient-reported flares in rheumatoid arthritis.Rheumatol Adv Pract. 2022 Mar 16;6(1):rkac021. doi: 10.1093/rap/rkac021. eCollection 2022. Rheumatol Adv Pract. 2022. PMID: 35392426 Free PMC article.
-
Investigating characteristics of idiopathic inflammatory myopathy flares using daily symptom data collected via a smartphone app.Rheumatology (Oxford). 2022 Nov 28;61(12):4845-4854. doi: 10.1093/rheumatology/keac161. Rheumatology (Oxford). 2022. PMID: 35274670 Free PMC article.
-
Detection of Flares by Decrease in Physical Activity, Collected Using Wearable Activity Trackers in Rheumatoid Arthritis or Axial Spondyloarthritis: An Application of Machine Learning Analyses in Rheumatology.Arthritis Care Res (Hoboken). 2019 Oct;71(10):1336-1343. doi: 10.1002/acr.23768. Arthritis Care Res (Hoboken). 2019. PMID: 30242992
-
Definitions of rheumatoid arthritis flare and how they relate to patients' perspectives: A scoping review of qualitative and quantitative evidence.Semin Arthritis Rheum. 2024 Aug;67:152481. doi: 10.1016/j.semarthrit.2024.152481. Epub 2024 May 25. Semin Arthritis Rheum. 2024. PMID: 38815403
-
Wearable Activity Trackers in the Management of Rheumatic Diseases: Where Are We in 2020?Sensors (Basel). 2020 Aug 25;20(17):4797. doi: 10.3390/s20174797. Sensors (Basel). 2020. PMID: 32854412 Free PMC article. Review.
Cited by
-
Current application, possibilities, and challenges of artificial intelligence in the management of rheumatoid arthritis, axial spondyloarthritis, and psoriatic arthritis.Ther Adv Musculoskelet Dis. 2025 Jun 21;17:1759720X251343579. doi: 10.1177/1759720X251343579. eCollection 2025. Ther Adv Musculoskelet Dis. 2025. PMID: 40547599 Free PMC article. Review.
References
-
- Hewlett S, Sanderson T, May J, Alten R, Bingham CO, Cross M, March L, Pohl C, Woodworth T, Bartlett SJ. 'I'm hurting, I want to kill myself': rheumatoid arthritis flare is more than a high joint count—an international patient perspective on flare where medical help is sought. Rheumatology (Oxford) 2012;51(1):69–76. doi: 10.1093/rheumatology/keq455. https://academic.oup.com/rheumatology/article/51/1/69/1772753?login=false keq455 - DOI - PubMed
-
- Markusse IM, Dirven L, Gerards AH, van Groenendael JHLM, Ronday HK, Kerstens PJSM, Lems WF, Huizinga TWJ, Allaart CF. Disease flares in rheumatoid arthritis are associated with joint damage progression and disability: 10-year results from the BeSt study. Arthritis Res Ther. 2015;17(1):232. doi: 10.1186/s13075-015-0730-2. https://arthritis-research.biomedcentral.com/articles/10.1186/s13075-015... 10.1186/s13075-015-0730-2 - DOI - DOI - PMC - PubMed
-
- Kuettel D, Primdahl J, Christensen R, Ørnbjerg LM, Hørslev-Petersen K. Impact of patient-reported flares on radiographic progression and functional impairment in patients with rheumatoid arthritis: a cohort study based on the AMBRA trial. Scand J Rheumatol. 2018;47(2):87–94. doi: 10.1080/03009742.2017.1329457. - DOI - PubMed
-
- Flurey CA, Morris M, Richards P, Hughes R, Hewlett S. It's like a juggling act: rheumatoid arthritis patient perspectives on daily life and flare while on current treatment regimes. Rheumatology (Oxford) 2014;53(4):696–703. doi: 10.1093/rheumatology/ket416. https://europepmc.org/abstract/MED/24357813 ket416 - DOI - PMC - PubMed
-
- Fautrel B, Alten R, Kirkham B, de la Torre I, Durand F, Barry J, Holzkaemper T, Fakhouri W, Taylor PC. Call for action: how to improve use of patient-reported outcomes to guide clinical decision making in rheumatoid arthritis. Rheumatol Int. 2018;38(6):935–947. doi: 10.1007/s00296-018-4005-5. https://europepmc.org/abstract/MED/29564549 10.1007/s00296-018-4005-5 - DOI - PMC - PubMed
LinkOut - more resources
Full Text Sources