Weed classification detection method and system based on YOLOv8 improved algorithm
By introducing the C2f-FADC module and DASI module into the YOLOv8 algorithm for feature fusion, combined with task alignment detection heads, the problem of low efficiency in high-frequency feature capture and information transmission of traditional convolutional networks is solved, and the accuracy of weed classification and detection is improved. and performance.
Patent Information
- Application Number
- CN202411057119.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Traditional convolutional networks have limitations in capturing high-frequency feature information. The high-frequency feature information capture ability of the dilated convolutional network decreases as the expansion rate increases. The feature map details are lost. The information transmission efficiency of the feature pyramid network is low, resulting in detection. and classification accuracy is limited.
The C2f-FADC module is used to replace the traditional Bottleneck module to enhance the receptive field of the convolution. It is combined with the DASI module in the Neck network to perform adaptive fusion of low-resolution high-semantic information and high-resolution low-semantic information, and extracts interactions through task alignment detection heads. Characteristics for weed classification.
It improves the classification and detection accuracy of weeds, enhances the model's accuracy of small target detection, reduces bandwidth reduction, and improves feature extraction capabilities.
Smart Images

Figure CN118762286A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to a weed classification detection method and system based on an improved YOLOv8 algorithm. Background Art
[0002] With the development of science and technology, various object detection algorithms have emerged. In the field of computer vision, convolutional neural networks (CNNs) have become the main tool for image processing and feature extraction. However, with the increase in the number of convolutional layers and the deepening of the network depth, traditional convolutional networks have certain limitations in capturing high-frequency feature information. To this end, dilated convolutional networks, multi-scale feature fusion networks, detection heads and other methods have been continuously proposed to capture more and more accurate high-frequency feature information. The technical solution of dilated convolution has achieved good results in some applications. Dilated convolution expands the receptive field by inserting holes in the convolution kernel, thereby obtaining a larger feature map without increasing the number of parameters; Yolov8 uses the feature pyramid network (FPN) as the feature fusion network to fuse features of different scales through top-down paths and lateral connections; the detection head uses a parallel structure for feature capture. However, for the dilated convolutional network, as the dilation rate increases, the ability to capture high-frequency feature information gradually decreases, resulting in loss of detail in the feature map, and the fixed dilation rate cannot adapt to the needs of different spectral features; although the top-down path and lateral connection of the feature pyramid network can transfer high-level semantic information to the low-level feature map, the information transmission efficiency is low, resulting in the loss of some feature information. FPN fails to fully consider the global context information in the feature fusion process, which affects the expression ability of the feature map, thereby limiting the performance of detection and classification. The feature fusion method of FPN is relatively simple, and fails to fully explore and utilize the complementary information between features of different scales, affecting the final detection accuracy; the traditional detection head adopts a parallel structure, which cannot fully utilize the context information of the feature map, the model has a large number of parameters and low efficiency, resulting in limited detection and classification accuracy.
[0003] Therefore, when performing feature extraction or processing, the traditional target detection method has low feature capture accuracy and low efficiency, which often affects the accuracy of target detection. Summary of the invention
[0004] Based on this, in order to solve the above technical problems, a weed classification detection method and system based on the improved YOLOv8 algorithm are provided, which can improve the accuracy of weed classification detection.
[0005] A weed classification detection method based on an improved YOLOv8 algorithm, the method comprising:
[0006] Obtain an image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, perform image preprocessing through the YOLOv8 improved algorithm model, and obtain a processed image data set;
[0007] Inputting the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extracting image feature information of different scales through the C2f-FADC module in the backbone network;
[0008] The image feature information of different scales is input into the Neck network in the YOLOv8 improved algorithm model, and the DASI module in the Neck network fuses low-resolution high-semantic information and high-resolution low-semantic information based on the image feature information of different scales to generate multi-scale semantic feature information;
[0009] The multi-scale semantic feature information is transmitted to the task alignment detection head in the YOLOv8 improved algorithm model, different task interaction features are extracted by the task alignment detection head, and classification features are calculated based on the interaction features. The classification features are input into the classification convolution to extract weed features for classification, so as to obtain a weed classification result.
[0010] In one embodiment, performing image preprocessing by using the YOLOv8 improved algorithm model to obtain a processed image data set includes:
[0011] Scaling the image to be detected through the input layer in the YOLOv8 improved algorithm model to obtain the scaled image to be detected;
[0012] The input layer performs a data enhancement operation on the image to be detected after the scaling process to obtain a processed image data set.
[0013] In one embodiment, the C2f-FADC module includes an adaptive dilation rate AdaDR module, an adaptive kernel AdaKern module, and a frequency selection FreqSelect module; the extraction of image feature information of different scales through the C2f-FADC module in the backbone network includes:
[0014] The adaptive dilation rate AdaDR module dynamically adjusts the convolution kernel dilation rate in a spatially varying manner, calculates high-frequency power, and assigns different dilation rates to each pixel in the processed image data based on the high-frequency power;
[0015] The adaptive kernel AdaKern module adaptively adjusts the convolution kernel, decomposes the weight parameters of the convolution kernel into high and low frequency bands according to the expansion rate, and performs frequency adjustment on the high and low frequency bands based on dynamic weighting;
[0016] The frequency selection FreqSelect module balances the high and low components of the frequency-adjusted feature map.
[0017] In one embodiment, the DASI module in the Neck network performs low-resolution high-semantic information fusion and high-resolution low-semantic information fusion based on the image feature information of different scales, including:
[0018] The DASI module divides the image feature information of different scales into various convolution groups through group convolution operations, each of which contains low-dimensional features, high-dimensional features, and current features;
[0019] Perform activation function calculation on the current features in each of the convolution groups through the DASI module, and merge features according to the low-dimensional features and the high-dimensional features;
[0020] The merged features in each of the convolution groups are fused and output.
[0021] In one embodiment, the method further comprises:
[0022] Aligning channels of the feature maps based on the image feature information of different scales by the DASI module;
[0023] The aligned channel dimensions are divided by group convolution operation to obtain low-dimensional features, high-dimensional features, and current features after group convolution;
[0024] According to the current features after the group convolution, the low-dimensional features and high-dimensional features after the group convolution are fused to obtain the fused features;
[0025] In one embodiment, extracting different task interaction features through the task alignment detection head and calculating classification features based on the interaction features include:
[0026] The task alignment detection head learns task interaction features from multiple convolutional layers through a feature extractor;
[0027] The positioning branch in the task alignment detection head uses the deformable convolution and the interactive feature to generate an offset and a mask of the deformable convolution, and the classification branch uses the interactive feature to perform dynamic feature selection to obtain a classification feature;
[0028] The classification features are input into the classification convolution to extract the weed features for classification.
[0029] In one embodiment, the method further comprises:
[0030] Input the interactive features into the positioning convolution, output the positioning features, and extract the weed position information;
[0031] The positioning features are scaled by the scale layer to detect the actual weed area.
[0032] In one embodiment, after extracting different task features through the task alignment detection head, the method further includes:
[0033] Different task features are extracted through the task alignment detection head, and different task features are processed through shared convolution and activation functions in the task alignment detection head to calculate cross-layer task interaction features;
[0034] Dependencies are captured based on the cross-layer task interaction features to assist weed classification.
[0035] A weed classification detection system based on an improved YOLOv8 algorithm, the system comprising:
[0036] An image processing module is used to obtain an image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, and perform image preprocessing through the YOLOv8 improved algorithm model to obtain a processed image data set;
[0037] A feature information extraction module is used to input the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extract image feature information of different scales through the C2f-FADC module in the backbone network;
[0038] An information fusion module is used to input the image feature information of different scales into the Neck network in the YOLOv8 improved algorithm model, and the DASI module in the Neck network fuses low-resolution high-semantic information and high-resolution low-semantic information based on the image feature information of different scales to generate multi-scale semantic feature information;
[0039] The weed classification detection module is used to transmit the multi-scale semantic feature information to the task alignment detection head in the YOLOv8 improved algorithm model, extract different task interaction features through the task alignment detection head, and calculate the classification features based on the interaction features, and input the classification features into the classification convolution to extract the weed features for classification, so as to obtain the weed classification results.
[0040] The above-mentioned weed classification detection method and system based on the improved YOLOv8 algorithm improves the YOLOv8 algorithm, uses the FADC module to replace the Bottleneck module in the C2f module, proposes the C2f-FADC module, and integrates the module into the backbone network, which can improve the receptive field of the convolution, so that it can better capture multi-dimensional feature information while reducing the reduction of bandwidth, so that the model can better capture high-frequency feature components; the DASI module in the Neck network can enhance the accuracy of small target detection through adaptive selection and fine fusion of high and low dimensional features, further improve the performance of the model for weed detection, and thus improve the accuracy of weed classification detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is an application environment diagram of a weed classification detection method based on an improved YOLOv8 algorithm in one embodiment;
[0042] Figure 2 1 is a flow chart of a weed classification detection method based on the improved YOLOv8 algorithm in one embodiment;
[0043] Figure 3 A schematic diagram of the structure of an improved YOLOv8 algorithm in one embodiment;
[0044] Figure 4 It is a schematic diagram of the structure of FADC frequency adaptive convolution;
[0045] Figure 5 It is a schematic diagram comparing the C2f algorithm structure and the C2f-FADC algorithm structure;
[0046] Figure 6 It is a schematic diagram of the global fused diffusion pyramid network, i.e., GFDPN structure;
[0047] Figure 7 It is a schematic diagram of the structure of the DASI module;
[0048] Figure 8 This is a schematic diagram of the traditional algorithm detection head structure;
[0049] Fig. 9 This is a schematic diagram of the structure of the improved task alignment detection head ATDDH;
[0050] Fig.10 Schematic diagram of the structure of the task alignment predictor;
[0051] Fig.11 This is a partial structural diagram of the GFF-YOLOV8 algorithm;
[0052] Fig.12 Schematic diagram of some images of various weeds and negative samples;
[0053] Fig.13 This is a schematic diagram of the PR curve of the GFF-YOLOv8 model;
[0054] Fig.14 This is a diagram of the confusion matrix of the GFF-YOLOv8 algorithm model;
[0055] Fig.15 This is a schematic diagram for comparing the YOLO series models;
[0056] Fig.16 , 17 Schematic diagram of the comparative experiment between GFF-YOLOv8 and the baseline model YOLOv8 during training;
[0057] Fig.18 , 19 Visualization results of weed classification detection based on the weed classification detection method of the improved YOLOv8 algorithm;
[0058] Fig. 20 1 is a structural block diagram of a weed classification and detection system based on an improved YOLOv8 algorithm in one embodiment;
[0059] Fig.21 Schematic diagram of the design process of the GFF-YOLOv8 weed supervision platform;
[0060] Fig. 22 A schematic diagram of the overall process of weed detection and counting for the weed classification detection system based on the improved YOLOv8 algorithm;
[0061] Fig.23 This is a schematic diagram displayed on the GFF-YOLOv8 weed supervision platform interface;
[0062] Fig.24 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0064] The weed classification detection method based on the improved YOLOv8 algorithm provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Figure 1As shown, the application environment includes a computer device 110. The computer device 110 can obtain an image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, perform image preprocessing through the YOLOv8 improved algorithm model, and obtain a processed image data set; the computer device 110 can input the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extract image feature information of different scales through the C2f-FADC module in the backbone network; the computer device 110 can input image feature information of different scales into the Neck network in the YOLOv8 improved algorithm model, and the DASI module in the Neck network performs low-resolution high-semantic information and high-resolution low-semantic information fusion based on image feature information of different scales to generate multi-scale semantic feature information; the computer device 110 can transmit the multi-scale semantic feature information to the task alignment detection head in the YOLOv8 improved algorithm model, extract different task interaction features through the task alignment detection head, and obtain classification features based on the interaction features, and input the classification features into the classification convolution to extract weed features for classification, and obtain weed classification results. The computer device 110 may be, but is not limited to, various personal computers, laptop computers, smart phones, robots, unmanned aerial vehicles, tablet computers, and other devices.
[0065] In one embodiment, Figure 2 As shown, a weed classification detection method based on the improved YOLOv8 algorithm is provided, comprising the following steps:
[0066] Step 202: obtain an image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, perform image preprocessing through the YOLOv8 improved algorithm model, and obtain a processed image data set.
[0067] The image to be detected may contain various types of weeds, which are input into the improved YOLOv8 algorithm model for weed classification detection. The improved YOLOv8 algorithm can be called the GFF-YOLOV8 algorithm, and the model constructed based on the GFF-YOLOV8 algorithm is used for weed classification detection.
[0068] In one embodiment, a weed classification detection method based on the YOLOv8 improved algorithm may further include an image preprocessing process, wherein the specific process includes: scaling the image to be detected through the input layer in the YOLOv8 improved algorithm model to obtain the scaled image to be detected; performing data enhancement operation on the scaled image to be detected through the input layer to obtain a processed image data set.
[0069] Specifically, the input layer of the YOLOv8 improved algorithm model performs a preprocessing operation on the image to adaptively scale the input image and improve data processing efficiency, wherein the default image input size is 640*640. In this embodiment, the input layer of the YOLOv8 improved algorithm model can be used to effectively expand the data set and enhance the robustness of the model through data enhancement operations.
[0070] Step 204: input the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extract image feature information of different scales through the C2f-FADC module in the backbone network.
[0071] Among them, the structure of the improved YOLOv8 algorithm, namely the GFF-YOLOv8 algorithm, is as follows Figure 3 As shown in the figure, the backbone network (backbone, bc) in the YOLOv8 improved algorithm model is composed of conv, C2f-FADC and sppf. Among them, conv (standard convolution module) is composed of Conv2d, BN, and SiLu. C2f-FADC divides the output of the first convolution layer, one part directly skips n Bottlenecks, and the other part is connected to the last part through cross-layer connection after each layer operation to perform concat operation with the previous part. C2f enriches the gradient flow information of the model while ensuring the lightweight of the model through multiple cross-layer connections. Sppf is a reconstruction of SPP. SPPF cascades multiple small pools to make the model computationally smaller while realizing the feature map fusion operation of local features and global features.
[0072] In one embodiment, the C2f-FADC module includes an adaptive dilation rate AdaDR module, an adaptive kernel AdaKern module, and a frequency selection FreqSelect module. A weed classification detection method based on the improved YOLOv8 algorithm provided may also include a process of extracting image feature information, the specific process including: the adaptive dilation rate AdaDR module dynamically adjusts the convolution kernel expansion rate in a spatially varying manner, calculates high-frequency power, and assigns different dilation rates to each pixel in the image data processed based on the high-frequency power; the adaptive kernel AdaKern module adaptively adjusts the convolution kernel, decomposes the weight parameters of the convolution kernel into high and low frequency bands according to the dilation rate, and adjusts the frequency of the high and low frequency bands based on dynamic weighting; the frequency selection FreqSelect module balances the high and low components of the feature map after frequency adjustment.
[0073] Specifically, in this embodiment, the structure of Frequency-Adaptive Dilated Convolution (FADC) is as follows: Figure 4As shown in the figure, FADC mainly consists of three modules, namely Adaptive Dilation Rat (AdaDR), Adaptive Kernel (AdaKern), and Frequency Selection (FreqSelect). The AdaDR module dynamically adjusts the convolution kernel expansion rate in a spatially varying manner to balance the effective bandwidth and receptive field size, and assigns different expansion rates to each pixel. The allocation formula is: Among them, Δp i is the i-th position sampled by the predefined network, X(p+Δp i ) represents the pixel value of the center position p of the receptive field corresponding to the auxiliary feature map, and the pixel offset is Δp i , is predicted by a convolutional layer with parameter θ. Among them, HP represents high frequency power, HP - and HP + Represent the lowest and highest values of high-frequency power, respectively, because for local features, the receptive field of the parameter is It is positively correlated. As the receptive field increases, high-frequency information cannot be captured. Therefore, the lost frequency information is measured by calculating the high-frequency power. That is, when the receptive field position of HP(p) is low, the dilation rate is increased, and when the receptive field position of HP(p) is high, the dilation rate is suppressed to reduce the loss of frequency information.
[0074] The AdaKern module adaptively adjusts the kernel to make full use of the bandwidth. After assigning a dilation rate to each pixel individually according to AdaDR, the weight parameters of the convolution kernel are also decomposed into high and low frequency bands, and the frequency response is adjusted through dynamic weighting. The calculation formula is: in, represents the average weight of the convolution kernel, while the high-frequency components that are easily attenuated are represented by Indicates that λ l and λ h is the dynamic weight of the channel, obtained by global pooling and convolution layer calculation, and dynamically adjusted by context Ratio allows the network to focus on specific frequencies and be more adaptable to complex visual tasks.
[0075] The frequency selection module FreqSelect increases the receptive field of the convolution kernel by balancing the high and low components of the feature map. Specifically, the high and low components are First, the features are decomposed into different frequency bands by using different masks in the Fourier domain: X b =F -1 (M b X F ), where F -1stands for Inverse Fast Fourier Transform, M b is the binary mask used to extract the corresponding frequencies. where φ b ,φ b+1 is a threshold from b+1 predetermined frequencies, and then the frequency selection will dynamically weight the different frequency band components. Among them, X(i,j) is the frequency balance feature obtained after feature selection, A b Represents the feature map of the b-th frequency band.
[0076] Among them, the three strategies of AdaDR, AdaKern and FreqSelect are used to encourage the dilated convolution to dynamically use the dilation rate, thereby suppressing high-frequency attenuation and enhancing spatial adaptability.
[0077] In this embodiment, the C2f-FADC module is proposed by replacing the Bottleneck module in the C2f module with the FADC module, and the module is integrated into the backbone network. The C2f algorithm structure (a) and the C2f-FADC algorithm structure (b) are shown in FIG. Figure 5 As shown. After continuous downsampling in the backbone network, low-frequency language information may be lost. In order to better retain low-frequency components and increase the receptive field, the receptive field of the convolution is improved by integrating the FADC module in C2f, so that it can better capture multi-dimensional feature information while reducing the reduction of bandwidth, so that the model can better capture high-frequency feature components, which is particularly important for the detection of weed targets. Weed targets usually have similar color and texture features, so multi-dimensional feature components are very important for the detection of weed targets. The backbone after forming the C2f-FADC module improves the feature extraction capability of the backbone network and the output feature maps will save more dimensional feature information, effectively improving the network's ability to classify and detect different types of weeds.
[0078] Step 206, inputting the image feature information of different scales into the Neck network in the YOLOv8 improved algorithm model, and the DASI module in the Neck network fuses the low-resolution high-semantic information and the high-resolution low-semantic information based on the image feature information of different scales to generate multi-scale semantic feature information.
[0079] In one embodiment, a weed classification detection method based on the improved YOLOv8 algorithm provided may further include a process of performing feature information fusion, and the specific process includes: the DASI module divides the image feature information of different scales into various convolution groups through a group convolution operation, and each convolution group contains low-dimensional features, high-dimensional features, and current features; the DASI module performs activation function calculation on the current features in each convolution group, and performs feature merging according to the low-dimensional features and the high-dimensional features; and performs a fusion operation on the merged features in each convolution group and outputs them.
[0080] In one embodiment, the computer device can also align the channels of each feature map based on image feature information of different scales through the DASI module; divide the aligned channel dimensions through a group convolution operation to obtain low-dimensional features, high-dimensional features, and current features after the group convolution; according to the current features after the group convolution, the low-dimensional features and high-dimensional features after the group convolution are fused to obtain fused features; the fused features are convolved, batch normalized, and ReLu activated and then output.
[0081] In this embodiment, after multiple downsampling of the input image, the high-dimensional features may lose the information of small targets, while the low-dimensional features cannot fully provide contextual information. In order to solve this problem, DASI fuses feature information of different dimensions through convolution and interpolation operations, and then divides the fused feature map into four groups through group convolution operations. Each group of convolutions will be divided into low-dimensional features li, high-dimensional features hi and current features, and the current features are activated by the Sigmoid function to obtain the α value, which is multiplied by the high and low dimensional features respectively. Specifically, if α>0.5, the model will give priority to fine-grained features, and when α<0.5, the upper and lower dimensional features will be emphasized. After selecting the appropriate high and low dimensional features, the features are merged, and finally the four groups of feature information are fused in the channel dimension. The fused feature information is convolved, normalized and ReLu activated to obtain the final output value. The DASI module can well enhance the accuracy of small target detection through adaptive selection and fine fusion of high and low dimensional features.
[0082] Specifically, after the input image passes through the backbone network, the feature information of different scales will be sent to the neck structure. The main function of the neck structure is feature fusion and feature enhancement. By processing the multi-scale features extracted by the backbone network, a more representative feature map is generated. In order to better fuse multi-scale features and enhance the correlation of features of different dimensions. In this embodiment, a global fusion diffusion pyramid network, namely, GFDPN structure, is proposed. Figure 6As shown in Figure 2, the features of different scales are fused in the channel dimension through the DASI module. Specifically, the DASI module first transforms the input feature map P 3 ,P 4 ,P 5 The channels are aligned, and then the features are divided into four equal parts by group convolution. The low-dimensional features, high-dimensional features and current-dimensional features of the current input are: The features after group convolution are: high-dimensional features Low dimensional features Current Features Then, the high- and low-dimensional features are finely fused according to the current feature channel to improve the saliency of small objects. The formula is: α = sigmoid (u i ),u′ i =αl i +(1-α)h i , where α is u i Through the sigmoid activation function, u′ i It is the result of fusing high and low dimensional feature regions. Merge in the channel dimension to obtain fusion features Finally, the final output is obtained through convolution (Conv), batch normalization (BN) and ReLu activation (δ) Output The calculation formula is
[0083] The structure of the DASI module is as follows Figure 7 As shown in the figure, the channel partitioning mechanism is used to adaptively select appropriate features for fusion according to the size and features of the object. This strategy is particularly suitable for targets of different sizes and similar features such as weeds. The fused multi-dimensional feature information will be subjected to different up and down sampling and diffusion mechanisms. The feature map after the up and down operations will be spliced with the original input information, and fused with the multi-dimensional features after the next DASI through the diffusion mechanism. After the feature information after the first splicing passes through C2f, it will be spliced with the feature information transmitted through the diffusion mechanism after the last sampling and the information after the next DASI module fusion sampling. Through multi-dimensional feature fusion and diffusion, the model can better capture details and global information, allowing the detection layer to obtain richer and more comprehensive feature representations, further improving the model's performance in weed detection.
[0084] Step 208, the multi-scale semantic feature information is transmitted to the task alignment detection head in the YOLOv8 improved algorithm model, different task interaction features are extracted by the task alignment detection head, and classification features are calculated based on the interaction features. The classification features are input into the classification convolution to extract weed features for classification, and the weed classification results are obtained.
[0085] The performance of the detection head plays an important role in object classification and positioning, while the traditional algorithm detection head structure such as Figure 8 As shown in the figure, there is a general lack of interactive capabilities and it will occupy a large number of parameters in the composition of the entire network. In this embodiment, the traditional algorithm detection head is improved, and the structure of the improved task alignment detection head ATDDH is as follows: Fig. 9 As shown in Figure 2, it is possible to strike a good balance between task interaction and task-specific features. Through Task Alignment Learning (TAL), the model can identify the best anchors for the two tasks during training through a sample allocation scheme and task alignment loss.
[0086] In one embodiment, a weed classification detection method based on an improved YOLOv8 algorithm is provided, which may further include a process of extracting interactive features through a task alignment detection head, and the specific process includes: the task alignment detection head learns task interactive features from multiple convolutional layers through a feature extractor; a positioning branch in the task alignment detection head uses deformable convolution and the interactive features to generate an offset and a mask of the deformable convolution, and a classification branch uses the interactive features to perform dynamic feature selection to obtain classification features; and the classification features are input into the classification convolution to extract weed features for classification.
[0087] In one embodiment, the interactive features can also be input into the positioning convolution, the positioning features are output, and the weed location information is extracted; the positioning features are scaled by the scale layer to detect the actual weed area. Specifically, when using shared convolution, in order to deal with the problem of inconsistent target scales detected by each detection head, the Scale layer is used to scale the features.
[0088] In one embodiment, the computer device can also extract different task features through the task alignment detection head, process the different task features through the shared convolution and activation functions in the task alignment detection head, and calculate the cross-layer task interaction features; based on the cross-layer task interaction features, the dependency relationship is captured to assist in weed classification.
[0089] The neck structure extracts the fusion features of the same feature channel Through shared convolution, the fused interactive features are used to generate Mask and Offset to provide to the deformable convolution DCN2, which enhances the task interaction capability. The fused interactive features are used to perform dynamic feature selection after task splitting. The task alignment predictor extracts two different task features respectively, and finally uses variable convolution to implement the positioning task. The weight parameters after dynamic feature selection are multiplied with the results of the other part of the task prediction to obtain the classification feature, which is sent to the classification convolution to extract the weed feature for classification. Finally, in order to deal with the problem of different target scales of each detection head, the scale layer is used to scale the features.
[0090] like Fig. 9 As shown in the figure, TaskDecomposition, Conv_GN, and DCNV2 are task alignment predictors, shared convolutions, and deformable convolutions, respectively. Since the objectives of the object classification task and the localization task are different, the types of features that are focused on are also different. Therefore, a layer attention mechanism is proposed in this embodiment to encourage task decomposition by dynamically calculating the features of these specific tasks at the level. The specific task features for each classification or localization task are calculated separately.
[0091] The structure of the task alignment predictor is as follows Fig.10 As shown in the figure, w is calculated based on the cross-layer task interaction features, which can capture the dependencies between layers, w = σ (Conv 2 (δ(Conv 1 (x inter ))))), where x inter is the interactive feature obtained by global average pooling of the input, Conv 1 and Conv 2 are two 1*1 shared convolutions, δ is the Relu activation function, σ is the sigmoid activation function, and finally according to x task Predict classification or positioning results, X output =conv 2 (δ(conv 1 (X task ))).
[0092] In one embodiment, a weed classification detection method based on an improved YOLOv8 algorithm is provided, specifically comprising: inputting an image to be detected containing various types of weeds into a YOLOv8 improved algorithm model, i.e., performing image preprocessing in the GFF-YOLOV8 algorithm, and sending the processed image data set into the backbone network BC. After BC, the feature information of the input image will be sent into the Neck structure. The Neck network of the GFF-YOLOv8 algorithm combines the characteristics of FPN and HCF-Net. The Neck network generates multi-scale semantically rich features by fusing low-resolution high-semantic information and high-resolution low-semantic information in the BC network and provides them to the detection head to detect the target. The detection head of the GFF-YOLOv8 algorithm is an adaptive task dynamic alignment detection head (ATDDH), which balances task interaction and task-specific functions, combines task alignment learning (TAL), and allows the model to clarify the best anchor points of the two tasks during training through sample allocation schemes and task alignment losses. Next, the same channel features are fused through shared convolution, and then the task alignment predictor is used to extract two different task features respectively. Finally, the variable convolution is used to implement the positioning task. The weight parameters after dynamic feature selection are multiplied with the results of the other part of the task prediction to obtain the classification features, which are sent to the classification convolution to extract the weed features for classification.
[0093] In this embodiment, part of the structure of the GFF-YOLOV8 algorithm is as follows Fig.11 As shown in the figure, upsample represents the upsampling operation, which usually expands the smaller feature map to a larger size through transposed convolution to restore the details of the image; Conv is a convolution operation used to extract the features of the input image; C2f is an improved convolution operation that aims to improve network performance by partially connecting and gradually fusing features at different stages; Concat stands for aggregation, which is an operation that connects multiple feature maps in a specific dimension.
[0094] In one embodiment, an experiment was conducted to verify the performance of the GFF-YOLOV8 algorithm model provided in this application. The specific process includes:
[0095] Using 17,509 labeled weed images, the dataset is divided into three sub-datasets: training (70%), validation (20%), and testing (10%). During training, each class is labeled with an abbreviation: chineeapple is replaced by C_App, Lantana is replaced by Lntna, PricklyAcacia is replaced by P_acacia, parthenium is replaced by P_nium, parkinonia is replaced by P_sonia, Rubber Vine is replaced by R_vine, siam weed is replaced by S_weed, snakeweed is replaced by Snk_wd, and Negatives is replaced by Ngtv. Some images of various weeds and negative samples are shown in the figure. Fig.12 As shown: ChineeApple(Fig8(a)), Lantana(Fig8(b)), Negatives(Fig8(c)), PricklyAcacia(Fig8(d)), Parthenium(Fig8(e)), Parkinsonia(Fig8(f)), RubberVine(Fig8(g)), SiamWeed(Fig8(h)) and SnakeWeed(Fig8(i)). Among them, the composition of 17509 labeled weed images is shown in the following table:
[0096]
[0097] After using the GFF-YOLOV8 algorithm model in this application to classify and detect weeds in each weed image in the dataset, the PR curve of the GFF-YOLOv8 model is as follows: Fig.13 As shown in the figure, the proposed GFF-YOLOV8 algorithm is particularly effective in detecting Parkinsonia and Rubber Vine weeds, reaching AP values of 88.6% and 87.2% respectively, which are further improved compared with the baseline model (Parkinsonia: 85.6% and Rubber Vine: 86.9%). In the comparative experiment, most of the AP values of the GFF-YOLOV8 algorithm model proposed in this application are higher than the baseline model.
[0098] The confusion matrix of the GFF-YOLOv8 algorithm model is as follows Fig.14 As shown, each column represents the predicted category, each row represents the actual category, and the sum of the columns is 1. It can be seen from the figure that the predictions for most targets are very accurate, which shows that the GFF-YOLOv8 algorithm proposed in this application performs well in completing the weed detection task.
[0099] Next, in this embodiment, the algorithm is subjected to an ablation experiment. The experimental results are shown in the following table:
[0100]
[0101] The C2-FADC module was added to the algorithm backbone network, and then the algorithm's Neck was replaced with GFDPN. Finally, the shared convolution and task alignment methods were used in the model's detection head structure to greatly reduce the number of parameters while further improving the model's accuracy. The addition of the C2-FADC module increased the model's mAP by 0.33%. After GFDPN was used to replace the traditional Neck, the algorithm's mAP value increased by 0.9%, and the model parameters were reduced by 7.31% compared to the baseline model. Finally, the ATDDH algorithm was used to replace the model's traditional detection head, which further improved the model's accuracy by 0.13% and reduced the model parameters to 85% of the original.
[0102] In this embodiment, in order to prove the superiority of the GFF-YOLOv8 algorithm model in this application, the GFF-YOLOv8 algorithm model in this application is compared with a series of algorithms such as R-CNN and SSD. The experimental results are shown in the following table:
[0103]
[0104]
[0105] The mAP@0.5 and mAP@0.5-0.95 accuracy of the algorithm proposed in this application are better than other algorithms. The algorithm proposed in this application has higher detection accuracy than the previous series of YOLO algorithms, as shown in the following table:
[0106]
[0107] YOLO series model comparison Fig.15 As shown, the previous series of YOLO algorithms are compared with the algorithm proposed in this application. The algorithm proposed in this application shows a higher mAP, which proves that the algorithm proposed in this application has higher weed recognition accuracy and robust stability.
[0108] like Fig.16 , 17As shown, the comparative experiment of GFF-YOLOv8 (orange curve) and the baseline model YOLOv8 (blue curve) during training is shown. It is obvious that the loss function of the improved algorithm gradually converges after 100 epochs of training, and converges faster and has lower loss values on the validation set. In the last epoch of the validation set, the box_loss loss value of the original YOLOv8n algorithm is 0.65408, the cls_loss loss value is 0.68789, and the dfl_loss loss value is 1.3313. In contrast, in the last epoch on the validation set, the box_loss loss value of the GFF-YOLOv8n algorithm is 0.60933, the cls_loss loss value is 0.62072, and the dfl_loss loss value is 1.3355. This shows that in the improved algorithm, the loss values of box_loss, cls_loss, and dfl_loss are reduced by 0.04475, 0.06717, and 0.00, respectively. The reduction in the loss function value shows that the prediction results of the improved algorithm are closer to the actual target and have better weed detection performance.
[0109] After using the weed classification detection method based on the improved YOLOv8 algorithm in this application to perform weed classification detection, the visualization results are as follows: Fig.18 , 19 As shown in the figure, the improved YOLOv8 algorithm can accurately extract target features and thus obtain good detection results. The reason for the different detection accuracy is that smaller targets occupy fewer pixels in the image, making it difficult for the algorithm to extract sufficient feature information from these pixels, resulting in inaccurate target detection. Therefore, the detection accuracy of larger targets is usually significantly higher than that of smaller targets.
[0110] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0111] In one embodiment, Fig. 20As shown, a weed classification detection system based on the improved YOLOv8 algorithm is provided, comprising: an image processing module 2010, a feature information extraction module 2020, an information fusion module 2030 and a weed classification detection module 2040, wherein:
[0112] The image processing module 2010 is used to obtain the image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, perform image preprocessing through the YOLOv8 improved algorithm model, and obtain a processed image data set;
[0113] The feature information extraction module 2020 is used to input the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extract image feature information of different scales through the C2f-FADC module in the backbone network;
[0114] The information fusion module 2030 is used to input image feature information of different scales into the Neck network in the YOLOv8 improved algorithm model. The DASI module in the Neck network fuses low-resolution high-semantic information and high-resolution low-semantic information based on the image feature information of different scales to generate multi-scale semantic feature information.
[0115] The weed classification detection module 2040 is used to transmit the multi-scale semantic feature information to the task alignment detection head in the YOLOv8 improved algorithm model, extract different task interaction features through the task alignment detection head, and calculate the classification features based on the interaction features, and input the classification features into the classification convolution to extract the weed features for classification, so as to obtain the weed classification results.
[0116] In one embodiment, the image processing module 2010 is also used to scale the image to be detected through the input layer in the YOLOv8 improved algorithm model to obtain the scaled image to be detected; perform data enhancement operation on the scaled image to be detected to obtain a processed image data set.
[0117] In one embodiment, the C2f-FADC module includes an adaptive dilation rate AdaDR module, an adaptive kernel AdaKern module, and a frequency selection FreqSelect module; the feature information extraction module 2020 is also used for the adaptive dilation rate AdaDR module to dynamically adjust the convolution kernel expansion rate in a spatially varying manner, calculate the high-frequency power, and assign different dilation rates to each pixel in the image data after high-frequency power processing; the adaptive kernel AdaKern module adaptively adjusts the convolution kernel, decomposes the weight parameters of the convolution kernel into high and low frequency bands according to the dilation rate, and adjusts the frequency of the high and low frequency bands based on dynamic weighting; the frequency selection FreqSelect module balances the high and low components of the feature map after frequency adjustment.
[0118] In one embodiment, the information fusion module 2030 is also used for the DASI module to divide the image feature information of different scales into various convolution groups through group convolution operations, and each convolution group contains low-dimensional features, high-dimensional features, and current features; the DASI module is used to calculate the activation function of the current features in each convolution group, and the features are merged according to the low-dimensional features and high-dimensional features; the merged features in each convolution group are fused and output.
[0119] In one embodiment, the information fusion module 2030 is also used to align the channels of each feature map based on image feature information of different scales through the DASI module; divide the aligned channel dimensions through a group convolution operation to obtain low-dimensional features, high-dimensional features, and current features after the group convolution; according to the current features after the group convolution, the low-dimensional features and high-dimensional features after the group convolution are fused to obtain fused features; the fused features are convolved, batch normalized, and ReLu activated and then output.
[0120] In one embodiment, the weed classification detection module 2040 is also used for the task alignment detection head to learn task interaction features from multiple convolutional layers through a feature extractor; the positioning branch in the task alignment detection head uses the deformable convolution and the interaction features to generate an offset and a mask of the deformable convolution, and the classification branch uses the interaction features to perform dynamic feature selection to obtain classification features; the classification features are input into the classification convolution to extract the weed features for classification.
[0121] In one embodiment, the weed classification detection module 2040 is further used to input the interactive features into the positioning convolution, output the positioning features, and extract the weed position information; and scale the positioning features through the scale layer to detect the actual weed area.
[0122] In one embodiment, the weed classification detection module 2040 is further used to extract different task features through the task alignment detection head, process the different task features through the shared convolution and activation functions in the task alignment detection head, and calculate the cross-layer task interaction features; based on the cross-layer task interaction features, the dependency relationship is captured to assist the weed classification.
[0123] In one embodiment, Fig.21 The figure shows the design process of the GFF-YOLOv8 weed supervision platform. The GFF-YOLOv8 weed supervision platform is a software designed to bridge users with imaging hardware and computer vision algorithms. It mainly implements two functions: image acquisition and weed detection. These two functions are implemented through the camera interface and the deployment of deep learning models, respectively. The specific details are as follows:
[0124] As a bridge between users and imaging hardware and computer vision algorithms, the software has two main functions, namely image acquisition and weed detection, which are achieved through camera interface and deployment of deep learning models respectively. In terms of camera interface, users can control the camera parameter settings that affect image acquisition, display and weed detection. Users can set detailed camera parameters such as exposure time, white balance, focus mode, ISO sensitivity, etc. through the software interface. These parameters directly affect the image acquisition quality and thus affect the subsequent weed detection effect. The software provides a real-time display function, and users can view the image stream acquired by the camera in real time on the graphical user interface to ensure the real-time and accuracy of image acquisition. In addition, users can set the frequency of image acquisition and other acquisition conditions to meet the needs of different scenarios.
[0125] In terms of deploying models, users have the flexibility to use the pre-trained GFF-YOLOv8 model for weed recognition detection to detect weeds in image streams. The software interface allows users to select the appropriate model and configure it according to actual application needs. Users only need to perform simple operations to complete the loading and deployment of the model, and the software will automatically process the image stream and perform real-time weed detection.
[0126] In addition, the graphical user interface provides rich functions for displaying weed detection statistics. Users can view information such as the number, type and location of detected weeds, which facilitates analysis and evaluation of current detection results. The software also supports real-time saving of original images and detected images, which facilitates users to subsequently evaluate and improve weed detection performance offline. Users can easily manage these image files through the software interface to achieve long-term tracking and research of detection results.
[0127] Through the above design, the GFF-YOLOv8 weed supervision platform achieves seamless integration of image acquisition and weed detection, providing users with powerful and flexible tools to help complete weed detection tasks efficiently.
[0128] Specifically, the overall process of weed detection and counting using the weed classification detection system based on the improved YOLOv8 algorithm in this application is as follows: Fig. 22 As shown in the figure, the main purpose of dataset preparation is to create a dataset for training deep learning models, which mainly involves image enhancement, image cropping, data enhancement and weed data labeling; image enhancement includes adjusting the brightness, contrast, saturation, etc. of the image to increase the diversity of the data; image cropping is to crop large images into small pieces so that the model can process them more efficiently; data enhancement further increases the amount of data through operations such as rotation, flipping, and scaling; finally, weed data labeling is performed to manually label the location and category of weeds in the image to provide the model with the label data required for training and verification.
[0129] The GFF-YOLOv8 algorithm is proposed in the weed detection model building module. First, the GFF-YOLOv8 model is trained and verified on the prepared dataset to obtain the weed detection results of each image; during the training process, the model gradually improves the recognition accuracy and recall rate of weeds through repeated iterations and optimization; during the verification process, the performance of the model is evaluated by comparing the model prediction results and the labeled data, and necessary parameter adjustments and improvements are made.
[0130] The deduplication component is mainly responsible for stitching the detection results of each image back to the original size and removing the duplication of the weed detection frames. This step restores the detection results of the cropped image blocks to the original image and uses an algorithm to remove overlapping and repeated detection frames to ensure that each weed is counted only once. Finally, the number and distribution of detected weeds are retrieved and counted from the original image, providing a reliable basis for subsequent data analysis and application.
[0131] Through the above process, the experiment can effectively create and use the weed detection dataset, train and verify the efficient detection model, and accurately count the weed detection results, providing support for further research and practical applications. The final detection results can be displayed in the GFF-YOLOv8 weed supervision platform interface as follows: Fig.23 shown.
[0132] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.24 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a weed classification detection method based on the improved YOLOv8 algorithm is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0133] Those skilled in the art will understand that Fig.24The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, steps of a weed classification detection method based on an improved YOLOv8 algorithm are implemented.
[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a weed classification detection method based on an improved YOLOv8 algorithm are implemented.
[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0137] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A weed classification detection method based on the improved YOLOv8 algorithm, characterized in that: The method comprises: Obtain an image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, perform image preprocessing through the YOLOv8 improved algorithm model, and obtain a processed image data set; Inputting the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extracting image feature information of different scales through the C2f-FADC module in the backbone network; The image feature information of different scales is input into the Neck network in the YOLOv8 improved algorithm model, and the DASI module in the Neck network fuses low-resolution high-semantic information and high-resolution low-semantic information based on the image feature information of different scales to generate multi-scale semantic feature information; The multi-scale semantic feature information is transmitted to the task alignment detection head in the YOLOv8 improved algorithm model, different task interaction features are extracted by the task alignment detection head, and classification features are calculated based on the interaction features. The classification features are input into the classification convolution to extract weed features for classification, so as to obtain a weed classification result.
2. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 1, characterized in that: The image preprocessing is performed by the YOLOv8 improved algorithm model to obtain a processed image data set, including: Scaling the image to be detected through the input layer in the YOLOv8 improved algorithm model to obtain the scaled image to be detected; The input layer performs a data enhancement operation on the image to be detected after the scaling process to obtain a processed image data set.
3. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 1, characterized in that: The C2f-FADC module includes an adaptive dilation rate AdaDR module, an adaptive kernel AdaKern module, and a frequency selection FreqSelect module; the extraction of image feature information of different scales through the C2f-FADC module in the backbone network includes: The adaptive dilation rate AdaDR module dynamically adjusts the convolution kernel dilation rate in a spatially varying manner, calculates high-frequency power, and assigns different dilation rates to each pixel in the processed image data based on the high-frequency power; The adaptive kernel AdaKern module adaptively adjusts the convolution kernel, decomposes the weight parameters of the convolution kernel into high and low frequency bands according to the expansion rate, and performs frequency adjustment on the high and low frequency bands based on dynamic weighting; The frequency selection FreqSelect module balances the high and low components of the frequency-adjusted feature map.
4. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 1, characterized in that: The DASI module in the Neck network performs low-resolution high-semantic information fusion and high-resolution low-semantic information fusion based on the image feature information of different scales, including: The DASI module divides the image feature information of different scales into various convolution groups through group convolution operations, each of which contains low-dimensional features, high-dimensional features, and current features; Perform activation function calculation on the current features in each of the convolution groups through the DASI module, and merge features according to the low-dimensional features and the high-dimensional features; The merged features in each of the convolution groups are fused and output.
5. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 4 is characterized in that: The method further comprises: Aligning channels of the feature maps based on the image feature information of different scales by the DASI module; The aligned channel dimensions are divided by group convolution operation to obtain low-dimensional features, high-dimensional features, and current features after group convolution; According to the current features after the group convolution, the low-dimensional features and high-dimensional features after the group convolution are fused to obtain the fused features; The fused features are subjected to convolution, batch normalization, and ReLu activation processing and then output.
6. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 1, characterized in that: The extracting different task interaction features through the task alignment detection head and calculating classification features based on the interaction features include: The task alignment detection head learns task interaction features from multiple convolutional layers through a feature extractor; The positioning branch in the task alignment detection head uses the deformable convolution and the interactive feature to generate an offset and a mask of the deformable convolution, and the classification branch uses the interactive feature to perform dynamic feature selection to obtain a classification feature; The classification features are input into the classification convolution to extract the weed features for classification.
7. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 6, characterized in that: The method further comprises: Input the interactive features into the positioning convolution, output the positioning features, and extract the weed position information; The positioning features are scaled by the scale layer to detect the actual weed area.
8. The weed classification detection method based on the improved YOLOv8 algorithm according to claim 6, characterized in that: After different task features are extracted by the task alignment detection head, the method further includes: Different task features are extracted through the task alignment detection head, and different task features are processed through shared convolution and activation functions in the task alignment detection head to calculate cross-layer task interaction features; Dependencies are captured based on the cross-layer task interaction features to assist weed classification.
9. A weed classification detection system based on the improved YOLOv8 algorithm, characterized in that: The system comprises: An image processing module is used to obtain an image to be detected containing various types of weeds and input it into the YOLOv8 improved algorithm model, and perform image preprocessing through the YOLOv8 improved algorithm model to obtain a processed image data set; A feature information extraction module is used to input the processed image data set into the backbone network in the YOLOv8 improved algorithm model, and extract image feature information of different scales through the C2f-FADC module in the backbone network; An information fusion module is used to input the image feature information of different scales into the Neck network in the YOLOv8 improved algorithm model, and the DASI module in the Neck network fuses low-resolution high-semantic information and high-resolution low-semantic information based on the image feature information of different scales to generate multi-scale semantic feature information; The weed classification detection module is used to transmit the multi-scale semantic feature information to the task alignment detection head in the YOLOv8 improved algorithm model, extract different task interaction features through the task alignment detection head, and calculate the classification features based on the interaction features, and input the classification features into the classification convolution to extract the weed features for classification, so as to obtain the weed classification results.
10. The weed classification detection system based on the improved YOLOv8 algorithm according to claim 9, characterized in that: The image processing module is also used to scale the image to be detected through the input layer in the YOLOv8 improved algorithm model to obtain the scaled image to be detected; and perform data enhancement operation on the scaled image to be detected to obtain a processed image data set.
Citation Information
Patent Citations
Infrared small target detection and classification method based on multi-scale feature fusion
CN118038152A
Method of road detection based on internet of vehicles
US20230154202A1
Cited By
Substation weed detection method, device and equipment
CN119723042A
Method and system for constructing infrared target tracking retrieval knowledge base in dark environment
CN119919453A
A method and system for constructing a knowledge base for infrared target tracking and retrieval in dim environments
CN119919453B
Printed circuit board surface defect detection method based on deep learning
CN120031872A
Weed seed detection model training method, application method, device and equipment
CN120107566A
