CefaleApp: A Mobile Application for Migraine Diagnosis in Primary Health Care
Daniel Apolinar García-Estévez , Baltasar García Pérez-Schofield , Nabil Alberto Sabbagh Casado
Revista de Neurología ›› 2026, Vol. 81 ›› Issue (2) : 46506
Headaches are the main reason for visits to Neurology clinics, and migraine is the most common primary headache. with migraine being the most frequent. Our objective was to develop a computer application (app) that could empower Primary Health Care (PHC) physicians in decision-making regarding migraine.
A rule-based artificial intelligence system was designed to process patients’ responses to the ID-Migraine screener and subsequently determine whether they met the diagnostic criteria for migraine or tension-type headache, according to the International Headache Society. The application, known as CefaleApp, is designed to generate a diagnosis of migraine, tension-type headache, or mixed headache.
CefaleApp was validated in 152 patients referred from PHC clinics with a suspected diagnosis of migraine or tension-type headache. Patients were evaluated in the Neurology Department of a secondary-level hospital and in two regional hospitals. Agreement between the diagnosis generated by CefaleApp and that issued by an expert headache neurologist (gold standard) was estimated using Cohen’s Kappa index and the Matthews correlation coefficient (MCC). Overall diagnostic accuracy was 90.8% (95% CI: 85.1–94.6%), Cohen’s Kappa index was 0.73 (95% CI: 0.59–0.87), and the MCC value was 0.73.
The migraine diagnosis generated by CefaleApp shows substantial-high agreement with that provided by the expert headache neurologist.
migraña / cefalea tipo tensión / inteligencia artificial / cefalea / atención primaria / salud digital / migraine / tension-type headache / artificial intelligence / headaches / primary care / digital health
| [1] |
Sanchez-Del-Rio M, García-Azorín D, Peral C, Armada B, Irimia-Sieira P, Porta-Etessam J. Prevalence, disability, and economic impact of migraine in Spain: a nationwide population-based study. The Journal of Headache and Pain. 2025; 26: 117. https://doi.org/10.1186/s10194-025-02069-1. |
| [2] |
Pozo-Rosich P, Carmo M, Muñiz A, Armada B, Moya-Alarcón C, Pascual J. Migraine treatment: quo vadis? Real-world data study (2015-2022) in Spain. BMC Neurology. 2024; 24: 107. https://doi.org/10.1186/s12883-024-03600-8. |
| [3] |
Mateos V, Díaz-Insua SI, Morera J, Porta J, Pascual J, Matías-Guiu J. Migraine management in neurology clinics in Spain: PALM study results. Neurología. 2007; Suppl 3: 7–14. |
| [4] |
Santos-Lasaosa S, Vinueza-Buitron PR, Velazquez-Benito A, Iniguez-Martinez C, Larrode-Pellicer P, Lopez Del Val LJ, et al. Study of the diagnostic agreement on headaches between neurology and primary care. Revista De Neurologia. 2016; 62: 549–554. |
| [5] |
Lipton RB, Dodick D, Sadovsky R, Kolodner K, Endicott J, Hettiarachchi J, et al. A self-administered screener for migraine in primary care: The ID Migraine validation study. Neurology. 2003; 61: 375–382. https://doi.org/10.1212/01.wnl.0000078940.53438.83. |
| [6] |
Brighina F, Salemi G, Fierro B, Gasparro A, Balletta A, Aloisio A, et al. A validation study of an Italian version of the “ID Migraine”. Headache. 2007; 47: 905–908. https://doi.org/10.1111/j.1526-4610.2006.00628.x. |
| [7] |
Siva A, Zarifoglu M, Ertas M, Saip S, Karli HN, Baykan B, et al. Validity of the ID-Migraine screener in the workplace. Neurology. 2008; 70: 1337–1345. https://doi.org/10.1212/01.wnl.0000309221.85545.0d. |
| [8] |
Gil-Gouveia R, Martins I. Validation of the Portuguese version of ID-Migraine. Headache. 2010; 50: 396–402. https://doi.org/10.1111/j.1526-4610.2009.01449.x. |
| [9] |
Cousins G, Hijazze S, Van de Laar FA, Fahey T. Diagnostic accuracy of the ID Migraine: a systematic review and meta-analysis. Headache. 2011; 51: 1140–1148. https://doi.org/10.1111/j.1526-4610.2011.01916.x. |
| [10] |
Pavlovic JM, Yu JS, Silberstein SD, Reed ML, Cowan RP, Dabbous F, et al. Evaluation of the 6-item Identify Chronic Migraine screener in a large medical group. Headache. 2021; 61: 335–342. https://doi.org/10.1111/head.14035. |
| [11] |
Ezpeleta D, Pozo-Rosich P. Guía oficial para el diagnóstico y tratamiento de las cefaleas 2015. Editorial Luzán 5: Madrid. 2015. (En Español) |
| [12] |
Recomendaciones diagnósticas y terapéuticas de la Sociedad Española de Neurología. Recomendaciones prácticas de cefaleas para Atención Primaria. Editorial Luzán 5: Madrid. 2022. (En Español) |
| [13] |
Rivera I, Fontanillas N, Cadelo L, Pascual J. Primary headaches as the reason for consultation in Primary Care: a prospective study. Neurología (Engl Ed) 2025; 40: 849–854. https://doi.org/10.1016/j.nrleng.2025.10.004. |
| [14] |
Pascual J, Sánchez-Escudero A, Castillo J. Teaching needs of general practitioners in headaches. Neurologia (Barcelona, Spain). 2010; 25: 104–107. |
| [15] |
Díaz-Insa S, Navarro-Zornoza M, Sánchez-de la Rosa R, Guerrero AL. Characterisation of the management of patients with migraine in the primary care setting in Spain. Analysis of the results of the European My-LIFE anamnesis project. Neurologia. 2023; 38: S22–S30. https://doi.org/10.1016/j.nrleng.2021.10.009. |
| [16] |
Pascual J, Sánchez del Río M, Jiménez MD, Láinez-Andrés JM, Mateos V, Leira R, et al. Approach of neurologists in Spain to migraine: results of the CIEN-mig project (I). Revista De Neurologia. 2010; 50: 577–583. |
| [17] |
Mateos V, Porta-Etessam J, Armengol-Bertolin S, Larios C, Garcia M, en representación de Los Investigadores Del Estudio Primera. Initial situation and approach to the care of migraine in neurology services in Spain: the PRIMERA study. Revista De Neurologia. 2012; 55: 577–584. |
| [18] |
Fontanillas N, Rivera I, Baz P, Pascual J. What do I need to know about headaches if I am a Primary Care doctor? Semergen. 2025; 51: 102534. https://doi.org/10.1016/j.semerg.2025.102534. |
| [19] |
Katsuki M, Shimazu T, Kikui S, Danno D, Miyahara J, Takeshima R, et al. Developing an artificial intelligence-based headache diagnostic model and its utility for non-specialists’ diagnostic accuracy. Cephalalgia. 2023; 43: 3331024231156925. https://doi.org/10.1177/03331024231156925. |
| [20] |
Sahin S, Tolun MR, Hassanpour R. Hybrid expert systems: A survey of current approaches and applications. Expert Systems With Applications. 2012; 39: 4609–4616. https://doi.org/10.1016/j.eswa.2011.08.130. |
| [21] |
Kotiv B, Solovev A, Uchaev D, Krasilnikov A, Krasilnikova E. Artificial intelligence using for medical diagnosis via implementation of expert systems. Bulletin of the Russian Military Medical Academy. 2021; 23: 45–52. https://doi.org/10.17816/brmma63657. |
| [22] |
Headache Classification Committee of the International Headache Society (IHS) The International Classification of Headache Disorders, 3rd edition. Cephalalgia: an International Journal of Headache. 2018; 38: 1–211. https://doi.org/10.1177/0333102417738202. |
| [23] |
García Estévez D, García Pérez-Schofield B, Blanco García L, Sabbagh Casado N. CEFALEAPP: una app para el diagnóstico y tratamiento de la migraña en atención primaria de salud. Comunicación de Congreso. Neurology Perspectives 2024; 4: 264–265. https://doi.org/10.1016/S2667-0496(24)00904-9. (En Español) |
| [24] |
Arnold K, Gosling J, Holmes D. The Java programming language. 4th edn. Addison-Wesley Professional: Boston. 2005. |
| [25] |
Cowan RP, Rapoport AM, Blythe J, Rothrock J, Knievel K, Peretz AM, et al. Diagnostic accuracy of an artificial intelligence online engine in migraine: A multi-center study. Headache. 2022; 62: 870–882. https://doi.org/10.1111/head.14324. |
| [26] |
Kim KM, Kim AR, Lee W, Jang BH, Heo K, Chu MK. Development and validation of a web-based headache diagnosis questionnaire. Scientific Reports. 2022; 12: 7032. https://doi.org/10.1038/s41598-022-11008-y. |
| [27] |
Han X, Wan D, Zhang S, Yin Z, Huang S, Xie F, et al. Verification of a clinical decision support system for the diagnosis of headache disorders based on patient-computer interactions: a multi-center study. The Journal of Headache and Pain. 2023; 24: 57. https://doi.org/10.1186/s10194-023-01586-1. |
| [28] |
Dong Z, Yin Z, He M, Chen X, Lv X, Yu S. Validation of a guideline-based decision support system for the diagnosis of primary headache disorders based on ICHD-3 beta. The Journal of Headache and Pain. 2014; 15: 40. https://doi.org/10.1186/1129-2377-15-40. |
| [29] |
Sasaki S, Katsuki M, Kawahara J, Yamagishi C, Koh A, Kawamura S, et al. Developing an Artificial Intelligence-Based Pediatric and Adolescent Migraine Diagnostic Model. Cureus. 2023; 15: e44415. https://doi.org/10.7759/cureus.44415. |
/
| 〈 |
|
〉 |