Wheat yellow dwarf disease multi-scale detection method based on unmanned aerial vehicle multi-spectral image

Through UAV multispectral images and dual-branch multi-scale models, the efficiency and accuracy problems of wheat yellow dwarf detection are solved, and automated, large-scale, and efficient detection of wheat yellow dwarf disease is achieved.

CN118537731APending Publication Date: 2024-08-23NORTHWEST A & F UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410649459.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing wheat yellow dwarf detection methods are time-consuming and costly, and traditional methods are difficult to effectively apply in large-scale planting areas and cannot accurately identify pathological characteristics, limiting the efficiency and accuracy of disease detection.

Method used

A dual-branch multi-scale detection method based on UAV multispectral images is adopted. By constructing a model of dual-branch scale encoder and lightweight decoder, the Transformer branch and CNN branch are used to generate multi-scale feature maps, and through the optimized feature pyramid The network and multi-layer perceptron perform segmentation mask prediction to achieve semi-automatic labeling and detection of wheat yellow dwarf areas.

Benefits of technology

It improves the accuracy and efficiency of wheat yellow dwarf detection, can reliably distinguish healthy and diseased plants under different lighting conditions, reduces labor costs, and realizes large-scale, automated detection of wheat yellow dwarf disease.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537731A
    Figure CN118537731A
Patent Text Reader

Abstract

The invention discloses a wheat yellow dwarf disease multi-scale detection method based on unmanned aerial vehicle multi-spectral images. The method comprises the following steps: constructing a to-be-detected data set composed of complete wheat yellow dwarf images; wherein the wheat yellow dwarf image is a multispectral image obtained by imaging different wheat varieties under a complex background by using a spectrum unmanned aerial vehicle; constructing a double-branch multi-scale model based on the double-branch scale encoder and the lightweight decoder; wherein the double-branch scale encoder comprises a Transform branch, a CNN (Convolutional Neural Network) branch and a feature fusion module, and is used for generating multi-scale feature mapping; the lightweight decoder comprises an optimized feature pyramid network and a multi-layer perceptron and is used for generating a segmentation mask; and detecting the wheat yellow dwarf lesion area in the to-be-detected data set through the trained double-branch multi-scale model. Therefore, accurate segmentation of the wheat yellow dwarf is realized, and substantive technical support is provided for future precise agricultural crop disease monitoring and management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of yellow dwarf disease detection, and in particular to but not limited to a multi-scale detection method for wheat yellow dwarf disease based on unmanned aerial vehicle multispectral images. Background Art

[0002] Wheat is one of the most common crops in the world, providing 20% ​​of protein and dietary calories for approximately 4.5 billion people. Wheat diseases are a major challenge in wheat cultivation and pose considerable risks to wheat quality and safety. Numerous pathogens, including viruses, fungi, bacteria, and nematodes, cause wheat diseases, costing the global economy $220 billion annually. Among them, yellow dwarf disease caused by the barley yellow dwarf virus (BYDVs) complex is the most economically significant viral disease affecting small grains worldwide. Diseased wheat plants exhibit symptoms including yellowing of upper leaves, stunting, delayed maturity, and grain wilting. Monocropping systems and global climate change have led to the occurrence of viral yellow dwarf disease, which may have increased the threat level to wheat production. Therefore, viral disease surveillance is a key tool for managing the epidemiology of BYDVs. Viruses are obligate intracellular parasites, and there are currently several methods for detecting BYDVs, including enzyme-linked immunosorbent assay (ELISA), polymerase chain reaction (PCR), etc. These methods are time-consuming and require expensive equipment and specialized techniques, limiting the application of viral yellow dwarf disease in field detection. In addition, traditional monitoring methods must rely on the expertise of agricultural technicians and field sampling surveys, which are labor-intensive and time-consuming, limiting its effectiveness in disease detection in large-scale planting areas. The detection method of wheat yellow dwarf disease must accurately identify its pathological characteristics. Therefore, it is urgent to develop an automated and reliable large-scale wheat yellow dwarf disease detection method.

[0003] Deep learning is a new approach to address the challenges of crop disease detection. Accurate segmentation of crop diseases is critical for disease detection and localization, and helps to take timely intervention measures, such as spraying pesticides and pruning leaves, to curb the spread of diseases. Compared with handheld photography on the ground, remote sensing photography (including satellites, manned aircraft, and unmanned aerial vehicles) can more conveniently obtain large-scale crop growth images. Satellite images are limited by resolution and cloud interference, and cannot accurately divide plant disease areas. Although manned aircraft theoretically have higher resolution, they are complex and costly to operate. Compared with these two remote sensing technologies, drones have multiple advantages, such as easy capture of high-resolution images at low flight altitudes, cost savings, and flexible operation. Therefore, more and more crop disease studies use drones to assist in remote sensing image acquisition. Since the diseased areas in crop images are highly similar to healthy areas, traditional RGB images have certain limitations in extracting pathology-related features.

[0004] To overcome these challenges, this paper explores the use of multispectral imaging technology for crop disease detection and segmentation. Multispectral cameras provide near-infrared and short-wave infrared channels in addition to visible light, making multispectral images more reliable for distinguishing healthy and diseased plants under different lighting conditions. However, there is currently no research on wheat yellow dwarf disease detection based on drone multispectral images. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a multi-scale detection method for wheat yellow dwarf disease based on unmanned aerial vehicle multispectral images.

[0006] The technical solution of the embodiment of the present invention is achieved as follows:

[0007] The embodiment of the present invention provides a multi-scale detection method for wheat yellow dwarf disease based on multispectral images of unmanned aerial vehicles, the method comprising:

[0008] A complete data set to be detected consisting of yellow dwarf wheat images is constructed; wherein the yellow dwarf wheat images are multispectral images obtained by imaging different wheat varieties under complex backgrounds using spectral drones; a dual-branch multi-scale model is constructed based on a dual-branch scale encoder and a lightweight decoder; wherein the dual-branch scale encoder includes a Transformer branch, a CNN branch and a feature fusion module for generating a multi-scale feature map; the lightweight decoder includes an optimized feature pyramid network and a multi-layer perceptron for generating a segmentation mask; and the wheat yellow dwarf lesion area in the data set to be detected is detected by using the trained dual-branch multi-scale model.

[0009] In some possible embodiments, the construction of a complete data set to be detected consisting of wheat yellow dwarf images includes: using a spectral drone to image wheat pests and diseases in a preset experimental field to obtain multiple groups of multispectral images; performing data calibration on the multispectral images; performing data annotation on the calibrated multispectral images to obtain a final labeled image; wherein the annotation process combines vegetation index and semi-supervised learning ideas to semi-automatically annotate the wheat yellow dwarf disease area; and using a random enhancement method to expand the annotated data set to obtain a preset number of multispectral images as the data set to be detected.

[0010] In some possible embodiments, the preset experimental field contains a plurality of different wheat varieties and covers the complete infection cycle of wheat yellow dwarf disease; each group of the multispectral images includes an RGB image and a multispectral band image of five bands.

[0011] In some possible embodiments, the data marking of the calibrated multispectral image to obtain the final label image includes: using the normalized difference vegetation index DNVI to segment the wheat area from the background in the multispectral image after data calibration to obtain the NDVI label image; semi-automatically marking the yellow dwarf disease area in the multispectral image through the dual-branch multi-scale model to obtain the wheat yellow dwarf disease area label image; manually coarsely marking the wheat area in the multispectral image to obtain an artificial coarsely marked label image for calibration; and synthesizing the NDVI label image, the wheat yellow dwarf disease area label image and the artificial coarsely marked label image to obtain the final label image.

[0012] In some possible embodiments, the semi-automatic annotation of the yellow dwarf disease areas in the multispectral image by the dual-branch multi-scale model to obtain the labeled image of the wheat yellow dwarf disease area includes: selecting 30% of the data in the collected original data set as the initial data set to perform initial training on the dual-branch multi-scale model, and annotating the trained initial data set and adding it to the labeled data set; cyclically selecting the remaining unlabeled 20% of the data in the original data set, and automatically generating a temporary data set after detection using the dual-branch multi-scale model; manually adjusting the temporary data set and adding the result to the labeled data set; using the labeled data set to train the dual-branch multi-scale model until all the data in the original data set are labeled to obtain the labeled image of the wheat yellow dwarf disease area.

[0013] In some possible embodiments, the synthesizing the NDVI label image, the wheat yellow dwarf disease area label image and the manually coarsely annotated label image to obtain the final label image includes: merging the background area in the NDVI label image and the background area in the manually coarsely annotated label image to obtain the background area in the final label image; intersecting the wheat area in the NDVI label image with the wheat area in the manually coarsely annotated label image to obtain the healthy wheat area in the final label image; and using the wheat yellow dwarf disease area in the wheat yellow dwarf disease area label image as the wheat yellow dwarf disease area in the final label image.

