You're viewing our updated article page. If you need more time to adjust, you can return to the old layout.

ORIGINAL RESEARCH article

Front. Psychol., 10 September 2025

Sec. Health Psychology

Volume 16 - 2025 | https://doi.org/10.3389/fpsyg.2025.1650667

Factors associated with the presence of anxiety and depression symptoms in rural hypertensive adults in Bangladesh: leveraging extreme gradient booster machine learning algorithm

  • 1. Department of Clinical Psychology, Faculty of Biological Sciences, University of Rajshahi, Rajshahi, Bangladesh

  • 2. Department of Medical Science, School of Health and Welfare, Dalarna University, Falun, Sweden

  • 3. Department of Public Health, First Capital University of Bangladesh, Khulna, Bangladesh

  • 4. Institute of Biological Sciences, University of Rajshahi, Rajshahi, Bangladesh

  • 5. Department of Pediatrics, Bangabandhu Sheikh Mujib Medical University, Dhaka, Bangladesh

  • 6. Department of Population Science and Human Resource Development, University of Rajshahi, Rajshahi, Bangladesh

  • 7. Department of Epidemiology and Preventive Medicine, School of Public Health and Preventive Medicine, Monash University, Melbourne, VIC, Australia

Article metrics

View details

1

Citations

2k

Views

380

Downloads

Abstract

Introduction:

Anxiety and depression are common among hypertensive patients and can lead to significant health complications. This study aimed to use Extreme Gradient Boosting (XGB) machine learning (ML) technique to select associated factors of anxiety and depression symptoms among people with hypertension in rural areas.

Methodology:

A cross-sectional study was conducted using a multistage cluster random sampling. The anxiety and depression symptoms were evaluated using the Generalized Anxiety Disorder-7 (GAD-7) and Patient Health Questionnaire-9 (PHQ-9) scales, respectively. A chi-square test was performed to assess prevalence. XGB model was employed to predict the presence of anxiety and depression symptoms using 13 variables, and the model’s performance was compared with that of the traditional logistic regression (LR) model. Influential variables were explained and ranked using SHapley Additive exPlanations (SHAP) technique.

Results:

Among the 496 rural hypertensive adults, approximately 5.9% and 6.4% experienced the presence of anxiety and depression symptoms, respectively. Anxiety and depression symptoms were more prevalent among higher educated patients (14.0%) and who used tobacco (12.4%), respectively. The XGB model demonstrated improved predictive performance (for anxiety, ROC for XGB: 93.1%; for depression, ROC for XGB: 90.7%) compared to the LR model (for anxiety, ROC for LR: 83.8%; for depression, ROC for XGB: 79.7%) in predicting both outcomes. Marital status, body mass index (BMI), cardiovascular disease (CVD), educational status, family history of hypertension and employment were the influential factors in predicting the presence of anxiety symptoms. Similarly, chewing tobacco, family history of hypertension, marital status, CVD, sex, and educational status are important factors in predicting the presence of anxiety.

Conclusion:

In Bangladesh, around 6% rural individuals with hypertension experienced the presence of anxiety and depression symptoms. Educational status, marital status, CVD and family history of hypertension were key factors linked to both outcomes. Future research is needed to validate these findings.

Introduction

In the area of global mental health, anxiety and depression disorders are recognized as prevalent challenges of considerable concern (Kalin, 2020). According to the World Health Organization, in 2019, around 26.6% of the world’s population faced anxiety, and 28.6% had depression (WHO, 2022; Tasneem et al., 2023). In the same year, depressive and anxiety disorders both ranked among the top 25 leading causes of burden worldwide (Vos et al., 2020; Collaborators, 2022). Mental disorders, including anxiety and depression, play a substantial role in this statistic, accounting for approximately 14.3% of worldwide deaths, or roughly 8 million lives each year (Walker et al., 2015). In South Asia, the point prevalence of anxiety and depression are 12% and 16% respectively, and Bangladesh reflects this regional trend (Vidyasagaran et al., 2023). In 2019, approximately 18.7% of Bangladeshi adults face mental health disorders, with 6.7% was experiencing depression and 4.7% dealing with anxiety (NIMH, 2019). Anxiety and depression frequently give rise to the onset of several noncommunicable diseases such as hypertension, diabetes, and cardiovascular diseases (CVDs) (Meng et al., 2012; Rubio-Guerra et al., 2013; Zhang et al., 2025). Further, the coexistence of depression and anxiety with hypertension creates additional challenges, leading to severe CVDs or mortality (Kwapong et al., 2023). Conversely, hypertension causes chronic inflamation which can negatively affect mental health (Kretchy et al., 2014). The prevalence of anxiety and depression among individuals with hypertension in Bangladesh remains largely unexplored. In contrast, a study from China reported a 25.7% prevalence of depressive disorders among patients with essential hypertension (Ruan et al., 2022).

Establishing a causal relationship between anxiety, depression, and hypertension can be challenging. However, overlooking the factors associated with anxiety and depression among people with hypertension may hinder efforts to address the burden of hypertension. In Bangladesh, where over 25% of the population is affected by hypertension, the health burden is particularly severe in rural areas, which are home to 68.5% of the population (Khan et al., 2021). These communities face an increasing prevalence of hypertension, significantly impacts both health and livelihoods. This issue is further compounded by limited access to healthcare, inadequate media coverage, and a lack of information resources (Masuda Akter, 2023). Moreover, the absence of mental health care services highlights the urgent need for comprehensive mental health support in these areas (Hasan et al., 2021).

Despite these challenges, the prevalence and factors associated with symptoms of anxiety and depression among individuals with hypertension in rural Bangladeshi areas remain largely unexplored and poorly understood. However, in some developing countries, such as Morocco, Nepal, Afghanistan, and Ethiopia, hospital-based data were used to assess the prevalence and factors of anxiety and depression among people with hypertension (Abdisa et al., 2022; Hamrah et al., 2018; Shah et al., 2022; Boukhari et al., 2024). Additionally, in Bangladesh, the prevalence, socio-demographic factors, and clinical factors of anxiety and depression have been extensively studied in specific subgroups, such as students, female adolescents, and pregnant women, while largely neglecting individuals with hypertension (Rabby et al., 2023; Islam et al., 2020; Nishat et al., 2023; Nasreen et al., 2011).

Regardless of any specific cohort, such as individuals with hypertension, sociodemographic and clinical factors impact anxiety and depression through complex and interconnected pathways. Younger or older age groups may experience heightened vulnerability due to life-stage stressors or reduced resilience, while gender differences, particularly higher prevalence among females, are linked to biological and social role disparities (Carmel, 2019; Martin et al., 2001; Kirkbride et al., 2024). Lower education, unemployment, and low income contribute to chronic stress, limited access to resources, and reduced coping capacity (Kirkbride et al., 2024; Yang et al., 2024; Santiago et al., 2011). Marital status also plays a role, as lack of social support from being single, divorced, or widowed can increase loneliness and emotional distress (Vaingankar et al., 2020; Zhang et al., 2024). Health-related conditions such as chronic illness, disability, and substance use further exacerbate psychological burden by increasing dependency, physical limitations, and maladaptive coping mechanisms (Desalegn et al., 2023; Parkinson et al., 2023; Magee and Connell, 2021). These factors operate through pathways like prolonged psychosocial stress, social isolation, and reduced access to care, ultimately disrupting mood regulation and cognitive function, and increasing the risk of anxiety and depression.

