# o-ns23/smart-irrigation-requirement-prediction-using-machine-learning architecture

> Architecture diagram of the GitHub repository o-ns23/smart-irrigation-requirement-prediction-using-machine-learning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning
- Repository: https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning

## Overview

This repository is a notebook-based machine-learning project for classifying irrigation need as Low, Medium, or High. Its documented workflow is dataset preprocessing, model training, and evaluation; the notebook also contains visualizations, and the report is a separate included artifact. The README documents these stages but no source excerpts were available, so specific model-to-model calls, saved-model behavior, and a deployed farmer-facing prediction interface are not represented.

Main entry points: [`Irrigation.ipynb`](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb) (Model training), [`irrigation_prediction.csv`](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/irrigation_prediction.csv) (Agriculture dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["ML workflow"]
  node_preprocessing["Data preprocessing<br/>[Irrigation.ipynb]"]
  node_training["Model training<br/>[Irrigation.ipynb]"]
  node_prediction["Irrigation classification<br/>[Irrigation.ipynb]"]
end

subgraph group_insights["Evaluation insights"]
  node_evaluation["Model evaluation<br/>[Irrigation.ipynb]"]
  node_visualizations["Performance visualizations<br/>[Irrigation.ipynb]"]
end

subgraph group_artifacts["Project artifacts"]
  node_dataset["Agriculture dataset"]
  node_report["Project report"]
end

node_farmer(("Farmer or planner"))
node_irrigation_need["Low / Medium / High need"]

node_dataset -->|"provides data"| node_preprocessing
node_preprocessing -->|"prepares features"| node_training
node_training -->|"evaluated by"| node_evaluation
node_training -->|"classifies need"| node_prediction
node_prediction -->|"produces class"| node_irrigation_need
node_evaluation -->|"summarized as"| node_visualizations
node_farmer -.->|"uses guidance"| node_irrigation_need

click node_dataset "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/irrigation_prediction.csv"
click node_preprocessing "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb"
click node_training "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb"
click node_prediction "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb"
click node_evaluation "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb"
click node_visualizations "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb"
click node_report "https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Smart_Irrigation_Requirement_Prediction_using_ML_Project_Report.pdf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_preprocessing,node_training,node_prediction toneBlue
class node_evaluation,node_visualizations toneAmber
class node_dataset,node_report toneMint
class node_farmer,node_irrigation_need toneIndigo
```

## Components

### ML workflow

- [Data preprocessing](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb): `Irrigation.ipynb`
- [Model training](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb): `Irrigation.ipynb`
- [Irrigation classification](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb): `Irrigation.ipynb`

### Evaluation insights

- [Model evaluation](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb): `Irrigation.ipynb`
- [Performance visualizations](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Irrigation.ipynb): `Irrigation.ipynb`

### Project artifacts

- [Agriculture dataset](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/irrigation_prediction.csv): `irrigation_prediction.csv`
- [Project report](https://github.com/o-ns23/smart-irrigation-requirement-prediction-using-machine-learning/blob/main/Smart_Irrigation_Requirement_Prediction_using_ML_Project_Report.pdf): `Smart_Irrigation_Requirement_Prediction_using_ML_Project_Report.pdf`

### Other components

- **Farmer or planner**
- **Low / Medium / High need**

## Connections

- Agriculture dataset → Data preprocessing: provides data
- Data preprocessing → Model training: prepares features
- Model training → Model evaluation: evaluated by
- Model training → Irrigation classification: classifies need
- Irrigation classification → Low / Medium / High need: produces class
- Model evaluation → Performance visualizations: summarized as
- Farmer or planner → Low / Medium / High need: uses guidance
