A device, method and computer readable storage medium for assessing plant disease severity based on lesion expansion

By using lesion expansion technology, combined with image processing and lesion expansion coefficient, the problem of inconsistent ratio of lesion area to plant unit area has been solved, enabling accurate and automated assessment of plant disease severity, which has significant economic and social benefits.

CN117576196BActive Publication Date: 2026-11-27CHINA AGRI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311810869.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2026-11-27
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

In existing technologies, plant disease severity assessment methods suffer from discrepancies between the actual ratio of lesion area to the area of ​​the surveyed plant unit and the ratio corresponding to each severity level in the severity grading standard, leading to assessment errors, especially in diseases such as wheat stripe rust.

Method used

An assessment method based on lesion expansion was adopted. The lesion segmentation image was obtained through image processing technology, the actual ratio of lesions was calculated, and the lesion expansion coefficient was used to expand the lesions to obtain the ratio of the expanded lesion area to the plant unit area. The assessment was carried out in combination with the severity grading standard.

Benefits of technology

It enables accurate assessment of disease severity, improves assessment efficiency and accuracy, supports automated assessment of disease severity, and has significant economic and social benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117576196B_ABST
    Figure CN117576196B_ABST
Patent Text Reader

Abstract

The application discloses a device, method and computer readable storage medium for evaluating plant disease severity based on lesion expansion. The method of the application comprises the following steps: obtaining images of plant units at each severity level, segmenting the diseased plant units from the background to obtain plant unit segmentation images, and segmenting the lesions from the plant units to obtain lesion segmentation images; determining and calculating the ratio of lesion area to total plant unit area; determining the lesion expansion coefficient; performing expansion processing on the lesion image based on the lesion expansion coefficient; determining and calculating the ratio of lesion area to total plant unit area after expansion processing; and finally evaluating and determining the severity level of the diseased plant unit. The device and method of the application can be applied to accurate evaluation of the severity of all plant diseases, wherein the actual ratio of lesion area to survey plant unit area is less than the ratio of lesion area to survey plant unit area corresponding to the severity level in the severity grading standard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of plant protection technology, and specifically relates to an apparatus, method and computer-readable storage medium for assessing the severity of plant diseases based on lesion expansion. Background Technology

[0002] Plant diseases can reduce plant product yields and quality, affecting food security. Some pathogens causing plant diseases produce toxins that pose serious harm to humans and livestock, and some plant diseases can also severely impact the ecological environment. Therefore, strengthening the management of plant diseases is crucial. Conducting disease surveys and understanding disease occurrence are the foundation and prerequisite for the scientific and effective management of plant diseases. Assessing the severity of plant diseases is a very important indicator in disease surveys and phenotypic determination of diseased plants. It is significant for understanding the severity of disease occurrence, pathogen-plant interactions, and disease management. Generally, the severity of plant diseases is assessed primarily through visual observation by assessors. However, under laboratory conditions, methods such as grid paper measurement and paper sample weighing are sometimes used for assessment. With the development of technology, information technology is increasingly used in assessing the severity of plant diseases. This includes image processing, remote sensing, and near-infrared spectroscopy, with image processing being particularly prevalent. These methods provide support for disease severity assessment; however, they often suffer from drawbacks such as being time-consuming and labor-intensive, having large assessment errors, low accuracy, or poor applicability. Therefore, there is a need to research a simple, rapid, and accurate method for assessing the severity of plant diseases, which is of great significance for the investigation, monitoring, forecasting, and control of plant diseases.

[0003] The assessment of plant disease severity should strictly adhere to the corresponding severity grading standards. In many plant disease severity grading standards, severity levels are determined by the ratio of lesion area to the area of ​​the surveyed plant unit (the entire plant or a single leaf, fruit, stem, etc.). However, for some diseases, such as wheat stripe rust and wheat leaf rust, the ratio of lesion area to the surveyed plant unit area corresponding to each severity level in the severity grading standards is not necessarily the actual ratio. This makes severity assessment difficult and prone to errors. For example, even when the severity level of a wheat leaf affected by stripe rust is 100%, the uredinia on the diseased leaf do not completely cover the leaf, and the actual percentage of lesion area to the total area of ​​the diseased leaf is still at most less than 40%.

[0004] The severity assessment of plant diseases is primarily conducted manually using visual observation. This method is easily influenced by the subjective experience of the investigators, leading to significant biases in severity assessment. Furthermore, it is time-consuming and labor-intensive. Investigators must be trained and proficient in disease severity grading methods before conducting severity assessments to ensure the reliability of the results. Methods such as the grid paper test and paper sample weighing method are cumbersome and time-consuming, and are rarely used in actual production. Plant disease severity assessment methods based on remote sensing and near-infrared spectroscopy are highly dependent on instruments, and these instruments are relatively expensive. These methods are rarely used in actual production and are mostly applied in research. Currently, when using image processing technology to assess the severity of plant diseases, a common approach is to compare the actual ratio of lesion area to the area of ​​the surveyed plant unit with the ratio in the grading standard. This leads to errors in the severity assessment of plant diseases where the ratio of lesion area to the area of ​​the surveyed plant unit corresponding to each severity level in the severity grading standard is not the actual ratio, thus affecting the application of image processing technology-based methods for assessing plant disease severity.

[0005] Therefore, it is crucial to address the discrepancy between the actual ratio of lesion area to the area of ​​the surveyed plant unit and the ratio corresponding to each severity level in the disease severity grading standard, which leads to errors in severity assessment. This is essential for accurate assessment of plant disease severity and for the realization of automated plant disease severity level assessment. Existing methods utilize image processing techniques to segment plant disease images and obtain the actual ratio of lesion area to the plant unit area, and assess disease severity based on this actual ratio. Furthermore, there are existing methods based on supervised and unsupervised learning to achieve automated assessment based on the actual ratio of lesion area, providing solutions to the aforementioned problem. However, the ratio of lesion area to the area of ​​the surveyed plant unit corresponding to each severity level in the severity grading standard is not necessarily the same as the actual ratio. Essentially, the actual ratio of lesion area to the area of ​​the surveyed plant unit is less than the ratio corresponding to the severity level in the severity grading standard. Summary of the Invention

[0006] The technical problem to be solved by this invention is how to accurately determine the severity of plant diseases.

[0007] To address the aforementioned technical problems, the present invention first provides an apparatus for assessing the severity of plant diseases, the apparatus comprising the following modules:

[0008] A1) Image acquisition module: used to acquire images of diseased plant units to be evaluated;

[0009] A2) Image segmentation module: used to process the diseased plant unit image using image processing software, segment the diseased plant unit from the background to obtain a plant unit segmentation image, and segment the lesion from the plant unit segmentation image to obtain a lesion segmentation image;

[0010] A3) Actual lesion ratio calculation module: used to calculate the actual ratio b of the lesion area of ​​the diseased plant to the area of ​​the plant unit based on the lesion segmentation image and the plant unit segmentation image;

[0011] A4) Determine the expansion coefficient module: Calculate the lesion expansion coefficient using the ratio of lesion area corresponding to the severity level determined artificially according to the severity grading standard and the actual ratio b of the lesion area;

[0012] A5) Lesion dilation module: used to dilate the lesion segmentation image based on the lesion dilation coefficient to obtain the dilated lesion image;

[0013] A6) Module for calculating the ratio of the expanded lesion area to the plant unit area: used to calculate the ratio c of the expanded lesion area to the plant unit area based on the expanded lesion image and the plant unit segmentation image;

[0014] A7) Plant Disease Severity Assessment Module: Used to obtain the disease severity of the diseased plant unit to be assessed based on the ratio c and the known disease severity grading standard.

[0015] In the above-described device, the plant unit can be a whole plant, leaf, fruit, or stem, etc. The image can be a digital image. The image segmentation can be performed manually in Adobe Photoshop software.

[0016] In the above-mentioned device, the lesion expansion coefficient can be lesion expansion coefficient 1, lesion expansion coefficient 2, or lesion expansion coefficient 3.

[0017] The lesion expansion coefficient 1 can be Grate, which is the ratio obtained by dividing the ratio of the lesion area corresponding to the highest severity level determined artificially according to the plant disease severity grading standard to the area of ​​the plant unit by the largest value among the actual ratios b of the lesion area of ​​all diseased plant units with the highest severity level of the disease.

[0018] The lesion expansion coefficient 2 is minrate S The minrate SThe ratio is the ratio of the area of ​​diseased lesions in a diseased plant unit at severity level S, which is determined artificially according to the plant disease severity grading standard, to the area of ​​the plant unit, divided by the largest value among the actual ratios b of the lesion areas of all diseased plant units at the corresponding severity level S, where S is the severity level.

[0019] The lesion expansion coefficient 3 is the mean rate. S The meanrate S r represents the severity level S of all diseased plant units, determined artificially according to the plant disease severity grading standard. S The average value of r; S The severity level S is defined as the ratio of the lesion area to the area of ​​the diseased plant unit in the severity grading standard, divided by the actual ratio b of the lesion area of ​​each diseased plant unit in the corresponding severity level S.