Anxiety and depression are mostly explained using theoretically informed variables and further most of these studies predominantly relied on traditional regression models in assessing these variables (Rabby et al., 2023; Islam et al., 2020; Nishat et al., 2023; Nasreen et al., 2011). Machine learning (ML) models benefit from both data-driven and theoretically informed variable selection. ML-based selection identifies complex, nonlinear patterns and interactions that may not be apparent through traditional approaches (Steele et al., 2018; Dehghan and Khosravian, 2024; Jabbari and Bigdeli, 2023), especially in high-dimensional datasets. However, incorporating theoretically informed variables ensures that the model includes clinically or contextually relevant factors, enhancing interpretability and credibility. When combined, theory can guide the initial selection by narrowing the focus to meaningful predictors, while ML techniques refine this set by detecting patterns specific to the data. This integrated approach leads to more accurate, robust, and generalizable models that are both data-responsive and grounded in domain knowledge.

Moreover, the use of ML to predict symptoms of anxiety and depression among individuals with hypertension in Bangladesh is limited and has placed less emphasis on identifying associated factors (Moon et al., 2021; Ahmed et al., 2020; Nayan et al., 2022; Rois et al., 2021). Therefore, this study aims to address the existing gap by identifying the factors associated with the presence of anxiety and depression symptoms among people with hypertension in rural Bangladesh using an advanced ML technique namely XGB algorithms. Previous studies have demonstrated the strong predictive performance of the XGB model in predicting mental health conditions (Mardini et al., 2025; Qi and Huang, 2025). The XGB algorithm is a powerful ML framework recognized for its efficiency, flexibility, and portability (Chen and Guestrin, 2016). It operates as an ensemble learning method built on the gradient boosting framework, where models are constructed sequentially to enhance the performance of previous iterations by minimizing errors through the gradient descent algorithm (Chen and Guestrin, 2016). XGB was chosen due to its relatively straightforward interpretability and its ability to perform feature selection during model development. It offers several advantages, making it a strong alternative to traditional statistical methods and other ML algorithms (Qi and Huang, 2025).

Methods

Study design and sampling

A cross-sectional study was conducted from August to November 2021, using multistage cluster random sampling to recruit participants from 18 villages in a randomly selected district in Bangladesh.

Bangladesh is divided into eight administrative regions, or divisions: Barisal, Chittagong, Dhaka, Khulna, Mymensingh, Rajshahi, Rangpur, and Sylhet. The study began with the random selection of Khulna division, followed by Jhenaidah district (one of 10 districts in Khulna), and then Jhenaidah Sadar Upazila (one of six Upazilas in the district). Finally, Naldanga Union (one of 14 Unions in Jhenaidah Sadar) was randomly chosen. Participants were recruited from 18 villages within Naldanga Union, excluding four villages after reaching the target sample size (Figure 1).

Figure 1

A flowchart illustrates the process of selecting households and administrative hierarchy. At the top, households are selected based on proximity to the center, with alternatives chosen if unavailable. The process repeats until the desired sample size is reached. Below, an administrative hierarchy is depicted, progressing from division/region, district, upazila, union parishad, to villages.

Schematic diagram of sample section.

This study followed ‘Kish Grid’ method to select a household and study participants (Kish, 1949). The ‘Kish Grid’ method was used to select one individual per household for interviews (Supplementary Text S1). The first household was chosen based on proximity to the Union Parishad centre. Following predefined criteria (adults aged 18 or older residing in the selected household and provided written consent), one member was interviewed. Pregnant women, diagnosed mentally impaired individuals, and those who had surgery within the past 3 months were excluded. If the selected member declined or the household was inaccessible, it was marked as a refusal, and the next household was approached. Data collection aimed for proportional representation by ensuring balanced participation across sexes (male and female) and age groups (young adults, adults, middle-aged, and older adults).

Survey management

The recruitment process of field personnel and training workshop: Five interviewers with social science backgrounds and prior data collection experience, along with two local support persons, were recruited. A registered nurse was trained to measure anthropometrics and blood pressure. Details were presented in Supplementary Text S2.

Data collection instruments: Data was collected through face-to-face interviews using a validated semi-structured questionnaire. The original English questionnaire was translated into Bengali to ensure local comprehension and facilitate data collection (Supplementary Text S3).

Pilot survey: A pilot study was conducted with 24 participants from the selected sampling area to assess the acceptability and feasibility of the questionnaire (Supplementary Text S4).

Quality assurance: To ensure the quality of data collection, several measures were implemented: (i) pre-testing the questionnaire before the survey, (ii) organizing a pre-survey workshop, (iii) monitoring the data collection process, and (iv) using durable equipment Supplementary Text S5). Details of safety measures and data access and storage are provided in Supplementary Text S6, S7.

Sample size calculation/power analysis

The required formula for determining the sample size: n = Z21 − α/2 × p (1-p) ÷ d2. Here, n represents the required sample size, p is the prevalence of hypertension in rural Bangladesh (approximately 27% based on a recent study), and d is the desired accuracy level (set at 3%) (Khan et al., 2021). With a standard normal deviate value (Z1 − α/2) of 1.96 for a 95% confidence level, the initial sample size was calculated as 841 participants. To ensure nationwide generalizability and account for the population’s socio-demographic diversity, the sample size was adjusted using a design effect of 1.54 to address sampling variance from the multi-stage study design. (Henry, 1990; Islam et al., 2016; Siddiquea et al., 2023). The final sample size was determined as 1,472. A minimum of 80 participants were interviewed in each village. However, information was collected from 1,603 participants in the actual study to adjust non-response rate. Among them, 496 participants were found to have hypertension.

Blood pressure measurement and define hypertension

Blood pressure (BP) was measured after participants abstained from coffee and smoking for at least 30 min. Three readings were taken at 15-min intervals with participants seated comfortably, and the left arm resting on a flat surface. The average of these readings was used to determine systolic blood pressure (SBP) and diastolic blood pressure (DBP) blood pressure levels.

Participants were classified as hypertensive and reported if the average SBP exceeded 140 mmHg and/or the average DBP exceeded 90 mmHg. A participant was classified as hypertensive if they had a documented hypertension diagnosis from a registered medical professional or were taking prescribed antihypertensive medications at the time of data collection. Additionally, individuals with average SBP > 140 mmHg and/or average DBP > 90 mmHg during data collection and not currently on antihypertensive medication were also considered hypertensive (Khan et al., 2021; Gabb et al., 2016).

Outcome variables

The outcomes of the study were presence of anxiety and depression symptoms. The outcomes were evaluated using the Generalized Anxiety Disorder-7 (GAD-7) and Patient Health Questionnaire-9 (PHQ-9) scales, respectively. Both scales are popular worldwide in assessing the presence of anxiety and depression symptoms (Wu et al., 2025). Further, both scales had been previously validated among general population in Bangladesh (Redwan et al., 2020; Naher et al., 2021).

The GAD-7 scale comprises seven questions. Following the survey, the seven items of the GAD-7 scale demonstrated good internal consistency, with a Cronbach’s α of 0.74. Participants were asked to have anxiety symptoms in 2 weeks prior to the interview a 4-point Likert scale with options 0 (not at all), 1 (several days), 2 (more than half the days), and 3 (nearly every day). Considering the standard cut-off for Bangladeshi population, it was further coded binary as 0 for no or minimal anxiety symptoms (score: ≤10) and 1 coded for anxiety symptoms for rest of the categories (score: >10) (Redwan et al., 2020; Wahid et al., 2023).

Similarly, while assessing the presence of depression symptoms, the PHQ-9 scale consists of nine questions. Following the survey, the nine items of the GAD-7 scale showed acceptable internal consistency, with a Cronbach’s α of 0.69. Participants were asked to have depressive symptoms in 2 weeks prior to the interview using a 4-point Likert scale with options 0 (not at all), 1 (several days), 2 (more than half the days), and 3 (nearly every day). Adding up scores for individual question makes a total score of 27. Following the previous recommendation, the coding was extended to binary form: 0 denoted absence or minimal presence of depression symptoms (score: ≤10), while 1 indicated the presence of depression symptoms (score: >10) (Wahid et al., 2023; Manea et al., 2012).

