Journal
Optimization Of K-Nearest Neighbor Algorithm Using Information Gain And Hyperparameter Tuning In Adult Male Fertility Classification
Recursive Journal of Informatics · Vol. 4 No. 1 (2026) · pp. 21–30
- ISSN
- 2986-6588, 2963-5551
- Published
- 2026-03-31
- Publisher
- Universitas Negeri Semarang
- Language
- eng
Abstract
Abstract. Male fertility plays an important role in reproductive capability and global population dynamics. Male infertility can be caused by lifestyle, health conditions, and sperm quality. This research develops a male fertility classification model with an optimized K-Nearest Neighbor (KNN) algorithm using Information Gain feature selection and hyperparameter tuning with GridSearchCV. The main problems encountered are low accuracy in prediction and high computational complexity due to many irrelevant features. To overcome this, feature selection and hyperparameter optimization methods were used. The dataset used in this research comes from the UCI Machine Learning Repository, consisting of 100 data with 10 attributes. The KNN algorithm was chosen for its simplicity and ability to classify data with multiple classes and uneven distribution. However, its accuracy is highly dependent on the proper selection of features and parameters. The Information Gain method is used for selection of significant features against the target variable, reducing model complexity and computation time. Hyperparameter tuning is performed using GridSearchCV to find the best combination of parameters. The results showed that the application of Information Gain and GridSearchCV successfully improved the classification accuracy of KNN. The final model achieved 94% accuracy, better than the previous conventional method which only reached 84%. This increase in accuracy shows that KNN optimization with this approach is effective in improving male fertility classification performance. This research is expected to contribute to the development of male fertility diagnostic technology and the implementation of more accurate prediction models in clinical practice. Purpose: The proposed model is a development based on previous research that focuses on developing the K-Nearest Neighbor algorithm with a model accuracy of 84%. this study uses feature selection techniques and hyperparameter tuning in the K-Nearest Neighbor (KNN) algorithm to improve the accuracy of the male fertility classification model. Methods/Study design/approach: To improve the curation of the male fertility classification model and to optimize the model from previous research, this study uses the feature selection technique and hyperparameter tuning technique. For this technique, 2 types of optimization are carried out, namely feature selection using Information Gain and GridSearchCV hyperparameter tuning to get the best parameter combination for the proposed model. The fertility dataset has also been used in previous studies, used in this study. Result/Findings: The proposed model obtained a high accuracy of 94%, which surpassed the model in the previous study which had an accuracy of 85% for the classification of fertility levels in men. Novelty/Originality/Value: The novelty in this research is the addition of hyperparameter tuning techniques to optimize and obtain optimal parameters in the fertility classification model. This research also aims to improve and increase the accuracy of the previous model.
Keywords
Collaboration network of the authors
39 authors · 76 co-authorship links · 4 across different organisations
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- State University of Semarang
- Universitas Nahdlatul Ulama Blitar
- Institut Teknologi Kalimantan
- Affiliation unknown
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Muh. Sholeh | Affiliation unknown | 2 |
| Martanto Setyo Husodo | Affiliation unknown | 2 |
| Riza Arifudin | State University of Semarang | 2 |
| Deonisius Germandy Cahaya Putra | Affiliation unknown | 2 |
| Vivi Wulandari | Affiliation unknown | 2 |
| Resta Adityatama | Affiliation unknown | 2 |
| Taripar Matius Alexander | Affiliation unknown | 1 |
| Florentina Yuni Arini | State University of Semarang | 1 |
| Athoillah Athoillah | Affiliation unknown | 1 |
| Endang Sugiharti | State University of Semarang | 1 |
| Kholiq Budiman | Affiliation unknown | 1 |
| zaenal abidin | Affiliation unknown | 1 |
| Alfath Yanuarto | Affiliation unknown | 1 |
| Dinar Diaz Septian | Affiliation unknown | 1 |
| Akhmad Munawar | Affiliation unknown | 1 |
| Andika Enggal Ramadhan | Affiliation unknown | 1 |
| Bhekti Kumorowati | Affiliation unknown | 1 |
| Sugianto Sugianto | Universitas Nahdlatul Ulama Blitar | 1 |
| Cahya Wulandari | State University of Semarang | 1 |
| Muhamad Sayuti Hassan | Affiliation unknown | 1 |
| Zidney Ilma Fazaada Emha | Affiliation unknown | 1 |
| Angel Novita Sinurat | Affiliation unknown | 1 |
| Tazkiyatun Aeni Amaliyah | Affiliation unknown | 1 |
| Devi Tri Widyanti | Affiliation unknown | 1 |
| Much Azis Muslim | Affiliation unknown | 1 |
| Ahmad Warsun | Affiliation unknown | 1 |
| Pradistia Edo Kristianto | Affiliation unknown | 1 |
| Syehudin Syehudin | Affiliation unknown | 1 |
| Alamsyah Alamsyah | Institut Teknologi Kalimantan | 1 |
| Hendi Susanto | Affiliation unknown | 1 |
| Annisya Dira Prastiwi | Affiliation unknown | 1 |
| Adham Satria Firmansyah | Affiliation unknown | 1 |
| Luthfi Ilham Agus Pratama | Affiliation unknown | 1 |
| Dian Tri Wiyanti | State University of Semarang | 1 |
| Dante Alighiri | State University of Semarang | 1 |
| Priyantini Widiyaningrum | Affiliation unknown | 1 |
| Agus Yulianto | Affiliation unknown | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.