[0020] For example, if the percentage of lesion area to the total area of ​​diseased plant units is 1% in the severity grading criteria corresponding to severity level S, and there are 50 diseased plant units in severity level S, then r S For r 1% Each of the 50 diseased plant units will receive 1 r 1% A total of 50 r 1% Each r 1% The numerators are all 1%, and the denominator is the actual ratio b of the lesion area of ​​each diseased plant unit, which is the percentage of the lesion area corresponding to the severity level S to the area of ​​the diseased plant unit, which is 1%.

[0021] In the aforementioned device, the severity grading standard may be derived from the corresponding national or agricultural standards for the disease, or from relevant disease literature, or may be determined by humans.

[0022] In the above-described device, the lesion area can be obtained based on the number of pixels in the lesion segmentation image, and the plant unit area can be obtained based on the number of pixels in the plant unit segmentation image.

[0023] In the above-mentioned device, the lesion expansion method may include a lesion expansion method based on the outer edge of the lesion, a lesion expansion method based on the inner edge of the lesion, or / and an image scaling algorithm.

[0024] The method based on the outer edge expansion of lesions may include the following steps:

[0025] C1-1) Image Conversion: Convert the lesion segmentation image into a grayscale image;

[0026] C1-2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image;

[0027] C1-3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image by the connected component extraction algorithm to obtain the binarized lesion connected components;

[0028] C1-4) Morphological hole filling: Morphological hole filling and internal void removal are performed on the binarized lesion connected components, and the centroid position of the lesion is calculated;

[0029] C1-5) Obtaining the outer edge: Morphological dilation of the connected region of the lesion and subtraction of the binarized image are performed to obtain the outer edge of the lesion;

[0030] C1-6) Lesion expansion: Based on the outer edge of the lesion and the lesion expansion coefficient, the lesion region is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image.

[0031] The method based on the internal edge expansion of lesions may include the following steps:

[0032] C2-1) Image Conversion: Convert the lesion segmentation image into a grayscale image;

[0033] C2-2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image;

[0034] C2-3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image by the connected component extraction algorithm to obtain the binarized lesion connected components;

[0035] C2-4) Morphological hole filling: Morphological hole filling is performed on the connected components of the binary lesion to remove internal voids, and the centroid position of the lesion is calculated;

[0036] C2-5) Obtaining the outer edge: Perform morphological erosion on the connected region of the lesion to obtain the erosion result, and subtract the erosion result from the binarized image in C2-2) to obtain the inner edge of the lesion;

[0037] C2-6) Lesion expansion: Based on the inner edge of the lesion and the lesion expansion coefficient, the lesion region is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image.

[0038] The image scaling algorithm-based dilation method may specifically include the following steps:

[0039] C3-1) Image Conversion: Convert the image of the lesion area into a grayscale image;

[0040] C3-2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image;

[0041] C3-3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image by the connected component extraction algorithm to obtain the binarized lesion connected components;

[0042] C3-4) Morphological hole filling: Morphological hole filling is performed on the binarized lesion connected components to remove internal voids and calculate the centroid position of the lesion.

[0043] C3-5) Lesion expansion: The binarized image described in C3-2) is magnified using an image scaling algorithm and the lesion expansion coefficient to obtain an magnified image. The magnified image is then binarized to obtain the expanded lesion image.

[0044] In the above-described apparatus, the morphological dilation can be implemented using the 3×3 structure operator in MATLAB 2019b. The image scaling algorithm can be the bicubic interpolation algorithm in MATLAB 2019b.

[0045] The expansion process described in C1-6 may specifically include the following steps:

[0046] The distance from each edge point (a point on the boundary of the lesion region, i.e., a point on the boundary line of the outer edge of the lesion) to the centroid of the lesion is denoted as d. The lesion expansion coefficient is denoted as k. Each edge point is extended and moved in the opposite direction (i.e., away from the centroid) of the line connecting it to the centroid to obtain an extended edge point. The extended edge points are sequentially connected to obtain the expanded lesion image. The distance of each extended edge point from the centroid is k×d.

[0047] The expansion treatment described in C1-6 may also include a step of performing morphological cavity filling on the expanded lesion.

[0048] The expansion process described in C2-6 may specifically include the following steps:

[0049] The distance from each edge point (a point on the boundary of the lesion region, i.e., a point on the boundary line of the inner edge of the lesion) to the centroid of the lesion is denoted as d. The lesion expansion coefficient is denoted as k. Each edge point is extended and moved in the opposite direction (i.e., away from the centroid) of the line connecting it to the centroid to obtain an extended edge point. The extended edge points are sequentially connected to obtain the expanded lesion image. The distance of the extended edge point from the centroid is k×d.

[0050] The expansion treatment described in C2-6 may also include a step of performing morphological cavity filling on the expanded lesion.

[0051] The lesion expansion described in C3-5 may specifically include the following steps:

[0052] The lesion expansion coefficient is denoted as k. The binarized lesion image in C3-2) is magnified to k times the size of the binarized lesion image in C3-2) using an image scaling algorithm to obtain the magnified image. Then, the magnified image is re-binarized to obtain the expanded lesion image.

[0053] The image scaling algorithm can be a bicubic interpolation algorithm or other image scaling algorithms.

[0054] To address the aforementioned technical problems, the present invention also provides a method for assessing the severity of plant diseases, the method further comprising the following steps:

[0055] B1) Image Acquisition: Acquire images of the diseased plant units to be evaluated;

[0056] B2) Image segmentation: The diseased plant unit image is processed using image processing software to segment the diseased plant unit from the background to obtain a plant unit segmentation image, and the lesion is segmented from the plant unit segmentation image to obtain a lesion segmentation image;

[0057] B3) Calculation of the actual ratio of lesions: Based on the lesion segmentation image and the plant unit segmentation image, calculate the actual ratio b of the lesion area of ​​the diseased plant to be evaluated to the area of ​​the plant unit.

[0058] B4) Determine the expansion coefficient: The lesion expansion coefficient is calculated using the ratio of lesion area corresponding to the severity level determined artificially according to the severity grading standard and the actual ratio of lesion area b.

[0059] B5) Lesion dilation: The lesion segmentation image is dilated based on the lesion dilation coefficient to obtain the dilated lesion image;

[0060] B6) Calculate the ratio of the expanded lesion area to the plant unit area: Based on the expanded lesion image and the plant unit segmentation image, calculate the ratio c of the expanded lesion area to the plant unit area;

[0061] B7) Plant disease severity assessment: Based on the ratio c and the known disease severity grading criteria, obtain the disease severity of the diseased plant unit to be assessed.

[0062] In the above method, the plant unit can be the entire plant, leaf, fruit, or stem, etc. The image can be a digital image. The image segmentation can be performed manually in Adobe Photoshop software.

[0063] In the above method, the lesion expansion coefficient can be lesion expansion coefficient 1, lesion expansion coefficient 2, or lesion expansion coefficient 3;

[0064] The lesion expansion coefficient 1 is called Grate, which is the largest value obtained by dividing the ratio of the area of ​​diseased lesions corresponding to the highest severity level determined by human intervention in the plant disease severity grading standard by the actual ratio b of the lesion area of ​​all diseased plant units with the highest severity level of the disease.

[0065] The lesion expansion coefficient 2 is minrate S The minrate S The ratio is the ratio of the area of ​​diseased lesions in a diseased plant unit at a severity level S, as determined by the plant disease severity grading standard, to the area of ​​the plant unit, divided by the largest value among the actual ratios b of the lesion areas of all diseased plant units at the corresponding severity level S. S is the severity level.

[0066] The lesion expansion coefficient 3 is the mean rate. S The meanrate S For all diseased plant units in the artificially determined severity level S of the diseased plant unit in the plant disease severity grading standard, r is... S The average value of r; S The severity level S is defined as the ratio of the lesion area to the area of ​​the diseased plant unit in the severity grading standard, divided by the actual ratio b of the lesion area of ​​each diseased plant unit in the corresponding severity level S.

[0067] For example, if the percentage of lesion area to the total area of ​​diseased plant units is 1% in the severity grading criteria corresponding to severity level S, and there are 50 diseased plant units in severity level S, then r S For r 1% Each of the 50 diseased plant units will receive 1 r 1% A total of 50 r 1% Each r 1% The numerators are all 1%, and the denominator is the actual ratio b of the lesion area of ​​each diseased plant unit, which is the percentage of the lesion area corresponding to the severity level S to the area of ​​the diseased plant unit, which is 1%.

[0068] In the above method, the severity grading standard may be derived from the national or agricultural standards for the corresponding disease, or from relevant disease literature, or may be determined artificially.

[0069] In the above method, the lesion area can be obtained based on the pixels of the lesion segmentation image, and the plant unit area can be obtained based on the pixels of the plant unit segmentation image.

[0070] In the above method, the lesion expansion method may include a lesion expansion method based on the outer edge of the lesion, a lesion expansion method based on the inner edge of the lesion, or / and an image scaling algorithm:

[0071] The method based on the outer edge expansion of lesions may include the following steps:

