Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Design of a Fuzzy-based Automated Organic

Irrigation System for Smart Farm


John R. Dela Cruz, Jo-Ann V. Magsumbol, Elmer P. Dadios,
Renann G. Baldovino, Francisco B. Culibrina, Laurence A. Gan Lim
Gokongwei College of Engineering, De La Salle University, Manila, Philippines
john_delacruz@dlsu.edu.ph

Abstract – Irrigation system plays a very important role in


organic farming. It provides the necessary water requirement for
the whole farm. But it is necessary for the irrigation system to be
efficient, especially in providing the optimal distribution of
available water resources. Also, since the water from an
irrigation system will come from an underground reservoir, it
requires electrical water pump to collect water. In a smart farm,
proper allocation of resources is required. In order to control the
usage of water resources for irrigation, this paper proposes the
design of an automated organic irrigation system in controlling
and properly allocating the available water resources for the
irrigation system and available electricity for the use of the
pump. Experiments through MATLAB simulation were done
using a proposed system to achieve the optimum water and
electrical resource distribution.
Fig. 1. The three dimensions of agricultural sustainability. [2]
Keywords – Organic Irrigation System, Fuzzy Logic, Smart
Farm, Automation, Power Management Automated irrigation systems are not new. But the
problem of efficiently allocating water resources to irrigate
I. INTRODUCTION plants with just the right amount of water necessary for it still
exists. [4] In some farms, especially those located in elevated
Agriculture is one of the vital sectors of a country’s areas far from rivers or lakes, underground water reservoirs
economy. It involves the systematic raising of useful plants are being utilized. But the problem of transporting it from
and livestock. [1] It is the backbone of food security in a underground to the surface requires the use of water pumps.
country. But the agricultural process itself requires a lot of Electric pumps are used and require a large amount of current
investment to have a good yield, especially in preventing and and power. In a smart farm, independent power sources are
mitigating effects of changing climatic conditions. used like solar panel systems, etc. Therefore, proper allocation
of power resources will become a problem. [5] This problem
Agricultural sustainability, which refers to the proper is the main goal of precision agriculture solutions, which is to
management of agricultural resources in satisfying the human improve the farming productivity by defining the farming
necessities while maintaining the environmental quality and needs and acting according to the inferences from experiences
conserving natural resources [2], has been the issue of current of farming and agriculture experts. [6][7]
agricultural techniques being used in conventional farming.
Organic agriculture or organic farming [3] was introduced in Conventional irrigation systems use inorganic or synthetic
order to contribute to the improvement of sustainability, fertilizers such as nitrogen and phosphorous compounds that
particularly in the three dimensions as seen in Fig. 1. are being mixed with the irrigation waters. However, too
much application of this fertilizers may cause leachates if not
Water, as considered as the agriculture’s bloodline, plays fully solubilize due to water shortage. On the other hand,
a major role in maintaining the sustainability of an organic organic irrigation systems use organic and bio-organic
farm. Farms need water to sustain the soil moisture needed to fertilizers such as animal manure which is less hazardous and
cultivate crops. To answer this problem, the irrigation system cost-effective. [8]
was invented to provide water for farms that are too far from
natural bodies of waters like rivers, lakes, etc. Through the In this paper, the researchers propose the design of an
continuous use of irrigation systems, it has been found out that automated organic irrigation systems for a smart farm, from
too much water may cause problems depending on the soil gathering water in the reservoir up to the irrigation of the farm
texture and too little water may cause the unsuitable growth of through the implementation of fuzzy logic control, including
crops. [4] the automation of turning on the electric pump through the

978-1-5386-0912-5/17/$31.00 ©2017 IEEE

Authorized licensed use limited to: COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY. Downloaded on June 25,2022 at 11:55:10 UTC from IEEE Xplore. Restrictions apply.
power management system based on the current situation of
the reservoir and the water storage.

II. SYSTEM ARCHITECTURE

The proposed Smart Farm Automated Organic Irrigation


System (SFAOIS) aims to optimize the amount of water
resources in the smart farm. This system, as seen in Fig. 2, is
subdivided into four subsystems: Water Tank Monitoring and
Control Subsystem (WTMCS), Fish Pond Monitoring and
Control Subsystem (FPMCS), Open Irrigation Control
Subsystem (OICS), and Chamber Irrigation Control
Subsystem (CICS). Each subsystem represents the control of Figure 4. Fish Pond Monitoring and Control Subsystem (FPMCS) Block
the vital parts of an irrigation system: water source, water Diagram)
storage, piping, sensors, and actuators. The transmission of
data and control of the actuators in the SFAIS will be through
Wireless Personal Area Network (WPAN) via LoRa from the
field to the control room. [9][10]

