Problem Statements Analysis

From what to build to how to build it — our platform helps you understand, plan, and solve SIH 2026 problem statements with complete insights into requirements, solution approaches, technology stacks, architecture, AI/ML, and implementation roadmaps.

Scroll down
01 / SIH 2026

PS: SIH26073

AI/ML-Based Intelligent Anomaly Detection for Automatic Weather Stations (AWS)

Description: • Title SkyGuard AI: Intelligent Real-Time Anomaly Detection System for Temperature, Pressure, and Humidity Sensors in Automatic Weather Stations • Background Automatic Weather Stations (AWS) are critical components of modern meteorological observation networks. These stations continuously monitor atmospheric parameters and provide real-time data for weather forecasting, climate monitoring, disaster management, aviation, agriculture, and scientific research.However, AWS observations often contain anomalies caused by sensor malfunction,communication failures, calibration drift, power fluctuations, harsh environmental conditions, and data corruption.Erroneous observations can significantly impact weather forecasting accuracy and decision-making systems. Traditional threshold-based quality control methods are often insufficient for identifying complex or hidden anomalies in meteorological data streams. • Problem Statement Develop an AI/ML-based intelligent anomaly detection system capable of automatically identifying abnormal, inconsistent, or faulty observations from Automatic Weather Stations in real time using only the following parameters: • Temperature (°C) • Atmospheric Pressure (hPa) • Relative Humidity (%) The system should distinguish between genuine meteorological events and sensor/data anomalies while minimizing false alarms and enabling scalable deployment across large weather observation networks. • Objectives • Detect anomalies in real-time AWS data streams. • Identify sensor faults, spikes, frozen values, and communication errors. • Learn normal temporal and seasonal patterns of temperature, pressure, and humidity. • Perform multivariate consistency analysis among atmospheric parameters. • Provide confidence scores and explainable AI-based reasoning for detected anomalies. • Predict possible sensor degradation and maintenance requirements. • Optionally suggest corrected/imputed values for anomalous observations. • Expected Inputs Participants may use historical AWS datasets, simulated anomalies, or streaming sensor data containing the following meteorological parameters: Parameter- Unit Temperature - °C Atmospheric Pressure - hPa Relative Humidity - % • Expected Outputs • Real-time anomaly alerts • Severity and confidence scores • Root-cause classification • Visualization dashboard • Sensor health status • Corrected data estimation (optional) • Suggested Technologies • Explainable AI (SHAP/LIME) (Preferable) • Edge AI for low-power deployment on ESP32 • Evaluation Criteria (To be evaluated in anomaly injected data) Criteria - Weightage Innovation & Novelty - 25% Detection Accuracy - 20% Real-Time Capability - 15% Explainability - 10% Scalability - 10% Practical Deployability - 10% Visualization/UI - 5% Energy Efficiency - 5% • Example Use Case An AWS suddenly reports a temperature of 55°C with extremely high humidity and abnormal pressure variation while neighboring stations show normal conditions. The AI system should analyze temporal and spatial consistency, identify the reading as a probable sensor anomaly, generate an alert, and suggest corrective action. • Grand Challenge Can AI build a self-aware and self-healing weather observation network capable of delivering trustworthy atmospheric data under all environmental conditions? • Output: Fully executable code with example usage and a document explaining various use cases
Organization: Ministry of Earth Sciences (MoES)
Department: India Meteorological Department
Category: Software
Theme: Disaster Managementtd>
Youtube Link: Not provided
Dataset Link: Not provided
Contact info: Not provided

1. Executive Snapshot

SkyGuard AI is an edge-cloud hybrid intelligent anomaly detection, explainability, and data imputation framework engineered specifically for the India Meteorological Department's (IMD) Automatic Weather Station (AWS) network [INFERENCE]. Designed to process streaming meteorological observations constrained strictly to Air Temperature (°C), Atmospheric Pressure (hPa), and Relative Humidity (%) [PS], the system deploys a two-tier architecture: an ultra-low-power TinyML Autoencoder running directly on ESP32 microcontroller edge nodes for sub-second localized detection [PS], paired with a cloud-based multivariate spatial-temporal ensemble (XGBoost + Isolation Forest + Spatial Kriging) [INFERENCE]. SkyGuard AI eliminates false alarms by cross-referencing temporal rate-of-change with neighbor-station consistency—distinguishing genuine extreme meteorological events (e.g., severe convective storms or sudden microbursts) from hardware faults, sensor freeze, calibration drift, and transmission corruption [PS]. Built-in SHAP (SHapley Additive exPlanations) provides human-interpretable physical reasoning and confidence scoring for every alert, while an automated imputation module restores missing or corrupted data streams [PS].

Metadata Table

Field Value Confidence Tag
Problem Statement ID SIH26073 [PS]
Title AI/ML-Based Intelligent Anomaly Detection for Automatic Weather Stations (AWS) [PS]
Organization Ministry of Earth Sciences (MoES) [PS]
Department India Meteorological Department (IMD) [PS]
Category Software [PS]
Theme Disaster Management [PS]
Submission Deadline 30 September 2026 [PS]
Ideas Counter 0/500 [PS]
Primary Evaluation Focus Anomaly Injected Data Evaluation (Innovation 25%, Accuracy 20%, Real-Time 15%, Explainability 10%, Scalability 10%, Deployability 10%, UI 5%, Energy 5%) [PS]

Fundamental System Objective: To deliver a self-aware, edge-cloud weather observation pipeline that automatically filters hardware and transmission anomalies from 3-parameter AWS streams in real-time, provides SHAP-backed physical explanations, and predicts sensor maintenance while preserving true meteorological disaster signals [PS].

2. Problem Deconstruction

The explicit problem statement provided by MoES/IMD contains specific operational requirements, inputs, outputs, and constraints [PS]. Below is the atomic deconstruction into explicit and derived requirements.

Atomic Requirements Extraction

  • Requirement (a) - Input Parameter Constraint: The anomaly detection system MUST operate using strictly three atmospheric parameters: Air Temperature (°C), Atmospheric Pressure (hPa), and Relative Humidity (%) [PS].

    • Source Text: "using only the following parameters: Temperature (°C), Atmospheric Pressure (hPa), Relative Humidity (%)" [PS]
    • Interpretation: No auxiliary sensor inputs (such as wind speed, solar radiation, or rainfall rate) can be required by the primary anomaly detection core [INFERENCE].
    • Implementation Implication: All feature engineering and multivariate correlation models must be built entirely from the physical interactions, lag variables, and spatial gradients among $T$, $P$, and $RH$ [INFERENCE].
    • Confidence: [PS]
  • Requirement (b) - Real-Time Anomaly Alerting: Detect abnormal, inconsistent, or faulty observations in real-time streaming data [PS].

    • Source Text: "Real-time anomaly alerts... Detect anomalies in real-time AWS data streams." [PS]
    • Interpretation: Latency from sensor sampling to anomaly classification must be minimal (sub-second on Edge, <5 seconds on Cloud) [INFERENCE].
    • Implementation Implication: Models must use light sliding-window inference rather than computationally heavy batch post-processing [INFERENCE].
    • Confidence: [PS]
  • Requirement (c) - Meteorological Event vs. Anomaly Differentiation: Distinguish genuine meteorological phenomena (e.g., heatwaves, cold fronts, pressure drops ahead of storms) from sensor or data anomalies [PS].

    • Source Text: "The system should distinguish between genuine meteorological events and sensor/data anomalies while minimizing false alarms..." [PS]
    • Interpretation: A rapid pressure drop accompanied by rising humidity is physically consistent with a severe weather event and must NOT be flagged as a sensor error [INFERENCE].
    • Implementation Implication: Requires spatial consistency checks across neighboring stations and multivariate physical law constraints (e.g., psychrometric relationships, dew point bounds) [INFERENCE].
    • Confidence: [PS]
  • Requirement (d) - Specific Anomaly Taxonomy Identification: Identify sensor faults, spikes, frozen values, calibration drift, power fluctuations, and communication errors [PS].

    • Source Text: "Identify sensor faults, spikes, frozen values, and communication errors... sensor malfunction, communication failures, calibration drift, power fluctuations..." [PS]
    • Interpretation: The system must perform multi-class root-cause classification, not just binary inlier/outlier detection [INFERENCE].
    • Implementation Implication: Classification layer must map anomaly signatures (e.g., variance = 0 over $N$ samples $\rightarrow$ Frozen Value; single sample step $> 15^\circ\text{C} \rightarrow$ Spike; gradual bias increase over weeks $\rightarrow$ Calibration Drift) [INFERENCE].
    • Confidence: [PS]
  • Requirement (e) - Pattern & Correlation Learning: Learn normal temporal, seasonal, and multivariate patterns among temperature, pressure, and humidity [PS].

    • Source Text: "Learn normal temporal and seasonal patterns... Perform multivariate consistency analysis among atmospheric parameters." [PS]
    • Interpretation: Models must account for diurnal cycles (e.g., daily temperature peak vs. humidity trough) and seasonal baselines across Indian agro-climatic zones [INFERENCE].
    • Implementation Implication: Cyclic temporal encoding (Sine/Cosine transformation of hour-of-day and day-of-year) combined with autoencoders or gradient boosted trees [INFERENCE].
    • Confidence: [PS]
  • Requirement (f) - Explainable AI (XAI) & Confidence Scoring: Provide confidence scores and explainable AI-based reasoning for detected anomalies [PS].

    • Source Text: "Provide confidence scores and explainable AI-based reasoning... Explainable AI (SHAP/LIME) (Preferable)" [PS]
    • Interpretation: Operators must see why a sample was flagged (e.g., "Temperature contributed +0.65 to anomaly score due to breaking physical correlation with Relative Humidity") [INFERENCE].
    • Implementation Implication: SHAP/LIME integration in cloud dashboard, generating human-readable narrative explanations alongside numerical confidence (0–100%) [INFERENCE].
    • Confidence: [PS]
  • Requirement (g) - Predictive Maintenance & Health Status: Predict possible sensor degradation and output sensor health status [PS].

    • Source Text: "Predict possible sensor degradation and maintenance requirements... Sensor health status" [PS]
    • Interpretation: Track long-term health metrics (e.g., drift rate, noise floor increase, packet drops) to alert field teams before catastrophic failure occurs [INFERENCE].
    • Implementation Implication: Health index score (0–100%) calculated per sensor using moving historical anomaly frequency and calibration stability metrics [INFERENCE].
    • Confidence: [PS]
  • Requirement (h) - Corrected Data Imputation (Optional): Suggest corrected or imputed values for anomalous observations [PS].

    • Source Text: "Optionally suggest corrected/imputed values for anomalous observations... Corrected data estimation (optional)" [PS]
    • Interpretation: Reconstruct missing/anomalous readings so downstream forecasting systems (e.g., NWP models) receive clean continuous data [INFERENCE].
    • Implementation Implication: Spatio-temporal interpolation algorithm (e.g., Spatial Kriging combined with temporal Bi-LSTM/KNN) [INFERENCE].
    • Confidence: [PS]
  • Requirement (i) - Edge AI on ESP32: Support low-power deployment on ESP32 hardware [PS].

    • Source Text: "Edge AI for low-power deployment on ESP32" [PS]
    • Interpretation: Edge microcontroller must perform lightweight local anomaly filtering without relying on continuous cloud connectivity [INFERENCE].
    • Implementation Implication: C++ TensorFlow Lite Micro (TFLite Micro) autoencoder compiled into ESP32-S3 firmware within <100KB RAM footprint [INFERENCE].
    • Confidence: [PS]
  • Requirement (j) - Deliverables: Fully executable code with example usage and a comprehensive document [PS].

    • Source Text: "Fully executable code with example usage and a document explaining various use cases" [PS]
    • Interpretation: Submission must contain complete runnable code repository, test scripts, synthetic/historical dataset generators, firmware code, and user documentation [INFERENCE].
    • Confidence: [PS]

