Early pine wood nematode identification method and system based on artificial intelligence algorithm

Through the pine nematode identification method based on artificial intelligence algorithm, the combination of MobileViT, Dense ASPP and CBAM modules is used to solve the problem of low efficiency and insufficient accuracy of early detection of pine nematode disease, and achieve efficient and accurate disease identification and Management is suitable for large-scale on-site inspections and mitigates the impact of forestry.

CN118898737AInactive Publication Date: 2024-11-05NANJING FORESTRY UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410736952.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art has problems such as low efficiency, high cost, complex operation and difficulty in large-scale rapid detection in the early detection of pine nematode disease, especially in the rapid spread of forest areas and ecological environment protection.

Method used

The early pine nematode recognition method based on artificial intelligence algorithm is adopted. Through the trained pine nematode recognition model, the image feature extraction and optimization is used using the MobileViT module, Dense ASPP module and CBAM attention module, and the recognition results are output in combination with the data fusion module. Improves the efficiency and accuracy of detection.

Benefits of technology

Provides an efficient and precise tool to help reduce the impact of titanium nematode disease on forestry, improves the ability to identify and manage early, is suitable for large-scale on-site testing, and reduces costs and time expenditures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898737A_ABST
    Figure CN118898737A_ABST
Patent Text Reader

Abstract

The invention discloses an early-stage pine wood nematode recognition method and system based on an artificial intelligence algorithm, and the method comprises the steps: obtaining a pine wood nematode image, inputting the pine wood nematode image into a trained pine wood nematode recognition model, and obtaining a pine wood nematode recognition result. The pine wood nematode identification model comprises a MobileViT module which is used for carrying out feature extraction according to a pine wood nematode image to obtain a first image feature; the Dense ASPP module is used for performing feature capture according to the first image feature to obtain a second image feature; the CBAM attention module is used for performing feature optimization according to the first image feature to obtain a third image feature; the data fusion module is used for obtaining an image fusion feature according to the second image feature and the third image feature; and the output module is used for outputting the pine wood nematode identification result. According to the method, early disease identification of the pine wood nematodes is carried out through the trained pine wood nematode identification model, the efficiency is high, the accuracy is good, and subsequent pine wood nematode disease management is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an early pine wood nematode identification method and system based on an artificial intelligence algorithm, belonging to the technical field of pine wood nematode identification. Background Art

[0002] Pine wilt disease, also known as pine wilt, is a disease caused by a microscopic nematode called the pinewood nematode. The disease primarily affects coniferous species such as pine and can rapidly lead to the death of the tree. The pinewood nematode was originally discovered in North America but has now spread to many parts of Asia and Europe, becoming a global plant protection issue. The pinewood nematode is spread through materials that come into close contact with infected wood, especially by insect vectors. The most common vectors are saw beetles, which feed in pine wood during their larval stage and carry the nematodes as they fly from tree to tree. The adults lay their eggs under the bark of pine trees, where they form tunnels that provide the nematodes with a pathway to enter the tree. Once a pine tree is infected with pinewood nematodes, the disease usually progresses rapidly. The nematodes invade the tree's vascular system, blocking the transport of water and nutrients, causing the leaves to turn yellow, wilt, and eventually the entire tree to die. There is no effective chemical treatment for the disease, and control relies mainly on preventive measures such as removing and destroying infected trees and using healthy seedlings and materials. Although various measures have been taken to prevent and control pine wilt disease, the control of pine wilt disease still faces many challenges, including the rapid spread of the disease, the lack of effective prevention and control methods, and the protection of the ecological environment.

[0003] The key to preventing and controlling pine wood nematode disease lies in early detection and timely response.

