Highway detection method, device, computer equipment and storage medium

By building a pavement disease detection model and using sensor data to automatically identify rural road diseases, it solves the problem of existing technology being unable to accurately grasp the condition of rural roads in a timely manner, achieving more efficient road maintenance and reducing property losses.

CN117422699BActive Publication Date: 2024-10-11HEBEI XIGONG INFORMATION TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311499044.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-10-11
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

The existing technology cannot comprehensively, accurately and timely grasp the disease status and road conditions of rural roads, resulting in untimely maintenance and property losses.

Method used

By building a pavement disease detection model and using image recognition technology and sensor data, we can automatically identify pavement diseases, calculate the technical status of the highway, provide timely road condition information, and support targeted maintenance plans.

Benefits of technology

It improves the accuracy and efficiency of detection, reduces human interference, can cover complex scenes more comprehensively, provides more accurate road condition information, and avoids unnecessary property losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117422699B_ABST
    Figure CN117422699B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of deep learning technology, and discloses a highway detection method, device, computer equipment and storage medium, including: obtaining a road surface image to be tested; constructing a road surface disease detection model; inputting the road surface image to be tested into the road surface disease detection model to detect the road surface type and disease area of ​​the road surface to be tested; collecting acceleration data and sensor posture data of the vehicle passing through the road surface to be tested; based on the acceleration data, sensor posture data, road surface type and disease area of ​​the road surface to be tested, calculating the highway technical condition detection result of the road surface to be tested. The present invention can automatically identify the disease of the road surface to be tested, reduce the interference of human factors, and improve the accuracy of detection. Comprehensively cover various complex scenes of highway detection, and the detection results are more accurate and comprehensive. By comprehensively evaluating the highway technical condition of the road surface, comprehensive road condition information is provided in a timely manner, which is convenient for timely maintenance of the highway and avoids unnecessary property losses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, and in particular to a highway detection method, device, computer equipment and storage medium. Background Art

[0002] As an important transportation infrastructure connecting cities and rural areas, rural roads play a key role in rural economic development, people's livelihood and material transportation. However, rural roads usually face problems such as limited maintenance resources, diverse types and difficult inspection. In order to ensure the safety and smooth operation of rural roads, it is particularly important to detect and repair diseases in a timely manner.

[0003] In the related technologies, due to the complexity of rural road inspection scenarios, and road inspection usually relies on manual inspection and evaluation, the existing road inspection methods are not sufficient to cover the complex scenarios of rural road inspection. Manual inspection not only has the problem of low efficiency, but also has the problem of inaccurate inspection results due to human factors. It is impossible to fully, accurately and timely grasp the disease status and road conditions of rural roads, resulting in the inability to carry out timely maintenance of rural roads, causing unnecessary property losses. Summary of the invention

[0004] In view of this, the present invention provides a highway detection method, device, computer equipment and storage medium to solve the problem of being unable to fully and accurately grasp the disease status and road conditions of rural roads in a timely manner.

[0005] In a first aspect, the present invention provides a road detection method, the method comprising:

[0006] Acquire an image of the road surface to be tested;

[0007] Construct a pavement disease detection model;

[0008] The road surface image to be tested is input into the road surface disease detection model to detect the road surface type and disease area of ​​the road surface to be tested;

[0009] Collect acceleration data and sensor posture data of the vehicle passing through the road to be tested;

[0010] Based on the acceleration data, sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested, the highway technical condition detection result of the road surface to be tested is calculated.

[0011] In the present invention, by constructing a road surface disease detection model, the disease of the road surface to be tested can be automatically identified, reducing the interference of human factors and improving the accuracy of detection. The road surface disease detection model obtained by training a large number of road surface disease images can more comprehensively cover various complex scenes of highway detection, and the detection results are more accurate and comprehensive. By comprehensively evaluating the road technical condition of the road surface, more comprehensive road condition information can be provided in a more timely manner, providing more targeted support for future maintenance plans, facilitating timely maintenance of the road and avoiding unnecessary property losses.

[0012] In an optional implementation, building a pavement damage detection model includes:

[0013] Acquire a road surface image data set, the road surface image data set including: a road surface image with defects, a real road surface type corresponding to the road surface image, and a real frame coordinate of the defect position on the road surface image;

[0014] Preprocess and enhance the pavement images to obtain a disease training image set;

[0015] Input the disease training image set into the initial pavement disease detection model to obtain the predicted pavement type and predicted frame coordinates of the disease training image set;

[0016] The total training loss is calculated based on the predicted road surface type and predicted frame coordinates of the disease training image set and the real road surface type and real frame coordinates;

[0017] Based on the total training loss, the initial pavement damage detection model is trained to obtain the target pavement damage detection model.

[0018] In this method, by using a large number of disease images to train the pavement disease detection model, the disease results obtained by the pavement disease detection model are more accurate. By preprocessing the pavement images and combining the structural design of the pavement disease detection model, the generalization and robustness of the pavement disease detection model are further improved.

[0019] In an optional implementation, the road surface image to be tested is input into a road surface damage detection model to detect the road surface type and damage area of ​​the road surface to be tested, including:

[0020] Input the road surface image to be tested into the target road surface defect detection model to obtain the road surface type and defect coordinates of the road surface to be tested;

[0021] A calibration plate data set is obtained, and based on the calibration plate data set, a real-world area thermal distribution map is calculated, wherein the calibration plate data set includes: calibration plate images containing the calibration plate collected at different angles and positions;

[0022] Based on the area thermal distribution map and combined with the defect coordinates, the defect area of ​​the road surface to be tested is calculated.

[0023] In this way, by setting calibration images and establishing an area distance measurement system, the area and length of pavement defects can be detected more accurately, thereby improving the accuracy of pavement defect detection.

[0024] In an optional implementation, obtaining a calibration plate data set, and calculating a real-world area thermal distribution map based on the calibration plate data set, includes:

[0025] Annotate the position of the calibration plate in the calibration plate image to obtain a bounding box corresponding to the calibration plate, where the bounding box includes the position and size of the calibration plate in the calibration plate image;

[0026] Perform edge correction on the bounding box, determine the inclination angle of each edge of the calibration plate, and calculate the relationship between the unit pixel area in the calibration image and the coordinates in the real world;

[0027] Based on the relationship between the unit pixel area in the calibration image and the coordinates in the real world, the area values ​​of all pixels in the calibration plate image are calculated to obtain the area thermal distribution map of the real world.

[0028] In this method, the bounding box is obtained by annotating the calibration image, and the bounding box is segmented, edge corrected and other operations are performed to determine the area corresponding to each pixel in the image in the real world, and then the area distribution heat map of the real world is determined, which facilitates the subsequent calculation of the diseased area of ​​the road surface to be tested in the real world.

[0029] In an optional implementation, based on the acceleration data, the sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested, the highway technical condition detection result of the road surface to be tested is calculated, including:

[0030] Based on the acceleration data and the sensor attitude information, the road surface roughness index of the road to be tested is calculated;

[0031] Based on the road surface roughness index, the road surface ride quality index of the road surface to be tested is calculated;

[0032] Based on the road surface type and the damaged area of ​​the road surface to be tested, the road surface damage condition index of the road surface to be tested is calculated;

[0033] Based on the road ride quality index and the road damage condition index, the highway technical condition test result of the road to be tested is calculated.

[0034] In this method, information is collected by sensors to detect road driving quality, and the highway technical condition test results of the road to be tested are calculated, realizing lightweight and automated road roughness detection, which is easy to carry and deploy, greatly saving manpower and material resources and improving work efficiency.

[0035] In an optional embodiment, the method further includes:

[0036] Construct a detection model for facilities along the route;

[0037] The road surface image is input into the road facilities detection model to detect the road facilities in the road surface image;

[0038] Based on the facilities along the road in the road image, the location information of road damage is determined.

[0039] In this way, by constructing a detection model for facilities along the road, the facilities along the road to be tested can be automatically identified, reducing the interference of human factors and improving the accuracy of the detection of facilities along the road. By determining the location information of road surface diseases, it is convenient to accurately maintain the diseases of the road to be tested in the future.

[0040] In an optional implementation, constructing a facility detection model along the route includes:

[0041] Acquire a dataset of images of facilities along the line, the dataset comprising images of facilities along the line, real categories corresponding to the images of facilities along the line, and real frame coordinates;

[0042] Preprocess and enhance the data of the facility images along the line to obtain a training image set of the facility images along the line;

[0043] Input the line facility training image set into the initial line facility detection model to obtain the prediction box category and prediction box coordinates of the line facility training image set;

[0044] Based on the predicted box categories and predicted box coordinates of the training image set of facilities along the line and the true categories and true box coordinates, the total training loss of facilities along the line is calculated;

[0045] Based on the total training loss of the facilities along the line, the initial facility along the line detection model is trained to obtain the target facility along the line detection model.

[0046] In this method, a large number of line facility images are used to train the line facility detection model, and the line facility detection results obtained by the line facility detection model are more accurate. By preprocessing the line facility images and combining the structural design of the line facility detection model, the generalization and robustness of the line facility detection model are further improved.

[0047] In an optional embodiment, the method further includes:

[0048] Based on the highway technical condition test results of the road surface to be tested, the quality of the road surface to be tested is evaluated and the maintenance plan of the road surface to be tested is determined.

