Professional Documents
Culture Documents
Abstract— The vision of the Mauritian’s Ministry of Agro- pH range of 6-7 among other parameters [7]. A smart
Industry and Food security is to further develop the agricultural aquaponics system is therefore one where these parameters are
sector and to promote the agro-industry by focusing on safety, automatically monitored and controlled using sensors and
supply, quality, innovation and new technologies. This research actuators.
work attempts to develop a smart aquaponics system that
combines conventional aquaculture with hydroponics. The As pointed out by Khirade and Patil, the identification of
system uses the Internet of Things to continuously sense and plant diseases is key to preventing losses in the yield and
control the environment and to provide real-time feedback and quantity of agricultural product [8]. Hence, Artificial
alerts to the owner through a mobile application. It features a Intelligence (AI) with image processing can be very useful in
camera surveillance system that enables live streaming of the a smart aquaponics system. Diseases in plants can therefore be
aquaponics setup and also allows for further image processing. identified, analyzed and classified automatically without any
Through the captured images, the system performs leaf human interaction.
recognition identifying the type of the leaf. Moreover, the system
also performs disease detection that identifies if the leaf, and The primary objective of this paper is to design and
consequently the plant, is suffering from a specific disease. If the develop a smart aquaponics system that combines
system detects a disease, it automatically generates a report conventional aquaculture with hydroponics. The owner of the
which is sent to the owner through the mobile application. The smart aquaponics system should be able to remotely monitor
prototype has been tested and looks very promising. We hope and automatically control the environment of the plants and
that this work paves the way towards a smart aquaponics system fish through a mobile application. The owner should also be
that detects, identifies and notifies the owner of possible diseases able to view the status of various parameters through sensor
at early stage before their propagation. readings and be automatically notified in case of anomalies.
The paper also introduces a disease detection system in such
Keywords— Internet of Things, smart aquaponics, image an environment where the system performs a leaf
processing, leaf identification, disease detection identification and detects the presence of diseases, if any, on
I. INTRODUCTION the leaves. A resulting report is then sent to the owner with the
infected leaf as attachment. A prototype application has been
Agriculture is undergoing a fourth revolution triggered by successfully implemented and tested.
the exponentially increasing use of information and
communication technology [1]. Agriculture has become The remainder of this paper is structured as follows. Some
autonomous through robots which perform most of the related works are summarized in section 2. Our system,
mechanical works either under the soil, around the plants or Plantabo Aevum, is presented in section 3. We discuss the
even aerially like livestock monitoring through drones. As a implementation of the prototype in section 4. Section 5
result, agriculture has now transformed into smart agriculture. presents an evaluation of our system and finally, we conclude
the paper in section 6.
The land area of Mauritius is about 1965 km2, with an
estimated population of 1.2 million people [2]. With land II. RELATED WORKS
under agricultural production reaching 44% of the arable land In this section, firstly, some works related to aquaponics
area, Mauritius is a big food importer with a self-sufficiency were surveyed to have a general idea about the setup and the
ratio of less than 30 %. On top of this, Mauritius, being a inherent characteristics, and secondly, an investigation was
tropical island, is often affected by natural calamities such as carried out on selected works related to disease detection using
cyclones and flash floods. As highlighted by Elia et al., a image processing.
possible solution to food security and sustainability is the use
of aquaponics [3]. Aquaponics is an integrated multi-trophic Adhitya et al. [9] used Arduino microcontrollers to control
system that combines elements of recirculating aquaculture the different agricultural features of a mushroom farm. The
and hydroponics whereby the water from the fish tanks, that Arduino sensor system collected the following data:
is enriched in nutrients, is used for plant growth [4]. While fish temperature and humidity, atmospheric pressure, soil moisture
farming is being done, their waste is used to fertilize the water and temperature, leaf wetness, solar and ultraviolet radiation,
which continuously flows through a water bank. wind speed and amount of rain. A sensor board extension was
used to connect all the sensors. Controlling air conditioning
Although aquaponics can solve the problems related to and irrigation system were examples of the uses of the sensors
food security and sustainability, its operation can be daunting and the sensor board. Moreover, MQ Sensor protocol was
since it is imperative to continuously monitor the parameters used to connect the device with the IoT Cloud and to transfer
for the healthy growth of the plants and fish [5]. The three the data.
groups of organisms, namely plants, fish, and bacteria, in an
aquaponics system, require adequate levels of water Channe et al. [10] used the SensorKit module to provide
temperature, pH, and dissolved oxygen for maximum growth memory, processing and GPS to track positional information.
and health [6]. The ideal parameters for an aquaponics system Sensors were used to measure soil pH, soil moisture and
can be considered as an agreement between these three groups concentration of potassium, phosphorus and nitrate in the soil.
of organisms and involve a temperature range of 18-30 °C, a The AgroCloud modules stored information about the farmers
• Aquaponics Setup The mobile application retrieves the status of the sensors
through ThingSpeak web view and Firebase. The user is also
The setup consists of the different components needed for able to perform a live viewing of the aquaponics and its IoT
a proper farming of plants and fish. The fish reside in the water setup. The application can also be used to set the actuators in
of the lower component. The fish excrements fertilize the their desired positions. Alerts about any suspected diseases are
water which is then pumped to the plant component for plant sent to the mobile application through emails with an attached
nourishment. photo.
extraction (e.g. convexity, extreme points from diagonals,
length center to extreme points, segments number, segments
lengths etc…) and post-processing (areas, perimeters, ratio
etc…) to obtain a better classification of the leaf name which
is computed through a decision tree comparing the values of
different extracted features. The training of the anomaly
detection is more concerned about the pre-processing and
feature extraction of the images. The different filters, i.e.
thresholding, dilatation and erosion amongst others have
different limit values and the ideal values are found during the
training sessions. Finally, the post processing calculations and
Fig. 2. Aquaponics and IoT Setup the results obtained from the two sections are then merged to
obtain a final classification of the possible disease name.
Fig. 2 shows the aquaponics and IoT setup. The main
components of the setup are as follows: IV. SYSTEM PROTOTYPE
• Fish Component - the main habitat of the aquatic As highlighted in the previous section, the Plantabo
animals with their excrements. The waste produced Aevum project consists of a number of components namely the
by the fish supplies the nutrients for plants grown aquaponics setup, IoT system, the mobile application and the
hydroponically which in turn purify the water. leaf identification and disease detection.
• Plant Component - the site of fresh living plants using A. Setting up the Environment
the cycled and fertilized water within the setup. To setup the environment, several hardware and software
• Soil Component - the site of fresh living plants using have been used and are as follows:
the cycled and fertilized water as watering system. • The IoT Setup
• Sensor Components - to collect all required data and For the IoT setup, the following hardware has been used:
send them to the microcontrollers. 2 x Raspberry pi 3 B +, Arduino Uno, LED Screen, wireless
keyboard and mouse, DHT11, LDR, Soil Hygrometer, Float
• Actuator Components – to help in achieving a proper
meter, PH electrode probe BNC, Water Level Sensor, 240V
climatic condition
Pump, Mini Submersible Water Pump 3-6V, 12V Cooling
• Microcontroller components – to retrieve the sensor Fan, SG90, GPS Module Ubox NEO-6m, LED, Buzzer,
data, process them and give instructions to actuators. Relays and 2 pi cameras.
Fig. 3 highlights the proposed framework. The following software and libraries/plugins have been
used: Raspbian OS Jessie, Python Programming Language V
2.7.3, ADAFRUIT library V 2.1.0, Pyrebase Library (Python-
firebase) V 3.0.27, Urllib2 Library V 2.7.9, Picamera Library
V 1.10.1, SocketServer Library, SMTPlib Library V 1.0 and
MIMEMultipart Library V 1.0.
• The Android mobile application
To create the mobile application, the following hardware
has been used: MacBook Pro 15”, Samsung Galaxy S7 and
Samsung Galaxy Note 8.
The following software and libraries/plugins have been
used: Android Studio IDE (V3.2.1 for Mac OS), GoogleMap
library V16.0, Firebase-auth library V16.1.0, Firebase-
database library V16.0.5, Firebase-messaging library V12.0.1
and Google play services library V16.0.0.
• The Leaf Identification and Disease Detection System
The following hardware has been used: low-resolution
camera on Samsung Galaxy S7, pure white led stripe and
white A4 paper.
The following software and libraries/plugins have been
used: Raspbian OS Wheezy, Python Programming language
V 3.6, OpenCV2 V 3.1.0, Numpy library for cv2 V 1.9.2,
Fig. 3. Proposed Framework Imutils library for cv2, Smtplib Library V 1.0, MIME
Multipart Library V 1.0 and TinyGPS.
The disease detection system is divided into two core
section which are the leaf type (name) detection and the B. The Prototype
anomalies detection. Both sections require training for pre- Fig. 4 shows the smart aquaponics prototype which
processing, feature extraction or post-processing. The leaf consists of the aquaponics and IoT setup. The following
detection section requires more training after the feature functionalities have been successfully implemented:
Data Monitoring - The data from sensors and actuators are C. Leaf Identification
read, sent to ThingSpeak and displayed on the mobile In order to identify the leaf type/name, the following
application in the form of graphs and widgets as shown in Fig. processes have been carried out.
5. The monitored data are temperature, humidity, soil
moisture, water level, water pH, light intensity, location and • Pre-Processing
status of actuators.
Converting an image in grayscale eases the process image
processing since differentiating between different colors can
be complex. Blurring the image allows to remove noise on the
image and thresholding acts as a barrier between white and
black colors. It consists of dilating and eroding the image to
fill small holes in the image.
• Feature Extraction
To find contour of leaf, the second largest area is detected
since the largest area is the frame of the photo itself. The area
of the leaf has been found using the
contourArea(‘contour_index’) function in the openCV library.
The perimeter of the leaf (Fig. 9a) was found using the
arcLength(‘contour_index’, True). A rectangle was then
bounded around the leaf to get the length and width of the leaf.
The threshold image was then broken down into 16
segmentations (Fig. 9b). Contours were drawn, and bounding
Fig. 4. The smart aquaponics prototype rectangle have been produced on each segmentation so as to
get their length. From the bounding rectangle of the leaf, the
Controlling Modes – Three different modes of controlling length, midpoint of length, width and midpoint of width were
the smart aquaponics system have been implemented, namely found. Using these lengths, 1 horizontal line, 1 vertical line
the manual, automatic and timer modes. In the manual mode, and 2 diagonals were drawn (Fig. 9c). A circle is drawn on the
the user can control the different actuators. In the automatic point where the lines cross each other so that the 4 lines
mode, the user presets the parameters, e.g. temperature, become 8 lines.
humidity etc.… and the actuators are automatically
manipulated for the environment to reach the targeted values,
e.g. by watering the soil or by turning on the lights. In the timer
mode, the user sets the time for which the actuators should be
turned on and off. Fig. 6 shows the screen for the manual mode
and Fig. 7 shows the watering system being turned on.
Camera Surveillance - The user can use the mobile app to
have a live view of the smart aquaponics setup. Fig. 8 shows
a snapshot of the live camera feed.