Fertilizer use is typically under the limited control of farmers. For the farmers to achieve higher yields and reduce fertilizer loss, competent guidance is required for the best use of these fertilizers. Additionally, there is a connection between rainfall volume and nutrient loss for various fertilizer applications after each rainfall event. Rainfall that is moderate and falls at the right moment can help nutrients penetrate the soil's rooting zone and dissolve dry fertilizer. However, too much rain can increase the possibility of runoff and the pace at which nutrients like nitrogen (N) which is quintessential, phosphorus (P), and potassium (K) which are crucial, manganese (Mn), and boron (B) that are present in the soil.
This project presents nutrient recommendations using an updated iteration of the random forest algorithm which is based on time-series data to forecast the required quantity of nutrients for various crops by examining rainfall patterns and crop fertility. The method suggested in this study, comes in handy for improving soil fertility by providing nutrients recommendations for optimum conditions for crop growth and reducing leaching and runoff potential.
- Python programming language
- Flask web framework
- Web Browser
- Bash for Windows (recommended)
- Python 3.8.10
- Matplotlib 3.4.3
- Flask 2.1.2
- Category Encoders 2.5.0
- requests 2.27.1
- json 2.0.9
- numpy 1.22.3
- pandas 1.3.3
- scikit-learn 1.0.2
- pip install flask
- pip install pandas
- pip install sklearn
- pip install category-encoders
- pip install matplotlib
- pip install requests
- pip install numpy
- Install the required modules and tools listed above.
- Run the website using below procedure:
- Navigate to this path
Eco-Fertilization/Code/app/
- Run the "app.py" using below commands:
1. For Ubuntu & Mac
python3 app.py
2. For Windows
Double click onapp.py
(or use bash and follow Ubuntu's OS procedure)
- Navigate to this path
- Copy the provided URL shown in terminal ie.
http://127.0.0.1:5000
and paste it on the web browser. - Now input the required fields and submit the details.
- It will show N:P:K content ratio in the soil required for the crop.
- Also message/alert is displayed below the result. Seven days weather forecasts is also displayed along with the result.