Eucalyptus single tree knot segmentation method, device and system and storage medium

By adding an enhanced selection kernel convolution module to the Mask R-CNN model, it improves attention to semantic information and reduces the number of parameters, solving the problem of low single-tree segmentation accuracy in complex scenes and achieving migration adaptability in different scenarios. and higher recognition accuracy.

CN118537352AActive Publication Date: 2024-08-23GUILIN UNIVERSITY OF TECHNOLOGY
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410716890.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-23
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Existing deep learning single tree segmentation algorithms have low recognition accuracy in complex scenes and are difficult to transfer to other environments, especially in forests with high canopy density.

Method used

By adding three enhanced selection kernel convolution modules to the feature pyramid network of the Mask R-CNN model, including channel attention units, spatial attention units and multi-scale convolution units, the attention to semantic information is improved and network parameters are reduced. quantity, and improve the model to adapt to different scenarios.

Benefits of technology

It improves the recognition accuracy of single eucalyptus trees in complex scenes and the migration adaptability in different scenes, and achieves more accurate single tree segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537352A
    Figure CN118537352A
Patent Text Reader

Abstract

The invention discloses a eucalyptus single tree segmentation method, device and system, and a storage medium. The method comprises the following steps: S1, acquiring historical eucalyptus UAV data; s2, training an improved Mask R-CNN model according to historical eucalyptus UAV data to obtain a single tree segmentation model; and S3, inputting the UAV data of the eucalyptus in the target area into the individual tree segmentation model, and extracting the number of the individual trees of the eucalyptus and the crown breadth area of the individual trees. By adopting the technical scheme of the invention, the recognition accuracy in a complex scene and the migration adaptability in different scenes are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data processing, and in particular relates to a method and device, a system and a storage medium for splitting a single eucalyptus tree. Background Art

[0002] Eucalyptus plantations are known as the world's three fastest-growing plantations along with pine and poplar due to their fast growth and high yield. They are widely planted in tropical and subtropical areas. They not only have good wood properties and are the most important source of short fibers in pulp and paper production, but also play an important role in ecological security, regulating global climate change, and ensuring national timber security. Traditional eucalyptus resource surveys are mostly obtained through field measurements. Although the results are accurate, they are time-consuming, labor-intensive, costly, limited in scope, and the data update frequency is low, making it difficult to meet the data needs for monitoring the dynamic changes of short-rotation eucalyptus plantations. The successful application of remote sensing technology has made up for the shortcomings of traditional surveys to a certain extent, not only saving data survey costs, but also greatly reducing the time required for surveys and increasing the frequency of data updates.

[0003] Drones have the advantages of low flight altitude, flexible operation and low cost. They have become the main technical means to obtain high-resolution images, laying a data foundation for the extraction of single tree structural parameters in eucalyptus plantations. Single tree crown segmentation is the key to obtaining single tree structural parameters based on high-resolution remote sensing images. The deep learning algorithm can learn and adaptively extract features from a large amount of data, so it is suitable for processing various types of data. It not only has strong adaptability to different types of landforms and vegetation, but also can learn complex features and contextual information. At the same time, it can also automatically learn patterns and laws in the data without manual intervention, saving a lot of manpower costs and time. It has been widely used in forest single tree segmentation and obtained good segmentation results. At present, there are two main types of deep learning single tree segmentation algorithms: one is semantic segmentation, which aims to mark each pixel in the image as a corresponding semantic category, so as to achieve pixel-level understanding and analysis of the image. The representative algorithms are DeepLabv3+ algorithm, PSPNet algorithm and UNet algorithm. Because it focuses on the content of each position in the image, rather than the boundary of a single object, the semantic segmentation results are prone to adhesion and it is difficult to achieve complete segmentation. The other type is instance segmentation, which accurately segments each object instance and assigns a unique identifier to each instance to achieve single tree segmentation. Representative algorithms include Mask R-CNN algorithm and Yolact algorithm. Unlike semantic segmentation algorithms, instance segmentation algorithms not only focus on the object category in the image, but also require the distinction between different object instances in the same category, making it difficult for single tree segmentation results to produce adhesion. Among them, the Mask R-CNN algorithm, as a representative algorithm for instance segmentation, has the advantage of being able to segment images at the pixel level, so it can provide accurate segmentation results, including the boundary and shape information of the object, and can be applied to objects of different sizes and proportions. It is suitable for segmentation tasks in various scenes and environments. It has now been widely used in single tree segmentation. For example, Zhenbang Hao et al. used the Mask R-CNN algorithm to detect single tree crowns in young Chinese fir forests based on drone images. The results showed that the single tree segmentation effect was good with an accuracy of 84.68%, but the segmentation results of single trees in forests other than young forests still need to be further verified. Hancong Fu et al. used the Mask R-CNN algorithm to detect the crown of Pinus sylvestris var. mongolica. The experimental results showed that the highest accuracy of crown extraction of this method was 89.6%, but it was still difficult to apply this method in forests with high canopy density. Robiah Hamzah et al. used the Mask R-CNN algorithm to segment and identify trees in tropical rainforests with an accuracy rate of 75%, but from the segmentation effect, many trees were not identified and segmented. Although the Mask R-CNN algorithm can achieve accurate segmentation of single trees, it has low recognition accuracy and poor segmentation effect in complex scenes, making it difficult to migrate to other environments. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device, system and storage medium for segmenting a single eucalyptus tree, so as to improve the recognition accuracy in complex scenes and the migration adaptability in different scenes.

