23 Agriculture Learning - Aided - System - For - Agriculture - Monitoring - Designed - Using - Image - Processing - and - IoT-CNN
23 Agriculture Learning - Aided - System - For - Agriculture - Monitoring - Designed - Using - Image - Processing - and - IoT-CNN
ABSTRACT The Internet of Things (IoT) and artificial intelligence (AI) based methods for monitoring,
control, and decision support are combined to design of a smart agriculture assistance system. The proposed
system has a sensor pack that provides continuous data capture of temperature records, air and soil moisture
and a camera for obtaining near-infrared (NIR) images of the plant leaves for use with an AI decision support
system. We identify twelve types of vegetation for the study, out of which five disease classes of the tomato
leaves are categorized using a Convolutional Neural Network (CNN). The work also includes experiments
conducted with multiple clustering-based segmentation methods and some features namely Gray level
co-occurrence matrix (GLCM), Local binary pattern (LBP), Local Binary Gray Level Co-occurrence Matrix
(LBGLCM), Gray Level Run Length Matrix (GLRLM), and Segmentation-based Fractal Texture Analysis
(SFTA). Out of several AI tools, CNN proves to be effective in providing automated decision support for
classifying the plant leaf disease types through a cloud server that can be accessed using an app. Extensive
on-field trials show that the system (VGG16 CNN, GLCM and a fuzzy based clustering) is effective in hot
and humid conditions and proves to be reliable in identifying disease classes of certain vegetable types,
certain usable vegetation cover of farmland and regulation of watering mechanism of crops.
INDEX TERMS Artificial intelligence, near-infrared images, CNN, image processing, leaf disease, smart
agriculture.
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
VOLUME 10, 2022 41525
K. K. Sarma et al.: Learning Aided System for Agriculture Monitoring Designed Using Image Processing and IoT-CNN
several other critical areas. In [6], color and pattern anal- We report the design of a health monitoring system of
ysis applied to identify multiple deficiencies in paddy leaf the plants which is based on the calculation of the Normal-
images have been reported. There are also attempts to use ized Difference Vegetation Index (NDVI) to distinguish the
internet of things (IoT) platforms and cloud computing as healthy and non-healthy plants using images that are captured
aids to farming. Authors in [7] proposed a framework that by a near infra-red (NIR) camera as part of an IoT set-up and
combines cloud computing and unified IoT for application in integrated with a learning-aided platform. The low-cost pack
the agriculture sector. IoT has also been a preferred option connecting several sensors and the NIR camera forms the IoT
for water flow control in agriculture [8]. It has been com- and revolves around a programmed microcontroller linked
bined with pattern analysis techniques for providing smart to a computer system and subsequently to a cloud server.
agriculture solutions [9], including classification of weeds Subsequently, the entire framework works together with a
[10] and crops disease detection [11], [12]. The applica- learning-based system that identifies diseased and healthy
tion of AI-based methods for predictive farmland optimiza- leaves. The framework is formulated after conducting a series
tion has been reported in [13], a combination of IoT and of experiments involving clustering, SVM, machine, and
machine learning tools for goat monitoring in [14], soil deep learning methods. The work involves experiments with
texture classification using support vector machine (SVM) two clustering-based segmentation methods: K-means clus-
by Barman et al. in [15], chlorophyll detection by a class of tering (KMC) and Fuzzy C-means (FCM) clustering used to
learning techniques explored in [16], etc. The performance of separate healthy and diseased leaf segments. The specific AI
deep learning methods for agriculture has been highlighted tools used are SVM, a Multi-Layer Perceptron (MLP) that is
in [17]–[20]. Application of AI based method in combination a feed-forward ANN, a Time Delay Neural Network (TDNN)
of spatio-temporal methods for real life situations have been that is another feed-forward ANN, an Adaptive Neuro-Fuzzy
reported [21], [22], [26]–[28]. These are some of the recent Inference System (ANFIS) that is a fuzzy-based decision-
works related to the use of AI and IoT tools in agriculture and making method, and a Convolutional Neural Network (CNN)
certain real-life situations. that is a popular deep learning tool. The AI aspect of the work
The discussion above establishes the importance of is deployed in a cloud server which can be accessed using
learning-based tools and IoT in the agriculture sector. an app. After extensive on-field trials, it has been found that
As health monitoring of the plants is one of the foremost the system is useful for a class of agricultural produce com-
tasks in smart agriculture, there are ample scopes to explore monly seen in hot and humid conditions of India. Especially,
innovative ways to make the farmer’s life easier, especially the deep learning-based decision support system formed
in a country like India where agriculture and allied sectors by the VGG16 CNN proves to be effective when used in
employ a huge section of the population. Here we describe the combination with Gray level co-occurrence matrix (GLCM)
design of a proof-of-concept approach to see the effectiveness features and FCM based clustering (which performs seg-
of an arrangement based on multiple sensors and AI based mentation of the region of interest (RoI) of tomato leaves)
decision support system used for process monitoring and con- and adopted as part of the health monitoring system. The
trol for improving yield of agricultural produce. The proposed system is also used to identify effective usable vegetation
system is part of a precision farming approach where the cover of farmland. The novelty of the system is the design
application of IoT devices, image processing techniques and of a deep learning-based decision support system formed by
an AI framework are configured to derive decision states and the VGG16 CNN which proves to be effective when used
execute process control to help the farmer to maximize the in combination of GLCM features and FCM based cluster-
produce. In this work, the decision states obtained from the ing (which performs segmentation of the region of interest
AI system regarding plant heath triggers a pump for water (RoI) of tomato leaves) and adopted as part of the health
sprinkling. The farmer maybe constrained to keep an eye monitoring and process control system which is also used
continuously on a plot of land where certain crops are being to identify effective usable vegetation cover of a farmland.
grown. So, for continuous monitoring and deriving decision The rest of the paper is organized as follows. In Section 2,
states regarding plant health such a set-up is considered to be the proposed work is discussed in detail. The results and
effective. It provides an approach to automate certain repeti- discussion have been covered in Section 3. The outcomes
tive tasks and assists the farmer to execute healthy practices of the work have been summarized in the conclusion
for obtaining better agricultural yield. The IoT system is section.
required to capture the state of the geographical elements and
facilitate continuous monitoring. A drone might be an exten- II. PROPOSED WORK
sion of an IoT system. The Landsat images used currently Here, we discuss the details of the plant leaf health monitoring
to validate the ability of the AI system. The Landsat images system deployed over an IoT, a cloud server and the decision
can be replaced by real-time feed obtained from a camera states generated using a class of clustering, SVM and learning
mounted on a drone. Ground truth is that the life of the farmer aided methods. Before discussing the design and working
is very miserable. So, any arrangement that makes the misery of the complete system, some basic notions related to the
of the farmer less is always a healthy development. It matters different elements of the work are discussed in the sections
a lot for populous countries like India. below.
6) MLP
The MLP is a multi-layer feed forward ANN which is made
up of one input and one output layer and one or several
hidden layers with log-sigmoid, tan-sigmoid or purely linear
activation functions. A generic MLP architecture is shown in
Fig. 3 [23]. Let X be an input applied to a MLP. Let W1ij be
the weight matrix between input and hidden layer and W2jk
be the weight matrix required to connect the artificial neurons
between the middle layer and the output layer. Here, i keeps
count of number of input samples, j is related to the indexing
of the number of hidden layer neurons and k is linked to the
output layer size. The output of the MLP is expressed as
XK XJ XI
Yo = fk { (X i W1ij + bi )W2jk (2)
k=1 j=1 i=1
Let YT be the target output. The mean square error (MSE) is FIGURE 4. Layout of the TDNN.
expressed as:
1 XP p 2
method, the TDNN is able to track variations in data due
E= (Yop − YT ) (3) to time. Like MLP, it also has multiple layers with input,
2 p=1
output and hidden types and is trained with back propagation
During training, weight update happens following a gradient
algorithm. In our case with have used 1 to 2 numbers of
descent principle. The weight update expression is given as
positive delay to develop time tracking ability of the ANN.
1E Fig. 4 shows a layout of the TDNN [23]. For the TDNN, the
W [n + 1]j = W [n]j + µ (4)
1W [n] output and other expressions are same as shown in (2)-(4)
where µ is the learning rate of the network usually taken to except that the input shall be a combination of X (n)+X (n+T )
be a fraction between 0 and 1. The MLP is trained with back where T denotes the delay used in the input feed layer.
propagation algorithm till it learns the patterns completely.
The choice of hidden layers’ number and the activation 8) SUPPORT VECTOR MACHINE (SVM)
functions depends upon the requirements. In our case we The SVM is a supervised learning-based approach used for
have used a one hidden layer MLP with one and half times classification and regression. The working of the SVM is
more numbers of artificial neurons of the input layer. These explained using Fig. 5. The discrimination boundary between
activation functions are of log-sigmoid type and are used to the classes is laid by
learn the leaf classification patterns.
H0 : w.x i + b = 0 (5)
7) TIME DELAY NEURAL NETWORK (TDNN) where input x i is scaled by weight w and aided by the
The TDNN is another multi layered feedforward ANN like bias b. It classifies the patterns according to the values asso-
MLP but has delayed feed in the input. With this feeding ciated with support vectors across the two sides of the
TABLE 2. Accuracy (Acc), IOU and PA performance of KCM and FCM clustering approaches used for segmentation.
FIGURE 11. GUI showing pre and post pre-processing, segmentation and
selection of region of interest operations over a diseased leaf.
FIGURE 15. Red band and NIR band images obtained as part of
vegetation estimation.
TABLE 4. PDR with varying pack sizes of sensors with Bluetooth, physical
and Wi-Fi connectivity.
TABLE 5. Outcomes of statistical trials involving recall, specificity, type I and type II errors, F1 score, micro F1 and macro F1 values involving leave disease
recognition (C1) with GLCM features and FCM segmentation and geographic distribution identification (C2) using SVM, MLP, TDNN, ANFIS and CNN
classifiers.
sprinkling mechanism. Further, the images obtained from the [12] A. Devaraj, K. Rathan, S. Jaahnavi, and K. Indira, ‘‘Identification of plant
NIR camera are used to train a set of learning-based tools disease using image processing technique,’’ in Proc. Int. Conf. Commun.
Signal Process. (ICCSP), Apr. 2019, pp. 749–753.
that help monitor the health of the plant leaves. We identify [13] M. O. Adebiyi, R. O. Ogundokun, and A. A. Abokhai, ‘‘Machine learning–
twelve types of vegetation for the study, out of which five based predictive farmland optimization and crop monitoring system,’’
disease types of the tomato leaves are categorized into five Scientifica, vol. 2020, pp. 1–12, May 2020.
[14] Y. Rao, M. Jiang, W. Wang, W. Zhang, and R. Wang, ‘‘On-farm welfare
different types using a pre-trained VGG16 CNN. The work monitoring system for goats based on Internet of Things and machine
includes experiments conducted with two clustering-based learning,’’ Int. J. Distrib. Sensor Netw., vol. 16, no. 7, pp. 1–17, 2020.
segmentation methods, namely KMC and FCM, which sep- [15] U. Barman and R. D. Choudhury, ‘‘Soil texture classification using multi
class support vector machine,’’ Inf. Process. Agricult., vol. 7, no. 2,
arates the healthy and diseased leaf segments and features, pp. 318–332, Jun. 2020.
including GLCM, LBP, LBGLCM, and GLRLM SFTA. Spe- [16] U. Barman and R. D. Choudhury, ‘‘Smartphone image based digital chloro-
cific AI tools like SVM, MLP, TDNN, ANFIS, and the phyll meter to estimate the value of citrus leaves chlorophyll using linear
regression, LMBP-ANN and SCGBP-ANN,’’ J. King Saud Univ. Comput.
VGG16 CNN are trained to provide automated decision Inf. Sci., doi: 10.1016/j.jksuci.2020.01.005.
support for the classification of the plant leaf disease types [17] P. Sharma, Y. P. S. Berwal, and W. Ghai, ‘‘Performance analysis of deep
through a cloud server that can be accessed using an app. learning CNN models for disease detection in plants using image segmen-
tation,’’ Inf. Process. Agricult., vol. 7, no. 4, pp. 566–574, Dec. 2020.
Extensive on-field trials show that the system is effective [18] S. H. Lee, H. Goëaua, P. Bonneta, and J. Alexis, ‘‘New perspectives on
in hot and humid conditions, especially the FCM, GLCM plant disease characterization based on deep learning,’’ Comput. Electron.
feature, and the VGG16 CNN proves to be reliable. Agricult., vol. 170, Mar. 2020, Art. no. 105220.
[19] Z. Zhai, J. F. Martínez, V. Beltran, and N. L. Martínez, ‘‘Decision support
Further, the system has been found to be effective in systems for agriculture 4.0: Survey and challenges,’’ Comput. Electron.
identifying certain usable vegetation cover of farmland and Agricult., vol. 170, Mar. 2020, Art. no. 105256.
regulation the watering mechanism of crops. The system [20] T. V. Klompenburga, A. Kassahuna, and C. Catalb, ‘‘Crop yield prediction
using machine learning: A systematic literature review,’’ Comput. Electron.
proves to be effective in identifying the disease type of cer- Agricult., vol. 170, Oct. 2021, Art. no. 105709.
tain agricultural products. It proves reliable in discriminating [21] A. Ali, Y. Zhu, and M. Zakarya, ‘‘A data aggregation based approach to
thick vegetation, normal vegetation, vegetation cover less exploit dynamic spatio-temporal correlations for citywide crowd flows
prediction in fog computing,’’ Multimedia Tools Appl., vol. 80, no. 20,
soil, water, and others (not falling into these four) controlling pp. 31401–31433, Aug. 2021, doi: 10.1007/s11042-020-10486-4.
the water spaying mechanism associated with the complete [22] N. Awan, A. Ali, F. Khan, M. Zakarya, R. Alturki, M. Kundi,
framework. An expanded version of the work with certain M. D. Alshehri, and M. Haleem, ‘‘Modeling dynamic spatio-temporal
correlations for urban traffic flows prediction,’’ IEEE Access, vol. 9,
added features shall be an effective aid of the farmers. pp. 26502–26511, 2021, doi: 10.1109/ACCESS.2021.3056926.
[23] S. Greengard, The Internet of Things. Cambridge, MA, USA: MIT Press,
2015.
REFERENCES
[24] Ş. Öztürka and B. Akdemirb, ‘‘Application of feature extraction and
[1] A. D. Foster and M. R. Rosenzweig, ‘‘Microeconomics of tech- classification methods for histopathological image using GLCM, LBP,
nology adoption,’’ in Economic Growth Centre Discussion, vol. 2. LBGLCM, GLRLM and SFTA,’’ in Proc. Int. Conf. Comput. Intell. Data
Annu. Rev. Econ., 2010, pp. 395–424. [Online]. Available: https://www. Sci. (ICCIDS), 2018, pp. 40–46.
annualreviews.org/doi/abs/10.1146/annurev.economics.102308.124433 [25] S. Kaushik and S. Tiwari, Soft-Computing, 1st ed. New Delhi, India:
[2] M. A. Shahin and S. J. Symons, ‘‘A machine vision system for grading MacGraw-Hill, 2018.
lentils,’’ Can. Biosyst. Eng., vol. 43, pp. 7–14, Jun. 2001. [26] A. Ali, Y. Zhu, Q. Chen, J. Yu, and H. Cai, ‘‘Leveraging spatio-temporal
[3] R. Shahzadi, J. Ferzund, M. Tausif, and M. Asif, ‘‘Internet of Things based patterns for predicting citywide traffic crowd flows using deep hybrid
expert system for smart agriculture,’’ Int. J. Adv. Comput. Sci. Appl., vol. 7, neural networks,’’ in Proc. IEEE 25th Int. Conf. Parallel Distrib. Syst.
no. 9, pp. 341–350, 2016. (ICPADS), Dec. 2019, pp. 125–132.
[4] K. Jha, A. Doshi, P. Patel, and M. Shah, ‘‘A comprehensive review [27] A. Ali, Y. Zhu, and M. Zakarya, ‘‘Exploiting dynamic spatio-temporal
on automation in agriculture using artificial intelligence,’’ Artif. Intell. graph convolutional neural networks for citywide traffic flows prediction,’’
Agricult., vol. 2, pp. 1–12, Jun. 2019. Neural Netw., vol. 145, pp. 233–247, Jan. 2022.
[5] I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. Cambridge, [28] A. Ali, Y. Zhu, and M. Zakarya, ‘‘Exploiting dynamic spatio-temporal cor-
MA, USA: MIT Press, 2016. relations for citywide traffic flow prediction using attention based neural
[6] M. V. Latte and S. Shidnal, ‘‘Multiple nutrient deficiency detection in networks,’’ Inf. Sci., vol. 577, pp. 852–870, Oct. 2021.
paddy leaf images using color and pattern analysis,’’ in Proc. Int. Conf.
Commun. Signal Process. (ICCSP), Apr. 2016, pp. 1247–1250.
[7] J. Rui and S. Danpeng, ‘‘Architecture design of the Internet of Things
based on cloud computing,’’ in Proc. 7th Int. Conf. Measuring Technol.
Mechatronics Autom., Jun. 2015, pp. 206–209.
[8] V. V. H. Ram, H. Vishal, S. Dhanalakshmi, and P. M. Vidya, ‘‘Regulation
of water in agriculture field using Internet of Things,’’ in Proc. IEEE
Technological Innov. ICT Agricult. Rural Develop. (TIAR), Jul. 2015,
pp. 112–115.
KANDARPA KUMAR SARMA (Senior Member,
[9] A. Kapoor, S. I. Bhat, S. Shidnal, and A. Mehra, ‘‘Implementation of
IEEE) received the M.Tech. degree in signal pro-
IoT (Internet of Things) and image processing in smart agriculture,’’ in
Proc. Int. Conf. Comput. Syst. Inf. Technol. Sustain. Solutions (CSITSS),
cessing from the Indian Institute of Technol-
Oct. 2016, pp. 21–26. ogy Guwahati, Assam, India, in 2005, and the
[10] M. Dyrmann, A. K. Mortensen, H. S. Midtiby, and R. N. Jørgensen, Ph.D. degree in the area of mobile communication
‘‘Pixel-wise classification of weeds and crops in images by using a fully from the Indian Institute of Technology Guwahati.
convolutional neural network,’’ in Proc. Int. Conf. Agricult. Eng., Aarhus, He currently works as a Professor and the Head
Denmark, Jun. 2016, pp. 26–29. of the Department of Electronics and Communica-
[11] J. Amara, B. Bouaziz, and A. Algergawy, ‘‘A deep learning-based approach tion Engineering, Gauhati University, Assam. His
for banana leaf diseases classification,’’ in Proc. Stuttgart, BTW Workshop, research interests include deep learning, mobile
2017, pp. 79–88. communications, speech processing, antenna design, and electronic warfare.
KUNAL KINGKAR DAS received the B.Tech. SAMADRITA BHUIYA received the B.Tech.
degree in electronics and communication engi- degree in electronics and communication engi-
neering from Gauhati University, in 2020. He spe- neering from Gauhati University, in 2020, where
cializes in intelligent system design. she is currently pursuing the master’s degree in
microelectronics and VLSI design. She special-
izes in intelligent system design and intelligent
farming.