[0072] C1-1) Image Conversion: Convert the lesion segmentation image into a grayscale image;

[0073] C1-2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image;

[0074] C1-3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image by the connected component extraction algorithm to obtain the binarized lesion connected components;

[0075] C1-4) Morphological hole filling: Morphological hole filling and internal void removal are performed on the binarized lesion connected components, and the centroid position of the lesion is calculated;

[0076] C1-5) Obtaining the outer edge: Morphological dilation of the connected region of the lesion and subtraction of the binarized image are performed to obtain the outer edge of the lesion;

[0077] C1-6) Lesion expansion: Based on the outer edge of the lesion and the lesion expansion coefficient, the lesion region is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image.

[0078] The method based on the internal edge expansion of lesions may include the following steps:

[0079] C2-1) Image Conversion: Convert the lesion segmentation image into a grayscale image;

[0080] C2-2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image;

[0081] C2-3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image by the connected component extraction algorithm to obtain the binarized lesion connected components;

[0082] C2-4) Morphological hole filling: Morphological hole filling is performed on the connected components of the binary lesion to remove internal voids, and the centroid position of the lesion is calculated;

[0083] C2-5) Obtaining the outer edge: Perform morphological erosion on the connected region of the lesion to obtain the erosion result, and subtract the erosion result from the binarized image in C2-2) to obtain the inner edge of the lesion;

[0084] C2-6) Lesion expansion: Based on the inner edge of the lesion and the lesion expansion coefficient, the lesion region is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image.

[0085] The image scaling algorithm-based expansion method specifically includes the following steps:

[0086] C3-1) Image Conversion: Convert the image of the lesion area into a grayscale image;

[0087] C3-2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image;

[0088] C3-3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image by the connected component extraction algorithm to obtain the binarized lesion connected components;

[0089] C3-4) Morphological hole filling: Morphological hole filling is performed on the binarized lesion connected components to remove internal voids and calculate the centroid position of the lesion.

[0090] C3-5) Lesion expansion: The binarized image described in C3-2) is magnified using an image scaling algorithm and the lesion expansion coefficient to obtain an magnified image. The magnified image is then binarized to obtain the expanded lesion image.

[0091] In the above method, the morphological dilation can be implemented using the 3×3 structure operator in MATLAB 2019b. The image scaling algorithm can be the bicubic interpolation algorithm in MATLAB 2019b.

[0092] The expansion process described in C1-6 may specifically include the following steps:

[0093] The distance from each edge point (a point on the boundary of the lesion region, i.e., a point on the boundary line of the outer edge of the lesion) to the centroid of the lesion is denoted as d. The lesion expansion coefficient is denoted as k. Each edge point is extended and moved in the opposite direction (i.e., away from the centroid) of the line connecting it to the centroid to obtain an extended edge point. The extended edge points are sequentially connected to obtain the expanded lesion image. The distance of the extended edge point from the centroid is k×d.

[0094] The expansion treatment described in C1-6 may also include a step of performing morphological cavity filling on the expanded lesion.

[0095] The expansion process described in C2-6 may specifically include the following steps:

[0096] The distance from each edge point (a point on the boundary of the lesion region, i.e., a point on the boundary line of the inner edge of the lesion) to the centroid of the lesion is denoted as d. The lesion expansion coefficient is denoted as k. Each edge point is extended and moved in the opposite direction (i.e., away from the centroid) of the line connecting it to the centroid to obtain an extended edge point. The extended edge points are sequentially connected to obtain the expanded lesion image. The distance of the extended edge point from the centroid is k×d.

[0097] The expansion treatment described in C2-6 may also include a step of performing morphological cavity filling on the expanded lesion.

[0098] The lesion expansion described in C3-5 may specifically include the following steps:

[0099] The lesion expansion coefficient is denoted as k. The binarized lesion image in C3-2) is magnified to k times the size of the binarized lesion image in C3-2) using an image scaling algorithm to obtain the magnified image. Then, the magnified image is re-binarized to obtain the expanded lesion image.

[0100] In the above method, the image scaling algorithm can be a bicubic interpolation algorithm or other image scaling algorithms.

[0101] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program that enables a computer to perform the steps of the method described above.

[0102] This invention relates to plant disease investigation and monitoring technology.

[0103] To better address the problem of inaccurate severity assessments caused by discrepancies between the actual ratio of lesion area to the area of ​​the surveyed plant unit and the ratio corresponding to each severity level in the severity grading standard, this invention provides a method for assessing plant disease severity based on lesion expansion. This method utilizes image processing technology to expand the segmented lesion area in all directions, generating new lesion areas and obtaining their areas. The ratio of these new lesion areas to the total area of ​​the diseased plant unit is then calculated and compared with the ratio of lesion area to the total area of ​​the surveyed diseased plant unit corresponding to each severity level in the plant disease severity grading standard, thus achieving a severity assessment of the diseased plant unit. The method provided by this invention, by expanding the lesions, aims to ensure that the ratio of the expanded lesion area to the total area of ​​the diseased plant unit matches the ratio of the lesion area to the total area of ​​the surveyed diseased plant unit corresponding to the severity level in the severity grading standard. It can automatically perform relevant image processing using image processing technology, providing a method for assessing plant disease severity and facilitating accurate and automated assessment of plant disease severity.

[0104] This invention provides three embodiments, involving three methods for lesion expansion and three methods for determining the lesion expansion coefficient. Other lesion expansion methods and lesion expansion coefficient determination methods based on the idea of ​​lesion expansion are all within the scope of protection of this invention.

[0105] The plant disease severity assessment method provided by this invention is applicable to all plant diseases for which the actual ratio of lesion area to the area of ​​the surveyed plant unit is less than the ratio of lesion area to the area of ​​the surveyed plant unit corresponding to the severity level in the severity grading standard. This plant disease severity assessment method, utilizing image processing technology, can conveniently obtain enlarged lesions based on a lesion expansion coefficient and a specific lesion expansion method. In application, an appropriate lesion expansion coefficient can be selected, and an appropriate lesion expansion method can be used to expand the lesions in the plant disease image. Then, the area of ​​the enlarged lesion and the area of ​​the diseased plant unit are obtained, and the ratio of the lesion area to the area of ​​the diseased plant unit is calculated. This allows for the assessment of the severity of the diseased plant unit according to the plant disease severity grading standard. Therefore, once the lesion expansion coefficient and lesion expansion method are determined, the severity assessment of diseased plant units can be carried out conveniently, quickly, and accurately, improving the efficiency and effectiveness of lesion severity assessment. This fundamentally solves the problem that the ratio of lesion area to the total area of ​​plant units in the severity classification of plant diseases is inconsistent with the actual ratio of lesion area to the total area of ​​plant units when assessing the severity of plant diseases based on the ratio of lesion area to the total area of ​​plant units. This is conducive to improving the accuracy of plant disease severity assessment and the automation of plant disease severity assessment, and is of great significance for the investigation, monitoring, forecasting, and control of plant diseases.

[0106] The plant disease severity assessment method provided by this invention lays the foundation for the automatic assessment of plant disease severity based on image processing technology. This facilitates the promotion and application of related technologies, helps improve the level of disease investigation, monitoring, early warning, and management, and will bring significant economic, ecological, and social benefits. Therefore, this invention has significant economic and social benefits in related fields. Attached Figure Description

[0107] Figure 1 This is a flowchart of the plant disease severity assessment method based on lesion expansion according to the present invention.

[0108] Figure 2 This is a schematic diagram of the lesion expansion process based on the outer edge of the lesion. The gray asterisks represent the centroid of the lesion. (a) The white area is the lesion, and the black area is the background. (b) After performing dilation on the lesion in (a) using the 3×3 structure operator, the lesion area in (a) is subtracted to obtain the lesion edge. (c) Based on the lesion expansion coefficient k=2, the lesion edge is expanded outward, and the expanded edges are connected sequentially with straight lines. (d) This shows the result of filling the holes on the expanded edge.

[0109] Figure 3The images show the results of treating diseased leaves at various severity levels based on lesion expansion at the outer edge of the lesion, with a lesion expansion coefficient of 2.74 (Grate). Each row, from left to right, represents the disease severity at 1%, 5%, 10%, 20%, 40%, 60%, 80%, and 100%. The first row shows the original diseased single leaf image; the second row shows the original lesion segmentation image; the third row shows the lesion expansion result image; the fourth row shows the RGB image of the lesion expansion result; and the fifth row shows the RGB image of the diseased single leaf after lesion expansion.

[0110] Figure 4 This is a schematic diagram of the lesion expansion process based on the internal edges of the lesion. The gray asterisks represent the centroids of the lesions. (a) The white area represents the lesion, and the black area represents the background. (b) After performing morphological erosion on the lesion, the lesion edge is obtained by subtracting the erosion result from the original binarized lesion image. (c) The lesion edge is expanded outward based on the lesion expansion coefficient k=2, and the expanded edges are connected sequentially with straight lines. (d) This shows the result of performing hole filling on the expanded edges.

