Wheat scab detection method and system based on improved YOLOv8s

By improving the YOLOv8s model, using full-dimensional dynamic convolution and Efficient RepGFPN feature fusion network, combined with the EIoU loss function, the real-time and accuracy problems of wheat head blight detection are solved, and fast and accurate head blight identification and Monitor and adapt to the complex environment of the field.

CN118736376APending Publication Date: 2024-10-01HENAN AGRICULTURAL UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410781055.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the detection method of wheat scab is time-consuming and labor-intensive due to manual investigation, and the hyperspectral imager is expensive and bulky. It is difficult to achieve real-time detection and cannot meet the needs of large-scale wheat scab monitoring.

Method used

Improve the YOLOv8s model, replace the standard convolution with full-dimensional dynamic convolution, use the Efficient RepGFPN feature fusion network, and replace the CIoU loss function with the EIoU loss function to improve the model's recognition accuracy and generalization ability of wheat spike blight. Adapt to detection under different lighting conditions.

Benefits of technology

This method achieves rapid and accurate identification of wheat head blight, improves model recognition accuracy and real-time detection capabilities, provides technical support for monitoring wheat head blight, and reduces the amount of calculation and equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736376A_ABST
    Figure CN118736376A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of crop disease detection, and provides a wheat scab detection method and system based on improved YOLOv8s. According to the method, a feature extraction module, a feature fusion module and a loss function in a YOLOv8s network structure are improved to obtain an improved OCE-YOLOv8s model, obtained wheat scab images under different illumination conditions are preprocessed to obtain a training data set, the improved OCE-YOLOv8s model is trained to improve the extraction of target area features by the model, and the accuracy of target area feature extraction is improved. Fusion of low-level features and high-level semantic information is realized, so that the model can extract richer feature information; the improved OCE-YOLOv8s model is used for detecting the wheat scab, the model recognition precision is improved, the wheat scab is quickly and accurately recognized, and support is provided for wheat scab spikelet detection counting and scab monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of crop disease detection, and in particular to a wheat spikelet fusarium wilt detection method and system based on improved YOLOv8s. Background Art

[0002] Wheat fusarium head blight is one of the most widespread and destructive diseases in global wheat production caused by Fusarium solani. In severe cases, it can reduce yields by 80%-90%, or even cause no harvest. The metabolites produced by fusarium head blight are all toxins, which can seriously harm the health of humans and animals if they are accidentally ingested. Therefore, timely and accurate monitoring of the occurrence and development of fusarium head blight during wheat growth and then taking effective prevention and control measures are of great significance to ensure high-quality, efficient and safe wheat production.

[0003] At present, the main methods for identifying wheat spikelet fusarium include manual field visual surveys and hyperspectral imaging. The method based on manual visual surveys is time-consuming and labor-intensive, and is not conducive to large-scale investigation and prevention. Hyperspectral imaging technology is widely used in the field of crop disease detection due to its strong anti-interference ability and fast detection speed. Combined with spectral analysis and image processing technology, it can accurately identify wheat fusarium kernels. However, hyperspectral imagers are expensive and bulky, making it difficult to achieve real-time detection in the field.

[0004] Therefore, there is an urgent need to provide a technical solution to the above-mentioned deficiencies in the prior art. Summary of the invention

[0005] The purpose of this application is to provide a wheat spikelet fusarium detection method and system based on improved YOLOv8s to solve or alleviate the problems existing in the above-mentioned prior art.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] The present application provides a method for detecting wheat spikelet fusarium based on improved YOLOv8s, comprising: step S101, improving a feature extraction module, a feature fusion module and a loss function in a YOLOv8s network structure to obtain an improved OCE-YOLOv8s model; step S102, preprocessing wheat spikelet fusarium images acquired under different lighting conditions to obtain a training data set; step S103, training the improved OCE-YOLOv8s model according to the training data set to detect wheat spikelet fusarium lesions.

