A comprehensive system for agricultural data generation and machine learning predictions for The Gambia.
# SEED
A comprehensive system for agricultural data generation and machine learning predictions for The Gambia.
## !NOTE
this is a learning project for Dawda Borje Kujabi to learn machine learning
## 🌾 Features
### Data Generation
- **Historical Data**: Agricultural datasets from 2001-2021
- **Real Data Integration**: Uses actual datasets from `data/` directory
- **Multiple Categories**: Crops, Fisheries, Sales, Livestock, Farm Practices, Land Tenure
- **Growth Projections**: Realistic growth patterns with climate variability
### Machine Learning Model
- **Multi-Target Prediction**: Yield, Price, and Production
- **Environmental Factors**: Rainfall, temperature, humidity, soil pH
- **Economic Factors**: Fuel prices, labor costs, market demand
- **Technology Factors**: Fertilizer use, irrigation, crop type
- **Future Predictions**: Support for current and future years (2024-2030+)
## 🚀 Quick Start
### Run Main Predictions
```bash
# Run comprehensive predictions for current and future years
python seed/main.py
```
### Run Specific Year Predictions
```bash
# Predict for current year
python scripts/run_predictions.py 2024
# Predict for future year
python scripts/run_predictions.py 2029
# Predict specific crop for 2025
python scripts/run_predictions.py 2025 --crop Rice
# Rainfall impact analysis for 2026
python scripts/run_predictions.py 2026 --rainfall
```
### Test Model
```bash
# Simple model test
python test_model.py
```
## 📊 Prediction Capabilities
### Current Year Predictions
- **2024**: Current year with real data
- **Good/Average/Poor Conditions**: Multiple scenarios
- **All Crops**: Rice, Millet, Sorghum, Maize, Groundnuts, Cotton, Vegetables, Fruits
### Future Year Predictions
- **2025-2030+**: Future predictions with trend adjustments
- **Climate Change**: Temperature and rainfall projections
- **Technology Adoption**: Increasing fertilizer and irrigation use
- **Economic Trends**: Rising fuel prices and labor costs
- **Market Evolution** …