{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,28]],"date-time":"2026-08-28T17:16:12Z","timestamp":1787937372530,"version":"build-2784847793"},"reference-count":34,"publisher":"SAGE Publications","issue":"8","license":[{"start":{"date-parts":[[2026,8,1]],"date-time":"2026-08-01T00:00:00Z","timestamp":1785542400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"},{"start":{"date-parts":[[2026,8,1]],"date-time":"2026-08-01T00:00:00Z","timestamp":1785542400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/journals.sagepub.com\/page\/policies\/text-and-data-mining-license"}],"funder":[{"DOI":"10.13039\/501100025294","name":"Taighde \u00c9ireann \u2013 Research Ireland","doi-asserted-by":"crossref","award":["12\/RC\/2289_P2"],"award-info":[{"award-number":["12\/RC\/2289_P2"]}],"id":[{"id":"10.13039\/501100025294","id-type":"DOI","asserted-by":"crossref"}]},{"name":"European Union\u2019s Horizon 2020","award":["101034252"],"award-info":[{"award-number":["101034252"]}]},{"name":"Research Foundation of Usak University","award":["TSA-2026-741"],"award-info":[{"award-number":["TSA-2026-741"]}]}],"content-domain":{"domain":["journals.sagepub.com"],"crossmark-restriction":true},"short-container-title":["Cephalalgia"],"published-print":{"date-parts":[[2026,8]]},"abstract":"<jats:sec>\n                    <jats:title>Background\/Hypothesis<\/jats:title>\n                    <jats:p>Differentiating primary from secondary headaches remains challenging due to overlapping symptoms and the subjective nature of pain assessment. Machine learning (ML) combined with explainable artificial intelligence (XAI) offers a promising approach for improving diagnostic accuracy while maintaining clinical interpretability. The study aimed to develop an interpretable ML model to differentiate primary from secondary headaches and to identify the relative diagnostic contributions of individual clinical features.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Methods<\/jats:title>\n                    <jats:p>This cross-sectional study analyzed 1219 patients using routine clinical history variables, including 21 triggers, 15 associated symptoms, temporal patterns, pain intensity (visual analog scale [VAS]), and demographic factors. Data were obtained from the Global Migraine and Pain Society (GMPS) registry and the epikriz.com\/headache platform, restricted to patients managed by specialist headache neurologists at two headache clinics in T\u00fcrkiye. The binary classification outcome was clinically assigned headache label: primary versus secondary headache disorder (primary headache designated as the positive class). An eXtreme Gradient Boosting (XGBoost) classifier was developed with Random Over-Sampling Examples to address class imbalance, which was applied exclusively to the training partition. Model interpretability was achieved using SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME).<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>The model demonstrated excellent discrimination (AUC = 0.905), with sensitivity of 90.8%, specificity of 87.5%, precision of 99.7%, and an F1-score of 0.950. Associated symptom burden was the strongest predictor of primary headache classification (mean absolute SHAP = 1.075), driven principally by nausea, phonophobia, and photophobia. Trigger burden ranked second (mean absolute SHAP = 0.790), with stress, hunger, and odors most prevalent. Two laterality features independently discriminated headache type: strictly unilateral side-shifting (mean absolute SHAP = 0.545) and unilateral-to-bilateral transition (mean absolute SHAP = 0.481), both favoring primary classification. Higher diurnal pattern scores were associated with secondary headache disorders (mean absolute SHAP = 0.257). VAS contributed minimally (mean absolute SHAP = 0.101), suggesting that the syndromic profile outperforms pain severity as a diagnostic discriminator in this cohort.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Conclusion\/Interpretation<\/jats:title>\n                    <jats:p>In this cohort, an ML model incorporating trigger profiles, associated symptoms, and temporal headache characteristics demonstrated good discrimination between clinically assigned primary and secondary headache labels. Associated symptom burden and trigger burden were more influential in model classification than pain intensity. This finding aligns with clinical practice, where headache diagnosis relies on symptom patterns and triggers rather than pain intensity alone. XAI frameworks may help make such classification models more clinically interpretable, although further external validation is required.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.1177\/03331024261479693","type":"journal-article","created":{"date-parts":[[2026,8,25]],"date-time":"2026-08-25T15:12:38Z","timestamp":1787670758000},"update-policy":"https:\/\/doi.org\/10.1177\/sage-journals-update-policy","source":"Crossref","is-referenced-by-count":0,"title":["Characterizing the clinical profile of primary headache using explainable artificial intelligence"],"prefix":"10.1177","volume":"46","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-3321-4748","authenticated-orcid":false,"given":"Idris","family":"Demirsoy","sequence":"first","affiliation":[{"name":"U\u015fak University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5169-2233","authenticated-orcid":false,"given":"Merve Hilal","family":"Ceren Akg\u00f6r","sequence":"additional","affiliation":[{"name":"Department of Neurology, University of Health Sciences Ankara Atat\u00fcrk Sanatorium Training and Research Hospital, Ankara, Turkiye"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0192-5430","authenticated-orcid":false,"given":"Masahito","family":"Katsuki","sequence":"additional","affiliation":[{"name":"Nagaoka University of Technology"},{"name":"Dublin City University"},{"name":"Dublin City University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yasuhiko","family":"Matsumori","sequence":"additional","affiliation":[{"name":"Sendai Headache and Neurology Clinic, Sendai, Japan"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3811-5017","authenticated-orcid":false,"given":"Derya","family":"Ulud\u00fcz","sequence":"additional","affiliation":[{"name":"Beyin 360 Integrative Brain Health Clinic and Istanbul Atlas University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2797-2398","authenticated-orcid":false,"given":"Aynur","family":"Ozge","sequence":"additional","affiliation":[{"name":"NOROM Neuroscience and Excellence Center, Ankara, T\u00fcrkiye"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"179","published-online":{"date-parts":[[2026,8,25]]},"reference":[{"key":"e_1_3_3_2_2","doi-asserted-by":"publisher","DOI":"10.1111\/head.15007"},{"key":"e_1_3_3_3_2","doi-asserted-by":"publisher","DOI":"10.31083\/j.jin2302043"},{"key":"e_1_3_3_4_2","first-page":"333102423121327","article-title":"Proposed general diagnostic criteria for secondary headaches","volume":"43","author":"Lebedeva ER","unstructured":"Lebedeva ER, Olesen J. Proposed general diagnostic criteria for secondary headaches. Cephalalgia 2023 Dec; 43: 3331024231213278.","journal-title":"Cephalalgia"},{"key":"e_1_3_3_5_2","doi-asserted-by":"publisher","DOI":"10.1186\/s10194-025-02134-9"},{"key":"e_1_3_3_6_2","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-024-55874-0"},{"key":"e_1_3_3_7_2","doi-asserted-by":"publisher","DOI":"10.17219\/acem\/169852"},{"key":"e_1_3_3_8_2","doi-asserted-by":"publisher","DOI":"10.25259\/SNI_827_2020"},{"key":"e_1_3_3_9_2","doi-asserted-by":"publisher","DOI":"10.1186\/s10194-024-01924-x"},{"key":"e_1_3_3_10_2","article-title":"Using SHAP and LIME to explain machine learning models predicting comorbid depression and stroke from daily dietary nutrient intake in a US population-based study","volume":"14","author":"Liu H","unstructured":"Liu H, Wu M, Wei P, et al. Using SHAP and LIME to explain machine learning models predicting comorbid depression and stroke from daily dietary nutrient intake in a US population-based study. Food Sci Nutr 2026 Dec 30; 14: e71401.","journal-title":"Food Sci Nutr"},{"key":"e_1_3_3_11_2","first-page":"1035","article-title":"Strategies for handling missing data in electronic health record derived data","volume":"1","author":"Wells BJ","unstructured":"Wells BJ, Chagin KM, Nowacki AS, et al. Strategies for handling missing data in electronic health record derived data. EGEMS (Wash DC 2013 Dec 17; 1: 1035.","journal-title":"EGEMS (Wash DC"},{"key":"e_1_3_3_12_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10618-012-0295-5"},{"key":"e_1_3_3_13_2","unstructured":"Demirsoy I. Estimating the Intensity of Point Processes on Linear Networks [Ph.D.]. United States \u2013 Florida: The Florida State University; 2020."},{"key":"e_1_3_3_14_2","first-page":"1","article-title":"Xgboost: extreme gradient boosting. R package version 04-2","volume":"1","author":"Chen T","year":"2015","unstructured":"Chen T, He T, Benesty M, et al. Xgboost: extreme gradient boosting. R package version 04-2. Sci Res 2015; 1: 1\u20134.","journal-title":"Sci Res"},{"key":"e_1_3_3_15_2","doi-asserted-by":"crossref","unstructured":"Chen T Guestrin C. XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; San Francisco California USA: Association for Computing Machinery; 2016. p. 785\u201394.","DOI":"10.1145\/2939672.2939785"},{"key":"e_1_3_3_16_2","first-page":"4768","article-title":"A unified approach to interpreting model predictions. Advances in neural information processing systems","volume":"30","author":"Lundberg SM","year":"2017","unstructured":"Lundberg SM, Lee S-I. A unified approach to interpreting model predictions. Advances in neural information processing systems. Sci Res 2017; 30: 4768\u20134777.","journal-title":"Sci Res"},{"key":"e_1_3_3_17_2","doi-asserted-by":"publisher","DOI":"10.65206\/pajes.1873321"},{"key":"e_1_3_3_18_2","doi-asserted-by":"crossref","unstructured":"Ribeiro MT Singh S Guestrin C. (editors) \u201cWhy should i trust you?\u201d Explaining the predictions of any classifier. Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining; 2016.","DOI":"10.1145\/2939672.2939778"},{"key":"e_1_3_3_19_2","first-page":"739","article-title":"A machine learning approach to determine optimal togg sale price in the European market","author":"Demirsoy I","year":"2024","unstructured":"Demirsoy I. A machine learning approach to determine optimal togg sale price in the European market. International Halich Congress On Multidisciplinary Scientific Research-Vii; Istanbul 2024: 739\u2013749.","journal-title":"International Halich Congress On Multidisciplinary Scientific Research-Vii; Istanbul"},{"key":"e_1_3_3_20_2","unstructured":"Team RC. R: A Language and Environment for Statistical Computing: R Foundation for Statistical Computing; 2023. https:\/\/www.R-project.org\/."},{"key":"e_1_3_3_21_2","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-020-70992-1"},{"key":"e_1_3_3_22_2","doi-asserted-by":"publisher","DOI":"10.1212\/WNL.0000000000006697"},{"key":"e_1_3_3_23_2","doi-asserted-by":"publisher","DOI":"10.1177\/03331024221120249"},{"key":"e_1_3_3_24_2","doi-asserted-by":"publisher","DOI":"10.1136\/emermed-2023-213461"},{"key":"e_1_3_3_25_2","doi-asserted-by":"publisher","DOI":"10.1177\/03331024231156925"},{"key":"e_1_3_3_26_2","article-title":"A machine learning approach to support triaging of primary versus secondary headache patients using complete blood count","volume":"18","author":"Yang F","year":"2023","unstructured":"Yang F, Meng T, Torben-Nielsen B, et al. A machine learning approach to support triaging of primary versus secondary headache patients using complete blood count. PLoS One 2023; 18: e0282237.","journal-title":"PLoS One"},{"key":"e_1_3_3_27_2","doi-asserted-by":"publisher","DOI":"10.1186\/s12911-020-01332-6"},{"key":"e_1_3_3_28_2","doi-asserted-by":"publisher","DOI":"10.1152\/physrev.00034.2015"},{"key":"e_1_3_3_29_2","doi-asserted-by":"publisher","DOI":"10.3389\/fneur.2024.1402569"},{"key":"e_1_3_3_30_2","article-title":"A clinical decision support system for the diagnosis of probable migraine and probable tension-type headache based on case-based reasoning","volume":"16","author":"Yin Z","unstructured":"Yin Z, Dong Z, Lu X, et al. A clinical decision support system for the diagnosis of probable migraine and probable tension-type headache based on case-based reasoning. J Headache Pain 2015 Apr; 16.","journal-title":"J Headache Pain"},{"key":"e_1_3_3_31_2","doi-asserted-by":"publisher","DOI":"10.3389\/fneur.2025.1555215"},{"key":"e_1_3_3_32_2","first-page":"1","article-title":"The international classification of headache disorders, 3rd edition","volume":"38","author":"Headache Classification Committee of the International Headache Society (IHS)","unstructured":"Headache Classification Committee of the International Headache Society (IHS). The international classification of headache disorders, 3rd edition. Cephalalgia 2018 Jan; 38: 1\u2013211.","journal-title":"Cephalalgia"},{"key":"e_1_3_3_33_2","first-page":"35","article-title":"Data-Driven classification of primary and secondary headaches using clinical variables","volume":"62","author":"Demirsoy \u0130","year":"2025","unstructured":"Demirsoy \u0130, Akg\u00f6r MC, \u00d6ks\u00fcz N, et al. Data-Driven classification of primary and secondary headaches using clinical variables. Noro-Psikyatri Arsivi 2025; 62: 35.","journal-title":"Noro-Psikyatri Arsivi"},{"key":"e_1_3_3_34_2","doi-asserted-by":"publisher","DOI":"10.1111\/j.1526-4610.2006.00578.x"},{"key":"e_1_3_3_35_2","article-title":"Individual differences in pain: understanding the mosaic that makes pain personal","volume":"158","author":"Fillingim RB","unstructured":"Fillingim RB. Individual differences in pain: understanding the mosaic that makes pain personal. Pain 2017 Apr; 158: S11\u2013SS8.","journal-title":"Pain"}],"container-title":["Cephalalgia"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/journals.sagepub.com\/doi\/pdf\/10.1177\/03331024261479693","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/journals.sagepub.com\/doi\/full-xml\/10.1177\/03331024261479693","content-type":"application\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/journals.sagepub.com\/doi\/pdf\/10.1177\/03331024261479693","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,28]],"date-time":"2026-08-28T16:16:46Z","timestamp":1787933806000},"score":1,"resource":{"primary":{"URL":"https:\/\/journals.sagepub.com\/doi\/10.1177\/03331024261479693"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8]]},"references-count":34,"journal-issue":{"issue":"8","published-print":{"date-parts":[[2026,8]]}},"alternative-id":["10.1177\/03331024261479693"],"URL":"https:\/\/doi.org\/10.1177\/03331024261479693","relation":{},"ISSN":["0333-1024","1468-2982"],"issn-type":[{"value":"0333-1024","type":"print"},{"value":"1468-2982","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,8]]},"article-number":"03331024261479693"}}