You are on page 1of 6

Real-time Estimation of Nitrogen, Phosphorus,

and Potassium in Soil


Vinith Reddykapa Alumuru Jayavardhan Harshith Panguluru
Department of Electrical Engineering Department of Electrical Engineering Department of Electrical Engineering
Indian Institute of Technology Ropar Indian Institute of Technology Ropar Indian Institute of Technology Ropar
Punjab, India Punjab, India Punjab, India
vinithkr100@gmail.com jayavardhanram@gmail.com harshiith.p@gmail.com

Manik Garg Gaurav Gill Satyam Agarwal


Department of Electrical Engineering Department of Electrical Engineering Department of Electrical Engineering
Indian Institute of Technology Ropar Indian Institute of Technology Ropar Indian Institute of Technology Ropar
Punjab, India Punjab, India Punjab, India
gargmanik98@gmail.com gill.gaurav095@gmail.com satyam6099@gmail.com

Nishant Gupta
Department of Electrical Engineering
Indian Institute of Technology Ropar
Punjab, India
2022 IEEE Delhi Section Conference (DELCON) | 978-1-6654-5883-2/22/$31.00 ©2022 IEEE | DOI: 10.1109/DELCON54057.2022.9753548

nishantgupta.nic@gmail.com

Abstract—Nitrogen (N), Phosphorous (P), and Potassium (K) A fertile and rich soil results in better crop quality as
are considered the most important nutrients and are essential well as higher yield. There are various soil components that
components in the soil affecting the growth and yield of play a vital role in better production, such as soil moisture,
crops. For optimal growth of the plant, the nutrients N, P,
and K present in the soil must be in a balanced proportion. electrical conductivity, presence of elements such as nitro-
However, based on the parent material (like sand, peat, and gen (N), phosphorus (P), potassium (K), magnesium, iron,
clay), climatic conditions, and the differences in the past etc. [1]. The macronutrients in soil are very important for
management of the crop residues and the use of fertilizers, crop quality and yield and therefore needed to be estimated.
the farmers need to know the accurate proportions of N, P, According to that, farmers need to plan to fertilize the field
and K to maximize the crop growth, production, and yield.
Therefore, its measurement to maintain an accurate balance to get a good yield. Adequate fertilizer can impact good
is crucial. In this paper, two methods to estimate N, P, and quality crop and yield, so that the world’s increasing food
K in the soil are proposed which can provide results in real- demands are met.
time without the need for any chemicals. The first method
makes use of electrical conductivity and pH sensors to measure
In this paper, we focus on three main nutrients present
these parameters from the soil and uses machine learning in the soil, namely, nitrogen (N), phosphorus (P), and
techniques to estimate the N, P, and K values. The second potassium (K). These three nutrients increase the growth of
method makes use of optical sensors to measure the amount the plant in different ways; N promotes the growth of leaves
of light absorbed and reflected by the soil and uses regression and vegetation, P promotes root and overall plant growth,
techniques to estimate N, P, and K. In both cases, the N, P,
and K values are classified into different classes. We obtain
and K promotes flowering, fruiting, and keeps regulation of
more than 75% accuracy in both cases. A hand-held electronic nutrients and water in the plant cells. Over the shelf low-
device to measure N, P and K can be easily designed using cost sensors are available to measure some of the mineral
these techniques. The proposed schemes can optimize fertilizer contents in the soil. However, for elements like N, P and K,
usage as well as assist farmers in an economical and efficient chemical tests are available commercially which essentially
crop yield.
use mixing of certain chemicals to measure the N, P and K
Index Terms—NPK status, soil quality, smart farming,
machine learning, optical sensing presence in soil. To measure N, P and K content in different
soils, complex setups involving different set of chemicals
I. I NTRODUCTION are required which adds to measurement complexity, time,
The agriculture sector is the most significant and crucial and it also requires an expert to carry out the measurements
sector in the world. People in major parts of the globe in a chemical laboratory.
are still using traditional farming and crop management In this regard, this work presents two methods to measure
techniques, which are not very efficient in current envi- the N, P and K content in the soil. These methods can be
ronmental conditions, such as a sudden change in climate, implemented as an electronic device and do not require any
erratic irrigation, soil degradation, etc. As a result, there is use of chemicals or an expert person to operate. Further, un-
a decline in crop yield and quality. To address this issue, like in the chemical techniques, multiple soil measurements
an adaptive soil and crop management system is necessary. can be made without any additional requirements.
978-1-6654-5883-2/22/$31..00 © 2022 IEEE

