Analysis and Implementation of the Apriori Algorithm for Predicting Floods in the City of Medan at the Lau Simeme Dam

Authors

  • Zahra Apriyani Hakim Nasution Universitas Muhammadiyah Sumatera Utara Author
  • Mulkan Azhari Universitas Muhammadiyah Sumatera Utara Author

DOI:

https://doi.org/10.65310/4cn1ym72

Keywords:

Apriori Algorithm, Flood Prediction, Data Mining, Lau Simeme Dam, Association Rule

Abstract

This study aims to analyze and implement the Apriori algorithm to predict flood potential at the Lau Simeme Dam in Medan City by identifying association patterns among rainfall, water discharge, and water level parameters based on daily hydrological data. The main challenge of this study lies in the limitations of conventional mitigation systems, which are not yet capable of systematically and adaptively interpreting multivariate environmental relationships. The research method employs an empirical data mining-based approach, involving data preprocessing, numerical transformation into transactional data, frequent item set formation, and association rule derivation using minimum support and confidence parameters. The system was developed using Python and MySQL to support the operational analysis and visualization of prediction results. The results show that the Apriori algorithm is capable of generating consistent association patterns between heavy rainfall, increased water discharge, and flood alert status with an accuracy of 97.81%, precision of 100%, and recall of 97.81%. These findings indicate that association rule-based models possess interpretive and predictive capabilities relevant to supporting flood mitigation based on hydrological data.

Downloads

Download data is not yet available.

References

Adha, M., Utami, E., & Hanafi, H. (2022). Model Hibrid Algoritma Apriori dan Regresi Linear untuk Perkiraan Produksi Jagung (Studi Kasus: Kabupaten Dompu). JEPIN (Jurnal Edukasi dan Penelitian Informatika), 8(3), 441-450. https://doi.org/10.26418/jp.v8i3.55522.

Apdilah, D. (2021). Optimization Of The Fuzzy C-Means Cluster Center For Credit Data Grouping Using Genetic Algorithms. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, 2(2), 65-72. https://doi.org/10.55311/aiocsit.v2i2.225.

BNPB. (2019). Laporan Tahunan Penanggulangan Bencana di Indonesia Tahun 2019. Jakarta: Badan Nasional Penanggulangan Bencana.

br Sembiiring, D. A., & Sipayung, S. P. (2026). Klasifikasi Tingkat Dampak Banjir Di Provinsi Sumatra Utara Menggunakan Algoritma K-Nearest Neighbor (Knn). Jurnal Ilmu Komputer dan Teknik Informatika, 2(1), 108-118. https://doi.org/10.64803/juikti.v2i1.103.

Fauzy, M., & Asror, I. (2016). Penerapan metode association rule menggunakan algoritma apriori pada simulasi prediksi hujan wilayah kota bandung. Jurnal Ilmiah Teknologi Infomasi Terapan, 2(3). https://doi.org/10.33197/jitter.vol2.iss3.2016.111.

Manurung, A. A., Nasution, M. D., & Sari, I. P. (2023). Implementation of Fuzzy K-Nearest Neighbor Method in Dengue Disease Classification. In 2023 11th International Conference on Cyber and IT Service Management (CITSM) (pp. 1-4). IEEE. https://doi.org/10.1109/CITSM60085.2023.10455306.

Marpaung, P. H., Sahara, N., Rambe, A., & Suryani, F. (2024). Penerapan Metode Association Rule Menggunakan Algoritma Apriori Pada Simulasi Prediksi Hujan Wilayah Sibolga. Jurnal Penelitian Multidisiplin Bangsa, 1(3), 117-122. https://doi.org/10.59837/jpnmb.v1i3.38.

Putri, R. S., Randika, R. P., Zhaafirah, A. N., Sasmita, F. D., Kurnia, A. N., & Muzaki, A. (2025). optimasi Prediksi banjir menggunakan teknik smote dan algoritma Naive Bayes. Journal of Informatics and Interactive Technology, 2(2), 354-360. https://doi.org/10.63547/jiite.v2i2.68.

Ramadhani, F., Satria, A., & Sari, I. P. (2023). Implementasi Metode Fuzzy K-Nearest Neighbor dalam Klasifikasi Penyakit Demam Berdarah. Hello World Jurnal Ilmu Komputer, 2(2), 58-62. https://doi.org/10.56211/helloworld.v2i2.253.