[0005] To achieve the above object, the present invention adopts the following technical solution:

[0006] A method for splitting a single eucalyptus tree, comprising:

[0007] Step S1, obtaining historical eucalyptus UAV data;

[0008] Step S2, training an improved Mask R-CNN model according to historical eucalyptus UAV data to obtain a single tree segmentation model; wherein the improved Mask R-CNN model includes: sequentially connecting a backbone network, a feature pyramid network FPN, a region proposal network RPN, a RoI Align layer, a classifier module, and a mask module; wherein three enhanced selection kernel convolution modules ESK are set in the feature pyramid network FPN, and each enhanced selection kernel convolution module ESK includes: a channel attention unit, a spatial attention unit, and a multi-scale convolution unit;

[0009] Step S3: input the UAV data of eucalyptus trees in the target area into the single tree segmentation model to extract the number of single eucalyptus trees and the crown area of ​​single trees.

[0010] Preferably, step S1 further comprises preprocessing the historical eucalyptus UAV data, which comprises:

[0011] Trimming of historical eucalyptus UAV data;

[0012] The eucalyptus crown edge contour was marked based on the clipped historical eucalyptus UAV data.

[0013] The present invention also provides a eucalyptus single wood splitting device, comprising:

[0014] Acquisition module, used to obtain historical eucalyptus UAV data;

[0015] A training module is used to train an improved Mask R-CNN model based on historical eucalyptus UAV data to obtain a single tree segmentation model; wherein the improved Mask R-CNN model includes: a backbone network, a feature pyramid network FPN, a region proposal network RPN, a RoI Align layer, a classifier module, and a mask module are connected in sequence; wherein three enhanced selective kernel convolution modules ESK are set in the feature pyramid network FPN, and each enhanced selective kernel convolution module ESK includes: a channel attention unit, a spatial attention unit, and a multi-scale convolution unit;

[0016] The extraction module is used to input the UAV data of eucalyptus in the target area into the single tree segmentation model to extract the number of single eucalyptus trees and the crown area of ​​single trees.

[0017] Preferably, a preprocessing module is also included for preprocessing the historical eucalyptus UAV data, which includes:

[0018] A clipping unit, used to clip the historical eucalyptus UAV data;

[0019] The labeling unit is used to label the edge contour of the eucalyptus crown based on the clipped historical eucalyptus UAV data.

[0020] The present invention also provides a eucalyptus single tree segmentation system, comprising: a memory and a processor, wherein the memory stores a computer program executed by the processor, and the computer program executes a eucalyptus single tree segmentation method when executed by the processor.

[0021] The present invention also provides a storage medium, on which a computer program is stored, and the computer program executes the eucalyptus single tree segmentation method when running.

