Research Article

Comparative Analysis of Machine Learning Models for Data Classification: An In-Depth Exploration

Authors

  • Abdul Wajid Fazil Lecturer, Department of Information Systems, Badakhshan University, Afghanistan
  • Musawer Hakimi Lecturer, Department of Computer Science, Samangan University, Afghanistan https://orcid.org/0009-0001-6591-2452
  • Rohullah Akbari Student, Information Systems Department, Kabul University, Afghanistan
  • Mohammad Mustafa Quchi Lecturer, Department of Network Engineering, Faryab University, Afghanistan
  • Khudai Qul Khaliqyar Lecturer, Department of IT, Badakhshan University, Afghanistan

Abstract

This research delves into the realm of data classification using machine learning models, namely 'Random Forest', 'Support Vector Machine (SVM) ' and ‘Logistic Regression'. The dataset, derived from the Australian Government's Bureau of Meteorology, encompasses weather observations from 2008 to 2017, with additional columns like 'RainToday' and the target variable 'RainTomorrow.' The study employs various metrics, including Accuracy Score, 'Jaccard Index', F1-Score, Log Loss, Recall Score and Precision Score, for model evaluation. Utilizing libraries such as 'NumPy', Pandas, matplotlib and ‘sci-kit-learn', the data pre-processing involves one-hot encoding, balancing for class imbalance and creating training and test datasets. The research implements three models, Logistic Regression, SVM and Random Forest, for data classification. Results showcase the models' performance through metrics like ROC-AUC, log loss and Jaccard Score, revealing Random Forest's superior performance in terms of ROC-AUC (0.98), compared to SVM (0.89) and Logistic Regression (0.88). The analysis also includes a detailed examination of confusion matrices for each model, providing insights into their predictive accuracy. The study contributes valuable insights into the effectiveness of these models for weather prediction, with Random Forest emerging as a robust choice. The methodologies employed can be extended to other classification tasks, providing a foundation for leveraging machine learning in diverse domains.

Article information

Journal

Journal of Computer Science and Technology Studies

Volume (Issue)

5 (4)

Pages

160-168

Published

2023-12-04

How to Cite

Fazil, A. W., Hakimi, M., Akbari, R., Quchi, M. M., & Khaliqyar, K. Q. (2023). Comparative Analysis of Machine Learning Models for Data Classification: An In-Depth Exploration. Journal of Computer Science and Technology Studies, 5(4), 160-168. https://doi.org/10.32996/jcsts.2023.5.4.16

Downloads

Views

52

Downloads

25