Surveying and recording method for underground cables and cable trenches based on artificial intelligence
The method constructs accurate three-dimensional models of underground cables using scanning and machine learning algorithms, addressing inefficiencies in fault detection and management by enhancing data security and transmission.
Patent Information
- Application Number
- CN202510558784.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2045-04-30
AI Technical Summary
The prior art lacks three-dimensional model construction in artificial intelligence cable fault warning based on convolutional neural networks, resulting in insufficient accuracy in cable management defect recognition.
Three-dimensional point cloud data acquisition of cable wells is used based on surveying and mapping equipment, and three-dimensional models are built with RANSAC algorithm denoising and 3D point cloud reconstruction technology. The YOLOv8 algorithm is used to establish a machine learning model to identify downhole defects and pipeline entrance occupations, and data transmission is carried out through gateway equipment encryption and protocol conversion.
It realizes high-precision three-dimensional model reconstruction of cable wells and fast and accurate identification of downhole defects, improves the efficiency of cable management and data transmission security, and ensures the timeliness and accuracy of detection data.
Smart Images

Figure CN120088410B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of artificial intelligence, and particularly relates to a method for surveying, mapping, collecting and recording underground cables and cable trenches based on artificial intelligence. Background Art
[0002] With the development of cities and the increase in the cable rate, as the lifeline of cities, the management level of power cables directly affects power supply reliability and urban public safety. Power cable management systems based on geographic information systems (GIS) are increasingly being applied. However, most systems are based on two-dimensional coordinates, with limitations in spatial representation and data analysis. To improve the efficiency and accuracy of cable management, researchers at home and abroad have proposed various new cable management system models, including those based on three-dimensional simulation technology, ground penetrating radar technology, three-layer GIS technology, RFID technology, etc.
[0003] Existing ones, such as the Chinese patent application with the publication number CN112215197A, propose a method for warning of underground cable faults based on artificial intelligence. The monitoring and warning master station sends an inquiry signal to the cable parameter detection unit; after receiving the inquiry signal, the cable parameter detection unit starts cable parameter collection and sends the detection value to the monitoring and warning master station; after receiving the detection value, the monitoring and warning master station runs an early warning algorithm of artificial intelligence based on a convolutional neural network to judge the state of the underground cable and give an early warning of cable faults.
[0004] The above-mentioned existing technology uses an early warning algorithm of artificial intelligence based on a convolutional neural network to give an early warning of cable faults. However, a three-dimensional model of the underground cable is not constructed, and there are also certain deficiencies in the defect recognition accuracy. Therefore, a method for surveying, mapping, collecting and recording underground cables and cable trenches based on artificial intelligence is needed to improve the management efficiency of underground cables. Summary of the Invention
[0005] To solve the above problems, the present invention provides a method for surveying, mapping, collecting and recording underground cables and cable trenches based on artificial intelligence to solve the problems in the prior art.
[0006] To achieve the above invention purpose, the present invention proposes a method for surveying, mapping, collecting and recording underground cables and cable trenches based on artificial intelligence, including:
[0007] Step S1: Scanning the ground and underground of the cable well based on surveying equipment to obtain the first transmission information of the cable well, where the first transmission information includes three-dimensional point cloud data and image data;
[0008] Step S2: Setting a data transmission method, and transmitting the first transmission information to a data platform based on the data transmission method and storing it in a database;
[0009] Step S3: Extract the three-dimensional point cloud data from the first transmission information in the database, perform preliminary cropping on the three-dimensional point cloud data, denoise the cropped three-dimensional point cloud data based on the RANSAC algorithm to obtain standard point cloud data, obtain the spatial information of the cable shaft based on the standard point cloud data, and use 3D point cloud reconstruction technology to reconstruct the model of the cable shaft to obtain the three-dimensional model of the cable shaft;
[0010] Step S4: Extract the image data from the first transmission information in the database, identify the key features in the image data, label the key features, establish a machine learning model based on the YOLOv8 algorithm, where the machine learning model is used to detect the underground defects of the cable shaft and identify the occupancy of the pipe openings, set the learning rate of the model, use the labeled key features as the training set to train the machine learning model, evaluate the trained machine learning model to obtain the accuracy of the model. If the accuracy is greater than the first threshold, use the predicted underground defect data and the identification data of whether the pipe opening is occupied as the underground detection data, and label the underground detection data on the three-dimensional model.
[0011] Further, transmitting the first transmission information to the data platform and storing it in the database includes the following steps:
[0012] Encapsulate the first transmission information into a data packet, add header information before the data packet, where the header information includes the port number of the communication protocol used by the surveying and mapping device. Define the data packet with the added header information as the second transmission data. Set up a gateway device, and transmit the second transmission data to the gateway device. The gateway device includes a data connection unit and a data queuing unit. The data connection unit removes the header information to extract the data packet, generates an encryption key, encrypts the data packet, assigns label information to the encrypted data packet, and defines it as the third transmission data;
[0013] The data queuing unit sets up a queue list, where there is a corresponding relationship between multiple queues and label information. The data queuing unit stores the third transmission data in the corresponding queue based on the queue list, and converts the third transmission data into the fourth transmission data. The fourth transmission data is data that can be received by the data cloud platform after protocol conversion and format conversion. The data cloud platform obtains the fourth transmission data from the data queuing unit, decrypts the fourth transmission data using the key corresponding to the encrypted data, and stores the decrypted fourth transmission data in the database.
[0014] Further, obtaining the standard point cloud data includes the following steps:
[0015] Step S31: randomly selecting a portion of data from the three-dimensional point cloud data as first sample data based on the RANSAC algorithm, fitting and generating a geometric model of the bottom or side of the cable well based on the first sample data, calculating a vertical distance from each three-dimensional point cloud data in the first sample data to the geometric model, and if the vertical distance is less than a second threshold, defining the three-dimensional point cloud data as first-category point cloud data, otherwise defining it as second-category point cloud data, respectively calculating the number of first-category point cloud data and second-category point cloud data in the first sample data, defining them as a first number and a second number, and eliminating the second-category point cloud data in the first sample data;
[0016] Step S32: Based on the RANSAC algorithm, randomly select a part of the data from the remaining three-dimensional point cloud data as the second sample data, repeat step S31, and calculate the ratio of the second number to the first number after each iteration. If the ratio is less than the third threshold, the denoising process of the RANSAC algorithm ends, and the remaining first-category point cloud data is defined as standard point cloud data.
[0017] Furthermore, obtaining the spatial information of the cable well includes the following steps:
[0018] Obtain the maximum coordinate value and the minimum coordinate value of the standard point cloud data along the three coordinate axes of X, Y and Z, calculate the difference between the maximum coordinate value and the minimum coordinate value on each coordinate axis, define them as the first length, the first width and the first height respectively, construct a bounding box of the standard point cloud data based on the first length, the first width and the first height, and obtain the spatial information of the cable well based on the size of the bounding box, wherein the spatial information includes the length, width and height of the cable well.
[0019] Furthermore, obtaining the three-dimensional model of the cable well comprises the following steps:
[0020] The standard point cloud data is mesh reconstructed, the standard point cloud data is converted into a mesh model of multiple faces, the mesh model is smoothed, and a three-dimensional model of the cable well is generated.
[0021] Furthermore, building a machine learning model based on the YOLOv8 algorithm includes the following steps:
[0022] The machine learning model classifies the downhole defect information to obtain multiple defect categories, defines the defects predicted by the machine learning model as the first label, and defines the actual downhole defects as the second label. The loss function of the YOLOv8 algorithm is set, and the difference between the first label and the second label is calculated based on the loss function. The loss function is: ,in, is the prediction probability of the machine learning model for each of the defect categories, is a coefficient for balancing the weights of positive and negative samples. Positive class samples refer to cases where defects exist, and negative class samples refer to cases where no defects exist. is a parameter for adjusting the sample weights. is the difference value. Based on the difference value, the model parameters of the machine learning model are updated. When the difference value is less than the fourth threshold, the construction of the machine learning model is completed.
[0023] Further, the key features include the occupancy of the profile and the pipe orifice, and the defect information underground in the cable shaft.
[0024] Further, setting the learning rate of the model includes the following steps:
[0025] Continuously adjust the learning rate of the model training process based on the first formula , and the first formula is: , where is the initial learning rate, is the preset decay rate, is the number of training times, and the machine learning model is trained based on the learning rate.
[0026] Further, evaluating the trained machine learning model to obtain the accuracy of the model includes the following steps:
[0027] Evaluate the machine learning model using the test set, and calculate the accuracy based on the second formula , and the second formula is: , where is the number of samples correctly predicted as positive by the model, is the number of samples correctly predicted as negative by the model, is the number of samples incorrectly predicted as positive by the model, is the number of samples incorrectly predicted as negative by the model.
[0028] Further, after detecting the defect information of the cable shaft, it further includes establishing a data recording platform, inputting the defect information of the cable shaft and the usage situation of the pipe orifice, and displaying the three-dimensional model.
[0029] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0030] In the present invention, surveying and mapping equipment is set in the on-site data acquisition link to conduct a full-range scan of the ground and underground of the cable well. Through the high-precision measurement of lidar, combined with the assistance of spatial positioning and inertial measurement units, the longitude, latitude, and location information of the cable well are accurately obtained. At the same time, a wide-angle camera can capture images of the cable well, and three-dimensional point cloud data can present the three-dimensional structure of the cable well in detail. In the data transmission stage, a gateway device is set between the sensor device and the cloud platform for data encryption, protocol conversion, etc., which can reduce costs and enhance the security of data transmission.
[0031] In the data automatic modeling stage, data sources such as point clouds and panoramic photos are fully utilized, and a three-dimensional model of the cable well is constructed through advanced 3D point cloud reconstruction technology. These technologies can accurately restore the actual shape and structure of the cable well, providing a reliable model basis for subsequent data analysis and applications. A machine learning model is established based on YOLOv8. The YOLOv8 framework has powerful real-time object detection capabilities, can quickly and accurately analyze image data, identify the occupancy of the cross-section and pipe holes, as well as potential defects in the well, providing important basis for the maintenance and management of the cable well. In the data synchronization and backhaul link, with the powerful functions of the i-State Grid mobile application, it is ensured that the predicted downhole detection data can be transmitted to the intranet desktop in a timely and accurate manner for subsequent data processing and analysis, improving work efficiency and data timeliness. Brief Description of the Drawings
[0032] Figure 1 It is a step flow chart of the method for surveying, mapping, collecting, and recording underground cables and cable trenches based on artificial intelligence of the present invention;
[0033] Figure 2 It is a comparison diagram before and after cropping of CloudCompare of the present invention;
[0034] Figure 3 It is a data annotation diagram of the present invention. Detailed Embodiment
[0035] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0036] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the present application, the first xx script can be called the second xx script, and similarly, the second xx script can be called the first xx script.
[0037] As Figure 1 shown, a mapping and recording method for underground cables and cable trenches based on artificial intelligence includes:
[0038] S1: Scanning the ground and underground of the cable well based on mapping equipment to obtain the first transmission information of the cable well, where the first transmission information includes three-dimensional point cloud data and image data.
[0039] Specifically, to improve the quality and efficiency of underground cable mapping work and reduce the work risks of personnel going down the well, the present invention uses intelligent equipment to replace personnel going down the well. The mapping equipment consists of multiple sensor devices, including lidar equipment and wide-angle cameras, and may also include spatial positioning equipment such as GPS receivers, inertial measurement equipment such as accelerometers and gyroscopes, which are used to measure and record the movement and direction of the equipment, etc. Through the high-precision measurement of lidar, combined with the assistance of spatial positioning and inertial measurement units, the longitude, latitude, and location information of the cable well can be accurately obtained; at the same time, the wide-angle camera can capture images of the cable well, and the three-dimensional point cloud data can present the three-dimensional structure of the cable well in detail. Multiple data are collected at one time, providing a basis for subsequent artificial intelligence recognition and three-dimensional modeling work, and replacing field personnel for down-well mapping.
[0040] S2: Set the data transmission method, and transmit the first transmission information to the data platform based on the data transmission method and store it in the database.
[0041] Specifically, in order to transmit the sensor data obtained by the sensor device to the data cloud platform, certain configuration and programming work need to be carried out on the device, which may include setting network connection parameters, authentication information of the cloud platform, data transmission protocols, etc. If each device needs to be configured separately, then as the number of devices increases, the total cost will also increase significantly. Therefore, the present invention sets a data transmission method and provides a common gateway device, which provides an intermediate layer between the terminal and the cloud platform. Before the data is transmitted to the cloud platform, the data is encrypted and protocol-converted, enhancing the security of data transmission and reducing costs.
[0042] S3: Extract the three-dimensional point cloud data from the first transmission information in the database, perform preliminary cropping on the three-dimensional point cloud data, denoise the cropped three-dimensional point cloud data based on the RANSAC algorithm to obtain standard point cloud data, obtain the spatial information of the cable well based on the standard point cloud data, and use 3D point cloud reconstruction technology to reconstruct the model of the cable well to obtain the three-dimensional model of the cable well.
[0043] Specifically, the CloudCompare software is used to preliminarily crop the 3D point cloud data. CloudCompare is a software specifically for 3D point cloud (and triangular mesh) editing and processing, which can load a variety of open point cloud formats, and crop the redundant point cloud except for the cable well. Figure 2 Figure 2 is a comparison diagram before and after cropping, showing the point cloud of the entire cable well. The more meticulous the cropping, the more accurate the measurement of the cable well size will be later. The RANSAC algorithm is used to identify the cropped 3D point cloud data, removing the noise points and outliers in the dataset, thereby obtaining a more pure dataset and improving the recognition accuracy. And the RANSAC algorithm is used to extract the contour lines of each plane and segment them. This step helps to identify and separate different parts of the cable well, such as the well wall, the bottom of the well, and the manhole cover, etc. Calculate the size of the bounding box of the standard point cloud data, and use the size of the point cloud bounding box as the size of the cable well, then the automatic measurement of the length, width, and height of the cable well can be realized. Obtain the dense point cloud underground, and finally perform mesh reconstruction on the dense point cloud to obtain the 3D model of the cable well.
[0044] S4: Extract the image data from the first transmission information in the database, identify the key features in the image data, label the key features, establish a machine learning model based on the YOLOv8 algorithm. The machine learning model is used to detect the underground defects of the cable well and identify the occupancy of the pipe openings. Set the learning rate of the model, use the labeled key features as the training set to train the machine learning model, evaluate the trained machine learning model to obtain the accuracy of the model. If the accuracy is greater than the first threshold, use the predicted underground defect data and the recognition data of whether the pipe opening is occupied as the underground detection data, and label the underground detection data on the 3D model.
[0045] Specifically, to help the machine learning model understand the information in the picture, by labeling the key features in the picture, such as objects, scenes, attributes, as well as the occupancy of the section and pipe openings, and the defect information underground of the cable well, provide accurate data support for the training of the model. Use a labeling software, such as the CPS software, to label the occupancy of the pipe openings, as Figure 3 shown. This is a data labeling diagram. In the figure, the green square represents no occupancy, and the red represents occupancy.
[0046] YOLOv8 (YouOnlyLookOnce version 8) is a deep learning framework specifically designed for real-time object detection tasks. With its real-time performance, high accuracy, multi-scale prediction, adaptive anchor boxes, strong feature extractor, versatility, model selection for different scales, and excellent evaluation metrics, YOLOv8 has become a very powerful and flexible object detection framework with broad application prospects in multiple fields. Establishing a machine learning model based on the YOLOv8 algorithm can quickly and accurately analyze image data, identify the occupancy of profiles and pores, as well as potential defects underground, providing important basis for the maintenance and management of cable wells. Set the learning rate of the model, continuously adjust the learning rate during the model training process, use the training set to train the model, and continuously update the parameters of the model through the backpropagation algorithm to minimize the loss function and improve the performance and stability of the model. Evaluate the trained model, and deploy the machine learning model with an accuracy greater than the first threshold to the actual underground monitoring system for real-time defect detection and analysis.
[0047] As a preferred technical solution of the present invention, transmitting the first transmission information to the data platform and storing it in the database includes the following steps:
[0048] Encapsulate the first transmission information into a data packet, add header information before the data packet. The header information includes the port number of the communication protocol used by the surveying and mapping equipment. Define the data packet with the added header information as the second transmission data. Set up a gateway device, and transmit the second transmission data to the gateway device. The gateway device includes a data connection unit and a data queuing unit. The data connection unit removes the header information to extract the data packet, generates an encryption key, encrypts the data packet, assigns label information to the encrypted data packet, and defines it as the third transmission data.
[0049] The data queuing unit sets up a queue list, which has a corresponding relationship between multiple queues and label information. The data queuing unit stores the third transmission data in the corresponding queue based on the queue list, and converts the third transmission data into the fourth transmission data. The fourth transmission data is data that can be received by the data cloud platform after protocol conversion and format conversion. The data cloud platform obtains the fourth transmission data from the data queuing unit, decrypts the fourth transmission data using the key corresponding to the encrypted data, and stores the decrypted fourth transmission data in the database.
[0050] Specifically, for example, the first transmission information includes point cloud data information acquired by the laser radar, the point cloud data information is encapsulated into a data packet, header information is added before each data packet, the communication protocol used by the laser radar is UDP, wherein the port number of the MSOP package is 6699, and the port number of the DIFOP package is 7788. The specific port number is determined according to the specific model and configuration of the device, the header information (7788 or 6699) and the data packet are defined as the second transmission information, the second transmission information is transmitted to the gateway device, a data receiving unit is set in the gateway device, which is used to add label information to the data and perform encryption processing before the data is transmitted to the cloud platform. The label information is a unique identifier. The data processed by the data receiving unit is then transmitted to the data queuing unit, the data queuing unit sorts the data according to certain groups, so that the data is transmitted to the cloud platform in an orderly manner, and before the data is transmitted, the protocol and format of the data are converted into the protocol and data format received by the cloud interface. Due to the encryption and protocol conversion functions in the gateway device provided by the present invention, the IoT terminal does not need to have these functions, thereby reducing the communication volume and hardware cost of the IoT terminal.
[0051] Obtaining standard point cloud data includes the following steps:
[0052] Step S31: Based on the RANSAC algorithm, a part of data is randomly selected from the three-dimensional point cloud data as the first sample data, and a geometric model of the bottom or side of the cable well is generated based on the first sample data. The vertical distance from each three-dimensional point cloud data in the first sample data to the geometric model is calculated. If the vertical distance is less than the second threshold, the three-dimensional point cloud data is defined as the first type of point cloud data, otherwise it is defined as the second type of point cloud data. The number of the first type of point cloud data and the second type of point cloud data in the first sample data are calculated respectively, and defined as the first number and the second number, and the second type of point cloud data in the first sample data is eliminated.
[0053] Step S32: Based on the RANSAC algorithm, randomly select a part of the data from the remaining three-dimensional point cloud data as the second sample data, repeat step S31, and calculate the ratio of the second number to the first number after each iteration. If the ratio is less than the third threshold, the denoising process of the RANSAC algorithm ends, and the remaining first-category point cloud data is defined as standard point cloud data.
[0054] Specifically, the RANSAC algorithm is used to randomly extract representative samples from the three-dimensional point cloud data that can be used for model fitting, that is, the first sample data. A geometric model of the bottom or side of the cable shaft is generated by fitting based on the first sample data. The vertical distance is used to evaluate the proximity of each three-dimensional point cloud data to the fitting model. If the vertical distance is less than the second threshold, the three-dimensional point cloud data is defined as the first type of point cloud data (i.e., inliers, considered to be part of the model), otherwise it is defined as the second type of point cloud data (i.e., outliers, considered to be noise or outliers). The second type of point cloud data in the first sample data is removed to eliminate those data points that are inconsistent with the model, thereby purifying the data set. Based on the RANSAC algorithm, a part of the remaining three-dimensional point cloud data is randomly selected as the second sample data, and step S31 is repeated. Calculate the ratio of the second quantity to the first quantity after each iteration. The second type of point cloud data will become fewer and fewer as the number of iterations increases. Therefore, when the ratio is less than the preset third threshold, for example, 0.1, it means that the proportion of the second type of point cloud data in the sample data is getting smaller and the proportion of the first type of point cloud data is getting larger. Therefore, the remaining first type of point cloud data is defined as the standard data.
[0055] Obtaining the spatial information of the cable shaft includes the following steps:
[0056] Obtain the maximum coordinate value and the minimum coordinate value of the standard point cloud data along the three coordinate axes of X, Y, and Z, calculate the difference between the maximum coordinate value and the minimum coordinate value on each coordinate axis, and define them as the first length, the first width, and the first height respectively. Based on the first length, the first width, and the first height, construct a bounding box of the standard point cloud data, and obtain the spatial information of the cable shaft based on the size of the bounding box. The spatial information includes the length, width, and height of the cable shaft.
[0057] Specifically, by calculating the maximum and minimum coordinate values of an object along each coordinate axis in three-dimensional space, an AABB bounding box that can tightly enclose the object can be determined. The length, width, and height of this bounding box are the differences between the maximum and minimum values along each coordinate axis, so as to calculate the length, width, and height of the cable shaft, and various parameter information of the cable can be automatically obtained in this way.
[0058] Obtaining the three-dimensional model of the cable shaft includes the following steps:
[0059] Perform Mesh reconstruction on the standard point cloud data, convert the standard point cloud data into a mesh model with multiple faces, and smooth the mesh model to generate the three-dimensional model of the cable shaft.
[0060] Specifically, triangulation is performed on the standard point cloud data, that is, the standard point cloud is converted into a mesh model composed of multiple triangular patches. This process can be achieved through various algorithms, such as Delaunay triangulation, etc. Through triangulation processing, a preliminary mesh model is generated. This model may contain a large number of triangular patches and requires further optimization and smoothing processing, removing redundant patches, smoothing processing, and ensuring the correct topological structure of the model. The three-dimensional model is verified by comparing it with the actual measurement data to ensure that the size and shape of the model match the actual cable shaft.
[0061] Establishing a machine learning model based on the YOLOv8 algorithm includes the following steps:
[0062] The machine learning model classifies the downhole defect information to obtain multiple defect categories. Define the defect predicted by the machine learning model as the first label and the actual downhole defect as the second label. Set the loss function of the YOLOv8 algorithm and calculate the difference value between the first label and the second label based on the loss function. The loss function is: , where is the prediction probability of the machine learning model for each defect category, is the coefficient used to balance the weights of positive and negative samples. Positive class samples refer to the situation where there are defects, and negative class samples refer to the situation where there are no defects. is the parameter for adjusting the sample weights, is the difference value. Update the model parameters of the machine learning model based on the difference value. When the difference value is less than the fourth threshold, the machine learning model is constructed.
[0063] Specifically, first, use the labeled dataset (including images of downhole defects and their corresponding labels) to train the YOLOv8 model. The model is trained by learning the features and patterns of these data, aiming to be able to identify and classify different defect categories. Evaluate the accuracy of the model prediction according to the difference value between the first label and the second label. For example, the smaller the difference value, the more accurate the prediction of the machine learning model. When the difference value is greater than the preset fourth threshold, update the model parameters of the machine learning model until the difference value is less than the fourth threshold. At this time, the model has achieved satisfactory performance and the machine learning model is constructed.
[0064] Setting the learning rate of the model includes the following steps:
[0065] Continuously adjust the learning rate of the model training process based on the first formula , and the first formula is: , where is the initial learning rate, is the preset decay rate, is the number of training times, and the machine learning model is trained based on the learning rate.
[0066] Specifically, the learning rate of the model can be effectively controlled to gradually decrease during the training process, thereby improving the convergence speed and final performance of the machine learning model.
[0067] Evaluating the trained machine learning model to obtain the accuracy of the model includes the following steps:
[0068] Evaluating the machine learning model using the test set and calculating the accuracy based on the second formula , where the second formula is: , where is the number of samples correctly predicted as the positive class by the model, the number of samples correctly predicted as the negative class by the model, is the number of samples incorrectly predicted as the positive class by the model, is the number of samples incorrectly predicted as the negative class by the model.
[0069] After detecting the defect information of the cable shaft, it also includes establishing a data recording platform, inputting the defect information of the cable shaft and the usage situation of the pipe opening, and displaying the three-dimensional model.
[0070] Specifically, with the powerful functions of the i-State Grid mobile application, the real-time transmission of surveying and mapping data can be realized, ensuring that the detected underground detection data can be transmitted to the data cloud platform on the intranet desktop in a timely and accurate manner, and displaying the generated three-dimensional model, thereby improving work efficiency and data timeliness.
[0071] It should be understood that although the steps in the flowcharts of the embodiments of the present invention are shown in sequence according to the arrows, these steps do not necessarily have to be executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in each embodiment may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily have to be executed at the same moment, but can be executed at different moments. The execution order of these sub-steps or stages does not necessarily have to be sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0072] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The above program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in this application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0073] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0074] The above embodiments only represent several implementation manners of the present invention, and the description is relatively specific and detailed. However, it should not be construed as a limitation on the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention.
[0075] The above is only the preferred embodiment of the present invention, and it is not used to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for surveying, mapping, collecting and recording underground cables and cable trenches based on artificial intelligence, characterized in that, The method includes the following steps: S1: Scan the ground and underground of the cable shaft based on a surveying and mapping device to obtain the first transmission information of the cable shaft, where the first transmission information includes three-dimensional point cloud data and image data; S2: Set the data transmission method, and based on the data transmission method, transmit the first transmission information to a data platform and store it in a database; S3: Extract the three-dimensional point cloud data from the first transmission information in the database, perform preliminary cropping on the three-dimensional point cloud data, denoise the cropped three-dimensional point cloud data based on the RANSAC algorithm to obtain standard point cloud data, obtain the spatial information of the cable shaft based on the standard point cloud data, and use 3D point cloud reconstruction technology to reconstruct the model of the cable shaft to obtain the three-dimensional model of the cable shaft; S4: Extract the image data from the first transmission information in the database, identify the key features in the image data, label the key features, establish a machine learning model based on the YOLOv8 algorithm, where the machine learning model is used to detect the underground defects of the cable shaft and identify the occupancy of the pipe openings, set the learning rate of the model, use the labeled key features as the training set to train the machine learning model, evaluate the trained machine learning model to obtain the accuracy of the model. If the accuracy is greater than the first threshold, use the predicted underground defect data and the identification data on whether the pipe opening is occupied as the underground detection data, and label the underground detection data on the three-dimensional model.
2. The method according to claim 1, wherein Transmitting the first transmission information to the data platform and storing it in the database includes the following steps: Encapsulate the first transmission information into a data packet, add header information before the data packet, where the header information includes the port number of the communication protocol used by the surveying and mapping device, define the data packet with the added header information as the second transmission data, set a gateway device, and transmit the second transmission data to the gateway device. The gateway device includes a data connection unit and a data queuing unit. The data connection unit removes the header information to extract the data packet, generates an encryption key, encrypts the data packet, assigns label information to the encrypted data packet, and defines it as the third transmission data; The data queuing unit sets a queue list, where there is a corresponding relationship between multiple queues and label information. The data queuing unit stores the third transmission data in the corresponding queue based on the queue list, and converts the third transmission data into the fourth transmission data. The fourth transmission data is data that can be received by the data cloud platform after protocol conversion and format conversion. The data cloud platform obtains the fourth transmission data from the data queuing unit, decrypts the fourth transmission data using the key corresponding to the encrypted data, and stores the decrypted fourth transmission data in the database.
3. The method according to claim 1, characterized in that, Obtaining the standard point cloud data includes the following steps: Step S31: randomly selecting a portion of data from the three-dimensional point cloud data as first sample data based on the RANSAC algorithm, fitting and generating a geometric model of the bottom or side of the cable well based on the first sample data, calculating a vertical distance from each three-dimensional point cloud data in the first sample data to the geometric model, and if the vertical distance is less than a second threshold, defining the three-dimensional point cloud data as first-category point cloud data, otherwise defining it as second-category point cloud data, respectively calculating the number of first-category point cloud data and second-category point cloud data in the first sample data, defining them as a first number and a second number, and eliminating the second-category point cloud data in the first sample data; Step S32: Based on the RANSAC algorithm, randomly select a part of the data from the remaining three-dimensional point cloud data as the second sample data, repeat step S31, and calculate the ratio of the second number to the first number after each iteration. If the ratio is less than the third threshold, the denoising process of the RANSAC algorithm ends, and the remaining first-category point cloud data is defined as standard point cloud data.
4. The method according to claim 3, characterized in that, Obtaining the spatial information of the cable well comprises the following steps: Obtain the maximum coordinate value and the minimum coordinate value of the standard point cloud data along the three coordinate axes of X, Y and Z, calculate the difference between the maximum coordinate value and the minimum coordinate value on each coordinate axis, define them as the first length, the first width and the first height respectively, construct a bounding box of the standard point cloud data based on the first length, the first width and the first height, and obtain the spatial information of the cable well based on the size of the bounding box, wherein the spatial information includes the length, width and height of the cable well.
5. The method according to claim 4, wherein Obtaining the three-dimensional model of the cable well comprises the following steps: The standard point cloud data is mesh reconstructed, the standard point cloud data is converted into a mesh model of multiple faces, the mesh model is smoothed, and a three-dimensional model of the cable well is generated.
6. The method according to claim 1, wherein Building a machine learning model based on the YOLOv8 algorithm includes the following steps: The machine learning model classifies the downhole defect information to obtain multiple defect categories, defines the defects predicted by the machine learning model as the first label, and defines the actual downhole defects as the second label. Set the loss function of the YOLOv8 algorithm, and calculate the difference value between the first label and the second label based on the loss function. The loss function is: , where is the prediction probability of the machine learning model for each defect category, is a coefficient used to balance the weights of positive and negative samples. Positive class samples refer to the situation where there are defects, and negative class samples refer to the situation where there are no defects, is a parameter for adjusting the sample weights, is the difference value. Update the model parameters of the machine learning model based on the difference value. When the difference value is less than the fourth threshold, the construction of the machine learning model is completed.
7. The method according to claim 1, wherein The key features include the occupancy of the profile and the pipe opening, and the defect information underground in the cable well.
8. The method according to claim 1, characterized in that Setting the learning rate of the model involves the following steps: Continuously adjust the learning rate of the model training process based on the first formula , where the first formula is: , where is the initial learning rate, is the preset decay rate, is the number of training times, and the machine learning model is trained based on the learning rate.
9. The method according to claim 6, wherein Evaluating the trained machine learning model to obtain the model's accuracy includes the following steps: Evaluate the machine learning model using the test set and calculate the accuracy rate based on the second formula , and the second formula is: , where is the number of samples correctly predicted as positive by the model, is the number of samples correctly predicted as negative by the model, is the number of samples incorrectly predicted as positive by the model, is the number of samples incorrectly predicted as negative by the model.
10. The method according to claim 1, wherein After detecting the defect information of the cable well, the method also includes establishing a data collection and recording platform, recording the defect information of the cable well and the usage of the pipeline opening, and displaying the three-dimensional model.
Citation Information
Patent Citations
Underground cable fault early warning method and early warning system based on artificial intelligence
CN112215197A
Three-dimensional map reconstruction and target detection method for underground coal mine inspection robot
CN115439621A
Edge layout generation method and device, electronic equipment and computer readable medium
CN118096558A