A Hybrid AI framework for predicting maize yields in data-scarce environments using Generative AI, Transfer Learning, and multi-channel dissemination (USSD, Mobile, Web) for smallholder farmers in Zimbabwe.
# maize_yield_project
A Hybrid AI framework for predicting maize yields in data-scarce environments using Generative AI, Transfer Learning, and multi-channel dissemination (USSD, Mobile, Web) for smallholder farmers in Zimbabwe.
Phase 7: Inclusive Dissemination and Designed Interaction Architecture
This phase focuses on the "last mile" delivery of the AI model's insights. Because smallholder farmers in Sub-Saharan Africa experience varying levels of digital literacy and internet access, this framework deploys predictions across multiple inclusive channels: a Web Dashboard, a Zero-Data USSD/SMS system, Voice AI (IVR), and an offline-capable Mobile App.
π Folder Structure
To prevent dependency conflicts between the Python AI backend and the Dart/Flutter frontend, the repository is structured as follows:
maize_yield_project/
β
βββ backend_api/ # Python Flask Server (AI Engine, Mock API, & USSD Logic)
β βββ venv/ # Python virtual environment
β βββ app.py # Main Flask application and API routes
β βββ ussd_handler.py # Africa's Talking USSD/SMS logic
β βββ requirements.txt # Dependencies (Flask, requests, tensorflow, etc.)
β
βββ web_dashboard/ # Interactive Web Interface
β βββ app.py # Main dashboard application (Streamlit)
β βββ requirements.txt # Dependencies specific to the web UI
β
βββ mobile_app/ # Flutter Application (for Extension Officers)
β βββ lib/
β β βββ main.dart # Flutter app entry point
β β βββ services/ # API connection logic
β β βββ database/ # SQLite local caching logic
β βββ pubspec.yaml # Flutter dependencies
β
βββ notebooks/ # Jupyter/Colab Notebooks for Model Training
βββ 01_data_extraction.ipynb
βββ 02_model_training.ipynb
π οΈ Prerequisites & Local Setup (macOS)
To run these interfaces locally on your Mac, ensure you have the follow β¦