[0049] In this way, by conducting an overall technical condition assessment based on the test results, users can be provided with more comprehensive road condition information, and more targeted suggestions can be given for future maintenance methods and maintenance plans, facilitating timely and accurate road maintenance.

[0050] In a second aspect, the present invention provides a road detection device, the device comprising:

[0051] An image acquisition module, used for acquiring an image of a road surface to be tested;

[0052] Model building module, used to build a pavement disease detection model;

[0053] The disease detection module is used to input the road surface image to be tested into the road surface disease detection model to detect the road surface type and disease area of ​​the road surface to be tested;

[0054] The sensor data acquisition module is used to collect acceleration data and sensor posture data of the vehicle passing through the road to be tested;

[0055] The technical condition calculation module is used to calculate the highway technical condition detection result of the road surface to be tested based on acceleration data, sensor posture data, road surface type and disease area of ​​the road surface to be tested.

[0056] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the highway detection method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0057] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the highway detection method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 4 is a flow chart of a highway detection method according to an embodiment of the present invention.

[0060] Figure 2 4 is a flow chart of a lightweight road detection method according to an embodiment of the present invention.

[0061] Figure 3 4 is a flow chart of another road detection method according to an embodiment of the present invention.

[0062] Figure 4 4 is a structural diagram of a pavement damage detection model of a lightweight road detection method according to an embodiment of the present invention.

[0063] Figure 5 It is a structural diagram of a backbone network in a pavement damage detection model of a lightweight road detection method according to an embodiment of the present invention.

[0064] Figure 6 4 is a structural diagram of a neck network in a pavement damage detection model of a lightweight road detection method according to an embodiment of the present invention.

[0065] Figure 7 4 is a structural diagram of a head network in a pavement damage detection model of a lightweight road detection method according to an embodiment of the present invention.

[0066] Figure 8 is a calibration plate style diagram according to an embodiment of the present invention.

[0067] Fig. 9 4 is a flow chart of another road detection method according to an embodiment of the present invention.

[0068] Fig.10 4 is a flow chart of another road detection method according to an embodiment of the present invention.

[0069] Fig.11 4 is a schematic diagram of the deduction standard for facilities along the road according to the lightweight road detection method according to an embodiment of the present invention.

[0070] Fig.12 4 is a structural block diagram of a highway detection device according to an embodiment of the present invention.

[0071] Fig.13 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0073] In the related technologies, due to the complexity of rural road inspection scenarios, and road inspection usually relies on manual inspection and evaluation, the existing road inspection methods are not sufficient to cover the complex scenarios of rural road inspection. Manual inspection not only has the problem of low efficiency, but also has the problem of inaccurate inspection results due to human factors. It is impossible to fully, accurately and timely grasp the disease status and road conditions of rural roads, resulting in the inability to carry out timely maintenance of rural roads, causing unnecessary property losses.

[0074] In order to solve the above problems, a highway detection method is provided in an embodiment of the present invention, which is used in a computer device. It should be noted that its execution subject can be a highway detection device, which can be implemented as part or all of the computer device through software, hardware or a combination of software and hardware. The computer device can be a terminal, a client or a server. The server can be a single server or a server cluster composed of multiple servers. The terminal in the embodiment of the present application can be a smart phone, a personal computer, a tablet computer or other intelligent hardware devices. In the following method embodiments, the execution subject is a computer device as an example for explanation.

[0075] The computer device in this embodiment is suitable for use in scenarios where possible road surface defects of rural roads are detected. The present invention provides a road detection method, and by constructing a road surface defect detection model, the defects of the road surface to be tested can be automatically identified, reducing the interference of human factors and improving the accuracy of detection. The road surface defect detection model obtained by training a large number of road surface defect images can more comprehensively cover various complex scenarios of road detection, and the detection results are more accurate and comprehensive. By comprehensively evaluating the road technical condition of the road surface, comprehensive road condition information can be provided in a more timely manner, providing more targeted support for future maintenance plans, facilitating timely maintenance of the road and avoiding unnecessary property losses.

[0076] According to an embodiment of the present invention, an embodiment of a highway detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0077] In this embodiment, a road detection method is provided, which can be used in the above-mentioned terminals, such as mobile phones, tablet computers, etc. Figure 1 is a flow chart of a highway detection method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0078] Step S101, obtaining an image of a road surface to be tested.

[0079] In one example, road images required for training are collected, and machine vision algorithms assist inspectors in screening high-quality images. Then two data sets are produced, including color images of facilities along the line captured by the front camera and grayscale images of road surface diseases captured by the rear infrared camera. They are named along-the-line facilities data set and road surface disease data set.

[0080] Preferably, it also includes preprocessing the images of facilities along the line and the images of road diseases, mainly using data enhancement methods such as white balance, image denoising, USM sharpening, affine transformation, random cropping, super-resolution, image blending, histogram equalization and Mosaic to improve image quality and detection accuracy.

[0081] During the disease detection process, different lighting conditions will affect the overall exposure and contrast of the image, and uneven lighting may produce some shadows and highlight areas, making it difficult to distinguish the disease features; at the same time, the collected images often contain noise, mainly from dust attached to the lens and road dust, as well as strong light reflected from the road surface. These noises will reduce the quality of the image, affect the visibility of details and the accuracy of feature recognition, so reducing noise can effectively improve image quality and is more conducive to image analysis; in addition, the fast movement of the camera or the subject during the exposure process may cause image distortion and motion blur, affecting the detection results. Therefore, the color constancy algorithm is used to solve the problems of overexposure and underexposure of images, the adaptive histogram equalization method is used to improve the image contrast, the SwinTransformer is used for image denoising and image super-resolution, the image mixing and Mosaic algorithms are used to improve the diversity of detection targets and the sensitivity to targets of different scales, the Fourier transform is used to analyze the frequency domain characteristics of the image to detect blur, and the blur degree of the image is evaluated by calculating the spectral energy distribution after Fourier transform, so as to obtain the preprocessed road surface image to be detected, and the preprocessed road surface image to be detected is used for subsequent pavement disease detection.

[0082] Step S102: construct a road surface disease detection model.

[0083] In one example, a pavement disease detection model for detecting pavement diseases is constructed, and the pavement disease detection model is trained using a disease data set. The hyperparameters of the pavement disease model are adjusted for multiple trainings, and the accuracy, recall rate, and average precision values ​​are compared. The optimal model result is saved as the target pavement disease detection model. The pavement disease detection model structure is based on the YoloV8 model, and an improved method for pavement disease detection and an optimized design of the training process are added on the basis of the YoloV8 model.

[0084] Step S103: input the road surface image to be tested into the road surface damage detection model to detect the road surface type and damage area of ​​the road surface to be tested.

[0085] In one example, an image of a road surface to be tested is input into a trained road surface damage detection model, and the road surface type and damage area of ​​the road surface to be tested are obtained as output.

[0086] Step S104, collecting acceleration data and sensor posture data of the vehicle passing through the road to be tested.

[0087] In one example, a nine-axis sensor is used to measure the road smoothness and road ride quality index of a road to be tested. The nine-axis sensor is composed of a three-axis acceleration sensor, a three-axis gyroscope, and a three-axis geomagnetic sensor. Collecting the acceleration data and sensor attitude data of a vehicle passing through the road to be tested includes: collecting the three-axis acceleration data and sensor attitude information of the vehicle passing through the road to be tested. Specifically, the nine-axis sensor is fixed in the inspection vehicle for initial state calibration, and the initial value of gravity on the sensor is measured and recorded; the three-meter ruler method is used to measure no less than three sections of roads, each section of no less than thirty meters, and the smoothness index of each road is calculated; then, the inspection vehicle passes through this section at a uniform speed and records the nine-axis values ​​of the sensor; finally, the vertical acceleration is calculated, and the relationship between the vertical acceleration data and the smoothness index is established. The formula is as follows:

[0088] a=0+a x i+a y j+a z k

[0089]

[0090] A=u x i+u y j+u z k

[0091]

[0092]

[0093]

[0094]

[0095] Among them, a x , a y , a z are the lateral, longitudinal and vertical accelerations measured by the nine-axis sensor detected by the sensor, a is the quaternion representation of the three-axis acceleration, g is the quaternion representation of gravity, represents the conjugate matrix of q, u x ,u y ,u z are the unit vectors in the horizontal, vertical and vertical directions respectively, A is the unit vector representation of the rotation axis, θ is the rotation angle of the sensor relative to the initial horizontal state, and i, j, k are imaginary units. a' and g' are the acceleration quaternion and gravity quaternion after rotation. Among them, i, j, k satisfy the following relationship:

[0096] i 2 =j 2 =k 2 =-1

[0097] ij=-ji=k

[0098] jk=-kj=i

[0099] ik=-ki=j

[0100] Finally, we get a' and g', which are the acceleration quaternion and gravity quaternion after rotation. We take the imaginary coefficient a of k for each of them. k and g k , so that the two are subtracted h =a k -g k Get the final vertical acceleration a h All vertical accelerations are filtered using a trapezoidal window function combined with a high-pass filter to eliminate low-frequency white noise and noise (such as body vibration after vehicle startup, sensor errors, environmental impact, etc.), retain the acceleration information caused by uneven road surface, and calculate the road surface roughness index IRI and road surface ride quality index RQI, as shown in the following formula:

[0101]

[0102]

[0103]