Fig. 2. Smart Farm Automated Organic Irrigation System

Fig. 5. Open Irrigation Control Subsystem (OICS) Typical Block Diagram


The purpose of the WTMCS is to monitor and control the
farm’s main water storage tank and to send the priority level The CICS, responsible for the irrigation of the controlled
to the power management system that will turn on the motor (experimental) environment of the smart farm, has the role of
pump that will transfer the water to the water tank from the measuring and monitoring the soil moisture and temperature
underground reservoir. [10] The typical block diagram of the of the chamber and limiting the water flow entering the
WTMCS can be seen in Fig. 3. chamber by controlling the valves for the drip line and
sprinkler or humidifier. Fig. 6 shows the block diagram of the
CICS.

Figure 3. Water Tank Monitoring and Control Subsystem (WTMCS) Typical


Block Diagram

The FPMCS monitors the water level and pH level of the


fish pond. The fish pond was placed at the interface between
the water storages and the irrigable area. This will also be one Fig. 6. Open Irrigation Control Subsystem (OICS) Typical Block Diagram
of the sources of nutrients for the plants since the fish manure
will be considered as a fertilizer. [11] The block diagram of The main control of each of the subsystems is a fuzzy
the FPMCS is shown in Fig. 4. logic control (FLC), which was introduced by Lotfi Zadeh in
1965. In this control, a single-valued input or crisp input is
The purpose of the OICS, which is a multiple identical mapped into a fuzzy set or fuzzy input, which is typically
sensor-actuator groups located at each assigned open zones in expressed in terms of a linguistic variable. The fuzzy inputs
the smart farm, is to measure and monitor the soil moisture of will then be processed by an inference engine, where there is a
each open zones and to limit the water flow to each through set of linguistic rules, to yield fuzzy outputs. The
controlling the zone valves. The typical block diagram of the defuzzification or the reverse process of fuzzification will take
OICS can be seen in Fig. 5. place to yield the crisp output. [12][13]

Authorized licensed use limited to: COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY. Downloaded on June 25,2022 at 11:55:10 UTC from IEEE Xplore. Restrictions apply.
Fig. 7 shows the control process diagram of the WTMCS.
The level (L) and the change in level (DL) in the water tank
are set as the input of the controller, wherein the profile or the
specifications of the water tank was considered. The control
will yield the priority level (PRIO) of the power management
system to turn on or off the motor. Table I shows the fuzzy
associative memory (FAM) or the summary of linguistic rules
Figure 10. Membership Function for Priority Level (PRIO) of WTMCS FLC
of the FLC for the WTMCS, while Figs. 8 to 10 shows the
membership functions of its inputs and output.
Fig. 11 shows the control process diagram of the FPMCS.
The water level (L) and the change in water level (DL) in the
fish pond will be measured and will be processed by the
FPMCS control by fuzzifying these inputs, considering the
specifications for the said fish pond. The output of the control
will be the position of the control valve (VP) going to the
main irrigation pipe. Table II shows the FAM of the FPMCS
FLC and Figs. 12 to 14 shows the membership functions of its
inputs and output.
Fig. 7. WTMCS Control Process Diagram

TABLE I
FAM MATRIX FOR WTMCS FLC

DL
Z L H
E MP HP HP
L

N MP MP HP Fig. 11. FPMCS Control Process Diagram


F LP LP MP
TABLE II
FAM MATRIX FOR FPMCS FLC
Legend:
For L E – Empty For DL Z – Zero
DL
N – Normal L – Low
F – Full H – High L M H
For PRIO LP – Low Priority L C C C
L

MP – Medium Priority N O O C
HP – High Priority H O O C

Legend:
For L L – Low For DL L – Low
N – Normal M – Medium
H – High H – High
For VP C – Close
O – Open

Figure 8. Membership Function for Water Tank Level (L) of WTMCS FLC

Figure 12. Membership Function for Fish Pond Level (L) of FPMCS FLC

Figure 9. Membership Function for Change in Water Tank Level (DL) of


WTMCS FLC

Figure 13. Membership Function for Change in Fish Pond Level (DL) of
FPMCS FLC