Authorized licensed use limited to: Zhejiang University. Downloaded on November 12,2023 at 14:32:53 UTC from IEEE Xplore. Restrictions apply.
TABLE I
A L IST OF VARIOUS P RODUCTS D EVELOPED TO M EASURE D IFFERENT N UTRIENTS C ONTENT OF THE S OIL
Product Producer/supplier Method Nutrient detected
LaMotte AST-5 LaMotte Colorimetry NO3 -,N, P, K, Ca, Mg and Cl, Cu
Kasetsart University and
Kasetsart (N-P-K) Colorimetry N, P, K
Boon Din Thai Co.
Columbia Univ./ Univ. Electrode Sensor Meters for different nutrients,
SoilDoc N, phosphate, K, P, sulfate-S
of Maryland Colorimetry + Android App system
Botanico Soil Test Kit Amazon UK Colorimetry N, P, K
Mobile Lab SoilCares X-ray, fluorescence, (mid) infrared spectroscopy. N,P,K, Ca,Mg
Botanico Soil Test Kit Amazon UK Colorimetry NO3 -, N, NH4 +-N, P, K, Ca, Mg
Prerana Soil Testing Kit PRERANA Laboratories Colorimetry N, P, K
Soil Testing Kit Innovative Instruments, India Colorimetry N, P, K
NO3 -N,
Laqua Twin Nutrient Meters Spectrum Technology Meter with sensor
Ca, K, Na

A. Related Works computation time, is effective in many applications such


as site-specific calibration, and does not require chemicals.
At present, electrochemical, colorimetry, chemical meth-
Towards this end, this paper presents an effective methods
ods, fluorescence spectroscopy, and infrared spectroscopy
to measure the N, P and K content in the soil using
are the techniques that are well-known and are widely used
electronic sensors and transducers. These methods provide
to develop macronutrient estimation. We present a list of
less computational time, and do not require use of chemical.
such products in Table I, where we have mentioned different
Furthermore, multiple measurements can be made without
products developed by the companies and the methods used
any additional requirements. These methods can be em-
by them [2]. However, the majority of these methods are
ployed to built a hand-held electronic device, which can
either expensive, require elaborate setups, or are not suited
provide N, P and K estimates without the expert operation
for measurements. The details and drawbacks about the
and the measurements can be obtained in real-time.
different methods is presented below:
The key contributions of this work are as follows.
• The colorimetry method uses chemicals. Also, to get
• We use two machine learning algorithms, namely linear
accurate results, this method needs an expert person to
regression and neural networks, to estimate the N, P,
work in a chemical laboratory [3], [4].
and K values by measuring some of the characteristics
• Electrochemical methods also makes use of chemicals
in the soil, such as electrical conductivity (EC) and
in a laboratory setup [5].
pH [12], [13]. The EC and pH can be measured easily
• Spectroscopy method estimates the concentration of
using various electronic sensors.
N, P, and K values in soil using NIR (near-infrared)
• Moreover, we also present a optical sensing method,
and MIR (mid-infrared) spectroscopy. This method is
wherein different color lights are incident on the soil
complex to implement [6], [7].
and the N, P and K content is estimated from the
The authors in [8] studied the soil NPK estimation using absorbed and reflected light intensities in the soil.
an Arduino UNO and light emitting device based on visible • Results shows that the neural networks provide better
infrared spectroscopy. To quantify the nutrients present in estimation as compared to linear regression but with
the soil, authors used rate of light absorption and intensity an expense of increases computational complexity.
of absorbed radiation values. In [9], the authors developed a Optical sensing methods is also shown as an effective
modular direct ultra-violet visible spectroscopy-based sens- approach to estimate N, P, and K.
ing system to investigate the solution of NPK containing • Overall, we obtain more than 75 % accuracy in ma-
fertilizers. However, the disadvantage lies in the interference chine learning methods and optical sensing methods.
of competing ions in the spectra. The authors in [10] We anticipate that this work will help the farmers manage
reported a technique-based support-vector machine used to their crops in a much better way. Specifically, questions like
determine plants’ nutrient status. They analyzed images of when to fertilize the field, what fertilizers to use, etc., can
plant leaves to predict the deficiency of potassium in plants. be addressed using the N, P, and K measurements. This will
In [11], lab-based device that used a hyperspectral imaging take forward the idea of smart farming and pave way for
system to detect N content in the soil was developed. It uses future developments in this domain.
a conjunction of chemometrics and hyperspectral imaging The paper is organized as follows. Section II presents the
technology. ML based technique, while Section III presents the optical
sensing based method for N, P and K estimation. Section
B. Novelty, Scope and Contributions IV concludes the paper.
It is well aware that substantial research has been done
in estimating N, P, or K in soil. However, the spectroscopic II. P ROPOSED ML T ECHNIQUES TO E STIMATE N, P, K
methods are bulky and expensive. In contrast, colorimetry We consider two basic soil parameters namely pH and
does not support site-specific calibration. Therefore, there Electrical Conductivity (EC). pH stands for the potential of
is still a need to develop a technique that provides low hydrogen. It is the measure of acidity or basicity of soil.

