/
/
/
Performance Evaluation and Comparison of Convolutional and Recurrent Neural Networks Using TensorFlow for Rip Current Hazard Prediction in Indonesian Tourist Beaches

Performance Evaluation and Comparison of Convolutional and Recurrent Neural Networks Using TensorFlow for Rip Current Hazard Prediction in Indonesian Tourist Beaches

Original Research Article• Nov 20, 2026• Online First Articles• https://doi.org/10.55003/cast.2026.269383

Abstract

Rip currents are among the most dangerous coastal hazards, often linked to drowning incidents on tourist beaches worldwide. Early and accurate detection of rip currents is crucial for enhancing coastal safety and minimizing risks to visitors. This study evaluates and compares the performance of Convolutional Neural Networks (CNN) and Recurrent Neural Networks (RNN), both implemented using TensorFlow, for predicting rip currents at three popular Indonesian beaches: Parangtritis, Drini, and Indrayanti. A dataset of 2,281 labeled drone images was prepared and divided into training, validation, and testing subsets for robust model evaluation. The CNN model used MobileNetV3-Large as the backbone to extract spatial patterns from coastal imagery. The RNN model incorporated a hybrid CNN–LSTM architecture designed to capture spatio-temporal dependencies, allowing it to detect sequential patterns that reflect the dynamic behavior of rip currents. Performance analysis showed that the CNN achieved consistent accuracy (0.88) across all sites, with precision ranging from 0.84 to 0.85, recall between 0.80 and 0.81, and AUC values up to 0.97. In contrast, the RNN achieved higher recall (0.83–0.87), indicating better sensitivity in detecting rip current regions, while maintaining AUC values between 0.89 and 0.92. However, its accuracy slightly decreased at Indrayanti Beach (0.845). These results show a trade-off: CNN excels in probabilistic discrimination, while RNN minimizes false negatives, making it more suitable for safety-critical early warning systems. This research contributes to AI-assisted monitoring systems, laying the groundwork for real-time detection frameworks to improve lifeguard decision-making and tourist beach safety.

Rip current
TensorFlow
CNN
RNN
Coastal Safety
Indonesia

How to Cite

Sutopo, J. ., Suhirman, , Wening, N. ., Aboobaider, ฺ. M. ., & Rohmatika, F. A. . (2026). Performance Evaluation and Comparison of Convolutional and Recurrent Neural Networks Using TensorFlow for Rip Current Hazard Prediction in Indonesian Tourist Beaches. Current Applied Science and Technology, e0269383. https://doi.org/10.55003/cast.2026.269383

References

  • Ahmed, T., Creedon, L., & Gharbia, S. S. (2023). Low-cost sensors for monitoring coastal climate hazards: A systematic review and meta-analysis. Sensors, 23(3), Article 1717. https://doi.org/10.3390/s23031717
  • Alfarano, A., Maiano, L., Papa, L., & Amerini, I. (2024). Estimating optical flow: A comprehensive review of the state of the art. Computer Vision and Image Understanding, 249, Article 104160. https://doi.org/10.1016/j.cviu.2024.104160
  • Almagrabi, A. O. (2023). A deep CNN-LSTM-based feature extraction for cyber-physical system monitoring. Computers, Materials and Continua, 76(2), 2079-2093. https://doi.org/10.32604/cmc.2023.039683
  • Amer, D. A., Ibrahim, N. Y., Ibrahim, I. K., Mohamed, A. M., & Soliman, S. A. (2025). Intelligent eyes on water: YOLOv11-based real-time drowning detection system. Journal of Supercomputing, 81(12), Article 1242. https://doi.org/10.1007/s11227-025-07732-7
  • Badidi, E., Moumane, K., & Ghazi, F. El. (2023). Opportunities, applications, and challenges of edge-AI enabled video analytics in smart cities: A systematic review. IEEE Access, 11, 80543-80572. https://doi.org/10.1109/ACCESS.2023.3300658

Author Information

Joko Sutopo

Department of Computer Engineering, Faculty of Science and Technology, Universitas Teknologi Yogyakarta, Yogyakarta, Indonesia

Suhirman

Department of Information Technology, Faculty of Science and Technology, Universitas Teknologi Yogyakarta, Yogyakarta, Indonesia

Nur Wening

Department of Management, Faculty of Business and Humanities, Universitas Teknologi Yogyakarta, Yogyakarta, Indonesia

ฺBurhanuddin Mohd Aboobaider

Faculty of Artificial Intelligence and Cyber Security, University Teknikal Malaysia Melaka, Melaka, Malaysia

Fiya Ainur Rohmatika

Research and Innovation Institute of Karya Media Indonesia, Pati, Indonesia

About this Article

Journal

Online First Articles

Type of Manuscript

Original Research Article

Published

20 November 2026