[0104] Where, f is the sampling frequency of the sensor, the default is 100Hz, a mis the mth acceleration data of the sensor, M is all the acceleration data collected by the sensor, S is the driving distance in km; establish the calibration flatness α IRI And manual flatness inspection The relationship between ω and β is a set of approximate solutions to the relationship between the two, which eliminates the influence of the automobile shock absorption performance on the flatness measurement.

[0105] Step S105, based on the acceleration data, the sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested, the highway technical condition detection result of the road surface to be tested is calculated.

[0106] In one example, the pavement technical condition index PQI is calculated by calculating the facility condition index TCI along the route based on the inspection results of the facilities along the route, the pavement driving quality index RQI, the pavement damage condition index PCI and the pavement driving quality index RQI calculated using the nine-axis sensor, and combined with the manually assessed roadbed technical condition index SCI and the bridge and tunnel structure technical condition index BCI to comprehensively obtain the low-grade rural road technical condition index MQI.

[0107] In one implementation scenario, Figure 2 FIG. 1 is a flow chart of a lightweight road detection method according to an embodiment of the present invention. Figure 2 As shown in the figure, the lightweight road detection method includes: collecting and annotating road surface images, and then preprocessing them; inputting the images into the target detection model for training; adjusting the hyperparameters of the target detection model and repeating the training to obtain the final model; performing road technical assessment based on the results, generating a detection report, and giving road maintenance suggestions. Among them, the road technical assessment includes: establishing a real-world coordinate system based on the calibration image; calibrating and measuring the road flatness; designing and training target detection for detecting facilities along the road.

[0108] Specifically, the lightweight road detection method includes: (1) collecting road images required for training, using machine vision algorithms to assist detection personnel in screening high-quality images, and then creating two data sets, which respectively contain color images of facilities along the road captured by the front camera and grayscale images of road surface damage captured by the rear infrared camera. They are named as the facilities along the road data set and the road surface damage data set, and then the two data sets are divided into a training data set and a test data set.

[0109] (2) Preprocessing of images of facilities along the line and images of road damage mainly uses data enhancement methods such as white balance, image denoising, unsharp mask, affine transformation, random cropping, super-resolution, image blending, histogram equalization and mosaic.

[0110] (3) Make a calibration plate and use the rear infrared camera to collect the calibration plate image. Use the annotation software to annotate the calibration plate in the image, and then make a calibration plate dataset and divide it into a training dataset and a test dataset.

[0111] (4) Design an instance segmentation model and pass the calibration plate training data into the model for training. Then use the calibration plate test data to evaluate the results, repeatedly adjust the model hyperparameters, and optimize the output results.

[0112] (5) Through the corner detection algorithm, camera distortion correction algorithm, edge detection algorithm and instance segmentation model, the position information, corner coordinates and edge contour of the calibration plate in the calibration image are determined, and then the real-world area heat map is calculated based on this information.

[0113] (6) Use the pavement dataset to train the pavement classification model to classify cement pavement, asphalt pavement, and gravel pavement. Then repeatedly adjust the hyperparameters to obtain the optimal model.

[0114] (7) A pavement defect detection model for detecting pavement defects is designed. Based on the YOLO structure, the model is optimized according to the characteristics of pavement defects. The structure is adjusted, switchable hole convolution and deformable convolution are added, and softened non-maximum suppression and bounding box regression loss based on the dynamic focusing mechanism are added to optimize the model training process.

[0115] (8) Use the disease dataset to train the pavement disease detection model, adjust the model hyperparameters for multiple trainings, compare the accuracy, recall rate, and average precision values, and save the optimal model results.

[0116] (9) By analyzing known pavement condition information, an expert system customized based on a large natural language model provides pavement quality evaluation and maintenance recommendations, as well as predictions of future maintenance trends.

[0117] (10) Design a target detection model to detect facilities along rural roads and perform structural optimization based on target features.

[0118] (11) Use the facility set to train the facility detection model, adjust the model hyperparameters for multiple trainings, compare the accuracy, recall rate and average precision, and save the optimal model results.

[0119] (12) Based on the results of disease detection and three-dimensional world reconstruction, the type, area, severity, pile number and region of the disease are obtained. In addition, the pavement damage index PCI and the pavement damage assessment level are calculated.

[0120] (13) A nine-axis sensor is used to collect and detect acceleration change information during vehicle driving, and the road roughness index IRI and road ride quality index RQI are calculated based on the acceleration.

[0121] (14) The pavement technical condition index PQI is calculated by calculating the facility condition index TCI based on the inspection results of the facilities along the route, the pavement driving quality index RQI, the pavement damage condition index PCI and the pavement driving quality index RQI calculated using the nine-axis sensor. Combined with the manually assessed roadbed technical condition index SCI and bridge and tunnel structure technical condition index BCI, the technical condition index MQI of low-grade rural roads is obtained.

[0122] The highway detection method provided in this embodiment can automatically identify the diseases of the road surface to be tested by constructing a road surface disease detection model, thereby reducing the interference of human factors and improving the accuracy of detection. The road surface disease detection model obtained by training based on a large number of road surface disease images can more comprehensively cover various complex scenarios of highway detection, and the detection results are more accurate and comprehensive. By comprehensively evaluating the road technical condition of the road surface, comprehensive road condition information can be provided in a more timely manner, providing more targeted support for future maintenance plans, facilitating timely maintenance of the road, and avoiding unnecessary property losses. In this embodiment, a highway detection method is provided, which can be used for the above-mentioned mobile terminals, such as mobile phones, tablet computers, etc. Figure 3 is a flow chart of another highway detection method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0123] Step S301, obtain the road surface image to be tested. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0124] Step S302: construct a pavement damage detection model.

[0125] Specifically, the above step S302 includes:

[0126] Step S3021, obtaining a road surface image dataset.

[0127] In the embodiment of the present invention, the road surface image data set includes: a road surface image with defects, a real road surface type corresponding to the road surface image, and real frame coordinates of the defect position on the road surface image.

[0128] In one example, obtaining a road surface image dataset may include: collecting road surface images through front and rear cameras mounted on the detection vehicle. The front camera can collect color images of facilities along the road with a resolution of 2560×1440 and a frame rate of 25 frames per second, while the rear infrared camera can collect infrared images of road surface diseases with a resolution of 1920×1080 and a frame rate of 60 frames per second, wherein infrared images can effectively cope with the influence of insufficient light on the recognition effect. During the detection process, the vehicle takes a picture of the facilities along the road and a picture of the road surface disease every 5 meters according to the pile number, and stores these pictures in the data set of facilities along the road and the data set of road surface diseases.

[0129] After the data set is collected, the machine vision algorithm is used to remove blurry, dark (such as culverts and evening images taken without infrared mode) and overexposed images, and then the inspection personnel delete the images that do not include obvious diseases in the pavement disease data set and the images that do not include facilities along the line in the facilities along the line data set. Finally, the two data sets are divided into training sets and test sets in an 8:2 ratio, that is, 80% of the images are used for training and 20% of the images are used for testing, and ensure that there is no overlap between the training set and the test set.

[0130] Step S3022: preprocess and perform data enhancement on the road surface image to obtain a disease training image set.

[0131] In one example, the image preprocessing of the data set mainly uses data enhancement methods such as white balance, affine transformation, random cropping, super-resolution, image mixing, histogram equalization, Fourier transform and Mosaic. The specific steps are as follows:

[0132] First, the White Patch white balance algorithm, Unsharp Mask (USM) sharpening enhancement algorithm, Gaussian filtering algorithm and histogram equalization algorithm are used to preprocess the data set of facilities along the line and the data set of road damage. Among them, the White Patch algorithm sets the maximum value in the RGB channel as the illumination color in the image, thereby changing the overall color balance of the image and making the image maintain consistent color under different lighting conditions; the USM sharpening enhancement algorithm subtracts a blurred version from the original image and then adds the result back to the original image to highlight the edges and details of the image; the histogram equalization algorithm is a method for improving image contrast, which increases the global contrast of the image by stretching the range of pixel intensity distribution; the Gaussian filter is a linear filter that performs weighted averaging of pixel values ​​in a small area of ​​the image, and the weight is determined by the Gaussian function, thereby effectively removing the Gaussian noise of the image. After these preprocessing, the image quality is significantly improved, the interference noise is removed, the detection target features are more obvious, the model detection performance is improved, and the detection accuracy is improved by 4.71%.

[0133] Secondly, affine transformation, random cropping and super-resolution algorithms are used on the images in the pavement disease dataset to increase sample diversity, improve model performance and robustness, and increase detection accuracy by 1.16%. Among them, affine transformation changes the position, size and direction of the image, but does not change the parallelism of the image, mainly including rotation, scaling, translation and distortion; random cropping is a common data enhancement method, which helps the model learn different parts of the image and improves the generalization ability of the model by randomly cropping a sub-image of a fixed size from the image. Super-resolution is a technology used to increase image resolution. The SWIN Transformer is used to reconstruct high-resolution images from low-resolution images, improve the clarity of the image, and make the disease features easier to distinguish.

[0134] Finally, image mixing, Mosaic and other data enhancement algorithms were used on the images in the along-line facilities dataset and the pavement disease dataset to enhance the model's sensitivity to features of different scales and its anti-interference ability to complex scenes, which improved the model performance and detection accuracy by 0.97%. The image mixing algorithm (MixUp) linearly interpolates two images and their labels to generate new training samples, allowing the model to better handle the inherent changes and noise of the data during the learning process; the Mosaic data enhancement strategy generates new training samples by splicing four (or nine) images together, thereby increasing the diversity of the scene and helping the model better learn features of different scales.