[0022] The present invention adds three enhanced selection kernel convolution modules ESK to the FPN network of the Mask R-CNN model to improve the attention to the important features of the semantic information of eucalyptus. At the same time, the feature pyramid network FPN outputs five feature layers of different sizes, but instead outputs three effective feature layers, reducing the number of parameters of the network model. The technical solution of the present invention improves the recognition accuracy in complex scenes and the migration adaptability in different scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0024] Figure 1 This is a flow chart of a method for segmenting a single eucalyptus tree according to an embodiment of the present invention;

[0025] Figure 2 This is the structural diagram of the feature pyramid network FPN in the improved Mask R-CNN model. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0028] Embodiment 1:

[0029] like Figure 1 As shown, an embodiment of the present invention provides a method for segmenting a single eucalyptus tree, comprising:

[0030] Step S1, obtaining historical eucalyptus UAV data;

[0031] Step S2: training an improved Mask R-CNN model based on historical eucalyptus UAV data to obtain a single tree segmentation model;

[0032] Step S3: input the UAV data of eucalyptus trees in the target area into the single tree segmentation model to extract the number of single eucalyptus trees and the crown area of ​​single trees.

[0033] As an implementation of an embodiment of the present invention, step S1 also includes preprocessing the historical eucalyptus UAV data, which includes:

[0034] Trimming of historical eucalyptus UAV data;

[0035] The eucalyptus crown edge contour was marked based on the clipped historical eucalyptus UAV data.

[0036] As an implementation method of an embodiment of the present invention, the improved Mask R-CNN model includes: a backbone network, a feature pyramid network FPN, a region proposal network RPN, a RoI Align layer, a classifier module, and a mask module are connected in sequence; wherein, three enhanced selection kernel convolution modules ESK are set in the feature pyramid network FPN, and each enhanced selection kernel convolution module ESK includes: a channel attention unit, a spatial attention unit and a multi-scale convolution unit.

[0037] like Figure 2 As shown, in step S2, the backbone network extracts features from the historical eucalyptus UAV data to generate feature layers of different sizes from C2 to C5. After the feature layers of C2 to C5 undergo a Conv2D convolution with a convolution kernel size of 1X1, the feature layers of C2 to C4 are input into the ESK feature module for enhanced feature extraction. The extracted features are jump-connected with the features after the previous convolution, and the corresponding feature layers P2 to P5 are obtained after upsampling, and P2, P3 and P4 are taken as effective feature layers; wherein; the ESK module has multi-scale convolutions with different channel attention units, spatial attention units and different kernel sizes; the channel attention module and spatial attention module in ESK can calibrate the target image features from the spatial and channel dimensions at the same time; the multi-convolution layers with different kernel sizes in ESK can provide receptive fields of different scales, thereby improving the adaptability of the network to different input images and improving the accuracy of target detection. The RPN network is used to predict the P2 to P4 feature layers to generate candidate regions that may contain targets in the image and generate region proposal boxes; the region proposal boxes are screened, and the screened regions are feature aligned in the RoI Align layer to generate features corresponding to the candidate regions and map them back to the feature map. The feature results obtained after the RoI Align operation are resized. In the classifier module, the captured content is resized to a size of 7x7x256, and then a convolution operation is performed to decode the proposal box to obtain the final prediction box; in the mask module, the captured content is resized to a size of 14x14x256, and a convolution operation is also performed to obtain the semantic segmentation results inside the prediction box. At this point, the training of the improved Mask R-CNN model is completed, and a single tree segmentation model is obtained.

[0038] Furthermore, the process of training the improved Mask R-CNN model includes:

[0039] 1. The historical eucalyptus UAV data is input into the Restnet101 backbone network for feature extraction to obtain four feature layers of different sizes, namely C2, C3, C4, and C5. Then these feature layers are convolved with a convolution kernel size of 1X1 and a channel number of 256.

[0040] 2. The convolutional C2 to C4 feature layers are introduced into the ESK module, and feature extraction is performed in the channel attention unit and the spatial attention unit respectively. The feature channels and spatial positions that are more important to the current task are selectively focused on from the channel dimension and the spatial dimension, focusing on the important feature information of the image; then the extracted features are connected with the original features to obtain the total feature output.