[0004] In the field of early detection of pine wilt disease, the methods currently used include visual inspection, wood sample testing, molecular diagnostic technology, and remote sensing technology. Visual inspection methods rely on the experience of observers to judge infection by identifying pine tree wilting, yellowing or other abnormal symptoms, but this method is prone to miss mild symptoms in the early stage of infection and has low inspection efficiency in large forest areas. Wood sample testing involves taking samples from suspected infected trees and testing for the presence of pine nematodes in the laboratory. Although this method is relatively accurate, it is time-consuming and costly, and some trees need to be destroyed to obtain samples. Molecular diagnostic techniques such as PCR are used to detect pine nematode DNA in tree samples. Although this method has high sensitivity and accuracy, it is complex to operate and has high requirements for experimental conditions, making it unsuitable for large-scale rapid on-site detection. Finally, remote sensing technology identifies infected pine trees by analyzing the spectral reflectance characteristics of vegetation, which requires advanced technical support and data processing capabilities, and may be difficult to accurately identify in the early stages of tree infection. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and provide an early pine wood nematode identification method and system based on an artificial intelligence algorithm, which can identify early pine wood nematode diseases through a trained pine wood nematode identification model, with high efficiency and good accuracy, and facilitate the subsequent management of pine wood nematode diseases. To achieve the above purpose, the present invention is implemented by adopting the following technical solutions:

[0006] In one aspect, the present invention discloses an early pine wood nematode identification method based on an artificial intelligence algorithm, comprising the following steps:

[0007] Acquire an image of pine wood nematodes to be identified;

[0008] Inputting the pine wood nematode image into a trained pine wood nematode recognition model to obtain a corresponding pine wood nematode recognition result;

[0009] Wherein, the pine wood nematode identification model includes:

[0010] An input module, used for inputting pine wood nematode images;

[0011] MobileViT module: used for extracting features based on the pine wood nematode image and the self-attention mechanism of the deep separable convolution and Transformer to obtain the first image feature;

[0012] Dense ASPP module: used to obtain second image features by capturing features based on the first image features through a multi-scale combined one-dimensional dilated convolution and SP strategy;

[0013] CBAM attention module: used to optimize the features based on the channel attention mechanism and the spatial attention mechanism according to the first image features to obtain the third image features;

[0014] Data fusion module: used for performing a fusion operation according to the second image feature and the third image feature to obtain an image fusion feature;

[0015] The output module is used to output the pine wood nematode identification result according to the image fusion feature.

[0016] Furthermore, the training method of the pine wood nematode recognition model is as follows:

[0017] Get training set and validation set;

[0018] According to the training set, the pre-constructed pine wood nematode identification model is trained based on the Dice loss function until a preset iteration termination condition is met and the trained pine wood nematode identification model is output;

[0019] According to the verification set, the performance of the trained pine wood nematode identification model is evaluated based on the preset evaluation parameters. In response to the evaluation parameter values ​​satisfying the corresponding preset evaluation parameter thresholds, the training is terminated and the trained pine wood nematode identification model is output; otherwise, the step of training the pre-constructed pine wood nematode identification model based on the Dice loss function is repeated for iterative training.

[0020] Furthermore, the obtaining of the training set and the validation set comprises the following steps:

[0021] Obtain inspection images of pine forests;

[0022] After screening and image transformation operations are performed on the inspection image, a training pine wood nematode image is obtained;

[0023] After labeling the training pine wood nematode images, the labeling box of each pine wood nematode disease target is obtained, and then a data set with labeling boxes is obtained;

[0024] The data set is divided into a training set and a validation set based on a preset division ratio.

[0025] Furthermore, the preset evaluation parameters include intersection over union, accuracy, recall and F1 score, which are expressed as follows:

[0026]

[0027]

[0028]

[0029]

[0030] In the formula, represents intersection and union ratio; Indicates accuracy; represents the recall rate; represents the F1 score; represents the correctly predicted area infected with pine wood nematodes for the i-th pest type; represents the incorrectly predicted area infected with pine wood nematodes for the i-th pest type; Represents the unpredicted area infected with pine wood nematode for the i-th pest type.

[0031] Furthermore, the expression of the Dice loss function is as follows:

[0032]

[0033] In the formula, represents the Dice loss function; represents the true label of the i-th pixel; represents the predicted value of the i-th pixel; N represents the total number of pixels.

[0034] Furthermore, in the MobileViT module, obtaining the first image feature comprises the following steps:

[0035] Calculating a query Q matrix, a key K matrix and a value V matrix according to the pine wood nematode image;

[0036] Calculate a first image feature according to the query Q matrix, the key K matrix and the value V matrix;

[0037] The expression of the first image feature is as follows:

[0038]

[0039] In the formula, represents a first image feature; represents the normalized exponential function;

[0040] represents the query Q matrix, , represents the weight matrix of the query Q matrix, Embedded representation of pine wood nematode images;

[0041] represents the key K matrix, , represents the weight matrix of the key K matrix;

[0042] represents the value V matrix, , The weight matrix representing the value V matrix;

[0043] Represents the dimension of each vector in the key K matrix.

[0044] Furthermore, in the CBAM attention module, obtaining the third image feature includes the following steps:

[0045] According to the first image feature, based on the spatial attention mechanism, two different feature descriptions are first generated through global average pooling and global maximum pooling, and then the features are merged after being processed by a shared multi-layer perceptron to obtain a weighted spatial feature;

[0046] According to the first image feature, based on the channel attention mechanism, two different spatial descriptions are first generated through global average pooling and global maximum pooling, and then weighted channel features are obtained through convolution operation;

[0047] The weighted spatial feature is multiplied element by element with the weighted channel feature, and then fused with the first image feature to obtain a third image feature.

[0048] Furthermore, the expression of the channel attention mechanism is as follows:

[0049]

[0050] In the formula, Represents the weighted channel features after processing by the channel attention mechanism; Represents input features; represents the activation function; Indicates processing global average pooling and global maximum pooling respectively; Indicates calculating the average value of each small area in the feature map; Indicates selecting the maximum value of each small area in the feature map;

[0051] The expression of the spatial attention mechanism is as follows:

[0052]

[0053] In the formula, Represents the weighted spatial features after processing by the spatial attention mechanism; Represents a 7×7 convolution; Indicates a connection operation.

[0054] Furthermore, in the data fusion module, obtaining the image fusion feature includes the following steps:

[0055] After performing an upsampling operation on the second image feature, a processed second image feature is obtained;

[0056] After performing a convolution operation on the third image feature, a processed third image feature is obtained;

[0057] Obtaining preliminary fusion features according to the processed second image features and the processed third image features;

[0058] After performing convolution and upsampling operations on the preliminary fusion features, the final image fusion features are obtained.

[0059] On the other hand, the present invention discloses an early pine wood nematode identification system based on an artificial intelligence algorithm, which is applicable to the early pine wood nematode identification method based on an artificial intelligence algorithm, comprising:

[0060] A data acquisition module, used for acquiring an image of pine wood nematodes to be identified;

[0061] A pine wood nematode recognition module, used for inputting the pine wood nematode image into a trained pine wood nematode recognition model to obtain a corresponding pine wood nematode recognition result;

[0062] Wherein, the pine wood nematode identification model includes:

[0063] An input module, used for inputting pine wood nematode images;

[0064] MobileViT module: used for extracting features based on the pine wood nematode image and the self-attention mechanism of the deep separable convolution and Transformer to obtain the first image feature;

[0065] Dense ASPP module: used to obtain second image features by capturing features based on the first image features through a multi-scale combined one-dimensional dilated convolution and SP strategy;

[0066] CBAM attention module: used to optimize the features based on the channel attention mechanism and the spatial attention mechanism according to the first image features to obtain the third image features;

[0067] Data fusion module: used for performing a fusion operation according to the second image feature and the third image feature to obtain an image fusion feature;

[0068] The output module is used to output the pine wood nematode identification result according to the image fusion feature.

[0069] Compared with the prior art, the present invention has the following beneficial effects:

[0070] The early pine wood nematode identification method and system based on artificial intelligence algorithm of the present invention provides an efficient and accurate tool for early identification and management of pine wood nematode disease through a trained pine wood nematode identification model, which helps to reduce the impact of this disease on forestry. Among them, the MobileViT module is firstly adopted to optimize the model's ability to capture image features. By capturing long-distance dependencies, the warrior can better understand the global content in the image and provide rich feature information for subsequent segmentation processing. Secondly, the Dense ASPP module is adopted to further improve the receptive field and information richness through the multi-scale combination of one-dimensional dilated convolution. This design helps to obtain denser sampling and a wider receptive field, thereby improving the model's adaptability to various size and morphological changes in forest fire images. Finally, the CBAM attention module is adopted to weight the importance of the channel based on the channel attention mechanism, enhance the model's sensitivity to key features, and help the model better identify and respond to key information in the image; based on the channel attention mechanism, the attention to spatial details is strengthened, and the accuracy and effect of segmentation are further improved by focusing on important spatial areas in the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 is a method flow chart of an early pine wood nematode identification method based on an artificial intelligence algorithm provided in Example 1;

[0072] Figure 2 is a schematic diagram of the structure of the pine wood nematode identification model provided in Example 1;

[0073] Figure 3 It is a structural diagram of the MobileViT module provided in Example 1. DETAILED DESCRIPTION

[0074] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0075] Example 1

[0076] This embodiment 1 provides an early pine wood nematode identification method based on an artificial intelligence algorithm, comprising the following steps:

[0077] Acquire an image of pine wood nematodes to be identified;

[0078] Input the pine wood nematode image into the trained pine wood nematode recognition model to obtain the corresponding pine wood nematode recognition result;

[0079] Among them, the pine wood nematode identification model includes:

[0080] An input module, used for inputting pine wood nematode images;

[0081] MobileViT module: used to extract features based on the pine wood nematode image and the Transformer self-attention mechanism to obtain the first image features;

[0082] Dense ASPP module: used to obtain the second image features based on the first image features by capturing the features through a multi-scale combined one-dimensional dilated convolution and SP strategy;

[0083] CBAM attention module: used to optimize the features based on the channel attention mechanism and the spatial attention mechanism according to the first image features to obtain the third image features;

[0084] Data fusion module: used for performing a fusion operation according to the second image feature and the third image feature to obtain an image fusion feature;

[0085] The output module is used to output the pine wood nematode identification results based on the image fusion features.

[0086] The technical concept of the present invention is: through the trained pine wood nematode recognition model, an efficient and accurate tool is provided for the early identification and management of pine wood nematode disease, which helps to reduce the impact of this disease on forestry. Among them, the MobileViT module is firstly used to optimize the model's ability to capture image features. By capturing long-distance dependencies, the warrior can better understand the global content in the image and provide rich feature information for subsequent segmentation processing. Secondly, the DenseASPP module is used to further improve the richness of the receptive field and information through the multi-scale combination of one-dimensional dilated convolution. This design helps to obtain denser sampling and a wider receptive field, thereby improving the model's adaptability to various size and morphological changes in forest fire images. Finally, the CBAM attention module is used to weight the importance of the channel based on the channel attention mechanism, which enhances the model's sensitivity to key features and helps the model better identify and respond to key information in the image; based on the channel attention mechanism, the attention to spatial details is strengthened, and the accuracy and effect of segmentation are further improved by focusing on important spatial areas in the image.

[0087] like Figure 1 As shown in the figure, the specific steps of an early pine wood nematode identification method based on artificial intelligence algorithm are as follows:

[0088] Step 1: Pre-construction of the model.

[0089] Pre-built pine wood nematode recognition models, such as Figure 2 As shown, it includes input module, MobileViT module, DenseASPP module, CBAM attention module, data fusion module and output module.

[0090] 1.1. Input module, used to input pine wood nematode images;

[0091] 1.2. MobileViT module: used to extract features from pine wood nematode images based on deep separable convolution and Transformer’s self-attention mechanism to obtain the first image features.

[0092] The MobileViT module is the backbone network of the pine wood nematode recognition model, combining the deep separable convolution and the Transformer’s self-attention mechanism. Figure 3 As shown in the figure, starting from the input 640×640 picture, the feature map size is gradually reduced through a 3×3 convolution layer and multiple MobileNetV2 (MV2) units, and then three MobileViT blocks are used to extract high-level features. Then a 1×1 convolution layer is used to adjust the number of channels, and finally classification is performed through global average pooling and linear layers. In the whole process, the feature map size is gradually reduced and the features are gradually extracted, achieving efficient image processing and classification.

