American Journal of Applied Mathematics and Statistics
ISSN (Print): 2328-7306 ISSN (Online): 2328-7292 Website: Editor-in-chief: Mohamed Seddeek
Open Access
Journal Browser
American Journal of Applied Mathematics and Statistics. 2021, 9(2), 38-47
DOI: 10.12691/ajams-9-2-1
Open AccessArticle

Two-Stage Artificial Neural Network Regression Modelling for Wheezing Risk Factors Among Children - A Case Study of Gatundu Hospital, Kenya

Thomas Mageto1, and John Onyango1

1Department of Statistics and Actuarial Sciences, Jomo Kenyatta University of Agriculture and Technology, Kenya

Pub. Date: March 30, 2021

Cite this paper:
Thomas Mageto and John Onyango. Two-Stage Artificial Neural Network Regression Modelling for Wheezing Risk Factors Among Children - A Case Study of Gatundu Hospital, Kenya. American Journal of Applied Mathematics and Statistics. 2021; 9(2):38-47. doi: 10.12691/ajams-9-2-1


In Kenya wheezing that leads to asthma development in most cases remain under-diagnosed and under-treated. Currently there is no public supported wheezing and asthma care programmes to optimize care for patients with asthma which greatly compounds diagnosis and treatment of the disease. The aim of this study is therefore to consider and analyse the covariates of childhood wheezing among children below 10 years of age in Kenya, a case study of Gatundu hospital in order to improve the provision of wheezing and asthma care services in medical facilities. The possible risk factors in the study are selected from three major groups of demographic, socioeconomic and geographical location factors related to childhood wheezing. The longitudinal secondary data obtained from Gatundu hospital in Kenya were collected and a total of 584 complete cases were recorded. The predictor variables considered in the study include age of children in months, gender, exclusive breastfeeding, exposure to tobacco smoking, difficult living conditions, residence, atopy, maternal age and preterm births. Due to the binary nature of response variable in which data is recorded as presence or absence of wheezing, the risk factors were modelled using multiple logistic regression and Artificial Neural Network Models. Simple random samples of sizes n = 385 without replacement were selected and p-values at 5% level of significance for the variables were recorded. In multiple logistic regression, the five variables identified as possible risk factors for modelling with p-value less than or equal to 0.05 were selected that includes age of children, exclusive breastfeeding, exposure to tobacco smoking, difficult living conditions and residence that recorded p-values of 0.0151, 0.0000, 0.0071, 0.0274 and 0.0410. The best multiple logistic linear regression model selected was based on Akaike Information Criterion (AIC) criterion that recorded null deviance, residual deviance and AIC of 502.44, 179.57 and 191.57 respectively. The precision and accuracy of the multiple logistic regression model were recorded as 89.2% and 93.3% respectively. The Artificial Neural Network was considered for modelling as well, the model with one-hidden layer with four neurons in the hidden layer recorded precision of 97.1% and accuracy of 39.4% while the rest of the models with one hidden layer recorded precision and accuracy of 0.0% and 65.1% respectively. The Artificial Neural Network model with two-hidden layers were also considered and the Network with one neuron in both layers was selected as better performing model with precision and accuracy of 88.2% and 93.3%. The developed two-stage logistic Artificial Neural Network was found to have better performance compared to multiple linear logistic regression and Artificial Neural Networks since it recorded precision and accuracy of 97.1% and 99.0% respectively and hence recommended for consideration in modelling the risk factor of wheezing among children in Kenya.

logistic wheezing artificial neural network two-stage regression modelling

Creative CommonsThis work is licensed under a Creative Commons Attribution 4.0 International License. To view a copy of this license, visit