Authorized licensed use limited to: Zhejiang University. Downloaded on November 12,2023 at 14:32:53 UTC from IEEE Xplore. Restrictions apply.
TABLE II TABLE III
N, P AND K C LASSIFICATION INTO T HREE C ATEGORIES , VIZ . L OW, M ACHINE L EARNING M ODELS USED TO E STIMATE N, P AND K
M EDIUM AND H IGH VALUES FROM S OIL P H AND EC M EASUREMENTS
Range N (in mg/kg) P (in mg/kg) K (in mg/kg) Model Inputs Description
Low 0-165 0-10 0-100 Linear Regression pH and EC Linear Regression is used.
Medium 165-270 10-45 100-200 Hidden Layers = 9, 40 Nodes in
Neural Networks pH and EC
High > 270 > 45 > 200 each layer, and 40 epochs.

EC of the soil is the ability of the soil to conduct electricity


through it. It is a measure of the number of salts or ions
present in the soil.
The above parameters correlate very well with several
physical and chemical properties of soil, like nutrient hold-
ing capacity, crop yield, etc. Determining pH and EC in
the soil can be easily carried out using sensors. EC can be
measured by using HM Digital AP-2 sensor, while pH can
be measured using pH meter from D.B. Technologies.
We make use of an online dataset from Kaggle. The
Kaggle dataset is available online and can be accessed at
Fig. 1. Nitrogen content (mg/Kg) in the soil: actual versus estimated using
https://www.kaggle.com/surabhiremix. This linear regression. (blue *: actual; red +: predicted)
dataset has 62576 rows of data. In this dataset, 19 attributes
of the soil are provided, such as magnisium, zinc, organic respectively. The units of N, P, and K in fig 1, fig 2, fig 3 are
carbon, pH, N, P, K, etc. The attributes we are interested in mg/kg. We observe from the figures that the estimated
in are N, P, K, EC, and pH [14]. EC and pH attributes are N, P, and K values occupy a small range. Clearly, linear
used to estimate the N, P, and K values. regression is not able to estimate the N, P, and K values
In our current work, we do not estimate the absolute accurately.
content of N, P and K in the soil as it gives high estimation From the estimated values, the N, P and K are divided
error. Rather, we classify the N, P, and K values in three into categories as per Table II. The accuracy resulting from
different categories namely low, medium and high. Table II this classification is 60.73% for N, 51.54% for P, and
presents the classification of N, P, and K in the soil under 51.09% for K. It is observed that linear regression intro-
various categories. duces huge error in element classification and is therefore
To classify the N, P, and K content in the soil under not a suitable method for N, P and K classification. Next,
the three categories, we present two ML technique. We we present a neural network based estimation model for N,
make use of the regression technique to first estimate P and K.
the N, P and K values and then classify them into the
three categories (low, medium and high). Note that the
classification methods give poor results than the regression
methods due to the nature of the data and therefore we make
use of regression techniques in this work. We develop two
models for the same. One makes use of linear regression,
while the other makes use of neural networks.
A. Proposed Models and Results
In this subsection, we present the two proposed machine
learning models for estimating the N, P, and K categories in
the soil based on the pH and EC measurements of the soil.
In the Kaggle dataset, N, P, and K content in the soil varies Fig. 2. Phosphorus content (mg/Kg) in the soil: actual versus estimated
in the range 0-350, 0-90, and 0-400, respectively. This is using linear regression. (blue *: actual; red +: predicted)
first classified into three categories, namely, low, medium 2) Neural Networks: Getting useful insights from using
and high as presented in Table II. The two models in Table the linear regression model for NPK estimation, we move
III along with their results are presented next. to a more complex and better estimator. We make use of a
1) Linear Regression: In the first method, we use linear neural network with 9 hidden layers and 40 neurons in each
regression to estimate the N, P and K values and thereafter layer to estimate the NPK values. The input layer consists of
classify them as low, medium or high based on Table II. 5 neurons. To feed these 5 neurons, the two inputs (pH and
The dataset is split into training set and testing set. Training EC) are processed to convert them into 5 inputs as (pH, EC,
set comprises of 80% of the whole data, while testing set pH*EC, pH*pH, EC*EC). This input data is used to train
contains 20% of the whole dataset. the neural network after normalization. Rectified linear unit
The actual as well as the estimated N, P and K values (ReLU) activation function is used at each of the neurons
using linear regression is shown in Figs. 1, 2 and 3, in the hidden layer. Loss function used here is the mean

