| Literature DB >> 35755697 |
Qin Feng1, Shutong Wang2, He Wang3, Zhilin Qin1, Haiguang Wang1.
Abstract
Ring rot caused by Botryosphaeria dothidea and anthracnose caused by Colletotrichum gloeosporioides are two important apple fruit diseases. It is critical to conduct timely and accurate distinction and diagnosis of the two diseases for apple disease management and apple quality control. The automatic distinction between the two diseases was investigated based on image processing technology in this study. The acquired disease images were preprocessed via image scaling, color image contrast stretching, and morphological opening and closing reconstruction. Then, two lesion segmentation methods based on circle fitting were proposed and used to conduct lesion segmentation. After comparison with the manual segmentation results obtained via the software Adobe Photoshop CC, Lesion segmentation method 1 was chosen for further disease image processing. The gray images on the nine components in the RGB, HSI, and L*a*b* color spaces of the segmented lesion images were filtered by using multi-scale block local binary pattern operators with the sizes of pixel blocks of 1 × 1, 2 × 2, and 3 × 3, respectively, and the corresponding local binary pattern (LBP) histogram vectors were calculated as the features of the lesion images. Subsequently, support vector machine (SVM) models and random forest models were built based on individual LBP histogram features or different LBP histogram feature combinations for distinguishing the diseases. The optimal SVM model with the distinction accuracies of the training and testing sets equal to 100 and 95.12% and the optimal random forest model with the distinction accuracies of the training and testing sets equal to 100 and 90.24% were achieved. The results indicated that the distinction between the two diseases could be implemented with high accuracy by using the proposed method. In this study, a method based on image processing technology was provided for the distinction of ring rot and anthracnose on apple fruits.Entities:
Keywords: apple anthracnose; apple ring rot; circle fitting; image distinction; multi-scale block local binary pattern; random forest; support vector machine
Year: 2022 PMID: 35755697 PMCID: PMC9218820 DOI: 10.3389/fpls.2022.884891
Source DB: PubMed Journal: Front Plant Sci ISSN: 1664-462X Impact factor: 6.627
FIGURE 1Flow chart of image-based distinction of ring rot and anthracnose on apple fruits.
FIGURE 2The diagram of the MB3-LBP operator.
FIGURE 3The results of image preprocessing and lesion segmentation for apple ring rot. (A) Original color image. (B) Image after preprocessing. (C) Image after lesion segmentation by using Lesion segmentation method 1 without closing operation. (D) Image after lesion segmentation by using Lesion segmentation method 2 with the closing operation. The black areas in panels (C,D) are the segmented lesions obtained by using Lesion segmentation method 1 and Lesion segmentation method 2, respectively.
FIGURE 4The results of image preprocessing and lesion segmentation for apple anthracnose. (A) Original color image. (B) Image after preprocessing. (C) Image after lesion segmentation by using Lesion segmentation method 1 without closing operation. (D) Image after lesion segmentation by using Lesion segmentation method 2 with the closing operation. The black areas in panels (C,D) are the segmented lesions obtained by using Lesion segmentation method 1 and Lesion segmentation method 2, respectively.
Statistical comparison of the segmentation effects using the two lesion segmentation methods.
| Image dataset | Lesion segmentation method | Recall | Precision | Score | |||
| Mean | Median | Mean | Median | Mean | Median | ||
| Image dataset of apple ring rot | Lesion segmentation method 1 | 0.93 | 0.99 | 0.92 | 0.95 | 0.93 | 0.95 |
| Lesion segmentation method 2 | 0.81 | 0.89 | 0.93 | 0.96 | 0.87 | 0.93 | |
| Image dataset of apple anthracnose | Lesion segmentation method 1 | 0.95 | 1.00 | 0.94 | 0.97 | 0.94 | 0.97 |
| Lesion segmentation method 2 | 0.91 | 0.99 | 0.96 | 0.97 | 0.93 | 0.97 | |
| Aggregated image dataset | Lesion segmentation method 1 | 0.94 | 0.99 | 0.93 | 0.96 | 0.93 | 0.96 |
| Lesion segmentation method 2 | 0.86 | 0.96 | 0.95 | 0.97 | 0.90 | 0.95 | |
Aggregated image dataset was obtained after aggregation of the two image datasets of apple ring rot and apple anthracnose.
Distinction results of the SVM models based on the LBP histogram features of the gray images of the three components in RGB color space of the segmented lesion images.
| Feature | The optimal parameters of SVM model | Distinction accuracy of the training set/% | Distinction accuracy of the testing set/% | |
|
|
| |||
| R1 | 21.112 | 0.082 | 93.90 | 90.24 |
| G1 | 2.297 | 0.144 | 80.49 | 70.73 |
| B1 | 0.758 | 0.250 | 78.05 | 60.98 |
| R1G1 | 2.297 | 0.144 | 92.68 | 85.37 |
| R1B1 | 21.112 | 0.047 | 96.34 | 92.68 |
| G1B1 | 588.134 | 0.005 | 96.34 | 73.17 |
| R1G1B1 | 194.012 | 0.016 | 100.00 | 87.80 |
| R2 | 1.320 | 2.297 | 100.00 | 70.73 |
| G2 | 2.297 | 0.435 | 96.34 | 58.54 |
| B2 | 0.758 | 0.250 | 75.61 | 65.85 |
| R2G2 | 111.430 | 0.005 | 95.12 | 80.49 |
| R2B2 | 1.320 | 0.082 | 87.80 | 82.93 |
| G2B2 | 0.758 | 0.144 | 78.05 | 68.29 |
| R2G2B2 | 1.320 | 0.082 | 90.24 | 80.49 |
| R3 | 2.297 | 2.297 | 100.00 | 73.17 |
| G3 | 337.794 | 0.003 | 90.24 | 58.54 |
| B3 | 21.112 | 0.027 | 90.24 | 68.29 |
| R3G3 | 2.297 | 0.250 | 98.78 | 75.61 |
| R3B3 | 21.112 | 0.027 | 96.34 | 82.93 |
| G3B3 | 64 | 0.047 | 100.00 | 58.54 |
| R3G3B3 | 4 | 0.082 | 97.56 | 75.61 |
R1 represents the LBP histogram feature of the gray image of the R component of the lesion image filtered by the MB
Distinction results of the SVM models based on the LBP histogram features of the gray images of the three components in the L*a*b* color space of the segmented lesion images.
| Feature | The optimal parameters of SVM model | Distinction accuracy of the training set/% | Distinction accuracy of the testing set/% | |
|
|
| |||
| L1 | 12.126 | 0.435 | 100.00 | 73.17 |
| a1 | 2.297 | 1.320 | 100.00 | 65.854 |
| b1 | 1.320 | 0.758 | 96.34 | 80.49 |
| L1a1 | 12.126 | 0.144 | 100.00 | 95.12 |
| L1b1 | 2.297 | 0.250 | 97.56 | 85.37 |
| a1b1 | 2.297 | 0.758 | 100.00 | 70.73 |
| L1a1b1 | 6.964 | 0.082 | 100.00 | 87.80 |
| L2 | 1.320 | 0.758 | 95.12 | 63.41 |
| a2 | 36.758 | 0.009 | 80.49 | 70.73 |
| b2 | 1.320 | 0.144 | 84.15 | 75.61 |
| L2a2 | 0.758 | 0.435 | 96.34 | 73.17 |
| L2b2 | 0.758 | 0.250 | 90.24 | 73.17 |
| a2b2 | 36.758 | 0.027 | 98.78 | 65.85 |
| L2a2b2 | 1.320 | 0.082 | 95.12 | 78.05 |
| L3 | 111.430 | 0.047 | 98.78 | 58.54 |
| a3 | 337.794 | 0.009 | 91.46 | 56.10 |
| b3 | 6.964 | 0.082 | 91.46 | 75.61 |
| L3a3 | 1.320 | 0.435 | 100.00 | 70.73 |
| L3b3 | 1.320 | 0.435 | 100.00 | 80.49 |
| a3b3 | 0.758 | 0.144 | 87.80 | 78.05 |
| L3a3b3 | 1.320 | 0.144 | 98.78 | 80.49 |
L1 represents the LBP histogram feature of the gray image of the L* component of the lesion image filtered by the MB
Distinction results of the random forest models based on the LBP histogram features of the gray images of the three components in RGB color space of the segmented lesion images.
| Feature | The number of decision trees built by the best random forest model | Distinction accuracy of the training set/% | Distinction accuracy of the testing set/% |
| R1 | 90 | 100.00 | 87.80 |
| G1 | 60 | 100.00 | 75.61 |
| B1 | 100 | 100.00 | 75.61 |
| R1G1 | 60 | 100.00 | 85.37 |
| R1B1 | 30 | 100.00 | 90.24 |
| G1B1 | 80 | 100.00 | 80.49 |
| R1G1B1 | 50 | 100.00 | 87.80 |
| R2 | 90 | 100.00 | 78.05 |
| G2 | 10 | 98.78 | 75.61 |
| B2 | 20 | 100.00 | 63.41 |
| R2G2 | 20 | 98.78 | 73.17 |
| R2B2 | 60 | 100.00 | 82.93 |
| G2B2 | 10 | 97.56 | 73.17 |
| R2G2B2 | 90 | 100.00 | 82.93 |
| R3 | 100 | 100.00 | 80.49 |
| G3 | 70 | 100.00 | 73.17 |
| B3 | 50 | 100.00 | 73.17 |
| R3G3 | 60 | 100.00 | 80.49 |
| R3B3 | 90 | 100.00 | 75.61 |
| G3B3 | 90 | 100.00 | 73.17 |
| R3G3B3 | 50 | 100.00 | 75.61 |
R1 represents the LBP histogram feature of the gray image of the R component of the lesion image filtered by the MB
Distinction results of the random forest models based on the LBP histogram features of the gray images of the three components in the L*a*b* color space of the segmented lesion images.
| Feature | The number of decision trees built by the best random forest model | Distinction accuracy of the training set/% | Distinction accuracy of the testing set/% |
| L1 | 30 | 100.00 | 80.49 |
| a1 | 60 | 100.00 | 75.61 |
| b1 | 100 | 100.00 | 78.05 |
| L1a1 | 60 | 100.00 | 82.93 |
| L1b1 | 70 | 100.00 | 85.37 |
| a1b1 | 40 | 100.00 | 80.49 |
| L1a1b1 | 60 | 100.00 | 82.93 |
| L2 | 10 | 97.56 | 70.73 |
| a2 | 60 | 100.00 | 82.93 |
| b2 | 80 | 100.00 | 78.05 |
| L2a2 | 40 | 100.00 | 80.49 |
| L2b2 | 30 | 100.00 | 80.49 |
| a2b2 | 50 | 100.00 | 80.49 |
| L2a2b2 | 70 | 100.00 | 80.49 |
| L3 | 60 | 100.00 | 73.17 |
| a3 | 20 | 100.00 | 80.49 |
| b3 | 60 | 100.00 | 80.49 |
| L3a3 | 30 | 100.00 | 85.37 |
| L3b3 | 100 | 100.00 | 82.93 |
| a3b3 | 30 | 100.00 | 80.49 |
| L3a3b3 | 80 | 100.00 | 87.80 |
L1 represents the LBP histogram feature of the gray image of the L* component of the lesion image filtered by the MB
Distinction results of the SVM models based on the LBP histogram features of the gray images of the three components in the HSI color space of the segmented lesion images.
| Feature | The optimal parameters of SVM model | Distinction accuracy of the training set/% | Distinction accuracy of the testing set/% | |
|
|
| |||
| H1 | 0.758 | 0.082 | 69.51 | 68.29 |
| S1 | 111.430 | 0.016 | 82.93 | 82.93 |
| I1 | 2.297 | 0.758 | 96.34 | 78.05 |
| H1S1 | 6.964 | 0.016 | 75.61 | 82.93 |
| H1I1 | 2.297 | 0.047 | 79.27 | 78.05 |
| S1I1 | 0.435 | 0.144 | 78.05 | 78.05 |
| H1S1I1 | 0.435 | 0.082 | 75.61 | 80.49 |
| H2 | 2.297 | 0.144 | 78.05 | 75.61 |
| S2 | 337.794 | 0.005 | 89.02 | 46.34 |
| I2 | 0.758 | 0.250 | 79.27 | 68.29 |
| H2S2 | 4.000 | 0.250 | 100.00 | 70.73 |
| H2I2 | 0.758 | 0.144 | 81.71 | 80.49 |
| S2I2 | 1.320 | 0.082 | 81.71 | 75.61 |
| H2S2I2 | 0.758 | 0.250 | 92.68 | 80.49 |
| H3 | 6.964 | 0.027 | 75.61 | 70.73 |
| S3 | 0.758 | 0.758 | 93.90 | 63.41 |
| I3 | 21.112 | 0.002 | 62.20 | 65.85 |
| H3S3 | 1.320 | 0.144 | 90.24 | 75.61 |
| H3I3 | 1.320 | 0.435 | 98.78 | 82.93 |
| S3I3 | 1.320 | 0.758 | 100.00 | 70.73 |
| H3S3I3 | 1.320 | 0.435 | 100.00 | 78.05 |
H1 represents the LBP histogram feature of the gray image of the H component of the lesion image filtered by the MB
Distinction results of the random forest models based on the LBP histogram features of the gray images of the three components in the HSI color space of the segmented lesion images.
| Feature | The number of decision trees built by the best random forest model | Distinction accuracy of the training set/% | Distinction accuracy of the testing set/% |
| H1 | 90 | 100.00 | 70.73 |
| S1 | 30 | 100.00 | 78.05 |
| I1 | 70 | 100.00 | 78.05 |
| H1S1 | 60 | 100.00 | 85.37 |
| H1I1 | 50 | 100.00 | 80.49 |
| S1I1 | 50 | 100.00 | 82.93 |
| H1S1I1 | 90 | 100.00 | 85.37 |
| H2 | 20 | 100.00 | 75.61 |
| S2 | 40 | 100.00 | 82.93 |
| I2 | 40 | 100.00 | 73.17 |
| H2S2 | 90 | 100.00 | 78.05 |
| H2I2 | 60 | 100.00 | 82.93 |
| S2I2 | 60 | 100.00 | 75.61 |
| H2S2I2 | 90 | 100.00 | 80.49 |
| H3 | 70 | 100.00 | 73.17 |
| S3 | 20 | 100.00 | 70.73 |
| I3 | 80 | 100.00 | 85.37 |
| H3S3 | 60 | 100.00 | 80.49 |
| H3I3 | 100 | 100.00 | 85.37 |
| S3I3 | 50 | 100.00 | 80.49 |
| H3S3I3 | 70 | 100.00 | 82.93 |
H1 represents the LBP histogram feature of the gray image of the H component of the lesion image filtered by the MB