[0135] Step S3023, input the defect training image set into the initial pavement defect detection model to obtain the predicted pavement type and predicted frame coordinates of the defect training image set.

[0136] Step S3024, based on the predicted road surface type and predicted frame coordinates of the disease training image set and the real road surface type and real frame coordinates, the total training loss is calculated.

[0137] Step S3025: Based on the total training loss, the initial pavement defect detection model is trained to obtain a target pavement defect detection model.

[0138] In one example, the training process of the pavement damage detection model further includes: performing pavement material classification training on the pavement damage detection model, and the specific steps are as follows:

[0139] Train a pavement material classification model to distinguish between cement pavement, asphalt pavement, and gravel pavement.

[0140] The main goal of the classification model is to predict the material type of the road surface based on the input road surface image. The method of combining a wide residual network with the adaptive sharpness perception minimization algorithm (ASAM) is used to ensure the accuracy and robustness of the classification model. The specific steps are as follows:

[0141] (1) The pavement damage grayscale images collected by the rear infrared camera are manually screened and divided into three categories: cement pavement images, asphalt pavement images, and gravel pavement images.

[0142] (2) Preprocess the classified images, including operations such as image cropping, scaling, rotation, and white balancing, to convert the original image data into a format suitable for model training;

[0143] (3) Establish a wide residual network as the basic model and add an adaptive sharpness-aware minimization algorithm to improve the model training process. The adaptive sharpness-aware minimization algorithm is a learning algorithm for deep neural networks. It is an effective generalization gap metric based on the sharpness of the loss surface. It can perform scale-free learning at different scales, thereby better adapting to data of different scales. After that, the image is passed into the model for training, and the hyperparameters are repeatedly adjusted to obtain the optimal result.

[0144] In one example, the pavement damage detection model structure is based on the YoloV8 model, and on this basis, an improved method for pavement damage detection and an optimized design of the training process are added. Figure 4 is a diagram showing a pavement damage detection model structure of a lightweight road detection method according to an embodiment of the present invention. The model structure is as follows: Figure 4 As shown in the figure, in order to improve the bounding box fitting ability of the model and improve the model training efficiency, a bounding box loss based on a dynamic non-monotonic focusing mechanism is added. The outlier degree is used instead of the intersection and union to evaluate the bounding box quality, which is expressed as follows:

[0145]

[0146]

[0147] Among them, L bbox represents the bounding box loss, L IoU represents the intersection-over-union loss, A and B represent the candidate box and the real box, x and y represent the center coordinates of the candidate box, gt and gt Represents the center coordinates of the real box, W and H are the smallest rectangles that can frame A and B, α and σ are two preset hyperparameters, the default α = 1.6, σ = 4. Represents the exponential sliding average of momentum. It is a dynamic value that combines historical gradient information with the current gradient to achieve a smoother and faster optimization process. Represents the monotonic focusing coefficient, which is used to measure the focusing effect.

[0148] In order to improve the detection performance and reduce the missed detection rate and false detection rate, the soft non-maximum suppression algorithm is used to replace the traditional non-maximum suppression. The soft non-maximum suppression adopts a soft suppression strategy. According to the calculated intersection-over-union ratio, the confidence scores of other bounding boxes with a high overlap with the currently selected bounding box are reduced. Usually, a Gaussian function or a linear function is used to reduce the score. The confidence score update process is expressed by the formula:

[0149]

[0150] Among them, the left side of the formula s i Represents the confidence score of the updated i-th candidate box. The right side of the formula is s i represents the confidence score of the i-th candidate box before the update, ε represents the standard deviation of the Gaussian function, which is used to control the shape of the function. The larger the ε value, the slower the speed of reducing the confidence score, and the smaller the ε value, the faster the speed of reducing the confidence score; b i represents the i-th candidate box, and M is the candidate boxes sorted from high to low according to the confidence score.

[0151] Since pavement diseases have various shapes and different degrees of damage, they often have unclear features, are difficult to distinguish, and have large shape differences. In order to more efficiently utilize object features, weaken the impact of background features on the results, and improve detection accuracy, deformable convolution is introduced to replace some convolution layers in the backbone network. Deformable convolution can adjust the shape and position of the convolution kernel through training to adapt to irregular target features in the input image, thereby having higher performance when processing targets with complex deformations. It can be expressed as:

[0152]

[0153] Among them, f(p i ) is the value of position i in the output feature map, x(p i +p m +Δp m ) represents the input feature map p i +p m +Δp m The value of the position, w pi Represents the convolution kernel p i The corresponding weight, R represents the receptive field corresponding to this convolution kernel, Δp m is the offset of the convolution value position, and Δδ is the modulation factor, which is used to control the weight of the influence of the position offset on the output.

[0154] In order to better detect a wide range of defects and enhance the model's noise resistance, a multi-head attention mechanism is introduced to improve detection accuracy and reduce the interference of other road debris on the model. The multi-head attention mechanism can better process the global information of the image, effectively improve the detection accuracy of targets of various scales and shapes, and help eliminate the impact of complex environments on the detection results. It can be expressed as:

[0155]

[0156] h=A(Q·W Q ,K.W K ,V.W V )

[0157] M(Q,K,V)=Concat(h i ,...,h m )·W

[0158] Among them, A represents the calculation formula of attention, Q is the query vector, which represents the area to be paid attention to in the image; K is the key vector, which represents each area in the image; V is the value vector, which represents the feature information of each area in the image; Q·K represents the similarity between Q and K, that is, the attention score. Q , W K , W V , W represents the learnable weight matrix, d k represents the dimension of the key vector, k T represents the transposed vector of K, M represents the calculation formula of multi-head attention, Concat represents the vector dimension splicing operation, h i represents the output result of the i-th attention head, and m represents the number of attention heads.

[0159] In order to improve the efficiency of the model and its detection performance in complex environments, switchable dilated convolution is added. Switchable dilated convolution can dynamically adjust the receptive field size of the convolution kernel according to the semantic information and spatial information of the input features to adapt to the context information of the image, thereby improving the model's expression and perception capabilities for multi-scale object detection, and can effectively reduce the amount of calculation and memory consumption. It is expressed as follows:

[0160] C(x,w,p)=S(x)·C(x,w,p)+(1-S(x))·C(x,w+Δw,r)

[0161] Among them, C represents the convolutional network, x represents the input feature map, S is a switchable convolution, which consists of a 5x5 average pooling layer and a 1x1 convolution layer, which is related to the input and position, Δw is a trainable weight, which defaults to 0, w is the weight of the convolution layer, p represents the hole rate of the ordinary convolution layer, which defaults to 1; r is the hole rate of the hole convolution.

[0162] Specifically, the pavement disease detection model process is as follows:

[0163] (1) Read m images X={x1, x2, ..., x m} and its corresponding category label and real box coordinate label Y = {y1, y2, ..., y m}, m represents the batch size, the default is 8. Preprocess the read image.

[0164] (2) The image data X is transmitted to the backbone network. Figure 5 is a structural diagram of a backbone network in a pavement disease detection model of a lightweight road detection method according to an embodiment of the present invention. The structure of the backbone network is as follows Figure 5 As shown in Figure 2, features f1, f2, and f3 of different scales are extracted from the image.

[0165] (3) These features are passed into the neck network Neck, Figure 6 is a structural diagram of a neck network in a pavement disease detection model of a lightweight road detection method according to an embodiment of the present invention. The structure of the neck network is as follows: Figure 6 As shown, the multi-scale fusion features η1, η2, η3 are output. The feature pyramid structure in Neck combines the high-resolution features of the shallow network with the features of the high semantic information of the deep network. The pixel aggregation network enables the low-level feature map to receive information from all high-level feature maps, helping to enhance the low-level semantic information and improve the detection accuracy of small objects.

[0166] (4) Pass the features to the head network Head, Figure 7 is a structural diagram of a head network in a pavement disease detection model of a lightweight road detection method according to an embodiment of the present invention. The structure of the head network is as follows Figure 7 As shown in the figure, the features are decoupled and passed into the classification branch and regression branch respectively, and the coordinates and categories of the predicted boxes are output.

[0167] (5) Calculate the classification loss L based on the coordinates and categories of the predicted box and the true box cls , distributed focal loss L dfl and the dynamic intersection-over-union loss L based on the dynamic focusing mechanism iou Among them, the classification loss is used to measure the gap between the predicted category and the true category, and the distributed focal loss and dynamic intersection-over-union loss are used to calculate the bounding box regression loss.

[0168] (6) Multiply the distributed focal loss, classification loss, and dynamic intersection-over-union loss by the dynamic weight w df l、w cls 、w iou, we get the total training loss L, and calculate the gradient of the model parameters by back propagation based on L. This gradient represents the direction and speed of change of the loss function under the current parameter value; then we use the stochastic gradient descent optimization function to update the model parameters. The dynamic weight is used to balance the impact of each loss on the model back propagation process. The initial w iou 7.5, w cls is 0.7, w dfl is 1.5, and the loss weight is adjusted according to the progress of training. iou 6.85, w cls is 1.0, w dfl is 1.25, which can be expressed as:

[0169] L=w cls L cls +w dfl L dfl +w iou L iou

[0170] L cls =-w n [l n logσ(s n )+(1-l n )log(1-σ(s n ))]

[0171]

[0172]

[0173]