3. Stakeholders & User Needs

Stakeholder Goal Current Pain System Need
IMD Duty Forecasters & Duty Officers Access reliable, trustworthy real-time surface observation data for weather forecasting and warning generation [RESEARCHED]. Erroneous readings (e.g., erroneous $55^\circ\text{C}$ spikes) trigger false heatwave warnings or corrupt numerical weather prediction (NWP) models [PS]. Automatic filtering of corrupted observations with transparent confidence scores and explainable rationale [PS].
IMD Surface Instruments Division (Pune & Field Engineers) Maintain 700+ AWS stations across remote Indian terrains in optimal operating condition [RESEARCHED]. Reactive maintenance; unaware of sensor degradation or calibration drift until complete blackout or public error occurs [RESEARCHED]. Predictive maintenance dashboard indicating sensor health scores, early drift detection, and specific sensor component fault classification [PS].
Disaster Management Authorities (NDMA / SDMAs) Receive prompt, zero-false-alarm warnings for severe local weather events (microbursts, cloudbursts, severe depressions) [KNOWN]. High false alarm rates erode trust in automated alerts; missing true extreme weather due to overly aggressive threshold filters [INFERENCE]. Spatial-temporal validation that preserves genuine extreme weather alerts while discarding local sensor failures [PS].
AWS Data Logger / Edge Firmware Engineers Process and validate sensor data locally at high sampling frequencies while consuming minimal solar battery power [RESEARCHED]. Cloud transmission bandwidth is limited (GPRS/INSAT satellite); corrupt data wastes transmission energy and satellite bandwidth [RESEARCHED]. Ultra-lightweight C++ TinyML model executing on ESP32 that flags and flags/compresses corrupt packets before satellite/GPRS transmission [PS].

4. Requirements Traceability

System Feature / Component Explicit PS Requirement / Derived Need Justification & Architectural Trace
3-Parameter Temporal Feature Extraction Requirement (a), (e) [PS] Generates rolling statistics (mean, std, rate of change, dew-point proxy) exclusively from $T$, $P$, and $RH$ [INFERENCE].
ESP32 C++ TinyML Autoencoder Requirement (b), (i) [PS] Provides on-device, low-latency (<20ms) anomaly scoring using $<50\text{KB}$ memory, satisfying edge energy constraints [RESEARCHED].
Multivariate Spatial-Temporal Ensemble Engine Requirement (b), (c), (d), (e) [PS] Combines local temporal models with regional spatial checks (neighboring stations) to differentiate true weather from sensor faults [INFERENCE].
SHAP / LIME Explanation Module Requirement (f) [PS] Computes feature attribution scores for flagged anomalies, outputting human-readable sentences explaining the decision logic [PS].
Spatio-Temporal Data Imputation Unit Requirement (h) [PS] Reconstructs true atmospheric values for flagged samples using spatial inverse distance weighting/Kriging and temporal LSTM [INFERENCE].
Predictive Sensor Health Index Requirement (g) [PS] Aggregates daily drift metrics, signal noise, and error rates into a 0–100% sensor health trajectory for field maintenance [INFERENCE].
IMD MetNet Interactive Dashboard Requirement (b), (f), (g), (j) [PS] Displays real-time map views, station network topology, live anomaly feeds, SHAP plots, and maintenance tickets [PS].

5. Constraints & Environment Realities

Deployment Environment Analysis (India AWS Network)

  1. Connectivity Realities:

    • IMD AWS units transmit data via dual modes: GPRS (cellular) and satellite telemetry (INSAT-3D / Kalpana-1 PRBS burst sequence) [RESEARCHED].
    • In rural, high-altitude (Himalayas), coastal, or desert regions, cellular connectivity suffers frequent dropouts [RESEARCHED]. Satellite uplink bursts occur typically once every 15 to 60 minutes [RESEARCHED].
    • System Impact: Edge node must run fully autonomous anomaly detection locally and store logs in SPIFFS/Flash memory during offline periods [INFERENCE].
  2. Power & Hardware Limitations:

    • AWS stations operate off 12V 40Ah/100Ah solar-charged batteries [RESEARCHED].
    • The edge processing MCU (ESP32-S3 or standard ESP32) has strict energy budgets (<1W continuous draw, 240MHz dual-core CPU, 520KB SRAM, 4MB Flash) [RESEARCHED].
    • System Impact: Deep neural networks cannot run unquantized on the edge node. Edge models must use INT8 quantization and execution via TensorFlow Lite Micro [RESEARCHED].
  3. Sensor Degradation & Harsh Environmental Factors:

    • Temperature RTDs/Thermistors suffer radiation shield debris accumulation or solar heating bias when unventilated [RESEARCHED].
    • Capacitive humidity sensors experience degradation due to dust, saline air in coastal belts (e.g., Odisha, Gujarat), and saturation hysteresis during prolonged fog/monsoon [RESEARCHED].
    • Piezoresistive pressure sensors suffer temperature thermal drift if internal temperature compensation fails [RESEARCHED].
    • System Impact: System must detect subtle multi-week calibration drift without confusing seasonal atmospheric transitions [INFERENCE].
  4. Strict Input Constraint (No Auxiliary Sensors):

    • Problem constraints limit input parameters strictly to $T$, $P$, and $RH$ [PS].
    • Conventional weather anomaly detectors use wind speed or rain gauge data to cross-check pressure drops. SkyGuard AI cannot rely on wind/rain parameters [INFERENCE].
    • System Impact: System must rely heavily on psychrometric relationships (e.g., relative humidity physical ceiling relative to air temperature) and spatial inter-station correlations [INFERENCE].

6. Research Questions

  1. Psychrometric Bounds: How can psychrometric physical limits (e.g., Magnus-Tetens formula for saturation vapor pressure) be converted into deterministic constraint layers for 3-parameter anomaly detection? [RESEARCHED]
  2. TinyML Optimization: Can an INT8 quantized 1D-Convolutional Autoencoder fit within 50KB SRAM on an ESP32 and run inference in under 20 milliseconds per sample? [RESEARCHED]
  3. Spatial vs. Sensor Anomaly Disambiguation: What spatial distance threshold and correlation coefficient between adjacent AWS nodes ($<50\text{km}$) are sufficient to confirm that a $10\text{ hPa}$ pressure drop is a regional storm rather than a pressure sensor membrane diaphragm rupture? [INFERENCE]
  4. SHAP Computational Efficiency: How can SHAP values be computed in near real-time (<100ms) for streaming time-series data without introducing cloud processing bottlenecks? [RESEARCHED]
  5. Data Imputation Precision: What is the root mean square error (RMSE) of Spatial Kriging vs. Temporal Bi-LSTM when reconstructing temperature during a rapid drop event when $RH = 100%$? [INFERENCE]