[0008] Preferably, in step S101, the standard convolution module of the backbone network in the YOLOv8s network structure is replaced with a full-dimensional dynamic convolution module; the improved Efficient RepGFPN feature fusion network is adopted in the Neck network of the YOLOv8s network structure; and the CIoU loss function in the YOLOv8s network structure is replaced with an EIoU loss function.

[0009] Preferably, the full-dimensional dynamic convolution module includes: a global average pooling layer, a fully connected layer, a rectified linear unit and four head branches; wherein the global average pooling layer is used to compress the input features into a feature vector of length cin; the fully connected layer is used to map the compressed feature vector to a low-dimensional space at a compression rate of 1 / 16; the rectified linear unit is used to set the negative values ​​in the feature vector mapped to the low-dimensional space to zero; each of the head branches includes a fully connected layer and an activation function to generate four different dimensional attention mechanisms of the full-dimensional dynamic convolution module.

[0010] Preferably, in the improved Efficient RepGFPN feature fusion network, the backbone network is connected via a 1×1 convolution layer, and a Fusion block network is connected after the 1×1 convolution layer.

[0011] Preferably, in the Fusion block network, after the input layer is Concat-operated, a 1×1 convolution layer and a feature aggregation module are respectively connected, and the 1×1 convolution layer and the feature aggregation module are output simultaneously, and the output results are Concat-operated; wherein the feature aggregation module is composed of multiple Rep 3×3 convolutions and 3×3 convolutions.

[0012] Preferably, in step S102, the wheat spikelet fusarium scab images acquired under different lighting conditions are classified and labeled, and the wheat spikelet fusarium scab images are divided into healthy spikelets HS and diseased spikelets DS; the annotation information of the labeled wheat spikelet fusarium scab images is converted into TXT format to obtain the training data set; wherein the training data set contains the healthy spikelets HS and the diseased spikelets DS.

[0013] Preferably, in step S103, the training of the improved OCE-YOLOv8s model includes: evaluating the prediction results of the improved OCE-YOLOv8s model during the training process based on preset evaluation indicators; wherein the preset evaluation indicators include: recognition accuracy, recall rate, average detection accuracy and average accuracy mean.

[0014] The embodiment of the present application also provides a wheat spikelet fusarium detection system based on improved YOLOv8s, including: a model improvement unit, configured to improve the feature extraction module, feature fusion module and loss function in the YOLOv8s network structure to obtain an improved OCE-YOLOv8s model; a data set unit, configured to preprocess the acquired wheat spikelet fusarium images under different lighting conditions to obtain a training data set; a detection unit, configured to train the improved OCE-YOLOv8s model according to the training data set to detect wheat spikelet fusarium lesions.

[0015] Beneficial effects:

[0016] In the wheat spikelet fusarium detection method based on improved YOLOv8s provided in the embodiment of the present application, the feature extraction module, feature fusion module and loss function in the YOLOv8s network structure are improved to obtain an improved OCE-YOLOv8s model, and the wheat spikelet fusarium images acquired under different lighting conditions are preprocessed to obtain a training data set, and the improved OCE-YOLOv8s model is trained to improve the model's extraction of target area features, realize the fusion of low-level features and high-level semantic information, and enable the model to extract richer feature information; then, the trained OCE-YOLOv8s model is used to detect wheat spikelet fusarium lesions, improve the model recognition accuracy, and realize rapid and accurate recognition of wheat spikelet fusarium lesions, providing support for wheat fusarium lesion spikelet detection counting and fusarium lesion monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. Among them:

[0018] Figure 1 A schematic diagram of a process for detecting wheat spikelet fusarium based on improved YOLOv8s according to some embodiments of the present application;

[0019] Figure 2 A schematic diagram of the structure of an improved OCE-YOLOv8s model provided according to some embodiments of the present application;

[0020] Figure 3 A schematic diagram of the structure of a full-dimensional dynamic convolution module provided according to some embodiments of the present application;

[0021] Figure 4 A schematic diagram of the convolutional attention operation process of ODConv along the spatial dimension according to some embodiments of the present application;

