<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Machine Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Rakesh Sharma</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ankita Panigrahi</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mamata Garanayak</string-name>
          <email>mamatagaranayak@gmail.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sujata Chakravarty</string-name>
          <email>chakravartys69@gmail.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bijay K. Paikaray</string-name>
          <email>bijaypaikaray87@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lalmohan Pattanaik</string-name>
          <email>lalmohan.p@srisriuniversity.edu.in</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty. of Management Studies, Sri Sri University</institution>
          ,
          <addr-line>Odisha</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>School of Information &amp; Communication Technology, Medhavi Skills University</institution>
          ,
          <addr-line>Sikkim</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>large scale like Late Blight</institution>
          ,
          <addr-line>Bacterial Spot, Early Blight, Septoria Spot, Mosaic Virus</addr-line>
        </aff>
      </contrib-group>
      <fpage>294</fpage>
      <lpage>299</lpage>
      <abstract>
        <p>India being the huge market of agriculture provides the appropriate environment for different varieties of crops. One of the highly produced staples of the market of India is the tomato crop with great commercial value. India is one of the largest countries in terms of production of tomato. However, it is a sad truth that the amount of production and the quality of production of tomato crop is decreasing day by day due to different diseases which affect the crop. This meets the farmer with heavy losses. To decrease this loss, it is very much necessary to have a complete supervision over the growth of the crop. There are various categories of diseases that harm these tomato leaf on a very etc. So, it is necessary to get a solution to prevent these diseases beforehand. This could be done only if we can detect the disease when it is in its beginning stage. With the help of different ML algorithms, leaf disease detection can be done very easily and more precisely with great results. In this paper, Convolutional Neural Networks (CNN) and Res Net 50 are applied to the dataset. The CNN shows the best accuracy among both the applied algorithms.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>India being an economical giant with more than 65% of population linked directly with agriculture
or its products. Farmers face a huge loss due to plant diseases. Mostly tomatoes are produced on the soil
which is well-drained. It is seen that out of every 10 farmers 9 grows tomatoes in their field. In India,
the area of cultivation of tomato crop reaches around approximately 3, 50,000 hectares and the quantities
of production is somewhat around 53,00,000 tons. For getting fresh tomatoes which would taste good
many gardeners also grow it in their gardens. But many times, those farmers and gardeners don’t get
complete progress of the development of the crop. This increases the chances of getting diseases. Plant
affected due to diseases makes 10 to 30% of the overall loss in crops. Detection of these diseases in
plants is very much necessary for reducing the losses in production. It is a very difficult task to manually
monitor the diseases because of its complex nature and also it consumes a lot of time. So, it is important
to decrease the human effort applied in this task and increase the prediction accuracy and making the
farmers live free of worries. The major objective of this paper is to detect diseases which harms the
tomato leaves accurately. In this paper CNN and Res Net 50 have been implemented to work on the
collected data.</p>
      <p>2020 Copyright for this paper by its authors.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Literature Survey</title>
      <p>
        In year 2019 Amrita S.Tulshan along with Nataasha Raul presented a paper here they worked on
