Skip to content
C

CascadeIQ

Timeless Lucidity

Created on 26th February 2026

•

C

CascadeIQ

Timeless Lucidity

The problem CascadeIQ solves

CascadeIQ — Complete System Architecture & Idea
CascadeIQ is an autonomous critical infrastructure defense oracle that predicts cascading failure across interconnected systems, acts to stop it before humans can react, seals every event with cryptographic proof, and narrates the entire crisis in spoken language. The core problem it solves is one of the most dangerous blind spots in modern civilization: when a power grid fails, it doesn't fail in isolation. It triggers water treatment plants to shut down, which cuts hospital supply chains, which degrades communications, which collapses emergency response — all within minutes. This chain reaction is called a cascade failure, and the window between the moment it becomes detectable and the moment it becomes irreversible is often less than 90 seconds. No human operator can read, process, coordinate, and respond in that window. CascadeIQ closes that window autonomously. It is localized to the Andhra Pradesh grid, using real node names and real geographic coordinates, because AP judges will have lived through Cyclone Michaung 2023 and will feel the demo personally when they see Nagarjuna Sagar Substation on the map.
The backend is a Python FastAPI server that holds the entire intelligence of the system. At its core is a NetworkX multi-layer dependency graph of approximately 50 nodes representing real AP infrastructure: power generation nodes like Nagarjuna Sagar Hydro and Vijayawada Thermal Station, water nodes like Godavari Delta Pumps and Krishna Basin Supply, hospital nodes like AIIMS Mangalagiri and Guntur Government Hospital, telecom nodes like Vijayawada Exchange and Amaravati Tower Hub, agricultural nodes like Godavari Agri Grid, and a Hyderabad Data Center node that serves as the emergency backup power source. Each node carries attributes including type, capacity in megawatts or equivalent units, current load, GPS coordinates, and status. Edges between nodes represent operational dependencies with weight values — power feeds water at weight 0.9, power feeds hospitals at weight 0.95, water feeds agriculture at weight 0.8, and so on. The cascade simulation engine uses a percolation threshold model: when a node is killed, its load redistributes to neighboring nodes according to edge weights, and any neighbor whose resulting load exceeds 1.5 times its capacity also fails, propagating further in waves until the system stabilizes or collapses. The engine returns a complete cascade log showing which node failed in which wave, total cascade probability as a percentage, time to collapse, number of hospitals and water systems affected, estimated population impacted, and the full graph state after propagation. A separate adversarial mode runs the simulation from every node and returns the top five most dangerous single points of failure ranked by cascade impact — this is the minimum cut-set analysis that reveals which three nodes, if removed simultaneously, could collapse power for 8 million people. The backend exposes this through three REST endpoints: GET /graph returns the full node and edge data for initial map rendering, POST /simulate/{node_id} triggers the cascade and runs all integrations, and GET /adversarial returns the vulnerability ranking. A WebSocket endpoint at /ws/telemetry streams simulated live sensor data every two seconds including transformer temperatures, power load percentages, water pressure readings, and network latency values, making the dashboard feel like a live operational system from the moment it loads.
The three sponsor integrations are wired directly into the cascade engine and fire automatically the moment cascade probability crosses 75 percent.logCascadeAndExecute(), which accepts the origin node name, cascade probability, affected population, megawatts rerouted, and a DataHaven content hash, then emits on-chain events for CascadeDetected, EmergencyContractExecuted, and IncidentSealed. When the Python backend calls this contract through Web3.py, it records that 50 megawatts of emergency power were autonomously purchased from the Hyderabad Data Center Node-7 and rerouted to the failing grid — a machine-to-machine transaction that no human lawyer, bank transfer, or phone call could have completed in the available window. The contract returns a transaction hash and block number that are passed back to the frontend for live display. The second integration is DataHaven, which acts as the immutable flight recorder. The moment a cascade is confirmed, the backend serializes the complete incident into a JSON object containing the telemetry snapshot, the full cascade path, every node that failed and in which wave, the cascade probability, , the affected population estimate, and a Unix timestamp.

Challenges we ran into

During the hackathon, one of the primary challenges was integrating a complex real-time frontend dashboard with a live backend system while maintaining stability under strict time constraints. Backend connectivity issues, environment configuration mismatches, and cross-origin communication required significant debugging to ensure reliable API communication and WebSocket telemetry streaming.

Another major challenge involved managing large-scale state synchronization across multiple UI panels such as live telemetry, system health monitoring, cascade simulations, and map visualizations. Ensuring consistent data flow without breaking existing UI behavior required careful restructuring of state management and asynchronous operations.

Additionally, deployment posed difficulties due to monorepo structure handling, Git version control conflicts, and environment variable configuration during cloud hosting setup. Optimizing performance while preserving a visually immersive and responsive interface under limited hackathon time added further complexity.

Despite these challenges, iterative debugging, rapid collaboration, and structured problem solving enabled successful system integration and deployment.

Tracks Applied (1)

Innovation Tracks

DataHaven ElevenLabs

Discussion

Builders also viewed

See more projects on Devfolio