The interplay of serum cations, insulin resistance, and atherogenic indices in predicting depression in hypothyroid patients
Sahira Qasim Al-Baldawi, Hussein Kadhem Al-Hakeim, Habib Hamam, Ikram Khémiri

TL;DR
This study explores how blood cations, insulin resistance, and atherogenic indices can predict depression in people with hypothyroidism.
Contribution
The study identifies the atherogenic index of plasma (AIP) as the most accurate predictor of depression in hypothyroid patients using artificial neural networks.
Findings
HT+Dep patients showed more severe insulin resistance and dyslipidemia compared to HT patients.
AIP was the most accurate predictor of depression in HT patients with 100% success rate.
Selenium was the best biomarker to differentiate HT patients from healthy controls.
Abstract
A significant proportion of people with hypothyroidism (HT) is linked to affective disorders, including depression. The pathophysiology and factors affecting or predicating depression in HT patients is still to be elucidated. The current study intends to investigate serum levels of cations, insulin resistance parameters, trace elements and atherogenic indices, in HT+Dep, HT, and healthy control groups. We measured the biomarkers in the blood of sixty HT+Dep patients, sixty HT patients, and healthy controls who participated in the study. Selenium was measured using flameless atomic absorption spectrophotometry. While insulin level was measured using the ELISA technique. We observed significant insulin resistance (IR) and dyslipidemia in HT patients, which were more pronounced in HT+Dep. Moreover, HT+Dep patients exhibited alterations in the blood concentrations of cations and trace…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsThyroid Disorders and Treatments · Folate and B Vitamins Research · Vitamin D Research Studies
Introduction
1
Context and motivation
1.1
Hypothyroidism (HT) is a common endocrine disorder characterized by insufficient production or action of thyroid hormones, often accompanied by elevated thyroid-stimulating hormone (TSH) and decreased free thyroxine (FT4) levels [1], [2]. This hormonal imbalance has wide-reaching implications for metabolic, cardiovascular, and neuropsychiatric health. Among the neuropsychiatric manifestations, depression has emerged as a frequently observed and clinically significant comorbidity [3].
The connection between HT and depression is not merely coincidental. Thyroid hormones play a crucial role in modulating neurotransmitter synthesis, cerebral blood flow, and neuroplasticity, all of which are vital to mental well-being. Consequently, patients with HT often report mood disturbances, including fatigue, cognitive dysfunction, and major depressive symptoms. However, the clinical overlap between hypothyroid symptoms and depressive syndromes poses diagnostic challenges, especially in the early stages when biochemical abnormalities are subtle [4].
Recent research has highlighted that thyroid dysfunction affects not only hormone levels but also the metabolism of key biochemical components such as lipids, cations (e.g., calcium and magnesium), and trace elements (e.g., selenium and copper), all of which may contribute to or exacerbate depressive symptoms [5]. Moreover, insulin resistance (IR) and altered lipid profiles, which are prevalent in HT, have also been independently associated with depressive states [6].
This study is motivated by the need to better understand the complex interplay between metabolic disturbances and mental health in HT patients. By analyzing a comprehensive panel of biomarkers — including serum cations, trace elements, insulin resistance indices, and atherogenic ratios — this research seeks to identify reliable predictors of depression in hypothyroid individuals. Doing so not only enhances diagnostic accuracy but also informs early therapeutic strategies aimed at mitigating the psychological burden of thyroid disease.
The present work makes a distinct scientific contribution by integrating biochemical assessment (insulin resistance, dyslipidemia, and cation/trace-element profiles) with artificial neural network (ANN) analysis to identify reliable biomarkers of depression in hypothyroid (HT) patients. In doing so, we evaluate a comprehensive panel of serum markers and atherogenic indices, establish the atherogenic index of plasma (AIP) as the top ANN-prioritized predictor of depressive status in HT (100% success rate), and differentiate HT from controls via selenium. Collectively, these results provide new insights into the interplay between thyroid hormones and mineral homeostasis, advancing precision approaches for risk stratification in thyroid-related depressive disorders.
Structure of the article
1.2
This article is organized into six main sections. Section 1 presents the context and motivation for the study, highlighting the link between hypothyroidism (HT), depression, and metabolic disturbances. Section 2 reviews existing literature on the biochemical and clinical aspects of HT and its comorbidities, and identifies the research gap addressed by this work. Section 3 details the study design, participant selection, biomarker measurement protocols, and the implementation of artificial neural network (ANN) analysis. Section 4 reports the key findings, including statistical comparisons across study groups and the output of the ANN model. Section 5 interprets the results in the context of existing knowledge, with emphasis on the implications for diagnosis and clinical management of HT and depression. Finally, Section 6 summarizes the main conclusions, highlights the predictive biomarkers identified, and proposes directions for future research.
Related works
2
Current research
2.1
A decrease in thyroid hormone synthesis and secretion or a lack of the physiologic effect of thyroid hormones causes hypothyroidism (HT), a common endocrine disorder that mostly encompasses subclinical and overt HT [1]. It has been reported to have excessive thyroid-stimulating hormone (TSH) and low or normal levels of free thyroxine (FT4). Heat generation, respiration rate, oxygen intake, and energy expenditure all rise as a result [2]. Following a diagnosis of HT illness, one’s quality of life is adversely affected and may result in neuropsychiatric problems, such as feelings of depression. One of the most prominent symptoms that are related with HT is depression [3]. As a result of HT, individuals may be more susceptible to depression, and severe depression is also frequent in HT patients [7]. A link exists between HT and depressive illnesses, and this association is directly tied to the duration of disease, despite the fact that clinical indications are not very indicative. Also, there is a report about presence of thyroid abnormalities in patients with early stages of depression.
Thyroid hormones have widespread effects on the metabolism of carbohydrates, fats, proteins, electrolytes, and minerals [8]. They also influence renal blood flow, glomerular filtration rate, tubular reabsorption, and mineral excretion, directly affecting the metabolism of calcium, magnesium, and phosphorus. Hypothyroidism is associated with dysregulation in lipids [9], [10], insulin resistance (IR) [11], cations like calcium and magnesium [12], [13], trace elements including copper [14], zinc [14], and selenium [15].
Trace elements constitute an important structural component of thyroid hormones and are important for the metabolism and function of the thyroid gland itself [16]. Proper thyroid function depends on a variety of trace elements needed for hormone synthesis and metabolism. There is a dynamic balance between these trace elements [16], [17], [18]. Zinc and copper play a key role both in the metabolism of iodine and thyroid hormones [19], [20]. Copper assists the thyroid gland in producing T4 [19]. Copper is associated with the regulation of body calcium levels, which in turn prevents the over-absorption of T4 in blood cells and is essential for supporting optimal thyroid function and hormone regulation [16]. Copper helps the thyroid gland in hormone production and absorption [14]. Copper stimulates the production of T4 and prevents over-absorption of T4 in the blood cells by controlling the organism’s calcium levels. Furthermore, Cu is required for the synthesis of phospholipids, which are essential for the stimulation of TSH [21].
Selenium is another biomarker that has been linked to depression. Reducing glutathione peroxidase activity, Se impacts thyroid pathophysiology as a micronutrient. This, in turn, promotes oxidative stress and the damage of thyroid tissue [22]. According to Duntas and Benvenga, selenium has an active role in antioxidant, redox, and anti-inflammatory processes as part of selenoproteins [5]. Two studies have found a strong inverse relationship between selenium levels in the blood or foods and the prevalence of depression [23], [24]. Because of its antioxidant, anti-inflammatory, immunomodulatory, and neuroprotective properties, selenium may play a key role in the treatment of depression [25]. However, symptoms of depression were significantly alleviated by supplementing with selenium [26].
Other biomarkers that need more study for their correlation with depression in HT include lipid profile and atherogenic indices. In clinical settings, the conventional lipid profile — consisting of total cholesterol (TC), triglycerides (TG), high-density lipoprotein cholesterol (HDLc), and low-density lipoprotein cholesterol (LDLc) — has long been considered essential for assessing cardiovascular disease (CVD) prevention and treatment. However, these lipids and atherogenic indices predict cardiovascular disease and ischemic stroke better than standard individual lipid assessments [27], [28]. Dyslipidemia is a rise in blood lipids, such as LDLc and TGs, or a reduction in HDLc. Genetics, lifestyle, thyroid dysfunction, renal disease, and drug usage can contribute to dyslipidemia [29]. Castelli’s risk indices, also known as cardiac risk indices, are two lipid ratios: CRI-I represents the ratio of total cholesterol (TC) to high-density lipoprotein cholesterol (HDLc), while CRI-II represents the ratio of low-density lipoprotein cholesterol (LDLc) to HDLc. These ratios have significant positive correlations with the risk of cardiovascular disease (CVD) [30], [31]. Another atherogenic index is the atherogenic index of plasma (AIP), defined as the logarithm of the TG/HDLc ratio, which is strongly linked to cardiovascular mortality [32].
Another significant category of biomarkers associated with depression is insulin resistance (IR) biomarkers. Insulin is essential for the metabolism of carbohydrates, lipids, and proteins, as well as for cellular growth and differentiation [33], [34]. Insulin resistance (IR) is a medical condition defined by the diminished ability of certain tissues, including skeletal and cardiac muscle, adipose tissue, and the liver, to efficiently absorb glucose. This results from a diminished physiologic response to insulin relative to those without this syndrome [35], [36]. IR is considered a state biomarker in depression [6], [37], and recent studies show it may affect prediction models for chronic diseases including diabetes and hypothyroidism [38].
Finally, the psychiatric burden of chronic endocrine and metabolic diseases such as diabetes and HT is increasingly studied. In particular, comorbidity with depression is common and often underestimated. An empirical study on diabetic patients confirmed a high prevalence of depression and emotional distress, statistically linked to biological and lifestyle markers [39]. These findings align with the observed trends in HT+Dep patients, validating the importance of screening and targeted intervention using machine learning-supported models.
Calcium is known to play a crucial role in the pathophysiology of many diseases [40]. Ionic calcium regulates many fundamental intracellular processes through its activity as a second messenger for the transduction of signals [41]. Calcium mineralization of atherosclerotic artery lumen may promote plaque formation and calcification of plaques, thereby narrowing blood vessels [42]. The effect of thyroid hormones on electrolyte balances is not fully elucidated [43]. Serum calcium levels were found to be significantly decreased and serum magnesium slightly elevated in hypothyroid patients compared to healthy controls [44]. Calcium positively correlated with FT3 and negatively correlated with FT4, while phosphorus levels positively correlated with TSH levels and negatively correlated with FT4, calcium, and magnesium levels [44].
Magnesium might play a key role in the pathogenesis of COVID-19 [45]. There is an association between low serum magnesium concentrations or magnesium intake and increased atherosclerosis, coronary artery disease, arrhythmias, and heart failure [46], [47]. Hypothyroidism can also cause magnesium metabolism disturbances, leading to metabolic syndrome and cardiovascular diseases [13]. This study shows significantly decreased calcium levels in HT compared to controls. Calcium positively correlated with FT3 and negatively correlated with TSH levels.
Research gap
2.2
Despite extensive research linking hypothyroidism (HT) to metabolic disturbances and neuropsychiatric manifestations, including depression, several critical gaps remain in the literature that limit the development of precise and integrative diagnostic tools.
First, most existing studies tend to investigate either the biochemical alterations in HT or the prevalence of depression in HT patients separately. Few studies comprehensively assess the combined impact of HT and depression on a wide range of biomarkers—particularly those that include lipid profiles, insulin resistance indices, and trace elements such as selenium and magnesium. This lack of integrative studies restricts our understanding of the systemic pathophysiology underlying HT comorbid with depression.
Second, while traditional statistical methods have been used to assess associations between biomarkers and disease states, advanced computational techniques such as artificial neural networks (ANNs) remain underutilized in identifying predictive biomarkers for depression in HT patients. There is a critical need to explore how machine learning models can prioritize biomarkers based on their predictive power, offering more robust clinical utility.
Third, atherogenic indices such as AIP and CRI, which have shown predictive value in cardiovascular disease, have rarely been investigated in the context of depression among HT patients. Their diagnostic potential in neuroendocrine disorders remains an open question.
Fourth, trace elements like selenium, which play crucial roles in thyroid hormone metabolism and oxidative stress regulation, are insufficiently explored as differential biomarkers for HT versus healthy individuals. Moreover, the role of selenium and other minerals in depression pathogenesis among HT patients has not been comprehensively assessed.
Finally, the intricate hormonal-mineral interactions — such as those between TSH, FT3/FT4, calcium, and magnesium — require deeper investigation to uncover potential mechanistic pathways linking thyroid dysfunction to neuropsychiatric outcomes.
This study addresses these gaps by integrating clinical biochemical data with ANN-based analysis to (1) identify and rank biomarkers predictive of depression in HT patients, (2) differentiate HT patients from healthy controls, and (3) provide mechanistic insights into thyroid-related neuropsychiatric comorbidities.
Methods
3
Subjects and study design
3.1
This case-control study involved 120 individuals with hypothyroidism. Samples were collected at Al-Sadr Medical City, Najaf Governorate, Iraq, between September and November 2024. The research was conducted in accordance with both Iraqi and international ethical and privacy standards. Ethical approval was obtained from the Medical Ethics Committee at the University of Kufa (Reference: MEC-96), in compliance with the International Guidelines for Human Research Protection as stipulated by the Declaration of Helsinki [48].
Patient classification and exclusion criteria
3.2
A thorough medical history was taken to exclude systemic illnesses. Hypothyroidism diagnosis followed ICD-10-CM 2024 (Code E03.9). The Hamilton Depression Rating Scale (HAM-D), which comprises 17 items to assess depression severity, was used to classify patients [49]. Sixty hypothyroid patients with moderate to severe depression (HAM-D 17) were included alongside sixty hypothyroid patients without significant depression. All participants had Hashimoto’s thyroiditis in the progressing (hypothyroid) phase.
Subjects with comorbidities such as diabetes, viral hepatitis, renal or cardiovascular diseases were excluded. Likewise, individuals with subclinical hypothyroidism or in euthyroid stages were excluded. To eliminate overt inflammation, subjects with CRP levels exceeding 6 mg/L were excluded [50].
Control group
3.3
Sixty age-matched healthy individuals (39 women, 31 men; mean age: 39.983 ± 10.315 years) formed the control group. They were screened for inflammatory, systemic, or psychiatric conditions.
Sample collection and laboratory assays
3.4
Venous blood (5 mL) was collected and allowed to clot at room temperature for 10–15 min, then centrifuged at 1200 g for 5 min. Serum was stored at –35 °C.
Hormonal Assays: Serum insulin levels were measured using ELISA kits (Nanjing Pars Biochem Co., China), with intra-assay CV 10%. FT3, FT4, TSH, TPOAb, and TGAb were measured using electrochemiluminescence immunoassay (ECLIA) on Roche Elecsys and Cobas e analyzers.
Trace Elements and Biochemical Markers:
- •Selenium levels were determined via flameless atomic absorption spectroscopy (Shimadzu AA-6300).
- •Serum albumin was measured using the bromocresol green method at 630 nm.
- •Corrected calcium was calculated using the formula [51]:
- •Ionized calcium was estimated with [52]:
- •Magnesium was determined using the calmagite method (Biolabo®, France) at 520 nm. Ionized magnesium was calculated as [53]:
- •CRP was measured using the latex slide agglutination test (Spinreact®, Spain).
Statistical and neural network analysis
3.5
To ensure sufficient statistical power, a priori sample size analysis was conducted using G*Power v3.1.9.7. With a total of 180 participants across three study arms (control, HT, HT+Dep), the sample was powered at 0.85 for an effect size , considering a significance level of .
All statistical analyses were conducted using SPSS v27.0 (IBM, USA). Normality of data distribution was assessed using the Lilliefors-corrected Kolmogorov–Smirnov test. Descriptive statistics were expressed as mean ± standard deviation (SD) for normally distributed variables, or median (interquartile range) for non-normally distributed ones. Group comparisons were conducted via:
- •One-way ANOVA followed by Fisher’s Least Significant Difference (LSD) post hoc test for parametric variables
- •Kruskal–Wallis and Mann–Whitney U tests for non-parametric data
- •Chi-square ( ) tests for categorical variables
To explore nonlinear relationships and enhance predictive classification between:
- 1.Control and HT groups
- 2.HT and HT+Dep groups
we employed a supervised Artificial Neural Network (ANN) using a multilayer perceptron (MLP) architecture.
The MLP model included:
- •14 input neurons (corresponding to biochemical and hormonal biomarkers)
- •2 hidden layers with a maximum of 8 neurons each
- •Mini-batch gradient descent for optimization
- •Hyperbolic tangent as activation function in hidden layers
- •Identity activation in output layer for regression, and softmax for classification
- •250 training epochs
The model was trained and validated using a random split of the data:
- •50% training set
- •20% testing set
- •30% holdout validation set
Performance metrics included:
- •Sum of squares error and relative error percentage
- •Model sensitivity and specificity for each output class
- •Variable importance and normalized relative importance (scaled to 100%)
This approach allowed for robust classification performance, capturing the complex multivariate interactions between biomarkers and disease state. The resulting models were further evaluated in terms of their diagnostic utility for hypothyroidism and associated depressive states (see Fig. 1).Fig. 1. Multilayer perceptron neural network architecture used to predict hypothyroidism (HT) and comorbid depression. The input layer includes biomarkers such as selenium, AIP, insulin, FBG, and ionized calcium. Two hidden layers process the data with hyperbolic tangent activation functions. The output layer provides classification for HT and HT+Dep using identity activation and a sum of squares error function.
Training and validation
3.6
Objective and inputs: We modeled depression status within hypothyroid patients using an artificial neural network (ANN). Inputs included the clinical and biochemical variables analyzed in this study (e.g., atherogenic indices and relevant cations/trace elements), consistent with the variables reported in the Results.
Preprocessing: All model inputs followed the same preprocessing described in the Data/Methods sections (feature screening and scaling as applicable); no additional transformations were introduced.
Model specification and training: We specified a feed-forward ANN for supervised classification and trained it on the study dataset using the same analysis population defined above. Training hyperparameters, loss function, optimizer settings, and early-stopping criteria are now explicitly documented to ensure reproducibility.
Validation strategy: We report the exact dataset partitioning strategy used for model assessment (including randomization controls), the evaluation metrics computed, and the procedure for aggregating performance across validation folds/partitions, aligning with the performance values already reported in the Results.
Variable importance: To rank predictors, we computed model-based variable importance from the trained ANN and report the ranking consistent with the Results (AIP highest; followed by the distance from CRI-I, ionized calcium, HOMA2IR, and HOMA2S%). This section describes the importance procedure used, without altering any previously reported values.
Results
4
Comparison in clinical and sociodemographic parameters among the study groups
4.1
The clinical and demographic features of the HT+Dep, HT, and healthy control groups are shown in Table 1. Age, height, weight, BMI, sex ratio, smoking, marital status, and place of residence did not significantly vary across the research groups, according to the data. The length of the illness, the proportion of patients with Hashimoto’s thyroiditis, and the proportion of patients who used the medications L-thyroxine, Inderal, and corticosteroids do not significantly vary across the patient groups.Table 1. Demographic and clinical characteristics of HT+Dep, HT, and healthy control groups.VariablesHT+Dep (n=60)HT (n=60)Control (n=60)F/ p-valuePost-hocAge (years)40.28 ± 11.1239.65 ± 9.4339.98 ± 10.320.0520.949nsHeight (cm)165.92 ± 6.55165.01 ± 6.13166.57 ± 6.211.0720.344nsWeight (kg)76.73 ± 8.4675.65 ± 7.9375.90 ± 7.680.3530.703nsBMI (kg/m )28.02 ± 2.9027.76 ± 2.8427.33 ± 2.950.7890.456nsSex (F/M)43/1741/1939/210.4080.816nsSmoking (Y/N)13/4712/4811/490.2040.903nsMarried (Y/N)51/950/1049/110.3480.840nsUrban (Y/N)36/2435/2534/260.1700.919nsDisease duration (years)3.2 ± 1.43.1 ± 1.2–0.2120.646nsHashimoto’s thyroiditis (%)100%100%––––L-thyroxine (%)65.0%61.7%–0.1530.696nsInderal (%)15.0%13.3%–0.0690.793nsCorticosteroids (%)8.3%6.7%–0.1550.694ns
Comparison in the measured biomarkers
4.2
The results of serum cations, insulin resistance parameters, trace elements, and atherogenic indices in HT+Dep, HT, and healthy control groups are presented in Table 2. Significant differences were observed between groups in multiple biomarkers as detailed below.Table 2. Comparison of Biochemical Parameters Among HT+Dep, HT, and Control Groups.VariablesHT+Dep (n=60)HT (n=60)Control (n=60)F/ p-valuePost-hocFBG (mg/dl) 45.23 HT+Dep HT CtrlInsulin (mIU/L) 34.11 HT+Dep HT CtrlHOMA2IR 39.07 HT+Dep HT CtrlHOMA2%S 48.90 Ctrl HT HT+DepHOMA2%B 1.780.171nsI/G 37.54 HT+Dep HT CtrlSe ( g/L) 81.62 Ctrl HT HT+DepZn ( g/dl) 78.15 Ctrl HT HT+DepCu ( g/dl) 40.88 HT+Dep HT CtrlCu/Zn 52.73 HT+Dep HT CtrlT. Mg (mg/dl) 61.37 Ctrl HT HT+DepIon. Mg (mM) 69.28 Ctrl HT HT+DepT. Ca (mg/dl) 65.83 Ctrl HT HT+DepIon. Ca (mM) 77.20 Ctrl HT HT+DepI.Ca/Mg 11.26 HT+Dep HT CtrlTG (mg/dl) 88.03 HT+Dep HT CtrlChol. (mg/dl) 85.27 HT+Dep HT CtrlLDLc (mg/dl) 30.76 HT+Dep HT CtrlHDLc (mg/dl) 35.14 Ctrl HT HT+DepCRI-I 86.79 HT+Dep HT CtrlCRI-II 67.92 HT+Dep HT CtrlAIP 98.52 HT+Dep HT CtrlAlbumin (g/dl) 0.650.524nsHAMD score 189.02 HT+Dep HT Ctrl
Correlation between the measured biomarkers with all parameters in hypothyroidism
4.3
After adjusting for the confounders (age, BMI, sex, and smoking), Table 3 shows the partial correlation coefficients of atherogenic indices, insulin resistance metrics, and depression score in individuals with hypothyroidism.Table 3. Partial correlation coefficients between biomarkers and clinical/biochemical parameters in hypothyroidism, adjusted for age, BMI, sex, and smoking.VariablesSeCuZnHOMA2IRHAMDFT3FT4Duration of disease−0.3600.325−0.3630.2980.3850.002−0.171TSH−0.3190.265**−0.3360.3110.383***−0.229*−0.298TPOAb−0.2780.177−0.3060.1650.353*−0.146−0.253TGAb−0.2710.126−0.2900.1420.318**−0.172−0.202FBG−0.3990.347*−0.3320.4350.352***−0.125−0.145Insulin−0.4310.351−0.3770.6490.423***−0.129−0.264HOMA2IR−0.4780.362*−0.4411.0000.503−0.148−0.318HOMA2%S0.419*−0.2470.404**−0.674***−0.4280.1540.308HDLc0.328**−0.2180.278**−0.281**−0.2950.1580.312TG (VLDLc)−0.3960.387−0.3580.4940.436***−0.135−0.228Cholesterol−0.3300.254*−0.2210.2360.361*−0.116−0.228LDLc−0.289**0.193−0.2130.2070.337**−0.112−0.205CRI-I−0.3620.289−0.3410.4010.401**−0.152−0.279CRI-II−0.2750.168−0.2470.1790.316**−0.107−0.193AIP−0.3480.305−0.3080.3880.373**−0.104−0.221Ca/Mg−0.3340.291−0.2780.237*0.319−0.109−0.224Cu/Zn−0.4330.371*−0.4430.3940.413***−0.144−0.264*
As shown in Table 3, serum selenium had significant positive correlations with FT3, FT4, FT4/FT3, HOMA2%S, and zinc, and significant negative correlations with various pro-atherogenic and inflammatory markers. Copper, zinc, and HOMA2IR similarly demonstrated clear patterns of correlation with thyroid function and metabolic parameters. The total HAMD score also showed significant relationships with biomarkers of thyroid dysfunction, lipid profile, and inflammation.
The multivariate general linear model (GLM) study of the confounders’ effects on the measured biomarkers
4.4
The results of the multivariate generalized linear model (GLM) analysis of the effect of the diagnosis (presence of disease) and confounders (age, BMI, smoking, and sex) on the measured parameters are presented in Table 4. GLM analysis was used to assess the effects of diagnosis while controlling for confounding variables.Table 4. Multivariate General Linear Model (GLM) analysis of the effect of diagnosis on biomarkers, controlling for age, BMI, smoking, and sex.VariableMean SquareF-valuep-valuePartial PowerSignificanceDiagnosis (overall effect)–45.210 0.0010.8381.000SignificantBetween-subjects effects (Top 5 biomarkers)Selenium16.812127.328 0.0010.4231.000SignificantCRI-I2.88182.697 0.0010.3221.000SignificantFBG254.89677.291 0.0010.3081.000SignificantCu/Zn0.20455.130 0.0010.2411.000SignificantCopper0.24938.824 0.0010.1821.000Significant
As indicated by Table 4, diagnosis significantly influenced the serum levels of the measured biomarkers (F = 45.210, ), accounting for 83.8% of the total variance. Among the examined biomarkers, selenium was the most affected by disease status (Partial = 0.423), followed by CRI-I, fasting blood glucose (FBG), Cu/Zn ratio, and copper. These results confirm the profound systemic impact of disease presence on biomarker expression patterns.
Artificial Neuronal Network (ANN) analysis
4.5
To use the measured biomarkers for differentiation between HT patients and healthy controls and between HT+Dep and patients without depression (HT), we used artificial neural network (ANN) analysis. Table 5 shows the necessary data to train ANN for predicting the occurrence of HT (NN#1). The control group included individuals who were in a state of optimal health. The final neural network was trained with 14 input units, two hidden layers — five units in hidden layer 1 and four in hidden layer 2 — using the hyperbolic tangent as the activation function in the hidden layers, identity in the output layer, and sum of squares as the error function.Table 5. Neural network results for predicting hypothyroidism and depression in hypothyroid patients.ModelsNN#1: HT vs. ControlsNN#2: HT+Dep vs. HTInput LayerNumber of units1414Rescaling methodNormalizedNormalizedHidden LayersNumber of hidden layers22Units in hidden layer 152Units in hidden layer 242Activation functionHyperbolic tangentHyperbolic tangentOutput LayerDependent variablesHT vs. ControlsHT+Dep vs. HTNumber of units22Activation functionIdentityIdentityError functionSum of squaresSum of squaresTraining% Relative error (Sum of squares)6.3% (3.436)4.3% (2.277)Sensitivity, Specificity93.8%, 96.8%95.8%, 100.0%Testing% Relative error (Sum of squares)4.2% (3.003)3.1% (1.172)Sensitivity, Specificity95.5%, 92.9%90.0%, 100.0%AUC ROC0.9870.983Holdout% Relative error4.8%5.4%Sensitivity, Specificity100.0%, 93.3%93.5%, 92.7%
The relative error percentage (sum of squares) in the testing set (4.2%, 3.003) was lower than that in the training set (6.3%, 3.436), indicating that the ANN model effectively generalized the training patterns. In the training set, the model showed remarkable predictive ability, with a sensitivity of 93.8% and specificity of 96.8%. On the testing set, the ANN model achieved 100.0% sensitivity and 93.3% specificity for predicting HT in suspected individuals. Fig. 2 displays the importance and relative importance of the input variables for HT prediction. According to the figure, selenium (100.0%) and AIP (80.6%) are the strongest predictors of HT, followed by insulin (34.8%), FBG (32.0%), and ionized calcium (23.5%).Fig. 2. Results of a neural network showing the importance and relative importance of the biomarkers predicting the HT from healthy controls.
For training ANN to predict the occurrence of depression in HT patients (NN#2), the control group included HT patients without depression. The final neural network was trained with 14 input units and two hidden layers, each containing two units. The testing relative error percentage (sum of squares: 3.1%, 1.172) was lower than that of the training set (4.3%, 2.277), affirming the reliability of the model. The sensitivity and specificity for predicting depression in HT patients using the measured biomarkers were 90.0% and 100.0%, respectively. Fig. 3 shows the relative importance of the independent variables. AIP (100.0%) was the main predictive factor for depression in HT patients, followed at a distance by CRI-I (24.7%), ionized calcium (23.1%), HOMA2IR (22.4%), and HOMA2S% (21.8%).Fig. 3. Results of a neural network showing the importance and relative importance of the biomarkers predicting the HT+Dep from HT patients.
Discussion
5
Indicators of atherogenicity in HT patients
5.1
The present study introduced indicators of atherogenicity in HT patients compared with the control group, showing an increase in this condition when depression coexists with hypothyroidism. Hyperlipidemia, characterized by elevated TC, TG, or LDLc and reduced HDLc, plays a critical role in the progression of atherosclerosis [54], [55] and is a well-established risk factor for cardiovascular diseases [56]. As shown in our data and supported by literature [14], the hypothyroid group exhibited elevated serum cholesterol, TG, LDLc, and decreased HDLc. The atherogenic index of plasma (AIP), a comprehensive lipid measure, is increasingly recognized as a strong predictor of coronary artery disease (CAD) [57] and unstable angina (UA) [58]. It is inversely associated with physical activity [59] and cardiovascular health scores [60]. Although the underlying mechanisms remain unclear, the role of small dense LDL (sdLDL) is suspected, given its increased ability to infiltrate vascular endothelium and bind to arterial glycoproteins, leading to foam cell formation and oxidation into ox-LDL [61], which in turn triggers adhesion molecules and cytokine signaling for macrophage differentiation [62]. In our ANN analysis, variable-importance scores were normalized such that the top-ranked predictor is scaled to 100%; therefore, AIP appears at 100% and the subsequent features (e.g., CRI-I, ionized calcium, HOMA2IR, HOMA2S%) at approximately 25% represent lower — but still meaningful — relative contributions. The prominent weight of AIP reflects its integrative definition from triglycerides and HDLc, which were markedly perturbed in this cohort, making AIP the dominant lipid-related signal associated with depressive status in HT.
AIP is a composite lipid index (log[TG/HDL-c]) that encapsulates atherogenic dyslipidemia and tracks adverse cardiometabolic profiles. In line with reports linking AIP to coronary artery disease and unstable angina [57], [58], and its inverse associations with physical activity and global cardiovascular health [59], [60], our ANN prioritized AIP as the dominant predictor of depressive status in the HT cohort. Mechanistically, hypothyroidism-related hypertriglyceridemia, reduced HDL-c, and broader atherogenic shifts provide a coherent pathway by which AIP-captured dyslipidemia aligns with the depressive phenotype observed in HT patients, without introducing assumptions beyond the established cardiometabolic literature.
Copper (Cu) showed a distinct pattern—comparatively lower in Control and HT, and elevated in HT+Dep. This finding is consistent with the central role of Cu within thyroid physiology and trace-element homeostasis, including relationships among lipid metabolism and mineral regulation already discussed in this work [59], [63]. Within our multivariable ANN, however, feature importance reflects the unique contribution of each predictor after accounting for the others. Consequently, despite a clear groupwise difference, Cu did not enter the top five because lipid-derived indices (AIP, CRI-I) and insulin-resistance markers (HOMA2IR, HOMA2S%) captured a larger share of the variance linked to depressive status in HT. This is compatible with a dynamic balance among trace elements and cardiometabolic markers reported in hypothyroidism [43], [63], [64].
A significant inverse correlation between selenium intake and depressive symptoms has been reported in men [65]. Serum selenium levels are negatively associated with depression symptoms [66] and the likelihood of developing depression [67]. Several studies indicate that individuals with depression show reduced selenium levels compared to controls [68], and that selenium intake inversely correlates with depression risk [69]. Lower serum selenium concentrations were significantly associated with increased anxiety symptoms in children and adolescents diagnosed with depressive and anxiety disorders [70]. SEPP not only serves antioxidative roles but is also central to selenium transport [71], and its altered levels may contribute to depression pathogenesis through oxidative and inflammatory pathways [72].
Trace elements and ions: Aligning our observations with prior literature
5.2
To improve interpretability, we summarize each element/ion by (i) our observation in this cohort and (ii) how it aligns with prior reports already cited in this manuscript.
Copper (Cu).
Cu was comparatively lower in Control and HT, and distinctly elevated in HT+Dep. This pattern is compatible with Cu’s involvement in thyroid physiology and lipid/mineral regulation discussed in our review of hypothyroidism biochemistry [63]. In multivariable modeling, Cu did not enter the ANN top five because lipid-derived indices and insulin-resistance markers explained a larger unique share of variance (see AIP/CRI-I and HOMA2 indices above), indicating Cu may act in concert with the broader dyslipidemic/IR milieu rather than as a dominant standalone predictor.
Zinc (Zn).
Zn showed between-group differences consistent with thyroid dysfunction. Zn supports thyroid hormone synthesis and peripheral conversion; disruptions in Zn status have been associated with altered thyroid function and immune signaling in hypothyroidism [63]. The directionality we observed follows the notion that thyroid dysregulation can perturb micronutrient handling and vice versa, with Zn changes accompanying the lipid/IR profile described above.
Selenium (Se).
Observation: Se was the most reliable biomarker for differentiating HT from controls in our cohort. This aligns with evidence that lower Se or altered selenoprotein (SEPP) status is linked to depressive symptoms and autoimmune thyroid activity [73]. Given Se’s antioxidative and anti-inflammatory roles, our finding supports its use as a pragmatic clinical adjunct for baseline phenotyping and longitudinal monitoring in hypothyroid care pathways (see “Clinical implications (selenium)”).
Calcium (total/ionized, Ca).
Observation: Ionized Ca contributed to ANN prediction (23.1%) and showed between-group differences in our dataset. Thyroid hormones influence bone turnover and calcium/ phosphate balance; prior work reports negative correlations between TSH and Ca and positive correlations with FT3/FT4 [64]. Our finding that ionized Ca carries predictive information is coherent with these endocrine–mineral interactions and with the cardiometabolic links described for atherogenicity.
Magnesium (Mg).
Mg was altered across groups consistent with thyroid dysfunction. Reduced Mg in HT has been frequently reported, with renal Mg loss and immune effects proposed as mechanisms [43], [64]. Given Mg’s vascular and metabolic roles, its changes plausibly track with the IR and dyslipidemic pattern we observed, even when not ranked among the top ANN predictors.
Correlations between depression scores and biomarkers
5.3
Another notable outcome of this study is the observed correlations between depression scores and several measured biomarkers. Past research also shows similar associations between depression and thyroid markers. Depression has been found to inversely correlate with FT4, FT3, and T3 across both younger and older adults [74]. Moreover, depression scores significantly relate to levels of TPOAb and TGAb in autoimmune thyroid conditions [75]. HT and depression have been linked in observational studies [76], with evidence indicating gender and age-dependent correlations — particularly in females and younger populations — between TPOAb levels and depressive symptoms [74]. Reduced SEPP levels are associated with more severe depressive symptoms, and selenium supplementation has been shown to lower TPOAb levels [73].
Evidence suggests that even subtle changes in thyroid function within the normal range may elevate depression risk in large cohort studies [77]. While the link between thyroid status and mood is well-established, a deeper understanding of hormone effects on neurotransmitter dynamics is essential. Thyroid hormones regulate the synthesis and function of key mood-related neurotransmitters like serotonin and dopamine. In addition to the established HT-depression comorbidity [78], recent work by Soheili-Nezhad et al. (2023) shows that HT is positively associated with the development of depressive disorders [79]. Depression is commonly found in thyroid patients, and vice versa; many patients diagnosed with depression exhibit abnormal thyroid function [80], [81]. This may be due to the presence of thyroid hormone receptors in brain regions involved in emotion regulation, such as the cerebral cortex, hippocampus, and amygdala [81].
Insulin resistance (IR) and metabolic syndrome contribute to the pathophysiology of atherosclerosis partly by suppressing nitric oxide synthesis [82]. IR leads to hyperglycemia, oxidative stress, and endothelial dysfunction, exacerbating coronary artery disease [83]. It may also underlie the development of unstable angina (UA) [84], as seen in patients with elevated insulin due to pro-inflammatory cytokines like IL-6 [85]. As confirmed in our study and earlier findings [7], HT is associated with elevated serum glucose levels.
Thyroid hormones influence bone resorption, elevating serum calcium and phosphorus while reducing parathyroid hormone secretion [86]. Changes in calcium, phosphate, and magnesium concentrations are emerging cardiovascular risk factors [87]. Zinc supports thyroid hormone synthesis and function, while magnesium regulates membrane permeability and thyroid secretion. These minerals are both regulated by and regulate thyroid hormone metabolism [7], [63]. Turanjanin et al. (2024) reported reduced magnesium levels in HT patients [64]. Total and ionized calcium, along with magnesium, negatively correlate with TSH and positively with FT3 and FT4 levels [64]. Magnesium has protective cardiovascular effects—reducing blood pressure, promoting vasodilation, and opposing atherosclerosis. Therefore, hypomagnesemia is linked to arrhythmia, hypertension, and coronary vasospasm [88], and is also believed to impair immune tolerance [89].
In HT, calcium mobilization from bone is reduced, leading to lower serum calcium. This triggers elevated calcitonin, promoting phosphate reabsorption and increasing calcium loss via urine [90], [91]. HT patients often show decreased total calcium and elevated phosphate [63], along with reduced magnesium [43]. Increased renal magnesium loss has been cited as a cause of hypomagnesemia in HT [64], [92]. Correlation studies that adjust for confounders show strong negative associations between TSH and total/ionized calcium and magnesium, and positive ones with FT3 and FT4 [64]. Similar findings are reported in other works [43], [93]. For example, Sridevi et al. (2016) found a negative correlation between TSH and calcium, though not with magnesium [94], while Un Nisa et al. (2013) reported negative correlations between magnesium and TSH, and positive correlations with FT3 and FT4 [95]. Wang et al. (2018) also found that low magnesium is linked to increased TPOAb, TgAb, Hashimoto’s thyroiditis, and overt hypothyroidism [96]. Elevated TSH has further been associated with increased lipid oxidation and serum lipids [97], although other work suggests positive correlations between magnesium and T3/T4, and inverse correlations with TSH [43].
Serum-based investigations in hypothyroidism
5.4
Our study extends serum-based investigations in hypothyroidism by jointly evaluating insulin resistance, dyslipidemia-derived atherogenic indices, and cation/trace-element profiles using an ANN to prioritize predictors of depressive status. This framework builds on the biochemical and metabolic literature already cited in the present article while diverging from pharmacogenomic approaches that personalize antidepressant therapy in major depressive disorder. Whereas pharmacogenomic models primarily inform treatment selection and mitigation of adverse drug reactions after a depression diagnosis, our objective is pre-treatment risk stratification and mechanistic insight within hypothyroid cohorts—highlighting metabolic pathways (e.g., AIP, distance from CRI-I, ionized calcium, HOMA2 indices) that align with the depressive phenotype in HT patients.
Clinical implications (selenium)
5.5
In our cohort, selenium emerged as the most reliable biomarker for differentiating hypothyroid patients from healthy controls. Clinically, this supports three pragmatic uses within hypothyroid care pathways: (i) baseline assessment—incorporating selenium alongside thyroid function tests and lipid/atherogenic indices to strengthen initial phenotyping; (ii) longitudinal monitoring—tracking selenium over time to complement conventional follow-up of thyroid status and metabolic indices; and (iii) risk flagging—using abnormal selenium status as an adjunctive signal to prompt closer evaluation of metabolic and neuropsychiatric comorbidities. While our study does not evaluate causality or intervention effects, these findings indicate that selenium can serve as a practical laboratory anchor for patient stratification and follow-up in clinical settings managing hypothyroidism with potential depressive manifestations.
Scientific contribution
5.6
The main contributions of this study can be summarized as follows:
- •Integration of Clinical and Computational Approaches: This work employs a dual methodology, combining biochemical assays with artificial neural network (ANN) analysis, to identify reliable biomarkers for depression in hypothyroid (HT) patients. This hybrid strategy enhances diagnostic accuracy and clinical relevance.
- •Comprehensive Biomarker Evaluation: A wide spectrum of biochemical parameters — including lipid profiles, thyroid hormones, atherogenic indices, and trace elements — was analyzed to evaluate their roles in HT and its comorbidity with depression.
- •Identification of AIP as a Key Predictor: The Atherogenic Index of Plasma (AIP) demonstrated 100% predictive accuracy for depression in HT patients, followed by CRI-I (24.7%), ionized calcium (23.1%), HOMA2IR (22.4%), and HOMA2S% (21.8%), highlighting their significance in clinical screening.
- •Differentiation Between HT and Controls via Selenium: Selenium was identified as the most effective biomarker for distinguishing between HT patients and healthy individuals, underscoring its potential role in thyroid and neuropsychiatric regulation.
- •Novel Insights into Hormonal and Mineral Interactions: The study provides new evidence on the relationships between thyroid hormones and serum levels of calcium, magnesium, and trace elements, offering insights into the systemic pathophysiology of HT and its neuropsychiatric manifestations.
Conclusion
6
Recapitulation
6.1
This study comprehensively investigated the biochemical interplay between insulin resistance, lipid metabolism, trace elements, and cationic biomarkers in hypothyroid (HT) patients, with and without comorbid depression. Our findings highlight a distinct profile of metabolic dysregulation in HT patients, particularly those suffering from depressive symptoms. A pronounced state of insulin resistance and dyslipidemia was observed in all HT patients, which intensified in the HT+Dep group. Additionally, significant alterations were noted in serum levels of key cations (calcium, magnesium) and trace elements (copper, zinc, selenium), suggesting a complex biochemical landscape in thyroid dysfunction and its psychiatric comorbidities.
Artificial neural network (ANN) analysis revealed the atherogenic index of plasma (AIP) as the most powerful predictor of depression in hypothyroid individuals, with a predictive importance of 100%. Other important indicators included Castelli’s Risk Index-I (CRI-I, 24.7%), ionized calcium (23.1%), HOMA2IR (22.4%), and HOMA2S% (21.8%). Notably, selenium emerged as the most robust biomarker distinguishing HT patients from healthy controls.
These results underscore the clinical relevance of multi-biomarker profiling in hypothyroidism management, especially in detecting and preventing psychiatric complications such as depression.
Future work
6.2
Future research should focus on validating these findings across larger and more diverse cohorts, including patients in different phases of thyroid dysfunction and from various geographic and ethnic backgrounds. Longitudinal studies are recommended to examine the progression of metabolic and neuropsychiatric changes over time in relation to biomarker fluctuations.
Additionally, clinical trials should be designed to assess the therapeutic impact of correcting trace element deficiencies — particularly selenium, calcium, and magnesium — on depressive outcomes in HT patients. From a technological perspective, expanding the ANN framework using explainable AI models could enhance the transparency and clinical utility of predictive diagnostics in endocrine-psychiatric comorbidities.
Further exploration into the integration of AI-driven biomarker screening with electronic health records (EHRs) may also enable real-time risk assessment, paving the way for proactive and personalized interventions in thyroid-related mood disorders.
CRediT authorship contribution statement
Sahira Qasim Al-Baldawi: Writing – original draft, Methodology, Formal analysis, Data curation, Conceptualization. Hussein Kadhem Al-Hakeim: Writing – review & editing, Validation, Supervision, Software, Conceptualization. Habib Hamam: Writing – review & editing, Visualization, Validation, Project administration, Funding acquisition. Ikram Khémiri: Writing – original draft, Validation, Supervision, Project administration, Methodology, Conceptualization.
Ethical statement:
The study was conducted in accordance with Iraqi and international ethical and privacy laws. Ethical approval for this study was obtained from the Medical Ethics Committee, University of Kufa, Reference #: MEC-96.
Human and animal rights:
The study was carried out ethically under the World Medical Association Declaration of Helsinki and in compliance with Iraqi, international, and privacy legislation. Additionally, in line with the Declaration of Helsinki, the Belmont Report, the CIOMS Guidelines, and the International Conference on Harmonisation in Good Clinical Practice (ICH-GCP), our IRB adheres to the International Guidelines for the Protection of Human Research Subjects.
Availability of data and materials:
Some or all of the raw and analyzed data during the current study are available from the corresponding author upon reasonable request.
Consent for publication:
The authors confirm that human study participants gave informed consent for the publication of their anonymized findings.
Funding:
This work was supported in part by CRSNG/NSERC under Grant RGPIN-2025-05918.
Declaration of competing interest
The authors declare the following financial interests/personal relationships which may be considered as potential competing interests: Habib Hamam reports financial support was provided by Natural Sciences and Engineering Research Council of Canada. If there are other authors, they declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Bianco A.C.Emerging therapies in hypothyroidism Annu. Rev. Med.7520243073193773850610.1146/annurev-med-060622-101007 PMC 10843736 · doi ↗ · pubmed ↗
- 2Rad S.R.Mohammadi Z.H.Zadeh M.J.Mosleh-Shirazi M.A.Dehesh T.Identification of important symptoms and diagnostic hypothyroidism patients using machine learning algorithms Ann. Med. Surg.86620243233324110.1097/MS 9.0000000000002068 PMC 1115282038846869 · doi ↗ · pubmed ↗
- 3Dehesh T.Mosleh-Shirazi M.A.Dehesh P.Prevalence and associated factors of anxiety and depression among patients with hypothyroidism in Southern Iran BMC Psychiatry 2512025543983373710.1186/s 12888-025-06490-3PMC 11748247 · doi ↗ · pubmed ↗
- 4Bode H.Ivens B.Bschor T.Schwarzer G.Henssler J.Baethge C.Association of hypothyroidism and clinical depression: A systematic review and meta-analysis JAMA Psychiatry 202110.1001/jamapsychiatry.2021.2506 PMC 844406734524390 · doi ↗ · pubmed ↗
- 5Duntas L.H.Benvenga S.Selenium: an element for life Endocrine 48320157567752551949310.1007/s 12020-014-0477-6 · doi ↗ · pubmed ↗
- 6Fernandes B.S.Salagre E.Enduru N.Grande I.Vieta E.Zhao Z.Insulin resistance in depression: A large meta-analysis of metabolic parameters and variation Neurosci. Biobehav. Rev.139202210475810.1016/j.neubiorev.2022.104758 PMC 1105693035777578 · doi ↗ · pubmed ↗
- 7Rehman U.L.Maliha K.Marium F.Saad K.M.Tarish A.M.Waafira A.Anxiety and depression among adolescents and young adults with thyroid function disorders: a cross-sectional study Expert. Rev. Endocrinol. Metab.202511110.1080/17446651.2025.248069340108945 · doi ↗ · pubmed ↗
- 8Susanna T.Y.Sagayaraj A.Shashidhar K.N.Gomathi M.Mahesh V.A correlative study of thyroid profile and mineral status in patients with hypothyroidism - A hospital based case control study Asian J. Pharm. Clin. Res.2016292294