7. Data Requirements & Sources

Data Type Purpose Ideal Real-World Source Hackathon Substitute Access Method Availability Privacy Confidence
Historical AWS Time Series ($T, P, RH$) Training baseline temporal autoencoders and seasonal diurnal distributions. IMD Pune Central Receiving Earth Station Archive [RESEARCHED]. NOAA Integrated Surface Database (ISD) / ECMWF ERA5 Reanalysis filtered for Indian coordinates [RESEARCHED]. Web Download / Open Data API / Synthetic Generator [RESEARCHED]. Publicly available (NOAA/ERA5) [RESEARCHED]. Public Domain / Non-PII [KNOWN]. [RESEARCHED]
Anomalous Weather Sensor Samples Evaluating detection accuracy, false alarm rate, and root-cause classification. IMD Maintenance Logbooks & Calibrated Fault Injector Records [NEEDS VALIDATION]. Synthetic Anomaly Injection Pipeline (injecting spikes, freezes, drift, noise, and simulated microbursts into real weather streams) [INFERENCE]. Python Generation Script (inject_anomalies.py) [INFERENCE]. Self-generated / Fully available [INFERENCE]. Synthetic / Non-PII [KNOWN]. [INFERENCE]
AWS Station Metadata Spatial correlation and geographic distance calculations. IMD MetNet Station Registry (Latitude, Longitude, Altitude) [RESEARCHED]. Geospatial CSV matrix of representative Indian AWS locations (e.g., Delhi NCR grid, Mumbai coastal grid) [INFERENCE]. Local CSV / GeoJSON File [INFERENCE]. Publicly documented IMD station coordinates [RESEARCHED]. Non-PII [KNOWN]. [RESEARCHED]
WMO Operational QC Bounds Deterministic upper/lower threshold validation rules. WMO-No. 8 (Guide to Instruments and Methods of Observation) [RESEARCHED]. Digitized WMO QC Rule Matrix for Tropical/Subtropical climates [RESEARCHED]. Hardcoded JSON Configuration File [INFERENCE]. Public International Standard [RESEARCHED]. Non-PII [KNOWN]. [RESEARCHED]

8. Existing Solutions & Gap Analysis

+-----------------------------------------------------------------------------------+
|                            EXISTING SOLUTIONS MATRIX                              |
+------------------------------------+----------------------------------------------+
| WMO-No. 8 Rule-Based QC            | Fixed thresholds; misses complex drift and   |
| (Traditional Method)               | multivariate physical anomalies.             |
+------------------------------------+----------------------------------------------+
| Centralized Cloud ML (Autoencoders)| Detects complex patterns; fails offline, no  |
|                                    | edge capability, high bandwidth cost.        |
+------------------------------------+----------------------------------------------+
| Basic PyOD / Outlier Toolkits      | Statistical isolation; lacks explainability  |
|                                    | and physical weather domain rules.           |
+------------------------------------+----------------------------------------------+
| SKYGUARD AI (PROPOSED SOLUTION)    | Hierarchical Edge-Cloud + SHAP XAI +         |
|                                    | Spatial Consistency + Auto Imputation.       |
+------------------------------------+----------------------------------------------+

Detailed Systems Benchmark

  1. WMO-No. 8 Standard Rule-Based Quality Control (Traditional IMD System):

    • Description: Uses static range checks (e.g., Temp between $-10^\circ\text{C}$ and $60^\circ\text{C}$), step checks (max $5^\circ\text{C}$ change per hour), and persistence checks (zero variance over 3 hours) [RESEARCHED].
    • Strengths: Computationally light; zero false positives on obvious extreme out-of-range sensor failures [RESEARCHED].
    • Weaknesses: Cannot detect subtle multivariate calibration drift (e.g., temperature reading $3^\circ\text{C}$ too high while humidity reads 20% too low); frequently flags genuine cloudbursts as false "step anomalies" [INFERENCE].
    • Gap Remaining: Lacks multivariate pattern learning and spatial verification [INFERENCE].
    • Confidence: [RESEARCHED]
  2. Generic Unsupervised ML (PyOD Isolation Forest / One-Class SVM):

    • Description: Applies generic statistical distance/isolation algorithms on sensor tabular streams [RESEARCHED].
    • Strengths: Out-of-the-box anomaly detection without requiring ground-truth fault labels [RESEARCHED].
    • Weaknesses: High false-positive rate during rapid weather transitions; black-box outputs lack domain-specific explanations; no capability to run on ESP32 microcontrollers [INFERENCE].
    • Gap Remaining: No physical domain integration, no edge optimization, no XAI rationale [INFERENCE].
    • Confidence: [RESEARCHED]
  3. Academic LSTM-Autoencoders for Weather QC:

    • Description: Centralized deep neural networks trained on historic time-series data to reconstruct normal sensor patterns [RESEARCHED].
    • Strengths: High accuracy in capturing complex temporal diurnal patterns [RESEARCHED].
    • Weaknesses: High cloud compute cost; requires continuous sensor-to-cloud streaming; fails completely when edge nodes lose cellular connectivity [INFERENCE].
    • Gap Remaining: Lacks edge-node resilience, real-time local filtering, and spatial inter-station validation [INFERENCE].
    • Confidence: [RESEARCHED]

9. Candidate Solution Approaches

Approach A: Rule-Based & Statistical Thresholding System (Pure Baseline)

  • Mechanism: A pipeline executing WMO-No. 8 physical limits, moving Z-score calculations, and Exponentially Weighted Moving Average (EWMA) step checks [RESEARCHED].
  • Data Requirements: Stream of $T, P, RH$.
  • Architecture: C++ firmware executing on ESP32 or basic Python script.
  • Complexity: Extremely Low.
  • Explainability: 100% Rule-Based (e.g., "Value $> 55^\circ\text{C}$ exceeds physical maximum").
  • Hackathon Feasibility: 100% (Can be coded in 2 hours).
  • Limitations: Fails evaluation criteria on Innovation (25%) and Accuracy (20%); cannot detect hidden multivariate drift or distinguish real microbursts from sensor glitches [INFERENCE].

Approach B: Pure Cloud Deep Learning (LSTM Autoencoder + Cloud SHAP)

  • Mechanism: All raw AWS data is continuously streamed over GPRS/MQTT to a centralized PyTorch LSTM-Autoencoder. Anomalies are flagged based on reconstruction error thresholds ($\text{MSE} > \tau$), and SHAP explanations are computed in the cloud [RESEARCHED].
  • Data Requirements: Continuous high-frequency stream of $T, P, RH$ to cloud.
  • Architecture: Heavy Cloud Backend (FastAPI + PyTorch + Celery).
  • Complexity: High.
  • Explainability: High (via SHAP KernelExplainer).
  • Hackathon Feasibility: Moderate (Requires cloud setup and continuous connectivity).
  • Limitations: Violates Edge AI requirement (ESP32) [PS]; fragile during network outages; high cellular data bandwidth costs across 700+ remote stations [INFERENCE].

Approach C: Hierarchical Edge-Cloud AI with SHAP & Spatial Kriging (Proposed Winner)

  • Mechanism:
    • Tier 1 (Edge Node - ESP32): Runs an INT8 quantized 1D-Convolutional Autoencoder in C++ via TensorFlow Lite Micro. Filters gross spikes, frozen values, and local noise in $<20\text{ms}$ while computing a local Anomaly Score ($S_{\text{edge}}$) [INFERENCE].
    • Tier 2 (Cloud Core - Python FastAPI): Receives data packets. If $S_{\text{edge}} > \text{threshold}$, triggers a multivariate ensemble (XGBoost + Isolation Forest) enriched with spatial neighbor correlation (Spatial Kriging) [INFERENCE].
    • Tier 3 (XAI & Self-Healing Layer): Computes exact SHAP feature attributions, classifies root-cause (Fault vs. Weather Event), generates imputed replacement values, and updates sensor health score [INFERENCE].
  • Data Requirements: $T, P, RH$ time series + Neighbor station GeoJSON metadata.
  • Architecture: ESP32 C++ Firmware + FastAPI Backend + TimescaleDB + Next.js Dashboard.
  • Complexity: High (Balanced modular design).
  • Explainability: High (Exact SHAP tree values & human-language translation).
  • Hackathon Feasibility: 100% achievable for a 4–6 student team with proper task separation.
  • Strengths: Fully satisfies ALL PS requirements including Edge AI on ESP32, Explainability (SHAP), Spatial consistency, and Energy efficiency [PS].

10. Recommended Approach & Why

Selected Approach: Approach C (Hierarchical Edge-Cloud Hybrid Architecture) [INFERENCE].

