- Research article
- Open Access
- Open Peer Review
Predicting two-year survival versus non-survival after first myocardial infarction using machine learning and Swedish national register data
© The Author(s). 2017
- Received: 24 January 2017
- Accepted: 28 June 2017
- Published: 5 July 2017
Machine learning algorithms hold potential for improved prediction of all-cause mortality in cardiovascular patients, yet have not previously been developed with high-quality population data. This study compared four popular machine learning algorithms trained on unselected, nation-wide population data from Sweden to solve the binary classification problem of predicting survival versus non-survival 2 years after first myocardial infarction (MI).
This prospective national registry study for prognostic accuracy validation of predictive models used data from 51,943 complete first MI cases as registered during 6 years (2006–2011) in the national quality register SWEDEHEART/RIKS-HIA (90% coverage of all MIs in Sweden) with follow-up in the Cause of Death register (> 99% coverage). Primary outcome was AUROC (C-statistic) performance of each model on the untouched test set (40% of cases) after model development on the training set (60% of cases) with the full (39) predictor set. Model AUROCs were bootstrapped and compared, correcting the P-values for multiple comparisons with the Bonferroni method. Secondary outcomes were derived when varying sample size (1–100% of total) and predictor sets (39, 10, and 5) for each model. Analyses were repeated on 79,869 completed cases after multivariable imputation of predictors.
A Support Vector Machine with a radial basis kernel developed on 39 predictors had the highest complete cases performance on the test set (AUROC = 0.845, PPV = 0.280, NPV = 0.966) outperforming Boosted C5.0 (0.845 vs. 0.841, P = 0.028) but not significantly higher than Logistic Regression or Random Forest. Models converged to the point of algorithm indifference with increased sample size and predictors. Using the top five predictors also produced good classifiers. Imputed analyses had slightly higher performance.
Improved mortality prediction at hospital discharge after first MI is important for identifying high-risk individuals eligible for intensified treatment and care. All models performed accurately and similarly and because of the superior national coverage, the best model can potentially be used to better differentiate new patients, allowing for improved targeting of limited resources. Future research should focus on further model development and investigate possibilities for implementation.
- Cardiovascular disease
- Coronary Artery Syndrome
- Prognostic Modelling
- Myocardial infarction
- Supervised machine learning
Myocardial Infarction (MI) is an acute manifestation of cardiovascular disease (CVD) globally afflicting more than 7 million people annually. Most of the MI risk is ascribed so-called modifiable risk factors, e.g. hyperlipidaemia, diabetes mellitus, smoking, physical inactivity, and obesity. The major underlying cause of MI is coronary heart disease (CHD) . CHD was the leading cause of death worldwide in 2013 (8.14 million deaths, 17% of total), a substantial increase from year 1990 (5.74 million, 12% of total) [2, 3]. Suffering a first MI increases the risk of death and these patients should be monitored closely . If the mortality risk is accurately classified already at hospital discharge this might lead to improved tailoring and efficiency of secondary prevention. Furthermore, population ageing is a growing health concern in most countries,  and age is the single most important risk factor for CHD. As the proportion of first MI patients that are middle-aged or older increases,  improved care for these patients constitutes a greater net benefit.
Capitalizing on advances within the field of Machine Learning (ML)  might improve mortality prognostics in first MI patients. In recent years, ML models have accurately classified complex pathology and intervention outcomes. Examples involve cancer,  Alzheimer’s disease,  and stroke . Multivariate classification modelling using different ML algorithms is insufficiently researched within cardiology and may complement already established risk estimation tools, such as GRACE . To date, ML has predominantly been applied to narrow and small cardiovascular datasets. One rare exception is a large CVD risk prediction study using ML modelling developed with electronic health record data, however also limited to a selected military veteran subpopulation . To the extent of our knowledge, unselected population data from national high-quality cardiovascular registers have yet not been applied to develop and evaluate ML prediction models. If accurate, the superior generalizability of such models should render them particularly suited for national implementation.
The aim of the present study was to use 6 years of Swedish real-world population data gathered at the time of acute admission and treatment for first MI to construct and evaluate four different algorithms predicting all-cause mortality 2 years later. Crucial for this study was the Swedish national quality register on cardiovascular disease, SWEDEHEART . We evaluated (1) boosted C5.0 trees/rule-sets (C5.0), (2) Random Forests (RF), and (3) Support Vector Machines (SVM), and benchmarked these more recently developed algorithms performance against (4) “classic” Logistic regression (LR). LR is a well-established procedure  widely used for predictive modelling, including cardiovascular disease . We hypothesized that all models would predict two-year mortality in first MI patients with a concordance statistic high enough to hold clinical potential (Area Under the Receiver Operating Characteristics Curve (AUROC) > 0.70), and further hypothesized that classification performance would decrease independently as (a) the number of cases was reduced from 100% to 1%, and (b) less important predictors were removed from the full predictor set.
As part of SWEDEHEART, the national quality Register for Information and Knowledge about Swedish Heart Intensive Care Admissions (RIKS-HIA) prospectively registers patients admitted to all Coronary Care Units (CCU) in Sweden for symptoms of acute coronary syndrome. More than 100 variables are collected, and the randomly audited and regularly monitored RIKS-HIA provides excellent coverage of the Swedish population (~ 90% of all MIs < 80 years of age). Independently of the present study, MI diagnosis according to ICD codes I21-I23  was decided by the hospital cardiologist based on clinical symptoms, electrocardiogram, and additional information. RIKS-HIA provided data on 156,690 MIs suffered by 135,934 patients between January 1st 2006 and December 31st 2013. RIKS-HIA is approved by the Swedish Data Inspection Board, and the National Board of Health and Welfare . Through personal identification number linkage, the Cause of Death register supplied death dates for patients that died during the study period with >99% population coverage .
Chief cardiologist and SWEDEHEART register data expertise (CH) was used to reduce the number of predictors from >100 to 69. This initial feature selection was inclusive, meaning that any type of predictors that would possibly indicate future mortality were kept. Thus, redundant proxies and other known nuisance variables were removed in this initial stage. Remaining predictors were deliberately heterogeneous, including established mortality risk indicators (e.g. comorbid diabetes), important survival factors (e.g. statin treatment), of immutable (e.g. age) and modifiable (e.g. smoking) origin. Predictors considered less important for the outcome and with >5% missing values (N = 8) were removed. Predictors considered more important and with >15% missing values (N = 5) were also removed. Multicollinearity was a non-issue as continuous predictor correlations were low (Pearson r range = −.36 to .09). One-of-k coding was used. To ensure predictor representation within single resampling folds, near-zero variance predictors were removed (N = 17). This rendered a full predictor set of 39 variables (5 continuous, 34 dichotomous). Although routinely registered, it can be unfeasible to collect 39 predictor values for one patient. A reduced predictor set (N = 10) and a minimal predictor set (N = 5) were therefore also constructed and evaluated. For such dimensionality reduction, the default predictor rankings for each model selected predictors for the reduced and minimal predictor sets. In this way, some models selected different variables for the 10 and 5 predictor subsets using different selection criteria. A prerequisite for model comparison was that each model had the same full predictor set and patient cases to select from. The predictor selection algorithm BORUTA  was investigated but deemed unsuitable because it selects predictors biased towards random forest models, making model comparisons difficult to interpret.
Classification and sample pre-processing
We ran the first MI date together with the death register to determine which patients were still alive (survivor) or deceased (non-survivor) 2 years later. Cases not part of the studied population (recurrent MIs) and cases lacking adequate exposure time for the outcome in the dataset (registered after the 31st of December 2011 in RIKS-HIA) were excluded (32,430 cases). Also excluded were 22,790 cases of first MI that occurred before the data extraction period (marked as “Yes” on the variable “Previous MI”) and 845 unsure cases in this regard. Because some models and modelling steps required complete data, an additional 27,926 incomplete cases were set aside, yielding a primary sample of 51,943 (5710 deceased) first MI patients with no missing values in the full predictor set. For investigating the effect of sample size on classification performance, outcome stratified random sampling was applied to generate subsamples down to 1% of total cases keeping the class proportions constant. Secondary analyses were conducted on 79,869 cases after multivariable imputation through chained equations and predictive mean matching . For each variable, this method imputes missing values with real values borrowed from other cases which predicted values are closest. The maximum number of multiple imputations was set to 5. All but five predictors had less than 5% missing values before imputation, and those were Weight (10.8%), Smoking (8.4%), Troponin (7.0%), Atrial fibrillation at CCU discharge (6.9%), and Systolic Blood Pressure (6.3%).
Pseudo-randomisation and data partitioning
All stochastic computer operations were initiated with a constant starting seed, which had the result that modelling steps were reproducible and models directly comparable, since the same cases were selected in the resampling for different models. We applied stratified random splits of data  with 60% used for model training and 40% for testing.
Model tuning, training, and testing
To counter overfitting and achieve robust results, adaptive 7-fold cross-validation resampling with 3 repeats was used for model development on the training set. Within this resampling, we applied (1) a tune-grid search of length 15, (2) random down-sampling of the majority class, and (3) predictor centring and scaling. Grid search evaluates k length of evenly increasing values of any model tuning parameter(s). It then selects the parameter value(s) with the highest performance on the training set and uses this setting to construct the final model on the full training set used for later testing [20, 21]. We down-sampled because a large majority of first MI patients are still alive 2 years later. Since classes were heavily unbalanced, we also tuned, trained, and tested models on the performance metric AUROC. AUROC is a single, rank discrimination statistic that is insensitive to class imbalances. Calculated via the trapezoidal rule, AUROC is the area under the resulting curve when plotting a binary classifier’s true positive rate (sensitivity) as a function of its false positive rate (1 – specificity) for all possible cut-off thresholds . AUROC values range between 1 (a perfect classifier) and 0 (a perfect classifier if inverted) where 0.5 corresponds to random guessing (a useless classifier). AUROC >0.7 might be considered a lower threshold for a potentially useful clinical classifier although this is a much more complex judgement also based on the base rate incidence, consequences of false negatives/positives, test risk, monetary cost, and more. Accuracy was inappropriate as performance metric since optimizing models on Accuracy with heavily unbalanced classes biases models towards predicting all cases as belonging to the majority class. Since we optimized on AUROC, models assigned more error-weight to false negatives than false positives. False negatives are also reasonably considered more costly than false positives for the present mortality prediction. Further specification of such weighting should be tailored to the clinical situation, which is beyond the scope of this paper. The hold-out, untouched test set was only used for validation, i.e. the final performance test of developed models. This untouched set was not down-sampled. Instead it was predicted according to the class incidence as occurring in the clinical population.
A brief description of the four employed algorithms follows. Further details are available in the Additional file 1.
Binomial LR is a linear model that assumes a Bernoulli distribution of the outcome and a log-linear relationship with the predictors . LR predicts the binary response probability for the outcome class given the predictor values. In contrast with the three subsequent algorithms, LR lacks tuning parameters. The magnitude of the z-values from the LR was used as predictor importance rank.
Boosted C5.0 is a non-linear model that constructs an ensemble of decision trees from multiple single trees in a stage-wise procedure, up-weighting previously misclassified cases through adaptive boosting [23, 24]. A tree splits data at binary decision nodes, recursively dividing the preceding data into two branches. For each tree at each decision node split, C5.0 selects the optimal variable and variable cut-off value so that entropy reduction is maximized. The tree evolves in this manner until it is ended in terminal nodes. Pessimistic pruning reduces the tree complexity . The C5.0 trees then majority votes on the outcome class of a new case. The portion of total cases that fall in terminal nodes after a predictor split determined the C5.0 predictor rank.
The RF is a non-linear model that constructs an ensemble of decision trees. We used the RF version which combines bootstrap sampling of data for constructing each tree, and random subselection of predictors at each decision node [26, 27]. The RF trees majority votes on outcome class. The RF predictor rank was determined by the Gini importance index, i.e. the reduction in node impurity across trees. Thus, a predictor chosen as root split for many trees gets a higher Gini importance than a predictor chosen less frequently and/or for descendant nodes.
The non-linear SVM projects data into a multidimensional hyperspace, in which each case is mapped as a vector. A hyperplane is fitted to data so that the margin between the classes is maximized using the support vectors, i.e. the closest cases with opposite class labels. We selected the radial basis function as kernel for the present soft-margin SVM, [28, 29] respectively allowing for non-linear classification and some overlap between classes. The SVM output was scaled to make the classifier probabilistic, using Platt’s scaling. The AUROC value for each single predictor when separately modelled on the outcome determined the predictor importance rank. This differs from the preceding algorithms, which instead ranked each predictor relative to the other predictors in the model.
We present Gaussian continuous variables as mean ± SD, non-Gaussian continuous variables as median (IQR), and categorical variables as count (%). For univariate class comparisons, Welch’s t-test for Gaussian continuous predictors, Mann-Whitney’s U-test for non-Gaussian continuous predictors, and Pearson’s χ2-test for categorical predictors were used. For the main comparison of model performances, we present Bonferroni-corrected pairwise D-tests (bootstrapped n = 10,000) on model AUROCs for each predictor set. Statistical significance was set to 5% (two-tailed).
We used custom software developed in C# to select patients and code variables. Analyses were performed in R (version 3.2.3, R Development Core Team, Austria, Vienna) with packages base, C5.0, caret, kernlab, mice, plyr, pROC, randomForest, and stats. [19, 24, 30–34].
Predictors for all cases, by each class, and univariate class comparisons
Predictors (n = 39)
All cases (n = 51,943)
Survivors (n = 46,233)
Non-survivors (n = 5710)
Survivors vs. Non-survivors (P)
68.8 ± 12.3
67.5 ± 11.9
79.3 ± 9.8
79.1 ± 15.9
72.1 ± 15.6
80.0 ± 16.3
Ambulance to CCU
ECG rhythm at CCU
ECG QRS at CCU
Left bundle branch block
ECG STT at CCU
Pulmonary rales at CCU
Other measures at CCU
SBP (mm Hg)
148.9 ± 28.6
143.0 ± 28.2
150.0 ± 30.7
Reperfusion at CCU
ECG rhythm at discharge
Additional test performance metrics
Accuracy (95% CI)
Full predictor set (n = 39)
0.770 (0.764 to 0.776)
0.746 (0.740 to 0.752)
0.756 (0.750 to 0.762)
0.755 (0.749 to 0.761)
Reduced predictor set (n = 10)
0.758 (0.752 to 0.763)
0.758 (0.752 to 0.764)
0.748 (0.742 to 0.754)
0.755 (0.749 to 0.761)
Minimal predictor set (n = 5)
0.750 (0.744 to 0.756)
0.738 (0.732 to 0.744)
0.708 (0.702 to 0.715)
0.751 (0.745 to 0.757)
Of the test set 2284 first MI patients found deceased 2 years later, the highest scoring model (SVM, 39 predictors) classified 1791 correctly and 493 incorrectly at the time of hospital discharge. This model also classified 13,894 survivors correctly and 4599 incorrectly. The predictive information gain from hypothetically using this model when also taking into account base incidence rates (column 3 of Table 2) is illustrated by the following example: Before running this model, the average base risk of a patient being deceased 2 years later is 11.0%. If running this model and it indicates survival, the average risk is reduced to 3.4% (NPV). If the model instead indicates non-survival, the average risk of a patient being deceased is increased to 28.0% (PPV). This corresponds to an average 8.2 risk ratio for the outcome in patients classified as non-survivors versus patients classified as survivors.
Modelling was then repeated after adding 27,926 imputed first MI cases (n total = 79,869). This sensitivity analysis showed that models developed on this extended training set (n = 47,922) predicted the extended hold-out test set (n = 31,947) both similarly between models and slightly better than the primary analyses of complete cases. However, there were some specific model differences. For the 39 predictor set, C5.0 had the highest AUROC (0.879), statistically outperforming RF (vs. 0.875, P = 0.0003), SVM (vs. 0.876, P = 0.0438), and LR (0.874, P < 0.0001), while remaining comparisons were non-significant. Using 10 predictors, C5.0 again performed highest (0.863), significantly higher than LR (vs. 0.858, P = 0.0126), and SVM (vs. 0.845, P < 0.0001), but not RF (vs. 0.863). In turn, RF performed higher than LR (P < 0.0001), and SVM (P < 0.0001), and LR performed higher than SVM (P < 0.0001). When trained on 5 predictors, LR performed highest (0.851), significantly higher than C5.0 (0.842, P < 0.0001), RF (vs. 0.805, P < 0.0001), and SVM (0.8303, P < 0.0001). Additionally, C5.0 outperformed both RF (P < 0.0001), and SVM (P < 0.0001), and SVM outperformed RF (P < 0.0001). Including the imputed cases, the average base incidence risk was 13.9%. Hypothetically running the best performing model (C5.0, 39 predictors) with one new patient at the time of first MI and the model indicates survival, the average two-year mortality risk is reduced to 4.7% (NPV). If the model instead suggests non-survival the risk increases to 44.2% (PPV). On average, the risk ratio is 9.4 for the outcome in patients classified as non-survivors versus patients classified as survivors by this model.
We used 6 years of high-quality population data from the SWEDEHEART/RIKS-HIA national quality register to evaluate four supervised machine learning algorithms on the unbalanced classification problem of differentiating survivors and non-survivors 2 years after their first MI. When optimized on the c-statistic (AUROC), the four trained models showed high and similar performance on the untouched test set. The performance of all models also improved with both increasing sample size and number of predictors. Model training results converged with increasing sample size, especially when 30% or more of the data were used. Adding the remaining 70% of data resulted in modest performance and robustness gains, and practically identical performance regardless of algorithm type.
Regarding the clear performance convergence across models with more samples, we note that a majority of similar ML studies have used fewer samples than 30% of those used herein. Models are generally more variable and unreliable when developed with fewer samples. The present large-scale study therefore highlights a potential problem of data shortage for robust development and performance evaluation of different algorithms. The present study underscores the importance of thorough resampling to counter overfitting, and the need to evaluate predictive models on a hold-out test set exempt from model training. We think that this further highlights the potential problem of data shortage because adequate resampling and data partitioning procedures are intrinsic to building robust models and data shortage hampers both. With that stated, more data is not always better, and factors such as the error in measured values, nature of missing values, data availability, coverage, intended use of constructed models, and more must be considered to arrive at a model’s worth.
The 39 predictor SVM showed substantial predictive power for both survivors and non-survivors. Patients classified as survivors by this model had almost a threefold reduction in their base rate risk of dying within 2 years after their first MI discharge. Conversely, patients classified as non-survivors had an almost threefold increase in their base rate risk. The cost of misclassifying true positives versus true negatives is related to what is done differently for patients as a result of classification. In a clinical setting, a positive classification might suggest more monitoring and interventions – which would likely also benefit misclassified survivors. However, the high age of non-survivors puts a natural cap on the possible longevity for these patients. Today, patient mortality risk post MI can be estimated with established risk models such as GRACE . This may not be sufficient, given that the classification (a) performance of models in this study was high, (b) data is continuously collected as part of the clinical routine at all CCUs in Sweden, (c) procedure for a new patient can be almost fully automated with future linkage of the registers to prediction models, (d) could provide decision support for tailored care through patient risk grouping, and (e) could strengthen risk prediction and communication with individual patients. Patient awareness of risk might also be a motivator to make behavioural changes, and clinicians could better target limited resources.
Speculating on how these results might be implemented in clinical practice, we think that one important evaluation would involve a trial design, with clinicians randomized to either predictive modelling support or current practice. Evaluation would then be on the resulting tailored care and clinical outcomes. A health economic analysis of costs would also be beneficial. The objective must be improved care and/or improved targeting of healthcare resources. The current limited routine use of established risk scores would likely benefit from an increased use of improved prediction models for clinical decision making.
Regarding ethics, cardiologists and allied health professionals do not often communicate mortality risk to their patients. Instead it is common to convey the risk for any serious adverse outcome and how that risk can be reduced. The mortality risk is, however, what many prediction models are developed to estimate, and mortality risk is more deliberately discussed between clinicians. In that sense, we see no additional ethical issues. There is however an ethical concern regarding unintended use of these classifiers. Trained models should not be used to differentiate survivors from non-survivors for any other reason than improving healthcare. As with all technology, the responsibility falls on those that approve, develop, implement, and operate it.
Missing values are always limiting and results based solely on complete cases can be biased. In the present study, the high completeness of the SWEDEHEART/RIKS-HIA and the Cause of Death register alleviated much of this problem, and was also supported by secondary results after imputation. For the latter, it is important to keep in mind the potential biasing of data due to the imputation procedure. Another possible limitation was that we narrowed the study population to first MI patients, so these models are not useable for recurrent MI patients. Regarding specificity, the 21.6% false positives leaves considerable room for improvement. Reducing this error should be prioritised in future research. Another limitation was the choice of a single outcome. There are other important outcomes, for instance CVD-specific mortality, and other outcome timespans. However, our primary aim was to compare different models on this unique data and selected one of the most important post-MI outcomes for this purpose. The comparison of three popular machine learning algorithms with LR showed that “plain” LR performed similarly to – and sometimes even slightly better than – the more computationally advanced algorithms. This was somewhat surprising, especially since LR does not have any tuning parameters and we did not model any interaction effects. If we assume no data shortage and also account for computation time and model transparency, the faster and more informative LR seems to be “the winner” of the present four-algorithm contest. A slight limitation was inherent in comparing the 10 and 5 predictor models that by design rank predictor importance differently. The main strengths of our study are (1) the first-time evaluation of four popular algorithms on high-quality unselected population data for this clinically relevant classification problem, and (2) the comprehensive set of SWEDEHEART/RIKS-HIA predictors showing that it is possible to build thorough mortality classifiers using many heterogeneous clinical variables that are routinely registered and familiar to clinicians. In addition, we also evaluated three different predictor sets and the influence of sample size on model performance. The present models are by the nature of SWEDEHEART/RIKS-HIA data substantially more generalizable to new first MI patients than previously developed models, and might be useful as complementary decision support tools for improving patient health.
Modern medicine has a formidable track-record of applying new technology for identifying and curing disease, prolonging life and improving the quality of life. This has led to a drastic increase in the amount and complexity of patient data. The task of adequately processing and using this information is becoming increasingly unmanageable by humans alone. Our study shows the possibilities of predictive modelling using comprehensive data from high-quality population registers, which should be further investigated in future studies. Several options should be pursued. Instead of imputing missing values, another possibility is to model missing values as potential information, i.e. as additional dummy variables per predictor. In addition, models were highly correlated (r > .90) which refrained us from combining them in a meta-ensemble architecture. On the other hand, these imperfect model correlations suggests that a simple linear combination of LR, C5.0, RF, and SVM predictions could yield slightly higher performance than the best single model . We also aim to evaluate deep learning,  a logical second step with many samples of complex data. Over time, transfer learning procedures might prove particularly useful. Compared to grid or random search, more advanced techniques such as Bayesian optimization will also be evaluated to attain better tuning settings for model hyperparameters . The prospectively collected and annually updated SWEDEHEART/RIKS-HIA register can provide regular data updates allowing for continuous external model validation and improvement using the most recent high-quality data. The high similarity in first MI patients themselves, their acute MI care, and mortality outcomes in the western World suggests that external model validation outside of Sweden might be possible and potentially beneficial for non-Swedish patients. On the other hand, we should then expect at least some drop in model performance, and if predictors are too different, international validation might be unfeasible. Ultimately this is an empirical question for which external data is needed. It would also be interesting to develop similar models using pooled data from several national population registers.
Improved risk prediction of two-year mortality at hospital discharge after first myocardial infarction is important for identifying high-risk individuals who may benefit from intensified treatment and care. The performance was high and similar across the four compared models, and because of the superior national coverage, the best model can potentially be used to better differentiate new patients, allowing for improved targeting of limited clinical resources. Using more cases and predictors than most previous studies, model performance converged to the point of algorithm indifference, suggesting insufficient emphasis on data quantity. Future research should focus on further model development and implementation.
We are deeply grateful to the SWEDEHEART/RIKS-HIA patients. We thank Thomas Schön and Ronnie Pingel for methodological support and valuable manuscript comments.
This work was supported by the Swedish Research Council for Health, Working Life, and Welfare [2014–4947], the Vårdal foundation [2014–0114], and the strategic research program U-CARE [2009–1093]. These funding bodies had no part in the collection, analysis, interpretation of data, and in writing the present manuscript.
Availability of data and materials
This medical data of high-detail and complexity at the individual level is not freely available. There is no default approval of use of this data as third-party data. Instead, given that the researcher has ethical study approval, the RIKS-HIA data that support the findings of this study are available from the Uppsala Clinical Research Center, Dag Hammarskjölds Väg 50A, 752 37 Uppsala, Sweden, http://www.ucr.uu.se/sv/. The R code and C# software is available upon request to the corresponding author.
JW, MT, GM, and CH designed the study, acquired data, interpreted the result, critically revised the manuscript, and approved its final form and submission. JW and MT pre-processed data. JW analysed data and drafted the manuscript.
Ethics approval and consent to participate
According to Swedish law, patients must be informed about their RIKS-HIA participation and their right to have their data deleted at their own request at any time. No patient requested this during 2011–2013 and very few have done so before 2011. Informed consent is thusly waived as it is impossible to combine such consent with the main purpose of these registers – to have complete nation-wide coverage. The present study was approved by the regional ethics committee at Uppsala University (no. 2013/478).
Consent for publication
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
- White HD, Chew DP. Acute myocardial infarction. Lancet. 2008;372:570–84.View ArticlePubMedGoogle Scholar
- Moran AE, Forouzanfar MH, Roth GA, et al. Temporal trends in ischemic heart disease mortality in 21 world regions, 1980 to 2010: the Global Burden of Disease 2010 study. Circulation. 2014;129:1483–92. http://circ.ahajournals.org/content/129/14/1483. Accessed 18 Aug 2016
- GBD 2013 Mortality and Causes of Death Collaborators. Global, regional, and national age-sex specific all-cause and cause-specific mortality for 240 causes of death, 1990-2013: a systematic analysis for the Global Burden of Disease study 2013. Lancet. 2014;385:117–71. http://www.thelancet.com/journals/lancet/article/PIIS0140-6736%2814%2961682-2/fulltext. Accessed 12 Aug 2016
- Perk J, De Backer G, Gohlke H, et al. European guidelines on cardiovascular disease prevention in clinical practice (version 2012). The fifth joint task force of the European Society of Cardiology and Other Societies on Cardiovascular Disease Prevention in Clinical Practice (constituted by representatives of nine societies and by invited experts). Eur Heart J. 2012;33:1635–701. http://eurheartj.oxfordjournals.org/content/33/13/1635.long. Accessed 18 Aug 2016
- WHO. Global Health and Ageing. U.S. Department of Health and Human Services. WHO; 2011. http://www.who.int/ageing/publications/global_health.pdf. Accessed 16 Aug 2016.
- Centers for Disease Control and Prevention. Prevalence of coronary heart disease--United States, 2006-2010. Morb Mortal Wkly Rep. 2011;60:1377–81. https://www.cdc.gov/mmwr/preview/mmwrhtml/mm6040a1.htm. Accessed 15 Aug 2016Google Scholar
- Jordan MI, Mitchell TM. Machine learning: trends, perspectives, and prospects. Science. 2015;349:255–60. http://science.sciencemag.org/content/349/6245/255.full. Accessed 11 Mar 2016.
- Guyon IM, Weston J, Barnhill S, Vapnik VN. Gene selection for cancer classification using support vector machines. Mach Learn. 2002;46:389–422. http://link.springer.com/article/10.1023/A:1012487302797. Accessed 14 Aug 2016View ArticleGoogle Scholar
- Magnin B, Mesrob L, Kinkingnehun S, et al. Support vector machine-based classification of Alzheimer's disease from whole-brain anatomical MRI. Neuroradiology. 2009;51:73–83. http://link.springer.com/article/10.1007%2Fs00234-008-0463-x. Accessed 24 Aug 2016View ArticlePubMedGoogle Scholar
- Asadi H, Dowling R, Yan B, Mitchell P. Machine learning for outcome prediction of acute ischemic stroke post intra-arterial therapy. PLoS One. 2014;9:e88225. http://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0088225. Accessed 24 Aug 2016View ArticlePubMedPubMed CentralGoogle Scholar
- Fox KA, Dabbous OH, Goldberg RJ, et al. Prediction of risk of death and myocardial infarction in the six months after presentation with acute coronary syndrome: prospective multinational observational study (GRACE). BMJ. 2006;333:1091. http://www.bmj.com/content/333/7578/1091.long. Accessed 5 Mar 2015View ArticlePubMedPubMed CentralGoogle Scholar
- Kennedy EH, Wiitala WL, Hayward RA, Sussman JB. Improved cardiovascular risk prediction using nonparametric regression and electronic health record data. Med Care. 2013;51:251–8. http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4081533/. Accessed 24 Aug 2016View ArticlePubMedPubMed CentralGoogle Scholar
- SWEDEHEART. http://www.ucr.uu.se/swedeheart/arsrapport-2015/aeldre-arsrapporter-older-reports/arsrapport-2014. Accessed 11 July 2016.
- Cox DR. The regression analysis of binary sequences. J R Stat Soc Ser B. 1958;20:215–42. https://www.jstor.org/stable/2983890?seq=1#page_scan_tab_contents. Accessed 29 June 2016Google Scholar
- Wilhelmsen L, Wedel H, Tibblin G. Multivariate analysis of risk factors for coronary heart disease. Circulation. 1973;48:950–8. http://circ.ahajournals.org/content/48/5/950.long. Accessed 24 Aug 2016.View ArticlePubMedGoogle Scholar
- WHO. International statistical classification of diseases and related health problems, 10th revision (ICD-10). 1992.http://apps.who.int/classifications/icd10/browse/2016/en#/I20-I25. Accessed 18 Aug 2016.Google Scholar
- Socialstyrelsen. Causes of death 2013. Socialstyrelsen; 2015. http://www.socialstyrelsen.se/Lists/Artikelkatalog/Attachments/19736/2015-2-42.pdf. Accessed 12 Aug 2016.
- Kursa MB, Rudnicki WR. Feature selection with the Boruta package. J Stat Softw. 2010;36:1–13. http://www.jstatsoft.org/v36/i11/. Accessed 1 Sept 2016.View ArticleGoogle Scholar
- van Buuren S, Groothuis-Oudshoorn K. mice: multivariate imputation. J Stat Softw. 2011;45:1–67. https://stat.ethz.ch/education/semesters/ss2012/ams/paper/mice.pdf. Accessed 1 Sept 2016.View ArticleGoogle Scholar
- Kuhn M. Building predictive models in R using the caret package. J Stat Softw. 2008;28:1–26. https://www.jstatsoft.org/article/view/v028i05. Accessed 1 Sept 2016.View ArticleGoogle Scholar
- Kuhn M, Johnson K. Applied predictive modelling. New York: Springer; 2013.Google Scholar
- Fawcett T. An introduction to ROC analysis. Pattern Recogn Lett. 2006;27:861–74. https://ccrma.stanford.edu/workshops/mir2009/references/ROCintro.pdf. Accessed 18 Aug 2016.View ArticleGoogle Scholar
- Quinlan JR. C4.5: programs for machine learning. Morgan Kaufmann Publishers, San Fransisco; 1993.Google Scholar
- Kuhn M, Weston S, Coulter N, Culp M, Quinlan R. C5.0 decision trees and rule-based models. 0.1.0-24 ed. CRAN2015. https://cran.r-project.org/web/packages/C50/C50.pdf. Accessed 1 Sept 2016.
- Wu X, Kumar V, Ross Quinlan J, et al. Top 10 algorithms in data mining. Knowl Inf Sys. 2007;14:1–37. http://www.cs.uvm.edu/~icdm/algorithms/10Algorithms-08.pdf. Accessed 1 Sept 2016Google Scholar
- Ho TK. Random decision forests. Montreal: Third International Conference on Document Analysis and Recognition; 1995. p. 278–82. http://ect.bell-labs.com/who/tkh/publications/papers/odt.pdf. Accessed 1 Sept 2016Google Scholar
- Breiman L. Random Forests. Mach Learn. 2001;45:5–32. URL: http://link.springer.com/article/10.1023/A:1010933404324. Accessed 1 Sept 2016
- Boser BE, Guyon IM, Vapnik VN. A training algorithm for optimal margin classifiers, Proceedings of the fifth annual workshop on computational learning theory – COLT ‘92; 1992. p. 144.http://w.svms.org/training/BOGV92.pdf. Accessed 1 Sept 2016Google Scholar
- Cortes C, Vapnik VN. Support-vector networks. Mach Learn. 1995;20:273–97. http://image.diku.dk/imagecanon/material/cortes_vapnik95.pdf. Accessed 1 Sept 2016Google Scholar
- R Development Core Team. R: a language and environment for statistical computing. Vienna: Foundation for Statistical Computing; 2015. https://www.r-project.org/. Accessed 1 Sept 2016Google Scholar
- Karatzoglou A, Smola A, Hornik K, Zeileis A. Kernlab - an S4 package for kernel methods in R. J Stat Softw. 2004;11:1–20. https://core.ac.uk/download/files/328/18228756.pdf. Accessed 1 Sept 2016View ArticleGoogle Scholar
- Wickham H. The split-apply-combine strategy for data analysis. J Stat Softw. 2011;40:1–29. https://www.jstatsoft.org/article/view/v040i01. Accessed 1 Sept 2016Google Scholar
- Robin X, Turck N, Hainard A, et al. pROC: an open-source package for R and S+ to analyze and compare ROC curves. BMC Bioinformatics. 2011;12:77. http://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-12-77. Accessed 18 Aug 2016View ArticlePubMedPubMed CentralGoogle Scholar
- Liaw A, Wiener M. Classification and regression by randomForest. R News. 2002;2:18–22. http://cogns.northwestern.edu/cbmg/LiawAndWiener2002.pdf. Accessed 1 Sept 2016.
- Smyth P, Wolpert D. Linearly combining density estimators via stacking. Mach Learn. 1999;36:59–83. http://link.springer.com/article/10.1023/A:1007511322260. Accessed 1 Sept 2016.View ArticleGoogle Scholar
- LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521:436–44. http://www.nature.com/nature/journal/v521/n7553/full/nature14539.html. Accessed 18 Aug 2016.View ArticlePubMedGoogle Scholar
- Shahriari B, Swersky K, Wang Z, Adams RP, de Freitas N. Taking the human out of the loop: a review of Bayesian optimization. Proceedings of the IEEE; 2015. p. 148–75. http://ieeexplore.ieee.org/document/7352306/. Accessed 16 Apr 2017.Google Scholar