Skip to content

NjeriCodeCraft/Land-Degradation-Hackathon

Repository files navigation

🌍 Land ReGen - AI-Powered Land Health Analysis

Land Degradation Hackathon Project - Build AI-Powered Solutions for a Greener Planet link for the deployment; https://landdegradation254.netlify.app/

🎯 Project Overview

Land ReGen is a comprehensive AI-powered platform that analyzes land health, assesses degradation risks, and provides actionable restoration plans. Built for the Land Degradation Hackathon, it combines real satellite data, advanced AI analysis, and interactive visualization to help combat land degradation and promote regenerative practices.

✨ Key Features

πŸ” Real-Time Satellite Data Analysis

  • Multi-API Integration: Sentinel Hub, NASA MODIS, and Landsat data sources
  • NDVI Analysis: Vegetation health assessment using satellite imagery
  • Fallback Strategy: Intelligent API switching for maximum reliability
  • Real-time Processing: Live analysis of land health indicators

πŸ€– Advanced AI Analysis

  • Claude AI Integration: Expert environmental analysis with detailed insights
  • Comprehensive Assessment: Soil health, erosion risk, and degradation analysis
  • Trend Detection: Identifying improving, declining, or stable vegetation patterns
  • Contextual Recommendations: Location-specific restoration strategies

πŸ“Š Interactive Data Visualization

  • NDVI Trend Charts: Time-series analysis of vegetation health
  • Environmental Metrics: Carbon sequestration, biodiversity, water retention
  • Risk Assessment Dashboards: Visual indicators for degradation and restoration potential
  • Multi-metric Analysis: Comprehensive environmental health overview

πŸ“‹ Detailed Action Planning

  • Cost Estimation: Detailed financial planning for restoration projects
  • Timeline Management: Phased implementation schedules (immediate, short-term, long-term)
  • Resource Requirements: Equipment, materials, and expertise needed
  • Impact Assessment: Expected environmental benefits and outcomes

🌱 Environmental Metrics Dashboard

  • Carbon Sequestration Potential: Annual COβ‚‚ storage capacity
  • Biodiversity Index: Species diversity and ecosystem richness
  • Water Retention Capacity: Soil water holding and infiltration
  • Ecosystem Resilience: Recovery potential from disturbances

πŸ—οΈ Technical Architecture

Frontend (React + TypeScript)

  • Modern UI: Tailwind CSS with Radix UI components
  • Interactive Maps: Leaflet integration for location selection
  • Data Visualization: Recharts for comprehensive charting
  • Responsive Design: Mobile-first approach for all devices

Backend (Node.js + Express)

  • RESTful API: Clean, documented API endpoints
  • Database Integration: PostgreSQL for data persistence
  • Security: Helmet, rate limiting, and CORS protection
  • Monitoring: Health checks and error tracking

GIS Integration

  • Sentinel Hub: High-resolution Sentinel-2 L2A data (10m resolution)
  • NASA APIs: MODIS vegetation indices (250m resolution)
  • Landsat: Surface reflectance data (30m resolution)
  • Intelligent Fallbacks: Multiple data sources for reliability

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • PostgreSQL (optional, for data persistence)
  • API keys for satellite data sources (optional)

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/landregen.git
    cd landregen
  2. Install dependencies

    # Frontend
    npm install
    
    # Backend
    cd backend
    npm install
  3. Configure environment variables

    # Backend .env
    CLAUDE_API_KEY=your_claude_api_key
    SENTINEL_HUB_CLIENT_ID=your_sentinel_hub_id
    SENTINEL_HUB_CLIENT_SECRET=your_sentinel_hub_secret
    NASA_API_KEY=your_nasa_api_key
    DATABASE_URL=postgresql://user:pass@localhost:5432/landregen
  4. Start the application

    # Backend (Terminal 1)
    cd backend
    npm run dev
    
    # Frontend (Terminal 2)
    npm run dev
  5. Access the application

πŸ“Š API Endpoints

Analysis

  • POST /api/analyze - Analyze land health for coordinates or image
  • GET /api/history - Get analysis history
  • GET /api/analysis/:id - Get specific analysis by ID

Health & Monitoring

  • GET /health - Health check with database status
  • GET / - API information and available endpoints

🌍 Environmental Impact

Real-World Applications

  • Agricultural Planning: Optimize crop rotation and soil management
  • Conservation Projects: Identify priority areas for restoration
  • Climate Action: Carbon sequestration potential assessment
  • Policy Support: Data-driven environmental decision making

SDG Alignment

  • SDG 15: Life on Land - Combat desertification and halt biodiversity loss
  • SDG 13: Climate Action - Strengthen resilience to climate-related hazards
  • SDG 6: Clean Water - Protect and restore water-related ecosystems

πŸ”§ Development

Project Structure

landregen/
β”œβ”€β”€ src/                    # Frontend React application
β”‚   β”œβ”€β”€ components/         # UI components
β”‚   β”œβ”€β”€ hooks/             # Custom React hooks
β”‚   β”œβ”€β”€ lib/               # Utility functions
β”‚   └── utils/             # Helper functions
β”œβ”€β”€ backend/               # Node.js API server
β”‚   β”œβ”€β”€ lib/               # Core business logic
β”‚   └── index.js           # Express server setup
β”œβ”€β”€ docs/                  # Documentation
└── deployment/            # Deployment configurations

Key Technologies

  • Frontend: React 18, TypeScript, Tailwind CSS, Recharts, Leaflet
  • Backend: Node.js, Express, PostgreSQL, Claude AI API
  • GIS: Sentinel Hub, NASA APIs, Landsat
  • Deployment: Vercel, Railway, Docker

πŸ“ˆ Performance & Scalability

Optimization Features

  • Code Splitting: Lazy loading for optimal performance
  • Caching: Redis integration for API response caching
  • Compression: Gzip compression for reduced bandwidth
  • Rate Limiting: API protection against abuse
  • Database Indexing: Optimized queries for large datasets

Monitoring

  • Health Checks: Real-time system status monitoring
  • Error Tracking: Comprehensive error logging and reporting
  • Performance Metrics: Response time and throughput monitoring
  • Database Monitoring: Connection health and query performance

🌟 Hackathon Highlights

Innovation Points

  1. Multi-Source Data Fusion: Combines multiple satellite data sources
  2. AI-Powered Analysis: Advanced environmental assessment using Claude AI
  3. Comprehensive Visualization: Interactive charts and dashboards
  4. Actionable Insights: Detailed restoration plans with cost estimates
  5. Production Ready: Scalable architecture with proper security

Environmental Impact

  • Real-time Monitoring: Continuous land health assessment
  • Preventive Action: Early degradation detection and intervention
  • Restoration Planning: Data-driven restoration strategies
  • Climate Resilience: Carbon sequestration and adaptation planning

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Claude AI for advanced environmental analysis
  • Sentinel Hub for high-resolution satellite data
  • NASA for MODIS and Landsat data access
  • Open Source Community for the amazing tools and libraries

πŸ“ž Contact


Built with ❀️ for the Land Degradation Hackathon

Empowering environmental restoration through AI and satellite technology

About

Land ReGen is a comprehensive AI-powered platform that analyzes land health, assesses degradation risks, and provides actionable restoration plans. Built for the Land Degradation Hackathon, it combines real satellite data, advanced AI analysis, and interactive visualization to help combat land degradation and promote regenerative practices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors