Penerapan Algoritma LightGBM untuk Penentuan Kondisi Air Akuarium Berdasarkan Parameter Kualitas Air
Implementation of LightGBM Algorithm for Determining Aquarium Water Conditions Based on Water Quality Parameters
DOI:
https://doi.org/10.57152/malcom.v6i4.2933Keywords:
Amonia, Hyperparameter, Klasifikasi, Kualitas Air, LightGBM, Machine Learning, pHAbstract
Kualitas air sangat penting bagi kesehatan dan kelangsungan hidup ikan di akuarium. Jika parameter seperti pH, suhu, total dissolved solids (TDS), dan amonia berubah, kondisi air dapat menjadi tidak cocok bagi ikan. Masalahnya, metode pemantauan biasa masih terbatas dalam menganalisis hubungan antara parameter-parameter tersebut secara simultan. Penelitian ini bertujuan untuk menggunakan algoritma LightGBM untuk mengklasifikasikan kualitas air akuarium berdasarkan pH, suhu, TDS, dan amonia. Dataset yang digunakan terdiri dari 710 data pengukuran sensor kualitas air. Data-data ini melalui beberapa tahap, yaitu preprocessing, pelabelan data, pembagian data, penyesuaian hyperparameter, dan pelatihan model. Hasil pengujian menunjukkan bahwa konfigurasi LightGBM terbaik memiliki accuracy 99,30%, precision 98,61%, recall 99,28%, dan F1-score 98,92%. Evaluasi menggunakan confusion matrix menunjukkan bahwa dari 142 data pengujian hanya terdapat satu kesalahan klasifikasi, dengan seluruh data kategori baik dan buruk berhasil diprediksi dengan tepat. Hasil tersebut menunjukkan bahwa LightGBM dapat mengklasifikasikan kualitas air akuarium dengan akurasi yang tinggi.
Downloads
References
K. Zhang et al., “Water Quality Impact on Fish Behavior?: A Review From an Aquaculture Perspective,” Rev. Aquac., pp. 1–27, 2024, doi: 10.1111/raq.12985.
S. K. Nandi and A. Al Mamun, “Effects of Immediate Oxygen Supplementation (Sodium Carbonate and Hydrogen Peroxide) on Water Quality Parameters , Behavioural Responses and Survival of Puntius sophore Fingerlings,” Vet. Med. Sci., vol. 11, no. 6, p. e70624, 2025, doi: 10.1002/vms3.70624.
M. M. Hemal et al., “An Integrated Smart Pond Water Quality Monitoring and Fish Farming Recommendation Aquabot System,” Sensors, vol. 24, no. 11, p. 3682, 2024, doi: https://doi.org/10.3390/s24113682.
O. O. Olanubi, T. T. Akano, and O. S. Asaolu, “Design and development of an IoT ? based intelligent water quality management system for aquaculture,” J. Electr. Syst. Inf. Technol., vol. 11, 2024, doi: 10.1186/s43067-024-00139-z.
P. N. Bhowmik, K. Saini, N. Tagore, S. Priya, P. Anand, and B. Ate¸s, “A Scalable Machine Learning Framework for Hydrological Water Quality Monitoring Using Physicochemical and Microbial Parameters,” Water, vol. 17, p. 2158, 2025, doi: https://doi.org/10.3390/w17142158.
G. Man, Q. Yun, Z. Qilin, L. Yuyong, and Z. Zhuoshi, “Surface water quality classification and prediction model based on multiple machine learning algorithms,” Sci. Rep., vol. 15, p. 39907, 2025, doi: 10.1038/s41598-025-23775-5.
M. A. A. M. Hridoy et al., “Advanced machine learning models for accurate water quality classification and WQI prediction?: Implications for aquatic disease risk management,” Sci. Total Environ., vol. 1008, p. 180965, 2025, doi: 10.1016/j.scitotenv.2025.180965.
T. Li, J. Lu, J. Wu, Z. Zhang, and L. Chen, “Predicting Aquaculture Water Quality Using Machine Learning Approaches,” Water 2022, vol. 14, no. 18, pp. 1–15, 2022, doi: https://doi.org/10.3390/w14182836.
M. M. Islam, M. A. Kashem, S. A. Alyami, and M. A. Moni, “Monitoring water quality metrics of ponds with IoT sensors and machine learning to predict fish species survival,” Microprocess. Microsyst., vol. 102, p. 104930, 2023, doi: https://doi.org/10.1016/j.micpro.2023.104930.
P. Nuangpirom, S. Pitjamit, V. Jaikampan, C. Peerakam, W. Nakkiew, and P. Jewpanya, “Machine Learning on Low-Cost Edge Devices for Real-Time Water Quality Prediction in Tilapia Aquaculture,” Sensors, vol. 25, no. 19, p. s25196159, 2025, doi: https://doi.org/10.3390/s25196159.
R. Baena-navarro, Y. Carriazo-regino, F. Torres-hoyos, and J. Pinedo-López, “Intelligent Prediction and Continuous Monitoring of Water Quality in Aquaculture?: Integration of Machine Learning and Internet of Things for Sustainable Management,” Water, vol. 17, no. 82, pp. 1–25, 2025, doi: https://doi.org/10.3390/w17010082.
A. Nayan, J. Saha, A. N. Mozumder, K. R. Mahmud, A. K. Al Azad, and M. G. Kibria, “A Machine Learning Approach for Early Detection of Fish Diseases by Analyzing Water Quality,” TRENDS Sci., vol. 18, no. 21, pp. 1–11, 2021, doi: https://doi.org/10.48048/tis.2021.351 Focus to learn more.
G. Santhosh et al., “An Efficient LightGBM-Based Machine Learning Framework for Water Quality Assessment in Urban Environments,” in International Symposium on Sustainable Energy, Signal Processing and Cybersecurity (iSSSC), IEEE, 2025, pp. 0–5. doi: 10.1109/iSSSC66652.2025.11388640.
I. Budak, “Prediction of Water Quality’s pH value using Random Forest and LightGBM Algorithms,” Memba Water Sci. J., vol. 11, no. 1, pp. 42–49, 2025, doi: https://doi.org/10.58626/memba.1667338 Submission.
M. S. Bisht, “Water Quality Classification Using LightGBM: A Machine Learning Approach on a Large-Scale Dataset,” in 2025 IEEE International Conference on Recent Advances in Computing and Systems (REACS), India: IEEE, 2025, pp. 1–6. doi: 10.1109/REACS67479.2025.11413586.
P. Yasodha, “Data Preprocessing Methods for Machine Learning?: An Empirical Comparison,” Int. J. Multidiscip. Res., vol. 7, no. 3, pp. 1–7, 2025, [Online]. Available: https://api.semanticscholar.org/CorpusID:279471746
B. L. Ortiz et al., “Data Preprocessing Techniques for AI and Machine Learning Readiness: Scoping Review of Wearable Sensor Data in Cancer Care,” JMIR Mhealth Uhealth, vol. 12, p. e59587, 2024, doi: 10.2196/59587.
T. Gori, A. Sunyoto, and H. Al Fatta, “Preprocessing Data dan Klasifikasi untuk Prediksi Kinerja Akademik Siswa,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 1, pp. 215–224, 2024, doi: 10.25126/jtiik.20241118074.
C. A. Indranie, A. Ramadhan, J. Raharjo, R. R. N. Ikhsan, M. F. Rohadi, and D. Ilham, “Impact of Train-Test Splitting Ratios on Machine Learning Models for Daily Electricity Load Time Series Forecasting,” in 2025 2nd International Conference on Information System and Information Technology (ICISIT), Yogyakarta: IEEE, 2025, pp. 1–6. doi: 10.1109/ICISIT66233.2025.11402981.
M. Rosenblatt, L. Tejavibulya, R. Jiang, S. Noble, and D. Scheinost, “Data leakage inflates prediction performance in connectome-based machine learning models,” Nat. Commun., vol. 15, pp. 1–15, 2024, doi: 10.1038/s41467-024-46150-w.
H. Bichri, A. Chergui, and M. Hain, “Investigating the Impact of Train / Test Split Ratio on the Performance of Pre-Trained Models with Custom Datasets,” Int. J. Adv. Comput. Sci. Appl., vol. 15, no. 2, pp. 331–339, 2024, doi: https://dx.doi.org/10.14569/IJACSA.2024.0150235.
N. F. Sahamony, Terttiaavini, and H. Rianto, “Analysis of Performance Comparison of Machine Learning Models for Predicting Stunting Risk in Children ’ s Growth,” MALCOM Indones. J. Mach. Learn. Comput. Sci. J., vol. 4, no. 2, pp. 413–422, 2024, doi: https://doi.org/10.57152/malcom.v4i2.1210.
E. Alotaibi and N. Nassif, “Artificial intelligence in environmental monitoring?: in ? depth analysis,” Discov. Artif. Intell., vol. 4, no. 2, 2024, doi: 10.1007/s44163-024-00198-1.
O. Jouini, K. Sethom, A. Namoun, N. Aljohani, M. H. Alanazi, and M. N.Alanazi, “A Survey of Machine Learning in Edge Computing?: Techniques ,” Technologies, vol. 12, no. 6, pp. 1–34, 2024, doi: https://doi.org/10.3390/technologies12060081.
G. Mohyuddin, M. A. Khan, A. Haseeb, S. Mahpara, M. Waseem, and A. M. Saleh, “Evaluation of Machine Learning approaches for precision Farming in Smart Agriculture System - A comprehensive Review,” IEEE Access, vol. 12, pp. 60155–60184, 2024, doi: 10.1109/ACCESS.2024.3390581.
M. Milutinovic, “MACHINE LEARNING IN ENVIRONMENTAL MONITORING Mirjana Milutinovi ?,” Facta Univ. Ser. Work. Living Environ. Prot., vol. 21, pp. 155–160, 2024, doi: https://doi.org/10.22190/FUWLEP241029014M.
S. O. Ooko, L. Cheptegei, and S. M. Karume, “Application of machine learning for real-time water quality monitoring in developing countries?: A review,” Sustain. Futur., vol. 10, p. 100984, 2025, doi: 10.1016/j.sftr.2025.100984.
A. Kriuchkova, V. Toloknova, and S. Drin, “Predictive model for a product without history using LightGBM: Pricing model for a new product,” Mohyla Math. J., vol. 6, pp. 6–13, 2023, doi: 10.18523/2617-7080620236-13.
S. Takahashi, A. Harada, and S. Yamada, “An Extended Closure Relation by LightGBM for Neutrino Radiation Transport in Core-collapse Supernovae,” Astrophys. J., vol. 986, no. 1, 2025, doi: https://doi.org/10.3847/1538-4357/add0ae.
C. Okolie, A. Adeleke, J. Smit, J. Mills, C. Ogbeta, and I. Maduako, “Performance analysis of Bayesian optimised gradient-boosted decision trees for digital elevation model ( DEM ) error correction?: interim results,” ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci., vol. X-2–2024, no. June, pp. 179–183, 2024, doi: https://doi.org/10.5194/isprs-annals-X-2-2024-179-2024.
L. Li, “LightGBM integration with modified data balancing and whale optimization algorithm for rock mass classification,” Sci. Rep., vol. 14, no. 1, pp. 1–25, 2024, doi: 10.1038/s41598-024-73742-9.
A. Ferdiansyah, F. R. Umbara, and F. Kasyidi, “Prediksi Penyakit Diabetes menggunakan Teknik Imputasi Missforest dan Klasifikasi LightGBM,” MIND (Multimedia Artif. Intell. Netw. Database), vol. 10, no. 2, pp. 221–234, 2025, doi: https://doi.org/10.26760/mindjournal.v10i2.221-234.
J. A. Ilemobayo et al., “Hyperparameter Tuning in Machine Learning?: A Comprehensive Review,” J. Eng. Res. Reports, vol. 26, no. 6, pp. 388–395, 2024, doi: 10.9734/jerr/2024/v26i61188.
T. Kee and W. K. . Ho, “Optimizing Machine Learning Models for Urban Sciences?: A Comparative Analysis of Hyperparameter Tuning Methods,” Urban Sci., vol. 9, no. 9, p. 348, 2025, doi: 10.3390/urbansci9090348.
Y. Rimal, N. Sharma, and A. Alsadoon, “The accuracy of machine learning models relies on hyperparameter tuning: - Student result classification using random forest, randomized search, grid search, bayesian, genetic, and optuna algorithms,” Multimed. Tools Appl., vol. 83, no. 30, pp. 74349–74364, 2024, doi: 10.1007/s11042-024-18426-2.
Z. Zuo, Y. Niu, J. Li, H. Fu, and M. Zhou, “Machine Learning for Advanced Emission Monitoring and Reduction Strategies in Fossil Fuel Power Plants,” Appl. Sci., vol. 14, no. 18, p. 8442, 2024, doi: 10.3390/app14188442.
K.-T. Nguyen, T.-N. Tran, and H.-T. Nguyen, “Research on the Influence of Hyperparameters on the LightGBM Model in Load Forecasting,” Eng. Technol. Appl. Sci. Res, vol. 14, no. 5, pp. 17005–17010, 2024, doi: https://doi.org/10.48084/etasr.8266.
F. Abbas et al., “Optimizing Machine Learning Algorithms for Landslide Susceptibility Mapping along the Karakoram Highway , Gilgit Baltistan , Pakistan?: A Comparative Study of Baseline , Bayesian , and Metaheuristic Hyperparameter Optimization Techniques,” Sensors (Basel)., vol. 23, no. 15, p. 6843, 2023, [Online]. Available: https://doi.org/10.3390/s23156843
A. N. Hidayat, A. L. Ramdani, and L. Muthoharoh, “Aspect-Based Sentiment Analysis of Tourism Reviews Using Variants of the K-Nearest Neighbor Algorithm,” MALCOM Indones. J. Mach. Learn. Comput. Sci. J., vol. 6, no. 2, pp. 534–545, 2026, doi: doi.org/10.57152/malcom.v6i2.2522.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Mutiara Qolbu, Ahmad Taqwa, Mohammad Fadhli

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright © by Author; Published by Institut Riset dan Publikasi Indonesia (IRPI)
This Indonesian Journal of Machine Learning and Computer Science is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.