[0111] Figure 5 The images show the results of treating diseased leaves at various severity levels based on lesion expansion at the inner edge of the lesion, with a lesion expansion coefficient of 2.74 (Grate). Each row, from left to right, represents the disease severity at 1%, 5%, 10%, 20%, 40%, 60%, 80%, and 100%. The first row shows images of the original diseased single leaf; the second row shows segmented images of the original lesion; the third row shows images of the lesion expansion results; the fourth row shows RGB images of the lesion expansion results; and the fifth row shows RGB images of the diseased single leaf after lesion expansion.

[0112] Figure 6 This is a schematic diagram of the lesion expansion processing results based on the image scaling algorithm. The gray asterisks represent the centroids of the lesions. (a) The white area represents the lesion, and the black area represents the background. (b) Based on the lesion expansion coefficient k=2, the lesions in (a) are enlarged using the bicubic interpolation algorithm. In the enlarged image, non-zero pixels are set to 1 and considered as the foreground of the lesion, while zero-value pixels remain unchanged.

[0113] Figure 7 The images show the results of lesion expansion processing at various severity levels, based on an image scaling algorithm, with a lesion expansion coefficient of 2.74 (Grate). Each row, from left to right, represents the disease severity at 1%, 5%, 10%, 20%, 40%, 60%, 80%, and 100%. The first row shows the original diseased single leaf image; the second row shows the original lesion segmentation image; the third row shows the lesion expansion result image; the fourth row shows the RGB image of the lesion expansion result; and the fifth row shows the RGB image of the diseased single leaf after lesion expansion. Detailed Implementation

[0114] The present invention will now be described in further detail with reference to specific embodiments. The given embodiments are merely illustrative of the invention and not intended to limit its scope. The embodiments provided below can serve as a guide for further improvements by those skilled in the art and do not constitute a limitation on the invention in any way.

[0115] Unless otherwise specified, the experimental methods used in the following examples are conventional methods, performed according to the techniques or conditions described in the literature in this field or according to the product instructions. Unless otherwise specified, the materials and reagents used in the following examples are commercially available.

[0116] Example 1: Establishment of a method for assessing the severity of wheat stripe rust based on lesion expansion at the outer edge of the lesion.

[0117] Follow these steps to establish a method for assessing the severity of wheat stripe rust based on lesion expansion at the outer edge of the lesion:

[0118] 1. Obtain images of wheat stripe rust diseased leaves at various severity levels.

[0119] According to the severity grading standards for wheat stripe rust in the "Technical Specification for Monitoring and Forecasting Wheat Stripe Rust" (GB / T 15795-2011) of China, wheat stripe rust diseased leaf samples with typical symptoms were collected from wheat with stripe rust, representing eight severity levels: 1%, 5%, 10%, 20%, 40%, 60%, 80%, and 100% (related literature: Jiang Qian, Wang Hongli and Wang Haiguang. (2022). Two new methods for severity assessment of wheat stripe rust caused by Puccinia striiformis f.sp.tritici. Frontiers in Plant Science, 13:1002627. doi:10.3389 / fpls.2022.1002627). Each diseased leaf was laid flat and fixed to a pure white A4 paper with double-sided tape for photographing. Images of diseased leaves were acquired using a NIKON D700 digital SLR camera, a HUAWEI P30 mobile phone, and an iPhone 6S mobile phone. The acquired images had resolutions of 4256×2832 pixels, 3648×2736 pixels, and 4032×3024 pixels, respectively, all in JPEG 24-bit format. Fifty images of diseased leaves were obtained for each of the eight severity levels, for a total of 400 images of wheat stripe rust diseased leaves (i.e., images of diseased plant units). Each image showed a complete diseased leaf.

[0120] 2. Image segmentation

[0121] Use Adobe Photoshop 2022 (hereinafter referred to as PS) software to manually segment the leaf area and the lesion area respectively.

[0122] 2.1 Obtaining complete leaf regions by segmenting images of diseased leaves

[0123] Open the image of the diseased leaf in Photoshop. Use the Quick Selection Tool to select the entire leaf area, select Reverse, and fill the foreground color with black. Finally, save the image as both JPEG and TIFF formats. When using the Quick Selection Tool, do not select Enhance Edges. In most cases, set the size to Pen Pressure (5 pixels), Hardness to 0%, Spacing to 25%, Angle to 35°, and Roundness to 100%. The final result is a segmented image of the plant unit.

[0124] 2.2 Image segmentation of lesion regions to obtain lesion regions

[0125] After segmenting the diseased leaves, duplicate the leaf layer (named "Background Layer" in Photoshop) to create a new layer (named "Layer 1" in Photoshop). Hide the background layer, show and select Layer 1; repeatedly use the magic wand tool to select non-disease areas and fill them with black to complete the initial segmentation of the lesions; if there are still non-disease areas not displayed in black, use the lasso tool to circle that area and fill it with black to complete the secondary segmentation of the lesions; show the background layer, select Layer 1, and repeatedly show and hide Layer 1 to check if the lesion areas have been completely segmented; if any lesion areas are displayed in black during the check, select and hide Layer 1, show the background layer, use the lasso tool to circle that area and clear it; after completely manually segmenting the lesion areas, use the magic wand tool to click on non-disease areas, then select "Inverse," and save Layer 1 as both JPEG and TIFF images. When using the Magic Wand tool, the sampling size is set to the sampling point, and the tolerance setting can be between 0 and 35. Adjust the tolerance value and select the continuous option according to the actual selection. When using the Lasso tool, the feather is set to 0 pixels. In all the above processing, the anti-aliasing and all layer sampling options are not selected. Finally, the lesion area is segmented to obtain the lesion segmentation image.

[0126] 3. Obtain the total number of pixels and the number of pixels of lesions on diseased leaves.

[0127] In Photoshop, select the entire leaf area and the lesion area respectively, view the number of pixels in the leaf area and the number of pixels in the lesion area from the histogram panel, and record them in a Microsoft Excel 2016 (hereinafter referred to as Excel) table;

[0128] 4. Calculate the percentage of lesion area to the total area of ​​diseased leaves.

[0129] Using the total number of pixels in the leaf region (plant unit segmentation image) and the number of pixels in the lesion region (lesion segmentation image) recorded in the Excel spreadsheet, the percentage of lesion pixels to the total number of pixels in the diseased leaf image corresponding to each severity level is calculated. This yields the percentage of the lesion area to the total area of ​​the diseased leaf (i.e., the actual percentage of lesion area b). The calculation formula is as follows:

[0130]

[0131] In Equation 1, S p The percentage of lesion area to the total area of ​​diseased leaves; A d A represents the number of pixels in the lesion area. l This represents the total number of pixels in the diseased leaf area.

[0132] 5. Determine the lesion expansion coefficient

[0133] The present invention uses the following three methods to determine the lesion expansion coefficient.

[0134] 5.1 Lesion Expansion Coefficient Method 1:

[0135] Once the severity level of the diseased single leaf (disease-affected plant unit) is determined (as determined artificially in step 1 according to the wheat stripe rust severity grading standard in the wheat stripe rust forecasting technical specification), the percentage of lesion area to leaf area (100%) corresponding to the highest severity level of 100% for the diseased single leaf is divided by the actual percentage of lesion area b (calculated in step 4). The resulting ratio is denoted as r. The r corresponding to the single leaf with the largest actual percentage of lesion area b (actual ratio b) among all diseased single leaves with a severity level of 100% is denoted as Grate and used as the lesion expansion coefficient for all severity levels. In other words, it is the ratio obtained by dividing 100% by the largest value among the actual percentages of lesion area b among all diseased single leaves with a disease severity level of 100%. The disease severity of 100%, which is artificially determined according to the disease severity grading standard, is the percentage of the leaf area of ​​the diseased lesions at the highest severity level of 100% determined according to the disease severity grading standard. That is, the percentage is 100%.

[0136] 5.2 Lesion Expansion Coefficient Method 2:

[0137] Once the severity level of the diseased single leaf is determined (as determined artificially in step 1 according to the wheat stripe rust severity grading standard in the wheat stripe rust forecasting technical specification), the percentage of lesion area to leaf area in the severity grading standard corresponding to the severity level S of the diseased single leaf is divided by the actual percentage of lesion area (actual ratio b) of the diseased single leaf in the corresponding severity level. The resulting ratio is denoted as r. The r corresponding to the diseased single leaf with the largest actual percentage of lesion area (actual ratio b) among all diseased single leaves in each severity level is denoted as minrate. S (S represents the severity level, which can be 1%, 5%, 10%, 20%, 40%, 60%, 80%, or 100%), and this is used as the lesion expansion coefficient for the corresponding severity level S. Specifically, when the severity level is 100%, then minrate... 100% The Grate value is the same as that in Method 1 for the lesion expansion coefficient.

[0138] 5.3 Lesion Expansion Coefficient Method 3:

[0139] Once the severity level of the diseased single leaf is determined (as determined artificially in step 1 according to the wheat stripe rust severity grading standard in the wheat stripe rust forecasting technical specification), the percentage of lesion area to leaf area in the severity grading standard corresponding to the severity level S of the diseased single leaf is divided by the actual percentage of lesion area of ​​the diseased single leaf (actual ratio b). The resulting ratio is denoted as r. The ratios r (i.e., rs) corresponding to all diseased single leaves at each severity level S are then calculated. S Calculate the average, denoted as meanrate. S (S represents the severity level, which can be 1%, 5%, 10%, 20%, 40%, 60%, 80%, or 100%), i.e., r S The percentage of lesion area to leaf area in the severity grading standard corresponding to the severity level S is divided by the actual ratio b of lesion area in each diseased single leaf of the corresponding severity level S, and this ratio is used as the lesion expansion coefficient of the corresponding severity level S.

[0140] For example, if there are 50 diseased single leaves with a lesion area accounting for 1% of the leaf area in the severity grading criteria corresponding to severity level S (severity level S is 1%), then r S For r 1% Each of the 50 diseased single leaves will receive 1 r. 1% A total of 50 r 1% Each r 1% The numerators are all 1%, and the denominator is the actual ratio b of the lesion area of ​​each diseased single leaf, which is 1% of the leaf area in the severity grading standard corresponding to severity level S.

[0141] The specific lesion expansion coefficients determined using the three methods described above are shown in Table 1.

[0142] Table 1. Specific lesion expansion coefficients

[0143]

[0144]

[0145] 6. Perform lesion image dilation processing based on lesion dilation coefficient and lesion outer edge.

[0146] Using the lesion expansion coefficient determined in step 5, the lesion image is expanded based on the lesion centroid to obtain the expanded lesion.

[0147] The rgb2gray function in MATLAB 2019b (MathWorks, Natick, MA, USA) was used to convert the lesion segmentation image from an RGB image to a grayscale image.

[0148] Then, the grayscale image was binarized using the Otsu method (related literature: Otsu NA threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 1979, 9(1): 62-66) to obtain a binarized image. In this image, the pixels corresponding to lesions are foreground with a pixel value of 1, and the remaining pixels are background with a pixel value of 0.

[0149] The connected component extraction algorithm extracts the connected components corresponding to the lesions one by one from the binary image. Morphological hole filling is performed on the extracted binary lesion connected components to remove internal holes. The centroid of the lesion is calculated. The morphological dilation of the connected region of the lesion is performed using the 3×3 structure operator, and then the original binary lesion image is subtracted to obtain the outer edge of the lesion (the boundary of the lesion region). (The outer edge of the lesion is searched, which can ensure that the operation can be performed when the original lesion has only one line or one point).

[0150] Using the centroid as the center point, each edge point (point on the boundary of the lesion region) of the acquired lesion's outer edge is extended proportionally in the opposite direction (i.e., away from the centroid) along the line connecting it to the centroid. Assume the lesion expansion coefficient is set to... k After being extended and moved through each edge point, the area of ​​the newly formed lesion (i.e., the expanded lesion image) is equal to the area of ​​the lesion before extension. k The expanded lesions were then filled with morphological pores. Specific instructions are provided. Figure 2 .

[0151] The enlarged image was pasted back onto the original diseased single-leaf image with centroid alignment. Pixels of lesions extending beyond the leaf area were reset to 0. The color of the enlarged lesions was filled using the average RGB values ​​of the corresponding lesion, resulting in a diseased single-leaf image containing the enlarged lesions. The results of treating diseased leaves at various severity levels are illustrated with a lesion expansion coefficient of 2.74 (Grate). Figure 3 .

[0152] 7. Calculate the area of ​​lesions and the area of ​​diseased single leaves after the expansion treatment.

[0153] The number of lesion pixels after expansion treatment and the total number of pixels on diseased single leaves were obtained by using MATLAB 2019b software. The number of pixels represents the area.

[0154] 8. Calculate the percentage of lesion area to the total area of ​​diseased single leaves after the expansion treatment.

[0155] Using MATLAB 2019b, based on the number of lesion pixels after expansion treatment and the total number of pixels on the diseased single leaf, the percentage of lesion area to the total area of ​​the diseased single leaf is obtained by dividing the number of lesion pixels after expansion treatment by the total number of pixels on the diseased single leaf.

[0156] 9. Severity assessment of diseased single leaves

[0157] Based on the percentage of lesion area after expansion treatment to the total area of ​​diseased single leaves, the severity level of diseased single leaves was assessed and determined by referring to the severity grading standard for wheat stripe rust. In this invention, the maximum error reference method (Xiao Yueyan. Research on the accuracy assessment method of prediction and forecast. Plant Protection Technology and Promotion, 1997, 17(4):3-6.) was used to calculate the accuracy of severity assessment for diseased leaf samples at each severity level. In the calculation, the severity levels of wheat stripe rust were represented as 1%, 2%, 3%, 4%, 5%, 6%, 7%, and 8 for 1%, 5%, 6%, 7%, and 8, respectively, and then the accuracy was calculated using the formula described below.

[0158] Method for calculating the accuracy of single-leaf disease severity assessment:

[0159]

[0160] In Equation 2, s i Let be the accuracy rate for assessing the severity of the i-th diseased single leaf. x represents the assessment level for the severity of the i-th diseased single leaf. i Let x be the actual severity grade value of the i-th diseased single leaf.max x represents the highest severity level in the severity assessment criteria. i ∨(x max -x i ) is x i and x max -x i The maximum value in the range is the maximum error in assessing the severity of the i-th diseased single leaf.

[0161] Methods for calculating the accuracy of single-leaf severity assessments for multiple disease outbreaks:

[0162]

[0163] In Equation 3, s represents the accuracy of assessing the severity of disease in n diseased single leaves. x represents the assessment level for the severity of the i-th diseased single leaf. i Let x be the actual severity grade value of the i-th diseased single leaf. max x represents the highest severity level in the severity assessment criteria. i ∨(x max -x i ) is x i and x max -x i The maximum value in the range is the maximum error in assessing the severity of the i-th diseased single leaf.

[0164] The severity assessment results of wheat stripe rust based on the outer edge of the lesion expansion method are shown in Table 2.

[0165] The results showed that, based on all lesion expansion coefficients, the accuracy rate for severity assessment of diseased leaves at each severity level ranged from 78.00% to 100.00%. Without considering the lesion expansion coefficient, the accuracy rate for severity assessment of all diseased single leaves was 89.91% (i.e., the average accuracy rate of severity assessment for all severity levels of diseased leaves under the three lesion expansion coefficients). For a lesion expansion coefficient of 2.74 (Grate), the accuracy rate for severity assessment of diseased leaves at each severity level ranged from 86.68% to 100.00%, and the accuracy rate for severity assessment of all diseased leaves was 92.57%; for a lesion expansion coefficient minrate... S The accuracy rate for severity assessment of diseased leaves at each severity level ranged from 85.67% to 100.00%, and the accuracy rate for severity assessment of all diseased leaves was 91.10%; the mean rate of lesion expansion was also high. SThe accuracy rate for severity assessment of diseased leaves at each severity level ranged from 78.00% to 100.00%, and the accuracy rate for severity assessment of all diseased leaves was 86.05%. The severity assessment results show that the method provided by this invention can obtain satisfactory severity assessment results for wheat stripe rust.

[0166] Table 2. Severity assessment results of wheat stripe rust based on lesion expansion at various severity levels for leaves at different severity levels.

[0167]

[0168]

[0169] Example 2: Establishment of a method for assessing the severity of wheat stripe rust based on lesion expansion at the inner edge of the lesion.

[0170] Follow these steps to establish a method for assessing the severity of wheat stripe rust based on lesion expansion at the inner edge of the lesion:

[0171] 1. Obtain images of wheat stripe rust diseased leaves at various severity levels.

[0172] According to the wheat stripe rust severity grading standards in the Chinese "Technical Specification for Monitoring and Forecasting Wheat Stripe Rust" (GB / T 15795-2011), wheat leaves with typical symptoms of stripe rust were collected from affected wheat plants at eight severity levels: 1%, 5%, 10%, 20%, 40%, 60%, 80%, and 100%. Each diseased leaf was laid flat and fixed to a plain white A4 sheet of paper with double-sided tape for photographing. Images of the diseased leaves were acquired using a NIKON D700 digital SLR camera, a HUAWEI P30 mobile phone, and an iPhone 6S mobile phone. The resolutions of the acquired images were 4256×2832 pixels, 3648×2736 pixels, and 4032×3024 pixels, respectively, all in JPEG 24-bit format. Fifty images of diseased leaves were obtained for each of the eight severity levels, for a total of 400 images of wheat stripe rust diseased leaves (i.e., diseased plant unit images). Each diseased leaf image is a complete diseased leaf.

[0173] 2. Image segmentation

[0174] Use Adobe Photoshop 2022 (hereinafter referred to as PS) software to manually segment the leaf area and the lesion area respectively.

[0175] 2.1 Image segmentation of diseased leaves

