A system for accurate segmentation and damage assessment of crop disease spots based on deep learning

By introducing RFCBAMConv, AWDownSample-Lite and GSegment modules into the plant leaf lesion segmentation system, the problem of difficulty in capturing disease shapes and low segmentation performance under complex backgrounds is solved, achieving more efficient and accurate segmentation of lesions and assessment of damage levels. .

CN118447022BActive Publication Date: 2024-09-17SANYA NATIONAL INSTITUTE OF SOUTHERN BREEDING CHINESE ACADEMY OF AGRICULTURAL SCIENCES +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904854.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-17
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing plant leaf lesion segmentation systems are difficult to accurately capture disease shapes and boundaries in complex backgrounds, and suffer from over-segmentation and mis-segmentation problems, and the limited sample size leads to low segmentation performance and efficiency.

Method used

The RFCBAMConv module and C2f_RFCBAMConv module are introduced to replace the Conv module in the Backbone network, the AWDownSample-Lite module replaces the C2f module in the Neck network, and the GSegment module replaces the 3×3 convolution kernel in the Head network to enhance receptive field feature extraction and feature fusion, reducing Computational complexity.

Benefits of technology

It significantly improves the accuracy and speed of disease spot segmentation, solves the fuzzy transition problem in diseased leaves and disease segmentation, optimizes parameters and computational complexity, and improves segmentation performance and efficiency in complex backgrounds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447022B
    Figure CN118447022B
Patent Text Reader

Abstract

The present invention proposes a crop disease spot precise segmentation and damage degree assessment system based on deep learning, and the specific improvements are as follows: the RFCBAMConv module and the C2f‑RFCBAMConv module are designed to replace the Conv module and the C2f module in the BackBone network respectively, further emphasizing the detail features of the crop disease spots and improving the accuracy of system segmentation; the AWDownSample‑Lite module is designed to replace the C2f module in the Neck network respectively, and the module achieves more effective extraction of disease features by aggregating the feature information in each receptive field; the GSegment segmentation head is designed to replace the segmentation head composed of two 3×3 convolution kernels in YOLOv8‑Seg, which reduces the system parameter amount and computational complexity while improving the system's perception of diseased leaves and diseases of different scales.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of plant disease detection, and in particular to a crop disease spot precise segmentation and damage degree assessment system based on deep learning. Background Art

[0002] At present, plant leaf lesion monitoring mainly relies on plant protection personnel to monitor the disease by observing plant leaves based on experience or combining modern laboratory testing methods. These traditional disease monitoring methods are time-consuming and laborious, and the methods are lagging behind. Therefore, it is of great significance to improve the accuracy of information technology in disease diagnosis and provide a real-time and reliable disease diagnosis and damage assessment method.

[0003] At the same time, with the continuous development of deep learning technology, it has been widely used in crop quality grading due to its good deep feature perception ability. At present, in the study of crop disease spot segmentation system, Yan Jingkun et al. proposed a two-stage segmentation algorithm that combines the DeepLabv3+ model based on data migration with the centroid selection K-means clustering mechanism. First, the DeepLabv3+ segmentation model based on data enhancement is used to extract diseased leaves from complex backgrounds; then the initial centroid is selected in the leaf HSV color space, and the centroid is selected using K The mean clustering algorithm is used to obtain the diseased spot family; finally, the data migration method is used to transfer the knowledge learned from the source domain (Kaggle NPDD dataset) to the target domain (Yan Jingkun, Huang Yuxian, Qin Weisen, Gao Pan. Research on cotton Verticillium wilt disease spot segmentation algorithm under complex background of cotton field. Journal of Nanjing Normal University (Natural Science Edition), 2021,044(004):127-134). The above-mentioned recognition method mainly alleviates the problems of over-segmentation and mis-segmentation caused by the small amount of sample data set. However, in the application scenario of plant leaf segmentation, the complex background in the field, including soil, plastic film and water pipes, poses a challenge to the visual feature extraction in plant leaf segmentation. The limited sample size makes it challenging to directly segment diseased leaves from the image. At the same time, Verticillium wilt can cause shape and color changes of leaves, often resulting in a blurred transition between diseased and healthy areas. In addition, natural leaf changes, aging or other factors may be similar to changes caused by the disease, which makes it difficult for crop lesion segmentation systems to accurately capture the shape and boundaries of the disease.

