Journal of Soft Computing Exploration
Vol. 7 No. 4 (2026): December 2026

Explainable machine learning for coffee shop location analysis in Surabaya: Random forest, XGBoost, and logistic regression under spatial cross-validation

Ahmad Rafli (Department of Computer Science, Universitas Lambung Mangkurat, Indonesia)
Muhammad Itqan Mazdadi (Department of Computer Science, Universitas Lambung Mangkurat, Indonesia)
Andi Farmadi (Department of Computer Science, Universitas Lambung Mangkurat, Indonesia)
Muliadi (Department of Computer Science, Universitas Lambung Mangkurat, Indonesia)
Mohammad Reza Faisal (Department of Computer Science, Universitas Lambung Mangkurat, Indonesia)



Article Info

Publish Date
01 Nov 2026

Abstract

Data-driven studies of coffee shop location are usually validated through random splits and interpreted through global importance rankings, leaving their accuracy estimates and explanations open to question. This study aims to compare tree-based ensembles with a linear baseline under spatially blocked validation, to quantify feature contributions, and to interpret the co-location structure of coffee shops in Surabaya, Indonesia. Across a hexagonal grid, 436 cells split evenly between presence and pseudo-absence were described by eleven OpenStreetMap-derived spatial features. Random Forest, XGBoost, and a logistic regression baseline were evaluated under nested cross-validation blocked by the 31 sub-districts, since the labels were significantly autocorrelated, with paired significance testing and bootstrap confidence intervals. The ensembles proved statistically equivalent, and neither surpassed the linear baseline in ranking ability, with areas under the receiver operating characteristic curve of 0.865, 0.862, and 0.867. They improved threshold-dependent metrics instead, raising the Matthews correlation coefficient from 0.493 to 0.562 and recall from 0.715 to 0.814. Hotel and competitor density led the permutation importance ranking, with no ablated configuration below 0.842. Shapley additive explanations exposed a saturating co-location structure in which competitor density contributed positively to presence, a pattern linear models cannot represent. Spatial blocking altered the metrics by less than 0.01, guarding against over-optimistic evaluation rather than driving these results, and the feature profiles give operators and municipal planners an instrument for screening candidate areas.

Copyrights © 2026






Journal Info

Abbrev

journal

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management Electrical & Electronics Engineering

Description

The journal focuses on publishing high-quality, original research and review articles in the field of Soft Computing, Informatics and Computer Science, emphasizing the development, application, and rigorous evaluation of Advanced Computational Methods, Artificial Intelligence (AI), Machine Learning ...