[0176] Open the image of the diseased leaf in Photoshop. Use the Quick Selection Tool to select the entire leaf area, select Reverse, and fill the foreground color with black. Finally, save the image as both JPEG and TIFF formats. When using the Quick Selection Tool, do not select Enhance Edges. In most cases, set the size to Pen Pressure (5 pixels), Hardness to 0%, Spacing to 25%, Angle to 35°, and Roundness to 100%.

[0177] 2.2 Image segmentation of lesion areas

[0178] After segmenting the diseased leaves, duplicate the leaf layer (named "Background Layer" in Photoshop) to create a new layer (named "Layer 1" in Photoshop). Hide the Background Layer, show and select Layer 1; repeatedly use the Magic Wand tool to select non-disease areas and fill them with black to complete the initial segmentation of the lesions; if there are still non-disease areas not displayed in black, use the Lasso tool to circle that area and fill it with black to complete the secondary segmentation of the lesions. Show the Background Layer, select Layer 1, and repeatedly show and hide Layer 1 to check if the lesion areas have been completely segmented; if any lesion areas are displayed in black during the check, select and hide Layer 1, show the Background Layer, use the Lasso tool to circle that area and clear it; after the lesion areas have been completely manually segmented, use the Magic Wand tool to click on the non-disease areas, then select Inverse, and save Layer 1 as a JPEG image and a TIFF image respectively. When using the Magic Wand tool, the sampling size is set to the sampling point, and the tolerance setting can be between 0 and 35. Adjust the tolerance value and select the continuous option according to the actual selection. When using the Lasso tool, the feather is set to 0 pixels. In all the above processing, the anti-aliasing and all layer sampling options are not selected.

[0179] 3. Obtain the total number of pixels and the number of pixels of lesions on diseased leaves.

[0180] In Photoshop, select the entire leaf area and the lesion area respectively, view the number of pixels in the leaf area and the number of pixels in the lesion area from the histogram panel, and record them in a Microsoft Excel 2016 (hereinafter referred to as Excel) table;

[0181] 4. Calculate the percentage of lesion area to the total area of ​​diseased leaves.

[0182] Using the total number of pixels in the leaf area and the number of pixels in the lesion area recorded in the Excel spreadsheet, the percentage of lesion pixels to the total number of pixels in the diseased leaf image corresponding to each severity level is calculated. This yields the percentage of the lesion area to the total area of ​​the diseased leaf. The calculation formula is as follows:

[0183]

[0184] In Equation 1, S p The percentage of lesion area to the total area of ​​diseased leaves; A d A represents the number of pixels in the lesion area. l This represents the total number of pixels in the diseased leaf area.

[0185] 5. Determine the lesion expansion coefficient

[0186] The method for determining the lesion expansion coefficient in this embodiment is the same as step 5 in embodiment 1.

[0187] 6. Dermal image dilation processing based on lesion dilation coefficient and lesion internal edge.

[0188] Using the lesion expansion coefficient determined in step 5, the lesion image is expanded based on the lesion centroid to obtain the expanded lesion.

[0189] The rgb2gray function in MATLAB 2019b (MathWorks, Natick, MA, USA) was used to convert the lesion segmentation image from an RGB image to a grayscale image.

[0190] The Otsu method is then used to binarize the grayscale image, resulting in a binary image. In this binary image, pixels corresponding to lesions are considered foreground with a value of 1, while the remaining pixels are considered background with a value of 0.

[0191] The connected components corresponding to lesions are extracted one by one from the binarized image using a connected component extraction algorithm. Morphological hole filling is performed on the extracted binarized lesion connected components to remove internal holes. The centroid of the lesion is calculated. Morphological erosion is performed on the connected regions of the lesion. The result of erosion is subtracted from the original binarized lesion image to obtain the internal edge of the lesion (the internal edge of the lesion is being searched. In this case, if there is only one pixel, the edge is itself. For single-pixel cases and cases where the length or width is 1, no expansion processing is performed, and the edge is skipped directly).

[0192] Using the centroid as the center point, each edge point of the lesion's internal edge is extended and moved in the opposite direction (i.e., away from the centroid) along the line connecting it to the centroid. Assuming the distance between this point and the centroid is 'd', and the lesion expansion coefficient is set to 'k', the distance from the extended edge point to the centroid is k×d. Each edge point is extended and moved in the above manner and then connected sequentially to form a new, expanded lesion. Morphological pore filling is then performed on the expanded lesion. (Specific details are shown below.) Figure 4 .

[0193] The enlarged image was pasted back onto the original diseased single-leaf image with centroid alignment. Pixels of lesions extending beyond the leaf area were reset to 0. The color of the enlarged lesions was filled using the average RGB values ​​of the corresponding lesion, resulting in a diseased single-leaf image containing the enlarged lesions. The results of treating diseased leaves at various severity levels are illustrated with a lesion expansion coefficient of 2.74 (Grate). Figure 5 .

[0194] 7. Calculate the area of ​​lesions and the area of ​​diseased single leaves after the expansion treatment.

[0195] Using the same method as in Example 1, the number of lesion pixels after expansion treatment and the total number of pixels on the diseased single leaf were statistically obtained using MATLAB 2019b software, with the number of pixels representing the area.

[0196] 8. Calculate the percentage of lesion area to the total area of ​​diseased single leaves after the expansion treatment.

[0197] Using the same method as in Example 1, and employing the software MATLAB 2019b, the percentage of the area of ​​the lesion after expansion treatment to the total area of ​​the diseased single leaf is obtained by dividing the number of lesion pixels after expansion treatment by the total number of pixels of the diseased single leaf.

[0198] 9. Severity assessment of diseased single leaves

[0199] Based on the percentage of lesion area after expansion treatment relative to the total area of ​​diseased single leaves, the severity level of diseased single leaves was assessed and determined by referring to the wheat stripe rust severity grading standard. The accuracy rate of severity assessment for each severity level of diseased leaf samples was calculated using the maximum error reference method. In the calculation, the severity levels of wheat stripe rust (1%, 5%, 10%, 20%, 40%, 60%, 80%, 100%) were represented as 1, 2, 3, 4, 5, 6, 7, and 8, respectively. Then, the accuracy rate was calculated using the same formula as in step 9 of Example 1, including the accuracy rate calculation for assessing the severity of a single diseased single leaf (Equation 2 in step 9 of Example 1) and the accuracy rate calculation for assessing the severity of multiple diseased single leaves (Equation 3 in step 9 of Example 1).

[0200] The severity assessment results of wheat stripe rust based on the lesion expansion method at the inner edge of the lesion in this embodiment are shown in Table 3.

[0201] The results showed that, based on all lesion expansion coefficients, the accuracy rate for severity assessment of diseased leaves at each severity level ranged from 82.33% to 99.75%. Without considering the lesion expansion coefficient, the accuracy rate for severity assessment of all diseased single leaves was 93.13% (i.e., the average accuracy rate of severity assessment for all severity levels of diseased leaves under the three lesion expansion coefficients). For a lesion expansion coefficient of 2.74 (Grate), the accuracy rate for severity assessment of diseased leaves at each severity level ranged from 88.00% to 99.20%, and the accuracy rate for severity assessment of all diseased leaves was 96.07%. For the lesion expansion coefficient minrate... S The accuracy rate for severity assessment of diseased leaves at each severity level ranged from 90.00% to 98.75%, and the accuracy rate for severity assessment of all diseased leaves was 94.60%. The mean rate of lesion expansion was... S The accuracy rate for severity assessment of diseased leaves at each severity level ranged from 82.33% to 99.75%, and the accuracy rate for severity assessment of all diseased leaves was 88.73%. The severity assessment results show that the method for assessing the severity of wheat stripe rust based on lesion expansion at the inner edge of the lesion, as proposed in this embodiment, can obtain satisfactory severity assessment results.

[0202] Table 3. Severity assessment results of wheat stripe rust based on lesion expansion at various severity levels for leaves.

[0203]

[0204]

[0205] Example 3: Establishment of a method for assessing the severity of wheat stripe rust based on lesion expansion using an image scaling algorithm.

[0206] Follow these steps to establish a method for assessing the severity of wheat stripe rust based on image scaling algorithms for lesion expansion:

[0207] 1. Obtain images of wheat stripe rust diseased leaves at various severity levels.

[0208] Using the same method as step 1 in Example 1, images of wheat stripe rust diseased leaves at various severity levels were obtained.

[0209] 2. Image segmentation

[0210] Using the same method as step 1 in Example 1, the images of diseased leaves and the images of lesion areas were segmented.

[0211] 3. Obtain the total number of pixels and the number of pixels of lesions on diseased leaves.

[0212] The total number of pixels on the diseased leaf and the number of pixels on the lesion were calculated using the same method as in step 3 of Example 1.

[0213] 4. Calculate the percentage of lesion area to the total area of ​​diseased leaves.

[0214] The percentage of lesion area to the total area of ​​diseased leaves was calculated using the same method as in step 4 of Example 1.

[0215] 5. Determine the lesion expansion coefficient

[0216] The lesion expansion coefficient was determined using the same three methods as in step 5 of Example 1.

[0217] 6. Expanding lesion images based on lesion expansion coefficient and image scaling algorithm.

