with different colors and each color difference has a
different meaning where the red icon is intended for
group 1 with poor conditions totaling 43 stations,
green for group 2 with good conditions totaling 45
stations and blue for group 3 with moderate
conditions totaling 29 stations, on the icon if clicked
will display information in the form of station
number, lat long, pH value and also group number.
4.5 Implementation Using Surfer
Application
To find out the distribution of water pH values using
the Surfer application program can be seen in Figure
7 below.
Figure 7: Results Implementation to the Surfer application
The display of the implementation results in the
Surfer application can be explained by the
distribution of pH values where variable X is
Longitude, variable Y is Latitude and variable Z is the
pH value of water. Red color information indicates
that the pH value is high or the pH is alkaline, the
lower the light green pH is neutral and the lower or
blue to purple the pH value is low or the pH is acidic.
From the description of Figure 5, it can also be seen
that the highest pH value is 7.8 and the lowest is 6.1.
5 CONCLUSION
1. By using the K-Means algorithm, it can
categorize water quality with good and bad
conditions.
2. Based on the results, it can be concluded that
the best number of clusters produced using
the k-means algorithm method is three
clusters (k = 3) with the smallest Davies-
Bouldin Index validity value of 0.36. Where
the three clusters are each membership,
namely, the first cluster of 43 stations, the
second cluster of 45 stations and the third
cluster of 29 stations. In addition, it produces
4 iterations, with a description of C1 with
poor conditions, C2 with good conditions
and C3 with moderate conditions.
3. The use of Google Maps API and Code
Igniter Framework can display visualization
of clustering results well in accordance with
the dataset used, namely the pH water
quality values in Lamong River.
REFERENCES
Ainun Novia, E. (2020). SISTEM PERBANDINGAN
ALGORITMA K-MEANS DAN NAÏVE BAYES
UNTUK MEMPREDIKSI PRI... - Google Books.
Aswant, I. AL. (2016). Analisis Perbandingan Metode
Interpolasi untuk Pemetaan pH Air Pada Sumur Bor di
Kabupaten Aceh Besar Berbasis SIG. UPT
Perpustakaan Universitas Syiah Kuala, 1–76.
Badruttamam, A., Sudarno, S., & Maruddani, D. A. I.
(2020). PENERAPAN ANALISIS KLASTER K-
MODES DENGAN VALIDASI DAVIES BOULDIN
INDEX DALAM MENENTUKAN
KARAKTERISTIK KANAL YOUTUBE DI
INDONESIA (Studi Kasus: 250 Kanal YouTube
Indonesia Teratas Menurut Socialblade). Jurnal
Gaussian, 9(3), 263–272.
https://doi.org/10.14710/j.gauss.v9i3.28907
Celestino, A. E. M., Cruz, D. A. M., Sánchez, E. M. O.,
Reyes, F. G., & Soto, D. V. (2018). Groundwater
quality assessment: An improved approach to K-means
clustering, principal component analysis and spatial
analysis: A case study. Water (Switzerland), 10(4), 1–
21. https://doi.org/10.3390/w10040437
Hani Subakti, S. P. M. P., Ikhsan Romli, S. S. M. S., Nur
Syamsiyah, S. T. M. T. I., Adam Arif Budiman, M. K.,
Herianto, S. P. M. T., Lulut Alfaris, S. T. M. T., …
others. (2022). Artificial Intelligence. Media Sains
Indonesia.
Khadafi, S. (2016). Implementasi Algoritma Pso Untuk
Probabilitas Urutan Pengiriman Paket Pengantaran
Kurir. Seminar Nasional Sains Dan Teknologi Terapan
IV 2016 Institut Teknologi Adhi Tama Surabaya, 93–
98.
Khadafi, S., Salim, A., Prabowo, R., & Choirul, A. (2019).
Rancang Bangun Website UKM Reviora Tanggulangin
Sidoarjo Menggunakan Metode Waterfall Sebagai
Media Pemasaran Online. Seminar Nasional Sains Dan
Teknologi Terapan VII 2019, 705–710.
Luki Nasiti, E., Rahayu, Y., & Indah, N. (2017). Kualitas
Perairan Kali Lamong Berdasarkan Keanekaragaman
Plankton. LenteraBio: Berkala Ilmiah Biologi, 6(3).
Ni’am, A. C., Aulady, M. F. N., Hamidah, N. L., &
Prasetya, K. D. (2022). Analysis of distribution