Research Article

A Bidirectional 8-Neighborhood Border Tracking and Kalman-Based Centerline Reconstruction Method for Line-Following Robots

Tian Xia*
Department of Mechanical and Aerospace Engineering, University of California, Irvine, Irvine, California, United States of America

* Corresponding author: [email protected]

Abstract

Vision-based line-following robots need highly robust and accurate centerline extraction to ensure effective autonomous navigation. Traditional methods suffer from performance degradation when encountering lane situations like crossing, “X” shaped with diagonal horizon line and etc. This paper introduces a bidirectional 8-neighborhood border tracking algorithm, enhanced with least squares border completion and Kalman-filter-based smoothing. A dual-pass strategy detects both bottom-up and top-down borders, allowing recovery of the missing line part via a combination of the top-down reconstructed centerline segment and the original bottom-up segment before the breakpoint. The top-down reconstructed centerline is filtered using a one-dimensional Kalman filter to improve smoothness and reduce noise and jitter, ensuring stability in the steering response. Experimental evaluation demonstrates a 94% success rate in reconstructing broken lanes and solving the breaks when meeting cross-type discontinuities. These results confirm the applicability of the method in real-time embedded systems for intelligent vehicle steering. Moreover, the algorithm is computationally lightweight and suitable for deployment on low-power embedded platforms.

Keywords: centerline extraction; 8-neighborhood search; Kalman filter; least squares fitting; autonomous vehicle navigation
Published: July 24, 2025
DOI: 10.54254/2755-2721/2025.GL25448
Volume: ACE Vol.167
pp. 122-129
Download PDF

References

  1. Javed, M. A., Sabri, M. S., & Jian, X. (2023). Lane line detection and object scene segmentation using Otsu thresholding and the fast Hough transform for intelligent vehicles in complex road conditions. Electronics, 12(5), 1079.
  2. Liu, W., Yan, F., Zhang, J., & Deng, T. (2021). A robust lane detection model using vertical spatial features and contextual driving information. Sensors, 21(3), 708.
  3. Suto, J. (2021). Real-time lane line tracking algorithm to mini vehicles. Transport and Telecommunication Journal, 22(4), 461–470.
  4. Zheng, Y.-S., Jin, Y.-W., & Dong, Y. (2021). Rail detection based on LSD and the least square curve fitting. Machine Intelligence Research, 18(1), 85–96.
  5. DSP StackExchange. (2014, March 10). When is a Kalman filter different from a moving average? StackExchange DSP. https: //dsp.stackexchange.com/questions/18892/when-is-a-kalman-filter-different-from-a-moving-average
  6. Han, C., Wu, W., Luo, X., & Li, J. (2023). Visual navigation and obstacle avoidance control for agricultural robots via LiDAR and camera. Remote Sensing, 15(22), 5402.
  7. Xiong, H., Wang, X., Liu, Y., & Wang, S. (2020). Fast and robust approaches for lane detection using multi-camera fusion in complex scenes. IET Intelligent Transport Systems, 14(12), 1551–1559.
  8. Huang, G., Wang, Y., & Lin, H. (2024). Real-time lane detection using Raspberry Pi for an autonomous vehicle application. ARPN Journal of Engineering and Applied Sciences, 19(3), 314–320.