[0014] In some possible embodiments, the Transformer branch includes four Transformer blocks connected in sequence, and the output of the previous Transformer block is also used as the input of the next Transformer block to generate feature maps of different scales; the CNN branch includes four identical convolution blocks connected in sequence, and batch normalization and ReLU activation functions are added between adjacent convolution blocks; the feature fusion module is used to connect the feature maps generated by the two branches along the channel dimension, and obtain the final feature map after feature fusion of the channel features with the feature map.

[0015] In some possible embodiments, the optimized feature pyramid network is obtained by replacing the convolutional layer in the original feature pyramid network with a multi-layer perceptron.

[0016] In some possible embodiments, the detecting of the wheat yellow dwarf lesion area in the data set to be detected by the trained dual-branch multi-scale model includes: processing each multispectral image in the data set to be detected through a 7x7 convolution layer and a maximum pooling layer, and then inputting them into the CNN branch and the Transformer branch respectively; fusing the feature maps output by each channel of the Transformer branch and the CNN branch through the feature fusion module to obtain a final feature map; merging high-resolution coarse features and fine features at low resolution through the optimized feature pyramid network; decoding the merged feature map through the multi-layer perceptron to generate a segmentation mask, and finally predicting the corresponding wheat yellow dwarf lesion area in the data set to be detected.

[0017] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0018] In an embodiment of the present invention, first, a spectral drone is used to image wheat to construct a complete data set to be detected consisting of wheat yellow dwarf images; then a dual-branch multi-scale model is constructed based on a dual-branch scale encoder and a lightweight decoder; finally, the trained dual-branch multi-scale model is used to detect the wheat yellow dwarf disease area in the data set to be detected. In this way, on the one hand, the use of multispectral images can more reliably distinguish healthy and diseased plants under different lighting conditions; on the other hand, the dual-branch multi-scale model is designed by a dual-branch structure, so that the model can capture the global and local information of the image at the same time, and at the same time considers feature fusion and multi-scale fusion, which helps to improve the accuracy and efficiency of the model in the task of detecting wheat yellow dwarf disease disease areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0020] Figure 1 A schematic flow chart of a multi-scale detection method for wheat yellow dwarf disease based on multispectral images of unmanned aerial vehicles provided in an embodiment of the present invention;

[0021] Figure 2 A schematic diagram of a data collection site provided by an embodiment of the present invention;

[0022] Figure 3 An example diagram of a multispectral image collected by a spectral drone provided in an embodiment of the present invention;

[0023] Figure 4 A semi-automatic annotation flow chart provided for an embodiment of the present invention;

[0024] Figure 5 An example diagram of data annotation provided by an embodiment of the present invention;

[0025] Figure 6 An example diagram of data enhancement provided by an embodiment of the present invention;

[0026] Figure 7 A schematic diagram of the overall architecture of the dual-branch multi-scale model and the structure of its modules provided in an embodiment of the present invention;

[0027] Figure 8 A schematic diagram of the structure of an optimized feature pyramid network provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. The following embodiments are used to illustrate the present invention, but are not used to limit the scope of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0030] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present invention are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present invention described here can be implemented in an order other than that illustrated or described here.

[0031] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the field to which the embodiments of the present invention belong. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0032] The embodiment of the present invention provides a multi-scale detection method for wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles, which is applied to electronic devices. The electronic devices include but are not limited to mobile phones, laptops, tablet computers and handheld Internet devices, multimedia devices, streaming media devices, mobile Internet devices, wearable devices or other types of electronic devices. The functions implemented by the method can be implemented by calling program codes by a processor in the electronic device. Of course, the program codes can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium. The processor can be used to process the multi-scale detection process of wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles, and the memory can be used to store the data required and the data generated in the multi-scale detection process of wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles.

[0033] Figure 1 A schematic diagram of a multi-scale detection method for wheat yellow dwarf disease based on multispectral images of unmanned aerial vehicles provided in an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method comprises at least the following steps:

[0034] Step S110, constructing a complete dataset to be detected consisting of yellow dwarf wheat images.

[0035] Here, the yellow dwarf wheat image is a multispectral image obtained by imaging different wheat varieties under a complex background using a spectral drone. The complex background is to increase the richness and complexity of the data set to fully restore the complex situations that the model needs to deal with in practical applications. Multispectral images refer to multispectral band images that include multiple bands.

[0036] The yellow dwarf wheat images collected in the field are calibrated, annotated and expanded to the data capacity required by the model to obtain the data set to be tested as the model input.

[0037] Step S120, constructing a dual-branch multi-scale model based on the dual-branch scale encoder and the lightweight decoder.

[0038] Here, the dual-branch scale encoder includes a Transformer branch, a CNN branch and a feature fusion module for generating a multi-scale feature map; the lightweight decoder includes an optimized feature pyramid network and a multi-layer perceptron for generating a segmentation mask.

