{"id":{"repo_id":"edinburgh","oai_identifier":"oai:era.ed.ac.uk:1842/38466"},"canonical_url":"https://search.ndltd.org/etd/edinburgh/oai:era.ed.ac.uk:1842/38466","repository":{"repo_id":"edinburgh","name":"University of Edinburgh","base_url":"https://era.ed.ac.uk/server/oai/request"},"display":{"title":"Data-driven approaches for predicting asthma attacks in adults in primary care","abstract":"Background Asthma attacks cause approximately 270 hospitalisations and four deaths per day in the United Kingdom (UK). Previous attempts to construct data-driven risk prediction models of asthma attacks have lacked clinical utility: either producing inaccurate predictions or requiring patient data which are not cost-effective to collect on a large scale (such as electronic monitoring device data). Electronic Health Record (EHR) use throughout the UK enables researchers to harness comprehensive and panoramic patient data, but their cleaning and pre-processing requires sophisticated empirical experimentation and data analytics approaches. My objectives were to appraise the previously utilised methods in asthma attack risk prediction modelling for feature extraction, model development, and model selection, and to train and test a model in Scottish EHRs. Methods In this thesis, I used a Scottish longitudinal primary care EHR dataset with linked secondary care records, to investigate the optimisation of an asthma attack risk prediction model. To inform the model, I refined methods for estimation of asthma medication adherence from EHRs, compared model training data enrichment procedures, and evaluated measures for validating model performance. After conducting a critical appraisal of the methods employed in the literature, I trained and tested four statistical learning algorithms for prediction in the next four weeks, i.e. logistic regression, naïve Bayes classification, random forests, and extreme gradient boosting, and validated model performance in an unseen hold-out dataset. Training data enrichment methods were compared across all algorithms to establish whether the sensitivity of estimating relatively uncommon event incidence, such as asthma attacks in the general asthma population, could be improved. Secondary event horizons were also examined, such as prediction in the next six months. Empirical experimentation established the balanced accuracy to be the most appropriate prediction model performance measure, and the calibration between estimated and observed risk was additionally assessed using the Area Under the Receiver-Operator Curve (AUC). Results Data were available for over 670,000 individuals, followed for up to 17 years (177,306 person-years in total). Binary prediction of asthma attacks in the following four-week period resulted in 1,203,476 data samples, of which 1% contained one or more attacks (12,193 total attacks). In the preliminary model selection phase, the random forest algorithm provided the best balance between accuracy in those with asthma attacks (sensitivity) and in those predicted to have attacks (positive predictive value) in the following four weeks. In an unseen data partition, the final random forest model, with optimised hyper-parameters, achieved an AUC of 0.91, and a balanced accuracy of 73.6% after the application of an optimised decision threshold. Accurate predictions were made for a median of 99.6% of those who did not go on to have attacks (specificity). As expected with rare event predictions, the sensitivity was lower at 47.7%, but this was well balanced with the positive predictive value of 48.9%. Furthermore, several of the secondary models, including predicting asthma attacks in the following 12 weeks, achieved state-of-the-art performance and still had high potential clinical utility. Conclusions I successfully developed an EHR-based model for predicting asthma attacks in the next four weeks. Accurately predicting asthma attacks occurrence may facilitate closer monitoring to ensure that preventative therapy is adequately managing symptoms, reinforce the need to keep abreast of triggers, and allow rescue treatments to be administered quickly when necessary.","abstract_html":"Background Asthma attacks cause approximately 270 hospitalisations and four deaths per day in the United Kingdom (UK). Previous attempts to construct data-driven risk prediction models of asthma attacks have lacked clinical utility: either producing inaccurate predictions or requiring patient data which are not cost-effective to collect on a large scale (such as electronic monitoring device data). Electronic Health Record (EHR) use throughout the UK enables researchers to harness comprehensive and panoramic patient data, but their cleaning and pre-processing requires sophisticated empirical experimentation and data analytics approaches. My objectives were to appraise the previously utilised methods in asthma attack risk prediction modelling for feature extraction, model development, and model selection, and to train and test a model in Scottish EHRs. Methods In this thesis, I used a Scottish longitudinal primary care EHR dataset with linked secondary care records, to investigate the optimisation of an asthma attack risk prediction model. To inform the model, I refined methods for estimation of asthma medication adherence from EHRs, compared model training data enrichment procedures, and evaluated measures for validating model performance. After conducting a critical appraisal of the methods employed in the literature, I trained and tested four statistical learning algorithms for prediction in the next four weeks, i.e. logistic regression, naïve Bayes classification, random forests, and extreme gradient boosting, and validated model performance in an unseen hold-out dataset. Training data enrichment methods were compared across all algorithms to establish whether the sensitivity of estimating relatively uncommon event incidence, such as asthma attacks in the general asthma population, could be improved. Secondary event horizons were also examined, such as prediction in the next six months. Empirical experimentation established the balanced accuracy to be the most appropriate prediction model performance measure, and the calibration between estimated and observed risk was additionally assessed using the Area Under the Receiver-Operator Curve (AUC). Results Data were available for over 670,000 individuals, followed for up to 17 years (177,306 person-years in total). Binary prediction of asthma attacks in the following four-week period resulted in 1,203,476 data samples, of which 1% contained one or more attacks (12,193 total attacks). In the preliminary model selection phase, the random forest algorithm provided the best balance between accuracy in those with asthma attacks (sensitivity) and in those predicted to have attacks (positive predictive value) in the following four weeks. In an unseen data partition, the final random forest model, with optimised hyper-parameters, achieved an AUC of 0.91, and a balanced accuracy of 73.6% after the application of an optimised decision threshold. Accurate predictions were made for a median of 99.6% of those who did not go on to have attacks (specificity). As expected with rare event predictions, the sensitivity was lower at 47.7%, but this was well balanced with the positive predictive value of 48.9%. Furthermore, several of the secondary models, including predicting asthma attacks in the following 12 weeks, achieved state-of-the-art performance and still had high potential clinical utility. Conclusions I successfully developed an EHR-based model for predicting asthma attacks in the next four weeks. Accurately predicting asthma attacks occurrence may facilitate closer monitoring to ensure that preventative therapy is adequately managing symptoms, reinforce the need to keep abreast of triggers, and allow rescue treatments to be administered quickly when necessary.","abstract_has_math":false,"creators":["Tibble, Holly"],"institution":"The University of Edinburgh","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Sheikh, Aziz","Tsanas, Thanasis","Horne, Robert"],"committee_chairs":[],"committee_members":[],"year":2021,"date_issued":"2021-12-08","date_published":"2021-12-08","updated_at":"2026-11-18T19:24:34Z","subjects":["asthma attack prediction","data-driven risk prediction","Electronic Health Record","EHR use","patient data","model development","datasets","balanced accuracy"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://dx.doi.org/10.7488/era/1730"],"render_values":[{"text":"http://dx.doi.org/10.7488/era/1730","href":"http://dx.doi.org/10.7488/era/1730","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1842/38466","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1842/38466","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://era.ed.ac.uk/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aera.ed.ac.uk%3A1842%2F38466","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Sheikh, Aziz","Tsanas, Thanasis","Horne, Robert"]},{"key":"dc:creator","label":"Author","values":["Tibble, Holly"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2022-01-25T14:23:45Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2022-01-25T14:23:45Z"]},{"key":"dc:date.issued","label":"Date","values":["2021-12-08"]},{"key":"dc:publisher","label":"Institution","values":["The University of Edinburgh"]},{"key":"dc:relation.hasversion","label":"Dc Relation Hasversion","values":["Tibble H, Chan AHY, Mitchell EA, Horne E, Doudesis D, Horne R, Mizani MA, Sheikh A, Tsanas A. (2021) A Data-Driven Typology of Asthma Medication Adherence using Cluster Analysis. Scientific Reports. 10(1). 14999.","Tibble H, Lay-Flurrie J, Sheikh A, Horne R, Mizani MA, Tsanas A., The Salford Lung Study Team. (2020) Linkage of Primary Care Prescribing Records and Pharmacy Dispensing Records in the Salford Lung Study: Application in Asthma. BMC Medical Research Methodology. 20(1). 303.","Tibble H, Flook M, Sheikh A, Tsanas A, Horne R, Vrijens B, De Geest S, Stagg HR. (2020) Measuring and reporting treatment adherence: what can we learn by comparing two respiratory conditions? British Journal of Clinical Pharmacology. 87(3). 825-836","Tibble H, Horne E, Horne R, Mizani AM, Simpson CR, Sheikh A, Tsanas A. (2019) Predicting asthma attacks in primary care: protocol for developing a machine learning-based prediction model. BMJ Open. 9(7), e028375","Tibble H, Chan A, Mitchell EA, Horne R, Mizani MA, Sheikh A, Tsanas A. (2019) Heterogeneity in Asthma Medication Adherence Measurement. 2019 IEEE 19th International Conference on Bioinformatics and Bioengineering (BIBE). p. 899-903.","Tibble H, Sheikh A, Tsanas A, Horne R, Mizani M, Simpson C, Lay-Flurrie, J. (2019) Linkage of Primary Care Prescribing Records and Pharmacy Dispensing Records in Asthma Controller Medications. International Journal of Population Data Science, 4(3)."]},{"key":"dc:type","label":"Dc Type","values":["Thesis or Dissertation"]},{"key":"dc:type.qualificationlevel","label":"Dc Type Qualificationlevel","values":["Doctoral"]},{"key":"dc:type.qualificationname","label":"Dc Type Qualificationname","values":["PhD Doctor of Philosophy"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["asthma attack prediction","data-driven risk prediction","Electronic Health Record","EHR use","patient data","model development","datasets","balanced accuracy"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1842/38466","http://dx.doi.org/10.7488/era/1730"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Background Asthma attacks cause approximately 270 hospitalisations and four deaths per day in the United Kingdom (UK). Previous attempts to construct data-driven risk prediction models of asthma attacks have lacked clinical utility: either producing inaccurate predictions or requiring patient data which are not cost-effective to collect on a large scale (such as electronic monitoring device data). Electronic Health Record (EHR) use throughout the UK enables researchers to harness comprehensive and panoramic patient data, but their cleaning and pre-processing requires sophisticated empirical experimentation and data analytics approaches. My objectives were to appraise the previously utilised methods in asthma attack risk prediction modelling for feature extraction, model development, and model selection, and to train and test a model in Scottish EHRs. Methods In this thesis, I used a Scottish longitudinal primary care EHR dataset with linked secondary care records, to investigate the optimisation of an asthma attack risk prediction model. To inform the model, I refined methods for estimation of asthma medication adherence from EHRs, compared model training data enrichment procedures, and evaluated measures for validating model performance. After conducting a critical appraisal of the methods employed in the literature, I trained and tested four statistical learning algorithms for prediction in the next four weeks, i.e. logistic regression, naïve Bayes classification, random forests, and extreme gradient boosting, and validated model performance in an unseen hold-out dataset. Training data enrichment methods were compared across all algorithms to establish whether the sensitivity of estimating relatively uncommon event incidence, such as asthma attacks in the general asthma population, could be improved. Secondary event horizons were also examined, such as prediction in the next six months. Empirical experimentation established the balanced accuracy to be the most appropriate prediction model performance measure, and the calibration between estimated and observed risk was additionally assessed using the Area Under the Receiver-Operator Curve (AUC). Results Data were available for over 670,000 individuals, followed for up to 17 years (177,306 person-years in total). Binary prediction of asthma attacks in the following four-week period resulted in 1,203,476 data samples, of which 1% contained one or more attacks (12,193 total attacks). In the preliminary model selection phase, the random forest algorithm provided the best balance between accuracy in those with asthma attacks (sensitivity) and in those predicted to have attacks (positive predictive value) in the following four weeks. In an unseen data partition, the final random forest model, with optimised hyper-parameters, achieved an AUC of 0.91, and a balanced accuracy of 73.6% after the application of an optimised decision threshold. Accurate predictions were made for a median of 99.6% of those who did not go on to have attacks (specificity). As expected with rare event predictions, the sensitivity was lower at 47.7%, but this was well balanced with the positive predictive value of 48.9%. Furthermore, several of the secondary models, including predicting asthma attacks in the following 12 weeks, achieved state-of-the-art performance and still had high potential clinical utility. Conclusions I successfully developed an EHR-based model for predicting asthma attacks in the next four weeks. Accurately predicting asthma attacks occurrence may facilitate closer monitoring to ensure that preventative therapy is adequately managing symptoms, reinforce the need to keep abreast of triggers, and allow rescue treatments to be administered quickly when necessary."]},{"key":"dc:title","label":"Title","values":["Data-driven approaches for predicting asthma attacks in adults in primary care"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Sheikh, Aziz","Tsanas, Thanasis","Horne, Robert"],"dc:creator":["Tibble, Holly"],"dc:date.accessioned":["2022-01-25T14:23:45Z"],"dc:date.available":["2022-01-25T14:23:45Z"],"dc:date.issued":["2021-12-08"],"dc:description.abstract":["Background Asthma attacks cause approximately 270 hospitalisations and four deaths per day in the United Kingdom (UK). Previous attempts to construct data-driven risk prediction models of asthma attacks have lacked clinical utility: either producing inaccurate predictions or requiring patient data which are not cost-effective to collect on a large scale (such as electronic monitoring device data). Electronic Health Record (EHR) use throughout the UK enables researchers to harness comprehensive and panoramic patient data, but their cleaning and pre-processing requires sophisticated empirical experimentation and data analytics approaches. My objectives were to appraise the previously utilised methods in asthma attack risk prediction modelling for feature extraction, model development, and model selection, and to train and test a model in Scottish EHRs. Methods In this thesis, I used a Scottish longitudinal primary care EHR dataset with linked secondary care records, to investigate the optimisation of an asthma attack risk prediction model. To inform the model, I refined methods for estimation of asthma medication adherence from EHRs, compared model training data enrichment procedures, and evaluated measures for validating model performance. After conducting a critical appraisal of the methods employed in the literature, I trained and tested four statistical learning algorithms for prediction in the next four weeks, i.e. logistic regression, naïve Bayes classification, random forests, and extreme gradient boosting, and validated model performance in an unseen hold-out dataset. Training data enrichment methods were compared across all algorithms to establish whether the sensitivity of estimating relatively uncommon event incidence, such as asthma attacks in the general asthma population, could be improved. Secondary event horizons were also examined, such as prediction in the next six months. Empirical experimentation established the balanced accuracy to be the most appropriate prediction model performance measure, and the calibration between estimated and observed risk was additionally assessed using the Area Under the Receiver-Operator Curve (AUC). Results Data were available for over 670,000 individuals, followed for up to 17 years (177,306 person-years in total). Binary prediction of asthma attacks in the following four-week period resulted in 1,203,476 data samples, of which 1% contained one or more attacks (12,193 total attacks). In the preliminary model selection phase, the random forest algorithm provided the best balance between accuracy in those with asthma attacks (sensitivity) and in those predicted to have attacks (positive predictive value) in the following four weeks. In an unseen data partition, the final random forest model, with optimised hyper-parameters, achieved an AUC of 0.91, and a balanced accuracy of 73.6% after the application of an optimised decision threshold. Accurate predictions were made for a median of 99.6% of those who did not go on to have attacks (specificity). As expected with rare event predictions, the sensitivity was lower at 47.7%, but this was well balanced with the positive predictive value of 48.9%. Furthermore, several of the secondary models, including predicting asthma attacks in the following 12 weeks, achieved state-of-the-art performance and still had high potential clinical utility. Conclusions I successfully developed an EHR-based model for predicting asthma attacks in the next four weeks. Accurately predicting asthma attacks occurrence may facilitate closer monitoring to ensure that preventative therapy is adequately managing symptoms, reinforce the need to keep abreast of triggers, and allow rescue treatments to be administered quickly when necessary."],"dc:identifier.uri":["https://hdl.handle.net/1842/38466","http://dx.doi.org/10.7488/era/1730"],"dc:language.iso":["en"],"dc:publisher":["The University of Edinburgh"],"dc:relation.hasversion":["Tibble H, Chan AHY, Mitchell EA, Horne E, Doudesis D, Horne R, Mizani MA, Sheikh A, Tsanas A. (2021) A Data-Driven Typology of Asthma Medication Adherence using Cluster Analysis. Scientific Reports. 10(1). 14999.","Tibble H, Lay-Flurrie J, Sheikh A, Horne R, Mizani MA, Tsanas A., The Salford Lung Study Team. (2020) Linkage of Primary Care Prescribing Records and Pharmacy Dispensing Records in the Salford Lung Study: Application in Asthma. BMC Medical Research Methodology. 20(1). 303.","Tibble H, Flook M, Sheikh A, Tsanas A, Horne R, Vrijens B, De Geest S, Stagg HR. (2020) Measuring and reporting treatment adherence: what can we learn by comparing two respiratory conditions? British Journal of Clinical Pharmacology. 87(3). 825-836","Tibble H, Horne E, Horne R, Mizani AM, Simpson CR, Sheikh A, Tsanas A. (2019) Predicting asthma attacks in primary care: protocol for developing a machine learning-based prediction model. BMJ Open. 9(7), e028375","Tibble H, Chan A, Mitchell EA, Horne R, Mizani MA, Sheikh A, Tsanas A. (2019) Heterogeneity in Asthma Medication Adherence Measurement. 2019 IEEE 19th International Conference on Bioinformatics and Bioengineering (BIBE). p. 899-903.","Tibble H, Sheikh A, Tsanas A, Horne R, Mizani M, Simpson C, Lay-Flurrie, J. (2019) Linkage of Primary Care Prescribing Records and Pharmacy Dispensing Records in Asthma Controller Medications. International Journal of Population Data Science, 4(3)."],"dc:subject":["asthma attack prediction","data-driven risk prediction","Electronic Health Record","EHR use","patient data","model development","datasets","balanced accuracy"],"dc:title":["Data-driven approaches for predicting asthma attacks in adults in primary care"],"dc:type":["Thesis or Dissertation"],"dc:type.qualificationlevel":["Doctoral"],"dc:type.qualificationname":["PhD Doctor of Philosophy"],"others:access_status":["open.access"]},"updated_at":"2026-11-18T19:24:34Z"}