Skip to main content
Frontiers in Digital Health logoLink to Frontiers in Digital Health
. 2026 Jun 2;8:1805107. doi: 10.3389/fdgth.2026.1805107

Explainable and interpretable models for predicting early-onset hypertension in the Tlalpan 2020 cohort

Guadalupe Gutiérrez-Esparza 1,2, Mireya Martínez-García 3,4, Luis M Amezcua-Guerra 3, Martín Montes Rivera 5,*, Enrique Hernández-Lemus 6,*
PMCID: PMC13268902  PMID: 42311438

Abstract

Background

Early-onset hypertension results from complex interactions among demographic, lifestyle, metabolic, and psychosocial factors. While machine learning models can predict hypertension with relative accuracy, their lack of interpretability limits their clinical utility.

Methods

Using a nested case-control design based on the Tlalpan 2020 prospective cohort, a 10-year study of clinically healthy adults in Mexico City, this study applies DSRegPSOP, a symbolic regression approach, to develop interpretable mathematical models. The dataset included demographic, clinical, biochemical, lifestyle, and sleep-related variables. We addressed class imbalance using oversampling and SMOTE-based strategies, and evaluated model performance with accuracy, sensitivity, specificity, F1-score, and AUC-ROC.

Results

DSRegPSOP produced compact analytical expressions with predictive performance comparable to state-of-the-art machine learning algorithms while preserving interpretability. The resulting models reveal clinically meaningful predictors of early-onset hypertension.

Conclusion

DSRegPSOP provides a transparent and interpretable model for hypertension risk assessment that shows promising potential to support early prevention strategies, pending external validation on independent cohorts.

Keywords: anxiety, energy drink consumption, family history, foods consumption, high-fat, hypertension, particle swarm optimization programming, sedentary lifestyle

1. Introduction

Hypertension is a multifactorial condition whose early development results from the interaction of biological, behavioral, and environmental determinants. Understanding these determinants requires high-quality longitudinal data capable of capturing lifestyle behaviors, clinical biomarkers, anthropometric trajectories, psychosocial factors, and metabolic alterations long before the clinical onset of the disease. In Mexico, the Tlalpan 2020 cohort was specifically designed to address this gap, providing one of the most comprehensive prospective datasets for studying incident hypertension in clinically healthy adults.

The Tlalpan 2020 cohort is a 10-year, population-based, longitudinal study conducted in Mexico City, which recruited clinically healthy adults aged 20–50 years and follows them every 2 years to determine factors associated with the incidence of systemic hypertension. The cohort includes standardized measurements of blood pressure, anthropometry, biochemical markers, lifestyle exposures, sleep quality, anxiety, and 24-h urinary sodium and potassium excretion. These measurements were collected following clinical protocols established at the Instituto Nacional de Cardiología Ignacio Chávez, creating a high-quality epidemiological resource for predictive modeling.

Developing predictive models for early-onset hypertension requires integrating diverse demographic, lifestyle, and clinical variables. Although several machine learning techniques—such as decision trees, random forests, support vector machines, and neural networks—have been widely used for cardiovascular risk prediction, many of these methods lack interpretability (1). This is a critical limitation in medical contexts, where understanding the contribution of each predictor is essential for clinical decision-making. Therefore, interpretable modeling approaches capable of providing explicit mathematical relationships between risk factors and outcomes are needed.

On the other hand, symbolic regression is an approach to determining the mathematical expression that best fits a dataset to predict a given outcome (2). Symbolic regression offers several advantages over traditional machine learning techniques, including interpretability, flexibility, and the ability to discover novel relationships between variables (3).

Furthermore, symbolic regression has been successfully applied in medical applications, such as the prediction of heart failure deaths (4), to predict primary aldosteronism and apparent treatment-resistant in hypertension (5), in the generation of medical scoring models with continual learning (6), in the detection of hepatitis C and the disease progression (7), in morality prediction in surgery (8), assessing perioperative risks in elderly surgical population (9), among others. There are several techniques for symbolic regression, but all of them are regression-based, expression-tree-based, physics-inspired, or mathematics-inspired (2). Genetic programming (GP) is the most common technique to perform symbolic regression (10). GP is an evolutionary algorithm that mimics natural selection to evolve computer programs that solve a problem (11).

In GP, a population of candidate solutions is evolved over generations using evolutionary algorithm operators such as selection, crossover, and mutation. The fitness of each program is evaluated based on its ability to solve the problem. Over generations, the population evolves towards better solutions. Nevertheless, GP is limited by its complex representations and evolutionary mechanisms, which demand high computational resources for high-order computations, especially for large populations (12). Alternatively, swarm intelligence (SI) algorithms involve lower-order computations compared with evolutionary algorithms and have been successfully applied to numerical optimization problems (13). However, their application in large-scale, complex search spaces, such as those explored in symbolic regression, is inefficient, as they are likely to converge to local optima (14).

In this work, we propose using a novel swarm intelligence algorithm, DSRegPSOP (Dynamic Sphere Regrouping Particle Swarm Optimization Programming), which implements DSRegPSO for symbolic regression. DSRegPSO is based on the Particle Swarm Optimization (PSO) algorithm proposed initially in Kennedy and Eberhart (15), which is inspired by the social behavior of birds and fish. In PSO, a population of particles (candidate solutions) moves through the search space, adjusting their positions based on their own experience and the experience of their neighbors. The goal is to find the optimal solution by iteratively updating the positions and velocities of the particles.

The stagnation problem in local optimal regions is addressed in DSRegPSO introducing two mechanisms: a regrouping system that reinvigorates the swarm by continually resetting position of particles that are under a threshold distance from the global best particle controlled with an sphere that adapts its diameter allowing exploration and exploitation of the search space, and a momentum effect that make particles return to explore the search space if they travel to the limits of it. Moreover, DSRegPSO adapts speed and inertial components based on sphere diameter, maximizing exploration and exploitation when it is more needed (16). Furthermore, the use of DSRegPSOP in symbolic regression produces similar results in classification and regression problems to those obtained with GP, or with different models like Random Forest, Tree Regression, Partial Least Square Regression, Ridge Regression, XGBoost, Neuro-Fuzzy Systems, and Artificial Neural Networks (ANNs), among others, in publicly available datasets (14).

Here we used DSRegPSOP to develop mathematical models for predicting early-onset hypertension in the Tlalpan 2020 cohort. With this approach, we aim to create interpretable symbolic regression models with accuracy, sensitivity, and specificity comparable to those of standard machine learning algorithms and artificial neural networks, while providing explainable models that are easier to implement and diagnose, offering insights into the factors contributing to hypertension development, ultimately aiding early diagnosis and intervention strategies.

The methodology follows a six-stage pipeline: (1) Z-score normalization of the entire dataset; (2) Pearson correlation-based dimensionality reduction for feasible computations, retaining features with coefficient ≥0.05, reducing the feature space from 121 to 38 dimensions; (3) partitioning into training (80%) and held-out test (20%) sets; (4) 10-fold cross-validation grid search on the training set to optimize DSRegPSOP hyperparameters and balancing strategy; (5) final model training on the complete training set, during which DSRegPSOP implicitly selected between 5 and 25 features via its evolutionary symbolic regression process; and (6) final evaluation on the held-out test set, providing an unbiased assessment of predictive performance. Figure 1 shows an overview of the proposed methodology using DSRegPSOP for predicting early-onset hypertension in the Tlalpan 2020 cohort.

Figure 1.

Flowchart illustrating a machine learning pipeline for hypertension prediction, including data preparation, normalization, dimensionality reduction, train-test partition, k-fold cross-validation, hyperparameter tuning, balancing techniques, evaluation with metrics, and selection of the best model.

DSRegPSOP for predicting early-onset hypertension in the Tlalpan 2020 cohort.

2. Materials and methods

2.1. Data

The data used in this study come from the Tlalpan 2020 cohort (17), a prospective, population-based study designed to identify determinants of early-onset systemic hypertension in clinically healthy adults in Mexico City. Participants were evaluated at the Instituto Nacional de Cardiología Ignacio Chávez following standardized protocols for anthropometry, biochemical testing, and blood pressure assessment. All participants provided written informed consent before enrollment. The study protocol and procedures were approved by the Research Ethics Committee of the National Institute of Cardiology Ignacio Chávez (INCICH) under code 13-802. For the present analysis, a subset of 750 individuals with complete information was included.

Among these individuals, 150 developed hypertension during follow-up, while 600 remained normotensive and were matched by age and sex, forming the case–control dataset used for model development. This corresponds to a class distribution of 150 hypertensive and 600 normotensive individuals (1:4 ratio).

This case–control sampling strategy was designed for model development; therefore, the proportion of hypertensive individuals in this subset does not represent the true incidence of hypertension in the original cohort.

The dataset includes 121 normalized variables representing multiple domains relevant to hypertension research. Prior to model development, continuous features were standardized using z-score normalization (mean = 0, standard deviation = 1) during the dataset preprocessing stage, while binary variables were retained in their original scale.

Demographic variables include age and sex. Anthropometric measurements—including weight, height, Body Mass Index (BMI), waist circumference, and basal systolic and basal diastolic blood pressure (SBP and DBP, as measured at the initial time, prior to the development or non-development of hypertension)—were obtained following standardized clinical protocols (18). Biochemical variables such as fasting glucose, lipid profile, triglycerides, serum sodium, and creatinine were measured using validated enzymatic and ion-selective electrode methods. Hematological parameters—including hemoglobin, hematocrit, platelet count, red blood cell indices, and leukocyte differentials—were obtained through automated analysis on a Beckman Coulter LH-series hematology platform, operated under standardized calibration and quality-control procedures. All laboratory determinations were performed in a facility accredited by the Mexican Accreditation Entity (EMA, A.C.) under the NMX-EC-15189-IMNC-2015 / ISO 15189:2012 standard, ensuring technical competence, traceability, and adherence to internationally recognized requirements for analytical reliability. Urinary biomarkers were assessed from 24-h urine collections when available.

In addition to clinical and biochemical measurements, the dataset contains information related to lifestyle, sleep, psychological factors and physical activity. Participants reported their smoking and alcohol habits, weekly activity patterns and self-perceived stress levels. Sleep-related variables were obtained through the validated Spanish adaptation of the Medical Outcomes Study Sleep Scale (MOS-Sleep), which evaluates multiple aspects of nocturnal rest, including sleep onset, duration, efficiency and daytime somnolence. Each sleep dimension yields continuous scores on a 0–100 scale, with higher values reflecting a greater presence of the characteristic assessed. A global indicator summarizing overall sleep disturbances was also computed in accordance with the scoring guidelines of the instrument (19–22).

Psychological stress and anxiety were assessed using the Spanish validated version of the State–Trait Anxiety Inventory (STAI) (23). This questionnaire consists of two independent components that distinguish between situational, transient anxiety responses and more stable anxiety patterns. Both sections produce numerical scores that can be used continuously or categorized to reflect different levels of anxiety severity.

Physical activity was characterized using the International Physical Activity Questionnaire (IPAQ) (24), which estimates weekly energy expenditure in metabolic equivalents. Based on the standard IPAQ scoring system, participants were classified into low, moderate or high activity groups. These categories were also transformed into binary indicators to facilitate their incorporation into the machine-learning and symbolic-regression analyses.

The outcome variable, Hypertension, was defined as a binary indicator (0 = normotensive, 1 = hypertensive). Hypertension status was determined according to standard clinical criteria (systolic blood pressure ≥140 mmHg, diastolic blood pressure ≥90 mmHg, or use of antihypertensive medication) during follow-up of participants initially recruited as normotensive adults aged 20–50 years. Basal systolic and basal diastolic blood pressure (SBP and DBP, as measured at the initial time, prior to the development or non-development of hypertension) measurements were recorded during the clinical assessment.

To further characterize the predictive structure of the dataset, three complementary feature selection methods were applied to compare the features selected by DSRegPSOP in their final models. LASSO (Least Absolute Shrinkage and Selection Operator), implemented as an L1-penalized logistic regression with a maximum of 1,000 iterations, was used to identify features with linear associations with the hypertension outcome, using the absolute value of the learned coefficients as importance scores. Complementarily, Mutual Information (MI) was estimated for each feature using the nearest-neighbor approach, which quantifies statistical dependency between each predictor and the outcome regardless of the functional form of their relationship, making it sensitive to non-linear associations that linear methods may overlook. Additionally, a Random Forest classifier with 100 estimators was trained on the dataset, and the Gini-based feature importances were extracted to capture non-linear interactions and variable contributions based on tree ensemble structure. All three methods were applied to the full dataset after z-score normalization, and the top-20 ranked features from each method were compared against the variables implicitly selected by DSRegPSOP across the five balancing strategies.

2.2. Dynamical sphere regrouping particle swarm optimization programming

The DSRegPSOP proposed in Montes Rivera et al. (14) is an adaptation of the DSRegPSO algorithm for symbolic regression tasks. In DSRegPSOP, each particle position represents a mathematical model encoded as subsequent mj mathematical equations disposed in nl levels, each equation is composed of ng groups of expressions separated with parentheses, each expression inside the parentheses contains nv coefficients or variables, and no operators. The first-level equation depends on the dataset’s features, while subsequent levels may depend on the features or the output of a previous level. The symbolic expressions are obtained by transforming the position with d dimensions of n particles into mathematical expressions with TS:X∈Rn×d→M∈Sn×ds that associates position values a string space S with variable length ds depending on the obtained expression. The dimensions required for the position of each particle are calculated with Equation 1.

d=nl⋅[ng⋅(no+nv)+(ng−1)] (1)

The position of the particles is transformed into two integer matrices Mo∈Zn×d and Mv∈Zn×d, for indexing the operators in the first one and variables or coefficients in the second one. Equations 2 and 3 show how to obtain them per i row for each particle.

M→o,i=X→i−LlLu−Ll⋅(no−1) (2)
M→v,i=X→i−LlLu−Ll⋅(nv−1+nc) (3)

Where Ll and Lu are the lower and upper limits of the particle position, respectively, and nc is the number of positions in the list of variables assigned to numerical coefficients.

Once the matrices Mo and Mv are obtained, mj adds Lv(M→v,i) or Lo(M→o,i), depending on if the equation index is pair or odd. Where Lv and Lo are the lists of variables/coefficients and operators, respectively. Furthermore, when the index of the variable/coefficients exceeds nv, it indicates that a numerical coefficient should be added to the expression. In this case, the coefficient is calculated using a linear mapping between the lower and upper limits of the particle position, scaled to the search space in ranges [Ll,Lu]. The reamaping boundaries for the numerical coefficients are in ranges [Llc,Luc], determined with Equations 4 and 5.

Llc=Ll+nvLu−Llnv+nc (4)
Luc=Lu (5)

Then , the coefficient c is calculated with Equation 6.

c=(Lu−Ll)X→i,l−LlcLuc−Llc−Lui (6)

Finally, the transformation algorithm TS is described in Algorithm 1.

Algorithm 1 Transformation. —

Data: X,nl,ng,no,ns,Ll,Lu,Lv,Lo

Result: M

1: d=nl⋅[ng⋅(no+nv)+(ng−1)];

2: M=[];