[1]  Division of Leprosy, T. a. (2011). Guidelines for Asthma Management in Kenya. Nairobi: Ministry of Health and Sanitation (DLTLD) and Kenya Association for the Prevention of Tuberculosis and Lung Diseases (KAPTLD).
[2]  Taussing, L. M., Wright, A. L., Holberg, C. J., Halonen, M., Morgan, W. J., & Martinez, F. D. (2003). Tucson Children Respiratory Study: 1980 to Present. The Journal of Allergy and Clinical Immunology, 111(4): 661-675.
[3]  Mugambi, E., Mech, J., & Kamau, E. (2018). Epidemiology and Risk Factors for Astma in Kenya. Journal of Kenya Association of Physicians, 1(2): 66-72.
[4]  Martinez, F. D., Wright, A. L., Holberg, C. J., Morgan, W. J., & Taussig, L. M. (1992). Maternal age as a risk factor for wheezing lower respiratory illness in the first year of life. American Journal of Epidermiology, 136(10): 1258-1268.
[5]  Moraes, L. S., Takano, O. A., Mallol, J., & Dirceu, S. E. (2013). Risk factors associated with wheezing in infants. Journal of Pediatria, 89(6): 559-566.
[6]  Castro-Rodrguez, J. A., Holberg, C. J., Morgan, W. J., Wright, A. L., & Martinez, F. D. (2001). Increased incidence of asthmalike symptoms in girls who become overweight or obese during the school years. American Journal of Respiratory and Critical Care Medicine, 163(6): 1344-1349.
[7]  Shephard, R. J. (2010). Lifestyle and Lung Health in Children and Adolescents: Children's Way of Life and Their respiratory Health. American Journal of Lifestyle Medicine, 4: 7-32.
[8]  Mutius, E. V. (2016). The microbial environment and its influence on asthma prevention in early life. The Journal of Allergy and Clinical Immunology, 137(3): 680-689.
[9]  Kotecha, S. J., Dunstan, F. D., & Kotecha, S. (2012). Long termrespiratory outcomes of late preterm born infants. Seminars in fetal & neonatal medicine (pp. 17(2): 77-81). Cardiff: Elsevier.
[10]  Sherriff, A., Peters, T., Henderson, J., & Strachan, D. (2001). Rsik factor associations with wheezing patterns in children followed logitudinally from birth to 31/2 years. International Journal of Epidemiology, 30(6): 1473-1484.
[11]  Azad, M. B., Vehling, L., Lu, Z., Dai, D., Subbaro, P., Becker, A., . . . Sears, M. (2017). Breastfeeding, maternal asthma and wheezing in the first year of life: a longitudinal birth cohort study. The European Resipiratory Journal, 49(5): 1602019.
[12]  Guo, J., Zhu, W., & Wang, H. (2019). Risk Factors and prognosis of recurrent wheezing in Chinese young children; a prospective cohort study. Allergy Asthma clin Immunol, 15(38): 2019.
[13]  Arif, A. A., Delclos, G. L., Lee, E. S., Tortolero, S. R., & Whitehead, L. W. (2003). Prevalence and risk factors of asthma and wheezing among adults; an analysis of the NHANES III data. European Respiratory Journal, 21: 827-833.
[14]  Linneberg, A., Simonsen, J., Petersen, J., Stensballe, L., & Benn, C. (2005). Differential effcets of risk factors on infant wheeze and atopic dermatitis emphasize a diffrent etiology. Journal of Allergy Clinical Immunology, 117(1): 1-6.
[15]  Mageto, T., Njuguna, E., & Osundwa, D. (2018). Modeling Diabetes Risk Factors (A Case Study of Focus Medical Centre in Kiambu, Kenya 2016). Science Journal of Applied Mathematics and Statistics, 6(1): 7-15.
[16]  Yang, W. (2017). Early Warning for Infectious Disease Outbreak: Theory and Practice. Cambridge: Academic Press.
[17]  Batarseh, F., & Yang, R. (2020). Data Democracy: At the Nexus of Artificial Intelligence, Software Development and Knowledge Engineering. Cambridge: Academic Press.
[18]  Ghan, S. K., & Deepak, S. N. (2013). Review on Methods to Fix Number of Hidden Neurons in Neural Networks. Mathematical Problems in Engineering, 10, 55-66.
[19]  Munoz-Bravo, S., Perez-Mendez, A., & Rivas-Echeverria, F. (2009). Artificial Neural Network Model for Estimating the Female and Male Population in Working Age in Venezuela. WSEAS Transactions on Business and Economics, 6, 177-188.
[20]  Feng, J., & Shengnan, L. (2019). Perfomance Analysis of Various Activation Functions in Artificial Neural Networks. Journal of Physics: Conference Series, 1237: 1-6.
[21]  Panchal, F., & Panchal, M. (2014). Review on Methods of Selecting Number of Hidden Nodes in Artificial Neural Network. International Journal of Computer Science and Mobile Computing, 3(11): 455-464.
[22]  Brownlee, J. (2020). Probability for Machine Learning: Discover How To Harness Uncertainty With Python. San Francisco: Machine Learning Mastery.
[23]  Singh, D., & Chaudhary, F. S. (2020). Theory and Analysis of Sample Survey Designs. New Delhi: New Age International Publishers.