[0022] Figure 5 A schematic diagram of the convolutional attention operation process of ODConv along the input channel dimension provided according to some embodiments of the present application;

[0023] Figure 6 A schematic diagram of a convolutional attention operation process of ODConv along the output channel dimension provided according to some embodiments of the present application;

[0024] Figure 7 A schematic diagram of a convolution attention operation process of ODConv along the convolution kernel space dimension according to some embodiments of the present application;

[0025] Figure 8 A schematic diagram of the network structure of Efficient RepGFPN provided according to some embodiments of the present application;

[0026] Fig. 9 A schematic diagram of the network structure of C-Efficient RepGFPN provided according to some embodiments of the present application;

[0027] Fig.10 A schematic diagram of a Fusion block network structure provided according to some embodiments of the present application;

[0028] Fig.11 This is a schematic diagram of the structure of a wheat spikelet fusarium detection system based on improved YOLOv8s according to some embodiments of the present application. DETAILED DESCRIPTION

[0029] The present application will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. Each example is provided by way of explanation of the present application and does not limit the present application. In fact, it will be clear to those skilled in the art that modifications and variations may be made in the present application without departing from the scope or spirit of the present application. For example, a feature shown or described as a part of an embodiment may be used in another embodiment to produce yet another embodiment. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the embodiments of the present invention should belong to the scope of protection of the embodiments of the present invention.

[0030] At present, the main methods for identifying wheat spikelet ergot disease include manual field visual survey and hyperspectral imaging. The manual field visual survey method is time-consuming and labor-intensive, and is not conducive to large-scale investigation and prevention; hyperspectral imagers are expensive and bulky, making it difficult to achieve real-time detection in the field.

[0031] Based on this, this application takes wheat spikelet fusarium under different lighting conditions in complex field environments as the research object, and proposes a wheat spikelet fusarium detection method based on improved YOLOv8s. The full-dimensional dynamic convolution is used to replace the standard convolution in the backbone network to enhance the model's feature extraction ability for wheat spikelets. The improved Efficient RepGFPN network is used to fuse multi-scale features to enhance the generalization ability of the model, and the CIoU loss function is replaced by EIoU to improve the model recognition accuracy, providing technical support for the detection and counting of wheat fusarium fusarium disease spikelets and the monitoring of fusarium fusarium disease.

[0032] like Figure 1 As shown, the wheat spikelet fusarium detection method based on improved YOLOv8s includes:

[0033] Step S101, improving the feature extraction module, feature fusion module and loss function in the YOLOv8s network structure to obtain an improved OCE-YOLOv8s model.

[0034] In order to improve the recognition effect of wheat spikelet fusarium under field environment, this application makes improvements on the basis of YOLOv8s model. First, the standard convolution of the backbone network in the YOLOv8s network structure is replaced with full-dimensional dynamic convolution (ODConv), which reduces the model calculation amount and effectively improves the recognition accuracy of the model; secondly, the improved Efficient RepGFPN feature fusion network (i.e., C-Efficient RepGFPN) is adopted in the Neck network of the YOLOv8s network structure to improve the feature fusion ability of the model, thereby improving the recognition accuracy of the model for wheat spikelet fusarium; finally, the CIoU loss function in the YOLOv8s network structure is replaced with the EIoU loss function to further improve the convergence speed and accuracy of the model, and finally an improved OCE-YOLOv8s model is obtained, as shown in FIG. Figure 2 shown.

[0035] For wheat spikelet scab recognition under complex field background, the key to improving model accuracy is to suppress the interference of cluttered background information and make the model focus on the extraction of wheat spikelet features. Figure 3As shown in the figure, the full-tail dynamic convolution module (ODConv) includes: a global average pooling layer, a fully connected layer (FC), a rectified linear unit (ReLU) and four head branches; wherein the global average pooling layer is used to compress the input features into a feature vector of length cin, the fully connected layer is used to map the compressed feature vector to a low-dimensional space at a compression rate of 1 / 16, and the rectified linear unit is used to set the negative values ​​in the feature vector mapped to the low-dimensional space to zero, and each head branch includes a fully connected layer and an activation function (Softmax function or Sigmoid function) to generate four different dimensional attention mechanisms of the full-tail dynamic convolution module.