+-----------------------------------------------------------------------------------+
|                        HIERARCHICAL ARCHITECTURE SELECTION                        |
+-----------------------------------------------------------------------------------+
|  [ESP32 Edge Node]  ---> Local 1D-CNN Autoencoder (TFLite Micro)                  |
|                             |---> Sub-20ms Spike/Freeze Filter                    |
|                             v                                                     |
|  [MQTT / GPRS Stream]                                                             |
|                             v                                                     |
|  [Cloud Backend]     ---> Spatial-Temporal XGBoost / PyOD Ensemble                |
|                             |---> Cross-Station Kriging Verification              |
|                             |---> SHAP Feature Attribution Engine                 |
|                             |---> Auto-Imputation & Health Tracking               |
+-----------------------------------------------------------------------------------+

Justification of Selection

  1. Alignment with Evaluation Criteria: Approach C scores maximum points across all PS evaluation criteria: Innovation (25%), Detection Accuracy (20%), Real-Time Capability (15%), Explainability (10%), Scalability (10%), Deployability (10%), UI (5%), Energy Efficiency (5%) [PS].
  2. Resilience to Network Outages: By placing the Tier-1 model on the ESP32, the AWS station retains full anomaly detection capabilities even when GPRS or satellite link drops, storing flagged event logs in local flash memory [INFERENCE].
  3. Elimination of False Positives: Single-station models misinterpret sudden pressure drops during extreme storms as sensor errors. Tier-2 Cloud Spatial Kriging cross-checks neighboring AWS nodes within a $50\text{km}$ radius. If neighboring stations report a similar pressure trend, the anomaly is correctly reclassified as a Genuine Meteorological Event [INFERENCE].
  4. Bandwidth & Energy Optimization: Instead of transmitting raw high-frequency noise, the ESP32 can compress normal packets and prioritize anomaly alert frames, reducing cellular transmitter duty cycles and saving solar battery power [INFERENCE].

11. Technical Architecture

Layered System Architecture Diagram

===================================================================================
                                SKYGUARD AI ARCHITECTURE
===================================================================================

[ PERCEPTION & EDGE LAYER (ESP32-S3 AWS Node) ]
  +-----------------------+   +-----------------------+   +-----------------------+
  |  Temperature Sensor   |   |   Pressure Sensor     |   |   Humidity Sensor     |
  |     (RTD / PT100)     |   |    (Piezoresistive)   |   |     (Capacitive)      |
  +-----------+-----------+   +-----------+-----------+   +-----------+-----------+
              |                           |                           |
              +-------------------+-------+---------------------------+
                                  | (Analog / I2C / SPI Readings @ 1Hz)
                                  v
  +-------------------------------------------------------------------------------+
  |  ESP32 C++ FIRMWARE (FreeRTOS Task Stack)                                     |
  |  - WMO Physical Range Filter (Hard Bounds)                                     |
  |  - Feature Normalizer & Sliding Window Buffer (Size: 12 samples = 12 mins)    |
  |  - TFLite Micro INT8 1D-CNN Autoencoder (Inference Latency < 18ms)           |
  |  - Local SPIFFS/SD Card Storage Buffer (Offline Fallback)                    |
  +---------------------------------------+---------------------------------------+
                                          |
                                          | (MQTT over GPRS / Cellular / Satellite)
                                          v
[ INGESTION & MESSAGING LAYER ]
  +-------------------------------------------------------------------------------+
  |  EMQX / Eclipse Mosquitto MQTT Broker (TLS 1.3 Encryption, Port 8883)          |
  +---------------------------------------+---------------------------------------+
                                          |
                                          v
[ PROCESSING & AI CORE LAYER (Cloud / Central Server) ]
  +-------------------------------------------------------------------------------+
  |  FastAPI Asynchronous Gateway & Payload Validator                             |
  +---------------------------------------+---------------------------------------+
                                          |
                     +--------------------+--------------------+
                     |                                         |
                     v                                         v
  +------------------------------------+    +-------------------------------------+
  |  MULTIVARIATE TEMPORAL MODEL       |    |  SPATIAL CONSISTENCY CHECKER        |
  |  - PyOD XGBoost / Isolation Forest |    |  - Spatial Inverse Distance Weighting|
  |  - Psychrometric Residual Check    |    |  - Neighbor AWS Correlation Matrix  |
  +------------------+-----------------+    +------------------+------------------+
                     |                                         |
                     +--------------------+--------------------+
                                          |
                                          v
  +-------------------------------------------------------------------------------+
  |  DECISION & CLASSIFICATION MATRIX                                             |
  |  - Root-Cause Classification (Spike, Freeze, Drift, Fault, Weather Event)     |
  |  - Confidence Score Generation (0 - 100%)                                     |
  +---------------------------------------+---------------------------------------+
                                          |
                     +--------------------+--------------------+
                     |                                         |
                     v                                         v
  +------------------------------------+    +-------------------------------------+
  |  EXPLAINABILITY ENGINE (SHAP/LIME) |    |  DATA IMPUTATION ENGINE             |
  |  - TreeSHAP Feature Attribution    |    |  - Temporal Bi-LSTM / Spatial KNN   |
  |  - Natural Language Explanation Gen|    |  - Reconstructed Clean Stream       |
  +------------------------------------+    +-------------------------------------+
                                          |
                                          v
[ DATA ARCHITECTURE & STORAGE LAYER ]
  +-------------------------------------------------------------------------------+
  |  TimescaleDB (PostgreSQL) - Time Series Observations, Anomalies, Imputations  |
  |  Redis Cache - Real-Time Station Status, Active Alerts, SHAP Caches           |
  +---------------------------------------+---------------------------------------+
                                          |
                                          v
[ PRESENTATION & ALERTING LAYER ]
  +-------------------------------------------------------------------------------+
  |  Next.js 14 Dashboard (Leaflet GIS Map, SHAP Force Plots, Sensor Health)      |
  |  Notification Hub (WebSockets / Telegram API / Email Alerts for Engineers)    |
  +===============================================================================+

Detailed Data Flow Narrative

  1. Perception & Sampling: The AWS sensors measure Air Temperature, Atmospheric Pressure, and Relative Humidity at 1-minute intervals [RESEARCHED].
  2. Edge Filtering & Inference (ESP32):
    • The ESP32 MCU reads raw values, checks basic physical limits (e.g., $T \in [-50, 60]^\circ\text{C}$), and updates a sliding buffer of 12 timesteps [INFERENCE].
    • The quantized TFLite Micro 1D-CNN Autoencoder evaluates the buffer. If Mean Squared Error ($\text{MSE}$) exceeds the edge threshold, an anomaly bit is set in the MQTT telemetry payload [INFERENCE].
  3. Transmission: Payload is serialized in JSON/Protocol Buffers and published to imd/aws/{station_id}/telemetry over TLS-encrypted MQTT [INFERENCE].
  4. Cloud Processing & Spatial Cross-Check:
    • FastAPI ingests the message. If flagged by the Edge or exceeding cloud temporal thresholds, the Spatial Consistency Checker fetches readings from surrounding stations within a $50\text{km}$ radius [INFERENCE].
    • If neighboring stations exhibit parallel trends (e.g., rapid pressure drop across 4 stations), the anomaly flag is overridden and labeled Genuine Meteorological Event [INFERENCE].
    • If isolated to a single station, the Root-Cause Classifier categorizes it into Spike, Frozen Value, Calibration Drift, Power Fluctuation, or Sensor Malfunction [INFERENCE].
  5. SHAP Explanation & Imputation:
    • TreeSHAP calculates feature contributions (e.g., $\Delta P = +0.42, \Delta T = -0.15$), generating an plain-English explanation [INFERENCE].
    • If flagged as a sensor anomaly, the Data Imputer generates an estimated replacement value ($\hat{T}, \hat{P}, \hat{RH}$) using spatial inverse distance weighting and temporal interpolation [INFERENCE].
  6. Storage & Visualization: The raw value, anomaly status, confidence score, SHAP attributions, and imputed values are committed to TimescaleDB and streamed to the Next.js dashboard via WebSockets [INFERENCE].

12. Technology Stack

