Abstract
Background
Migraine is a complex and disabling neurological disorder shaped by the interplay of biological, psychological, and behavioral factors. Current evidence lacks an integrated causal perspective spanning macro-level epidemiology, micro-level causal mechanisms, and clinical prediction.
Methods
We employed a multilevel analytical approach integrating genetic causal inference and neuroimaging. First, we used a two-step mediation framework to investigate causal pathways from biological markers to migraine via psychological intermediaries. Second, we examined the mediating role of brain imaging phenotypes in linking psychological factors to migraine risk. Finally, we developed a machine learning prediction model based on the identified biopsychosocial features.
Results
Genetic causal inference revealed that several biological factors influence migraine risk indirectly through psychological mediators, including neuroticism and depressive symptoms. Neuroimaging mediation analysis further identified that these psychological effects operate through structural alterations in key brain regions, including amygdala volume and the microstructural integrity of fronto-limbic white matter pathways. A random forest model incorporating the identified biopsychosocial features achieved exceptional predictive performance in classifying migraine status (Area under the receiver operating characteristic curve [AUROC] = 0.995), with psychological traits and body mass index among the most important predictors.
Conclusions
This study systematically elucidates the biopsychosocial mechanisms of migraine for the first time through a multi-dimensional chain of evidence, supporting a shift toward integrated biopsychosocial approaches in the clinical management of migraine.
Graphical Abstract
Supplementary Information
The online version contains supplementary material available at 10.1186/s10194-026-02313-2.
Keywords: Migraine, Neuroimaging, Body mass index, Machine learning
Introduction
Migraine remains a leading cause of disability worldwide, yet its clinical management continues to rely heavily on a biomedical model focused primarily on pharmacotherapy [1]. While medications are fundamental, a substantial proportion of patients derive incomplete benefit, revealing the limitations of a purely biological paradigm and necessitating a shift towards multimodal, integrated care strategies [2, 3]. This imperative has catalyzed the adoption of the biopsychosocial framework, which posits that migraine arises from dynamic interactions across biological, psychological, and social domains.
Substantial evidence supports associations between migraine and various biological traits (e.g., specific genetic and metabolic profiles), as well as a strong comorbidity with psychological conditions like anxiety and depression, suggesting potential shared mechanisms [4, 5]. Social determinants are also recognized as key modifiers of disease burden [6]. However, this evidence base is predominantly correlational. A critical and unresolved gap is the lack of clarity regarding the causal architecture linking these domains. In particular, it is not well understood whether psychological and social factors primarily act as mediators in the causal chain—for instance, translating biological liability into clinical migraine, or whether they function as independent risk factors or moderators that alter the effect of other risks [7]. Addressing this gap is essential, as it would clarify which of these factors are most strongly associated with headache-related disability and whether they act independently or synergistically to influence disease outcomes [8]. Elucidating these directional relationships is essential to move from associative models to a mechanistic understanding that can rationally guide targeted, biopsychosocial interventions.
To address this, we employed an integrative analytical approach. We primarily leveraged Mendelian randomization (MR), a method that uses genetic variants as instrumental variables (IVs) to strengthen causal inference, to examine the effects of biological and psychosocial factors on migraine. We combined this with neuroimaging to identify potential neural substrates. This multi-stage design allowed us to systematically map the interconnected pathways (i.e., the directional relationships) linking biological, psychological, and social domains in migraine. First, we investigated whether biological factors exert their effects on migraine indirectly through psychological mediators by using MR methods. Second, integrating neuroimaging, we examined whether these such psychological effects are mediated by alterations in specific brain circuits. Finally, leveraging machine learning (ML), we tested whether the identified biopsychosocial features could be synthesized into a clinically actionable tool for risk stratification. By integrating these complementary methodologies, we aim to delineate a coherent causal pathway from genetic predisposition to brain structure and ultimately to clinical manifestation, thereby providing a mechanistic and clinically relevant understanding of migraine within the biopsychosocial paradigm.
Materials and methods
Study design
We designed a multi-stage study to investigate the causal pathways within the biopsychosocial model of migraine. The specific process is shown in Fig. 1. First, we quantified quantify the direct and indirect effects of biological risk factors through psychosocial intermediaries using two-step MR mediation analysis. Second, we integrated BIDPs to elucidate the underlying neural mechanisms. Finally, we evaluated the predictive utility of these findings by constructing a ML model for migraine risk stratification. This integrative design employs complementary data sources and methods to address distinct but related research questions. It is important to note that the genetic of genome-wide association study (GWAS), brain imaging-derived phenotypes (BIDPs), and phenotypic of NHANES analyses were conducted using entirely independent, non-overlapping cohorts. This two-sample, summary-data approach does not require individual-level data linkage across sources and allows for the triangulation of evidence from separate large-scale resources. A summary of all data sources, including cohort sizes and available characteristics, is provided in Supplementary Table S1.
Fig. 1.
Overview of research data sources and design process. Abbreviations: BIDPs, Brain imaging-derived phenotypes; SHAP, SHapley additive exPlanations
This study was conducted in full accordance with the Mendelian Randomization Reporting Guidelines (STROBE-MR) [9]. The MR analysis was based on publicly available GWAS summary statistics and did not involve the use of individual-level data, ML analysis utilized de-identified data from publicly accessible questionnaire sources, which exempted the study from requiring additional ethical approval under applicable research regulations.
Two-step MR mediation analysis
Data source and instrument selection
We obtained GWAS summary statistics for all exposures and the outcome (migraine) from the IEU Open GWAS database (https://gwas.mrcieu.ac.uk/, on September 25, 2025). Among these, biological variables included body mass index (BMI), fasting blood glucose, hip circumference (HC), waist circumference (WC), and waist-hip ratio (WHR), intracranial volume (ICV), left and right hippocampus volume, leptin, nucleus accumbens volume, serum 25-hydroxyvitamin D levels, thalamus volume, brain-stem volume, cerebellum white matter volume, and total gray matter volume. These variables comprehensively cover key aspects of both the nervous and metabolic systems. Psychological factors include depressed affect, feeling guilty, feeling lonely, feeling miserable, feeling nervous, feeling worry, irritable mood, and neuroticism. The GWAS for these psychological constructs are derived from self-report questionnaires assessing emotional tendencies, which are known to capture stable, heritable traits such as neuroticism or trait anxiety [10, 11]. Social factors include average total household income before tax, family relationship satisfaction, friendships satisfaction, health satisfaction, illness injury bereavement stress in last 2 years: death of a close relative, illness injury bereavement stress in last 2 years: marital separation/divorce, illness injury bereavement stress in last 2 years: serious illness injury or assault to yourself, and leisure/social activities, years of schooling. More detailed dataset information involving 31 biological, psychological and social factors can be found in Supplementary Tables S2. The BIDP GWAS summary statistics were generated by the UK Biobank study using standard neuroimaging software, and phenotypes were adjusted for relevant covariates including age, sex, and imaging site variables prior to genetic association analysis [12]. The outcome dataset was a large-scale migraine GWAS from this database, comprising 463,010 individuals. Cases were defined by the ICD-10 code G43.9 (Migraine, unspecified), resulting in 1,001 cases and 462,009 controls.
In this study, eligible single nucleotide polymorphisms (SNPs) were included as IVs. The selection of IVs adhered to the core MR assumptions. First, the relevance assumption requires IVs to be strongly associated with the exposure [13]. Accordingly, we initially screened independent IVs for 31 biological, psychological, and social factors using a genome-wide significance threshold of P < 5 × 10− 08. For exposure datasets where this stringent threshold yielded fewer than 3 independent SNPs (suggesting limited statistical power), we applied a relaxed threshold of P < 1 × 10− 05 to obtain a sufficient number of IVs for robust MR analysis. This two-tiered approach balances instrument strength with the availability of genetic variants for a wider range of exposures [14]. Therefore, we performed rigorous clumping based on the 1000 Genomes European reference panel, using a stringent linkage disequilibrium threshold (r2 < 0.001, clumping distance = 10,000 kb). Additionally, the exclusion restriction assumption requires that IVs influence the outcome solely through the exposure, not via alternative pathways [15]. To address this, we identified reported risk factors for migraine through literature review and systematically removed IVs that were statistically associated with these potential confounders using PhenoScanner V2 (http://www.phenoscanner.medschl.cam.ac.uk/).
The strength of the selected IVs was assessed using the F-statistic, calculated as follows [16]:
![]() |
N is the sample size of the GWAS from which the IVs were sourced, and k is the number of IVs included. The proportion of variance explained (R2) for each SNP was calculated using the formula:
![]() |
where EAF is the effect allele frequency and β is the estimated genetic effect on the exposure. The calculated F-statistic for each IV was well above the empirical threshold of 10, indicating that the instruments were sufficiently strong and that the results are unlikely to be biased by weak IVs bias.
The MR analyses utilized publicly available GWAS summary statistics. These summary datasets have undergone standard quality control procedures by the respective consortia, including the imputation of missing genotypes and the removal of genetic variants with high rates of missing data. Therefore, our analysis operated on complete genetic association estimates for the selected instrumental variables.
Two-step MR mediation analysis
To investigate the potential mediating role of psychosocial factors in the biological pathway to migraine, we performed a two-step MR mediation analysis. This approach allowed us to decompose the total effect of each biological exposure on migraine into direct and indirect effects. First, we evaluated the causal association with the effect of genetically instrumented biological factors on migraine. Second, we estimated the effect of genetically instrumented biological factors on the potential psychosocial mediators. Third, we quantified the effect of these genetically instrumented psychosocial mediators on migraine risk, while conditioning on the genetic instruments for the biological exposure. The indirect (mediated) effect was calculated as the product of the coefficient from the second step (biological factors to mediators) and the coefficient from the third step (mediators to migraine). The proportion mediated was subsequently derived by dividing the indirect effect by the total effect of the biological factor on migraine. To elucidate the neural mechanisms through which psychosocial factors influence migraine risk, we performed a second-step MR mediation analysis. In this analysis, the significant psychosocial factors identified from the first-step MR served as exposures, migraine was the outcome, and BIDPs were the candidate mediators (Fig. 1).
To ensure robust causal inference in the mediation analysis, we applied the methodological framework of MR Analysis. The causal relationships were evaluated using a suite of MR methods, including inverse variance weighted (IVW), weighted median (WM), MR-egger, and weighted mode approaches. Among these, the IVW method was considered the primary analytical approach due to its superior statistical power under the assumption of balanced pleiotropy [17]. To complement this, the WM method was employed as it provides consistent causal estimates even when up to 50% of the genetic instruments are invalid, thereby enhancing the robustness of our findings against potential violations of the instrumental variable assumptions [18].
Sensitivity analyses and pleiotropy assessment
To ensure robust causal inference and address potential violations of MR assumptions, we performed comprehensive sensitivity analyses. Horizontal pleiotropy, which occurs when genetic instruments influence the outcome through pathways independent of the exposure, was assessed using the MR-Egger intercept test and the MR-Pleiotropy RESidual Sum and Outlier (MR-PRESSO) global test. A non-significant intercept (P > 0.05) and a non-significant global test (P > 0.05) were interpreted as evidence against detectable directional pleiotropy, thereby strengthening the validity of the inferred causal direction from exposure to outcome [19]. Heterogeneity among genetic variant estimates was evaluated using Cochran’s Q statistic [20]; significant heterogeneity (P < 0.05) suggests potential violation of the instrumental variable assumptions or the presence of pleiotropy.
Regarding multiple testing correction, we applied distinct strategies across analytical stages. For the initial discovery of causal exposures and mediators (Steps 1 & 2 in Fig. 1), we used a nominal significance threshold of P < 0.05, as these were hypothesis-driven tests focusing on pre-specified biopsychosocial factors. For the high-dimensional analysis exploring BIDPs as mediators in Step 3, we applied a False Discovery Rate (FDR) correction to account for the large number of correlated tests. The specific FDR-corrected significance threshold was P < 1.74 × 10− 04. All other sensitivity and post-hoc analyses were interpreted at the nominal P < 0.05 level.
Construction of ML prediction model for migraine
The predictive modeling component of this study utilized data from the National Health and Nutrition Examination Survey (NHANES, https://www.cdc.gov/nchs/nhanes/), a comprehensive, cross-sectional program conducted by the National Center for Health Statistics (NCHS) to assess the health and nutritional status of the non-institutionalized US population. This independent dataset was chosen for model development and validation to assess the generalizability of insights derived from the genetic causal analyses. By building the prediction model on features (e.g., BMI, psychological symptoms) that are phenotypic counterparts to the genetically-instrumented exposures in our MR analysis, we directly test the clinical utility of the biopsychosocial framework in a real-world setting, moving from genetic liability to actionable phenotypic predictors.
Migraine case status in the NHANES dataset was based on the self-reported response to the survey question: “During the past 12 months, have you had frequent or severe headaches/migraines?” Participants responding “Yes” were classified as migraine cases. For our analysis, we utilized data from the 1999–2004 survey cycles. The dataset was partitioned into a training set (70%) for model development and a testing set (30%) for independent performance evaluation. Prior to feature selection and model training, we addressed missing data in the NHANES dataset. For the candidate features derived from our causal framework and other key demographic variables, we applied a complete-case analysis for the model development. Specifically, participants with missing values for any of the variables considered in the final Boruta selection pool were excluded from the analytical sample, ensuring a consistent and complete dataset for model construction and evaluation. Prior to model construction, a feature selection procedure was implemented to address the challenges associated with high-dimensional data and to enhance model interpretability and generalizability. We employed the Boruta algorithm, a wrapper method built around a Random Forest classifier. This technique compares the importance of real features with that of randomly permuted shadow features through multiple iterations, thereby identifying a confirmed set of non-redundant predictors strongly associated with the outcome. To mitigate the potential issue of class imbalance in the training dataset, we applied the Synthetic Minority Over-sampling Technique (SMOTE). This method generates synthetic examples of the minority class to create a more balanced distribution, which can improve model performance [21].
We implemented eight distinct machine learning algorithms to construct and compare predictive models: Random Forest (RF), Support Vector Machine (SVM) with a radial basis function kernel, Generalized Linear Model (GLM), Gradient Boosting Machine (GBM), k-Nearest Neighbors (KNN), Neural Network (NNET), Least Absolute Shrinkage and Selection Operator (LASSO) regression, and a single Decision Tree (DT). Each model was subjected to a rigorous tuning process to optimize its hyperparameters. A grid search strategy was employed over predefined hyperparameter ranges to optimize each model. Key tuning parameters and their search ranges were listed in Supplementary Tables S3. The optimal combination was selected based on the highest mean the Area Under the Receiver Operating Characteristic Curve (AUROC) from 10-fold cross-validation on the training set. To ensure the reproducibility of our results, a fixed random seed (123) was set prior to all stochastic processes, including data partitioning, SMOTE resampling, and model training with cross-validation. The predictive accuracy of the final models was evaluated on the held-out test set. The primary metric for performance comparison was an AUROC, which measures the model’s ability to discriminate between classes. An AUROC value of 0.5 indicates predictions no better than chance, while a value of 1.0 represents perfect discrimination.
To elucidate the predictive mechanisms of our optimal ML model, we employed SHapley Additive exPlanations (SHAP), a unified framework derived from cooperative game theory that quantifies the marginal contribution of each feature to individual predictions. This provides a mathematically rigorous approach for interpreting complex models by assigning importance values to each feature while maintaining consistency and local accuracy across all predictions [22]. The global feature importance was visualized using SHAP summary plots, which display the distribution of Shapley values across the dataset, revealing both the magnitude and direction of each feature’s influence on model output. All analyses in this study were conducted in the R 4.3.1 environment, and the R packages used are listed in Supplementary Table 4.
Results
Causal associations with biological factors on migraine, and the mediating role of psycho-social factors
We first identified biological and psychosocial factors with putative causal effects on migraine (Step 1). After stringent quality control of IVs, 11 (BMI), 14 (fasting blood glucose), 52 (HC), 18 (ICV, 19 (left and right hippocampus volume), 2 (leptin), 7 (nucleus accumbens volume), 109 (serum 25-hydroxyvitamin D levels), 27 thalamus volume), 43 (brain-stem volume), 30 (cerebellum white matter volume), 25 (total gray matter volume), 2 (WC), 3 (WHR) related IVs were including MR analysis, with F-statistics ranged from 19.56 to 1475.14, exceeding the empirical threshold of 10 and indicating no weak instrument bias (Supplementary Table 5). The r2 of each exposure phenotype is shown in Fig. 2A. MR analysis revealed that 4 biological factors (BMI, HC, WC, and total gray matter volume) were significantly associated with migraine risk (Fig. 3A & Supplementary Tables 6–7). The negative direction of association suggests that higher values of these factors are linked to a lower risk of migraine in this genetic model.
Fig. 2.
The proportion of R2 for each phenotype. A. The proportion of R2 for each biological factors. B. The proportion of R2 for each psycho-social factors. Abbreviations: R2, Variance explained
Fig. 3.
Forest plots displaying ORs and 95% CIs from IVW-MR analyses. A. Multiple anthropometric and brain volume measures showed significant protective effects against migraine. B. Several negative psychological states and stressful life events were causally linked to increased migraine risk. C. Higher BMI, HC, and WC were associated with reduced feelings of nervousness, identifying it as a key mediator. *: P < 0.05; Blue: protective effects; Red: risk effects; Grey: non-significant. Abbreviations: MR, Mendelian randomization; OR, Odd ratio; CI, Confidence interval; BMI, Body mass index; HC, Hip circumference; WC, Waist circumference; IVW, Inverse-variance weighted
Applying the same criteria, we identified IVs for 16 psychosocial factors with putative causal effects on migraine (Step 2). Some IVs were included in subsequent analysis, including average total household income before tax (48 IVs), depressed affect (61 IVs), family relationship satisfaction (37 IVs), feeling guilty (13 IVs), feeling lonely (7 IVs), feeling miserable (35 IVs), feeling nervous (35 IVs), feeling worried (39 IVs), friendships satisfaction (48 IVs), health satisfaction (2 IVs), stress from marital separation/divorce in the last 2 years (43 IVs), stress from serious illness/injury/assault to oneself in the last 2 years (38 IVs), irritable mood (38 IVs), participation in other group social/leisure activities (4 IVs), neuroticism (10 IVs), and years of schooling (316 IVs). The F-statistics and r2 for these psycho-social IVs ranged from 11.514 to 240.249 (Supplementary Table 8 & Fig. 2B). MR analysis revealed that depressed affect, feeling guilty, feeling miserable, feeling nervous, feeling worried, and stress from the death of a close relative in the last 2 years were significantly positively associated with migraine (P < 0.05, OR > 1) (Fig. 3B & Supplementary Tables 9–10).
To elucidate the biopsychosocial pathways, we further investigated the causal relationships between the 4 significant biological factors (BMI, HC, WC, total gray matter volume) and the 6 significant psychosocial factors using MR mediation analysis. MR results demonstrated that BMI, HC, and WC were all significantly negatively associated with feeling nervous (Figs. 3C and 4A-C & Supplementary Tables 11–13). All results remained robust in sensitivity analyses, effectively ruling out concerns regarding horizontal pleiotropy. This finding suggests a potential mediating role of psychological state, indicating that higher BMI, HC, and WC may be associated with reduced migraine risk indirectly through decreasing feelings of nervousness. Having established feeling nervous as a key psychological mediator linking body composition to migraine, we next sought to identify the underlying neural substrate of this relationship.
Fig. 4.
Causal mediation pathways from body composition to migraine via psychological state. Two-step MR analyses reveal that the protective effects of (A) BMI, (B) HC, and (C) WC on migraine risk are partially mediated by reducing feelings of nervousness. Path coefficients (Beta) with SE are shown. The percentage indicates the proportion of the total effect mediated by the psychological factor. Abbreviations: MR, Mendelian randomization; BMI, Body mass index; HC, Hip circumference; WC, Waist circumference; SE, Standard errors
Causal associations with feeling nervous on migraine, and the mediating role of BIDPs
To investigate the neural mechanisms through which the key psychological mediator, feeling nervous, influences migraine risk, we performed a two-step MR mediation analysis with BIDPs. IVs for the BIDPs were selected based on previously established criteria, resulting in the inclusion of 249,498 valid IVs. The F-statistics for these instruments ranged from 19.355 to 29.502, indicating strong statistical power and minimal weak instrument bias (Supplementary Tables 14–15).
Our MR analysis identified 4 BIDPs that were significantly associated with migraine risk (FDR corrected P < 1.74 × 10− 04), which included increased fractional anisotropy in the left superior fronto-occipital fasciculus (SFOF, a white matter tract critically involved in connecting frontal executive control regions with limbic and occipital areas), alongside reduced cortical complexity, hippocampal subfield volume, and resting-state functional connectivity in other regions (Supplementary Tables 16–17). Subsequent MR analysis revealed that the psychological mediator feeling nervous exhibited a significant negative association specifically with the microstructure of the left SFOF (OR < 1, P = 0.047; Supplementary Table 17). This result confirms that the microstructural integrity of this fronto-limbic white matter tract serves as a partial neural mediator in the causal pathway from feeling nervous to migraine risk.
Construction of migraine prediction models based on biological, psycho-social and social patterns
The participant selection process for the machine learning prediction model is summarized in Fig. 1. From the initial 1999–2004 NHANES survey cycles, we excluded individuals with missing data on migraine status or the candidate predictor variables derived from our causal framework. The final analytical sample consisted of 8,938 participants, including 1,509 individuals with migraine and 7,429 controls. The demographic and clinical characteristics of the cohort are detailed in Supplementary Tables 18–19. Compared to controls, individuals with migraine were significantly younger and showed different distributions in race/ethnicity and psychological indicators. No significant differences were observed in gender or BMI between groups.
Finally, to translate the identified biopsychosocial pathways into a clinically actionable tool, we constructed and compared multiple ML prediction models based on features derived from our causal analyses. From the pool of factors implicated in our causal analyses, the Boruta algorithm selected 8 key predictive features: age, race, gender, feeling worried, feeling guilty, BMI, HC, and WC (Fig. 5A). After applying the predefined criteria for handling missing data, the final analytical sample for model development and validation comprised 8,938 participants from the NHANES cohort. Among multiple ML algorithms evaluated, the RF model demonstrated superior performance, achieving an AUROC of 0.995 on the independent test set for classifying migraine status (Fig. 5B). Model diagnostic checks confirmed excellent calibration and stability, as reflected by the residual distribution and precision-recall curves (Figs. 5C-D). This exceptional discriminative ability confirms the strong predictive value of integrating multidimensional biopsychosocial features. It is important to note that this high-performance model is exploratory and serves as a proof-of-concept, demonstrating the potential utility of the biopsychosocial framework for risk stratification. Its direct clinical application requires further validation and addressing of implementation challenges. SHAP analysis of the optimal RF model revealed the relative contribution of each feature (Figs. 6A-B). Age was the most important predictor, followed by the psychological traits feeling worried and feeling guilty, and the biological measure BMI. This pattern of feature importance aligns with and validates the central role of psychological and biological dimensions highlighted in our causal mediation analyses.
Fig. 5.
ML model development and evaluation for migraine prediction. A. Feature selection using the Boruta algorithm identified eight key predictors (Important, red). B. Comparative performance of eight ML algorithms on the test set, with RF achieving the highest AUROC (0.995). C. Distribution of model residuals. D. Precision-recall curves with error bounds, demonstrating RF’s superior and stable performance. Abbreviations: BMI: Body mass index; HC, Hip circumference; WC, Waist circumference; RF, Random Forest; GLM: Generalized linear model; KNN, K-nearest neighbor; SVM, Support vector machine; GBM, Gradient boosting machine; NNET, Neural network; DT, Decision tree; LASSO, Least absolute shrinkage and selection operator; SHAP, SHapley additive exPlanations; AUROC, Area under the receiver operating characteristic curve; ML, Machine learning
Fig. 6.
Interpretability of the optimal random forest model using SHAP. A. Global feature importance ranked by mean absolute SHAP value. Age is the strongest predictor, followed by anthropometric and psychological features. B. Beeswarm plot showing the distribution of each feature’s SHAP values. Each point represents a participant. Point color indicates the feature’s original value (low: blue, high: purple). The horizontal position shows the feature’s impact on the prediction (positive SHAP value increases predicted migraine risk, negative decreasesit). Abbreviations: BMI: Body mass index; HC, Hip circumference; WC, Waist circumference; SHAP, SHapley Additive exPlanations; ML, Machine learning
Discussion
This study provides actionable insights for moving migraine management beyond a purely pharmacological model. By delineating how body composition influences migraine risk through psychological states, and by identifying a specific neural pathway underlying this link, we offer an evidence-based blueprint for integrated interventions. Furthermore, the high-performance prediction model demonstrates the potential feasibility of implementing this biopsychosocial framework in clinical practice for stratification.
Our multi-level causal mediation analyses revealed that anthropometric measures, particularly BMI, WC, and HC, were associated with a lower risk of migraine, a relationship partially mediated by reduced feelings of nervousness. This finding challenges the conventional emphasis on the adverse effects of higher body weight and provides a more nuanced perspective. We hypothesize that genetically-influenced body composition may confer resilience by regulating neuroendocrine systems (e.g., HPA axis) and shaping brain circuits involved in emotional processing, thereby attenuating stress responses and reducing the propensity for nervous affect [23]. A critical consideration in interpreting this pathway is the nature of the mediator. The GWAS instruments for psychological constructs like feeling nervous are derived from large-scale questionnaires that primarily capture stable tendencies or traits (e.g., trait anxiety) rather than transient emotional states. Therefore, our identified mediation likely represents the influence of a genetically influenced predisposition towards nervousness on migraine risk, not a direct link from a single nervous episode to an attack. This distinction refines rather than invalidates our interpretation: it underscores the importance of enduring psychological vulnerability patterns, which are heritable and stable, as a mediator linking biology to disease [24]. This trait-based interpretation is coherently supported by our neuroimaging finding, which links this psychological predisposition to a stable structural feature of the brain—the microstructural integrity of the SFOF [25, 26]. By integrating genetic, neuroimaging, and causal inference methods, our study establishes that psychological traits actively mediate the effect of specific biological traits on migraine susceptibility. This causal insight underscores the importance of therapeutic strategies that address both physical characteristics and enduring emotional vulnerability patterns in migraine management. Future research combining real-time ecological momentary assessment of states with genetic and neuroimaging data will be crucial to further disentangle the roles of transient states versus enduring traits within this biopsychosocial framework.
At the neurological level, our mediation analysis revealed that the microstructural integrity of the SFOF partially mediated the effect of nervousness on migraine, providing a crucial neurobiological basis for the association between psychological factors and migraine. The SFOF is a key white matter pathway connecting frontal with limbic and occipital regions, playing a central role in cognitive control and emotional regulation [27]. Prior studies have established that the integrity of this tract is essential for emotional processing, with microstructural impairments significantly correlated with anxiety disorder severity and specifically linked to executive function deficits [28]. Our study is the first to identify this mechanism in the context of migraine, suggesting that a genetically predisposed nervous psychological state may influence migraine susceptibility by affecting white matter microstructure within fronto-limbic circuits. This integrated analysis, based on multi-omics data, not only offers a novel biological explanation for how psychological distress translates into risk for neurological disorder but also expands the scope of migraine neurobiological research from traditional grey matter regions and pain-processing networks to the white matter connections implicated in emotional regulation, thereby providing a more complete theoretical framework for understanding migraine pathogenesis [29]. From a clinical perspective, the identification of the SFOF as a mediator underscores that psychological interventions for migraine, such as cognitive-behavioral therapy or mindfulness-based stress reduction, may exert their therapeutic effects partly by stabilizing or modulating fronto-limbic circuitry. This supports the targeting of both psychological distress and its neural substrates in refractory cases.
Our MR analyses revealed that higher BMI, HC, and WC were associated with a reduced risk of migraine, a finding that appears counterintuitive given the well-established comorbidity between obesity and various pain conditions in observational epidemiology. Several non-mutually exclusive explanations warrant consideration. First, this may reflect a genuine, albeit complex, biological phenomenon. Adipose tissue is an active endocrine organ, and certain body composition profiles might confer resilience through mechanisms such as enhanced buffering of metabolic stress, modulation of inflammatory pathways, or stabilization of HPA axis function, thereby attenuating central sensitization and migraine susceptibility [7]. Second, methodological considerations inherent to the MR framework must be examined. While we employed rigorous sensitivity analyses to mitigate pleiotropy, residual horizontal pleiotropy cannot be entirely ruled out. The genetic variants for anthropometric traits might influence migraine risk through pathways unrelated to body fat per se, such as via effects on brain structure, physical activity, or other metabolic factors [30]. Furthermore, collider bias could theoretically arise if an unmeasured factor influences both the selection into the GWAS populations (e.g., general health status) and our exposures/outcome, though this is a challenge common to all MR studies based on large consortia. Third, the protective effect was specifically mediated through reduced feelings of nervousness. This suggests that the relationship is not about adiposity perse, but about specific biobehavioral phenotypes where certain body compositions are linked to a lower propensity for anxiety-related psychological distress, which in turn is a strong driver of migraine [31]. This aligns with our neuroimaging finding, pinpointing a specific brain pathway (SFOF) that links emotional regulation to migraine risk. Therefore, this finding should not be interpreted as a simple endorsement of higher body weight for migraine prevention. Instead, it underscores the complexity of the biology-psychology interface in migraine and highlights that the psychological response to and neural correlates of one’s physiological state may be more directly relevant to pathogenesis than the state itself. Future research using individual-level data with deep phenotyping, multivariable MR, and cross-ancestry replication is needed to disentangle these possibilities and clarify the true nature of this observed relationship.
The development of a high-performance RF prediction model demonstrates the clinical translatability of these causal insights. This model is based on a set of simple and understandable biopsychosocial characteristics (such as basic demographics, mental states and body measurements), and has high predictive value. The notably high discriminative accuracy should be interpreted in the context of the study design and dataset, and underscores the strong signal captured by the selected biopsychosocial features. Our findings indicate that a simple panel of biopsychosocial markers has the potential to identify individuals at high risk for migraine, thereby informing targeted, prioritized intervention strategies. External validation in independent cohorts is essential to assess generalizability. SHAP analysis confirmed that, besides age, psychological factors (feeling worried and guilty) and BMI were among the most important predictors. This not only validates the relevance of the constructs identified in our causal analyses but also provides a practical tool for risk stratification. However, translation into clinical practice would face several challenges, including the standardization of psychological construct assessment in busy clinical settings, integration of multimodal data into electronic health records, and the need for robust external validation in diverse and prospective clinical cohorts to ensure generalizability and clinical utility.
Our findings advocate for a refined clinical approach that integrates assessment of psychological traits and body composition into routine migraine evaluation. The identified pathway, which links anthropometry to migraine risk via psychological distress and fronto-limbic white matter integrity, supports targeting enduring emotional vulnerability, not just acute symptoms. Psychological interventions such as cognitive-behavioral therapy may be particularly indicated for patients where this pathway is prominent. Furthermore, the predictive utility of simple biopsychosocial markers suggests that risk stratification tools could prioritize patients for multimodal interventions, moving beyond a purely pharmacotherapeutic model towards personalized, mechanism-informed management.
Several limitations of this study warrant consideration, alongside potential avenues for future research. First, although MR design substantially reduces confounding, the potential for residual pleiotropy cannot be completely excluded. Future studies could apply more stringent pleiotropy-robust methods, such as MR-PRESSO, and perform comprehensive sensitivity analyses to evaluate the robustness of the causal estimates. Second, the predominantly European ancestry of the GWAS summary data is a key limitation, restricting the generalizability of our causal estimates and the portability of the genetic instruments to non-European populations. Consequently, the transferability of the identified biopsychosocial pathways and prediction model features to diverse clinical settings requires explicit testing. Future replication in multi-ancestry cohorts is essential. Third, while our prediction model demonstrated robust performance, its clinical applicability requires external validation in independent, prospective cohorts. The critical next step is the external validation and clinical deployment of our prediction model. Future work should test its performance in prospective, real-world clinical settings (e.g., headache clinics, primary care) and explore its utility in guiding personalized management plans that combine lifestyle, psychological, and pharmacological strategies. Fourth, our integrative pathway is constructed using a two-sample MR framework and independent datasets. The genetic, neuroimaging, and phenotypic predictions were performed in non-overlapping cohorts. While this design minimizes confounding and allows for the efficient use of large-scale public data, it does not establish the proposed biopsychosocial pathway within a single, longitudinally followed cohort. Future studies with deeply phenotype, multi-omics data from the same individuals are needed to confirm the integrated model at an individual level.
Conclusion
In conclusion, this study moves substantially beyond established correlations within the biopsychosocial model, providing robust causal evidence for the interconnected pathways leading to migraine. By integrating findings from global burden patterns, genetically based causal mediation, neuroimaging, and ML analysis, our results strongly advocate for a shift in migraine treatment paradigms—from a primarily pharmacotherapeutic approach toward integrated strategies that simultaneously address biological risk, psychological distress, and their underlying neural circuits. Future work should increasingly focus on modifiable psychological states psychological states and their associated neural pathways to enable more effective and personalized migraine prevention.
Supplementary Information
Below is the link to the electronic supplementary material.
Supplementary Material 1: Table S1 Overview of data sources and cohort characteristics. Table S2 Details in information regarding studies and datasets used in the present study. Table S3 Hyperparameter specifications and tuning details for ML models. Table S4 The R package used in the methodological part of the study. Table S5 SNPs associated with biomarker (Used as IVs of mendelian randomization). Table S6 Causal effects of biomarkers and migraine (Step 1). Table S7 Steiger direction validation of biomarkers for causal association with migraine. Table S8 SNPs associated with psychological and social factors (Used as IVs of mendelian randomization). Table S9 Causal effects with psychological and social factors on migraine (Step 2). Table S10 Steiger direction validation of biomarkers for causal association with migraine. Table S11 SNPs associated with significant biomarkers in the first two steps (Used as IVs of mendelian randomization). Table S12 Causal effects with significant biomarkers in the first two steps on migraine (Step 3). Table S13 Steiger direction validation of significant biomarkers in the first two steps for causal association with migraine. Table S14 Details on the brain imaging-derived phenotype dataset used in this study. Table S15 SNPs associated with brain imaging-derived phenotypes (Used as IVs of mendelian randomization). Table S16 Causal effects with brain imaging-derived phenotypes on migraine. Table S17 Causal effects with significant psychological and social factors on brain imaging-derived phenotypes. Table S18 The variable information included in the initial candidate feature pool of the ML model. Table S19 Baseline characteristics of the migraine prediction ML model.
Acknowledgements
This work was supported by University Natural Science Research Project of Anhui Province - Project Number: 2023AH053292.
Abbreviations
- BMI
Body Mass Index
- CI
Confidence Interval
- DALYs
Disability-Adjusted Life Years
- DT
Decision Tree
- EAF
Effect Allele Frequency
- FDR
False Discovery Rate
- GBD
Global Burden of Disease
- GBM
Gradient Boosting Machine
- GLM
Generalized Linear Model
- GWAS
Genome-Wide Association Study
- HC
Hip Circumference
- HPA
Hypothalamic-Pituitary-Adrenal
- ICD-10
International Classification of Diseases, 10th Revision
- ICV
Intracranial Volume
- IDPs
Imaging-Derived Phenotypes
- IVs
Instrumental Variables
- IVW
Inverse Variance Weighted
- KNN
k-Nearest Neighbors
- LASSO
Least Absolute Shrinkage and Selection Operator
- ML
Machine Learning
- MR
Mendelian Randomization
- NCHS
National Center for Health Statistics
- NHANES
National Health and Nutrition Examination Survey
- NNET
Neural Network
- OR
Odds Ratio
- RF
Random Forest
- ROC
Receiver Operating Characteristic
- SHAP
SHapley Additive exPlanations
- SFOF
Superior Fronto-occipital Fasciculus
- SMOTE
Synthetic Minority Over-sampling Technique
- SNPs
Single Nucleotide Polymorphisms
- SVM
Support Vector Machine
- WC
Waist Circumference
- WHR
Waist-Hip Ratio
- WM
Weighted Median
Author contributions
Y.L. and Z.M. supported the conception and design of this project, P.Z., Z.F., S.W., C.S., W.W. and F.L. acquired and analyzed the data, Y.L., Y.L., K.W. and L.Z. contributed to data quality control produced the first draft. All authors contributed intellectual content to the revised manuscript and have read and approved the final Manuscript.
Data availability
Data are available in a public, open access repository. We downloaded data from the IEU OPEN GWAS (https://gwas.mrcieu.ac.uk/), National Health and Nutrition Examination Survey (https://www.cdc.gov/nchs/nhanes/).
Code availability
The R code used for the analyses in this study is available from the corresponding author upon reasonable request.
Declarations
Ethical approval
No need for ethical approval as used of anonymous open data.
Consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
Wei Wang serves on the editorial boards of The Journal of Headache and Pain, Pain and Therapy, SN Comprehensive Clinical Medicine.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Yu-Chen Liu, Zi-Yue Ma and Ping-Ting Zhou contributed equally to this work and share the first authorship.
Contributor Information
Ye-Hai Liu, Email: liuyehai@ahmu.edu.cn.
Kai-Le Wu, Email: wukaile@ahmu.edu.cn.
Liang Zhang, Email: zhangliang@ahmu.edu.cn.
References
- 1.Ashina M, Katsarava Z, Do TP et al (2021) Migraine: epidemiology and systems of care. Lancet 397:1485–1495. 10.1016/S0140-6736(20)32160-7 [DOI] [PubMed] [Google Scholar]
- 2.Orr SL, Kabbouche MA, O’Brien HL et al (2018) Paediatric migraine: evidence-based management and future directions. Nat Rev Neurol 14:515–527. 10.1038/s41582-018-0042-7 [DOI] [PubMed] [Google Scholar]
- 3.Hou T-W, Tzeng Y-S, Chen S-P et al (2026) Fatigue in migraine patients and its clinical correlates: a large-scale hospital-based study. J Headache Pain. 10.1186/s10194-026-02270-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Zhang N, Robbins MS (2023) Migraine. Ann Intern Med 176:ITC1–ITC16. 10.7326/AITC202301170 [DOI] [PubMed] [Google Scholar]
- 5.Tarantino S, De Ranieri C, Dionisi C et al (2015) Migraine equivalents and related symptoms, psychological profile and headache features: which relationship? J Headache Pain 16:536. 10.1186/s10194-015-0536-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Hammond NG, Stinchcombe A (2019) Health Behaviors and Social Determinants of Migraine in a Canadian Population-Based Sample of Adults Aged 45–85 Years: Findings From the CLSA. Headache 59:1547–1564. 10.1111/head.13610 [DOI] [PubMed] [Google Scholar]
- 7.Liu Y-C, Liu Y-H, Pan H-F, Wang W (2025) Unveiling new insights into migraine risk stratification using machine learning models of adjustable risk factors. J Headache Pain 26:103. 10.1186/s10194-025-02049-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Raggi A, Castaldo M, Chiang C-C et al (2025) Risk factors associated to disability in primary headaches: a systematic review to inform future iterations of the Global Burden of Disease Study. J Headache Pain 27:9. 10.1186/s10194-025-02233-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Skrivankova VW, Richmond RC, Woolf BAR et al (2021) Strengthening the Reporting of Observational Studies in Epidemiology Using Mendelian Randomization: The STROBE-MR Statement. JAMA 326:1614–1621. 10.1001/jama.2021.18236 [DOI] [PubMed] [Google Scholar]
- 10.Bellenguez C, Küçükali F, Jansen IE et al (2022) New insights into the genetic etiology of Alzheimer’s disease and related dementias. Nat Genet 54:412–436. 10.1038/s41588-022-01024-z [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Trubetskoy V, Pardiñas AF, Qi T et al (2022) Mapping genomic loci implicates genes and synaptic biology in schizophrenia. Nature 604:502–508. 10.1038/s41586-022-04434-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Elliott LT, Sharp K, Alfaro-Almagro F et al (2018) Genome-wide association studies of brain imaging phenotypes in UK Biobank. Nature 562:210–216. 10.1038/s41586-018-0571-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Sekula P, Del Greco MF, Pattaro C, Köttgen A (2016) Mendelian Randomization as an Approach to Assess Causality Using Observational Data. J Am Soc Nephrol 27:3253–3265. 10.1681/ASN.2016010098 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Carter AR, Anderson EL (2024) Correct illustration of assumptions in Mendelian randomization. Int J Epidemiol 53:dyae050. 10.1093/ije/dyae050 [DOI] [PubMed] [Google Scholar]
- 15.Millard LAC, Davey Smith G, Tilling K (2024) Using the global randomization test as a Mendelian randomization falsification test for the exclusion restriction assumption. Eur J Epidemiol 39:843–855. 10.1007/s10654-024-01097-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Burgess S, Thompson SG, CRP CHD Genetics Collaboration (2011) Avoiding bias from weak instruments in Mendelian randomization studies. Int J Epidemiol 40:755–764. 10.1093/ije/dyr036 [DOI] [PubMed] [Google Scholar]
- 17.Hu X, Cai M, Xiao J et al (2024) Benchmarking Mendelian randomization methods for causal inference using genome-wide association study summary statistics. Am J Hum Genet 111:1717–1735. 10.1016/j.ajhg.2024.06.016 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Bowden J, Davey Smith G, Haycock PC, Burgess S (2016) Consistent Estimation in Mendelian Randomization with Some Invalid Instruments Using a Weighted Median Estimator. Genet Epidemiol 40:304–314. 10.1002/gepi.21965 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Su Y, Xu S, Ma Y et al (2024) A Modified Debiased Inverse-Variance Weighted Estimator in Two-Sample Summary-Data Mendelian Randomization. Stat Med 43:5484–5496. 10.1002/sim.10245 [DOI] [PubMed] [Google Scholar]
- 20.Kulinskaya E, Dollinger MB (2015) An accurate test for homogeneity of odds ratios based on Cochran’s Q-statistic. BMC Med Res Methodol 15:49. 10.1186/s12874-015-0034-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Bunkhumpornpat C, Boonchieng E, Chouvatut V, Lipsky D (2024) FLEX-SMOTE: Synthetic over-sampling technique that flexibly adjusts to different minority class distributions. Patterns (N Y) 5:101073. 10.1016/j.patter.2024.101073 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Nohara Y, Matsumoto K, Soejima H, Nakashima N (2022) Explanation of machine learning models using shapley additive explanation and application for real data in hospital. Comput Methods Programs Biomed 214:106584. 10.1016/j.cmpb.2021.106584 [DOI] [PubMed] [Google Scholar]
- 23.Fiksdal A, Hanlin L, Kuras Y et al (2019) Associations between symptoms of depression and anxiety and cortisol responses to and recovery from acute stress. Psychoneuroendocrinology 102:44–52. 10.1016/j.psyneuen.2018.11.035 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Chen W, Zhao H, Xiong X et al (2025) Cortical morphological alterations in vestibular migraine: insights from surface-based morphometry and machine learning. J Headache Pain 27:4. 10.1186/s10194-025-02232-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Binnewies J, Nawijn L, van Tol M-J et al (2021) Associations between depression, lifestyle and brain structure: A longitudinal MRI study. NeuroImage 231:117834. 10.1016/j.neuroimage.2021.117834 [DOI] [PubMed] [Google Scholar]
- 26.Jacobson A, Green E, Haase L et al (2019) Differential Effects of BMI on Brain Response to Odor in Olfactory, Reward and Memory Regions: Evidence from fMRI. Nutrients 11:926. 10.3390/nu11040926 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Giampiccolo D, Herbet G, Duffau H (2025) The inferior fronto-occipital fasciculus: bridging phylogeny, ontogeny and functional anatomy. Brain 148:1507–1525. 10.1093/brain/awaf055 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Mei Y, Wang W, Qiu D et al (2023) Micro-structural white matter abnormalities in new daily persistent headache: a DTI study using TBSS analysis. J Headache Pain 24:80. 10.1186/s10194-023-01620-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Sever-Bahcekapili M, Cakir-Aktas C, Güler Ü et al (2025) Neuron-derived extracellular vesicles reflect adaptive neuronal responses to cortical spreading depolarization: a biomarker study for migraine. J Headache Pain 26:270. 10.1186/s10194-025-02213-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Zhuang C, Mao J, Ye H et al (2024) Association between severe headache or migraine and lipid accumulation product and visceral adiposity index in adults: a cross-sectional study from NHANES. Lipids Health Dis 23:307. 10.1186/s12944-024-02303-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Peres MFP, Mercante JPP, Tobo PR et al (2017) Anxiety and depression symptoms and migraine: a symptom-based approach research. J Headache Pain 18:37. 10.1186/s10194-017-0742 [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Supplementary Material 1: Table S1 Overview of data sources and cohort characteristics. Table S2 Details in information regarding studies and datasets used in the present study. Table S3 Hyperparameter specifications and tuning details for ML models. Table S4 The R package used in the methodological part of the study. Table S5 SNPs associated with biomarker (Used as IVs of mendelian randomization). Table S6 Causal effects of biomarkers and migraine (Step 1). Table S7 Steiger direction validation of biomarkers for causal association with migraine. Table S8 SNPs associated with psychological and social factors (Used as IVs of mendelian randomization). Table S9 Causal effects with psychological and social factors on migraine (Step 2). Table S10 Steiger direction validation of biomarkers for causal association with migraine. Table S11 SNPs associated with significant biomarkers in the first two steps (Used as IVs of mendelian randomization). Table S12 Causal effects with significant biomarkers in the first two steps on migraine (Step 3). Table S13 Steiger direction validation of significant biomarkers in the first two steps for causal association with migraine. Table S14 Details on the brain imaging-derived phenotype dataset used in this study. Table S15 SNPs associated with brain imaging-derived phenotypes (Used as IVs of mendelian randomization). Table S16 Causal effects with brain imaging-derived phenotypes on migraine. Table S17 Causal effects with significant psychological and social factors on brain imaging-derived phenotypes. Table S18 The variable information included in the initial candidate feature pool of the ML model. Table S19 Baseline characteristics of the migraine prediction ML model.
Data Availability Statement
Data are available in a public, open access repository. We downloaded data from the IEU OPEN GWAS (https://gwas.mrcieu.ac.uk/), National Health and Nutrition Examination Survey (https://www.cdc.gov/nchs/nhanes/).
The R code used for the analyses in this study is available from the corresponding author upon reasonable request.









