Fuzzy Logic Based Smart Irrigation System Using IoT
Fuzzy Logic Based Smart Irrigation System Using IoT
net/publication/375915120
CITATIONS READS
3 922
3 authors:
Md. Khaliluzzaman
International Islamic University Chittagong
83 PUBLICATIONS 336 CITATIONS
SEE PROFILE
All content following this page was uploaded by Md. Khaliluzzaman on 25 January 2024.
1 Department of Computer and Communication Engineering, International Islamic University Chittagong (IIUC),
Chattogram 4318, Bangladesh
2 Department of Electronics and Telecommunication Engineering,
Chittagong University of Engineering & Technology (CUET), Chattogram 4349, Bangladesh;
[email protected]
3 Department of Computer Science and Engineering, International Islamic University Chittagong (IIUC),
Chattogram 4318, Bangladesh; [email protected]
* Correspondence: [email protected]
† Presented at the 10th International Electronic Conference on Sensors and Applications (ECSA-10),
15–30 November 2023; Available online: https://ecsa-10.sciforum.net/.
Approximately 70% of the Earth’s freshwater resources are allocated for agricultural
and food production, making it the primary consumer of water globally [2,5]. Considering
the substantial water consumption within the industrial sector, it is reasonable to expect a
surplus allocation of water resources towards agricultural activities. Experts have identified
low irrigation efficiency as a significant contributor to water wastage [6,7].
The United Nations Food and Agriculture Organization asserts that runoff and evap-
otranspiration cause the wastage of approximately 60% of the water that is used for
irrigation. [8]. Digital advancements in agriculture are crucial, not just in less developed
nations grappling with food and water scarcity but also in affluent nations due to climatic
fluctuations, antiquated and ineffective irrigation systems, pandemics, and other unantic-
ipated obstacles [4,9]. The implementation of automated agricultural irrigation systems
provides farmers with the capacity to regulate water volumes accurately, regardless of the
availability of labour for manual valve management and plant growth monitoring [10]. In
the present era, automation has been widely implemented in various sectors, encompassing
industries, household administration, and agriculture [11]. Using sensor-driven irrigation
systems that are deployed throughout agricultural fields offers a promising option for man-
aging irrigation and maximizing crop productivity while promoting water conservation.
Intelligent agricultural systems provide a sophisticated technology that enables farmers to
improve their crop output through cost-effective techniques [12].
The efficiency of intelligent irrigation systems utilizing IoT technology and a fuzzy
logic controller (FLC) can be enhanced by evaluating data and implementing irrigation
adjustments based on factors such as soil moisture and temperature [13]. Communication
technologies such as Zigbee, LoRaWAN, and cloud computing facilitate monitoring and
storing of data in real time [14]. The Internet of Things (IoT) employs diverse networks
to gather data from the physical environment, employing optimization techniques to
enhance operational efficiency. The abundance of applications provides evidence for the
adaptability of fuzzy logic, a computational approach that effectively manages uncertainty
and efficiently makes decisions in practical contexts [15].
Researchers have conducted a plethora of studies on utilizing fuzzy inference systems
and Internet of Things (IoT) technologies in agriculture [16]. In their research, the authors
in reference [17] provide a methodology for identifying meteorological condition variables
and utilizing these data to quantify the frequency and quantity of water that is required
for cultivation. The proposed system design [18] examines a fog wireless communication
platform for monitoring and managing sensors and actuators, intending to determine
the irrigation requirements for crops. Previous research [19] shows that implementing a
decision support system can enhance regulated irrigation practices, ensuring consistent
soil moisture levels. Additionally, such a system can prioritize areas with a low water
content while minimizing the negative impacts of irrigation on regions with a high water
content. In the study conducted by the authors of [20], novel irrigation techniques were
devised to optimize agricultural water utilization through fuzzy logic. The researchers
employed a Mamdani control system and utilized MATLAB and Simulink software to
conduct simulations. The results exhibited accurate modelling and underscored the ef-
ficacy of the Mamdani fuzzy logic control system in optimizing the utilization of water
resources in agriculture. In reference [21], fuzzy logic systems are employed to improve
decision making assessments instead of standard acknowledgement control procedures.
Fuzzy logic can enhance the adaptive capabilities of irrigation systems in response to the
ever-changing dynamics of their surrounding environment. The manipulation of if–then
rules in fuzzy inference systems can be efficiently achieved by applying fuzzy logic and
set theory [22]. This article employs the widely adopted and accessible Mamdani method-
ology for irrigation control. This approach exhibits similarities to human cognition and
linguistic processes.
This article explores implementing an intelligent irrigation system based on fuzzy
logic. This technology calculates the optimal irrigation volume for crops by considering
meteorological conditions. The attainment of an ideal crop yield is contingent upon
This article explores implementing an intelligent irrigation system based on fuzzy
logic. This technology calculates the optimal irrigation volume for crops by considering
meteorological conditions. The attainment of an ideal crop yield is contingent upon
Eng. Proc. 2023, 58, 93 3 of 11
providing an appropriate quantity of water, avoiding excessive and inadequate amounts.
The created fuzzy control system integrates four input parameters: soil moisture, solar
radiation, air temperature, and air humidity. We have considered these specific compo-
providing
nents an appropriate
because quantity
they influence waterofevaporation
water, avoiding
fromexcessive
the soil. and
The inadequate
management amounts.
of the
The created fuzzy control system integrates four input parameters: soil
pump’s speed influences the rate of water delivery, achieved through the regulation moisture, solar
of
radiation, air temperature, and air humidity. We have considered these specific components
the output parameter of the fuzzy logic control system. This invention differentiates itself
because
from they
prior influence water
methodologies by evaporation
using a more from the soil.
extensive setThe
of management
input variables of and
the pump’s
formu-
speed influences the rate of water delivery, achieved through the regulation
lating a direct fuzzy rule based on the interconnectedness between each input and of the output
output
parameter of the fuzzy logic control system. This invention differentiates
parameter. The system aims to enhance farmers’ engagement and facilitate their transi-itself from prior
methodologies by using a more extensive set of input variables and formulating a direct
tion to intelligent agriculture practices. The main contributions of this study can be
fuzzy rule based on the interconnectedness between each input and output parameter. The
summarized as follows:
system aims to enhance farmers’ engagement and facilitate their transition to intelligent
•agriculture
This study focuses
practices. Theonmain
designing and implementing
contributions of this studyancanintelligent irrigation
be summarized system
as follows:
that utilizes fuzzy logic and leverages the Internet of Things (IoT) for real-time
• This study focuses on designing and implementing an intelligent irrigation system
capture of meteorological and soil information. The system aims to enable informed
that utilizes fuzzy logic and leverages the Internet of Things (IoT) for real-time capture
irrigation decisions by applying a fuzzy inference system.
of meteorological and soil information. The system aims to enable informed irrigation
• The motor’s activation or deactivation is automated based on the data obtained from
decisions by applying a fuzzy inference system.
the soil moisture sensor in order to mitigate excessive consumption of water and
• The motor’s activation or deactivation is automated based on the data obtained
electricity.
from the soil moisture sensor in order to mitigate excessive consumption of water
• The engine is automatically deactivated in reaction to rain to conserve electricity
and electricity.
• resources.
The engine is automatically deactivated in reaction to rain to conserve electricity resources.
•• There
There isis no
no need for human
need for human intervention.
intervention.
The remaining sections
The remaining sectionsare
arestructured
structured
asas follows:
follows: Section
Section 2 explains
2 explains the technique
the technique that
that
was utilized in developing our work. Section 3 presents the outcomes that werethat
was utilized in developing our work. Section 3 presents the outcomes were
achieved
achieved
followingfollowing
the system’stheimplementation,
system’s implementation,
discussions,discussions,
unresolvedunresolved
issues, and aissues, and a
comparison
comparison against other cited systems. Concluding the paper, Section 4 underscores
against other cited systems. Concluding the paper, Section 4 underscores the key takeaways the
key takeaways
of the of the
research and research
outlines and outlines
potential paths potential
for futurepaths for future investigations.
investigations.
2. Proposed
Proposed System
System Model
By utilizing real-time data collected from sensors, an intelligent irrigation system
enhances the
the efficacy
efficacyofofwatering
watering practices.
practices. The
The depicted
depicted system
system architecture,
architecture, as illus-
as illustrated
trated in Figure
in Figure 1, showcases
1, showcases the process
the process flow. flow.
Figure 1. Proposed
Proposed architecture of smart irrigation system.
arrangement, data
In this arrangement, data are collected
collected by sensors, afterwards
afterwards interpreted
interpreted by
by an
Arduino, and ultimately utilized by the fuzzy controller to determine the optimal timing
for grass irrigation. Integrating
Integrating the
the Internet
Internet of
of Things
Things (IoT)
(IoT) and
and Wireless
Wireless Sensor Network
(WSN) technology enables
enables smooth communication between sensorsand
smooth communication between sensors andArduino
Arduinodevices,
devic-
facilitating efficient information exchange.
es, facilitating efficient information exchange.
Figure
Figure 2.
2. Internal
Internal structure
structure of
of fuzzy
fuzzy logic
logic controller.
controller.
x≤a
0,
x−a ,
a≤x≤b
µtriangle ( x; a, b, c) = cb−−xa . (1)
c−b ,
b≤x≤c
c≤x
0,
0, x≤a
x−a
a ≤ x ≤ b
b− a ,
µtrapezoidal ( x; a, b, c) = 1, b ≤ x ≤ c (2)
d− x
d−c , c ≤ x ≤ d
0, d ≤ x
Tables 1–5 present the threshold values for the inputs and output. As mentioned
earlier, the values play a critical role in the generation of rules through the utilization
of membership functions in the fuzzification process. These reference points serve as a
basis for identifying the appropriate linguistic phrases and fuzzy sets that are linked to
each variable.
The system included fuzzy logic principles by formulating and exploiting the mem-
bership functions described in (1) and (2). The fuzzy logic controller (FLC) would require
81 rules to decide on the irrigation choice, considering four inputs with three member-
ship functions each. However, employing careful examination, the established principles
were refined to 49, resulting in optimization. Table 6 presents a compilation of exemplary
firing rules.
Additionally, the MIN-MAX inference aggregation method and criteria were employed
to ascertain the stress levels. We used the highest value to modify the output fuzzy region
while employing the minimal value of the predicate truth to restrict the fuzzy union.
Eng. Proc. 2023, 58, 93 6 of 11
Employing the minor operator diminished the overall level of certainty of the stress state.
Utilizing the MAX composition technique established the membership function for the
irrigation time. The intelligent irrigation system uses four inputs, namely, moisture (M),
temperature (T), humidity (H), and light (L). We use Equations (3) and (4) to compute the
MIN-MAX aggregation inference.
(YVS C 0 1 + YS C 0 2 + YM C 0 3 + YL C 0 4 + YVL C 0 5 )
Y1 = (6)
(C 0 1 + C 0 2 + C 0 3 + C 0 4 + C 0 5 )
Equation (5) illustrates the process of generating the de-fuzzified output, denoted
as x*, for the output variable x using the membership function µi (x). On the other hand,
Equation (6) is employed to determine the Centroid of Area (CoA) for the proposed system.
In this equation, (Y) represents the centroid of the output variable, while C0 1 , C0 2 , C0 3 , C0 4 ,
and C0 5 correspond to the results of the membership functions. Additionally, YVS = {VSt = 2},
YS = {St = 5}, YM = {Mt = 12}, YL = {Lt = 25}, and YVL = {VLt = 45} are the singleton functions
associated with each output.
Figure5.5.Relationship
Figure Relationshipamong
amonghumidity,
humidity,soil
soilmoisture,
moisture,and
andcorresponding
correspondingoutput
outputfor
forthe
theFLC.
FLC.
Figure 6. Relationship among temperature, solar radiation, and corresponding output for the FLC.
In order to provide empirical support for the conclusions drawn by the proposed
system, aRelationship
comparative
Figure 6.6.Relationship
Figure amongevaluation
among is undertaken
temperature,
temperature, to compare
solarradiation,
solar radiation, its performance
andcorresponding
and corresponding outputfor
output with
forthe
thethat of
FLC.
FLC.
the most recent systems [23,24]. These systems were selected as benchmarks based on
theirInIn orderto
order
resemblance toprovide
provide empirical
to theempirical
proposedsupportsupport
irrigation forapproach.
for theconclusions
the conclusions drawnby
drawn
The evaluation byprocess
theproposed
the proposed
main-
system,
system, aa comparative
comparative evaluation
evaluation is
is undertaken
undertaken to
to compare
compare
tained consistency in the proposed system’s conditions, features, periods, and existing its
its performance
performance with
with that
that of
of
the
the most
most recent
recent systems
systems [23,24].
[23,24]. These
These systems
systems were
were selected
selected
solutions to guarantee a comprehensive and unbiased assessment. This approach facili- as
as benchmarks
benchmarks based
based onon
theirresemblance
their
tated aresemblance
realistic and toto
thethe proposed
proposed
meaningful irrigation
irrigation
comparison approach.
approach.
between Thetwo.
the The evaluation
evaluation processprocess main-
maintained
consistency
tained Table in the proposed
consistency
7 presents in athe system’s conditions,
proposed
comparative system’s features,
analysis conditions,
of periods,
the proposed features, andperiods,
and existingand solutions to
existing
models, fo-
guarantee
solutions
cusing onato comprehensive
guarantee
three key parameters: and unbiased
weekly assessment.
a comprehensive and unbiased
water volumes,This approach
assessment.
actuator facilitated
This
time, approach
and a realistic
energy facili-
con-
and
tatedmeaningful
sumption.a realistic comparison
and
The results meaningful
indicatebetween the proposed
comparison
that the two.between the two.
model has a lower water use than al-
Table
Table 7 7presents
presents a comparative
a comparative analysis
ternative models, including those referenced in [23,24]. of
analysis the
of proposed
the proposed
The and existing models,
and existing
reduced duration focusing
models,
of pump- fo-
on
ingthree
cusing key parameters:
on proposed
in the three key parameters:weekly water
system leadsweekly volumes, actuator
water volumes,
to decreased time, and
actuator time,
actuator operation energy
time and consumption.
and energy
diminished con-
The results
sumption.
energy indicate
The results
consumption. thatSignificantly,
the proposed
indicate that themodel
the has a lower
proposed
proposed model
model water
hasuse than alternative
a lower
demonstrates water
an 11% use models,
than al-
reduction
including
in energythose
ternative models, referenced
including
use compared tointhe
[23,24].
those The reduced
referenced
previous model. Induration
in [23,24].
Figure The7,ofreduced
apumping in the
duration
comparison is proposed
of pump-
presented
system
ing in leads
the to
proposeddecreased
system actuator
leads operation
to decreased time and
actuator diminished
operation
between the intelligent irrigation system that has been proposed and existing systems in energy
time consumption.
and diminished
Significantly,
terms theirthe
energyofconsumption. proposed
water and model consumption
Significantly,
energy demonstrates
the proposed an 11%
over model
fourreduction
demonstrates
months. inThe
energy
an use
chosen11%timecompared
reduction
frame
to
hasthe
in energyprevious model.
use compared
been determined basedIn Figure
toon 7,
theitspreviousa comparison
congruence model.
withIntheis presented
Figure
ideal 7, between
a comparison
duration the intelligent
is presented
that is necessary for
irrigation
between
the growth system
the that hasirrigation
intelligent
and development beenof proposed
system
potato and
thatexisting
plants. has been systems
proposed in terms of their water
and existing systems andin
energy
terms of consumption
their waterover and four
energy months. The chosen
consumption over time
four frame
months.has been determined
The chosen timebased
frame
on
hasitsbeen
Table congruence
determined
7. Proposed withbased
system the ideal duration
on its
evaluation. congruence that iswith
necessary
the idealfor the growth
duration andisdevelopment
that necessary for
of
thepotato
growth plants.
and development of potato plants.
Water Consumption Operating Time of Energy Consumption
Irrigation Model
Table7.7.Proposed
Table Proposedsystemsystemevaluation.(L)
evaluation. Actuators (Wh)
[23] 59 1 h 17 m 08 s 108
Water
Water Consumption OperatingTime
Operating Timeof EnergyEnergy Consumption
[24]
Irrigation
Irrigation Model Model 45
Consumption (L)
0 h
of
56 m
Actuators
45 s Consumption
73
(L) Actuators (Wh) (Wh)
[23]
[23] 5959 11hh17 17 mm 08
08 ss 108
108
[24]
[24] 4545 00hh56 56 mm 45 ss 73
73
Eng.
Eng. Proc. 2023,
2023, 58,
58, 93
93 99of
of 11
References
1. FAO. The State of Food and Agriculture 2020. In Overcoming Water Challenges in Agriculture; FAO: Rome, Italy, 2020. [CrossRef]
2. World Resources Institute. Ranking the World’s Most Water-Stressed Countries in 2040. 2018. Available online: https://www.wri.
org/insights/ranking-worlds-most-water-stressed-countries-2040 (accessed on 14 September 2022).
3. Veeramanikandasamy, T.; Sambath, K.; Rajendran, K.; Sangeetha, D. Remote Monitoring and Closed Loop Control System
for Social Modernization in Agricultural System Using GSM and Zigbee Technology. In Proceedings of the 2019 International
Conference on Advances in Electrical Engineering (ICAEE), Vellore, India, 7–9 March 2019; pp. 1–4. [CrossRef]
4. Abbasi, R.; Martinez, P.; Ahmad, R. The digitization of agricultural industry—A systematic literature review on agriculture 4.0.
Smart Agric. Technol. 2022, 2, 100042. [CrossRef]
5. Hoque, M.J.; Ahmed, M.R.; Hannan, S. An Automated Greenhouse Monitoring and Controlling System using Sensors and Solar
Power. Eur. J. Eng. Res. Sci. 2020, 5, 510–515. [CrossRef]
6. Veerachamy, R.; Ramalakshmi, R.; Kavin, B.P.; Hussain, I.; Almaliki, A.H.; Almaliki, A.A.; Elnaggar, A.Y.; Hussein, E.E. Exploiting
IoT and its enabled technologies for irrigation needs in agriculture. Water 2022, 14, 719. [CrossRef]
7. Debo-Saiye, Y.; Okeke, H.S.; Mbamaluikem, P.O. Implementation of an Arduino-Based Smart Drip Irrigation System. Int. J. Trend
Sci. Res. Dev. 2020, 5, 1130–1133.
8. Ullah, S.; Hafeez, G.; Rukh, G.; Albogamy, F.R.; Murawwat, S.; Ali, F.; Khan, F.A.; Khan, S.; Rehman, K. A Smart Sensors-Based
Solar-Powered System to Monitor and Control Tube Well for Agriculture Applications. Processes 2022, 10, 1654. [CrossRef]
9. Vij, A.; Vijendra, S.; Jain, A.; Bajaj, S.; Bassi, A.; Sharma, A. IoT and machine learning approaches for automation of farm irrigation
system. Procedia Comput. Sci. 2020, 167, 1250–1257. [CrossRef]
10. Muangprathub, J.; Boonnam, N.; Kajornkasirat, S.; Lekbangpong, N.; Wanichsombat, A.; Nillaor, P. IoT and agriculture data
analysis for smart farm. Comput. Electron. Agric. 2019, 156, 467–474. [CrossRef]
11. Tsiropoulos, Z.; Skoubris, E.; Fountas, S.; Gravalos, I.; Gemtos, T. Development of an energy efficient and fully autonomous
low-cost IoT system for irrigation scheduling in waterscarce areas using different water sources. Agriculture 2022, 12, 1044.
[CrossRef]
12. Alomar, B.; Alazzam, A. A Smart Irrigation System Using IoT and Fuzzy Logic Controller. In Proceedings of the 2018 Fifth HCT
Information Technology Trends (ITT), Dubai, United Arab Emirates, 11–13 March 2018; pp. 175–179. [CrossRef]
13. Veerachamya, R.; Ramar, R.; Balaji, S.; Sharmila, L. Autonomous Application Controls on Smart Irrigation. Comput. Electr. Eng.
2022, 100, 230–245. [CrossRef]
14. Zhang, H.; He, L.; Di Gioia, F.; Choi, D.; Elia, A.; Heinemann, P. LoRaWAN based Internet of Things (IoT) system for precision
irrigation in plasticulture fresh-market tomato. Smart Agric. Technol. 2022, 2, 100053. [CrossRef]
15. Rao, R.N.; Sridhar, B. IoT Based Smart Crop-Field Monitoring and Automation Irrigation System. In Proceedings of the 2018
2nd International Conference on Inventive Systems and Control (ICISC), Coimbatore, India, 19–20 January 2018; pp. 478–483.
[CrossRef]
16. Kurniawan, D.; Witanti, A. Prototype of Control and Monitor System with Fuzzy Logic Method for Smart Greenhouse. Indones. J.
Inf. Syst. 2021, 3, 116–127. [CrossRef]
17. Soy, H.; Dilay, Y. Fuzzy Control of Agricultural Irrigation System through Wireless Sensor/Actuator Networks. J. Multidiscip. Eng.
Sci. Technol. 2020, 3, 6093–6097.
18. Munir, M.S.; Bajwa, I.S.; Cheema, S.M. An Intelligent and Secure Smart Watering System Using Fuzzy Logic and Blockchain.
Comput. Electr. Eng. 2019, 77, 109–119. [CrossRef]
19. Ibrahim, F.S. Smart Irrigation System Using a Fuzzy Logic Method. Int. J. Eng. Res. Technol. 2018, 11, 1417–1436.
20. Farkas, I.; Nagy, L. Improved Climate Control for Potato Stores by Fuzzy Controller. Comput. Electron. Agric. 2019, 180, 127–140.
21. Mamdani, E.H. Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis. IEEE Trans. Comput. 1977,
26, 1182–1191. [CrossRef]
Eng. Proc. 2023, 58, 93 11 of 11
22. Izzuddin, T.A.; Johari, M.A.; Rashid, M.Z.A.; Jali, M.H. Smart Irrigation Using Fuzzy Logic Method. ARPN J. Eng. Appl. Sci. 2018,
13, 2.
23. Krishnan, R.S.; Julie, E.G.; Robinson, Y.H.; Raja, S.; Kumar, R.; Son, L.H. Fuzzy Logic Based Smart Irrigation System Using Internet
of Things. J. Clean. Prod. 2020, 252, 119902. [CrossRef]
24. Benyezza, H.; Bouhedda, M.; Rebouh, S. Zoning Irrigation Smart System Based on Fuzzy Control Technology and IoT for Water
and Energy Saving. J. Clean. Prod. 2021, 302, 127001. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual
author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to
people or property resulting from any ideas, methods, instructions or products referred to in the content.