Development and validation of a machine learning risk prediction model for asthma attacks in adults in primary care
Open Access
- 23 April 2025
- journal article
- research article
- Published by Springer Nature in npj Primary Care Respiratory Medicine
- Vol. 35 (1) , 1-9
Abstract
Primary care consultations provide an opportunity for patients and clinicians to assess asthma attack risk. Using a data-driven risk prediction tool with routinely collected health records may be an efficient way to aid promotion of effective self-management, and support clinical decision making. Longitudinal Scottish primary care data for 21,250 asthma patients were used to predict the risk of asthma attacks in the following year. A selection of machine learning algorithms (i.e., Naïve Bayes Classifier, Logistic Regression, Random Forests, and Extreme Gradient Boosting), hyperparameters, training data enrichment methods were explored, and validated in a random unseen data partition. Our final Logistic Regression model achieved the best performance when no training data enrichment was applied. Around 1 in 3 (36.2%) predicted high-risk patients had an attack within one year of consultation, compared to approximately 1 in 16 in the predicted low-risk group (6.7%). The model was well calibrated, with a calibration slope of 1.02 and an intercept of 0.004, and the Area under the Curve was 0.75. This model has the potential to increase the efficiency of routine asthma care by creating new personalized care pathways mapped to predicted risk of asthma attacks, such as priority ranking patients for scheduled consultations and interventions. Furthermore, it could be used to educate patients about their individual risk and risk factors, and promote healthier lifestyle changes, use of self-management plans, and early emergency care seeking following rapid symptom deterioration.Keywords
This publication has 39 references indexed in Scilit:
- Key recommendations for primary care from the 2022 Global Initiative for Asthma (GINA) updatenpj Primary Care Respiratory Medicine, 2023
- A prediction model for asthma exacerbations after stopping asthma biologicsAnnals of Allergy, Asthma & Immunology, 2022
- Systematic literature review of the clinical, humanistic, and economic burden associated with asthma uncontrolled by GINA Steps 4 or 5 treatmentCurrent Medical Research and Opinion, 2018
- Opportunities and challenges in developing deep learning models using electronic health records data: a systematic reviewJournal of the American Medical Informatics Association, 2018
- Learning from Imbalanced Data Sets2018
- Use of electronic medical records and biomarkers to manage risk and resource efficienciesEuropean Clinical Respiratory Journal, 2017
- Presentation of respiratory symptoms prior to diagnosis in general practice: a case–control study examining free text and morbidity codesBMJ Open, 2015
- Learning from Imbalanced DataIEEE Transactions on Knowledge and Data Engineering, 2009
- The Elements of Statistical Learning2009
- Why don't patients attend the asthma clinic?Primary Care Respiratory Journal, 1999