Method for measuring inverse reflectivity of road marking by laser radar based on semi-supervised learning
Through a lidar measurement method based on semi-supervised learning, combined with vehicle-mounted lidar and handheld detectors, a road marking retroreflectivity detection model is constructed, which solves the problems of low detection efficiency and insufficient adaptability in the existing technology, and achieves efficient , Accurate retroreflectivity detection of road markings.
Patent Information
- Application Number
- CN202410653012.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-30
AI Technical Summary
Existing road marking retroreflectivity detection technology relies on fixed equipment and manual operation, which is inefficient and costly. It is difficult to adapt to complex and changeable actual environments, and has insufficient automation levels and environmental adaptability.
Using a lidar measurement method based on semi-supervised learning, three-dimensional point cloud data is obtained through vehicle-mounted lidar, and combined with data from a handheld retroreflectivity detector, a semi-supervised learning model is constructed to achieve rapid and accurate detection of retroreflectivity of road markings. .
It improves the efficiency and accuracy of retroreflectivity detection of road markings, bridges the high-precision data provided by handheld instruments and the efficient data of lidar, optimizes the data collection and processing process, and greatly improves detection efficiency and data accuracy. Provides technical support for intelligent management of transportation infrastructure.
Smart Images

Figure CN118566877A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of machine learning and laser radar detection, and more particularly to a method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning. Background Art
[0002] Road markings are traffic safety facilities that guide vehicle driving and ensure traffic safety. To ensure that the markings play their due role as visual indicators, their retroreflective performance needs to be regularly tested and evaluated. Currently, common methods for detecting retroreflectivity of road markings rely mainly on fixed retroreflective measurement equipment and manual operation. The detection process requires a large amount of manpower to install, disassemble, and operate the equipment, resulting in low efficiency and certain traffic safety hazards. The cost of collecting measured data is high, and existing models are often trained based on a limited number of data sets, making it difficult to adapt to complex and changing actual environments. It can be seen that existing road marking detection technology still has many shortcomings in terms of automation level, efficiency, coverage, model generalization ability, and environmental adaptability. Innovative technical solutions are urgently needed to achieve breakthroughs and improvements to improve the intelligence level of detection and provide strong support for the refined management of road infrastructure. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method for measuring the retroreflectivity of road markings using a lidar based on semi-supervised learning. By establishing a semi-supervised learning model, the method can make full use of a large amount of unlabeled laser point cloud data and a small amount of manually labeled retroreflectivity data, providing a new and efficient quantitative analysis method for the intelligent management and refined decision-making of road infrastructure.
[0004] The technical solution adopted by the present invention to solve the technical problem is to construct a method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning, comprising the following steps:
[0005] S1. Use the vehicle-mounted laser radar to scan the road environment and obtain three-dimensional point cloud data of the road;
[0006] S2. Sampling and measuring the retroreflectivity information of the marking line using a handheld retroreflectivity detector;
[0007] S3, filtering non-road surface data and segmenting the 3D point cloud data of the road to obtain 3D point cloud data of road markings;
[0008] S4, constructing a 3D point feature enhancement process for road markings;
[0009] S5. Use the optimal transfer learning framework SOT to build a semi-supervised learning-based reverse reflectivity relationship model for road traffic markings.
[0010] S6. Construct a process for quickly measuring the retroreflectivity of road markings using a lidar based on semi-supervised learning to detect the retroreflectivity of any road marking.
[0011] According to the above scheme, in step S1, the three-dimensional point cloud data of the road is acquired by the vehicle-mounted laser radar at a driving speed of 80% of the road design speed during driving, and the ambient temperature and ambient light intensity are measured using a thermometer and an illuminance meter to provide training data support for subsequent steps.
[0012] According to the above scheme, the road 3D point cloud data, ambient temperature and ambient light intensity are obtained through the following methods:
[0013] S101. The vehicle is driven at 80% of the design speed and equipped with a vehicle-mounted laser radar to perform a mobile scan of the target road environment. The laser radar acquires three-dimensional point cloud data of the target road section at a frequency of 10 Hz.
[0014] Note that each point p in the point cloud data i =(x i ,y i ,z i ,r i ), where x i ,y i ,z i is the spatial position information of the point, r i is the reflectivity measured by the lidar, i is the number of point cloud points;
[0015] S102. While executing step S101, the GPS device continuously records the position information during the laser radar scanning process. Each 3D point cloud data is associated with a specific GPS coordinate and azimuth.
[0016] S103, convert the spatial coordinates of the point cloud data point relative to the laser radar into GPS coordinates, and define the function f() to convert the x coordinates of the point cloud data point i ,y i ,z i Function that converts the spatial coordinates of the laser radar into GPS coordinates:
[0017] f(origin,θ,(x,y,z))=origin+R(θ)·(x,y)·S(origin)
[0018]
[0019]
[0020] Where origin is a two-tuple (latitude, longitude) representing the GPS position of the lidar device; θ is the azimuth of the lidar device, measured clockwise from north to the device's orientation, in degrees; (x, y, z) is a three-tuple representing relative coordinates in the point cloud data; R(θ) is the rotation matrix; and S(origin) is the scale matrix that adjusts the effect of longitude and latitude on distance.
[0021] Then for each point p in the cloud data i Each has its corresponding GPS coordinates marked as gps i The formula is as follows:
[0022] GPS i =f(origin i ,θ i ,(x i ,y i , z i ))
[0023] Among them, origin i is the record point p i GPS coordinates of the lidar device at the moment, Θ i is the record point p i The azimuth of the lidar device at the moment;
[0024] S104. Use the instrument to record the ambient temperature T and the ambient light intensity I. Define T i is the record point p i The ambient temperature recorded at all times, I i is the record point p i The ambient light intensity recorded at all times.
[0025] According to the above solution, in step S2, a handheld retroreflectivity detector is used to sample and measure the retroreflectivity information of the road markings every 20 meters, and a limited number of accurate retroreflectivity values of the road markings are collected as labels for the model training data.
[0026] According to the above solution, in step S3, the accurate value of the retroreflectivity of the limited road markings is collected by the following method:
[0027] S201, using a handheld retroreflectivity detector, sample the retroreflectivity information of the marking line every 20m and record the measured value as l n , n is the number of data measured by the handheld instrument;
[0028] S202, measuring the retroreflectivity reference value of individual markings and recording the location information via GPS, matching the retroreflectivity detection results of the handheld retroreflectivity detector with the three-dimensional point cloud data obtained by the laser radar in GPS spatial position, and assigning retroreflectivity values to the measurement points obtained by the laser radar as labels for subsequent model training;
[0029] Note n The GPS coordinates of the measured location are gps n , use Haversine formula to calculate GPS i and GPS n The distance between them is as follows:
[0030]
[0031] Among them, d in For GPS i and GPS n The distance between two points, r is the radius of the earth, d = 6378137, Δlat is the radian value of the latitude difference between the two points, Δ is the radian value of the longitude difference between the two points, Lat i , long i For GPS i Latitude and longitude, lat n , long n For GPS n latitude and longitude;
[0032] The retroreflectivity values on the same scale line within 5m of the measuring point of the handheld retroreflectivity detector are regarded as l n , the formula is as follows:
[0033] l i =l n
[0034] st
[0035] d in ≤5
[0036] n in =1
[0037] where α in =1 represents GPS i and GPS n The two points are on the same line, otherwise α in =0,l i is the inverse reflectivity label value of pi in the point cloud data.
[0038] According to the above solution, in step S3, the three-dimensional point cloud data of the road marking is obtained by the following method:
[0039] S301. Use Patchwork++ to extract ground lines and non-ground lines from the point cloud collected by each frame of MLS. Let the set of i laser point cloud data points be P, the set of ground points be G, and the set of non-ground points be N. The relationship can be expressed by the following formula:
[0040] P={p i}=G∪NS32. Use maximum entropy threshold segmentation to extract road markings from the ground point set G to obtain a three-dimensional laser point cloud point set R of the road markings.
[0041] According to the above solution, in step S4, the three-dimensional point cloud feature enhancement process of the road marking is constructed by the following method:
[0042] S401, constructing a KD tree to search for the neighboring point set of each point;
[0043] S402, using the nearest neighbor point set searched by the KD tree to construct a local plane,
[0044] For each point in the ground point set G and the number of neighboring point sets L centered on it = {p i (x i ,y i ,z i )|i=1,2,..,n}, which can be regarded as forming a plane. The general form of the fitted plane is:
[0045] Ax+By+Cz+D=0
[0046] A2+B2+C2=1
[0047] Among them, A, B, C are constant parameters of the plane, and the plane is formed by least squares fitting:
[0048]
[0049] st||n||=1
[0050] Where M is the covariance matrix;
[0051] S403, calculate the local plane normal phase quantity based on the fitting plane
[0052] n=±[A,B,C] T
[0053] Wherein, the normal vector of each point in the point cloud is n;
[0054] S404, calculating the incident angle between the laser and the reflecting surface according to the normal vector and the laser propagation direction;
[0055] θ = arccos(n·[0,0,1])
[0056] Where θ is the incident angle between the laser and the reflecting surface;
[0057] S405, calculate the distance d from each point in the road marking three-dimensional laser point cloud set R to the laser radar sensor
[0058] d=||x 2 +y 2 +z 2 ||2
[0059] In the formula, ||||2 represents the two-norm, x, y, z are the positions of the points in the local three-dimensional space of the point cloud data;
[0060] S406, build data enhancement process, for each point p i Both:
[0061] x i =[x i ,y i ,z i ,r i ,θ i ,d i ,T i ,I i ]
[0062] Among them, x i ,y i ,z i is the spatial position information of the point, r i is the reflectivity measured by the lidar, θ i is the incident angle between the laser and the reflecting surface, d i is the distance from the point to the lidar sensor, T i is the ambient temperature, I i is the ambient light intensity.
[0063] According to the above solution, in step S401, the three-dimensional laser point cloud of the road marking is defined as each point p in the point set R i =(x i ,y i ,z i ) In the local 3D space of the point cloud data, the KD tree construction of the road 3D laser point cloud is carried out through the following steps:
[0064] S401a, select the dimension with the highest variance (assuming it is the x dimension), and calculate the median m on this dimension;
[0065] S401b, create a node, split the point set P into two sub-P according to the median m of dimension d left and P right ;
[0066] S401c, for subset P left For every point in x i ≤m, then p i Belong to P left , otherwise it belongs to P right ;
[0067] S401d, recursively in P left and P right Repeat this process, creating more nodes, until every point is on a node in the tree.
[0068] According to the above scheme, in step S5, a reverse reflectivity relationship model of road traffic markings based on semi-supervised learning is constructed by the following method:
[0069] S501, using a source domain and a target domain to distinguish data sets based on whether a corresponding retroreflectivity instrument detection value exists in the three-dimensional laser point cloud of the road marking;
[0070]
[0071]
[0072] Where x i For sample i, that is, point p i The characteristic vector of i is the label of sample i, D s The source domain is the sample set marked with the retroreflectivity instrument detection value, x j is the eigenvector of sample i, The target domain is a set of samples marked with instrumental detection values of no retroreflectivity;
[0073] S502. Use the Gaussian mixture model to obtain the substructure of the source domain and the target domain. The formula is as follows:
[0074]
[0075] In the formula, X represents all feature data, is the data of the kth Gaussian distribution, z k ,σ k In order to obtain the parameters of the Gaussian mixture model using the expectation maximum algorithm, the number of clusters k is determined by the Bayesian information criterion. The number of clusters is determined by selecting the number of free parameters k that minimizes the Bayesian information criterion.
[0076] Then the substructure of the data is represented by the following formula,
[0077]
[0078]
[0079] Where μ t is the distribution of the source domain, μ t is the distribution of the target domain, z represents the cluster center, δ z is the Dirac function at the cluster center, ω represents the probability mass associated with the cluster center and is 1, that is ω s,i ,ω t,i Represents the ω value of the i-th cluster in the source domain and the ω value of the i-th cluster in the target domain, respectively, z s,i ,z t,i Represent the z value of the i-th cluster in the source domain and the z value of the i-th cluster in the target domain respectively;
[0080] S503, calculate the weight of the optimal transport of the substructure, and use Indicates that there is k s The substructure of the source domain of the clusters, Indicates that there is k t The substructure of the target domain of each cluster, It is regarded as a partial optimal transport problem and solved using the partial optimal transport problem. The substructure is solved using the partial optimal transport problem. The optimization objective corresponding to the optimal transport mode is:
[0081]
[0082]
[0083] Where, To obtain the independent variable π when the function f(π) reaches its minimum value, 1 k is a k-dimensional vector with a value of 1, λ1 is a hyperparameter, and C is the cost matrix composed of the distance metric function c(z s,i ,z t,j ) calculated; F is the matrix inner product, <π, C> F is the total cost of partial optimal transport, H(π)=∑ ij π ij logπ ij is the regularization term, set The weight to move for this substructure;
[0084] Using the Lagrangian method, the substructure weight w of the source domain is obtained s As follows:
[0085]
[0086]
[0087]
[0088] Among them, diag represents diagonal matrix, Indicates the division of each element;
[0089] S504: Construct a road inverse reflectivity relationship model through substructure mapping based on optimal transportation. The overall goal of substructure mapping based on optimal transportation is as follows:
[0090]
[0091]
[0092]
[0093] Where Ω(π) is the group sparse regularizer, and Ω(π)=∑ i ∑ cl ||π(I cl , j)||2,||||2 represents the l2 norm, π(I cl , j) is a vector containing the coefficients of the jth column in π related to class cl, λ, η are hyperparameters;
[0094] The mapping of the substructure is represented as:
[0095]
[0096] Where, is the mapping between source domain features and labels, P t It is the mapping between the target domain sample features and labels; using the K-nearest neighbor algorithm, using the source domain data Train the mapping Build the model to get P t Yes, by assigning the predicted labels to the data belonging to the corresponding cluster in the target domain, the label prediction task of the target domain can be finally completed, that is, the construction of the reverse reflectivity relationship model of road traffic markings based on semi-supervised learning can be realized.
[0097] According to the above scheme, in step S6, a process for quickly measuring the retroreflectivity of road markings using a lidar based on semi-supervised learning is constructed by the following method: for any road marking, data is collected according to steps S1-S2, the data is preprocessed according to steps S3-S4, and the semi-supervised model of step S5 is used for prediction to obtain the road marking retroreflectivity detection value.
[0098] The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to the present invention has the following beneficial effects:
[0099] 1. This invention uses a vehicle-mounted laser radar to obtain three-dimensional point cloud data of the road, combined with accurate retroreflectivity measurements provided by handheld instruments, and uses semi-supervised learning technology to achieve fast and accurate retroreflectivity assessment of road markings;
[0100] 2. Semi-supervised learning in this invention bridges the gap between handheld instruments, which provide inefficient but high-precision data, and LiDAR, which provides efficient but inaccurate data. By using a small amount of accurate handheld instrument data to guide learning from a large amount of unlabeled LiDAR data, this method significantly improves detection efficiency while maintaining high accuracy.
[0101] 2. This invention not only optimizes the data collection and processing process, but also greatly improves the operational efficiency and data accuracy of road marking retroreflectivity detection through precise model training and prediction, providing important technical support for the intelligent management and maintenance of modern transportation infrastructure. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0103] Figure 1 This is a flow chart of a method for measuring retroreflectivity of road markings using a laser radar based on semi-supervised learning according to the present invention;
[0104] Figure 2 This is a point cloud processing effect diagram of the present invention;
[0105] Figure 3 is a flow chart of the semi-supervised learning algorithm of the present invention;
[0106] Figure 4 This is an input and output flow chart of the reverse reflectivity relationship model of road traffic markings based on semi-supervised learning of the present invention;
[0107] Figure 5 It is a detection case effect diagram of the present invention. DETAILED DESCRIPTION
[0108] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0109] like Figure 1-5 As shown, the method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning of the present invention comprises the following steps:
[0110] S1. Use a vehicle-mounted LiDAR to scan the road environment and obtain 3D point cloud data of the road. The vehicle-mounted LiDAR collects 3D point cloud data of the road while driving at 80% of the road's design speed. A thermometer and illuminometer are used to measure ambient temperature and light intensity, providing training data support for subsequent steps. This includes the following steps:
[0111] S101. The vehicle is driven at 80% of the design speed and equipped with a vehicle-mounted laser radar to perform a mobile scan of the target road environment. The laser radar acquires three-dimensional point cloud data of the target road section at a frequency of 10 Hz.
[0112] Note that each point p in the point cloud data i =(x i ,y i ,z i ,r i ), where x i ,y i ,z i is the spatial position information of the point, r i is the reflectivity measured by the lidar, and i is the number of point cloud points.
[0113] S102. While executing step S101, the GPS device continuously records the position information during the laser radar scanning process. Each three-dimensional point cloud data is associated with a specific GPS coordinate and azimuth.
[0114] S103: Convert the spatial coordinates of the point cloud data points relative to the laser radar into GPS coordinates.
[0115] The function f() can be defined as the point cloud data point x i ,y i ,z i Function that converts the spatial coordinates of the laser radar into GPS coordinates:
[0116] f(origin,θ,(x,y,z))=origin+R(θ)·(x,y)·S(origin)
[0117]
[0118]
[0119] Where origin is a two-tuple (latitude, longitude) representing the GPS position of the lidar device; θ is the azimuth of the lidar device, measured clockwise from north to the device's orientation, in degrees; (x, y, z) is a three-tuple representing relative coordinates in the point cloud data; R(θ) is the rotation matrix; and S(origin) is the scale matrix that adjusts the effect of longitude and latitude on distance.
[0120] Then for each point p in the cloud data i Each has its corresponding GPS coordinates marked as gps i The formula is as follows:
[0121] GPS i =f(origin i ,θ i ,(x i ,y i ,z i ))
[0122] Among them, origin i is the record point p i GPS coordinates of the lidar device at the moment, θ i is the record point p i The azimuth of the lidar device at this moment.
[0123] S104. Use the instrument to record the ambient temperature T and the ambient light intensity I. Define T i is the record point p i The ambient temperature recorded at all times, I i is the record point p i The ambient light intensity recorded at all times.
[0124] S2. Use a handheld retroreflectivity detector to sample the retroreflectivity information of road markings every 20 meters, and collect a limited number of accurate retroreflectivity values of road markings as labels for model training data. This specifically includes the following steps:
[0125] S201, using a handheld retroreflectivity detector, sample the retroreflectivity information of the marking line every 20m and record the measured value as l n , n is the number of data measured by the handheld instrument;
[0126] S202, measuring the retroreflectivity reference value of individual markings and recording the location information via GPS, matching the retroreflectivity detection results of the handheld retroreflectivity detector with the three-dimensional point cloud data obtained by the laser radar in GPS spatial position, and assigning retroreflectivity values to the measurement points obtained by the laser radar as labels for subsequent model training;
[0127] Note nThe GPS coordinates of the measured location are gps n , use Haversine formula to calculate GPS i and GPS n The distance between them is as follows:
[0128]
[0129] Among them, d in For GPS i and GPS n The distance between two points, r is the radius of the earth, d = 6378137, Δlat is the radian value of the difference in latitude between the two points, and Δlong is the radian value of the difference in longitude between the two points. Lat i , long i For GPS i Latitude and longitude, lat n , long n For GPS n latitude and longitude.
[0130] The retroreflectivity values on the same scale line within 5m of the measuring point of the handheld retroreflectivity detector are regarded as l n , the formula is as follows:
[0131] l i =l n
[0132] st
[0133] d in ≤5
[0134] α in =1
[0135] where α in =1 represents GPS i and GPS n The two points are on the same line, otherwise α in =0,l i is the point cloud data p i The retroreflectivity tag value.
[0136] S3: Filter the non-road surface data and segment the 3D point cloud data to obtain the 3D point cloud data of the road markings, so that the algorithm can focus on processing the road markings. This specifically includes the following steps:
[0137] S301. Use Patchwork++ to extract ground lines and non-ground lines from the point cloud collected by each frame of MLS.
[0138] Let the set of i laser point cloud data points be P, the set of ground points be G, and the set of non-ground points be N. The relationship can be expressed by the following formula:
[0139] P={p i}=G∪N
[0140] The original point cloud is as follows Figure 2 As shown in a, the extracted ground point cloud is as follows Figure 2 As shown in b.
[0141] S302, the maximum entropy threshold segmentation is used to extract the road markings from the ground point set G, and the three-dimensional laser point cloud set R of the road markings is obtained. The extraction effect is as follows: Figure 2 As shown in c.
[0142] S4. Construct a 3D point cloud feature enhancement process for road markings to improve the prediction effect of the subsequent semi-supervised learning model. This specifically includes the following steps:
[0143] S401, construct a KD tree to search for the neighboring point set of each point. Define the 3D laser point cloud of the road marking as each point p in the point set R i =(x i ,y i ,z i ) In the local 3D space of the point cloud data, the KD tree construction of the road 3D laser point cloud is carried out through the following steps:
[0144] S401a, select the dimension with the highest variance (assuming it is the x dimension), and calculate the median m on this dimension;
[0145] S401b, create a node, split the point set P into two sub-P according to the median m of dimension d left and P right ;
[0146] S401c, for subset P ieft For every point in x i ≤m, then p i Belong to P left , otherwise it belongs to P right ;
[0147] S401d, recursively in P left and P right Repeat this process, creating more nodes, until every point is on a node in the tree;
[0148] S402: Construct a local plane using the nearest neighbor point set searched by the KD tree.
[0149] For each point in the ground point set G and the number of neighboring point sets L centered on it = {p i (xi ,y i ,z i )|i=1,2,..,n}, which can be regarded as forming a plane. The general form of the plane to be fitted is:
[0150] Ax+By+Cz+D=0
[0151] A2+B2+C2=1
[0152] Where A, B, and C are constant parameters of the plane, the plane can be fitted using the least squares method:
[0153]
[0154] st||n||=1
[0155] Where M is the covariance matrix,
[0156] S403, calculate the local plane normal phase quantity based on the fitting plane
[0157] n=±[A,B,C] T
[0158] In the formula, the normal vector of each point in the point cloud is n,
[0159] S404. Calculate the incident angle between the laser and the reflecting surface based on the normal vector and the laser propagation direction:
[0160] θ = arccos(n·[0,0,1])
[0161] Where θ is the incident angle between the laser and the reflecting surface,
[0162] S405. Calculate the distance d from each point in the road marking three-dimensional laser point cloud set R to the laser radar sensor:
[0163] d=||x 2 +y 2 +z 2 ||2
[0164] In the formula, ||||2 represents the two-norm, x, y, z are the positions of the points in the local three-dimensional space of the point cloud data;
[0165] S406, build data enhancement process, for each point p i Both:
[0166] x i =[x i ,y i , z i , r i ,θ i , d i, T i , I i ]
[0167] Among them, x i ,y i ,z i is the spatial position information of the point, r i is the reflectivity measured by the lidar, θ i is the incident angle between the laser and the reflecting surface, d i is the distance from the point to the lidar sensor, T i is the ambient temperature, I i is the ambient light intensity.
[0168] For the point set that can be matched with the handheld retroreflectivity detector through step S202, point p i The label is l i =l n , where l n The retroreflectivity value measured by a handheld retroreflectivity tester.
[0169] S5. Constructing a semi-supervised learning-based reverse reflectivity relationship model for road traffic markings; using the optimal transfer learning framework SOT to construct a semi-supervised learning-based reverse reflectivity relationship model for road traffic markings, using the data format of step S406. Specifically, the following steps are included:
[0170] S501. Differentiate the dataset using the source domain and the target domain based on whether the three-dimensional laser point cloud of the road marking has corresponding retroreflectivity instrument detection values:
[0171]
[0172]
[0173] Where x i For sample i, that is, point p i The characteristic vector of i is the label of sample i, D s The source domain is the sample set marked with the retroreflectivity instrument detection value, x j is the eigenvector of sample i, The target domain is a set of samples marked with instrument detection values without retroreflectivity.
[0174] S502, using Gaussian mixture model to obtain the substructure of source domain and target domain such as Figure 3 a, the formula is as follows:
[0175]
[0176] In the formula, X represents all feature data, is the data of the kth Gaussian distribution, z k ,σ k In order to obtain the parameters of the Gaussian mixture model using the expectation maximum algorithm, the number of clusters k is determined by the Bayesian information criterion. The number of clusters is determined by selecting the number of free parameters k that minimizes the Bayesian information criterion.
[0177] Then the substructure of the data is represented by the following formula,
[0178]
[0179]
[0180] Where μ t is the distribution of the source domain, μ t is the distribution of the target domain, z represents the cluster center, δ z is the Dirac function at the cluster center, ω represents the probability mass associated with the cluster center and is 1, that is, ω ,i ,ω t,i Represents the ω value of the i-th cluster in the source domain and the ω value of the i-th cluster in the target domain, z s,i ,z t,i Represents the z value of the i-th cluster in the source domain and the z value of the i-th cluster in the target domain respectively
[0181] S503, calculate the weight of the optimal transportation of the substructure, such as Figure 3 b,
[0182] use Indicates that there is k s The substructure of the source domain of the clusters, Indicates that there is k t The substructure of the target domain of each cluster, It can be regarded as a partial optimal transport problem, which is solved by using the partial optimal transport problem. The substructure is solved by using the partial optimal transport problem. The optimization objective corresponding to the optimal transport mode is:
[0183]
[0184]
[0185] Where, To obtain the independent variable π when the function f(π) reaches its minimum value, 1 k is a k-dimensional vector with a value of 1, λ1 is a hyperparameter, and C is the cost matrix composed of the distance metric function c(z s,i ,z t,j ) is calculated. F is the matrix inner product, <π, C> FThat is the total cost of partial optimal transport, H(π)=∑ ij π ij logπ ij is the regularization term, set The weight to move for this substructure.
[0186] The Lagrangian method can be used to obtain the substructure weight w of the source domain s As follows:
[0187]
[0188]
[0189]
[0190] Among them, diag represents diagonal matrix, represents the division of each element,
[0191] S504, constructing a road inverse reflectivity relationship model by substructure mapping based on optimal transportation, such as Figure 3 c, the overall goal of substructure mapping based on optimal transportation is as follows:
[0192]
[0193]
[0194]
[0195] Where Ω(π) is the group sparse regularizer, and Ω(π)=∑ i ∑ cl ||π(I cl , j)||2,||||2 represents the l2 norm, π(I cl ,j) is a vector containing the coefficients of the j-th column in π associated with class xl, and λ,η are hyperparameters.
[0196] The mapping of substructures can be expressed as,
[0197]
[0198] Where, is the mapping between source domain features and labels, P t It is the mapping between the target domain sample features and labels. Using the K-nearest neighbor algorithm, using the source domain data Train the mapping Build the model to get P tYes, by assigning the predicted labels to the data belonging to the corresponding cluster in the target domain, the label prediction task of the target domain can be finally completed, that is, the construction of the reverse reflectivity relationship model of road traffic markings based on semi-supervised learning can be realized.
[0199] S6. Construct a process for quickly measuring the retroreflectivity of road markings using a LiDAR based on semi-supervised learning. This process is used to detect the retroreflectivity of any road marking using a LiDAR based on semi-supervised learning. This process specifically includes the following steps:
[0200] For any road marking, data is collected according to steps S1-S2, pre-processed according to steps S3-S4, and predicted using the semi-supervised model in step S5, i.e., according to the following Figure 1 The process shown in the figure can be used to obtain the road marking retroreflectivity detection value. The model data input and output are as follows: Figure 4 This method is a prediction example on the actual road. Figure 5 shown.
[0201] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
Claims
1. A method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning, characterized in that: The following steps are involved: S1. Use the vehicle-mounted laser radar to scan the road environment and obtain the three-dimensional point cloud data of the road; S2, using a handheld retroreflectivity detector to sample and measure the retroreflectivity information of the marking line; S3, filtering non-road surface data and segmenting the three-dimensional point cloud data of the road to obtain three-dimensional point cloud data of road markings; S4, constructing a three-dimensional point feature enhancement process for road markings; S5. Use the optimal transfer learning framework SOT to build a reverse reflectivity relationship model of road traffic markings based on semi-supervised learning; S6. Construct a process for quickly measuring the retro-reflectivity of road markings using a lidar based on semi-supervised learning to detect the retro-reflectivity of any road marking.
2. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 1, characterized in that: In step S1, the three-dimensional point cloud data of the road is acquired by the on-board laser radar during driving at 80% of the road design speed, and the ambient temperature and ambient light intensity are measured using a thermometer and an illuminance meter to provide training data support for subsequent steps.
3. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 2, characterized in that: The road 3D point cloud data, ambient temperature and ambient light intensity are obtained by the following methods: S101, the vehicle-mounted laser radar is used to perform a mobile scan of the target road environment at a driving speed of 80% of the design speed, and the laser radar obtains three-dimensional point cloud data of the target road section at a frequency of 10 Hz; Note that each point p in the point cloud data i =(x i ,y i ,z i ,r i ), where x i ,y i ,z i is the spatial position information of the point, r i is the reflectivity measured by the LiDAR, i is the number of point cloud points; S102, while executing step S101, the GPS device continuously records the position information during the laser radar scanning process, and each three-dimensional point cloud data is associated with a specific GPS coordinate and azimuth; S103, convert the spatial coordinates of the point cloud data point relative to the laser radar into GPS coordinates, and define a function f() to convert the x coordinates of the point cloud data point i ,y i ,z i Function of converting the spatial coordinates of the relative laser radar into GPS coordinates: f(origin,θ,(x,y,2))=origin+R(θ)·(x,y)·S(origin) Among them, origin is a two-tuple (latitude, longitude) representing the GPS position of the lidar device; θ is the azimuth of the lidar device, measured clockwise from the north to the direction of the device, in degrees; (x, y, z) is a triple representing the relative coordinates in the point cloud data; R(θ) is the rotation matrix; S(origin) is the scale matrix to adjust the effect of longitude and latitude on distance; Then for each point p in the cloud data i Each has its corresponding GPS coordinates marked as gps i The formula is as follows: gps i =f(origin,θ i ,(x i y i ,z i )) Among them, origin i is the record point p i GPS coordinates of the lidar device at the moment, θ i is the record point p i The azimuth of the LiDAR device at the moment; S104. Use the instrument to record the ambient temperature T and the ambient light intensity I, and define T i is the record point p i The ambient temperature recorded at all times, I i is the record point p i The ambient light intensity recorded at all times.
4. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 1, characterized in that: In the step S2, a handheld retroreflectivity detector is used to sample and measure the retroreflectivity information of the road markings every 20 m, and limited accurate values of the retroreflectivity of the road markings are collected as labels for the model training data.
5. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 4, characterized in that: In step S3, the accurate value of the retroreflectivity of the limited road markings is collected by the following method: S201, using a handheld retroreflectivity detector, sample and measure the retroreflectivity information of the marking line every 20m, and record the measured value as l n , n is the number of data measured by the handheld instrument; S202, measuring the retroreflectivity reference value of individual markings and recording the position information by GPS, making the retroreflectivity detection result of the handheld retroreflectivity detector correspond to the three-dimensional point cloud data obtained by the laser radar in the GPS spatial position, and assigning the retroreflectivity value to the measurement point obtained by the laser radar as a label for subsequent model training; Note n The GPS coordinates of the measured location are gps n , use the Haversine formula to calculate GPS i and GPS n The distance between them is given by the following formula: Among them, d in For GPS i and GPS n The distance between two points, r is the radius of the earth, d = 6378137m, Δlat is the radian value of the latitude difference between the two points, Δ is the radian value of the longitude difference between the two points, Lat i , long i For GPS i Latitude and longitude, Lat n , long n For GPS n latitude and longitude; The retroreflectivity values on the same scale line within 5m of the measuring point of the handheld retroreflectivity detector are regarded as l n , the formula is as follows: l i =l n st d in ≤5 α in =1 where α in =1 represents GPS i and GPS n The two points are on the same line, otherwise α in =0, l i is the point cloud data i The retroreflectivity tag value.
6. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 1, characterized in that: In step S3, the three-dimensional point cloud data of the road marking is obtained by the following method: S301, using Patchwork++ to extract ground lines and non-ground lines from the point cloud collected by each frame of MLS, denoting a set of i laser point cloud data points as P, a set of ground points as G, and a set of non-ground points as N, the relationship can be expressed by the following formula: P={p i }=G∪N S32, extracting road markings from the ground point set G by using maximum entropy threshold segmentation to obtain a three-dimensional laser point cloud point set R of the road markings.
7. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 1, characterized in that: In step S4, a three-dimensional point cloud feature enhancement process of road markings is constructed by the following method: S401, construct a KD tree to search for the neighboring point set of each point; S402, using the nearest point set searched by the KD tree to construct a local plane, for each point in the ground point set G and a number of nearest point sets L={p i (x i ,y i ,z i )|i=1,2,..,n}, it can be regarded as forming a plane. The general form of the fitted plane is: Ax+By+Cz+D=0 A2+B2+C2=1 Among them, A, B, C are constant parameters of the plane, and the plane is formed by least squares fitting: Where M is the covariance matrix; S403, calculating the local plane normal phase quantity according to the fitting plane n=±[A,B,C] T In the formula, the normal vector of each point in the point cloud is n; S404, calculating the incident angle between the laser and the reflecting surface according to the normal vector and the laser propagation direction; θ=arccos(n·[0,0,1]) Where θ is the incident angle between the laser and the reflecting surface; S405, calculate the distance d from each point in the three-dimensional laser point cloud set R of the road marking to the laser radar sensor: d=||x 2 +y 2 +z 2 ||2 In the formula, || ||2 represents the two-norm, x, y, z are the positions of the points in the local three-dimensional space of the point cloud data; S406, build a data enhancement process, for each point p i Both have: x i =[x i ,y i ,z i ,r i ,θ i ,d i ,T i ,I i ] Among them, x i ,y i ,z i is the spatial position information of the point, r i is the reflectivity measured by the lidar, θ i is the incident angle between the laser and the reflecting surface, d i is the distance from the point to the lidar sensor, T i is the ambient temperature, I i is the ambient light intensity.
8. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 7, characterized in that: In step S401, the three-dimensional laser point cloud of the road marking is defined as each point p in the point set R i =(x i ,y i ,z i ) In the local 3D space of the point cloud data, the KD tree construction of the road 3D laser point cloud is carried out through the following steps: S401a, select the highest variance dimension, and calculate the median m on the dimension; S401b, create a node, split the point set P into two sub-P according to the median m of dimension d left and P right ; S401c, for subset P left For every point in i ≤m, then p i Belong to P left , otherwise it belongs to P right ; S401d, recursively in P left and P right Repeat this process, creating more nodes, until every point is on a node in the tree.
9. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 1, characterized in that: In step S5, a reverse reflectivity relationship model of road traffic markings based on semi-supervised learning is constructed by the following method: S501, using a source domain and a target domain to distinguish a data set according to whether a corresponding retroreflectivity instrument detection value exists in a three-dimensional laser point cloud of a road marking; In the formula, x i is sample i, i.e. point p i The characteristic vector of i is the label of sample i, D s is the source domain, i.e., the sample set marked with the retroreflectivity instrument detection value, x j is the feature vector of sample i, The target domain is a set of samples marked with instrument detection values of no retroreflectivity; S502, using a Gaussian mixture model to obtain the substructure of the source domain and the target domain, the formula is as follows: In the formula, X represents all feature data, is the data of the kth Gaussian distribution, z k ,σ k In order to obtain the parameters of the Gaussian mixture model using the expected maximum algorithm, the number of clusters k is determined by the Bayesian information criterion, and the number of clusters is determined by selecting the number of free parameters k that minimizes the Bayesian information criterion; Then the substructure of the data is represented by the following formula: In the formula, μ t is the distribution of the source domain, μ t is the distribution of the target domain, z represents the cluster center, δ z is the Dirac function at the cluster center, ω represents the probability mass associated with the cluster center and is 1, that is ω s,i ,ω t,i Represents the ω value of the i-th cluster in the source domain and the ω value of the i-th cluster in the target domain, respectively, s,i ,z t,i Represent the z value of the i-th cluster in the source domain and the z value of the i-th cluster in the target domain respectively; S503, calculate the weight of the optimal transportation of the substructure, and use Indicates that there is k s The substructure of the source domain of the clusters, Indicates that there is k t The substructure of the target domain of each cluster, It is regarded as a partial optimal transport problem and solved using the partial optimal transport problem. The substructure is solved using the partial optimal transport problem. The optimization objective corresponding to the optimal transport mode is: In the formula, To obtain the independent variable π when the function f(π) reaches its minimum value, 1 k is a k-dimensional vector with a value of 1, λ1 is a hyperparameter, and C is the cost matrix composed of the distance metric function c(z s,i ,z t,j ) calculated; F is the matrix inner product, <π, C> F is the total cost of partial optimal transport, H(π)=∑ ij π ij logπ ij is the regularization term, set The weight to move for this substructure; Using the Lagrangian method, we can get the substructure weight w of the source domain. s As follows: Among them, diag represents diagonal matrixization, Indicates the division of each element; S504, constructing a road inverse reflectivity relationship model through substructure mapping based on optimal transportation, and the overall goal of substructure mapping based on optimal transportation is as follows: In the formula, Ω(π) is the group sparse regularizer, and Ω(π)=∑ i ∑ cl ||π(I ci , j)||2,|| ||2 represents the l2 norm, π(I cl , j) is a vector containing the coefficients of the jth column in π related to the class cl, λ, η are hyperparameters; The mapping of the substructure is represented as: In the formula, is the mapping between source domain features and labels, P t It is the mapping between the sample features and labels of the target domain; using the K-nearest neighbor algorithm, using the source domain data Train the mapping Build the model to get P t Yes, by assigning the predicted labels to the data belonging to the corresponding cluster in the target domain, the label prediction task of the target domain can be finally completed, that is, the construction of the reverse reflectivity relationship model of road traffic markings based on semi-supervised learning can be realized.
10. The method for measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning according to claim 1, characterized in that: In step S6, a process for quickly measuring the retroreflectivity of road markings using a laser radar based on semi-supervised learning is constructed by the following method: for any road marking, data is collected according to steps S1-S2, the data is preprocessed according to steps S3-S4, and the semi-supervised model of step S5 is used for prediction to obtain the retroreflectivity detection value of the road marking.