[0039] The Transformer branch uses the encoder of SegFormer and integrates multiple Transformer blocks to generate feature maps of different scales. The CNN branch includes multiple identical Convblocks, with batch normalization and ReLU activation functions added in the middle, as well as jump connections to enhance local feature extraction. Through the dual-branch structure, the model can capture both global and local information of the image. The Feature Fusion Model (FFM) effectively combines features from different sources and enhances the model's ability to identify lesion areas. At the same time, the optimized feature pyramid network SEFPN and multilayer perceptron (MLP) design enable the model to process feature maps of different resolutions while maintaining efficiency.

[0040] Therefore, the dual-branch multi-scale model (DBFormer) provided by the present invention comprehensively considers some key issues in multispectral image processing, such as gradient vanishing, feature fusion, and integration of multi-scale features. This design helps to improve the accuracy and efficiency of the model in the task of detecting the lesion area of ​​wheat yellow dwarf disease.

[0041] Step S130, detecting the wheat yellow dwarf lesion area in the to-be-detected data set by using the trained dual-branch multi-scale model.

[0042] Here, after the data set to be detected is input into the dual-branch multi-scale model, it is encoded using the dual-branch multi-scale encoder and decoded using the lightweight decoder.

[0043] In an embodiment of the present invention, first, a spectral drone is used to image wheat to construct a complete data set to be detected consisting of wheat yellow dwarf images; then a dual-branch multi-scale model is constructed based on a dual-branch scale encoder and a lightweight decoder; finally, the trained dual-branch multi-scale model is used to detect the wheat yellow dwarf disease area in the data set to be detected. In this way, on the one hand, the use of multispectral images can more reliably distinguish healthy and diseased plants under different lighting conditions; on the other hand, the dual-branch multi-scale model is designed by a dual-branch structure, so that the model can capture the global and local information of the image at the same time, and at the same time considers feature fusion and multi-scale fusion, which helps to improve the accuracy and efficiency of the model in the task of detecting wheat yellow dwarf disease disease areas.

[0044] In some possible embodiments, the construction of a complete data set to be detected consisting of wheat yellow dwarf images includes: using a spectral drone to image wheat pests and diseases in a preset experimental field to obtain multiple groups of multispectral images; performing data calibration on the multispectral images; performing data annotation on the calibrated multispectral images to obtain a final labeled image; wherein the annotation process combines vegetation index and semi-supervised learning ideas to semi-automatically annotate the wheat yellow dwarf disease area; and using a random enhancement method to expand the annotated data set to obtain a preset number of multispectral images as the data set to be detected.

[0045] Here, we first use the DJI Phantom 4 multispectral drone to collect wheat pest and disease images under complex backgrounds; then perform data calibration on the collected multispectral images, which includes phase calibration, dark current correction, exposure time and sensor gain correction, phase correction and lens distortion correction; then perform data labeling on the images, and propose a semi-automatic labeling method using the idea of ​​vegetation index and semi-supervised learning; finally, use data enhancement technology to expand the data set, such as Figure 6 As shown in the figure, the collected data set is expanded using four methods: random rotation, mirror transformation, random cropping and Cutout, and finally 2475 sets of multispectral images are obtained.

[0046] In some possible embodiments, the preset experimental field contains a plurality of different wheat varieties and covers the complete infection cycle of wheat yellow dwarf disease; each group of the multispectral images includes an RGB image and a multispectral band image of five bands.

[0047] Here, in order to ensure the accuracy and reliability of data collection, the areas affected by the disease are first determined by agricultural experts in the field. In the embodiment of the present invention, the data set collection location is not limited. The following description will only take Shaanxi Province as an example. Figure 2 As shown in part (a).

[0048] For example, in Figure 2The Gaojiabao experimental field in Wugong County, Xianyang City, as shown in part (b) Figure 2 The Caoxinzhuang experimental field in Yangling District, Xianyang City, and the Figure 2 Data collection was carried out in the Lijiazhuang experimental field in Mei County, Baoji City, as shown in part (d). The three experimental fields contained more than 50 different wheat varieties, covering the complete infection cycle of wheat yellow dwarf disease. Subsequently, imaging was performed using a DJI Phantom 4 multispectral drone. A total of 495 sets of multispectral images were collected, each of which included an RGB image and multispectral band images of five bands, including Blue, Green, Red, RE, and NIR. Figure 3 shown.