The GAD-7 and PHQ-9 are widely used self-reported screening tools designed to identify individuals who may be experiencing symptoms of anxiety or depression symptoms. They serve as an initial step in determining the need for a more comprehensive clinical evaluation. In contrast, the diagnosis of anxiety and depression is typically conducted by clinicians, requiring specialized expertise in mental health.

Independent variables

This study used demographic characteristics, including age, sex, educational status, employment status and marital status; behavioral factors, such as chewing tobacco, and smoking history; anthropometric characteristics such as, body mass index (BMI), and waist-hip ratio; clinical characteristics such as diabetes, CVD, other chronic diseases, and family history of hypertension. The majority of the independent variables have been identified as significant in previously published literatures (Nishat et al., 2023; Rois et al., 2021; Mridha et al., 2021; Islam et al., 2021; Mehareen et al., 2021; Hosen et al., 2021; Anjum et al., 2022). Detail operational definitions and scale of measurements of independent variables were presented in Supplementary Table S1.

Statistical analysis

Baseline characteristics were assessed through descriptive analysis. The relationship between independent and dependent variables was examined using a Chi-square test, with significance considered when a p-value below 0.05 was achieved.

ML model development and variable selection

All 13 selected independent variables were entered into the Extreme Gradient Booster (XGB) ML algorithm. The XGB algorithm, utilized in many studies, uses the power of ML techniques that selects variables after model fit (Chen and Guestrin, 2016; Zhao et al., 2023; Mortazavi et al., 2019).

The XGB algorithm is used over more interpretable traditional models despite the small dataset due to its ability to capture complex, nonlinear relationships and interactions among predictors that simpler models might miss (Xu et al., 2023). While traditional models like logistic regression are easier to interpret, they often assume linearity and independence among features, which may not adequately reflect real-world patterns in clinical or behavioral data. Ensemble methods, such as XGB, combine multiple weak learners to improve predictive performance, reduce overfitting, and enhance robustness, even in smaller datasets—especially when careful cross-validation and tuning are applied. In this context, improving prediction accuracy and identifying nuanced patterns took precedence over model simplicity to support more reliable decision-making (Ganie et al., 2025).

To develop both the XGB and LR model, a 5-fold nested cross-validation approach was implemented. In this approach, the dataset was randomly split into five subsets, and the process was repeated five times, with each subset serving as the test set once while the remaining four were used for training. The models’ performance was averaged across all iterations and evaluated on the unseen 20% test data. Thereafter, the results of the XGB model were compared to those of the LR model. To handle the class imbalance of outcome Adaptive Synthetic (ADASYN) resampling technique was used.

The XGB model explained and ranked most influential factors using SHapley Additive exPlanations (SHAP) technique which was developed by Lundberg and Lee, incorporated principles from game theory and local explanation methodologies to evaluate the influence of individual features on a model’s decision-making process (Scott and Su-In, 2017). Further, odds ratio (OR) with 95% confidence interval (CI) and p-value were estimated for selected factors using traditional LR model. Detailed description of the model development was found in Figure 2.

Figure 2

Flowchart illustrating a data learning and optimization process. Data on demographics, anthropometry, behavior, and clinical factors undergo variable extraction using previous literature. An implementation phase involves traditional regression models for significant variable selection and prediction. Machine learning utilizes Extreme Gradient Booster for variable ranking and prediction, enhancing the learning process.

Machine learning model development.

Model performance

The assessment and comparison of prediction performances of the XGB and LR models were determined by evaluating various metrics, including the accuracy, sensitivity, specificity, precision, recall, and F1 score (Islam et al., 2023; Monaghan et al., 2021). Models’ discrimination was assessed using the receiver operating characteristic (ROC) curve (Hajian-Tilaki, 2013). Model calibration was evaluated by examining the Brier score and calibration curve (Rufibach, 2010; Van Calster et al., 2019).

All data analysis was carried out using statistical software packages, specifically Stata (version 17), and Python 3.12.3.

Results

Background profile

Approximately 40.7% of rural hypertensive patients were aged 50 years or older, with 51% being male. Around 33.3% of respondents had no formal education, and 22.8% reported chewing tobacco. Additionally, 73.4% were classified as overweight or obese, 14.3% had diabetes, and 9.5% had some form of CVD. Furthermore, 36.9% of participants reported a family history of hypertension. A comprehensive background profile is detailed in Table 1.

Table 1

Factors Frequency Percentages
Demographic characteristics
Age (in years)
30 and less 51 10.3
31–50 243 49.0
50 and above 202 40.7
Sex
Male 243 49.0
Female 253 51.0
Educational status
No formal education 165 33.3
Primary 125 25.2
Secondary 156 31.4
Higher 50 10.1
Employment status
Employed or self-employed 195 39.3
Housewife 234 47.2
Retired or student 67 13.5
Marital status
Never married, separated, divorced, or widowed 54 10.9
Currently married 552 89.1
Behavioral factors
Chewing tobacco
Never and past smoker 383 77.2
Current smoker 113 22.8
Smoking history
Never and past user 431 86.9
Current user 65 13.1
Anthropometric characteristics
BMI
Normal and underweight 132 26.6
Overweight/pre-obesity 211 42.5
Obese 153 30.9
Waist-hip ratio (measurement)
Low 90 18.2
Moderate 92 18.5
High 314 63.3
Clinical characteristics
Diabetes
No 425 85.7
Yes 71 14.3
Cardiovascular diseases
No 449 90.5
Yes 47 9.5
Other chronic disease
No 460 92.7
Yes 36 7.3
Family history of hypertension
No 313 63.1
Yes 183 36.9

Background characteristics of the respondents.

BMI, body mass index.

Prevalence of anxiety and depression symptoms

The prevalence of symptoms of anxiety was 5.9% among rural individuals with hypertension, with 6.4% experienced depression symptoms. Anxiety symptoms were significantly more common among individuals with higher education (14.0%), those who were normal weight or underweight (9.9%), those with some form of CVDs (12.8%), and those with a family history of hypertension (8.7%). Similarly, symptoms of depression were significantly more prevalent among female hypertensive patients (8.7%), current tobacco users (12.4%), or individuals with CVDs (10.6%) and those with a family history of hypertension (9.8%) (Table 2).

Table 2

Factors Anxiety Depression
N (%) p-value N (%) p-value
Age (in years)
30 and less 5 (9.8) 0.448 5 (5.9) 0.934
31–50 13 (5.4) 15 (6.2)
50 and above 11 (5.4) 14 (6.9)
Sex
Male 12 (4.9) 0.392 10 (4.1) 0.038
Female 17 (6.8) 22 (8.7)
Educational status
No formal education 7 (4.2) 0.049 12 (7.3) 0.377
Primary 8 (6.4) 9 (7.2)
Secondary 7 (4.5) 6 (3.9)
Higher 7 (14.0) 5 (10.0)
Employment status
Employed or self-employed 9 (4.6) 0.606 9 (4.6) 0.199
Housewife 15 (6.4) 20 (8.6)
Retired or student 5 (7.5) 5 (4.5)
Marital status
Never married, separated, divorced, or widowed 4 (7.4) 0.608 5 (9.3) 0.374
Currently married 25 (5.7) 27 (6.1)
Smoking history
Never and past smoker 28 (6.5) 0.112 29 (6.7) 0.518
Current smoker 2 (1.5) 3 (4.6)
Chewing tobacco
Never and past user 20 (5.2) 0.278 18 (4.7) 0.026
Current user 9 (8.0) 14 (12.4)
Body mass index
Normal and underweight 13 (9.9) 0.035 11 (8.3) 0.432
Overweight/pre-obesity 12 (5.7) 14 (6.6)
Obese 5 (2.6) 7 (4.6)
Waist-hip ratio (measurement)
Low 5 (5.6) 0.954 3 (2.2) 0.195
Moderate 6 (6.5) 7 (7.6)
High 18 (5.8) 23 (7.3)
Diabetes
No 24 (5.6) 0.621 27 (6.3) 0.827
Yes 5 (7.1) 5 (7.0)
Cardiovascular diseases
No 23 (5.1) 0.034 27 (6.0) 0.042
Yes 6 (12.8) 5 (10.6)
Other chronic disease
No 27 (5.9) 0.936 31 (6.7) 0.351
Yes 5 (5.6) 2 (2.8)
Family history of hypertension
No 13 (4.2) 0.036 14 (4.5) 0.019
Yes 16 (8.7) 18 (9.8)
Total 29 (5.9) 32 (6.4)

