Flooding occurs when the water's surface elevation exceeds the average level, overflowing river water and creating inundation in low-lying areas. Early warning for potential floods significantly reduces losses, such as human casualties and property damage. In this context, the flood disaster classification system uses water surface elevation data from the Water Resources Agency to predict the likelihood of floods using the K-Nearest Neighbors (KNN) Algorithm. This research aims to classify flood status based on water surface elevation using the K-Nearest Neighbors and Support Vector Machine(SVM) methods in the Ciliwung River. The study results indicate that the SVM algorithm outperforms the KNN algorithm. The SVM algorithm used parameter C ranging from 1 to 10 in the scenarios, and the RBF kernel achieved 100% accuracy. On the other hand, the KNN algorithm achieved 100% accuracy only for K values of 1, 2, 3, 4, and 5 in scenarios where K ranged from 1 to 10.
Read full abstract