[0049] In some possible embodiments, the data marking of the calibrated multispectral image to obtain the final label image includes: using the normalized difference vegetation index DNVI to segment the wheat area from the background in the multispectral image after data calibration to obtain the NDVI label image; semi-automatically marking the yellow dwarf disease area in the multispectral image through the dual-branch multi-scale model to obtain the wheat yellow dwarf disease area label image; manually coarsely marking the wheat area in the multispectral image to obtain an artificial coarsely marked label image for calibration; and synthesizing the NDVI label image, the wheat yellow dwarf disease area label image and the artificial coarsely marked label image to obtain the final label image.

[0050] Here, the semi-automatic labeling method proposed in the present invention is used in the process of image data labeling. First, the wheat area is segmented from the background using the NDVI index to obtain the NDVI label image. Figure 5 Afterwards, the double-branch multi-scale model constructed by the present invention was selected to semi-automatically mark the wheat yellow dwarf disease area. The results are shown in Figure 5 As shown in part (b) of the figure; the wheat area is then roughly annotated for calibration. The result is shown in Figure 5 Finally, the final label image is synthesized by combining the NDVI label image, the wheat yellow dwarf disease area label image, and the manually coarsely labeled label image. Figure 5 As shown in (d).

[0051] In some possible embodiments, the semi-automatic annotation of the yellow dwarf disease areas in the multispectral image by the dual-branch multi-scale model to obtain the labeled image of the wheat yellow dwarf disease area includes: selecting 30% of the data in the collected original data set as the initial data set to perform initial training on the dual-branch multi-scale model, and annotating the trained initial data set and adding it to the labeled data set; cyclically selecting the remaining unlabeled 20% of the data in the original data set, and automatically generating a temporary data set after detection using the dual-branch multi-scale model; manually adjusting the temporary data set and adding the result to the labeled data set; using the labeled data set to train the dual-branch multi-scale model until all the data in the original data set are labeled to obtain the labeled image of the wheat yellow dwarf disease area.

[0052] Here, if Figure 4 As shown, the semi-automatic annotation process provided by the present invention is as follows:

[0053] S1. Select 30% of the data in the original dataset as the initial dataset for initial training of the model, and add the initial dataset to the labeled dataset.

[0054] S2. Select 20% of the original dataset in the unlabeled dataset and use the model to automatically generate a temporary dataset for detection.

[0055] S3. Manually adjust the temporary dataset and add the results to the labeled dataset.

[0056] S4. Use the labeled dataset to train the model.

[0057] Repeat steps S2 to S4 until all data are labeled, and obtain the wheat yellow dwarf disease area label image as shown in Figure 5 As shown in part (b), the semi-supervised learning idea is combined with the vegetation index technology to realize a semi-automatic labeling method and solve the UAV image labeling problem.

[0058] In some possible embodiments, the synthesizing the NDVI label image, the wheat yellow dwarf disease area label image and the manually coarsely annotated label image to obtain the final label image includes: merging the background area in the NDVI label image and the background area in the manually coarsely annotated label image to obtain the background area in the final label image; intersecting the wheat area in the NDVI label image with the wheat area in the manually coarsely annotated label image to obtain the healthy wheat area in the final label image; and using the wheat yellow dwarf disease area in the wheat yellow dwarf disease area label image as the wheat yellow dwarf disease area in the final label image.

[0059] Here, all labels are synthesized using formula 1:

[0060]

[0061] Where A, B, C, and D represent the NDVI label image, the wheat yellow dwarf disease area label image, the artificial rough label image, and the final label image, respectively; the background A in A is Black and background C in C Black Merge to get the background area D in D Black ; By the wheat area A in A Wheat With wheat area C in C Wheat Intersect to get healthy wheat area D in D Healthy ; Wheat yellow dwarf disease outbreak area D WheatYD Wheat yellow dwarf disease outbreak area B WheatYD .

[0062] In some possible embodiments, the Transformer branch includes four Transformer blocks connected in sequence, and the output of the previous Transformer block is also used as the input of the next Transformer block to generate feature maps of different scales; the CNN branch includes four identical convolution blocks connected in sequence, and batch normalization and ReLU activation functions are added between adjacent convolution blocks; the feature fusion module is used to connect the feature maps generated by the two branches along the channel dimension, and obtain the final feature map after feature fusion of the channel features with the feature map.

[0063] Here, the dual-branch multi-scale model (DBFormer) provided by the present invention integrates a dual-branch multi-scale encoder and a lightweight decoder. The dual-branch multi-scale encoder consists of a Transformer branch, a CNN branch, and a Feature Fusion Model (FFM) to generate a multi-scale feature map. At the same time, the lightweight decoder consists of a simple and efficient feature pyramid network (SEFPN) and a multi-layer perceptron (MLP) layer to generate a segmentation mask. The overall architecture of the model, the TransformerBlock, the CNN Block, and the FFM module structure are respectively as follows: Figure 7 As shown in parts (a), (b), (c) and (d).