Prevalence of the presence of anxiety and depression symptoms.

BMI, body mass index.

Selection of variables and models’ performance comparison

The XGB model identified marital status, BMI, CVD, educational status, family history of hypertension, and employment status as the most influential factors in predicting the presence of anxiety symptoms (Figure 3A). In Figures 3A,B, the vertical bar on the right illustrates the range of independent variable values, transitioning from lower (blue) to higher (red). SHAP values reflect the influence of independent variables on the model’s outcome. Variables with positive SHAP values on the x-axis indicate a positive association with the outcome, while those with negative SHAP values suggest a negative association. For instance, the variable marital status is binary, coded as 0 for individuals who are never married, separated, divorced, or widowed, and 1 for those currently married. In Figure 3A, blue represents a value of 0, while red represents a value of 1. Examining marital status in Figure 3A reveals that individuals who were not currently married (i.e., never married, separated, divorced, or widowed) (OR:1.01, 95% CI: 0.31–3.33) (Supplementary Table S2) were more likely to exhibit symptoms of anxiety, as indicated by the blue dots crossing 0 onwards on the SHAP value axis.

Figure 3

Two SHAP value plots depicting the impact of various features on anxiety and depression models. The left plot shows features like marital status, body mass index, and educational status affecting anxiety. The right plot displays features such as chewing tobacco, marital status, and sex impacting depression. SHAP values range from -0.1 to 0.5, with feature values shown in color gradients from blue (low) to red (high).

Most influential variables associated with (A) anxiety symptoms and (B) depression symptoms.

Similarly, being normal or underweighted people with hypertension (OR: 4.70, 95% CI: 1.44–15.34), hypertensive patients with CVD (OR: 3.33, 95% CI: 1.19–9.32), those who had higher education (OR: 4.22, 95% CI: 1.24–14.35), had family history of hypertension (OR: 2.25, 95% CI: 1.01–5.02), and currently not in employment status (OR:1.24, 95% CI: 0.36–4.32) had higher chance of getting the presence of anxiety symptoms (Figure 3 and Supplementary Table S2).

Concurrently, for the presence of depression symptoms, the XGB model revealed that current use of chewing tobacco (OR: 4.02 95% CI: 1.76–9.19), had family history of hypertension (OR: 2.12, 95% CI: 0.99–4.51), currently not in marital status (OR: 1.19, 95% CI: 0.41–3.45), had CVD (OR: 2.09, 95% CI: 0.71–6.14), female sex (OR: 3.10, 95% CI: 1.29–7.42), and those who had higher education had higher chance of getting the condition (OR: 3.22 95% CI: 0.91–11.38) (Figure 3B and Supplementary Table S3).

The XGB model demonstrated improved performance over the traditional LR model in all metrics for predicting the presence of anxiety symptoms (Table 3). The XGB model achieved a high accuracy of 85.6% compared to 76.9% for the LR model. Notably, various performance metrics favored the XGB model, including sensitivity (95.5% for XGB vs. 90.0% for LR), specificity (71.7% for XGB vs. 64.7% for LR), precision (86.0% for XGB vs. 79.0% for LR), F1 score (83.0% for XGB vs. 77.0% for LR) and Brier score (14.4% for XGB vs. 23.1% for LR) (Table 3). The ROC score for predicting the presence of anxiety symptoms was notably higher for the XGB model at 93.1% (95% confidence interval (CI): 91.5–94.6%) compared to the LR model at 83.8% (95% CI: 81.2–86.4%) (Table 3 and Figure 4A).

Table 3

Models’ performance Models for symptoms of anxiety Models for symptoms of depression
XGB LR XGB LR
Models’ metrics
Accuracy 0.856 0.769 0.834 0.750
Sensitivity 0.955 0.900 0.924 0.875
Specificity 0.717 0.647 0.692 0.556
Precision 0.860 0.790 0.830 0.740
F1 score 0.830 0.770 0.810 0.710
Calibration
Brier score 0.144 0.231 0.166 0.250

Models’ performance in predicting anxiety and depression symptoms.

CI, confidence interval, LR, logistic regression; ROC, receiver operating characteristics, XGB, extreme gradient booster. Higher the values of models’ metrics and ROC, better the prediction. F1 score is a measure of a model’s accuracy, which balances both precision and recall. High F1 score indicates both high precision and high recall. A low F1 score suggests either low precision, low recall, or both. A lower Brier Score indicates better prediction accuracy. It measures the mean squared difference between the predicted probabilities and the actual outcomes.

Figure 4

Two ROC curve graphs compare the performance of two models: XGB and LR. Graph A shows XGB with an AUC of 0.931 and LR with an AUC of 0.838 in predicting anxiety symptoms. Graph B shows XGB with an AUC of 0.907 and LR with an AUC of 0.797 in predicting depression symptoms. A red dashed line represents random chance.

Receiver operating characteristics (ROC) curves as discrimination metrics for (A) anxiety symptoms and (B) depression symptoms. LR, logistic regression; XGB, extreme gradient booster.

The XGB model outperformed the traditional LR model in all metrics for predicting the presence of depression symptoms (Table 3). The accuracy of the XGB model was 83.4% compared to 75.0% for the LR model. Notably, other performance metrics were higher for the XGB model, including sensitivity (92.4% for XGB vs. 87.5% for LR), specificity (69.2% for XGB vs. 55.6% for LR), precision (83.0% for XGB vs. 74.0% for LR), F1 score (81.0% for XGB vs. 71.0% for LR) and Brier score (16.6% for XGB vs. 25.0% for LR) (Table 3). The ROC score for predicting the presence of depression symptoms was higher for the XGB model at 90.7% (95% CI: 88.9–92.5%) compared to the LR model at 79.7% (95% CI: 76.8–82.4%) (Table 3 and Figure 4B).

For both outcomes, the calibration curve of the XGB model closely followed the ideal line for the presence of anxiety and depression symptoms, demonstrating near-perfect calibration (Figure 5).

Figure 5

Two calibration plots labeled A (anxiety symptoms) and B (depression symptoms) show actual versus predicted probabilities. Both plots compare XGB and LR models to an ideally calibrated line. XGB lines (blue) are closer to the ideal line at higher probabilities, while LR lines (orange) are closer at lower probabilities.

Calibration curves for (A) anxiety symptoms and (B) depression symptoms. LR, logistic regression; XGB, extreme gradient booster.

Discussion

In rural areas of Bangladesh, the prevalence of anxiety and depression symptoms among people with hypertension was 5.9% and 6.4%, respectively, which was similar to the national prevalence among the general population (NIMH, 2019). However, the prevalence was notably higher among this subgroup in some neighboring countries such as Afghanistan and Nepal (Hamrah et al., 2018; Shah et al., 2022). Given the current status of these psychiatric conditions, this study investigated the factors associated with anxiety and depression symptoms in this population using a sophisticated ML method and compared the results with the traditional LR model. In line with this, the study showed that the ML-based XGB model outperforms traditional LR model in determining the presence of anxiety and depression symptoms, while also revealing a notable overlap in identifying associated factors.

