Intelligent systems increasingly rely on machine learning, yet algorithms and preprocessing steps are often chosen by habit rather than evidence, which can yield unreliable models. This study provides empirical guidance for building intelligent systems by evaluating eight supervised algorithms (logistic regression, naive Bayes, k-nearest neighbors, decision tree, random forest, support vector machine, multilayer perceptron, and gradient boosting) under a unified, leakage-free protocol. Four benchmark datasets (Iris, Wine, Breast Cancer Wisconsin, and Digits) were evaluated with repeated stratified 10-fold cross-validation using accuracy, macro-F1, minority-class recall, balanced accuracy, and training time. Three experiments examined algorithm performance, z-score standardization, and cost-sensitive learning under a 9:1 class imbalance. The support vector machine achieved the best average rank (1.75), with macro-F1 between 96.42% and 98.34%, and the Friedman test confirmed significant differences among algorithms (p = 0.008). Standardization raised the macro-F1 of the support vector machine and k-nearest neighbors on Wine by 34.22 and 30.43 percentage points, while tree-based models were unaffected. Cost-sensitive weighting increased the minority-class recall of logistic regression from 85.00% to 92.50%. These findings show that preprocessing and imbalance handling matter as much as algorithm choice.
Copyrights © 2026