[0093] In the MobileViT module, self-attention is implemented by calculating the query Q matrix, key K matrix, and value V matrix, which optimizes the model's ability to capture image features. By capturing long-distance dependencies, it can better understand the global content in the image and provide rich feature information for subsequent segmentation tasks.

[0094] Specifically, according to the pine wood nematode image, the query Q matrix, the key K matrix and the value V matrix are calculated; according to the query Q matrix, the key K matrix and the value V matrix, the first image feature is calculated.

[0095] The expression of the first image feature is as follows:

[0096]

[0097] In the formula, represents a first image feature; represents the normalized exponential function;

[0098] represents the query Q matrix, , represents the weight matrix of the query Q matrix, Embedded representation of pine wood nematode images;

[0099] represents the key K matrix, , represents the weight matrix of the key K matrix;

[0100] represents the value V matrix, , The weight matrix representing the value V matrix;

[0101] Represents the dimension of each vector in the key K matrix.

[0102] 1.3. Dense ASPP module: used to obtain the second image features based on the first image features by capturing features through a multi-scale combined one-dimensional dilated convolution and SP strategy.

[0103] The Dense ASPP module includes a multi-scale combined one-dimensional dilated convolution layer and an SP strategy layer. The multi-scale combined one-dimensional dilated convolution layer can further improve the receptive field and information richness. This design helps to obtain denser sampling and a wider receptive field, thereby improving the model's adaptability to various sizes and morphological changes in forest fire images.

[0104] Through the SP strategy layer, the first image feature is divided into stripe grid units, and each unit is locally pooled, which enhances the model's capture of multi-scale features. This strategy is particularly suitable for processing targets of different sizes and positions in forest fire images, improving the local accuracy and robustness of features.

[0105] 1.4. CBAM attention module: used to optimize the features of the first image based on the channel attention mechanism and the spatial attention mechanism to obtain the third image features.

[0106] The specific steps are as follows:

[0107] According to the first image feature, based on the spatial attention mechanism, two different feature descriptions are first generated through global average pooling and global maximum pooling, and then the features are merged after being processed by a shared multi-layer perceptron to obtain weighted spatial features;

[0108] According to the first image feature, based on the channel attention mechanism, two different spatial descriptions are first generated through global average pooling and global maximum pooling, and then weighted channel features are obtained through convolution operation;

[0109] The weighted spatial feature is multiplied element by element with the weighted channel feature, and then fused with the first image feature to obtain a third image feature.

[0110] Among them, the expression of the channel attention mechanism is as follows:

[0111]

[0112] In the formula, Represents the weighted channel features after processing by the channel attention mechanism; Represents input features; represents the activation function; Indicates processing global average pooling and global maximum pooling respectively; Indicates calculating the average value of each small area in the feature map; Indicates selecting the maximum value of each small area in the feature map;

[0113] The expression of the spatial attention mechanism is as follows:

[0114]

[0115] In the formula, Represents the weighted spatial features after processing by the spatial attention mechanism; Represents a 7×7 convolution; Indicates a connection operation.

[0116] 1.5. Data fusion module: used to perform a fusion operation based on the second image feature and the third image feature to obtain an image fusion feature.

[0117] The specific steps are as follows:

[0118] After performing an upsampling operation on the second image feature, a processed second image feature is obtained;

[0119] After performing a convolution operation on the third image feature, a processed third image feature is obtained;

[0120] Obtaining preliminary fusion features according to the processed second image features and the processed third image features;

[0121] After convolution and upsampling operations on the preliminary fusion features, the final image fusion features are obtained.

[0122] 1.6. Output module, used to output pine wood nematode identification results based on image fusion features.

[0123] Step 2: Model training.

[0124] 2.1. Preprocessing of dataset.

[0125] Use the visible light camera on the drone to obtain inspection images of the pine forest in a certain area.

[0126] After screening and image transformation operations on the inspection images, training pine wood nematode images are obtained. Image transformation operations are to transform images using data augmentation techniques, including random rotation, cropping, brightness and contrast adjustment, etc. This helps the model learn to identify pine wood nematodes in different environments, especially in natural scenes with variable lighting and background.

[0127] After labeling the training pine wood nematode images, the labeling box of each pine wood nematode disease target is obtained, and then a data set with labeling boxes is obtained.

[0128] The dataset with annotated boxes is divided into training set, validation set and test set in a ratio of 8:1:1.

[0129] The latitude and longitude of the specific area are 31°55'38.70"-31°55'54.65"N, 118°46'16.56"-118°46'40.03"E. The area has typical northern subtropical humid climate characteristics, with an annual precipitation of 819.8-971.8mm and an annual average temperature of 16.9-18.0℃. The main tree species in the forest in the study area is Pinus massoniana.

[0130] 2.2. Set the training parameters of the model, and train the pre-built pine wood nematode disease recognition model based on the training set obtained in step 2.1 based on the Dice loss function until the preset iteration termination condition is met and the trained pine wood nematode disease recognition model is output.

[0131] The training parameters of the model include input image size, number of training rounds, number of batch images, optimizer, initial learning rate, and mosaic data enhancement probability. Specifically, the image pixels in this embodiment are set to 640*640; the number of training rounds is set to 100 (in rounds); the number of batch images is set to 16 (in sheets); the optimizer is set to SGD; the initial learning rate is set to 0.01; and the preset iteration termination condition is to reach the preset number of training rounds.

[0132] The expression of Dice loss function is as follows:

[0133]

[0134] In the formula, represents the Dice loss function; represents the true label of the i-th pixel; represents the predicted value of the i-th pixel; N represents the total number of pixels.

[0135] In this embodiment, the Dice loss function is used to train the network, which helps to directly optimize the prediction accuracy at the pixel level, which is particularly important for the accurate segmentation of the pine wood nematode area and the background in the pine wood nematode image.

[0136] 2.3. According to the validation set obtained in step 2.1, the performance of the trained pine wood nematode identification model is evaluated based on the preset evaluation parameters. If the evaluation parameter values ​​meet the corresponding preset evaluation parameter thresholds, the training is terminated and the trained pine wood nematode identification model is output; otherwise, return to step 2.2 to iteratively train the pre-built pine wood nematode identification model based on the Dice loss function.

[0137] The preset evaluation parameters include intersection over union, accuracy, recall, and F1 score, which are expressed as follows:

[0138]

[0139]

[0140]

[0141]

[0142] In the formula, represents intersection and union ratio; Indicates accuracy; represents the recall rate; represents the F1 score; represents the correctly predicted area infected with pine wood nematodes for the i-th pest type; represents the incorrectly predicted area infected with pine wood nematodes for the i-th pest type; Represents the unpredicted area infected with pine wood nematode for the i-th pest type.

[0143] The evaluation parameter thresholds set in this embodiment are:

[0144] The intersection over union (IoU) threshold is 90%, the accuracy threshold is 90%, the recall threshold is 95%, the F1 score threshold is 90%, and the recognition time is 30ms.

[0145] Step 3: Practical application of the model.

[0146] Acquire an image of pine wood nematodes to be identified;

[0147] The pine wood nematode image is input into the trained pine wood nematode recognition model to obtain the corresponding pine wood nematode recognition result.

[0148] The model proposed by the present invention and other widely used models, including FCN, U-Net, Deeplabv3plus, PSPNet and Mask R-CNN, were trained using the data set constructed by the present invention, and then the trained models were used to predict the pine wood nematode disease images in the test set constructed by the present invention. The prediction results are as follows:

[0149] Model Recognition time (ms) IoU Accuracy Recall FCN 15ms 67.90% 82.30% 83.71% U-Net 13ms 74.64% 84.12% 88.69% Deeplabv3plus 22ms 79.88% 83.53% 90.17% PSPNet 23ms 80.50% 84.00% 89.00% Mask R-CNN 17ms 78.00% 82.50% 87.50% The present invention 20ms 81.44% 85.31% 92.68%