In this study, the XGB model demonstrated improved performance over the traditional LR model in predicting the presence of anxiety and depression symptoms across all performance metrics. For both outcomes, the XGB model showed higher accuracy, sensitivity, specificity, precision, F1 score, brier score and ROC score than the LR model. These findings align with prior research, highlighting the potential of ML models to improve the prediction of anxiety and depression symptoms in clinical settings (Chekroud et al., 2016; Kessler et al., 2016).

After demonstrating the potential of the ML approach, the current study also investigated various factors associated with the presence of anxiety and depression symptoms among rural individuals with hypertension, as identified by the XGB model. In predicting the presence of anxiety symptoms, the XGB model identified marital status, BMI, CVD, educational status, family history of hypertension and employment status as influential contributors for individuals with hypertension. The findings partially align with previous studies conducted in Afghanistan and Ethiopia, where marital status, occupation, and chronic comorbid illnesses were identified as significant factors associated with the presence of anxiety symptoms among individuals with hypertension (Abdisa et al., 2022; Hamrah et al., 2018). However, unlike the present study, those previous studies identified sex and smoking as significant contributors to anxiety in their study subgroups. Additionally, prior studies in Bangladesh among diverse subgroups such as school adolescents, married female adolescents, rural pregnant women, and university students also highlighted the importance of factors such as age, education, marital status, smoking, alcohol use, chronic illness, and employment status as influential factors for anxiety (Nishat et al., 2023; Nasreen et al., 2011; Islam et al., 2021; Anjum et al., 2022).

Regarding the presence of depression symptoms, the XGB model identified chewing tobacco, family history of hypertension, marital status, CVD, sex, and educational status as the top contributing factors. These findings partially align with previous studies conducted in Afghanistan, Ethiopia, and Morocco, which identified sex, education, marital status, tobacco use, chronic comorbidities, and family history of hypertension as significant factors associated with depression symptoms among individuals with hypertension (Abdisa et al., 2022; Hamrah et al., 2018; Boukhari et al., 2024).

In contrast, previous studies in Bangladesh consistently found factors such as sex, education level, BMI, smoking, tobacco use, and self-reported health conditions to significantly contribute to depression across various population subgroups, including adolescents, university students, healthcare workers, and type 2 diabetes patients, regardless of the use of ML (Mridha et al., 2021; Mehareen et al., 2021; Hossen et al., 2024; Haque et al., 2023). Additionally, an ML-based study identified smoking as a key factor influencing depression among university students in Bangladesh which was inconsistent with the present study (Rois et al., 2021).

However, previous ML-based studies on predicting anxiety and depression conditions across different population subgroups were largely focused on methodology and did not extensively investigate associated factors (Moon et al., 2021; Nayan et al., 2022; Choudhury et al., 2019). Furthermore, the lack of studies in this specific subgroup presents an opportunity to gain deeper insights into this issue. The application of ML in predicting associated factors associated with psychiatric symptoms for anxiety and depression has the potential to significantly contribute to the planning of strategies and formulation of policies or revisiting the existing strategies to reduce the burden of psychiatric conditions, particularly among rural hypertensive patients.

This study also found that educational status, marital status, CVD and family history of hypertension were common factors associated with both anxiety and depression symptoms among rural individuals with hypertension, as identified by the XGB model. Previous studies have supported these findings, regardless of the hypertensive cohort studied (Islam et al., 2021; Hosen et al., 2021; Hossen et al., 2024; Haque et al., 2022). Among these common factors, having a higher level of education while living with hypertension can contribute to anxiety and depression due to a complex interplay of various influences. Physical health challenges, such as the stress of constantly monitoring blood pressure, can heighten anxiety, while psychological factors, including feelings of stigma in professional or academic settings, may exacerbate mental health struggles. Societal expectations, such as the pressure to succeed in both personal and professional life, can further add to this burden. Additionally, individuals with hypertension who are unmarried, separated, divorced, widowed, or widowers may experience social isolation or societal stigma, further increasing their risk of anxiety and depression (Subramaniam et al., 2017). Moreover, managing a chronic disease, whether as an affected individual or a family member, can create significant emotional strain, potentially leading to mental health issues (Huang et al., 2023; Gallo et al., 2021).

Based on the findings and their potential consequences, this research suggests several strategies, including promoting mental health education and counseling, and developing mechanisms to facilitate mental health support in rural areas. These include stress management education and coping strategies to address psychological barriers; designing a counseling program that provides a safe space for patients to express their feelings, fears, and concerns, thereby reducing anxiety and improving overall wellbeing; empowering patients by clarifying the relationship between hypertension and mental health risks, enabling them to take control of their health and make informed decisions; and facilitating counseling to encourage behavioral changes, such as adopting a healthier diet, engaging in regular exercise, and quitting smoking or tobacco use. Integrating mental health education and counseling into hypertension management can lead to better health outcomes, improved quality of life, and a more holistic approach to healthcare.

Besides making a notable impact on the rural community, the main strength of this study is its successful implementation of a robust ML model. Moreover, it provides a comprehensive evaluation of factors associated with psychiatric symptoms among rural hypertensive patients, utilizing a systematically collected sample. However, a notable limitation is that the data were gathered retrospectively and relied on self-reporting, which introduces the potential for underreporting and recall bias. Variables collected for different purposes may limit the inclusion of important behavioral factors such as sleep problems, mobile phone use, physical activity, eating behaviors, the use of anti-hypertensive drugs, and the control or stability of blood pressure. Additionally, the cross-sectional nature of the study prevents the establishment of causal associations. The small sample size may not be representative, potentially affecting generalizability. Furthermore, the ML models employed lack the capability to generate significance level or p-values for examining the associations between independent and dependent variables.

Conclusion

In rural Bangladesh, around 6% hypertensive patients exhibited symptoms of anxiety and depression. The application of the XGB model in determining the presence of anxiety and depression symptoms outperformed the traditional LR model. Educational status, marital status, CVD, and family history of hypertension were the top factors associated with both anxiety and depression symptoms among individuals with hypertension. Future research in this field may benefit from employing ML models, which could enhance early detection, support mechanisms, informed decision-making, and policy formulation.

Statements

Data availability statement

The original contributions presented in the study are included in the article/Supplementary material, further inquiries can be directed to the corresponding author.

Ethics statement

The studies involving humans were approved by Monash University Human Research Ethics Committee (project reference number: 29358). The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.

Author contributions

ZR: Methodology, Conceptualization, Validation, Data curation, Investigation, Project administration, Writing – review & editing, Writing – original draft, Software, Formal analysis. MK: Writing – original draft, Investigation, Validation, Funding acquisition, Resources, Writing – review & editing. MI: Software, Methodology, Data curation, Writing – review & editing, Visualization, Formal analysis, Writing – original draft. FB: Writing – review & editing, Writing – original draft. MM: Writing – original draft, Writing – review & editing. MC: Formal analysis, Writing – original draft, Project administration, Visualization, Software, Supervision, Methodology, Writing – review & editing, Conceptualization, Data curation, Investigation, Validation. BB: Project administration, Writing – review & editing, Data curation, Validation, Conceptualization, Supervision, Writing – original draft, Methodology, Investigation.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. Open access publication fees were covered by Dalarna University, Sweden, and received by the corresponding author, MK. The funders had no role in the study design, conduct, manuscript preparation, review, or approval process.

Acknowledgments