Layer Selected Technology Why Chosen Alternative Considered Why Alternative Rejected
Edge Hardware ESP32-S3 DevKit (Dual-Core 240MHz, 512KB SRAM, 8MB PSRAM) [RESEARCHED] Low cost (~₹500), built-in Wi-Fi/Bluetooth, native TFLite Micro support, hardware vector instructions [RESEARCHED]. Raspberry Pi Zero 2W Higher power consumption (~1.5W vs <0.2W), slower boot time, requires full Linux OS maintenance [RESEARCHED].
Edge Runtime C++ PlatformIO with TensorFlow Lite Micro [RESEARCHED] Minimal memory footprint (<100KB Flash/RAM), deterministic execution, zero OS overhead [RESEARCHED]. MicroPython High memory overhead, non-deterministic garbage collection delays, slow ML inference execution [RESEARCHED].
Messaging Protocol MQTT over TLS (EMQX Broker) [RESEARCHED] Ultra-lightweight header overhead (2 bytes), publish-subscribe model, built-in Keep-Alive for unstable GPRS links [RESEARCHED]. HTTP/REST APIs High HTTP header overhead (hundreds of bytes per request), requires expensive TCP handshake per message [RESEARCHED].
Cloud Backend Python 3.11 + FastAPI + Uvicorn [RESEARCHED] Asynchronous IO performance, native Python ML library integration (PyOD, SHAP, Scikit-Learn), automatic OpenAPI docs [RESEARCHED]. Java Spring Boot Heavy memory footprint, complex integration with Python-native SHAP and PyTorch ML libraries [RESEARCHED].
Time Series DB TimescaleDB (PostgreSQL Extension) [RESEARCHED] Full SQL support, automatic hypertable partitioning for time-series, superior query speed for temporal aggregates [RESEARCHED]. InfluxDB Non-SQL query language (Flux/InfluxQL), weaker relational joining capabilities with station metadata tables [RESEARCHED].
Cache & Queue Redis + Celery [RESEARCHED] Ultra-fast in-memory lookup for live station status, WebSocket Pub/Sub, async job processing for SHAP calculations [RESEARCHED]. RabbitMQ Higher operational complexity for simple key-value state caching and WebSocket distribution [RESEARCHED].
ML Engine Core PyOD + XGBoost + PyTorch [RESEARCHED] PyOD provides standardized anomaly detection pipelines; XGBoost provides high speed and native TreeSHAP support [RESEARCHED]. Pure Scikit-Learn Lacks specialized time-series anomaly detection abstractions and optimized ensemble wrappers [RESEARCHED].
Explainability SHAP (SHapley Additive exPlanations) [RESEARCHED] Mathematically rigorous game-theoretic feature attribution; TreeSHAP allows fast exact attribution [RESEARCHED]. LIME Local surrogate linear approximations are non-deterministic and computationally slower for tabular trees [RESEARCHED].
Frontend Framework Next.js 14 (React) + Tailwind CSS + Leaflet.js [RESEARCHED] Server-side rendering, responsive UI, rich interactive GIS mapping libraries, seamless WebSocket integration [RESEARCHED]. Angular Steep learning curve, heavier client bundle size for simple real-time mapping dashboards [RESEARCHED].

13. AI/ML Justification

+-----------------------------------------------------------------------------------+
|                        AI / ML COMPONENT DESIGN & TAXONOMY                        |
+-----------------------------------------------------------------------------------+
| Component 1: TinyML Autoencoder  | Inputs: 12-sample buffer (T, P, RH)            |
| (ESP32 Edge Node)                | Output: Reconstruction MSE Score              |
|                                  | Function: Rapid local spike/freeze filter     |
+----------------------------------+------------------------------------------------+
| Component 2: Multivariate        | Inputs: T, P, RH + Temporal Encodings          |
| XGBoost Ensemble (Cloud)         | Output: Anomaly Probability & Anomaly Class   |
|                                  | Function: Multi-class root cause classification|
+----------------------------------+------------------------------------------------+
| Component 3: TreeSHAP Engine     | Inputs: Model Tree + Feature Vector            |
| (Cloud XAI)                      | Output: Feature Shapley Values                 |
|                                  | Function: Human-understandable physical reason |
+----------------------------------+------------------------------------------------+
| Component 4: Kriging & Bi-LSTM   | Inputs: Surrounding AWS feeds + Past History   |
| Imputer (Cloud)                  | Output: Estimated True T, P, RH Values          |
|                                  | Function: Self-healing stream reconstruction   |
+----------------------------------+------------------------------------------------+

Deep Dive: Individual AI Components

Component 1: Edge TinyML 1D-CNN Autoencoder

  • Exact Problem Solved: Local, real-time identification of sensor hardware spikes, zero-variance freezes, and communication noise directly at the AWS station [INFERENCE].
  • Input: Matrix of shape $(12, 3)$ representing the last 12 minutes of Temperature, Pressure, and Relative Humidity [INFERENCE].
  • Output: Scalar Reconstruction Error ($\text{MSE}$) and binary trigger flag ($0$ or $1$) [INFERENCE].
  • Why Simpler Rules Fail: Static thresholds cannot detect a frozen sensor whose value is within normal broad ranges (e.g., $T = 28.5^\circ\text{C}$ constant for 8 hours during mid-day when diurnal variation should occur) [INFERENCE].
  • Data Required: 30 days of uncorrupted 1-minute historical AWS readings [INFERENCE].
  • Evaluation Metric: Mean Squared Error ($\text{MSE}$) on clean test set; target latency $< 20\text{ms}$ on ESP32 [INFERENCE].
  • Failure Mode: False alarm during sudden microburst; mitigated by passing flagged events to Cloud Tier 2 spatial verification [INFERENCE].
  • Training/Fine-tuning: Offline training in PyTorch $\rightarrow$ Quantization to INT8 via TFLite Converter $\rightarrow$ Export to C++ byte array header (model_data.h) [RESEARCHED].

Component 2: Cloud Multivariate Root-Cause Classifier (XGBoost Ensemble)

  • Exact Problem Solved: Multi-class classification of detected anomalies into specific failure modes or legitimate weather phenomena [INFERENCE].
  • Input: $T, P, RH$, rolling mean/std (5m, 15m, 1h), rate of change ($\Delta T/\Delta t, \Delta P/\Delta t, \Delta RH/\Delta t$), psychrometric dew point departure, and spatial neighbor mean differences [INFERENCE].
  • Output: Class Probabilities across 6 categories: Normal, Sensor_Spike, Sensor_Freeze, Calibration_Drift, Power_Communication_Noise, Extreme_Weather_Event [INFERENCE].
  • Why Simpler Rules Fail: Multi-parameter physical correlations (e.g., $P$ dropping rapidly while $RH$ rises to 98% and $T$ drops $4^\circ\text{C}$) represent complex non-linear decision boundaries that rule sets miss or misclassify [INFERENCE].
  • Data Required: Historical weather data enriched with synthetic anomaly injections and labeled operational logs [INFERENCE].
  • Evaluation Metric: Multi-class F1-Score (Target $> 0.92$), False Alarm Rate (Target $< 2%$) [INFERENCE].
  • Failure Mode: Overfitting to specific regional climates; mitigated by training on diverse geographic nodes (Himalayan, Coastal, Desert, Inland Plains) [INFERENCE].

Component 3: Explainable AI Engine (TreeSHAP)

  • Exact Problem Solved: Translating high-dimensional tree model decisions into human-interpretable physical explanations for IMD forecasters [PS].
  • Input: Labeled anomaly instance + Trained XGBoost model object [INFERENCE].
  • Output: Vector of Shapley values for each feature ($\phi_T, \phi_P, \phi_{RH}, \phi_{\text{spatial_diff}}$) and auto-generated explanation string [INFERENCE].
  • Why Simpler Rules Fail: Black-box models provide no visibility into why a sample was flagged. SHAP provides exact additive feature importance guarantees grounded in game theory [RESEARCHED].
  • Evaluation Metric: Human sanity check agreement with meteorological physical principles [INFERENCE].

Component 4: Spatio-Temporal Data Imputer (Spatial Kriging + Bi-LSTM)

  • Exact Problem Solved: Imputing missing or corrupt data values to maintain continuous data feeds for numerical weather prediction models [PS].
  • Input: Corrupted observation timestamp, station coordinates, clean values from $K$-nearest neighbor AWS nodes ($K=3..5$), and past 12-hour local historical trajectory [INFERENCE].
  • Output: Estimated replacement values ($\hat{T}, \hat{P}, \hat{RH}$) with confidence interval [INFERENCE].
  • Why Simpler Rules Fail: Simple linear interpolation fails during rapid non-linear weather transitions (e.g., sudden temperature drops during convective rain) [INFERENCE].

WHERE NOT TO USE AI (Rule-Based Safety Net)

AI models MUST NOT be used for absolute physical bound enforcement [INFERENCE]. Deterministic, hardcoded rule filters must run prior to any ML inference:

  1. Absolute Physical Range Limits:
    • Air Temperature: Flag if $T < -50^\circ\text{C}$ or $T > +60^\circ\text{C}$ [RESEARCHED].
    • Relative Humidity: Flag if $RH < 0%$ or $RH > 100%$ [RESEARCHED].
    • Atmospheric Pressure: Flag if $P < 500\text{ hPa}$ or $P > 1080\text{ hPa}$ [RESEARCHED].
  2. Hard Power Supply Failure: If battery voltage $V_{\text{batt}} < 9.5\text{V}$, instantly flag "Power Failure Anomaly" without executing ML models [INFERENCE].

14. Data Architecture & Offline/Low-Network Design

Database Schema (TimescaleDB / PostgreSQL)

-- PostgreSQL / TimescaleDB Schema Definition

-- 1. Station Master Metadata Table
CREATE TABLE aws_stations (
    station_id VARCHAR(32) PRIMARY KEY,
    station_name VARCHAR(128) NOT NULL,
    latitude DOUBLE PRECISION NOT NULL,
    longitude DOUBLE PRECISION NOT NULL,
    elevation_meters REAL NOT NULL,
    state VARCHAR(64) NOT NULL,
    agro_zone VARCHAR(64) NOT NULL,
    installation_date DATE NOT NULL,
    status VARCHAR(16) DEFAULT 'ACTIVE'
);

-- 2. Raw Sensor Telemetry (TimescaleDB Hypertable)
CREATE TABLE sensor_telemetry (
    timestamp TIMESTAMPTZ NOT NULL,
    station_id VARCHAR(32) REFERENCES aws_stations(station_id),
    temperature_c REAL NOT NULL,
    pressure_hpa REAL NOT NULL,
    humidity_pct REAL NOT NULL,
    battery_volts REAL,
    edge_anomaly_flag BOOLEAN DEFAULT FALSE,
    edge_mse_score REAL,
    PRIMARY KEY (timestamp, station_id)
);
SELECT create_hypertable('sensor_telemetry', 'timestamp');

