Abstract
In the field of autonomous driving systems, the data-driven development approach has increased drastically, making high-quality labeled data essential for supervised learning. However, there is a significant lack of labeled road infrastructure data, and the already existing approaches are mostly based on semantic segmentation, which requires high computational capacity, particularly when applied to large-scale auto-labeling tasks. To address these challenges, we propose a cost-effective auto-labeling method. The proposed approach relies on the fusion of map data and recorded sensor observations and is designed for longitudinal structures that can be approximated as parallel to the ego-vehicle trajectory. Road infrastructure elements are represented as polylines, initially generated from the map data and later refined using point clouds. This method provides a compact workflow that is easier to manage than segmentation-based approaches and gives a holistic representation of the road structures. In addition, the reduced computational requirements make the method suitable for large-scale deployment in real-world applications.
1. Introduction
As data-based solutions become more widespread, the need for properly annotated, high-quality data is growing rapidly. Recording, filtering, and labeling vast datasets is time-consuming or requires significant computational power [1,2]. Even though camera- and LiDAR-based datasets have been available for years, radar-based annotation pipelines are significantly less explored and remain challenging. Automotive radar sensors—which are more frequently used in real-world automotive applications—offer several advantages in harsh conditions, such as robustness against rain, fog, and low-light environments [3,4]. Consequently, radar-based autonomous systems have gained increasing attention [5], yet the related datasets, as well as processing pipelines, are not widely available.
Despite the aforementioned advantages, radar data is often unstable and sparse. For example, spatial reflections can add unwanted noise, and their resolution and point density are significantly lower than those of LiDAR data [3,4,6]. As a result, processing radar data is extremely time-consuming, as it requires manual processing [3,4]. There are auto-labeling solutions to save the manual effort, especially in the LiDAR field, but these approaches require high-density input data [7,8], such as dense sensor fusion, computationally intensive map-fitting procedures, or optimization-based curve-estimation techniques to generate structured labels from noisy measurement [9,10]. Therefore, they are not suitable for radar-based implementations.
With the advancements on the driving perception components, the fusion of radar sensors with cameras has become inevitable. At higher speed (usually in the range of to ) the camera on its own cannot detect the road on a sufficiently long preview horizon. Therefore, radars are used as secondary source of road edge information. Now, in the context of data-based road boundary detection by radar, generating automatic labels has become particularly relevant. However, efficient annotation of the roadside boundaries remains a relatively unexplored field of radar-based pipelines.
This paper presents a lightweight automatic polyline labeling solution for longitudinal objects in the radar point cloud that are mainly longitudinally shaped in terms of the vehicle coordinate system. Such objects can be road edges or guide rails on rural roads and highways. Instead of the widely used spline-fitting method, we exploit the assumption that in some road environments, the longitudinal structures are parallel to the trajectory of the ego-vehicle. Therefore, a globally reconstructed trajectory, combining radar data and interpolated vehicle positions over a global UTM frame, is used to generate offset-based prior polylines. These are further refined using histogram peak detection, computed in the Frenet coordinate frame. Generated labels are then exported into a custom dataset format designed to work with neural network training pipelines. The main contributions of this paper are the following:
- C1
- We designed a lightweight radar-based automatic polyline labeling pipeline for objects parallel to the ego-trajectory,
- C2
- We propose a Frenet-domain candidate extraction method, based on histogram peak analysis, with continuity and length vs. width ratio examination. The proposed solution has been verified on real world radar data.
The remainder of this paper is organized as follows. Section 2 presents the utilized dataset and the proposed methodology, including custom data loading, sensor synchronization, Doppler compensation, global ego-trajectory reconstruction, object extraction, and filtering procedures. Section 3 presents qualitative and quantitative experimental results, including downstream neural network training performance. Section 4 concludes the paper and discusses future research directions.
2. Preliminaries
2.1. Data Collection and Pre-Processing
The first step in our radar annotation pipeline is the collection of high-quality raw radar sensor data and precise ego-vehicle positions, as reliable data collection and synchronization prove essential to the overall performance of the system. Given our initial assumptions about the parallelism between the ego-trajectory and the labeled objects, it was crucial to choose a road section where this condition holds. The measurements used throughout this work were collected primarily in a rural road environment. These road types provide relatively structured scenes with longitudinal roadside objects, such as guardrails, barriers, and ditches, that are parallel to the road and hence approximately parallel with the trajectory of the ego-vehicle.
The sensors used during these measurements include automotive radars mounted at different angles around the vehicle and a high-precision GPS sensor for reliable ego-position information. Three radar sensors were utilized at the front-center, front-left, and front-right positions of the car, with a 60-degree yaw difference between them, increasing spatial coverage and measurement density. The provided data contains Cartesian coordinates, uncompensated velocity, azimuth, elevation, and RCS values. Since our goal is labeling static longitudinal structures, Doppler compensation was used to filter out dynamic objects that could introduce inconsistencies during labeling. The compensated Doppler velocity is computed as
where is the uncompensated velocity, denotes the unit beam direction, the ego-velocity expressed in the radar frame, the yaw-rate vector, and the radar detection position.
In addition to radar measurements, accurate ego-vehicle localization data were recorded throughout the measurement sessions. The localization information included the global position of the vehicle and orientation over time, enabling the reconstruction of a continuous global vehicle trajectory. The recorded ego-poses served as the geometric foundation of the entire pipeline, since radar detections from consecutive frames were transformed into a global UTM coordinate system using interpolated vehicle poses. Additionally, latitude and longitude values were stored and later used as a base for geo-fencing to filter out unwanted road segments, such as roundabouts.
The data were stored in a ROS2 mcap format and recorded in the vicinity of Győr, Hungary, on road 813, approximately long.
2.2. Global Trajectory Reconstruction and Radar Accumulation
The global ego-trajectory was reconstructed using recorded ego-vehicle localization data containing the vehicle position and orientation over time. Map data was used to obtain the global geometry of the roadside objects parallel to the ego-trajectory, which then served as prior labels for radar-based refinement. Since radar frames and localization measurements were not perfectly synchronized, ego-poses were interpolated to the radar detection timestamps.
Given the low spatial resolution of the radar sensors, multiple radar frames had to be combined to ensure the detected structures could be used to refine the initial offset values of the polyline labels. All the frames were transformed from the vehicle to the world coordinate frame using predetermined radar mounting transforms to compensate for ego-motion-induced object drifting. The transformation is given by
Here, denotes the two-dimensional position vector of a radar detection expressed in the ego-vehicle coordinate frame. The vector represents the global UTM position of the ego-vehicle. The matrix is the two-dimensional rotation matrix corresponding to the ego-vehicle yaw angle in the global UTM frame. The resulting vector therefore denotes the radar detection position in the global UTM frame.
To guarantee that only static objects remain, detections exceeding a Doppler velocity threshold of were omitted. Such consideration further clears the noise from the radar data. Moreover, all road elements located between the guardrails were filtered with a polygon fitted onto the road surface.
2.3. Frenet-Domain Candidate Extraction and Label Refinement
After the filtering of the obvious outliers, we calculate the offset values associated with the different kinds of longitudinal structures, parallel to the road. For this, the Cartesian coordinate frame was converted to the Frenet domain. In Figure 1, the difference between the two representations is illustrated.
Figure 1.
Visualization of the same radar detections in Cartesian and Frenet coordinate systems. In the Cartesian domain (a), roadside boundaries follow the curvature of the road and are difficult to analyze directly. In the Frenet domain (b), these structures appear as approximately horizontal at nearly constant lateral offsets, enabling efficient histogram-based candidate extraction. The blue curve in (a) denotes the reference trajectory, while the dashed line in (b) corresponds to the Frenet reference path ().
Based on the initial assumption that the target structures maintain an approximately constant lateral distance from the ego-trajectory, they can be represented as dominant peak values along the lateral d axis. Therefore, the analysis of this representation allows us to identify high-density regions, which are then utilized to estimate the offset values of the assumed roadside objects. The lateral Frenet coordinates used for the first part of candidate extraction were computed as
where denotes the globally accumulated radar point and the closest ego-trajectory point, and represents the normal vector of the trajectory point. After the transformation, histogram analysis is performed along the lateral d coordinate in order to identify dominant roadside structures parallel to the ego-trajectory. The lateral histogram is computed as
where denotes the count of the histogram bin, N is the number of accumulated radar points, and represents the interval of the corresponding histogram bin. The indicator function evaluates to 1 if the lateral distance falls within the given bin interval, and 0 otherwise. Due to the accumulation of multiple radar frames, stable roadside structures generate persistent peaks in the histogram, while isolated noise reflections remain significantly less concentrated. After the histogram generation, prominence-based peak detection is performed in order to suppress weak object candidates. A minimum amount of radar points is required to classify a group of points as a candidate. However, radar reflections from non-longitudinal objects, such as traffic signs and bushes, also generate peak values, an additional width and continuity examination was implemented in order to ensure that only long roadside structures persist. For each detected histogram peak, local radar support regions are extracted within a predefined lateral neighborhood. The geometric width of the candidate structure is then estimated using the percentile spread of the lateral Frenet coordinates as
where and denote the 10th and 90th percentiles of the local lateral coordinate distribution. This formulation provides a robust approximation of the candidate width while suppressing the influence of outlier detections. Additionally, the candidate support region is divided into fixed longitudinal windows along the s-axis, and the number of detections inside each window is examined. A minimum number of detections is required to accept the current longitudinal window as part of a roadside object, and a minimum number of accepted windows is required to be accepted as a continuous structure, not simple clutter. The longitudinal supported length is computed as
where denotes the maximum number of consecutive occupied longitudinal windows and represents the longitudinal window size. Only candidates satisfying both width (5) and support (6) constraints are kept. This filtering stage significantly reduces blob-like radar clusters while preserving elongated roadside structures characteristic of guardrails and barriers.
After the candidate validation, the corresponding offset values are computed from the accepted structure positions, which are used to refine our initial label positions. The proposed method directly shifts the prior labels along the local trajectory normal direction according to the detected histogram peaks, without computationally expensive spline-fitting and curve estimation methods. The offset-based refinement can be expressed as
where denotes the initial trajectory-relative prior polyline, represents the local trajectory normal vector, and corresponds to the detected histogram peak position.
3. Results
This section provides both qualitative and quantitative results for the evaluation of the automatic radar-based labeling pipeline. The presented results were generated using accumulated radar sensor data and processed by the methodology described in Section 2. With the qualitative results, the immediate functioning of the candidate extraction is illustrated, and the end results are visualized and can be examined.
3.1. Qualitative Results
In Figure 2, the process of histogram-based peak extraction and the continuity-based geometric evaluation is shown. In sub-plot (a), the detected peaks are indicated by dashed lines, with their corresponding d-coordinate where the accumulation of radar points went above a certain threshold. In sub-plot (b), the continuity and geometric consistency of the detected roadside boundary are examined. The candidate structures are again indicated by dashed lines, while the green rectangles denote trajectory segments that satisfy the predetermined support criteria. These segments contain a sufficient number of radar points within the examined lateral neighborhood and, therefore, contribute to the final label generation.
Figure 2.
Example of the proposed candidate extraction procedure. (a) Histogram-based peak extraction in the Frenet domain. The detected peaks correspond to dominant lateral offsets of roadside structures. (b) Longitudinal support verification of the detected candidates. Green regions indicate trajectory segments that satisfy the support criteria and contribute to the final label generation process.
It can be observed that the dominant roadside boundaries produce clearly distinguishable peaks in the lateral histogram. Furthermore, the continuity-based verification effectively filters out the short and weakly supported candidates, while preserving the elongated objects. The final labeling result corresponding to the examined scene is presented in Figure 3.
Figure 3.
Final automatic labeling result corresponding to the candidate extraction example shown in Figure 2. The generated polylines are overlaid on the filtered radar detections in the vehicle coordinate frame. The radar points are color-coded according to their RCS values.
The generated polylines align well with the dominant radar reflections. Despite the sparse nature of radar measurements, geometrically consistent labels can be produced that follow the observed objects over extended distances.
3.2. Quantitative Results
To assess the performance of the pipeline quantitatively, 10 radar frames were chosen from different scenarios. Each frame was manually annotated by selecting points along the observed roadside structure. The manual annotation was solely based on the radar point cloud, without using the automatically generated labels or map data. The manually annotated polylines were then compared with the automatically generated labels using the metric described below. Table 1 summarizes the mean, median, and maximum distances for each frame. The reported distances were computed using a polyline distance metric, similar to the Lane Position Deviation Metric [11]. The shortest Euclidean distance was computed from each point of the manually annotated polyline to the automatically generated polyline. The resulting distances were then averaged to obtain the final distance value for each polyline pair.
Table 1.
Distance examination between manually annotated and automatically generated polylines.
Across the evaluated frames, the average mean geometric error was , while the average median error was . Several scenes achieved accuracy below , mostly with well-separated detection points with limited interference from the surrounding objects. However, larger deviations exceeding can be observed in some challenging scenarios. These larger errors were typically associated with spatially more dispersed radar detections around the detected object, where the exact identification of the structure becomes inherently more challenging. Furthermore, discontinuities in the observed boundaries and local deviations may also contribute to the reduced labeling accuracy.
In Figure 4, we can examine some radar frames used for the aforementioned testing. The manual annotation is marked with a red dashed line, while the automatically generated labels are indicated with continuous blue lines.
Figure 4.
Visual illustration of the labeling results of the manual and automatic labeling. The horizontal axis represents the longitudinal x-coordinate and the vertical axis represents the lateral y-coordinate in the vehicle coordinate frame, with distances given in meters.
Overall, the quantitative evaluation confirms that the proposed pipeline is capable of generating geometrically consistent roadside labels directly from radar measurements, providing a suitable basis for the automatic creation of training datasets.
3.3. Runtime Analysis
The computational performance of the proposed labeling pipeline was evaluated on the dataset used in the experiments. The average processing time per frame for each stage of the pipeline is presented in Table 2.
Table 2.
Average runtime of the proposed labeling pipeline per radar frame.
The complete pipeline requires an average of ms per frame, corresponding to approximately frames/s. The candidate detection and polyline export stages introduce only a small computational overhead, while frame preparation and candidate generation constitute the main processing components. The dataset output also contributes substantially to the overall runtime due to the generation and storage of the resulting annotations.
3.4. Parameter Configuration
The parameters of the proposed pipeline are heavily dependent on the expected environmental conditions (approximate distance between roadside objects, vegetation presence, etc.) and the specific characteristics of the sensor setup.
For example, urban environments typically contain a larger number of nearby objects and more spatially distributed radar reflections, which may require stricter support criteria to suppress short or weakly supported candidates. In such conditions, increasing the prominence threshold from 15 to 20 radar points or reducing the longitudinal support window from 5 m to 3 m can make the candidate selection more selective and reduce detections originating from unrelated roadside objects. In contrast, highway environments generally contain longer and more clearly separated roadside structures, but may produce sparser radar returns at greater distances. In this case, reducing the prominence threshold to 10 points or increasing the longitudinal support radius from 12 m to 15 m can help retain valid candidates.
Varying a parameter across the entire dataset may improve the results for one scenario while degrading them for another. Therefore, the parameters are treated as configuration parameters rather than universally optimized values.
4. Conclusions
In this paper, we presented a lightweight automatic polyline labeling pipeline for roadside boundaries in radar point clouds. Unlike traditional approaches, our method does not rely on computationally heavy curve fitting, dense sensor fusion, or high-density input data, but exploits the approximation that roadside boundaries are parallel to the ego-vehicle trajectory and uses offset computation for label fitting. Experimental results showed that the generated labels can be suitable for the creation of radar-based training datasets.
The larger errors observed in some challenging scenarios suggest several directions for future research. More accurate GNSS-based localization and trajectory estimation could reduce the errors occurring during radar accumulation and Frenet coordinate transformation. An adaptive threshold application based on radar point density may improve the robustness of histogram peak extraction in cluttered environments. Moreover, future work will investigate the implementation of object classification capabilities based on additional radar features, such as radar cross-section (RCS) measurements. These implementations could support candidate validation, further improving the identification of roadside boundaries.
Author Contributions
Conceptualization, T.D. and B.A.; methodology, B.A.; software, B.A.; validation, B.A. and T.D.; formal analysis, T.D.; investigation, B.A.; data curation, T.D.; writing—original draft preparation, B.A.; writing—review and editing, B.A. and T.D.; supervision, T.D. All authors have read and agreed to the published version of the manuscript.
Funding
No. TKP2021-NVA-23 has been implemented with the support provided by the Ministry of Technology and Industry of Hungary from the National Research, Development and Innovation Fund, financed under the TKP2021-NVA funding scheme.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
All data are available within the paper.
Acknowledgments
ChatGPT-5.4(OpenAI) was used during the preparation of this manuscript to assist with language editing, phrasing, and improving the clarity of the text. All AI-assisted content was reviewed and revised by the authors, who take full responsibility for the final manuscript.
Conflicts of Interest
Author Tamás Dobay was employed by the company Robert Bosch Kft. The remaining author declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
- Settles, B. Active Learning Literature Survey; Technical Report 1648; University of Wisconsin–Madison: Madison, WI, USA, 2009. [Google Scholar]
- Ratner, A.; Bach, S.H.; Ehrenberg, H.; Fries, J.; Wu, S.; Ré, C. Snorkel: Rapid Training Data Creation with Weak Supervision. Proc. VLDB Endow. 2017, 11, 269–282. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Srivastav, A.; Mandal, S. Radars for Autonomous Driving: A Review of Deep Learning Methods and Challenges. IEEE Access 2023, 11, 97147–97168. [Google Scholar] [CrossRef] [Scilit]
- Patole, S.M.; Torlak, M.; Wang, D.; Ali, M. Automotive Radars: A Review of Signal Processing Techniques. IEEE Signal Process. Mag. 2017, 34, 22–35. [Google Scholar] [CrossRef] [Scilit]
- Wu, Y.; Noh, H.Y. 4DRadarRBD: 4D mmWave Radar-Based Road Boundary Detection in Autonomous Driving. Front. Signal Process. 2025, 5, 1667789. [Google Scholar] [CrossRef] [Scilit]
- Feng, D.; Haase-Schuetz, C.; Rosenbaum, L.; Hertlein, H.; Glaser, C.; Timm, F.; Wiesbeck, W.; Dietmayer, K. Deep Multi-Modal Object Detection and Semantic Segmentation for Autonomous Driving: Datasets, Methods, and Challenges. IEEE Trans. Intell. Transp. Syst. 2021, 22, 1341–1360. [Google Scholar] [CrossRef] [Scilit]
- Yang, B.; Bai, M.; Liang, M.; Zeng, W.; Urtasun, R. Auto4D: Learning to Label 4D Objects from Sequential Point Clouds. arXiv 2021, arXiv:2101.06586. [Google Scholar]
- Chen, X.; Mersch, B.; Nunes, L.; Marcuzzi, R.; Vizzo, I.; Behley, J.; Stachniss, C. Automatic Labeling to Generate Training Data for Online LiDAR-Based Moving Object Segmentation. IEEE Robot. Autom. Lett. 2022, 7, 6107–6114. [Google Scholar] [CrossRef] [Scilit]
- Van Gansbeke, W.; De Brabandere, B.; Neven, D.; Proesmans, M.; Van Gool, L. End-to-end Lane Detection through Differentiable Least-Squares Fitting. arXiv 2019, arXiv:1902.00293. [Google Scholar]
- Cudrano, P.; Gallazzi, B.; Frosi, M.; Mentasti, S.; Matteucci, M. Clothoid-Based Lane-Level High-Definition Maps: Unifying Sensing and Control Models. IEEE Veh. Technol. Mag. 2022, 17, 47–56. [Google Scholar] [CrossRef] [Scilit]
- Satzoda, R.K.; Trivedi, M.M. On Performance Evaluation Metrics for Lane Estimation. In Proceedings of the 2014 22nd International Conference on Pattern Recognition (ICPR), Stockholm, Sweden, 24–28 August 2014; pp. 2625–2630. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