Sanjaya, F., Salahuddin, M., Haryanto, L., & Sarnita, F. (2024). Penerapan Data Mining dalam Analisis Kejadian Banjir di Indonesia dengan Menggunakan Metode Association Rule Algoritma Apriori. Jurnal Pendidikan Ilmu Pengetahuan Alam (JP-IPA), 5(1), 42-45. https://doi.org/10.56842/jp-ipa.v5i1.312.

Sari, I. P., & Batubara, I. H. (2021). Perancangan Sistem Informasi Laporan Keuangan Pada Apotek Menggunakan Algoritma K-NN. In Seminar Nasional Teknologi Edukasi Sosial dan Humaniora (Vol. 1, No. 1, pp. 692-698). https://doi.org/10.53695/sintesa.v1i1.398.

Sari, I. P., Al-Khowarizmi, A. K., & Batubara, I. H. (2021). Cluster Analysis Using K-Means Algorithm and Fuzzy C-Means Clustering For Grouping Students' Abilities In Online Learning Process. Journal of Computer Science, Information Technology and Telecommunication Engineering, 2(1), 139-144. https://doi.org/10.30596/jcositte.v2i1.6504.

Sari, I. P., Al-Khowarizmi, A. K., Sulaiman, O. K., & Apdilah, D. (2023). Implementation of Data Classification Using K-Means Algorithm in Clustering Stunting Cases. Journal of Computer Science, Information Technology and Telecommunication Engineering, 4(2), 402-412. https://doi.org/10.30596/jcositte.v4i2.15765.

Sari, I. P., Batubara, I. H., & Al-khowarizmi, A. K. (2021). Sensitivity Of Obtaining Errors In The Combination Of Fuzzy And Neural Networks For Conducting Student Assessment On E-Learning. International Journal of Economic, Technology and Social Sciences (Injects), 2(1), 331-338. https://doi.org/10.53695/injects.v2i1.412.

Sari, I. P., Hariani, P. P., Al-Khowarizmi, A. K., Ramadhani, F., Sulaiman, O. K., Satria, A., & Manurung, A. A. (2024). Clustering Hiv/Aids Disease Using K-Means Clustering Algorithm. In Proceeding International Seminar of Islamic Studies (No. 1, pp. 1668-1676). https://doi.org/10.3059/insis.v0i1.18743.

Sari, I. P., Ramadhani, F., Satria, A., & Apdilah, D. (2023). Implementasi Pengolahan Citra Digital dalam Pengenalan Wajah menggunakan Algoritma PCA dan Viola Jones. Hello World Jurnal Ilmu Komputer, 2(3), 146-157. https://doi.org/10.56211/helloworld.v2i3.346.

Sari, I. P., Ramadhani, F., Satria, A., & Sulaiman, O. K. (2023). Leukocoria Identification: A 5-Fold Cross Validation CNN and Adaboost Hybrid Approach. In 2023 6th International Seminar on Research of Information Technology and Intelligent Systems (ISRITI) (pp. 486-491). IEEE. https://doi.org/10.1109/ISRITI60336.2023.10467242.

Sinatrya, I. M., Pohan, A. B., Yunita, Y., Amalia, H., & Lestari, A. F. (2025). Penerapan Integrasi Algoritma K-Means Dan Naïve Bayes Untuk Klasifikasi Wilayah Rawan Banjir Di Jakarta. Computer Science (Co-Science), 5(2), 67-76. https://doi.org/10.31294/coscience.v5i2.6900.

Sulaiman, O. K. (2021). Implementation Data Mining For Level Analysis Traffic Violation By Algorithm Association Rule. Al'adzkiya International of Computer Science and Information Technology (AIoCSIT) Journal, 2(2), 37-44. https://doi.org/10.55311/aiocsit.v2i2.221.

Triyanto, S., Sunyoto, A., & Arief, M. R. (2021). Analisis klasifikasi bencana banjir berdasarkan curah hujan menggunakan algoritma Naïve Bayes. JOISIE (Journal Of Information Systems And Informatics Engineering), 5(2), 109-117. https://doi.org/10.35145/joisie.v5i2.1785.

Zahra, D. F., & Carkiman, C. (2025). Studi Literatur Pemanfaatan Artificial Intelligence untuk Prediksi Bencana Banjir. Jurnal Teknologi Informasi dan Komunikasi, 18(1), 15-26. https://doi.org/10.47561/jtik.v18i1.281.

Published

2026-04-20

How to Cite

Analysis and Implementation of the Apriori Algorithm for Predicting Floods in the City of Medan at the Lau Simeme Dam. (2026). Journal of Science, Technology, and Innovation, 1(3), 235-245. https://doi.org/10.65310/4cn1ym72