-- 3. Detected Anomalies & XAI Log Table
CREATE TABLE detected_anomalies (
    anomaly_id BIGSERIAL PRIMARY KEY,
    timestamp TIMESTAMPTZ NOT NULL,
    station_id VARCHAR(32) REFERENCES aws_stations(station_id),
    anomaly_type VARCHAR(32) NOT NULL, -- Spike, Freeze, Drift, Weather_Event, Malfunction
    severity_level VARCHAR(16) NOT NULL, -- LOW, MEDIUM, HIGH, CRITICAL
    confidence_score REAL NOT NULL,     -- 0.00 to 1.00
    shap_explanation JSONB NOT NULL,    -- Feature attributions
    natural_language_reason TEXT NOT NULL,
    is_genuine_weather BOOLEAN DEFAULT FALSE,
    verified_by_operator BOOLEAN DEFAULT FALSE
);

-- 4. Imputed Data Stream Table
CREATE TABLE imputed_observations (
    timestamp TIMESTAMPTZ NOT NULL,
    station_id VARCHAR(32) REFERENCES aws_stations(station_id),
    imputed_temperature_c REAL,
    imputed_pressure_hpa REAL,
    imputed_humidity_pct REAL,
    imputation_method VARCHAR(32), -- KRIGING_SPATIAL, TEMPORAL_BILSTM
    PRIMARY KEY (timestamp, station_id)
);
SELECT create_hypertable('imputed_observations', 'timestamp');

-- 5. Sensor Health & Maintenance Tracking Table
CREATE TABLE sensor_health_status (
    station_id VARCHAR(32) PRIMARY KEY REFERENCES aws_stations(station_id),
    overall_health_score REAL DEFAULT 100.0, -- 0 to 100%
    temp_sensor_health REAL DEFAULT 100.0,
    pressure_sensor_health REAL DEFAULT 100.0,
    humidity_sensor_health REAL DEFAULT 100.0,
    estimated_drift_rate REAL DEFAULT 0.0,
    last_maintenance_date DATE,
    recommended_action TEXT,
    updated_at TIMESTAMPTZ NOT NULL
);

Offline & Low-Network Resiliency Strategy

+-----------------------------------------------------------------------------------+
|                        ESP32 EDGE OFFLINE SYNC STATE MACHINE                      |
+-----------------------------------------------------------------------------------+
|  [Sensors Read] ---> Store in 12-sample Ring Buffer                               |
|                           |                                                       |
|                           v                                                       |
|                     [Run TFLite] ---> Flag Anomaly?                               |
|                           |                                                       |
|              +------------+------------+                                          |
|              |                         |                                          |
|     (Network Available)       (Network Offline)                                   |
|              |                         |                                          |
|              v                         v                                          |
|      Send MQTT Stream         Append to SPIFFS / SD Log                          |
|                                        |                                          |
|                                        v                                          |
|                               Check Network Link Loop                             |
|                                        |                                          |
|                                        v (Link Restored)                          |
|                               Burst Sync with Backoff Delay                       |
+-----------------------------------------------------------------------------------+
  1. Local Ring-Buffer & SPIFFS Flash Logging: The ESP32 firmware maintains a circular memory buffer in SRAM for instant inference and writes compressed records to internal SPIFFS Flash memory (or microSD module) during network dropouts [INFERENCE].
  2. Store-and-Forward Retry Protocol: When GPRS/satellite connectivity fails, the device enters OFFLINE_LOGGING mode. Upon reconnection, it executes an exponential backoff burst transmission protocol to push stored logs without overloading the cloud broker [INFERENCE].
  3. Data Bandwidth Reduction: During normal operations, normal observations can be aggregated into 5-minute averages, whereas detected anomalies trigger immediate high-frequency 1-minute alert frames [INFERENCE].

15. Security, Privacy & Governance

  1. Data Integrity & Authenticity: Sensor payloads signed at the ESP32 edge using HMAC-SHA256 tokens to prevent rogue data injection or MITM spoofing along cellular links [INFERENCE].
  2. Transport Security: All MQTT communication over TLS 1.3 (Port 8883) with X.509 client certificate authentication [RESEARCHED].
  3. Role-Based Access Control (RBAC):
    • Viewers (Public/Media): Read-only access to clean, imputed surface weather maps.
    • Duty Forecasters: Access to live anomaly feeds, SHAP explanation metrics, and override controls.
    • Field Maintenance Engineers: Access to predictive maintenance diagnostic logs and sensor health scores.
  4. Governance & Legal Disclaimer: SkyGuard AI serves as an automated decision-support system for IMD [INFERENCE]. Warnings issued to the public (e.g., severe storm alerts) remain under the regulatory authority of certified IMD human meteorological forecasters [INFERENCE].

16. MVP Scope (Hackathon Build)

+-----------------------------------------------------------------------------------+
|                            HACKATHON MVP BUILD SCOPE                              |
+-----------------------------------------------------------------------------------+
|                   IN SCOPE (MUST BUILD FOR HACKATHON)                             |
|  * Fully functional Python FastAPI Cloud Backend with PyOD & XGBoost Core         |
|  * Interactive Next.js Dashboard with Leaflet GIS Map & Station Health Views      |
|  * ESP32 C++ Firmware with TFLite Micro INT8 Autoencoder (Live Hardware Demo)     |
|  * Live Synthetic Anomaly Injection Pipeline (Spikes, Freezes, Drift, Storms)     |
|  * SHAP Explanation Visualizer (Force Plots & Natural Language Text)              |
|  * Spatial Kriging Imputation for corrupted parameter streams                     |
|                                                                                   |
|                OUT OF SCOPE / DESCRIBED ONLY (PRODUCTION)                         |
|  * Hardware-in-the-loop environmental chamber physical sensor testing             |
|  * INSAT-3D Direct Satellite Ground Earth Station Demodulator hardware integration |
|  * Pan-India 700+ station physical field deployment                               |
+-----------------------------------------------------------------------------------+

In Scope (Must Build for Hackathon Demo)

  • Core Anomaly Engine: Multi-class classification (Spike, Freeze, Drift, Weather Event) on 3 parameters ($T, P, RH$) [PS].
  • Edge AI Module: C++ TFLite Micro model flashed onto ESP32 hardware running real-time local detection [PS].
  • XAI Module: SHAP integration outputting natural language reasons (e.g., "Humidity dropped 45% in 2 mins without corresponding pressure change") [PS].
  • Data Imputer: Spatial Inverse Distance Weighting / Kriging imputer generating estimates for corrupt data [PS].
  • Web Dashboard: Interactive Leaflet GIS map displaying station markers (Green = Normal, Red = Anomaly, Yellow = Weather Event), live telemetry graphs, and maintenance health scores [PS].
  • Synthetic Injection Tool: Interactive stream generator to inject live anomalies and severe weather patterns during demo judging [INFERENCE].

Described Only / Out of Scope (Production System)

  • Direct hardware integration with INSAT satellite receiver demodulator hardware [INFERENCE].
  • Physical environmental test chamber calibration [INFERENCE].
  • Automated SMS gateway integrations with local district disaster collectors [INFERENCE].

17. Live Demo Simulation Plan

To deliver a compelling live evaluation demo without needing a live satellite feed or physical weather chamber, the team will run an end-to-end simulation environment [INFERENCE]:

+-----------------------------------------------------------------------------------+
|                         LIVE DEMO SIMULATION ARCHITECTURE                         |
+-----------------------------------------------------------------------------------+
|  [ESP32 Hardware Node] ---> Physical BME280/DHT22 Sensor (Ambient T, P, RH)      |
|       + Flame/Heat Gun  ---> Live Temperature Spike ($55^\circ\text{C}$)          |
|                                       |                                           |
|  [Synthetic Grid Generator] ---> Streams 10 Simulated AWS Stations via MQTT        |
|       + Trigger Button  ---> Inject Microburst Storm Pattern across 3 stations    |
|                                       |                                           |
|                                       v                                           |
|  [FastAPI Backend]      ---> Processes Streams, Computes SHAP, Runs Kriging       |
|                                       |                                           |
|                                       v                                           |
|  [Next.js UI Dashboard] ---> Real-time Alert Pop-up + SHAP Plot + Clean Imputation|
+-----------------------------------------------------------------------------------+
  1. Hardware Demonstration (Edge Layer):

    • An actual ESP32 development board connected to an ambient sensor (e.g., BME280 for $T, P, RH$).
    • The ESP32 runs the compiled C++ TFLite Micro autoencoder firmware.
    • Live Test: Apply sudden heat (e.g., hot air or warm touch) to trigger an instant localized anomaly flag on the ESP32 OLED/Serial Monitor within $<20\text{ms}$ [INFERENCE].
  2. Network Grid Simulation (Cloud & Spatial Layer):

    • A Python script streams telemetry for 10 simulated IMD stations in the Delhi-NCR cluster over MQTT [INFERENCE].
    • Test Scenario A (Sensor Malfunction): Inject a $55^\circ\text{C}$ reading on Station #3 while neighboring stations read $30^\circ\text{C}$. The system flags Sensor Spike Anomaly, displays SHAP attributions blaming temperature divergence, and outputs an imputed value of $29.8^\circ\text{C}$ [INFERENCE].
    • Test Scenario B (Microburst Weather Event): Inject a synchronized $8\text{ hPa}$ pressure drop and $30%$ humidity surge across Stations #1, #2, and #3. The system detects the multi-station pattern, classifies it as a Genuine Meteorological Event, suppresses false alarms, and alerts forecasters to severe weather [INFERENCE].

