Towards fourth industrial revolution impact : Soil nutrient analysis based fertilizer recommendation system

Agriculture is considered key for human progress since ancient times but advancement in this sector is still a lot behind in almost 70% of areas of Pakistan. The major cause of the drop in yield is natural calamity and variations in the nutrients of soil

2025-06-28 16:29:51 - Adil Khan

Project Title

Towards fourth industrial revolution impact : Soil nutrient analysis based fertilizer recommendation system

Project Area of Specialization Artificial IntelligenceProject Summary

Agriculture is considered key for human progress since ancient times but advancement in this sector is still a lot behind in almost 70% of areas of Pakistan.
The major cause of the drop in yield is natural calamity and variations in the nutrients of soil due to environmental changes. Overcoming the awful situations due to natural calamity challenges is arduous but technology can be adapted to understand the variations in the soil nutrients thereby helping the farmer community to find out positive solutions.
As per our research, one of the solutions to understand soil and fullfill its needs is soil sampling. It is very important to monitor the soil for a good yield. For this purpose, soil sampling is carried out to measure the nutrients left in your field following harvesting.

The soil analysis report does the following:
1.    Tells you which nutrients are lacking or are in excess throughout the soil in a field.
2.    Helps you determine the most favorable fertilizer plan to increase or maintain yields for the following year.

The previous solutions are somewhat not effective enough and following problems were identified during our research:
•    Majorly farmers' choices or decisions regarding the crop, planting, and fertilizing are based on mere references, such as the history of use or advice from friends, fellow farmers, or extension officers when no consideration is made regarding specific soil fertility analysis.
•    In recent years due to multiple fertilizers present in the market, farmers get confused and apply fertilizers famous around the area instead of the ones required by their fields. This leads to two significant problems:
1. Low yield 
2. Soil pollution
•    Research laboratories where soil analysis can be done are not easily accessible for every farmer. Mobile laboratories were introduced to solve the inaccessibility issues though farmers still do not take the time to take up their soils for testing terming it as a waste of time hence their failure.
To deal with the above problems, we propose a model that detects soil nutrients, soil temperature, and soil humidity using various sensors. Based on these factors/nutrients, it suggests the appropriate fertilizer that can be added to normalize the soil and increase yield as well as overcomes the tidious laboratory method practices and minimizes the gap between understanding of farmers with their soil's needs.

Project Objectives

This project helps in achieving following objectives:

  1. To evaluate challenges experienced by farmers in determining soil fertility levels for crop fertilizer use.
  2. To design an NPK analysis/monitoring model and fertilizer recommendation for precision farming.
  3. To develop the analysis and recommendation model.
  4. To understand how soil factors influence crop yields.
  5. To understand how evaluation of machine learning tools can help in determining soil requirements.
  6. To validate the proposed model.
Project Implementation Method

This project aims at developing a real-time soil nutrients detection and fertilizer recommendation model for farmers.

'Towards fourth industrial revolution impact : Soil nutrient analysis based fertilizer recommendation system' _1659395429.jpeg

(figure 01: a display of overall idea)
The implementation follows 3 steps:
1. IOT based soil monitoring: 
Some chemical and physical properties of soil, such as its moisture, temperature, soil nitrogen, phosphorous & potassium content heavily affect the yield of a crop. 
In this step, a soil Nutrient Monitoring & Analysis System using which farmer can monitor all these parameters wirelessly on a mobile phone or the PC system.

Proposed Method:

Soil moisture,temperature, NPK (nitrogen,  phosphorous,potassium)values are measured using Capacitive Moisture Sensor, Waterproof Temperature Sensor and Soil NPK Sensor respectively. All these sensors are interfaced with Arduino.
The data sensed from the circuit is then sent on to the server for monitoring. The server allows us to monitor the data in graphical and numerical format. 
The agricultural field doesn’t have access to these networks. To solve this, we will use a Wireless Transceiver Module to send the data from Sensor Node to Gateway.

'Towards fourth industrial revolution impact : Soil nutrient analysis based fertilizer recommendation system' _1659395430.jpeg

(figure 02: The real time physical soil monitoring system)

2. Machine learning based algorithm for fertilizer selection: 
ML algorithm helps in determining suitable fertilizer required by soil for a better production and increase in yield, based on the basic nutrients in soil such as Nitrogen(N), Phosphorus(P) and Potassium(K).
Proposed Method:

'Towards fourth industrial revolution impact : Soil nutrient analysis based fertilizer recommendation system' _1659395432.png

(figure 03: flowchart to carry out algorithm design)

3. How the recommendation can reach farmers (User Interface):
There are different ways to provide appropriate fertilizer recommendation derived from ML algorithm to farmers. 

Our approach:
In this project, we will use the third option i.e web application.

The purpose of web application is to provide an easy and simple user interface where farmers can insert their soil analysis report's values and get a suitable fertilizer recommendation.

(figure 04: Our designed UI for website)

'Towards fourth industrial revolution impact : Soil nutrient analysis based fertilizer recommendation system' _1659395433.png

Benefits of the Project

Some properties of soil, such as its moisture, temperature, soil nitrogen, phosphorous & potassium content heavily affect the yield of a crop. Understanding the soil by adapting technology can be very useful for increase in production. This project helps in overcoming limitations for farmer community. Following are some advantages of this project: 

  1. This approach helps farmer community to understand their soil and its needs well.
  2. Developing a real-time soil nutrients detection and fertilizer recommendation model for farmers replaces the tedious, time-wasting offsite soil testing practices.
  3. Helps in supplying the right amount of fertilizer for sustainable crop production and efficient balance between ecological and economic benefits. 
  4. Helps in understanding how nutrients variability can be decomposed to effectively manage fertilizers in agriculture. 
  5. Helps in understanding how soil factors influence crop yields.
  6. Helps in developing a precise and accurate model based on the evaluation of machine learning tools that can help in determining soil requirements.
Technical Details of Final Deliverable

Final deliverables include:

  1. A real time IOT device that can be installed on the fields to monitor important parameters of soil that effect the yield.
  2. A well-trained Machine Learning recommendation algorithm that helps in determining suitable fertilizer based on soil’s needs instead of guessing.
  3. A Django framework-based web application which provides a user interface for recommending fertilizers.
Final Deliverable of the Project HW/SW integrated systemCore Industry AgricultureOther Industries IT , Food , Manufacturing , Health Core Technology Artificial Intelligence(AI)Other Technologies Internet of Things (IoT), OthersSustainable Development Goals Good Health and Well-Being for People, Decent Work and Economic Growth, Industry, Innovation and Infrastructure, Responsible Consumption and Production, Life on LandRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 76719
Arduino UNO REV3 with cable Equipment118501850
ESP WROOM-32 development board Equipment112991299
NRF24L01+PA+LNA Transceiver Module Equipment1900900
Capacitive Soil Moisture Sensor v2.0 Equipment218503700
Waterproof Temperature Sensor Equipment218003600
MAX485 Modbus Equipment28001600
4.7K Resistor Equipment1012120
Power Adapter Supply AC to DC Equipment121002100
Jumper wires (Female to Female, Male to Male, Male to Female) Equipment90151350
4PC Breadboard Kit Equipment125002500
Soil EC NPK PH Sensor With RS485 Output Equipment22400048000
Double A copier/printing paper 80G A4 Ream of 500 sheets Miscellaneous 112001200
Printing Miscellaneous 350103500
Thesis binding Miscellaneous 120002000
Thesis boards and posters Miscellaneous 130003000

More Posts