[0004] YOLOv8 was developed by Ultralytics and is the latest version of the YOLO (You Only Look Once) model. It was released on January 10, 2023. YOLOv8 supports a full range of AI vision tasks, including detection, segmentation, pose estimation, tracking, and recognition. The YOLOv8s-Seg network is designed to perform instance segmentation tasks. It draws on the principles of the YOLACT network. Compared with the YOLOv8 model for target detection, the Head part of YOLOv8-Seg has a prototype mask branch and mask coefficients for generating instance masks. YOLOv8-Seg has five network models of different sizes, namely YOLOv8n-Seg, YOLOv8s-Seg, YOLOv8m-Seg, YOLOv8l-Seg, and YOLOv8x-Seg. Under the same conditions, the model size (parameters) and accuracy (usually expressed as mean average precision mAP) increase in turn. Among them, YOLOv8n-Seg has the advantages of high prediction accuracy, small parameters and low computational overhead compared with other YOLOv8-Seg series models.

[0005] Based on the above, a precise lesion segmentation and damage assessment system has been developed, which can not only solve the fuzzy transition problem between healthy and diseased areas in diseased leaves, but also optimize the parameters and computational complexity of the segmentation system. It can also improve the performance and efficiency of the segmentation system trained with limited samples in complex field backgrounds to solve related scientific problems, which has important application value. Summary of the invention

[0006] 1. Improved Backbone network structure

[0007] Since there are complex backgrounds such as soil, weeds, and mulch in the planting environment, and the lesions will show different symptoms in different crop varieties, the location and size of the lesions in the images collected at different angles and distances are also different. If the convolution operation uses the same parameters to extract information in each receptive field without considering the differential information from different positions and the importance of each feature, this will limit the system's performance in diseased leaves and disease segmentation, thereby affecting the speed and accuracy of disease damage assessment. The attention mechanism can be regarded as a dynamic weight adjustment process based on the input image features. Although it can solve the parameter sharing problem of convolution operations, it cannot emphasize the importance of each feature in the receptive field, and the information contained in the generated attention map is insufficient for large-size convolutions. At the same time, spatial attention mechanisms such as CBAM (Convolutional Block Attention Module) and CA (Channel Attention) bring too many convolution operations and increased computational burden to the system. These limitations make them unsuitable for real-time lesion segmentation.

[0008] To solve the above problems, the system provided by the present invention introduces the RFCBAMConv module, which combines the spatial attention CBAM focusing on the spatial features of the receptive field with the convolution operation. It not only emphasizes the importance of various features in the receptive field, but also solves the problem of convolution kernel parameter sharing with only a small amount of parameters and computational overhead. The specific structure of the RFCBAMConv module is as follows: Figure 1 As shown. In terms of focusing on the spatial features of the receptive field, the RFCBAMConv module uses the receptive field weight matrix to assign different weights to each receptive field position and feature channel, and adjusts the weight distribution of features in different receptive fields to highlight important disease detail features. In terms of parameter sharing, RFCBAMConv adaptively adjusts the shape and range of the receptive field according to the size of the convolution kernel. It can more flexibly adjust the parameters of the convolution kernel and provide different processing methods for different regions. For leaves with more serious damage or a larger affected area, a larger receptive field is used to capture global information. For diseases with less damage or smaller targets, a smaller receptive field is generated to improve the segmentation accuracy of small target diseases. At the same time, in order to further emphasize the detailed features of the lesion features and reduce information loss, the present invention combines the RFCBAMConv module with the C2f module, and proposes the C2f_RFCBAMConv module, which uses RFCBAMConv to replace the Bottleneck in the C2f module. The specific structure is as shown in Figure 1The inventors integrated the RFCBAMConv module and the C2f_RFCBAMConv module into the Backbone network of YOLOv8-Seg, replacing the Conv module and the C2f module respectively. This improvement significantly enhanced the performance of the system in segmenting lesions, and enabled more accurate and faster segmentation of lesions.