[0064] The present invention develops a series of dual-branch multi-scale encoders (DBEC), namely DBEC-b0 to DBEC-b5. Although these encoders share a common architectural design, their sizes vary. The present invention uses the encoder of SegFormer as the Transformer branch. This can produce high-resolution coarse features and low-resolution fine features. Four Transformers are integrated to extract necessary features. The output of each Transformer Block is also used as the input of the subsequent Block and helps to generate feature maps of different scales.

[0065] The CNN branch aims to correct the problem of insufficient local feature extraction capability of the Transformer branch. The multispectral image is processed by a 7x7 convolution layer and a maximum pooling layer before entering the CNN branch, thereby amplifying the channel depth and minimizing the image size. The CNN branch consists of four identical Convblocks. In order to alleviate the problem with gradient vanishing and thus enhance the stability and convergence speed of network training, batch normalization and ReLU activation functions are added in the middle of the convolution layer, and a skip connection module is added from input to output. By utilizing the Transformer and CNN branches, feature maps of the same size can be obtained from the multispectral image. The Transformer branch prioritizes global information extraction, while the CNN branch is more suitable for local information extraction. The effective fusion of these different feature maps is crucial to obtain significant semantic segmentation results. Therefore, a feature fusion model (FFM) is developed. The process first connects the respective feature maps generated by the two branches along the channel dimension. Subsequently, the merged feature map is subjected to a 1×1 convolution for channel reduction, which promotes feature fusion and reduces computational complexity. Then, the interdependence between channels in the feature map is modeled to adaptively recalibrate the feature response in the channel direction. Finally, the channel feature is multiplied with the feature map to obtain the feature map after feature fusion.

[0066] Considering that the final feature map cleverly merges the outputs of the Transformer and CNN branches using FFM, and seamlessly merges high-resolution coarse features and fine features at low resolution through an optimized feature pyramid network, an MLP is finally used for decoding.

[0067] In some possible embodiments, the optimized feature pyramid network is obtained by replacing the convolutional layer in the original feature pyramid network with a multi-layer perceptron.

[0068] Here, although the dual-branch multi-scale encoder generates four feature maps of different scales for semantic segmentation, it is still necessary to overcome the challenges of processing coarse features at high resolution and fine features at low resolution. Inspired by the feature pyramid network (FPN), this paper proposes a simple and efficient optimized feature pyramid network (SEFPN). Compared with FPN, SEFPN uses MLP instead of CNN to achieve the fusion of high-resolution coarse features and low-resolution fine features, achieving low computational complexity and high performance. The structure of the optimized feature pyramid network is shown in Figure 8 shown.

[0069] In some possible embodiments, the detecting of the wheat yellow dwarf lesion area in the data set to be detected by the trained dual-branch multi-scale model includes: processing each multispectral image in the data set to be detected through a 7x7 convolution layer and a maximum pooling layer, and then inputting them into the CNN branch and the Transformer branch respectively; fusing the feature maps output by each channel of the Transformer branch and the CNN branch through the feature fusion module to obtain a final feature map; merging high-resolution coarse features and fine features at low resolution through the optimized feature pyramid network; decoding the merged feature map through the multi-layer perceptron to generate a segmentation mask, and finally predicting the corresponding wheat yellow dwarf lesion area in the data set to be detected.

[0070] Here, the data set to be detected, which is constructed based on UAV multispectral images, is input into the trained dual-branch multi-scale model. It is first encoded using a dual-branch multi-scale encoder and decoded using a lightweight decoder. Finally, the segmentation mask is used to achieve wheat yellow dwarf disease segmentation, thereby accurately monitoring the wheat yellow dwarf disease area.

[0071] The multi-scale detection method of wheat yellow dwarf disease based on UAV multispectral images is described below in conjunction with a specific experimental example. However, it is worth noting that this specific experimental example is only for better illustrating the present invention and does not constitute an improper limitation to the present invention.

