Image Processing-Based Flood Detection

  • Angga AriawanEmail author
  • Dwi Pebrianti
  • Ronny
  • Yudha Maulana Akbar
  • Lestari Margatama
  • Luhur Bayuaji
Conference paper
Part of the Lecture Notes in Electrical Engineering book series (LNEE, volume 538)


This paper discusses about the design of an online flood detection and early warning system which integrated to using Raspberry-PI and optical sensor. Raspberry-PI is a single board of computer which in this case we design as an image processor to process image obtained from the webcam and update the result to the twitter. This research can help some of the citizens who live near the river to get the updated information regarding water conditions and the possibility of flooding so that they can take action to secure their properties and families as soon as possible. We use OpenCV as an image processing application. The steps are as follows: (1) Region of Interest to create a portion of an image to filter or perform some other operation. (2) Brightness and contrast adjustment in order to get brighter and better image before the next process. (3) Grayscale and threshold to create segmentation object with Otsu-thresholding. (4) Edge detection algorithm to find edge points on a roughly horizontal water line and riverbank height. By using the above method, the system can read and monitor the water level of a river or other water bodies. If the water level exceeds the specific threshold, the system will generate notification as early warning for the possibility of flooding by uploading the text and image to the twitter regarding that condition. The citizens will get the information if they follow that account (early warning system) on Twitter. The result of this simulation using prototype that we have made is that the system can read the water conditions with an increase in accuracy reaching 99.6%.


Flood detection Early warning system Optical sensor Image processing 


  1. 1.
    Riyanto, I., Margatama, L.:Study of watershed segmentation for flood area mapping in Jakarta. In: International Conference on Information Technology and Electrical Engineering (ICITEE) Proceedings, pp. 52–55. Universitas Gadjah Mada, Yogyakarta (2014)Google Scholar
  2. 2.
    Pramusinto, W., Riyanto, I.: Mobile system to support flood area information distribution. Case study: central Jakarta area. In: The 5th Indonesia-Japan Joint Scientific Symposium Proceedings, pp. 301–306. Chiba University, Chiba, Japan (2012)Google Scholar
  3. 3.
    Akbar, Y.M., Musafa, A., Riyanto, I.: Image processing-based flood detection for online flood early warning system. In: The 6th Indonesia-Japan Joint Scientific Symposium Proceedings, Universitas Gadjah Mada, Yogyakarta (2014)Google Scholar
  4. 4.
    Isworo, H.: Sensor level air dan pengontrol pompa air otomatis berbasis Mikrokontroller Atmega8. Jurnal Dinamika UMT 1(2), 84–97 (2016)CrossRefGoogle Scholar
  5. 5.
    Ulinnuha, B.D., Widjiantoro, B.L.: Rancang bangun sistem pengendalian level pada mini mikrohidro skala laboratorium di workshop instrumentasi. Institut Teknologi Sepuluh Nopember, Surabaya (2012)Google Scholar
  6. 6.
    Revilla-Romero, B., Thielen, J., Salamon, P., De Groeve, T., Brakenridge, G.R.: Evaluation of the satellite-based Global Flood Detection System for measuring river discharge: influence of local factors. Hydrol. Earth. Syst. Sci. 18(11), 4467–4484 (2014)CrossRefGoogle Scholar
  7. 7.
    Kadir, A.: Pengolahan Citra Teori dan Aplikasi. 1st edn. Andi, Indonesia (2018)Google Scholar
  8. 8.
    Otsu, N.: A threshold selection method from gray-level histograms. In: IEEE Trans. Sys., Man., Cyber. 9(1), 62–66, IEEE (1979)Google Scholar
  9. 9.
    Abutaleb, A.S., Eloteifi, A.: Automatic thresholding of gray-level pictures using 2-D entropy. In: Applications of Digital Image Processing X Proceedings, SPIE, USA (1988)Google Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2019

Authors and Affiliations

  • Angga Ariawan
    • 1
    Email author
  • Dwi Pebrianti
    • 1
    • 5
  • Ronny
    • 2
  • Yudha Maulana Akbar
    • 2
  • Lestari Margatama
    • 3
  • Luhur Bayuaji
    • 1
    • 4
  1. 1.Magister of Computer ScienceUniversitas Budi LuhurJakartaIndonesia
  2. 2.Faculty of EngineeringUniversitas Budi LuhurJakartaIndonesia
  3. 3.Faculty of Information TechnologyUniversitas Budi LuhurJakartaIndonesia
  4. 4.Faculty of Computer Science and Software EngineeringUniversiti Malaysia PahangPekanMalaysia
  5. 5.Faculty of Electrical and Electronics EngineeringUniversiti Malaysia PahangPekanMalaysia

Personalised recommendations