[0009] 2. Improved Neck Network Structure

[0010] Plant disease spots can cause shape variation and color changes on leaves, and there is a blurred transition between diseased and healthy areas. At the same time, natural changes, aging, or other physiological factors of leaves may be similar to changes caused by diseases, which increases the difficulty of the system to accurately capture the shape and boundaries of the disease. The Neck part of the YOLOv8-Seg model is used to fuse feature maps of different scales. Its downsampling module filters out information that is considered unimportant during the downsampling operation, thereby affecting the effective extraction of diseased leaves and disease features. In order to achieve a high-precision model, enhancing the downsampling module in the Neck network structure becomes an efficient and worthwhile method.

[0011] To solve the above problems, the present invention proposes a downsampling module AWDownSample-Lite to solve the problem of information loss of diseased leaves and disease features. The AWDownSample-Lite module is inspired by the design principle of RFAConv to expand the receptive field. While adjusting the receptive field, the module maximizes the extraction of diseased leaves and disease features. The specific structure is as follows: Figure 2 shown.

[0012] The AWDownSample-Lite module aggregates the feature information within each receptive field. The present invention uses the AWDownSample-Lite module to integrate into the Neck network of the YOLOv8-Seg model, replacing the third and fourth C2f modules respectively. This improvement enables the segmentation system to extract the features of the lesions more effectively, thereby improving the accuracy of the segmentation of diseased leaves and diseases.

[0013] 3. Improved Head Network Structure

[0014] The YOLOv8-Seg model introduces a decoupling head mechanism to separate the convolutional layer from the fully connected layer. This technology uses the output features of the neck network to predict the category and location of the target through different branches. However, it contains 12 layers of 3×3 Conv modules, which helps improve the convergence and accuracy of the system while introducing a large number of additional parameters and computational costs.

[0015] In order to improve the computational efficiency, the present invention proposes a GSegment module. The GSegment module is inspired by the grouped convolution design principle of AlexNet. The core idea is to divide the convolution kernel and the input feature map in the convolution operation into g groups at the same time. In each group, the operation of convolving the input feature map and the convolution kernel is called Group Conv. Group Conv divides the input feature map into g groups, and its parameter amount and computational complexity will be significantly reduced. At the same time, the coupling between the feature maps obtained through different convolution paths is low, and the main features of concern are different, which helps to improve the perception of diseased leaves and diseases of different scales and shapes. The GSegment module uses two 3×3 Group Convs to replace the 3×3 convolution kernel in YOLOv8-Seg. This improvement significantly reduces the parameter amount and computational complexity of the segmentation system, and is more suitable for deployment in devices with limited computing resources such as mobile devices.

[0016] To achieve the above object, the technical solution provided by the present invention is as follows:

[0017] The present invention provides a crop disease spot accurate segmentation and damage degree assessment system based on deep learning ( Figure 3 ), the lesion accurate segmentation and damage degree assessment system specifically includes: an input layer 640*640 image tensor, a Backbone network structure, a Neck network structure and a Head network structure;

[0018] Among them, the input layer is responsible for processing the input image and performing data enhancement; the Backbone network structure is responsible for extracting image features; the Neck network structure is responsible for fusing and processing multi-scale features; and the Head network structure is responsible for segmentation and evaluation.

[0019] The input layer adds a mosaic data enhancement module; the Backbone network structure is the core structure of YOLOv8-Seg, which is composed of RFCBAMConv, C2f-RFCBAMConv, and SPPF modules; the Neck network structure adds an AWDownSample-Lite module, which is composed of an AvgPool module, a Group Conv module, a SoftMax operation, a Mul operation, and a Sum operation; the Head network structure adds a GSegment module, which uses two 3×3 Group Convs to replace the 3×3 convolution kernel in YOLOv8-Seg;

