AUTHOR=Reddy Anusha , Reddy Ajit TITLE=Migraine triggers, phases, and classification using machine learning models JOURNAL=Frontiers in Neurology VOLUME=Volume 16 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/neurology/articles/10.3389/fneur.2025.1555215 DOI=10.3389/fneur.2025.1555215 ISSN=1664-2295 ABSTRACT=BackgroundIn many countries, patients with headache disorders such as migraine remain under-recognized and under-diagnosed. Patients affected by these disorders are often unaware of the seriousness of their conditions, as headaches are neither fatal nor contagious. In many cases, patients with migraine are often misdiagnosed as regular headaches.MethodsIn this article, we present a study on migraine, covering known triggers, different phases, classification of migraine into different types based on clinical studies, and the use of various machine learning algorithms such as logistic regression (LR), support vector machine (SVM), random forest (RF), and artificial neural network (ANN) to learn and classify different migraine types. This study will only consider using these methods for diagnostic purposes. Models based on these algorithms are then trained using the dataset, which includes a compilation of the types of migraine experienced by various patients. These models are then used to classify the types of migraines, and the results are analyzed.ResultsThe results of the machine learning models trained on the dataset are verified for their performance. The results are further evaluated by selective sampling and tuning, and improved performance is observed. The precision and accuracy obtained by the support vector machine and artificial neural network are 91% compared to logistic regression (90%) and random forest (87%). These models are run with the dataset without optimal tuning across the entire dataset for different migraine types; which is further improved with selective sampling and optimal tuning. These results indicate that the discussed models are relatively good and can be used with high precision and accuracy for diagnosing different types of migraine.ConclusionOur study presents a realistic assessment of promising models that are dependable in aiding physicians. The study shows the performance of various models based on the classification metrics computed for each model. It is evident from the results that the artificial neural network (ANN) performs better, irrespective of the sampling techniques used. With these machine learning models, types of migraines can be classified with high accuracy and reliability, enabling physicians to make timely clinical diagnoses of patients.