A semantic mapping method for plantation scenes

By collecting high-altitude canopy and low-altitude foliage images through drones, training capsule neural networks and combining image splicing technology, the problem of high cost and low robustness of existing tree species identification and classification methods has been solved, and low-cost, high-precision tree identification and classification methods have been achieved. The construction of plantation semantic maps is suitable for efficient management of plantations and the construction of ecological civilization.

CN114494694BActive Publication Date: 2024-09-20NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210027704.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-11
Publication Date
2024-09-20
Estimated Expiration
2042-01-11

AI Technical Summary

Technical Problem

Existing tree species identification and classification methods are costly and risky. Traditional machine learning requires manual feature extraction and has poor generalization ability. Methods based on RGB images have low model robustness and cannot accurately classify distorted images.

Method used

UAVs equipped with RGB cameras are used to collect high-altitude canopy and low-altitude foliage images, and capsule neural networks are trained to obtain classifiers. Plantations are classified and verified through high-altitude canopy and low-altitude foliage classifiers, and SIFT, RANSAC and LAP are combined. Lars fusion algorithm performs image splicing to generate plantation semantic map.

Benefits of technology

It achieves low-cost, high-precision tree species identification and classification, improves identification efficiency, reduces industrialization costs, and is suitable for the construction of ecological civilization in plantations and tree growth monitoring and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494694B
    Figure CN114494694B
Patent Text Reader

Abstract

The invention discloses a semantic mapping method in a plantation scene, which comprises the following steps: dividing the plantation into different areas, setting flight parameters of a drone, and determining the center point of camera shooting; using a drone to respectively collect high-altitude canopy and low-altitude branch and leaf images, training a capsule neural network to obtain two classifiers, the two classifiers being a high-altitude canopy classifier and a low-altitude branch and leaf classifier; classifying landforms and tree species according to the high-altitude canopy classifier; verifying the classification result of the previous step according to the low-altitude branch and leaf classifier; splicing the verified semantic images to generate a semantic map of the plantation; the method has the advantages of low cost, small training set, high accuracy, and little influence by shooting interference, and also improves the efficiency of tree species identification and classification, and through canopy images, the plantation is efficiently identified over a large range, so that the model has practical engineering application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer vision, and in particular relates to a semantic mapping method in a plantation scene. Technical Background

[0002] There are two main types of tree species identification and classification methods. The first type is based on spectral image recognition, which obtains spectral images and uses traditional machine learning algorithms to classify tree species in plantations. This method requires drones equipped with spectral cameras for aerial photography, which is costly and risky. In addition, traditional machine learning requires manual extraction of image features, and the results are greatly affected by the feature type, and the model generalization ability is poor. The second type is based on RGB image recognition and uses convolutional neural networks. This type of method does not require manual feature extraction, but requires a large amount of data as a training set, and the model has low robustness and cannot accurately classify distorted images. Summary of the invention

[0003] Purpose of the invention: The purpose of the present invention is to address the deficiencies in the prior art. For specific plantation scenarios, based on existing needs and utilizing existing technical means, a method for constructing a semantic map of a plantation with both high efficiency and high precision is designed, which provides convenience for efficient management and maintenance of plantation trees and monitoring the growth conditions of different tree species. This new tree species identification and classification method, which is supported by computer vision and based on drones, is conducive to improving the efficiency of identifying tree species in plantations, reducing the industrialization cost of tree planting, and promoting the construction of ecological civilization.

[0004] Technical solution: A semantic mapping method in a plantation scene, characterized by comprising the following steps:

[0005] Step S1: Divide the plantation into different areas, set the flight parameters of the drone, and determine the center point of the camera shooting;

[0006] Step S2: using drones to collect high-altitude canopy images and low-altitude branches and leaves images respectively, and training capsule neural networks to obtain two classifiers, the two classifiers are high-altitude canopy classifiers and low-altitude branches and leaves classifiers;

[0007] Step S3: classify the landforms and tree species according to the high altitude canopy classifier;

[0008] Step S4: verifying the classification result of the previous step according to the low-altitude branch and leaf classifier;

[0009] Step S5: stitching the verified semantic images to generate a semantic map of the plantation.

[0010] Furthermore, in the step 1, a semantic map of the plantation is constructed. Considering the limitation of imaging size, the plantation is first divided into different areas, and then photographed, identified and stitched, and each area is set as a standard square collection area; a certain height safety range is set for the UAV flight, and the aerial photography position of the UAV is set as the center of each standard area. The staff controls the UAV to take fixed-point photos of the plantation, and the value of the fixed-point distance is related to the parameters of the area range of the single-frame shooting of the UAV.