Authorized licensed use limited to: COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY. Downloaded on June 25,2022 at 11:55:10 UTC from IEEE Xplore. Restrictions apply.
Figure 16. Membership Function for Soil Moisture (SM) of OICS FLC

Figure 14. Membership Function for control valve position (VP) of FPMCS
FLC

Fig. 15 shows the control process diagram of the OICS.


The soil moisture (SM) and change in soil moisture (DSM) on
the open plots will be measured and will serve as the input of
the FLC for the OICS, based on the soil and plant profile. Figure 17. Membership Function for Change in Soil Moisture (DSM) of OICS
FLC
These will be fuzzified, processed, and defuzzified to yield the
time the control valve will open (VP) for each plot. The FLC Fig. 18 shows the control process diagram of the CICS.
to be used is a Takagi-Sugeno Fuzzy Inference, wherein the There will be six (6) inputs for the CICS control – soil
output membership function is linear [14]. Table III shows the moisture (SM), temperature (T), humidity (H), and their
FAM of the OICS FLC and Figs. 16-17 shows the respective changes (DSM, DT, and DH). These inputs will be
membership function of its inputs. The output of the system used to determine the length of time the drip line valve (VP1)
will be computed based on the weighted average of all and the sprinkler or humidifier line valve (VP2).
outputs, as seen in Equation (1).

(1)

Fig. 18. CICS Control Process Diagram

Fig. 15. OICS Control Process Diagram The CICS control used multiple FLC to minimize the
memory consumption of the computer and to serve as a good
TABLE III filter to the noise on the input data of each FLC [13]. Fig. 19
FAM MATRIX FOR OICS FLC shows the different FLC used in the CICS. FLC1 controls the
drip line valve based on the values of SM and DSM, which is
DSM the same with OICS FLC. FLC2, FLC3, and FLC4 control the
Z S M L sprinkler or humidifier line valve based on the values of T,
VL N N L VL DT, H, and DH.
L S N N L
SM

SM DSM T DT H DH
N S S N N
H VS S S N
CICS FLC 2 CICS FLC 3
Legend:
For SM VL – Very Low For DSM Z – Zero CICS FLC 1

L – Low S – Small CICS FLC 4

N – Normal M – Medium
H – High L – Large
For VP VL – Very Long (25 s) Drip Line Valve Sprinkler Valve

L – Long (20 s) Fig. 19. CICS Control Process Diagram showing the implementation of
N – Normal (15 s) multiple FLC.
S – Short (10 s)
VS – Very Short (5 s) Figs. 20-27 shows the membership inputs and outputs of
the CICS FLC.

Authorized licensed use limited to: COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY. Downloaded on June 25,2022 at 11:55:10 UTC from IEEE Xplore. Restrictions apply.
Fig. 20. Membership Function for Soil Moisture (SM) of CICS FLC

Fig. 27. Membership Function for Length of time for sprinkler or humidifier
valve to open (VP2) of CICS FLC

III. SIMULATION RESULTS

In order to have an idea of the expected output for the


proposed irrigation system, the simulation was done in
Fig. 21. Membership Function for Change in Soil Moisture (DSM) of CICS MATLAB. Each subsystem was simulated, and each FLC was
FLC tested using the Fuzzy Inference System (FIS) simulation.
Since the simulation consists of multiple crisp input values
and crisp output values, it can be easily seen using the Surface
Viewer and can be interpreted. The surface viewer shows the
relationship of the inputs and outputs of the FLC. [5] Figs. 28
to 33 shows the fuzzy surface view of each FLC in the
subsystem control.

Fig. 22. Membership Function for Temperature (T) of CICS FLC

Fig. 23. Membership Function for Change in Temperature (DT) of CICS FLC

Fig. 28. Fuzzy Surface View of WTMCS FLC

Fig. 24. Membership Function for Humidity (H) of CICS FLC

Fig. 29. Fuzzy Surface View of FPMCS FLC

Fig. 25. Membership Function for Change in Humidity (DH) of CICS FLC

Fig. 26. Membership Function for Length of time for drip irrigation valve to Fig. 30. Fuzzy Surface View of OICS FLC and CICS FLC1
open (VP1) of CICS FLC

Authorized licensed use limited to: COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY. Downloaded on June 25,2022 at 11:55:10 UTC from IEEE Xplore. Restrictions apply.
Salle University (DLSU) for the continuous assistance to
make this research possible.