[0020] The operation logic relationship among the input layer, Backbone network structure, Neck network structure and Head network structure is:

[0021] Data processing: The image is input by the input layer, and then the input image is pre-segmented by the MobileSAM module;

[0022] The Backbone network structure extracts features from the input image: First, the RFCBAMConv module is used to perform preliminary feature extraction on the input image, and then the C2f-RFCBAMConv module is used to extract deep features. The input image then passes through the RFCBAMConv module and the C2f-RFCBAMConv module to extract more feature information layer by layer. In the final stage of the Backbone network structure processing, the SPPF module is used to perform spatial pyramid pooling, fuse multi-scale features, and generate the final feature map.

[0023] The Neck network structure further processes and fuses the features extracted by the Backbone network structure: by combining features at different levels, the Concat and Upsample operations are used to upsample and concatenate the final feature map, and then the C2f module is used to fuse the features, and the AWDownSample-Lite module is used to downsample the features.

[0024] The Head network structure is responsible for using the features processed by the Neck network structure for segmentation and evaluation: accurate segmentation of crop spots is performed through the GSegment module.

[0025] Furthermore, the data processing method of the mosaic data enhancement module is: load an original picture, randomly select 8 pictures, splice and combine them, and use hyperparameters translate, scale, and shear to process the spliced ​​image.

[0026] Furthermore, the implementation steps of the AWDownSample-Lite module are as follows:

[0027] (1) Input features;

[0028] (2) Extract global information from input features through AvgPool operation;

[0029] (3) Realize the interaction of information within the receptive field through Group Conv operation;

[0030] (4) Highlight the importance of each feature in the receptive field through SoftMax operation;

[0031] (5) Fuse the extracted features with the spatial features of the receptive field and use them to adjust the convolution parameter weights;

[0032] (6) Output features.

[0033] The present invention also provides a disease damage degree assessment method based on the disease spot precise segmentation and damage degree assessment system, comprising the following steps:

[0034] (1) Construct a system for accurate lesion segmentation and damage assessment;

[0035] (2) Obtain a dataset of diseased leaf images of crops, perform preprocessing and analysis on the dataset, obtain data visualization results, and divide the dataset into training set, validation set, and test set;

[0036] (3) Use the training set to train the lesion accurate segmentation and damage assessment system, and use the validation set to explore the hyperparameters;

[0037] (4) Use the test data set to test the trained lesion accurate segmentation and damage degree assessment system;

[0038] (5) Assess the severity of the disease damage.

[0039] Furthermore, the crop in step (2) is cotton.

[0040] Furthermore, the process of obtaining the diseased leaf image dataset of crops in step (2) is as follows: Use a digital camera and a smart phone to take diseased leaf images to collect images to obtain a dataset: the shooting distance is 20-50 cm from the leaves, the image uses automatic exposure mode, and the resolution is 4608×3456 pixels.

[0041] Furthermore, the preprocessing analysis of the data set in step (2) includes performing data enhancement technology processing on the acquired data set, and the data enhancement technology processing includes translation, flipping, brightness adjustment and contrast change and saving in JPG format.

[0042] Furthermore, in step (2), the ratio of the training set, validation set, and test set is 8:1:1.

[0043] Furthermore, the calculation process for evaluating the degree of damage of the disease described in step (5) is as follows:

[0044] (1) Segmentation of diseased leaves: For diseased leaves and complex backgrounds, segment the diseased leaves from the complex background and calculate the number of pixels of the diseased leaves;

[0045] (2) Segmentation of diseased spots: For diseased leaves and diseased spots in diseased leaves, segment the diseased spots from the diseased leaves and calculate the number of pixels of the diseased spots;

[0046] (3) Calculate the ratio of the lesion area to the diseased leaf area as the basis for grading the severity of the disease. The calculation formula for evaluating the severity of the disease is: (Formula 1);

