Spartina alterniflora identification and early warning method and device, equipment and storage medium
By acquiring and processing three-dimensional point cloud data, a Spartina alterniflora classification model was constructed, and combined with a deep learning model, the problem of poor accuracy in Spartina alterniflora recognition in the existing technology was solved, and efficient automated identification in complex environments was achieved.
Patent Information
- Application Number
- CN202410891517.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-18
AI Technical Summary
The existing technology for monitoring and identifying the alien invasive species Spartina alterniflora has problems such as low resolution of remote sensing images and large errors in the recognition model, making it difficult to achieve accurate identification.
By obtaining the original point cloud data of the area to be identified, using a three-dimensional laser scanner to collect data, constructing a Spartina alterniflora classification model, extracting feature information, building an early warning assessment model based on a deep learning model, and combining three-dimensional geometry and color information for automatic identification.
It achieves efficient and accurate identification of Spartina alterniflora in a complex mixed environment, reduces interference from irrelevant species and areas, and improves identification accuracy and automation.
Smart Images

Figure CN118799757A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device, equipment and storage medium for identifying and warning Spartina alterniflora. Background Art
[0002] In order to protect the stability of coastal wetland ecosystems and biodiversity, monitoring and early warning of alien invasive species is a very necessary measure. Among them, Spartina alterniflora is one of the world's 100 most dangerous invasive species. It is easy to destroy the biological habitat of marine wetlands and affect the exchange capacity of seawater, causing water quality to deteriorate and induce red tides. It is also difficult to control.
[0003] However, the current monitoring and identification of invasive alien species such as Spartina alterniflora mainly adopts manual inspection and remote sensing image recognition methods. However, the remote sensing image recognition method has problems such as low remote sensing image resolution and large errors in the recognition model.
[0004] In summary, the problems existing in the prior art need to be solved urgently. Summary of the invention
[0005] The present invention provides a method, device, equipment and storage medium for identifying and warning Spartina alterniflora, so as to solve the defects in the prior art and realize accurate identification of Spartina alterniflora.
[0006] The present invention provides a method for identifying and warning Spartina alterniflora, comprising:
[0007] Obtain the original point cloud data of the area to be identified;
[0008] Extracting feature information of the original point cloud data through a classification model of Spartina alterniflora;
[0009] Based on the characteristic information, constructing an early warning assessment model for Spartina alterniflora;
[0010] According to the Spartina alterniflora early warning assessment model, Spartina alterniflora is identified and warned.
[0011] According to the method for identifying and warning Spartina alterniflora provided by the present invention, the step of obtaining original point cloud data of the area to be identified specifically includes:
[0012] The original point cloud data of the area to be identified is collected by a drone along a preset route, and the drone is equipped with a three-dimensional laser scanner.
[0013] According to a method for identifying and warning Spartina alterniflora provided by the present invention, after the step of obtaining the original point cloud data of the area to be identified, the method specifically comprises:
[0014] Preprocessing the original point cloud data;
[0015] The preprocessed original point cloud data is segmented according to the segmentation edge length.
[0016] According to a method for identifying and warning Spartina alterniflora provided by the present invention, the Spartina alterniflora classification model is constructed by the following steps:
[0017] Get historical point cloud data;
[0018] Performing plane fitting on the historical point cloud data that meets the first color threshold range to obtain a fitting plane;
[0019] Clustering the historical point cloud data whose distance from the fitting plane is within a distance threshold to obtain first vegetation point cloud data;
[0020] The first vegetation point cloud data is screened according to a second color threshold range to obtain classification training data including clustered point cloud data of Spartina alterniflora;
[0021] Based on the classification training data, a classification model for Spartina alterniflora is constructed.
[0022] According to a method for identifying and warning Spartina alterniflora provided by the present invention, the step of screening the first vegetation point cloud data according to the second color threshold range to obtain classification training data containing clustered point cloud data of Spartina alterniflora specifically includes:
[0023] Filtering the first vegetation point cloud data according to a second color threshold range to obtain second vegetation point cloud data;
[0024] Based on the centroid point of the second vegetation point cloud data, construct a spherical coordinate system and extract a boundary area of the second vegetation point cloud data;
[0025] Segmenting the second vegetation point cloud data according to the boundary area to obtain a point cloud area;
[0026] The point cloud area is converted into a two-dimensional image, and the two-dimensional image is used to train the Spartina alterniflora classification model.
[0027] According to a method for identifying and warning Spartina alterniflora provided by the present invention, the step of constructing a spherical coordinate system based on the centroid point of the second vegetation point cloud data and extracting the boundary area of the second vegetation point cloud data specifically includes:
[0028] Determine segmentation parameters according to the scanning accuracy of the drone and the distance from the centroid point to the edge of the point cloud;
[0029] The second vegetation point cloud data is segmented according to the segmentation parameters, and a boundary area of the second vegetation point cloud data is extracted.
[0030] According to a method for identifying and warning Spartina alterniflora provided by the present invention, the step of identifying and warning Spartina alterniflora according to the Spartina alterniflora warning assessment model specifically includes:
[0031] According to the Spartina alterniflora early warning assessment model, determining the ratio of the projected area of the Spartina alterniflora to the total area, and the average growth height of the Spartina alterniflora;
[0032] The warning level is determined according to the ratio of the projected area to the total area and the average growth height.
[0033] The present invention also provides a device for identifying and warning Spartina alterniflora, comprising:
[0034] A data acquisition module is used to acquire the original point cloud data of the area to be identified;
[0035] A feature extraction module, used to extract feature information of the original point cloud data through a classification model of Spartina alterniflora;
[0036] A model building module, used to build a Spartina alterniflora early warning assessment model based on the characteristic information;
[0037] The identification and early warning module is used to identify and warn Spartina alterniflora according to the Spartina alterniflora early warning assessment model.
[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the identification and early warning method for Spartina alterniflora as described in any one of the above methods is implemented.
[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the identification and early warning method of Spartina alterniflora as described in any one of the above methods is implemented.
[0040] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for identifying and warning Spartina alterniflora.
[0041] The identification and early warning method, device, equipment and storage medium of Spartina alterniflora provided by the present invention obtain the original point cloud data of the area to be identified; extract the characteristic information of the original point cloud data through the Spartina alterniflora classification model; construct a Spartina alterniflora early warning assessment model based on the characteristic information; and identify and warn Spartina alterniflora according to the Spartina alterniflora early warning assessment model. The present invention can filter out some irrelevant species and areas through the three-dimensional geometry and color information contained in the three-dimensional point cloud, and automatically identify and extract the Spartina alterniflora area in combination with the deep learning model, so as to realize efficient and accurate automatic identification of Spartina alterniflora in a complex mixed environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flow chart of the identification and early warning method of Spartina alterniflora provided by the present invention;
[0044] Figure 2 It is a structural schematic diagram of the identification and early warning device of Spartina alterniflora provided by the present invention;
[0045] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0047] At present, the monitoring and identification of alien invasive species such as Spartina alterniflora mainly adopt manual inspections and remote sensing image recognition methods. In the remote sensing image recognition method, it is necessary to train, verify and test the recognition model through convolutional neural networks, which has certain errors and is difficult to meet the needs of invasive species monitoring in large areas of marine wetlands. Alternatively, Spartina alterniflora can be identified by the differences in the spectral band combinations of different species, but the current remote sensing satellite resolution is low, and there are species with similar spectral characteristics to Spartina alterniflora in complex mixed environments, which brings great challenges to the identification of Spartina alterniflora.
[0048] In order to solve the problems in the prior art, the present invention proposes a method for identifying and warning Spartina alterniflora to achieve accurate identification of Spartina alterniflora. The following describes the method for identifying and warning Spartina alterniflora. Figure 1 As shown, including but not limited to the following steps:
[0049] Step 110: Obtain original point cloud data of the area to be identified.
[0050] In step 110, it is necessary to obtain the original point cloud data of the area to be identified. A laser radar (LiDAR) device can be used to scan the area to be identified. LiDAR has the characteristics of high precision and high resolution, and can generate dense point cloud data. Vehicle-mounted, unmanned aerial vehicle (UAV) or fixed platform LiDAR equipment can be selected, and the appropriate equipment can be selected according to the terrain and range of the area to be identified to ensure the coverage and accuracy of the point cloud data. And the scanning parameters of the LiDAR can be set according to the size and complexity of the area to be identified, including the scanning range, resolution and scanning speed. Determine the scanning path and height to cover the entire area to be identified to avoid data omissions and overlaps. Specifically, the LiDAR device is run on the set scanning path for continuous scanning to obtain three-dimensional point cloud data of the area to be identified.
[0051] Step 120: extracting feature information of the original point cloud data through the Spartina alterniflora classification model.
[0052] In step 120, it is necessary to select a machine learning or deep learning model suitable for the classification of Spartina alterniflora, such as Random Forest, Support Vector Machine (SVM), Convolutional Neural Network (CNN), etc. A large number of labeled data sets containing Spartina alterniflora and other vegetation are collected for training the classification model. The data set should contain the point cloud data of Spartina alterniflora in different growth periods and different environments to ensure the generalization ability of the model. Feature extraction is performed on the point cloud data to generate input features for the classification model. Common point cloud features include geometric features (such as coordinates, normal vectors, curvatures, etc. of points), texture features and statistical features (such as point density, average height, etc.). At the same time, dimensionality reduction methods such as PCA (principal component analysis) can be used to reduce the dimensionality of high-dimensional features, extract the main features, and reduce the computational complexity.
[0053] Specifically, the original point cloud data obtained in step 110 is input into the trained Spartina alterniflora classification model to extract feature information. The classification model will classify each point in the point cloud data, mark the points that may belong to Spartina alterniflora, and extract feature information of these points.
[0054] Step 130: construct an early warning and assessment model for Spartina alterniflora based on the characteristic information.
[0055] In step 130, the feature information extracted from step 120 needs to be collected and organized to ensure the integrity and consistency of the data. The feature information is divided into a training set and a test set to ensure the diversity and coverage of the training data. Next, the early warning assessment model is trained using the training set, and the model parameters are adjusted to optimize the model performance.
[0056] Step 140: Identify and issue an early warning for Spartina alterniflora according to the early warning assessment model for Spartina alterniflora.
[0057] In step 140, the point cloud data collected in real time is input into the early warning assessment model for data preprocessing and feature extraction. The early warning assessment model processes the input feature information and identifies the existence and distribution of Spartina alterniflora. According to the output result of the model, information such as the identification label and position coordinates of Spartina alterniflora is generated. According to the recognition result, early warning information of Spartina alterniflora is generated, including the coverage area, density distribution, etc. of Spartina alterniflora. By setting an early warning threshold, when the coverage area or density of the identified Spartina alterniflora exceeds the set threshold, an early warning is triggered. Specifically, the generated early warning information is issued to relevant managers and users through designated channels (such as text messages, emails, application notifications, etc.). According to the early warning information, corresponding control measures are taken to promptly handle the spread and harm of Spartina alterniflora.
[0058] The identification and early warning method of Spartina alterniflora provided by the present invention obtains the original point cloud data of the area to be identified; extracts the characteristic information of the original point cloud data through the Spartina alterniflora classification model; constructs a Spartina alterniflora early warning assessment model based on the characteristic information; and identifies and warns Spartina alterniflora according to the Spartina alterniflora early warning assessment model. The present invention can filter out a part of irrelevant species and areas through the three-dimensional geometry and color information contained in the three-dimensional point cloud, and automatically identify and extract the Spartina alterniflora area in combination with the deep learning model, so as to realize efficient and accurate automatic identification of Spartina alterniflora in a complex mixed environment.
[0059] As a further optional embodiment, the step of obtaining the original point cloud data of the area to be identified specifically includes:
[0060] The original point cloud data of the area to be identified is collected by a drone along a preset route, and the drone is equipped with a three-dimensional laser scanner.
[0061] Specifically, this embodiment uses a three-dimensional laser scanner on a drone to obtain original point cloud data of the area to be identified, plans the flight route of the drone, and ensures that the complete point cloud data of the area to be identified is obtained.
[0062] As a further optional embodiment, after the step of obtaining the original point cloud data of the area to be identified, the following steps are specifically included:
[0063] Preprocessing the original point cloud data;
[0064] The preprocessed original point cloud data is segmented according to the segmentation edge length.
[0065] In this embodiment, it is necessary to perform point cloud filtering preprocessing on the original point cloud data, define the filtering algorithm parameters and the scanning area coordinate range [Xmin, Xmax, Ymin, Ymax, Zmin, Zmax]. The preprocessing algorithm is used to eliminate outlier noise points in the scanning process and points outside the area to be identified. Preprocessing includes using filtering algorithms (such as mean filtering, Gaussian filtering, statistical filtering, etc.) to remove noise points in the point cloud data and improve data quality. In order to reduce the computational complexity, the point cloud data can be downsampled, and the dense point cloud data can be simplified into a sparse point cloud using methods such as voxel grid filtering. At the same time, the point cloud data is smoothed to reduce mutation points caused by equipment vibration or external interference, thereby improving the continuity and consistency of the point cloud. In addition, the point cloud data is coordinate calibrated to ensure the accuracy of the spatial position of the data and eliminate errors caused by equipment movement or scanning path.
[0066] To segment the original point cloud data, it is necessary to set an appropriate segmentation side length (for example, in meters) according to the size of the area to be identified and the density of the pre-processed point cloud data. Then, a spatial segmentation algorithm (such as Octree or KD-Tree) is used to divide the point cloud data according to the set segmentation side length, and the entire area to be identified is divided into several small blocks, each of which contains a certain amount of point cloud data. The segmented point cloud data is then stored, and the data of each small block is saved separately for subsequent processing and analysis.
[0067] As a further optional embodiment, the classification model of Spartina alterniflora is constructed by the following steps:
[0068] Get historical point cloud data;
[0069] Performing plane fitting on the historical point cloud data that meets the first color threshold range to obtain a fitting plane;
[0070] Clustering the historical point cloud data whose distance from the fitting plane is within a distance threshold to obtain first vegetation point cloud data;
[0071] The first vegetation point cloud data is screened according to a second color threshold range to obtain classification training data including clustered point cloud data of Spartina alterniflora;
[0072] Based on the classification training data, a classification model for Spartina alterniflora is constructed.
[0073] In this embodiment, it is necessary to define the first color threshold range [RGB1, RGB1′] to distinguish between the ground and vegetation point clouds. Among them, RGB1 is [r1-Δr, g1-Δg, b1-Δb], and RGB1′ is [r1+Δr, g1+Δg, b1+Δb]. Here, r1, g1, b1 are the RGB components of the color corresponding to the ground, and Δr, Δg, Δb are color component adjustment parameters, which can be 10-50. Taking into account that there is a certain color difference between the ground and it is not a strictly unified standard color, and there is a large color difference between the ground and the vegetation, the first color threshold range can be used to distinguish between the ground and the vegetation point cloud.
[0074] Next, you need to define the Z coordinate range [Z1-Δh1, Z1+Δh1]. Among them, Z1 is the ground Z coordinate value, and Δh1 is the first height adjustment parameter, which can be 0.1-0.5m. Considering that the ground is not absolutely flat due to potholes, and the drone may shake during flight, the first Z coordinate range can be used to distinguish between point clouds in the ground height area and point clouds in the non-ground area.
[0075] Subsequently, point clouds that satisfy both the Z coordinate range and the first color threshold range are extracted to obtain a more accurate ground point cloud. The acquired ground point cloud is plane-fitted, the distance from the point cloud to the plane in the rectangular area is calculated, and the first threshold D1 is defined, which can be 0.1-0.5m, and point clouds with a fitting plane distance less than D1 are extracted, thereby eliminating point clouds in ground areas (such as rivers, tidal flats, and other ground objects) to obtain the remaining vegetation point cloud P1. By first setting the Z coordinate range and the first color threshold range, regardless of whether the ground is a horizontal plane or an inclined plane, the plane can be accurately fitted through the ground points, avoiding the use of non-ground points for fitting the plane only through the Z coordinate range when the ground is an inclined plane.
[0076] Cluster the remaining vegetation point cloud P1 in the rectangular cube area to obtain several clustered point clouds [S1, S2, S3, …, Sn]. Calculate the RGB mean value of each clustered point cloud [RGB1mean, RGB2mean, RGB3mean, …, RGBnmean].
[0077] Define the second color threshold range [RGB2, RGB2′], where RGB2 is [r2-Δr, g2-Δg, b2-Δb], and RGB2′ is [r2+Δr, g2+Δg, b2+Δb]. r2, g2, and b2 are the RGB color components corresponding to Spartina alterniflora in this season, and Δr, Δg, and Δb are color adjustment parameters, which can be 10-50. Considering the large color difference between Suaeda alterniflora and Spartina alterniflora, extract the cluster point cloud whose RGB average value falls within the second color threshold range, thereby eliminating the point cloud cluster corresponding to Suaeda alterniflora and obtaining the cluster point cloud P2 of Spartina alterniflora and Phragmites australis.
[0078] Extract the point corresponding to the maximum distance in each angle region, and the points corresponding to the maximum distance in all angle regions constitute the boundary region of the clustered point cloud. Convert the boundary region into a two-dimensional image, map each angle region to a pixel, and the pixel coordinate (i, j) corresponds to the horizontal angle interval [Vmin+i×J,Vmin+(i+1)×J] and the vertical angle interval [Hmin+j×J,Hmin+(j+1)×J]. The value ranges of integers i and j are [0,((Vmax-Vmin) / J)-1] and [0,((Hmax-Hmin) / J)-1], respectively. The RGB value of the point with the maximum distance in the angle region is the RGB value of the pixel. When there is no point cloud in the angle region, the pixel value of the corresponding pixel is defined as (0,0,0).
[0079] By screening the first color threshold range, the second color threshold range and the distance threshold, classification training data containing clustered point cloud data of Spartina alterniflora can be obtained. Then, a classification model of Spartina alterniflora can be constructed based on the classification training data.
[0080] As a further optional embodiment, the step of screening the first vegetation point cloud data according to the second color threshold range to obtain classification training data containing Spartina alterniflora clustered point cloud data specifically includes:
[0081] Filtering the first vegetation point cloud data according to a second color threshold range to obtain second vegetation point cloud data;
[0082] Based on the centroid point of the second vegetation point cloud data, construct a spherical coordinate system and extract a boundary area of the second vegetation point cloud data;
[0083] Segmenting the second vegetation point cloud data according to the boundary area to obtain a point cloud area;
[0084] The point cloud area is converted into a two-dimensional image, and the two-dimensional image is used to train the Spartina alterniflora classification model.
[0085] Define the second color threshold range [RGB2, RGB′2], where RGB1 is [r2-Δr, g2-Δg, b2-Δb], RGB2 is [r2+Δr, g2+Δg, b2+Δb], r2, g2, b2 are the RGB color components corresponding to the seasonal period of Spartina alterniflora, Δr, Δg, Δb are color adjustment parameters, which can be 10-50. Considering the large color difference between Suaeda alterniflora and Spartina alterniflora, extract the cluster point cloud whose RGB average value falls within the second color threshold range, and then remove the point cloud cluster corresponding to Suaeda alterniflora, and obtain the cluster point cloud P2 of Spartina alterniflora and Phragmites australis;
[0086] Calculate the centroid coordinates of each cluster point cloud (the average value of the XYZ coordinates of the cluster point cloud), subtract the corresponding centroid coordinates from each cluster point cloud in P2, and convert the Cartesian coordinates of the cluster point cloud with the centroid coordinates as the origin into spherical coordinates through coordinate system transformation, and obtain the horizontal angle range [Vmin, Vmax] and vertical angle range [Hmin, Hmax] of each cluster point cloud in the spherical coordinate system.
[0087] Define the first angle segmentation parameter J, where J can be determined according to the UAV scanning accuracy and the maximum distance from the edge of the clustered point cloud to the centroid position. Segment the horizontal angle and vertical angle of the point cloud ring according to the first angle segmentation parameter J to obtain the vertical angle segmentation interval [Hmin+0×J, Hmin+1×J, …, Hmin+j×J, …, Hmax] and the horizontal angle segmentation interval [Vmin+0×J, Vmin+1×J, …, Vmin+i×J, …, Vmax], and divide the clustered point cloud into multiple angle regions, each of which is defined by a horizontal angle interval and a vertical angle interval.
[0088] The point corresponding to the maximum distance in each angle region is extracted, and the points corresponding to the maximum distance in all angle regions constitute the boundary region of the clustered point cloud. The boundary region is converted into a two-dimensional image, and each angle region is mapped to a pixel. The pixel coordinate (i, j) corresponds to the horizontal angle interval [Vmin+i×J, Vmin+(i+1)×J] and the vertical angle interval [Hmin+j×J, Hmin+(j+1)×J]. The value ranges of integers i and j are [0, ((Vmax-Vmin) / J)-1] and [0, ((Hmax-Hmin) / J)-1], respectively. The RGB value of the point with the maximum distance in the angle region is the RGB value of the pixel. When there is no point cloud in the angle region, the pixel value of the corresponding pixel is defined as (0, 0, 0).
[0089] Define a horizontal angle segmentation parameter V1, where V1 can be any angle that is divisible by 360°, such as 10°, 20°, ..., 90°, etc. The boundary area is divided into 360 / V1 sub-areas by the horizontal angle segmentation parameter V1, and two-dimensional images of the corresponding areas are extracted respectively.
[0090] After extracting the 2D images, the Spartina alterniflora classification model can be trained.
[0091] As a further optional embodiment, the step of constructing a spherical coordinate system and extracting a boundary area of the second vegetation point cloud data based on the centroid point of the second vegetation point cloud data specifically includes:
[0092] Determine segmentation parameters according to the scanning accuracy of the drone and the distance from the centroid point to the edge of the point cloud;
[0093] The second vegetation point cloud data is segmented according to the segmentation parameters, and a boundary area of the second vegetation point cloud data is extracted.
[0094] Specifically, the centroid coordinates of each cluster point cloud (the average value of the XYZ coordinates of the cluster point cloud) are calculated, the corresponding centroid coordinates are subtracted from each cluster point cloud in P2, and the Cartesian coordinates of the cluster point cloud with the centroid coordinates as the origin are converted into spherical coordinates through coordinate system transformation, and the horizontal angle range [Vmin, Vmax] and vertical angle range [Hmin, Hmax] of each cluster point cloud in the spherical coordinate system are obtained.
[0095] Define the first angle segmentation parameter J, where J can be determined according to the UAV scanning accuracy and the maximum distance from the edge of the clustered point cloud to the centroid position. Segment the horizontal angle and vertical angle of the point cloud ring according to the first angle segmentation parameter J to obtain the vertical angle segmentation interval [Hmin+0×J, Hmin+1×J, …, Hmin+j×J, …, Hmax] and the horizontal angle segmentation interval [Vmin+0×J, Vmin+1×J, …, Vmin+i×J, …, Vmax], and divide the clustered point cloud into multiple angle regions, each of which is defined by a horizontal angle interval and a vertical angle interval.
[0096] The point corresponding to the maximum distance in each angle region is extracted, and the points corresponding to the maximum distance in all angle regions constitute the boundary region of the clustered point cloud. The boundary region is converted into a two-dimensional image, and each angle region is mapped to a pixel. The pixel coordinate (i, j) corresponds to the horizontal angle interval [Vmin+i×J, Vmin+(i+1)×J] and the vertical angle interval [Hmin+j×J, Hmin+(j+1)×J]. The value ranges of integers i and j are [0, ((Vmax-Vmin) / J)-1] and [0, ((Hmax-Hmin) / J)-1], respectively. The RGB value of the point with the maximum distance in the angle region is the RGB value of the pixel. When there is no point cloud in the angle region, the pixel value of the corresponding pixel is defined as (0, 0, 0).
[0097] Define a horizontal angle segmentation parameter V1, where V1 can be any angle that is divisible by 360°, such as 10°, 20°, ..., 90°, etc. The boundary area is divided into 360 / V1 sub-areas by the horizontal angle segmentation parameter V1, and two-dimensional images of the corresponding areas are extracted respectively.
[0098] As a further optional embodiment, the step of identifying and warning Spartina alterniflora according to the Spartina alterniflora warning assessment model specifically includes:
[0099] According to the Spartina alterniflora early warning assessment model, determining the ratio of the projected area of the Spartina alterniflora to the total area, and the average growth height of the Spartina alterniflora;
[0100] The warning level is determined according to the ratio of the projected area to the total area and the average growth height.
[0101] Specifically, the position information and projection area feature information of Spartina alterniflora in the rectangular cubic area are calculated, the Cartesian coordinates of the clustered point cloud are projected into the horizontal plane, the coordinate ranges of each clustered point cloud X and Y are extracted, and then the position information of Spartina alterniflora is extracted. On this basis, the clustered point cloud of Spartina alterniflora and the projection area areas S1 and S2 containing Spartina alterniflora, reed and clustered point cloud are calculated. The total planar area Ssum of the cubic area is obtained. Among them, the projection area area calculation method includes but is not limited to De l aunay triangulation, an image processing-based method, an integration-based method, etc. (Does the area ratio here include the area containing Spartina alterniflora, reed and clustered point cloud)
[0102] Calculate the height feature information of Spartina alterniflora in the rectangular cubic area, sort the Z coordinates of each Spartina alterniflora cluster point cloud, consider the discreteness of the cluster point cloud scanning process and the accuracy of the cluster point cloud height description, define the first position parameter L1 and the second position parameter L2, L1 can be 5%-15%, L2 can be 85%-95%, and calculate the difference between the Z coordinate of the second position parameter and the first position parameter after sorting to obtain the height feature information of each cluster point cloud [H1, H2, H3, …, Hs].
[0103] According to the ratio of the projected area of S. alterniflora to the total area, S. alterniflora, and the average growth height of S. alterniflora, H, an early warning model for S. alterniflora was constructed. The damage level of S. alterniflora was divided into four levels: when S. alterniflora>10%, H>10cm, the early warning level was level 1; when S. alterniflora>20%, H>15cm, the early warning level was level 2; when S. alterniflora>30%, H>20cm, the early warning level was level 3; when S. alterniflora>40%, H>30cm, the early warning level was level 4.
[0104] The identification and early warning device of Spartina alterniflora provided by the present invention is described below. Figure 2 As shown, the identification and early warning device for Spartina alterniflora described below and the identification and early warning method for Spartina alterniflora described above can correspond to each other.
[0105] A device for identifying and warning Spartina alterniflora, comprising:
[0106] The data acquisition module 210 is used to acquire the original point cloud data of the area to be identified;
[0107] A feature extraction module 220, for extracting feature information of the original point cloud data through a classification model of Spartina alterniflora;
[0108] A model building module 230, for building a Spartina alterniflora early warning assessment model based on the characteristic information;
[0109] The identification and warning module 240 is used to identify and warn Spartina alterniflora according to the Spartina alterniflora warning assessment model.
[0110] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the identification and early warning method of Spartina alterniflora, the method comprising:
[0111] Obtain the original point cloud data of the area to be identified;
[0112] Extracting feature information of the original point cloud data through a classification model of Spartina alterniflora;
[0113] Based on the characteristic information, constructing an early warning assessment model for Spartina alterniflora;
[0114] According to the Spartina alterniflora early warning assessment model, Spartina alterniflora is identified and warned.
[0115] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0116] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the identification and early warning method of Spartina alterniflora provided by the above methods, the method comprising:
[0117] Obtain the original point cloud data of the area to be identified;
[0118] Extracting feature information of the original point cloud data through a classification model of Spartina alterniflora;
[0119] Based on the characteristic information, constructing an early warning assessment model for Spartina alterniflora;
[0120] According to the Spartina alterniflora early warning assessment model, Spartina alterniflora is identified and warned.
[0121] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the identification and early warning method of Spartina alterniflora provided by the above methods, the method comprising:
[0122] Obtain the original point cloud data of the area to be identified;
[0123] Extracting feature information of the original point cloud data through a classification model of Spartina alterniflora;
[0124] Based on the characteristic information, constructing an early warning assessment model for Spartina alterniflora;
[0125] According to the Spartina alterniflora early warning assessment model, Spartina alterniflora is identified and warned.
[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying and warning Spartina alterniflora, characterized in that: include: Obtain the original point cloud data of the area to be identified; Extracting feature information of the original point cloud data through a classification model of Spartina alterniflora; Based on the characteristic information, constructing an early warning assessment model for Spartina alterniflora; According to the Spartina alterniflora early warning assessment model, Spartina alterniflora is identified and warned.
2. The method for identifying and warning Spartina alterniflora according to claim 1, characterized in that: The step of obtaining the original point cloud data of the area to be identified specifically includes: The original point cloud data of the area to be identified is collected by a drone along a preset route, and the drone is equipped with a three-dimensional laser scanner.
3. The method for identifying and warning Spartina alterniflora according to claim 1, characterized in that: After the step of obtaining the original point cloud data of the area to be identified, the following steps are specifically included: Preprocessing the original point cloud data; The preprocessed original point cloud data is segmented according to the segmentation edge length.
4. The method for identifying and warning Spartina alterniflora according to claim 1, characterized in that: The classification model of Spartina alterniflora is constructed by the following steps: Get historical point cloud data; Performing plane fitting on the historical point cloud data that meets the first color threshold range to obtain a fitting plane; Clustering the historical point cloud data whose distance from the fitting plane is within a distance threshold to obtain first vegetation point cloud data; The first vegetation point cloud data is screened according to a second color threshold range to obtain classification training data including clustered point cloud data of Spartina alterniflora; Based on the classification training data, a classification model for Spartina alterniflora is constructed.
5. The method for identifying and warning Spartina alterniflora according to claim 4, characterized in that: The step of screening the first vegetation point cloud data according to the second color threshold range to obtain classification training data containing the clustered point cloud data of Spartina alterniflora specifically includes: Filtering the first vegetation point cloud data according to a second color threshold range to obtain second vegetation point cloud data; Based on the centroid point of the second vegetation point cloud data, construct a spherical coordinate system and extract a boundary area of the second vegetation point cloud data; Segmenting the second vegetation point cloud data according to the boundary area to obtain a point cloud area; The point cloud area is converted into a two-dimensional image, and the two-dimensional image is used to train the Spartina alterniflora classification model.
6. The method for identifying and warning Spartina alterniflora according to claim 5, characterized in that: The step of constructing a spherical coordinate system based on the centroid point of the second vegetation point cloud data and extracting a boundary area of the second vegetation point cloud data specifically includes: Determine segmentation parameters according to the scanning accuracy of the drone and the distance from the centroid point to the edge of the point cloud; The second vegetation point cloud data is segmented according to the segmentation parameters, and a boundary area of the second vegetation point cloud data is extracted.
7. The method for identifying and warning Spartina alterniflora according to claim 1, characterized in that: The step of identifying and warning Spartina alterniflora according to the Spartina alterniflora warning assessment model specifically includes: According to the Spartina alterniflora early warning assessment model, determining the ratio of the projected area of the Spartina alterniflora to the total area, and the average growth height of the Spartina alterniflora; The warning level is determined according to the ratio of the projected area to the total area and the average growth height.
8. A device for identifying and warning Spartina alterniflora, characterized in that: include: A data acquisition module is used to acquire the original point cloud data of the area to be identified; A feature extraction module, used to extract feature information of the original point cloud data through a classification model of Spartina alterniflora; A model building module, used to build a Spartina alterniflora early warning assessment model based on the characteristic information; The identification and early warning module is used to identify and warn Spartina alterniflora according to the Spartina alterniflora early warning assessment model.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the identification and early warning method of Spartina alterniflora as claimed in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for identifying and warning Spartina alterniflora as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Spartina alterniflora identification and early warning method
CN114782842A
Vegetation growth condition identification method based on RGB color clustering
CN117079161A
Weeding obstacle detection method, equipment, storage medium and device
CN117152719A
KR20220162487A
