Our Hackathon Journey: Solar Energy Prediction AI

Inspiration

We were inspired by the struggle of rural communities in India that rely entirely on solar power due to unreliable grid electricity. Seeing how solar energy could transform lives—if only its generation were more predictable—motivated us to build an AI model that forecasts solar irradiance with high accuracy.

Key Insight:

"If we can predict sunlight as reliably as weather forecasts, we can reduce energy waste by 30%."


What We Learned

  1. Data Engineering:

    • Time-series data requires careful handling (e.g., wind direction → vector representation).
    • Lesson: Cyclic features (sin/cos) improve model performance for periodic patterns.
  2. Model Design:

    • Hybrid architectures (LSTM + CNN) can fuse multi-modal data effectively.
    • Lesson: Custom loss functions (weighted MAE) are crucial for time-dependent predictions.
  3. Teamwork:

    • Balancing innovation with scalability is hard but necessary.

⚙️ How We Built It

1. Data Pipeline

  • Challenge: Limited datasets with aligned weather + satellite images.
    • Solution: Augmented hackathon data with test-set samples.
  • Preprocessing:
    python # Wind → Vector def wind_to_vector(speed, direction): return speed * np.array([np.cos(direction), np.sin(direction)])

2. Model Architecture

  • Hierarchical Fusion:
    • LSTM (weather) + CNN (images) → Concatenate → Time-distributed Dense.
  • Key Code:
    python # Custom loss: Penalize late-step errors loss = tf.reduce_mean(weights * tf.abs(y_true - y_pred))

3. Deployment

  • Optimized for edge devices (1.25ms/pred on GPU).

🔥 Challenges & Solutions

Challenge Solution
Finding datasets Used synthetic data + careful augmentation
Debugging model errors Visualized intermediate layers (TensorBoard)
Team disagreements A/B tested both approaches, let data decide

Hardest Part:

"Choosing between a complex cluster-based model (high accuracy but slow) vs. a simpler unified model (faster but 2% less accurate). We prioritized deployability."


Future Work

  • Extend to wind energy prediction.
  • Open-source the code to help other rural communities.

Final Thought:

"Hackathons aren’t just about building—they’re about learning to solve real problems under constraints."


Why This Matters:

  • Impact: Better solar forecasts → More reliable clean energy.
  • innovation: Hybrid AI for time-series + image fusion.
  • Team Growth: From "two ML enthusiasts" to "production-ready AI engineers."

Built With

Share this project:

Updates

Submission history