[0047] Represents the number of pixels of the lesion after segmentation, It represents the number of pixels of diseased leaves after segmentation, and P represents the proportion of diseased spots to diseased leaves.

[0048] Beneficial effects of the present invention:

[0049] The present invention provides a crop disease spot precise segmentation and damage degree assessment system based on deep learning, designs an RFCBAMConv module and a C2f-RFCBAMConv module to replace the Conv module and the C2f module in the BackBone network respectively, further emphasizes the detail features of the disease spots, improves the accuracy of system segmentation, and solves the challenges of fuzzy transition between healthy areas and diseased areas in diseased leaves; designs an AWDownSample-Lite module to replace the C2f module in the Neck network respectively, and realizes more effective extraction of disease features by aggregating feature information in each receptive field; designs a GSegment segmentation head to replace the segmentation head composed of two 3×3 convolution kernels in YOLOv8-Seg, thereby reducing the system parameter amount and computational complexity, and improving the system's perception of diseased leaves and diseases of different scales; combines YOLOv8Seg with MobileSAM to improve the performance and efficiency of the segmentation system trained with limited samples in complex field backgrounds. The disease damage degree assessment method based on the above crop spot segmentation system provided by the present invention is highly operational and timely, provides an intelligent assessment system for the disease damage degree, and provides a reference for the development of crop disease and insect pest identification technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is the network structure diagram of the RFCBAMConv module and the C2f_RFCBAMConv module.

[0051] Figure 2 This is the network structure diagram of the AWDownSample-Lite module.

[0052] Figure 3 This is the overall structure diagram of the cotton leaf disease segmentation system.

[0053] Figure 4 This is the loss curve during the training process.

[0054] Figure 5 It is used to evaluate the performance of the classification system at different thresholds and reflects the performance of the system when dealing with a situation where the ratio of positive and negative samples is relatively unbalanced.

[0055] Figure 6 is the accuracy of the system at different confidence thresholds.

[0056] Figure 7 is the recall rate of the system under different confidence thresholds.

[0057] Figure 8 This is the result of disease damage assessment. DETAILED DESCRIPTION

[0058] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0059] Example 1 Test on accurate segmentation and damage assessment of cotton Verticillium wilt lesions

[0060] (1) Constructing a system for accurate lesion segmentation and damage assessment ( Figure 3 ), the cotton leaf disease segmentation system specifically includes: an input layer 640*640 image tensor, a Backbone network structure, a Neck network structure and a Head network structure; wherein the input layer adds a mosaic data enhancement module; the Backbone network structure is the core structure of YOLOv8-Seg, and is composed of RFCBAMConv, C2f-RFCBAMConv, and SPPF modules; the Neck network structure adds an AWDownSample-Lite module, and the AWDownSample-Lite module is composed of an AvgPool module, a Group Conv module, a SoftMax operation, a Mul operation, and a Sum operation; the Head network structure adds a GSegment module, and the GSegment module uses two 3×3 Group Convs to replace the 3×3 convolution kernel in YOLOv8-Seg. The specific improved YOLOv8-Seg network structure is shown in Table 1;

[0061] In the constructed network system, the data processing method of the mosaic data enhancement module is as follows: load an original image, randomly select 8 images, splice and combine them, and use the hyperparameters translate, scale, and shear to process the spliced ​​image;

[0062] Table 1 Improved YOLOv8-Seg network structure

[0063]

[0064] Note: From in the table means accepting the input of the previous layer of the network. In the Concat layer, From means fusing the features of the current layer with the specified layer: Params is the cumulative amount of the network parameters of the current layer, and Module is the main model used by the current layer. The values ​​in the arguments column represent the number of input channels, number of output channels, convolution kernel size, and step size information of the module.

[0065] (2) Obtain a dataset of cotton diseased leaf images, perform preprocessing and analysis on the dataset, obtain data visualization results, and divide the dataset into a training set, a validation set, and a test set:

