Heart failure is a complex clinical syndrome where the ventricular filling or ejection capacity is compromised due to any structural or functional abnormality of the heart []. Chronic heart failure (CHF) is a severe manifestation or advanced stage of various cardiovascular diseases. It features high mortality and rehospitalization rates, thus constituting the ultimate battlefield for cardiovascular disease prevention and control []. According to the World Health Organization, the global prevalence of heart failure in adults is 1% to 2%, with 25,000-30,000 new cases expected each year []. The multiple physical and psychological symptoms endured by patients with CHF not only intensify the burden of the patients and caregivers but also diminish their quality of life [,]. Therefore, it has become an inevitable trend to identify risk factors for those who have not developed CHF and patients with CHF, to prevent the occurrence of CHF in a timely manner, and to strengthen the health management of patients with CHF.
Preventive management in current guidelines and practice is mostly based on comprehensive cardiovascular interventions []. However, within the framework of the goals of “health for all” and “personalized medicine,” early and precise risk stratification takes precedence in cardiovascular prevention and control []. Risk factors for heart failure are the primary concern in suspected diagnoses, and the control of risk factors is the top priority in the primary prevention of patients with heart failure. Diagnosis, treatment, and management are based on this. Risk assessment, as the initiating link of precise health management of CHF, particularly needs to recognize the significance of risk factor identification in the face of the disease characteristics of CHF, such as complex etiology, severe condition, rapid progression, and poor prognosis. With the in-depth research of precision medicine and the change in residents’ living behaviors, the update of important risk factors and cardiovascular markers is a crucial element in the development of risk assessment programs and the improvement of assessment tools.
The accuracy and comprehensiveness of identifying the risk factors of CHF, as well as the advancement and scientific nature of the modeling techniques, are the keys to guaranteeing the smooth implementation of risk assessment. As for the risk factors, they mainly include personal factors (such as gender, age, weight, etc) [] and disease-related factors (such as ejection fraction, biomarkers, myocardial imaging, cardiac ultrasound parameters, etc). For instance, Salvioni et al [] developed a method for integrating Metabolic Exercise Test data combined with Cardiac and Kidney Indexes (MECKI) scores from 2715 patients. It was demonstrated that the MECKI score is a highly efficient tool for facilitating risk stratification and therapeutic decision-making for patients with heart failure. Klimczak-Tomaniak et al [] conducted repeated measurements of 92 biomarkers that optimally predict adverse clinical events in heart failure and can be used for dynamic risk assessment in clinical practice. However, these risk factor identifications focus only on individual and disease treatment–related factors, ignoring broader social factors that affect health. In terms of modeling techniques, traditional modeling methods such as Cox and logistic regressions cannot well deal with the complex relationships that may exist between variables, and researchers have begun to introduce digital technology into model construction to obtain a large amount of data information in the database after multidimensional interactions. Angraal et al [] used a random forest (RF) model to predict mortality and hospitalization rates for heart failure in outpatients with preserved ejection fraction. Wang et al [] used a machine learning model to accurately predict the risk of heart failure in older patients with prediabetes or diabetes using data from the National Health and Nutrition Examination Survey. Although risk assessment models based on big data and artificial intelligence exist, the mainstay of current risk assessment approaches remains the risk factor itself. Moreover, most of the models are predicated on the patient’s medical record information from the initial diagnosis and hospitalization, intended for medical and nursing professional evaluations, as well as checks of objective data such as those from laboratories, and a dynamic prediction model that changes with the condition has not been established.
In summary, in the face of the incomplete coverage of clinical risk factors of CHF and the low accuracy of risk prediction modeling, constructing an accurate and convenient heart failure risk prediction model is an important pathway and tool for the identification of accurate risk factors, and fully using the big data resources for the refinement of risk factors and completing the digital modeling is an important guarantee for the effectiveness of the final risk assessment.
This study applied to the Jackson Heart Study (JHS) database through the National Heart Lung and Blood Institute. The database contains data on 3883 individuals. The participants were African American adults aged 35-84 years. Data were collected at baseline (V1: 2000-2004), first follow-up (V2: 2005-2008), and second follow-up (V3: 2009-2013). There were 489 patients with CHF at baseline and 3394 without CHF. The first follow-up V2 (2005-2008) lost 777 cases, leaving 3106 cases; the second follow-up V3 (2009-2013) lost 462 cases, leaving 2644 cases.
Study PopulationPatients who did not have heart failure at baseline (V1) of the JHS database were selected for this study ().
Textbox 1. Inclusion and exclusion criteria.Inclusion criteria
Those who did not have chronic heart failure at baselineThose who participated in the first and second follow-up visits, or those who had electronic medical recordsExclusion criteria
Patients who met the Framingham heart failure diagnostic criteria []Study VariablesThe inclusion of study variables was carried out at 5 levels of health ecology. A total of 53 variables were finally included. Among them, the individual trait level, including general information, biological indicators, disease history, family history, and symptoms, had a total of 28 variables; the individual behavioral trait level, including diet, exercise, sleep, and psychology, had a total of 12 variables; the interpersonal relationship level, including family relationship, social relationship, neighborhood relationship, had a total of 4 variables; the work and life level, including working conditions, living conditions, access to health care, had a total of 8 variables; and the macropolicy level had only 1 variable, being health insurance policy. All the variables can be seen in Table S1 in .
Statistical AnalysesThe study encompassed several crucial steps. In the data preprocessing stage, 2 primary operations were undertaken. First, for data proofreading, a check was made to determine if there were any missing values within the data. In the case of categorized data, values were assigned if necessary. Second, with regard to missing value processing, data with missing values exceeding 30% were directly eliminated. Concurrently, for data with missing values less than 30%, Monte Carlo multiple interpolation was used for interpolation.
Proceeding to the data analysis phase, SPSS 22.0 (IBM Corp) was used for data statistical analysis. For measurement data, if they adhered to a normal distribution, a t test (2-tailed) was used for comparison between groups. The t test (2-tailed) was a statistical test designed to determine if there was a significant difference between the means of the two groups. In the event that the measurement data did not follow a normal distribution, they were represented as median (IQR). Count data were described by frequency and percentage. Regarding the measured information in the influencing factors, if it satisfied the normal distribution, the independent samples t test (2-tailed) was used for testing. The independent samples t test (2-tailed) was a method for comparing the means of two independent groups. If the measured information in the influencing factors did not conform to the normal distribution, the Mann-Whitney U rank sum test was used. The Mann-Whitney U rank sum test was a nonparametric test used for comparing two independent groups. This study consisted entirely of count data, frequency and percentage were used for statistical description, and the chi-square test was used for statistical analysis. The chi-square test was a statistical test designed to determine if there was a significant association between two categorical variables.
Next, in the delineation of the dataset step, this study used randomized splitting to divide the dataset into a training set (70%), a test set (15%), and a validation set (15%).
In the feature selection process, before feature selection, the data were standardized. Then, after the completion of the standardization process, feature selection was carried out. Pycharm (JetBrains Corp) was used. Principal component analysis (PCA) and RF were two methods used to screen the variables, respectively. PCA was a statistical procedure that used an orthogonal transformation to convert a set of correlated variables into a set of uncorrelated variables known as principal components []. RF was an ensemble learning method for classification, regression, and other tasks that operated by constructing a multitude of decision trees during training and outputting the class that was the mode of the classes of the individual trees []. The two feature selection methods were compared, the importance of the features was ranked, and the visualization of feature importance was also performed.
In the imbalance data handling stage, this study used 5 methods for processing unbalanced datasets. These methods included oversampling, undersampling, Adaptive Synthetics Sampling, Synthetic Minority Over-sampling Technique (SMOTE), and Synthetic Minority Over-sampling Technique and Edited Nearest Neighbors (SMOTE-ENN). Models constructed using the original dataset were compared with models constructed from datasets that had been processed by these 5 methods.
Finally, in the model construction stage, 7 models were constructed in this study. They were decision tree, RF, support vector machine, extreme gradient boosting, adaptive boosting (AdaBoost), naive Bayes model, multilayer perceptron, and bootstrap forest. The decision tree was a flowchart-like structure where each internal node represented a test on an attribute, each branch represented the outcome of a test, and each leaf node represented a class or a value []. The RF was an ensemble learning method as previously mentioned []. The support vector machine was a supervised learning algorithm that analyzed data for classification and regression analysis []. Extreme gradient boosting was an efficient implementation of gradient boosting for large datasets []. AdaBoost was an iterative algorithm that combined multiple weak classifiers to form a strong classifier []. The naive Bayes model was a probabilistic classifier based on applying Bayes’ theorem with strong independence assumptions between the features []. The multilayer perceptron was a type of artificial neural network with multiple layers of neurons []. The bootstrap forest was an ensemble method that combined multiple bootstrap samples to build a forest of trees. The accuracy, precision, sensitivity, F1-score, and area under the curve (AUC) of each model were compared, and receiver operating characteristic (ROC) curves of each model were drawn. After selecting the optimal model, a 10-fold cross-validation was performed using the training and validation set. In order to construct a better model, we used hyperparameter optimization to find the best combination of parameters that makes the model perform best on the training set and achieve better results on the test set.
Ethical ConsiderationsThe study was approved by the Ethics Committee of Zhongda Hospital, Southeast University (2022ZDSYLL401-Y01).
Among the 3883 individuals in the JHS, 489 had CHF at baseline and 3394 did not have CHF. Excluding patients who were lost to visit and did not have any electronic medical records, 2553 people did not have CHF at baseline. The mean age of this population was 57.84 (13.45) years, with 1590 female participants (62.2% of the population) and 963 male participants (37.7% of the population). The screening process is shown in . The dataset (n=2553) was randomly divided into three parts: 70% (n=1787) of the data for model training, 15% (n=383) for model test and 15% (n=383) for model validation. The amount of missing data for the predictors left ventricular diastolic diameter, left ventricular systolic diameter, left ventricular mass, depression, vitamin D2, vitamin D3 derivatives, shortness of breath, walking 100 m with wheezing, and loneliness was greater than 30%, so these predictors were not included in the analysis.
Figure 1. Study flowchart. CHF: chronic heart failure; JHS: Jackson Heart Study; V2: first follow-up; V3: second follow-up. Univariate Analysis of Variables Influencing the Occurrence of CHFAlcohol, smoking, health insurance, income, occupation, education, minutes of walking or running, nocturnal sleep dyspnea, ever had swelling of feet or ankles, chest ever sound wheezy without cold, left ventricular regional wall motion, cardiac disease, age, BMI, systolic blood pressure, glycosylated hemoglobin, triglycerides, ultrasensitive C-reactive protein, glomerular filtration rate, heart rate, stress, regional poverty population ratio, the status of favorite food stores within 3 km, status of sports facilities within 3 km, and the ratio of early maximal ventricular filling velocity to atrial maximal ventricular filling velocity were statistically significantly different in the population without heart failure (P<.05). A one-way analysis of the baseline characteristics of the included patients is shown in -.
Table 1. One-way analysis of the baseline characteristics (part 1).VariablesPeople without heart failure (n=2307), n (%)People with heart failure (n=264), n (%)Chi-square (df)PGender0.3 (1).56aLV: left ventricle.
Table 3. One-way analysis of the baseline characteristics (part 3).VariablesPeople without heart failure, median (IQR)People with heart failure, median (IQR)Mann-Whitney U testPAge (years)54 (45-63)67 (58.75-73)–11.9This study made use of PCA and the RF method for feature selection. The model was trained using root mean square error (RMSE) as a criterion. The principle is that each step includes an additional feature with the highest variance as a basis for classification []. The number of selected features was used as the horizontal axis and the predicted RMSE score for each fitted model was used as the vertical axis.
PCA offers the advantage of transforming a set of correlated variables into a set of uncorrelated principal components, thereby reducing dimensionality and enhancing interpretability. After feature selection by PCA, a total of 15 features were incorporated. The initial eigenvalues, percentage of variance, and accumulation of these features are presented in . RMSE results are presented in .
Table 4. The result of these features selected by principal component analysis.FeatureInitial eigenvaluePercentage of variance (%)Accumulation (%)Age (years)3.277.427.42Gender2.475.6113.03Fasting total cholesterol (mg/dL)2.215.0218.04High-density lipoprotein (mg/dL)1.954.4422.48Status of favorite food stores within 3 km1.784.0326.52Income1.723.9030.41Peak early diastolic velocity of mitral annulus1.483.3633.77LVa regional wall motion1.363.0936.86Smoke1.262.8539.71Dark-colored green vegetables1.222.7842.49Minutes of walking or running1.172.6745.16Cardiac disease1.112.5247.68Threats or harassment1.082.4550.13Rate your sleep quality overall1.052.452.54Systolic blood pressure (mm Hg)1.037454.88aLV: left ventricle.
Figure 2. Root mean square error (RMSE) results of the principal component analysis. On the other hand, the RF method is known for its robustness and ability to handle high-dimensional data. After feature selection by RF, a total of 21 features were included. The importance of these features is shown in . RMSE results are presented in .
Table 5. Characteristic importance of feathers selected by random forest.FeatureCharacteristic importanceAge0.07Glomerular filtration rate0.07Glycosylated hemoglobin0.06Systolic blood pressure0.05BMI0.04Ratio of early maximal ventricular filling velocity to atrial maximal ventricular filling velocity0.04Eggs0.04Dark-colored green vegetables0.04Heart rate0.03Peak early diastolic velocity of mitral annulus0.03Fasting total cholesterol0.03Vitamin D30.03Proportion of the population living in poverty in the area0.03Ultrasensitive C-reactive protein0.03Status of sports facilities within 3 km0.03Low-density lipoprotein0.03Ever awakened by trouble breathing0.03Status of favorite food stores within 3 km0.03Fasting triglycerides0.03High-density lipoprotein0.03Ejection fraction0.03
Figure 3. Root mean square error (RMSE) results of the random forest method. To compare the feature selection methods, this study used 10-fold cross-validation. After calculating the mean RMSE and plotting the image as shown in , the results demonstrated that the outcomes after feature selection by RF outperformed those after feature selection by PCA. The average RMSE mean of RF was 0.30. The average RMSE mean of both RF and original data was 0.31. This highlights the superiority of the RF method in terms of providing more accurate and reliable feature selection results.
Figure 4. Root mean square error (RMSE) results of the original data and different feather selection. PCA: principal component analysis; RF: random forest. Data BalanceThis study’s analysis of machine learning algorithms using diverse data balancing techniques is presented in . The result indicated that, in contrast to other data balancing strategies used in this study, SMOTE-ENN consistently surpassed all evaluated models in terms of accuracy.
Table 6. Comparison of imbalanced data handling techniques across each machine learning algorithm.Algorithms and performance metricsUnbalanced dataUndersamplingOversamplingADASYNaSMOTEbSMOTE-ENNcDecision tree
Comments (0)