British Journal of Computer, Networking and Information Technology ISSN: 2689-5315 Volume 7, Issue 2, 2024 (pp. 97-114) 97 Article DOI: 10.52589/BJCNIT-35MFFBC6 DOI URL: https://doi.org/10.52589/BJCNIT-35MFFBC6 www.abjournals.org ABSTRACT: Adverse drug effects, commonly referred to as adverse drug reactions (ADRs), represent undesirable and unintended responses to medications or pharmaceutical products when used at recommended doses for therapeutic purposes. These effects can range from mild, tolerable symptoms to severe, life-threatening conditions and can manifest in various ways, affecting different organ systems within the human body. ADE analysis plays a pivotal role in prioritizing patient safety. By meticulously examining the relationship between drug administration and patient responses, healthcare providers can tailor medications to individual profiles, minimizing risks of adverse reactions. This ensures a patient-centric approach to treatment, where prescriptions are finely tuned to maximize efficacy while minimizing potential harm. This research aims to address this challenge by developing a machine learning system utilizing the Naive Bayes and XGBoost algorithms to enhance the categorization of drugs with adverse effects, ultimately contributing to improved patient safety and healthcare decision-making. In our approach, we made a system that detects ADR to effectively combine and collate patient medical history and drug information to detect if a patient would suffer adverse effects or reaction after taking the medication in its correct expert prescribed dose. The XGBoost algorithm gave a 75% accuracy score while Naive Bayes algorithm gave a score of 99%. KEYWORDS: Drug, Adverse Effect, Naive Bayes, Healthcare, Targeted Treatment. MACHINE LEARNING MODEL FOR ADVERSE DRUG REACTION DETECTION BASED ON NAIVE BAYES AND XGBOOST ALGORITHM Blessing Ekong 1 , Anthony Edet 2* , Uduakobong Udonna 3 , Anietie Uwah 4 , and Ndueso Udoetor 5 1 Department of Computer Science, Akwa Ibom State University, Mkpat Enin, Nigeria. Email: blessingekong@aksu.edu.ng 2 Department of Computer Science, Akwa Ibom State University, Mkpat Enin, Nigeria. Email: anthonyedet73@gmail.com 3 Department of Computer Science, Akwa Ibom State Polytechnic, Ikot Ekpene, Nigeria. Email: princessiswill77@gmail.com 4 Department of Computer Science, National Open University of Nigeria, Abuja, Nigeria. Email: uwahanietie@gmail.com 5 Department of Computer Science, Akwa Ibom State University, Mkpat Enin, Nigeria. Email: udoetorndueso55@gmail.com * Corresponding Authors Email: anthonyedet73@gmail.com Cite this article: Blessing E., Anthony E., Uduakobong U., Anietie U., Ndueso U. (2024), Machine Learning Model for Adverse Drug Reaction Detection Based on Naive Bayes and XGBoost Algorithm. British Journal of Computer, Networking and Information Technology 7(2), 97-114. DOI: 10.52589/BJCNIT- 35MFFBC6 Manuscript History Received: 12 Mar 2024 Accepted: 27 May 2024 Published: 18 Jul 2024 Copyright © 2024 The Author(s). This is an Open Access article distributed under the terms of Creative Commons Attribution- NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0), which permits anyone to share, use, reproduce and redistribute in any medium, provided the original author and source are credited.