A Mamdani Fuzzy-C4.5 Hybrid Model for River Water Quality Assessment: A Case Study of the Beringin River
Keywords:
River Water Quality, Decision-Making System., Mamdani Fuzzy Logic, C4.5 AlgorithmAbstract
Urban and industrial activities along the Beringin River in Semarang City cause water pollution in the river. Therefore, assessing water quality is necessary an effort to preserve the environment, safeguard human well-being, and provide early warnings of potential decline. This study used a Mamdani fuzzy logic for development water quality assessment. Input variables consisted of TSS, TDS, Ph, DO, BOD, COD, Nitrate, and Nitrite with water quality as the output. System development was begun by determination of fuzzy set domains for fuzzification and defuzzification. Fuzzy rules were formulated using IF-THEN relationships integrated with C4.5 Algorithm, an algorithm was used to select the most relevant attributes and pruning redundant branches to simplify complex decision-making system, in accordance to the health and environmental standards. The validation of the water quality assessment system was carried out by comparing the Pollution Index (PI) calculation data of 27 data points over a five-year period. The validation results showed accuracy system of 88.9%, with the water quality was categorized as moderately polluted. These findings indicated that the water quality assessment system have high accuracy and can be specifically applied in the Beringin River.
References
[1] N. F. Salsabila, M. Raharjo, and T. Joko, “Indeks Pencemaran Air Sungai dan Persebaran Penyakit yang Ditularkan Air (Waterborne Diseases): Suatu Kajian Sistematis,” Environ. Occup. Health Saf. J., vol. 4, no. 1, pp. 24–34, Jul. 2023, doi: 10.24853/eohjs.4.1.24-34.
[2] J. J. Kim and J. H. Ryu, “Decision-making of LID-BMPs for Adaptive Water Management at the Boise River Watershed in a Changing Global Environment,” Water (Switzerland), vol. 12, no. 9, pp. 1–17, Sep. 2020, doi: 10.3390/w12092436.
[3] Y. Wang, Y. Liu, J. Huang, T. Wu, and J. Huang, “Analysis and Prevention of Urban River Pollution,” in J. Phys.: Conf. Ser., Institute of Physics Publishing, Jun. 2020. doi: 10.1088/1742-6596/1549/2/022056.
[4] B. Yohannes, S. W. Utamo, and H. Agustina, “Kajian Kualitas Air Sungai dan Upaya Pengendalian Pencemaran Air (Studi di Sungai Krukut, Jakarta Selatan),” Indones. J. Environ. Educ. Manag., vol. 4, no. 2, pp. 2549–5798, Jul. 2019, doi: 10.21009/jgg.042.05.
[5] D. Roosmini, M. A. Septiono, N. E. Putri, H. M. Shabrina, I. R. S. Salami, and H. D. Ariesyady, “River Water Pollution Condition in Upper Part of Brantas River and Bengawan Solo River,” in IOP Conf. Ser.: Earth Environ. Sci., Institute of Physics Publishing, Jan. 2018, pp. 1–7. doi: 10.1088/1755-1315/106/1/012059.
[6] Y. Carriazo-Regino, R. Baena-Navarro, F. Torres-Hoyos, J. Vergara-Villadiego, and S. Roa-Prada, “IoT-Based Drinking Water Quality Measurement: Systematic Literature Review,” Indones. J. Electr. Eng. Comput. Sci., vol. 28, no. 1, pp. 405–418, Oct. 2022, doi: 10.11591/ijeecs.v28.i1.pp405-418.
[7] D. Anwariani, “Pengaruh Air Limbah Domestik Terhadap Kualitas Sungai,” OSF, pp. 1–6, 2019, doi: 10.31227/osf.io/8nxsj.
[8] A. Setiawan, B. Yanto, and K. Yasdomi, Logika Fuzzy dengan Matlab (Contoh Kasus Penelitian Penyakit Bayi dengan Fuzzy Tsukamoto). Denpasar: Jayapangus Press Books, 2018.
[9] L. A. Zadeh, “Fuzzy Sets,” Inf. Control, vol. 8, no. 3, pp. 338–353, 1965, doi: 10.1016/S0019-9958(65)90241-X.
[10] M. A. R. Pohan, J. Utama, and B. Herdiana, “Novel Motion Planning Strategy with Fuzzy Logic for Improving Safety in Autonomous Vehicles in Response to Risky Road User Behaviors,” ASEAN J. Sci. Eng. (AJSE), vol. 4, no. 3, pp. 471–484, Dec. 2024, doi: 10.17509/ajse.v4i3.75343.
[11] S. Syofian, A. Setiawan, M. Fathan, and R. Siregar, “CO Detection in High-Mileage Vehicle Cabins and Traffic Density Analysis Using Fuzzy Logic,” JUITA J. Inform., vol. 13, pp. 229–234, Aug. 2025, doi: 10.30595/juita.v13i2.26854.
[12] J. Dombi and E. Tóth-Laufer, “Reducing the Computational Requirements in the Mamdani-type Fuzzy Control,” Acta Polytech. Hung., vol. 17, no. 3, pp. 25–41, 2020, [Online]. Available: https://www.epa.oszk.hu/02400/02461/00098/pdf/
[13] M. N. Sinaga, N. A. Hasibuan, and A. M. H. Sihite, “Sistem Pakar Diagnosa Kifosis menerapkan Metode Fuzzy Mamdani,” KOMIK: Konf. Nas. Teknol. Inf. Komput., vol. 4, no. 1, Oct. 2020, doi: 10.30865/komik.v4i1.2716.
[14] F. A. Sihombing, “Kajian Fuzzy Metode Mamdani dan Fuzzy Metode Sugeno serta Implementasinya,” Innov. J. Soc. Sci. Res., vol. 4, no. 4, pp. 4940–4955, Jul. 2024, doi: 10.31004/innovative.v4i4.
[15] M. A. Yulianto, “Implementasi FIS Sugeno pada Algoritma C4.5 Berbasis Particle Swarm Optimization (PSO) untuk Prediksi Prestasi Siswa,” J. Artif. Intell. Innov. Appl., vol. 1, no. 1, pp. 12–22, Feb. 2020, [Online]. Available: https://openjournal.unpam.ac.id/index.php/JOAIIA/article/view/4272
[16] S. Lotfi, M. Ghasemzadeh, M. Mohsenzadeh, and M. Mirzarezaee, “Scalable Decision Tree Based on Fuzzy Partitioning and an Incremental Approach,” Int. J. Electr. Comput. Eng., vol. 12, no. 4, pp. 4228–4234, Aug. 2022, doi: 10.11591/ijece.v12i4.pp4228-4234.
[17] A. S. Eesa, Z. Orman, and A. M. A. Brifcani, “a Novel Feature-Selection Approach Based on the Cuttlefish Optimization Algorithm for Intrusion Detection Systems,” Expert Syst. Appl., vol. 42, no. 5, pp. 2670–2679, Apr. 2015, doi: 10.1016/j.eswa.2014.11.009.
[18] B. T. Jijo and A. M. Abdulazeez, “Classification Based on Decision Tree Algorithm for Machine Learning,” J. Appl. Sci. Technol. Trends, vol. 2, no. 01, pp. 20–28, Mar. 2021, doi: 10.38094/jastt20165.
[19] Y. Dani and M. A. Ginting, “Comparison of Iris dataset classification with Gaussian naïve Bayes and decision tree algorithms,” Int. J. Electr. Comput. Eng., vol. 14, no. 2, pp. 1959–1968, Apr. 2024, doi: 10.11591/ijece.v14i2.pp1959-1968.
[20] G. L. Pritalia, “Penerapan Algoritma C4.5 untuk Penentuan Ketersediaan Barang E-commerce,” Indones. J. Inf. Syst., vol. 1, no. 1, pp. 47–56, Aug. 2018, doi: 10.24002/ijis.v1i1.1727.
[21] M. A. Abdillah, A. Setyanto, and Sudarmawan, “Implementasi Decision Tree Algoritma C4.5 Untuk Memprediksi Kesuksesan Pendidikan Karakter,” J. Tek. Informasi, vol. 15, no. 2, pp. 59–69, Jul. 2020, doi: 10.35842/jtir.v15i2.349.
[22] J. R. Quinlan, C4.5: Programs for Machine Learning. in Morgan Kaufmann series in machine learning. Morgan Kaufmann, 1993.
[23] Menteri Negara Lingkungan Hidup, Keputusan Menteri Negara Lingkungan Hidup Nomor: 115 Tahun 2003 tentang Pedoman Penentuan Status Mutu Air. Jakarta, Indonesia, 2003. [Online]. Available: https://www.regulasip.id/ebooks/10016-keputusan-menteri-negara-lingkungan-hidup-nomor-:-115-tahun-2003-tentang-pedoman-penentuan-status-mutu-air-32e636b9
[24] Y. Anggraini and E. Wardhani, “Studi Mutu Air Sungai Cibaligo Kota Cimahi Provinsi Jawa Barat dengan Metode Indeks Pencemar,” Serambi Eng., vol. 6, no. 1, pp. 1478–1487, Jan. 2021, doi: 10.32672/jse.v6i1.2589.
[25] S. Rahayu and H. Pristianto, “Studi Penentuan Status Mutu Dan Kualitas Air Sungai Klawili Km.12 Kota Sorong,” J. Tek. Sipil, vol. 5, no. 1, pp. 35–41, Mar. 2019, doi: 10.33506/rb.v5i1.744.
[26] L. J. Shangguan and Z. Sun, “Enhancing data quality and real-time sharing performance in water informatics through decision tree mining algorithm,” Meas. Sensors, vol. 31, Feb. 2024, doi: 10.1016/j.measen.2023.101024.
[27] H. Tahraoui, A. Amrane, A. E. Belhadj, and J. Zhang, “Modeling the organic matter of water using the decision tree coupled with bootstrap aggregated and least-squares boosting,” Environ. Technol. Innov., vol. 27, Aug. 2022, doi: 10.1016/j.eti.2022.102419.
[28] L. Wang, Y. Huang, J. Ren, H. Zhou, L. Chen, and H. Zhou, “Double-transfer learning-based least squares wavelet support vector machine for water quality classification,” Desalin. Water Treat., vol. 320, Oct. 2024, doi: 10.1016/j.dwt.2024.100714.
[29] Z. Jamshidzadeh, M. Ehteram, and H. Shabanian, “Bidirectional Long Short-Term Memory (BILSTM) - Support Vector Machine: A new machine learning model for predicting water quality parameters,” Ain Shams Eng. J., vol. 15, no. 3, Mar. 2024, doi: 10.1016/j.asej.2023.102510.
[30] M. A. Kumar, N. Srinivas, P. Ramya, N. Ahlawat, J. Sharma, and F. Vinod, “Monitoring the quality of ground water in pipelines using deep neural network model,” Groundw. Sustain. Dev., vol. 24, Feb. 2024, doi: 10.1016/j.gsd.2023.101073.
[31] A. Mazouzi, N. Hadroug, W. Alayed, A. Hafaifa, A. Iratni, and A. Kouzou, “Comprehensive optimization of fuzzy logic-based energy management system for fuel-cell hybrid electric vehicle using genetic algorithm,” Int. J. Hydrogen Energy, vol. 81, pp. 889–905, Sep. 2024, doi: 10.1016/j.ijhydene.2024.07.237.
[32] M. T. Islam et al., “Regional irrigation water quality index for the Old Brahmaputra River, Bangladesh: A multivariate and GIS-based spatiotemporal assessment,” Results Eng., vol. 24, Dec. 2024, doi: 10.1016/j.rineng.2024.103667.
[33] N. A. Dewanti and A. M. Abadi, “Fuzzy Logic Application as a tool for Classifying Water Quality Status in Gajahwong River, Yogyakarta, Indonesia,” in IOP Conf. Ser.: Mater. Sci. Eng., Institute of Physics Publishing, Jul. 2019, pp. 1–8. doi: 10.1088/1757-899X/546/3/032005.
[34] N. C. Putra, Jayanta, and Y. Widiastiwi, “Penerapan Logika Fuzzy untuk Mendeteksi Kualitas Air Higiene Sanitasi menggunakan Metode Sugeno (Studi Kasus: Air Tanah Kota Bekasi),” in Sem. Nas. Mahasiswa Ilmu Komputer dan Aplikasinya (SENAMIKA), Aug. 2020, pp. 693–706. [Online]. Available: https://conference.upnvj.ac.id/index.php/senamika/issue/archive
[35] S. Oktavia, S. Musdalifah, and D. Lusiyanti, “Implementasi Sistem Inferensi Fuzzy Pada Pengambilan Keputusan Penentuan Kualitas Air PDAM,” J. Ilm. Mat. Terapan, vol. 17, no. 1, pp. 118–128, Jun. 2020, doi: 10.22487/2540766x.2020.v17.i1.15187.
[36] A. V. Pahuriray, J. D. Basanta, J. C. T. Arroyo, and A. J. P. Delima, “Flexible Learning Experience Analyzer (FLExA): Sentiment Analysis of College Students through Machine Learning Algorithms with Comparative Analysis using WEKA,” Int. J. Emerg. Technol. Adv. Eng., vol. 12, no. 12, pp. 1–15, Dec. 2022, doi: 10.46338/ijetae1222_01.
[37] J. Li, X. Xu, N. Li, H. Pan, and M. Li, “Research on a Classification Model for Online Course Quality Based on C4.5 Algorithm and Naive Bayes,” in Adv. Transdiscipl. Eng., IOS Press BV, Aug. 2025, pp. 490–499. doi: 10.3233/ATDE250634.
[38] Presiden Republik Indonesia, Peraturan Pemerintah No 22 Tahun 2021 tentang Baku Mutu Air yang Disesuaikan untuk Kegunaannya. Jakarta, Indonesia, 2021. [Online]. Available: https://peraturan.bpk.go.id/Details/161852/pp-no-22-tahun-2021
[39] Menteri Kesehatan Republik Indonesia, Peraturan Menteri Kesehatan Republik Indonesia Nomor 32 Tahun 2017 Khusus tentang Parameter Kimia dalam Standar Baku Mutu Kesehatan Lingkungan untuk Media Air. Jakarta, Indonesia, 2017. [Online]. Available: https://peraturan.bpk.go.id/Details/112092/permenkes-no-32-tahun-2017
[40] Menteri Lingkungan Hidup dan Kehutanan Republik Indonesia, Peraturan Menteri Lingkungan Hidup dan Kehutanan Republik Indonesia Nomor: P.68/Menlhk/Setjen/Kum.1/8/2016 tentang Baku Mutu Air Limbah Domestik. Jakarta, Indonesia, 2016. [Online]. Available: https://peraturan.go.id/id/permen-lhk-no-p-68-menlhk-setjen-2016-tahun-2016
[41] Pemerintah Daerah Kalimantan Timur, Peraturan Daerah Provinsi Kalimantan Timur Nomor 2 Tahun 2011 tentang Pengelolaan Kualitas Air dan Pengendalian Pencemaran Air. Samarinda, Indonesia, 2011. [Online]. Available: https://peraturan.bpk.go.id/Details/32978/perda-prov-kalimantan-timur-no-2-tahun-2011
[42] Menteri Kesehatan, Peraturan Menteri Kesehatan Republik Indonesia Nomor 416/Menkes/Per/IX/1990. Jakarta, Indonesia, 1990. [Online]. Available: https://labkesda.kapuaskab.go.id/public/deploy/pdf/1762311251_1c7efecaf84074f3e5ef.pdf
[43] Menteri Kesehatan Republik Indonesia, Permenkes Nomor 492/Menkes/Per/IV/2010 tentang Persyaratan Kualitas Air Minum. Jakarta, Indonesia, 2010. [Online]. Available: https://jdih.pom.go.id/download/rule/350/492/2010/Persyaratan%20Kualitas%20Air%20Minum
[44] M. M. H. Masum, M. B. Islam, A. Hoque, and M. A. Hossen, “Impacts of firefighting effluents from a sugar refinery fire on river water quality in Bangladesh,” NPJ Clean Water, vol. 4, Dec. 2025, doi: 10.1016/j.clwat.2025.100150.
[45] N. Huda, T. Ahmed, M. H. Masum, N. Faruque, and M. S. Islam, “Assessment of surface water quality using advanced statistical techniques around an urban landfill: A multi-parameter analysis,” City Environ. Interact., vol. 28, Dec. 2025, doi: 10.1016/j.cacint.2025.100237.
[46] N. Khatri, S. Tyagi, D. Rawtani, and M. Tharmavaram, “Assessment of river water quality through application of indices: a case study River Sabarmati, Gujarat, India,” Sustain. Water Resour. Manag., vol. 6, no. 6, Dec. 2020, doi: 10.1007/s40899-020-00459-8.
[47] Fianti and S. Hartati, “Verifikasi Unjuk Kerja Pengendali Berlogika Samar pada Proses Pemanasan Ruang,” J. Kaunia, vol. IV, no. 1, pp. 57–69, Apr. 2008, [Online]. Available: https://digilib.uin-suka.ac.id/id/eprint/7921/
[48] M. Widyastiti, “Penerapan Metode Fuzzy Mamdani untuk Menentukan Tingkat Kualitas Air Sungai Lintas Provinsi di Pulau Jawa,” Ekologia, vol. 18, no. 1, pp. 17–24, Apr. 2018, [Online]. Available: https://journal.unpak.ac.id/index.php/ekologia/issue/view/150/showToc
[49] J. Manurung, B. Sinaga, P. M. Hasugian, Logaraj, and S. Ramen, “Analisis Algoritma C4.5 dan Fuzzy Sugeno untuk Optimasi Rule Base Fuzzy,” J. Sist. Inf. Ilmu Komput. Prima, vol. 5, no. 2, pp. 166–171, Feb. 2022, doi: 10.34012/jurnalsisteminformasidanilmukomputer.v5i2.2488.
[50] H. Fakhrurroja, E. T. Nuryatno, A. Munandar, M. Fahmi, and N. A. Mahardiono, “Water quality assessment monitoring system using fuzzy logic and the internet of things,” J. mechatron. electr. power veh. technol., vol. 14, no. 2, pp. 198–207, Dec. 2023, doi: 10.14203/j.mev.2023.v14.198-207.
[51] Y. Barzegar, I. Gorelova, F. Bellini, and F. D’Ascenzo, “Drinking Water Quality Assessment Using a Fuzzy Inference System Method: A Case Study of Rome (Italy),” Int. J. Environ. Res. Public Health, vol. 20, no. 15, Aug. 2023, doi: 10.3390/ijerph20156522.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Fianti Fianti, Risma Dwi Rahmawati, Sunarno Sunarno, Suharto Linuwih, Siti Wahyuni, Fifin Dewi Ratnasari

This work is licensed under a Creative Commons Attribution 4.0 International License.

JUITA: Jurnal Informatika is licensed under a Creative Commons Attribution 4.0 International License.








