A Comparative Analysis of Machine Learning and Deep Learning Models Incorporating Attention Mechanisms for Asthma Prediction
“crossref”/

Main Article Content

Ahmed Sabdat Onyeche 
Prof. Edgar Osaghae 
Dr. Taiwo Kolajo 

Abstract

Asthma is a respiratory disease that affects millions of people globally. Early detection can facilitate timely intervention to prevent complications and mortality.  If asthma is predicted early and accurately, it will help in timely intervention and effective management. But the conventional method of asthma diagnosis often struggles to understand complex relationships between patient symptoms, triggers, and demographic factors, leading to less accurate predictions. To address this gap, this study carried out a comparative analysis of machine learning and deep learning- based asthma prediction models, introducing the attention mechanism to enhance the deep learning model. With the use of the Kaggle dataset, this study trained three machine learning algorithms, which include a decision tree, a random forest, Extreme Gradient Boosting (XGBoost), and a deep learning Bidirectional Long Short-Term Memory (Bi-LSTM) with an attention layer.  The method utilized in this study follows a unique pipeline, which includes the data collection, data preprocessing, exploratory data analysis, model development, model training, and model evaluation based on accuracy, precision, recall, and F1-scores. During the data preprocessing, the study observed data imbalance in the target variable, and the Synthetic Minority Oversampling Technique (SMOTE) was applied to balance the dataset. The result from this study experiment shows that the Bi-LSTM + Attention model outperformed all the compared machine learning models across all evaluation metrics used, by achieving the highest accuracy of 96%, while XGBoost, random forest, and decision tree achieved accuracies of 95% 94%, and 93%, respectively. The attention mechanism introduced to the BiLSTM model in this study significantly improved the deep learning model’s ability to focus on the most relevant features, enhancing interpretability and clinical trust. The findings demonstrate that the attention-enhanced Bi-LSTM model can serve as a reliable component of a clinical decision support system, assisting healthcare practitioners in early asthma detection and risk stratification, thereby enabling timely intervention and improved patient management.

Article Details

Ahmed, S. ., & Kolajo, T. (2026). A Comparative Analysis of Machine Learning and Deep Learning Models Incorporating Attention Mechanisms for Asthma Prediction (E. Osaghae , Trans.). African Journal of Advances in Science and Technology Research, 21(1), 97-118. https://doi.org/10.62154/ajastr.2025.021.01015
Articles

Copyright (c) 2026 Ahmed Sabdat Onyeche (Author); Prof. Edgar Osaghae (Translator); Dr, Taiwo Kolajo (Author)

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

Ayus, I., Natarajan, N., & Gupta, D. (2023). Comparison of machine learning and deep learning techniques for the prediction of air pollution: a case study from China. Asian Journal of Atmospheric Environment, 17(1). https://doi.org/10.1007/s44273-023-00005-w DOI: https://doi.org/10.1007/s44273-023-00005-w

Bonthada, S., Perumal, S. P., Naik, P. P., Padukudru, M. A., & Rajan, J. (2024). An automated deep learning pipeline for detecting user errors in spirometry tests. Biomedical Signal Processing and Control, 90. https://doi.org/10.1016/j.bspc.2023.105845 DOI: https://doi.org/10.1016/j.bspc.2023.105845

Da-Silva, D. G., & de Moura Meneses, A. A. (2023). Comparing long short-term memory (LSTM) and bidirectional LSTM deep neural networks for power consumption prediction. Energy Reports, 10, 3315–3334. https://doi.org/10.1016/j.egyr.2023.09.175 DOI: https://doi.org/10.1016/j.egyr.2023.09.175

Ekpo, R. H., Osamor, V. C., Azeta, A. A., Ikeakanam, E., & Amos, B. O. (2023). Machine learning classification approach for asthma prediction models in children. In Health and Technology (Vol. 13, Issue 1). https://doi.org/10.1007/s12553-023-00732-8 DOI: https://doi.org/10.1007/s12553-023-00732-8

Hang, Y.-Q., Piao, X., Wu, J., Jiang, Q.-W., & Han, Y. (2025). The epidemiology of asthma and its attributable risk factors from 1990 to 2021: A systematic analysis based on the Global Burden of Disease Study 2021 and Mendelian randomization studies. Public Health, 243, 105731. https://doi.org/10.1016/j.puhe.2025.105731 DOI: https://doi.org/10.1016/j.puhe.2025.105731

