Optimization of the Support Vector Machine Algorithm for Chocolate Consumption Classification Using SMOTE and GridSearchCV
Integrated Journal of Artificial Intelligence and Data Science · 16.11.2026 · 2 (2) · 73-83
DOI: 10.68300/ijaids.v2i2.113 ↗Kurz gefasst
Fachartikel in der Zeitschrift Integrated Journal of Artificial Intelligence and Data Science, online erschienen am 16.11.2026. Verfasst von Wahyuni Azis und 3 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-SA 4.0).
Abstract (Originalsprache)
Extreme class imbalance can cause classification models to favor the majority class, resulting in an inadequate representation of model performance when accuracy is used as the sole evaluation metric. This study aims to evaluate the performance of the Support Vector Machine (SVM) algorithm using the Synthetic Minority Over-sampling Technique (SMOTE) and GridSearchCV for chocolate consumption category classification. The dataset consists of 1,885 observations from *Chocolate Consumption.xlsx*, a processed file derived from the *Drug Consumption (Quantified)* dataset available in the UCI Machine Learning Repository. It contains 12 predictor features and three target classes encoded as 0, 1, and 2. The class distribution indicates a substantial imbalance, comprising 32 observations in class 0, 67 in class 1, and 1,786 in class 2. The data were divided using a stratified train-test split with an 80:20 ratio. StandardScaler was applied for feature scaling, while hyperparameter optimization was performed using Stratified 3-Fold Cross-Validation with Macro-F1 as the model selection metric. Three configurations were evaluated: SVM with GridSearchCV, SVM with SMOTE, and SVM combining SMOTE and GridSearchCV. The test results show that the combined configuration achieved the highest Macro-F1 score among the three evaluated configurations, at 0.3370, with an accuracy of 89.66%, macro-precision of 0.3360, and macro-recall of 0.3385. However, the confusion matrix reveals that the model failed to correctly classify any of the six class-0 observations and correctly identified only one of the 14 class-1 observations. These findings indicate that the relatively high accuracy was primarily influenced by the model's performance on the majority class. Therefore, although the combination of SMOTE and GridSearchCV achieved the highest Macro-F1 score in this experiment, it did not provide adequate classification performance across all classes. Repeated evaluation and further testing of alternative class imbalance handling strategies are required.
Zitieren
APA
Azis, W., Aziz, F., Irmawati, I., & Azis, A. L. (2026). Optimization of the Support Vector Machine Algorithm for Chocolate Consumption Classification Using SMOTE and GridSearchCV. Integrated Journal of Artificial Intelligence and Data Science, 2(2), 73-83. https://doi.org/10.68300/ijaids.v2i2.113
Vancouver
Azis W, Aziz F, Irmawati I, Azis AL. Optimization of the Support Vector Machine Algorithm for Chocolate Consumption Classification Using SMOTE and GridSearchCV. Integrated Journal of Artificial Intelligence and Data Science. 2026;2(2):73-83. doi:10.68300/ijaids.v2i2.113
BibTeX
@article{Azis2026,
author = {Azis, Wahyuni and Aziz, Firman and Irmawati, Irmawati and Azis, Ayu Lestari},
title = {Optimization of the Support Vector Machine Algorithm for Chocolate Consumption Classification Using SMOTE and GridSearchCV},
journal = {Integrated Journal of Artificial Intelligence and Data Science},
year = {2026},
volume = {2},
number = {2},
pages = {73--83},
doi = {10.68300/ijaids.v2i2.113}
}
EUVIMED