[0036] In the attention mechanism of four different dimensions, convolutional attention operations are performed along the spatial dimension, input channel dimension, output channel dimension, and convolution kernel spatial dimension. In the convolutional attention operation process of ODConv along the spatial dimension, such as Figure 4 As shown, for the i-th convolution kernel W i , which is composed of the spatial dimension and the i-th convolution kernel W i The corresponding scaling factor α si For each convolution filter W in the spatial dimension i m Different attention weights are assigned to make the model pay more attention to the spatial position information of the input image and capture the spatial distribution and morphological characteristics of the target features in the wheat scab image in the spatial dimension. Where i∈n, n is a positive integer, indicating the number of convolution kernels, and the size of each convolution kernel is k×k.

[0037] During the convolutional attention operation of ODConv along the input channel dimension, such as Figure 5 As shown, for the i-th convolution kernel W i , by input channel c in The convolution kernel W on i The corresponding scaling factor α ci For each input channel c in The convolution filter W i m Assigning different attention weights allows the model to focus more on the feature relationship between different channels, helps the model to better extract and combine information from different channels, and makes the model pay more attention to specific color channels or texture features in wheat spikelet fusarium images, thereby adapting to wheat fusarium data under different lighting conditions.

[0038] During the convolutional attention operation of ODConv along the output channel dimension, such as Figure 6 As shown, for the i-th convolution kernel W i, by the output channel c out The convolution kernel W on i The corresponding scaling factor α fi For each output channel c out The convolution filters are assigned different attention weights so that the model can out More targeted feature selection can be performed between the spikelets and the diseased spikelets to respond to different symptoms caused by changes in light conditions, thereby enhancing the model's ability to extract features of different categories of healthy spikelets and diseased spikelets.

[0039] During the convolution attention operation of ODConv along the convolution kernel space dimension, such as Figure 7 As shown, the scaling factor α in the convolution kernel space dimension wi Assigning different attention weights to the entire convolution kernel allows the model to adjust the convolution operation more globally and adapt to ergot lesions of different sizes and shapes, thereby better capturing the overall characteristics of the input data.

[0040] The four attention mechanisms complement each other, allowing the model to have different dimensional effects on each input data in different dimensions, thereby better capturing the key features and contextual information of wheat spikelets and improving the performance and generalization ability of the model. Therefore, by replacing the standard convolution in the backbone network with the full-tail dynamic convolution (ODConv), the model can fully extract the characteristics of wheat spikelet fusarium and improve the detection accuracy.

[0041] The traditional feature pyramid network (FPN) fuses multi-scale features through a top-down path, which has a high computational cost. In the Efficient RepGFPN feature fusion, for example Figure 8 As shown in the figure, the setting of different channel dimensions for feature maps of different scales is used to control the computational cost, which can effectively capture the features of different scales in the wheat fusarium image. At the same time, under the premise of ensuring real-time detection, the additional upsampling operation in Queen-Fusion is deleted, which can more effectively perform feature fusion processing. In feature fusion, the original feature fusion based on 3×3 convolution is replaced by the cross-stage partial network (CSPNet), which can effectively exchange high-level semantic information and low-level spatial information, and improve the network's recognition accuracy for wheat fusarium. Finally, the cross-stage partial network (CSPNet) with the connection upgrade of the re-parameterization mechanism and the efficient layer aggregation network (ELAN) is introduced to further improve the performance and accuracy of the network, so that the model can detect wheat fusarium more accurately.

