Driving control boundary detection method, device, equipment and medium

By constructing a lightweight neural network model and introducing an attention mechanism, combined with a preset loss function, the problem of insufficient detection results of traditional lane detection methods in complex lighting and curved scenes is solved, and real-time and accurate driving control boundary detection is achieved. , improving detection efficiency and accuracy.

CN118658136APending Publication Date: 2024-09-17SHANGHAI TONGQUN YIXIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410803973.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Traditional lane detection methods have limited detection effects on driving control boundaries in complex lighting and curved scenes, cannot extract shape features well, and have poor fitting effects, making it difficult to achieve real-time and accurate driving control boundary detection.

Method used

Construct a lightweight neural network model and introduce an attention mechanism. By performing feature extraction, enhancement, pooling, convolution, activation and normalization on the input training set, the model is trained with the preset loss function. , realizing real-time detection of driving control boundaries.

Benefits of technology

It improves the ability of the neural network model to extract important features of the target, enhances the accuracy and robustness of detection, can detect the driving control boundary in real time and accurately, and describes the relative position of the driving control boundary and the car, improving detection efficiency, reaching an accuracy of 95.85%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658136A
    Figure CN118658136A
Patent Text Reader

Abstract

The invention relates to a driving control boundary detection method and device, equipment and a medium. The method comprises the following steps: constructing a driving control boundary detection model; then obtaining a training set, and preprocessing the training set to obtain a first training set; based on a preset loss function, training the driving control boundary detection model through the first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model performs feature extraction on an input first training set to obtain initial features; processing the initial feature based on an attention mechanism to obtain an enhanced first feature; performing pooling, convolution, activation and normalization processing on the first feature in sequence to obtain a driving control boundary reasoning graph; and finally performing real-time detection on the driving control boundary through the trained driving control boundary detection model. According to the invention, the driving control boundary can be accurately detected in real time, so that the sanitation vehicle can better run along the edge.
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 driving control boundary detection method, device, equipment and medium. Background Art

[0002] In sanitation work, the detection accuracy of driving control boundaries can help improve the efficiency and safety of sanitation vehicles. Sanitation vehicles capture images of the current driving area through cameras installed on the vehicle, and use digital image processing technology to identify and locate lane lines, thereby accurately controlling the vehicle's driving position on the road. This technology can ensure that sanitation vehicles can accurately drive along the lane when cleaning streets and avoid deviating from the route. It can also provide data support for driving route planning and safety warnings to ensure the efficiency and safety of sanitation operations.

[0003] Traditional lane detection methods mainly include preprocessing methods based on filtering and color model conversion, methods based on edge detection and tracking, and methods based on Hough transform.

[0004] Preprocessing methods based on filtering and color model conversion usually first use Gaussian filtering, median filtering, etc. to denoise the image, and then use color models such as HSI to improve the distinguishability of the curb, but this method is sensitive to lighting changes.

[0005] The method based on edge detection and tracking uses operators such as Canny and Sobel to extract edge features, and cooperates with Kalman filtering or Particle Filter to track the detected road edge to achieve occlusion processing, but the actual fitting effect is poor.

[0006] The Hough transform-based method uses Hough transform to extract the straight line segment corresponding to the local maximum value on the basis of Canny edge detection, and connects them to obtain the road edge. It has a good effect on discontinuous road edges, but the computational complexity is high.

[0007] It can be seen that the above image processing method has limited effect on curb detection in complex lighting and curved scenes, cannot extract shape features well, and the fitting effect is also poor. Summary of the invention

[0008] Based on this, it is necessary to provide a driving control boundary detection method, device, equipment and medium that can detect the driving control boundary in real time and accurately, and describe the relative position of the driving control boundary and the sanitation vehicle, so that the sanitation vehicle can better drive along the edge.

[0009] A driving control boundary detection method, the method comprising:

[0010] Construct a driving control boundary detection model;

[0011] Obtaining a training set, and preprocessing the training set to obtain a first training set;

[0012] Based on a preset loss function, the driving control boundary detection model is trained through a first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on an attention mechanism to obtain an enhanced first feature; the first features are sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph;

[0013] The driving control boundary is detected in real time through the trained driving control boundary detection model.

[0014] A driving control boundary detection device, the device comprising:

