Analisis Klasifikasi Kekeruhan Air Berbasis Citra Dengan K-NN Pada Variasi Pencahayaan
DOI:
https://doi.org/10.37859/jf.v16i1.11339
Abstract
Clean and high-quality water is an essential requirement for public health and the continuity of industrial processes, including at PT Pupuk Sriwidjaja Palembang. One of the main parameters of water quality is turbidity, which is related to the presence of suspended particles such as mud, organic matter, and microorganisms. This study aims to analyze the effect of lighting intensity variations on the performance of water turbidity classification based on digital image processing using the K-Nearest Neighbor (K-NN) algorithm. The experiment was conducted under five lighting intensity levels: 10, 30, 50, 80, and 100 lux. The research stages included image acquisition, pre-processing (resizing, color conversion, and normalization), feature extraction of color and texture using mean, standard deviation, and Gray Level Co-occurrence Matrix (GLCM), followed by classification using the K-NN algorithm. The value of k = 5 was selected because it provides a balance between sensitivity to noise and classification stability, and preliminary testing showed more consistent performance compared to smaller or larger k values. System performance evaluation was carried out using accuracy, precision, F1-score, and confusion matrix. The results showed that the best performance was achieved at 100 lux lighting intensity with an accuracy of 91.67%, precision of 93.33%, and F1-score of 91.53%, while the lowest performance occurred at 10 lux with an accuracy of 61.54%. These findings indicate that lighting intensity significantly affects turbidity classification performance, with optimal conditions found in the range of 80–100 lux. This study proves that proper lighting adjustment can improve the reliability of digital image-based classification systems for automatic water quality monitoring.
Downloads
References
World Health Organization, 2017, Guidelines for Drinking-Water Quality, 4th ed. Geneva: WHO Press.
Mohammed A., 2024, Determine water turbidity by using image processing technology. International Journal of Intelligent Systems and Applications in Engineering, 12(2), pp. 115–121.
Wahyudi A. M., Hasrawati, and Fitriyanti, 2024, Analysis of water turbidity using image processing and polarimetry based on light intensity patterns. Jurnal Sains Fisika, 20(1), pp. 45–52.
Z. Alfarizi and E. I. Sela, 2024, “Klasifikasi Rimpang Menggunakan Metode K-Nearest Neighbor dan Ekstraksi Ciri Gray Level Co-occurrence Matrix,” Jurnal FASILKOM, vol. 14, no. 1, pp. 1–8.
Mair, R. Syafitri, and D. Pratama, 2025, “Image Classification Using CNN with Preprocessing Enhancement Based on VGG16 Architecture,” Journal of Computer Vision and Artificial Intelligence, vol. 5, no. 2, pp. 88–97.
Herdiansyah, A. Hermawan, and Sutarman, 2024, “Implementasi Algoritma Convolutional Neural Network Untuk Identifikasi Kode Seri Keramik Merk Arwana,” Jurnal FASILKOM, vol. 14, no. 3, pp. 1–8.
Gonzalez and R. Woods, 2018, Digital Image Processing, 4th ed. New York: Pearson.
S. Zhang and X. Wu, 2022, “Performance Analysis of K-Nearest Neighbor Algorithm in Image Classification,” International Journal of Computer Applications, vol. 176, no. 12, pp. 20–27.
Y. Chen, H. Li, and J. Wang, 2023, “Effect of Illumination Variations on Image-Based Classification Systems,” Journal of Imaging Science, vol. 9, no. 4, pp. 233–241.
PT Pupuk Sriwidjaja Palembang, 2024, Laporan Sistem Monitoring Kualitas Air Industri. Palembang: PT Pupuk Sriwidjaja Palembang
Hidayat R., Pratama A., and Setiawan D., 2022, Penerapan algoritma K-Nearest Neighbor pada klasifikasi citra digital. Jurnal Teknologi Informasi dan Komunikasi (JUTIK), 5(2), pp. 85–92.
Ruslan R. A. and Arbaiy N., 2024, Handling imbalanced datasets in machine learning: Challenges, approaches, and best practices. Journal of Applied Science, Technology and Computing, 1(2), pp. 20–27.
Tristanti N., Romadloni N. T., and Sya’bani N. H., 2023, Klasifikasi citra menggunakan algoritma K-Nearest Neighbor dan metode Euclidean distance. RIGGS: Journal of Artificial Intelligence and Digital Business, 3(1), pp. 12–18.
Mair Z. R., Cholil W., Yulianti E., et al., 2023, Convolutional Neural Network Analysis on Handwriting Patterns and Its Relationship to Personality: A Systematical Review. In Proceedings of the International Conference on Informatics, Multimedia, Cyber and Information Systems (ICIMCIS), pp. 308–312.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 M. Fatuhrahman, Gasim Gasim, Zaid Romegar Mair

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Jurnal FASILKOM (teknologi inFormASi dan ILmu KOMputer) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is 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 the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her 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 the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.










_(1).png)



