Logo Lanfrica

BrittonNK/CapstoneProject_BrittonKinuthia

Domain:

agriculture

Record type:

project
Creator:
Bri
Host:
Repo for the Scientific Computing Hydrosense Kenya Capstone Project. # HydroSense-Kenya: Scientific Computing Capstone 🌍💧 **Author:** Britton Ndungu Kinuthia **Course:** ICS 2207 Scientific Computing **Instructor:** Dr. Lawrence Nderu > **A simulation-driven irrigation optimization system using numerical methods and stochastic modeling to reduce water waste under climate uncertainty.** --- ## 📌 Executive Summary HydroSense-Kenya replaces heuristic farming practices with predictive, data-driven decision intelligence. By integrating rigorous data engineering, differential equation solvers, and Monte Carlo weather forecasting, this system mathematically determines the exact moment and volume to irrigate, ensuring crop safety while minimizing pump energy and water waste. ## 🧰 Tech Stack * **Language:** Python 3.14 * **Data Engineering:** NumPy, Pandas * **Scientific Visualization:** Matplotlib * **Validation & Testing:** PyTest * **Environment:** Jupyter Notebooks ## 🔬 Scientific & Computational Scope This system was built from first principles across six computational stages: * **Level 1 & 2:** System modeling, vectorization, and computational error analysis. * **Level 3 (Numerical Methods):** Custom, from-scratch implementation of Root Finding (Bisection, Newton-Raphson), Differentiation, and Integration algorithms. * **Level 4 (Data Analysis):** Automated data cleaning, sensor anomaly detection, and physical relationship visualization. * **Level 5 (Simulation & Optimization):** Predictive modeling using Euler & RK4 ODE solvers paired with a 1,000-scenario Monte Carlo stochastic weather simulation. * **Level 6 (Integration):** Reproducible dashboard integration, unit testing, and defensive programming. ## 📊 Key Engineering Results * **Water Conservation:** Minimized irrigation volume by deploying a mathematically constrained threshold-trigger algorithm. * **Hardware Efficiency:** Grouped irrigation into calculated bursts to prevent pump cavitation and reduce daily electrical load spikes. * **Risk Management:** Successfully quant …