Skip to content

nirmalyabag20/Crop-Yield-Prediction-using-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Crop Yield Prediction~


Project Overview~

This project predicts crop yields based on various factors such as area, crop type, year, average rainfall, pesticide use, and average temperature. Accurate yield predictions can guide agricultural planning, optimize resource management, and support sustainable farming practices.

Dataset Overview~

The dataset used contains 28,242 records with the following features:

  1. Area: The geographical region where crops are grown.

  2. Item: The type of crop (e.g., wheat, rice).

  3. Year: The year of crop yield data.

  4. hg/ha_yield: Crop yield in hectograms per hectare.

  5. Average Rainfall (mm per year): The average annual rainfall in millimeters for the area.

  6. Pesticides (tonnes): The amount of pesticides used per area in tonnes.

  7. Average Temperature (°C): The average annual temperature in the region.

Key Features~

• Data Analysis: Explored relationships between rainfall, temperature, pesticide usage, and crop yield.

• Feature Engineering: Created additional variables from the dataset to improve prediction accuracy.

• Machine Learning Models: Tested algorithms including Linear Regression, Random Forest, and Gradient Boosting.

• Data Visualization: Visualized the influence of climatic factors and pesticide usage on crop yield.

Results~

• Achieved 93% prediction accuracy using the Decision Tree Regressor, which demonstrated the best performance.

• Notable factors influencing yield: rainfall, temperature, and pesticide use.

About

This project uses machine learning to predict crop yields based on factors like region, crop type, rainfall, temperature, and pesticide use. By analyzing a dataset of over 28,000 records, the models provide accurate yield forecasts, helping optimize farming decisions and resource management, ultimately contributing to sustainable agriculture.

Topics

Resources

Stars

Watchers

Forks

Contributors