Skip to content

utkarshranaa/CropCast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CropCast

Overview

CropCast is a machine learning-powered tool designed to predict agricultural yield based on various environmental and agricultural factors. It utilizes multiple regression models to analyze the impact of rainfall, pesticides, temperature, and crop type on yield prediction.

Features

  • Data Preprocessing: Cleans and processes agricultural datasets.
  • Multiple Machine Learning Models: Implements:
    • Linear Regression
    • Lasso Regression
    • Ridge Regression
    • Decision Tree Regressor
    • K-Nearest Neighbors (KNN)
  • Model Evaluation: Uses Mean Absolute Error (MAE) and R² score to compare performance.
  • Yield Prediction Function: Predicts yield based on Year, Rainfall, Pesticides, Temperature, Area, and Crop Type.

Dataset

The project utilizes the following CSV files:

  • yield_df.csv: Contains agricultural yield data.
  • rainfall.csv: Historical rainfall data.
  • temp.csv: Temperature data.
  • pesticides.csv: Pesticide usage statistics.

Installation

Prerequisites

Ensure you have Python and the following libraries installed:

pip install pandas numpy seaborn matplotlib scikit-learn

Clone Repository

git clone https://github.com/utkarshranaa/CropCast.git
cd CropCast

Usage

Running the Jupyter Notebook

  1. Open the CropCast.ipynb notebook.
  2. Execute all cells to preprocess data, train models, and generate predictions.

Model Performance

Each model is evaluated based on:

  • Mean Absolute Error (MAE)
  • R² Score

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Feel free to submit issues or pull requests to improve the project.

Authors

Developed by Utkarsh Rana.

About

CropCast is an AI-powered tool that predicts agricultural yield based on rainfall, temperature, pesticides, and other factors. It leverages multiple ML models to help farmers make data-driven decisions.🌾

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors