Data enhancement method for urban drainage pipeline defect point cloud semantic segmentation

High-quality urban drainage pipeline defect point cloud data is generated through BIM software and the Unity3D engine, which solves the problem of data scarcity and realizes efficient automated detection and quantitative evaluation of urban drainage pipelines.

CN118628732AActive Publication Date: 2024-09-10DALIAN UNIV OF TECH

Patent Information

Application Number
CN202410653894.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-10
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

The lack of high-quality three-dimensional point cloud data in the field of urban drainage pipes results in a scarcity of deep learning model training data and limits the development of automated inspection.

Method used

Use BIM software and Unity3D engine combined with structural domain randomization technology and lidar scanning simulation technology to generate high-quality synthetic point cloud data, including defect categories such as spalling, obstacles, corrosion, misalignment, siltation, disconnection and rubber rings. Defects, rapid collection and annotation of data are achieved through automated semantic annotation.

Benefits of technology

It provides a large amount of low-cost, high-quality, and rapidly collected synthetic data, which alleviates the problem of data scarcity, improves the training efficiency of deep learning models, and enables efficient semantic segmentation and quantitative evaluation of defects in urban drainage pipes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628732A
    Figure CN118628732A
Patent Text Reader

Abstract

The invention provides a data enhancement method for urban drainage pipeline defect point cloud semantic segmentation, which provides a large amount of artificially synthesized data with low cost, high quality, high acquisition speed and strong randomness for deep learning model training of urban drainage pipeline defects, and solves the problem that deep learning is deficient and single in data in engineering practical application. Establishing a pipeline three-dimensional digital model by adopting BIM software and outputting an OBJ format file; a structural domain randomization rule is established in the Unity 3D, and global parameters are set; establishing a pipeline defect simulation algorithm, and randomly generating a simulation scene of urban drainage pipeline defects; establishing a simulation algorithm of the scanning detection process of the laser radar robot in the pipe based on Unity 3D, and setting parameters related to sensor equipment; a synthetic point cloud generation algorithm of automatic semantic annotation is provided, and automatic collection of synthetic data is achieved; and training the basic model by a large amount of synthetic data, and then optimizing model parameters in combination with a small amount of actually measured data of a specific project to obtain a pipeline defect semantic segmentation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of urban lifeline engineering structure evaluation and automation, and specifically relates to a data enhancement method for semantic segmentation of urban drainage pipeline defect point clouds. Background Art

[0002] The urban drainage pipeline system is one of the most valuable infrastructures to ensure urban resilience and sustainable development, and has always been known as the "urban lifeline project". On the one hand, the number of kilometers of urban drainage pipelines in my country has increased rapidly year by year, but on the other hand, it is also facing serious problems of aging and disrepair. Therefore, automated and intelligent routine inspection of urban drainage pipelines is crucial to reduce time and cost.

[0003] In the past three decades, the most widely used technology for routine inspection of urban drainage pipes is the vision-based closed-circuit television monitoring system. In the past decade, thanks to the rapid development of deep learning in the field of object detection and segmentation of two-dimensional images, the efficiency and accuracy of defect detection in closed-circuit television monitoring systems have been greatly improved. However, due to the lack of depth information, limited camera viewing angle, and lens distortion effects, two-dimensional images are generally only used to handle defect classification tasks rather than three-dimensional quantitative evaluation. LiDAR technology has received great attention in the pipeline field in recent years due to its advantages such as non-contact, no need for lighting conditions, and fast and dense emission of point clouds to obtain accurate three-dimensional geometric mapping of the measured object. Various pipeline service status assessment algorithms based on three-dimensional point clouds have been proposed to solve different problems, but they all have a common premise that they need to first identify and segment defect point clouds from cluttered point clouds without semantic information. The defect forms of concrete water supply and drainage pipes are very complex, including structural defects such as deformation, spalling, corrosion, misalignment, disconnection, and rubber ring shedding, as well as functional defects such as siltation and obstacles. Due to the large scale of pipeline point clouds and the complexity of pipeline defects, manual annotation of semantic information is very time-consuming, laborious and error-prone.

[0004] Deep learning technology has become a benchmark for automated solutions to complex practical problems and is changing the field of construction engineering. In addition to high-performance neural network algorithms suitable for the target task, training a successful model depends largely on high-quality training data sets. However, for the underground pipeline industry, real data obtained from inspections is both scarce and expensive. Due to confidentiality agreements and asset privacy policies, managers of underground pipeline networks often do not annotate large amounts of real data, let alone publish them. Therefore, data scarcity has greatly limited the development of deep learning in three-dimensional point clouds in the field of underground pipeline networks, and may even hinder the industry from following the ongoing trend of automated changes. Current methods for generating synthetic point clouds are mainly focused on the segmentation of components in indoor buildings and bridge structures. However, compared with these conventional scenarios, the defects of concrete water supply and drainage pipes are more complex and more random, but methods for generating synthetic point cloud data with automatic annotation functions have not yet been developed. In addition, how to strategically and maximize the use of artificial synthetic data to train deep learning models is also a technical issue. Summary of the invention

[0005] In order to overcome the data scarcity problem faced by urban drainage pipes in the direction of three-dimensional point cloud deep learning, the present invention provides a data enhancement method for semantic segmentation of urban drainage pipe defect point cloud, which provides a large amount of low-cost, high-quality, fast-collection, and highly random artificial synthetic data for deep learning model training of urban drainage pipe defects, and provides an efficient way to train deep learning models using artificial synthetic data.

[0006] The technical solution adopted by the present invention to solve the technical problem is:

[0007] A data enhancement method for semantic segmentation of urban drainage pipe defect point cloud, comprising the following steps:

[0008] The first step is to use BIM software to build a three-dimensional digital model of the pipeline, output the OBJ format file and import it into the Unity3D engine to make a prefabricated body;

[0009] The second step is to establish structural domain randomization rules in the Unity3D virtual environment;

[0010] Step 3: Set global parameters, establish simulation algorithms for pipeline disconnection and misalignment, rubber ring shedding, concrete spalling, corrosion, siltation, and obstacle blockage defects, and randomly generate simulation scenarios for urban drainage pipeline defects.

[0011] Step 4: Establish a simulation algorithm for the laser radar robot's scanning and detection process in the pipe based on the Unity3D physics engine, and set parameters related to the sensor equipment;

[0012] Step 5: Use the synthetic point cloud generation algorithm with automatic semantic annotation to realize the automatic collection of synthetic point cloud defect data; synthetic point cloud defect labels include "normal", "peeling", "obstacle", "corrosion", "misalignment", "siltation", "disconnection" and "rubber ring defect";

[0013] Step 6: Use the pre-training-fine-tuning deep learning data enhancement strategy. First, use a large amount of synthetic data to train the basic model. Then, use a small amount of measured data from specific projects to optimize the model parameters and obtain a pipeline defect semantic segmentation model.

[0014] Furthermore, the first step specifically includes: establishing a three-dimensional digital geometric model of the pipeline in the BIM software according to the pipeline design drawings used in the project, and the created three-dimensional digital geometric model pre-divides the pipeline into three sections: the socket section, the middle pipe section, and the bell section. The total length of each section of the pipeline is divided into an effective length and an interface length; the lengths of the bell section and the socket section are respectively 10 cm away from the end of the effective length of the pipeline; then outputting the OBJ format file from the BIM software and importing it into Unity3D to create a pipeline prefab; the pipeline prefab sets four control points, namely "first point", "bell endpoint", "middle point" and "socket endpoint", thereby dividing the effective length of the pipeline into four equal parts.

[0015] Furthermore, the second step is as follows: structural domain randomization includes three types of components from the whole to the part, namely global parameters, rule lines and objects placed along the rule lines; the probability connection between different components of structural domain randomization is set, and global parameters are set in the simulation scene. The global parameters control the rule lines to which the generated defect objects are aligned, including the number of control points, the probability of occurrence of each defect and the scanning direction; the number of control points is determined by the number of pipelines simulated in the scene and the number of control points on each section of the pipeline; the rule lines of structural domain randomization include the top line, the center line and the bottom line of the pipe. To generate the rule lines, the pipe preform must first be installed in the direction of the pipeline axis, and the axis direction of the pipe preform is pre-set to the z-axis direction in the Unity world coordinate system; the center line of the pipe is generated by the control point, and then the center line of the pipe is offset up and down along the y-axis by one unit of the pipeline radius to obtain the other two rule lines, namely the top line and the bottom line of the pipe; the scanning direction is set to two types: scanning along the positive direction of the z-axis and scanning along the negative direction of the z-axis; the random scanning direction is achieved by randomly flipping the z coordinates of all control points.

[0016] Furthermore, the simulation algorithm for pipeline disconnection and misalignment in the third step is established according to the following formula:

[0017]

[0018] In formula (1): P coord,dis is the coordinates (x, y, z) of the pipeline control point after the disconnection defect occurs; Pcoord,x , P coord,y , P coord,z are the initial pipeline coordinates; and are random displacements greater than zero along the x-axis and y-axis, respectively, in meters; L2 is the interface length of the pipe socket section; is a random displacement greater than zero along the z-axis, in m; P coord,mis is the coordinates (x, y, z) of the pipeline control point after the misalignment defect occurs; is a random displacement greater than zero along the z-axis, in meters; are random rotations along the x, y, and z axes respectively;

[0019] The simulation algorithm for rubber ring shedding is established according to the following method: first, rubber rings of different shapes are modeled in BIM software, and then imported into Unity3D to create rubber ring preforms; the rubber ring preforms are placed on the misalignment or disjoint defect control points of the pipe top line in a randomly selected shape and probability manner, and the U(-T) is randomly scaled along the x and y axes. rubb ,T rubb ), randomly rotate along the xoy plane between -180° and 180°, and randomly scale U(S) along the x, y, and z axes rubb,min ,S rubb,max ), where U represents uniform random distribution, T rubb Indicates the distance from the edge to the center of the rubber ring preform, S rubb,min and S rubb,max Respectively represent the minimum and maximum scaling factors of the rubber ring size;

[0020] The simulation algorithm of concrete spalling is established according to the following method: according to the surface bending characteristics of the pipeline, a digital model of concrete spalling defects is constructed on the inner diameter of the pipeline BIM design model, and the coordinate origin of the spalling defect is set at the center of the cross section; the spalling defect consists of two parts: the spalling surface and the spalling hole, and the spalling hole represents the laser incident port during the scanning process to achieve the shielding relationship of spalling; finally, the OBJ digital model of the concrete spalling defect is imported into Unity3D and a spalling defect prefabricated body is created; when generating the spalling defect prefabricated body, the depth and shape of the spalling are randomly selected, and the spalling is randomly rotated between -180° and 180° around the z-axis, and randomly translated along the z-axis by U(-T spall ,T spall ), randomly scale U(S) along the z axis spall,min ,S spall,max ) and place them on the tube centerline excluding the “first point” control point according to the probability parameter; where U represents uniform random distribution, T spallSet to half the distance between the two control points, S spall,min and S spall,max are the minimum and maximum scaling factors of the spall size, respectively;

[0021] The corrosion simulation algorithm is established according to the following method: the modeling of corrosion defects is realized by mesh programming constructed by vertices and triangles in the Unity3D environment, and the coordinates of the vertices of the corrosion surface are generated according to the following formula:

[0022]

[0023] I-type corrosion edge vertex (θ = -θ corros Or θ=θ corros ) will be set to (x, y) = polarToCart(θ, r) to simulate the edge position of the corrosion, while type II corrosion simulates the situation of complete corrosion of the entire cross section, using triangular faces to connect the edge vertices into a ring mesh;

[0024] In formula (2), polarToCart(*) represents the function of converting polar coordinate system to rectangular coordinate system; r is the designed inner diameter of the pipeline; U represents random uniform distribution, reflecting the degree of corrosion; the random distribution of corrosion level is set to U(0,αt), where t is the pipeline wall thickness, α is the percentage of corrosion loss; θ corros Set to (θ min ,θ max ) to generate random values ​​from 2θ min to 2θ max Random erosion angle, θ min and θ max are the minimum and maximum corrosion ranges along the pipeline cross section, respectively; scale represents the corrosion length along the longitudinal direction of the pipeline, which is a random value U(S corr,min ,S corr,max ), S corr,min and S corr,max They are the minimum and maximum corrosion ranges along the longitudinal direction of the pipeline respectively; new Vector3(*) means creating a three-dimensional coordinate vector in Unity;

[0025] The simulation algorithm of siltation is established according to the following method: Perlin noise and fractal Brownian motion fBm noise are used to simulate the topographic undulation of siltation defects. In addition to the change of y coordinate, the range of siltation defects in the x-axis and z-axis is defined as (-r, r), where r is the design radius of the pipeline. The x, y, and z coordinates follow the world coordinate system of Unity3D. The change of siltation depth is simulated by random translation along the y-axis. where y h is the fluctuation height of the fBm algorithm on the y-axis, ranging from 0 to The silt is generated within a random depth range;

[0026] The simulation algorithm of obstacle blockage is established according to the following method: brick models of various shapes and sizes are modeled in BIM software, and then imported into Unity3D to create an obstacle prefab. Subsequently, a Rigidbody component is added to the obstacle prefab to simulate gravity and motion resistance based on the physics engine; at the same time, a Collider component is added to the obstacle prefab, the pipe prefab and the siltation mesh, and the Random.onUnitSphere() function is used to generate obstacles from random directions according to probability parameters and simulate falling to the bottom of the pipe by gravity.

[0027] Furthermore, the fourth step specifically includes: the laser radar scanning process of the virtual robot is simulated by Ray and Physics.RaycastAll() function in Unity3D; the resolution of the point cloud is set: the point distance at the 10m position is x, and the angle step length of the laser ray in the vertical and horizontal directions is θ step =arctan(x / 10000)·180° / π; the scanning range of the virtual robot is set to the vertical angle (θ longi_start ,θ longi_end ) and the horizontal direction is (θ circum_start ,θ circum_end ); the virtual robot laser radar is emitted in the vertical direction (θ longi_end -θ longi_start ) / θ step A Ray is used to simulate the vertical scan, with θ step The horizontal rotation is performed with an angle step of θ to simulate the horizontal scanning. Therefore, the maximum number of point clouds that can be collected in each scanning process is [(θ longi_end -θ longi_start ) / θ step ]·[(θ circum_end -θ circum_start ) / θ step ]; In the scanning simulation parameter setting of the virtual robot, the sensor length is set to the farthest reaching distance of the scanning ray. After a single scan, the virtual robot will move to the coordinates of the next control point on the centerline of the pipe; when the virtual robot moves to the coordinates of the last control point in the scene and the point cloud acquisition task is not completed, a new concrete pipe defect scene will be automatically regenerated to continue the point cloud acquisition task.

[0028] Furthermore, various scanning errors are introduced in the laser radar scanning process of the virtual robot to make it closer to the actual point cloud situation; the scanning error includes random error, distance error and equipment error, as shown in the following formula:

[0029]

[0030] In the formula: OP' coord is the scanning coordinate point after error is applied; OP coord is the idealized scanning coordinate point; E random is the random error, including components e on the x, y, and z axes x 、e y and e z , and each component obeys the normal distribution; μ is the mean of the normal distribution, σ is the standard deviation of the normal distribution, N(μ,σ) represents the normal distribution with mean μ and standard deviation σ; all are determined by the technical parameters of the simulated equipment; E distance is the distance error; σ perDistanceUnit is the additional standard deviation per unit ray distance, determined according to technical parameters; D hit is the distance from the scanning sensor position to the target point; V ray is the normalized vector of the scan ray vector.

[0031] Furthermore, the specific process of the synthetic point cloud generation algorithm for automatic semantic annotation in the fifth step is as follows: ① Input the information after the laser ray simulated by the physical engine hits the object hits = {point i =(x i ,y i ,z i ), i = [0, N]}, where hits[0] = point0 is the first object hit by the ray, hits[1] = point1 is the second object, and so on; point i is the coordinate position in the world coordinate system; (x s ,y s ,z s ) is the position coordinate of the virtual robot in the world coordinate system; ② The output result is set as: the coordinates (x, y, z) of the point cloud collected by the laser ray in the scanner coordinate system and the label tag, where tag = 0 means normal, 1 is peeling, 2 is an obstacle, 3 is corrosion, 4 is misalignment, 5 is siltation, 6 is disconnection, and 7 is a rubber ring defect; ③ Get the type of the first object hit by the ray hits[0].transform.tag; ④ The following is judged in order, if hits[0].transform.tag is an obstacle: (x, y, z) = (x s ,y s ,z s )-point0+E random +e distance ; tag = 2; ⑤ If hits[0].transform.tag is a rubber ring defect: (x, y, z) = (x s ,ys ,z s )-point0+E random +E distance ; tag = 7; ⑥ If hits0].transform.tag is siltation: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag = 5; ⑦ If hits[0].transform.tag is the spalling hole, the first case is that no corrosion occurs at the same time, N ≥ 2 and hits[2].transform.tag is the spalling surface: (x, y, z) = (x s ,y s ,z s )-point2+E random +E distance ; tag = 1; The second case is that the corrosion depth is less than the peeling depth, N ≥ 3 and hist[2].transform.tag is the corrosion surface and hits[3].transform.tag is the peeling surface: (x, y, z) = (x s ,y s ,z s )-point3+E random +E distance ; tag = 1;⑧ If the pipeline is disconnected and hits[0].transform.tag is a socket or a socket: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag = 6; ⑨ If the pipe is misaligned and hits[0].transform.tag is a socket or a socket: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag=4;⑩If the pipeline is corroded, N≥1, hits[0].transform.tag is the pipe segment, spigot or socket, and hits[1].transform.tag is the corrosion surface: (x,y,z)=(x s ,y s ,z s )-point1+E random +E distance ;tag=3; Finally, if hits[0].transform.tag is a pipe segment, spigot, or socket: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ;tag=0; Get point cloud data (x, y, z, tag); all data sets (x, y, z, tag) will be further added with normal vector data (n x ,n y ,n z ).

[0032] The beneficial effects of the present invention include:

[0033] 1. The present invention is aimed at urban drainage pipes and provides a large amount of low-cost, high-quality, fast-collection, and highly random artificial synthetic data for the semantic segmentation of defects in this type of pipes, solving the problems of data scarcity and singleness faced by deep learning in the actual application of engineering.

[0034] 2. Theoretically, the amount of data in the artificially synthesized point cloud generated by the present invention is only limited by the computing power and data storage capacity of the computing server. Therefore, compared with the high-cost and slow collection of a large amount of real data on-site, it provides a low-cost and fast way to expand training data.

[0035] 3. The present invention simulates the defect scene of urban drainage pipes based on the Unity3D game engine and BIM design software, and adopts advanced structural domain randomization simulation technology based on integrated 3D modeling and graphics rendering technology to construct a realistic digital defect scene.

[0036] 4. The present invention combines the emerging laser radar in-pipe detection technology in underground pipe network detection, and the proposed method for generating artificial synthetic data integrates advanced laser radar scanning simulation technology, realizes the automatic collection and semantic annotation of artificial synthetic point clouds, and takes into account the various noise influences of laser radar collection, laying the foundation for generating high-quality, realistic, and semantically rich artificial synthetic point clouds.

[0037] 5. The artificial synthetic point cloud generation method proposed in the present invention includes the categories of urban drainage pipe defects with complex geometric forms and highly random distribution: "peeling", "obstruction", "corrosion", "misalignment", "siltation", "disconnection" and "rubber ring defect".

[0038] 6. The method proposed in the present invention first uses a large number of low-cost, fast-collected artificial point clouds to obtain a pre-trained basic model, and then can use a smaller amount of real point clouds from engineering sites for fine-tuning. This method can better utilize artificial synthetic point clouds and provide an effective way for knowledge transfer between synthetic point clouds and real point clouds.

[0039] 7. The present invention provides a new data enhancement approach for the semantic segmentation of urban drainage pipe defects, identifies complex defects in a more efficient manner, and lays the foundation for the quantitative evaluation of defects in urban drainage pipes. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a schematic diagram of the pipeline prefab in the Unity3D engine.

[0041] Figure 2 Schematic diagram of the control point and rule line generation of the structured domain randomization technique.

[0042] Figure 3 This is a schematic diagram of generating concrete spalling defects in Unity3D.

[0043] Figure 4 This is a schematic diagram of generating concrete corrosion defects in Unity3D.

[0044] Figure 5 It is a schematic diagram of generating various defect scenes in Unity3D.

[0045] Figure 6 This is a schematic diagram of the virtual robot lidar scanning process in Unity3D.

[0046] Figure 7 It is a schematic diagram of the use of artificial synthetic data based on the pre-training data enhancement strategy.

[0047] In the figure: 1. Socket section, 2. Middle pipe section, 3. Socket section, 4. Effective length, 5. Interface length, 6. First point, 7. Socket end point, 8. Middle point, 9. Socket end point, 10. Pipe top line, 11. Pipe center line, 12. Pipe bottom line, 13. Disconnection, 14. Misalignment, 15. Type I defect, 16. Type II defect, 17. Peeling surface, 18. Peeling hole, 19. Laser, 20. Type I corrosion, 21. Type II corrosion, 22. Pipe wall thickness, 23. Virtual robot, 24. Ray, 25. Vertical angle, 26. Horizontal angle, 27. Idealized scanning coordinate point, 28. Distance from the scanning sensor position to the target point. DETAILED DESCRIPTION

[0048] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0050] The purpose of the present invention is to provide a data enhancement method for semantic segmentation of urban drainage pipeline defect point cloud, which provides a large amount of low-cost, high-quality, fast-collection, and highly random artificial synthetic data for deep learning model training of urban drainage pipeline defects, and provides an efficient way to train deep learning models using artificial synthetic data. The method integrates Unity game engine technology, structural domain randomization technology, and laser scanning simulation technology, and provides a new technical means to solve the data scarcity problem faced by the urban pipe network field in the direction of three-dimensional point cloud deep learning. The generated synthetic point cloud data with automatic annotation function has the advantages of fast acquisition speed, low cost, and strong randomness, which provides a big data foundation for drainage pipelines in the field of automation and intelligence, and is conducive to promoting the further development of pipeline three-dimensional point cloud deep learning. The specific measures are as follows: use BIM software to establish a three-dimensional digital model of the pipeline and output an OBJ format file; establish structural domain randomization rules in the Unity3D virtual environment and set global parameters; establish simulation algorithms for pipeline disconnection, misalignment, rubber ring shedding, concrete spalling, corrosion, siltation, and obstacle blockage defects, and randomly generate simulation scenes of urban drainage pipeline defects; establish a simulation algorithm for the laser radar robot's scanning and detection process in the pipe based on the Unity3D physics engine, and set parameters related to the sensor equipment; propose an algorithm for generating synthetic point clouds with automated semantic annotation to realize automated collection of synthetic data; use a pre-trained-fine-tuned deep learning data enhancement strategy to first train the basic model on a large amount of synthetic data, and then optimize the model parameters based on a small amount of measured data from a specific project to obtain a pipeline defect semantic segmentation model, providing strong support for the quantitative evaluation of urban drainage pipeline performance.

[0051] Example 1

[0052] A data enhancement method for semantic segmentation of urban drainage pipe defect point cloud, the specific implementation steps include:

[0053] The first step is to use Trimble SketchUp's professional BIM design software to build a 3D digital model of the pipeline, output the OBJ format file and import it into the Unity3D engine to make a prefabricated body, such as Figure 1As shown. In the Trimble SketchUp software, a three-dimensional digital model of the pipeline is established according to the pipeline design drawings used in the project, such as a concrete pipe with an inner diameter of 800mm designed according to the specifications. The created three-dimensional digital geometric model requires the pipeline to be pre-divided into three sections: socket section 1, middle pipe section 2, and socket section 3. According to the pipeline design specifications, the total length of each section of the pipeline is divided into an effective length 4 and an interface length 5. The lengths of the socket section 3 and the socket section 1 are respectively 10cm away from the end of the effective length 4 of the pipeline. Then output the OBJ format file from the BIM software and import it into Unity3D to create a pipeline prefab. The pipeline prefab has four control points set, namely "first point 6", "socket endpoint 7", "middle point 8" and "socket endpoint 9", thereby dividing the effective length of the pipeline into four equal parts;

[0054] The second step is to establish structural domain randomization rules in the Unity3D virtual environment, such as Figure 2 As shown in the figure. Structural domain randomization includes three types of components from the whole to the part, namely global parameters, rule lines and objects placed along the rule lines. The probability connection between different components of structural domain randomization is set, and global parameters are set in the simulation scene. The global parameters control the rule lines aligned with the generated defect objects, including the number of control points, the probability of occurrence of each defect and the scanning direction. The number of control points is determined by the number of pipes simulated in the scene and the number of control points on each pipe section. For example, if a pipeline system consisting of 50 sections of spigot-and-socket pipes is simulated in the scene, there will be 50×4=200 control points. The rule lines of structural domain randomization include the top line 10, the center line 11 and the bottom line 12. To generate the rule lines, the pipeline preform must first be installed in the direction of the pipeline axis, where the axis direction of the pipeline preform is pre-set to the z-axis direction in the Unity world coordinate system. The center line of the pipe is generated by the control points, and then the center line of the pipe is offset up and down along the y-axis by one unit of the pipeline radius to obtain the other two rule lines: the top line and the bottom line. There are two scanning directions: scanning along the positive z-axis direction and scanning along the negative z-axis direction. Random scanning direction is achieved by randomly flipping the z-coordinates of all control points;

[0055] Step 3: Set global parameters and establish pipeline disconnection and misalignment ( Figure 2 ), rubber ring falling off, concrete peeling off ( Figure 3 ),corrosion( Figure 4 ), simulation algorithms for siltation and obstacle blockage defects, and randomly generated simulation scenarios for urban drainage pipe defects ( Figure 5 ). Set the probability of defect occurrence of global parameters and install the prefabricated body according to the pipe segment along the pipeline axis.

[0056] The disjoint 13 and misalignment 14 of the pipeline are generated as the control points are constructed, as follows:

[0057]

[0058] Where: P coord,dis is the coordinates (x, y, z) of the pipeline control point after the disconnection defect occurs; P coord,x , P coord,y , P coord,z are the initial pipeline coordinates; and are the random displacements along the x-axis and y-axis, for example (-0.05 to 0.05), in meters; L2 is the interface length at the pipe socket end; is a random displacement greater than zero along the z-axis, such as (0-0.1), in m; P coord,mis is the coordinates (x, y, z) of the pipeline control point after the misalignment defect occurs; is the random displacement along the z-axis, for example (0.05-0.1), in m; They are random rotations along the x, y, and z axes, for example (-10° to 10°).

[0059] Pipe rubber ring shedding defect generation: There is a probability of rubber ring shedding defect at the control point where misalignment and disconnection occur. First, rubber rings of different shapes are modeled in the BIM design software, and then imported into Unity3D to create rubber ring prefabs. The rubber ring prefabs are placed on the misalignment or disconnection defect control points of the pipe top line in a random manner with a random shape and probability, and randomly scaled along the x and y axes by U(-T rubb ,T rubb ), randomly rotate along the xoy plane between -180° and 180°, and randomly scale U(S) along the x, y, and z axes rubb,min ,S rubb,max ). Where U represents uniform random distribution, T rubb Indicates the distance from the edge to the center of the rubber ring preform, such as 0.05m, S rubb,min and S rubb,max They represent the minimum and maximum scaling factors of the rubber ring size, such as (0.9~1.1).

[0060] Pipe spalling defect generation: Digital mesh modeling of spalling defects of different depths and shapes is performed in BIM software. Based on engineering practice experience, 5mm, 8mm, 12mm, 18mm, 25mm and 30mm can be selected as typical depths for modeling, but they can still be expanded based on prior knowledge of specific projects. In terms of defect shape, the two most common types of spalling defects in practice are considered, such as Figure 3As shown. Type I defect 15 is a concave defect with steep edges, and Type II defect 16 is an arc-shaped defect with gentle edges. According to the surface bending characteristics of the pipeline, a digital model of the spalling defect is constructed on the inner diameter of the pipeline BIM design model, and the coordinate origin of the spalling defect is set at the center of the cross section. The spalling defect consists of two parts: the spalling surface 17 and the spalling hole 18. The hole represents the incident port of the laser 19 during the scanning process to achieve the occlusion relationship of the spalling. Finally, the OBJ model of the spalling component is imported into Unity3D and a spalling prefab is created. When generating the spalling defect, the depth and shape of the spalling are randomly selected, the z-axis is randomly rotated between -180° and 180°, and the z-axis is randomly translated by U(-T spall ,T spall ), randomly scale U(S) along the z axis spall,min ,S spall,max ) and placed it on the centerline of the tube excluding the "first point" control point according to the probability parameter. spall Set to half the distance between the two control points, such as 0.1m, S spall,min and S spall,max are the minimum and maximum scaling factors of the peeling size, for example (0.5~1.5).

[0061] Pipeline corrosion defect generation: Corrosion defects are implemented in Unity3D environment through C# scripting. The modeling of corrosion defects is implemented through mesh programming constructed by vertices and triangles. The coordinates of the vertices on the corrosion surface are generated as follows:

[0062]

[0063] The edge vertex of type I corrosion 20 (θ = -θ corros Or θ=θ corros ) will be set to (x,y) = polarToCart(θ,r) to simulate the edge position of the corrosion, while type II corrosion 21 will simulate the situation of complete corrosion of the entire cross section, using triangular faces to connect the edge vertices into a circular ring mesh.

[0064] In the above formula: polarToCart(*) represents the function of converting polar coordinate system to rectangular coordinate system; r is the designed inner diameter of the pipeline; U represents random uniform distribution, reflecting the degree of corrosion. Set the random distribution of corrosion level U(0,αt), where t is the pipe wall thickness 22, α is the percentage of corrosion loss, for example, set α=10% for small corrosion level and α=30% for medium corrosion level; θ corros Set to (θ min ,θ max ) to generate random values ​​from 2θ min to 2θ max Random erosion angle, θ min and θ maxare the minimum and maximum corrosion ranges along the pipe cross section, such as 45° and 165°; scale represents the corrosion length along the longitudinal direction of the pipeline, which is a random value U(S corr,min ,S corr,max ), S corr,min and S corr,max They are the minimum and maximum corrosion ranges along the longitudinal direction of the pipeline, such as 0.2m and 1m.

[0065] Siltation defect generation: Siltation defects are generated by scripts based on grid programming. Perlin noise and fractal Brownian motion fBm noise are used to simulate the topography of the siltation defect. In addition to the change in the y coordinate, the range of the siltation defect in the x-axis and z-axis is defined as (-r, r), where r is the design radius of the pipeline, and the x, y, and z coordinates follow the world coordinate system of Unity3D. The change in siltation depth is simulated by random translation along the y axis. where y h is the fluctuation height of the fBm algorithm on the y-axis, ranging from 0 to The sediment is generated at a random depth range.

[0066] Obstacle defect generation: Brick models of various shapes and sizes are modeled in BIM software, and then imported into Unity3D to create obstacle prefabs. Subsequently, a Rigidbody component is added to the obstacle prefab, which can simulate gravity and motion resistance based on the physics engine. At the same time, Collider components are added to the obstacle prefab, pipe prefab, and siltation mesh. The Random.onUnitSphere() function is used to generate obstacles from random directions according to probability parameters and simulate falling to the bottom of the pipe by gravity.

[0067] Step 4: Based on the Unity3D physics engine, a simulation algorithm for the laser radar robot's scanning and detection process in the pipe is established, and parameters related to the sensor equipment are set, such as Figure 6 As shown. The laser radar scanning process of the virtual robot 23 is simulated by Ray 24 and Physics.RaycastAll() function in Unity3D. Set the resolution of the point cloud: the point distance at the 10m position is x, for example 49.1mm, and the angle step length of the laser ray in the vertical and horizontal directions is θ step =arctan(x / 10000), i.e. 0.28°. The scanning range of the virtual robot is set to the vertical direction with an angle of 25 (θ longi_start ,θ longi_end ), for example (-60°, 90°), the horizontal angle 26 is (θ circum_start ,θ circum_end), such as (-180°, 180°). The virtual robot laser radar emits in the vertical direction (θ longi_end -θ longi_start ) / θ step , that is, 536 Ray rays are used to simulate the scanning in the vertical direction, with θ step The angle step size is used to simulate horizontal scanning. Therefore, the maximum number of point clouds that can be collected in each scanning process is [(θ longi_end -θ longi_start ) / θ step ]·[(θ circum_end -θ circum_start ) / θ step ], that is, 689,296 data points. In the virtual robot's scanning simulation parameter settings, the sensor length is set to the farthest reach of the scanning ray. After a single scan, the virtual robot will move to the next control point coordinate on the pipe centerline. When the virtual robot moves to the last control point coordinate in the scene and the point cloud acquisition task is not completed, a new concrete pipe defect scene will be automatically regenerated to continue the point cloud acquisition task.

[0068] Various errors are introduced during the laser radar scanning process of the virtual robot 23 to make it closer to the actual point cloud situation. The scanning error mainly includes random error, distance error and equipment error, as shown in the following formula. Random error is usually described as an error that obeys a random normal distribution. The distance error can be determined according to the manufacturer's specification. The equipment error can be eliminated by calibration before scanning.

[0069]

[0070] In the formula: OP' coord is the scanning coordinate point after error is applied; OP coord is the idealized scanning coordinate point 27; E random is the random error, including components e on the x, y, and z axes x 、e y and e z , and each component obeys the normal distribution; μ is the mean of the normal distribution, σ is the standard deviation of the normal distribution, both of which are determined by the technical parameters of the simulated device, such as simulating FAROFocus S Scanner, when the scanning distance is within 10m: μ = 0, σ = 2mm, when the scanning distance is greater than 10m, μ = 0, σ = 3.5mm; E distance is the distance error; σ perDistanceUnit is the additional standard deviation per unit ray distance, determined according to technical parameters, such as FARO Focus S When the scanning distance of the scanner exceeds 25m, σ perDistanceUnit =0.1mm / m; Dhit is the distance from the scanning sensor position to the target point (28); V ray is the normalized vector of the scanning ray vector;

[0071] Step 5. Generate a synthetic point cloud with automatic semantic annotations to realize the automatic collection of synthetic data. During the point cloud collection process of the virtual robot, each target point hit by the ray needs to be identified in the semantic segmentation category. At the location of the pipe socket, the point cloud should be labeled as "normal", "misaligned" or "disconnected" according to whether the pipe is misaligned or disconnected. In addition, the occlusion relationship in the form of complex geometric defects such as corrosion and peeling is considered in sequence during the label generation process. The specific process of the developed automatic point cloud annotation algorithm is as follows: ① Input the information hits = {point i =(x i ,y i ,z i ), i = [0, N]}, where hits[0] = point0 is the first object hit by the ray, hits[1] = point1 is the second object, and so on. point i is the coordinate position in the world coordinate system. (x s ,y s ,z s ) is the position coordinate of the robot in the world coordinate system. ② The output result is set as: the coordinates (x, y, z) of the point cloud collected by the laser ray in the scanner coordinate system and the label tag, where tag = 0 means normal, 1 is peeling, 2 is an obstacle, 3 is corrosion, 4 is misalignment, 5 is siltation, 6 is disconnection, and 7 is a rubber ring defect. ③ Get the type of the first object hit by the ray hits[0].transform.tag. ④ The following judges in order, if hits[0].transform.tag is an obstacle: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag = 2. ⑤ If hits[0].transform.tag is a rubber ring defect: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag = 7. ⑥ If hits[0].transform.tag is siltation: (x, y, z) = (x s ,y s ,z s )-point0+Erandom +E distance ; tag = 5. ⑦ If hits[0].transform.tag is the spalling hole, the first case is that no corrosion occurs at the same time, N ≥ 2 and hits[2].transform.tag is the spalling surface: (x, y, z) = (x s ,y s ,z s )-point2+E random +E distance ; tag = 1. The second case is that the corrosion depth is less than the peeling depth, N ≥ 3 and hits[2].transform.tag is the corrosion surface and hits3].transform.tag is the peeling surface: (x, y, z) = (x s ,y s ,z s )-point3+E random +E distance ; tag = 1. ⑧ If the pipe is disconnected and hits[0].transform.tag is a socket or a socket: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag = 6. ⑨ If the pipe is misaligned and hits[0].transform.tag is a socket or a socket: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ; tag=4. ⑩ If the pipeline is corroded, N≥1, hits[0].transform.tag is the pipe segment, spigot or socket, and hits[1].transform.tag is the corrosion surface: (x,y,z)=(x s ,y s ,z s )-point1+E random +E distance ;tag=3. Finally, if hits[0].transform.tag is a pipe segment, spigot, or socket: (x, y, z) = (x s ,y s ,z s )-point0+E random +E distance ;tag=0. Get point cloud data (x, y, z, tag). All data sets (x, y, z, tag) will be further added with normal vector data (n x ,n y ,n z );

[0072] Step 6: Use the pre-training-fine-tuning deep learning data enhancement strategy to first train the basic model on a large amount of synthetic data, and then optimize the model parameters based on a small amount of measured data from specific projects to obtain a pipeline defect semantic segmentation model, which provides strong support for the quantitative evaluation of urban drainage pipeline performance. Figure 7 As shown in the figure, after the training loss and training accuracy of a large amount of synthetic data are stabilized, the basic model is obtained. Then, in the fine-tuning stage, real data collected in the engineering field is added and the learning rate is kept unchanged to obtain the final deep learning model.

[0073] In summary, the proposed method provides a way to achieve faster, more cost-effective and efficient deep learning semantic segmentation tasks in urban drainage pipeline defect assessment. The developed automated synthetic data is based on structured domain randomization technology and laser scanning simulation technology, which has the advantages of high quality, realism and rich semantics, alleviating the data scarcity problem in engineering. The proposed pre-training data enhancement strategy better solves the knowledge transfer problem between synthetic point clouds and real point clouds.

[0074] The present invention provides a large amount of low-cost, high-quality, fast-collection, and highly random artificially synthesized data for semantic segmentation of defects in urban drainage pipes, solving the data scarcity and singleness problems faced by deep learning in the actual application of engineering. The artificially synthesized point cloud generated by the present invention is, in theory, only limited by the computing power and data storage capacity of the computing server. Therefore, compared with the large amount of real data collected on-site, which is costly and slow, it provides a low-cost and fast way to expand the training data. The present invention simulates the defect scene of the urban drainage pipe based on the Unity3D game engine and BIM design software, and adopts advanced structural domain randomization simulation technology on the basis of integrated 3D modeling and graphics rendering technology to construct a realistic digital defect scene. The present invention combines the emerging laser radar in-pipe detection technology in underground pipe network detection, and the proposed artificially synthesized data generation method integrates advanced laser radar scanning simulation technology, realizes the automatic collection and semantic annotation of artificially synthesized point clouds, and considers the various noise effects of laser radar collection, which lays the foundation for generating high-quality, realistic, and semantically rich artificially synthesized point clouds. The categories of urban drainage pipe defects considered by the artificial synthetic point cloud generation method proposed in the present invention include "normal", "peeling", "obstacle", "corrosion", "misalignment", "siltation", "disconnection" and "rubber ring defect". The method proposed in the present invention first uses a large number of low-cost and fast-collected artificial synthetic point clouds to obtain a pre-trained basic model, and then uses a smaller amount of real engineering point clouds for fine-tuning. This method can better utilize artificial synthetic point clouds and provide an effective way for knowledge transfer between synthetic point clouds and real point clouds.

[0075] In summary, the present invention integrates the Unity game engine technology, structured domain randomization technology, and laser scanning simulation technology to provide a method for generating artificial synthetic data. This artificial synthetic data has the characteristics of low cost, high quality, fast acquisition speed, large data volume, and strong randomness. It provides a way to achieve faster, more economical and efficient deep learning semantic segmentation tasks in the defect assessment of urban drainage pipes, identifies complex defects in a more efficient way, and lays the foundation for the quantitative evaluation of defects in urban drainage pipes.

[0076] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A data enhancement method for semantic segmentation of urban drainage pipe defect point cloud, its characteristic steps include: The first step is to use BIM software to build a three-dimensional digital model of the pipeline, output the OBJ format file and import it into the Unity3D engine to make a prefabricated body; The second step is to establish structural domain randomization rules in the Unity3D virtual environment; Step 3: Set global parameters, establish simulation algorithms for pipeline disconnection and misalignment, rubber ring shedding, concrete spalling, corrosion, siltation, and obstacle blockage defects, and randomly generate simulation scenarios for urban drainage pipeline defects; Step 4: Establish a simulation algorithm for the laser radar robot's scanning and detection process in the pipe based on the Unity3D physics engine, and set parameters related to the sensor equipment; Step 5: Use the synthetic point cloud generation algorithm with automatic semantic annotation to realize the automatic collection of synthetic point cloud defect data; synthetic point cloud defect labels include "normal", "peeling", "obstacle", "corrosion", "misalignment", "siltation", "disconnection" and "rubber ring defect"; Step 6: Use the pre-training-fine-tuning deep learning data enhancement strategy. First, use a large amount of synthetic data to train the basic model. Then, use a small amount of measured data from specific projects to optimize the model parameters and obtain a pipeline defect semantic segmentation model.

2. According to claim 1, a data enhancement method for semantic segmentation of urban drainage pipe defect point cloud is characterized in that: The first step specifically includes: establishing a three-dimensional digital geometric model of the pipeline in the BIM software according to the pipeline design drawings used in the project. The created three-dimensional digital geometric model pre-divides the pipeline into three sections: the socket section, the middle pipe section, and the bell section. The total length of each section of the pipeline is divided into an effective length and an interface length; the lengths of the bell section and the socket section are respectively 10 cm away from the end of the effective length of the pipeline; then output the OBJ format file from the BIM software and import it into Unity3D to create a pipeline prefab; the pipeline prefab sets four control points, namely "first point", "bell endpoint", "middle point" and "socket endpoint", thereby dividing the effective length of the pipeline into four equal parts.

3. According to claim 2, a data enhancement method for semantic segmentation of urban drainage pipe defect point cloud is characterized in that: The second step is as follows: structural domain randomization includes three types of components from the whole to the part, namely global parameters, rule lines and objects placed along the rule lines; the probability connection between different components of structural domain randomization is set, and global parameters are set in the simulation scene. The global parameters control the rule lines to which the generated defect objects are aligned, including the number of control points, the probability of occurrence of each defect and the scanning direction; the number of control points is determined by the number of pipelines simulated in the scene and the number of control points on each section of the pipeline; the rule lines of structural domain randomization include the top line, the middle line and the bottom line of the pipe. To generate the rule lines, the pipe preform must first be installed in the direction of the pipeline axis, and the axis direction of the pipe preform is pre-set to the z-axis direction in the Unity world coordinate system; the middle line of the pipe is generated by the control point, and then the middle line of the pipe is offset up and down along the y-axis by one unit of the pipeline radius to obtain the other two rule lines, namely the top line and the bottom line of the pipe; the scanning direction is set to two types: scanning along the positive direction of the z-axis and scanning along the negative direction of the z-axis; the random scanning direction is achieved by randomly flipping the z coordinates of all control points.

4. According to claim 3, a data enhancement method for semantic segmentation of urban drainage pipe defect point cloud is characterized in that: The simulation algorithm for pipeline disconnection and misalignment in the third step is established according to the following formula: In formula (1): P coord,dis is the coordinates (x, y, z) of the pipeline control point after the disconnection defect occurs; P coord,x , P coord,y , P coord,z are the initial pipeline coordinates; and are random displacements greater than zero along the x-axis and y-axis, respectively, in meters; L2 is the interface length of the pipe socket section; is a random displacement greater than zero along the z-axis, in m; P coord,mis is the coordinates (x, y, z) of the pipeline control point after the misalignment defect occurs; is a random displacement greater than zero along the z-axis, in meters; are random rotations along the x, y, and z axes respectively; The simulation algorithm for rubber ring shedding is established according to the following method: first, rubber rings of different shapes are modeled in BIM software, and then imported into Unity3D to create rubber ring preforms; the rubber ring preforms are placed on the misalignment or disjoint defect control points of the pipe top line in a randomly selected shape and probability manner, and the U(-T) is randomly scaled along the x and y axes. rubb , T rubb ), randomly rotate along the xoy plane between -180° and 180°, and randomly scale U(S) along the x, y, and z axes rubb,min , S rubb,max ), where U represents uniform random distribution, T rubb Indicates the distance from the edge to the center of the rubber ring preform, S rubb,min and S rubb,max Respectively represent the minimum and maximum scaling factors of the rubber ring size; The simulation algorithm of concrete spalling is established according to the following method: according to the surface bending characteristics of the pipeline, a digital model of concrete spalling defects is constructed on the inner diameter of the pipeline BIM design model, and the coordinate origin of the spalling defect is set at the center of the cross section; the spalling defect consists of two parts: the spalling surface and the spalling hole, and the spalling hole represents the laser incident port during the scanning process to achieve the shielding relationship of spalling; finally, the OBJ digital model of the concrete spalling defect is imported into Unity3D and a spalling defect prefabricated body is created; when generating the spalling defect prefabricated body, the depth and shape of the spalling are randomly selected, and the spalling is randomly rotated between -180° and 180° around the z-axis, and randomly translated along the z-axis by U(-T spall , T spall ), randomly scale U(S) along the z axis spall,min , S spall,max ) and place them on the tube centerline excluding the "first point" control point according to the probability parameter; where U represents uniform random distribution, T spall Set to half the distance between the two control points, S spall,min and S spall,max are the minimum and maximum scaling factors of the spall size, respectively; The corrosion simulation algorithm is established according to the following method: the modeling of corrosion defects is realized by mesh programming constructed by vertices and triangles in the Unity3D environment, and the coordinates of the vertices of the corrosion surface are generated according to the following formula: I-type corrosion edge vertex (θ = -θ corros Or θ=θ corros ) will be set to (x, y) = polarToCart(θ, r) to simulate the edge position of the corrosion, while type II corrosion simulates the situation of complete corrosion of the entire cross section, using triangular faces to connect the edge vertices into a ring mesh; In formula (2), polarToCart(*) represents the function of converting polar coordinate system to rectangular coordinate system; r is the designed inner diameter of the pipeline; U represents random uniform distribution, reflecting the degree of corrosion; the random distribution of corrosion level is set to U(0, αt), where t is the pipe wall thickness, α is the percentage of corrosion loss; θ corros Set to (θ min ,θ max ) to generate random values ​​from 2θ min to 2θ max Random erosion angle, θ min and θ max are the minimum and maximum corrosion ranges along the pipeline cross section, respectively; scale represents the corrosion length along the longitudinal direction of the pipeline, which is a random value U(S corr,min , S corr,max ), S corr,min and S corr,max They are the minimum and maximum corrosion ranges along the longitudinal direction of the pipeline respectively; newVector3(*) means creating a three-dimensional coordinate vector in Unity; The simulation algorithm of the siltation is established according to the following method: Perlin noise and fractal Brownian motion fBm noise are used to simulate the topographic undulation of the siltation defect. In addition to the change of the y coordinate, the range of the siltation defect in the x-axis and z-axis is defined as (-r, r), where r is the design radius of the pipeline, and the x, y, and z coordinates follow the world coordinate system of Unity3D. The change of the siltation depth is simulated by random translation along the y axis. where y h is the fluctuation height of the fBm algorithm on the y-axis, ranging from 0 to The silt is generated within a random depth range; The simulation algorithm of obstacle blockage is established according to the following method: brick models of various shapes and sizes are modeled in BIM software, and then imported into Unity3D to create an obstacle prefab. Subsequently, a Rigidbody component is added to the obstacle prefab to simulate gravity and motion resistance based on the physics engine; at the same time, a Collider component is added to the obstacle prefab, the pipe prefab and the siltation mesh, and the Random.onUnitSphere() function is used to generate obstacles from random directions according to probability parameters and simulate falling to the bottom of the pipe by gravity.