3: for i=1 to n do

4:   M→i=[];

5:   for j=1 to nl do

6:     mj=[];

7:     M→o,i=X→i−LlLu−Ll⋅(no−1);

8:     M→v,i=X→i−LlLu−Ll⋅(nv−1+nc);

9:     for k=1 to ng do

10:       if k=0 then

11:        mj|add(′(′);

12:       else if mj[k−1]≠′(′ then

13:         mj←add(′(′);

14:       end if

15:       for l=k⋅dnlng+j⋅dnl to (k+1)⋅dnlng+j⋅dnl do

16:       if (l+1+mod(k,2)+mod(j,2))=0 then

17:          mj=add(Lo(M→o,i=l));

18:         else

19:          if M→v=i,l<nv then

20:           mj=add(Lv(M→v,i=l));

21:          else

22:           Llc=Ll+nvLu−Llnv+nc;

23:           Luc=Lu;

24:           c=(Lu−Ll)X→i,l−LlcLuc−Llc−Lui;

25:           mj←add(c);

26:          end if

27:         end if

28:        end for

29:       mj|add(′)′)

30:      end for

31:     Mi←add(mj);

32:   end for

33:  M←add(M→i);

34: end for

The optimization process of DSRegPSOP uses the algorithm of DSRegPSO detailed in Montes Rivera et al. (16). This variant of PSO introduces a dynamic sphere regrouping mechanism, controlled by the current sphere diameter δ, that regulates the inertial behavior ω and switches between exploration and exploitation as needed, making PSO suitable for large-scale optimization, such as in symbolic regression tasks.

DSRegPSO starts by determining ω, to equally distribute the maximum inertial momentum across δδmax and SsSmax. Where Ss is the current sphere expansion speed, and Smax is the maximum sphere expansion speed, δmax is the maximum sphere diameter.

The speed equation of DSRegPSO has three components: the inertial component (δδmax+SsSmax), the social component (c1⋅R→1⋅(P→G−X→i)), and the cognitive component (c2⋅R→2⋅(P→i−X→i)). Where X→i is the position of particle i, c1 and c2 are the social and cognitive coefficients, respectively, R→1 and R→2 are random vectors with values in the range [0,1]. P→G is the global best position and P→i is the personal best position. Therefore, the speed is updated at each iteration using the Equation 7.

V→i=[δδmax+SsSmax]⋅ω⋅V→i+c1⋅R→1⋅(P→G−X→i)+c2⋅R→2⋅(P→i−X→i) (7)

The speed limits in DSRegPSO are dynamically adjusted based on δ and Ss. The upper speed limit LSu is calculated as LSu=(δδmax+SsSmax)⋅ω, while the lower speed limit LSl is set to the negative of the upper limit, i.e., LSl=−LSu. This dynamic adjustment allows particles to adapt their movement according to the exploration and exploitation needs of the search space.

Algorithm 2 shows the complete DSRegPSO; a more detailed explanation is included in Montes Rivera et al. (16).

Algorithm 2 DSRegPSO. —

Data: d,n,f(X→i),Ll,Lu,c1,c2,Mmax,λ,fdmax,fdmin,Smax,Smin,ζ

Result: P→G

1: LSui=λ(Ll−Lu);

2: LSu=LSui;

3: LSl=−LSu;

4: ω=Mmax2;

5: X→i∈[Ll,Lu];

6: V→i=0;

7: Ci=f(X→i);

8: G→P,i=Ci;

9: P→i=X→i;

10: GB=min(GP,i);

11: P→G=argminf(X→i);

12: Ss=Smin;

13: δmax=max(P→G)⋅fdmax;

14: δmin=min(P→G)⋅fdmin;

15: δ=δmin;

16: it=0;

17: while k<kmax or GB≤Cd do

18: V→i=[δδmax+SsSmax]⋅ω⋅V→i+c1⋅R→1⋅(P→G−X→i)+c2⋅R→2⋅(P→i−X→i);

19: V→i=V→i∈[LSl,LSu];

20: δi=|X→i,d−P→G,i|;

21: Ui(δi)={1,δi≤δ′0,δi>δ′;

22: X→i=(1−Ui)⋅(X→i+V→i)+Ui⋅Ψi;

23: X→i,d={max(Ll,Lu+(Lu−X→i,d)),X→i,d>Lumin(Lu,Ll+(Lu−X→i,d)),X→i,d<Ll;

24: X→i=X→i∈[Ll,Lu];

25: Ci=f(X→i);

26: for i=1 to n do

27:  if Ci<GP,i then

28:   GP,i=Ci;

29:   P→i=X→i;

30:  end if

31:  if GP,i<GB then

32:   GB=GP,i;

33:   P→G=P→i;

34:  end if

35: end for

36: it=it+1;

37: if |GB(k)−GB(k−1)|≤ζ⋅GB(k) then

38:  if δ<δmax then

39:   δ=δ+δmax⋅Ss;

40:  else

41:   δ=δmin;

42:   if Ss≥Smax then

43:    Ss=Smin;

44:   else

45:    Ss=Ss+Smin;

46:   end if

47:  end if

48: else

49: δ=δmin;

50: Ss=Smin;

51: end if

52: δmax=max(P→G)⋅fdmax;

53: δmin=min(P→G)⋅fdmin;

54: LSu=δδmax+SsSmax;

55: LSl=−LSu;

56: end while

The original cost function in Equation 8 used in DSRegPSOP for symbolic regression includes mean square error with two penalty terms, p1 and p2, the first one with gain γ1 penalizes the difference between the maximum and the minimum values of the predicted output y^ to avoid constant solutions, while the second one with gain γ2 penalizes the number of times that a previous level equation is not in the current level. This forces the model to use previous levels in each level.

f(M→i)=1N∑n=1N(y−y^)2+p1+p2 (8)

Where p1 and p2 are calculated with Equations 9 and 10, respectively.

p1=γ1|min(y^)−max(y^)| (9)
p2=γ2⋅|(nl−1)−∑l0=0nl−1Φlv| (10)

Where Φlv is one if a previous levels is in the final level and zero if not.

The predicted output y^ depands from all the levels in M and is obtained by thresholding the last mathematical expression mapped to ranges [0,1], with a threshold of 0.5 for probability classification problems. The sigmoid function in Equation 11 is used to map the output to the desired ranges.

y^=11+e−Mi=nl (11)

2.3. Balancing techniques for imbalanced datasets

Datasets are imbalanced because the classes are not equally represented, leading to biased models that favor the majority class. There are several strategies to deal with this issue effectively (25).

The process of balancing the dataset must use only the training set after splitting the dataset into training, validation and testing sets to avoid data leakage, which is the unintentional sharing of information between the training and testing datasets (26). Leakage inflates performance metrics making a model unreliable under real conditions (27). Moreover, since the models’ hyperparameters are optimized using k-fold cross-validation and the validation dataset is not resampled, the models are evaluated on imbalanced data, leading them to learn to ignore the minority class. Therefore, F1-score should be used as part of the cost function in the hyperparameter optimization, since it considers both precision and recall, which are essential metrics for imbalanced datasets (28, 29). Therefore, the cost function used in this work implements F1-score together with MSE and the original penalties in DSRegPSOP as defined in Equation 12. We decided maintaining MSE with reduced importance controlled with γ3 in the cost funtion instead of replacing it with F1-score since it is more sensitive to small changes in the predicted values, because its determined before thresholding predictions.

f(M→i)=(1−F1-score)+γ3×MSE+p1+p2 (12)

This research explores four balancing techniques using a cost function based on F1-score on the Tlalpan 2020 dataset: Oversample, Smote, Borderline Smote, and Smote with Edited Nearest Neighbors (ENN).

2.3.1. Oversample and undersample

The most used techniques for balancing datasets are oversampling and undersampling with the raw dataset (30). Oversampling involves randomly selecting and duplicating samples from the minority class to balance the dataset, while undersampling involves randomly removing samples from the majority class. However, making naive copies of minority-class samples can lead to overfitting, while removing majority-class samples can result in the loss of valuable information. Therefore, more sophisticated techniques that generate synthetic samples are preferred (25, 30).

2.3.2. Synthetic minority over-sampling technique

The Synthetic Minority Over-sampling Technique (SMOTE) is a popular technique for balancing imbalanced datasets by generating synthetic samples for the minority class (30). SMOTE works by dividing the dataset into nearest neighbors, then selecting a random neighbor and generating a synthetic sample by interpolating between the two samples. The synthetic samples use a desired SMOTE percentage to balance the dataset. SMOTE has been shown to improve the performance of machine learning models on imbalanced datasets (30). The SMOTE algorithm was proposed and detailed in Chawla et al. (31).

2.3.3. Borderline SMOTE

Borderline-SMOTE is an extension of the SMOTE algorithm that focuses on generating synthetic samples for the minority class that are close to the decision boundary between the classes (25). The algorithm works by identifying minority-class samples near the decision boundary and generating synthetic samples by interpolating between them and their nearest neighbors. This approach improves the performance of machine learning models on imbalanced datasets by focusing on the most informative samples (32).

2.3.4. SMOTE with edited nearest neighbors

SMOTE with Edited Nearest Neighbors (SMOTEENN) is a technique that combines the SMOTE algorithm with the Edited Nearest Neighbors (ENN) algorithm to improve the quality of synthetic samples generated for the minority class (25). The ENN algorithm works by removing samples from the dataset whose nearest neighbors misclassify them. By combining SMOTE with ENN, the algorithm generates synthetic samples for the minority class while also removing noisy or misclassified samples from the dataset.

2.4. Evaluation metrics

The problem stated in this work is a binary classification task, where the goal is to predict whether a patient will develop hypertension (positive class) or not (negative class). To evaluate the performance of the predictive models, we used several metrics commonly used in binary classification tasks, including accuracy, precision, recall, specificity, F1-score, and area under the receiver operating characteristic curve (AUC-ROC) (33). These metrics are calculated based on the number of true positives (TP), true negatives (TN), false positives (FP), false negatives (FN), true positive rate (TPR), and false positive rate (FPR) produced by the model. The formulas for each metric are provided in Equations 13–18.

Accuracy=TP+TNTP+TN+FP+FN (13)
Precision=TPTP+FP (14)
Recall=TPTP+FN (15)
Specificity=TNTN+FP (16)
F1-score=2⋅Precision⋅RecallPrecision+Recall (17)
AUC-ROC=∫01TPR(FPR)dFPR (18)

Confidence intervals for AUC-ROC were computed empirically from the distribution of results across the top 10 configurations obtained with varying random seeds, using the 95% confidence interval defined as mean±1.96×STD.

These metrics provide a comprehensive evaluation of the performance of the model, allowing us to assess its ability to correctly classify patients with and without hypertension.

3. Results

We performed a data split with 80% for training and 20% for testing, then a grid search was applied in training data with 10-fold cross-validation to optimize the hyperparameters of DSRegPSOP, detailed in Table 1; the other hyperparameters in Table 2 were maintained as recommended in Montes Rivera et al. (14). Regarding γ3, it was fixed at 0.5 to assign middle importance to the expected MSE — which ranges between 0 and 1 after the sigmoid transformation — and full importance to the F1-score, also in the range [0,1]. This configuration allows the algorithm to make small adjustments in MSE, which is more sensitive to changes when there are no substantial changes in F1-score, effectively providing a fine-grained optimization signal during the symbolic equation search.

Table 1.

DSRegPSOP hyperparameters and their values used in the grid search.

Hyperparameter Symbol Values
Number of particles n 5, 10, 15
Number of levels nl 1, 2, 3, 4
Number of operators no 1, 2, 3, 4
Number of groups ng 1, 2, 3, 4
Min limit of speed refinement fdmin 1×10−3, 1×10−5, 1×10−10
Max speed expansion factor Smax 4×10−1, 4×10−2, 4×10−3
Min speed expansion factor Smin 1×10−1, 1×10−2, 1×10−3

Table 2.

DSRegPSOP hyperparameters with fixed values.

Hyperparameter Symbol Value
Max function evaluations fvmax 5×104
Cognitive coefficient c1 2.0
Social coefficient c2 2.0
Max inertial momentum Mmax 1.1
Speed refinement factor λ 1.0
Convergence tolerance ζ 1×10−3
Penalty 1 gain γ1 1×10−10
Penalty 2 gain γ2 1×104
Penalty 3 gain γ3 0.5
Operators Lo {÷,+,−,×,∧,sin(),cos(),exp()}
Variables Lv {X, b, e, π }

The operators selected include sine and cosine functions since, according to Fourier and Poisson series, they can represent any function with periodic finite approximations, and overshoot in discontinuities (34). Operators also include the exponential function, since solving a differential equation often involves exponential terms, as its integral is itself (35). For the variables, we used all the features in the dataset X, the constants matrix b, which is a ones matrix with data size to multiply constants, e (the base of natural logarithms), and π.

Each configuration was evaluated using undersample, oversample, SMOTE, Borderline SMOTE, and SMOTEENN balancing techniques. The best configuration was selected based on the highest average F1-score across the folds. The number of configurations evaluated per balancing technique was 1,728 with a total of 8,640 configurations.

The features used were limited to those with a Pearson correlation coefficient greater than 0.05 with the target variable, resulting in a total of 39 features of the 121 in the Tlalpan 2020 Cohort dataset. Then the feature patient record, with a correlation of 0.1630, was removed to avoid dependence on the patient, leaving only 38 features.

This dimensionality reduction step was necessary to make the hyperparameter optimization of DSRegPSOP feasible, as symbolic regression algorithms based on collective intelligence are computationally intensive when operating over high-dimensional feature spaces, rendering a reliable 10-fold cross-validation grid search infeasible with 121 variables.

Pearson correlation was applied as a conservative filter to remove uninformative features, not as a data-driven search for the most predictive subset (36). It is acknowledged as a limitation that this filtering was performed on the entire dataset prior to splitting; however, given the conservative threshold applied and the statistical stability of first-order correlation measures across dataset partitions of this size, the practical impact on model evaluation is considered negligible. Furthermore, DSRegPSOP inherently performs its own feature selection during the equation-building process, as evidenced by the final models using 5-25 features. The list of maintained features based on Pearson correlation coefficients is presented in Table 3.

Table 3.

Features from Tlalpan 2020 Cohort dataset used in the hypertension prediction model.

Variable Feature name Code Pearson correlation
X0 Basal Diastolic Blood Pressure DBP 0.4705
X1 Basal Systolic Blood Pressure SBP 0.4458
X2 Body Mass Index BMI 0.1863
X3 Weight Weight 0.1782
X4 Lack of Air Lackair 0.1639
X5 Waist Size Waistsize 0.1594
X6 HDL Cholesterol HDLcholesterol 0.1327
X7 Leukocytes Number LeukocytesN 0.1324
X8 Sitting Minutes per Day (Low) SittingminsdayLow 0.1298
X9 Neutrophils Number NeutrophilsN 0.1291
X10 Triglycerides Triglycerides 0.1245
X11 Heart Rate Heartrate 0.1234
X12 Sitting Minutes per Day (High) SittingminsdayHigh 0.1172
X13 Glucose Glucose 0.0983
X14 Trait Anxiety (High) TraitanxietyHigh 0.0878
X15 Trait Anxiety Traitanxiety 0.0863
X16 Postgraduate Education Postgraduate 0.0792
X17 Sufficient Sleep Sufficient 0.0782
X18 Lymphocytes Number LymphocytesN 0.0774
X19 Sleep Adequacy Sleepadequacy 0.0768
X20 Trait Anxiety (Low) TraitanxietyLow 0.0762
X21 Hours to Fall Asleep Hoursfallasleep 0.0740
X22 Urine Creatinine Urinecreatinine 0.0724
X23 Monocytes Number MonocytesN 0.0711
X24 Passive Smoker Passivesmoker 0.0674
X25 Father with Hypertension Fatherhypertension 0.0665
X26 Sleep Needed Sleepneeded 0.0613
X27 State Anxiety (Low) StateanxietyLow 0.0612
X28 Atherogenic Index Atherogenicindex 0.0612
X29 Drowsiness Drowsiness 0.0604
X30 Elementary Education Elementary 0.0603
X31 Erythrocytes Erythrocytes 0.0596
X32 Seric Iron Sericiron 0.0584
X33 Mother Smoking Mothersmoking 0.0558
X34 Mother Diabetic Motherdiabetic 0.0554
X35 Hundred Cigarettes Hundredcigarettes 0.0519
X36 Apnea Apnea 0.0515
X37 Uric Acid Uricacid 0.0506

3.1. Undersample results

The parallelplot showing all the conducted experiments for hyperparametrization using undersample balancing technique is shown in Figure 2. The best configuration obtained a mean F1-score of 0.5143, with n=5, nl=1, no=4, ng=4, fdmin=1×10−5, Smax=4×10−1, and Smin=1×10−1. Table 4 shows the results of the 10 best configurations based on mean F1-score.

Figure 2.

Parallel coordinates plot displaying multiple performance metrics and parameters such as mean F1-score, accuracy, precision, recall, specificity, execution time, and configuration variables for a set of data points. Lines are colored from blue to red according to mean F1-score, with lower values in blue and higher values in red, indicating score distribution across parameter combinations. A color bar on the right maps the color gradient to mean F1-score values.

Parallelplot of all the experiments conducted using undersample balancing technique. The best configuration obtained an mean F1-score of 0.5143.

Table 4.

Top 10 configurations based on mean F1-score with 10-fold cross-validation in undersample balancing.

Rank 1 2 3 4 5 6 7 8 9 10
n 5 15 10 15 15 10 10 10 5 10
ng 4 3 1 4 3 4 3 1 2 3
no 4 2 4 3 2 3 1 4 4 2
nl 1 1 1 1 3 1 4 1 1 1
fdmin 1×10−5 1×10−5 1×10−10 1×10−5 1×10−5 1×10−10 1×10−5 1×10−3 1×10−5 1×10−3
S\,factor 1×10−1 1×10−3 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−2
Mean F1-score 0.5143 0.5115 0.5104 0.5077 0.5077 0.5001 0.5001 0.4999 0.4973 0.4971
Mean accuracy 0.7105 0.7158 0.7088 0.7193 0.7228 0.6982 0.7140 0.7088 0.6947 0.7105
Mean precision 0.3904 0.3799 0.3751 0.3797 0.3834 0.3687 0.3892 0.3750 0.3654 0.3775
Mean recall 0.8185 0.8144 0.8369 0.8008 0.7867 0.8274 0.7603 0.7885 0.8268 0.7580
Mean specificity 0.6864 0.6868 0.6732 0.6959 0.7054 0.6618 0.7037 0.6874 0.6609 0.6872
Execution time (s) 535.8445 495.8413 771.9511 515.7275 569.8200 811.2351 577.6133 785.7751 511.8537 502.6398

After obtaining the 10 best hyperparameter configurations, we observed marginal differences among the mean F1-scores across configurations. To evaluate the robustness of the selected hyperparameters, each of the 10 best configurations was trained on the entire training dataset using random seeds [0,1,2,3,4,5,6,7,8,9,10], and the best model was retained. Furthermore, the maximum number of function evaluations was increased from 5×104 during hyperparameter optimization to 5×105 for final model training, allowing the algorithm more iterations to refine the symbolic equation once the optimal hyperparameter region had been identified. This two-stage strategy — coarse optimization followed by extended training — is a well-established practice in evolutionary and swarm intelligence algorithms, where computational resources are concentrated on the most promising configurations rather than uniformly distributed across the entire search space.

The top 10 results from undersample balancing ordered by balanced accuracy are shown in Table 5. The best model achieved a balanced accuracy of 79.23%, recall of 85.19%, specificity of 73.28%, F1-score of 56.79%, accuracy of 75.52%, and AUC-ROC of 81.27% (95% CI: 72.33%–83.87%), with a mean balanced accuracy of 75.75% ± 1.89% across the top 10 configurations. The consistency of hyperparameters across configurations indicates the robustness of the selected setup. Across all configurations explored with undersample balancing, the best individual metric values achieved were: accuracy of 78.32%, precision of 44.44%, recall of 88.89%, specificity of 82.76%, F1-score of 56.79%, balanced accuracy of 79.23%, and AUC-ROC of 82.73%.

Table 5.

Top 10 configurations varying random seed based on balanced accuracy with undersample balancing.

Rank 1 2 3 4 5 6 7 8 9 10 Mean STD Best overall
Seed 1 2 4 2 6 9 3 4 6 6
n 15 10 10 10 15 5 10 15 15 10
ng 4 4 1 1 4 4 3 3 3 1
no 3 3 4 4 3 4 2 2 2 4
nl 1 1 1 1 1 1 1 3 1 1
fdmin 1×10−5 1×10−10 1×10−3 1×10−10 1×10−5 1×10−5 1×10−3 1×10−5 1×10−5 1×10−3
S\,factor 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−2 1×10−1 1×10−3 1×10−1
Accuracy 0.7552 0.7343 0.7483 0.7063 0.7413 0.7762 0.7063 0.6713 0.6923 0.6643 0.7196 0.0372 0.7832
Precision 0.4259 0.4035 0.4151 0.3770 0.4038 0.4419 0.3729 0.3485 0.3607 0.3433 0.3893 0.0337 0.4444
Recall 0.8519 0.8519 0.8148 0.8519 0.7778 0.7037 0.8148 0.8519 0.8148 0.8519 0.8185 0.0477 0.8889
Specificity 0.7328 0.7069 0.7328 0.6724 0.7328 0.7931 0.6810 0.6293 0.6638 0.6207 0.6966 0.0533 0.8276
f1score 0.5679 0.5476 0.5500 0.5227 0.5316 0.5429 0.5116 0.4946 0.5000 0.4894 0.5258 0.0265 0.5679
Balanced accuracy 0.7923 0.7794 0.7738 0.7621 0.7553 0.7484 0.7479 0.7406 0.7393 0.7363 0.7575 0.0189 0.7923
AUC-ROC 0.8127 0.7580 0.8095 0.7725 0.8273 0.7443 0.7478 0.7711 0.7648 0.8020 0.7810 0.0295 0.8273
AUC-ROC 95% CI [0.7233, 0.8387]

The Gaussian approximation of balanced accuracy distribution for the best models varying random seeds is shown in Figure 3, where the balanced accuracy mean is 0.694 and the standard deviation of 0.038, indicating that the model is robust to changes in the random seed.

Figure 3.

Histogram illustrating the distribution of balanced accuracy values, overlaid with a red Gaussian fit curve. The fit has a mean of 0.694 and a standard deviation of 0.038, as indicated in the legend. The x-axis represents balanced accuracy, and the y-axis shows density.

Balanced accuracy distribution of the best model with undersample balancing using different random seeds.

The best model for hypertension prediction based on test balanced accuracy is sigmoid(m0), if sigmoid(m0)>0.5, then hypertension is present with m0 as in Equation 19. Despite the model is one level, we separated it into two terms for better visualization.

m0=12(X6X19+eX11+X3−X15X17−X31eX13−X19X21X33+X20+eX0(X0+X21)X32+|X6X19+eX11+X3−X15X17−X31eX13−X19X21X33+X20+eX0(X0+X21)X32|) (19)

The best features based on balanced accuracy obtained during the training of the model are Basal Diastolic Blood Pressure X0, Weight X3, HDL Cholesterol X6, Heart Rate X11, Glucose X13, Trait Anxiety X15, Sufficient Sleep X17, Sleep Adequacy X19, Trait Anxiety (Low) X20, Hours to Fall Asleep X21, Erythrocytes X31, Seric Iron X32, and Mother Smoking X33. Therefore, the model uses 13 of the 38 features provided to predict hypertension and incorporates both physiological and lifestyle factors.

3.2. Oversample results

The parallelplot showing all the conducted experiments for hyperparametrization using oversample balancing technique is shown in Figure 4. The best configuration obtained a mean F1-score of 0.5151, with n=15, nl=3, no=4, ng=4, fdmin=1×10−3, Smax=4×10−1, and Smin=1×10−1. Table 6 shows the results of the 10 best configurations based on mean F1-score.

Figure 4.

Parallel coordinates plot displaying multiple performance and configuration metrics for models, with axes representing mean F1-score, fdmin, groups, operators, n_part, nlvls, smultijle, mean accuracy, mean precision, mean recall, mean specificity, and execution time. Lines are color-coded from blue to red by mean F1-score, with a color bar legend on the right.

Parallelplot of all the experiments conducted using oversample balancing technique.

Table 6.

Top 10 configurations based on mean F1-score with 10-fold cross-validation in oversample balancing.

Rank 1 2 3 4 5 6 7 8 9 10
n 15 15 5 15 5 5 15 10 10 10
ng 4 4 4 4 2 3 4 4 3 4
no 4 2 2 1 2 2 2 1 4 2
nl 3 3 1 2 1 1 1 1 2 2
fdmin 1×10−3 1×10−3 1×10−5 1×10−5 1×10−10 1×10−10 1×10−10 1×10−10 1×10−5 1×10−10
S\,factor 1×10−1 1×10−2 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−1 1×10−3 1×10−2
Mean F1-score 0.5151 0.5146 0.5064 0.5038 0.5025 0.5024 0.5022 0.5012 0.4990 0.4988
Mean accuracy 0.7351 0.7368 0.7456 0.7386 0.7035 0.7333 0.7491 0.7333 0.7105 0.7211
Mean precision 0.4018 0.4005 0.4065 0.3953 0.3668 0.3814 0.4014 0.3907 0.3779 0.3829
Mean recall 0.7516 0.7595 0.7124 0.7318 0.8263 0.7534 0.7138 0.7185 0.7885 0.7572
Mean specificity 0.7249 0.7306 0.7436 0.7276 0.6706 0.7205 0.7506 0.7272 0.6934 0.7116
Execution time (s) 817.10 728.10 620.13 639.04 593.38 607.31 618.47 614.22 708.80 682.08

After obtaining the 10 best hyperparameter configurations we trained each of the best 10 configurations with the entire training dataset and [0,1,2,3,4,5,6,7,8,9,10] random seeds again to evaluate robustness of the selected hyperparameters and maintained the best model. Once again, the maximum number of function evaluations was increased from 5×104 during hyperparameter optimization to 5×105 for final model training, allowing the algorithm more iterations to refine the symbolic equation once the optimal hyperparameter region had been identified.

The top 10 results from oversample balancing ordered by balanced accuracy are shown in Table 7. The best model achieved a balanced accuracy of 77.94%, recall of 85.19%, specificity of 70.69%, F1-score of 54.76%, accuracy of 73.43%, and AUC-ROC of 77.04% (95% CI: 74.67%–80.66%), with a mean balanced accuracy of 75.30% ± 1.32% across the top 10 configurations. The consistency of hyperparameters across configurations indicates the robustness of the selected setup. Across all configurations explored with oversample balancing, the best individual metric values achieved were: accuracy of 78.32%, precision of 45.45%, recall of 88.89%, specificity of 79.31%, F1-score of 56.34%, balanced accuracy of 77.94%, and AUC-ROC of 83.27%.

Table 7.

Top 10 configurations varying random seed based on balanced accuracy with oversample balancing.

Rank 1 2 3 4 5 6 7 8 9 10 Mean STD Best overall
Seed 5 1 3 7 3 2 6 9 0 8
n 15 5 15 10 10 10 15 15 5 5
ng 4 2 4 4 4 4 4 4 3 2
no 2 2 2 1 2 1 2 2 2 2
nl 3 1 3 1 2 1 3 1 1 1
fdmin 1×10−3 1×10−10 1×10−3 1×10−10 1×10−10 1×10−10 1×10−3 1×10−10 1×10−10 1×10−10
S\,factor 1×10−2 1×10−1 1×10−2 1×10−1 1×10−2 1×10−1 1×10−2 1×10−1 1×10−1 1×10−1
accuracy 0.7343 0.7832 0.7343 0.7622 0.7552 0.7273 0.6993 0.7203 0.7413 0.7413 0.7399 0.0233 0.7832
precision 0.4035 0.4545 0.4000 0.4255 0.4167 0.3889 0.3667 0.3818 0.4000 0.4000 0.4038 0.0244 0.4545
recall 0.8519 0.7407 0.8148 0.7407 0.7407 0.7778 0.8148 0.7778 0.7407 0.7407 0.7741 0.0408 0.8889
specificity 0.7069 0.7931 0.7155 0.7672 0.7586 0.7155 0.6724 0.7069 0.7414 0.7414 0.7319 0.0353 0.7931
f1score 0.5476 0.5634 0.5366 0.5405 0.5333 0.5185 0.5057 0.5122 0.5195 0.5195 0.5297 0.0178 0.5634
balanced accuracy 0.7794 0.7669 0.7652 0.7540 0.7497 0.7466 0.7436 0.7424 0.7411 0.7411 0.7530 0.0132 0.7794
AUC-ROC 0.7704 0.7851 0.8019 0.7626 0.7894 0.7609 0.7944 0.7593 0.7653 0.7771 0.7766 0.0153 0.8327
AUC-ROC 95% CI [0.7467, 0.8066]

The Gaussian approximation of balanced accuracy distribution for the best models varying random seeds is shown in Figure 5, where the accuracy mean is 0.691 and the standard deviation of 0.039, indicating that the model is robust to changes in the random seed.

Figure 5.

Histogram showing balanced accuracy distribution with a superimposed red Gaussian fit curve. The fit has mean 0.691 and standard deviation 0.039, as indicated in the legend. X-axis: balanced accuracy, y-axis: density.

Balanced accuracy distribution of the best model with oversample balancing using different random seeds.

The best model for hypertension prediction based on test balanced accuracy is sigmoid(m2), with m0, m1, and m2 as in Equations 20, 21, and 22, respectively. If sigmoid(m2)>0.5, then hypertension is present. The model has three levels; each level is presented in a separate equation for better visualization.

m0=12(X1cos⁡(X29)+X9)[|X2+X4+cos⁡(X5)−(X1cos⁡(X29)+X9)(X13X28cos⁡(X7)+eX31+sin⁡(X7)X23)|−(X1cos⁡(X29)+X9)(X13X28cos⁡(X7)+eX31+sin⁡(X7)X23)+X2+X4+cos⁡(X5)] (20)
m1=12(X20+cosX15⁡(m0))[X9X20sin⁡(X24)+|X9X20sin⁡(X24)+(X20+cosX15⁡(m0))(−X18X28+X28−eX14X37eX26)|+(X20+cosX15⁡(m0))(−X18X28+X28−eX14X37eX26)] (21)
m2=12X16(X29−m1sin⁡(X33))[|X16(X25+eX14+X15−sin⁡(X22))(X29−m1sin⁡(X33))+X16(X0eX30+X21)−(X29−m1sin⁡(X33))cos⁡(X30)|−X16(X25+eX14+X15−sin⁡(X22))(X29−m1sin⁡(X33))−X16(X0eX30+X21)+(X29−m1sin⁡(X33))cos⁡(X30)] (22)

The model for hypertension prediction is sigmoid(m2), with m2 as in Equation 22, m1 as in Equation 21, and m0 as in Equation 20. If sigmoid(m2)>0.5, then hypertension is present. The best features obtained during the training of the model are Basal Diastolic Blood Pressure X0, Basal Systolic Blood Pressure X1, Body Mass Index X2, Lack of Air X4, Waist Size X5, Leukocytes Number X7, Neutrophils Number X9, Glucose X13, Trait Anxiety (High) X14, Trait Anxiety X15, Postgraduate Education X16, Lymphocytes Number X18, Trait Anxiety (Low) X20, Hours to Fall Asleep X21, Urine Creatinine X22, Monocytes Number X23, Passive Smoker X24, Father with Hypertension X25, Sleep Needed X26, Atherogenic Index X28, Drowsiness X29, Elementary Education X30, Erythrocytes X31, Mother Smoking X33, and Uric Acid X37. Therefore, the model uses 25 of the 38 features provided to predict hypertension and incorporates both physiological and lifestyle factors.

3.3. SMOTE results

The parallelplot showing all the conducted experiments for hyperparametrization using smote balancing technique is shown in Figure 6.

Figure 6.

Parallel coordinates plot visualizing multiple features including mean F1-score, fdmin, groups, operators, n_part, nlvls, smultple, mean accuracy, mean precision, mean recall, mean specificity, and execution time. Lines are colored from blue to red based on mean F1-score values, with blue representing lower values and red indicating higher values as shown by the colorbar. Black vertical axes with labeled ticks display the scale for each feature.

Parallelplot of all the experiments conducted using smote balancing technique.

The best configuration obtained a mean F1-score of 0.5118, with n=5, nl=3, no=1, ng=3, fdmin=1×10−3, Smax=4×10−3, and Smin=1×10−3. Table 8 shows the results of the 10 best configurations based on mean F1-score.

Table 8.

Top 10 configurations based on mean F1-score with 10-fold cross-validation in smote balancing.

Rank 1 2 3 4 5 6 7 8 9 10
n 5 15 15 15 10 10 5 15 15 10
ng 3 3 2 3 3 2 4 2 3 3
no 1 2 2 4 1 4 2 2 2 1
nl 3 1 3 1 2 4 2 4 1 3
fdmin 1×10−3 1×10−3 1×10−10 1×10−10 1×10−10 1×10−3 1×10−5 1×10−3 1×10−10 1×10−10
S\,factor 1×10−3 1×10−2 1×10−3 1×10−1 1×10−1 1×10−2 1×10−2 1×10−1 1×10−1 1×10−2
Mean F1-score 0.5118 0.4940 0.4891 0.4859 0.4851 0.4841 0.4836 0.4827 0.4824 0.4817
Mean accuracy 0.7263 0.7105 0.7228 0.7298 0.7263 0.7333 0.7193 0.7351 0.7333 0.7246
Mean precision 0.3998 0.3744 0.3793 0.3813 0.3779 0.3761 0.3753 0.3831 0.3848 0.3829
Mean recall 0.7853 0.7789 0.7357 0.7050 0.7073 0.7049 0.7319 0.6812 0.6784 0.6951
Mean specificity 0.7157 0.6969 0.7198 0.7292 0.7212 0.7313 0.7168 0.7398 0.7393 0.7306
Execution time (s) 654.77 611.44 636.44 623.00 614.05 735.26 661.24 663.43 615.21 654.80

After obtaining the 10 best hyperparameter configurations for smote we trained with the entire training dataset and [0,1,2,3,4,5,6,7,8,9,10] random seeds again to evaluate robustness of the selected hyperparameters and maintained the best model. Once again, the maximum number of function evaluations was increased from 5×104 during hyperparameter optimization to 5×105 for final model training, allowing the algorithm more iterations to refine the symbolic equation once the optimal hyperparameter region had been identified.

The top 10 results from SMOTE balancing ordered by balanced accuracy are shown in Table 9. The best model achieved a balanced accuracy of 77.81%, recall of 81.48%, specificity of 74.14%, F1-score of 55.70%, accuracy of 75.52%, and AUC-ROC of 77.12% (95% CI: 68.69%–85.54%), with a mean balanced accuracy of 74.57% ± 1.53% across the top 10 configurations. The consistency of hyperparameters across configurations indicates the robustness of the selected setup. Across all configurations explored with SMOTE balancing, the best individual metric values achieved were: accuracy of 81.82%, precision of 51.72%, recall of 85.19%, specificity of 87.93%, F1-score of 56.25%, balanced accuracy of 77.81%, and AUC-ROC of 86.91%.

Table 9.

Top 10 configurations varying random seed based on balanced accuracy with smote balancing.

Rank 1 2 3 4 5 6 7 8 9 10 Mean STD Best overall
Seed 6 3 10 2 5 4 6 4 6 3
n 15 5 15 15 5 5 15 15 5 10
ng 3 4 2 3 4 4 2 3 4 3
no 4 2 2 2 2 2 2 2 2 1
nl 1 2 4 1 2 2 4 1 2 2
fdmin 1×10−10 1×10−5 1×10−3 1×10−10 1×10−5 1×10−5 1×10−3 1×10−3 1×10−5 1×10−10
S\,factor 1×10−1 1×10−2 1×10−1 1×10−1 1×10−2 1×10−2 1×10−1 1×10−2 1×10−2 1×10−1
accuracy 0.7552 0.7343 0.8042 0.7692 0.7902 0.7413 0.7552 0.7762 0.7273 0.6573 0.7510 0.0409 0.8182
precision 0.4231 0.4000 0.4865 0.4318 0.4615 0.4000 0.4130 0.4390 0.3846 0.3382 0.4178 0.0414 0.5172
recall 0.8148 0.8148 0.6667 0.7037 0.6667 0.7407 0.7037 0.6667 0.7407 0.8519 0.7370 0.0686 0.8519
specificity 0.7414 0.7155 0.8362 0.7845 0.8190 0.7414 0.7672 0.8017 0.7241 0.6121 0.7543 0.0643 0.8793
f1score 0.5570 0.5366 0.5625 0.5352 0.5455 0.5195 0.5205 0.5294 0.5063 0.4842 0.5297 0.0234 0.5625
balanced accuracy 0.7781 0.7652 0.7514 0.7441 0.7428 0.7411 0.7355 0.7342 0.7324 0.7320 0.7457 0.0153 0.7781
AUC-ROC 0.7712 0.8691 0.7633 0.7356 0.7261 0.7656 0.7363 0.7527 0.7746 0.8167 0.7711 0.0430 0.8691
AUC-ROC 95% CI [0.6869, 0.8554]

The Gaussian approximation of balanced accuracy distribution for the best models varying random seeds is shown in Figure 7, where the accuracy mean is 0.689 and the standard deviation of 0.038, indicating that the model is robust to changes in the random seed.

Figure 7.

Histogram showing the distribution of balanced accuracy values with a superimposed red Gaussian fit curve. The mean is 0.689 and standard deviation is 0.038 according to the legend.

Balanced accuracy distribution of the best model with smote balancing using different random seeds.

The best model for hypertension prediction based on test balanced accuracy is sigmoid(m0), where m0 is defined in Equation 23. If sigmoid(m0)>0.5, hypertension is predicted as present. Although the model has one level, we separated it into four levels for better visualization.

m0=12[X22X9sin⁡(X26)+X25+(X0+X21)X21.+|X22X9sin⁡(X26)+X25+(X0+X21)X21.−eX17+eπX1−sin⁡(X0−cos⁡(X15)+e−X25X11)|−eX17+eπX1−sin⁡(X0−cos⁡(X15)+e−X25X11)] (23)

The best features obtained during the training of the model are Basal Diastolic Blood Pressure X0, Basal Systolic Blood Pressure X1, Neutrophils Number X9, Heart Rate X11, Trait Anxiety X15, Sufficient Sleep X17, Hours to Fall Asleep X21, Urine Creatinine X22, Father with Hypertension X25, and Sleep Needed X26. Therefore, the model uses 10 of the 38 features provided to predict hypertension and incorporates both physiological and lifestyle factors.

3.4. Borderline SMOTE results

The parallelplot showing all the conducted experiments for hyperparametrization using borderline smote balancing technique is shown in Figure 8.

Figure 8.

Parallel coordinates plot visualizing relationships among variables such as mean F1-score, fdmin, groups, number of operators, n_part, nlvls, smultiple, mean accuracy, precision, recall, specificity, and execution time, with lines colored from blue to red based on mean F1-score values.

Parallelplot of all the experiments conducted using borderline smote balancing technique.

The best configuration obtained a mean F1-score of 0.5163, with n=10, nl=4, no=3, ng=1, fdmin=1×10−10, Smax=4×10−1, and Smin=1×10−3. Table 10 shows the results of the 10 best configurations based on mean F1-score.

Table 10.

Top 10 configurations based on mean F1-score with 10-fold cross-validation in borderline-smote balancing.

Rank 1 2 3 4 5 6 7 8 9 10
n 10 5 10 10 5 5 15 10 15 10
ng 1 4 1 4 2 4 3 3 3 1
no 3 1 4 1 2 4 1 1 4 2
nl 4 2 2 2 1 1 3 3 1 2
fdmin 1×10−10 1×10−10 1×10−5 1×10−3 1×10−5 1×10−10 1×10−5 1×10−5 1×10−3 1×10−5
S\,factor 1×10−3 1×10−2 1×10−2 1×10−1 1×10−2 1×10−1 1×10−3 1×10−1 1×10−3 1×10−1
mean F1-score 0.5163 0.4982 0.4977 0.4915 0.4913 0.4900 0.4898 0.4893 0.4890 0.4890
mean accuracy 0.7491 0.7333 0.7316 0.7439 0.7561 0.7404 0.7351 0.7509 0.7246 0.7474
mean precision 0.4214 0.3960 0.3877 0.3896 0.4120 0.3828 0.3925 0.3932 0.3781 0.3764
mean recall 0.7024 0.7014 0.7386 0.6909 0.6512 0.7025 0.7062 0.6634 0.7205 0.7237
mean specificity 0.7572 0.7347 0.7305 0.7463 0.7719 0.7462 0.7432 0.7625 0.7199 0.7389
execution time (s) 649.74 654.86 614.54 640.70 649.74 640.17 654.25 653.45 593.89 716.51

After obtaining the 10 best hyperparameter configurations for borderline-smote we trained with the entire training dataset and [0,1,2,3,4,5,6,7,8,9,10] random seeds again to evaluate robustness of the selected hyperparameters and maintained the best model. Once again, the maximum number of function evaluations was increased from 5×104 during hyperparameter optimization to 5×105 for final model training, allowing the algorithm more iterations to refine the symbolic equation once the optimal hyperparameter region had been identified.

The top 10 results from Borderline-SMOTE balancing ordered by balanced accuracy are shown in Table 11. The best model achieved a balanced accuracy of 77.43%, recall of 70.37%, specificity of 84.48%, F1-score of 59.38%, accuracy of 81.82%, and AUC-ROC of 77.33% (95% CI: 71.45%–81.47%), with a mean balanced accuracy of 75.80% ± 0.93% across the top 10 configurations. The consistency of hyperparameters across configurations indicates the robustness of the selected setup. Across all configurations explored with Borderline-SMOTE balancing, the best individual metric values achieved were: accuracy of 81.82%, precision of 51.35%, recall of 81.48%, specificity of 86.21%, F1-score of 59.38%, balanced accuracy of 77.43%, and AUC-ROC of 81.66%.

Table 11.

Top 10 configurations varying random seed based on balanced accuracy with borderline-smote balancing.

Rank 1 2 3 4 5 6 7 8 9 10 Mean STD Best overall
Seed 7 9 10 10 6 8 7 1 10 4
n 5 10 10 5 10 10 10 15 10 10
ng 2 1 1 4 1 3 1 3 1 1
no 2 4 2 1 4 1 3 1 3 4
nl 1 2 2 2 2 3 4 3 4 2
fdmin 1×10−5 1×10−5 1×10−5 1×10−10 1×10−5 1×10−5 1×10−10 1×10−5 1×10−10 1×10−5
S\,factor 1×10−2 1×10−2 1×10−1 1×10−2 1×10−2 1×10−1 1×10−3 1×10−3 1×10−3 1×10−2
accuracy 0.8182 0.8042 0.8042 0.7762 0.7972 0.8112 0.7832 0.7063 0.7063 0.7273 0.7734 0.0436 0.8182
precision 0.5135 0.4872 0.4872 0.4444 0.4750 0.5000 0.4524 0.3729 0.3729 0.3889 0.4494 0.0533 0.5135
recall 0.7037 0.7037 0.7037 0.7407 0.7037 0.6667 0.7037 0.8148 0.8148 0.7778 0.7333 0.0518 0.8148
specificity 0.8448 0.8276 0.8276 0.7845 0.8190 0.8448 0.8017 0.6810 0.6810 0.7155 0.7828 0.0655 0.8621
f1score 0.5938 0.5758 0.5758 0.5556 0.5672 0.5714 0.5507 0.5116 0.5116 0.5185 0.5532 0.0296 0.5938
balanced accuracy 0.7743 0.7656 0.7656 0.7626 0.7613 0.7557 0.7527 0.7479 0.7479 0.7466 0.7580 0.0093 0.7743
AUC-ROC 0.7733 0.7621 0.7561 0.8166 0.7698 0.7561 0.7308 0.7383 0.7939 0.7490 0.7646 0.0256 0.8166
AUC-ROC 95% CI [0.7145, 0.8147]

The Gaussian approximation of balanced accuracy distribution for the best models varying random seeds is shown in Figure 9, where the accuracy mean is 0.696 and the standard deviation of 0.041, indicating that the model is robust to changes in the random seed.

Figure 9.

Histogram showing the distribution of balanced accuracy values with a superimposed red Gaussian fit curve. The normal fit has a mean of 0.696 and standard deviation of 0.041. The x-axis is labeled Balanced Accuracy, and the y-axis is labeled Density. A legend in the upper left describes the Gaussian fit parameters.

Balanced accuracy distribution of the best model with borderline-smote balancing using different random seeds.

The hypertension prediction model is sigmoid(m0), where m0 is defined in Equation 24 as the positive part of X0π+X11+X15eX13−X17. If sigmoid(m0)>0.5, hypertension is predicted as present.

m0=X0π+X11+X15eX13−X17+|X0π+X11+X15eX13−X17|2 (24)

The features used in Equation 24 are Basal Diastolic Blood Pressure X0, Heart Rate X11, Glucose X13, Trait Anxiety X15, and Sufficient Sleep X17. Therefore, the model uses 5 of the 38 features provided to predict hypertension and incorporates both physiological and lifestyle factors.

3.5. SMOTEENN results

The parallelplot showing all the conducted experiments for hyperparametrization using smoteenn balancing technique is shown in Figure 10.

Figure 10.

Parallel coordinates plot comparing multiple variables including mean F1-score, fdmin, groups, operators, n_part, nlvls, smultpie, mean accuracy, mean precision, mean recall, mean specificity, and execution time. Each line represents an observation, colored from blue to red based on mean F1-score, with blue indicating lower values and red higher values. A color bar on the right shows the F1-score scale. Each axis is labeled with variable name and tick values in blue.

Parallelplot of all the experiments conducted using smoteenn balancing technique.

The best configuration obtained a mean F1-score of 0.4726, with n=5, nl=1, no=3, ng=2, fdmin=1×10−5, Smax=4×10−1, and Smin=1×10−1. Table 12 shows the results of the 10 best configurations based on mean F1-score.

Table 12.

Top 10 configurations based on mean F1-score with 10-fold cross-validation in smoteenn balancing.

Rank 1 2 3 4 5 6 7 8 9 10
n 5 10 5 5 5 10 10 10 15 5
ng 2 3 1 4 2 2 4 4 3 3
no 3 3 4 3 2 4 4 2 1 3
nl 1 1 3 1 1 1 4 3 2 4
fdmin 1×10−5 1×10−5 1×10−10 1×10−3 1×10−3 1×10−3 1×10−10 1×10−5 1×10−3 1×10−3
S\,factor 1×10−1 1×10−2 1×10−1 1×10−1 1×10−2 1×10−1 1×10−3 1×10−2 1×10−1 1×10−1
mean F1-score 0.4726 0.4596 0.4575 0.4572 0.4545 0.4537 0.4522 0.4522 0.4517 0.4510
mean accuracy 0.6632 0.6649 0.6474 0.6772 0.6368 0.6579 0.6807 0.6842 0.6614 0.6579
mean precision 0.3382 0.3386 0.3301 0.3403 0.3270 0.3422 0.3434 0.3415 0.3259 0.3332
mean recall 0.8263 0.7606 0.7992 0.7355 0.8075 0.7630 0.7199 0.7077 0.7700 0.7640
mean specificity 0.6220 0.6390 0.6131 0.6552 0.5931 0.6311 0.6716 0.6783 0.6337 0.6348
execution time (s) 557.85 752.97 583.32 557.07 527.02 742.83 775.01 959.95 545.31 697.94

After obtaining the 10 best hyperparameter configurations for smoteenn we trained with the entire training dataset and [0,1,2,3,4,5,6,7,8,9,10] random seeds again to evaluate robustness of the selected hyperparameters and maintained the best model. Once again, the maximum number of function evaluations was increased from 5×104 during hyperparameter optimization to 5×105 for final model training, allowing the algorithm more iterations to refine the symbolic equation once the optimal hyperparameter region had been identified.

The top 10 results from SMOTEENN balancing ordered by balanced accuracy are shown in Table 13. The best model achieved a balanced accuracy of 72.08%, recall of 77.78%, specificity of 66.38%, F1-score of 48.28%, accuracy of 68.53%, and AUC-ROC of 73.18% (95% CI: 63.87%–83.07%), with a mean balanced accuracy of 69.89% ± 1.23% across the top 10 configurations. The consistency of hyperparameters across configurations indicates the robustness of the selected setup. Across all configurations explored with SMOTEENN balancing, the best individual metric values achieved were: accuracy of 68.53%, precision of 35.00%, recall of 92.59%, specificity of 66.38%, F1-score of 48.28%, balanced accuracy of 72.08%, and AUC-ROC of 82.55%.

Table 13.

Top 10 configurations varying random seed based on balanced accuracy with SMOTEENN balancing.

Rank 1 2 3 4 5 6 7 8 9 10 Mean STD Best overall
Seed 4 4 8 0 5 8 6 10 9 2
n 10 5 5 10 5 15 10 10 15 10
ng 4 4 2 3 2 3 4 2 3 4
no 2 3 2 3 2 1 4 4 1 4
nl 3 1 1 1 1 2 4 1 2 4
fdmin 1×10−5 1×10−3 1×10−3 1×10−5 1×10−3 1×10−3 1×10−10 1×10−3 1×10−3 1×10−10
S\,factor 1×10−2 1×10−1 1×10−2 1×10−2 1×10−2 1×10−1 1×10−3 1×10−1 1×10−1 1×10−3
accuracy 0.6853 0.6084 0.5734 0.6503 0.6434 0.6434 0.6643 0.5664 0.5594 0.6503 0.6245 0.0445 0.6853
precision 0.3500 0.3117 0.2976 0.3231 0.3182 0.3182 0.3279 0.2892 0.2857 0.3175 0.3139 0.0192 0.3500
recall 0.7778 0.8889 0.9259 0.7778 0.7778 0.7778 0.7407 0.8889 0.8889 0.7407 0.8185 0.0708 0.9259
specificity 0.6638 0.5431 0.4914 0.6207 0.6121 0.6121 0.6466 0.4914 0.4828 0.6293 0.5793 0.0700 0.6638
f1score 0.4828 0.4615 0.4505 0.4565 0.4516 0.4516 0.4545 0.4364 0.4324 0.4444 0.4522 0.0139 0.4828
balanced accuracy 0.7208 0.7160 0.7087 0.6992 0.6949 0.6949 0.6936 0.6901 0.6858 0.6850 0.6989 0.0123 0.7208
AUC-ROC 0.7318 0.7238 0.7912 0.6823 0.6804 0.7739 0.6944 0.8255 0.7011 0.6944 0.7347 0.0490 0.8255
AUC-ROC 95% CI [0.6387, 0.8307]

The Gaussian approximation of balanced accuracy distribution for the best models varying random seeds is shown in Figure 11, where the accuracy mean is 0.644 and the standard deviation of 0.031, indicating that the model is robust to changes in the random seed.

Figure 11.

Histogram showing the distribution of balanced accuracy values, overlaid with a red Gaussian fit line. The normal fit has mean 0.644 and standard deviation 0.031.

Balanced accuracy distribution of the best model with SMOTEENN balancing using different random seeds.

The hypertension prediction model is sigmoid(m2), where m0, m1, and m2 are intermediate functions defined in Equations 25, 26, and 27 respectively. If sigmoid(m2)>0.5, hypertension is predicted as present.

m0=X15+X16sin⁡(X18)+(X0−X37exp⁡(X21))sin⁡(X33+cos⁡(X30X5))+exp⁡(X19πX12) (25)
m1=X15+X26sinX0⁡(X14)sin⁡(X24)+X33+em0−eX26X4+cos⁡(X26) (26)
m2=X15eX27X29+(X14−X31X7)sin⁡(X12X1eX33)+em0m1+sin⁡(X31) (27)

The features used in the model are derived from Equations 25, 26, and 27 for m0, m1, and m2, respectively, and include Basal Diastolic Blood Pressure X0, Basal Systolic Blood Pressure X1, Lack of Air X4, Waist Size X5, Leukocytes Number X7, Sitting Minutes per Day (High) X12, Trait Anxiety (High) X14, Trait Anxiety X15, Postgraduate Education X16, Lymphocytes Number X18, Sleep Adequacy X19, Hours to Fall Asleep X21, Passive Smoker X24, Sleep Needed X26, State Anxiety (Low) X27, Drowsiness X29, Elementary Education X30, Mother Smoking X33, and Uric Acid X37. Therefore, the model uses 19 of the 38 features provided to predict hypertension and incorporates a hierarchical structure combining physiological, lifestyle, and psychological factors.

4. Discussion

4.1. Quantitative and computational modeling implications

We have developed five hypertension prediction models using different data balancing techniques: Undersample (blue), Oversample (orange), SMOTE (green), Borderline-SMOTE (red), and SMOTEENN (purple). Each model was optimized through hyperparameter tuning and evaluated for robustness across multiple random seeds (37–39). Across all configurations and balancing strategies, the best individual metric values achieved were: accuracy of 81.82% (SMOTE), precision of 51.72% (SMOTE), recall of 92.59% (SMOTEENN), specificity of 87.93% (SMOTE), F1-score of 59.38% (Borderline-SMOTE), balanced accuracy of 79.23% (Undersample), and AUC-ROC of 86.91% (SMOTE). Figure 12 shows the boxplot comparing the balanced accuracy distributions of all balancing techniques.

Figure 12.

Boxplot graphic comparing balanced accuracy distributions for five resampling methods: undersample, oversample, SMOTE, borderline, and SMOTEEN. Each method displays individual data points, medians, quartiles, and outliers, with SMOTEEN showing the lowest median accuracy and borderline the highest.

Boxplot comparing the balanced accuracy distributions using different balancing techniques.

It is important to note that higher accuracy does not necessarily reflect better clinical performance under class imbalance. This is particularly evident when comparing metrics across balancing strategies: models that achieve high accuracy and specificity often do so at the expense of recall. For instance, the Borderline-SMOTE strategy yields the highest accuracy of 81.82% and specificity of 87.93%, but with a recall of only 70.37%, indicating a decision boundary biased toward correctly identifying non-hypertensive cases — the majority class. In contrast, the Undersample strategy, which achieves the best balanced accuracy of 79.23%, maintains a recall of 85.19% while accepting a lower specificity of 73.28%, reflecting a more appropriate trade-off for a clinical screening context where missing hypertensive cases carries greater risk than false alarms.

Although balancing techniques are applied exclusively during training to encourage the model to assign comparable importance to both classes, the test set preserves the original class distribution of the Tlalpan 2020 Cohort, which has a higher incidence of non-hypertensive samples (4:1 ratio). Consequently, despite the balancing effort, models evaluated solely on test accuracy tend to favor the majority class. This is precisely why balanced accuracy was adopted as the primary evaluation metric: it accounts for class imbalance by averaging sensitivity and specificity, penalizing models that disproportionately favor one class.

When evaluated by balanced accuracy, Borderline-SMOTE (32, 40), Undersample, Oversample, and SMOTE achieved comparable median balanced accuracies of 70.12%, 69.67%, 69.28%, and 69.05%, respectively, with no statistically significant differences among them (Holm-adjusted p>0.05, see Tables 14 and 15). Only SMOTEENN showed consistently lower performance, with a median balanced accuracy of 64.02%. The best individual model achieved a balanced accuracy of 79.23% using the Undersample strategy, with recall of 85.19%, specificity of 73.28%, F1-score of 56.79%, accuracy of 75.52%, and AUC-ROC of 81.27%.

Table 14.

Balanced accuracy summary by resampling method.

Resampling method n Mean Std Median
Borderline-SMOTE 110 0.695778 0.040951 0.701229
Undersample 110 0.694240 0.037929 0.696679
Oversample 110 0.690739 0.038884 0.692768
SMOTE 110 0.688628 0.037613 0.690453
SMOTEENN 110 0.643545 0.030527 0.640166

Table 15.

Post-hoc one-sided Mann–Whitney U tests (Holm-corrected) comparing Borderline-SMOTE against each other method based on balanced accuracy.

Borderline-SMOTE > pone-sided pHolm α<0.05 MedianBL Medianother
SMOTEENN 1.24×10−18 4.95×10−18 True 0.70 0.64
SMOTE 6.10×10−2 1.83×10−1 False 0.70 0.69
Oversample 1.37×10−1 2.73×10−1 False 0.70 0.69
Undersample 2.80×10−1 2.80×10−1 False 0.70 0.70

Table 14 summarizes accuracy statistics for each resampling method. The methods are sorted by mean balanced accuracy.

The Kruskal–Wallis statistic test allows determining whether there are statistically significant differences between the medians of three or more independent groups. In our case, we used it to compare the balanced accuracy distributions of the five resampling methods. The test yielded a significant result (H=124.276609, p=6.515835×10−26), indicating that at least one method’s balanced accuracy distribution differs from the others. The Kruskal–Wallis statistic is computed from rank sums as H=12N(N+1)∑i=1kRi2ni−3(N+1), where N is the total number of observations, k is the number of groups, ni is the sample size of group i, and Ri is the sum of ranks for group i. Under the null hypothesis, H∼χk−12 approximately, i.e., the distribution of H follows a chi-squared distribution with k−1 degrees of freedom.

Given the significant global result, we conducted post-hoc pairwise comparisons using one-sided Mann–Whitney U tests (testing whether Borderline-SMOTE > other methods). Borderline-SMOTE was selected as the reference method for this comparison as it achieved the highest mean balanced accuracy of 69.58% across all 110 configurations. Mann–Whitney U tests are non-parametric tests used to compare differences between two independent groups when the dependent variable is either ordinal or continuous, but not normally distributed. We applied Holm correction to control the family-wise error rate (41, 42). As shown in Table 15, Borderline-SMOTE significantly outperformed only SMOTEENN (Holm-adjusted p=4.95×10−18), while no statistically significant differences were found between Borderline-SMOTE and SMOTE (p=1.83×10−1), Oversample (p=2.73×10−1), or Undersample (p=2.80×10−1), suggesting that these four strategies yield comparable balanced accuracy distributions.

To identify important features in the prediction models, we present a radar plot with features used per model in Figure 13. This plot illustrates the relevance of each feature across the different models, highlighting which features are consistently important for hypertension prediction. Notably, the 20 most relevant features across all models are Basal Diastolic Blood Pressure X0, Trait Anxiety X15, Hours to Fall Asleep X21, Heart Rate X11, Glucose X13, Sufficient Sleep X17, Mother Smoking X33, Basal Systolic Blood Pressure X1, Sleep Needed X26, Sleep Adequacy X19, Trait Anxiety (Low) X20, Erythrocytes X31, Lack of Air X4, Waist Size X5, Leukocytes Number X7, Neutrophils Number X9, Trait Anxiety (High) X14, Postgraduate Education X16, Lymphocytes Number X18, and Urine Creatinine X22.

Figure 13.

Radar chart illustrating variable selection frequencies (0–5) for different sampling methods. Colored bars represent Undersample (blue), Oversample (yellow), SMOTE (green), Borderline-SMOTE (red), and SMOTEENN (purple), with variables labeled X0 to X37 arranged circularly, and a legend clarifying color coding.

Radar plot showing the relevance of features used in different models.

The features found with DSRegPSOP models highlight key determinants of hypertension and, when considered jointly, support the identification of integrated clinical risk profiles to improve targeted screening and early preventive strategies (43–45).

Additionally, to validate the implicit feature selection performed by DSRegPSOP, we analyze feature importance in the Tlalpan 2020 dataset using the top-20 variables identified by three established feature selection methods — LASSO, Mutual Information, and Random Forest (Table 16). Variables marked with ⋆ correspond to those appearing in at least one of the symbolic equations generated by DSRegPSOP across the five balancing strategies. As shown, DSRegPSOP achieves 60%, 50%, and 70% coincidences with LASSO, Mutual Information, and Random Forest, respectively, demonstrating that the variables implicitly selected by symbolic regression are consistent with those identified by dedicated feature selection techniques. This result confirms that DSRegPSOP correctly identifies clinically relevant predictors of hypertension without requiring an explicit preprocessing feature selection stage, which is typically necessary for algorithms with rigid structures such as Artificial Neural Networks or Support Vector Machines.

Table 16.

Top-20 variables ranked by LASSO, Mutual Information (MI), and Random Forest (RF). Entries marked with ⋆ indicate variables that appear in DSRegPSOP models.

Rank LASSO Mutual Information Random Forest
1 X0 ⋆ X0 ⋆ X0 ⋆
2 X1 ⋆ X1 ⋆ X1 ⋆
3 X36 X12 ⋆ MonocytesP
4 X8 X4 ⋆ X11 ⋆
5 X20 ⋆ Business X2 ⋆
6 Male X5 ⋆ X31 ⋆
7 X33 ⋆ SittingminsdayMedium X3 ⋆
8 X22 ⋆ Fathersmoking X9 ⋆
9 X6 ⋆ TotalmetsLow X7 ⋆
10 SittingminkweekendHigh X9 ⋆ X13 ⋆
11 X28 ⋆ Totalcholesterol X6 ⋆
12 X29 ⋆ X2 ⋆ X5 ⋆
13 MonocytesP SDIlevel Hematocrit
14 TraitanxietyMedium LymphocytesP X32 ⋆
15 Moderate X13 ⋆ X15 ⋆
16 X23 ⋆ Peacefulsleep X10
17 X12 ⋆ X18 ⋆ Totalcholesterol
18 X4 ⋆ Formersmoker X22 ⋆
19 Platelets X7 ⋆ Platelets
20 X19 ⋆ SDIlevel Hematocrit
Coincidence 12/20 (60%) 10/20 (50%) 14/20 (70%)

We also examined the Spearman correlation between used model features and predicted hypertension outcomes for the test dataset using the best model based on balanced accuracy, as shown in Table 17. This analysis helps to understand how each feature relates to the prediction of hypertension. Features with strong positive or negative correlations with predicted hypertension are particularly noteworthy, as they may indicate key risk factors or protective factors associated with the condition. Spearman correlation is determined with ρ=cov(rgX,rgY)σrgXσrgY, with rgX and rgY being the ranks of variables X and Y, respectively.

Table 17.

Spearman correlation coefficients between model features and predicted hypertension (best model by balanced accuracy, undersample balancing).

Variable Feature Spearman Correlation p-value
X0 Basal Diastolic Blood Pressure 0.5093 8.2523×10−11
X3 Weight 0.0872 3.0045×10−1
X6 HDL Cholesterol -0.0977 2.4583×10−1
X11 Heart Rate 0.1533 6.7602×10−2
X13 Glucose -0.0045 9.5702×10−1
X15 Trait Anxiety 0.0450 5.9397×10−1
X17 Sufficient Sleep 0.1041 2.1581×10−1
X19 Sleep Adequacy -0.1564 6.2126×10−2
X20 Trait Anxiety (Low) -0.0153 8.5605×10−1
X21 Hours to Fall Asleep 0.5156 4.4243×10−11
X31 Erythrocytes 0.0973 2.4751×10−1
X32 Seric Iron -0.0540 5.2190×10−1
X33 Mother Smoking 0.0523 5.3498×10−1

It is important to note that Basal Diastolic Blood Pressure X0 is the only blood pressure-related predictor included in this model. Moreover, the hypertension diagnosis was established at a subsequent follow-up visit and represents a longitudinal outcome rather than a concurrent measurement. We acknowledge that some participants may have presented with elevated baseline blood pressure that did not yet meet the clinical threshold at enrollment, meaning the model may partly reflect the classification of borderline cases — an inherent limitation of the cohort design. Nevertheless, the symbolic equation incorporates a broad set of predictors beyond blood pressure, including anthropometric variables (X3), metabolic markers (X6, X13, X31, X32), inflammatory indicators (X11), sleep-related variables (X17, X19, X21), and psychosocial factors (X15, X20, X33), suggesting that the model captures a comprehensive multifactorial risk profile rather than relying solely on baseline blood pressure.

4.2. Comparative analysis of machine learning approaches

To provide a baseline comparison, we report the performance of several machine learning models previously evaluated on the same dataset, including XGBoost, Support Vector Machines with RBF kernel, Random Forest classifiers, and logistic regression. The results are summarized in Table 18.

Table 18.

Comparative performance of machine learning models.

Model Balancing technique Sensitivity Specificity Balanced accuracy
XGBoost SMOTE 0.8448 0.9623 90%
XGBoost ADASYN 0.8135 0.9677 89%
SVM - RBF SMOTE 0.7758 0.8709 82%
SVM - RBF ADASYN 0.8249 0.9086 87%
RF ADASYN 0.8647 0.9846 92%
RF SMOTE 0.8248 0.9945 90%
LR (L2) SMOTE 0.6889 0.8167 75%
LR (L2) ADASYN 0.7111 0.7944 75%
LR (L1) SMOTE 0.7111 0.8278 77%
LR (L1) ADASYN 0.7111 0.8056 76%
DSRegPSOP Undersample 0.8519 0.7328 79%
DSRegPSOP Oversample 0.8519 0.7069 78%
DSRegPSOP SMOTE 0.8148 0.7414 78%
DSRegPSOP Borderline-SMOTE 0.7037 0.8448 77%
DSRegPSOP SMOTEENN 0.7778 0.6638 72%

Compared with logistic regression, DSRegPSOP achieves competitive or superior balanced accuracy across most balancing strategies, with the best DSRegPSOP model reaching 79% vs. 77% for the best LR (L1) configuration, and notably higher sensitivity of up to 85.19% vs. 71.11% for LR. This is particularly relevant in a clinical screening context where minimizing false negatives is a priority. It is also worth highlighting that the Tlalpan 2020 dataset presents an inherently challenging structure beyond DBP (r=0.47) and SBP (r=0.45), since all remaining features exhibit weak linear correlations with the hypertension outcome (ranging from 0.05 to 0.19), suggesting that the predictive signal is largely encoded in non-linear combinations and interactions among variables. Under these conditions, the competitive performance of DSRegPSOP relative to logistic regression is particularly noteworthy, as DSRegPSOP captures these non-linear patterns through its symbolic equation structure, while logistic regression is fundamentally constrained to linear decision boundaries. However, in datasets with stronger non-linear structure, the performance gap would be expected to widen further (14).

DSRegPSOP achieved AUC-ROC values ranging from 73% to 81% across balancing strategies, remaining within a clinically acceptable range for a hypertension screening tool. More importantly, DSRegPSOP produces explicit symbolic equations that analytically express the relationship between clinical variables and the predicted outcome, providing full mathematical transparency and direct clinical interpretability — advantages that black-box models such as XGBoost or Random Forest cannot offer even when augmented with post-hoc methods such as SHAP values. The results across all five balancing strategies also demonstrate consistent and stable behavior, as evidenced by the low standard deviations reported in Tables 5–13.

It is worth noting that while several reference models achieve higher balanced accuracy on the same dataset, DSRegPSOP offers complementary advantages that are not captured by accuracy metrics alone. The Tlalpan 2020 Cohort presents an inherently challenging predictive structure, where the signal is largely encoded in weakly correlated features (Pearson correlations ranging from 0.05 to 0.47), making it difficult for any classification method to achieve high performance across all metrics simultaneously. Under these conditions, DSRegPSOP achieves a sensitivity of up to 85.19% with a specificity of 73.28% using the Undersample strategy — a clinically relevant result for a screening tool where missing hypertensive cases carries greater risk than false alarms. Unlike black-box models such as XGBoost or Random Forest, DSRegPSOP produces explicit symbolic equations that fully express the relationship between clinical variables and the predicted outcome, providing mathematical transparency and direct clinical interpretability without requiring post-hoc explanation methods. Furthermore, DSRegPSOP performs implicit feature selection through its symbolic regression structure, eliminating the need for a dedicated preprocessing feature selection stage and reducing the risk of data leakage. In our experimental workflow, all preprocessing steps were applied exclusively within each cross-validation fold, ensuring that no information from the test set influenced model training or feature selection at any stage.

4.3. A clinical walkthrough of a risk model

Looking at the results of the comparative Table 18, we can see that the DSRegPSOP Undersample model achieved a good combination of sensitivity, specificity and balanced accuracy among the symbolic models. In what follows, we will present a step-by-step walkthrough example of risk calculation for a hypothetical patient. This will highlight the clinical understanding relevance of symbolic regression models.

4.3.1. Hypothetical patient profile

Consider a hypothetical patient with the following values of the clinical parameters. All values shown are z-score normalized (mean = 0, SD = 1) as used by the model. A positive z-score indicates a value above the cohort mean; negative indicates below:

  • X0 — diastolic BP, z=+1.4 (high)

  • X3 — weight, z=+0.9

  • X6 — HDL cholesterol, z=−0.8 (low HDL)

  • X11 — heart rate, z=+0.7

  • X13 — glucose, z=+0.5

  • X15 — trait anxiety, z=+1.2 (high)

  • X17 — sufficient sleep, z=−1.0 (poor)

  • X19 — sleep adequacy, z=−0.9

  • X20 — trait anxiety (low), z=+0.3

  • X21 — hours to fall asleep, z=+1.1 (prolonged)

  • X31 — erythrocytes, z=+0.4

  • X32 — seric iron, z=+0.6

  • X33 — mother smoking, z=1 (yes)

We will decompose Equation 19 into a series of simpler to compute terms:

  • T1=X6⋅X19

    HDL cholesterol × sleep adequacy =(−0.8)×(−0.9)=0.7200. Both are below the cohort mean (negative z-scores), making this product positive, hence it adds to risk here, unlike when both are favorable.

  • T2=e(X11+X3)

    exp(heart rate + weight) = exp(0.7 + 0.9) = exp(1.60) = 4.9530. This term is always positive and amplifies the joint burden of elevated heart rate and higher body weight, also adding to risk.

  • T3=−X15⋅X17

    −(trait anxiety × sufficient sleep) =−(1.2×−1)=1.2000. With high anxiety (positive) and poor sleep (negative), the product is negative, subtracting a negative adds to risk, as expected.

  • T4=−X31⋅eX13

    −(erythrocytes × exp(glucose)) =−(0.4×exp(0.5))=−(0.4×1.6487)=−0.6595. Elevated glucose amplifies this metabolic term. Because both erythrocytes and glucose are above zero, this term is risk-reducing in direction but modest here.

  • T5=−X19⋅X21⋅X33

    −(sleep adequacy × hours to fall asleep × mother smoking) =−(−0.9×1.1×1)=0.9900. Negative sleep adequacy × positive sleep-onset latency × maternal smoking exposure (=1) yields a positive risk contribution.

  • T6=X20 Trait anxiety (low) = 0.3000. This term enters linearly; a modestly elevated score adds a small positive contribution.

  • T7=eX0⋅(X0+X21)X32

    exp[DBP × (DBP + sleep-onset)iron] = exp(1.4 × (1.4+1.1)0.6) = exp(1.4 × 1.7329) = exp(2.4260) = 11.3136. This dominant term grows rapidly with elevated diastolic BP and longer sleep-onset latency, reflecting their combined hemodynamic burden.

  • Now let us sum all these contributions to calculate a risk score. Let us also recall that the model in Equation 19, used a RELU sigmoid approach to risk. S=T1+T2+T3+T4+T5+T6+T7=18.8172=m0

  • Applying the sigmoid curve to hypertension probability:

    P(hypertension)=11+e−m0=11+e−18.8172≃ 100.0%. Since this exceeds 0.5, the model predicts hypertension as present. Figure 14 graphically describes the entire evaluation of the model in Equation 19 for a hypothetical patient.

The terms map naturally onto distinct clinical domains as follows:

  1. T7 (the exponential DBP × sleep-onset term) is the dominant contributor, consistent with diastolic BP having the highest Pearson and Spearman correlation with outcome. Its exponential form means the model is especially sensitive to joint elevation of DBP and sleep-onset latency, hence capturing a hemodynamic–sleep interaction.

  2. T2 (e(heartrate+weight)) links sympathetic burden and adiposity, both of which amplify cardiac output.

  3. T3 (-trait anxiety × sufficient sleep) is noteworthy because when sleep is poor (negative z) and anxiety is high (positive z), the product is negative, thus subtracting a negative value adds to risk, which correctly encodes the synergy between these two risk factors.

  4. T5 (the three-way sleep adequacy × sleep-onset × maternal smoking interaction) captures an environmental/genetic exposure modulated by sleep disturbance.

  5. T1 (HDL × sleep adequacy) is context-dependent: when both are favorable, it is protective; when both are impaired, it reverses direction.

For the illustrative patient profile shown, the sigmoid output is well above 0.5 and hypertension is predicted, driven primarily by T7 and T2.

Figure 14.

Clinical risk activation flowchart for predicting hypertension using three main feature categories: hemodynamic (risk-elevating, red), psychosocial and sleep (context-dependent, purple), and metabolic or exposure (protective by default, green). Features are summed, processed through a ReLU gate, and passed to a sigmoid transformation yielding hypertension probability, with decision threshold at 0.5. Color-keyed legend identifies each feature group.

Clinical risk activation model (Figure made using Biorender.com).

4.4. Clinical and public health implications

From a clinical perspective, the models that we have developed by means of symbolic regression highlight the multifactorial nature of early onset hypertension (46, 47). The resulting symbolic expressions can be interpreted as integrative representations of interacting physiological and behavioral processes.

The central role of hemodynamic and metabolic variables is strongly supported by the correlation analysis, where basal diastolic blood pressure and weight showed robust and statistically significant associations with predicted hypertension (ρ=0.5093 and ρ=0.0872 respectively; p<0.001) reinforces that the models are anchored in well-established clinical markers of vascular resistance and early cardiometabolic dysregulation (48–50). In addition, the models incorporate clinically meaningful non-hemodynamic factors. For example, hours to fall asleep was associated with predicted hypertension (ρ=0.5156, p<0.001), suggesting a protective role potentially mediated through autonomic balance and neuroendocrine regulation (51).

From a mechanistic perspective, the inclusion of psychosocial variables such as anxiety supports the role of chronic sympathetic activation and hypothalamic–pituitary–adrenal axis dysregulation in early blood pressure alterations (52–54). Likewise, behavioral factors such as prolonged sitting time may reflect early endothelial dysfunction and reduced metabolic efficiency (55).

One particularly striking aspect is that the models we developed allow the identification of non-linear combinations of variables (the so-called higher order effects) that may be overlooked by using traditional statistical approaches (56, 57). From the clinical standpoint, this opens the possibility of a more personalized risk evaluation (58, 59). One that considers not only isolated values but integrated patterns of exposure. The interpretability of the resulting equations facilitates their clinical validation and their potential translation to tools to support clinical decisions (2, 60, 61). This in turn, may allow the medical personnel to better understand what factors are contributing to the estimated risk and, in consequence, orient them for early specific interventions (62, 63).

To enhance clinical interpretability, we provide a simplified example based on key variables identified in the Tlalpan 2020 cohort, prioritizing those with the strongest associations with predicted hypertension. These findings can be further interpreted in terms of clinically identifiable risk profiles. Rather than reflecting isolated risk factors, the symbolic models capture combinations of hemodynamic, behavioral, and psychosocial characteristics that together define higher-risk phenotypes. This profile-based interpretation enhances the clinical applicability of the models by facilitating early identification and targeted preventive interventions.

Despite their interpretability and potential clinical utility, the implementation of these models in real world settings presents several challenges. These include the need for external validation in diverse populations, the standardization of input variables across clinical contexts, and the integration of predictive tools into existing clinical workflows (64, 65). Additionally, ensuring data quality and completeness, particularly for behavioral and psychosocial variables, remains essential for reliable deployment (66).

In comparison with established hypertension risk scores, such as those derived from Framingham based approaches, our models offer complementary advantages. Traditional risk scores typically rely on predefined linear associations between a limited set of clinical variables, primarily focused on cardiometabolic factors (67, 68). In contrast, the symbolic regression models presented here capture nonlinear relationships and incorporate a broader range of determinants, including behavioral and psychosocial factors. This may provide a more comprehensive representation of early risk, particularly in populations where traditional risk scores may have limited applicability (69).

In the context of public health, our findings have relevant implications for the design of primary prevention strategies against hypertension. Our capacity to identify individuals with higher probability to develop hypertension from routine collected information suggest that these models may be implemented in population level screening or in strategies for epidemiological surveillance (70–73). Furthermore, the use of explainable models is particularly fit for public policy contexts, in which transparency and accountability are essential to justify resource assignment and intervention prioritization (74–78).

In the context of middle-income countries such as Mexico, in which the burden of disease of chronic diseases continues increasing (79, 80), an approach such as the one presented here offers a promissory avenue to integrate advanced data science with the reals needs of health systems (81–83). By being supported in well-characterized longitudinal cohorts and interpretable methodologies, these models may contribute to reducing the gap between research and public health actions. Overall, our results support the use of explainable machine learning tools, not only as predictive instruments but also as platforms to generate actionable evidence to inform prevention policy, promotion of healthy lifestyles and the reduction of cardiovascular risks at the population level.

5. Conclusions

In this work we use DSRegPSOP algorithm to develop hypertension prediction models with symbolic regression approach using the Tlalpan 2020 dataset. Since the dataset is imbalanced, we applied five different data balancing techniques: Undersample, Oversample, SMOTE, Borderline-SMOTE, and SMOTEENN, with special emphasis on avoiding data leakage between training and testing sets, which is crucial for obtaining reliable model performance estimates in imbalanced datasets. Using symbolic regression allowed us to derive interpretable models that provide insights into the relationships between various features and hypertension risk and a better understanding of the underlying factors contributing to hypertension compared with black-box models.

The Undersample strategy achieved the best balanced accuracy of 79.23%, with recall of 85.19%, specificity of 73.28%, F1-score of 56.79%, and accuracy of 75.52%, followed by Oversample (77.94%), SMOTE (77.81%), Borderline-SMOTE (77.43%), and SMOTEENN (72.08%). Across all configurations and balancing strategies, the best individual metric values achieved were: accuracy of 81.82% (SMOTE), precision of 51.72% (SMOTE), recall of 92.59% (SMOTEENN), specificity of 87.93% (SMOTE), F1-score of 59.38% (Borderline-SMOTE), balanced accuracy of 79.23% (Undersample), and AUC-ROC of 86.91% (SMOTE). Figure 12 shows the boxplot comparing the balanced accuracy distributions of all balancing techniques.

We performed Kruskal–Wallis and Mann–Whitney U tests to statistically assess differences among resampling techniques based on balanced accuracy distributions. The Kruskal–Wallis test yielded H=124.276609 with p=6.515835×10−26, indicating significant global differences among the methods. Subsequent Mann–Whitney U tests with Holm correction revealed that Borderline-SMOTE — selected as the reference method due to its highest mean balanced accuracy of 69.58% across all 110 configurations — significantly outperformed only SMOTEENN (Holm-adjusted p=4.95×10−18), while no statistically significant differences were found between Borderline-SMOTE and SMOTE (p=1.83×10−1), Oversample (p=2.73×10−1), or Undersample (p=2.80×10−1), suggesting that these four strategies yield comparable balanced accuracy distributions.

We also identified the contribution of features to hypertension prediction in the best model by using Spearman correlation with statistical significance supported with p-value <0.05. The features with statistically significant positive correlation to hypertension were Basal Diastolic Blood Pressure X0 (ρ=0.5093, p=8.25×10−11) and Hours to Fall Asleep X21 (ρ=0.5156, p=4.42×10−11), suggesting that elevated diastolic blood pressure and difficulty falling asleep are associated with higher likelihood of hypertension prediction.

The most relevant features across all models were Basal Diastolic Blood Pressure X0, Trait Anxiety X15, Hours to Fall Asleep X21, Heart Rate X11, Glucose X13, Sufficient Sleep X17, Mother Smoking X33, Basal Systolic Blood Pressure X1, Sleep Needed X26, Sleep Adequacy X19, Trait Anxiety (Low) X20, Erythrocytes X31, Lack of Air X4, Waist Size X5, Leukocytes Number X7, Neutrophils Number X9, Trait Anxiety (High) X14, Postgraduate Education X16, Lymphocytes Number X18, and Urine Creatinine X22. These findings highlight the importance of both physiological and lifestyle factors in hypertension risk assessment. Furthermore, the features implicitly selected by DSRegPSOP across the five balancing strategies show a 60%, 50%, and 70% coincidence with the top-20 variables identified by LASSO, Mutual Information, and Random Forest, respectively, confirming that the symbolic regression approach with DSRegPSOP consistently identifies clinically relevant predictors without requiring an explicit feature selection stage.

Despite these promising results, this study has limitations that should be acknowledged. First, the validation was performed on a single Mexican cohort (Tlalpan 2020), which may limit generalizability to other populations or geographic regions. Second, while DSRegPSOP with symbolic regression provides interpretable models, external validation in independent datasets would be essential to confirm the clinical utility of these predictions.

5.1. Future work

Although following rigorous procedures to avoid data leakage, hyperparameter selection, and ensure robust model evaluation, the accuracy, precision, recall, specificity, and F1-score of the models indicate room for improvement possibly working on the representativeness of the dataset. Future research could explore adding more data to the dataset with balanced data between hypertensive and non-hypertensive subjects to improve model performance. Additionally, investigating other data balancing techniques and hybrid approaches may yield further improvements in predictive accuracy. Additionally, exploring other features or combinations of features could enhance the models’ predictive capabilities. Finally, validating the models on external datasets would be essential to assess their generalizability and real-world applicability.

Acknowledgments

We want to extend our appreciation to This research was supported by the Secretariat of Science, Humanities, Technology and Innovation (SECIHTI, México), Investigadores por México program, No. 7186. The authors gratefully acknowledge the advisory group of Maite Vallejo and Tlalpan 2020 project for their logistic support in this work and to Dr. Manlio F. Marquez for helpful discussions and clinical feedback. We also want to acknowledge Mrs. Gabriela Graham for proofreading and performing grammar/writing editing.

Funding Statement

The author(s) declared that financial support was received for this work and/or its publication. This research was supported by the Secretariat of Science, Humanities, Technology and Innovation (SECIHTI, México), Investigadores por México 7186.

Footnotes

Edited by: Daniele Giansanti, National Institute of Health (ISS), Italy

Reviewed by: Gaurav Kumar, GLA University, India

Husnul Khuluq, Universitas Muhammadiyah Gombong, Indonesia

Data availability statement

The raw data supporting the conclusions of this article are not publicly available due to privacy and ethical restrictions, as they belong to the Tlalpan 2020 cohort. Requests to access the datasets should be directed to the corresponding author/s.

Ethics statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Bioethics Committee of the National Institute of Cardiology Ignacio Chavez in Mexico City (protocol ID: 13-802; date of approval 19 February 2013). The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent was obtained from all participants involved in the study.

Author contributions

GG-E: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Writing – original draft, Writing – review & editing. MM-G: Investigation, Supervision, Validation, Writing – review & editing. LA-G: Investigation, Project administration, Resources, Supervision, Validation, Writing – review & editing. MM: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Resources, Software, Visualization, Writing – original draft, Writing – review & editing. EH-L: Conceptualization, Formal analysis, Investigation, Methodology, Resources, Supervision, Writing – review & editing.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

The author EH-L declared that they were an editorial board member of Frontiers, at the time of submission. This had no impact on the peer review process and the final decision

Generative AI statement

The author(s) declared that generative AI was not 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.

References

  • 1.Lavecchia A. Explainable artificial intelligence in drug discovery: bridging predictive power and mechanistic insight. WIREs Comput Mol Sci. (2025) 15:e70049. 10.1002/wcms.70049 [DOI] [Google Scholar]
  • 2.Makke N, Chawla S. Interpretable scientific discovery with symbolic regression: a review. Artif Intell Rev. (2024) 57(1):2. 10.1007/s10462-023-10622-0 [DOI] [Google Scholar]
  • 3.Shirasawa R, Takaki K, Miyao T. Generalizability improvement of interpretable symbolic regression models for quantitative structure–activity relationships. ACS Omega. (2024) 9:9463–74. 10.1021/acsomega.3c09047 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Wilstrup C, Cave C. Combining symbolic regression with the Cox proportional hazards model improves prediction of heart failure deaths. BMC Med Inform Decis Mak. (2022) 22(1):196. 10.1186/s12911-022-01943-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Cava WGL, Lee PC, Ajmal I, Ding X, Solanki P, Cohen JB, et al. A flexible symbolic regression method for constructing interpretable clinical prediction models. npj Digit Med. (2023) 6(1):107. 10.1038/s41746-023-00833-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Billa M. Symbolic regression for medical scoring systems: a Bayesian and multi-objective approach. In: Proceedings of SEBD 2024: 32nd Symposium on Advanced Database Systems, Villasimius, Sardinia, Italy (2024). p. 1–7.
  • 7.Andelic N, Lorencin I, Segota SB, Car Z. The development of symbolic expressions for the detection of hepatitis c patients and the disease progression from blood parameters using genetic programming-symbolic classification algorithm. Appl Sci. (2022) 13:574. 10.3390/app13010574 [DOI] [Google Scholar]
  • 8.Arina P, Ferrari D, Kaczorek MR, Tetlow N, Dewar A, Stephens R, et al. Assessing perioperative risks in a mixed elderly surgical population using machine learning: a multi-objective symbolic regression approach to cardiorespiratory fitness derived from cardiopulmonary exercise testing. PLoS Digit Health. (2025) 4:e0000851. 10.1371/JOURNAL.PDIG.0000851 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Arina P, Ferrari D, Tetlow N, Dewar A, Stephens R, Martin D, et al. Mortality prediction after major surgery in a mixed population through machine learning: a multi-objective symbolic regression approach. Anaesthesia. (2025) 80:551–60. 10.1111/ANAE.16538;WGROUP:STRING:PUBLICATION [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Angelis D, Sofos F, Karakasidis TE. Artificial intelligence in physical sciences: symbolic regression trends and perspectives. Arch Comput Methods Eng. (2023) 30(6):3845–65. 10.1007/S11831-023-09922-Z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Koza JR, Genetic Programming: On the Programming of Computers by Means of Natural Selection. Cambridge, MA, USA: MIT Press; (1992). [Google Scholar]
  • 12.Wu Z, Wang L, Sun K, Li Z, Cheng R. Enabling population-level parallelism in tree-based genetic programming for GPU acceleration. arXiv (2025).
  • 13.Akbari MA, Zare M, Azizipanah-abarghooee R, Mirjalili S, Deriche M. The cheetah optimizer: a nature-inspired metaheuristic algorithm for large-scale optimization problems. Sci Rep. (2022) 12(1):10953. 10.1038/s41598-022-14338-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Montes Rivera M, Guerrero-Mendez C, Lopez-Betancur D, Saucedo-Anaya T. Dynamical sphere regrouping particle swarm optimization programming: an automatic programming algorithm avoiding premature convergence. Mathematics. (2024) 12:3021. 10.3390/math12193021 [DOI] [Google Scholar]
  • 15.Kennedy J, Eberhart R. Particle swarm optimization. In:Proceedings of IEEE International Conference on Neural Networks (1995). p. 1942–8.
  • 16.Montes Rivera M, Guerrero-Mendez C, Lopez-Betancur D, Saucedo-Anaya T. Dynamical sphere regrouping particle swarm optimization: a proposed algorithm for dealing with PSO premature convergence in large-scale global optimization. Mathematics. (2023) 11:4339. 10.3390/math11204339 [DOI] [Google Scholar]
  • 17.Colín-Ramírez E, Rivera-Mancía S, Infante-Vázquez O, Cartas-Rosado R, Vargas-Barrón J, Madero M, et al. Protocol for a prospective longitudinal study of risk factors for hypertension incidence in a Mexico City population: the Tlalpan 2020 cohort. BMJ Open. (2017) 7:e016773. 10.1136/bmjopen-2017-016773 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Chobanian AV, Bakris GL, Black HR, Cushman WC, Green LA, Izzo Jr JL, et al. Seventh report of the joint national committee on prevention, detection, evaluation, and treatment of high blood pressure. hypertension. (2003) 42:1206–52. 10.1161/01.HYP.0000107251.49515.c2 [DOI] [PubMed] [Google Scholar]
  • 19.Akçay BD, Akcay D, Yetkin S. Turkish reliability and validity study of the medical outcomes study (MOS) sleep scale inpatients with obstructive sleep apnea. Turk J Med Sci. (2021) 51:268–79. 10.3906/sag-1909-157 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Kim M-K, You J-A, Lee J-H, Lee S-A. The reliability and validity of the Korean version of the medical outcomes study-sleep scale in patients with obstructive sleep apnea. Sleep Med Res. (2011) 2:89–95. 10.17241/smr.2011.2.3.89 [DOI] [Google Scholar]
  • 21.Stewart AL, Ware JE, Measuring Functioning and Well-Being: The Medical Outcomes Study Approach. Durham, NC, USA: Duke University Press; (1992). [Google Scholar]
  • 22.Zagalaz-Anula N, Hita-Contreras F, Martínez-Amat A, Cruz-Díaz D, Lomas-Vega R. Psychometric properties of the medical outcomes study sleep scale in Spanish postmenopausal women. Menopause. (2017) 24:824–31. 10.1097/GME.0000000000000835 [DOI] [PubMed] [Google Scholar]
  • 23.Spielberger CD, Smith LH. Anxiety (drive), stress, and serial-position effects in serial-verbal learning. J Exp Psychol. (1966) 72:589. 10.1037/h0023769 [DOI] [PubMed] [Google Scholar]
  • 24.Craig CL, Marshall AL, Sjöström M, Bauman AE, Booth ML, Ainsworth BE, et al. International physical activity questionnaire: 12-country reliability and validity. Med Sci Sports Exerc. (2003) 35:1381–95. 10.1249/01.MSS.0000078924.61453.FB [DOI] [PubMed] [Google Scholar]
  • 25.Mujahid M, Kına ER, Rustam F, Villar MG, Alvarado ES, Diez IDLT, et al. Data oversampling and imbalanced datasets: an investigation of performance for machine learning and feature engineering. J Big Data. (2024) 11(1):87. 10.1186/s40537-024-00943-4 [DOI] [Google Scholar]
  • 26.Joeres R, Blumenthal DB, Kalinina OV. Data splitting to avoid information leakage with datasail. Nat Commun. (2025) 16(1):3337. 10.1038/s41467-025-58606-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Rosenblatt M, Tejavibulya L, Jiang R, Noble S, Scheinost D. Data leakage inflates prediction performance in connectome-based machine learning models. Nat Commun. (2024) 15:1829. 10.1038/s41467-024-46150-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Iturbe-Araya JI, Rifà-Pous H. Hyperparameter optimization and evaluation metrics for unsupervised anomaly-based cyberattack detection in imbalanced smart home datasets. J Netw Syst Manage. (2025) 33(4):99. 10.1007/s10922-025-09973-6 [DOI] [Google Scholar]
  • 29.Salih NS, Ahmed DM. Improving imbalanced data classification using deep learning. Int J Comput Exp Sci Eng. (2025) 11:5153–63. 10.22399/IJCESEN.3367 [DOI] [Google Scholar]
  • 30.Hassani H, Entezarian MR, Zaeimzadeh S, Marvian L, Komendantova N. An oversampling-undersampling strategy for large-scale data linkage. Front Big Data. (2025) 8:1542483. 10.3389/fdata.2025.1542483 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP. Smote: synthetic minority over-sampling technique. J Artif Intell Res. (2002) 16:321–57. 10.1613/JAIR.953 [DOI] [Google Scholar]
  • 32.Han H, Wang WY, Mao BH. Borderline-smote: a new over-sampling method in imbalanced data sets learning. Lect Notes Comput Sci. (2005) 3644:878–87. 10.1007/11538059_91;GROUPTOPIC:TOPIC:ACM-PUBTYPE [DOI] [Google Scholar]
  • 33.Rainio O, Teuho J, Klen R. Evaluation metrics and statistical tests for machine learning. Sci Rep. (2024) 14(1):6086. 10.1038/s41598-024-56706-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Hewitt E, Hewitt RE. The gibbs-wilbraham phenomenon: an episode in fourier analysis. Arch Hist Exact Sci. (1979) 21:129–60. 10.1007/BF00330404/METRICS [DOI] [Google Scholar]
  • 35.Navarro JF, Pérez-Carrió A. Symbolic solution to complete ordinary differential equations with constant coefficients. J Appl Math. (2013) 2013:518194. 10.1155/2013/518194 [DOI] [Google Scholar]
  • 36.Jia W, Sun M, Lian J, Hou S. Feature dimensionality reduction: a review. Complex Intell Syst. (2022) 8:2663–93. 10.1007/s40747-021-00637-x [DOI] [Google Scholar]
  • 37.a Ilemobayo J, Durodola O, Alade O, J Awotunde O, T Olanrewaju A, Falana O, et al. Hyperparameter tuning in machine learning: a comprehensive review. J Eng Res Rep. (2024) 26:388–95. 10.9734/jerr/2024/v26i61188 [DOI] [Google Scholar]
  • 38.Elghalhoud O, Naik K, Zaman M, Goel N. Data balancing and hyper-parameter optimization for machine learning algorithms for secure IoT networks. In: Proceedings of the 18th ACM International Symposium on QoS and Security for Wireless and Mobile Networks (2022). p. 71–8.
  • 39.Hancock J, Khoshgoftaar TM. Impact of hyperparameter tuning in classifying highly imbalanced big data. In: 2021 IEEE 22nd International Conference on Information Reuse and Integration for Data Science (IRI). IEEE (2021). p. 348–54.
  • 40.Dey I, Pratap V. A comparative study of smote, borderline-smote, and adasyn oversampling techniques using different classifiers. In: 2023 3rd International Conference on Smart Data Intelligence (ICSMDI). IEEE (2023). p. 294–302.
  • 41.Lehmann EL, Romano JP. Generalizations of the familywise error rate. In: Rojo J, editor. Selected works of EL Lehmann. Boston, MA: Springer (2011). p. 719–35.
  • 42.Zhu Y, Guo W. Family-wise error rate controlling procedures for discrete data. Stat Biopharm Res. (2020) 12:117–28. 10.1080/19466315.2019.1654912 [DOI] [Google Scholar]
  • 43.Al-Ansary LA, Tricco AC, Adi Y, Bawazeer G, Perrier L, Al-Ghonaim M, et al. A systematic review of recent clinical practice guidelines on the diagnosis, assessment and management of hypertension. PLoS One. (2013) 8:e53744. 10.1371/journal.pone.0053744 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Burnier M, Egan BM. Adherence in hypertension: a review of prevalence, risk factors, impact, and management. Circ Res. (2019) 124:1124–40. 10.1161/CIRCRESAHA.118.313220 [DOI] [PubMed] [Google Scholar]
  • 45.Pescatello LS, MacDonald HV, Ash GI, Lamberti LM, Farquhar WB, Arena R, et al. Assessing the existing professional exercise recommendations for hypertension: a review and recommendations for future research priorities. In: Mayo Clinic Proceedings. Vol. 90. Elsevier (2015). p. 801–12. [DOI] [PubMed]
  • 46.Neutel JM, Smith DH. Hypertension control: multifactorial contributions. Am J Hypertens. (1999) 12:164S–169S. 10.1016/S0895-7061(99)00221-6 [DOI] [PubMed] [Google Scholar]
  • 47.Suvila K, Lima JA, Cheng S, Niiranen TJ. Clinical correlates of early-onset hypertension. Am J Hypertens. (2021) 34:915–8. 10.1093/ajh/hpab066 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Brouwers S, Sudano I, Kokubo Y, Sulaica EM. Arterial hypertension. Lancet. (2021) 398:249–61. 10.1016/S0140-6736(21)00221-X [DOI] [PubMed] [Google Scholar]
  • 49.Sindhwani N, Moudgil P, Thukral J, Shah RK, Kaur H, Kumar R, et al. Obesity-driven hypertension: exploring the mechanisms and modern treatment strategies. Cardiol Rev. (2026) 10–1097. 10.1097/CRD.0000000000001193 [DOI] [PubMed] [Google Scholar]
  • 50.Staessen JA, Wang J, Bianchi G, Birkenhäger WH. Essential hypertension. Lancet. (2003) 361:1629–41. 10.1016/S0140-6736(03)13302-8 [DOI] [PubMed] [Google Scholar]
  • 51.Laksono S, Yanni M, Iqbal M, Prawara AS. Abnormal sleep duration as predictor for cardiovascular diseases: a systematic review of prospective studies. Sleep Disord. (2022) 2022:9969107. 10.1155/2022/9969107 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Bigalke JA, Durocher JJ, Greenlund IM, Keller-Ross M, Carter JR. Blood pressure and muscle sympathetic nerve activity are associated with trait anxiety in humans. Am J Physiol Heart Circ Physiol. (2023) 324:H494–H503. 10.1152/ajpheart.00026.2023 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Cuevas AG, Williams DR, Albert MA. Psychosocial factors and hypertension: a review of the literature. Cardiol Clin. (2017) 35:223–30. 10.1016/j.ccl.2016.12.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Kaplan M, Nunes A. The psychosocial determinants of hypertension. Nutr Metab Cardiovasc Dis. (2003) 13:52–9. 10.1016/S0939-4753(03)80168-0 [DOI] [PubMed] [Google Scholar]
  • 55.Gratas-Delamarche A, Derbré F, Vincent S, Cillard J. Physical inactivity, insulin resistance, and the oxidative-inflammatory loop. Free Radic Res. (2014) 48:93–108. 10.3109/10715762.2013.847528 [DOI] [PubMed] [Google Scholar]
  • 56.Elshawi R, Al-Mallah MH, Sakr S. On the interpretability of machine learning-based model for predicting hypertension. BMC Med Inform Decis Mak. (2019) 19:146. 10.1186/s12911-019-0874-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Tong R, Zhu Z, Ling J. Comparison of linear and non-linear machine learning models for time-dependent readmission or mortality prediction among hospitalized heart failure patients. Heliyon. (2023) 9:e16068. 10.1016/j.heliyon.2023.e16068 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Hu Y, Huerta J, Cordella N, Mishuris RG, Paschalidis IC. Personalized hypertension treatment recommendations by a data-driven model. BMC Med Inform Decis Mak. (2023) 23:44. 10.1186/s12911-023-02137-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Wang S-T, Lin T-Y, Chen TH-H, Chen SL-S, Fann JC-Y. Cost-effectiveness analysis of personalized hypertension prevention. J Pers Med. (2023) 13:1001. 10.3390/jpm13061001 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Makke N, Chawla S. Symbolic regression: a pathway to interpretability towards automated scientific discovery. In: Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (2024). p. 6588–96.
  • 61.Wang G, Wang E, Li Z, Zhou J, Sun Z. Exploring the mathematic equations behind the materials science data using interpretable symbolic regression. Interdiscip Mater. (2024) 3:637–57. 10.1002/idm2.12180 [DOI] [Google Scholar]
  • 62.Chaddad A, Peng J, Xu J, Bouridane A. Survey of explainable ai techniques in healthcare. Sensors. (2023) 23:634. 10.3390/s23020634 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63.Hossain MI, Zamzmi G, Mouton PR, Salekin MS, Sun Y, Goldgof D. Explainable ai for medical data: current methods, limitations, and future directions. ACM Comput Surv. (2025) 57:1–46. 10.1145/3637487 [DOI] [Google Scholar]
  • 64.Kang C-Y, Yoon JH. Current challenges in adopting machine learning to critical care and emergency medicine. Clin Exp Emerg Med. (2023) 10:132–7. 10.15441/ceem.23.041 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65.Nasef D, Nasef D, Sawiris V, Weinstein B, Garcia J, Toma M. Integrating artificial intelligence in clinical practice, hospital management, and health policy: literature review. J Hosp Manage Health Policy. (2025) 9:20. 10.21037/jhmhp-24-138 [DOI] [Google Scholar]
  • 66.Rahamtalla BM, Medani IE, Abdelhag ME, Eltigani SA, Rajan SK, Falgy E, et al. The ai-powered healthcare ecosystem: bridging the chasm between technical validation and systemic integration—a systematic review. Future Internet. (2025) 17:550. 10.3390/fi17120550 [DOI] [Google Scholar]
  • 67.D’Agostino Sr RB, Vasan RS, Pencina MJ, Wolf PA, Cobain M, Massaro JM, et al. General cardiovascular risk profile for use in primary care: the framingham heart study. Circulation. (2008) 117:743–53. 10.1161/CIRCULATIONAHA.107.699579 [DOI] [PubMed] [Google Scholar]
  • 68.Wilson PW, D’Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB. Prediction of coronary heart disease using risk factor categories. Circulation. (1998) 97:1837–47. 10.1161/01.CIR.97.18.1837 [DOI] [PubMed] [Google Scholar]
  • 69.Talha I, Elkhoudri N, Hilali A. Major limitations of cardiovascular risk scores. Cardiovasc Ther. (2024) 2024:4133365. 10.1155/2024/4133365 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Lee C, Kim H. Machine learning-based predictive modeling of depression in hypertensive populations. PLoS One. (2022) 17:e0272330. 10.1371/journal.pone.0272330 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Lopez-Martinez F, Schwarcz A, Núñez-Valdez ER, Garcia-Diaz V. Machine learning classification analysis for a hypertensive population as a function of several risk factors. Expert Syst Appl. (2018) 110:206–15. 10.1016/j.eswa.2018.06.006 [DOI] [Google Scholar]
  • 72.Mroz T, Griffin M, Cartabuke R, Laffin L, Russo-Alvarez G, Thomas G, et al. Predicting hypertension control using machine learning. PLoS One. (2024) 19:e0299932. 10.1371/journal.pone.0299932 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73.Schmidt B-M, Durao S, Toews I, Bavuma CM, Hohlfeld A, Nury E, et al. Screening strategies for hypertension. Cochrane Database Syst Rev. (2020) 5:CD013212. 10.1002/14651858.CD013212.pub2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 74.Amarasinghe K, Rodolfa KT, Lamba H, Ghani R. Explainable machine learning for public policy: use cases, gaps, and research directions. Data Policy. (2023) 5:e5. 10.1017/dap.2023.2 [DOI] [Google Scholar]
  • 75.De Carvalho MS, Da Silva GL. Inside the black box: using explainable ai to improve evidence-based policies. In: 2021 IEEE 23rd Conference on Business Informatics (CBI). Vol. 2. IEEE (2021). p. 57–64.
  • 76.Hullurappa M. The role of explainable ai in building public trust: a study of ai-driven public policy decisions. Int Trans Artif Intell. (2022) 6:320. Available online at: https://isjr.co.in/index.php/ITAI/article/view/320 [Google Scholar]
  • 77.Papadakis T, Christou IT, Ipektsidis C, Soldatos J, Amicone A. Explainable and transparent artificial intelligence for public policymaking. Data Policy. (2024) 6:e10. 10.1017/dap.2024.3 [DOI] [Google Scholar]
  • 78.Vredenburgh K. Transparency and explainability for public policy. LSE Public Policy Rev. (2024) 4. 10.31389/lseppr.111 [DOI] [Google Scholar]
  • 79.Morales-Villegas EC, Yarleque C, Almeida ML. Management of hypertension and dyslipidemia in Mexico: evidence, gaps, and approach. Arch Cardiol México. (2023) 93:77–87. 10.24875/ACM.21000330 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Piskorz D, Alcocer L, López Santi R, Puente Barragán A, Múnera A, Molina DI, et al. Blood pressure telemonitoring and telemedicine, a Latin America perspective. Blood Press. (2023) 32:2251586. 10.1080/08037051.2023.2251586 [DOI] [PubMed] [Google Scholar]
  • 81.Guo C, Chen J. Big data analytics in healthcare. In: Nakamori Y, editor. Knowledge Technology and Systems: Toward Establishing Knowledge Systems Science. Singapore: Springer (2023). p. 27–70.
  • 82.Rehman A, Naz S, Razzak I. Leveraging big data analytics in healthcare enhancement: trends, challenges and opportunities. Multimed Syst. (2022) 28:1339–71. 10.1007/s00530-020-00736-8 [DOI] [Google Scholar]
  • 83.Subrahmanya SVG, Shetty DK, Patil V, Hameed BZ, Paul R, Smriti K, et al. The role of data science in healthcare advancements: applications, benefits, and future prospects. Ir J Med Sci (1971-). (2022) 191:1473–83. 10.1007/s11845-021-02730-z [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The raw data supporting the conclusions of this article are not publicly available due to privacy and ethical restrictions, as they belong to the Tlalpan 2020 cohort. Requests to access the datasets should be directed to the corresponding author/s.


Articles from Frontiers in Digital Health are provided here courtesy of Frontiers Media SA

RESOURCES