KNN-Based Fuel-Aware Range Prediction and Gas-Station Recommendation in an Android App

Closed

Farid Baskoro, Widi Aribowo, Hewa M. Zangana, Wahyu S. Putro, Rifqi Firmansyah, Ali Nur Fathoni, Aristyawan Putra Nurdiansyah

2026 International Journal of Robotics and Control Systems Vol. 6 Issue 2 Article Cited by 0

Abstract

This study aims to develop and validate a fuel-aware prediction model to estimate the reachable travel distance from remaining fuel and to support feasibility-based gas-station candidate filtering. The proposed approach consists of two stages: (1) a K-Nearest Neighbors (KNN) regressor predicts reachable distance based on remaining fuel and vehicle type, and (2) gas-station candidates are filtered within the predicted range using Haversine-based geodesic distance. The novelty of this study lies in coupling non-parametric KNN model to predict reachable distance, combined with a feasibility filter that retains only stations whose Haversine distance does not exceed the predicted reachable range. Experiments were conducted on three motorcycle categories (110cc, 125cc, and 150cc) using a dataset of 90 samples (30 samples per category) and evaluated through 5-fold cross-validation, with MAE and R² as the primary performance metrics. The performance of KNN (k = 5) was compared against all baseline models, including mean baseline, linear regression, and second-order polynomial regression. The results show that KNN consistently achieved the best performance across all categories, with MAE values of 0.210 km (110cc), 0.189 km (125cc), and 0.159 km (150cc), and average R² values of 0.85 ± 0.02 for 110cc and 125cc, and 0.80 ± 0.03 for 150cc. These findings indicate that the proposed KNN model provides stable reachable-distance estimates suitable for feasibility-based gas-station filtering under fuel constraints. © 2025 The Authors.

Affiliations

Department of Electrical Engineering, State University of Surabaya, Surabaya, 60231, Indonesia; Applied Bachelor's Degree of Electrical Engineering, State University of Surabaya, Surabaya, 60231, Indonesia; IT Department, Duhok Technical College, Duhok Polytechnic University, Duhok, 42001, Iraq; School of Mechanical and Aerospace Engineering, Nanyang Technological University, Singapore, 639798, Singapore