Skip to main content

Overview

The Smart Irrigation Companion is an AI-powered solution that helps rice farmers in Madagascar optimize water usage, increase yields, and coordinate shared irrigation resources. Developed in partnership with FOFIFA Agritech Lab and deployed across the Alaotra-Mangoro region, the system serves 800+ farmers through bilingual mobile and SMS interfaces.

Pilot Results

  • +15% yield increase for participating farmers
  • +20% water savings through optimized irrigation timing
  • 70% weekly active usage during pilot period
  • Less than 15 minute onboarding for new users

System Features

Predictive Watering Alerts

Farmers receive timely irrigation recommendations based on multiple data sources:
Integration with MeteoMada API provides hourly weather forecasts including:
  • Rainfall predictions
  • Temperature and humidity
  • Evapotranspiration estimates
  • Optimal watering windows
Alerts are sent at dawn when farmers are preparing for field work.
AI recommendations adapt to rice growth stages:
  • Seedling stage: Frequent shallow watering
  • Tillering stage: Moderate irrigation with field drainage
  • Flowering stage: Critical water availability
  • Maturation stage: Reduced irrigation before harvest
Where available, sensor data enhances predictions:
  • Real-time soil moisture levels
  • Historical moisture patterns
  • Field-specific calibration
  • Manual observation logging for non-sensor plots
Scheduling engine considers cooperative resources:
  • Shared pump capacity and availability
  • Solar pump operational hours
  • Maintenance schedules and downtime
  • Equitable slot allocation across farmers

Multi-Channel Delivery

Alerts reach farmers through multiple channels based on their connectivity and preferences:
Primary channel for areas with limited connectivity
Bonjour! Irrigation recommandée aujourd'hui 6h-10h.
Météo: Pas de pluie prévue. Pompe disponible.
Répondez OUI pour confirmer.

Manahoana! Manoro-hevitra ny fanondrahana anio 6h-10h.
Toetr'andro: Tsy misy orana. Paompy misy.
Valio ENY raha ekena.
  • Bilingual (French/Malagasy)
  • Simple keyword responses (OUI/NON, ENY/TSIA)
  • Works on any phone
  • Offline-friendly

Cooperative Scheduling Dashboard

Cooperative coordinators like Voahirana Randria use the web dashboard to manage irrigation schedules for 65+ farmers:
1

View Irrigation Calendar

Drag-and-drop interface shows all scheduled watering slots with color-coded status:
  • Green: Confirmed and ready
  • Yellow: Pending farmer confirmation
  • Red: Scheduling conflict detected
  • Gray: Weather unsuitable
2

Resolve Conflicts

AI-powered conflict detection automatically:
  • Identifies pump capacity overlaps
  • Suggests alternative time slots
  • Prioritizes based on crop stage urgency
  • Notifies affected farmers via SMS
3

Monitor Execution

Real-time dashboard tracking:
  • Farmer confirmation status
  • Actual irrigation logged
  • Water volume consumed
  • Issues flagged for agronomist review
4

Generate Reports

Automated reporting for stakeholders:
  • Weekly cooperative summaries
  • MAEP compliance reports
  • Donor impact metrics
  • SDG alignment tracking

IoT Integration

While designed to work with minimal sensor infrastructure, the system supports IoT enhancement:

Current Sensor Support

Soil Moisture Sensors

Low-cost capacitive sensors provide:
  • Real-time moisture readings
  • Alert threshold triggers
  • Data logged to Supabase
  • Battery-powered for remote fields

Weather Stations

Local microclimate monitoring:
  • Temperature & humidity
  • Rainfall measurement
  • Wind speed
  • Solar radiation (for evapotranspiration)

Pump Monitors

Track cooperative equipment:
  • Operational status (on/off/maintenance)
  • Power consumption
  • Flow rate
  • Usage logs per farmer

Offline Data Collectors

For areas without connectivity:
  • Manual logging tablets
  • QR code field markers
  • Periodic data sync
  • Offline-first database

Future IoT Roadmap

1

Phase 1: Pilot Sensors (Current)

  • 5 soil moisture sensors across pilot plots
  • 1 weather station per cooperative
  • Manual pump logging via mobile app
2

Phase 2: Expanded Coverage

  • Sensor density: 1 per 10 farmers
  • LoRaWAN network for remote connectivity
  • Solar-powered repeater stations
3

Phase 3: Advanced Analytics

  • Satellite imagery integration
  • Drone-based crop monitoring
  • Predictive disease detection
  • Yield forecasting models

Real-World Use Cases

Case Study: Voahirana’s Cooperative

Cooperative irrigation scheduling
Challenge: Voahirana coordinates watering schedules for 65 rice farmers sharing limited pump access. Paper logs and WhatsApp messages led to conflicts, water waste, and crop stress. Solution: Smart Irrigation Companion deployment with:
  • Predictive alerts sent to all 65 farmers
  • Cooperative dashboard for Voahirana
  • SMS fallback for farmers with basic phones
  • Weekly MAEP reporting automation
Results After 12 Weeks:
  • Schedule conflicts reduced from 12/week to 2/week
  • Average yield increase of 18% (exceeding 15% target)
  • Water consumption down 22%
  • Farmer satisfaction NPS: 42
  • Voahirana’s administrative time reduced by 60%

Workflow Example: Daily Irrigation Cycle

Technical Architecture

System Components

// Offline-first architecture with local caching
import 'package:flutter_offline/flutter_offline.dart';
import 'package:supabase_flutter/supabase_flutter.dart';

// Alert caching for offline access
class AlertCache {
  static const maxCachedAlerts = 3;
  
