Melola Discovery

← Melola Discovery

Jurnal

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) · hlm. 21–30

DOI
10.15294/rji.v4i1.14868
ISSN
2986-6588, 2963-5551
Terbit
2026-03-31
Penerbit
Universitas Negeri Semarang
Bahasa
eng

Abstrak

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.

Kata kunci

Jaringan kolaborasi para penulis

39 penulis · 76 tautan kepenulisan bersama · 4 lintas organisasi

Arahkan kursor atau ketuk sebuah nama untuk menyorot rekan penulisnya. Klik dua kali untuk membuka halaman penulis.

  • State University of Semarang
  • Universitas Nahdlatul Ulama Blitar
  • Institut Teknologi Kalimantan
  • Afiliasi tidak diketahui
  • Organisasi berbeda
  • Organisasi sama
  • Afiliasi tidak diketahui
  • Garis lebih tebal = lebih banyak artikel bersama · lingkaran lebih besar = lebih banyak artikel
Tampilkan sebagai tabel
Rekan penulisOrganisasiArtikel bersama
Muh. SholehAfiliasi tidak diketahui2
Martanto Setyo HusodoAfiliasi tidak diketahui2
Riza ArifudinState University of Semarang2
Deonisius Germandy Cahaya PutraAfiliasi tidak diketahui2
Vivi WulandariAfiliasi tidak diketahui2
Resta AdityatamaAfiliasi tidak diketahui2
Taripar Matius AlexanderAfiliasi tidak diketahui1
Florentina Yuni AriniState University of Semarang1
Athoillah AthoillahAfiliasi tidak diketahui1
Endang SugihartiState University of Semarang1
Kholiq BudimanAfiliasi tidak diketahui1
zaenal abidinAfiliasi tidak diketahui1
Alfath YanuartoAfiliasi tidak diketahui1
Dinar Diaz SeptianAfiliasi tidak diketahui1
Akhmad MunawarAfiliasi tidak diketahui1
Andika Enggal RamadhanAfiliasi tidak diketahui1
Bhekti KumorowatiAfiliasi tidak diketahui1
Sugianto SugiantoUniversitas Nahdlatul Ulama Blitar1
Cahya WulandariState University of Semarang1
Muhamad Sayuti HassanAfiliasi tidak diketahui1
Zidney Ilma Fazaada EmhaAfiliasi tidak diketahui1
Angel Novita SinuratAfiliasi tidak diketahui1
Tazkiyatun Aeni AmaliyahAfiliasi tidak diketahui1
Devi Tri WidyantiAfiliasi tidak diketahui1
Much Azis MuslimAfiliasi tidak diketahui1
Ahmad WarsunAfiliasi tidak diketahui1
Pradistia Edo KristiantoAfiliasi tidak diketahui1
Syehudin SyehudinAfiliasi tidak diketahui1
Alamsyah AlamsyahInstitut Teknologi Kalimantan1
Hendi SusantoAfiliasi tidak diketahui1
Annisya Dira PrastiwiAfiliasi tidak diketahui1
Adham Satria FirmansyahAfiliasi tidak diketahui1
Luthfi Ilham Agus PratamaAfiliasi tidak diketahui1
Dian Tri WiyantiState University of Semarang1
Dante AlighiriState University of Semarang1
Priyantini WidiyaningrumAfiliasi tidak diketahui1
Agus YuliantoAfiliasi tidak diketahui1

Afiliasi berasal dari OpenAlex; metadata OAI-PMH jurnal tidak memuatnya. Penulis tanpa ID OpenAlex dicocokkan berdasarkan nama, sehingga dua orang bisa tergabung atau satu orang bisa terpisah.

Sumber metadata: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/rji/oai, pertama di-harvest 6 Nov 2026, terakhir terlihat 8 Nov 2026.
Metadata asli (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Optimization Of K-Nearest Neighbor Algorithm Using Information Gain And Hyperparameter Tuning In Adult Male Fertility Classification</dc:title>
	<dc:creator xml:lang="en">Muttaqin, Muhammad Zaenal</dc:creator>
	<dc:creator xml:lang="en">Putra, Anggyi Trisnawan</dc:creator>
	<dc:subject xml:lang="en">Information Gain</dc:subject>
	<dc:subject xml:lang="en">Machine Learning</dc:subject>
	<dc:subject xml:lang="en">K-Nearest Neighbor</dc:subject>
	<dc:subject xml:lang="en">GridSearchCV</dc:subject>
	<dc:subject xml:lang="en">feature optimization</dc:subject>
	<dc:description xml:lang="en">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.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2026-03-31</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/rji/article/view/14868</dc:identifier>
	<dc:identifier>10.15294/rji.v4i1.14868</dc:identifier>
	<dc:source xml:lang="en">Recursive Journal of Informatics; Vol. 4 No. 1 (2026): March 2026; 21-30</dc:source>
	<dc:source>2986-6588</dc:source>
	<dc:source>2963-5551</dc:source>
	<dc:source>10.15294/f2fbmb40</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/rji/article/view/14868/8941</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2026 Recursive Journal of Informatics</dc:rights>
</oai_dc:dc>