[0072] A series of dual-branch multi-scale encoders (DBECs) have been developed, namely DBEC-b0 to DBEC-b5. Although these encoders share a common architectural design, their sizes vary. Experiments have used six dual-branch multi-scale models (DBFormer-B0 to DBFormer-B5) of different sizes, using multispectral images and RGB images as model inputs, respectively, and using the same training method for comparative testing. Preliminary results show that the model's prediction results for multispectral images are better than RGB at the same model size. This is confirmed by the DBFormer-B0 model, which achieves an mIoU score of 74.99% when using multispectral images, while the mIoU score for RGB images is only 58.96%. In addition, even when the model DBFormer-B5 uses RGB images, the mIoU score obtained is only 65.92%. It is found that increasing the model size while using multispectral images significantly improves performance. However, this trend does not hold when using RGB images, where no significant performance enhancement is observed by changing the model size. The mIoU and mPA scores remain basically unchanged at 65.50% and 76.50% respectively. That is, taking multispectral images as input enables the model to have higher performance than RGB images.

[0073] In order to verify the effectiveness of the dual-branch multi-scale model provided by the present invention, comparative experiments were carried out using other well-known semantic segmentation models. The experimental results show that DBFormer-B5 achieved an mIoU score of 87.92%, which is 16.12%, 18.38%, 13.47%, 8.55%, 6.11%, 4.44% and 4.06% higher than Unet, PSPNet, HRNetV2-w48, DeepLabV3+, MaskFormer-L, SegFormer-B5 and SETR, respectively. The mPA score of DBFormer-B5 is 93.77%, which is 12.27%, 9.82%, 7.07%, 5.65%, 4.03%, 2.28% and 2.26% higher than the models in the same group, respectively. It can be seen that the dual-branch multi-scale model provided by the present invention has a stronger performance in segmenting the wheat yellow dwarf disease region.

[0074] Through experiments, the largest size model designed by the present invention, DBFormer-B5, achieves accurate segmentation of wheat yellow dwarf, with mIoU and mPA reaching 87.92% and 93.77%, respectively. In addition, we evaluate the performance of the model on a sunflower multispectral dataset. Compared with wheat yellow dwarf disease segmentation, this dataset provides an opportunity to evaluate the adaptability of DBFormer to various crop types and conditions. The results show that even the lightest DBFormer-B0 model achieves 77.90% mIoU and 86.56% mPA, which are significantly better than the CNN-based model. In addition, the performance of DBFormer-B3 and DBFormer-B5 models in handling the complexity of sunflower multispectral data is significantly improved over the transformer-based model. In summary, the DBFormer model performs well in multispectral image semantic segmentation and performs well in wheat yellow dwarf disease segmentation, demonstrating the adaptability and robustness of the model in different agricultural scenarios. The successful development of the DBFormer model provides substantial technical support for future precision agricultural crop disease monitoring and management, and demonstrates the broad prospects for the application of deep learning technology in the agricultural field.

[0075] It should be noted that in the embodiment of the present invention, if the above-mentioned multi-scale detection method of wheat yellow dwarf disease based on drone multispectral images is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present invention is not limited to any specific combination of hardware and software.

[0076] Correspondingly, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the multi-scale detection methods for wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles described in the above embodiments are implemented. Correspondingly, an embodiment of the present invention also provides a computer program product, and when the computer program product is executed by a processor of an electronic device, it is used to implement the steps in any of the multi-scale detection methods for wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles described in the above embodiments.

[0077] Based on the same technical concept, an embodiment of the present invention provides an electronic device for implementing the multi-scale detection method for wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles recorded in the above method embodiment. The electronic device includes a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor executes the program to implement the steps in any of the multi-scale detection methods for wheat yellow dwarf disease based on multi-spectral images of unmanned aerial vehicles described in the embodiments of the present invention.

[0078] The memory is configured to store instructions and applications executable by the processor, and can also cache data to be processed or processed by the processor and various modules in the electronic device, which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). When the processor executes the program, the steps of the multi-scale detection method of wheat yellow dwarf disease based on multispectral images of unmanned aerial vehicles are implemented. The processor usually controls the overall operation of the electronic device.

[0079] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the description of the method embodiments of the present invention for understanding.

[0080] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present invention, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. The serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

[0081] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0082] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0083] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.

[0084] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0085] The methods disclosed in several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0086] The above is only an embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A multi-scale detection method for wheat yellow dwarf disease based on multispectral images of unmanned aerial vehicles, characterized in that: The method comprises: Construct a complete data set to be detected consisting of yellow dwarf wheat images; wherein the yellow dwarf wheat images are multispectral images obtained by imaging different wheat varieties under complex backgrounds using spectral drones; A dual-branch multi-scale model is constructed based on a dual-branch scale encoder and a lightweight decoder; wherein the dual-branch scale encoder includes a Transformer branch, a CNN branch and a feature fusion module for generating a multi-scale feature map; the lightweight decoder includes an optimized feature pyramid network and a multi-layer perceptron for generating a segmentation mask; The wheat yellow dwarf lesion area in the data set to be detected is detected by using the trained dual-branch multi-scale model.

