Migraines are a prevalent and debilitating neurological disorder, affecting millions worldwide. Characterized by symptoms such as nausea, photophobia, phonophobia, and visual disturbances, diagnosing and classifying migraines remains a challenge due to their heterogeneous nature. This study leverages machine learning techniques to analyze a dataset comprising 400 patient records, identifying key factors that contribute to migraine classification. Using statistical analysis, correlation matrices, and Random Forest classification, we assess the significance of various symptoms in distinguishing different migraine types. Our results highlight that symptoms such as photophobia, nausea, and attack frequency play a crucial role in migraine identification. The correlation analysis reveals strong associations among specific symptoms, indicating potential patterns that can aid in classification. Furthermore, feature importance analysis using machine learning emphasizes that intensity and sensory disturbances significantly impact the accuracy of migraine type prediction. The study demonstrates the effectiveness of AI-driven methods in improving migraine classification accuracy, offering a valuable tool for clinicians to enhance diagnostic precision. The integration of machine learning into healthcare could lead to personalized treatment approaches, reducing misdiagnosis and optimizing patient management. Future research should focus on expanding datasets and incorporating deep learning models for further refinement. By harnessing AI’s predictive capabilities, this study underscores the potential for technology to revolutionize migraine diagnosis and treatment, contributing to a more efficient and patient-centered healthcare system.
Cite this paper
Filippis, R. D. and Foysal, A. A. (2025). The Impact of Machine Learning in Identifying Migraine Types: A Data-Driven Approach. Open Access Library Journal, 12, e3195. doi: http://dx.doi.org/10.4236/oalib.1113195.
Amiri, P., Kazeminasab, S., Nejadghaderi, S.A., Mohammadinasab, R., Pourfathi, H., Araj-Khodaei, M., et al. (2022) Migraine: A Review on Its History, Global Epidemiology, Risk Factors, and Comorbidities. Frontiers in Neurology, 12, Article 800605. https://doi.org/10.3389/fneur.2021.800605
Leonardi, M., Steiner, T.J., Scher, A.T. and Lipton, R.B. (2005) The Global Burden of Migraine: Measuring Disability in Headache Disorders with Who’s Classification of Functioning, Disability and Health (ICF). The Journal of Headache and Pain, 6, 429-440. https://doi.org/10.1007/s10194-005-0252-4
Safiri, S., Pourfathi, H., Eagan, A., Mansournia, M.A., Khodayari, M.T., Sullman, M.J.M., et al. (2021) Global, Regional, and National Burden of Migraine in 204 Countries and Territories, 1990 to 2019. Pain, 163, e293-e309. https://doi.org/10.1097/j.pain.0000000000002275
Charles, A. (2018) The Pathophysiology of Migraine: Implications for Clinical Management. The Lancet Neurology, 17, 174-182. https://doi.org/10.1016/s1474-4422(17)30435-0
Stovner, L.J., Nichols, E., Steiner, T.J., Abd-Allah, F., Abdelalim, A., Al-Raddadi, R.M., et al. (2018) Global, Regional, and National Burden of Migraine and Tension-Type Headache, 1990-2016: A Systematic Analysis for the Global Burden of Disease Study 2016. The Lancet Neurology, 17, 954-976. https://doi.org/10.1016/s1474-4422(18)30322-3
Villar-Martinez, M.D. and Goadsby, P.J. (2022) Pathophysiology and Therapy of Associated Features of Migraine. Cells, 11, Article 2767. https://doi.org/10.3390/cells11172767
Digre, K.B. and Friedman, D.I. (2021) Headache and Eye Pain. In: Albert, D., Miller, J., Azar, D. and Young, L.H., Eds., Albert and Jakobiec’s Principles and Practice of Ophthalmology, Springer, 1-25. https://doi.org/10.1007/978-3-319-90495-5_49-1
Celebisoy, N., Ak, A.K., Atac, C., Ozdemir, H.N., Gokcay, F., Durmaz, G.S., et al. (2023) Comparison of Clinical Features in Patients with Vestibular Migraine and Migraine. Journal of Neurology, 270, 3567-3573. https://doi.org/10.1007/s00415-023-11677-3
Lima, A.A., Mridha, M.F., Das, S.C., Kabir, M.M., Islam, M.R. and Watanobe, Y. (2022) A Comprehensive Survey on the Detection, Classification, and Challenges of Neurological Disorders. Biology, 11, Article 469. https://doi.org/10.3390/biology11030469
Nye, B.L. and Thadani, V.M. (2015) Migraine and Epilepsy: Review of the Literature. Headache: The Journal of Head and Face Pain, 55, 359-380. https://doi.org/10.1111/head.12536
Sloan, M., Harwood, R., Sutton, S., D’Cruz, D., Howard, P., Wincup, C., et al. (2020) Medically Explained Symptoms: A Mixed Methods Study of Diagnostic, Symptom and Support Experiences of Patients with Lupus and Related Systemic Autoimmune Diseases. Rheumatology Advances in Practice, 4, rkaa006. https://doi.org/10.1093/rap/rkaa006
Allen, J.A. and Lewis, R.A. (2015) CIDP Diagnostic Pitfalls and Perception of Treatment Benefit. Neurology, 85, 498-504. https://doi.org/10.1212/wnl.0000000000001833
Elendu, C., Amaechi, D.C., Amaechi, E.C., Chima-Ogbuiyi, N.L., Afuh, R.N., Arrey Agbor, D.B., et al. (2024) Diagnostic Criteria and Scoring Systems for Thyroid Storm: An Evaluation of Their Utility—Comparative Review. Medicine, 103, e37396. https://doi.org/10.1097/md.0000000000037396
Yong, M.T., Ho, S. and Tan, C. (2025) Migraine Generative Artificial Intelligence Based on Mobile Personalized Healthcare. Journal of Informatics and Web Engineering, 4, 275-291. https://doi.org/10.33093/jiwe.2025.4.1.20
Cerda, I.H., Zhang, E., Dominguez, M., Ahmed, M., Lang, M., Ashina, S., et al. (2024) Artificial Intelligence and Virtual Reality in Headache Disorder Diagnosis, Classification, and Management. Current Pain and Headache Reports, 28, 869-880. https://doi.org/10.1007/s11916-024-01279-7
Sharma, N. and Kaushik, P. (2025) Integration of AI in Healthcare Systems—A Discussion of the Challenges and Opportunities of Integrating AI in Healthcare Systems for Disease Detection and Diagnosis. In: Singh, R., Gehlot, A., Rathour, N. and Akram, S.V., Eds., AI in Disease Detection: Advancements and Applications, IEEE, 239-263.
Edmeads, J., Findlay, H., Tugwell, P., Pryse-Phillips, W., Nelson, R.F. and Murray, T.J. (1993) Impact of Migraine and Tension-Type Headache on Life-Style, Consulting Behaviour, and Medication Use: A Canadian Population Survey. Canadian Journal of Neurological Sciences/Journal Canadien des Sciences Neurologiques, 20, 131-137. https://doi.org/10.1017/s0317167100047697
Hoffmann, J. and May, A. (2018) Diagnosis, Pathophysiology, and Management of Cluster Headache. The Lancet Neurology, 17, 75-83. https://doi.org/10.1016/s1474-4422(17)30405-2
Lawrence, E.C. (2004) Diagnosis and Management of Migraine Headaches. Southern Medical Journal, 97, 1069-1077. https://doi.org/10.1097/01.smj.0000144634.76817.8f
Szabo, E., Green, S., Karunakaran, K.D., Sieberg, C.B., Elman, I., Burstein, R., et al. (2021) Migraine: Interactions between Brain’s Trait and State. CNS Spectrums, 27, 561-569. https://doi.org/10.1017/s109285292100064x
Nguyen, B.N., Lek, J.J., Vingrys, A.J. and McKendrick, A.M. (2016) Clinical Impact of Migraine for the Management of Glaucoma Patients. Progress in Retinal and Eye Research, 51, 107-124. https://doi.org/10.1016/j.preteyeres.2015.07.006
Abi‐Dargham, A., Moeller, S.J., Ali, F., DeLorenzo, C., Domschke, K., Horga, G., et al. (2023) Candidate Biomarkers in Psychiatric Disorders: State of the Field. World Psychiatry, 22, 236-262. https://doi.org/10.1002/wps.21078
Olawade, D.B., Teke, J., Adeleye, K.K., Egbon, E., Weerasinghe, K., Ovsepian, S.V., et al. (2024) AI-Guided Cancer Therapy for Patients with Coexisting Migraines. Cancers, 16, Article 3690. https://doi.org/10.3390/cancers16213690
AbuAlrob, M.A. and Mesraoua, B. (2024) Harnessing Artificial Intelligence for the Diagnosis and Treatment of Neurological Emergencies: A Comprehensive Review of Recent Advances and Future Directions. Frontiers in Neurology, 15, Article 1485799. https://doi.org/10.3389/fneur.2024.1485799
Boateng, E.Y., Otoo, J. and Abaye, D.A. (2020) Basic Tenets of Classification Algorithms K-Nearest-Neighbor, Support Vector Machine, Random Forest and Neural Network: A Review. Journal of Data Analysis and Information Processing, 8, 341-357. https://doi.org/10.4236/jdaip.2020.84020
Mustafa Abdullah, D. and Mohsin Abdulazeez, A. (2021) Machine Learning Applications Based on SVM Classification a Review. Qubahan Academic Journal, 1, 81-90. https://doi.org/10.48161/qaj.v1n2a50
Zhang, L., Novick, D., Zhong, S., Li, J., Walker, C., Harrison, L., et al. (2023) Real-world Analysis of Clinical Characteristics, Treatment Patterns, and Patient-Reported Outcomes of Insufficient Responders and Responders to Prescribed Acute Migraine Treatment in China. Pain and Therapy, 12, 751-769. https://doi.org/10.1007/s40122-023-00494-1
Tahhan, Z., Hatem, G., Abouelmaty, A.M., Rafei, Z. and Awada, S. (2024) Design and Validation of an Artificial Intelligence-Powered Instrument for the Assessment of Migraine Risk in University Students in Lebanon. Computers in Human Behavior Reports, 15, Article ID: 100453. https://doi.org/10.1016/j.chbr.2024.100453
Davis, K.D., Aghaeepour, N., Ahn, A.H., Angst, M.S., Borsook, D., Brenton, A., et al. (2020) Discovery and Validation of Biomarkers to Aid the Development of Safe and Effective Pain Therapeutics: Challenges and Opportunities. Nature Reviews Neurology, 16, 381-400. https://doi.org/10.1038/s41582-020-0362-2
Castori, M., Morlino, S., Ghibellini, G., Celletti, C., Camerota, F. and Grammatico, P. (2015) Connective Tissue, Ehlers-Danlos Syndrome(s), and Head and Cervical Pain. American Journal of Medical Genetics Part C: Seminars in Medical Genetics, 169, 84-96. https://doi.org/10.1002/ajmg.c.31426
Jacob, D., Unnsteinsdóttir Kristensen, I.S., Aubonnet, R., Recenti, M., Donisi, L., Ricciardi, C., et al. (2022) Towards Defining Biomarkers to Evaluate Concussions Using Virtual Reality and a Moving Platform (BioVRSea). Scientific Reports, 12, Article No. 8996. https://doi.org/10.1038/s41598-022-12822-0
Gautam, R. and Sharma, M. (2020) Prevalence and Diagnosis of Neurological Disorders Using Different Deep Learning Techniques: A Meta-Analysis. Journal of Medical Systems, 44, Article No. 49. https://doi.org/10.1007/s10916-019-1519-7
Petrusic, I., Ha, W., Labastida-Ramirez, A., Messina, R., Onan, D., Tana, C., et al. (2024) Influence of Next-Generation Artificial Intelligence on Headache Research, Diagnosis and Treatment: The Junior Editorial Board Members’ Vision—Part 1. The Journal of Headache and Pain, 25, Article No. 151.
https://doi.org/10.1186/s10194-024-01847-7
Pareja, J. and Pareja, J. (1992) Chronic Paroxysmal Hemicrania Coexisting with Migraine. Differential Response to Pharmacological Treatment. Headache: The Journal of Head and Face Pain, 32, 77-78. https://doi.org/10.1111/j.1526-4610.1992.hed3202077.x
Gutman, B., Shmilovitch, A., Aran, D. and Shelly, S. (2024) Twenty-Five Years of AI in Neurology: The Journey of Predictive Medicine and Biological Breakthroughs. JMIR Neurotechnology, 3, e59556. https://doi.org/10.2196/59556
Norori, N., Hu, Q., Aellen, F.M., Faraci, F.D. and Tzovara, A. (2021) Addressing Bias in Big Data and AI for Health Care: A Call for Open Science. Patterns, 2, Article ID: 100347. https://doi.org/10.1016/j.patter.2021.100347
Celi, L.A., Cellini, J., Charpignon, M., Dee, E.C., Dernoncourt, F., Eber, R., et al. (2022) Sources of Bias in Artificial Intelligence That Perpetuate Healthcare Disparities—A Global Review. PLOS Digital Health, 1, e0000022. https://doi.org/10.1371/journal.pdig.0000022
Hosain, M.T., Jim, J.R., Mridha, M.F. and Kabir, M.M. (2024) Explainable AI Approaches in Deep Learning: Advancements, Applications and Challenges. Computers and Electrical Engineering, 117, Article ID: 109246. https://doi.org/10.1016/j.compeleceng.2024.109246
Rasheed, K., Qayyum, A., Ghaly, M., Al-Fuqaha, A., Razi, A. and Qadir, J. (2022) Explainable, Trustworthy, and Ethical Machine Learning for Healthcare: A Survey. Computers in Biology and Medicine, 149, Article ID: 106043. https://doi.org/10.1016/j.compbiomed.2022.106043
Saif, Z.B., Sakib, N. and Adnan, M. (2023) Exploring the Prevalence and Triggering Factors of Migraine in University Students of Bangladesh Using Machine Learning. Ph.D. Thesis, Islamic University of Technology (IUT).
Kim, J., Kim, H., Sohn, J., Hwang, S., Lee, J. and Kwon, Y. (2025) Functional Disability and Psychological Impact in Headache Patients: A Comparative Study Using Conventional Statistics and Machine Learning Analysis. Medicina, 61, Article 188. https://doi.org/10.3390/medicina61020188
Kaky, A.J.M. (2017) Intelligent Systems Approach for Classification and Management of Patients with Headache. Ph.D. Thesis, Liverpool John Moores University.
Nitze, I., Schulthess, U. and Asche, H. (2012) Comparison of Machine Learning Algorithms Random Forest, Artificial Neural Network and Support Vector Machine to Maximum Likelihood for Supervised Crop Type Classification. Proceedings of the 4th GEOBIA, Rio de Janeiro, 7-9 May 2012, 3540.
Rimal, Y., Sharma, N. and Alsadoon, A. (2024) The Accuracy of Machine Learning Models Relies on Hyperparameter Tuning: Student Result Classification Using Random Forest, Randomized Search, Grid Search, Bayesian, Genetic, and Optuna Algorithms. Multimedia Tools and Applications, 83, 74349-74364. https://doi.org/10.1007/s11042-024-18426-2
Mudassir, S.N. and M, R. (2024) Enhancing Migraine Diagnosis and Classification with TabNet: A Data-Driven Approach. 2024 14th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, 18-19 January 2024, 679-684. https://doi.org/10.1109/confluence60223.2024.10463329
Meier, T.A., Refahi, M.S., Hearne, G., Restifo, D.S., Munoz-Acuna, R., Rosen, G.L., et al. (2024) The Role and Applications of Artificial Intelligence in the Treatment of Chronic Pain. Current Pain and Headache Reports, 28, 769-784. https://doi.org/10.1007/s11916-024-01264-0