Klasifikasi Cuaca Kota Bandung dengan Menggunakan Algoritma K-Nearest Neighbors

Sivana Amelia Irmayanti, Adhitya Arie Mahatma, Danu Septi Adi, Rega Wahyu Aji, Rinci Kembang Hapsari, M Ravi Ubaidillah

Abstract


Indonesia is one of the countries that often experiences abnormal weather cycles. Extreme weather occurs due to several factors, such as unusual atmosphere. Weather prediction is very important in helping people anticipate various possibilities caused by extreme weather changes. This study aims to classify the weather in Bandung using the K-Nearest Neighbor algorithm. The K-Nearest Neighbor algorithm was chosen because of its ty to handle data with not too many variables and its implementation in weather classification cases. The dataset is secondary data taken from kaggle.com. Testing was conducted with k = 30, k = 50 and k = 70. With the highest accuracy, precision, and recall values at k = 50.


Keywords


classification, weather, k-Nearest-Neighbors

Full Text:

PDF

References


D. Setiawan, N. H. Prabowo, and N. B. Sukoco, “Rancang Bangun Alat Perekam Data Cuaca dengan Berbasis Internet Of Things,” Jurnal HIDROPILAR, vol. 6, no. 2, p. 61, Dec. 2020, doi: 10.37875/hidropilar.v6i2.180.

I. Darmayanti, P. Subarkah, L. R. Anunggilarso, and J. Suhaman, “PREDIKSI POTENSI SISWA PUTUS SEKOLAH AKIBAT PANDEMI COVID-19 MENGGUNAKAN ALGORITME K-NEAREST NEIGHBOR,” JST (Jurnal Sains dan Teknologi), vol. 10, no. 2, p. 230, Nov. 2021, doi: 10.23887/jstundiksha.v10i2.39151.

A. Suzana, “Penyusunan Status Kerusakan Tanah untuk Produksi Biomassa di Kabupaten Bandung,” Jurnal Civronlit Unbari, vol. 4, no. 1, p. 1, Jul. 2019, doi: 10.33087/civronlit.v4i1.41.

S. Mulyati, S. M. Husein, and R. Ramdhan, “RANCANG BANGUN APLIKASI DATA MINING PREDIKSI KELULUSAN UJIAN NASIONAL MENGGUNAKAN ALGORITMA (KNN) K-NEAREST NEIGHBOR DENGAN METODE EUCLIDEAN DISTANCE PADA SMPN 2 PAGEDANGAN,” JIKA (Jurnal Informatika), vol. 4, no. 1, p. 65, Jan. 2020, doi: 10.31000/jika.v4i1.2288.

I. Peranginangin, A. Zakaria, and D. I. Kusumastuti, “Perbandingan spektrum curah hujan harian antara BMKG dan TRMM di DKI Jakarta,” Rekayasa Jurnal Ilmiah Fakultas Teknik Universitas Lampung, vol. 24, no. 2, p. 53, Dec. 2021, doi: 10.23960/rekrjits.v24i2.41.

R. Shimabukuro, T. Tomita, and K. Fukui, “Update of global maps of Alisov’s climate classification,” Progress in Earth and Planetary Science, vol. 10, no. 1, Apr. 2023, doi: 10.1186/s40645-023-00547-1.

R. K. Dinata, H. Akbar, and N. Hasdyna, “Algoritma K-Nearest Neighbor dengan Euclidean Distance dan Manhattan Distance untuk Klasifikasi Transportasi Bus,” ILKOM Jurnal Ilmiah, vol. 12, no. 2, p. 104, Aug. 2020, doi: 10.33096/ilkom.v12i2.539.104-111.

N. Pan, “A Study on the Implications of Critical Discourse Analysis Theory for College English Teaching in the Context of Big Data,” Applied Mathematics and Nonlinear Sciences, vol. 9, no. 1, Apr. 2023, doi: 10.2478/amns.2023.1.00104.

A. Winantu and C. Khatimah, “Perbandingan Metode Klasifikasi Naive Bayes Dan K-Nearest Neighbor Dalam Memprediksi Prestasi Siswa,” INTEK Jurnal Informatika dan Teknologi Informasi, vol. 6, no. 1, p. 58, May 2023, doi: 10.37729/intek.v6i1.3006.

N. Nigam and A. Rajavat, “A Systematic Literature Review of Data Classification Techniques,” International Journal of Computer Applications, vol. 177, no. 44, p. 41, Mar. 2020, doi: 10.5120/ijca2020919971.

A. P. PUTRA and D. P. RAMADHAN, “ANALISIS PENANGANAN BANJIR DI KAWASAN GENUK KOTA SEMARANG DENGAN MENGGUNAKAN PIPA RESAPAN HORIZONTAL.” 2024.

F. Akbar, S. Achmadi, and A. Mahmudi, “IMPLEMENTASI ANALISIS DATA KREDIT NASABAH MENGGUNAKAN METODE K-NEAREST NEIGHBORS,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 4, no. 1, p. 82, May 2020, doi: 10.36040/jati.v4i1.2351.

A. K. Wijaya, R. Syifa, I. N. Rahmadianto, and R. K. Hapsari, “Identifikasi Penyakit Ginjal Kronis Menggunakan Algoritma K-Nearest Neighbour ( k-NN ),” in Seminar Nasional Informatika Bela Negara (SANTIKA) ISSN, 2024, pp. 361–365.

N. Yu and T. Haskins, “KNN, An Underestimated Model for Regional Rainfall Forecasting,” arXiv (Cornell University), Jan. 2021, doi: 10.48550/arxiv.2103.15235.

I. Nopriansyah, A. Azwarman, and E. Raudhati, “Analisa Kapasitas Drainase Untuk Menanggulangi Banjir Pada Perumahan Kembar Lestari 1 Jambi,” Jurnal Talenta Sipil, vol. 6, no. 1, p. 140, Feb. 2023, doi: 10.33087/talentasipil.v6i1.147.

A. Rachmad, R. K. Hapsari, W. Setiawan, T. Indriyani, E. M. S. Rochman, and B. D. Satoto, Classification of Tobacco Leaf Quality Using Feature Extraction of Gray Level Co-occurrence Matrix (GLCM) and K-Nearest Neighbor (K-NN), vol. 1. Atlantis Press




DOI: https://doi.org/10.31284/p.snestik.2025.7622

Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Sivana Amelia Irmayanti, Adhitya Arie Mahatma, Danu Septi Adi, Rega Wahyu Aji, Rinci Kembang Hapsari, M Ravi Ubaidillah

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