[0150] It can be seen that compared with other widely used recognition models, the trained pine wood nematode recognition model of the present invention is used to recognize pine wood nematode disease images, and the recognition time is moderate, and the intersection over union (IoU), accuracy and recall rate are higher than those of other widely used recognition models.

[0151] Example 2

[0152] This embodiment 2 provides an early pine wood nematode identification system based on an artificial intelligence algorithm, which is applicable to the early pine wood nematode identification method of embodiment 1, including:

[0153] A data acquisition module, used for acquiring an image of pine wood nematodes to be identified;

[0154] A pine wood nematode recognition module is used to input a pine wood nematode image into a trained pine wood nematode recognition model to obtain a corresponding pine wood nematode recognition result;

[0155] Among them, the pine wood nematode identification model includes:

[0156] An input module, used for inputting pine wood nematode images;

[0157] MobileViT module: used to extract features based on the pine wood nematode image and the Transformer self-attention mechanism to obtain the first image features;

[0158] Dense ASPP module: used to obtain the second image features based on the first image features by capturing the features through a multi-scale combined one-dimensional dilated convolution and SP strategy;

[0159] CBAM attention module: used to optimize the features based on the channel attention mechanism and the spatial attention mechanism according to the first image features to obtain the third image features;

[0160] Data fusion module: used for performing a fusion operation according to the second image feature and the third image feature to obtain an image fusion feature;

[0161] The output module is used to output the pine wood nematode identification results based on the image fusion features.

[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0166] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An early identification method of pine wood nematodes based on artificial intelligence algorithm, Its characteristics are: The steps include: Acquire an image of pine wood nematodes to be identified; Inputting the pine wood nematode image into a trained pine wood nematode recognition model to obtain a corresponding pine wood nematode recognition result; Wherein, the pine wood nematode identification model includes: An input module, used for inputting pine wood nematode images; MobileViT module: used for extracting features based on the pine wood nematode image and the self-attention mechanism of the deep separable convolution and Transformer to obtain the first image feature; Dense ASPP module: used to obtain the second image features by capturing the features of the first image through a multi-scale combined one-dimensional dilated convolution and SP strategy; CBAM attention module: used to optimize the features based on the channel attention mechanism and the spatial attention mechanism according to the first image features to obtain the third image features; A data fusion module: used for performing a fusion operation according to the second image feature and the third image feature to obtain an image fusion feature; The output module is used to output the pine wood nematode identification result according to the image fusion feature.

2. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 1, Its characteristics are: The training method of the pine wood nematode identification model is as follows: Get training set and validation set; According to the training set, the pre-constructed pine wood nematode identification model is trained based on the Dice loss function until a preset iteration termination condition is met and the trained pine wood nematode identification model is output; According to the verification set, the performance of the trained pine wood nematode identification model is evaluated based on the preset evaluation parameters. In response to the evaluation parameter values ​​satisfying the corresponding preset evaluation parameter thresholds, the training is terminated and the trained pine wood nematode identification model is output; otherwise, the step of training the pre-constructed pine wood nematode identification model based on the Dice loss function is repeated for iterative training.

3. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 2, Its characteristics are: The step of obtaining a training set and a validation set comprises the following steps: Obtain inspection images of pine forests; After screening and image transformation operations are performed on the inspection image, a training pine wood nematode image is obtained; After labeling the training pine wood nematode images, the labeling box of each pine wood nematode disease target is obtained, and then a data set with labeling boxes is obtained; The data set is divided into a training set and a validation set based on a preset division ratio.

4. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 2, Its characteristics are: The preset evaluation parameters include intersection over union, accuracy, recall and F1 score, and the expressions are as follows: ; ; ; ; In the formula, represents intersection and union ratio; Indicates accuracy; represents the recall rate; represents the F1 score; represents the correctly predicted area infected with pine wood nematodes for the i-th pest type; represents the incorrectly predicted area infected with pine wood nematodes for the i-th pest type; Represents the unpredicted area infected with pine wood nematode for the i-th pest type.

5. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 2, Its characteristics are: The expression of the Dice loss function is as follows: ; In the formula, represents the Dice loss function; represents the true label of the i-th pixel; represents the predicted value of the i-th pixel; N represents the total number of pixels.

6. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 1, Its characteristics are: In the MobileViT module, obtaining the first image feature includes the following steps: Calculating a query Q matrix, a key K matrix and a value V matrix according to the pine wood nematode image; Calculate a first image feature according to the query Q matrix, the key K matrix and the value V matrix; The expression of the first image feature is as follows: ; In the formula, represents a first image feature; represents the normalized exponential function; represents the query Q matrix, , represents the weight matrix of the query Q matrix, Embedded representation of pine wood nematode images; represents the key K matrix, , represents the weight matrix of the key K matrix; represents the value V matrix, , The weight matrix representing the value V matrix; Represents the dimension of each vector in the key K matrix.

7. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 1, Its characteristics are: In the CBAM attention module, obtaining the third image feature includes the following steps: According to the first image feature, based on the spatial attention mechanism, two different feature descriptions are first generated through global average pooling and global maximum pooling, and then the features are merged after being processed by a shared multi-layer perceptron to obtain a weighted spatial feature; According to the first image feature, based on the channel attention mechanism, two different spatial descriptions are first generated through global average pooling and global maximum pooling, and then weighted channel features are obtained through convolution operation; The weighted spatial feature is multiplied element by element with the weighted channel feature, and then fused with the first image feature to obtain a third image feature.

8. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 7, Its characteristics are: The expression of the channel attention mechanism is as follows: ; In the formula, Represents the weighted channel features after processing by the channel attention mechanism; Represents input features; represents the activation function; Indicates processing global average pooling and global maximum pooling respectively; Indicates calculating the average value of each small area in the feature map; Indicates selecting the maximum value of each small area in the feature map; The expression of the spatial attention mechanism is as follows: ; In the formula, Represents the weighted spatial features after processing by the spatial attention mechanism; Represents a 7×7 convolution; Indicates a connection operation.

9. The early pine wood nematode identification method based on artificial intelligence algorithm according to claim 1, Its characteristics are: In the data fusion module, obtaining the image fusion features includes the following steps: After performing an upsampling operation on the second image feature, a processed second image feature is obtained; After performing a convolution operation on the third image feature, a processed third image feature is obtained; Obtaining preliminary fusion features according to the processed second image features and the processed third image features; After performing convolution and upsampling operations on the preliminary fusion features, the final image fusion features are obtained.

10. An early pine wood nematode identification system based on an artificial intelligence algorithm, applicable to the early pine wood nematode identification method based on an artificial intelligence algorithm according to any one of claims 1 to 9, Its characteristics are: include: A data acquisition module, used for acquiring an image of pine wood nematodes to be identified; A pine wood nematode recognition module, used for inputting the pine wood nematode image into a trained pine wood nematode recognition model to obtain a corresponding pine wood nematode recognition result; Wherein, the pine wood nematode identification model includes: An input module, used for inputting pine wood nematode images; MobileViT module: used for extracting features based on the pine wood nematode image and the self-attention mechanism of the deep separable convolution and Transformer to obtain the first image feature; Dense ASPP module: used to obtain the second image features by capturing the features of the first image through a multi-scale combined one-dimensional dilated convolution and SP strategy; CBAM attention module: used to optimize the features based on the channel attention mechanism and the spatial attention mechanism according to the first image features to obtain the third image features; A data fusion module: used for performing a fusion operation according to the second image feature and the third image feature to obtain an image fusion feature; The output module is used to output the pine wood nematode identification result according to the image fusion feature.

Citation Information

Patent Citations

  • Tree nematode disease wood identification method and system based on deep learning

    CN113033520A

  • Bursaphelenchus xylophilus disease identification method based on unmanned aerial vehicle remote sensing

    CN115908925A

  • Remote sensing sub-pixel epidemic wood detection method based on complex forest land environment

    CN116229287A