  Future<List<Alert>> getAlerts() async {
    if (await isOnline()) {
      return await syncFromSupabase();
    } else {
      return await loadFromLocalStorage();
    }
  }
}

// Bilingual support
class LocaleManager {
  String getMessage(String key, String locale) {
    return translations[locale][key];
  }
}

Data Model

-- Core entities for irrigation management
CREATE TABLE farmers (
  id UUID PRIMARY KEY,
  name TEXT NOT NULL,
  phone_number TEXT UNIQUE,
  preferred_language TEXT DEFAULT 'mg', -- 'fr' or 'mg'
  cooperative_id UUID REFERENCES cooperatives(id),
  created_at TIMESTAMP DEFAULT NOW()
);

CREATE TABLE plots (
  id UUID PRIMARY KEY,
  farmer_id UUID REFERENCES farmers(id),
  location GEOGRAPHY(POINT),
  crop_type TEXT DEFAULT 'rice',
  planting_date DATE,
  area_hectares DECIMAL,
  last_sensor_reading DECIMAL
);

CREATE TABLE schedule_slots (
  id UUID PRIMARY KEY,
  cooperative_id UUID REFERENCES cooperatives(id),
  farmer_id UUID REFERENCES farmers(id),
  pump_id UUID REFERENCES pumps(id),
  start_time TIMESTAMP,
  end_time TIMESTAMP,
  status TEXT, -- 'pending', 'confirmed', 'completed', 'conflict'
  water_volume_liters DECIMAL
);

CREATE TABLE alerts (
  id UUID PRIMARY KEY,
  farmer_id UUID REFERENCES farmers(id),
  recommendation TEXT,
  reasoning TEXT,
  optimal_window TEXT,
  sent_at TIMESTAMP,
  acknowledged_at TIMESTAMP,
  executed BOOLEAN
);

CREATE TABLE feedback_entries (
  id UUID PRIMARY KEY,
  farmer_id UUID REFERENCES farmers(id),
  alert_id UUID REFERENCES alerts(id),
  feedback_text TEXT,
  voice_recording_url TEXT,
  flagged_for_review BOOLEAN DEFAULT FALSE,
  created_at TIMESTAMP DEFAULT NOW()
);

Accessibility & Localization

Design for Low Literacy

Visual Communication

  • Icon-based navigation
  • Color-coded status indicators
  • Illustrated instructions
  • Minimal text on mobile screens

Voice Interface

  • Voice prompts for all key actions
  • Audio onboarding walkthrough
  • Voice feedback submission
  • Text-to-speech for alerts

Simple Language

  • Short sentences (< 10 words)
  • Common agricultural vocabulary
  • Avoid technical jargon
  • Field-tested phrasing

Offline Documentation

  • Printable quick-start guides
  • Poster-based QR codes
  • Training videos on SD cards
  • Community demo sessions

Bilingual Support (French/Malagasy)

All interface elements, alerts, and documentation available in both languages:
  • Dynamic language switching based on farmer preference
  • Mixed-language cooperatives supported
  • Translation review by FOFIFA agronomists
  • Cultural adaptation of agricultural terminology

Offline-First Architecture

1

SMS Fallback

When mobile app connectivity fails, system automatically:
  • Routes alerts via SMS instead
  • Accepts simple keyword responses
  • Queues confirmations for sync
  • Maintains service continuity
2

Local Caching

Mobile app stores locally:
  • Last 3 irrigation alerts
  • Current schedule
  • Cooperative contact info
  • Basic troubleshooting guides
3

Sync When Connected

Upon reconnection:
  • Upload farmer feedback
  • Download updated forecasts
  • Sync schedule changes
  • Resolve data conflicts

Getting Started

For Farmers

1

Register with Cooperative

Contact your cooperative coordinator to:
  • Provide phone number
  • Select language preference (French/Malagasy)
  • Share plot information
  • Choose alert delivery method (SMS or app)
2

Receive Training

Attend onboarding session covering:
  • How to read irrigation alerts
  • Confirming or declining recommendations
  • Logging irrigation outcomes
  • Reporting issues
Training materials available as:
  • In-person demo (bi-weekly)
  • WhatsApp micro-lessons
  • Printable guides
3

Start Receiving Alerts

Within 24 hours:
  • Test SMS sent to verify phone number
  • First irrigation recommendation delivered
  • Welcome message with help resources
4

Provide Feedback

After each irrigation:
  • SMS prompts for outcome (Bon/Problème)
  • Option to log via mobile app
  • Voice recording for detailed issues
  • Agronomist follow-up if flagged

For Cooperative Coordinators

Web dashboard available at: https://fata.pro/irrigation-dashboardLogin credentials provided during cooperative onboarding.
  • View irrigation calendar for all farmers
  • Drag-and-drop slot assignments
  • Resolve pump conflicts
  • Update pump maintenance schedules
Automated reports available:
  • Weekly cooperative summary (email)
  • MAEP monthly compliance report
  • Donor impact metrics (quarterly)
  • SDG tracking dashboard

Support & Resources

Field Support

Contact cooperative liaison via WhatsAppResponse time: Within 24 hours

Technical Issues

SMS AIDE to support hotlineFor app problems, connectivity issues

Agronomist Consultation

Schedule via cooperative coordinatorFor crop-specific irrigation guidance

Training Resources

Access bootcamp materials and videosContinuous learning opportunities

The Smart Irrigation Companion is continuously improving based on farmer feedback. Pilot participants contribute to shaping features for the 2026 rollout across additional cooperatives.