Classifying Monkeypox (Mpox) using machine learning has the potential to support the development of data-driven disease identification systems. However, the performance of classification models can be influenced by the selection of relevant features and the hyperparameter configurations employed. This study aims to conduct a comparative analysis of the effects of feature selection methods and hyperparameter optimization on the performance of Random Forest and Gradient Boosting algorithms. The research compares three filter-based feature selection methods Information Gain, Gain Ratio, and Chi-Square each integrated with both classification models. Hyperparameter optimization is performed separately for each combination using parameter search and cross-validation. A model without feature selection serves as a baseline to evaluate the contribution of feature selection to predictive performance. Evaluation is conducted using metrics such as accuracy, precision, recall, F1-score, and AUC as appropriate for the classification characteristics while also considering the number of selected features and computational time. Test results using all features indicate that the Gradient Boosting model performs slightly better across all metrics compared to Random Forest. Accuracy Gradient Boosting (69.18%), Random Forest (67.76%). F1-Score Gradient Boosting (78.51%), Random Forest (77.36%). Subsequently, we performed feature selection using Information Gain, Gain Ratio, and Chi-Square techniques. Features with a weight >0.05 include “Systemic Illness,” “Rectal Pain,” “HIV Infection,” “Sexually Transmitted Infection,” and “Oral Lesions.” Random Forest achieved an accuracy of 68.14%, precision of 69.14%, recall of 90.19%, and an F1-Score of 78.28%. Meanwhile, the Gradient Boosting model yielded an accuracy of 68.80%, precision of 70.31%, recall of 88.21%, and an F1-Score of 78.25%. These findings suggest that the Gradient Boosting model demonstrates superior performance. The results of this study are intended to serve as an empirical foundation for the development of machine learning-based classification models that can be reproduced and further evaluated using independent datasets
Copyrights © 2026