[0011] Furthermore, the area range of a single frame shot by a drone is the lens field of view of the drone camera, and its calculation formula is: field of view FOV = working distance (WD) * target size (H OR V) / focal length F, where the value of WD is obtained through the distance and angle between the drone and the control personnel's signal receiver H = L * sinθ, is the working height of the drone, and the target size is the size of the lens shooting area. Taking into account the possibility of distortion at the edge of the image, adjacent images are allowed to retain a certain proportion of overlap during shooting, and the effective imaging field of view is set based on the lens field of view.

[0012] Furthermore, in step 2, a drone equipped with an RGB camera is used to take aerial photos of the plantation area at high altitude to obtain canopy images of ponds, grasslands, shrubs and objects of different tree species, and then branch and leaf images of different tree species are collected at low altitude; the images are preprocessed, the median filter is used to reduce the noise of the images, and the low-resolution images are interpolated to improve their resolution; according to the actual environment, the LabelImg software is used to divide this data set into ponds, sand, mud, grassland, shrubs, and various economic trees. The training set required by the capsule network is smaller than that of the convolutional neural network. At the same time, the data type processed by the capsule layer inside the capsule neural network is in vector format, which has better recognition and classification effects on complex scenes with multiple trees and multiple branches and leaves intersecting in the plantation; therefore, a capsule neural network is constructed, and the capsule neural network is trained with the high-altitude canopy data set and the low-altitude branch and leaf data set respectively to obtain a high-altitude canopy classifier and a low-altitude branch and leaf classifier.

[0013] Furthermore, in step S3, the drone flies high above the plantation, stops at the center of each collection area, and takes aerial photos to obtain the topography of the plantation and the canopy contour information of different trees, and uses a high-altitude canopy classifier to classify the environment and tree species in real time and efficiently.

[0014] Furthermore, in step S4, the sampled objects are classified and verified according to the low-altitude branch and leaf classifier to see whether the verification result is consistent with the first classification result. If not, the semantic image obtained by the first classification is updated.

[0015] Furthermore, in step S5, during the aerial photography process, there is overlap in the images of different acquisition areas, and it is necessary to construct a panoramic semantic map of the plantation, so it is necessary to use image stitching to eliminate the negative impact of image overlap; first, it is necessary to use the SIFT algorithm to extract feature points based on the given two-region images, and match these feature points with feature descriptors, that is, feature point attributes, to obtain the same feature points in the two-region images, that is, the feature points of the overlapping area; then, the homography matrix of the two-region images is calculated based on the matched feature points to obtain the position of one region relative to the other region, and the homography matrix is ​​solved using the RANSAC algorithm. The images of the two areas are registered by joint optimization with the bundle adjustment method. Horizontal correction and exposure compensation are required before stitching to improve the consistency of the two images. The graph cut method is used to find the most similar lines in the overlapping area, and the Laplace fusion algorithm is used to fuse several pixels near the seam. Only the image on one side of the seam of the overlapping area is retained to obtain the semantic image of the two areas after stitching. The same image stitching process is performed on the semantic images of other areas to finally obtain a complete semantic map of the plantation. The semantic map is an overall image of the plantation, and contains semantic information of various landforms and tree species in the plantation, which provides convenience for subsequent monitoring and management of the growth status of trees.

[0016] Compared with the existing technology, a semantic mapping method in a plantation scenario using the above technical solution is proposed. Based on the RGB images taken by drones, a capsule neural network is used for two classification and recognition, and finally image stitching is performed to obtain a semantic map of the plantation. This method has the advantages of low cost, small training set, high accuracy, and little influence from shooting interference. It also improves the efficiency of tree species identification and classification, and through canopy images, it can efficiently identify plantations on a large scale, making the model have practical engineering application value. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Constructing a flow chart for semantic mapping of tree species in plantations;

[0018] Figure 2 Capsule neural network model diagram for plantation tree species classification;

[0019] Figure 3 To map the plantation areas;

[0020] Figure 4 Collect plan drawings for drones;

[0021] Figure 5 The image mosaic. DETAILED DESCRIPTION

[0022] The present invention is further described below in conjunction with the accompanying drawings.

[0023] like Figure 1-5As shown, a semantic mapping method in a plantation scene includes the following steps:

[0024] Step S1: Divide the plantation into different areas, set the UAV flight parameters, and determine the center point of the camera shooting; it is necessary to build a semantic map of the plantation. Considering the limitation of imaging size, the plantation is first divided into different areas, and then photographed, identified and spliced, and each area is set as a standard square collection area; set a certain height safety range for the UAV flight, and the UAV's aerial shooting position is set as the center of each standard area. The staff controls the UAV to take fixed-point photos of the plantation. The value of the fixed-point distance is related to the parameters of the area range of the single-frame shooting of the UAV;

