Klasifikasi Penyakit Mata Menggunakan Random Forest Dengan Optimasi Hyperparameter RandomSearchCV
Abstract
Eye diseases such as cataracts, diabetic retinopathy and glaucoma are the leading causes of visual impairment and blindness worldwide, so early detection through medical image analysis is essential to prevent complications and permanent vision loss. The development of artificial intelligence and machine learning technology provides great opportunities to help medical personnel carry out diagnoses more quickly, accurately and efficiently. This research aims to develop an eye disease classification model using the Random Forest algorithm with hyperparameter optimization to differentiate four eye conditions, namely cataract, diabetic retinopathy, glaucoma, and normal. The dataset used is sourced from the public and consists of eye fundus images that have gone through preprocessing and feature extraction to improve data quality. The data was divided into training and testing, then the Random Forest model was trained with hyperparameter optimization using RandomizedSearchCV for 20 iterations and 5-fold cross-validation to obtain the best parameter combination. The best model achieved an accuracy of 80.92% on testing data with a macro ROC-AUC value of 0.9422, where the best performance was obtained in the classification of diabetic retinopathy with a precision of 99.54%, recall of 99.09%, and ROC-AUC of 1.0000. In addition, macro specificity reached 93.66%, indicating the model's good ability to identify negative cases correctly. The research results show that the Random Forest approach with hyperparameter optimization has excellent performance for eye disease classification and has the potential to be implemented as an artificial intelligence-based medical diagnosis support system in health care facilities.
References
W. He, “Medical Data Large-scale Processing Technology Based on March Algorithm,” Procedia Computer Science, vol. 259, pp. 572–580, 2025, doi: 10.1016/j.procs.2025.04.006.
L. Alzubaidi et al., “Review of deep learning: concepts, CNN architectures, challenges, applications, future directions,” J Big Data, vol. 8, no. 1, p. 53, Mar. 2021, doi: 10.1186/s40537-021-00444-8.
C. Janiesch, P. Zschech, and K. Heinrich, “Machine learning and deep learning,” Electron Markets, vol. 31, no. 3, pp. 685–695, Sep. 2021, doi: 10.1007/s12525-021-00475-2.
P. Probst, M. N. Wright, and A. Boulesteix, “Hyperparameters and tuning strategies for random forest,” WIREs Data Min & Knowl, vol. 9, no. 3, p. e1301, May 2019, doi: 10.1002/widm.1301.
M. A. Ganaie, M. Hu, A. K. Malik, M. Tanveer, and P. N. Suganthan, “Ensemble deep learning: A review,” Engineering Applications of Artificial Intelligence, vol. 115, p. 105151, Oct. 2022, doi: 10.1016/j.engappai.2022.105151.
L. Yang et al., “Study of cardiovascular disease prediction model based on random forest in eastern China,” Sci Rep, vol. 10, no. 1, p. 5245, Mar. 2020, doi: 10.1038/s41598-020-62133-5.
L. Novita, W. Fuadi, and K. Kurniawati, “Cataract Eye Disease Diagnosis Using the Random Forest Method,” Int. J. Eng. Scie. and Inform. Technology., vol. 5, no. 2, pp. 33–41, Jan. 2025, doi: 10.52088/ijesty.v5i2.777.
M. Agrawal, N. Mohan, and V. Jain, “Chronic Kidney Disease Prediction Using Random Forest, Decision Tree and Ada Boost Classifier,” in 2023 4th International Conference on Smart Electronics and Communication (ICOSEC), Trichy, India: IEEE, Sep. 2023, pp. 1589–1593. doi: 10.1109/ICOSEC58147.2023.10276324.
G. Pallavi and K. Vidhya, “Brain tumor detection with high accuracy using random forest and comparing with thresholding method,” presented at the Fifth International Conference On Applied Sciences: ICAS2023, Baghdad, Iraq, 2024, p. 020079. doi: 10.1063/5.0198189.
A. Meiliana, N. M. Dewi, and A. Wijaya, “Artificial Intelligent in Healthcare,” Indones Biomed J, vol. 11, no. 2, pp. 125–35, Aug. 2019, doi: 10.18585/inabj.v11i2.844.
M. Naufal, H. Al Azies, and R. M. Brilianto, “Enhanced Brain Tumor Classification through Gamma Correction in Deep Learning,” SISTEMASI, vol. 13, no. 6, p. 2348, Nov. 2024, doi: 10.32520/stmsi.v13i6.4474.
G. V. Doddi, “Eye diseases classification dataset.” 2021. [Online]. Available: https://www.kaggle.com/datasets/gunavenkatdoddi/eye-diseases-classification
F. Alzami, S. Winarno, M. Naufal, and H. Al Azies, “Enhancing Driver Drowsiness Detection through GMM-Optimized CLAHE,” in 2024 International Seminar on Application for Technology of Information and Communication (iSemantic), Semarang, Indonesia: IEEE, Sep. 2024, pp. 212–217. doi: 10.1109/iSemantic63362.2024.10762529.
R. Septia, Junadhi, Susi Erlinda, and Wirta Agustin, “Heart Failure Disease Classification Using Random Forest Algorithm with Grid Search Cross Validation Technique,” ijcs, vol. 14, no. 2, Apr. 2025, doi: 10.33022/ijcs.v14i2.4765.
R. Anitha and D. Siva Sundhara Raja, “Development of computer‐aided approach for brain tumor detection using random forest classifier,” Int J Imaging Syst Tech, vol. 28, no. 1, pp. 48–53, Mar. 2018, doi: 10.1002/ima.22255.
J. Gao, J. Ren, and Z. Wen, “Research on Diabetes Prediction Based on the Randomized Search CV Method,” in 2025 2nd International Conference on Electronic Engineering and Information Systems (EEISS), Nanjing, China: IEEE, May 2025, pp. 1–4. doi: 10.1109/EEISS65394.2025.11086023.
F. Alzami, M. Naufal, H. A. Azies, S. Winarno, and M. A. Soeleman, “Time Distributed MobileNetV2 with Auto-CLAHE for Eye Region Drowsiness Detection in Low Light Conditions,” ijacsa, vol. 15, no. 11, 2024, doi: 10.14569/IJACSA.2024.0151146.
Ş. K. Çorbacıoğlu and G. Aksel, “Receiver operating characteristic curve analysis in diagnostic accuracy studies: A guide to interpreting the area under the curve value,” Turkish Journal of Emergency Medicine, vol. 23, no. 4, pp. 195–198, Oct. 2023, doi: 10.4103/tjem.tjem_182_23.
F. T. A. Sayyidul Laily, “Feature Extraction and Classification of Retinal Images Using Sobel Segmentation and Linear SVC,” ijaimi, vol. 2, no. 2, pp. 136–149, Nov. 2024, doi: 10.56705/ijaimi.v2i2.153.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasifikasi Penyakit Mata Menggunakan Random Forest Dengan Optimasi Hyperparameter RandomSearchCV
Pages: 71 - 82
Copyright (c) 2026 Muh. Fatkhi Alexander, Virgiafan Rido Taufik Adrian, Levi Renov Esprayenduo, Muhammad Naufal

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).