[0015] A model building module, used to build a driving control boundary detection model;

[0016] A data processing module, used for obtaining a training set, and preprocessing the training set to obtain a first training set;

[0017] A model training module is used to train the driving control boundary detection model through a first training set based on a preset loss function to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on an attention mechanism to obtain an enhanced first feature; the first features are sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph;

[0018] The real-time detection module is used to perform real-time detection of the driving control boundary through the trained driving control boundary detection model.

[0019] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0020] Step 202, constructing a driving control boundary detection model;

[0021] Step 204, obtaining a training set, and preprocessing the training set to obtain a first training set;

[0022] Step 206: Based on a preset loss function, the driving control boundary detection model is trained by using a first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on an attention mechanism to obtain an enhanced first feature; the first features are sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph;

[0023] Step 208: Perform real-time detection of the driving control boundary using the trained driving control boundary detection model.

[0024] A computer-readable storage medium stores a computer program, which implements the following steps when executed by a processor.

[0025] Step 202, constructing a driving control boundary detection model;

[0026] Step 204, obtaining a training set, and preprocessing the training set to obtain a first training set;

[0027] Step 206: Based on a preset loss function, the driving control boundary detection model is trained by using a first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on an attention mechanism to obtain an enhanced first feature; the first features are sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph;

[0028] Step 208: Perform real-time detection of the driving control boundary using the trained driving control boundary detection model.

[0029] The above-mentioned driving control boundary detection method, device, equipment and medium, the method includes: constructing a driving control boundary detection model; then obtaining a training set, preprocessing the training set to obtain a first training set; based on a pre-set loss function, the driving control boundary detection model is trained through the first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and the initial feature is obtained by extracting features from the input first training set; the initial feature is processed based on the attention mechanism to obtain an enhanced first feature; the first feature is sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph; finally, the driving control boundary is detected in real time through the trained driving control boundary detection model.

[0030] The driving control boundary detection method provided by the present invention can efficiently realize local cross-channel interaction by constructing a lightweight driving control boundary detection model and adding an attention mechanism, thereby improving the ability of the neural network model to extract important features of the target; at the same time, the model is trained based on a preset loss function, which can improve the accuracy of the model in identifying the driving control boundary, and has strong robustness and accuracy, so that the driving control boundary can be detected in real time and accurately, and the relative position of the driving control boundary and the vehicle can be described, so that the sanitation vehicle can better drive along the edge. The method provided by the present invention has an optimal accuracy of 95.85% on three channels, which greatly improves the detection efficiency compared with the traditional method. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a flow chart of a driving control boundary detection method in one embodiment;

[0032] Figure 2 A schematic diagram of the structure of a driving control boundary detection model in one embodiment;

[0033] Figure 3 is a structural block diagram of a driving control boundary detection device in one embodiment;

[0034] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment.

[0035] Explanation of the reference numerals: initial convolution layer 1, attention layer 2, maximum pooling layer 3, sequence network layer 4. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0037] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0038] In one embodiment, Figure 1 As shown, a road boundary detection model method is provided, comprising the following steps:

[0039] Step 202: construct a driving control boundary detection model.

[0040] Specifically, see Figure 2 The driving control boundary detection model constructed is a lightweight neural network model, including an initial convolution layer 1, an attention layer 2, a maximum pooling layer 3, a sequence network layer 4, etc.

[0041] Among them, the initial convolution layer 1 includes a convolution layer, a batch normalization layer and a ReLU activation function, and its output channel is set to 64, which is mainly used for preliminary feature extraction of the input image.

[0042] Attention layer 2 is a network layer with a dynamic convolution kernel, so that the size of the convolution kernel can be dynamically adjusted according to the specific features of the input image, so that the network can respond to different scenarios and tasks more flexibly. Attention layer 2 is mainly used to automatically adjust the response strength of each channel by considering the local relationship between channels, so as to strengthen important features and suppress unimportant features, and enhance the expressiveness of the model; it first calculates the importance of each position or channel in the input feature map and generates a weight map; then based on the weight map, the original feature map is adjusted by element or by channel, and the input feature map is modified by enhancing important features and suppressing less important features, thereby obtaining an enhanced feature map. In this embodiment, ECA (Efficient Channel Attention Efficient Channel Attention Mechanism) with a dynamic convolution kernel is preferably used. ECA is also a lightweight attention mechanism. By setting ECA after the initial convolution layer 1, the accuracy can be significantly improved compared to setting it at other positions.