5. The data enhancement method for semantic segmentation of urban drainage pipe defect point cloud according to claim 3 or 4, characterized in that: The fourth step specifically includes: the laser radar scanning process of the virtual robot is simulated through Ray rays and Physics.RaycastAll() function in Unity3D; the resolution of the point cloud is set: the point distance at the 10m position is x, and the angle step length of the laser ray in the vertical and horizontal directions is θ step =arctan(x / 10000)·180° / π; the scanning range of the virtual robot is set to the vertical angle (θ longi_start ,θ longi_end ) and the horizontal direction is (θ circum_start ,θ circum_end ); the virtual robot laser radar is emitted in the vertical direction (θ longi_end -θ longi_start ) / θ step A Ray is used to simulate the vertical scan, with θ step The horizontal rotation is performed with an angle step of θ to simulate the horizontal scanning. Therefore, the maximum number of point clouds that can be collected in each scanning process is [(θ longi_end -θ longi_start ) / θ step ]·[(θ circum_end -θ circum_start ) / θ step ]; In the scanning simulation parameter setting of the virtual robot, the sensor length is set to the farthest reaching distance of the scanning ray. After a single scan, the virtual robot will move to the coordinates of the next control point on the centerline of the pipe; when the virtual robot moves to the coordinates of the last control point in the scene and the point cloud acquisition task is not completed, a new concrete pipe defect scene will be automatically regenerated to continue the point cloud acquisition task.

6. According to claim 5, a data enhancement method for semantic segmentation of urban drainage pipe defect point cloud is characterized in that: Various scanning errors are introduced during the laser radar scanning process of the virtual robot to make it closer to the actual point cloud situation; scanning errors include random errors, distance errors and equipment errors, as shown in the following formula: In the formula: OP′ coord is the scanning coordinate point after error is applied; OP coord is the idealized scanning coordinate point; E random is the random error, including components e on the x, y, and z axes x 、e y and e z , and each component obeys the normal distribution; μ is the mean of the normal distribution, σ is the standard deviation of the normal distribution, N(μ, σ) represents the normal distribution with mean μ and standard deviation σ; all are determined by the technical parameters of the simulated equipment; E distance is the distance error; σ perDistanceUnit is the additional standard deviation per unit ray distance, determined according to technical parameters; D hit is the distance from the scanning sensor position to the target point; V ray is the normalized vector of the scan ray vector.

7. The data enhancement method for semantic segmentation of urban drainage pipe defect point cloud according to claim 6 is characterized in that: The specific process of the synthetic point cloud generation algorithm for automatic semantic annotation in the fifth step is as follows: ① Input the information after the laser ray simulated by the physical engine hits the object hits = {point i =(x i ,y i , z i ), i = [0, N]}, where hits[0] = point0 is the first object hit by the ray, hits[1] = point1 is the second object, and so on; point i is the coordinate position in the world coordinate system; (x s ,y s , z s ) is the position coordinate of the virtual robot in the world coordinate system; ② The output result is set as: the coordinates (x, y, z) of the point cloud collected by the laser ray in the scanner coordinate system and the label tag, where tag = 0 means normal, 1 is peeling, 2 is an obstacle, 3 is corrosion, 4 is misalignment, 5 is siltation, 6 is disconnection, and 7 is a rubber ring defect; ③ Get the type of the first object hit by the ray hits[0].transform.tag; ④ The following is judged in order, if hits[0].transform.tag is an obstacle: (x, y, z) = (x s ,y s , z s )-point0+E random +E distance ; tag = 2; ⑤ If hits[0].transform.tag is a rubber ring defect: (x, y, z) = (x s ,y s , z s )-point0+E random +E distance ; tag = 7; ⑥ If hits[0].fransform.tag is siltation: (x, y, z) = (x s ,y s , z s )-point0+E random +E distance ; tag = 5; ⑦ If hits[0].transform.tag is the spalling hole, the first case is that no corrosion occurs at the same time, N ≥ 2 and hits[2].transform.tag is the spalling surface: (x, y, z) = (x s ,y s , z s )-point2+E random +E distance ; tag = 1; The second case is that the corrosion depth is less than the peeling depth, N ≥ 3 and hits[2].transform.tag is the corrosion surface and hits[3].transform.tag is the peeling surface: (x, y, z) = (x s ,y s , z s )-point3+E random +E distance ; tag = 1;⑧ If the pipeline is disconnected and hits[0].transform.tag is a socket or a socket: (x, y, z) = (x s ,y s , z s )-point0+E random +E distance ; tag = 6; ⑨ If the pipe is misaligned and hits[0].transform.tag is a socket or a socket: (x, y, z) = (x s ,y s , z s )-point0+E random +E distance ; tag=4;⑩If the pipeline is corroded, N≥1, hits[0].transform.tag is the pipe segment, spigot or socket, and hits[1].transform.tag is the corrosion surface: (x,y,z)=(x s ,y s , z s )-point1+E random +E distance ;tag=3; Finally, if hits[0].transform.tag is a pipe segment, a spigot, or a socket: (x, y, z) = (x s ,y s , z s )-point0+E random +E distance ;tag=0; Get point cloud data (x, y, z, tag); all data sets (x, y, z, tag) will be further added with normal vector data (n x , n y , n z ).

Citation Information

Patent Citations

  • Pipeline defect identification method and device, terminal equipment and storage medium

    CN113284109A

  • Pipeline BIM model reconstruction method and system based on depth image and point cloud

    CN115294294A

  • Method for generating high-precision and microscopic virtual learning resource

    US11164289B1

Cited By

  • Point cloud technology processing method for defect positioning of complex building scene

    CN120318642A

  • Magnesia carbon brick automatic detection method based on laser sensor

    CN120868926A

  • Vision-based drainage pipeline defect three-dimensional quantification method and device

    CN121437610A