REFERENCES
[1] A.L. Abellanosa and H.M. Pava, Introduction to Crop Science, Bukidnon,
Philippines: Central Mindanao University Publications Office, 1987.

[2] I. Gomez and L. Thivant, Training Manual for Organic Agriculture. FAO,
2015.

[3] V. Seufert, N. Ramankutty, and T. Mayerhofer, “What is this thing called


organic? – How organic farming is codified in regulations,” Food Policy,
Fig. 31. Fuzzy Surface View of CICS FLC2 vol. 68, pp. 10–20, 2017.

[4] K. Anand, C.Jayakumar, M. Muthu, and S. Amirneni, “Automatic Drip


Irrigation System using Fuzzy Logic and Mobile Technology,” in IEEE
Conference on Technological Innovations in ICT for Agriculture and
Rural Development, Chennai, India, 2015

[5] F. Culibrina and E. Dadios, “Smart Farm Using Wireless Network for
Data Acquisition and Power Control Distribution,” in 8th IEEE
International Conference on Humanoid, Nanotechnology, Information
Technology, Communication and Control, Environment and Management
(HNICEM), Cebu, Philippines, 2015

[6] F.J. Pierce and E.J. Sadler, The State of Site Specific Management for
Agriculture, ASA Publications, CSSA e SSSA, Madison, WI, USA, 1997.

Fig. 32. Fuzzy Surface View of CICS FLC3 [7] L.G. Paucar, A.R. Diaz, F. Viani, F. Robol, A. Polo, and A. Massa,
“Decision Support for Smart Irrigation by Means of Wireless Distributed
Sensors” in IEEE 15th Mediterranean Microwave Symposium (MMS),
Lecce, Italy, 2015

[8] R. A. Ansari and I. Mahmood, “Optimization of organic and bio-organic


fertilizers on soil properties and growth of pigeon pea,” Scientia
Horticulturae, vol. 226, pp. 1–9, 2017.

[9] J. Dela Cruz, R. Baldovino, A. Bandala, and E. Dadios, “Water Usage


Optimization of Smart Farm Automated Irrigation System Using
Artificial Neural Network” in 2017 Fifth International Conference on
Information and Communication Technology (ICoICT), Melaka,
Malaysia, 2015

[10] J. Dela Cruz, R. Baldovino, F. Culibrina, A. Bandala, and E. Dadios,


Fig. 33. Fuzzy Surface View of CICS FLC4 “Fuzzy-based Decision Support System for Smart Farm Water Tank
Monitoring and Control” in 2017 Fifth International Conference on
Information and Communication Technology (ICoICT), Melaka,
IV. CONCLUSION AND RECOMMENDATION Malaysia, 2015

Based on the simulations above, it can be seen that SFAIS [11] PJ Mahesh, M. Naheem, R. Mubafar, S. Shyba, and S. Beevi, “New
has a high chance of providing an optimal distribution of Aspect for Organic Farming Practices: Controlled Crop Nutrition and
Soilless Agriculture” in IEEE 2016 Global Humanitarian Technology
water resource and electrical resource to the farm through the Conference, Seattle, WA, USA, 2016
implementation of fuzzy logic in the system. Fuzzy surface
outputs of each FLC of subsystems can clearly identify that [12] L. Zadeh, “Fuzzy Sets”, Information and Control, Vol 8 (3), pp. 338-353,
the resources will be allocated properly and not giving the 1965.
whole resource for a particular time. Also, implementation of [13] E. P. Dadios and D. J. Williams, “Multiple Fuzzy Logic Systems: A
multiple FLC for subsystems with more than 2 inputs is a Controller for the Flexible Pole-Cart Balancing Problem,” in IEEE
good practice instead of having a single FLC with more than 2 International Conference on Robotics and Automation, Minneapolis,
inputs due to its effect on the computing memory. Minnesota, 1996

[14] M. Sugeno, Industrial applications of fuzzy control, Elsevier Science


For future researchers, the researchers recommend the Publication Co., 1985.
implementation of artificial neural network (ANN) and
Genetic Algorithm (GA) to achieve a more efficient system in
distributing an optimal system.

ACKNOWLEDGEMENT

The researchers would like to thank the Engineering


Research and Development for Technology (ERDT) of the
Department of Science and Technology (DOST) and De La

Authorized licensed use limited to: COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY. Downloaded on June 25,2022 at 11:55:10 UTC from IEEE Xplore. Restrictions apply.

You might also like