[0043] The maximum pooling layer 3 is used to perform feature pooling on the enhanced feature map for subsequent processing.

[0044] There are multiple sequence network layers 4, and the specific number is set according to the situation. The structure of each sequence network layer 4 is the same, and the difference lies in the number of channels designed. In this embodiment, the sequence network layer 4 is set to 4 layers, namely, the first sequence network layer with an output channel of 64, the second sequence network layer with an output channel of 128, the third sequence network layer with an output channel of 256, and the fourth sequence network layer with an output channel of 256. Through the gradually increased number of channels of each sequence network layer 4, the high-level feature representation after further compressing the spatial size is further improved to improve the feature expression ability.

[0045] Step 204: obtain a training set, preprocess the training set, and obtain a first training set.

[0046] It can be understood that what is obtained in this embodiment is an overall data set, and the data set is divided into a training set, a test set, and a validation set.

[0047] The driving control boundary detection model is trained through the training set to enable it to have the ability to detect driving control boundaries; it is then tested through the test set, and finally the model's ability is verified through the validation set before it is put into use.

[0048] The sources of the dataset include public data and private data. Public data includes but is not limited to the TuSimple dataset, which has a large number of pictures and provides rich and diverse road materials.

[0049] Private data includes pictures collected by individuals and recorded video materials. By organizing the pictures and video materials collected by individuals, and then filtering and adding labels, a data set that meets the standards is created.

[0050] It is worth noting that the driving control boundary includes but is not limited to curbs, lane lines and other signs that can determine the road position. During detection, multiple road position signs such as curbs and lane lines can be detected simultaneously to control the driving of the sanitation vehicle; or only one road position sign among the curbs and lane lines can be detected, depending on the specific needs.

[0051] When labeling, more obvious driving control boundaries can be used as detection targets. For example, an obvious curb is a clear training target that allows the driving control boundary detection model to quickly understand the specific detection target. When planning, the left curb and the right curb are used as label targets, and different types of curbs such as conspicuous, inconspicuous, straight, curved, gray, and yellow and black are collected as training materials, and these materials will be accumulated and expanded through the implementation examples. Training set.

[0052] In addition, the driving control boundaries that are relatively fuzzy or obscured can be used as detection targets. The relatively fuzzy targets can give the driving control boundary detection model a new interpretation of the original understanding of the curb, allowing it to find and mark the obscured but actual curb. To this end, it is necessary not only to collect fuzzy materials, but also to collect materials obscured by pedestrians, bicycles, and vehicles as materials to create an expansion data set, so as to expand the detection targets of the driving control boundary detection model and achieve a more efficient driving control boundary detection purpose.

[0053] Preprocessing the dataset can further enrich the material and understand the similarities among them during the learning process of the travel control boundary detection model, and plan the lines that are most likely to be travel control boundaries.

[0054] Step 206, based on a pre-set loss function, the driving control boundary detection model is trained through the first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and the initial features are obtained by extracting features from the input first training set; the initial features are processed based on the attention mechanism to obtain an enhanced first feature; the first feature is sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph.

[0055] Specifically, the initial convolution layer 1 performs feature extraction on the input first training set to obtain the initial feature, and the attention layer 2 performs enhancement processing on the initial feature to obtain the first feature; the first feature is pooled by the maximum pooling layer 3 and then input into the sequence network layer 4 for processing, and finally a driving control boundary inference graph with driving control boundaries marked is obtained.

[0056] During the training process, the label_smoothing operation is used to process the category labels and improve the model training process to alleviate the inductive bias caused by a small amount of negative data sets.

[0057] Step 208: Perform real-time detection of the driving control boundary using the trained driving control boundary detection model.

[0058] In the above driving control boundary detection method, a driving control boundary detection model is constructed; then a training set is obtained, and the training set is preprocessed to obtain a first training set; based on a pre-set loss function, the driving control boundary detection model is trained through the first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on the attention mechanism to obtain an enhanced first feature; the first feature is sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph; finally, the driving control boundary is detected in real time through the trained driving control boundary detection model.