[0025] The area range of a single-frame shot by a drone is the lens field of view of the drone camera, and its calculation formula is: field of view FOV = working distance (WD) * target size (H OR V) / focal length F; the value of WD is obtained through the distance and angle between the drone and the controller's signal receiver H = L * sinθ, which is the working height of the drone, and the target size is the size of the lens shooting area; at the same time, considering the possibility of distortion at the edge of the image, a certain proportion of overlap is allowed to be retained for adjacent images during shooting, and the effective imaging field of view is set based on the lens field of view;

[0026] Step S2: Use drones to collect high-altitude canopy images and low-altitude branch and leaf images, respectively, and train capsule neural networks to obtain two classifiers; use drones equipped with RGB cameras to take aerial photos of the plantation area at high altitudes to obtain canopy images of ponds, grasslands, shrubs and different tree species, and then collect branch and leaf images of different tree species at low altitudes; pre-process the images, use median filtering to reduce the noise of the images, and interpolate the images with lower resolution to improve their resolution; according to the actual environment, use LabelImg software to divide this data set into categories such as ponds, sandy land, muddy land, grassland, shrubs, and various economic trees, such as camphor trees and willows;

[0027] Compared with convolutional neural networks, capsule networks require smaller training sets. At the same time, the data types processed by the capsule layer inside the capsule neural network are all in vector format, which has better recognition and classification effects on complex scenes with multiple trees and multiple branches and leaves intersecting in plantations. Therefore, a capsule neural network was built, and the capsule neural network was trained with the high-altitude canopy dataset and the low-altitude branches and leaves dataset respectively to obtain the high-altitude canopy classifier and the low-altitude branches and leaves classifier.

[0028] Step S3: Classify the landforms and tree species according to the high-altitude canopy classifier. The drone flies high above the plantation, stops at the center of each collection area, and takes aerial photos to obtain the landforms of the plantation and the canopy profile information of different trees. The high-altitude canopy classifier is used to classify the environment and tree species in real time and efficiently, and classifies ponds, grasslands, sandy land, poplars, willows, etc.

[0029] Step S4: Verify the classification results of the previous step according to the low-altitude branch and leaf classifier. In the process of using the high-altitude canopy classifier to classify tree species, the landform information is quite different and will be accurately classified; however, the canopy information of a small number of tree species is less different, and the classification confidence is likely to be low. Therefore, it is necessary to verify the results of the first classification; sample each area, collect all samples with low confidence and some samples with normal confidence; focus on the edge areas where the areas intersect, as such areas are prone to image distortion, large information loss, and low confidence in the first classification;

[0030] Use the low-altitude branch and leaf classifier to classify and verify the sampled objects to see if the results are consistent with the first classification results. If they are inconsistent, update the information of the semantic image obtained by the first classification.

[0031] Step S5: stitching the verified semantic images to generate a semantic map of the plantation; during the aerial photography process, images of different acquisition areas overlap, and the present invention needs to construct a panoramic semantic map of the plantation, so it is necessary to use image stitching to eliminate the negative impact of image overlap; first, it is necessary to use the SIFT algorithm to extract feature points based on the given two-region images, and match these feature points with feature descriptors (feature point attributes) to obtain the same feature points in the two-region images, that is, the feature points of the overlapping area; then, the homography matrix of the two-region images is calculated based on the matched feature points to obtain the position of one region relative to the other region, and the RANSA is used to calculate the homography matrix of the two-region images. The C algorithm solves the homography matrix and aligns the images of the two areas with the bundle adjustment method. Horizontal correction and exposure compensation are required before stitching to improve the consistency of the two images. The graph cut method is used to find the most similar line in the overlapping area, and the Laplace fusion algorithm is used to fuse several pixels near the seam. Only the image on one side of the seam of the overlapping area is retained to obtain the semantic image of the two areas after stitching. The same image stitching process is performed on the semantic images of other areas to finally obtain a complete semantic map of the plantation. The semantic map is an overall image of the plantation and contains semantic information of various landforms and tree species in the plantation, which provides convenience for subsequent monitoring and management of the growth status of trees.

[0032] The above are preferred embodiments of the present invention. A person skilled in the art may make several modifications and improvements without departing from the principles of the present invention, and these modifications and improvements shall also be considered as the protection scope of the present invention.

Claims

