Automating NDVI-Based Crop Health Monitoring Using Open-Source Remote Sensing and AI-Assisted Workflow Integration in the Mwea Irrigation Scheme, Kenya
Integrating spatiotemporal NDVI analysis, n8n workflow automation, and Gemini AI for precision irrigation decision support
Authors: Geoffrey Kanake Gathuria, Kelvin Munenea, Brian Kiilu Kingetaa, Dennis Macharia Ngunua (2025)
- a Gensre Engineering & Research, Nairobi, Kenya
Abstract
Monitoring crop vigour through remote sensing provides a scalable and quantitative approach to assessing vegetation dynamics and supporting precision agriculture. This study presents an integrated framework that combines spatiotemporal NDVI analysis in R Studio with workflow automation in n8n to enhance data-driven decision support within the Mwea Irrigation Scheme in Kenya, the country’s largest rice production zone. Multispectral datasets from Landsat 8, Landsat 9, and Sentinel-2 were pre-processed, atmospherically corrected, and composited at 14-day intervals to generate NDVI time-series maps. The resulting spectral indices were analysed to capture intra-seasonal vegetation variability, revealing strong correlations between NDVI trends, irrigation schedules, and crop growth stages. To translate these technical outputs into practical insights, an automated n8n pipeline was implemented using the Model Context Protocol (MCP) integrated with Gemini AI (gemini-2.5-flash). This configuration enabled context-aware data translation, converting NDVI layers into non-technical vegetation health summaries that were distributed through WhatsApp and email. The automated system enhanced the interpretability, timeliness, and usability of remote sensing outputs for farm-level decision-making. The findings demonstrate that integrating open-source geospatial analytics with AI-assisted workflow automation can improve data accessibility, temporal responsiveness, and decision intelligence in precision irrigation management. This approach provides a scalable model for operationalising multi-sensor data fusion and contextual automation in agricultural monitoring.
Key findings
- −0.005 to 0.626 NDVI range observed over the two-month period
- Daily Automated workflow cadence (06:55 a.m. EAT)
- 6,252.82 ha Area with improved crop health (example daily alert)
- 2,197.82 ha Area with declining crop health (example daily alert)
- Without failure Scheduled workflow execution over 2 months
- Max composite Selected over median for all subsequent analyses
Keywords
Normalized Difference Vegetation Index (NDVI), Remote Sensing, Precision Agriculture, Workflow Automation, n8n Software, Model Context Protocol (MCP), Gemini AI, Spatiotemporal Analysis, Decision Support Systems, Mwea Irrigation Scheme (Kenya)
Related services
- Research & Technical Reporting - Rigorous feasibility studies, technical reports, and research services for engineering, environment, and development projects in Kenya. Evidence-based, donor-ready documentation.
- Geospatial Analysis & GIS - Expert GIS mapping, satellite imagery analysis, and spatial modelling services in Kenya. Data-driven geospatial intelligence for land, environment, and infrastructure decisions.
- Dashboards & Digital Tools - Custom GIS dashboards, data visualisation platforms, and real-time monitoring tools for engineering, environment, and development projects in Kenya. Interactive. Scalable. Decision-ready.
Related case studies
- Digital Twin Development Project - Photogrammetry and Reality Capture, Kenya
- Kenya National Thematic Mapping Programme - Thematic Mapping and Spatial Analysis, Kenya
- Tithonia diversifolia Distribution Mapping — Nyeri Central - Species Distribution Mapping and Field Survey, Nyeri Central Sub County, Nyeri County, Kenya