[0174] In L iou In, L IoU represents the intersection-over-union loss, A and B represent the candidate box and the real box, x and y represent the center coordinates of the candidate box, gt and gt Represents the center coordinates of the real box, W and H are the smallest rectangles that can frame A and B, α and σ are two preset hyperparameters, the default α = 1.6, σ = 4. Represents the exponential sliding average of momentum. It is a dynamic value that combines historical gradient information with the current gradient to achieve a smoother and faster optimization process. Represents the monotonic focusing coefficient, which is used to measure the focusing effect.

[0175] In L dfl In, p t and p t+1It is the probability of the two positions closest to the label y in the predicted distribution, and β is an adjustment factor, usually 2. This loss function allows the network to focus on the values ​​near the target faster and increase their probability, thereby improving the quality and accuracy of the bounding box.

[0176] In L cls In it, σ is the sigmoid activation function, w is the weight of the nth sample, l is the true label, and s is the output of the model.

[0177] (7) Repeat steps (1) to (6) until the preset number of iterations is reached or the early stopping termination condition is met.

[0178] (8) Filter the detection frames according to the confidence level, delete the detection frames that are smaller than the confidence threshold, and then use the soft non-maximum suppression method to delete the redundant overlapping detection frames.

[0179] (9) Based on the detection boxes and the true annotations in the dataset, calculate a series of accuracy indicators, including precision, recall, and average precision, evaluate the model performance, and record the results and model hyperparameters.

[0180] (10) Adjust the hyperparameters, repeat steps (1) to (9), and compare the results multiple times until the optimal result is obtained.

[0181] In this method, by using a large number of disease images to train the pavement disease detection model, the disease results obtained by the pavement disease detection model are more accurate. By preprocessing the pavement images and combining the structural design of the pavement disease detection model, the generalization and robustness of the pavement disease detection model are further improved.

[0182] Step S303: input the road surface image to be tested into the road surface damage detection model to detect the road surface type and damage area of ​​the road surface to be tested.

[0183] Specifically, the above step S303 includes:

[0184] Step S3031, obtaining a calibration plate data set, and calculating a real-world area thermal distribution map based on the calibration plate data set.

[0185] In some optional implementations, the above step S3031 includes:

[0186] Step a1: annotate the position of the calibration plate in the calibration plate image to obtain a bounding box corresponding to the calibration plate, wherein the bounding box includes the position and size of the calibration plate in the calibration plate image.

[0187] Step a2, edge correction is performed on the bounding box, the inclination angles of the edges of the calibration plate are determined, and the relationship between the unit pixel area in the calibration image and the coordinates in the real world is calculated.

[0188] Step a3, based on the relationship between the unit pixel area in the calibration image and the coordinates in the real world, the area values ​​of all pixels in the calibration plate image are calculated to obtain the area thermal distribution map of the real world.

[0189] In one example, a calibration plate dataset is made to train an instance segmentation model to obtain a real-world area thermal distribution map, including: making a calibration plate and collecting images: The calibration plate has obvious patterns that are easy to identify in the image, such as a black and white checkerboard and staggered diagonal stripes, a total of four types. Figure 8 is a calibration plate pattern diagram according to an embodiment of the present invention, such as Figure 8 As shown in the figure, the calibration image taken by the camera is an image containing the calibration plate. Each calibration plate is 80cm×80cm in size. The pictures of the calibration plate taken from multiple different angles and positions using the rear infrared camera are collected to make a calibration plate dataset. The position of the calibration plate in the image is manually annotated using the annotation software LabelMe. The annotation result is a set of bounding boxes containing the position and size information of the calibration plate in the image. Then, Mask RCNN is selected as the basic instance segmentation model and fine-tuned according to the task. Finally, the calibration plate image is input into the model as training data for training, and the test data is used for evaluation. The output result is optimized by repeatedly adjusting the hyperparameters of the model. The real-world area heat map is calculated by combining the corner detection algorithm, camera distortion correction algorithm, edge detection algorithm and instance segmentation model. The specific implementation steps are as follows:

[0190] (1) First, the instance segmentation algorithm is used to find the location of the calibration plate. The corner points and contours found by the Harris corner detection and Canny contour detection algorithms are used for edge correction. Then, the inclination angles of each edge of the calibration plate are calculated to obtain the horizontal and vertical distances corresponding to each pixel on the edge of the calibration plate, which can be expressed as:

[0191]

[0192] w×(x2-x1)=l×cosθ

[0193] q×(y2-y1)=l×sinθ

[0194] Among them, θ represents the inclination angle of the edge of the calibration plate, l is the length of the edge of the calibration plate, here it is 80cm, (x1, y1) and (x2, y2) represent the horizontal and vertical coordinates of the two vertices of any edge of the calibration plate, and w and q represent the coordinate distribution coefficients of the current edge. Assuming that the pixel area change in the image is uniform and nonlinear, the coefficient of the unit pixel area changing with the coordinate can be calculated, which is expressed as:

[0195]

[0196]

[0197] Among them, α and β are the area distribution coefficients of any two edges on the current calibration plate, w1, w2, q1, q2 represent the coordinate distribution coefficients of the two edges respectively, cx1, cy1, cx2, cy2 represent the midpoint coordinates of the two edges, and then the area distribution coefficients of the other two edges are calculated, and the average is taken as the area distribution coefficient of the current calibration plate.

[0198] Calculate the area distribution coefficient of each of the four calibration plates, and then calculate the area distribution heat map of the calibration image. The calculation method is expressed as follows:

[0199]

[0200] M ij =max(d ij1 ,d ij2 ,d ij3 ,d ij4 ),i∈W,j∈H

[0201]

[0202]

[0203]

[0204] Among them, W and H represent the width and height of the image, i and j represent the coordinates of the pixel on the image, e represents the natural index, k represents the number of the four calibration plates, and p x and p y represents the center coordinates (x, y) of the calibration plate; ε is a preset constant greater than 1, which represents the distance penalty coefficient, meaning that the farther the distance between two pixels, the smaller the influence on each other; K represents the number of calibration plates, and w k and q k represents the coordinate distribution coefficient of the calibration plate numbered k, α and β represent the area distribution coefficient of the current calibration plate, and x ij and ij Represents the horizontal and vertical coordinates of the pixel in the i-th column and j-th row on the image; S ijIt is the estimated area of ​​the current pixel in the three-dimensional world. By using this method to calculate the area values ​​of all pixels on the image, we can get the area distribution heat map.

[0205] In this method, the bounding box is obtained by annotating the calibration image, and the bounding box is segmented, edge corrected and other operations are performed to determine the area corresponding to each pixel in the image in the real world, and then the area distribution heat map of the real world is determined, which facilitates the subsequent calculation of the diseased area of ​​the road surface to be tested in the real world.

[0206] Step S3022, based on the area thermal distribution map and in combination with the defect coordinates, calculate the defect area of ​​the road surface to be tested.

[0207] In one example, for any defect area detected on the road surface image to be tested, the defect area of ​​the road surface to be tested is calculated by calculating the integral of the defect area on the area distribution heat map.

[0208] In this way, by setting calibration images and establishing an area distance measurement system, the area and length of pavement defects can be detected more accurately, thereby improving the accuracy of pavement defect detection.

[0209] Step S304: Collect acceleration data and sensor attitude data of the vehicle passing through the road to be tested. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0210] Step S305: Based on the acceleration data, the sensor attitude data, the road type and the damaged area of ​​the road to be tested, the road technical condition test result of the road to be tested is calculated. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.

[0211] The highway detection method provided in this embodiment uses a large number of disease images to train the road surface disease detection model. The disease results detected by the road surface disease detection model are more accurate. By preprocessing the road surface image and combining the structural design of the road surface disease detection model, the generalization and robustness of the road surface disease detection model are further improved. By setting a calibration image and establishing an area distance measurement system, the area and length of road surface diseases can be detected more accurately, and the accuracy of road surface disease detection can be improved. By annotating the calibration image to obtain a bounding box, performing segmentation, edge correction and other operations on the bounding box, the area corresponding to each pixel in the image and the real world is determined, and then the area distribution heat map of the real world is determined, which is convenient for subsequent calculation to obtain the disease area of ​​the road surface to be tested in the real world.

[0212] In this embodiment, a road detection method is provided, which can be used in the above-mentioned terminals, such as mobile phones, tablet computers, etc. Fig. 9is a flow chart of another highway detection method according to an embodiment of the present invention. Fig. 9 As shown, the process includes the following steps:

[0213] Step S901, obtain the road surface image to be tested. Figure 3 Step S301 of the illustrated embodiment will not be described in detail here.

[0214] Step S902: Construct a road surface disease detection model. Figure 3 Step S302 of the illustrated embodiment will not be described in detail here.

[0215] Step S903: Input the road surface image to be tested into the road surface damage detection model to detect the road surface type and damage area of ​​the road surface to be tested. Figure 3 Step S303 of the illustrated embodiment will not be described in detail here.

[0216] Step S904: Collect acceleration data and sensor attitude data of the vehicle passing through the road to be tested. Figure 3 Step S304 of the illustrated embodiment will not be described in detail here.

[0217] Step S905, based on the acceleration data, the sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested, the highway technical condition detection result of the road surface to be tested is calculated.

[0218] Specifically, after the above step S905, the highway detection method further includes:

[0219] Step S906: construct a detection model of facilities along the route.

[0220] Specifically, the above step S906 includes:

[0221] Step S9061, obtaining a dataset of images of facilities along the route.