[0041] 3. After the features extracted by the ESK module are concatenated with the features obtained by the previous convolution, they are upsampled to obtain the P2, P3, P4, and P5 feature layers respectively.

[0042] 4. Based on the characteristics of dense eucalyptus planting and its crown as a small target in the image, the original feature pyramid FPN outputs 5 feature layers of different sizes, and is changed to output 3 effective feature layers. Since the corresponding prior frames from P2 to P5 are getting larger and larger, the P2, P3, and P4 feature layers are taken. Accordingly, the parameters of the RPN prior frame length [32, 64, 128, 256, 512] are changed to [32, 64, 128], corresponding to the P2, P3, and P4 feature layers, respectively.

[0043] 5. The obtained P2, P3, and P4 feature layers are input into the RPN suggestion box network to obtain the prior box adjustment parameters and detect whether the prior box contains an object. The specific operation is that the input feature layer first undergoes a 3x3 convolution with a channel number of 512, and then according to the parameters of the RPN prior box [32, 64, 128], the input image is divided into grids of different sizes of 128x128x256, 64x64x256, and 32x32x256. Each grid has 3 prior boxes by default. Then two more convolutions are performed to determine whether the prior box contains an object and adjust it to obtain a new box, namely the suggestion box.

[0044] 6. After further adjustment and decoding, the obtained suggestion box is further screened through non-maximum suppression to select the suggestion box with the highest confidence.

[0045] 7. In the RoI Align layer, the suggestion box is used to intercept the shared feature layer (P2, P3, P4), and the feature layer is aligned with the suggestion box. The feature layer to which the suggestion box belongs is found by the size of the suggestion box, and the features corresponding to the candidate area are generated and mapped back to the feature map.

[0046] 8. In the classifier module, a 7x7 convolution with a channel number of 1024 and a 1x1 convolution with a channel number of 1024 are used to convolve the 7x7x256 area obtained by ROI Align. Two convolutions with a channel number of 1024 are used to simulate two 1024 full connections, and then full connections are performed separately to obtain the objects in the suggestion box and the adjustment parameters of the suggestion box.

[0047] 9. In the mask module, the resized local feature layer is first subjected to four 3x3 256-channel convolutions, then a deconvolution, and then a convolution with the number of channels equal to the number of types of inspected objects, denoted as n. The final result represents the class of each pixel; the final shape is 28x28xn, representing the category of each pixel.

[0048] 10. The prediction result of the classifier module is the type of object inside the suggestion box and the position of the prediction box. The result after the adjustment of the suggestion box is the final prediction box. The decoding process of the prediction box includes: 1) taking out the suggestion box that does not belong to the background and whose score is greater than 0.7; 2) decoding using the suggestion box and the prediction result of the classifier module to obtain the position of the final prediction box; 3) using the score and the position of the final prediction box for non-maximum suppression to prevent repeated detection.

[0049] 11. Use the final prediction box as the area cutout of the mask module, and use the final prediction box to cut out the common feature layer used in the mask module; after cutting out, use the mask module to classify the pixels and obtain the semantic segmentation result.

[0050] 12. The historical eucalyptus UAV data was trained on the improved Mask R-CNN model with a batch size of 1, an epoch size of 300, an adam optimization method, a momentum parameter of 0.9, a weight decay parameter of 0, and an initial learning rate of 0.0001.

[0051] Embodiment 2:

[0052] The embodiment of the present invention further provides a eucalyptus single wood splitting device, comprising:

[0053] Acquisition module, used to obtain historical eucalyptus UAV data;

[0054] A training module is used to train an improved Mask R-CNN model based on historical eucalyptus UAV data to obtain a single tree segmentation model; wherein the improved Mask R-CNN model includes: a backbone network, a feature pyramid network FPN, a region proposal network RPN, a RoI Align layer, a classifier module, and a mask module are connected in sequence; wherein three enhanced selective kernel convolution modules ESK are set in the feature pyramid network FPN, and each enhanced selective kernel convolution module ESK includes: a channel attention unit, a spatial attention unit, and a multi-scale convolution unit;