1. A semantic mapping method for a plantation scene, characterized in that: The steps include: Step S1: Divide the plantation into different areas, set the flight parameters of the drone, and determine the center point of the camera shooting; Step S2: using drones to collect high-altitude canopy images and low-altitude branches and leaves images respectively, and training capsule neural networks to obtain two classifiers, the two classifiers are high-altitude canopy classifiers and low-altitude branches and leaves classifiers; Step S3: classify the landforms and tree species according to the high altitude canopy classifier; Step S4: verifying the classification result of the previous step according to the low-altitude branch and leaf classifier; Step S5: stitching the verified semantic images to generate a semantic map of the plantation.

2. The semantic mapping method in a plantation scene according to claim 1, characterized in that: In the step S1, a semantic map of the plantation is constructed. Considering the limitation of imaging size, the plantation is first divided into different areas, and then photographed, identified and stitched, and each area is set as a standard square acquisition area; a certain height safety range is set for the UAV flight, and the aerial photography position of the UAV is set as the center position of each standard area. The staff controls the UAV to take fixed-point photos of the plantation, and the value of the fixed-point distance is related to the parameters of the area range of the single-frame photography of the UAV.

3. The semantic mapping method in a plantation scene according to claim 2 is characterized in that: The area range of a single frame shot by a drone is the lens field of view of the drone camera, and its calculation formula is: field of view FOV = working distance (WD) * target size (H OR V) / focal length F, where the value of WD is obtained through the distance and angle between the drone and the controller's signal receiver H = L * sinθ, is the working height of the drone, and the target size is the size of the lens shooting area. Taking into account the possibility of distortion at the edge of the image, adjacent images are allowed to retain a certain proportion of overlap during shooting, and the effective imaging field of view is set based on the lens field of view.

4. The semantic mapping method in a plantation scene according to claim 1, characterized in that: The step S2 uses a drone equipped with an RGB camera to take aerial photos of the plantation area at high altitude to obtain canopy images of ponds, grasslands, shrubs and different tree species, and then collects branch and leaf images of different tree species at low altitude; pre-processes the images, uses a median filter to reduce noise on the images, and performs interpolation processing on images with lower resolution to improve their resolution; According to the actual environment, LabelImg software was used to divide this dataset into ponds, sand, mud, grassland, shrubs, and various economic trees. The capsule network requires a smaller training set than the convolutional neural network. At the same time, the data type processed by the capsule layer inside the capsule neural network is in vector format, which has better recognition and classification effects on complex scenes with multiple trees and multiple branches and leaves intersecting in plantations. Therefore, a capsule neural network was built, and the capsule neural network was trained with the high-altitude canopy dataset and the low-altitude branches and leaves dataset, respectively, to obtain the high-altitude canopy classifier and the low-altitude branches and leaves classifier.

5. The semantic mapping method in a plantation scene according to claim 1, characterized in that: In step S3, the drone flies high above the plantation, stops at the center of each collection area, and takes aerial photos to obtain the topography of the plantation and the canopy profile information of different trees, and uses a high-altitude canopy classifier to classify the environment and tree species in real time and efficiently.

6. The semantic mapping method in a plantation scene according to claim 1, characterized in that: In step S4, the sampled objects are classified and verified according to the low-altitude branch and leaf classifier to see whether the verification result is consistent with the first classification result. If not, the semantic image obtained by the first classification is updated.

7. The semantic mapping method in a plantation scene according to claim 1, characterized in that: In step S5, during the aerial photography process, there is overlap in the images of different acquisition areas, and it is necessary to construct a panoramic semantic map of the plantation. Therefore, it is necessary to use image stitching to eliminate the negative impact of image overlap; first, it is necessary to use the SIFT algorithm to extract feature points based on the given two-area images, and match these feature points with feature descriptors, that is, feature point attributes, to obtain the same feature points in the two-area images, that is, the feature points of the overlapping area; then, the homography matrix of the two-area images is calculated based on the matched feature points to obtain the position of one area relative to the other area, and the homography matrix is ​​solved using the RANSAC algorithm, and combined with the light The bundle adjustment method is used for joint optimization to align the images of the two areas. Horizontal correction and exposure compensation are required before stitching to improve the consistency of the two images. The graph cut method is used to find the most similar lines in the overlapping area, and the Laplace fusion algorithm is used to fuse several pixels near the seam. Only the image on one side of the seam of the overlapping area is retained to obtain the semantic image of the two areas after stitching. The same image stitching process is performed on the semantic images of other areas to finally obtain a complete semantic map of the plantation. The semantic map is a full-view image of the plantation, and contains semantic information of various landforms and tree species in the plantation, which provides convenience for the subsequent monitoring and management of the growth status of trees.