CoolFace
Apppublic

Salmane20/soil-growth-prediction

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Soil Growth Prediction System ๐ŸŒฑ

This application uses machine learning to predict whether soil is suitable for growing crops based on various soil parameters.

Features

  • โ€”Analyzes multiple soil chemical properties
  • โ€”Considers environmental factors
  • โ€”Provides confidence scores for predictions
  • โ€”User-friendly interface with sliders and dropdowns

How to Use

  1. 1.Adjust the sliders for numerical soil properties
  2. 2.Select appropriate categories from dropdowns
  3. 3.Click 'Analyze Soil' to get the prediction
  4. 4.View the result showing if the soil is suitable for growing crops

Model Details

  • โ€”Built using TensorFlow
  • โ€”Trained on a comprehensive soil dataset
  • โ€”Uses both numerical and categorical features
  • โ€”Implements proper preprocessing for accurate predictions

Technical Requirements

  • โ€”Python 3.8+
  • โ€”TensorFlow
  • โ€”scikit-learn
  • โ€”pandas
  • โ€”numpy
  • โ€”gradio

License

This project is open-source and available for educational and research purposes.

Setup

  1. 1.Install the required dependencies:
bash
pip install -r requirements.txt
  1. 1.Run the application:
bash
python app.py

Usage

  1. 1.Enter the soil parameters in the input fields:
  2. 2.For numerical values (like pH, temperature, etc.), enter the appropriate number
  3. 3.For categorical values (like soil type), select from the dropdown menu
  1. 1.Click "Submit" to get the prediction
  1. 1.The application will return:
  2. 2.Whether the soil is suitable for growing crops
  3. 3.The confidence level of the prediction

Files

  • โ€”soil.csv: Dataset containing soil parameters and growth conditions
  • โ€”soil_model.keras: Trained neural network model
  • โ€”app.py: Gradio interface application
  • โ€”requirements.txt: Python dependencies