Tree species analysis method and device, storage medium and computer equipment
Through the combination of multispectral images and point cloud data, the problems of high cost and large size of lidar are solved, and efficient and accurate tree species recognition is achieved, and suitable for transmission lines and other vegetation management fields.
Patent Information
- Application Number
- CN202411159788.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-01
AI Technical Summary
The high cost and large volume and weight of lidar in the prior art limit their large-scale promotion and application in transmission lines, resulting in insufficient tree barrier detection efficiency and accuracy.
Using a combination of multispectral images and point cloud data, by obtaining multispectral images and point cloud data around the transmission line, using preset classification features for classification and identification, constructing the three-dimensional canopy structure information of the tree, and inputting it to the pre-trained Tree species recognition model for identification.
It reduces the detection cost, improves the accuracy and efficiency of tree species identification, and is suitable for large-scale applications. It is not limited to transmission line patrols, but can also be used in other vegetation monitoring and management fields.
Smart Images

Figure CN118887478A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a tree species analysis method, device, storage medium and computer equipment. Background Art
[0002] In modern society, power supply is one of the important infrastructures for social operation, and the stable operation of transmission lines is crucial to ensure power supply. However, in actual operation, transmission lines are often affected by trees, which may become potential tree barriers, posing safety hazards and risks of operational failures to transmission lines. By identifying and evaluating the types and growth status of surrounding trees, potential tree barrier problems can be effectively predicted and prevented. For example, some tree species grow faster and have dense branches and leaves, which may have a more significant impact on transmission lines.
[0003] The existing tree species analysis technology has initially realized the "drone patrol + human patrol" line inspection mode. The promotion and application of drones combined with laser radar in power transmission line inspection has greatly improved the efficiency of power transmission line channel inspection. However, the high cost, large size and heavy weight of laser radar limit its possibility of large-scale promotion and application. Summary of the invention
[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defects in the prior art that the high cost, large size and heavy weight of laser radar limit its possible large-scale promotion and application.
[0005] In a first aspect, the present application provides a tree species analysis method, the method comprising:
[0006] Acquire initial multispectral images and initial point cloud data of the transmission line and its surrounding objects, including various trees;
[0007] According to the preset classification features, the initial multispectral image and the initial point cloud data are classified and identified to obtain the tree multispectral image and the tree point cloud data;
[0008] Determine the two-dimensional canopy morphological structure information of each tree from the tree multispectral image, and determine the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data, so as to construct the three-dimensional canopy structure information of each tree;
[0009] The multispectral image containing the three-dimensional canopy structure information of each tree is input into the pre-trained tree species recognition model to obtain the tree species recognition results corresponding to each tree.
[0010] In one embodiment, the step of classifying and identifying the initial multispectral image and the initial point cloud data according to the preset classification features to obtain the tree multispectral image and the tree point cloud data includes:
[0011] According to the classification characteristics, the grid method and horizontal section method are used to classify and identify single trees in the initial multispectral image and initial point cloud data to obtain tree multispectral images and tree point cloud data. The classification characteristics include spectral characteristics, terrain factors, vegetation index, texture characteristics and morphological structure.
[0012] In one embodiment, the process of determining two-dimensional canopy morphological structure information of each tree from a multispectral image of the tree includes:
[0013] For multispectral images of trees, the saliency value of each pixel in the multispectral image is calculated based on the spectral residual method. According to each saliency value, the multispectral image is segmented to obtain the salient areas of the two-dimensional canopy using the selective visual attention mechanism to obtain the two-dimensional canopy morphological structure information of each tree.
[0014] In one embodiment, the process of determining the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data includes:
[0015] Multiple multi-view stereo image pairs are selected from the tree point cloud data, and the spatial extreme points with scale invariance and rotation invariance are extracted from each multi-view stereo image pair based on the SURF algorithm. Multiple initial matching point sets are obtained based on the similarity matching of each spatial extreme point. The reliability of each initial matching point set is evaluated based on the structural information consistency verification mechanism to obtain multiple feature point sets with the same name. Multiple crown height models are constructed by combining the beam net rigorous solution and digital surface elevation model data to form the height information of the two-dimensional crown morphological structure of each tree.
[0016] In one embodiment, the process of constructing the three-dimensional tree canopy structure information of each tree includes:
[0017] For each tree, the corresponding two-dimensional canopy morphological structure information and the corresponding height information of the two-dimensional canopy morphological structure are superimposed to obtain the initial outline of the three-dimensional canopy, and the global energy functions of the interior, exterior and curve are constructed respectively, and the eigenvalues of the active contour model are calculated. The energy function is optimized through iterative calculation to realize dynamic optimization of the three-dimensional canopy contour line of the forest area. In addition, the canopy factors of different tree species in the forest area are combined, and the three-dimensional canopy structure information of the tree is obtained based on morphological technology modeling.
[0018] In one embodiment, the process of obtaining training samples for the tree species identification model includes:
[0019] Clustering the regions in the original image, and determining the vegetation region and non-vegetation region in the original image according to the clustering results;
[0020] Collecting a plurality of positive training samples in the vegetation area and collecting a plurality of negative training samples in the non-vegetation area;
[0021] The tree species label of each positive training sample is obtained, and each positive training sample and each negative training sample are enhanced through noise perturbation and geometric transformation.
[0022] In one of the embodiments, the tree species recognition model is optimized using a channel attention module and a spatial attention module, wherein the channel attention module is used to extract sensitive features of different tree species to achieve adaptive learning of vegetation sensitive features, and the spatial attention module is used to construct a multi-scale context cascade module.
[0023] In a second aspect, the present application provides a tree species analysis device, the device comprising:
[0024] An initial data acquisition module is used to acquire initial multispectral images and initial point cloud data of the transmission line and its surrounding objects, including various trees;
[0025] A tree data determination module is used to classify and identify the initial multispectral image and the initial point cloud data according to preset classification features to obtain the tree multispectral image and the tree point cloud data;
[0026] A three-dimensional canopy structure information construction module is used to determine the two-dimensional canopy morphological structure information of each tree from the tree multispectral image, and to determine the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data, so as to construct the three-dimensional canopy structure information of each tree;
[0027] The tree species identification result acquisition module is used to input the multispectral image containing the three-dimensional canopy structure information of each tree into a pre-trained tree species identification model to obtain the tree species identification result corresponding to each tree.
[0028] In a third aspect, the present application provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the tree species analysis method in any of the above embodiments.
[0029] In a fourth aspect, the present application provides a computer device, comprising: one or more processors, and a memory;
[0030] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps of the tree species analysis method in any of the above embodiments are performed.
[0031] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0032] In the tree species analysis method, device, storage medium and computer equipment provided in the present application, the method of using multispectral images and point cloud data can reduce costs compared to traditional laser radar technology. Multispectral images can be obtained through conventional drones or ground cameras, which are low-cost and easy to operate. Compared with laser radar, multispectral images and point cloud data are lighter and easier to carry, and do not require complex equipment and a large amount of manpower support. Multispectral images can provide rich spectral information, which helps to accurately extract the apparent characteristics of trees, and point cloud data provides height information and more detailed three-dimensional structure of trees. Inputting the three-dimensional canopy structure information of trees contained in multispectral images into the pre-trained tree species recognition model can improve the accuracy of tree species recognition. This method is not only suitable for power transmission line inspections, but can also be applied to other fields that require monitoring and management of vegetation. Due to the relative portability and cost advantages of technical equipment, this method has great potential and feasibility for large-scale application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0034] Figure 1 A schematic diagram of the process of the tree species analysis method provided in the embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of a tree species analysis device provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] The present application provides a tree species analysis method. The following embodiments are described by taking the method applied to a computer device as an example. It can be understood that the computer device can be any device with data processing functions, including but not limited to a single server, a server cluster, a personal laptop computer, a desktop computer, etc. Figure 1 As shown, the method includes:
[0039] S101: Acquire initial multispectral images and initial point cloud data of a transmission line and its surrounding objects, wherein the surrounding objects include various trees.
[0040] Among them, multispectral images are images taken using sensors that can capture multiple bands (usually including visible light and infrared spectra). Each band corresponds to a different spectral range and can provide different characteristic information of vegetation and surface objects. For example, the infrared band can help detect the health of vegetation, while the visible light band is used for general visual information. Point cloud is a data set consisting of a large number of discrete points, each of which has its coordinates in three-dimensional space and possible attribute information. Point cloud data can provide high-precision surface shape and object structure information such as buildings, trees, etc. The surrounding objects of the transmission line can include transmission towers, poles, and vegetation. It can be understood that the categories involved in the acquired initial multispectral images and initial point cloud data must match the research problem and have obvious representativeness; at the same time, the basic assumptions of applicability must be met, such as samples are spatially independent, the number of samples of each category must reach the minimum number, and the number ratio between samples must be balanced; in addition, the spatial scale must match the research problem, and the reference data must be randomly sampled as much as possible and cover the entire research area.
[0041] In this step, for the initial multispectral image, modern drones equipped with multispectral sensors can fly near the transmission lines and collect images at a predetermined path and altitude. The advantage of drones is that they can respond quickly and accurately locate the shooting position, thereby obtaining high-resolution multispectral images. In the case where drones cannot be used, ground cameras can also capture multispectral images manually or automatically. This method is suitable for smaller areas or when you need to get closer to the ground. For the initial point cloud data, photogrammetry techniques, including structured light scanning, can be used to capture images at different angles and then calculate the three-dimensional position of objects based on the overlap and feature points in the image.
[0042] S102: Classify and identify the initial multispectral image and the initial point cloud data according to preset classification features to obtain the tree multispectral image and the tree point cloud data.
[0043] Classification and recognition refers to classifying images or data into different categories or sets of categories based on their features. For example, objects in an image can be classified into categories such as trees, water bodies, and buildings.
[0044] In this step, for the initial multispectral image, color information in different bands, such as red, green, and blue bands, can be extracted, NDVI can be calculated to assess the health and distribution of vegetation, and the texture of the image can be analyzed to obtain more detailed vegetation features. For the initial point cloud data, height information can be extracted based on the position of the point in the point cloud data to identify the vertical distribution of trees, and the characteristics of the crown shape can be extracted based on the distribution and density of the point cloud data. Classification and recognition can be performed using a classification model. For example, a machine learning model such as a support vector machine (SVM), random forest, or deep learning model such as a convolutional neural network (CNN) is trained using labeled training data (such as manually annotated tree areas), and the trained model is used to predict the probability or category of each pixel or point in the new multispectral image and point cloud data belonging to a tree. This will generate a multispectral image of trees and point cloud data of trees.
[0045] S103: Determine the two-dimensional canopy morphological structure information of each tree from the tree multispectral image, and determine the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data, so as to construct the three-dimensional canopy structure information of each tree.
[0046] In this step, the multispectral image of trees is image data obtained through multispectral remote sensing technology, which contains tree reflectance information in different bands. For the acquisition of canopy morphological structure information, image preprocessing can be performed first, including geometric correction, radiation correction and band synthesis, to ensure image quality and accuracy; then the morphological characteristics of the tree canopy are extracted from the multispectral image. Tree point cloud data is obtained through structured light scanning and other technologies, providing three-dimensional spatial information of trees. To obtain tree canopy structure information, point cloud preprocessing can be performed first, including ground removal and point cloud segmentation, to obtain separate tree objects; then height information extraction can be performed, and the height information of trees can be extracted from the point cloud data, for example, by removing ground points from the point cloud, using clustering or segmentation algorithms to separate the point cloud data into separate tree objects, and for each tree object, calculating its height, usually the distance from the lowest point to the highest point of the canopy.
[0047] The two-dimensional canopy morphological structure information and height information can be combined to construct the three-dimensional canopy structure information of each tree. For example, the features from multispectral images and point cloud data are combined to describe the overall morphology and structure of the tree, and the three-dimensional coordinates and height information provided by the point cloud data are used to reconstruct the three-dimensional morphology of the tree, including the shape and size of the crown.
[0048] S104: Inputting the multispectral image containing the three-dimensional canopy structure information of each tree into a pre-trained tree species recognition model to obtain a tree species recognition result corresponding to each tree.
[0049] In this step, the multispectral image containing the 3D canopy structure information of each tree is used as input to the pre-trained tree species recognition model. The model analyzes and processes the input 3D canopy structure information and infers the possible tree species of each tree through the learned features and patterns. The model outputs the tree species recognition result corresponding to each tree, usually a probability distribution or category label.
[0050] In the above embodiments, compared with the traditional LiDAR technology, the method of using multispectral images and point cloud data can reduce costs. Multispectral images can be obtained through conventional drones or ground cameras, which are low-cost and easy to operate. Compared with LiDAR, multispectral images and point cloud data are lighter and easier to carry, and do not require complex equipment and a large amount of manpower support. Multispectral images can provide rich spectral information, which helps to accurately extract the apparent characteristics of trees, and point cloud data provides height information and more detailed three-dimensional structure of trees. Inputting the three-dimensional canopy structure information of trees contained in multispectral images into the pre-trained tree species recognition model can improve the accuracy of tree species recognition. This method is not only suitable for power transmission line inspections, but can also be applied to other fields where vegetation monitoring and management are required. Due to the relative portability and cost advantages of technical equipment, this method has great potential and feasibility for large-scale application.
[0051] In one embodiment, the steps of classifying and identifying the initial multispectral image and the initial point cloud data according to preset classification features to obtain the tree multispectral image and the tree point cloud data include:
[0052] According to the classification characteristics, the grid method and horizontal section method are used to classify and identify single trees in the initial multispectral image and initial point cloud data to obtain tree multispectral images and tree point cloud data. The classification characteristics include spectral characteristics, terrain factors, vegetation index, texture characteristics and morphological structure.
[0053] Among them, the grid method is usually used to process multispectral image data, dividing the image into grid units for analysis and feature extraction. The horizontal section rule is more applied to point cloud data, extracting the morphological and structural characteristics of trees, such as height, width, etc. through horizontal sections. Spectral characteristics refer to the reflectivity or spectral curve of trees in different bands. Terrain factors refer to the characteristics of the terrain around trees, such as elevation, slope, etc. Vegetation index refers to an index that reflects the degree of vegetation coverage and growth status, such as NDVI (normalized difference vegetation index). Texture features describe the characteristics of tree surface texture and distribution. Morphological structure refers to the geometric shape and structural characteristics of trees, such as height, diameter, etc.
[0054] Specifically, first, the initial multispectral image and initial point cloud data can be preprocessed, including denoising, registration, normalization and other steps to ensure data quality and consistency. The grid method is used to extract spectral features and texture features from the multispectral image, and the horizontal section method is used to extract morphological structural features and terrain factors from the point cloud data. Spectral features can be represented by band reflectance or index (such as NDVI). Texture features can be described by methods such as local binary pattern (LBP) and gray level co-occurrence matrix of the image. Morphological structural features include geometric features such as height and width of trees. Terrain factors reflect the spatial characteristics of the tree growth environment. Various features extracted from multispectral images and point cloud data are fused to construct a complete feature vector or feature set. Afterwards, machine learning algorithms (such as support vector machines, random forests, deep learning models, etc.) can be used to train and classify features to obtain tree multispectral images and tree point cloud data.
[0055] In this embodiment, combining the multi-dimensional features of multispectral images and point cloud data can improve the accuracy and reliability of classification and overcome the limitations that may exist in a single data source.
[0056] In one embodiment, the process of determining two-dimensional canopy morphological structure information of each tree from a multispectral image of the tree includes:
[0057] For multispectral images of trees, the saliency value of each pixel in the multispectral image is calculated based on the spectral residual method. According to each saliency value, the multispectral image is segmented to obtain the salient areas of the two-dimensional canopy using the selective visual attention mechanism to obtain the two-dimensional canopy morphological structure information of each tree.
[0058] Among them, the spectral residual method is a technique for calculating the saliency of pixels in an image. It determines the saliency of a pixel by comparing the difference between the spectral reflectance of each pixel and the average value of its surrounding area or the average value of the entire image. The saliency value of each pixel reflects the prominence or importance of the pixel in the image, and is usually calculated by a saliency detection method. The selective visual attention mechanism imitates the working method of the human visual system and determines the focus of visual attention based on the saliency values of different areas in the image. In image segmentation, the selective visual attention mechanism helps focus attention on areas with higher saliency so as to more accurately extract the contours or features of the target object. Two-dimensional canopy morphological structure information refers to the canopy shape and structure information of trees in two-dimensional images, including the contour, size, shape and other features of the crown.
[0059] Specifically, the spectral residual method is used to calculate the significance value of each pixel in the multispectral image. The spectral reflectance of each pixel can be compared with the statistical information of the surrounding area (such as mean, variance) to determine the significance of the pixel. Based on the calculated significance value, the selective visual attention mechanism is applied to segment the multispectral image into significant regions, ensuring that the segmentation results can better reflect the canopy area of the tree and ignore or reduce background interference. Through image processing and analysis techniques (such as edge detection and morphological processing), the two-dimensional canopy morphological structure information of the tree is extracted from the segmented significant region, including the contour, area, shape and other features of the crown.
[0060] In this embodiment, the spectral residual method combined with the selective visual attention mechanism can effectively segment the tree canopy area, avoiding the common background confusion or boundary blurring problems in traditional methods, thereby improving the accuracy and precision of segmentation. The application of automated saliency detection and visual attention mechanism segmentation technology can greatly improve the efficiency and processing speed of tree canopy information extraction, which is suitable for the processing and analysis needs of large-scale multispectral image data.
[0061] In one embodiment, the process of determining the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data includes:
[0062] Multiple multi-view stereo image pairs are selected from the tree point cloud data, and the spatial extreme points with scale invariance and rotation invariance are extracted from each multi-view stereo image pair based on the SURF algorithm. Multiple initial matching point sets are obtained based on the similarity matching of each spatial extreme point. The reliability of each initial matching point set is evaluated based on the structural information consistency verification mechanism to obtain multiple feature point sets with the same name. Multiple crown height models are constructed by combining the beam net rigorous solution and digital surface elevation model data to form the height information of the two-dimensional crown morphological structure of each tree.
[0063] Among them, a multi-view stereo image pair refers to two or more images obtained from different perspectives or different sensors. SURF (Speeded Up Robust Features) is an algorithm for image feature extraction and matching, which has scale invariance and rotation invariance and is suitable for feature extraction and matching of multi-view images. In the SURF algorithm, spatial extreme points refer to significant feature points in an image, which have the characteristics of remaining invariant under different scales and rotations. Feature points extracted from a multi-view image pair using the SURF algorithm are used, and a point set is formed by preliminary matching based on the similarity of the feature points. The structural information consistency verification mechanism is a method for evaluating the reliability of a matching point set, which usually involves considering structural information such as the spatial distribution of the point set and the geometric relationship between feature points to confirm the correctness and stability of the matching points. The feature point set with the same name is a set of multiple matching points that are confirmed to be the same object or feature after the structural information consistency check. The beam net rigorous solution is a method for processing aerial triangulation data into a high-precision three-dimensional model, which is suitable for modeling a large range of terrain or objects. Digital surface elevation model data is a commonly used data format in geographic information systems (GIS) to describe the elevation information of the surface. The tree crown height model is a height model from the top of the tree to the ground constructed using the beam net rigorous solution and surface elevation model data.
[0064] Specifically, the SURF algorithm is used to extract spatial extreme points for each pair of multi-view stereo images, and the descriptors of the feature points are used to match them to obtain the initial feature point matching set. The consistency of the structural information of each initial matching point set is checked, and the correctness and stability of the matching points are verified by geometric constraints, spatial distribution, etc., and the feature point sets with the same name are screened out. The beam net rigorous solution is used in combination with the digital surface elevation model data to build a crown height model for each feature point set with the same name. These models describe the height information of the two-dimensional canopy morphological structure of each tree.
[0065] In this embodiment, by combining multi-view stereo images and tree point cloud data, the SURF algorithm and structural information consistency check can accurately extract and match the characteristic points of trees, thereby accurately reconstructing the morphological structure and height information of the tree crown. The beam net rigorous solution is used to process a large amount of characteristic point data and surface elevation data, which realizes the rapid modeling and analysis of a large range of trees, and improves the efficiency and accuracy of data processing.
[0066] In one embodiment, the process of constructing the three-dimensional tree canopy structure information of each tree includes:
[0067] For each tree, the corresponding two-dimensional canopy morphological structure information and the corresponding height information of the two-dimensional canopy morphological structure are superimposed to obtain the initial outline of the three-dimensional canopy, and the global energy functions of the interior, exterior and curve are constructed respectively, and the eigenvalues of the active contour model are calculated. The energy function is optimized through iterative calculation to realize dynamic optimization of the three-dimensional canopy contour line of the forest area. In addition, the canopy factors of different tree species in the forest area are combined, and the three-dimensional canopy structure information of the tree is obtained based on morphological technology modeling.
[0068] Among them, the initial contour of the three-dimensional canopy is obtained by superimposing the two-dimensional canopy morphological structure information and height information to obtain the preliminary contour of the tree canopy in three-dimensional space. The global energy function is used to describe and quantify the energy functions of different features such as the internal, external and curve of the active contour model, so as to drive the contour model to adjust and optimize in the image or space. The active contour model is a contour model based on the principle of energy minimization. It is usually used for image segmentation and object edge detection, and can automatically perceive and adapt to contour changes. The iterative operation is to iteratively optimize the global energy function. By adjusting and moving the contour boundary points, the energy function is minimized, thereby optimizing and adjusting the three-dimensional contour of the tree canopy. Different tree species have specific canopy morphological characteristics and growth laws. These characteristics are called canopy factors. Considering these factors can more accurately model and describe the canopy structure of various trees. Morphological technology modeling uses mathematical morphological methods to analyze and process the morphological characteristics of trees, such as edge detection, morphological reconstruction and other technologies, which are used to establish a three-dimensional canopy structure model of trees.
[0069] Specifically, the two-dimensional canopy morphological structure information is superimposed on the corresponding height information to obtain the preliminary three-dimensional canopy outline of the tree. A global energy function including internal, external and curve energy is constructed to describe and adjust the optimization direction of the tree canopy outline. An iterative algorithm, such as the Active Contour Model, is used to adjust the three-dimensional outline of the tree canopy according to the guidance of the global energy function, so that it is gradually optimized to the optimal state. Considering the growth characteristics and canopy morphological factors of different tree species, the model parameters or algorithms are adjusted to more accurately reflect the canopy structure characteristics of different tree species.
[0070] In this embodiment, by combining the two-dimensional canopy morphological structure information and height information, the three-dimensional canopy contour of the tree can be accurately reconstructed through the active contour model optimization driven by the global energy function, including an accurate description of the shape and size.
[0071] In one embodiment, the process of obtaining training samples for the tree species identification model includes:
[0072] Clustering the regions in the original image, and determining the vegetation region and non-vegetation region in the original image according to the clustering results;
[0073] Collecting a plurality of positive training samples in the vegetation area and collecting a plurality of negative training samples in the non-vegetation area;
[0074] The tree species label of each positive training sample is obtained, and each positive training sample and each negative training sample are enhanced through noise perturbation and geometric transformation.
[0075] Specifically, clustering algorithms (such as K-means clustering, hierarchical clustering, etc.) are used to divide the original image into several categories. Clustering can be performed based on the color, texture, or other features of the pixels to separate the vegetation and non-vegetation areas. Based on the clustering results, determine which areas belong to the vegetation area and which belong to the non-vegetation area. Multiple positive training samples are randomly or systematically collected in the vegetation area to ensure that different types of vegetation are covered. Multiple negative training samples are also collected in the non-vegetation area, which usually represent background or non-vegetation objects. Each positive training sample is manually or automatically labeled to determine which vegetation or tree species they belong to. Data augmentation techniques are applied to each positive and negative training sample, such as: noise perturbation, adding random noise to the image to simulate the changes and noise in the actual field environment; geometric transformations, such as rotation, scaling, mirroring, etc., increase the diversity of samples and make the model more robust.
[0076] In this embodiment, by clustering and distinguishing vegetation from non-vegetation areas, a more accurate training data set is provided to help the machine learning model better learn the characteristics of vegetation and improve the accuracy of detection and classification of vegetation areas. Enhancing training samples can enable the model to better cope with real-world challenges such as different lighting conditions, occlusion, and posture changes, and improve the generalization and robustness of the model. Data enhancement can effectively reduce the risk of overfitting because the model is exposed to more sample variations during training, rather than just remembering specific samples in the training set.
[0077] In one example, a clustering-based vegetation sample generation method was designed based on the spectral texture and shape feature information of vegetation. This method generates high-precision vegetation sample labels and establishes a vegetation semantic segmentation sample set for the deep learning method. First, the original image is clustered, the NDVI mean of each category is calculated, and the OSTU algorithm is used to automatically determine the threshold to determine whether each category is a vegetation class; then, a similar number of positive and negative samples are automatically collected for the distinguished vegetation and non-vegetation classes, and samples are automatically randomly extracted for each cluster category based on the area to ensure sample diversity; finally, the SVM is used to train and test the automatically collected samples to obtain the final vegetation extraction results.
[0078] In this example, a sliding window can be used to select tree species samples. That is, a window of a certain size is used to crop samples according to a pre-set interval. This method can ensure that the model fully learns the characteristics between different objects and enables the model to fully learn the features of objects in remote sensing images.
[0079] Sample data enhancement refers to the process of processing the data in the sample to generate new data. Data enhancement can improve the generalization ability of the model and accelerate the convergence of the model. The image enhancement methods used in this example include noise perturbation and geometric transformation to improve sample diversity. First, the cut 256×256 pixel original image and its mask are input into the image enhancement algorithm, and Gaussian noise interference is added to the original image, that is, randomly selecting pixels and changing the pixel value at that position. Then the original image and mask are rotated and mirrored to make them suitable for objects of different shapes and angles in remote sensing images.
[0080] In one embodiment, the tree species recognition model is optimized using a channel attention module and a spatial attention module, wherein the channel attention module is used to extract sensitive features of different tree species to achieve adaptive learning of vegetation sensitive features, and the spatial attention module is used to construct a multi-scale context cascade module.
[0081] Among them, the channel attention module is a technology used to enhance the performance of deep neural networks. It enhances or suppresses the response of a specific channel by learning the weights of each channel. This allows the network to pay more attention to features that are useful for classification tasks, such as the difference between different tree species. The spatial attention module is used to capture the importance of different positions in the input image, usually by learning pixel-level weights to strengthen or suppress the response of a specific position. In tree species recognition, it can help the model focus on key features at different scales and positions, thereby improving the accuracy of classification. The multi-scale context cascade module refers to the cascading or fusion of features at multiple scales to obtain richer contextual information. In tree species recognition, this module can help the model understand the characteristics of trees at different scales, such as from overall structure to subtle textures, thereby improving the robustness and accuracy of the classification model.
[0082] Furthermore, since the size of remote sensing images is usually 5-6 times or even larger than the size of indoor / outdoor images, additional cutting and stitching steps are required to obtain the final full-resolution segmentation prediction results. This embodiment adopts a weighted average strategy, which can effectively eliminate the stitching seam effect caused by stitching images, by showing the stitching process of three adjacent probability maps in a weighted average manner, where the square numbers represent the number of overlaps of statistical pixels. The stitching strategy of directly covering the previous image with the subsequent image is no longer used. First, the prediction probability map of each small image patch is selected, and the weighted average probability prediction result is obtained according to the voting strategy as the final prediction result. Each parameter at the corresponding position of the weight matrix is filled with the number of overlaps of each statistical pixel to eliminate the boundary effect caused by the inconsistent prediction results of adjacent patch images.
[0083] The following is a description of the tree species analysis device provided in the embodiment of the present application. The tree species analysis device described below and the tree species analysis method described above can be referred to in correspondence with each other. The present application provides a tree species analysis device, such as Figure 2 As shown, the device comprises:
[0084] An initial data acquisition module 201 is used to acquire initial multispectral images and initial point cloud data of the transmission line and its surrounding objects, wherein the surrounding objects include various trees;
[0085] The tree data determination module 202 is used to classify and identify the initial multispectral image and the initial point cloud data according to preset classification features to obtain the tree multispectral image and the tree point cloud data;
[0086] A three-dimensional canopy structure information construction module 203 is used to determine the two-dimensional canopy morphological structure information of each tree from the tree multispectral image, and determine the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data, so as to construct the three-dimensional canopy structure information of each tree;
[0087] The tree species identification result acquisition module 204 is used to input the multispectral image containing the three-dimensional canopy structure information of each tree into a pre-trained tree species identification model to obtain the tree species identification result corresponding to each tree.
[0088] In one embodiment, the tree data determination module 202 includes:
[0089] The classification and recognition unit is used to classify and recognize individual trees in the initial multispectral image and initial point cloud data according to the classification features, using the grid method and the horizontal section method, to obtain the tree multispectral image and tree point cloud data. The classification features include spectral features, terrain factors, vegetation index, texture features and morphological structure.
[0090] In one embodiment, the 3D canopy structure information building module 203 includes:
[0091] The two-dimensional structural information determination unit calculates the significance value of each pixel in the multispectral image of trees based on the spectral residual method. According to each significance value, the multispectral image is segmented to obtain the significant area of the two-dimensional canopy by using the selective visual attention mechanism, so as to obtain the two-dimensional canopy morphological structure information of each tree.
[0092] In one embodiment, the 3D canopy structure information building module 203 includes:
[0093] The height information determination unit is used to select multiple multi-view stereo image pairs in the tree point cloud data, extract the spatial extreme points with scale invariance and rotation invariance of each multi-view stereo image pair based on the SURF algorithm, obtain multiple initial matching point sets based on the similarity matching of each spatial extreme point, evaluate the reliability of each initial matching point set based on the structural information consistency verification mechanism, obtain multiple feature point sets with the same name, and construct multiple crown height models in combination with the beam net rigorous solution and digital surface elevation model data to form the height information of the two-dimensional crown morphological structure of each tree.
[0094] In one embodiment, the 3D canopy structure information building module 203 includes:
[0095] The three-dimensional structure information determination unit is used to superimpose the tree two-dimensional canopy morphological structure information and the height information of the corresponding tree two-dimensional canopy morphological structure for each tree, obtain the initial contour of the three-dimensional canopy, construct the global energy functions of its interior, exterior and curve respectively, calculate the eigenvalues of the active contour model, iteratively calculate and optimize the energy function to achieve dynamic optimization of the three-dimensional canopy contour line of the forest area, and combine the canopy factors of different tree species in the forest area, based on morphological technology modeling, to obtain the tree three-dimensional canopy structure information of the tree.
[0096] In one embodiment, the tree species identification result acquisition module 204 includes:
[0097] A region clustering unit is used to cluster regions in the original image and determine vegetation regions and non-vegetation regions in the original image according to the clustering results;
[0098] A training sample collection unit, used to collect a plurality of positive training samples in a vegetation area, and a plurality of negative training samples in a non-vegetation area;
[0099] The tree species label acquisition unit is used to obtain the tree species label of each positive training sample, and enhance each positive training sample and each negative training sample through noise perturbation and geometric transformation.
[0100] In one embodiment, the tree species recognition model is optimized using a channel attention module and a spatial attention module, wherein the channel attention module is used to extract sensitive features of different tree species to achieve adaptive learning of vegetation sensitive features, and the spatial attention module is used to construct a multi-scale context cascade module.
[0101] In one embodiment, the present application further provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the tree species analysis method as described in any one of the above embodiments.
[0102] In one embodiment, the present application further provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the tree species analysis method as described in any one of the above embodiments.
[0103] Indicatively, if Figure 3 As shown, Figure 3 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 3 The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301 for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute the instructions to perform the tree species analysis method of any of the above embodiments.
[0104] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.
[0105] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. Herein, "one", "one", "said", "the" and "it" may also include plural forms, unless the context clearly indicates another way. A plurality refers to at least two cases, such as 2, 3, 5 or 8, etc. "And / or" includes any and all combinations of the relevant listed items.
[0107] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0108] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A tree species analysis method, characterized in that: The method comprises: Acquire initial multispectral images and initial point cloud data of the transmission line and its surrounding objects, wherein the surrounding objects include a variety of trees; Classify and identify the initial multispectral image and the initial point cloud data according to preset classification features to obtain a tree multispectral image and tree point cloud data; Determine the two-dimensional canopy morphological structure information of each of the trees from the tree multispectral image, and determine the height information of the two-dimensional canopy morphological structure of each of the trees from the tree point cloud data, so as to construct the three-dimensional canopy structure information of each of the trees; The multispectral image containing the three-dimensional canopy structure information of each of the trees is input into a pre-trained tree species recognition model to obtain the tree species recognition result corresponding to each of the trees.
2. The tree species analysis method according to claim 1, characterized in that: The step of classifying and identifying the initial multispectral image and the initial point cloud data according to the preset classification features to obtain the tree multispectral image and the tree point cloud data comprises: According to the classification features, a grid method and a horizontal section method are used to classify and identify individual trees in the initial multispectral image and the initial point cloud data to obtain the tree multispectral image and the tree point cloud data. The classification features include spectral features, terrain factors, vegetation indexes, texture features and morphological structures.
3. The tree species analysis method according to claim 1, characterized in that: The process of determining the two-dimensional canopy morphological structure information of each tree from the tree multispectral image comprises: For the multispectral image of the trees, the significance value of each pixel in the multispectral image is calculated based on the spectral residual method. According to each of the significance values, the multispectral image is segmented using a selective visual attention mechanism to obtain significant areas of the two-dimensional canopy, so as to obtain the two-dimensional canopy morphological structure information of each tree.
4. The tree species analysis method according to claim 1, characterized in that: The process of determining the height information of the two-dimensional canopy morphological structure of each tree from the tree point cloud data comprises: A plurality of multi-view stereo image pairs are selected from the tree point cloud data, and spatial extreme points with scale invariance and rotation invariance are extracted from each of the multi-view stereo image pairs based on the SURF algorithm. A plurality of initial matching point sets are obtained after similarity matching based on each of the spatial extreme points. The reliability of each of the initial matching point sets is evaluated based on a structural information consistency verification mechanism to obtain a plurality of feature point sets with the same name. A plurality of tree crown height models are constructed by combining a beamnet rigorous solution and digital surface elevation model data to form height information of the two-dimensional canopy morphological structure of each of the trees.
5. The tree species analysis method according to claim 1, characterized in that: The process of constructing the three-dimensional canopy structure information of each tree includes: For each tree, the corresponding two-dimensional canopy morphological structure information and the corresponding height information of the two-dimensional canopy morphological structure are superimposed to obtain the initial outline of the three-dimensional canopy, and the global energy functions of the interior, exterior and curve are constructed respectively, and the eigenvalues of the active contour model are calculated. The energy function is optimized through iterative calculation to realize dynamic optimization of the three-dimensional canopy contour line of the forest area. In addition, the canopy factors of different tree species in the forest area are combined, and the three-dimensional canopy structure information of the tree is obtained based on morphological technology modeling.
6. The tree species analysis method according to claim 1, characterized in that: The training sample acquisition process of the tree species identification model includes: Clustering the regions in the original image, and determining the vegetation region and the non-vegetation region in the original image according to the clustering result; Collecting a plurality of positive training samples in the vegetation area, and collecting a plurality of negative training samples in the non-vegetation area; A tree species label of each of the positive training samples is obtained, and each of the positive training samples and each of the negative training samples is enhanced through noise perturbation and geometric transformation.
7. The tree species analysis method according to any one of claims 1 to 6, characterized in that: The tree species recognition model is optimized using a channel attention module and a spatial attention module, wherein the channel attention module is used to extract sensitive features of different tree species to achieve adaptive learning of vegetation sensitive features, and the spatial attention module is used to construct a multi-scale context cascade module.
8. A tree species analysis device, characterized in that: The device comprises: An initial data acquisition module, used to acquire initial multispectral images and initial point cloud data of the transmission line and its surrounding objects, wherein the surrounding objects include various trees; A tree data determination module, used for classifying and identifying the initial multispectral image and the initial point cloud data according to preset classification features to obtain a tree multispectral image and tree point cloud data; A three-dimensional canopy structure information construction module is used to determine the two-dimensional canopy morphological structure information of each of the trees from the tree multispectral image, and determine the height information of the two-dimensional canopy morphological structure of each of the trees from the tree point cloud data, so as to construct the three-dimensional canopy structure information of each tree; The tree species identification result acquisition module is used to input the multispectral image containing the three-dimensional canopy structure information of each of the trees into a pre-trained tree species identification model to obtain the tree species identification result corresponding to each of the trees.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the tree species analysis method according to any one of claims 1 to 7.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the tree species analysis method according to any one of claims 1 to 7 are performed.
Citation Information
Cited By
Laser radar data processing method for complex forest environment
CN119355750A
Portable textile fabric multi-component fiber component identification method and system
CN119492712A
Tree modeling method based on image acquisition and image recognition of unmanned aerial vehicle
CN119863719A
Tree species identification method and system based on multi-source remote sensing data fusion
CN120873827A
A tree species identification method and system based on multi-source remote sensing data fusion
CN120873827B