[0055] The extraction module is used to input the UAV data of eucalyptus in the target area into the single tree segmentation model to extract the number of single eucalyptus trees and the crown area of ​​single trees.

[0056] As an implementation of an embodiment of the present invention, a preprocessing module is also included, which is used to preprocess the historical eucalyptus UAV data, and includes:

[0057] A clipping unit, used to clip the historical eucalyptus UAV data;

[0058] The labeling unit is used to label the edge contour of the eucalyptus crown based on the clipped historical eucalyptus UAV data.

[0059] Embodiment 3:

[0060] An embodiment of the present invention further provides a eucalyptus single tree segmentation system, comprising: a memory and a processor, wherein the memory stores a computer program executed by the processor, and the computer program executes a eucalyptus single tree segmentation method when executed by the processor.

[0061] Embodiment 4:

[0062] An embodiment of the present invention further provides a storage medium, on which a computer program is stored, and the computer program executes a method for segmenting a single eucalyptus tree when running.

[0063] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A method for splitting a single eucalyptus tree, characterized in that: include: Step S1, obtaining historical eucalyptus UAV data; Step S2, training an improved Mask R-CNN model according to historical eucalyptus UAV data to obtain a single tree segmentation model; wherein the improved Mask R-CNN model includes: sequentially connecting a backbone network, a feature pyramid network FPN, a region proposal network RPN, a RoIAlign layer, a classifier module, and a mask module; wherein three enhanced selection kernel convolution modules ESK are set in the feature pyramid network FPN, and each enhanced selection kernel convolution module ESK includes: a channel attention unit, a spatial attention unit, and a multi-scale convolution unit. Step S3: input the UAV data of eucalyptus trees in the target area into the single tree segmentation model to extract the number of single eucalyptus trees and the crown area of ​​single trees.

2. The method for splitting a single eucalyptus tree according to claim 1, characterized in that: Step S1 also includes preprocessing the historical eucalyptus UAV data, which includes: Trimming of historical eucalyptus UAV data; The eucalyptus crown edge contour was marked based on the clipped historical eucalyptus UAV data.

3. A eucalyptus single wood splitting device, characterized in that: include: Acquisition module, used to obtain historical eucalyptus UAV data; A training module is used to train an improved Mask R-CNN model based on historical eucalyptus UAV data to obtain a single tree segmentation model; wherein the improved Mask R-CNN model includes: a backbone network, a feature pyramid network FPN, a region proposal network RPN, a RoIAlign layer, a classifier module, and a mask module are connected in sequence; wherein three enhanced selective kernel convolution modules ESK are set in the feature pyramid network FPN, and each enhanced selective kernel convolution module ESK includes: a channel attention unit, a spatial attention unit, and a multi-scale convolution unit; The extraction module is used to input the UAV data of eucalyptus in the target area into the single tree segmentation model to extract the number of single eucalyptus trees and the crown area of ​​single trees.

4. The eucalyptus single wood splitting device according to claim 3, characterized in that: A preprocessing module is also included for preprocessing the historical eucalyptus UAV data, which includes: A clipping unit, used to clip the historical eucalyptus UAV data; The labeling unit is used to label the edge contour of the eucalyptus crown based on the clipped historical eucalyptus UAV data.

5. A eucalyptus single wood splitting system, comprising: A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the method for splitting a single eucalyptus tree as described in any one of claims 1 to 2 is executed.

6. A storage medium having a computer program stored thereon, wherein the computer program, when executed by the processor, executes the eucalyptus single tree segmentation method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Mask R-CNN-based cotton tip identification and detection method

    CN114049621A

  • Small target detection method based on attention mechanism

    CN114202672A

  • Yeast cell counting and living cell rate detection system and method

    CN115497091A

  • Single tree crown detection method and device based on lightweight instance segmentation network

    CN115565064A

  • College auxiliary bedroom checking device and method based on unmanned aerial vehicle and artificial intelligence

    CN116935141A