[0218] Using the lesion expansion coefficient determined in step 5, the lesion image is expanded based on the lesion centroid to obtain the expanded lesion.

[0219] The rgb2gray function in MATLAB 2019b was used to convert the lesion segmentation image from an RGB image to a grayscale image.

[0220] The Otsu method is then used to binarize the grayscale image, resulting in a binary image. In this binary image, pixels corresponding to lesions are considered foreground with a value of 1, while the remaining pixels are considered background with a value of 0.

[0221] The connected component extraction algorithm is used to extract the connected components corresponding to lesions one by one from the binarized image. Morphological hole filling is performed on the extracted binarized lesion connected components to remove internal holes, and the centroid of the lesion is calculated. Assuming the lesion expansion coefficient is set to k, the binarized lesion image is magnified to k times using the bicubic interpolation algorithm in MATLAB 2019b, and the magnified image is re-binarized, that is, non-zero value pixels are regarded as lesion foreground and their values ​​are set to 1, while zero value pixels remain unchanged, resulting in the expanded image (i.e., the expanded lesion image). Specific demonstrations are provided. Figure 6 .

[0222] The enlarged image was pasted back onto the original diseased single-leaf image with centroid alignment. Pixels of lesions extending beyond the leaf area were reset to 0. The color of the enlarged lesions was filled with the average RGB values ​​of the corresponding lesions, resulting in a diseased single-leaf image containing the newly enlarged lesions. The results of treating diseased leaves at various severity levels are illustrated with a lesion expansion coefficient of 2.74 (Grate). Figure 7 .

[0223] 7. Calculate the area of ​​lesions and the area of ​​diseased single leaves after the expansion treatment.

[0224] The number of lesion pixels after expansion treatment and the total number of pixels on diseased single leaves were obtained by using MATLAB 2019b software. The number of pixels represents the area.

[0225] 8. Calculate the percentage of lesion area to the total area of ​​diseased single leaves after the expansion treatment.

[0226] Using MATLAB 2019b, based on the number of lesion pixels after expansion treatment and the total number of pixels of the diseased single leaf, the percentage of the lesion area after expansion treatment to the total area of ​​the diseased single leaf (diseased plant unit) is obtained by dividing the number of lesion pixels after expansion treatment by the total number of pixels of the diseased single leaf.

[0227] 9. Severity assessment of diseased single leaves

[0228] Based on the percentage of lesion area after expansion treatment relative to the total area of ​​diseased single leaves, the severity level of diseased single leaves was assessed and determined by referring to the wheat stripe rust severity grading standard. The accuracy rate of severity assessment for each severity level of diseased leaf samples was calculated using the same method as step 9 in Example 1, including the accuracy rate calculation for the severity assessment of a single diseased single leaf (Equation 2 in step 9 of Example 1) and the accuracy rate calculation for the severity assessment of multiple diseased single leaves (Equation 3 in step 9 of Example 1).

[0229] The severity assessment results of wheat stripe rust severity evaluation based on image scaling algorithm for lesion expansion in this embodiment are shown in Table 4. The results show that, based on all lesion expansion coefficients, the accuracy rate for severity assessment of diseased leaves at each severity level ranges from 83.00% to 99.50%. Without considering the lesion expansion coefficient, the accuracy rate for severity assessment of all diseased single leaves is 93.34%. For a lesion expansion coefficient of 2.74 (Grate), the accuracy rate for severity assessment of diseased leaves at each severity level ranges from 88.00% to 99.43%, and the accuracy rate for severity assessment of all diseased leaves is 96.16% (i.e., the average accuracy rate for severity assessment of all severity levels of diseased leaves at a lesion expansion coefficient of 2.74). For the lesion expansion coefficient minrate... S The accuracy rate for severity assessment of diseased leaves at each severity level ranged from 89.33% to 98.57%, and the accuracy rate for severity assessment of all diseased leaves was 94.84%. The mean rate of lesion expansion was... SThe accuracy rate for severity assessment of diseased leaves at each severity level ranged from 83.00% to 99.50%, and the accuracy rate for severity assessment of all diseased leaves was 89.03%. The severity assessment results show that the wheat stripe rust severity assessment method based on image scaling algorithm in this embodiment can obtain satisfactory severity assessment results.

[0230] Table 4. Severity assessment results of wheat stripe rust based on image scaling algorithm for lesion expansion on diseased leaves at each severity level.

[0231]

[0232]

[0233] In summary, in the above three embodiments, the three lesion expansion methods and three lesion expansion coefficient determination methods of the present invention constitute nine method combinations, all of which show good results in assessing the severity of single leaves affected by wheat stripe rust. The accuracy rate for severity assessment of diseased leaves at each severity level ranges from 78.00% to 100.00%. Regardless of which lesion expansion coefficient method is used, the lesion expansion method based on the image scaling algorithm has the best severity assessment effect among the three lesion expansion methods. Among the nine method combinations, the combination of the lesion expansion method based on the image scaling algorithm and the method with a lesion expansion coefficient of 2.74 (Grate) has the best severity assessment effect, with an accuracy rate of 96.16% for severity assessment of all diseased leaves. The results show that it is feasible to use the method provided by the present invention to assess the severity of wheat stripe rust, and satisfactory severity assessment results can be obtained.

[0234] This invention provides three embodiments, involving three methods for lesion expansion and three methods for determining the lesion expansion coefficient. Other lesion expansion methods and lesion expansion coefficient determination methods based on the idea of ​​lesion expansion are all within the scope of protection of this invention.

[0235] The method provided by this invention is based on the fact that in plant disease severity assessment, the actual ratio of lesion area to the area of ​​the surveyed plant unit is less than the ratio of lesion area to the area of ​​the surveyed plant unit corresponding to the corresponding severity level in the severity grading standard. By expanding the lesions, the method achieves accurate assessment of disease severity. It is applicable to all diseases where the actual ratio of lesion area to the area of ​​the surveyed plant unit is less than the ratio of lesion area to the area of ​​the surveyed plant unit corresponding to the corresponding severity level in the severity grading standard. It fundamentally solves the problem of inconsistency between the ratio of lesion area to the total area of ​​the plant unit and the actual ratio of lesion area to the total area of ​​the plant unit when assessing plant disease severity based on the ratio of lesion area to the total area of ​​the plant unit. This provides a foundation and methodological reference for accurate assessment of plant diseases.

[0236] The present invention has been described in detail above. Those skilled in the art will recognize that the invention can be practiced in a wide range of ways with equivalent parameters, concentrations, and conditions without departing from its spirit and scope, and without requiring unnecessary experiments. While specific embodiments have been provided, it should be understood that further modifications can be made to the invention. In summary, according to the principles of the invention, this application is intended to include any changes, uses, or improvements to the invention, including changes made using conventional techniques known in the art that depart from the scope disclosed herein.

Claims

1. A device for assessing the severity of plant diseases, characterized in that: The device includes: A1) Image acquisition module: used to acquire images of diseased plant units corresponding to each severity level in the known disease severity grading standard; A2) Image segmentation module: used to process the diseased plant unit image described in A1) using image processing software, segment the diseased plant unit from the background to obtain a plant unit segmentation image, and segment the lesion from the plant unit segmentation image to obtain a lesion segmentation image; A3) Actual ratio calculation module for lesions: used to calculate the actual ratio b of the lesion area of ​​the diseased plant to the area of ​​the plant unit based on the lesion segmentation image and the plant unit segmentation image; A4) Determine the expansion coefficient module: Calculate the lesion expansion coefficient using the ratio of lesion area corresponding to the severity level determined artificially according to the severity grading standard and the actual ratio of lesion area b; the lesion expansion coefficient is lesion expansion coefficient 1, lesion expansion coefficient 2 or lesion expansion coefficient 3; The lesion expansion coefficient 1 is called Grate, which is the ratio obtained by dividing the ratio of the lesion area corresponding to the highest severity level determined artificially according to the plant disease severity grading standard to the area of ​​the plant unit by the largest value among the actual ratio b of the lesion area of ​​all diseased plant units with the highest severity level. The lesion expansion coefficient 2 is minrate S The minrate S The ratio is the ratio of the area of ​​diseased lesions in a diseased plant unit at severity level S, which is determined artificially according to the plant disease severity grading standard, to the area of ​​the plant unit, divided by the largest value among the actual ratios b of the lesion areas of all diseased plant units at the corresponding severity level S, where S is the severity level. The lesion expansion coefficient 3 is the mean rate. S The meanrate S r represents the severity level S of all diseased plant units, determined artificially according to the plant disease severity grading standard. S The average value of r; S The ratio of lesion area to the area of ​​diseased plant unit in the severity grading standard corresponding to the severity level S is divided by the actual ratio b of the lesion area of ​​each diseased plant unit in the corresponding severity level S, where S is the severity level. A5) Lesion Expansion Module: This module is used to determine the severity level of the disease of the plant to be evaluated based on the actual ratio of the lesion area of ​​the plant to be evaluated according to the known disease severity grading standard. Based on the severity level, it determines the expansion coefficient of the plant to be evaluated and expands the lesions of the plant to be evaluated according to the expansion coefficient to obtain the expanded lesion image. The actual ratio of the lesion area of ​​the plant to be evaluated is calculated by dividing the area of ​​the segmented image of the lesion of the plant to be evaluated by the area of ​​the segmented image of the unit of the plant to be evaluated. A6) Module for calculating the ratio of the expanded lesion area to the plant unit area: used to calculate the ratio c of the expanded lesion area to the plant unit area based on the expanded lesion image and the segmented image of the diseased plant unit to be evaluated; A7) Plant Disease Severity Assessment Module: Used to obtain the disease severity of the diseased plant unit to be assessed based on the ratio c and the known disease severity grading standard.