Authorized licensed use limited to: Zhejiang University. Downloaded on November 12,2023 at 14:32:53 UTC from IEEE Xplore. Restrictions apply.
Fig. 3. Potassium content (mg/Kg) in the soil: actual versus estimated
using linear regression. (blue *: actual; red +: predicted) Fig. 6. Potassium content (mg/Kg) in the soil: actual versus estimated
using neural networks. (blue *: actual; red +: predicted)
TABLE IV
C LASSIFICATION ACCURACY OF N, P, AND K USING L INEAR
R EGRESSION AND N EURAL N ETWORKS
Model N P K
Linear Regression 60.73% 51.54% 51.09%
Neural Networks 81.34% 75.39% 76.81%

B. Key Takeaways
We observe that, in general, neural networks provide
better estimation accuracy as compared to the linear re-
gression. We conclude that the relation between N, P, K,
Fig. 4. Nitrogen content (mg/Kg) in the soil: actual versus estimated using
neural networks. (blue *: actual; red +: predicted)
pH and EC is non-linear. Further classification accuracy
of Nitrogen is better than the other two. Though neural
network gives better results, it comes with an expense of
squared error (MSE). Adam optimizer is used with 0.001 increased computational complexity. Next, we present an
learning rate. optical sensing method to classify N, P and K content in
Figs. 4, 5, and 6 present the actual and the estimate N, P the soil.
and K values respectively. The units of N, P, and K in fig
1, fig 2, fig 3 are in mg/kg. In this case, we observe that III. O PTICAL S ENSING M ETHOD
the estimated values of N, P and K are close to the actual
and better estimated than the linear regression case. N, P and K in the soil absorb specific wavelengths
Estimated N, P and K values are classified into low, incident on it. N absorbs wavelength from 438 - 490 nm,
medium and high using Table II. The classification accuracy P absorbs wavelength from 528 - 579 nm, while K absorbs
in this case is 83.34% for Nitrogen, 75.39% for Phosphorus wavelength from 605 - 650 nm. These wavelengths are close
and 76.81% for Potassium. We observe that this model to the specific colors found in the visible light spectrum. For
provides a better result than the previous case with clas- example, red occupies a wavelength of 650 nm. Similarly,
sification accuracy > 75% for all the elements. blue and green colors occupy 450 and 550 nm, respectively.
A summary of the classification accuracy in the two Therefore, in this optical sensing method, we make use of
models is shown in Table IV. the red, blue and green color LEDs to estimate the amount
of K, N and P contained in the soil, respectively. The light
from these LEDs is incident on the soil sample and the
intensity of light reflected from the soil sample is measured
to estimate the N, P and K content. Fig. 7 presents the
experimental setup for the optical sensing method.
Here three LEDs of three different colours (red, green
and blue) are used to incident the light on the soil sam-
ple. The reflected light is incident on a light dependent
resistor (LDR). Depending on the reflected light intensity,
the resistance of LDR changes which results in change in
the voltage level which is fed to the Arduino board. The
Arduino measures the absorbed and reflected light intensity
by the soil and estimates the N, P and K content in the soil.
Fig. 5. Phosphorus content (mg/Kg) in the soil: actual versus estimated The estimation mechanism is presented later in this Section.
using neural networks. (blue *: actual; red +: predicted)
The same is displayed on an LCD display.

