Forecasting migraine with machine learning based on mobile phone diary and wearable data

Cephalalgia. 2023 May;43(5):3331024231169244. doi: 10.1177/03331024231169244.

Abstract

Introduction: Triggers, premonitory symptoms and physiological changes occur in the preictal migraine phase and may be used in models for forecasting attacks. Machine learning is a promising option for such predictive analytics. The objective of this study was to explore the utility of machine learning to forecast migraine attacks based on preictal headache diary entries and simple physiological measurements.

Methods: In a prospective development and usability study 18 patients with migraine completed 388 headache diary entries and self-administered app-based biofeedback sessions wirelessly measuring heart rate, peripheral skin temperature and muscle tension. Several standard machine learning architectures were constructed to forecast headache the subsequent day. Models were scored with area under the receiver operating characteristics curve.

Results: Two-hundred-and-ninety-five days were included in the predictive modelling. The top performing model, based on random forest classification, achieved an area under the receiver operating characteristics curve of 0.62 in a hold-out partition of the dataset.

Discussion: In this study we demonstrate the utility of using mobile health apps and wearables combined with machine learning to forecast headache. We argue that high-dimensional modelling may greatly improve forecasting and discuss important considerations for future design of forecasting models using machine learning and mobile health data.

Keywords: Artificial intelligence; biofeedback; boosting; headache; prediction; random forest.

MeSH terms

  • Cell Phone*
  • Headache
  • Humans
  • Machine Learning
  • Migraine Disorders* / diagnosis
  • Prospective Studies
  • Wearable Electronic Devices*