Skip to content
W

Wind Guard

Smart AI for Smarter Wind Turbines

Created on 8th March 2026

•

W

Wind Guard

Smart AI for Smarter Wind Turbines

The problem Wind Guard solves

This project focuses on building a predictive maintenance system for renewable energy assets, specifically wind turbines. Wind turbines are highly valuable machines that operate in harsh environments, making failures extremely costly.

  • Problem Context:

    • Wind turbine failures are expensive, ranging from $200k to $500k.
    • Unscheduled reactive maintenance costs up to 3× more than planned maintenance.
    • Each failure results in 15+ days of downtime.
    • Importantly, 80% of failures show early warning signs, making them preventable.
  • Our Solution:
    We have developed a robust data pipeline that collects raw data from 86 turbine sensors. After preprocessing and feature engineering, we generated 300+ features. Using this dataset, we trained machine learning models on 1.2 million records, including fault and failure logs, to predict the Remaining Useful Life (RUL) of turbines.

  • Key Capabilities:

    • The system predicts the exact number of days before a turbine is likely to fail.
    • It identifies root causes of failure, such as increased generator temperature, fluctuations in drive train ratio, power output anomalies, and other critical factors.
    • Early detection enables preventive maintenance, reducing downtime and costs.
    • Maintenance scheduling is automated using n8n, ensuring timely technician deployment.
  • Dataset:
    The solution is built on a real-world SCADA dataset collected at 10-minute intervals from a wind farm, ensuring practical applicability and reliability.

Challenges we ran into

🧗 MAJOR CHALLENGES WE ENCOUNTERED
While Building This Solution

  1. Extreme Class Imbalance
    Only 50,000 failure rows out of 1.2 million (4%). Model wanted to predict "normal" 96% of the time and achieve 96% accuracy while catching zero failures. Solved with scale_pos_weight = 23 and optimizing for recall, not accuracy.

  2. Time Series Leakage
    Rolling windows accidentally used future data. Validation looked perfect (99% accuracy) but model would fail in production. Solved with strict temporal split (80/20) + 7-day buffer between train and validation.

  3. Only 5 of 22 Turbines Had Failures
    Model tried to memorize "turbine 10 fails often, turbine 5 never fails" instead of learning real physics. Solved by removing asset_id entirely and using physics-based features (Gearbox_delta, drivetrain_ratio) that generalize across turbines.

  4. Raw Sensor Data Was Useless Alone
    Temperature 60°C means nothing without context. Solved by engineering 89 physics-based features: Gearbox_delta (temp - ambient), drivetrain_ratio (gen_rpm/rotor_rpm), power_efficiency (power/wind_speed³), turbulence, current_std across phases.

  5. Memory Explosion from Rolling Features
    86 sensors × 4 stats × 3 windows = 1,032 new columns. 1.2M rows × 1,100 columns = 11GB RAM. System crashed. Solved by reducing to only physics-based features (15) × 2 windows × 2 stats = 60 rolling features.

  6. NaN Targets Confused Training
    114,785 rows had target = NaN (repair periods, post-failure). Model didn't know which rows to use. Solved by separating dataset: known targets (1.08M) for training, unknown targets for inference only.

  7. Default Threshold 0.5 Was Wrong
    Max predicted probability was only 0.32. Using 0.5 gave zero positive predictions. Solved by analyzing prediction distribution and using PR-curve to find optimal threshold = 0.038.

  8. SHAP Was Too Slow for Real-Time
    Computing SHAP for all rows took hours. Dashboard would be unusable. Solved by pre-computing global feature importance and caching explanations for fast retrieval.

  9. Live ML Inference = Demo Risk
    Real-time predictions could crash during demo. Judges would see loading spinners, not wow. Solved by pre-computing ALL predictions (95k rows) and building TimeReplayEngine for 10-second "live" updates.

  10. Making It Look "Wow" Without Code Bloat
    Streamlit easy but basic. Dash powerful but complex. Solved by choosing Dash, building reusable glass-morphism CSS, integrating Three.js for 3D turbine, and Plotly for interactive charts.

  11. Explaining AI to Non-Technical Judges
    Black-box predictions lose trust. Solved by translating SHAP values to plain English: "Gearbox is 13°C hotter than normal (+32% risk). Recommended: Check cooling system."

  12. Deployment Complexity
    FastAPI + Dash + ML + WebSockets + 3D = nightmare. Solved by Dockerizing everything: backend container, frontend container, Nginx reverse proxy, shared data volume. One command deploys all.

Discussion

Builders also viewed

See more projects on Devfolio