2. The apparatus according to claim 1, characterized in that: The lesion area is obtained based on the pixels of the lesion segmentation image, and the plant unit area is obtained based on the pixels of the plant unit segmentation image.

3. The apparatus according to claim 1 or 2, characterized in that: The methods for treating lesion expansion include lesion expansion based on the outer edge of the lesion, lesion expansion based on the inner edge of the lesion, or image scaling algorithm. The method based on the outer edge expansion of lesions includes the following steps: C1 1) Image conversion: Convert the lesion segmentation image into a grayscale image; C1 2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image; C1 3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image using a connected component extraction algorithm to obtain the binarized lesion connected components; C1 4) Morphological hole filling: Morphological hole filling and internal void removal are performed on the connected components of the binary lesion, and the centroid position of the lesion is calculated. C1 5) Obtain the outer edge: Perform morphological dilation on the connected region of the lesion and subtract the binarized image to obtain the outer edge of the lesion; C1 6) Lesion expansion: Based on the outer edge of the lesion and the lesion expansion coefficient, the lesion region is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image; The method based on the internal edge expansion of lesions includes the following steps: C2 1) Image conversion: Convert the lesion segmentation image into a grayscale image; C2 2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image; C2 3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image using a connected component extraction algorithm to obtain the binarized lesion connected components; C2 4) Morphological hole filling: Morphological hole filling is performed on the connected components of the binary lesion to remove internal voids, and the centroid position of the lesion is calculated. C2 5) Obtaining the internal edge: Morphological etching is performed on the connected area of ​​the lesion to obtain the etching result, and C2 is used to obtain the internal edge. 2) Subtract the erosion result from the binarized image to obtain the internal edge of the lesion; C2 6) Lesion expansion: Based on the inner edge of the lesion and the lesion expansion coefficient, the lesion is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image; The image scaling algorithm-based expansion method specifically includes the following steps: C3 1) Image conversion: Convert the image of the lesion area into a grayscale image; C3 2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image; C3 3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image using a connected component extraction algorithm to obtain the binarized lesion connected components; C3 4) Morphological hole filling: Morphological hole filling is performed on the connected components of the binary lesion to remove internal voids, and the centroid position of the lesion is calculated. C3 5) Lesion expansion: Using an image scaling algorithm and the lesion expansion coefficient, C3 2) The binarized image is magnified to obtain an enlarged image, and the enlarged image is binarized to obtain an expanded lesion image.

4. A method for assessing the severity of plant diseases, characterized by: The method includes the following steps: B1) Image acquisition: Acquire images of diseased plant units corresponding to each severity level in the known disease severity grading standard; B2) Image segmentation: The diseased plant unit image described in B1) is processed using image processing software to segment the diseased plant unit from the background to obtain a plant unit segmentation image, and the lesion is segmented from the plant unit segmentation image to obtain a lesion segmentation image; B3) Calculation of the actual ratio of lesions: Based on the lesion segmentation image and the plant unit segmentation image, calculate the actual ratio b of the lesion area of ​​the diseased plant to the lesion area of ​​the plant unit. B4) Determine the expansion coefficient: The lesion expansion coefficient is calculated using the ratio of lesion area corresponding to the severity level determined artificially according to the severity grading standard and the actual ratio of lesion area b; the lesion expansion coefficient is lesion expansion coefficient 1, lesion expansion coefficient 2 or lesion expansion coefficient 3; The lesion expansion coefficient 1 is called Grate, which is the ratio obtained by dividing the ratio of the lesion area corresponding to the highest severity level determined artificially according to the plant disease severity grading standard to the area of ​​the plant unit by the largest value among the actual ratio b of the lesion area of ​​all diseased plant units with the highest severity level. The lesion expansion coefficient 2 is minrate S The minrate S The ratio is the ratio of the area of ​​diseased lesions in a diseased plant unit at severity level S, which is determined artificially according to the plant disease severity grading standard, to the area of ​​the plant unit, divided by the largest value among the actual ratios b of the lesion areas of all diseased plant units at the corresponding severity level S, where S is the severity level. The lesion expansion coefficient 3 is the mean rate. S The meanrate S r represents the severity level S of all diseased plant units, determined artificially according to the plant disease severity grading standard. S The average value of r; S The ratio of lesion area to the area of ​​diseased plant unit in the severity grading standard corresponding to the severity level S is divided by the actual ratio b of the lesion area of ​​each diseased plant unit in the corresponding severity level S, where S is the severity level. B5) Lesion Expansion: Based on the actual ratio of lesion area of ​​the diseased plant to be evaluated, the severity level of the disease of the plant to be evaluated is determined according to the known disease severity grading standard. The expansion coefficient of the diseased plant to be evaluated is determined according to the severity level of the disease. The lesions of the diseased plant to be evaluated are expanded according to the expansion coefficient to obtain the expanded lesion image. The actual ratio of lesion area of ​​the diseased plant to be evaluated is calculated by dividing the area of ​​the segmented image of the lesion of the diseased plant to be evaluated by the area of ​​the segmented image of the unit of the diseased plant to be evaluated. B6) Calculate the ratio of the expanded lesion area to the plant unit area: Based on the expanded lesion image and the segmented image of the diseased plant unit to be evaluated, calculate the ratio c of the expanded lesion area to the plant unit area; B7) Plant disease severity assessment: Based on the ratio c and the known disease severity grading criteria, the severity of the disease in the affected plant to be assessed is obtained.

5. The method according to claim 4, characterized in that: The lesion area is obtained based on the pixels of the lesion segmentation image, and the plant unit area is obtained based on the pixels of the plant unit segmentation image.

6. The method according to claim 4 or 5, characterized in that: The methods for treating lesion expansion include lesion expansion based on the outer edge of the lesion, lesion expansion based on the inner edge of the lesion, or image scaling algorithms: The method based on the outer edge expansion of lesions includes the following steps: C1 1) Image conversion: Convert the lesion segmentation image into a grayscale image; C1 2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image; C1 3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image using a connected component extraction algorithm to obtain the binarized lesion connected components; C1 4) Morphological hole filling: Morphological hole filling and internal void removal are performed on the connected components of the binary lesion, and the centroid position of the lesion is calculated. C1 5) Obtain the outer edge: Perform morphological dilation on the connected region of the lesion and subtract the binarized image to obtain the outer edge of the lesion; C1 6) Lesion expansion: Based on the outer edge of the lesion and the lesion expansion coefficient, the lesion region is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image; The method based on the internal edge expansion of lesions includes the following steps: C2 1) Image conversion: Convert the lesion segmentation image into a grayscale image; C2 2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image; C2 3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image using a connected component extraction algorithm to obtain the binarized lesion connected components; C2 4) Morphological hole filling: Morphological hole filling is performed on the connected components of the binary lesion to remove internal voids, and the centroid position of the lesion is calculated. C2 5) Obtaining the internal edge: Morphological etching is performed on the connected area of ​​the lesion to obtain the etching result, and C2 is used to obtain the internal edge. 2) Subtract the erosion result from the binarized image to obtain the internal edge of the lesion; C2 6) Lesion expansion: Based on the inner edge of the lesion and the lesion expansion coefficient, the lesion is expanded with the centroid of the lesion as the center point to obtain the expanded lesion image; The image scaling algorithm-based expansion method specifically includes the following steps: C3 1) Image conversion: Convert the image of the lesion area into a grayscale image; C3 2) Gray-scale binarization: The gray-scale image is binarized to obtain a binarized image; C3 3) Connected component extraction: The connected components corresponding to the lesions are extracted one by one from the binarized image using a connected component extraction algorithm to obtain the binarized lesion connected components; C3 4) Morphological hole filling: Morphological hole filling is performed on the connected components of the binary lesion to remove internal voids, and the centroid position of the lesion is calculated. C3 5) Lesion expansion: Using an image scaling algorithm and the lesion expansion coefficient, C3 2) The binarized image is magnified to obtain an enlarged image, and the enlarged image is binarized to obtain an expanded lesion image.

7. A computer-readable storage medium storing a computer program, characterized in that: The computer program causes the computer to perform the steps of the method as described in any one of claims 4-6.

Citation Information

Patent Citations

  • Tissue culture prewarning method and system based on scab monitoring

    CN104778686A

  • Automatic detection of critical dermoscopy features for malignant melanoma diagnosis

    US20060269111A1