plant disease detection. They applied K Nearest Neighbor classification and got the satisfactory accuracy
of 98.56% in predicting plant leaf diseases [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Arti N. Rathod, Bhavesh Tanawal, Vatsal Shah presented
a research paper on detection of leaf disease in the year 2013 in which they described what are the
various method to detect affected leafs using image processing techniques [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Prajwala TM, Alla
Pranathi, Kandiraju Sai Ashritha, Nagaratna B. Chittaragi, Shashidhar G. Koolagudi in the year 2018
presented a paper in which they were studying tomato leaf for disease detection and they have applied a
slight variation of CNN model known as Le Net to find and classify diseases in leaves of tomato and got
an average accuracy with 94-95% [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In 2020 Surampalli Ashok, Gemini Kishore, Velpula Rajesh, S.
Suchitra, S.G.Gino Sophia, B.Pavithra presented a paper working on tomato leaf disease detection, here
they have applied Alex Net, ANN and CNN and got an accuracy of 95.75%, 92.94% and 98.12%
accuracy respectively [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Mohit Agarwal, Abhishek Singh, Siddhartha Arjaria, Amit Sinha, Suneet
Gupta presented a research paper in the year 2020 on tomato leaf disease detection using CNN and got
an accuracy of 91.2% [5]. Halil Durmuú, Ece Olcay Güneú, Mürvet KÕrcÕ presented a paper on disease
detection on the leaves of the tomato where they have applied Alex Net and Squeeze Net and received
95.65% and 94.3% accuracy respectively [6]. Konstantinos P. Ferentinos presented a paper in the year
2018 worked on plant leaf disease detection where they applied VGG model and achieved an accuracy
of 99.48% [7]. In the year 2017 Alvaro Fuentes, Sook Yoon, Sang Cheol Kim and Dong Sun Park present
a research paper on “A Robust Deep-Learning-Based Detector for Real-Time Tomato Plant Diseases
and Pests Recognition”, here they applied VGG 16 and got an accuracy of 83.06% as a result [8].
Geetharamani G., Arun Pandian J. presented a paper in the year 2019, here they were working on spoting
of diseases in leaves of plants using a deep CNN with nine-layers and accied an accuracy of 96.46% [9].
In 2019 PENG JIANG, YUEHAN CHEN, BIN LIU, DONGJIAN HE, AND CHUNQUAN LIANG
presented a paper on “Real-Time Detection of Apple Leaf Diseases Using Deep Learning Approach
Based on Improved Convolutional Neural Networks” here they were using VGG-FCN-VD16 and
VGGFCN-S with average recognition accuracy 97.95% &amp; 95.12%, respectively [10]. XIHAI ZHANG1, YUE
QIAO, FANFENG MENG, CHENGGUO FAN, MINGMING ZHANG in the year 2017 presented a
paper on “Identification of Maize Leaf Diseases Using Improved Deep Convolutional Neural
Networks”, here they applied Google net model and got an accuracy of 98.9% [11]. Melike Sardogan,
Adem Tuncer, Yunus Ozen presented a research paper in the year 2018 on “Plant Leaf Disease Detection
and Classification based on CNN with LVQ Algorithm” and got an average accuracy of 86% [12]. Yang
Lu, Shujuan Yi, Nianyin Zeng, Yurong Liu, Yong Zhang presented a paper in the year 2017, here they
worked on “Identification of Rice Diseases using Deep Convolutional Neural Networks” and got an
accuracy of 95.48% [13]. Jiang Lu, Jie Hu, Guannan Zhao, Fenghua Mei, Changshui Zhang in the year
2017 presented a paper on “An in-field automatic wheat disease diagnosis system” and applied
VGGFCN-VD16 and VGG-FCN-S and got the mean recognition accuracies of 97.95% &amp; 95.12%
respectively over 5-fold cross-validation [14]. Utkarsha N. Fulari, Rajveer K. Shastri, Anuj N. Fulari
presented a paper on “Leaf Disease Detection Using Machine Learning” in the year 2020, here they
applied CNN model on grape dataset and got an accuracy of 99.7% and when applied on strawberry
dataset got an accuracy of 100% [15].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Data Collection</title>
      <p>The dataset used in the paper is taken from the directory available on Kaggle [16]. In total there are
10 directories each containing 1000 images which make up the whole dataset for this paper which are
mentioned underneath:
1. Leaf with Bacterial Spot: This directory has 1000 pictures of tomato leaf which have bacterial spot on
it.
2. Leaf with Early Blight: This directory has 1000 pictures of tomato leaf which have Early Blight on it.
3. Leaf with Late Blight: This directory has 1000 pictures of tomato leaf which have Late Blight on it.
4. Leaf with Mosaic Virus: This directory has 1000 pictures of tomato leaf which have Mosaic Virus on
it.
it.</p>
      <p>on it.
5. Leaf with Septoria Spot: This directory has 1000 pictures of tomato leaf which have Septoria Spot on
6. Target Spot: This directory has 1000 pictures of tomato leaf which have Target spot on it.
7. Leaf Mold: This directory has 1000 pictures of tomato leaf which have leaf Mold on it.
8. Yellow Leaf Curl Virus: This directory has 1000 pictures of tomato leaf which have Curl Virus on it.
9. Two Spotted Spider Mites: This directory has 1000 pictures of tomato leaf which have spider mites
10. Healthy leaf: This directory has 1000 pictures of healthy tomato leaf.
4.</p>
    </sec>
    <sec id="sec-4">
      <title>Machine Learning Algorithms</title>
    </sec>
    <sec id="sec-5">
      <title>4.1. Artificial Neural Network (ANN)</title>
      <p>An artificial Neural Network is simply a Neural Network that resembles a biological Neural Network
present in the brain of humans. It is designed in a way such that it would function the same way a human
brain function. It is the collection of millions and millions of artificial neurons. These artificial neurons
are the building blocks of the ANN model. Artificial Neuron consists of Inputs and their corresponding
weights. An activation function is chosen which takes these inputs multiplies them to their corresponding
weights and produces the output. Every Artificial Neural Network must have three layers: the input layer
which takes the input, the hidden layer where all the computations take place, and the output layers
which produce the output.</p>
      <p>= (∑
  −1 
 =1

 −1</p>
      <p>, −   )
 ( 
) =</p>
      <p>1
1+ − 
(4)</p>
    </sec>
    <sec id="sec-6">
      <title>4.2. Resnet-50 Methodology</title>
      <p>ResNet50 is the type of Resnet model of keras which contains 48 convolutional layers along with 1
MaxPooling and 1 Average Pooling layer. It has 3.8 x 10^9 Floating points operations. This is the most
usable Resnet model. It can be also used for computer vision tasks like classification of images,
localization of objects, and detection of objects [13]. This framework can also be applied to
noncomputational vision tasks to reduce the computational expenses and give them the benefit of depth.</p>
    </sec>
    <sec id="sec-7">
      <title>5. Proposed Methodology</title>
      <p>In the beginning, data is collected from a website named “Kaggle” in the raw form [17]. Then this
raw information is pre-processed where first of all the data was resized to 150 for CNN and 224 for
ResNet 50 then online data augmentation is done to prevent over fitting. After the pre-processing of
the data, the required features are extracted as per the need, and then the data splits for training and
testing purposes.</p>
      <sec id="sec-7-1">
        <title>Data Collection</title>
      </sec>
      <sec id="sec-7-2">
        <title>Data Preprocessing</title>
      </sec>
      <sec id="sec-7-3">
        <title>Feature Extraction</title>
      </sec>
      <sec id="sec-7-4">
        <title>Performance</title>
      </sec>
      <sec id="sec-7-5">
        <title>Comparison</title>
      </sec>
      <sec id="sec-7-6">
        <title>Prediction</title>
      </sec>
      <sec id="sec-7-7">
        <title>Convolutional Neural</title>
      </sec>
      <sec id="sec-7-8">
        <title>Network</title>
      </sec>
      <sec id="sec-7-9">
        <title>ResNet50</title>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>6. Result Analysis</title>
      <p>Result</p>
      <p>When we compare the output of the processed data on different proposed models, we get to know
that the Convolutional Neural Network model gives 94.1% accuracy which is a good one followed by
ResNet 50 with 88.44% accuracy which depict that our CNN model can predict more accurately.</p>
      <p>The above graph showing result of the applied algorithms in the proposed model states that CNN is
having the longest bar which means it is having the highest accuracy of 94.10% with compared to
ResNet50 with the shortest bar and having the accuracy of 88.44%.</p>
    </sec>
    <sec id="sec-9">
      <title>7. Conclusion</title>
      <p>Timely detection and identification of diseases which affect the leaves is very much necessary now
days as it creates a lot of harm to the amount of production and quality of production of crops. This
paper presents a model where a total of 10000 images have been pre-processed and then applied to
machine learning algorithm i.e., CNN and pre-trained model i.e., ResNet 50 for image processing and
prediction work. The acquired outcomes showed that the CNN algorithm got the highest accuracy. The
accuracy of the ResNet 50 Model is satisfactory but, in the future, we can tune the parameters applied
to increase the accuracy further.
[5] Agarwal, Mohit, et al. "ToLeD: Tomato leaf disease detection using convolution neural network."</p>
      <p>Procedia Computer Science 167 (2020): 293-301.
[6] Durmuş, Halil, Ece Olcay Güneş, and Mürvet Kırcı. "Disease detection on the leaves of the tomato
plants by using deep learning." 2017 6th International Conference on Agro-Geoinformatics. IEEE,
2017.
[7] Ferentinos, Konstantinos P. "Deep learning models for plant disease detection and diagnosis."</p>
      <p>Computers and electronics in agriculture 145 (2018): 311-318.
[8] Fuentes, Alvaro, et al. "A robust deep-learning-based detector for real-time tomato plant diseases
and pests recognition." Sensors 17.9 (2017): 2022.
[9] Geetharamani, G., and Arun Pandian. "Identification of plant leaf diseases using a nine-layer deep
convolutional neural network." Computers &amp; Electrical Engineering 76 (2019): 323-338.
[10] Jiang, Peng, et al. "Real-time detection of apple leaf diseases using deep learning approach based
on improved convolutional neural networks." IEEE Access 7 (2019): 59069-59080.
[11] Zhang, Xihai, et al. "Identification of maize leaf diseases using improved deep convolutional
neural networks." Ieee Access 6 (2018): 30370-30377.
[12] Sardogan, Melike, Adem Tuncer, and Yunus Ozen. "Plant leaf disease detection and
classification based on CNN with LVQ algorithm." 2018 3rd International Conference on Computer
Science and Engineering (UBMK). IEEE, 2018.
[13] Lu, Yang, et al. "Identification of rice diseases using deep convolutional neural networks."</p>
      <p>Neurocomputing 267 (2017): 378-384.
[14] Lu, Jiang, et al. "An in-field automatic wheat disease diagnosis system." Computers and
electronics in agriculture 142 (2017): 369-379.
[15] D. Das, M. Singh, S. S. Mohanty, S. Chakravarty (2020), Leaf Disease Detection Using Support
Vector Machine, International Conference on Communication and Signal Processing (ICCSP) (pp
1036-1040)
[16] S. Chakravarty, B. K. Paikaray, R. Mishra and S. Dash, "Hyperspectral Image Classification
using Spectral Angle Mapper," 2021 IEEE International Women in Engineering (WIE) Conference
on Electrical and Computer Engineering (WIECON-ECE), 2021, pp. 87-90, doi:
10.1109/WIECONECE54711.2021.9829585.
[17] https://www.kaggle.com/kaustubhb999/tomatoleaf</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Tulshan</surname>
            , Amrita S., and
            <given-names>Nataasha</given-names>
          </string-name>
          <string-name>
            <surname>Raul</surname>
          </string-name>
          .
          <article-title>"Plant leaf disease detection using machine learning</article-title>
          .
          <source>" 2019 10th International Conference on Computing, Communication and Networking Technologies (ICCCNT)</source>
          . IEEE,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Rathod</surname>
            ,
            <given-names>Arti N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bhavesh</surname>
            <given-names>Tanawal</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>Vatsal</given-names>
            <surname>Shah</surname>
          </string-name>
          .
          <article-title>"Image processing techniques for detection of leaf disease."</article-title>
          <source>International Journal of Advanced Research in Computer Science and Software Engineering</source>
          <volume>3</volume>
          .11 (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Tm</surname>
          </string-name>
          ,
          <string-name>
            <surname>Prajwala</surname>
          </string-name>
          , et al.
          <article-title>"Tomato leaf disease detection using convolutional neural networks." 2018 eleventh international conference on contemporary computing (IC3)</article-title>
          . IEEE,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Ashok</surname>
          </string-name>
          ,
          <string-name>
            <surname>Surampalli</surname>
          </string-name>
          , et al.
          <source>"Tomato Leaf Disease Detection Using Deep Learning Techniques." 2020 5th International Conference on Communication and Electronics Systems (ICCES)</source>
          . IEEE,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>