🧠 Project Overview: EchoLens – AI Pandemic Predictor


💡 Inspiration: Decoding the Past for Future Defense

EchoLens was conceived from a deep recognition of the single, most critical failure during the COVID-19 pandemic:
the gap between identifying a threat and implementing an effective, data-driven response.

Rooted in the hackathon’s “DECODE” theme, our mission was simple yet ambitious — to weaponize history against future pathogens.
We operate on the premise that disease spread patterns are cyclical, and history’s lessons are the key to preparedness.

By analyzing data and narratives from four pivotal pandemics — the Black Death, the Spanish Flu, SARS, and COVID-19
we built an AI system that translates centuries of suffering into predictive intelligence.
EchoLens shifts public health from reactive crisis management to proactive early warning,
saving time, resources, and lives.


🛠️ Technical Architecture and Execution

EchoLens is a high-speed, full-stack AI prediction system designed for reliability and immediate real-world utility,
built upon a modern Python ecosystem.


1️⃣ The AI Core: Speed and Synthesis

  • Groq API Integration:
    Our central innovation lies in the integration of the Groq API with an open-source Large Language Model (OpenAI/GPT-OSS 120B).
    This combination delivers lightning-fast inference, generating complex predictive analyses in seconds.
    For an early warning system, speed is non-negotiable.

  • Historical Prompt Engineering:
    The LLM is pre-loaded with comprehensive knowledge from our four reference pandemics.
    The AI synthesizes user inputs(Region, Active Cases, Forecast Days)
    with historical epidemiological context, producing a narrative risk assessment that balances insight and precision.


2️⃣ The Predictive Model: The Risk Function

The EchoLens predictive engine computes a multi-factor composite score to deliver holistic forecasts that go beyond simple case counts.

$$\text{Risk Score} = f(\text{current_cases}, \text{pop_density}, \text{healthcare_capacity}, \text{historical_patterns}, \text{geographic_factors})$$

This function ensures the system captures the same dynamics that historically dictated outbreak severity and speed of spread.


Frontend & Visualization (Streamlit / Plotly)

  • Framework: The dashboard is built in Streamlit, enhanced with custom CSS for a modern, professional interface.
  • Visualization: Powered by Plotly, it includes:
    • A Real-Time Risk Gauge
    • A 90-Day Outbreak Probability Trend
    • Dynamic hotspot maps and categorical insights

These elements ensure data clarity, enabling non-technical policymakers to instantly understand AI findings.


🎯 Impact and Real-World Relevance

EchoLens delivers measurable, real-world impact aligned with key hackathon judging criteria — Impact, Technical Quality, and Innovation.

  • Infrastructure Planning:
    Forecasts allow governments to allocate resources (field hospitals, PPE, ventilators) before crisis peaks.

  • Policy Formulation:
    The system’s Actionable Recommendations, divided into:

    • Immediate Actions (e.g., airport surveillance)
    • Short-Term Strategies (e.g., field hospitals)
    • Long-Term Preparations (e.g., health infrastructure upgrades)
      provide a data-driven roadmap for intervention.
  • Targeted Intervention:
    EchoLens pinpoints Top Hotspot Cities — focusing limited resources (testing kits, medical teams) where containment impact is maximized.


🧠 Key Technical Lessons Learned

🔹 Bridging the Structured / Unstructured Gap

We learned to harmonize structured data inputs (case counts, density) with unstructured historical text using precision LLM prompt engineering.
The success of the “Historical Comparison” feature — e.g., “Most similar to: SARS (2002–2004)” — validates this hybrid approach.

🔹 Visualization from Text

One major challenge was transforming natural language outputs into numerical metrics for Plotly charts.
We solved this through prompt constraints, forcing the AI to return structured numerical data within its narrative.

🔹 Dependency Management for Edge Compute

Early issues with Groq SDK version conflicts (notably httpx) reinforced our commitment to dependency isolation and testing
for stability across deployment targets like Render and Docker.


🚧 Challenges Faced and Workarounds

  • API Rate Limiting:
    The Groq free tier imposed strict limits. We implemented request caching to reduce redundant calls and ensure smooth user flow.

  • Dynamic Data Extraction:
    Some dynamic chart values currently rely on temporary placeholders for submission readiness.
    Full dynamic parsing is on the roadmap as a Phase 2 upgrade.

  • Deployment Latency:
    Render’s free tier introduced cold start delays (30–60s).
    We mitigated this with animated loading bars and status prompts to maintain user engagement during initial AI calls.


🧩 Conclusion

EchoLens stands as a fusion of historical wisdom and modern AI speed
a system that doesn’t just predict outbreaks, but prepares humanity for them.
By decoding the past, we can code a safer, healthier future.

Built With

Share this project:

Updates