Skip to content

ahmedm-sallam/Project-Predictive-Modeling-for-Agriculture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project-Predictive-Modeling-for-Agriculture

farmer_in_a_field

Overview

Welcome to the "Sowing Success" project! This repository contains the code and resources for a machine learning project that assists farmers in selecting the best crops for their fields. By analyzing soil metrics, including nitrogen, phosphorous, potassium levels, and soil pH, our goal is to optimize crop selection for maximum yield.

Project Description

Farmers face the challenging task of choosing the right crops to plant each season, with soil condition being a crucial factor. Each crop has an ideal soil condition for optimal growth and yield. To address this challenge, we've employed machine learning to build a multi-class classification model that predicts the best crop based on soil measurements.

Data

The dataset used in this project is named soil_measures.csv and contains the following columns:

  • "N": Nitrogen content ratio in the soil
  • "P": Phosphorous content ratio in the soil
  • "K": Potassium content ratio in the soil
  • "pH": pH value of the soil
  • "crop": Categorical values representing various crops (target variable).

The data has been preprocessed and prepared for machine learning.

Data Exploration

The Jupyter Notebook includes code for data exploration, which covers the following:

  • Data distribution analysis
  • Handling missing values
  • Crop distribution visualization
  • Feature correlations

Model Development

The core of this project is the development of a multi-class classification model for crop prediction. We use logistic regression with the 'multinomial' option to address the multicollinearity issue between highly correlated features.

Model Evaluation

The model's performance is evaluated using F1-scores, and you can see the results in the Jupyter Notebook. We aim to achieve a reliable and effective model for crop selection.

Results

The project aims to assist farmers in making informed decisions based on data, leading to improved crop yields and sustainable agriculture practices. The results demonstrate the viability of machine learning in crop selection and provide insights into improving agricultural practices.

Conclusion

The "Sowing Success" project demonstrates the potential of machine learning in agriculture. By leveraging data and technology, we can help farmers maximize their yields, reduce costs, and make more sustainable choices. If you have any questions or would like to learn more, please don't hesitate to reach out.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published