Discover Artificial Intelligence (Aug 2023)

Instructor-assisted question classification system using machine learning algorithms with N-gram and weighting schemes

  • Delali Kwasi Dake,
  • Edward Nwiah,
  • Griffith Selorm Klogo,
  • Wisdom Xornam Ativi

DOI
https://doi.org/10.1007/s44163-023-00073-5
Journal volume & issue
Vol. 3, no. 1
pp. 1 – 22

Abstract

Read online

Abstract One aspect of natural language processing, text classification, has become necessary in the educational domain due to the increasing number of students and the COVID-19 outbreak. The advent of the devastating pandemic and the need to remain safe have surged the discussions around online learning and integrated modules in teaching and learning. In this study, we employed machine learning to develop an automatic instructor-assisted question classification module for learning management systems. In selecting the best classifier, the conventional and the ensemble machine learning algorithms were compared using the tenfold and the fivefold cross-validation techniques. In addition, the N-gram feature selection mechanism and three weighting schemes were evaluated for performance enhancement. The detailed analysis indicates that the ensemble algorithms outperform the conventional ones with decreasing accuracy as the N-gram size increases. For all compared algorithms, the AdaBoost (SVM) ensemble algorithm has the highest accuracy of 78.55% for Unigram (TP, TF, TF-IDF). In addition, the AdaBoost (SVM) emerged with the highest F1-score of 0.782, whiles the ensemble Bagging (RF) algorithm had the highest ROC value of 0.955 for Unigram (TP).

Keywords