Hyperparameter Tuning of Random Forest Algorithm for Diabetes Classification

Journal Title: International Journal of Current Science Research and Review - Year 2025, Vol 8, Issue 01

Abstract

This study aims to optimize the hyperparameters of the Random Forest model in diabetes classification using the Pima Indian Diabetes dataset, given the importance of early diabetes diagnosis to mitigate serious health impacts. While Random Forest is a popular algorithm for classification due to its resistance to overfitting, the selection of the right hyperparameters significantly affects its performance. Therefore, this research utilizes Grid Search and Random Search techniques for hyperparameter tuning to improve model accuracy. The research methodology includes data collection, preprocessing, dataset splitting (80% for training and 20% for testing), feature scaling using Standard Scaler, and the application of the Random Forest algorithm with hyperparameter tuning and model evaluation based on accuracy, precision, recall, and F1-Score. The results show that Random Forest, when tuned with Grid Search and Random Search, significantly improved model performance, with Random Search yielding the best results, achieving an accuracy of 0.75, precision of 0.64, and recall of 0.69. This study demonstrates that hyperparameter tuning can significantly enhance the performance of the Random Forest model, contributing to the development of machine learning applications for medical diabetes diagnosis.

Authors and Affiliations

Fiqi Nur Rohman, Farikhin . , Bayu Surarso,

Keywords

Related Articles

Design and Application of Augmented Reality in Science Education to Develop Students' Critical Thinking Skills

The goal of this project is to create instructional materials based on augmented reality (AR) that will enhance students’ critical thinking abilities. There were 25 pupils enrolled in the public junior high school where...

Evaluation of the Free Halal Certification Program (SEHATI) for Processed Livestock Micro and Small Enterprises (MSEs) in Blitar Regency

The free halal certification program (SEHATI) aims to support the Indonesian government’s goal of having one million halal-certified food and beverage products by 2024 by accelerating the rate of halal certification thro...

Legal Protection for Both Parties in the Execution of E-Commerce Based Buying and Selling Agreements Grounded in Justice

The internet media used for trading is known as electronic commerce (e-commerce), a business process that provides facilities between buyers and sellers or companies, consumers, and specific communities in electronic tra...

Impact of Related Lending on Bank Health: Case Study in Indonesia Banking Industry

Related lending is a critical driver of banks’ health, particularly on its profitability and risks profile. As banks engage in related lending activities, they face challenges in managing profitability and assessing vari...

Sustainable Briquette Production from Hazelnut Shell Waste: The Significance of Particle Size in Quality Enhancement

Interest in biomass briquettes as a fossil fuel substitute has increased due to the growing need for sustainable energy sources. The impact of hazelnut shell charcoal particle size on briquette quality is examined in thi...

Download PDF file
  • EP ID EP755108
  • DOI 10.47191/ijcsrr/V8-i1-31
  • Views 38
  • Downloads 0

How To Cite

Fiqi Nur Rohman, Farikhin . , Bayu Surarso, (2025). Hyperparameter Tuning of Random Forest Algorithm for Diabetes Classification. International Journal of Current Science Research and Review, 8(01), -. https://europub.co.uk/articles/-A-755108