18. Implementation Roadmap

Sizing Strategy Against Deadline (30 September 2026)

Assuming a project start date in early 2026, the implementation plan is structured into 6 distinct 4-week sprints leading up to final deployment before September 30, 2026 [PS].

+-----------------------------------------------------------------------------------+
|                        IMPLEMENTATION ROADMAP (UNTIL SEP 2026)                     |
+-----------------------------------------------------------------------------------+
| Phase 1: Data Pipeline & Baseline Models (Weeks 1 - 4)                            |
| Phase 2: Edge TinyML Optimization & ESP32 Firmware (Weeks 5 - 8)                  |
| Phase 3: Cloud Backend, Spatial Engine & SHAP (Weeks 9 - 12)                       |
| Phase 4: Data Imputation & Predictive Maintenance (Weeks 13 - 16)                 |
| Phase 5: Next.js Dashboard & GIS Visualization (Weeks 17 - 20)                    |
| Phase 6: System Integration, Testing & Final Documentation (Weeks 21 - 24)        |
+-----------------------------------------------------------------------------------+
  • Phase 1: Data Pipeline & Baseline Models (Weeks 1 – 4)

    • Extract historical ERA5/NOAA 3-parameter weather data for Indian region [RESEARCHED].
    • Build synthetic anomaly generator script (inject_anomalies.py) [INFERENCE].
    • Train baseline PyOD and XGBoost models in Python [RESEARCHED].
  • Phase 2: Edge TinyML & Firmware Development (Weeks 5 – 8)

    • Construct 1D-CNN Autoencoder in PyTorch; quantize to INT8 via TFLite Converter [RESEARCHED].
    • Develop PlatformIO C++ firmware for ESP32; integrate TFLite Micro C++ runtime [RESEARCHED].
    • Validate on-device inference latency ($<20\text{ms}$) and SRAM footprint ($<50\text{KB}$) [RESEARCHED].
  • Phase 3: Cloud Backend & XAI Integration (Weeks 9 – 12)

    • Develop FastAPI async REST & MQTT ingestion service [RESEARCHED].
    • Implement TreeSHAP computation worker thread [RESEARCHED].
    • Build Spatial Kriging inter-station correlation module [INFERENCE].
  • Phase 4: Data Imputation & Health Index (Weeks 13 – 16)

    • Implement Bi-LSTM & Spatial Inverse Distance Weighting imputation pipeline [INFERENCE].
    • Develop rolling sensor health index algorithm ($0-100%$) [INFERENCE].
  • Phase 5: Next.js Dashboard & UI Refinement (Weeks 17 – 20)

    • Build interactive Leaflet GIS map with color-coded station nodes [INFERENCE].
    • Integrate real-time WebSockets for alert pop-ups and live SHAP force plots [INFERENCE].
  • Phase 6: Hardening, Simulation & Submission (Weeks 21 – 24 / Final Push before 30 Sept 2026)

    • Conduct full end-to-end stress tests with 100 simulated station streams [INFERENCE].
    • Finalize code repository, documentation, and user guide deliverables [PS].

19. Testing & Validation Plan

Test Category Test Objective Target Benchmark / Metric Validation Method
Edge Performance Test Validate on-device TFLite Micro model execution speed and SRAM footprint on ESP32-S3 [RESEARCHED]. Latency $< 20\text{ms}$; RAM usage $< 50\text{KB}$; Zero MCU crashes during 48-hour burn-in [RESEARCHED]. PlatformIO profiling & ESP32 internal memory heap logging over Serial [RESEARCHED].
Anomaly Detection Accuracy Evaluate precision and recall across injected anomaly classes [PS]. Precision $> 0.95$; Recall $> 0.92$; F1-Score $> 0.93$ on test benchmark dataset [INFERENCE]. Automated test suite evaluating injected fault ground-truth CSV [INFERENCE].
False Positive Rate (FPR) Ensure true extreme weather events do not trigger false sensor fault alerts [PS]. False Alarm Rate $< 2.0%$ during simulated severe storm transitions [INFERENCE]. Run microburst/squall storm data streams through system and verify suppression [INFERENCE].
SHAP Explanation Latency Measure cloud processing overhead for generating SHAP explanations [PS]. SHAP attribution generation time $< 100\text{ms}$ per flagged event [INFERENCE]. Python time.perf_counter() benchmark on Celery task queue [INFERENCE].
Data Imputation Error Measure accuracy of reconstructed missing/anomalous parameters [PS]. Temperature RMSE $< 0.8^\circ\text{C}$; Pressure RMSE $< 1.2\text{ hPa}$; Humidity RMSE $< 3.5%$ [INFERENCE]. Compare imputed values against masked hold-out ground-truth weather streams [INFERENCE].
Offline Resilience Test Verify zero data loss during cellular connectivity outages [INFERENCE]. $100%$ message recovery after simulated 2-hour network disconnect [INFERENCE]. Disconnect ESP32 Wi-Fi/cellular link, log 120 samples to SPIFFS, reconnect and verify MQTT burst [INFERENCE].

20. Risk Register

Risk Likelihood Impact Severity Mitigation Strategy
Spatial Sparsity in Remote Areas High Medium High In remote desert or mountain regions where nearest AWS node is $>100\text{km}$ away, Spatial Kriging fails; system falls back on temporal single-station physical consistency checks [INFERENCE].
ESP32 Memory Overflow Medium High High TFLite Micro model exceeding 512KB SRAM; mitigate by applying INT8 quantization and reducing 1D-CNN filter counts [RESEARCHED].
SHAP Computation Bottlenecks Medium Medium Medium KernelSHAP is computationally expensive; mitigate by using TreeSHAP optimized C-extensions or pre-computed lookup background datasets [RESEARCHED].
Over-fitting to Microclimates Medium High High A model trained on inland plains data misinterprets coastal sea-breeze humidity surges; mitigate by training regional model weights per agro-climatic zone [INFERENCE].
Unstable Power Supply at AWS Node High High High Low battery voltage causing erratic sensor output; mitigate by incorporating analog battery voltage ($V_{\text{batt}}$) into hardware diagnostic rule layer [INFERENCE].

21. Cost & Scalability

Hackathon Prototype Cost (INR)

  • ESP32-S3 Microcontroller Board: ₹550 [RESEARCHED]
  • BME280 Environmental Sensor (Temp, Pressure, Humidity): ₹350 [RESEARCHED]
  • Cloud Infrastructure (Development): ₹0 (Free Tier Cloud / Localhost Deployment) [INFERENCE]
  • Total Hackathon Team Cost: ~₹900 [INFERENCE]

Production System Deployment (1,000 AWS Stations Network)

+-----------------------------------------------------------------------------------+
|                     ESTIMATED PRODUCTION INFRASTRUCTURE COSTS                     |
+-----------------------------------------------------------------------------------+
| Item / Component                      | Estimated Cost (INR) / Year               |
+---------------------------------------+-------------------------------------------+
| ESP32-S3 Edge Nodes (1,000 units)     | ₹6,00,000 (One-time Hardware) [RESEARCHED]|
| Cloud Server Infrastructure           | ₹3,60,000 / year [INFERENCE]              |
| Cellular GPRS M2M SIM Connectivity    | ₹6,00,000 / year (₹50/month/SIM) [INFER.] |
| Managed TimescaleDB Storage           | ₹2,40,000 / year [INFERENCE]              |
+---------------------------------------+-------------------------------------------+
| Total Estimated Year-1 Operational    | ~₹18,00,000 (~₹1,800 per station/year)    |
+---------------------------------------+-------------------------------------------+
  • Scalability Bottleneck & Mitigation:
    • Ingestion of 1,000 stations streaming every minute equals 1,000 messages/min (~16.6 msgs/sec), easily handled by a single EMQX broker and FastAPI instance [RESEARCHED].
    • Time-series storage is partitioned into weekly hypertables in TimescaleDB with automatic chunk compression enabled, reducing disk usage by $>90%$ [RESEARCHED].

22. Differentiation

