State of Asthma-Related Hospital Admissions in New Zealand and Predicting Length of Stay Using Machine Learning
Abstract
:1. Introduction
- Preprocessing data: We performed different preprocessing techniques on the raw data before data analysis. Missing values and outliers are commonly available in real datasets. Therefore, preprocessing eliminated the missing values manually identified and used z-score to handle outliers. We grouped some feature values into major categories and excluded minor categories. Before feeding data into machine learning models, we encoded the categorical values using one-hot encoding technique or a manual mapping code. We scaled the numerical values via standardisation.
- Data analysis: It was essential to find the association between different factors with asthma LOS. First, we grouped LOS into stay and no stay. To identify the importance of factors associated with the asthma LOS group, we performed correlation analyses using chi-square and ANOVA tests on categorical and numerical features, respectively. Also, we performed bivariate and multivariate analyses to explore the association of features with the LOS group.
- Feature extraction: Initially, there were 13 variables, including LOS. We derived new features from existing date variables, adding more information to the dataset. Some variables with feature descriptions and dates were removed, which had no extra computational contribution. As a result, we ended up with a total of 9 variables.
- Developing a methodology: For predicting asthma LOS using machine learning algorithms, we extracted instances with LOS in the range of 1 to 14 days and then split them into training and test sets. Different machine learning models were developed and validated using 5-fold cross-validation. Initially, we developed baseline models and, as the next step, applied the grid search technique to tune hyperparameters which could optimise model performance. After identifying the best performing hyperparameter values, we redeveloped a model with the best set of hyperparameters and retrained the model using the whole training set. Finally, these models were tested on the test data.
- Performance Evaluation: To understand and compare the model performance, we evaluated the models on the test data using a few evaluation metrics, RMSE, MSE and MAE, which are error terms commonly used to evaluate regression models. We selected the model having minimum error values as the best model.
- Future Direction: Following all the stages above, we highlight several key points as the future direction towards asthma LOS predictions.
2. Related Work
3. Materials and Methods
3.1. Data Source
3.2. Data Pre-Processing
3.3. Modifying and Deriving Features
3.4. Grouping LOS
3.5. Exploring Feature Set and Development of Machine Learning Models
4. Results
4.1. Characteristics of Asthma Admission Data
4.2. Association of Features with LOS
4.3. Development of Machine Learning Models
5. Discussion
6. Conclusions and Future Direction
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A
Feature | p-Value (95% CI) |
---|---|
Admit Day of Week | <0.05 |
Gender | <0.05 |
Smoker Status | <0.05 |
Diagnostic Code | <0.05 |
Admit Month | 0.969 |
Ethnicity Group | <0.05 |
DHB Group | <0.05 |
Age | <0.05 |
References
- Hargreave, F.; Nair, P. The definition and diagnosis of asthma. Clin. Exp. Allergy 2009, 39, 1652–1658. [Google Scholar] [CrossRef] [PubMed]
- Organization for Economic Co-Operation and Development (OECD). Health Care Utilisation: Hospital Average Length of Stay by Diagnostic Categories. Available online: https://stats.oecd.org/index.aspx?queryid=30165 (accessed on 5 June 2022).
- World Health Organization. Asthma. Available online: https://www.who.int/news-room/fact-sheets/detail/asthma (accessed on 7 February 2022).
- Global Asthma Network. The Global Asthma Report 2018; Global Asthma Network: Auckland, New Zealand, 2018. [Google Scholar]
- National Health Service. Asthma. Available online: https://www.nhs.uk/conditions/asthma/ (accessed on 7 February 2022).
- Navanandan, N.; Hatoun, J.; Celedón, J.C.; Liu, A.H. Predicting severe asthma exacerbations in children: Blueprint for today and tomorrow. J. Allergy Clin. Immunol. Pract. 2021, 9, 2619–2626. [Google Scholar] [CrossRef] [PubMed]
- Seol, H.Y.; Shrestha, P.; Muth, J.F.; Wi, C.-I.; Sohn, S.; Ryu, E.; Park, M.; Ihrke, K.; Moon, S.; King, K. Artificial intelligence-assisted clinical decision support for childhood asthma management: A randomized clinical trial. PLoS ONE 2021, 16, e0255261. [Google Scholar] [CrossRef]
- Lovrić, M.; Banić, I.; Lacić, E.; Pavlović, K.; Kern, R.; Turkalj, M. Predicting treatment outcomes using explainable machine learning in children with asthma. Children 2021, 8, 376. [Google Scholar] [CrossRef]
- Kothalawala, D.M.; Murray, C.S.; Simpson, A.; Custovic, A.; Tapper, W.J.; Arshad, S.H.; Holloway, J.W.; Rezwan, F.I.; STELAR/UNICORN investigators. Development of childhood asthma prediction models using machine learning approaches. Clin. Transl. Allergy 2021, 11, e12076. [Google Scholar] [CrossRef] [PubMed]
- Perpiñá, M.; Gómez-Bastero, A.; Trisán, A.; Martínez-Moragón, E.; Álvarez-Gutiérrez, F.J.; Urrutia, I.; Blanco-Aparicio, M. Expert consensus recommendations for the management of asthma in older adults. Med. Clínica 2022, 159, 53.e1–53.e14. [Google Scholar] [CrossRef]
- Shi, T.; Pan, J.; Katikireddi, S.V.; McCowan, C.; Kerr, S.; Agrawal, U.; Shah, S.A.; Simpson, C.R.; Ritchie, L.D.; Robertson, C.; et al. Risk of COVID-19 hospital admission among children aged 5–17 years with asthma in Scotland: A national incident cohort study. Lancet Respir. Med. 2022, 10, 191–198. [Google Scholar] [CrossRef]
- Khatri, K.L.; Tamil, L.S. Early detection of peak demand days of chronic respiratory diseases emergency department visits using artificial neural networks. IEEE J. Biomed. Health Inform. 2018, 22, 285–290. [Google Scholar] [CrossRef]
- Kim, M.S.; Lee, J.H.; Jang, Y.J.; Lee, C.H.; Choi, J.H.; Sung, T.E. Hybrid deep learning algorithm with open innovation perspective: A prediction model of asthmatic occurrence. Sustainability 2020, 12, 6143. [Google Scholar] [CrossRef]
- Maung, T.Z.; Bishop, J.E.; Holt, E.; Turner, A.M.; Pfrang, C. Indoor Air Pollution and the Health of Vulnerable Groups: A Systematic Review Focused on Particulate Matter (PM), Volatile Organic Compounds (VOCs) and Their Effects on Children and People with Pre-Existing Lung Disease. Int. J. Environ. Res. Public Health 2022, 19, 8752. [Google Scholar] [CrossRef] [PubMed]
- Sandberg, S.; Paton, J.Y.; Ahola, S.; McCann, D.C.; McGuinness, D.; Hillary, C.R.; Oja, H. The role of acute and chronic stress in asthma attacks in children. Lancet 2000, 356, 982–987. [Google Scholar] [CrossRef] [Green Version]
- To, T.; Stanojevic, S.; Moores, G.; Gershon, A.S.; Bateman, E.D.; Cruz, A.A.; Boulet, L.-P. Global asthma prevalence in adults: Findings from the cross-sectional world health survey. BMC Public Health 2012, 12, 204. [Google Scholar] [CrossRef] [Green Version]
- Health Quality and Safety Commission New Zealand. Asthma. Available online: https://www.hqsc.govt.nz/our-data/atlas-of-healthcare-variation/asthma/#:~:text=Internationally%2C%20New%20Zealand%20has%20a,reporting%20taking%20current%20asthma%20medication. (accessed on 4 June 2022).
- Asthma and Respiratory Foundation NZ. Asthma. Available online: https://www.asthmafoundation.org.nz/your-health/living-with-asthma (accessed on 7 February 2022).
- Ministry of Health. Annual Data Explorer 2018/19: New Zealand Health Survey. Wellington: Ministry of Health. Available online: https://minhealthnz.shinyapps.io/nz-health-survey-2018-19-annual-data-explorer (accessed on 4 June 2022).
- Abdelkarim, H.; Durie, M.; Bellomo, R.; Bergmeir, C.; Badawi, O.; El-Khawas, K.; Pilcher, D. A comparison of characteristics and outcomes of patients admitted to the ICU with asthma in Australia and New Zealand and the United States. J. Asthma 2020, 57, 398–404. [Google Scholar] [CrossRef]
- Luo, L.; Ren, J.; Zhang, F.; Zhang, W.; Li, C.; Qui, Z.; Huang, D. The effects of air pollution on length of hospital stay for adult patients with asthma. Int. J. Health Plan. Manag. 2018, 33, e751–e767. [Google Scholar] [CrossRef]
- Dobkin, C.; Finkelstein, A.; Kluender, R.; Notowidigdo, M.J. The Economic Consequences of Hospital Admissions. Am. Econ. Rev. 2018, 108, 308–352. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Schlichting, D.; Fadason, T.; Grant, C.C.; O’Sullivan, J. Childhood asthma in New Zealand: The impact of on-going socioeconomic disadvantage (2010–2019). N. Z. Med. J. 2021, 134, 80–95. [Google Scholar] [PubMed]
- Barnard, L.T.; Zhang, J. The Impact of Respiratory Disease in New Zealand: 2020 Update; University of Otago: Dunedin, New Zealand, 2021. [Google Scholar]
- Thai, H.-D.; Huh, J.-H. Optimizing patient transportation by applying cloud computing and big data analysis. J. Supercomput. 2022, 1–30. [Google Scholar] [CrossRef]
- Soyiri, I.N.; Reidpath, D.D.; Sarran, C. Asthma length of stay in hospitals in London 2001–2006: Demographic, diagnostic and temporal factors. PLoS ONE 2011, 6, e27184. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Shanley, L.A.; Lin, H.; Flores, G. Factors associated with length of stay for pediatric asthma hospitalizations. J. Asthma 2015, 52, 471–477. [Google Scholar] [CrossRef]
- Baek, J.; Kash, B.A.; Xu, X.; Benden, M.; Roberts, J.; Carrillo, G. Association between ambient air pollution and hospital length of stay among children with asthma in South Texas. Int. J. Environ. Res. Public Health 2020, 17, 3812. [Google Scholar] [CrossRef]
- Rachda Naila, M.; Caulier, P.; Chaabane, S.; Chraibi, A.; Piechowiak, S. A Comparative Study of Machine Learning Models for Predicting Length of Stay in Hospitals. J. Inf. Sci. Eng. 2021, 37, 1025–1038. [Google Scholar]
- Turgeman, L.; May, J.H.; Sciulli, R. Insights from a machine learning model for predicting the hospital Length of Stay (LOS) at the time of admission. Expert Syst. Appl. 2017, 78, 376–385. [Google Scholar] [CrossRef]
- Tsai, P.-F.; Chen, P.-C.; Chen, Y.-Y.; Song, H.-Y.; Lin, H.-M.; Lin, F.-M.; Huang, Q.-P. Length of Hospital Stay Prediction at the Admission Stage for Cardiology Patients Using Artificial Neural Network. J. Healthc. Eng. 2016, 2016, 7035463. [Google Scholar] [CrossRef] [Green Version]
- Aghajani, S.; Kargari, M. Determining Factors Influencing Length of Stay and Predicting Length of Stay Using Data Mining in the General Surgery Department. Hosp. Pract. Res. 2016, 1, 53–58. [Google Scholar] [CrossRef] [Green Version]
- Achilonu, O.J.; Fabian, J.; Bebington, B.; Singh, E.; Nimako, G.; Eijkemans, R.M.; Musenge, E. Use of Machine Learning and Statistical Algorithms to Predict Hospital Length of Stay Following Colorectal Cancer Resection: A South African Pilot Study. Front. Oncol. 2021, 11, 644045. [Google Scholar] [CrossRef] [PubMed]
- Ma, X.; Si, Y.; Wang, Z.; Wang, Y. Length of stay prediction for ICU patients using individualized single classification algorithm. Comput. Methods Programs Biomed. 2020, 186, 105224. [Google Scholar] [CrossRef]
- Cohen, H.A.; Blau, H.; Hoshen, M.; Batat, E.; Balicer, R.D. Seasonality of asthma: A retrospective population study. Pediatrics 2014, 133, e923–e932. [Google Scholar] [CrossRef] [Green Version]
- Stats NZ. Ethnicity Standard Classification: Findings from Public Consultation November 2019; Stats NZ: Wellington, New Zealand, 2020. [Google Scholar]
- Boven, N.; Exeter, D.; Sporle, A.; Shackleton, N. The implications of different ethnicity categorisation methods for understanding outcomes and developing policy in New Zealand. Kōtuitui: New Zealand J. Soc. Sci. Online 2020, 15, 123–139. [Google Scholar] [CrossRef]
- Girden, E.R. ANOVA: Repeated Measures; Sage: Thousand Oaks, CA, USA, 1992. [Google Scholar]
- Mahony, T.; Harder, V.S.; Ang, N.; McCulloch, C.E.; Shaw, J.S.; Thombley, R.; Cabana, M.D.; Kleinman, L.C.; Bardach, N.S. Weekend Versus Weekday Asthma-Related Emergency Department Utilization. Acad. Pediatrics 2022, 22, 640–646. [Google Scholar] [CrossRef]
- Krefis, A.C.; Fischereit, J.; Hoffmann, P.; Pinnschmidt, H.; Sorbe, C.; Augustin, M.; Augustin, J. Temporal analysis of determinants for respiratory emergency department visits in a large German hospital. BMJ Open Respir. Res. 2018, 5, e000338. [Google Scholar] [CrossRef]
- Shakir, M.; Rakesh, N. Investigation on Air Pollutant Data Sets using Data Mining Tool. In Proceedings of the 2018 2nd International Conference on IoT in Social, Mobile, Analytics and Cloud (I-SMAC), Palladam, India, 30–31 August 2018; pp. 480–485. [Google Scholar]
- Bennett, J.; Davy, P.; Trompetter, B.; Wang, Y.; Pierse, N.; Boulic, M.; Phipps, R.; Howden-Chapman, P. Sources of indoor air pollution at a New Zealand urban primary school; a case study. Atmos. Pollut. Res. 2019, 10, 435–444. [Google Scholar] [CrossRef]
- Ram, S.; Zhang, W.; Williams, M.; Pengetnze, Y. Predicting asthma-related emergency department visits using big data. IEEE J. Biomed. Health Inform. 2015, 19, 1216–1223. [Google Scholar] [CrossRef] [PubMed]
- Busby, J.; Matthews, J.G.; Chaudhuri, R.; Pavord, I.D.; Hardman, T.C.; Arron, J.R.; Bradding, P.; Brightling, C.E.; Choy, D.F.; Cowan, D.C. Factors affecting adherence with treatment advice in a clinical trial of patients with severe asthma. Eur. Respir. J. 2022, 59, 2100768. [Google Scholar] [CrossRef]
- Padinjappurathu Gopalan, S.; Chowdhary, C.L.; Iwendi, C.; Farid, M.A.; Ramasamy, L.K. An Efficient and Privacy-Preserving Scheme for Disease Prediction in Modern Healthcare Systems. Sensors 2022, 22, 5574. [Google Scholar] [CrossRef] [PubMed]
- Iwendi, C.; Khan, S.; Anajemba, J.H.; Bashir, A.K.; Noor, F. Realizing an efficient IoMT-assisted patient diet recommendation system through machine learning model. IEEE Access 2020, 8, 28462–28474. [Google Scholar] [CrossRef]
- Lisspers, K.; Ställberg, B.; Larsson, K.; Janson, C.; Müller, M.; Łuczko, M.; Bjerregaard, B.K.; Bacher, G.; Holzhauer, B.; Goyal, P. Developing a short-term prediction model for asthma exacerbations from Swedish primary care patients’ data using machine learning-based on the ARCTIC study. Respir. Med. 2021, 185, 106483. [Google Scholar] [CrossRef]
- Feng, Y.; Wang, Y.; Zeng, C.; Mao, H. Artificial intelligence and machine learning in chronic airway diseases: Focus on asthma and chronic obstructive pulmonary disease. Int. J. Med. Sci. 2021, 18, 2871–2889. [Google Scholar] [CrossRef]
- Ramasamy, L.K.; Khan, F.; Shah, M.; Prasad, B.V.V.S.; Iwendi, C.; Biamba, C. Secure Smart Wearable Computing through Artificial Intelligence-Enabled Internet of Things and Cyber-Physical Systems for Health Monitoring. Sensors 2022, 22, 1076. [Google Scholar] [CrossRef]
ICD-10AM Diagnostic Code | Description |
---|---|
J450 | Predominantly allergic asthma |
J451 | Nonallergic asthma |
J458 | Mixed asthma |
J459 | Asthma, unspecified |
J46 | Status asthmaticus |
R05 | Cough |
R060 | Dyspnoea |
R061 | Stridor |
R062 | Wheezing |
Model | RMSE 1 | MAE 2 | MSE 3 |
---|---|---|---|
SVM | 2.65 | 1.50 | 7.03 |
Random Forest | 2.48 | 1.67 | 6.15 |
KNN | 3.08 | 1.58 | 9.46 |
XGBoost | 2.50 | 1.67 | 6.26 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Jayamini, W.K.D.; Mirza, F.; Naeem, M.A.; Chan, A.H.Y. State of Asthma-Related Hospital Admissions in New Zealand and Predicting Length of Stay Using Machine Learning. Appl. Sci. 2022, 12, 9890. https://doi.org/10.3390/app12199890
Jayamini WKD, Mirza F, Naeem MA, Chan AHY. State of Asthma-Related Hospital Admissions in New Zealand and Predicting Length of Stay Using Machine Learning. Applied Sciences. 2022; 12(19):9890. https://doi.org/10.3390/app12199890
Chicago/Turabian StyleJayamini, Widana Kankanamge Darsha, Farhaan Mirza, M. Asif Naeem, and Amy Hai Yan Chan. 2022. "State of Asthma-Related Hospital Admissions in New Zealand and Predicting Length of Stay Using Machine Learning" Applied Sciences 12, no. 19: 9890. https://doi.org/10.3390/app12199890
APA StyleJayamini, W. K. D., Mirza, F., Naeem, M. A., & Chan, A. H. Y. (2022). State of Asthma-Related Hospital Admissions in New Zealand and Predicting Length of Stay Using Machine Learning. Applied Sciences, 12(19), 9890. https://doi.org/10.3390/app12199890