| Literature DB >> 33332376 |
Asim Khan1, Umair Nawaz2, Anwaar Ulhaq1,3, Randall W Robinson1.
Abstract
The control of plant leaf diseases is crucial as it affects the quality and production of plant species with an effect on the economy of any country. Automated identification and classification of plant leaf diseases is, therefore, essential for the reduction of economic losses and the conservation of specific species. Various Machine Learning (ML) models have previously been proposed to detect and identify plant leaf disease; however, they lack usability due to hardware sophistication, limited scalability and realistic use inefficiency. By implementing automatic detection and classification of leaf diseases in fruit trees (apple, grape, peach and strawberry) and vegetable plants (potato and tomato) through scalable transfer learning on Amazon Web Services (AWS) SageMaker and importing it into AWS DeepLens for real-time functional usability, our proposed DeepLens Classification and Detection Model (DCDM) addresses such limitations. Scalability and ubiquitous access to our approach is provided by cloud integration. Our experiments on an extensive image data set of healthy and unhealthy fruit trees and vegetable plant leaves showed 98.78% accuracy with a real-time diagnosis of diseases of plant leaves. To train DCDM deep learning model, we used forty thousand images and then evaluated it on ten thousand images. It takes an average of 0.349s to test an image for disease diagnosis and classification using AWS DeepLens, providing the consumer with disease information in less than a second.Entities:
Mesh:
Year: 2020 PMID: 33332376 PMCID: PMC7745985 DOI: 10.1371/journal.pone.0243243
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1The data flow diagram of the DCDM that illustrates the process of our proposed disease diagnosis.
Fig 2Identification & classification of strawberry plant leaf disease by AWS DeepLens in real-time.
Fig 3Sample images from dataset: (a). Apple Scab, (b). Black Rot, (c). Cedar Apple Rust, (d). Apple Healthy, (e). Grape Black Rot, (f). Grape Esca, (g). Grape Leaf Blight, (h). Grape Healthy, (i). Peach Bacterial Spot, (j). Peach Healthy, (k). Potato Early Blight, (l). Potato Late Blight, (m). Potato Healthy, (n). Strawberry Leaf Scorch, (o). Strawberry Healthy, (p). Tomato Bacterial Spot, (q). Tomato Early Blight, (r). Tomato Late Blight, (s). Tomato Leaf Mold, (t). Tomato Septoria Leaf Spot, (u). Tomato Spider Mites, (v). Tomato Target Spot, (w). Tomato Leaf Curl Virus, (x). Tomato Mosaic Virus, (y). Tomato Healthy. From PlantVillage: (c), (d), (e), (g), (j), (k), (l), (m), (r), (s), (t), (w) and (z). From Tarnab Farm: (a), (b), (f), (h), (i), (n), (o), (p), (q), (u), (v) and (y).
Fig 4Data augmentation technique examples: (a). Original Image, (b). Blur, (c) Random Gaussian Noise, (d). Random Contrast, (e). Random Bright, (f). Scale Proportionality, (g). Random Crop, (h). Deterministic Crop, (i). Vertical Flip, (j). Horizontal Flip, (k). Rotate Without Padding, (l). Y-Sheared.
The dataset for leaf disease classes.
| Class No. | Pant Name | Plant Botanical Name | Disease Name | Disease Botanical Name | Total Images |
|---|---|---|---|---|---|
| 1 | Apple | Malus domestica | Scab | Venturia inaequalis | 1830 |
| 2 | Apple | Malus domestica | Black rot | Botryosphaeria obtusa | 1821 |
| 3 | Apple | Malus domestica | Cedar apple rust | Gymnosporangium juniperivirginianae | 1675 |
| 4 | Apple (Healthy) | Malus domestica | 1725 | ||
| 5 | Grapes | Vitis vinifera | Black rot | Guignardia bidwellii | 2180 |
| 6 | Grapes | Vitis vinifera | Esca | Phaeomoniella chlamydospora | 1383 |
| 7 | Grapes | Vitis vinifera | Leaf blight | Pseudocercospora vitis | 2075 |
| 8 | Grapes (Healthy) | Vitis vinifera | 1823 | ||
| 9 | Peach | Prunus persica | Bacterial spot | Xanthomonas campestris | 2297 |
| 10 | Peach (Healthy) | Prunus persica | 1860 | ||
| 11 | Potato | Solanum tuberosum | Early blight | Alternaria solani | 2000 |
| 12 | Potato | Solanum tuberosum | Late blight | Phytophthora infestans | 2000 |
| 13 | Potato (Healthy) | Solanum tuberosum | 1652 | ||
| 14 | Strawberry | Fragaria spp. | Leaf scorch | Diplocarpon earlianum | 2237 |
| 15 | Strawberry (Healthy) | Fragaria spp. | 1856 | ||
| 16 | Tomato | Lycopersicum esculentum | Bacterial spot | Xanthomonas campestris pv. Vesicatoria | 2135 |
| 17 | Tomato | Lycopersicum esculentum | Early blight | Alternaria solani | 2257 |
| 18 | Tomato | Lycopersicum esculentum | Late blight | Phytophthora infestans | 1909 |
| 19 | Tomato | Lycopersicum esculentum | Leaf mold | Fulvia fulva | 2252 |
| 20 | Tomato | Lycopersicum esculentum | Septoria leaf spot | Septoria lycopersici | 1871 |
| 21 | Tomato | Lycopersicum esculentum | Spider mites | Tetranychus urticae | 1675 |
| 22 | Tomato | Lycopersicum esculentum | Target spot | Corynespora cassiicola | 1604 |
| 23 | Tomato | Lycopersicum esculentum | Leaf curl virus | 3852 | |
| 24 | Tomato | Lycopersicum esculentum | Mosaic virus | Tomato mosaic virus | 2374 |
| 25 | Tomato (Healthy) | Lycopersicum esculentum | 1653 |
Fig 5The representation of DeepLens Classification and Detection Model (DCDM) architecture.
The summary Of DCDM layered architecture.
| Layer (type) | Output Shape | Param # |
|---|---|---|
| conv2d (Conv2D) | (None, 272, 363, 64) | 1792 |
| (None, 272, 363, 64) | 36928 | |
| (None, 136, 181, 64) | 0 | |
| (None, 136, 181, 128) | 73856 | |
| (None, 68, 90, 128) | 0 | |
| (None, 68, 90, 256) | 295168 | |
| (None, 34, 45, 256) | 0 | |
| (None, 34, 45, 512) | 1180160 | |
| (None, 17, 22, 512) | 0 | |
| (None, 17, 22, 512) | 2359808 | |
| (None, 8, 11, 512) | 0 | |
| (None, 45056) | 0 | |
| (None, 1024) | 46138368 | |
| (None, 1024) | 1049600 | |
| (None, 25) | 25625 | |
Hyper-parameters of the experiments.
| Hyper-Parameters | Value |
|---|---|
| Optimizer | SGD |
| Momentum | 0.9 |
| Epochs | 50 |
| Batch Size | 32 |
| Dropout rate | 0.5 |
| No. of Layer | 9 |
| Learning Rate | 1.0 |
| Loss Function | Cross Entropy |
Fig 6Basic workflow of a deployed AWS DeepLens project [55].
Fig 10Confusion matrix for 80-20% dataset split set.
Fig 7Visualization of feature map from DCDM convolutional layer for a sample leaf.
Fig 8Visualisation of filter activation in DCDM convolution layers.
Dataset split for training and testing.
| Train—Test Data Split (%) | Training Images | Testing Images |
|---|---|---|
| 80—20 | 40000 | 10000 |
| 70—30 | 35000 | 15000 |
| 60—40 | 30000 | 20000 |
Dataset split for training/testing and accuracy obtained per epoch.
| Dataset (Train/Test) Split in % | Accuracy [%] | ||||
|---|---|---|---|---|---|
| 10 Epochs | 20 Epochs | 30 Epochs | 40 Epochs | 50 Epochs | |
| 80–20 | 92.31 | 95.84 | 96.86 | 97.39 | |
| 70–30 | 91.23 | 94.89 | 96.15 | 96.77 | 97.46 |
| 60–40 | 90.70 | 94.92 | 95.04 | 95.98 | 96.21 |
Fig 9Trend graph for accuracy and loss in training and validation.
DCDM performance report.
| Evaluation Metrics | Value in % |
|---|---|
| Precision | 98.38% |
| Recall | 97.98% |
| Accuracy | 98.78% |
| F1-Score | 98.17% |
Fig 11Sample results from real field and controlled environment images.
Fig 12Average accuracy obtained by each CNN model.
Average time consumed by CNN’s per epoch.
| Trained CNN Models | Average Time Per Epoch (in Minutes) |
|---|---|
| ResNet-50 | 2:03 |
| DensNet | 2:38 |
| VGG-16 | 1:53 |
| VGG-19 | 1:59 |
| AlexNet | 1:44 |
| SqueezeNet | 2:32 |
| DarkNet | 2:13 |
| DCDM |