[0066] The specific operation is as follows: the image dataset of this embodiment is collected from the cotton fields of the Langfang Experimental Base of the Chinese Academy of Agricultural Sciences in Hebei Province, China (39°27′55.59″N, 116°45′28.54″E) and the Potianyang Base in Yazhou District, Sanya City, Hainan Province, China (18°23′49.71″N, 109°10′39.84″E), and the collection time is from September 2020 to February 2023. The image collection covers various weather conditions, including sunny and cloudy days, and shooting at different time periods - morning, noon and evening;

[0067] Images were captured using a Canon EOS 850D digital camera (Canon Inc., Tokyo, Japan) and a Huawei P40 Pro smartphone (Huawei Technologies Co., Ltd., Shenzhen, China) at a distance of 20–50 cm from the cotton leaves. Images were captured in automatic exposure mode with a resolution of 4608 × 3456 pixels and saved in JPG format. Background elements varied, including weeds, soil, leaves, stems, shadows, and human hands. To ensure the quality and accuracy of the dataset, two expert cotton pathologists performed a rigorous identification and confirmation process. After image acquisition, the dataset was processed with a series of data augmentation techniques, including translation, flipping, brightness adjustment, and contrast change. Translation refers to moving pixels in the image along the horizontal or vertical direction of the image. During translation, each pixel in the image moves in a specified direction by a certain distance. Flipping refers to Reverse the arrangement order of image pixels in the horizontal or vertical direction. Horizontal flipping reverses the image left to right, while vertical flipping reverses the image up and down. The brightness adjustment refers to changing the brightness level of each pixel in the image to make the entire image brighter or darker, which is usually achieved by increasing or decreasing the pixel value of each pixel. The contrast refers to the degree of difference between pixel brightness in the image. Contrast change is to adjust the brightness difference between different areas in the image to enhance the visual effect of the image. In order to meet the data format requirements of the instance segmentation network, the image annotation tool LabelMe was used to annotate the diseased leaves and spots. Each annotated image generates a JSON file containing information such as image size, label name, and contour points.

[0068] This process generated a total of 1,131 cotton Verticillium wilt images, and the dataset was divided into three subsets in a ratio of 8:1:1, with the training set containing 905 images, the validation set and the test set each containing 113 images.

[0069] (3) The training set is used to train the lesion accurate segmentation and damage assessment system, and the validation set is used to explore the hyperparameters:

[0070] The experimental operating environment is a Dell tower workstation (Dell, Inc) with an operating system environment of Windows 11, a 12th Gen Intel(R) Core(TM) i5-12500 3.00 GHz processor, 32G machine with running memory, a 1TB solid-state drive, an NVDIA GeForce RTX 3080 graphics card with 10GB video memory, and GPU accelerated computing. The software environment includes Python 3.7.16, PyTorch 1.7.0, Torchvision 0.8.2, and CUDA 11.0.

[0071] The number of experimental iterations was set to 200, batch_size was set to 8, Adam was used as the optimizer, the system's initial learning rate was set to 1e-3, the maximum learning rate was 1e-5, the momentum was 0.937, the weight decay was 0, and the input image resolution was set to 640×640. During the training process, all systems used the same training parameters and datasets.

[0072] In this embodiment, automatic random search is used to explore more important hyperparameters. Random search sets a random value for the hyperparameter. After each evolutionary training, the system is evaluated to select an optimal parameter setting value. Since the data set of the present invention has only 1131 images, all data are included in the hyperparameter evolution process, and the hyperparameters are evolved 200 times. Finally, the hyperparameters selected after 166 evolutions are shown in Table 2.

[0073] Table 2 Results after hyperparameter iteration

[0074]