Haque, R., Ho, S. B., Chai, I., & Abdullah, A. (2022). Parameter and Hyperparameter Optimisation of Deep Neural Network Model for Personalised Predictions of Asthma. Journal of Advances in Information Technology, 13(5). https://doi.org/10.12720/jait.13.5.512-517 DOI: https://doi.org/10.12720/jait.13.5.512-517

Ho, S. B., Haque, R., Chai, I., & Abdullah, A. (2021). Optimised a deep neural network model to predict asthma exacerbation based on personalised weather triggers. F1000Research, 10. https://doi.org/10.12688/f1000research.73026.1 DOI: https://doi.org/10.12688/f1000research.73026.1

Lopez, K., Li, H., Lipkin-Moore, Z., Kay, S., Rajeevan, H., Davis, J. L., Wilson, F. P., Rochester, C. L., & Gomez, J. L. (2023). Deep learning prediction of hospital readmissions for asthma and COPD. Respiratory Research, 24(1). https://doi.org/10.1186/s12931-023-02628-7 DOI: https://doi.org/10.1186/s12931-023-02628-7

Mahammad, A. B., & Kumar, R. (2022). Machine Learning Approach to Predict Asthma Prevalence with Decision Trees. Proceedings of International Conference on Technological Advancements in Computational Sciences, ICTACS 2022. https://doi.org/10.1109/ICTACS56270.2022.9988210 DOI: https://doi.org/10.1109/ICTACS56270.2022.9988210

Patil, D., Rane, N., Desai, P., & Rane, J. (2024). Machine learning and deep learning: Methods, techniques, applications, challenges, and future research opportunities. In Trustworthy artificial intelligence in industry and society (pp. 28–81). Deep Science Publishing. https://doi.org/10.70593/978-81-981367-4-9_2 DOI: https://doi.org/10.70593/978-81-981367-4-9_2

Pavord, I. D., Barnes, P. J., Lemière, C., & Gibson, P. G. (2023). Diagnosis and assessment of asthma. The Journal of Allergy and Clinical Immunology: In Practice, 11(1), 1–8. https://doi.org/10.1016/j.jaip.2022.09.034 DOI: https://doi.org/10.1016/j.jaip.2022.09.034

Phan, D. van, Yang, N. P., Kuo, C. Y., & Chan, C. L. (2021). Deep learning approaches for sleep disorder prediction in an asthma cohort. Journal of Asthma, 58(7). https://doi.org/10.1080/02770903.2020.1742352 DOI: https://doi.org/10.1080/02770903.2020.1742352

Pyingkodi, M., Thenmozhi, K., Wilfred Blessing, N. R., Selvaraj, P. A., Kumar, K., Aadarsh, V., & Mariya Arockiya Akash, A. (2023). Asthma Disease Risk Prediction Using Machine Learning Techniques. 2023 International Conference on Computer Communication and Informatics, ICCCI 2023. https://doi.org/10.1109/ICCCI56745.2023.10128635 DOI: https://doi.org/10.1109/ICCCI56745.2023.10128635

Sarikloglou, E., Fouzas, S., & Paraskakis, E. (2024). Prediction of Asthma Exacerbations in Children. In Journal of Personalized Medicine (Vol. 14, Issue 1). https://doi.org/10.3390/jpm14010020 DOI: https://doi.org/10.3390/jpm14010020

Sheth, V., Tripathi, U., & Sharma, A. (2022). A comparative analysis of machine learning algorithms for classification purposes. Procedia Computer Science, 218, Article 044. https://doi.org/10.1016/j.procs.2022.12.044 DOI: https://doi.org/10.1016/j.procs.2022.12.044

Soni, M., Gomathi, S., Kumar, P., Churi, P. P., Mohammed, M. A., & Salman, A. O. (2022). Hybridizing Convolutional Neural Network for Classification of Lung Diseases. International Journal of Swarm Intelligence Research, 13(2). https://doi.org/10.4018/IJSIR.287544 DOI: https://doi.org/10.4018/IJSIR.287544

Soori, M., Arezoo, B., & Dastres, R. (2023). Artificial intelligence, machine learning, and deep learning in advanced robotics: A review. Cognitive Robotics, 3, 54–70. https://doi.org/10.1016/j.cogr.2023.04.001 DOI: https://doi.org/10.1016/j.cogr.2023.04.001