A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest
Accurate drug classification is essential in medical decision-making to ensure patients receive appropriate prescriptions based on their physiological and biochemical characteristics. This study compares the performance of K-Nearest Neighbors (KNN), Support Vector Machine (SVM), and Random Forest mo...
Saved in:
| Main Author: | |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
Informatics Department, Faculty of Computer Science Bina Darma University
2025-03-01
|
| Series: | Journal of Information Systems and Informatics |
| Subjects: | |
| Online Access: | https://journal-isi.org/index.php/isi/article/view/1013 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1850193088605061120 |
|---|---|
| author | Susi Eva Maria Purba |
| author_facet | Susi Eva Maria Purba |
| author_sort | Susi Eva Maria Purba |
| collection | DOAJ |
| description | Accurate drug classification is essential in medical decision-making to ensure patients receive appropriate prescriptions based on their physiological and biochemical characteristics. This study compares the performance of K-Nearest Neighbors (KNN), Support Vector Machine (SVM), and Random Forest models in predicting drug prescriptions using patient attributes such as age, sex, blood pressure, cholesterol level, and sodium-to-potassium ratio. The dataset, obtained from Kaggle, was preprocessed and split into training and testing sets to evaluate model performance using accuracy as the primary metric. The results indicate that Random Forest outperformed KNN and SVM, achieving a perfect test accuracy of 100%, demonstrating superior generalization and robustness. SVM also performed well, with a test accuracy of 97.50%, while KNN achieved the lowest accuracy of 70%, indicating its limitations in handling complex feature interactions. These findings highlight the effectiveness of ensemble learning methods in medical classification tasks, suggesting that Random Forest is the most suitable model for drug prediction. Furthermore, the potential applications of these findings in clinical settings could enhance treatment outcomes and patient care. Future research should explore feature engineering techniques, larger datasets, and additional machine learning approaches to enhance predictive accuracy and applicability in real-world healthcare settings. |
| format | Article |
| id | doaj-art-01c049261f8446c3b23bde3a475dfda8 |
| institution | OA Journals |
| issn | 2656-5935 2656-4882 |
| language | English |
| publishDate | 2025-03-01 |
| publisher | Informatics Department, Faculty of Computer Science Bina Darma University |
| record_format | Article |
| series | Journal of Information Systems and Informatics |
| spelling | doaj-art-01c049261f8446c3b23bde3a475dfda82025-08-20T02:14:22ZengInformatics Department, Faculty of Computer Science Bina Darma UniversityJournal of Information Systems and Informatics2656-59352656-48822025-03-017137839210.51519/journalisi.v7i1.10131013A Comparative Study of Drug Prediction Models using KNN, SVM, and Random ForestSusi Eva Maria Purba0Institut Teknologi DelAccurate drug classification is essential in medical decision-making to ensure patients receive appropriate prescriptions based on their physiological and biochemical characteristics. This study compares the performance of K-Nearest Neighbors (KNN), Support Vector Machine (SVM), and Random Forest models in predicting drug prescriptions using patient attributes such as age, sex, blood pressure, cholesterol level, and sodium-to-potassium ratio. The dataset, obtained from Kaggle, was preprocessed and split into training and testing sets to evaluate model performance using accuracy as the primary metric. The results indicate that Random Forest outperformed KNN and SVM, achieving a perfect test accuracy of 100%, demonstrating superior generalization and robustness. SVM also performed well, with a test accuracy of 97.50%, while KNN achieved the lowest accuracy of 70%, indicating its limitations in handling complex feature interactions. These findings highlight the effectiveness of ensemble learning methods in medical classification tasks, suggesting that Random Forest is the most suitable model for drug prediction. Furthermore, the potential applications of these findings in clinical settings could enhance treatment outcomes and patient care. Future research should explore feature engineering techniques, larger datasets, and additional machine learning approaches to enhance predictive accuracy and applicability in real-world healthcare settings.https://journal-isi.org/index.php/isi/article/view/1013drug classification, machine learning, k-nearest neighbors (knn), support vector machine (svm), random forest, predictive modeling |
| spellingShingle | Susi Eva Maria Purba A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest Journal of Information Systems and Informatics drug classification, machine learning, k-nearest neighbors (knn), support vector machine (svm), random forest, predictive modeling |
| title | A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest |
| title_full | A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest |
| title_fullStr | A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest |
| title_full_unstemmed | A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest |
| title_short | A Comparative Study of Drug Prediction Models using KNN, SVM, and Random Forest |
| title_sort | comparative study of drug prediction models using knn svm and random forest |
| topic | drug classification, machine learning, k-nearest neighbors (knn), support vector machine (svm), random forest, predictive modeling |
| url | https://journal-isi.org/index.php/isi/article/view/1013 |
| work_keys_str_mv | AT susievamariapurba acomparativestudyofdrugpredictionmodelsusingknnsvmandrandomforest AT susievamariapurba comparativestudyofdrugpredictionmodelsusingknnsvmandrandomforest |