Authorized licensed use limited to: Zhejiang University. Downloaded on November 12,2023 at 14:32:53 UTC from IEEE Xplore. Restrictions apply.
TABLE VI
R EFLECTED LIGHT INTENSITY OBTAINED FROM SAMPLES USING
VARIOUS LED S
Sample Blue LED (in lx) Red LED (in lx) Green LED (in lx)
1 25 34.5 32.5
2 27 34 29.5
3 29 37.8 29.5
4 25 33 29
5 21 33 31
6 23 35.5 31
7 20 33 28
8 20 34 30
Fig. 7. Experimental Setup For Optical Sensing 9 21-22 34 31
10 18-19 36 29

A. Data Samples Collected


The soil samples were collected from ten different agri- Beer-Lambert’s law. The absorbed light intensities are de-
cultural fields from the place Vizianagaram located in noted as Ra , Ga , and Ba for red, green and blue colors,
Andhra Pradesh state of India. From the collected soil respectively. From the reflected and absorbed light intensi-
samples we measured the content of N, P and K in the ties, the N, P and K values are classified.
soil. Also, we measured the soil’s EC and pH values. For We use curve fitting function in Matlab to obtain a func-
measuring EC and pH, their respective sensors were used tion of element class based on the reflected and absorbed
as mentioned in Section III. To calculate the N, P and K light intensities. Four curves, namely, linear, quadratic,
content in the soil samples, soil rapitest kit was used [15]. cubic and 4th degree polynomial curves are fitted for
The rapitest kit classifies the content of N, P and K in soil each element to see its dependency on the different light
into one of the five categories - depleted, deficient, adequate, intensities. For example, for N, Fig. 8 shows the N content
sufficient, and surplus. Our aim is to find a relation between in the soil and the corresponding reflected light intensity of
the N, P and K categories and red, green and blue light red color incident on the soil sample. Here, the N content
absorbed/reflected by the soil. is labelled from 1-5 corresponding to the content being
The values of N, P, K, EC and pH for different soil depleted (1), deficient (2), adequate (3), sufficient (4), and
samples is tabulated in Table V. Intensity of reflected light surplus (5). In this figure, we also present the different
for various colors in these soil samples is tabulated in Table curves that are fitted to estimate the N content based on
VI. Next we present the model to predict the N, P, and K the reflected light intensity for red color.
values from the absorbed and reflected light incident on the
soil. 3
Data points
Linear fit
2.5
TABLE V Quadratic fit
Cubic fit
R ESULTS O BTAINED FROM O PTICAL S ENSING M ETHOD 4th Degree polynomial fit
2
Sample EC pH N P K
N content

No. (in µS) 1.5


1 1782 7.6 Deficient Deficient Adequate
2 1566 7.3 Adequate Adequate Adequate 1
3 1620 7.0 Deficient Deficient Sufficient
4 2626 7.6 Deficient Deficient Sufficient 0.5
5 1460 6.7 Depleted Adequate Sufficient
0
6 1230 7.4 Deficient Adequate Deficient 33 33.5 34 34.5 35 35.5 36 36.5 37 37.5
7 1187 7.4 Depleted Deficient Adequate Intensity of red light reflected
8 1423 6.8 Deficient Sufficient Depleted
9 1044 7.4 Depleted Deficient Adequate Fig. 8. N content Vs Reflected Light Intensity of Red LED (in lx)
10 1410 7.5 Depleted Deficient Depleted
To present a quantitative measure of the degree to which
the function fits well for the input and output, we specify
B. Element Classification and Results the coefficient of determination. The coefficient of determi-
In this subsection, we present the N, P and K content nation, D2 specifies how the difference in output can be
estimation from the reflected and absorbed light intensities. explained by the difference in input. It ranges between 0
The light from the LED is incident on the soil sample. The and 1, with 0 meaning no relation between input and output,
reflected light from the soil sample is incident on a light while 1 meaning perfect relation between input and output.
dependent resistor (LDR) whose resistance changes based For each element (N, P and K) and for each colors re-
on the reflected light intensity. The voltage across the LDR flection and absorbance intensities, we obtain the coefficient
is measured which is directly proportional to the reflected of determination, D2 to see how much the N, P and K
light intensity. The reflected light intensities are denoted as contents depend on the LED light intensities. The coefficient
Rr , Gr , and Br for red, green and blue colors, respectively. of determination for N, P and K is presented in Table VII,
Further, the absorbed light intensity can be computed VIII and IX, respectively.
from the reflected and incident light intensity using the From Tables VII - IX, we observe that the N, P and