[0222] Step S9062, preprocessing and data enhancement are performed on the images of facilities along the line to obtain a training image set of facilities along the line.

[0223] Step S9063: input the line facility training image set into the initial line facility detection model to obtain the prediction box category and prediction box coordinates of the line facility training image set.

[0224] Step S9064, based on the predicted box category and predicted box coordinates of the training image set of the facilities along the line and the true category and true box coordinates, the total loss of the training of the facilities along the line is calculated.

[0225] Step S9065: Based on the total training loss of the facilities along the line, the initial facility along the line detection model is trained to obtain the target facility along the line detection model.

[0226] In one example, a facility detection model for detecting facilities along roads is constructed, and the model is trained using a facility dataset. The hyperparameters of the facility detection model are adjusted for multiple trainings, and the accuracy, recall, and average precision values ​​are compared to save the optimal facility detection model. Since the environment along the road has many interfering objects, complex and diverse environments, large differences in target scales, and diverse features, it is necessary to adjust the structure and hyperparameters of the facility detection model. The adjustment method includes: randomly scaling the input image, increasing the target confidence threshold, and adding dynamic region-aware convolution. The dynamic region-aware network is a model that can dynamically adjust regional characteristics. It is suitable for processing complex and variable spatial information distributions, and has good effects for scenes with a large number of interfering objects. It contains two modules: a learnable guided mask module and a filter generation module. The guided mask module generates a multi-channel feature map through a convolution layer, each channel corresponds to a region, and then obtains which region each position belongs to by finding the maximum value index. The filter generation module generates a multi-channel feature map through two convolutional layers, each channel corresponds to a filter, and then assigns different filters to different areas for convolution operations according to the guidance mask.

[0227] Specifically, the operation process of the roadside facility detection model for detecting roadside facilities is as follows:

[0228] (1) Read m images and their corresponding labels from the line facility dataset.

[0229] (2) The image data is passed into the backbone network to extract features f1, f2, and f3 of different scales in the image.

[0230] (3) Features of different scales are passed into the neck network Neck, and multi-scale fusion features η1, η2, η3 are output.

[0231] (4) The fused features are passed into the head network Head, the features are decoupled, and the coordinates and categories of the predicted boxes are output.

[0232] (5) According to the coordinates and categories of the predicted box and the true box, the classification loss, distributed focal loss and complete intersection-over-union loss are calculated, where the distributed focal loss and complete intersection-over-union loss are used to calculate the bounding box regression loss.

[0233] (6) The distributed focal loss, classification loss, and dynamic intersection-over-union loss are multiplied by the dynamic weight to obtain the total training loss. The gradient of the model parameters is calculated by backpropagation, and the parameters of the model are updated using the stochastic gradient descent optimization function.

[0234] (7) Repeat steps (1) to (6) until the preset number of iterations is reached or the early stopping termination condition is met.

[0235] (8) Evaluate model quality, including accuracy, recall, and mean average precision, assess model performance, and record the results and model hyperparameters.

[0236] (9) Adjust the hyperparameters, repeat steps (1) to (8), and compare the results multiple times until the optimal line facility model is obtained.

[0237] In this method, a large number of line facility images are used to train the line facility detection model, and the line facility detection results obtained by the line facility detection model are more accurate. By preprocessing the line facility images and combining the structural design of the line facility detection model, the generalization and robustness of the line facility detection model are further improved.

[0238] Step S907: input the road surface image into the line-facility detection model to detect the line-facility in the road surface image.

[0239] Step S908: Determine the location information of road surface damage based on the facilities along the road surface in the road surface image.

[0240] In one example, the road surface image is input into the roadside facility detection model trained in the above steps, so that the roadside facilities existing in the initial road surface image can be identified, and then the position of the road surface image can be determined, and the location information of the defects in the road surface image can be further determined.

[0241] In this way, by constructing a detection model for facilities along the road, the facilities along the road to be tested can be automatically identified, reducing the interference of human factors and improving the accuracy of the detection of facilities along the road. By determining the location information of road surface diseases, it is convenient to accurately maintain the diseases of the road to be tested in the future.

[0242] The highway detection method provided in this embodiment can automatically identify the facilities along the road surface to be tested by constructing a detection model for facilities along the road surface, thereby reducing the interference of human factors and improving the accuracy of the detection of facilities along the road surface. By determining the location information of road surface diseases, it is convenient to accurately maintain the diseases of the road surface to be tested in the future. By using a large number of images of facilities along the road surface to train the detection model for facilities along the road surface, the results of facilities along the road surface detected by the detection model for facilities along the road surface are more accurate. By preprocessing the images of facilities along the road surface and combining the structural design of the detection model for facilities along the road surface, the generalization and robustness of the detection model for facilities along the road surface are further improved.

[0243] In this embodiment, a road detection method is provided, which can be used in the above-mentioned terminals, such as mobile phones, tablet computers, etc. Fig.10 FIG. 1 is a flow chart of another road detection method according to an embodiment of the present invention. Fig.10 As shown, the process includes the following steps:

[0244] Step S1001, obtain the road surface image to be tested. Fig. 9 Step S901 of the illustrated embodiment will not be described in detail here.

[0245] Step S1002: construct a road surface disease detection model. Fig. 9 Step S902 of the illustrated embodiment will not be described in detail here.

[0246] Step S1003: Input the road surface image to be tested into the road surface damage detection model to detect the road surface type and damage area of ​​the road surface to be tested. Fig. 9 Step S903 of the illustrated embodiment will not be described in detail here.

[0247] Step S1004: Collect acceleration data and sensor attitude data of the vehicle passing through the road to be tested. Fig. 9 Step S904 of the illustrated embodiment will not be described in detail here.

[0248] Step S1005, based on the acceleration data, the sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested, the highway technical condition detection result of the road surface to be tested is calculated.

[0249] Specifically, the above step S1005 includes:

[0250] Step S10051, based on the acceleration data and the sensor attitude information, calculate the road surface roughness index of the road surface to be tested.

[0251] Step S10052: Calculate the road quality index of the road to be tested based on the road surface roughness index.

[0252] Step S10053, based on the road surface type and the damaged area of ​​the road surface to be tested, calculate the road surface damage condition index of the road surface to be tested.

[0253] Step S10054, based on the road driving quality index and the road damage condition index, calculate and obtain the highway technical condition detection result of the road surface to be tested.

[0254] In one example, the road roughness index IRI and the road ride quality index RQI are calculated based on the data collected by the nine-axis sensor. The nine-axis sensor is composed of a three-axis acceleration sensor, a three-axis gyroscope, and a three-axis geomagnetic sensor. This method requires the use of three-axis acceleration data and sensor attitude information. The specific measurement method is: fix the nine-axis sensor in the inspection vehicle for initial state calibration, measure the initial value of gravity on the sensor, and record it; measure no less than three sections of roads with each section no less than thirty meters using the three-meter ruler method, and calculate the roughness index of each road Then, the detection vehicle passes through this road section at a constant speed and records the nine-axis values ​​of the sensor; finally, the vertical acceleration is calculated, and the relationship between the vertical acceleration data and the flatness index is established, which is expressed by the formula:

[0255] a=0+a x i+a y j+a z k

[0256]

[0257] A=u x i+u y j+u z k

[0258]

[0259]

[0260]

[0261]

[0262] Among them, a x , a y , a z Represents the lateral, longitudinal, and vertical accelerations measured by the nine-axis sensor detected by the sensor. a is the quaternion representation of the three-axis acceleration, and g is the quaternion representation of gravity. represents the conjugate matrix of q, u x ,u y ,u z represents the unit vectors in three directions, A represents the unit vector representation of the rotation axis, θ is the rotation angle of the sensor relative to the initial horizontal state, and i, j, and k represent imaginary units. Specifically, the relationship between i, j, and k is shown in the following formula:

[0263] i 2 =j 2 =k 2 =-1

[0264] ij=-ji=k

[0265] jk=-kj=i

[0266] ik=-ki=j

[0267] Finally, we get a' and g', which are the acceleration quaternion and gravity quaternion after rotation. We take the imaginary coefficient a of k for each of them. k and g k , so that the two are subtracted h =ak -g k Get the final vertical acceleration a h All vertical accelerations are filtered using a trapezoidal window function combined with a high-pass filter to eliminate low-frequency white noise and noise (such as body vibration after vehicle startup, sensor errors, environmental impact, etc.), retain the acceleration information caused by uneven road surface, and calculate the road surface roughness index IRI and road surface ride quality index RQI, as shown in the following formula:

[0268]

[0269]

[0270]

[0271] Where, f is the sampling frequency of the sensor, the default is 100Hz, a m is the mth acceleration data of the sensor, M is all the acceleration data collected by the sensor, S is the driving distance in km; establish the calibration flatness α IRI And manual flatness inspection The relationship between ω and β is a set of approximate solutions to the relationship between the two, which eliminates the influence of the automobile shock absorption performance on the flatness measurement.

[0272] The process of calculating the road technical condition test result of the road to be tested may include: calculating the facility condition index TCI along the road according to the test result of the facilities along the road, calculating the road surface driving quality index RQI according to the nine-axis sensor, calculating the road surface technical condition index PQI according to the road surface damage condition index PCI and the road surface driving quality index RQI, and then combining the roadbed technical condition index SCI and the bridge and tunnel structure technical condition index BCI manually assessed, and finally obtaining the low-grade rural road technical condition index MQI, the steps include:

