A Linear Fitting Algorithm Based on Modified Random Sample Consensus
Source abstract
Abstract
When performing linear fitting on datasets containing outliers, common algorithms may face problems like inadequate fitting accuracy. We propose a linear fitting algorithm based on Locality-Sensitive Hashing (LSH) and Random Sample Consensus (RANSAC). Our algorithm combines the efficient similarity search capabilities of the LSH algorithm with the robust fitting mechanism of RANSAC. With proper hash functions designed, similar data points are mapped to the same hash bucket, thereby enabling the efficient identification and removal of outliers. RANSAC is then used to fit the model parameters of the processed dataset. The optimal parameters for the linear model are obtained after multiple iterative processes. This algorithm significantly reduces the influence of outliers on the dataset, resulting in improved fitting accuracy and enhanced robustness. Experimental results demonstrate that the proposed improved RANSAC linear fitting algorithm outperforms the Weighted Least Squares, traditional RANSAC, and Maximum Likelihood Estimation methods, achieving a reduction in the sum of squared residuals by 29%, 16%, and 8%, respectively.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Face and Expression Recognition · Data Management and Algorithms
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Economics, Wuhan Textile University, Wuhan 430200, China
School of Electronic and Electrical Engineering, Wuhan Textile University, Wuhan 430200, China
Funding
National Natural Science Foundation of China
References (26)
Show source-provided references
1. Conditional Weighted Linear Fitting for 2D-LiDAR-Mapping of Indoor SLAM10.1109/TII.2024.3384626 ↗
2. Automatic driving image matching via Random Sample Consensus (RANSAC) and Spectral Clustering (SC) with monocular camera10.1063/5.0214966 ↗
3. Guo, R., Liu, S., He, Y., and Xu, L. (2022). Study on Vehicle–Road Interaction for Autonomous Driving. Sustainability, 14.10.3390/su141811693 ↗
4. Automatic Extraction of Railroad Centerlines from Mobile Laser Scanning Data10.3390/rs70505565 ↗
5. An improved linear prediction evolution algorithm based on nonlinear least square fitting model for optimization10.1007/s00500-023-08500-6 ↗
6. An Improved Grey Prediction Evolution Algorithm Based on Topological Opposition-Based Learning10.1109/ACCESS.2020.2973197 ↗
7. Segments Interpolation Extractor for Finding the Best Fit Line in Arabic Offline Handwriting Recognition Words10.1109/ACCESS.2021.3080325 ↗
8. An improved parameter estimation of HFM signals based on IRLS linear fitting of extracted group delay10.1016/j.sigpro.2023.109347 ↗
9. Yuan, Y., Yu, M., Wang, W., and Xing, B. (2023, January 12–15). Machine Learning Based Linear Fitting of Wind Direction and Speed. Proceedings of the 2023 6th International Conference on Electronics Technology (ICET), Chengdu, China.10.1109/ICET58434.2023.10211387 ↗
10. Yan, J., Tao, C., Wang, Y., Du, J., Qi, M., Zhang, Z., and Hu, B. (2024). Application of Enhanced Weighted Least Squares with Dark Background Image Fusion for Inhomogeneity Noise Removal in Brain Tumor Hyperspectral Images. Appl. Sci., 15.10.3390/app15010321 ↗
11. Techniques for Least-Squares Fitting of Curves and Surfaces to a Large Set of Points10.1061/JSUED2.SUENG-1552 ↗
12. Parameter estimation of three-parameter Weibull distribution by hybrid gray genetic algorithm with modified maximum likelihood method with small samples10.1007/s12206-024-0911-5 ↗
13. Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography10.1145/358669.358692 ↗
14. Raguram, R., Frahm, J.M., and Pollefeys, M. (2008). A Comparative Analysis of RANSAC Techniques Leading to Adaptive Real-Time Random Sample Consensus. Computer Vision–ECCV 2008, Springer.10.1007/978-3-540-88688-4_37 ↗
15. Gao, Y., Fu, J., and Chen, X. (2024). Correcting Hardening Artifacts of Aero-Engine Blades with an Iterative Linear Fitting Technique Framework. Sensors, 24.10.3390/s24062001 ↗
16. LS-RANSAC: Find spatial structures directly from the image10.1007/s11760-025-03991-2 ↗
17. A Comprehensive Review of Image Line Segment Detection and Description: Taxonomies, Comparisons, and Challenges10.1109/TPAMI.2024.3400881 ↗
18. Lane line recognition based on improved 2D-gamma function and variable threshold Canny algorithm under complex environment10.1177/0020294020952477 ↗
19. Image retrievable encryption based on linear fitting and orthogonal transformation10.1088/1402-4896/ad935b ↗
20. A robust method based on locality sensitive hashing for K-nearest neighbors searching10.1007/s11276-022-02927-9 ↗
21. A large-scale group decision making model with a clustering algorithm based on a locality sensitive hash function10.1016/j.engappai.2024.109697 ↗
22. KVN: Keypoints Voting Network with Differentiable RANSAC for Stereo Pose Estimation10.1109/LRA.2024.3367508 ↗
23. A Framework for Age Estimation of Fish from Otoliths: Synergy Between RANSAC and Deep Neural Networks
24. Robust Multimodal Retinal Image Registration in Diabetic Retinopathy Using a Lightweight Neural Network and Improved RANSAC Algorithm10.1109/JSEN.2025.3545076 ↗
25. Saeki, K., Tanaka, K., and Ueda, T. (2009, January 12–17). LSH-RANSAC: An incremental scheme for scalable localization. Proceedings of the 2009 IEEE International Conference on Robotics and Automation, Kobe, Japan.10.1109/ROBOT.2009.5152201 ↗
26. LSH-RANSAC: Incremental Matching of Large-Size Maps10.1587/transinf.E93.D.326 ↗