Authorized licensed use limited to: Zhejiang University. Downloaded on November 12,2023 at 14:32:53 UTC from IEEE Xplore. Restrictions apply.
TABLE VII terms of accuracy. On the other hand, the optical sensing
C OEFFICIENT OF DETERMINATION (D2 ) VALUES BETWEEN N ITROGEN method highlighted a new method to estimate the N, P and
CONTENT (N) AND L IGHT I NTENSITY ABSORBED , REFLECTED FROM
LED’ S R ED , B LUE , G REEN K content in soil. Both these methods can be implemented
Order Ra Ga Ba Rr Gr Br on an electronic device that can instantly provide the N, P
1st 0.0225 0.0065 0.5251 0.0237 0.0074 0.5329 and K values without the use of any chemicals or reusable
2nd 0.0560 0.0486 0.5433 0.06185 0.05943 0.5355 materials and the results can be obtained without any delay.
3rd 0.2691 0.3785 0.6406 0.2649 0.3451 0.6121
4th 0.3167 0.5077 0.7291 0.3138 0.513 0.7284
Future work would include improving the accuracy of
the two methods. One way could be to combine the two
methods to obtain a higher accuracy. For the optical sensing
TABLE VIII
C OEFFICIENT OF DETERMINATION (D2 ) VALUES BETWEEN method, the scheme could be analysed for soil samples
PHOSPHOROUS CONTENT (P) AND L IGHT I NTENSITY ABSORBED , collected from a diverse set of fields.The proposed schemes
REFLECTED FROM LED’ S R ED , B LUE , G REEN can be used to reduce excessive use of fertilizers in the soil
Order Ra Ga Ba Rr Gr Br as well as provide an economical and efficient solution to
1st 0.01947 0.0070 0.0086 0.0196 0.0097 0.0075
2nd 0.0199 0.3876 0.0275 0.0206 0.3851 0.0152 increase crop quality and yield.
3rd 0.1448 0.3879 0.1690 0.1457 0.3895 0.2045 R EFERENCES
4th 0.1475 0.8335 0.2758 0.1495 0.8295 0.2679
[1] R. P. Potdar, M. M. Shirolkar, A. J. Verma, P. S. More, and
A. Kulkarni, “Determination of soil nutrients (NPK) using optical
methods: a mini review,” J. Plant Nutrition, vol. 44, no. 12, pp.
K have good relation with the light intensities. For the 1826–1839, Feb. 2021.
estimation of N content in the soil, we can use blue color [2] C. Dimkpa, P. Bindraban, J. E. McLean, L. Gatere, U. Singh, and
D. Hellums, “Methods for rapid testing of plant and soil nutrients,” in
which has a higher coefficient of determination. Its D2 is Sustainable Agriculture Reviews, vol. 25. Springer, Cham, pp. 1–43,
0.7291 and the curve that fits best is a 4th order polynomial. July 2017. DOI: https://doi.org/10.1007/978-3-319-58679-3-1.
As we keep increasing the polynomial order, over-fitting [3] M. Yamin, W. I. bin Wan Ismail, M. S. bin Mohd Kassim, S. B.
Abd Aziz, F. N. Akbar, R. R. Shamshiri, M. Ibrahim, and B. Mahns,
may occur. To obtain an optimal polynomial, we need to “Modification of colorimetric method based digital soil test kit
have a large dataset. We pose this as a direction for future for determination of macronutrients in oil palm plantation,” Int. J.
work, wherein more diverse set of data can be collected to Agricultural Biological Eng., vol. 13, no. 4, pp. 188–197, Aug. 2020.
[4] R.-T. Liu, L.-Q. Tao, B. Liu, X.-G. Tian, M. A. Mohammad, Y. Yang,
obtain a more better estimate. and T.-L. Ren, “A miniaturized on-chip colorimeter for detecting
For the estimation of P content in the soil, as anticipated, NPK elements,” Sensors, vol. 16, no. 8, pp. 1234, Aug. 2016.
the green color has the highest coefficient of determination. [5] N. Chauhan and S. Urooj, “The effect of azadirachta indica extract on
Its D2 is 0.8335 and again the curve that fits best is a the soil nutrients and the npk value determination by electrochemical
sensor,” Int. J. Biosen Bioelectron, vol. 5, no. 3, pp. 81–87, May 2019.
4th order polynomial. For K content, the red color has the [6] M. A. Coutinho, F. d. O. Alari, M. M. Ferreira, and L. R. do Amaral,
highest D2 value of 0.7079. “Influence of soil sample preparation on the quantification of NPK
content via spectroscopy,” Geoderma, vol. 338, pp. 401–409, Dec.
2018.
TABLE IX [7] Y. Yunus, P. Satriyo, A. A. Munawar, “Rapid prediction of soil quality
C OEFFICIENT OF DETERMINATION (D2 ) VALUES BETWEEN P OTASSIUM indices using near infrared spectroscopy,” in IOP Conf. Series:
CONTENT (K) AND L IGHT I NTENSITY ABSORBED , REFLECTED FROM Earth Environmental Science, vol. 365, no. 1. Sep. 2019, p. 012043.
LED’ S R ED , B LUE , G REEN DOI:10.17632/ny6ks93bnp.1
Order Ra Ga Ba Rr Gr Br [8] M. Masrie, A. Z. M. Rosli, R. Sam, Z. Janin, and M. K. Nordin,
1st 0.042 0.0019 0.3638 0.04787 0.0017 0.3805 “Integrated optical sensor for npk nutrient of soil detection,” in Proc.
2nd 0.5293 0.0140 0.4087 0.5187 0.0145 0.4257 IEEE 5th Int. Conf. Smart Instrum. Meas. Appl. (ICSIMA), Thailand,
3rd 0.5784 0.0167 0.4995 0.5749 0.0162 0.5024 Nov. 2018, pp. 1–4.
4th 0.7079 0.04717 0.5021 0.7095 0.04251 0.5025 [9] F. Monteiro-Silva, P. A. S. Jorge, and R. C. Martins,
“Optical sensing of nitrogen, phosphorus and potassium: A
spectrophotometrical approach toward smart nutrient deployment,”
Chemosensors, vol. 7, no. 4, pp. 1–5, Oct. 2019. [Online]. Available:
C. Key Takeaways https://www.mdpi.com/2227-9040/7/4/51
From our experiments on samples collected, we observed [10] Y. S. Lisu Chen, Shihan Huang, E. Zhu, and E. Zhu, “Rapid
identification of potassium nutrition stress in rice based on machine
that the optical sensing method can be used to estimate the vision and object-oriented segmentation,” J. Spectroscopy, vol. 2019,
N, P and K content in the soil. Red, green and blue colored pp. 1–8, Sep. 2019. DOI: https://doi.org/10.1155/2019/4623545.
LEDs can be used to measure the K, P and N content in [11] H. Li, S. Jia, and Z. Le, “Quantitative analysis of soil total nitrogen
using hyperspectral imaging technology with extreme learning
the soil, respectively. This study can be considered as a machine,” Sensors, vol. 19, no. 20, pp. 1–13, Oct. 2019.
preliminary study, with more data from other places can [12] M. Suchithra and M. L. Pai, “Improving the prediction accuracy of
be collected and analysed to see how well our results soil nutrient classification by optimizing extreme learning machine
parameters,” Inf. Process. Agriculture, vol. 7, no. 1, pp. 72–82, Mar.
corroborate. Further, with a larger dataset, we can use other 2020.
machine learning algorithms to understand the dependency [13] G.-B. Huang, H. Zhou, X. Ding, and R. Zhang, “Extreme learning
of N, P, and K on different color intensity absorbed by them. machine for regression and multiclass classification,” IEEE Trans.
Syst., Man, Cybern. Syst., vol. 42, no. 2, pp. 513–529, Apr. 2011.
IV. C ONCLUSION [14] M. Masrie, M. S. A. Rosman, R. Sam, and Z. Janin, “Detection of
nitrogen, phosphorus, and potassium (NPK) nutrients of soil using
In this paper, we presented two method to estimate the optical transducer,” in Proc. IEEE 4th Int. Conf. Smart Instrum.,
N, P and K content in the soil which plays a crucial role Meas. Appl. (ICSIMA), Putrajaya, Nov. 2017, pp. 1–4.
[15] A. Bas, “Addressing point and nonpoint source phosphorus loads
in crop yield and quality. N, P and K estimation from EC at selected sites in tyngsborough, massachusetts,” Ph.D. dissertation,
and pH readings using neural networks faired average in Worcester Polytechnic Institute, 2020.

Authorized licensed use limited to: Zhejiang University. Downloaded on November 12,2023 at 14:32:53 UTC from IEEE Xplore. Restrictions apply.

You might also like