[0273] (1) The road ride quality index is calculated based on the road roughness index. The calculation formula is as follows:

[0274]

[0275] Among them, IRI is the road surface roughness index, the unit is m / km; b0 is a coefficient, which depends on the road surface technical grade and road surface material. The coefficient used for expressways and first-class highways is 0.026, the coefficient used for second-class highways is 0.0185, the coefficient used for asphalt pavement of low-grade rural roads is 0.0167, and the coefficient used for cement concrete pavement is 0.0146; b1 is a coefficient, which depends on the road surface technical grade and road surface material. The coefficient used for expressways and first-class highways is 0.65, the coefficient used for second-class highways is 0.58, the coefficient used for asphalt pavement of low-grade rural roads is 0.56, and the coefficient used for cement concrete pavement is 0.52.

[0276] (2) Calculate the pavement damage index PCI based on the pavement damage rate. The calculation formula is as follows:

[0277]

[0278]

[0279] Among them, a0 is a calculation coefficient. For expressways, first-class and second-class roads: asphalt pavement uses 15.00, cement concrete pavement uses 10.66; for third-class and below rural roads: asphalt pavement uses 14.03, cement concrete pavement uses 10.91, and gravel pavement uses 10.10; a1 is a calculation coefficient. For expressways, first-class and second-class roads, asphalt pavement uses 0.412, cement concrete pavement uses 0.461, for third-class and below rural roads, asphalt pavement uses 0.37, cement concrete pavement uses 0.392; i represents the road damage type; i0 represents the total number of damage types. For first-class and second-class roads, asphalt pavement takes 21, cement concrete pavement takes 20, for third-class and below rural roads, asphalt pavement takes 4, cement concrete pavement takes 5; A i represents the cumulative area of ​​road damage of type i (m 2 );

[0280] A represents the road surface inspection or investigation area (m 2 );ω i It represents the weight of the i-th type of pavement damage, which is determined by the pavement technical grade and material.

[0281] (3) The pavement technical condition index is calculated by combining the pavement damage condition index and the pavement ride quality index. The formula is as follows:

[0282] PQI=w PCI PCI+w RQI RQI

[0283] Table 1 shows the relationship between road surface types and corresponding weights.

[0284] Table 1

[0285]

[0286] (4) The technical condition index of facilities along the line is calculated based on the images of facilities along the line collected by the inspection vehicle. The formula is as follows:

[0287]

[0288] Among them, GD i represents the total penalty points for the damage of type i facilities, with a maximum score of 100; wi represents the weight of the damage to the i-th type of facility; Fig.11 is a schematic diagram of the deduction standard for facilities along the road according to the lightweight road detection method according to an embodiment of the present invention. Fig.11 The specific value of the weight of the i-th type of facility damage is shown in Fig.11 .

[0289] (5) The technical condition index of low-grade rural roads is obtained based on the technical condition index of the roadbed and bridge and tunnel structures measured manually, the technical condition index of the facilities along the route measured manually with the assistance of the lightweight platform, and the technical condition index of the pavement generated by the lightweight detection platform. The formula is:

[0290] MQI=w SCI SCI+w PQI PQI+w BCI BCI+w TCI TCI

[0291] Among them, w SCI is the weight of SCI in MQI, which is 0.08; w PQI is the weight of PQI in MQI, which is 0.60; BCI is the weight of BCI in MQI, which is 0.20; w TCI is the weight of TCI in MQI, and its value is 0.12.

[0292] In this method, information is collected by sensors to detect road driving quality, and the highway technical condition test results of the road to be tested are calculated, realizing lightweight and automated road roughness detection, which is easy to carry and deploy, greatly saving manpower and material resources and improving work efficiency.

[0293] Specifically, after the above step S1005, the highway detection method further includes:

[0294] Step S1006, based on the highway technical condition detection result of the road surface to be tested, the road surface to be tested is evaluated for quality, and a maintenance plan for the road surface to be tested is determined.

[0295] In one example, by analyzing known pavement condition information, pavement quality evaluation and maintenance recommendations are given, as well as predictions of future maintenance trends. First, the pavement condition information is analyzed using a pavement disease detection model to obtain the pavement ride quality index (RQI), pavement damage condition index (PCI), and pavement technical condition index (PQI). Then, system rules for pavement quality evaluation, maintenance recommendations, and future maintenance trends are set, and system hyperparameters are set, such as temperature, recurrence penalty, and frequency penalty. Finally, the GPT interface is called to pass in the rules, hyperparameters, and pavement condition information, and the natural language large model gives pavement quality evaluation, maintenance decisions, and maintenance planning.

[0296] Specifically, a road evaluation expert system is designed. This system calls the GPT4 natural language large model interface, customizes system rules and adjusts hyperparameters according to various road evaluation indicators, and generates road quality evaluation, road maintenance suggestions and future maintenance plans. The specific method is: through the main road index data of the past five years, such as the road rutting depth index RDI, the road damage condition index PCI, the road ride quality index RQI, the road structure strength index PSSI and the roadbed technical condition index SCI, combined with various road disease information, evaluate the current road driving quality, safety and structural integrity, and then determine the maintenance plan, such as daily maintenance, functional repair or structural repair, and finally pass these indicators and evaluations to the interface to estimate the maintenance plan and maintenance funds for the next three to five years.

[0297] In this way, by conducting an overall technical condition assessment based on the test results, users can be provided with more comprehensive road condition information, and more targeted suggestions can be given for future maintenance methods and maintenance plans, facilitating timely and accurate road maintenance.

[0298] The highway detection method provided in this embodiment collects information through sensors to detect the road driving quality, calculates the highway technical condition detection results of the road to be tested, realizes lightweight and automated road flatness detection, is easy to carry and deploy, greatly saves manpower and material resources, and improves work efficiency. By evaluating the overall technical condition based on the detection results, more comprehensive road condition information can be provided to users, and more targeted suggestions can be given for future maintenance methods and maintenance plans, so as to facilitate timely and accurate road maintenance.

[0299] In this embodiment, a highway detection device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0300] This embodiment provides a road detection device, such as Fig.12 As shown, including:

[0301] The image acquisition module 1201 is used to acquire the image of the road surface to be tested. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0302] The model building module 1202 is used to build a road surface disease detection model. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0303] The disease detection module 1203 is used to input the road surface image to be tested into the road surface disease detection model to detect the road surface type and disease area of ​​the road surface to be tested. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0304] The sensor data acquisition module 1204 is used to collect acceleration data and sensor attitude data of the vehicle passing through the road to be tested. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0305] The technical condition calculation module 1205 is used to calculate the highway technical condition detection result of the road surface to be tested based on the acceleration data, the sensor attitude data, the road surface type and the disease area of ​​the road surface to be tested. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.

[0306] In some optional implementations, the model building module 1202 includes:

[0307] The first image data set acquisition unit is used to acquire a road surface image data set, wherein the road surface image data set includes: a road surface image with defects, a real road surface type corresponding to the road surface image, and real frame coordinates of the defect position on the road surface image.

[0308] The first data pre-training unit is used to pre-process and enhance the road surface image to obtain a disease training image set.

[0309] The prediction result unit is used to input the disease training image set into the initial pavement disease detection model to obtain the predicted pavement type and prediction frame coordinates of the disease training image set.

[0310] The first loss calculation unit is used to calculate the total training loss based on the predicted road surface type and predicted frame coordinates of the disease training image set and the real road surface type and real frame coordinates.

[0311] The disease model training unit is used to train the initial pavement disease detection model based on the total training loss to obtain the target pavement disease detection model.

[0312] In some optional implementations, the disease detection module 1203 includes:

[0313] The image input unit is used to input the road surface image to be tested into the target road surface disease detection model to obtain the road surface type and disease coordinates of the road surface to be tested.

[0314] The thermal distribution map calculation unit is used to obtain a calibration plate data set, and based on the calibration plate data set, calculate the area thermal distribution map of the real world. The calibration plate data set includes: calibration plate images containing the calibration plate collected at different angles and positions.

[0315] The defect area calculation unit is used to calculate the defect area of ​​the road surface to be tested based on the area thermal distribution map and the defect coordinates.

[0316] In some optional embodiments, the thermal distribution map calculation unit includes:

[0317] The bounding box annotation subunit is used to annotate the position of the calibration plate in the calibration plate image to obtain a bounding box corresponding to the calibration plate, where the bounding box includes the position and size of the calibration plate in the calibration plate image.

[0318] The relationship calculation subunit is used to perform edge correction on the bounding box, determine the inclination angle of each edge of the calibration plate, and calculate the relationship between the unit pixel area in the calibration image and the coordinates in the real world.

[0319] The thermal distribution map calculation subunit is used to calculate the area values ​​of all pixels in the calibration plate image based on the relationship between the unit pixel area in the calibration image and the coordinates in the real world, so as to obtain the area thermal distribution map of the real world.

[0320] In some optional implementations, the technical status calculation module 1205 includes:

[0321] The smoothness calculation unit is used to calculate the road surface smoothness index of the road surface to be tested based on the acceleration data and the sensor attitude information.

[0322] The ride quality calculation unit is used to calculate the road ride quality index of the road to be tested based on the road surface roughness index.

[0323] The pavement damage condition calculation unit is used to calculate the pavement damage condition index of the pavement to be tested based on the pavement type and the damaged area of ​​the pavement to be tested.

