Design of Machine Learning Based Smart Irrigation System For Precision
Design of Machine Learning Based Smart Irrigation System For Precision
DOI: 10.32604/cmc.2022.022648
Article
1
Department of Information Technology, College of Computer, Qassim University, Al-Bukairiyah, 52571, Saudi Arabia
2
Department of Computer Science, King Khalid University, Muhayel Aseer, 62529, Saudi Arabia & Faculty of Computer
and IT, Sana’a University, Sana’a, 61101, Yemen
3
Department of Computer Science, College of Computer and Information Sciences, Princess Nourah Bint Abdulrahman
University, Riyadh, 11564, Saudi Arabia
4
Department of Natural and Applied Sciences, College of Community - Aflaj, Prince Sattam bin Abdulaziz University,
Al-Kharj, 16278, Saudi Arabia
5
Department of Management Information System, College of Business and Administrative, Taibah University, Medina,
42353, Saudi Arabia
6
Department of Computer and Self Development, Preparatory Year Deanship, Prince Sattam bin Abdulaziz University,
Al-Kharj, 16278, Saudi Arabia
7
Department of Electronics and Communication Engineering, Dr. N. G. P Institute of Technology, Coimbatore,
641048, India
*Corresponding Author: Manar Ahmed Hamza. Email: [email protected]
Received: 14 August 2021; Accepted: 29 September 2021
This work is licensed under a Creative Commons Attribution 4.0 International License,
which permits unrestricted use, distribution, and reproduction in any medium, provided
the original work is properly cited.
110 CMC, 2022, vol.72, no.1
1 Introduction
The effects of global warming and growing droughts lead to the scarcity on the continuous
availability of water resource. It has a risk for water crises and food security due to the predictable rise
from population to 9.8 billion in 2050. As irrigation is a substantial user of freshwater, excess resources
from this region can have significant effects on food security [1]. Subsequently, for increasing the
performance of water usage by the accuracy irrigation, the combination of cutting edge technologies
like control strategies for optimization & prediction, IoT, identification, irrigation management are
utilized by considering the dependence in the environment and improve accuracy of irrigation system
[2,3]. Accuracy irrigation system performs a major part in offering substantial contribution to the
food production and decrease the stress faced by the farmer. Thus, there is requirement for accurately
designing an irrigation system which could adapt, deliver and predict the proper quantity of water
to the crops when and where it is required regarding the altering dynamics of the plant, weather, and
soil [4].
Information and communication technology (ICT) has presented to the sustained management
of water in agriculture. The placement of WSN from crops via IoT technology and the remote
management of data using CC has enabled huge monitoring of agricultural parameters that create
a huge number of data [5,6]. Additionally, the democratization of IoT technology to monitor weather
and soil parameters are enabling extensive distribution of water saving tool in home context [7]. But,
the continual modernization of irrigation system should execute equipment’s which enables automatic
scheduling of irrigation. It should have sensors for providing distinct variables. Conventionally, these
variables are compared with environmental conditions and provide the data regarding whole crop
water necessities by means of weather station and soil water status/volumetric content, indicates water
availability for the plant. Mostly, they utilize soil variable sensors for dielectric properties, as they are
flexible and cheap [8], though its accurate operation needs complex calibration, considering aspects
like water salinity, soil texture & structure, and temperature also the spatial variability of the soil
condition. Other sensors like infrared radiometers (IR), satellites, multispectral & thermal cameras,
are utilized for estimating water crop needs. For handling this difficult problem, several sensor based
smart irrigation systems using mobile applications are implemented at distinct times. As in previous
study, the temperature, input variables humidity, light intensity, and soil moisture, have been utilized,
and a decision of watering plants are created based on fuzzy logic (FL) [9]. A similar FL was employed
for several healthcare schemes, where the utilization of biosensors assists in monitoring blood pressure,
temperature, infection status of the wound, and oxygen.
Recently, with growing computer processors, many artificial intelligences based approaches like
LSSVM, ANN, NF-SC, and NF-FCM are established as beneficial methods for modelling difficult
problems. These modules have been extended for simulating and solving the challenges in distinct
regions because of a huge amount of efficient variables, interaction among the higher uncertainty,
parameters, and difficulty of the solution. Several applications of AI model have been stated until now
in the region of irrigation, for example, evaluation of the nutrient and water distribution regularity
in the soil, evaluating soil moisture distribution, simulates water distribution regularity of sprinkler
irrigation system. Distinct methods are utilized for water need estimation in automated irrigation
CMC, 2022, vol.72, no.1 111
system deepening upon ML, ANN, and SVR methods are extensively utilized to DSS growth. In
KNN and AdaBoost methods have been related to ANN to evaluation of potato water necessities.
The researchers in related SVR to MARS and M5Tree in modelling ETo. GA and RFR are utilized
for water need estimations.
This paper design an IoT and ML enabled smart irrigation system (IoTML-SIS) for precision
agriculture. The proposed IoTML-SIS technique senses the parameters of the farmland and makes
appropriate decisions for irrigation. The proposed IoTML-SIS model allows different IoT based
sensors for soil moisture, humidity, temperature sensor, and light data collection. In addition, artificial
algae algorithm (AAA) with least squares-support vector machine (LS-SVM) model is employed for
the classification process to determine the need for irrigation. For optimally adjusting the parameters
involved in LS-SVM method, AAA is employed and thereby the classification performance gets
improved. For ensuring the improved classification efficiency of the presented IoTML-SIS technique,
extensive experimental analysis is carried out and the results are examined interms of different aspects.
2 Literature Review
Ahmed et al. [10] presented the implementation and design of smart irrigation scheme with help of
IoT technique that is utilized to automate the irrigation procedure from agricultural fields. It can be
predictable that scheme will make the best change for the farmers to irrigate their field effectively,
and eliminate the field in watering, that can stress the plant. The established scheme is classified
into 3 portions: user side, sensing side, and cloud side. They utilized Microsoft Azure IoT Hub as
a fundamental framework for coordinating the communication among the 3 sides. Blasi et al. [11]
improved the irrigation procedure and provides irrigation water to the maximum range using AI for
constructing smart irrigation schemes. The sensor measures the temperature & humidity from the soil
each 10 min. It can be prevented the automated irrigation procedure when the humidity was higher and
allows it when the humidity was lower. The smart automated irrigation scheme is made by DT method
that is an ML technique which trains the scheme based on gathered data for creating the module which
would be utilized for examining and predicting the residual data.
The projected solution would be established by developing a distributed WSN, where all the
regions of farm will be enclosed with several sensor models that would be transferring data on a
standard server. The ML method would assist prediction of the irrigation pattern depending upon
weather conditions and crops. Hence, a sustained method for irrigation is given in [12]. Hassan-
Esfahani et al. [13] introduced a modelling method for an optimum water distribution relation to
maximize irrigation regularity and minimize yield decrease. Local weather data, field measurements,
and Landsat images have been utilized for developing a module which defines the field condition
by a soil water balance method. This method has predicted the elements of soil water balance and
optimization of water allocation module. Every module includes 2 sub components which consider 2
purposes. The optimization sub module utilizes GA for identifying optimum crop water application
rates depending upon sensitivity, crop type, and growth stage to water stress.
In Shen et al. [14], the water saving irrigation scheme for winter wheat depending upon the DSSAT
module and GA is improved for distinct historical years (1970–2017). Hence, a decision making
technique to defining either for irrigating development phase of winter wheat was established by SVM
method depending upon quantity of precipitations in the initial phase of winter wheat and the quantity
of irrigations. Navarro-Hellín et al. [15] allow a closed loop control system for adapting the DSS for
estimation errors and local perturbations. The 2 ML methods, ANFIS & PLSR, are presented as
reasoning engine of this SIDSS. Cardoso et al. [16] presented ML methods using the aim of forecasting
112 CMC, 2022, vol.72, no.1
the appropriate time of day for water administration to agricultural fields. Using higher quantity
of data formerly gathered by WSN in agricultural fields it can examine techniques that permit for
predicting the optimal time to water management for eliminating scheduled irrigation which always
results in excess of water being the major goal of the scheme for saving these similar natural resources.
For adapting water management, ML methods have been investigated for predicting the optimal
time of day for water administration [17]. The research methods like DT, SVM, RF, and NN are
the most attained outcomes was RF, giving 84.6% accuracy. Also the ML solution, a technique
was established for calculating the quantity of water required for managing the field in analyses.
Munir et al. [18] used a smart method that can professionally utilize ontology for making 50% of
decision and another 50% of decision based on sensor information values. The decision in ontology
and sensor value cooperatively becomes the source of last decision that is the outcome of an ML
method KNN. This technique avoids the overburden of the IoT server for processing data however it
decreases the latency rate. The goal of [19] is the research of many learning methods for determining the
goodness and error comparative for expert decisions. The 9 orchards have been verified in 2018 by LR,
RFR, and SVR approaches as engine of the IDSS presented. In Abioye et al. [20], an enhanced data
driven and monitoring modelling of the dynamics of variables affected the irrigation of mustard leaf
plants is proposed.
In Eq. (4), αu denotes Lagrange multiplier and γ indicates penalty parameter that estimates the
complexity of LS-SVM methods like y(x) and trained error. Eq. (4) is employed for attaining the
partial derivatives of w, b, e and αu and turn into 0, and attain an optimization state.
∂L N
∂L ∂L
N
∂L
{ =0 → w = αu ϕ(xu ) =0→ αu = 0 = 0 → αu = Λeu = 0 → ωT ϕ(xu )
∂w u=1
∂b u=1
∂eu ∂α u
+ b + eu − yu = 0 (5)
The ω is eliminated and the LS-SVM regression module was attained.
N
complexity is enhanced, if kernel variable is high, later it outcomes from lack of learning. Therefore,
a substantial γ and σ 2 measures are the major goal for attaining remarkable effectiveness.
where test Errori stands for the average test error rates obtained by the LS-SVM model. The AAA
provides an optimal solution by the stimulation of algae feature [22]. Related to actual algae, AAA
moves to the light source for photosynthesis using the application of helical swimming, and it is
adaptable to the whole environment, that is appropriate to adjust the primary species and recreated
by mitotic separation. Henceforth, the AA method has “helical movement”, “evolutionary process”
and “adaptation”. Everyone is determined as a group of algal cells that lives in set (Eqs. (9) and (10)).
If a single algal cell is categorized for generating 2 novel algal cells that are nearby in nature and
the additional classification generates four cells. The algal colony act as a single cell, that is moved
together, and cells in a colony pass away in unfavorable situation. The physical applications like shear
force share the colonies and parts that are handled as novel colonies. It is existing at an optimal point
is named a colony of optimal and has optimum algal cells.
. . .
Population of Algal colony = [x11 · · · xD1 .. . . .. x1N · · · xDN ] (9)
Colonies swim & Algal cells attempt to exist in adjacent water surfaces because of the sufficient
light for survival rate. It swims in helical architecture in liquid by flagella. The movement of algal cells
is distinct. As it is a friction surface, the evolution of algal cells is established quickly and frequency of
helical actions are improved by enhancing the local search capability. The power of algal cell in time
t is equivalent to amount of nutrients spent in the time. Henceforth, maximal algal cell is nearby to
CMC, 2022, vol.72, no.1 117
surface, it has high energy level that moves in the liquid. Later, friction surface turns into minimal and
motion distance of liquid becomes expanded consequently. Therefore, the global search potency was
improved. Thus, it moves to the lowest energy proportion. The motion of an algal cell was executed
helically. Likewise, it can be spherical in shape, and volume is denoted by size. Therefore, friction
surface is deliberated as surface area of hemisphere (Eqs. (17) and (18)).
τ (xi ) = 2πr2 (17)
2
3Gi
τ (xi ) = 2π
3
(18)
4π
where τ (xi ) denotes friction surface. The three dimension structure for helical motion of an algal
cell is calculated in arbitrary way. It offers linear motion in Eq. (19) and residual 2 dimensional give
angular effort from Eqs. (20) and (21). Eq. (20) is employed to 1 dimension problem and algal cell is
moved in one way. In event of 2 dimension problems, algal movement is denoted by sinusoidal, and
so the Eqs. (19) and (21) were employed. For huge dimensions, algal motion is executed helically and
Eqs. (19)–(21) are utilized. Friction surface and distance to light source estimates the step size of every
motion:
im = xim + (xjm − xim )(
xt+1 − τ i (xi ))p
t t t
(19)
xt+1
il = xtil + (xtjl − xtil )( − τ i (xi ))sinβ (21)
whereas Xikt , Xilt and Ximt are x, y and z coordinate point of ith algal cell in time t; α, β ∈ [0, 2π ];
p ∈ [−1, 1]; indicates shear force; τ i (xi ) represents friction surface area of i th algal cell.
4 Performance Validation
This section validates the performance of the presented IoML-SIS technique. The presented model
is tested using three sensor data namely soil moisture, temperature, and humidity. The dataset holds
five class labels namely high needed, needed, average, not needed, and highly not needed. The data
ranges of the sensor data and its respective labels are given in Fig. 3.
A set of confusion matrices generated by the IoTML-SIS technique under different test runs are
given in Fig. 4. On the execution run-1, the IoTML-SIS technique has classified 90 samples under
Highly Not Needed, 92 samples under Not Needed, 92 samples under average, 91 samples under
Needed, and 93 images under Highly Needed. Meanwhile, on the execution run-2, the IoTML-SIS
approach has ordered 91 samples under Highly Not Needed, 93 samples under Not Needed, 94
samples under average, 93 samples under Needed, and 94 images under Highly Needed.
Figure 4: Confusion matrix of proposed IoTML-SIS method on different runs (a) Run-1, (b) Run-2,
(c) Run-3, (d) Run-4, and (e) Run-5
Eventually, on the execution run-3, the IoTML-SIS method has ordered 93 samples under Highly
Not Needed, 95 samples under Not Needed, 94 samples under average, 94 samples under Needed,
and 94 images under Highly Needed. Concurrently, on the execution run-4, the IoTML-SIS manner
has classified 94 samples under Highly Not Needed, 96 samples under Not Needed, 96 samples under
average, 92 samples under Needed, and 94 images under Highly Needed. Lastly, on the execution
run-5, the IoTML-SIS methodology has ordered 94 samples under Highly Not Needed, 96 samples
under Not Needed, 98 samples under average, 93 samples under Needed, and 95 images under Highly
Needed.
A detailed classification results analysis of the IoTML-SIS technique takes place interms of
different measures in Tab. 1. Besides, the results are examined under varying number of runs. The
experimental results stated that the IoTML-SIS technique has accomplished effective outcomes under
all the applied runs.
CMC, 2022, vol.72, no.1 119
Run-2
Run-3
Run-4
Run-5
Tab. 2 offers a brief average results analysis of the IoTML-SIS technique interms of distinct mea-
sures. The experimental outcomes showcased that the presented IoTML-SIS technique has obtained
120 CMC, 2022, vol.72, no.1
maximum performance. For instance, the IoTML-SIS technique has attained an average precision of
0.918, recall of 0.916, accuracy of 0.966, F-score of 0.916, and MCC of 0.896. Simultaneously, the
IoTML-SIS manner has achieved an average precision of 0.932, recall of 0.930, accuracy of 0.972,
F-score of 0.931, and MCC of 0.913. Eventually, the IoTML-SIS manner has reached an average
precision of 0.941, recall of 0.940, accuracy of 0.976, F-score of 0.940, and MCC of 0.926. Along with
that, the IoTML-SIS technique has obtained an average precision of 0.946, recall of 0.944, accuracy
of 0.978, F-score of 0.944, and MCC of 0.931. Finally, the IoTML-SIS methodology has achieved an
average precision of 0.954, recall of 0.952, accuracy of 0.981, F-score of 0.952, and MCC of 0.941.
Table 3: Comparative analysis of proposed IoTML-SIS method with respect to different measures
Methods Precision Recall Accuracy F-Score
IoTML-SIS 0.938 0.936 0.975 0.937
MLP 0.842 0.874 0.862 0.845
ELM 0.876 0.891 0.870 0.868
KNN-5 0.480 0.410 0.450 0.480
KNN-11 0.590 0.670 0.650 0.580
SVM 0.629 0.671 0.665 0.618
Logistic Regression 0.721 0.763 0.754 0.732
CMC, 2022, vol.72, no.1 121
Fig. 6 inspects the recall analysis of the IoTML-SIS manner with other existing methods. The
figure note that the KNN-5 and KNN-11 approaches have offered lesser recall values of 0.410
and 0.670 correspondingly. Likewise, the SVM and LR manners have reached somewhat improved
outcomes with the recall of 0.671 and 0.763. Also, the MLP and ELM algorithms have outperformed
competitive outcomes with the recall of 0.874 and 0.891 correspondingly. But, the presented IoTML-
SIS method has showcased the existing techniques with a maximal recall of 0.936.
Fig. 7 observes the accuracy analysis of the IoTML-SIS method with other recent algorithms.
The figure specified that the KNN-5 and KNN-11 techniques have offered minimum accuracy values
of 0.450 and 0.650 correspondingly. Similarly, the SVM and LR techniques have attained slightly
increased results with the accuracy of 0.665 and 0.754. At the same time, the MLP and ELM manners
have demonstrated competitive results with the accuracy of 0.862 and 0.870 correspondingly. Finally,
the projected IoTML-SIS method has exhibited the existing approaches with a superior accuracy of
0.975.
122 CMC, 2022, vol.72, no.1
Finally, Fig. 8 determines the F-score analysis of the IoTML-SIS manner with other existing
approaches. The figure clear that the KNN-5 and KNN-11 methods have offered least F-score values
of 0.480 and 0.580 respectively. Also, the SVM and LR techniques have achieved somewhat increased
results with the F-score of 0.618 and 0.732. Besides, the MLP and ELM approaches have depicted
competitive outcomes with the F-score of 0.845 and 0.868 correspondingly. Eventually, the presented
IoTML-SIS methodology has demonstrated the recent methods with the higher F-score of 0.937.
5 Conclusion
This paper has introduced a new IoTML-SIS for precision agriculture in order to effectively use
the water resources in farmland. The proposed model involves three different processes namely data
collection, LS-SVM based classification, and AAA based parameter tuning. During data collection
phase, a set of sensors measure the farmland parameters and are fed into the ML model for
classification purposes. The LS-SVM model is applied as a classifier to determine the required level of
the water. Besides, the parameters involved in the LS-SVM model are tuned optimally using AAA
CMC, 2022, vol.72, no.1 123
to enhance the classification performance. The performance validation of the proposed IoTML-
SIS technique ensured better performance over the compared methods interms of several evaluation
parameters. The experimental results ensured that the IoTML-SIS technique is found to be an
appropriate tool for smart irrigation in precision agriculture. In future, it can be deployed in real time
environment.
Funding Statement: The authors extend their appreciation to the Deanship of Scientific Research at
King Khalid University for funding this work under grant number (RGP 2/209/42). This research
was funded by the Deanship of Scientific Research at Princess Nourah bint Abdulrahman University
through the Fast-Track Research Funding Program.
Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the
present study.
References
[1] L. Oborkhale, A. Abioye, B. Egonwa and T. Olalekan, “Design and implementation of automatic irrigation
control system,” IOSR Journal of Computer Engineering, vol. 17, no. 4, pp. 99–111, 2015.
[2] R. Koech and P. Langat, “Improving irrigation water use efficiency: A review of advances, challenges and
opportunities in the Australian context,” Water, vol. 10, no. 12, pp. 1771, 2018.
[3] H. Benyezza, M. Bouhedda, K. Djellout and A. Saidi, “Smart irrigation system based thingspeak and
arduino,” in 2018 Int. Conf. on Applied Smart Systems (ICASS), Medea, Algeria, pp. 1–4, 2018.
[4] E. A. Abioye, M. S. Z. Abidin, M. S. A. Mahmud, S. Buyamin, M. H. I. Ishak et al., “A review
on monitoring and advanced control strategies for precision irrigation,” Computers and Electronics in
Agriculture, vol. 173, pp. 105441, 2020.
[5] I. A. T. Hashem, I. Yaqoob, N. B. Anuar, S. Mokhtar, A. Gani et al., “The rise of ‘big data’ on cloud
computing: Review and open research issues,” Information Systems, vol. 47, pp. 98–115, 2015.
[6] J. Gubbi, R. Buyya, S. Marusic and M. Palaniswami, “Internet of things (IoT): A vision, architectural
elements, and future directions,” Future Generation Computer Systems, vol. 29, no. 7, pp. 1645–1660, 2013.
[7] X. Zhang and H. Khachatryan, “Investigating homeowners’ preferences for smart irrigation technology
features,” Water, vol. 11, no. 10, pp. 1996, 2019.
[8] F. Visconti, J. M. d. Paz, D. Martínez and M. J. Molina, “Laboratory and field assessment of the capacitance
sensors decagon 10HS and 5TE for estimating the water content of irrigated soils,” Agricultural Water
Management, vol. 132, pp. 111–119, 2014.
[9] M. S. Munir, I. S. Bajwa, M. A. Naeem and B. Ramzan, “Design and implementation of an IoT system
for smart energy consumption and smart irrigation in tunnel farming,” Energies, vol. 11, no. 12, pp. 3427,
2018.
[10] A. A. Ahmed, S. Al Omari, R. Awal, A. Fares and M. Chouikha, “A distributed system for sup-
porting smart irrigation using internet of things technology,” Engineering Reports, pp. 1–13, 2020.
https://doi.org/10.1002/eng2.12352.
[11] A. H. Blasi, M. A. Abbadi and R. Al-Huweimel, “Machine learning approach for an automatic irrigation
system in southern Jordan valley,” Engineering, Technology & Applied Science Research, vol. 11, no. 1, pp.
6609–6613, 2021.
[12] A. Vij, S. Vijendra, A. Jain, S. Bajaj, A. Bassi et al., “IoT and machine learning approaches for automation
of farm irrigation system,” Procedia Computer Science, vol. 167, pp. 1250–1257, 2020.
[13] L. H. Esfahani, A. T. Rua and M. McKee, “Assessment of optimal irrigation water allocation for
pressurized irrigation system using water balance approach, learning machines, and remotely sensed data,”
Agricultural Water Management, vol. 153, pp. 42–50, 2015.
124 CMC, 2022, vol.72, no.1
[14] H. Shen, K. Jiang, W. Sun, Y. Xu and X. Ma, “Irrigation decision method for winter wheat growth period in
a supplementary irrigation area based on a support vector machine algorithm,” Computers and Electronics
in Agriculture, vol. 182, pp. 106032, 2021.
[15] H. N. Hellín, J. M. del-Rincon, R. D. Miguel, F. Soto-Valles and R. Torres-Sánchez, “A decision support
system for managing irrigation in agriculture,” Computers and Electronics in Agriculture, vol. 124, pp. 121–
131, 2016.
[16] J. Cardoso, A. Gloria and P. Sebastiao, “Improve irrigation timing decision for agriculture using real time
data and machine learning,” in 2020 Int. Conf. on Data Analytics for Business and Industry: Way Towards
a Sustainable Economy (ICDABI), Sakheer, Bahrain, pp. 1–5, 2020.
[17] A. Glória, J. Cardoso and P. Sebastião, “Sustainable irrigation system for farming supported by machine
learning and real-time sensor data,” Sensors, vol. 21, no. 9, pp. 3079, 2021.
[18] M. S. Munir, I. S. Bajwa, A. Ashraf, W. Anwar and R. Rashid, “Intelligent and smart irrigation system
using edge computing and IoT,” Complexity, vol. 2021, pp. 1–16, Feb. 2021.
[19] R. Torres-Sanchez, H. Navarro-Hellin, A. Guillamon-Frutos, R. San-Segundo, M. C. Ruiz-Abellón et al.,
“A decision support system for irrigation management: Analysis and implementation of different learning
techniques,” Water, vol. 12, no. 2, pp. 548, 2020.
[20] E. A. Abioye, M. S. Z. Abidin, M. S. A. Mahmud, S. Buyamin, M. K. I. AbdRahman et al., “IoT-Based
monitoring and data-driven modelling of drip irrigation system for mustard leaf cultivation experiment,”
Information Processing in Agriculture, pp. 1–32, 2020. https://doi.org/10.1016/j.inpa.2020.05.004.
[21] A. Chamkalani, S. Zendehboudi, A. Bahadori, R. Kharrat, R. Chamkalani et al., “Integration of LSSVM
technique with PSO to determine asphaltene deposition,” Journal of Petroleum Science and Engineering,
vol. 124, pp. 243–253, 2014.
[22] S. A. Uymaz, G. Tezel and E. Yel, “Artificial algae algorithm (AAA) for nonlinear global optimization,”
Applied Soft Computing, vol. 31, pp. 153–171, 2015.