[0059] The driving control boundary detection method provided by the present invention can efficiently realize local cross-channel interaction by constructing a lightweight driving control boundary detection model and adding an attention mechanism, thereby improving the ability of the neural network model to extract important features of the target; at the same time, the model is trained based on a preset loss function, which can improve the accuracy of the model in identifying the driving control boundary, and has strong robustness and accuracy, so that the driving control boundary can be detected in real time and accurately, and the relative position of the driving control boundary and the vehicle can be described, so that the sanitation vehicle can better drive along the edge. The method provided by the present invention has an optimal accuracy of 95.85% on three channels, which greatly improves the detection efficiency compared with the traditional method.

[0060] In one embodiment, the training set includes: labeled images with marked driving control boundaries in various scenarios, and unlabeled images with occlusions.

[0061] In one of the embodiments, preprocessing the training set to obtain the first training set includes: performing one or more preprocessing operations of rotation, offset, and special weather enhancement on the training set to obtain the first training set.

[0062] It can be understood that since sanitation vehicles work in outdoor environments, in addition to enhancing the training set by rotation, offset and other methods, data enhancement can also be performed on images related to weather conditions. The data set can be enhanced for rain and snow weather, and subdivided into light rain, moderate rain, heavy rain, heavy snow, moderate snow, heavy snow, etc. The degree of enhancement of the data set varies depending on the severity of the weather conditions.

[0063] In one embodiment, the preset loss function expression is:

[0064] Ll=αLc+βLt;

[0065] In the formula, α and β represent weight distribution coefficients, L c represents the first loss function, L t represents the second loss function.

[0066] It can be seen that the loss function proposed in this embodiment is a composite loss function, which controls the weight contribution ratio of the first loss function and the second loss function through the weight allocation coefficients α and β, thereby improving the accuracy of the model in detecting the driving control boundary.

[0067] Among them, the first loss function is mainly used to classify the predicted pixel points into driving control boundary pixels and non-driving control boundary pixels, which can play a strong constraining role on the final driving control boundary detection results. It is worth noting that when performing classification, the label_smoothing operation is used to alleviate the inductive bias caused by a small number of negative data sets. The second loss function is mainly used to constrain the rigid effect of the detection results on the curved curb, which can make the predicted lines fit the curved driving control boundary better. By combining the first loss function with the second loss function and performing weight distribution through the weight distribution coefficient, the accurate edge results of driving control boundary detection can be improved, and the fitting ability in the curved scene can be enhanced.

[0068] In one embodiment, the first loss function expression is:

[0069] Lc=-(ylog(p)+(1-y)log(1-p));

[0070] Where y represents the actual marked position of the curb in the physical world, and p represents the pre-detected curb position.

[0071] In one embodiment, the second loss function expression is:

[0072]

[0073] In the formula, y′ represents the curvature, x represents the horizontal coordinate of the actual roadside point, w represents the a priori inherent difference between the roadside points, and y i Represents the ordinate of the curb point in the real world, x i represents the predicted horizontal coordinate of the i-th roadside point, and n represents the number of roadside points.

[0074] In one of the embodiments, the driving control boundary detection model is parameterized and adjusted through a configuration file.

[0075] It is understandable that when constructing the driving control boundary detection model, it is possible that the optimal architecture is not constructed, so the structure of the model will be adjusted later. In order to adjust the model more conveniently, the model can be parameterized to form a configuration file, thereby realizing semi-automatic design of the driving control boundary detection model. For example, when the size of the driving control boundary detection model needs to be redefined, it can be achieved by simply adjusting the parameters through the configuration file without rebuilding a new model. At the same time, through the setting of the configuration file, it is also more convenient to conduct experiments related to driving control boundary detection.

[0076] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0077] In one embodiment, Figure 3 As shown, a driving control boundary detection device is provided, including: a model building module 402, a data processing module 404, a model training module 406 and a real-time detection module 408, wherein:

[0078] The model building module 402 is used to build a driving control boundary detection model.

[0079] The data processing module 404 is used to obtain a training set, pre-process the training set, and obtain a first training set.

