FloodEye is a highly responsive Progressive Web Application (PWA) built with Next.js and Tailwind CSS. It visualizes real-time water level data and environmental conditions from an ESP32 microcontroller. With its sleek glassmorphism UI, interactive charts, and intelligent alerting system, monitoring flood risks has never been easier.
Uniquely, FloodEye integrates an in-browser Machine Learning model (TensorFlow.js) to provide real-time flood predictions up to 4 hours in advance based on environmental telemetry.
"Every Drop Monitored, Every Life Protected."
Vision
To leverage advanced IoT technologies, sensor networks and real-time data analytics for accurate flood and water level monitoring, enabling timely early warnings to protect lives, property and the environment.
Key Features
- AI-Powered Flood Prediction: Utilizes an embedded TensorFlow.js model to analyze telemetry data and predict future flood risks locally in the browser — no server round-trip needed.
- Progressive Web App (PWA): Installable on iOS, Android, and Desktop with custom install prompts for instant offline-capable access.
- Scrollytelling Landing Page: An immersive introduction built with GSAP and Lenis for smooth scrolling animations.
- Live Interactive Map: Pinpoint sensor node locations using MapLibre GL and MapTiler.
- Real-Time Telemetry: Instant visualization of Water Level, Temperature, Humidity, Atmospheric Pressure, and Altitude via ESP32 and ThingSpeak integration.
- Dynamic Analytics & Comfort Score: Interactive, time-series line charts built with Recharts to track historical water level trends and overall environmental comfort.
- Smart Alerts Engine: Configurable thresholds that trigger visual warnings (High Water Level, Rapid Rise, Object Too Close, Sensor Disconnects) and dynamic Flood Risk levels (Normal, High, Critical).
- Offline/Cached Data Support: Automatically displays last known data when the ESP32 device goes offline.
ML Model Details
The flood prediction capabilities are powered by a custom deep learning model.
Architecture: A hybrid 1D-CNN + Bidirectional LSTM + Attention network optimized for time series forecasting.
- Input: A 48-hour sequence window of cyclical time encodings, raw sensor readings (temperature, humidity, pressure, water level), and their 3-hour moving trends.
- 1D Conv layer (64 filters) extracts short-term local temporal features.
- Bidirectional LSTM (64 units) captures complex long-term dependencies in both forward and backward directions.
- Custom Attention Mechanism dynamically weights the most critical time steps (e.g., sudden pressure drops or rapid water level rises).
- Output: Predicts precise water level 4 hours into the future.
The model is trained using TensorFlow/Keras and exported for web usage. Prediction inference runs completely client-side.
Tech Stack
- Core: Next.js (App Router), React, TypeScript
- Machine Learning: TensorFlow.js (Keras export, browser-compatible)
- Styling: Tailwind CSS v4, Custom Glassmorphism UI
- Data Visualization & Maps: Recharts, MapLibre GL JS
- Animations & Scrolling: Framer Motion, GSAP, Lenis
Team
- Moharnab Gogoi — IoT Backend & Cloud Integration
- Aryyaman Bora — Frontend & UI Engineering
- Mayuree Khanikar — Documentation & Research
- Indrani Gogoi — Documentation