+-----------------------------------------------------------------------------------+
|                             KEY SYSTEM DIFFERENTIATORS                            |
+-----------------------------------------------------------------------------------+
| Feature                      | Generic Submissions    | SKYGUARD AI               |
+------------------------------+------------------------+---------------------------+
| Strict 3-Parameter Limit     | Fails (requires wind)  | Fully Compliant (T, P, RH)|
| Edge AI Support              | Cloud-Only             | Native ESP32 TFLite C++   |
| Weather vs. Fault Resolution | False Storm Alarms     | Spatial Kriging Suppress  |
| Explainability               | Black-box ML          | Exact SHAP Feature Attrib |
| Data Recovery                | Flag & Discard         | Self-Healing Auto Imputer |
+------------------------------+------------------------+---------------------------+
  1. Strict Parameter Compliance: Generic submissions rely on wind speed or rain rate to detect frontal shifts. SkyGuard AI achieves superior precision using only Temperature, Pressure, and Humidity through psychrometric residual modeling [INFERENCE].
  2. True Edge-Cloud Hierarchy: Unlike cloud-only web scripts, SkyGuard AI deploys real C++ TinyML models onto ESP32 microcontrollers, enabling on-device filtering during complete network blackouts [INFERENCE].
  3. Domain-Aware Weather Resolution: Integrates Spatial Kriging across neighboring AWS nodes, preventing the common mistake of flagging genuine severe atmospheric events (squalls/microbursts) as sensor errors [INFERENCE].
  4. Actionable Explainability: Instead of giving operators an uninterpretable decimal score (e.g., 0.87), SkyGuard AI outputs SHAP force plots and clear text explanations (e.g., "Pressure drop of 9 hPa violates single-station temporal continuity but matches 3 adjacent nodes") [PS].

23. Future Scope

  1. Multi-Modal Integration (Post-Hackathon): Expand Tier-2 cloud models to ingest INSAT-3DR satellite cloud-top temperatures and Doppler Weather Radar (DWR) composite reflectivity for regional atmospheric validation [RESEARCHED].
  2. LLM-Based Automated Maintenance Dispatch: Integrate lightweight local LLM agents (e.g., Llama-3-8B) to generate human-formatted maintenance work orders and field repair instructions based on sensor health logs [INFERENCE].
  3. LoRaWAN Mesh AWS Inter-Communication: Enable direct peer-to-peer LoRa communication between nearby AWS stations so adjacent nodes can perform spatial checks locally without requiring cloud relay [INFERENCE].

24. Assumptions & Open Items Log

Consolidated Assumptions Log

  1. [ASSUMPTION] Sampling Frequency: Assumed AWS stations sample parameters at 1-minute to 15-minute intervals, which aligns with standard IMD GPRS transmission windows [RESEARCHED].
  2. [ASSUMPTION] Neighbor Station Density: Assumed adjacent AWS stations exist within a $50\text{km}$ radius in non-alpine regions for spatial correlation checks [INFERENCE].
  3. [ASSUMPTION] Hardware Specifications: Assumed edge nodes utilize ESP32-S3 or equivalent 32-bit dual-core microcontrollers capable of running TensorFlow Lite Micro C++ runtime [RESEARCHED].
  4. [ASSUMPTION] Data Parameter Formatting: Assumed Temperature is reported in $^\circ\text{C}$, Atmospheric Pressure in $\text{hPa}$, and Relative Humidity in $%$ [PS].

Open Items Log (Needs Validation)

  1. [NEEDS VALIDATION] Live IMD API Access: Access to live, un-delayed IMD MetNet AWS feeds requires formal MoES authorization; hackathon build relies on ERA5/NOAA data and synthetic generators [RESEARCHED].
  2. [NEEDS VALIDATION] Exact Satellite Telemetry Frames: The exact binary packet format used in INSAT-3D PRBS satellite bursts is proprietary to IMD Pune Earth Station; simulated via standard JSON over MQTT for prototype [RESEARCHED].

Final Recommendation

Deploy SkyGuard AI, a 3-Tier Hierarchical Anomaly Detection System combining Edge TinyML (ESP32), Cloud Spatial-Temporal XGBoost Ensembles, TreeSHAP Explainability, and Spatial Kriging Data Imputation [INFERENCE]. This architecture directly solves IMD's dual challenge of filtering corrupt sensor data while safeguarding genuine severe weather alerts [PS].

Recommended Stack

  • Edge: ESP32-S3 + PlatformIO + C++ + TensorFlow Lite Micro [RESEARCHED].
  • Cloud Core: Python 3.11 + FastAPI + PyOD + XGBoost + TreeSHAP [RESEARCHED].
  • Database & Cache: TimescaleDB (PostgreSQL) + Redis [RESEARCHED].
  • Frontend UI: Next.js 14 + Tailwind CSS + Leaflet GIS + WebSockets [RESEARCHED].

Biggest Dependency

Access to realistic historical weather time-series data from Indian climatic zones to pre-train baseline Autoencoder and XGBoost models [INFERENCE].

Biggest Risk

Spatial correlation failure in sparsely populated rural/mountain regions where neighboring AWS stations are separated by $>100\text{km}$ [INFERENCE].

Biggest Technical Challenge

Quantizing the 1D-CNN Autoencoder model to fit within the ESP32's $<50\text{KB}$ available SRAM footprint while maintaining sub-20ms inference speed [RESEARCHED].

First 5 Actions

  1. Download NOAA ISD / ERA5 3-parameter ($T, P, RH$) historical time-series datasets for Indian station coordinates [RESEARCHED].
  2. Write Python synthetic anomaly generator script (inject_anomalies.py) to simulate spikes, freezes, drift, and microbursts [INFERENCE].
  3. Train 1D-CNN Autoencoder in PyTorch and export quantized INT8 TFLite model [RESEARCHED].
  4. Compile TFLite Micro C++ firmware on ESP32-S3 DevKit and verify local inference execution over Serial [RESEARCHED].
  5. Build FastAPI ingestion service and Next.js Leaflet GIS dashboard [RESEARCHED].

Validation Before Coding

  • Verify that INT8 quantized TFLite model achieves $>95%$ anomaly detection accuracy on test benchmark dataset before flashing to ESP32 firmware [INFERENCE].

Buildability Score /100

92/100 (Highly feasible for a 4–6 student team using open-source Python ML libraries, standard C++ ESP32 tools, and React/Next.js frameworks) [INFERENCE].

Confidence

High [PS] / [RESEARCHED] (All requirements mapped directly to verified technical components and open-source frameworks).

Research Sources

  1. Title: Network of Automatic Weather Stations: Pseudo Random Burst Sequence Type
    URL: https://mausamjournal.imd.gov.in/index.php/MAUSAM/article/view/412
    Source Type: Academic Journal (IMD Official Publication)
    Supported Claim: Documents IMD AWS network transmission intervals, parameters ($T, P, RH$, rain, wind), satellite PRBS transmission modes, and earth station receiving facilities at Pune and Delhi.
    Reliability Assessment: High (Official Ministry of Earth Sciences / IMD Publication).

  2. Title: Guide to Instruments and Methods of Observation (WMO-No. 8)
    URL: https://community.wmo.int/site/knowledge-hub/programmes-and-initiatives/instruments-and-methods-of-observation-programme-imop/guide-instruments-and-methods-of-observation-wmo-no-8
    Source Type: International Standards Document (World Meteorological Organization)
    Supported Claim: Establishes international quality control guidelines, physical range bounds, step checks, persistence tests, and inter-sensor consistency rules for AWS nodes.
    Reliability Assessment: High (Official World Meteorological Organization Standard).

  3. Title: Quality Control (QC) and Quality Assurance (QA) Procedures for Meteorological Data from Automatic Weather Stations
    URL: https://www.researchgate.net/publication/389652366_Quality_Control_QC_and_Quality_Assurance_QA_Procedures_for_Meteorological_Data_from_Automatic_Weather_Stations
    Source Type: Academic Research Publication
    Supported Claim: Validates WMO QA/QC protocols (range, step, internal consistency, persistence checks) applied to IMD AWS networks.
    Reliability Assessment: High (Peer-reviewed meteorological research).

  4. Title: Edge AI Anomaly Detection Part 4 - Machine Learning on ESP32 via Arduino
    URL: https://www.digikey.ca/en/maker/projects/edge-ai-anomaly-detection-part-4-machine-learning-on-esp32-via-arduino/afacfc3dbaf24c6c94a55c4afae1afb2
    Source Type: Engineering Documentation
    Supported Claim: Demonstrates practical implementation and deployment of Autoencoder anomaly detection models on ESP32 microcontrollers using C++ and TensorFlow Lite Micro.
    Reliability Assessment: High (Verified technical implementation guide).

  5. Title: PyOD Ecosystem: Open-Source Anomaly Detection
    URL: https://pyod.dev/
    Source Type: Open Source Technical Documentation
    Supported Claim: Validates PyOD library algorithms, time-series anomaly detection capabilities, and ensemble mechanisms.
    Reliability Assessment: High (Official open-source library documentation).

02 / What our

DEVELOPERS SAY

" 30M+ Google Gemini tokens went into researching, analyzing, and understanding all 233 SIH problem statements to make them easier to explore and solve. "
Satyam Kumar
Satyam Kumar
CEO , Full Stack Developer
" The platform makes SIH problem statements much easier to understand. Having everything from the problem details to the procedure in one place. "
Rishabh Ranjan
Rishabh Ranjan
COO , Content Writer
" Oh, you got ads? Well, we need to make money too! But, you can use our platform to help you win SIH and take home the prize money. "
Himanshu Kumar
Himanshu Kumar
CMO , Product Reviewer
03 / Are You

READY TO
BUILD?

Get in touch if you need help bringing your ideas to life, or simply have an interesting idea you'd like to talk through. I'm always open to a conversation and exploring new possibilities together.