Reverse construction method of underground space digital twin based on point cloud and Internet of Things
By combining point cloud and Internet of Things technology, the reverse construction of underground space is realized, which solves the problems of low efficiency and difficult automatic processing in the existing technology, and provides a high-precision and efficient digital twin construction solution suitable for underground space. development and management.
Patent Information
- Application Number
- CN202410964299.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Existing underground space modeling technology is inefficient and difficult to achieve real-time updates and dynamic management. Moreover, there are technical challenges in automated processing and information extraction of point cloud data, and it cannot meet the needs for accurate construction of underground space digital twins.
Adopting a reverse construction method based on point cloud and the Internet of Things, point cloud data is obtained through 3D laser scanning, combined with the 4PCS algorithm for point cloud registration, removing noise and redundant data, using the FPFH algorithm to extract features, and performing 3D reconstruction based on implicit surfaces. , and achieve real-time data updates through the Internet of Things.
It improves the efficiency and accuracy of underground space modeling, improves the level of automation, and provides an efficient digital twin reverse construction solution, which is suitable for the development, planning and management of underground space.
Smart Images

Figure CN118505910B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital twins, and in particular to a method for reversely constructing underground space digital twins based on point clouds and the Internet of Things. Background Art
[0002] With the acceleration of urbanization, the development and utilization of underground space has become increasingly important. In order to ensure the safety of underground projects, improve construction efficiency and optimize resource allocation, the industry has put forward higher requirements for the accurate modeling and management of underground space. Existing underground space modeling technologies mostly rely on traditional surveying and mapping methods, which are often inefficient and difficult to achieve real-time updates and dynamic management.
[0003] Point cloud technology can quickly obtain high-precision spatial data of underground space by using equipment such as 3D laser scanners to form dense point clouds, providing a new means for 3D modeling of underground space. However, the automated processing and information extraction of point cloud data is still a technical challenge, requiring the combination of advanced algorithms and computing technologies for reverse modeling.
[0004] The development of Internet of Things (IoT) technology provides new solutions for real-time monitoring and management of underground space. By deploying various sensors in underground space, environmental and structural data such as temperature and humidity, cracks, stress, etc. can be collected in real time. These data are crucial for the safety assessment and maintenance of underground space.
[0005] The construction of a digital twin of an underground space requires not only precise geometric information, but also real-time environmental and structural data to simulate the actual state and behavior of the underground space. Summary of the invention
[0006] The purpose of the present invention is to address the problems existing in the above-mentioned prior art and, based on the above-mentioned background, propose a reverse construction method of underground space digital twins that combines point cloud technology and Internet of Things technology, so as to improve the level of intelligence in underground space development and management through technological innovation.
[0007] The technical solution to achieve the purpose of the present invention is: a method for reverse construction of underground space digital twins based on point cloud and Internet of Things, the method comprising the following steps:
[0008] Step 1, collecting three-dimensional point cloud data of underground space;
[0009] Step 2: remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system;
[0010] Step 3: Use 4PCS algorithm to perform point cloud registration;
[0011] Step 4, remove noise from the point cloud;
[0012] Step 5: Remove redundant data and perform thinning to simplify the point cloud data;
[0013] Step 6, segment the point cloud data;
[0014] Step 7, using the FPFH algorithm to extract features from the segmented point cloud data;
[0015] Step 8, performing 3D reconstruction based on an implicit method of implicit surfaces;
[0016] Step 9: Build an underground space Internet of Things to update and display underground space data in real time.
[0017] Furthermore, in step 1, the underground space is scanned by a three-dimensional laser scanner to obtain three-dimensional point cloud data.
[0018] Furthermore, step 3 specifically includes:
[0019] Step 3-1: According to the given overlap rate f of the two point clouds, three points are randomly selected in the source point cloud P. , the area of the triangle formed by these three points is greater than a first preset threshold;
[0020] Step 3-2, traverse the remaining points in the source point cloud and select a point Make it The distance between the three points in the plane is less than a second preset threshold, and the distance from the three points is within a preset range;
[0021] Step 3-3, determine the four-point set through step 3-2 ;
[0022] Step 3-4: In the source point cloud P, randomly select a set of four points by following the steps 3-1 to 3-3. ,in Determine line segment ,in Determine line segment ;
[0023] Compute the invariant as constraint 1:
[0024]
[0025]
[0026] Compute the invariant ratio as constraint 2:
[0027]
[0028] ;
[0029] Among them, point For line segment and line segments If the two line segments do not intersect, then the point is the center point of the closest points connecting two line segments;
[0030] Step 3-5, in the target point cloud In the example above, we traverse all the pairs of points. , filter out the point pair set that satisfies constraint 1
[0031]
[0032]
[0033] Step 3-6, traverse the collection All the point pairs in , calculate the constant ratio on the line segment it constitutes The target intersection , and then store all the calculation results into the search tree ANN Tree and construct the corresponding mapping ;
[0034] Step 3-7, traverse the collection All the point pairs in , calculate the constant ratio on the line segment it constitutes The target intersection , and construct the corresponding mapping ;
[0035] At the same time, search for coincidence points within the preset acceptance error range in the ANN Tree constructed in steps 3-6 If the search is found, it means that Find a corresponding approximately congruent set of four points in ,
[0036] In this way, we can obtain all approximately identical four-point sets. ;
[0037] Step 3-8, traverse all approximately identical four-point sets , for each , combined with the four-point set , calculate the source point cloud With the target point cloud The optimal transformation matrix and retain;
[0038] Step 3-9, continuously iterate step 3-5 to step 3-8, and the optimal transformation matrix obtained after the iteration is the final optimal transformation matrix;
[0039] Step 3-10, align the point cloud data based on the final optimal transformation matrix.
[0040] Furthermore, steps 3-8 specifically include:
[0041] Calculated by least squares method With four points The corresponding transformation matrix ;
[0042] Using transformation matrix Source point cloud Transform to get ,statistics With the target point cloud The maximum common point set LCP in the , the transformation matrix of max(LCP) is the optimal transformation matrix of this iteration and retain.
[0043] Furthermore, in step 4, the noise points in the point cloud are removed by using a Gaussian filtering algorithm, which specifically includes:
[0044] Step 4-1, determine the Gaussian kernel, that is, the function defined according to the Gaussian distribution :
[0045]
[0046] Where σ is the standard deviation of the Gaussian kernel, are two vectors;
[0047] Step 4-2, create a filter matrix based on a Gaussian kernel;
[0048] Step 4-3, normalize the Gaussian kernel so that its total area is 1;
[0049] Step 4-4, for each point in the point cloud, use the weight in the Gaussian kernel to perform a weighted summation of the points in the neighborhood to calculate the new value of the point;
[0050] Step 4-5: Use mirroring to extend or fill the edge of the point cloud;
[0051] Step 4-6, gradually reduce the standard deviation of the Gaussian kernel, repeat steps 4-2 to 4-5 for multiple iterations until the maximum number of iterations is reached;
[0052] Step 4-7, update the obtained new value to the original data set, that is, the original point cloud data, to complete the filtering process.
[0053] Furthermore, the redundant data removal in step 5 is: for the repeated area after the point cloud registration, the repeated data is removed;
[0054] The thinning is specifically performed as follows: determining whether the data density of the simplified point cloud data in step 5 exceeds a preset threshold value, and if so, further thinning and simplifying the point cloud data while satisfying the preset accuracy and maintaining the geometric features of the object being measured.
[0055] Furthermore, in step 6, the point cloud data is segmented using a Euclidean clustering segmentation method.
[0056] Furthermore, step 7 specifically includes:
[0057] Step 7-1, in the radius value Calculate the point cloud feature descriptor PFH of each point one by one;
[0058] Set at radius The PFH feature of each point is calculated , the difference or similarity between the feature histogram of each point and the histogram of the entire point cloud dataset is quantified by the following formula :
[0059]
[0060] In the formula, Indicates The point feature histogram of the bucket; Indicates that the entire point cloud dataset is The average histogram value over the buckets, Indicates the number of histogram buckets obtained by subdividing the feature value range for each geometric feature in the PFH feature. PFH includes four geometric features ,in represents the deviation between the normals of two points, Represents the Euclidean distance between two points;
[0061] Step 7-2, calculate the mean of similarity and variance ,exist Points other than are possible feature points. Let all possible feature points be ;
[0062] When a feature point is observed on at least two consecutive radii, it is selected as the final feature point ,Right now:
[0063]
[0064] Step 7-2: For each final feature point, calculate the triplet between it and each neighboring point , and statistically obtain a simplified point feature histogram, namely SPFH;
[0065] Step 7-3, re-determine each final feature point Neighborhood, and calculate the fast point feature histogram FPFH through the SPFH of the points in the neighborhood. The calculation formula is:
[0066]
[0067] in, For point With its k Neighborhood points The distance weighting factor between Points Corresponding SPFH, FPFH;
[0068] Step 7-4, normalize the frequency of the fast point feature histogram FPFH to obtain the final FPFH feature descriptor for feature extraction.
[0069] Furthermore, step 8 specifically includes:
[0070] Step 8-1, fit a tangent plane to each sampling data point, the tangent plane is centered at point and normal direction express;
[0071] Select the sampling data points near Points ,but Take this The centroid of the points is:
[0072]
[0073] Take the eigenvector corresponding to the minimum eigenvalue of the covariance matrix as shown below:
[0074]
[0075] Step 8-2, construct a Euclidean minimum spanning tree, i.e., EMST, to connect the centers of each tangent plane;
[0076] Step 8-3: Connect the centers of the cutting planes Nearest neighbors, add some new edges to EMST to obtain a Riemann graph;
[0077] Step 8-4, select an orientation for each tangent plane at random, and "propagate" the normal direction to the adjacent planes in the Riemann graph according to the Euclidean minimum spanning tree;
[0078] Step 8-5, get the point Distance to the nearest tangent plane center , calculation point Projection point on the corresponding tangent plane ;
[0079] Step 8-6, if The minimum distance to the center of all tangent planes is less than , then the signed distance function ;in, is the sampling density of point cloud data, is the noise level;
[0080] Step 8-7, define a cubic division of space, the side length of each cube should be less than ;
[0081] Step 8-8, for each cube, calculate the signed distance function at the vertex The value of
[0082] Step 8-9, for each edge, if the two vertices connected are If the signs are different, interpolate on the edge, calculate the position where the interpolation value is 0, and place the vertex;
[0083] Steps 8-10, constructing triangular facets between vertices to complete the 3D reconstruction of the underground space;
[0084] Steps 8-11, visualize the reconstructed three-dimensional surface of the underground space.
[0085] Furthermore, step 9 specifically includes:
[0086] Step 9-1, determine the parameters that need to be detected in the underground space according to actual needs;
[0087] Step 9-2, determining the installation positions of various sensors for detecting parameters so that the parameter detection can reflect various characteristics of the underground space;
[0088] Step 9-3, deploying IoT edge gateways according to the regional division of underground space;
[0089] Step 9-4, embedding the audio and video compression algorithm, image analysis algorithm and behavior analysis algorithm in the IoT edge gateway;
[0090] Step 9-5, connect the sensor to the IoT edge gateway nearby;
[0091] Step 9-6, the IoT data center collects and stores various sensor data through the IoT edge gateway;
[0092] Step 9-7, display the parameters and status in real time on the three-dimensional visualization interface according to the installation location of the sensor, and reversely construct a digital twin that reflects the status of the underground space in real time.
[0093] Compared with the prior art, the present invention has the following significant advantages:
[0094] (1) The present invention combines point cloud technology with Internet of Things technology to achieve reverse construction of underground space digital twins. Through the application of advanced algorithms and data fusion, the efficiency and accuracy of underground space modeling are improved, the automation level of underground space modeling is improved, and a more efficient solution is provided for the reverse construction of underground space digital twins.
[0095] (2) The present invention has broad industrial application value. It can be applied to the development, planning and management of underground space, and provide high-precision and high-efficiency digital twin reverse modeling services for the underground space industry.
[0096] The present invention is further described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Figure 1 This is a flow chart of the reverse construction method of underground space digital twins based on point cloud and Internet of Things.
[0098] Figure 2 Flowchart of the segmentation method for Euclidean clustering. DETAILED DESCRIPTION
[0099] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0100] It should be noted that if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0101] In one embodiment, in combination Figure 1 , provides a method for reverse construction of underground space digital twins based on point cloud and Internet of Things, the method comprising the following steps:
[0102] Step 1, collecting three-dimensional point cloud data of underground space;
[0103] Step 2: remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system;
[0104] Step 3: Use 4PCS (Four Point Congruent Set) algorithm to perform point cloud registration;
[0105] Step 4, remove noise from the point cloud;
[0106] Step 5: Remove redundant data and perform thinning to simplify the point cloud data;
[0107] Step 6, segment the point cloud data;
[0108] Step 7: Use the FPFH (Fast Point Feature Histograms) algorithm to extract features from the segmented point cloud data;
[0109] Step 8, performing 3D reconstruction based on an implicit method of implicit surfaces;
[0110] Step 9: Build an underground space Internet of Things to update and display underground space data in real time.
[0111] Furthermore, in one of the embodiments, in step 1, the underground space is scanned by a three-dimensional laser scanner to obtain accurate three-dimensional point cloud data.
[0112] Further, in one embodiment, step 3 specifically includes:
[0113] Step 3-1: According to the given overlap rate f of the two point clouds, three points are randomly selected in the source point cloud P. , the area of the triangle formed by these three points is greater than a first preset threshold;
[0114] Here, the larger the area of the triangle formed by the points, the more robust the registration is, so the area is as large as possible;
[0115] Step 3-2, traverse the remaining points in the source point cloud and select a point Make it The distance between the three points in the plane is less than a second preset threshold, and the distance from the three points is within a preset range;
[0116] Step 3-3, determine the four-point set through step 3-2 ;
[0117] Step 3-4: In the source point cloud P, randomly select a set of four points by following the steps 3-1 to 3-3. ,in Determine line segment ,in Determine line segment ;
[0118] Compute the invariant as constraint 1:
[0119]
[0120]
[0121] Compute the invariant ratio as constraint 2:
[0122]
[0123]
[0124] Among them, point For line segment and line segments If the two line segments do not intersect, then the point is the center point of the closest points connecting two line segments;
[0125] Step 3-5, in the target point cloud In the example above, we traverse all the pairs of points. , filter out the point pair set that satisfies constraint 1
[0126]
[0127]
[0128] in, is the variance;
[0129] Step 3-6, traverse the collection All the point pairs in , calculate the constant ratio on the line segment it constitutes The target intersection , and then store all the calculation results into the search tree ANN Tree and construct the corresponding mapping ;
[0130] Step 3-7, traverse the collection All the point pairs in , calculate the constant ratio on the line segment it constitutes The target intersection , and construct the corresponding mapping ;
[0131] At the same time, search for coincidence points within the preset acceptance error range in the ANN Tree constructed in steps 3-6 If the search is found, it means that Find a corresponding approximately congruent set of four points in ,
[0132] In this way, we can obtain all approximately identical four-point sets. ;
[0133] Step 3-8, traverse all approximately identical four-point sets , for each , combined with the four-point set , calculate the source point cloud P and the target point cloud The optimal transformation matrix and retain;
[0134] Step 3-9, continuously iterate step 3-5 to step 3-8, and the optimal transformation matrix obtained after the iteration is the final optimal transformation matrix;
[0135] Step 3-10, align the point cloud data based on the final optimal transformation matrix.
[0136] Preferably, in some embodiments, steps 3-8 specifically include:
[0137] Calculated by the least squares method With four points The corresponding transformation matrix ;
[0138] Using transformation matrix Transform the source point cloud P to obtain ,statistics With the target point cloud The maximum common point set LCP in the , the transformation matrix of max(LCP) is the optimal transformation matrix of this iteration and retain.
[0139] Furthermore, in one embodiment, in step 4, the noise points in the point cloud are removed by using a Gaussian filtering algorithm, which specifically includes:
[0140] Step 4-1, determine the Gaussian kernel, that is, the function defined according to the Gaussian distribution :
[0141]
[0142] Where σ is the standard deviation of the Gaussian kernel, are two vectors;
[0143] Step 4-2, create a filter matrix based on a Gaussian kernel;
[0144] Step 4-3, normalize the Gaussian kernel so that its total area is 1;
[0145] Step 4-4, for each point in the point cloud, use the weight in the Gaussian kernel to perform a weighted summation of the points in the neighborhood to calculate the new value of the point;
[0146] Step 4-5: Use mirroring to extend or fill the edge of the point cloud;
[0147] Step 4-6, gradually reduce the standard deviation of the Gaussian kernel, repeat steps 4-2 to 4-5 for multiple iterations until the maximum number of iterations is reached;
[0148] Step 4-7, update the obtained new value to the original data set, that is, the original point cloud data, to complete the filtering process.
[0149] Further, in one of the embodiments, the removing of redundant data in step 5 is: removing duplicate data from the duplicated area after point cloud registration;
[0150] The thinning is specifically performed as follows: determining whether the data density of the simplified point cloud data in step 5 exceeds a preset threshold value, and if so, further thinning and simplifying the point cloud data while satisfying the preset accuracy and maintaining the geometric features of the object being measured.
[0151] Furthermore, in one embodiment, since the underground space is relatively complex and cannot be modeled as a whole, the point cloud data needs to be segmented, modeled separately, and then reassembled. In step 6, the point cloud data is segmented using the Euclidean clustering method. Figure 2 , specifically including:
[0152] Step 6-1, for a point in space ,pass The nearest neighbor search algorithm finds Distance points The nearest point.
[0153] Step 6-2, calculate these points and points If the distance is less than the set threshold, it is clustered into a set middle.
[0154] Step 6-3, if the collection If the number of elements in the set no longer increases, the clustering process ends; otherwise, Select point For unexpected points, repeat steps 6-1 and 6-2 until the set Until the number of elements in no longer increases.
[0155] Furthermore, in one embodiment, when selecting feature points, it is necessary to find those points with high specificity, and these points should be scale-invariant, and the number should not be too large. The general algorithm is that for each point in the point cloud, by giving a radius Determine its To optimize the feature point selection, step 7 specifically includes:
[0156] Step 7-1, in the radius value Calculate the point cloud feature descriptor PFH of each point one by one;
[0157] Set at radius The PFH feature of each point is calculated , the difference or similarity between the feature histogram of each point and the histogram of the entire point cloud dataset is quantified by the following formula :
[0158]
[0159] In the formula, Indicates The point feature histogram of the bucket; Indicates that the entire point cloud dataset is The average histogram value over the buckets, Indicates the number of histogram buckets obtained by subdividing the feature value range for each geometric feature in the PFH feature. PFH includes four geometric features ,in represents the deviation between the normals of two points, Represents the Euclidean distance between two points;
[0160] Here, since the PFH of each point has four geometric features , each feature can be subdivided according to its value range, so the number of buckets in the histogram is the fourth power of the number of subdivisions of these feature value ranges. Dividing the value of each feature into two parts, we have Histogram buckets, that is =16.
[0161] Step 7-2, calculate the mean of similarity and variance ,exist Points other than are possible feature points. Let all possible feature points be ;
[0162] When a feature point is observed on at least two consecutive radii, it is selected as the final feature point ,Right now:
[0163]
[0164] Step 7-2: For each final feature point, calculate the triplet between it and each neighboring point , and statistically obtain a simplified point feature histogram, namely SPFH;
[0165] Step 7-3, re-determine each final feature point Neighborhood, and calculate the fast point feature histogram FPFH through the SPFH of the points in the neighborhood. The calculation formula is:
[0166]
[0167] in, For point With its k Neighborhood points The distance weighting factor between Points Corresponding SPFH, FPFH;
[0168] Step 7-4, normalize the frequency of the fast point feature histogram FPFH to obtain the final FPFH feature descriptor for feature extraction.
[0169] Further, in one embodiment, step 8 specifically includes:
[0170] Step 8-1, fit a tangent plane to each sampling data point, the tangent plane is centered at point and normal direction express;
[0171] Select the sampling data points near Points ,but Take this The centroid of the points is:
[0172]
[0173] Take the eigenvector corresponding to the minimum eigenvalue of the covariance matrix as shown below:
[0174]
[0175] Step 8-2, construct a Euclidean minimum spanning tree (EMST) to connect the centers of each tangent plane;
[0176] Step 8-3: Connect the centers of the cutting planes Nearest neighbors, add some new edges to EMST to obtain a Riemann graph;
[0177] Step 8-4, select an orientation for each tangent plane at random, and "propagate" the normal direction to the adjacent planes in the Riemann graph according to the Euclidean minimum spanning tree;
[0178] Step 8-5, get the point Distance to the nearest tangent plane center , calculation point Projection point on the corresponding tangent plane ;
[0179] Step 8-6, if The minimum distance to the center of all tangent planes is less than , then the signed distance function ;in, is the sampling density of point cloud data, is the noise level;
[0180] Step 8-7, define a cubic division of space, the side length of each cube should be less than ;
[0181] Step 8-8, for each cube, calculate the signed distance function at the vertex The value of
[0182] Step 8-9, for each edge, if the two vertices connected If the signs are different, interpolate on the edge, calculate the position where the interpolation value is 0, and place the vertex;
[0183] Steps 8-10, constructing triangular facets between vertices to complete the 3D reconstruction of the underground space;
[0184] Steps 8-11, visualize the reconstructed three-dimensional surface of the underground space.
[0185] Further, in one embodiment, step 9 specifically includes:
[0186] Step 9-1: Determine the parameters that need to be tested in the underground space according to actual needs, including environmental monitoring parameters (temperature, humidity, concentration, concentration, concentration, etc.), structural health monitoring parameters (vibration characteristics, stress and strain, displacement and settlement, crack monitoring, etc.);
[0187] Step 9-2, determining the installation positions of various sensors for detecting parameters so that the parameter detection can reflect various characteristics of the underground space;
[0188] Step 9-3, deploying IoT edge gateways according to the regional division of underground space;
[0189] Step 9-4, embedding the audio and video compression algorithm, image analysis algorithm and behavior analysis algorithm in the IoT edge gateway;
[0190] Step 9-5, connect the sensor to the IoT edge gateway nearby;
[0191] Step 9-6, the IoT data center collects and stores various sensor data through the IoT edge gateway;
[0192] Step 9-7, display the parameters and status in real time on the three-dimensional visualization interface according to the installation location of the sensor, and reversely construct a digital twin that reflects the status of the underground space in real time.
[0193] Here, the digital twin formed by reverse modeling can be displayed in a visual form to facilitate user understanding and analysis.
[0194] In one embodiment, a reverse construction system of underground space digital twin based on point cloud and Internet of Things is provided, and the system includes:
[0195] The first module is used to collect three-dimensional point cloud data of underground space;
[0196] The second module is used to remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system;
[0197] The third module is used to perform point cloud registration using the 4PCS algorithm;
[0198] The fourth module is used to remove noise from the point cloud;
[0199] The fifth module is used to remove redundant data and perform thinning to simplify point cloud data;
[0200] The sixth module is used to segment the point cloud data;
[0201] The seventh module is used to extract features from the segmented point cloud data using the FPFH algorithm;
[0202] The eighth module is used for 3D reconstruction using implicit methods based on implicit surfaces;
[0203] The ninth module is used to build an underground space Internet of Things to update and display underground space data in real time, and reversely construct a digital twin that reflects the status of the underground space in real time.
[0204] For the specific limitations of the reverse construction system of underground space digital twins based on point cloud and the Internet of Things, please refer to the limitations of the reverse construction method of underground space digital twins based on point cloud and the Internet of Things above, which will not be repeated here. Each module in the above-mentioned reverse construction system of underground space digital twins based on point cloud and the Internet of Things can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0205] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following is achieved:
[0206] Step 1, collecting three-dimensional point cloud data of underground space;
[0207] Step 2: remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system;
[0208] Step 3: Use 4PCS algorithm to perform point cloud registration;
[0209] Step 4, remove noise from the point cloud;
[0210] Step 5: Remove redundant data and perform thinning to simplify the point cloud data;
[0211] Step 6, segment the point cloud data;
[0212] Step 7, using the FPFH algorithm to extract features from the segmented point cloud data;
[0213] Step 8, performing 3D reconstruction based on an implicit method of implicit surfaces;
[0214] Step 9: Build an underground space Internet of Things to update and display underground space data in real time, and reversely build a digital twin that reflects the status of the underground space in real time.
[0215] For the specific limitations of each step, please refer to the limitations of the reverse construction method of underground space digital twins based on point cloud and Internet of Things in the above text, which will not be repeated here.
[0216] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements:
[0217] Step 1, collecting three-dimensional point cloud data of underground space;
[0218] Step 2: remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system;
[0219] Step 3: Use 4PCS algorithm to perform point cloud registration;
[0220] Step 4, remove noise from the point cloud;
[0221] Step 5: Remove redundant data and perform thinning to simplify the point cloud data;
[0222] Step 6, segment the point cloud data;
[0223] Step 7, using the FPFH algorithm to extract features from the segmented point cloud data;
[0224] Step 8, performing 3D reconstruction based on an implicit method of implicit surfaces;
[0225] Step 9: Build an underground space Internet of Things to update and display underground space data in real time, and reversely build a digital twin that reflects the status of the underground space in real time.
[0226] For the specific limitations of each step, please refer to the limitations of the reverse construction method of underground space digital twins based on point cloud and Internet of Things in the above text, which will not be repeated here.
[0227] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A reverse construction method of underground space digital twin based on point cloud and Internet of Things, It is characterized in that The method comprises the following steps: Step 1, collecting three-dimensional point cloud data of underground space; Step 2: remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system; Step 3: Use 4PCS algorithm to perform point cloud registration; Step 3 specifically includes: Step 3-1: Based on the given overlap ratio f of the two point clouds, Randomly select three points , , the area of the triangle formed by these three points is greater than a first preset threshold; Step 3-2, traverse the remaining points in the source point cloud and select a point Make it The distance between the three points in the plane is less than a second preset threshold, and the distance from the three points is within a preset range; Step 3-3, determine the four-point set through step 3-2 ; Step 3-4, in the source point cloud In the process of steps 3-1 to 3-3, a set of four points is randomly selected. ,in Determine line segment ,in Determine line segment ; Compute the invariant as constraint 1: ; Compute the invariant ratio as constraint 2: Among them, point For line segment and line segments If the two line segments do not intersect, then the point is the center point of the closest points connecting two line segments; Step 3-5, in the target point cloud In the example above, we traverse all pairs of points. , filter out the point pair set that satisfies constraint 1 ; in, is the variance; Step 3-6, traverse the collection All the point pairs in , calculate the constant ratio on the line segment it constitutes The target intersection , and then store all the calculation results into the search tree ANN Tree and construct the corresponding mapping ; Step 3-7, traverse the collection All the point pairs in , calculate the constant ratio on the line segment it constitutes The target intersection , and construct the corresponding mapping ; At the same time, search for coincidence points within the preset acceptance error range in the ANN Tree constructed in steps 3-6 If the search is found, it means that Find a corresponding approximately congruent set of four points in , In this way, we can obtain all approximately identical four-point sets. ; Step 3-8, traverse all approximately identical four-point sets , for each , combined with the four-point set , calculate the source point cloud With the target point cloud The optimal transformation matrix and retain; Step 3-9, continuously iterate step 3-5 to step 3-8, and the optimal transformation matrix obtained after the iteration is the final optimal transformation matrix; Step 3-10, registering the point cloud data based on the final optimal transformation matrix; Step 4, remove noise from the point cloud; Step 5: Remove redundant data and perform thinning to simplify the point cloud data; Step 6, segment the point cloud data; Step 7: Use the FPFH algorithm to extract features from the segmented point cloud data; specifically, the following steps are included: Step 7-1, in the radius value Calculate the point cloud feature descriptor PFH of each point one by one; Set at radius The PFH feature of each point is calculated , the difference or similarity between the feature histogram of each point and the histogram of the entire point cloud dataset is quantified by the following formula : In the formula, Represents the point feature histogram of the jth bucket; It represents the average histogram value of the entire point cloud data set in the jth bucket. M represents the number of histogram buckets obtained by subdividing the feature value range of each geometric feature in the PFH feature. PFH includes four geometric features. ,in represents the deviation between the normals of two points, Represents the Euclidean distance between two points; Step 7-2, calculate the mean of similarity and variance ,exist Points other than are possible feature points. Let all possible feature points be ; When a feature point is observed on at least two consecutive radii, it is selected as the final feature point ,Right now: Step 7-2: For each final feature point, calculate the triplet between it and each neighboring point , and statistically obtain a simplified point feature histogram, namely SPFH; Step 7-3, re-determine the k-neighborhood of each final feature point, and calculate the fast point feature histogram FPFH through the SPFH of the points in the neighborhood. The calculation formula is: in, For point and its kth neighboring point The distance weighting factor between Points Corresponding SPFH, FPFH; Step 7-4, normalizing the frequency of the fast point feature histogram FPFH to obtain the final FPFH feature descriptor for feature extraction; Step 8, performing 3D reconstruction based on an implicit method of implicit surfaces; specifically including: Step 8-1, fit a tangent plane to each sampled data point, the tangent plane is centered at o and in the normal direction express; Select k points near the sampling data point , then o takes the centroid of these k points, that is: Take the eigenvector corresponding to the minimum eigenvalue of the covariance matrix as shown below: Step 8-2, construct a Euclidean minimum spanning tree, i.e., EMST, to connect the centers of each tangent plane; Step 8-3, connect the k nearest neighbors of the center of each tangent plane, add some new edges to EMST, and obtain the Riemann graph; Step 8-4, select an arbitrary direction for each tangent plane, and "propagate" the normal direction to the adjacent planes in the Riemann graph according to the Euclidean minimum spanning tree; Step 8-5, get the point Distance to the nearest tangent plane center , calculation point The projection point z on the corresponding tangent plane; Step 8-6, if the minimum distance between z and the center of all tangent planes is less than , then the signed distance function ;in, is the sampling density of point cloud data, is the noise level; Step 8-7, define a cubic division of space, the side length of each cube should be less than ; Step 8-8, for each cube, calculate the signed distance function at the vertex The value of Step 8-9, for each edge, if the two vertices connected are If the signs are different, interpolate on the edge, calculate the position where the interpolation value is 0, and place the vertex; Steps 8-10, constructing triangular facets between vertices to complete the 3D reconstruction of the underground space; Steps 8-11, visualizing the reconstructed three-dimensional surface of the underground space; Step 9: Build an underground space Internet of Things to update and display underground space data in real time, and reversely build a digital twin that reflects the status of the underground space in real time.
2. According to claim 1, the method for reverse construction of underground space digital twin based on point cloud and Internet of Things, It is characterized in that In step 1, the underground space is scanned by a 3D laser scanner to obtain 3D point cloud data.
3. According to claim 1, the method for reverse construction of underground space digital twin based on point cloud and Internet of Things, It is characterized in that Steps 3-8 specifically include: Calculated by least squares method With four points The corresponding transformation matrix ; Using the transformation matrix Source point cloud Transform to get ,statistics With the target point cloud The maximum common point set LCP in the , the transformation matrix of max(LCP) is the optimal transformation matrix of this iteration and retain.
4. According to claim 1, the method for reverse construction of underground space digital twin based on point cloud and Internet of Things, It is characterized in that In step 4, the noise in the point cloud is removed by using the Gaussian filtering algorithm, which includes: Step 4-1, determine the Gaussian kernel, that is, the function defined according to the Gaussian distribution : Where σ is the standard deviation of the Gaussian kernel, are two vectors; Step 4-2, create a filter matrix based on a Gaussian kernel; Step 4-3, normalize the Gaussian kernel so that its total area is 1; Step 4-4, for each point in the point cloud, use the weight in the Gaussian kernel to perform a weighted summation of the points in the neighborhood to calculate the new value of the point; Step 4-5: Use mirroring to extend or fill the edge of the point cloud; Step 4-6, gradually reduce the standard deviation of the Gaussian kernel, repeat steps 4-2 to 4-5 for multiple iterations until the maximum number of iterations is reached; Step 4-7, update the obtained new value to the original data set, that is, the original point cloud data, to complete the filtering process.
5. According to claim 1, the method for reverse construction of underground space digital twin based on point cloud and Internet of Things, It is characterized in that The redundant data removal in step 5 is as follows: for the repeated areas after point cloud registration, the repeated data is removed; The thinning is specifically performed as follows: determining whether the data density of the simplified point cloud data in step 5 exceeds a preset threshold value, and if so, further thinning and simplifying the point cloud data while satisfying the preset accuracy and maintaining the geometric features of the object being measured.
6. The method for reverse construction of underground space digital twin based on point cloud and Internet of Things according to claim 1, It is characterized in that In step 6, the point cloud data is segmented using the Euclidean clustering segmentation method.
7. Based on the method for reverse construction of underground space digital twin based on point cloud and Internet of Things as described in claim 1, It is characterized in that Step 9 specifically includes: Step 9-1, determine the parameters that need to be detected in the underground space according to actual needs; Step 9-2, determining the installation positions of various sensors for detecting parameters so that the parameter detection can reflect various characteristics of the underground space; Step 9-3, deploying IoT edge gateways according to the regional division of underground space; Step 9-4, embedding the audio and video compression algorithm, image analysis algorithm and behavior analysis algorithm in the IoT edge gateway; Step 9-5, connect the sensor to the IoT edge gateway nearby; Step 9-6, the IoT data center collects and stores various sensor data through the IoT edge gateway; Step 9-7, display the parameters and status in real time on the three-dimensional visualization interface according to the installation location of the sensor, and reversely construct a digital twin that reflects the status of the underground space in real time.
8. A reverse construction system for underground space digital twins based on point cloud and the Internet of Things based on the method according to any one of claims 1 to 7, wherein the system include: The first module is used to collect three-dimensional point cloud data of underground space; The second module is used to remove the scattered points and isolated points in the point cloud, simplify the point cloud data, and unify the point cloud into the same coordinate system; The third module is used to perform point cloud registration using the 4PCS algorithm; The fourth module is used to remove noise from the point cloud; The fifth module is used to remove redundant data and perform thinning to simplify point cloud data; The sixth module is used to segment the point cloud data; The seventh module is used to extract features from the segmented point cloud data using the FPFH algorithm; The eighth module is used for 3D reconstruction using implicit methods based on implicit surfaces; The ninth module is used to build an underground space Internet of Things to update and display underground space data in real time, and reversely construct a digital twin that reflects the status of the underground space in real time.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