[0075] The system is trained using a combined loss function consisting of three parts: bounding box loss, objectness loss, and segmentation loss. This allows the system to perform object detection and segmentation simultaneously. Bounding box loss calculates the error between the predicted box and the true box geometry. It measures how well the system predicts the size and position of the bounding box. Objectness loss determines how confident the system is that an object exists in the bounding box. It compares the system's probability of the object existing with the ground truth. Segmentation loss quantifies how close the predicted segmentation map is to the ground truth map. It measures how effectively the system performs the semantic segmentation task.

[0076] The loss function used by the present invention is defined as the weighted sum of these three individual losses, with the weights controlling the relative importance or contribution of each loss in the final combined loss optimized during training. The system rapidly improves in precision, recall, and average precision, leveling off after about 150 epochs. The box, object, and classification losses of the validation data also show a rapid decline until around epoch 200 ( Figure 4-7 ). The present invention uses early stopping to select the optimal weights.

[0077] (4) Testing the trained segmentation system using a test data set: This example uses 113 cotton Verticillium wilt images as test objects, compares the severity predicted by the proposed method with the severity manually annotated, and calculates the evaluation accuracy of the system. The test results are shown in Table 3.

[0078] Table 3 Evaluation results of cotton lesion damage degree

[0079]

[0080] (5) Evaluating the severity of cotton lesions: Currently, there is no unified standard for estimating the severity of Verticillium wilt. The method used in the present invention is to calculate the leaf area and the lesion area. The proportion of the lesion area is calculated according to Formula 1, and the severity of the disease is divided into 6 levels from L0 to L5 (Table 4). The results are as follows: Figure 4 shown.

[0081] Table 4 Evaluation criteria for the degree of damage caused by Verticillium wilt in cotton

[0082]

[0083] Example 2 Ablation Experiment

[0084] In order to further illustrate the effectiveness of the enhancement method proposed in this invention, an ablation experiment was performed using YOLOv8-Seg as a benchmark model to evaluate the role of each module in detail. The experimental results are shown in Table 5.

[0085] Table 5 Ablation experiment results

[0086]

[0087] Impact of RFCBAMConv and AWDownSample-Lite modules: Compared with the YOLOv8-Seg model, after integrating RFCBAMConv and AWDownSample-Lite, the system has improved in accuracy, with mAP increased by 1.2%. This shows that RFCBAMConv and AWDownSample-Lite help improve the accuracy of the system by emphasizing the importance of various features in the receptive field and aggregating the feature information in each receptive field.

[0088] Impact of GSegment module: After integrating GSegment, the system parameters and computational complexity were reduced by 21.21% and 19.84% respectively, while mAP was increased by 0.7%. This shows that GSegment can reduce the system parameters and computational complexity while obtaining richer feature information through group convolution, thereby improving the accuracy of the system.

[0089] In summary, the present invention combines RFCBAMConv, AWDownSample-Lite and AWDownSample-Lite modules, surpassing YOLOv8-Seg in terms of mAP, computational complexity and number of parameters. On the same dataset, the improved YOLOv8-Seg achieved a 1.9% improvement in mAP@0.5, reduced the number of parameters by 18.75%, and reduced the computational complexity by 15.83%.

[0090] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A crop disease spot accurate segmentation and damage assessment system based on deep learning, characterized in that: The crop disease spot accurate segmentation and damage degree assessment system specifically includes: an input layer 640*640 image tensor, a Backbone network structure, a Neck network structure and a Head network structure; Among them, the input layer adds a mosaic data enhancement module; the Backbone network structure is the core structure of YOLOv8-Seg, which is composed of RFCBAMConv, C2f-RFCBAMConv, and SPPF modules; the Neck network structure adds an AWDownSample-Lite module, and the AWDownSample-Lite module is composed of an AvgPool module, a Group Conv module, a SoftMax operation, a Mul operation, and a Sum operation; the Head network structure adds a GSegment module, and the GSegment module uses two 3×3 Group Convs to replace the 3×3 convolution kernel in YOLOv8-Seg; The operation logic relationship among the input layer, Backbone network structure, Neck network structure and Head network structure is: Data processing: The image is input by the input layer, and then the input image is pre-segmented by the MobileSAM module; The Backbone network structure extracts features from the input image: First, the RFCBAMConv module is used to perform preliminary feature extraction on the input image, and then the C2f-RFCBAMConv module is used to extract deep features. The input image then passes through the RFCBAMConv module and the C2f-RFCBAMConv module to extract more feature information layer by layer. In the final stage of the Backbone network structure processing, the SPPF module is used to perform spatial pyramid pooling, fuse multi-scale features, and generate the final feature map. The Neck network structure further processes and fuses the features extracted by the Backbone network structure: by combining features at different levels, the Concat and Upsample operations are used to upsample and concatenate the final feature map, and then the C2f module is used to fuse the features, and the AWDownSample-Lite module is used to downsample the features. The Head network structure is responsible for using the features processed by the Neck network structure for segmentation and evaluation: accurate segmentation of crop spots is performed through the GSegment module.