2. The method according to claim 1, characterized in that The constructed complete data set to be detected consisting of yellow dwarf wheat images includes: Spectral drones were used to image wheat pests and diseases in the preset experimental fields to obtain multiple sets of multispectral images; Performing data calibration on the multispectral image; The calibrated multispectral image is annotated to obtain the final labeled image. The annotation process combines vegetation index and semi-supervised learning ideas to semi-automatically annotate the wheat yellow dwarf disease area. The labeled data set is expanded by using a random enhancement method to obtain a preset number of multispectral images as the data set to be detected.

3. The method according to claim 2, characterized in that The preset experimental field contains a variety of different wheat varieties and covers the complete infection cycle of wheat yellow dwarf disease; each group of the multispectral images includes an RGB image and a multispectral band image of five bands.

4. The method according to claim 2, characterized in that: The step of performing data labeling on the calibrated multispectral image to obtain a final label image includes: The normalized vegetation index (DNVI) was used to segment the wheat area from the background in the multispectral image after data calibration to obtain the NDVI label image. Semi-automatically labeling the yellow dwarf disease area in the multispectral image by using the dual-branch multi-scale model to obtain a label image of the wheat yellow dwarf disease area; Manually roughly marking the wheat area in the multispectral image to obtain a manually roughly marked label image for calibration; The final label image is obtained by synthesizing the NDVI label image, the wheat yellow dwarf disease area label image and the manually roughly annotated label image.

5. The method according to claim 4, characterized in that The method of semi-automatically labeling the yellow dwarf disease area in the multispectral image by the dual-branch multi-scale model to obtain a label image of the wheat yellow dwarf disease area includes: Select 30% of the data in the collected original data set as the initial data set to perform initial training on the dual-branch multi-scale model, and annotate the trained initial data set and add it to the annotated data set; 20% of the remaining unlabeled data in the original data set are cyclically selected, and a temporary data set is automatically generated after detection using the dual-branch multi-scale model; Manually adjusting the temporary data set and adding the result to the labeled data set; The dual-branch multi-scale model is trained using the labeled data set until all data in the original data set are labeled to obtain the wheat yellow dwarf disease area label image.

6. The method according to claim 4, characterized in that The synthesizing the NDVI label image, the wheat yellow dwarf disease area label image and the manually roughly annotated label image to obtain the final label image includes: Merging the background area in the NDVI label image and the background area in the manually roughly annotated label image to obtain the background area in the final label image; Intersecting the wheat area in the NDVI label image with the wheat area in the manually roughly annotated label image to obtain a healthy wheat area in the final label image; The wheat yellow dwarf disease area in the wheat yellow dwarf disease area label image is used as the wheat yellow dwarf disease area in the final label image.

7. The method according to any one of claims 1 to 6, characterized in that: The Transformer branch includes four Transformer blocks connected in sequence, and the output of the previous Transformer block is also used as the input of the next Transformer block to generate feature maps of different scales; The CNN branch includes four identical convolution blocks connected in sequence, and batch normalization and ReLU activation functions are added between adjacent convolution blocks; The feature fusion module is used to connect the feature maps generated by the two branches along the channel dimension, and obtain the final feature map after performing feature fusion of the channel features with the feature map.

8. The method according to any one of claims 1 to 6, characterized in that: The optimized feature pyramid network is obtained by replacing the convolutional layer in the original feature pyramid network with a multi-layer perceptron.

9. The method according to any one of claims 1 to 6, characterized in that: The detecting the wheat yellow dwarf lesion area in the to-be-detected data set by using the trained dual-branch multi-scale model comprises: Each multispectral image in the data set to be detected is processed by a 7x7 convolution layer and a maximum pooling layer and then input into the CNN branch and the Transformer branch respectively; The feature fusion module is used to fuse the feature maps output by each channel of the Transformer branch and the CNN branch to obtain a final feature map; Merging high-resolution coarse features and fine features at low resolution through the optimized feature pyramid network; The merged feature map is decoded by the multi-layer perceptron to generate a segmentation mask, and finally the corresponding wheat yellow dwarf lesion area in the data set to be detected is predicted.

Citation Information

Cited By

  • Unsupervised field adaptive unmanned aerial vehicle wheat disease accurate detection method

    CN120259912A

  • Target monitoring method and system based on unmanned aerial vehicle cruise

    CN120451840A

  • Target monitoring method and system based on UAV cruise

    CN120451840B