[0042] In order to better integrate the feature layer output by the backbone network with the Efficient RepGFPN network and improve the model's ability to detect target features, in this application, Fig. 9 As shown, before the feature map output by the backbone network is sent to the Efficient RepGFPN, a 1×1 convolution layer is added to connect the backbone network, and after the 1×1 convolution layer, a fusion block network is connected. In this application, the improved Efficient RepGFPN feature fusion network is defined as C-Efficient RepGFPN.

[0043] The added 1×1 convolutional layer introduces more flexibility and nonlinear expression capabilities, which improves the network's recognition of wheat spikelet fusarium characteristics and thus improves the model's recognition accuracy. Fig.10 As shown in the figure, after the input layer is concat-operated, a 1×1 convolution layer and a feature aggregation module are connected respectively, and the 1×1 convolution layer and the feature aggregation module are output simultaneously, and the output result is concat-operated; wherein the feature aggregation module is composed of multiple Rep 3×3 convolutions and 3×3 convolutions. That is to say, the input feature map is first concat-operated, and then the channel high dimension is reduced through the 1×1 convolution layer respectively, and the feature transformation is performed through multiple Rep 3×3 convolutions and 3×3 convolutions, and multiple layers are output simultaneously, and finally the final output is obtained through the concat operation.

[0044] The original loss function of YOLOv8 is CIoU Loss. CIoU Loss can only reflect the difference in the aspect ratio of the target box, not the real difference between the length and width and its confidence, thus preventing the optimization similarity of the model. In order to improve the accuracy of the model, the EIoU loss function is used to replace the CIoU loss function in this application. Among them, the EIoU loss function has three parts added: the intersection-over-union loss IoU loss value L IoU , the distance loss value L between the center point of the predicted box and the real box dis , height and width loss value L asp ,Specifically, the EIoU loss function is expressed as:

[0045]

[0046] In the formula, b, b gt Represent the center points of the predicted box and the real box respectively, ρ 2 represents the Euclidean distance of the center point of the corresponding calculation element, c represents the shortest diagonal length of the minimum bounding box, w,h,w gt ,h gt Represents the width and height of the predicted box and the real box respectively, C w, C h Respectively represent the width and height of the minimum bounding box.

[0047] By replacing the CIoU loss function in the YOLOv8s network structure with the EIoU loss function, the overlap between the detection box and the true target can be better measured. The EIoU loss function can better capture the detailed information of small-scale targets and has better detection effects on small-scale targets such as wheat fusarium.

[0048] Step S102: pre-process the acquired wheat spikelet fusarium disease images under different lighting conditions to obtain a training data set.

[0049] In this application, first, the wheat spikelet fusarium images acquired under different lighting conditions are screened, and after the redundant and blurred images are extracted, the remaining images are classified and labeled. When labeling, the object category is defined, the healthy spikelet in the image is defined as HS, and the diseased spikelet in the image is defined as DS, and then the labeling tool Labelimg is used for labeling, the target is selected using an external rectangular frame, and the appropriate label is selected for labeling.

[0050] After the labeling is completed, Labelimg will save the labeling information of each image as an XML file. Therefore, the labeling information of the labeled wheat spikelet fusarium images is converted into TXT format, that is, the XML file is converted into a TXT file to obtain the training data set. The training data set is randomly divided into a training set, a validation set, and a test set in a ratio of 8:1:1. Among them, the training set is used to train the target detection model (improved OCE-YOLOv8s model), the validation set is used to evaluate the performance of the target detection model (improved OCE-YOLOv8s model), and the test set is used to test the target detection model (improved OCE-YOLOv8s model) for counting spikelets infected with fusarium fusarium, and is also used to predict the severity of wheat fusarium fusarium.

[0051] Step S103: According to the training data set, the improved OCE-YOLOv8s model is trained to detect gibberella lesions on wheat spikelets.

[0052] After the target detection model (improved OCE-YOLOv8s model) is trained using a training data set containing healthy spikelets HS and diseased spikelets DS, the prediction results of the improved OCE-YOLOv8s model during the training process are evaluated based on preset evaluation indicators; the preset evaluation indicators include: recognition accuracy P (Precision), recall rate R (Recall), average detection accuracy AP (Average precision) and mean average precision mAP (mean Average Precision).