2. The crop disease spot precise segmentation and damage degree assessment system according to claim 1, characterized in that: The data processing method of the mosaic data enhancement module is: load an original picture, randomly select 8 pictures, splice and combine them, and use hyperparameters translate, scale, and shear to process the spliced ​​image.

3. The crop disease spot precise segmentation and damage degree assessment system according to claim 1, characterized in that: The implementation steps of the AWDownSample-Lite module are as follows: (1) Input features; (2) Extract global information from input features through AvgPool operation; (3) Realize the interaction of information within the receptive field through Group Conv operation; (4) Highlight the importance of each feature in the receptive field through SoftMax operation; (5) Fuse the extracted features with the spatial features of the receptive field and use them to adjust the convolution parameter weights; (6) Output features.

4. A disease damage assessment method based on the crop disease spot precise segmentation and damage assessment system according to claim 1, characterized in that: The following steps are involved: (1) Construct a system for accurate segmentation of crop disease spots and assessment of their damage level; (2) Obtain a dataset of diseased leaf images of crops, perform preprocessing and analysis on the dataset, obtain data visualization results, and divide the dataset into training set, validation set, and test set; (3) Use the training set to train the crop disease spot accurate segmentation and damage assessment system, and use the validation set to explore the hyperparameters; (4) Use the test data set to test the trained crop disease spot accurate segmentation and damage assessment system; (5) Assess the severity of the disease damage.

5. The method for evaluating the degree of disease damage according to claim 4, characterized in that: The crop in step (2) is cotton.

6. The method for evaluating the degree of disease damage according to claim 4, characterized in that: The process of obtaining the diseased leaf image dataset of crops in step (2) is as follows: Use a digital camera and a smart phone to take diseased leaf images to obtain the dataset: the shooting distance is 20-50 cm, the image uses automatic exposure mode, and the resolution is 4608×3456 pixels.

7. The method for evaluating the degree of disease damage according to claim 4, characterized in that: The preprocessing analysis of the data set in step (2) includes performing data enhancement technology processing on the acquired data set, and the data enhancement technology processing includes translation, flipping, brightness adjustment and contrast change and saving in JPG format.

8. The method for evaluating the degree of disease damage according to claim 4, characterized in that: In step (2), the ratio of the training set, validation set, and test set is 8:1:

1.

9. The method for evaluating the degree of disease damage according to claim 4, characterized in that: The calculation process for evaluating the degree of disease damage described in step (5) is as follows: (1) Segmentation of diseased leaves: For diseased leaves and complex backgrounds, segment the diseased leaves from the complex background and calculate the number of pixels of the diseased leaves; (2) Segmentation of diseased spots: For diseased leaves and diseased spots in diseased leaves, segment the diseased spots from the diseased leaves and calculate the number of pixels of the diseased spots; (3) Calculate the ratio of the lesion area to the diseased leaf area as the basis for grading the severity of the disease. The calculation formula for evaluating the severity of the disease is: ; Represents the number of pixels of the lesion after segmentation, It represents the number of pixels of diseased leaves after segmentation, and P represents the proportion of diseased spots to diseased leaves.