We would like to acknowledge the Monash University, Australia and University of Rajshahi, Bangladesh where the research was conducted.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The authors declare that no Gen AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpsyg.2025.1650667/full#supplementary-material

References

  • 1

    Abdisa L. Letta S. Nigussie K. (2022). Depression and anxiety among people with hypertension on follow-up in eastern Ethiopia: a multi-center cross-sectional study. Front. Psychiatry13:853551. doi: 10.3389/fpsyt.2022.853551

  • 2

    Ahmed A Sultana R Ullas MTR Begom M Rahi MMI Alam MA , editors. A machine learning approach to detect depression and anxiety using supervised learning. 2020 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE), IEEE (2020)

  • 3

    Anjum A. Hossain S. Hasan M. T. Uddin M. E. Sikder M. T. (2022). Anxiety among urban, semi-urban and rural school adolescents in Dhaka, Bangladesh: investigating prevalence and associated factors. PLoS One17:e0262716. doi: 10.1371/journal.pone.0262716

  • 4

    Boukhari F. Z. Belayachi S. Essayagh F. Terkiba O. Naji A. A. Amine M. et al . (2024). Self-reported depression and its risk factors among hypertensive patients, Morocco: a cross-sectional study. Sci. Rep.14:11196. doi: 10.1038/s41598-024-61390-y

  • 5

    Carmel S. (2019). Health and well-being in late life: gender differences worldwide. Front. Med.6:218. doi: 10.3389/fmed.2019.00218

  • 6

    Chekroud A. M. Zotti R. J. Shehzad Z. Gueorguieva R. Johnson M. K. Trivedi M. H. et al . (2016). Cross-trial prediction of treatment outcome in depression: a machine learning approach. Lancet Psychiatry3, 243–250. doi: 10.1016/S2215-0366(15)00471-X

  • 7

    Chen T Guestrin C Xgboost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining (2016).

  • 8

    Choudhury AA Khan MRH Nahim NZ Tulon SR Islam S Chakrabarty A editor Predicting depression in Bangladeshi undergraduates using machine learning. 2019 IEEE Region 10 Symposium (TENSYMP): IEEE(2019).

  • 9

    Collaborators G. M. D. (2022). Global, regional, and national burden of 12 mental disorders in 204 countries and territories, 1990–2019: a systematic analysis for the global burden of disease study 2019. Lancet Psychiatry9, 137–150. doi: 10.1016/S2215-0366(21)00395-3

  • 10

    Dehghan M. Khosravian E. (2024). A review of cognitive UAVs: AI-driven situation awareness for enhanced operations. AI Tech Behav. Soc. Sci.2, 54–65. doi: 10.61838/kman.aitech.2.4.6

  • 11

    Desalegn G. T. Zeleke T. A. Shumet S. Mirkena Y. Kassew T. Angaw D. A. et al . (2023). Coping strategies and associated factors among people with physical disabilities for psychological distress in Ethiopia. BMC Public Health23:20. doi: 10.1186/s12889-022-14877-0

  • 12

    Gabb G. M. Mangoni A. A. Anderson C. S. Cowley D. Dowden J. S. Golledge J. et al . (2016). Guideline for the diagnosis and management of hypertension in adults—2016. Med. J. Aust.205, 85–89. doi: 10.5694/mja16.00526

  • 13

    Gallo J. J. Joo J. H. Visvanathan K. McGinty E. E. Thrul J. Holingue C. (2021). An idea whose time has come: promoting health equity by preventing the syndemic of depression and medical comorbidity. Am. J. Geriatr. Psychiatry29, 12–14. doi: 10.1016/j.jagp.2020.10.013

  • 14

    Ganie S. M. Dutta Pramanik P. K. Zhao Z. (2025). Enhanced and interpretable prediction of multiple Cancer types using a stacking ensemble approach with SHAP analysis. Bioengineering12:472. doi: 10.3390/bioengineering12050472

  • 15

    Hajian-Tilaki K. (2013). Receiver operating characteristic (ROC) curve analysis for medical diagnostic test evaluation. Casp. J. Intern. Med.4:627.

  • 16

    Hamrah M. S. Hamrah M. H. Ishii H. Suzuki S. Hamrah M. H. Hamrah A. E. et al . (2018). Anxiety and depression among hypertensive outpatients in Afghanistan: a cross-sectional study in Andkhoy City. Int. J. Hypertens.2018, 1–8. doi: 10.1155/2018/8560835

  • 17

    Haque M. A. Anjum A. Mousum S. Salwa M. Ratan Z. A. Khan M. M. H. et al . (2023). Prevalence of and factors associated with depression, anxiety and stress among adolescents in Bangladesh during the COVID-19 pandemic: a population-based study. F1000Res12:730. doi: 10.12688/f1000research.132304.1

  • 18

    Haque M. R. Islam M. S. U. Hasan M. K. Hossain M. S. Khan M. A. H. Islam F. (2022). Determinants of anxiety and depression among Bangladeshi adults during COVID-19 lockdown: an online survey. Heliyon8:e09415. doi: 10.1016/j.heliyon.2022.e09415

  • 19

    Hasan M. T. Anwar T. Christopher E. Hossain S. Hossain M. M. Koly K. N. et al . (2021). The current state of mental healthcare in Bangladesh: part 1–an updated country profile. BJPsych Int.18, 78–82. doi: 10.1192/bji.2021.41

  • 20

    Henry G. T. (1990). Practical sampling. Newbury Park, California, USA: Sage.

  • 21

    Hosen I. Al-Mamun F. Mamun M. A. (2021). Prevalence and risk factors of the symptoms of depression, anxiety, and stress during the COVID-19 pandemic in Bangladesh: a systematic review and meta-analysis. Global Ment. Health8:e47. doi: 10.1017/gmh.2021.49

  • 22

    Hossen M. T. Shuvo S. D. Mazumdar S. Hossain M. S. Riazuddin M. Roy D. et al . (2024). Determinants of anxiety and depression among type 2 diabetes mellitus patients:a hospital-based study in Bangladesh amid the COVID-19 pandemic. Global Ment. Health11:e13. doi: 10.1017/gmh.2024.8

  • 23

    Huang Y. Loux T. Huang X. Feng X. (2023). The relationship between chronic diseases and mental health: a cross-sectional study. Ment. Health Prev.32:200307. doi: 10.1016/j.mhp.2023.200307

  • 24

    Islam M. M. Alam M. J. Maniruzzaman M. Ahmed N. F. Ali M. S. Rahman M. J. et al . (2023). Predicting the risk of hypertension using machine learning algorithms: a cross sectional study in Ethiopia. PLoS One18:e0289613. doi: 10.1371/journal.pone.0289613

  • 25

    Islam M. S. Rahman M. E. Moonajilin M. S. van Os J. (2021). Prevalence of depression, anxiety and associated factors among school going adolescents in Bangladesh: findings from a cross-sectional study. PLoS One16:e0247898. doi: 10.1371/journal.pone.0247898

  • 26

    Islam R. Bell R. Billah B. Hossain M. Davis S. (2016). The prevalence of symptomatic pelvic floor disorders in women in Bangladesh. Climacteric19, 558–564. doi: 10.1080/13697137.2016.1240771

  • 27

    Islam S. Akter R. Sikder T. Griffiths M. D. (2020). Prevalence and factors associated with depression and anxiety among first-year university students in Bangladesh: a cross-sectional study. Int. J. Ment. Health Addict.20, 1289–1302. doi: 10.1007/s11469-020-00242-y

  • 28

    Jabbari H. Bigdeli N. (2023). The role and application of artificial intelligence (AI) in leveraging big data in the healthcare domain. Health Nexus1, 83–86. doi: 10.61838/kman.hn.1.2.11

  • 29

    Kalin N. H. (2020). The critical relationship between anxiety and depression. Am. J. Psychiatry177, 365–367. doi: 10.1176/appi.ajp.2020.20030305

  • 30

    Kessler R. C. van Loo H. M. Wardenaar K. J. Bossarte R. M. Brenner L. A. Cai T. et al . (2016). Testing a machine-learning algorithm to predict the persistence and severity of major depressive disorder from baseline self-reports. Mol. Psychiatry21, 1366–1371. doi: 10.1038/mp.2015.198

  • 31

    Khan M. N. Oldroyd J. C. Chowdhury E. K. Hossain M. B. Rana J. Renzetti S. et al . (2021). Prevalence, awareness, treatment, and control of hypertension in Bangladesh: findings from National Demographic and health survey, 2017–2018. J. Clin. Hypertens.23, 1830–1842. doi: 10.1111/jch.14363

  • 32

    Kirkbride J. B. Anglin D. M. Colman I. Dykxhoorn J. Jones P. B. Patalay P. et al . (2024). The social determinants of mental health and disorder: evidence, prevention and recommendations. World Psychiatry23, 58–90. doi: 10.1002/wps.21160

  • 33

    Kish L. (1949). A procedure for objective respondent selection within the household. J. Am. Stat. Assoc.44, 380–387. doi: 10.1080/01621459.1949.10483314

  • 34

    Kretchy I. A. Owusu-Daaku F. T. Danquah S. A. (2014). Mental health in hypertension: assessing symptoms of anxiety, depression and stress on anti-hypertensive medication adherence. Int. J. Ment. Heal. Syst.8, 1–6. doi: 10.1186/1752-4458-8-25

  • 35

    Kwapong Y. A. Boakye E. Khan S. S. Honigberg M. C. Martin S. S. Oyeka C. P. et al . (2023). Association of depression and poor mental health with cardiovascular disease and suboptimal cardiovascular health among young adults in the United States. J. Am. Heart Assoc.12:e028332. doi: 10.1161/JAHA.122.028332

  • 36

    Magee K. E. Connell A. M. (2021). The role of substance use coping in linking depression and alcohol use from late adolescence through early adulthood. Exp. Clin. Psychopharmacol.29, 659–669. doi: 10.1037/pha0000436

  • 37

    Manea L. Gilbody S. McMillan D. (2012). Optimal cut-off score for diagnosing depression with the patient health questionnaire (PHQ-9): a meta-analysis. CMAJ184, E191–E196. doi: 10.1503/cmaj.110829

  • 38

    Mardini M. T. Khalil G. E. Bai C. Karan D. A. M. Ray J. M. (2025). Identifying adolescent depression and anxiety through real-world data and social determinants of health: machine learning model development and validation. JMIR Ment. Health12:e66665. doi: 10.2196/66665

  • 39

    Martin M. Grünendahl M. Martin P. (2001). Age differences in stress, social resources, and well-being in middle and older age. J. Gerontol. B Psychol. Sci. Soc. Sci.56, 214–222. doi: 10.1093/geronb/56.4.p214

  • 40

    Masuda Akter H. K. (2023). Health inequalities in rural and urban Bangladesh: the implications of digital health. Mayo Clin Proc Digital Health1, 201–202. doi: 10.1016/j.mcpdig.2023.04.003

  • 41

    Mehareen J. Rahman M. A. Dhira T. A. Sarker A. R. (2021). Prevalence and socio-demographic correlates of depression, anxiety, and co-morbidity during COVID-19: a cross-sectional study among public and private university students of Bangladesh. J. Affect. Disord. Rep.5:100179. doi: 10.1016/j.jadr.2021.100179

  • 42

    Meng L. Chen D. Yang Y. Zheng Y. Hui R. (2012). Depression increases the risk of hypertension incidence: a meta-analysis of prospective cohort studies. J. Hypertens.30, 842–851. doi: 10.1097/HJH.0b013e32835080b7

  • 43

    Monaghan T. F. Rahman S. N. Agudelo C. W. Wein A. J. Lazar J. M. Everaert K. et al . (2021). Foundational statistical principles in medical research: sensitivity, specificity, positive predictive value, and negative predictive value. Medicina57:503. doi: 10.3390/medicina57050503

  • 44

    Moon N. N. Mariam A. Sharmin S. Islam M. M. Nur F. N. Debnath N. (2021). Machine learning approach to predict the depression in job sectors in Bangladesh. Curr. Res. Behav. Sci.2:100058. doi: 10.1016/j.crbeha.2021.100058

  • 45

    Mortazavi B. J. Bucholz E. M. Desai N. R. Huang C. Curtis J. P. Masoudi F. A. et al . (2019). Comparison of machine learning methods with national cardiovascular data registry models for prediction of risk of bleeding after percutaneous coronary intervention. JAMA Netw. Open2:e196835-e. doi: 10.1001/jamanetworkopen.2019.6835

  • 46

    Mridha M. K. Hossain M. M. Khan M. S. A. Hanif A. A. M. Hasan M. Mitra D. et al . (2021). Prevalence and associated factors of depression among adolescent boys and girls in Bangladesh: findings from a nationwide survey. BMJ Open11:e038954. doi: 10.1136/bmjopen-2020-038954

  • 47

    Naher R. Rabby M. R. A. Sharif F. (2021). Validation of patient health questionnaire-9 for assessing depression of adults in Bangladesh. Dhaka Univ. J. Biol. Sci.30, 275–281. doi: 10.3329/dujbs.v30i2.54652

  • 48

    Nasreen H. E. Kabir Z. N. Forsell Y. Edhborg M. (2011). Prevalence and associated factors of depressive and anxiety symptoms during pregnancy: a population based study in rural Bangladesh. BMC Womens Health11, 1–9. doi: 10.1186/1472-6874-11-22

  • 49

    Nayan M. I. H. Uddin M. S. G. Hossain M. I. Alam M. M. Zinnia M. A. Haq I. et al . (2022). Comparison of the performance of machine learning-based algorithms for predicting depression and anxiety among university students in Bangladesh: a result of the first wave of the COVID-19 pandemic. Asian J. Soc. Health Behav.5, 75–84. doi: 10.4103/shb.shb_38_22

  • 50

    NIMH (2019). National Mental Health Survey 2019. Dhaka, Bangladesh: National Institute of Mental Health.

  • 51

    Nishat J. F. Khan U. S. Ahammed B. Rahman M. M. Hossain M. T. (2023). Patterns, prevalence and risk factors of intimate partner violence and its association with mental health status during COVID-19: a cross-sectional study on early married female adolescents in Khulna district, Bangladesh. BMJ Open13:e072279. doi: 10.1136/bmjopen-2023-072279

  • 52

    Parkinson A. Mullan B. Bebbington K. Davis E. Treadgold C. Finlay-Jones A. (2023). Wellbeing and distress in young people with chronic conditions: how do positive psychology variables relate to mental health outcomes?Health Psychol. Behav. Med.11:2274539. doi: 10.1080/21642850.2023.2274539

  • 53

    Qi X. Huang X. (2025). Machine learning-driven identification of key risk factors for predicting depression among nurses. BMC Nurs.24:368. doi: 10.1186/s12912-025-02957-6

  • 54

    Rabby M. R.-A. Islam M. S. Orthy M. T. Jami A. T. Hasan M. T. (2023). Depression symptoms, anxiety, and stress among undergraduate entrance admission seeking students in Bangladesh: a cross-sectional study. Front. Public Health11:1136557. doi: 10.3389/fpubh.2023.1136557

  • 55

    Redwan A. Karim M. R. Royle R. K. S. Chowdhury A. R. (2020). Validation of Bangla generalized anxiety disorder 7 scale among general population. Bangladesh J. Psychiatry34, 3–8. doi: 10.3329/bjpsy.v34i1.71969

  • 56

    Rois R. Ray M. Rahman A. Roy S. K. (2021). Prevalence and predicting factors of perceived stress among Bangladeshi university students using machine learning algorithms. J. Health Popul. Nutr.40, 1–12. doi: 10.1186/s41043-021-00276-5

  • 57

    Ruan J. Xu Y.-M. Zhong B.-L. (2022). Depressive disorders in older Chinese adults with essential hypertension: a classification tree analysis. Front. Cardiovas. Med.9:1035203. doi: 10.3389/fcvm.2022.1035203

  • 58

    Rubio-Guerra A. F. Rodriguez-Lopez L. Vargas-Ayala G. Huerta-Ramirez S. Serna D. C. Lozano-Nuevo J. J. (2013). Depression increases the risk for uncontrolled hypertension. Exp. Clin. Cardiol.18:10.

  • 59

    Rufibach K. (2010). Use of brier score to assess binary predictions. J. Clin. Epidemiol.63, 938–939. doi: 10.1016/j.jclinepi.2009.11.009

  • 60

    Santiago C. D. Wadsworth M. E. Stump J. (2011). Socioeconomic status, neighborhood disadvantage, and poverty-related stress: prospective effects on psychological syndromes among diverse low-income families. J. Econ. Psychol.32, 218–230. doi: 10.1016/j.joep.2009.10.008

  • 61

    Scott M. Su-In L. (2017). A unified approach to interpreting model predictions. Adv. Neural Inf. Proces. Syst.30, 4765–4774. doi: 10.48550/arXiv.1705.07874

  • 62

    Shah S. Adhikari S. Aryal S. Adhikari T. B. Sah S. K. Paudel B. S. et al . (2022). Anxiety and depression among hypertensive adults in tertiary care hospitals of Nepal. Psychiatry J.2022, 1–9. doi: 10.1155/2022/1098625

  • 63

    Siddiquea B. N. Afroz A. Chowdhury M. R. K. Savira F. Alif S. M. Bhattacharya O. et al . (2023). Knowledge, attitudes and practices of COVID-19 in rural Bangladesh: a cross-sectional study. BMJ Open13:e064754. doi: 10.1136/bmjopen-2022-064754

  • 64

    Steele A. J. Denaxas S. C. Shah A. D. Hemingway H. Luscombe N. M. (2018). Machine learning models in electronic health records can outperform conventional survival models for predicting patient mortality in coronary artery disease. PLoS One13:e0202344. doi: 10.1371/journal.pone.0202344

  • 65

    Subramaniam M. Abdin E. Picco L. Pang S. Shafie S. Vaingankar J. et al . (2017). Stigma towards people with mental disorders and its components–a perspective from multi-ethnic Singapore. Epidemiol. Psychiatr. Sci.26, 371–382. doi: 10.1017/S2045796016000159

  • 66

    Tasneem T. Begum A. Chowdhury M. R. K. Rahman S. Macassa G. Manzoor J. et al . (2023). Effects of acne severity and acne-related quality of life on depressive symptoms among adolescents and young adults: a cross-sectional study in Bangladesh. Front. Psychol.14:1153101. doi: 10.3389/fpsyg.2023.1153101

  • 67

    Vaingankar J. A. Abdin E. Chong S. A. Shafie S. Sambasivam R. Zhang Y. J. et al . (2020). The association of mental disorders with perceived social support, and the role of marital status: results from a national cross-sectional survey. Arch. Public Health78:108. doi: 10.1186/s13690-020-00476-1

  • 68

    Van Calster B. McLernon D. J. Van Smeden M. Wynants L. Steyerberg E. W. tests T. G. E. et al . (2019). Calibration: the Achilles heel of predictive analytics. BMC Med.17:230. doi: 10.1186/s12916-019-1466-7

  • 69

    Vidyasagaran A. L. McDaid D. Faisal M. R. Nasir M. Muliyala K. P. Thekkumkara S. et al . (2023). Prevalence of mental disorders in South Asia: a systematic review of reviews. Glob. Men. Health10, 1–40. doi: 10.1017/gmh.2023.72

  • 70

    Vos T. Lim S. S. Abbafati C. Abbas K. M. Abbasi M. Abbasifard M. et al . (2020). Global burden of 369 diseases and injuries in 204 countries and territories, 1990–2019: a systematic analysis for the global burden of disease study 2019. Lancet396, 1204–1222. doi: 10.1016/S0140-6736(20)30925-9

  • 71

    Wahid S. S. Raza W. A. Mahmud I. Kohrt B. A. (2023). Climate-related shocks and other stressors associated with depression and anxiety in Bangladesh: a nationally representative panel study. The Lancet Planet. Health7, e137–e146. doi: 10.1016/S2542-5196(22)00315-1

  • 72

    Walker E. R. McGee R. E. Druss B. G. (2015). Mortality in mental disorders and global disease burden implications: a systematic review and meta-analysis. JAMA Psychiatry72, 334–341. doi: 10.1001/jamapsychiatry.2014.2502

  • 73

    WHO . Mental disorders. World Health Organization. (2022).

  • 74

    Wu R.-Y. Ge L.-F. Zhong B.-L. (2025). Media consumption patterns and depressive and anxiety symptoms in the Chinese general population during the COVID-19 outbreak. World J Psychiatry15:104625. doi: 10.5498/wjp.v15.i4.104625

  • 75

    Xu P. Ji X. Li M. Lu W. (2023). Small data machine learning in materials science. NPJ Comput. Mater.9:42. doi: 10.1038/s41524-023-01000-z

  • 76

    Yang Y. Niu L. Amin S. Yasin I. (2024). Unemployment and mental health: a global study of unemployment’s influence on diverse mental disorders. Front. Public Health12:1440403. doi: 10.3389/fpubh.2024.1440403

  • 77

    Zhang D. Zheng W. Li K. (2024). The relationship between marital status and cognitive impairment in Chinese older adults: the multiple mediating effects of social support and depression. BMC Geriatr.24:367. doi: 10.1186/s12877-024-04975-6

  • 78

    Zhang H.-G. Wang J.-F. Jialin A. Zhao X.-Y. Wang C. Deng W. (2025). Relationship between multimorbidity burden and depressive symptoms in older Chinese adults: a prospective 10-year cohort study. J. Affect. Disord.389:119714. doi: 10.1016/j.jad.2025.119714

  • 79

    Zhao X. Wang J. Yang J. Chen T. Song Y. Li X. et al . (2023). Machine learning for prediction of bleeding in acute myocardial infarction patients after percutaneous coronary intervention. Ther. Adv. Chronic Dis.14:20406223231158561. doi: 10.1177/20406223231158561

Summary

Keywords

anxiety, depression, hypertension, machine learning, logistic regression

Citation

Raihana Z, Kader M, Islam MZ, Bornee FA, Mondal MNI, Chowdhury MRK and Billah B (2025) Factors associated with the presence of anxiety and depression symptoms in rural hypertensive adults in Bangladesh: leveraging extreme gradient booster machine learning algorithm. Front. Psychol. 16:1650667. doi: 10.3389/fpsyg.2025.1650667

Received

23 June 2025

Accepted

14 August 2025

Published

10 September 2025

Volume

16 - 2025

Edited by

Bao-Liang Zhong, Wuhan Mental Health Center, China

Reviewed by

Jaime Camacho Ruiz, Universidad Autónoma del Estado de México, Mexico

Khadijeh Irandoust, Imam Khomeini International University, Iran

Hongguang Zhang, Zhejiang University, China

Updates

Copyright

*Correspondence: Manzur Kader,

†These authors share senior authorship

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics