Enhancing River Water Level Prediction Using CNN with Attention and Squeeze-and-Excitation Blocks
DOI:
https://doi.org/10.32628/IJSRSET2512174Abstract
River Water Level Prediction (RWLP) serves as a critical tool for running river water management along with modeling hydrological processes and conserving sustainable water resources. Manual readings and ultrasonic sensors, which are traditionally used for measurement, face operational problems while also being affected by environmental conditions. A deep learning framework handles these issues by using image data to create classifications, which sort river water levels into high, medium and low categories. A multi-stage process handles a workflow that starts with organizing labeled images and subsequently acquires data for use in the pipeline. The analysis identified the distribution across classes as well as the different characteristics in the provided images through Exploratory Data Analysis (EDA). Previous data processing techniques normalized images while applying resizing methods and enhancing training stability through augmentation procedures. The research establishes seven convolutional neural network (CNN) models including a baseline CNN as well as VGG16, MobileNet, InceptionV3, Xception, along with two custom models integrated with attention mechanisms and Squeeze-and-Excitation (SE) blocks. The evaluation involved standard performance metrics like precision and accuracy together with recall and F1-score while preserving constant trainer and validator parameters. The model interpretation was improved by the use of Gradient-weighted Class Activation Mapping (Grad-CAM) for showing the key areas that influenced each decision. MobileNet outshined other models in the experiment by achieving 0.9918 accuracy alongside 0.9911 precision and 0.9918 recall and 0.9917 F1-score with only seven misinterpretations in the validation set. MobileNet succeeds in delivering accurate classifications while using limited resources. The SE block-based CNN model outperformed Xception and InceptionV3 in addition to surpassing both the attention-based CNN model and its baseline version. The visual regions focused by MobileNet's Grad-CAM outputs were consistently identified because the model paid attention to important components such as gauge readings and water lines, which strengthened both its reliability and interpretability. The research outcomes show that MobileNet among lightweight pre-trained CNNs excels for river water level detection while providing efficient, accurate and transparent operations for real-time hydrological observation.
Downloads
References
Levy, J. K., Gopalakrishnan, C., & Lin, Z. (2016). Advances in decision support systems for flood disaster management: Challenges and opportunities. Water Resources and Decision-Making Systems, 81-100.
Şen, Z. (2018). Flood modeling, prediction and mitigation (p. 431). Cham, Switzerland: Springer International Publishing.
Petty, T. R., Noman, N., Ding, D., & Gongwer, J. B. (2016). Flood forecasting GIS water-flow visualization enhancement (WaVE): A case study. Journal of Geographic Information System, 8(06), 692.
Alasali, F., Tawalbeh, R., Ghanem, Z., Mohammad, F., & Alghazzawi, M. (2021). A sustainable early warning system using rolling forecasts based on ANN and golden ratio optimization methods to accurately predict real-time water levels and flash flood. Sensors, 21(13), 4598.
Fu, G., Jin, Y., Sun, S., Yuan, Z., & Butler, D. (2022). The role of deep learning in urban water management: A critical review. Water Research, 223, 118973.
Jafarzadegan, K., Moradkhani, H., Pappenberger, F., Moftakhari, H., Bates, P., Abbaszadeh, P., ... & Duan, Q. (2023). Recent advances and new frontiers in riverine and coastal flood modeling. Reviews of Geophysics, 61(2), e2022RG000788.
Deng, B., Lai, S. H., Jiang, C., Kumar, P., El-Shafie, A., & Chin, R. J. (2021). Advanced water level prediction for a large-scale river–lake system using hybrid soft computing approach: a case study in Dongting Lake, China. Earth Science Informatics, 14, 1987-2001.
Xu, T., & Liang, F. (2021). Machine learning for hydrologic sciences: An introductory overview. Wiley Interdisciplinary Reviews: Water, 8(5), e1533.
Mosaffa, H., Sadeghi, M., Mallakpour, I., Jahromi, M. N., & Pourghasemi, H. R. (2022). Application of machine learning algorithms in hydrology. In Computers in earth and environmental sciences (pp. 585-591). Elsevier.
Shen, C., & Lawson, K. (2021). Applications of deep learning in hydrology. Deep Learning for the Earth Sciences: A Comprehensive Approach to Remote Sensing, Climate Science, and Geosciences, 283-297.
Willard, J., Jia, X., Xu, S., Steinbach, M., & Kumar, V. (2020). Integrating physics-based modeling with machine learning: A survey. arXiv preprint arXiv:2003.04919, 1(1), 1-34.
Kashinath, K., Mustafa, M., Albert, A., Wu, J. L., Jiang, C., Esmaeilzadeh, S., ... & Prabhat, N. (2021). Physics-informed machine learning: case studies for weather and climate modelling. Philosophical Transactions of the Royal Society A, 379(2194), 20200093.
Banerjee, C., Nguyen, K., Fookes, C., & George, K. (2024). Physics-informed computer vision: A review and perspectives. ACM Computing Surveys, 57(1), 1-38.
Amiri, Z., Heidari, A., Navimipour, N. J., Unal, M., & Mousavi, A. (2024). Adventures in data analysis: A systematic review of Deep Learning techniques for pattern recognition in cyber-physical-social systems. Multimedia Tools and Applications, 83(8), 22909-22973.
Song, T., Pang, C., Hou, B., Xu, G., Xue, J., Sun, H., & Meng, F. (2023). A review of artificial intelligence in marine science. Frontiers in Earth Science, 11, 1090185.
Dong, C., Xu, G., Han, G., Bethel, B. J., Xie, W., & Zhou, S. (2022). Recent developments in artificial intelligence in oceanography. Ocean-Land-Atmosphere Research.
Sit, M., Demiray, B. Z., Xiang, Z., Ewing, G. J., Sermet, Y., & Demir, I. (2020). A comprehensive review of deep learning applications in hydrology and water resources. Water Science and Technology, 82(12), 2635-2670.
Zhao, X., Jiang, N., Liu, J., Yu, D., & Chang, J. (2020). Short-term average wind speed and turbulent standard deviation forecasts based on one-dimensional convolutional neural network and the integrate method for probabilistic framework. Energy Conversion and Management, 203, 112239.
Kagemoto, H. (2020). Forecasting a water-surface wave train with artificial intelligence-A case study. Ocean Engineering, 207, 107380.
Schumann, G., Giustarini, L., Tarpanelli, A., Jarihani, B., & Martinis, S. (2023). Flood modeling and prediction using earth observation data. Surveys in Geophysics, 44(5), 1553-1578.
Chen, J., Huang, Y., Wu, T., & Yan, J. (2023). A WaveNet-based convolutional neural network for river water level prediction. Journal of Hydroinformatics, 25(6), 2606–2624. https://doi.org/10.2166/hydro.2023.174
Yang, J., Zhang, T., Zhang, J., Lin, X., Wang, H., & Feng, T. (2024). A ConvLSTM nearshore water level prediction model with integrated attention mechanism. Frontiers in Marine Science, 11. https://doi.org/10.3389/fmars.2024.1470320
Accurate Water Level Monitoring in AWD Rice Cultivation Using Convolutional Neural Networks. (2021).
Wang, Y., Huang, Y., Xiao, M., Zhou, S., Xiong, B., & Jin, Z. (2023). Medium-long-term prediction of water level based on an improved spatio-temporal attention mechanism for long short-term memory networks. Journal of Hydrology, 618, 129163–129163. https://doi.org/10.1016/j.jhydrol.2023.129163
Nie, Q., Wan, D., & Wang, R. (2021). CNN-BiLSTM water level prediction method with attention mechanism. Journal of Physics Conference Series, 2078(1), 012032–012032.
Yang, J., Zhang, T., Zhang, J., Lin, X., Wang, H., & Feng, T. (2024). A ConvLSTM nearshore water level prediction model with integrated attention mechanism. Frontiers in Marine Science, 11. https://doi.org/10.3389/fmars.2024.1470320
Almikaeel, W., Šoltész, A., Čubanová, L., & Baroková, D. (2024). Hydro-informer: a deep learning model for accurate water level and flood predictions. Natural Hazards. https://doi.org/10.1007/s11069-024-06949-8
Li, H., Zhang, L., Yao, Y., & Zhang, Y. (2025). Prediction of reservoir water levels via an improved attention mechanism based on CNN − LSTM. Applied Intelligence, 55(6). https://doi.org/10.1007/s10489-025-06393-6.
Chaudhary, P., Leitão, J. P., Schindler, K., & Wegner, J. D. (2024). Flood Water Depth Prediction with Convolutional Temporal Attention Networks. Water, 16(9), 1286–1286. https://doi.org/10.3390/w16091286
Hasan, A. R., Kundu, N. K., Hasan, S., Hoque, M. R., & Shatabda, S. (2024). Accurate Water Level Monitoring in AWD Rice Cultivation Using Convolutional Neural Networks. arXiv preprint arXiv:2412.08477.
Muhadi, N. A., Abdullah, A. F., Bejo, S. K., Mahadi, M. R., & Mijic, A. (2021). Deep Learning Semantic Segmentation for Water Level Estimation Using Surveillance Camera. Applied Sciences, 11(20), 9691. https://doi.org/10.3390/app11209691
Dou, G., Chen, R., Han, C., Liu, Z., & Liu, J. (2022). Research on Water-Level Recognition Method Based on Image Processing and Convolutional Neural Networks. Water, 14(12), 1890–1890. https://doi.org/10.3390/w14121890
Wang, Z., Wang, P., Liu, K., Wang, P., Fu, Y., Lu, C.-T., … Zhou, Y. (2024). A Comprehensive Survey on Data Augmentation. Retrieved April 3, 2025, from arXiv.org website: https://arxiv.org/abs/2405.09591
ANNAKI, I., RAHMOUNE, M., & BOURHALEB, M. (2024). Overview of Data Augmentation Techniques in Time Series Analysis. International Journal of Advanced Computer Science & Applications, 15(1).
Krig, S. (2016). Image Pre-Processing. Springer EBooks, 35–74. https://doi.org/10.1007/978-3-319-33762-3_2
Danon, D., Arar, M., Cohen-Or, D., & Shamir, A. (2021). Image resizing by reconstruction from deep features. Computational Visual Media, 7(4), 453–466. https://doi.org/10.1007/s41095-021-0216-x
Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., … Adam, H. (2017). MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. Retrieved April 3, 2025, from arXiv.org website: https://arxiv.org/abs/1704.04861
Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., … Adam, H. (2017). MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. Retrieved March 28, 2025, from arXiv.org website: https://arxiv.org/abs/1704.04861
Moez Krichen. (2023). Convolutional Neural Networks: A Survey. Computers, 12(8), 151–151. https://doi.org/10.3390/computers12080151
Taye, M. M. (2023). Theoretical Understanding of Convolutional Neural Network: Concepts, Architectures, Applications, Future Directions. Computation, 11(3), 52–52. https://doi.org/10.3390/computation11030052
(PDF) The Comparison of Pooling Functions in Convolutional Neural Network for Sentiment Analysis Task. (2020). ResearchGate. https://doi.org/10.1007//978-3-030-36056-6_20
Rawat, J., Logofătu, D., & Chiramel, S. (2020, May). Factors affecting accuracy of convolutional neural network using vgg-16. In International Conference on Engineering Applications of Neural Networks (pp. 251-260). Cham: Springer International Publishing.
Abuzar, M. (2024). Advance Plant Disease Detection Using VGGNet With Convolutional Neural Network (Doctoral dissertation, Sant Gadge Baba Amravati University, Amravati).
Das, P. (2025). IncV3-BLSTM: a multi-label inceptionV3-BLSTM model for predicting potential side effects of COVID-19 drugs. Annals of Mathematics and Artificial Intelligence. https://doi.org/10.1007/s10472-025-09978-6
Chollet, F. (2017). Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 1251-1258).
Li, H., Zhang, L., Yao, Y., & Zhang, Y. (2025). Prediction of reservoir water levels via an improved attention mechanism based on CNN− LSTM. Applied Intelligence, 55(6), 1-20
Zhang, M., Zhang, Z., Wang, X., Liao, Z., & Wang, L. (2024). The use of attention-enhanced CNN-LSTM models for multi-indicator and time-series predictions of surface water quality. Water Resources Management, 1-17.
Hu, J., Shen, L., & Sun, G. (2018). Squeeze-and-Excitation Networks. ArXiv (Cornell University). https://doi.org/10.1109/cvpr.2018.00745
Woo, S., Park, J., Lee, J.-Y., & Kweon, I. S. (2018). CBAM: Convolutional Block Attention Module. Lecture Notes in Computer Science, 3–19. https://doi.org/10.1007/978-3-030-01234-2_1.
Zhong, Z., Lin, Z. Q., Bidart, R., Hu, X., Daya, I. B., Li, Z., ... & Wong, A. (2020). Squeeze-and-attention networks for semantic segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (pp. 13065-13074).
Muhammad, W., Aramvith, S., & Onoye, T. (2023). SENext: Squeeze-and-ExcitationNext for single image super-resolution. IEEE Access, 11, 45989-46003.
Selvaraju, R. R., Cogswell, M., Das, A., Ramakrishna Vedantam, Parikh, D., & Batra, D. (2019). Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. International Journal of Computer Vision, 128(2), 336–359. https://doi.org/10.1007/s11263-019-01228-7
Naidu, G., Zuva, T., & Sibanda, E. M. (2023, April). A review of evaluation metrics in machine learning algorithms. In Computer science on-line conference (pp. 15-25). Cham: Springer International Publishing.
Arash Marioriyad, & Pouria Ramazi. (2025). Optimizing Accuracy, Recall, Specificity, and Precision Using ILP. Mathematics, 13(7), 1059–1059. https://doi.org/10.3390/math13071059
Vujović, Ž. (2021). Classification model evaluation metrics. International Journal of Advanced Computer Science and Applications, 12(6), 599-606.
Miao, J., & Zhu, W. (2022). Precision–recall curve (PRC) classification trees. Evolutionary intelligence, 15(3), 1545-1569.
George, S., & Srividhya, V. (2022). Performance evaluation of sentiment analysis on balanced and imbalanced dataset using ensemble approach. Indian Journal of Science and Technology, 15(17), 790-797.
Muntean, M., & Militaru, F. D. (2023, January). Metrics for evaluating classification algorithms. In Education, Research and Business Technologies: Proceedings of 21st International Conference on Informatics in Economy (IE 2022) (pp. 307-317). Singapore: Springer Nature Singapore.
Varoquaux, G., & Colliot, O. (2023). Evaluating machine learning models and their diagnostic value. Machine learning for brain disorders, 601-630.
Mohr, F., & van Rijn, J. N. (2023). Fast and informative model selection using learning curve cross-validation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(8), 9669-9680.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 International Journal of Scientific Research in Science, Engineering and Technology

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