[0053] Specifically, according to the formula:

[0054]

[0055] The recognition accuracy P, recall rate R, average detection accuracy AP and mean average accuracy mAP of the improved OCE-YOLOv8s model were determined. In the formula, TP represents the number of detections that are actually diseased spikelets (DS) and detected as diseased spikelets (DS) by the target detection model (improved OCE-YOLOv8s model), FN represents the number of detections that are actually diseased spikelets (DS) but detected as other categories by the target detection model (improved OCE-YOLOv8s model); FP represents the number of detections that are actually healthy spikelets (HS) but detected as diseased spikelets (DS) by the target detection model (improved OCE-YOLOv8s model); n is the number of wheat spikelet categories in the corresponding dataset.

[0056] In a specific example, the improved OCE-YOLOv8s model proposed in this application is compared with the target detection models Faster RCNN, CenterNet, YOLOv5s, YOLOv6s, and YOLOv7 in the prior art. The detection performance is shown in Table 1:

[0057] Table 1 Comparison of detection results of different target detection models

[0058]

[0059]

[0060] As shown in Table 1, the improved OCE-YOLOv8s model has the highest mAP, reaching 98.3%, which is 36, 25.7, 2.1, 2.6, and 3.9 percentage points higher than Faster RCNN, CenterNet, YOLOv5s, YOLOv6s, and YOLOv7 algorithms, respectively. The mAP of FasterRCNN and CenterNet are both low, and the amount of calculation is large; the mAP of the YOLOv5s model is not much different from that of the YOLOv8s model, but its precision and recall are relatively low; the mAP of the YOLOv6s and YOLOv7 models is relatively low, and the amount of calculation is large, consuming computing power, and is not suitable for low-computing devices such as mobile terminals; OCE-YOLOv8s has the highest mAP, precision, and recall.

[0061] Compared with the traditional YOLOv8s, the performance comparison results of the improved OCE-YOLOv8s model of this application are shown in Table 2:

[0062] Table 2 Performance comparison before and after model improvement

[0063]

[0064] Compared with YOLOv8s, the precision, recall and mAP of the improved OCE-YOLOv8s model are higher than those of the original YOLOv8s network model, and the computational complexity is reduced compared with the original model. This shows that the OCE-YOLOv8s model can reduce the computational complexity while improving the recognition accuracy of the model, which can meet the requirements of real-time detection. At the same time, it has stronger deployment capabilities and can provide better support for wheat fusarium wilt spikelet detection in field environments.

[0065] In the present application, the feature extraction module, feature fusion module and loss function in the YOLOv8s network structure are improved to obtain an improved OCE-YOLOv8s model, and the wheat spikelet fusarium disease images acquired under different lighting conditions are preprocessed to obtain a training data set, and the improved OCE-YOLOv8s model is trained to improve the model's extraction of target area features, realize the fusion of low-level features and high-level semantic information, and enable the model to extract richer feature information; then, the trained OCE-YOLOv8s model is used to detect wheat spikelet fusarium lesions, improve the model recognition accuracy, and realize rapid and accurate recognition of wheat spikelet fusarium disease, providing support for wheat fusarium disease spikelet detection counting and fusarium disease monitoring.

[0066] like Fig.11 As shown, the present application also provides a wheat spikelet fusarium detection system based on improved YOLOv8s, comprising:

[0067] The model improvement unit 1101 is configured to improve the feature extraction module, feature fusion module and loss function in the YOLOv8s network structure to obtain an improved OCE-YOLOv8s model;

[0068] The data set unit 1102 is configured to pre-process the acquired wheat spikelet scab images under different illumination conditions to obtain a training data set;

[0069] The detection unit 1103 is configured to train the improved OCE-YOLOv8s model according to the training data set to detect gibberellic lesions on wheat spikelets.