[0324] The technical condition calculation unit is used to calculate the highway technical condition detection result of the road surface to be tested based on the road surface driving quality index and the road surface damage condition index.

[0325] In some optional implementations, the road detection device further includes:

[0326] The line facility detection model building unit is used to build the line facility detection model.

[0327] The line facility detection unit is used to input the road surface image into the line facility detection model to detect the line facilities in the road surface image.

[0328] The defect location determination unit is used to determine the location information of road surface defects based on the facilities along the road surface in the road surface image.

[0329] In some optional implementations, the line facility detection model building unit includes:

[0330] The second image data set acquisition subunit is used to acquire a line-facility image data set, which includes line-facility images, real categories corresponding to the line-facility images, and real frame coordinates.

[0331] The second data pre-training sub-unit is used to pre-process and data enhance the images of the facilities along the line to obtain a training image set of the facilities along the line.

[0332] The second prediction result subunit is used to input the along-line facility training image set into the initial along-line facility detection model to obtain the prediction box category and prediction box coordinates of the along-line facility training image set.

[0333] The second loss calculation subunit is used to calculate the total loss of the along-line facility training based on the predicted box category and predicted box coordinates of the along-line facility training image set and the true category and true box coordinates.

[0334] The line facility model training subunit is used to train the initial line facility detection model based on the total loss of line facility training to obtain the target line facility detection model.

[0335] In some optional implementations, the road detection device further includes:

[0336] The maintenance plan determination unit is used to perform a quality assessment on the road surface to be tested and determine a maintenance plan for the road surface to be tested based on the highway technical condition detection result of the road surface to be tested.

[0337] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0338] The highway detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0339] The embodiment of the present invention also provides a computer device having the above Fig.12 The highway detection device shown.

[0340] See also Fig.13 , Fig.13 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.13 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.13 A processor 10 is taken as an example.

[0341] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0342] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0343] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0344] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0345] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0346] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0347] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A highway detection method, characterized in that: The method comprises: Acquire a road surface image to be tested, wherein the road surface image to be tested includes a color image of facilities along the road collected by a front camera and a grayscale image of road surface damage collected by a rear infrared camera; Construct a pavement disease detection model; Inputting the road surface image to be tested into the road surface disease detection model to detect and obtain the road surface type and disease area of ​​the road surface to be tested, including: inputting the road surface image to be tested into the target road surface disease detection model to obtain the road surface type and disease coordinates of the road surface to be tested; Acquire a calibration plate data set, and calculate a real-world area thermal distribution map based on the calibration plate data set, wherein the calibration plate data set includes: calibration plate images containing calibration plates collected at different angles and positions, including: marking the position of the calibration plate in the calibration plate image to obtain a bounding box corresponding to the calibration plate, wherein the bounding box includes the position and size of the calibration plate in the calibration plate image; performing edge correction on the bounding box to determine the inclination angle of each edge of the calibration plate, and calculating the relationship between the unit pixel area in the calibration plate image and the coordinates in the real world; based on the relationship between the unit pixel area in the calibration plate image and the coordinates in the real world, calculate the area values ​​of all pixels in the calibration plate image, select Mask RCNN as an instance segmentation model, input the calibration plate image as training data into the model for training, and calculate the real-world area thermal distribution map by combining the corner detection algorithm, the camera distortion correction algorithm, the edge detection algorithm and the instance segmentation model to obtain the real-world area thermal distribution map; Based on the area thermal distribution map and in combination with the defect coordinates, the integral of the defect area on the area distribution thermal distribution map is calculated to obtain the defect area of ​​the road surface to be tested; Collecting acceleration data and sensor posture data of the vehicle passing through the road to be tested; Based on the acceleration data, the sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested, the highway technical condition detection result of the road surface to be tested is calculated, including: calculating the condition index of the facilities along the road according to the detection results of the facilities along the road, calculating the road surface driving quality index according to the nine-axis sensor, calculating the road surface technical condition index according to the road surface damage condition index and the road surface driving quality index, and combining the roadbed technical condition index and the bridge and tunnel structure technical condition index to obtain the highway technical condition detection result; Constructing a line facility detection model; inputting the line facility color image into the line facility detection model to detect the line facilities in the road surface image; and determining the location information of the road surface disease based on the line facilities in the line facility color image.

2. The method according to claim 1, characterized in that The construction of the pavement damage detection model includes: Acquire a road surface image data set, the road surface image data set comprising: a road surface image with a defect, a real road surface type corresponding to the road surface image, and a real frame coordinate of a defect position on the road surface image; Preprocessing and data enhancement are performed on the pavement image to obtain a disease training image set; Inputting the disease training image set into an initial pavement disease detection model to obtain a predicted pavement type and a predicted frame coordinate of the disease training image set; Based on the predicted road surface type and predicted frame coordinates of the disease training image set and the real road surface type and real frame coordinates, a total training loss is calculated; Based on the total training loss, the initial pavement damage detection model is trained to obtain the target pavement damage detection model.

3. The method according to claim 1, characterized in that The method of calculating the highway technical condition detection result of the road surface to be tested based on the acceleration data, the sensor attitude data, the road surface type and the damaged area of ​​the road surface to be tested comprises: Calculating the road surface roughness index of the road surface to be tested based on the acceleration data and the sensor attitude information; Based on the road surface roughness index, a road surface ride quality index of the road surface to be tested is calculated; Calculating a road surface damage index of the road surface to be tested based on the road surface type and the damaged area of ​​the road surface to be tested; Based on the road ride quality index and the road damage condition index, a highway technical condition detection result of the road to be tested is calculated.

4. The method according to claim 3, characterized in that The construction of the facility detection model along the route includes: Acquire a data set of line facility images, wherein the data set includes line facility images, real categories and real frame coordinates corresponding to the line facility images; Preprocessing and data enhancement are performed on the images of the facilities along the line to obtain a training image set of facilities along the line; Inputting the line-facility training image set into the initial line-facility detection model to obtain the prediction box category and prediction box coordinates of the line-facility training image set; Based on the predicted box categories and predicted box coordinates of the training image set of the facilities along the line and the true categories and true box coordinates, the total training loss of the facilities along the line is calculated; Based on the total loss of the line-line facility training, the initial line-line facility detection model is trained to obtain a target line-line facility detection model.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Based on the highway technical condition detection result of the road surface to be tested, the quality of the road surface to be tested is evaluated, and a maintenance plan for the road surface to be tested is determined.

6. A highway detection device, characterized in that: The device comprises: An image acquisition module is used to acquire a road surface image to be tested, wherein the road surface image to be tested includes a color image of facilities along the road collected by a front camera and a grayscale image of road surface damage collected by a rear infrared camera; Model building module, used to build a pavement disease detection model; A disease detection module is used to input the road surface image to be tested into the road surface disease detection model to detect and obtain the road surface type and disease area of ​​the road surface to be tested, including: inputting the road surface image to be tested into the target road surface disease detection model to obtain the road surface type and disease coordinates of the road surface to be tested; Acquire a calibration plate data set, and calculate a real-world area thermal distribution map based on the calibration plate data set, wherein the calibration plate data set includes: calibration plate images containing calibration plates collected at different angles and positions, including: marking the position of the calibration plate in the calibration plate image to obtain a bounding box corresponding to the calibration plate, wherein the bounding box includes the position and size of the calibration plate in the calibration plate image; performing edge correction on the bounding box to determine the inclination angle of each edge of the calibration plate, and calculating the relationship between the unit pixel area in the calibration plate image and the coordinates in the real world; based on the relationship between the unit pixel area in the calibration plate image and the coordinates in the real world, calculate the area values ​​of all pixels in the calibration plate image, select Mask RCNN as an instance segmentation model, input the calibration plate image as training data into the model for training, and calculate the real-world area thermal distribution map by combining the corner detection algorithm, the camera distortion correction algorithm, the edge detection algorithm and the instance segmentation model to obtain the real-world area thermal distribution map; Based on the area thermal distribution map and in combination with the defect coordinates, the integral of the defect area on the area distribution thermal distribution map is calculated to obtain the defect area of ​​the road surface to be tested; A sensor data acquisition module, used to collect acceleration data and sensor posture data of the vehicle passing through the road to be tested; A technical condition calculation module is used to calculate the highway technical condition detection result of the road to be tested based on the acceleration data, the sensor attitude data, the road surface type and the disease area of ​​the road to be tested, including: calculating the condition index of the facilities along the road according to the detection results of the facilities along the road, calculating the road surface driving quality index according to the nine-axis sensor, calculating the road surface technical condition index according to the road surface damage condition index and the road surface driving quality index, and combining the roadbed technical condition index and the bridge and tunnel structure technical condition index to obtain the highway technical condition detection result; The highway detection device is also used to construct a line-facility detection model; input the line-facility color image into the line-facility detection model to detect the line-facility in the line-facility color image; and determine the location information of the road surface disease based on the line-facility in the road surface image.

7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the highway detection method according to any one of claims 1 to 5 by executing the computer instructions.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the highway detection method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • System and method for automatically identifying cement pavement diseases based on digital images

    CN111784657A

  • Road disease detection and classification method based on lightweight vehicle-mounted terminal

    CN111985494A

  • Road surface damage rapid detection and natural data set construction method

    CN112800911A

  • Pavement disease automatic detection method and system based on deep learning

    CN113609911A

  • Integrated intelligent detection system for highway appearance and internal diseases

    CN114164736A