Salmane20/soil-growth-prediction
0
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
- Adjust the sliders for numerical soil properties
- Select appropriate categories from dropdowns
- Click 'Analyze Soil' to get the prediction
- 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
- Install the required dependencies:
pip install -r requirements.txt- Run the application:
python app.pyUsage
- Enter the soil parameters in the input fields:
- For numerical values (like pH, temperature, etc.), enter the appropriate number
- For categorical values (like soil type), select from the dropdown menu
- Click "Submit" to get the prediction
- The application will return:
- Whether the soil is suitable for growing crops
- The confidence level of the prediction
Files
soil.csv: Dataset containing soil parameters and growth conditionssoil_model.keras: Trained neural network modelapp.py: Gradio interface applicationrequirements.txt: Python dependencies