[0070] The wheat spikelet fusarium wilt detection system based on improved YOLOv8s provided in the embodiments of the present application can implement the steps and processes of the wheat spikelet fusarium wilt detection method based on improved YOLOv8s in any of the above embodiments, and achieve the same technical effects, which will not be repeated here one by one.

[0071] In the description of the present invention, the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0072] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A wheat spikelet fusarium scaly detection method based on improved YOLOv8s, characterized in that: include: Step S101, improving the feature extraction module, feature fusion module and loss function in the YOLOv8s network structure to obtain an improved OCE-YOLOv8s model; Step S102, preprocessing the acquired wheat spikelet fusarium disease images under different illumination conditions to obtain a training data set; Step S103: training the improved OCE-YOLOv8s model according to the training data set to detect gibberella lesions on wheat spikelets.

2. The wheat spikelet fusarium scab detection method based on improved YOLOv8s according to claim 1, characterized in that, In step S101, The standard convolution module of the backbone network in the YOLOv8s network structure is replaced with a full-dimensional dynamic convolution module; An improved Efficient RepGFPN feature fusion network is adopted in the Neck network of the YOLOv8s network structure; The CIoU loss function in the YOLOv8s network structure is replaced by the EIoU loss function.

3. The wheat spikelet fusarium scaly detection method based on improved YOLOv8s according to claim 2, characterized in that, The full-dimensional dynamic convolution module includes: a global average pooling layer, a fully connected layer, a rectified linear unit and four head branches; The global average pooling layer is used to compress the input features into a feature vector of length cin; The fully connected layer is used to map the compressed feature vector to a low-dimensional space at a compression rate of 1 / 16; The rectified linear unit is used to set negative values ​​in the feature vector mapped to the low-dimensional space to zero; Each of the head branches includes a fully connected layer and an activation function to generate four different dimensional attention mechanisms of the full-dimensional dynamic convolution module.

4. The wheat spikelet fusarium scaly detection method based on improved YOLOv8s according to claim 2, characterized in that, In the improved Efficient RepGFPN feature fusion network, The backbone network is connected through a 1×1 convolution layer, and a fusion block network is connected after the 1×1 convolution layer.

5. The wheat spikelet fusarium scaly detection method based on improved YOLOv8s according to claim 4, characterized in that, In the Fusion block network, After performing the Concat operation on the input layer, a 1×1 convolution layer and a feature aggregation module are respectively connected, and the 1×1 convolution layer and the feature aggregation module are output simultaneously, and the output results are Concat operated; Among them, the feature aggregation module is composed of multiple Rep 3×3 convolutions and 3×3 convolutions.

6. The wheat spikelet fusarium scab detection method based on improved YOLOv8s according to claim 1, characterized in that, In step S102, Classify and annotate the wheat spikelet fusarium scab images acquired under different lighting conditions, and divide the wheat spikelet fusarium scab images into healthy spikelets HS and diseased spikelets DS; The annotation information of the labeled wheat spikelet fusarium image is converted into TXT format to obtain the training data set; wherein the training data set includes the healthy spikelet HS and the diseased spikelet DS.

7. The wheat spikelet scab detection method based on improved YOLOv8s according to claim 1, characterized in that, In step S103, the training of the improved OCE-YOLOv8s model includes: Based on preset evaluation indicators, the prediction results of the improved OCE-YOLOv8s model training process are evaluated; wherein the preset evaluation indicators include: recognition accuracy, recall rate, average detection accuracy and average accuracy mean.

8. A wheat spikelet fusarium detection system based on improved YOLOv8s, characterized in that: include: A model improvement unit, configured to improve a feature extraction module, a feature fusion module, and a loss function in a YOLOv8s network structure to obtain an improved OCE-YOLOv8s model; A data set unit is configured to preprocess the acquired wheat spikelet scab images under different illumination conditions to obtain a training data set; The detection unit is configured to train the improved OCE-YOLOv8s model according to the training data set to detect fusarium lesions on wheat spikelets.

Citation Information

Cited By

  • Plant disease detection method based on deep learning

    CN119516282A