[0080] The model training module 406 is used to train the driving control boundary detection model through the first training set based on a pre-set loss function to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and the initial features are obtained by extracting features from the input first training set; the initial features are processed based on the attention mechanism to obtain an enhanced first feature; the first feature is sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph.

[0081] The real-time detection module 408 is used to perform real-time detection of the driving control boundary using a trained driving control boundary detection model.

[0082] The specific definition of the driving control boundary detection device can be found in the definition of the driving control boundary detection method above, which will not be repeated here. Each module in the above driving control boundary detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0083] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store driving control boundary detection data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a driving control boundary detection method is implemented.

[0084] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0085] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0086] Step 202: construct a driving control boundary detection model.

[0087] Step 204: obtain a training set, preprocess the training set, and obtain a first training set.

[0088] Step 206, based on a pre-set loss function, the driving control boundary detection model is trained through the first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and the initial features are obtained by extracting features from the input first training set; the initial features are processed based on the attention mechanism to obtain an enhanced first feature; the first feature is sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph.

[0089] Step 208: Perform real-time detection of the driving control boundary using the trained driving control boundary detection model.

[0090] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0091] Step 202: construct a driving control boundary detection model.

[0092] Step 204: obtain a training set, preprocess the training set, and obtain a first training set.

[0093] Step 206, based on a pre-set loss function, the driving control boundary detection model is trained through the first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and the initial features are obtained by extracting features from the input first training set; the initial features are processed based on the attention mechanism to obtain an enhanced first feature; the first feature is sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph.

[0094] Step 208: Perform real-time detection of the driving control boundary using the trained driving control boundary detection model.

[0095] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0097] The above-described embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims

1. A driving control boundary detection method, characterized in that: The method comprises: Construct a driving control boundary detection model; Obtaining a training set, and preprocessing the training set to obtain a first training set; Based on a preset loss function, the driving control boundary detection model is trained through a first training set to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on an attention mechanism to obtain an enhanced first feature; the first features are sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph; The driving control boundary is detected in real time through the trained driving control boundary detection model.

2. The driving control boundary detection method according to claim 1, characterized in that: The training set includes: labeled images with marked driving control boundaries in various scenarios, and unlabeled images with occlusions.

3. The driving control boundary detection method according to claim 2, characterized in that: The training set is preprocessed to obtain a first training set, including: The training set is subjected to one or more preprocessing operations of rotation, offset, and special weather enhancement to obtain a first training set.

4. The driving control boundary detection method according to any one of claims 1 to 3, characterized in that: The pre-set loss function expression is: Ll=αLc+βLt; In the formula, α and β represent weight distribution coefficients, L c represents the first loss function, L t represents the second loss function.

5. The driving control boundary detection method according to claim 4, characterized in that: The first loss function expression is: Lc=-(ylog(p)+(1-y)log(1-p)); Where y represents the actual marked position of the curb in the physical world, and p represents the pre-detected curb position.

6. The driving control boundary detection method according to claim 4, characterized in that: The second loss function expression is: In the formula, y′ represents the curvature, x represents the horizontal coordinate of the actual roadside point, w represents the a priori inherent difference between the roadside points, and y i Represents the ordinate of the curb point in the real world, x i represents the predicted horizontal coordinate of the i-th roadside point, and n represents the number of roadside points.

7. The driving control boundary detection method according to claim 4, characterized in that: The driving control boundary detection model is parameterized and adjusted through a configuration file.

8. A driving control boundary detection device, characterized in that: The device comprises: A model building module, used to build a driving control boundary detection model; A data processing module, used for obtaining a training set, and preprocessing the training set to obtain a first training set; A model training module is used to train the driving control boundary detection model through a first training set based on a preset loss function to obtain a trained driving control boundary detection model; the driving control boundary detection model is a lightweight neural network model, and initial features are obtained by extracting features from the input first training set; the initial features are processed based on an attention mechanism to obtain an enhanced first feature; the first features are sequentially pooled, convolved, activated, and normalized to obtain a driving control boundary inference graph; The real-time detection module is used to perform real-time detection of the driving control boundary through the trained driving control boundary detection model.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Environmental sanitation robot for carrying out auxiliary operation control based on road edge recognition

    CN110989591A

  • Lane line detection and segmentation method based on attention space convolutional neural network

    CN112633177A