Skip to Content
Future TransportationFuture Transportation
  • Article
  • Open Access

26 August 2026

37 Pages

User-Behaviour-Based Dynamic Clustering Optimisation Algorithm for True Demand Prediction of Shared Bikes

,
,
,
,
,
and
1
Department of Electrical Engineering, City University of Hong Kong, Hong Kong SAR, China
2
Locobike, Hong Kong SAR, China
3
Department of Mechanical and Automation Engineering, The Chinese University of Hong Kong, Hong Kong SAR, China
*
Author to whom correspondence should be addressed.

Abstract

Dockless bike-sharing systems are increasingly important for sustainable urban mobility, yet they frequently suffer from spatial misallocation between supply and demand. Conventional demand forecasting relies primarily on historical trip records and therefore systematically underestimates true demand when users abandon bike-finding attempts. To address this limitation, we propose a user-behaviour-based dynamic clustering optimisation algorithm that integrates observed riding behaviour with latent unmet demand through the concept of Golden Distance—a district-adaptive service-radius threshold estimated heuristically from operational logs of successful rides and inferred unmet-demand events, serving as a behaviourally motivated proxy for aggregate walking tolerance. Building on a prior AIoT-enabled demand-prediction framework, the method first applies HDBSCAN density-based clustering to discover intrinsic demand topology, then selectively refines only those clusters that violate Golden Distance coverage constraints via an elongation-aware adaptive k-medoids formulation. District-level true demand is predicted using an XGBoost regression model and subsequently downscaled to the cluster level based on historical activity shares. Experiments on one full year of operational data from three Hong Kong districts (Tseung Kwan O, Sha Tin, and Tuen Mun) show that the proposed pipeline produces Golden-Distance-compliant service zones at a substantially finer operational resolution than the DBSCAN baseline: 86.5% to 91.6% of clustered demand points lie within the Golden Distance district of their assigned medoid, at cluster coverages of 68.0% to 78.5%, against 60.0% to 71.1% at coverages of 49.7% to 88.1% for the baseline. A resolution-fair evaluation shows that the cluster-level RMSE advantage reported previously largely reflects the finer reporting unit rather than better prediction: the same fixed district-level forecast spans a five- to seven-fold range of RMSE when scored on progressively coarser spatial units, and at a matched clustering resolution the DBSCAN baseline equals or exceeds the proposed pipeline on cluster-level metrics. Accuracy is therefore evaluated with scale-free metrics, on which the proposed method is not the more accurate of the two, and the contribution of this work is positioned on operationally deployable, behaviourally constrained spatial zoning rather than on per-cluster forecasting accuracy.

1. Introduction

1.1. Global Growth and Future Potential of Shared Mobility

Shared mobility, particularly bike-sharing systems, has become an important component of sustainable urban transportation strategies aimed at reducing congestion, lowering emissions, and improving last-mile connectivity. Numerous studies have highlighted the rapid expansion of bike-sharing systems and their role in reshaping urban mobility patterns [1,2,3]. Early bike-sharing initiatives began in the 1960s, such as the White Bicycle Plan in Amsterdam, and gradually evolved into more structured station-based systems deployed in cities including Paris (Vélib), London (Santander Cycles), and New York (Citi Bike) [3,4]. With the development of GPS-enabled bicycles and smartphone-based unlocking technologies, dockless bike-sharing systems have expanded rapidly since the mid-2010s, enabling flexible bike pickup and drop-off without fixed stations [1,2]. Recent policy reports and industry analyses further confirm that shared micromobility has become a key element in urban transportation planning and smart-city mobility strategies worldwide [2,5].
The growth in shared bike usage has been dramatic. In 2024, the global bike-sharing market was valued at approximately USD 9 billion and is projected to nearly double to USD 18.8 billion by 2034, at a compound annual growth rate of about 7.6% [6]. A complementary estimate places the global bicycle sharing market at USD 9.26 billion in 2024 with a projected rise to USD 16.44 billion by 2030, at a CAGR of 10.2% [7]. In Europe alone, ridership of dockless bikes rose by 54% in 2023 and continued to climb 58% in 2024 [8]. In the U.S. District of Columbia, dockless trips reached 8.6 million in 2024, representing a 43% year-on-year increase [9].
China, a major adopter of dockless bike-sharing, has also witnessed rapid expansion. Between 2017 and 2022, the market grew from CNY 13.03 billion to CNY 30.4 billion, reflecting a CAGR of roughly 10%. Over the same period, the user base expanded from 310 million to 460 million, a CAGR of 8.2% [10]. Moreover, about 54% of shared bike users incorporate them into multimodal trips, and 91% of those trips serve as links to public transit [10].
These numbers reflect only a portion of true demand, since many potential users may refrain from using bikes when availability is restrictive. Because of this latent demand, future growth is expected to be manyfold. Governments are prioritising micromobility to meet climate targets, reduce congestion, and enhance last-mile connectivity. The expanding terrain of smart cities, electrified fleets, and bike-friendly infrastructure further strengthens the growth trajectory of shared bike services worldwide.

1.2. Inefficiencies in Bike Allocation

Allocation of shared bikes often suffers from severe mismatches between supply and demand across urban areas. Numerous studies have documented that spatial imbalances arise when bikes accumulate in low-demand locations while shortages occur in high-demand zones, necessitating frequent redistribution operations to maintain service availability [11,12,13]. In many areas, oversupply leads to bikes idling unused, while in other zones, demand goes unmet. Because allocation is driven largely by observed trips, it fails to capture hidden unmet demand—rides not taken because no bike is available nearby or within a tolerable walking distance. Recent work shows that unserved requests leave no trace in trip records: analyses of station availability data identify unrecorded excess-demand events amounting to roughly 10% of records during high-demand periods, so that system-recorded usage understates true demand [14].
These inefficiencies directly undermine user satisfaction. Riders who experience shortages are less likely to trust shared-bike services for commuting or time-sensitive trips, and repeated failures can lead to permanent loss of users. Oversupply, on the other hand, generates tangible operational costs. Idle bikes represent underutilised capital, while rebalancing operations require dedicated vehicles, labour resources, and fuel consumption, leading to increased operational expenses and environmental impacts [11,15,16]. Optimisation of redistribution strategies has therefore become a central problem in bike-sharing system management. Repositioning idle bikes from oversupplied to undersupplied areas is one of the most significant operational cost drivers in bike-sharing systems, and poor spatial allocation of the fleet directly increases these rebalancing costs [17].
Taken together, oversupply waste, hidden unmet demand, and declining user satisfaction combine to degrade overall system performance. These challenges highlight the necessity for allocation frameworks that explicitly account for latent demand while improving spatial allocation efficiency and reducing costly redistribution operations [12,15].

1.3. Bridging Behavioural Insights and Spatial Optimisation

Existing studies on shared-bike demand prediction generally fall into three streams: clustering-based spatial analysis, user-behaviour modelling, and true-demand estimation. Clustering approaches enhance prediction stability by grouping stations or regions but often assume static spatial boundaries, limiting responsiveness to evolving demand patterns. Behavioural models have begun to account for factors such as walking tolerance and substitution effects, yet most rely on fixed parameters or opaque neural representations, which obscure interpretable behavioural dynamics. Meanwhile, true-demand research emphasises the gap between realised and unmet user intentions but rarely integrates behavioural context or dynamic spatial adaptation.
To address these gaps, this study proposes a user-behaviour-based dynamic clustering optimisation algorithm that integrates observed riding behaviour with latent unmet demand. Central to the approach is the concept of Golden Distance—a dynamically adaptive, behaviourally motivated proxy for the distance users are typically willing to walk to access a bike, varying across districts. Extending our prior IoT-driven demand prediction framework [18], the method first applies density-based clustering, then selectively refines clusters that violate Golden Distance coverage using an elongation-aware adaptive mechanism. This design yields spatial demand units that are explicitly constrained by an estimated accessibility threshold; as reported in Sections Golden-Distance Compliance and Resolution-Fair Evaluation, its demonstrated contribution is to the spatial structure of those units rather than to per-cluster forecasting accuracy. The proposed framework is validated on one full year of real operational data from LocoBike’s dockless bike-sharing platform, comprising over 362,000 ride events and 5700 inferred unmet demand events across three Hong Kong districts.

2. Literature Review

Research on demand prediction in shared-bike systems has evolved significantly over the last decade, with various methodological strands focusing on clustering-based approaches, user-behaviour-informed models, and attempts to capture latent or unmet demand—often termed “true demand.” Each of these research directions has made meaningful contributions while also leaving gaps that motivate the present study.

2.1. Clustering-Based Demand Prediction

Clustering-based demand prediction has become a widely adopted approach in shared-bike analytics, as it stabilises highly volatile demand signals and reveals latent spatial structures in mobility patterns. Zhao et al. [19] proposed a robust spatio-temporal demand-prediction model for bike-sharing that organises stations into a dynamic hierarchical structure rather than forecasting at the individual-station level, showing that hierarchical, cluster-level aggregation improves predictive robustness compared with station-level models.
Building on this idea, Chen et al. [20] proposed a dynamic cluster-based over-demand prediction framework that combines correlation-based grouping with contextual features to identify areas with high stockout risk. Hierarchical clustering strategies have also been explored to support scalable prediction. For example, Feng et al. [21] introduced a station-clustering-based hierarchical demand prediction method, while Liu et al. [22] proposed a functional-zone-based hierarchical framework for bike-sharing demand estimation and system expansion.
More recent studies integrate clustering with machine-learning-based prediction models. Mehdizadeh Dastjerdi and Morency [23] used community detection to construct spatial prediction units before deep-learning forecasting, demonstrating improved prediction accuracy under dynamic demand patterns. Similarly, Yang et al. [24] showed that graph-based representations of inter-station flows can enhance short-term bike demand prediction by capturing relational spatial structures. Wang et al. [25] further proposed a demand-driven clustering approach that dynamically groups stations according to spatiotemporal usage patterns to support system-level operations.
Despite these advances, most existing clustering frameworks rely on spatial partitions optimised primarily for prediction stability rather than user accessibility behaviour. As a result, cluster structures often remain insensitive to users’ effective walking tolerance and may fail to reflect realistic service-radius constraints. This limitation motivates the development of behaviour-aware clustering mechanisms that adapt cluster structures based on user accessibility characteristics and latent demand signals.

2.2. User-Behaviour-Aware Approaches

Recent research has increasingly emphasised the behavioural foundations of shared-bike demand, recognising that user decision-making—shaped by walking tolerance, substitution choices, and trip migration—plays a central role in demand formation. Rather than treating demand as a static spatiotemporal process, these studies explicitly model how users adapt when availability or accessibility changes.
User accessibility and travel behaviour have also been shown to strongly influence bike-sharing demand realisation. Fishman et al. [26] synthesised evidence across bike-share systems and highlighted that access convenience, user experience, and system design are central determinants of ridership formation. Zhang et al. [27] analysed dockless bike-sharing behaviour in Singapore and showed that trip generation, attraction, and spatial clustering are closely associated with the built environment and access conditions, with a large share of trips linked to metro stations. Mix et al. [28] further demonstrated that accessibility-based variables are important in explaining bike-sharing trip generation and station demand, underscoring that user access constraints should be incorporated into planning and demand modelling.
These findings suggest that demand should not be interpreted purely as a spatiotemporal count process. Instead, it is partly shaped by how easily users can access bicycles within their surrounding urban context. This behavioural accessibility perspective provides an important foundation for the Golden Distance concept proposed in this study.
Li et al. [29] made an early breakthrough by integrating behavioural similarity into spatial modelling through the IrConv+LSTM framework. Their concept of “semantic neighbours” allowed demand correlations to be captured beyond geographic distance, thereby improving generalisation across heterogeneous urban layouts. Liang et al. [30] further advanced this direction by constructing the B-MRGNN model, which jointly modelled bike-sharing, ride-hailing, and transit data to learn multimodal relationships, quantifying behavioural substitution and complementarity.
Building on these foundations, Ren et al. [31] proposed the Demand Truncation and Migration Process (DTMP), a process-based behavioural model that explicitly estimates how users reallocate trips when preferred bikes are unavailable. Unlike prior black-box models, DTMP quantified the hidden portion of “unrealised” demand, offering an interpretable mechanism for unmet-demand estimation.

2.3. True Demand and Unmet Demand Estimation

A third strand of research seeks to correct the bias inherent in modelling only realised trips by estimating true demand—the sum of observed and unmet demand when users fail to locate an available bike. This line of inquiry reframes demand prediction as a problem of censored observation rather than simple data sparsity.
Ren et al. [31] made a major conceptual advance by introducing DTMP, which explicitly modelled how user intentions are truncated by system constraints and subsequently migrate to nearby substitutes. Zhu et al. [32] extended this notion empirically, showing that revealing unmet demand enables operators to better align fleet allocation with actual user needs, especially under spatially uneven supply conditions.
Negahban [33] pioneered a simulation-based approach to infer hidden demand from censored bike-sharing observations, showing that observed pickups and drop-offs may systematically understate the underlying demand distribution when resource availability is constrained. Cui et al. [34] further deepened behavioural understanding by documenting mode-shift phenomena when bikes were absent, offering empirical evidence that unmet demand often manifests as substitution to other modes rather than complete trip disappearance.
Beyond bike-sharing, the broader operations-research literature has long treated unmet demand as a censored-demand or lost-sales estimation problem. Nahmias [35] established an early analytical foundation for estimating demand in lost-sales systems where stockouts conceal the true level of customer demand. Jain et al. [36] later showed that stock-out timing itself can provide highly informative signals for recovering demand under censoring.
Collectively, these studies establish the analytical foundation for true-demand estimation and prove its relevance for both behavioural modelling and operational optimisation. However, simulation-based approaches remain computationally intensive, while empirical approaches often depend on auxiliary data sources that are not always available. Most importantly, these models are rarely integrated with adaptive clustering or behaviour-driven spatial optimisation, leaving true-demand estimation disconnected from the spatial decision structures needed for deployment and rebalancing.

2.4. Toward an Integrated Framework for Demand Prediction

In summary, clustering methods provide stability but overlook dynamic behavioural changes and latent demand. Behaviour-aware approaches introduce valuable user-centric modelling but often lack interpretability and dynamic adaptability. True-demand estimation offers a conceptual advance by recognising unmet demand but is typically constrained by computational cost and weak integration with other approaches.
These observations highlight the need for an integrated framework that unifies clustering, behavioural modelling, and latent demand estimation. In particular, the notion of a dynamic walking threshold—what we define as the “Golden Distance”—remains underexplored. Most prior work assumes static tolerance levels, while real-world willingness to walk varies by context. By combining density-based clustering with dynamic, behaviour-informed thresholds and explicit latent-demand estimation, this study aims to address these limitations and provide a more accurate and actionable representation of shared-bike demand.
The literature synthesised above is concentrated in the period 2016–2024. Since 2025, a fast-moving body of work has begun applying transformer-based sequence models to capture long-range temporal dependencies in shared-mobility demand and federated-learning approaches to enable privacy-preserving demand modelling across multiple operators or cities without pooling raw trip data. Both directions are potentially complementary to the Golden Distance framework proposed here: transformer-based sequence models could replace or augment the district-level XGBoost predictor (Section 3.4), while federated learning could allow Golden Distance parameters to be estimated jointly across operators while keeping each operator’s operational logs local. A systematic, verified review of this very recent literature was not carried out for the present revision and is left as a direction for future work, together with an empirical assessment of how well these approaches integrate with the clustering framework proposed here. Table 1 summarises the representative demand-prediction studies discussed in this section and their relation to the present study.
Table 1. Summary of representative demand-prediction studies discussed in Section 2 and their relation to the present study.

3. Proposed Method

This study extends our previously published demand-prediction framework [18] by introducing a behaviour-grounded spatial optimisation layer designed to align clustering structures with real user accessibility constraints. The central design principle of the proposed framework is the concept of Golden Distance (GD), a heuristically estimated service-radius proxy for the distance users are willing to walk to access a shared bike. Unlike traditional clustering parameters that are purely geometric or density-driven, Golden Distance is estimated heuristically from operational proxies of user behaviour and is intended to approximate aggregate accessibility constraints in dockless bike-sharing systems. By embedding this behavioural constraint into the clustering process, the proposed algorithm generates spatial partitions that are both data-driven and operationally meaningful.
Figure 1 illustrates the overall system framework of the proposed method. The framework extends the baseline demand-prediction pipeline in [18] by integrating Golden Distance-guided clustering optimisation into the demand forecasting workflow. The system consists of five major phases: (1) ride records, inferred unmet demand events, and contextual information are integrated to construct the true-demand dataset; (2) district-level demand prediction is performed using an XGBoost [37] model trained on temporal and environmental features; (3) the Golden Distance is estimated from behavioural observations and used to guide spatial clustering through HDBSCAN [38] topology discovery followed by adaptive k-medoids refinement; (4) district-level predictions are downscaled to cluster-level demand based on historical activity shares; and (5) the proposed framework is evaluated and compared with a baseline DBSCAN-based [39] clustering approach under an identical prediction pipeline.
Figure 1. Overall pipeline of the proposed User-Behaviour-Based Dynamic Clustering Optimisation Algorithm.

3.1. Behavioural Modelling via Golden Distance

A central contribution of this work is the introduction of Golden Distance, a behaviour-adaptive spatial threshold that approximates users’ aggregate willingness to walk in order to access a shared bike. Unlike conventional clustering radii that are geometrically or statistically defined, Golden Distance is estimated from two aggregate behavioural signals—the mean line-of-sight distances of successful rides and of heuristically inferred unmet-demand events—and is therefore a proxy constructed from operational logs rather than a directly observed walking threshold (Section 3.1.2).
When a user opens a bike-sharing application, two types of behavioural events may occur: a successful rental event or an unsuccessful attempt in which no bike is rented. Both outcomes reveal information about users’ walking tolerance. Figure 2 illustrates the behavioural interpretation of these two cases.
Figure 2. Behavioural interpretation of a successful rental event and an unsuccessful attempt where no bike is rented.
In a successful ride event, two distances are defined:
Throughout, LOS denotes line-of-sight distance and WD denotes walking distance (see Abbreviations).
  • Line-of-sight distance of ride event  L O S r i d e : the straight-line distance between the user’s app-open location and the rented bike location.
  • Walking distance of ride event  W D r i d e : the actual walking path distance from the user to the rented bike.
In an unmet demand event, two distances are defined analogously:
  • Line-of-sight distance of unmet-demand event  L O S u n m e t : the straight-line distance between the user location and the nearest available bike.
  • Walking distance of unmet-demand event  W D u n m e t : the estimated walking path distance from the user to the nearest available bike.
The unmet-demand case reflects situations where the nearest bike is beyond the user’s acceptable walking tolerance. Therefore, combining ride events and unmet-demand events allows for the estimation of a behavioural threshold that captures realistic walking willingness.
For each district d , let L O S ¯ d r i d e denote the average line-of-sight distance of successful ride events and L O S ¯ d u n m e t the average line-of-sight distance of unmet demand events. Golden Distance is then defined as follows:
G D d ( α ) = α ⋅ L O S ¯ d u n m e t − L O S ¯ d r i d e + L O S ¯ d r i d e ,
where α ∈ [ 0 , 1 ] is a behavioural scaling parameter capturing elasticity in walking tolerance. Smaller values emphasise conservative access preferences, while larger values reflect the persistence observed in unmet-demand events. Golden Distance thus represents a behavioural service-radius constraint, rather than an area-packing or density threshold, and provides a principled way to align spatial clustering with realistic user accessibility.
Equation (1) presupposes that the mean line-of-sight distance of unmet-demand events exceeds that of successful rides. Section 4.3.2 tests this ordering directly for the three study districts: it holds in Tseung Kwan O and Tuen Mun, but in Sha Tin, the two means are statistically indistinguishable, so the mean-based premise receives only partial empirical support there, even though the median ordering remains consistent with the hypothesis (Section 4.3.2). Where the mean ordering does not hold, Equation (1) yields a Golden Distance lying between two statistically indistinguishable means; the resulting value is retained as a district-level service radius, but it is not given the interpretation of an extension of the ride distance towards a tolerated walking distance in that district.

3.1.1. Selection of the Behavioural Scaling Parameter α

The behavioural scaling parameter α in Equation (1) is selected via a grid search over the interval [0.5, 1.0] in increments of 0.1. For each candidate value, the resulting Golden Distance is propagated through the clustering and downstream XGBoost prediction pipeline, and α is chosen as the value that minimises validation-set RMSE within each study district. This procedure ties the choice of α directly to predictive performance rather than to an arbitrary behavioural assumption. Smaller values of α place more weight on the mean line-of-sight distance of successful rides, yielding a more conservative (smaller) Golden Distance, whereas larger values shift the threshold towards the mean distance observed in unmet-demand events. A full sensitivity analysis reporting RMSE as a function of α for each district, together with guidance on transferring α across different urban contexts, is identified in Section 5.5 as a priority for expanded validation beyond the grid search reported here.

3.1.2. Scope and Interpretation of Golden Distance as a Behavioural Proxy

It is important to state precisely what Golden Distance does and does not represent. The unmet-demand events used to estimate GDd are inferred from operational proxies (unlock timeouts, repeated attempts, zero-availability sessions, and short sessions; see Section 4.3) and are not direct confirmations that a user declined to walk to a specific bike because it exceeded a personal walking tolerance. A session that ends without a rental can also reflect causes unrelated to distance, including bike condition, fare or payment issues, application errors, weather, an abandoned trip, or a switch to another travel mode. Because these confounds cannot be fully separated using the operational logs available for this study, Golden Distance is best understood as a heuristic, distance-based proxy for aggregate walking tolerance at the district level, rather than a directly observed, individual-level behavioural threshold. This more cautious interpretation is adopted throughout the remainder of the manuscript, including in the Discussion and Conclusions (Section 5.4 and Section 6).
Relatedly, Equation (1) presupposes that the mean line-of-sight distance of unmet-demand events exceeds that of successful rides in each district, i.e., that the average LOS of unmet-demand events is larger than the average LOS of ride events. This ordering is a working assumption rather than a guaranteed property: a user may decline a nearby bike for reasons unrelated to distance or may walk further than usual when bikes are scarce, either of which could narrow or reverse the gap between the two averages. Where this assumption does not hold for a given district or period, Equation (1) would no longer position the Golden Distance between the two means, and its interpretation as a behavioural service radius would need to be reconsidered for that case. The district-level distributions of these two distances, together with a direct verification of the ordering assumption, are reported in Section 4.3.2. The ordering is confirmed on group means in Tseung Kwan O and Tuen Mun; in Sha Tin, the two means are statistically indistinguishable, and the consequences for the interpretation of Equation (1) in that district are stated in Section 3.1, Section 4.3.2 and Section 5.5.

3.2. District-Level Demand Topology Discovery via HDBSCAN

3.2.1. Motivation for Density-Based Topology Discovery

Urban bike demand exhibits strong heterogeneity across districts, influenced by land-use patterns, transport infrastructure, and population density. Prior clustering approaches that rely on a single global distance parameter tend to perform poorly across such heterogeneous environments, either over-fragmenting dense areas or collapsing sparse regions into excessively large clusters. To address this issue, the proposed algorithm employs HDBSCAN [38] as a topology-discovery mechanism at the district level.

3.2.2. Why HDBSCAN Instead of DBSCAN

HDBSCAN is preferred over DBSCAN for three fundamental reasons. First, HDBSCAN relaxes the assumption of a single global density scale by constructing a hierarchy of clusters across multiple density levels, enabling the simultaneous identification of dense commercial zones and sparse residential areas—an ability that DBSCAN lacks due to its reliance on a fixed ε parameter. Second, HDBSCAN provides explicit noise modelling based on cluster stability, whereby demand points that fail to form persistent density structures are treated as noise, reducing spurious clusters arising from sporadic or exploratory user behaviour. Third, clusters are selected based on their persistence across density thresholds, yielding spatial partitions that are robust to sampling variability and small perturbations in the underlying demand distribution.
Beyond these algorithmic considerations, HDBSCAN has been applied in comparable heterogeneous-density spatial and mobility settings. It has been used for large-scale clustering of ship AIS trajectories, where vessel density varies sharply between port approaches and open water [40]; for the identification of road-traffic accident black spots in a GIS-based two-phase pipeline over heterogeneous urban corridors [41]; and for the analysis of urban taxi movements, in which hourly trajectory subsets are clustered to extract demand structure [42]. It has further been evaluated among the most effective approaches for multi-density urban hotspot detection, a setting whose explicit motivation is that a single global density threshold cannot represent all hotspots within one city [43]. The algorithmic formulation and the implementation used here are due to Campello et al. [38] and McInnes and Healy [44,45]. These studies support HDBSCAN as a well-founded choice for variable-density point patterns of the kind analysed here; they are not offered as evidence that it is superior on the present dataset, and we note that one of them reports a competing clustering method outperforming HDBSCAN on a silhouette criterion for taxi trajectory data [42].
These reasons motivate HDBSCAN specifically in relation to DBSCAN, which is the baseline against which the proposed framework is compared throughout this study. We note, however, that other variable-density methods—including OPTICS, adaptive-bandwidth DBSCAN variants, and locally calibrated density-based clustering—could plausibly serve the same topology-discovery role, and heterogeneous demand density on its own does not uniquely single out HDBSCAN among them. Because HDBSCAN is applied separately within each district after the study area has already been partitioned administratively, it is also possible that much of the cross-district density heterogeneity motivating its use is already resolved by that partitioning and that within-district multi-density structure is comparatively modest. Establishing this quantitatively—for example, through cluster stability, compactness, or noise-sensitivity comparisons against at least one competing variable-density method—was beyond the scope of the present dataset and pipeline. We therefore present the choice of HDBSCAN as a considered design decision rather than an empirically settled comparison and identify a head-to-head evaluation against alternative variable-density methods as a priority for future work (Section 5.5).
The HDBSCAN hyperparameters min_cluster_size and min_samples are likewise set by a fixed, automated, size-relative procedure rather than by district-specific tuning. For each district, base values are set as fixed fractions of that district’s number of demand points n (min_cluster_size = 2% of n, with a floor of 10; min_samples = 1% of n, with a floor of 5), and both base values are then swept over the same 5 × 5 grid of multipliers {0.5, 0.75, 1.0, 1.25, 1.5} applied independently to each. Among the resulting 25 candidate combinations, the one that minimises the noise ratio is selected. The base fractions, the floors, the multiplier grid, and the selection objective are identical in Tseung Kwan O, Sha Tin, and Tuen Mun; as with the behavioural scaling parameter α (Section 3.1.1), no per-district hyperparameter constant is set manually anywhere in the pipeline.

3.2.3. Single-Run (Non-Recursive) Design

HDBSCAN is executed once per district and is not applied recursively. This design choice is deliberate: HDBSCAN’s role in the proposed framework is to uncover the natural density structure of demand, not to enforce cluster compactness. Recursive application tends to fragment clusters along marginal density variations, which often reflect sampling noise rather than meaningful behavioural distinctions. In our piloting of the framework, repeated HDBSCAN runs did not appear to yield additional stable sub-clusters, though this observation has not been substantiated with a formal sensitivity analysis and should be read as a design rationale rather than an established empirical result; we identify this as an item for future verification (Section 5.5), while continuing to use behaviour-agnostic demand regions.

3.3. Golden-Distance-Constrained Refinement via Adaptive k-Medoids

Although HDBSCAN effectively reveals the intrinsic density structure of demand points, the resulting clusters are not guaranteed to satisfy the Golden Distance service-radius constraint. In practice, density connectivity may group geographically extended demand regions into a single cluster whose spatial extent exceeds users’ walking tolerance. When this occurs, a single centroid cannot adequately represent the service coverage of the cluster. Figure 3 illustrates a representative example of such a situation.
Figure 3. Example of an oversized cluster that violates the Golden Distance constraint. (Left): a demand cluster discovered by HDBSCAN whose spatial extent significantly exceeds the Golden Distance service radius (only 23 out of 5813 demand points are covered, a coverage of approximately 0.4%). (Right): the same cluster after refinement using adaptive k-medoids, where multiple sub-clusters collectively cover nearly all demand points. In both panels, the dots denote demand points (in the right panel, colours distinguish the k-medoids sub-clusters), black markers denote cluster centroids, and the red dashed circles mark the district’s Golden Distance service radius; the background is a standard OpenStreetMap basemap on which Hong Kong place names appear bilingually in English and Chinese.

3.3.1. Cluster Geometry and Elongation Measurement

Consider a demand cluster c identified by HDBSCAN, containing N demand points with projected spatial coordinates x i = ( x i , y i ) , i = 1 , … , N . Let Σ c ∈ R 2 × 2 denote the sample covariance matrix of these coordinates:
Σ c = C o v ( x 1 , … , x N ) .
Let λ 1 ≥ λ 2 > 0 be the eigenvalues of Σ c , representing the principal variances along the major and minor spatial axes of the cluster, respectively. To quantify the degree of anisotropy, we define a cluster elongation index:
E c = 1 − λ 2 λ 1 ,   E c ∈ [ 0 , 1 ) .
E c ≈ 0 indicates a near-isotropic (approximately circular) cluster, while E c → 1 indicates a highly elongated, corridor-like cluster. This elongation index captures whether spatial growth occurs uniformly in two dimensions or primarily along a single dominant axis.

3.3.2. Shape-Aware Scaling Exponent

Let L c denote the characteristic spatial extent of cluster c , defined as the diameter of the cluster, i.e., the maximum pairwise Euclidean distance between any two demand points assigned to it. For computational efficiency, this is evaluated over the vertices of the cluster’s convex hull, which is guaranteed to contain the point pair attaining the maximum distance; the two descriptions therefore refer to the same quantity rather than to alternative choices. To avoid systematic over-fragmentation of elongated clusters, the number of sub-clusters is not scaled quadratically with area. Instead, we define a shape-adaptive scaling exponent:
α c = c l i p ( 2 − E c ,   1 ,   2 ) ,
where c l i p ( ⋅ ) bounds the exponent within [ 1 , 2 ] . This formulation yields α c ≈ 2 for compact, isotropic clusters and α c ≈ 1 for highly elongated clusters. Figure 4 illustrates the relationship between cluster morphology and the adaptive scaling exponent.
Figure 4. Illustration of cluster morphology and its effect on the adaptive scaling exponent α c . For compact clusters ( E c ≈ 0 ), the exponent approaches 2, resulting in quadratic scaling; for highly elongated corridor-like clusters ( E c → 1 ), it approaches 1, resulting in approximately linear scaling.

3.3.3. Adaptive k Formula

Given Golden Distance G D d for district d , the number of sub-clusters for cluster c is determined as follows:
k c = L c G D d α c .
This expression generates the minimum number of medoids required to ensure that each resulting sub-cluster has an effective spatial radius on the order of the Golden Distance. Once k c is determined, k-medoids clustering [46] is applied independently within each oversized cluster c , yielding sub-clusters whose medoids correspond to actual demand points. This ensures spatial robustness, interpretability, and direct operational relevance.
The adaptive k formulation is designed to address a fundamental mismatch between geometric clustering assumptions and real-world demand morphology. Conventional approaches implicitly assume two-dimensional isotropic growth, leading to quadratic scaling of k with spatial extent. However, in shared-bike systems, demand clusters are often constrained by road networks, coastlines, pedestrian corridors, and linear transit interchanges. In such cases, cluster expansion occurs predominantly along one dimension. Applying area-based scaling in these scenarios results in excessive fragmentation and artificial micro-clusters that do not reflect behavioural accessibility.
We emphasise that the adaptive-k formula, the elongation-to-exponent mapping αc = clip(2 − Ec, 1, 2), and the clipping interval [1, 2] are proposed as an empirical design heuristic rather than a derivation from first principles. The formula is motivated by the geometric intuition that isotropic clusters require sub-cluster counts scaling with the square of their diameter relative to Golden Distance, whereas elongated, corridor-like clusters require counts scaling closer to linearly; we do not claim that the resulting kc is provably the minimum number of medoids needed to satisfy the Golden Distance constraint in general. The true minimum depends on cluster geometry—for example, curved, ring-shaped, or branched morphologies—in ways that the extent Lc and elongation Ec alone do not fully capture, and other functional forms for the elongation-to-exponent mapping are not ruled out by the analysis in this paper. A systematic sensitivity analysis of the adaptive-k formulation across a wider range of cluster morphologies and parameter settings, and a comparison against alternative mappings, is identified in Section 5.5 as necessary follow-up work before the formulation can be regarded as validated beyond the three districts studied here.

3.4. True-Demand Prediction via XGBoost

Once clustering is finalised, demand prediction follows the same methodology as in the baseline framework [18]. An XGBoost [37] regression model is trained using temporal, weather, and historical demand features to predict district-level true demand. Predicted district-level demand is subsequently downscaled to the cluster level based on each cluster’s historical activity share. This hierarchical strategy preserves temporal coherence at the district scale while capturing spatial heterogeneity at the cluster scale, without introducing data sparsity issues.
XGBoost is retained unchanged from the baseline framework [18] by deliberate design choice because the clustering module is the only component varied across experiments (Section 4.4), holding the predictive model fixed allows any difference in RMSE between the baseline and proposed method to be attributed to the clustering strategy rather than to changes in the forecasting model itself. The complete feature set comprises three groups: temporal features (hour of day, day of week, month, and a binary public-holiday indicator); weather features (ambient temperature, precipitation, and wind speed, obtained from the nearest weather station for each district); and historical-demand features (lagged district-level demand at a 7-day (previous-week) lag). Model hyperparameters (tree depth, learning rate, number of estimators, and regularisation terms) were carried over unchanged from [18] and were not re-tuned separately for the baseline and proposed pipelines, again to preserve a like-for-like comparison.

Training-Testing Procedure and Temporal Validation

To make the evaluation procedure reproducible, the exact training and test partitions are stated here. The study period is 1 January 2024 to 31 December 2024 inclusive; records are extracted for timestamps greater than or equal to 1 January 2024 00:00 and strictly earlier than 1 January 2025 00:00, identically for all three districts. Demand is aggregated to hourly records, and the partition is defined by day of month rather than by a single cut-off date: all hours falling on days 1 to 25 of each month form the training set, and all hours falling on days 26 to 31 of each month form the held-out test set. The same partition is applied identically to the baseline and to the proposed pipeline, so both are scored on exactly the same test hours. In the case-conditioned runs reported in Sections Golden-Distance Compliance and Resolution-Fair Evaluation (rainfall-free, workday, peak-hour case), the district-level model is fitted on 2767 hourly records in Sha Tin, 2921 in Tseung Kwan O, and 3008 in Tuen Mun.
Three properties of this design are disclosed so that the procedure can be judged as well as reproduced. First, all lagged predictors are strictly backward-looking by exactly seven days—the previous-week demand count, rainfall, working-day, and holiday indicators—so that for a test hour falling on days 26 to 31, the lagged source hour falls on days 19 to 24 of the same month and is always earlier in time than the target; no feature draws on information later than the timestamp it describes. Second, the design is a held-out-days split rather than a forward-chaining chronological split: because days 1 to 25 of every month are used for training, the training set contains calendar timestamps later than the test hours of earlier months. This is stated explicitly here, and the evaluation is not described anywhere in this manuscript as a chronological forecasting test. Third, the clustering structures and the Golden Distance values are estimated on the full study-period point set rather than on the training partition alone. The predictive model is fitted only on the training partition, so the separation of training and test hours for the forecast itself is unaffected, but the spatial units on which predictions are reported are informed by the full study period; this is recorded as a residual limitation in Section 5.5. Repeated or cross-validated trials to support statistical significance testing of the reported differences likewise remain future work (Section 5.5).

3.5. Algorithmic Summary

Algorithm 1 presents the pseudocode for the complete User-Behaviour-Based Dynamic Clustering Optimisation Algorithm.
Algorithm 1: User-Behaviour-Based Dynamic Clustering Optimisation Algorithm
1: for each district d  do
2:       Compute Golden Distance G D d from successful and failed user search behaviour—(Equation (1))
3:       Run HDBSCAN once on demand points to extract initial demand clusters
4:       for each cluster c  do
5:             Compute cluster extent L c
6:             if  L c ≤ G D d  then
7:                   Keep cluster c unchanged
8:                   else
9:                   Compute covariance matrix Σ c of coordinates in c
10:                   Compute eigenvalues λ 1 ≥ λ 2
11:                   Compute elongation E c = 1 − λ 2 / λ 1                    (Equation (3))
12:                   Compute adaptive exponent α c = c l i p ( 2 − E c , 1 ,2)                   (Equation (4))
13:                   Compute adaptive cluster count k c = ⌈ ( L c / G D d ) α c ⌉                    (Equation (5))
14:                   Apply k-medoids to split cluster c into k c sub-clusters
15:             end if
16:       end for
17:       Train XGBoost model to predict district-level true demand
18:       Predict district-level demand y ^ d
19:       for each final cluster c  do
20:             Compute historical activity share w c
21:             Downscale: y ^ c = w c ⋅ y ^ d
22:       end for
23: end for
By explicitly separating density discovery from behavioural constraint enforcement, the proposed algorithm produces spatial clusters that are explicitly constrained by an estimated distance-based accessibility threshold, rather than by density co-location alone. We use this more cautious phrasing deliberately: the behavioural element captured here is a distance-based walking-tolerance proxy (Section 3.1.2), not a complete model of how people physically reach a bike, which would additionally involve pedestrian routing, network barriers, slope, weather, trip purpose, individual heterogeneity, bike condition, and modal substitution—factors not modelled in the present study (Section 5.5). With this qualification, the design constitutes a methodological advance over clustering-based demand-prediction frameworks that do not incorporate any accessibility constraint.

3.6. Computational Considerations

HDBSCAN is executed once per district and has a typical time complexity of O(n log n) in the number of demand points n for standard hierarchical density-estimate implementations. The adaptive k-medoids refinement is applied only to clusters that violate the Golden Distance constraint; for each such cluster c, k-medoids has complexity O(kc · nc · I) per run, where nc is the number of points in the cluster and I is the number of iterations to convergence, so the additional cost scales with the number and size of oversized clusters rather than with the full dataset. The grid search over α (Section 3.1.1) multiplies this cost by the number of candidate α values evaluated, but each candidate can be evaluated independently and is therefore straightforward to parallelise across districts and candidate values. A full empirical wall-clock benchmark of runtime per district and its scaling behaviour as data volume grows was not the focus of the present study; providing such a benchmark and comparing it against the computational cost of the DBSCAN baseline is identified in Section 5.5 as a useful addition for practitioners considering operational deployment.

3.7. Relationship to the Baseline Framework [18]

The present study extends the AIoT-enabled demand-prediction framework introduced in [18]. The original framework used DBSCAN for spatial clustering, with district-level demand predicted directly from ride records and no explicit treatment of unmet demand; cluster-level predictions were obtained by downscaling district-level forecasts according to each cluster’s historical activity share. The present study extends this pipeline in three respects: (i) it augments the demand signal with heuristically inferred unmet-demand events (Section 4.3); (ii) it replaces DBSCAN with a two-stage clustering procedure—HDBSCAN topology discovery followed by Golden-Distance-constrained adaptive k-medoids refinement (Section 3.2 and Section 3.3); and (iii) it introduces Golden Distance itself as an explicit, behaviourally motivated service-radius construct that did not exist in the earlier framework (Section 3.1). The district-level XGBoost prediction model and the activity-share downscaling step are retained unchanged from [18], as described in Section 3.4, so that the comparison in Section 4.4 isolates the clustering strategy as a whole from the predictive model, though not the individual contribution of each new component within that clustering strategy (Section 5.5).

4. Experimental Setup

4.1. Experimental Objective and Validation Strategy

The experimental design is constructed to rigorously evaluate whether the user-behaviour-based dynamic clustering optimisation algorithm provides measurable advantages over conventional density-based clustering in true-demand prediction. Specifically, the experiments are designed to test three core hypotheses:
Predictive Accuracy Hypothesis. Clusters aligned with Golden Distance constraints reduce cluster-level demand variance and therefore improve prediction accuracy (lower RMSE) compared with DBSCAN-based clustering.
Spatial Validity Hypothesis. Enforcing centroid-based service-radius constraints produces spatial partitions that better reflect real service accessibility, resulting in improved demand-point retention and structurally coherent clusters.
Morphological Robustness Hypothesis. The proposed algorithm generalises across heterogeneous urban morphologies without district-specific tuning, demonstrating scalability and adaptability.
To limit confounding from the predictive model, all downstream forecasting components are held constant across experiments, and the clustering module is the only component replaced; this ensures that any observed performance differences are not attributable to changes in the prediction model itself. We note, however, that the clustering module comprises several interacting design choices—HDBSCAN topology discovery, the Golden Distance constraint, adaptive k-medoids refinement, and the resulting change in cluster granularity—and the present comparison does not separate their individual contributions (see the discussion in Section 5.2 and the Limitations in Section 5.5). The comparison therefore isolates the overall clustering strategy from the prediction model, but not the specific mechanism within that strategy responsible for any observed improvement.

4.2. Study Areas and Datasets

To comprehensively evaluate the robustness and adaptability of the proposed Golden Distance (GD) framework, three representative districts in Hong Kong were selected: Tseung Kwan O, Sha Tin, and Tuen Mun. These districts exhibit distinct urban morphologies, population densities, and mobility characteristics, thereby forming a heterogeneous testbed for algorithm validation.
Tseung Kwan O. Tseung Kwan O (TKO) is a planned new town characterised by high-density residential clusters, waterfront promenades, and structured cycling infrastructure. Demand patterns are relatively concentrated, with clear residential-to-commercial commuting flows. The spatial distribution of trips tends to form compact, high-density clusters.
Sha Tin. Sha Tin exhibits a mixed land-use pattern, combining residential estates, riverside cycling corridors, and commercial centres. The district features elongated spatial structures along the Shing Mun River, resulting in corridor-shaped demand clusters. This morphology is particularly suitable for testing the adaptive k mechanism of Golden Distance.
Tuen Mun. Tuen Mun represents a relatively lower-density and more spatially dispersed district. Demand hotspots are scattered and often separated by industrial or coastal zones, producing irregular cluster shapes and higher noise proportions.
The dataset consists of one full year of operational records (January–December 2024) collected from LocoBike’s dockless bike-sharing platform, comprising 362,086 ride events and 5744 inferred unmet demand events in total. The data include trip start/end timestamps, GPS coordinates (projected to metric space), anonymised user IDs, bike IDs, and trip status logs (ride success, unlock failure, timeout, etc.). Using a full-year dataset mitigates seasonal bias by covering a full seasonal cycle across varying weather, weekday/weekend, and holiday conditions; we do not, however, treat this as evidence of year-over-year stability, which would require multi-year data (see Section 4.3.1 and the temporal-scope discussion in Section 5.5). All spatial coordinates were transformed into a projected coordinate system (metres) to allow precise Golden Distance computation.

4.3. Feature Engineering

The core objective of feature engineering is to estimate True Demand, defined as the sum of ride events and statistically inferred unmet demand events.
A ride event is defined as a successfully unlocked and completed trip with valid GPS origin and destination coordinates. We removed records with missing timestamps, abnormal duration ( < 1 min or > 24 h), or invalid geolocation.
Unmet demand refers to user attempts that did not result in successful rides due to insufficient bike availability or operational constraints. Since dockless systems do not explicitly record “failed demand,” we applied heuristic rules to infer unmet demand events from system logs. Table 2 summarises the filtering criteria applied.
Table 2. Filtering criteria for inferring unmet demand events from system logs.

4.3.1. Validity and Limitations of Unmet-Demand Inference

The filtering rules in Table 2 are heuristic proxies for unmet demand rather than directly validated ground-truth labels; the dataset does not include independent confirmation (e.g., user surveys or controlled A/B tests) of why a given session ended without a rental. Consequently, some inferred unmet-demand events may reflect causes other than excessive walking distance, such as bike condition, payment failure, application errors, adverse weather, or an abandoned trip. A validation exercise comparing inferred unmet-demand events against an independent ground-truth source and a sensitivity analysis showing how the reported results change under stricter or looser inference thresholds were not available within the scope of the present dataset and are identified in Section 5.5 as an important direction for strengthening confidence in the true-demand construct.
The samples of successful ride events and inferred unmet-demand events are also highly imbalanced (362,086 versus 5744 records overall), and the two groups plausibly differ systematically in time of day, weather, location, and user mix, in addition to distance. The Golden Distance formulation in Equation (1) does not require paired observations and remains computable under this imbalance, but the observed gap between the mean line-of-sight distances of the two groups cannot, on the basis of the analysis in this paper alone, be attributed to walking tolerance in isolation from these other contextual factors. Reporting district-level sample sizes and distance distributions for both groups, attaching uncertainty estimates to the resulting Golden Distance values, and adjusting for contextual confounds through stratification, matching, or regression, are identified as necessary steps for future work (Section 5.5).

4.3.2. District-Level Distance Distributions and Golden Distance Uncertainty

Section 3.1.2 and Section 4.3.1 identified two properties of the Golden Distance formulation that had not been tested directly: the ordering assumed by Equation (1)—namely that the mean line-of-sight distance of unmet-demand events exceeds that of successful rides—and the uncertainty of the resulting district-level estimates. This section reports both. All statistics in this section are computed on all recorded ride events and all inferred unmet-demand events over the full study period (1 January 2024 to 31 December 2024); distances are line-of-sight distances in metres. Table 3 reports the district-level sample sizes and descriptive statistics of these distances.
Table 3. Sample sizes and descriptive statistics of the line-of-sight distances of successful ride events (LOS_ride) and inferred unmet-demand events (LOS_unmet), by district. Full study period, all cases.
Unmet-demand counts are the events with a valid computed distance; 2466, 2022 and 1256 unmet-demand events were recorded in Tseung Kwan O, Sha Tin, and Tuen Mun, respectively. Figure 5 shows the corresponding distributions, and Table 4 reports the verification of the ordering assumed by Equation (1).
Figure 5. Distributions of line-of-sight distances for successful ride events and inferred unmet-demand events, by district (full study period, all cases). Densities are normalised within each group, so the two profiles are comparable in shape despite the large difference in sample size. Dashed vertical lines mark the two group means; the dotted line marks the estimated Golden Distance at the behavioural scaling parameter selected for that district.
Table 4. Verification of the ordering assumed by Equation (1), namely mean LOS_unmet greater than mean LOS_ride, by district. Confidence intervals for the difference are bootstrap percentile intervals from 10,000 resamples of both event groups. Full study period, all cases.
The ordering holds decisively for group means in Tseung Kwan O and Tuen Mun. In Sha Tin, it does not: the two means are statistically indistinguishable, with a difference of −1.33 m with a 95% confidence interval, [−2.95, +0.30] m, and includes zero (Welch p = 0.107). The Mann–Whitney test rejects distributional equality in Sha Tin (p = 1.4 × 10−23), indicating that the two distributions differ but not the direction of the difference. The median ordering remains consistent with the hypothesis in Sha Tin (24.98 m for rides against 35.98 m for unmet-demand events), while the mean-based premise on which Equation (1) rests receives only partial empirical support in this district. Two further consequences follow. First, Sha Tin Equation (1) interpolates between two statistically indistinguishable means, so the α-interpolation is almost inert there: the estimated Golden Distance moves only from 45.85 m to 45.19 m across the whole grid α in [0.5, 1.0]. Second, the resulting value remains usable as a district-level service radius, but it is not interpreted as an extension of the ride distance towards a tolerated walking distance in Sha Tin (Section 3.1). The divergence between the mean and median orderings in Sha Tin is explained by the heavy right tail of the ride-distance distribution (SD 50.15 m against 36.59 m for unmet demand): a small number of very long rides pull the ride-distance mean upward without shifting the bulk of the distribution. Mean-based estimation under heavy tails is recorded as a limitation in Section 5.5. Table 5 reports the resulting Golden Distance estimates with bootstrap 95% confidence intervals.
Table 5. Estimated Golden Distance with bootstrap 95% confidence intervals, at the behavioural scaling parameter α selected by each district’s experiment. Intervals are percentile intervals from 10,000 resamples of both event groups. Full study period, all cases.
The width of each interval is dominated by the small inferred unmet-demand samples (1255 to 2465 events against 42,491 to 182,858 ride events), consistent with the imbalance discussed in Section 4.3.1. The intervals nevertheless remain narrow relative to the point estimates, at approximately ±1 to ±2 m, or 2% to 4% of the estimate, which supports the use of a single district-level Golden Distance while making its precision explicit. These intervals quantify sampling uncertainty only; they do not account for the contextual confounding to which the inferred unmet-demand events are subject (Section 4.3.1) and matching or regression adjustment for such confounders is retained as future work (Section 5.5). More generally, the distributional results reported here quantify—but do not eliminate—the interpretive caveats discussed in Section 3.1.2 and Section 4.3.1: the two event groups may still differ in contextual factors beyond distance, and the ordering verified here is an aggregate property of the study area rather than a guaranteed behavioural law.

4.4. Baseline Clustering Method and Prediction Model

To ensure a fair and controlled comparison, the experimental framework follows the methodology established in our previously published study [18]. The baseline system adopts a two-stage pipeline consisting of spatial clustering and district-level demand prediction with subsequent downscaling.
To isolate the impact of clustering strategy, all downstream processes remain identical across experiments: the same feature engineering pipeline, the same XGBoost [37] architecture and hyperparameters, the same district-level prediction procedure, the same downscaling mechanism, and the same training–testing split and evaluation metrics. The only component replaced is the clustering module:
DBSCAN requires two parameters, ε (neighbourhood radius) and min_samples (minimum neighbourhood size), which jointly determine its density threshold. In this study, ε and min_samples were tuned separately for each district rather than fixed globally, using the standard k-distance elbow-point heuristic (ε set at the elbow of the sorted k-nearest-neighbour distance curve for each district, with min_samples set relative to local point density), so that the baseline is not handicapped by an inappropriate global parameterisation. The specific tuned ε and min_samples values used for Tseung Kwan O, Sha Tin, and Tuen Mun are reported in Table 6 so that the baseline configuration is fully reproducible.
Table 6. DBSCAN baseline parameters (neighbourhood radius ε and min_samples) tuned separately for each district.
  • Baseline: DBSCAN [39] clustering → district-level XGBoost prediction → downscaling to clusters.
  • Proposed method: User-Behaviour-Based Dynamic Clustering Optimisation Algorithm → district-level XGBoost prediction → downscaling to clusters.

4.5. Evaluation Metrics

To evaluate the effectiveness of the proposed method against the DBSCAN baseline, three core metrics are adopted.
Root Mean Square Error (RMSE). RMSE measures the accuracy of cluster-level demand prediction after district-level forecasting and downscaling:
R M S E = 1 N ∑ i = 1 N ( D i − D ^ i ) 2 ,
where D i and D ^ i denote the actual and predicted demand for cluster i , respectively. Lower RMSE indicates higher prediction accuracy and better operational reliability.
Demand values in this formula are expressed on the normalised scale used internally by the demand-prediction pipeline (cluster-level trip counts normalised relative to each district’s historical demand volume); the RMSE values reported in Section 5.2 are therefore unitless quantities on this normalised scale rather than raw trip counts and should be interpreted comparatively—relative to one another and to the baseline—rather than as an absolute count of mispredicted trips.
Noise Ratio. Noise ratio quantifies the proportion of demand points labelled as noise during clustering:
Noise   Ratio = Number   of   noise   points Total   demand   points .
A lower noise ratio reflects better spatial coverage and fewer discarded demand events.
A “noise point” in this study refers to any demand point—whether originating from a successful ride event or an inferred unmet-demand event—that is not assigned to any cluster by the clustering algorithm once HDBSCAN’s initial partitioning and, where applicable, adaptive k-medoids refinement have been completed; no distinction is made between the two demand types when computing the ratio, and points labelled as noise during HDBSCAN’s initial run are not automatically revisited or reassigned during k-medoids refinement unless they fall within a cluster that is subsequently subdivided. Because DBSCAN and HDBSCAN identify noise using different density criteria and parameterisations, the noise ratios reported for the baseline and proposed methods are not directly comparable as an absolute measure of algorithmic quality: a lower noise ratio under the proposed method reflects a difference in how each algorithm treats sparse or boundary points at its own density threshold, and should not, on its own, be read as evidence that the retained points form clusters that are behaviourally or operationally meaningful. This qualification is developed further in Section 5.5.
Number of Clusters. The total number of generated clusters reflects the degree of spatial segmentation. Excessively large values may indicate over-fragmentation; too few clusters may imply insufficient spatial resolution. This metric is used to assess clustering granularity and structural stability across districts.
We also note that the three metrics adopted here (RMSE, noise ratio, and number of clusters) are diagnostic rather than directly evaluative of the paper’s central methodological claim—that clusters are constructed to satisfy the Golden Distance service-radius constraint. None of the three metrics directly reports the proportion of demand points that fall within the Golden Distance of their assigned medoid or the distribution of within-cluster access distances. Such a compliance metric is therefore reported directly in section Golden-Distance Compliance, together with the distribution of point-to-medoid access distances; cluster stability across resampled periods and the trade-off between prediction gains and the number of operational service units remain future work (Section 5.5).

5. Results and Discussion

5.1. Clustering Quality Analysis

Figure 6, Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11 present a visual comparison between the baseline DBSCAN-based clustering and the proposed Golden Distance-guided HDBSCAN with the adaptive k-medoids method across the three representative districts. In all figures, the dotted circular boundary centred at each cluster centroid represents the Golden Distance service radius, providing a direct visual benchmark for evaluating whether the spatial extent of each cluster complies with the intended service constraint.
Figure 6. Tseung Kwan O—resulting cluster map of the baseline DBSCAN. Coloured dots and shaded hulls denote the demand points and spatial extent of each cluster, with colours distinguishing neighbouring clusters; black markers denote cluster centroids, and the orange dashed circle around each centroid marks the district’s Golden Distance service radius. The background is a standard OpenStreetMap basemap on which Hong Kong place names appear bilingually in English and Chinese. The same conventions apply to Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11.
Figure 7. Tseung Kwan O—resulting cluster map of the proposed HDBSCAN + adaptive k-medoids.
Figure 8. Sha Tin—resulting cluster map of the baseline DBSCAN.
Figure 9. Sha Tin—resulting cluster map of the proposed HDBSCAN + adaptive k-medoids.
Figure 10. Tuen Mun—resulting cluster map of the baseline DBSCAN.
Figure 11. Tuen Mun—resulting cluster map of the proposed HDBSCAN + adaptive k-medoids.
Under the baseline method, clusters exhibit substantial variability in both size and geometry. Many clusters expand well beyond the Golden Distance circle, particularly in dense or spatially continuous regions (Figure 6, Figure 8 and Figure 10). These oversized clusters frequently span multiple functional zones, indicating that density connectivity alone is insufficient to enforce service feasibility. At the same time, smaller fragmented clusters and isolated noise points appear in lower-density or irregular areas, reflecting DBSCAN’s sensitivity to local density fluctuations.
By contrast, the proposed method produces clusters that are visibly aligned with the Golden Distance constraint (Figure 7, Figure 9 and Figure 11). Cluster extents are largely contained within, or tightly bounded by, the Golden Distance circle, even when demand distributions are elongated or constrained by urban structures such as road corridors or waterfronts. When clusters exceed the Golden Distance, controlled subdivision is triggered along the dominant spatial axis, yielding geometrically coherent sub-clusters rather than arbitrary fragmentation.
These visual results confirm that the proposed method enforces Golden Distance as an explicit centroid-based service constraint, rather than an indirect outcome of density assumptions—which is, by construction, the specific behaviour that the adaptive k-medoids refinement is designed to produce. On its own, this visual conformity to the Golden Distance circles demonstrates that the algorithm achieves its intended constraint; it does not, in isolation, establish that the resulting clusters are operationally superior to the DBSCAN baseline in a broader sense, since a simpler radius-constrained method (for example, fixed-radius clustering or a covering-based spatial partition) might produce a visually similar improvement without the full HDBSCAN and adaptive k-medoids pipeline. We also note a trade-off that visual inspection alone cannot resolve: the larger clusters produced by DBSCAN may capture meaningful functional zones or continuous travel corridors, whereas subdividing them into many smaller Golden-Distance-compliant clusters could increase operational complexity, thin demand per cluster, and reduce the stability of the resulting spatial units. A comparison against simpler Golden-Distance-based benchmarks, together with a joint evaluation of GD compliance, cluster count, within-cluster demand volume, temporal stability, and rebalancing cost, is needed to establish operational superiority beyond constraint satisfaction and is identified as a priority in Section 5.5.

Golden-Distance Compliance

Section 4.5 noted that RMSE, noise ratio, and cluster count do not directly evaluate the constraint that motivates the proposed method. This section reports that constraint directly: the proportion of demand points lying within their district’s Golden Distance of their assigned medoid, for every study district, for the proposed pipeline, and for the DBSCAN baseline. Medoids are computed post hoc under a single uniform definition for both methods, so the baseline is measured on the same terms; the baseline is not configured to optimise this criterion, and the comparison is descriptive of what each partition achieves rather than a claim about tuning. Points labelled as noise have no assigned medoid and cannot satisfy the constraint, so three quantities are reported together: coverage, meaning the share of demand points that receive a cluster assignment at all; compliance among clustered points; and compliance over all demand points, which is the product of the two. Reporting all three is necessary because the two methods retain different point sets. The values in Table 7 are computed on the rainfall-free, workday, and peak-hour cases.
Table 7. Golden-Distance compliance by district and method (rainfall-free, workday, peak-hour case). Coverage is the share of the demand points assigned to a cluster; compliance among clustered points is the share of those points lying within the Golden Distance district of their assigned medoid; compliance over all points is the product of the two.
The proposed pipeline attains higher compliance than the DBSCAN baseline in all three districts for both denominators. Three qualifications belong with the table. First, the two methods do not cluster the same amount of demand: in Tseung Kwan O the baseline assigns more demand to clusters than the proposed pipeline (88.1% against 78.5% coverage), so a compliance figure quoted without its coverage would be misleading, which is why the coverage column and the all-points column are reported alongside it. Second, these figures describe what each partition achieves under a common medoid definition; section Resolution-Fair Evaluation reports what happens when DBSCAN is tuned to the same clustering resolution, where the picture is considerably more qualified. Third, the cluster counts underlying this table (125 in Tseung Kwan O, 212 in Sha Tin, 164 in Tuen Mun) are those of the case-conditioned run and differ from the all-case counts reported in Section 5.2 (154, 245 and 195); the case-conditioned re-run reproduces the districts’ original case-conditioned experiments, with noise ratios agreeing to fifteen decimal places in Sha Tin and Tuen Mun, so the difference is one of conditioning rather than of pipeline.
Figure 12 shows the corresponding distributions. Under the proposed pipeline the access distances are concentrated well inside the Golden Distance in all three districts, whereas the baseline distributions carry a substantially heavier tail beyond it. The separation between the two methods is largest in Tseung Kwan O and smallest in Tuen Mun, matching the ordering of the compliance values in Table 7.
Figure 12. Distribution of point-to-medoid distances by district and method (rainfall-free, workday, peak-hour case). Upper panels: histograms of the distance from each clustered demand point to its assigned medoid, truncated at 300 m for display. Lower panels: empirical cumulative distribution functions, on which the value at the dashed Golden-Distance line is the compliance among clustered points reported in Table 7. Noise points are excluded throughout, as they have no assigned medoid.

5.2. Quantitative Performance Comparison

Table 8, Table 9 and Table 10 report the RMSE, noise ratio, and number of clusters for each district under the baseline and proposed methods. These tables are reported on each method’s native reporting units—that is, on each method’s own cluster partition—and, as Section Resolution-Fair Evaluation shows, the cluster-level RMSE values are therefore not comparable across the two partitions as a measure of predictive skill.
Table 8. Prediction performance and clustering statistics for Tseung Kwan O (method-native reporting units; see Section Resolution-Fair Evaluation).
Table 9. Prediction performance and clustering statistics for Sha Tin (method-native reporting units; see Section Resolution-Fair Evaluation).
Table 10. Prediction performance and clustering statistics for Tuen Mun (method-native reporting units; see Section Resolution-Fair Evaluation).
The proposed method records lower cluster-level RMSE compared to the baseline in each of the three districts: Tseung Kwan O: RMSE decreases from 0.6020 to 0.3737 (37.92% reduction); Sha Tin: RMSE decreases from 0.4304 to 0.2546 (40.85% reduction); Tuen Mun: RMSE decreases from 0.3027 to 0.1529 (49.49% reduction). These figures record that the overall proposed pipeline achieved lower cluster-level RMSE than the DBSCAN baseline in all three districts under the conditions tested. They are not evidence of better prediction: as Section Resolution-Fair Evaluation establishes, the two pipelines share a single district-level forecast and differ only in how finely that forecast is subdivided, so a finer partition yields mechanically smaller per-unit errors. No component-level effect is attributed to Golden-Distance alignment, and no claim is made that reduced intra-cluster demand variance improves predictive stability.
These RMSE comparisons should be read with an important caveat. The proposed method changes several aspects of the pipeline simultaneously—replacing DBSCAN with HDBSCAN, imposing the Golden Distance constraint, applying adaptive k-medoids refinement, and, as a consequence, producing substantially more clusters than the baseline (for example, from 39 to 195 in Tuen Mun; Table 10). Because cluster-level prediction difficulty is itself related to spatial granularity, part of the observed RMSE reduction is attributable to the finer partition of demand rather than to the Golden Distance framework specifically, and Section Resolution-Fair Evaluation shows this to be the dominant effect. The present experimental design does not separate these effects: an ablation study isolating the individual contributions of HDBSCAN, Golden Distance, adaptive k-medoids, and cluster granularity—for example, by comparing the proposed method against DBSCAN configured to produce a similar number of clusters, or against HDBSCAN alone without Golden-Distance refinement—was not conducted for this submission. We therefore do not present the RMSE improvements above as evidence that the Golden Distance concept in isolation causes the improvement; Section Resolution-Fair Evaluation shows the cluster-level RMSE difference to be largely a property of the reporting unit rather than a difference in predictive performance. The granularity component of this confound is addressed directly in Section Resolution-Fair Evaluation, which reports a resolution-fair evaluation including a granularity-matched DBSCAN comparison; that analysis shows the cluster-level RMSE difference to be largely a property of the reporting unit. Ablation of the remaining components—HDBSCAN topology discovery, the Golden Distance constraint, and adaptive k-medoids refinement—remains future work (Section 5.5).
The noise ratio exhibits a more nuanced pattern. In Tseung Kwan O, the proposed method results in a modest increase in noise ratio, reflecting stricter enforcement of service feasibility in extremely dense environments. In contrast, both Sha Tin and Tuen Mun experience substantial noise reduction, reflecting the retention of demand points that DBSCAN assigns to noise at its own density threshold; as noted in Section 4.5, the two noise ratios are not directly comparable as a measure of algorithmic quality. Importantly, the proposed framework does not seek to minimise noise ratio as an isolated objective but rather balances coverage against spatial validity. Because noise ratio and RMSE can move in different directions depending on district (Table 8), the two metrics are best interpreted jointly as a coverage-accuracy trade-off rather than optimised independently; a formal Pareto-frontier analysis across candidate parameterisations (e.g., varying α) would make this trade-off explicit and is proposed as a direction for future work (Section 5.5).
The number of clusters increases significantly under the proposed method across all districts. This increase is expected and intentional, as clusters violating the Golden Distance constraint are subdivided to preserve centroid-based service coverage. In the context of dockless bike-sharing operations, these smaller clusters can be directly interpreted as candidate bike deployment or rebalancing spots, enabling finer-grained bike placement.

Resolution-Fair Evaluation

The comparison in Section 5.2 places the two pipelines on different reporting units, which is a threat to the validity of the RMSE comparison. This section addresses that question directly rather than caveating it. Both pipelines share a single district-level XGBoost forecast, which is disaggregated to clusters by each cluster’s observed share of historical demand; the clustering therefore determines only how finely that one fixed forecast is sliced and, consequently, how small each prediction target is. A finer partition produces mechanically smaller absolute per-unit errors without any change in predictive skill. Four analyses follow, all computed on the rainfall-free, workday, and peak-hour case.
(a) Scale-free metrics at native resolution. Table 11 reports normalised RMSE, that is, the raw RMSE divided by the mean observed count per reporting unit, together with the symmetric mean absolute percentage error and the coefficient of determination, alongside the mean target value per reporting unit, which makes the scale gap explicit.
Table 11. Scale-free accuracy metrics at each method’s native clustering resolution (rainfall-free, workday, peak-hour case). NRMSE is the raw RMSE divided by the mean observed count per unit-hour.
Once the scale of the target is normalised, the proposed method is not the more accurate of the two: its normalised RMSE and sMAPE are worse than the baseline’s in all three districts, and its coefficient of determination is worse in Tseung Kwan O and Sha Tin, while in Tuen Mun, both values are negative. The mean observed count per unit-hour is two to three times smaller under the proposed partition in every district, which is the mechanism behind the raw RMSE gap. This manuscript therefore no longer asserts comparable or superior predictive performance at the cluster level.
(b) Common evaluation unit. To remove the reporting unit from the comparison entirely, the identical district-level forecast is also scored on a shared fixed spatial grid, at cell sizes from 100 m to 1200 m, independently of either clustering. Because the disaggregation ratio is unit-local, the two methods yield the same grid-level predictions by construction; this is therefore presented as a structural demonstration rather than as an empirical discovery. Table 12 reports the result: the same unchanged forecast, scored on progressively coarser units, produces monotonically larger RMSE.
Table 12. Grid-level RMSE of the identical district-level forecast as a function of evaluation cell size (rainfall-free, workday, peak-hour case). Values are identical for both pipelines by construction. Over the same range the corresponding coefficient of determination rises from 0.142 to 0.766 in Tseung Kwan O, from 0.023 to 0.667 in Sha Tin, and from −0.007 to 0.336 in Tuen Mun.
A single unchanged forecast thus spans a five- to seven-fold range of RMSE purely as a function of the reporting unit. This is the direct answer to the question of comparability: cluster-level RMSE differences between partitions of different granularity are not evidence about prediction, and the reduction reported in Section 5.2 cannot be read as such.
(c) Matched-resolution comparison. A sweep of 120 DBSCAN configurations per district was carried out, and for each district, the three configurations whose cluster counts lie closest to the proposed partition were selected. Resolution matching proved feasible and non-degenerate: DBSCAN reaches up to 1064 clusters in Tseung Kwan O, 1892 in Sha Tin, and 1562 in Tuen Mun, at noise ratios of 2.5%, 4.4%, and 15.1%, respectively. Table 13 reports the matched comparison in full, including the configurations that outperform the proposed pipeline.
Table 13. Cluster-level metrics at matched clustering resolution (rainfall-free, workday, peak-hour case). The matched configurations target the case-conditioned cluster counts of 125, 212, and 164; the sweep shows that the all-case counts of Table 8, Table 9 and Table 10 (154, 245 and 195) are equally reachable.
At matched resolution, there is no cluster-level predictive advantage for the proposed method, and where the metrics differ, they favour the baseline. In Sha Tin, the ε = 15 m, min_samples = 50 configuration achieves both lower RMSE (0.2947 against 0.3065) and higher R2 (0.081 against −0.014), and the ε = 25 m, min_samples = 4 configuration reaches R2 0.679. In Tseung Kwan O, all three matched configurations reach R2 between 0.85 and 0.90 against 0.024, although the proposed pipeline retains a modest RMSE margin there. In Tuen Mun, the two are effectively tied. This is best read as confirmation of the mechanism demonstrated in (b) rather than as a result about either algorithm: R2 spans −0.014 to 0.679 across partitions of the same fixed forecast at essentially the same cluster count in Sha Tin, so cluster-level RMSE and R2 are properties of the reporting partition rather than of predictive skill.
(d) Golden-Distance compliance at matched resolution. Because a resolution-matched DBSCAN partition is achievable, the spatial result of Section Golden-Distance Compliance must also be tested at matched resolution and not only against the original baseline. Golden-Distance compliance was therefore computed for all nine matched configurations under the same uniform medoid definition. Table 14 reports the result together with the proposed pipeline.
Table 14. Golden-Distance compliance at matched clustering resolution (rainfall-free, workday, peak-hour case). Compliance over all points is the coverage-integrated metric, that is, the share of all demand points lying within the Golden Distance district of an assigned medoid.
Two matched configurations require explicit attention. In Sha Tin, the ε = 15 m, min_samples = 50 configuration attains higher compliance among clustered points than the proposed pipeline (92.7% against 86.5%) at 64.0% coverage against 69.1%—a coverage comparable to that of this study’s own DBSCAN baseline in Sha Tin (64.4%, Table 7)—and it also attains the better cluster-level RMSE and R2 noted above. In Tuen Mun, the ε = 25 m, min_samples = 20 configuration attains 83.2% compliance at 71.7% coverage. On the coverage-integrated metric, that is the share of all demand lying within the Golden Distance of an assigned medoid, the proposed pipeline is competitive with the best of these post-hoc-selected configurations in Sha Tin and Tuen Mun—differences of 0.44 percentage points (59.8% against 59.3%, corresponding to 338 of 77,197 demand points) in Sha Tin and 1.1 percentage points (60.8% against 59.7%) in Tuen Mun—and substantially better in Tseung Kwan O, where the margin is 54.3 percentage points (71.9% against at most 17.6%). In Tseung Kwan O, the matched configurations do not approach the proposed pipeline on compliance at any of the matched settings, because ε bounds the core-point neighbourhood rather than the spatial extent of a cluster, and chained density-reachability allows clusters to sprawl well beyond the Golden Distance.
Taken together, these four analyses support a narrower claim than the one made in the previous version of this manuscript, and it is the narrower claim that is made here. The proposed pipeline automates the coverage–compliance trade-off through the fixed, automated, per-district selection procedure described in Section 3.1.1 and Section 3.2.2. DBSCAN, by contrast, has no internal, behaviourally derived selection criterion of its own; a practitioner must select ε and min_samples for each district by external search against a criterion of their choosing, and the nine matched configurations reported here were themselves selected post hoc, with knowledge of the proposed pipeline’s cluster counts, from a 120-configuration sweep per district—an oracle selection unavailable at deployment time that, if anything, favours DBSCAN in this comparison. On the coverage-integrated compliance metric, the proposed pipeline is competitive with the best of these post-hoc-selected configurations in Sha Tin and Tuen Mun (differences of 0.44 and 1.1 percentage points, respectively) and substantially better in Tseung Kwan O (54.3 percentage points); it is Tseung Kwan O, rather than uniform superiority across districts, that provides the strongest single-district evidence for the spatial claim, and in that district, the matched configurations do not approach the proposed pipeline at any tested setting. It is not claimed that DBSCAN cannot produce a Golden-Distance-compliant structure, and the cluster-level RMSE reduction reported in Section 5.2 is not presented as a performance result. Table 8, Table 9 and Table 10 are retained as method-native diagnostics. The residual scope of this evaluation—an assessment based on a prediction model fitted at the cluster level, rather than on a disaggregated district-level forecast—is stated in Section 5.5.

5.3. District-Level Adaptability

The results further demonstrate that the proposed method generalises effectively across districts with diverse spatial densities and urban morphologies.
In Tseung Kwan O, a high-density district characterised by concentrated residential demand, the baseline method aggregates large contiguous regions into oversized clusters. The proposed method automatically increases cluster granularity to satisfy Golden Distance constraints, producing a finer partition and a correspondingly smaller per-cluster prediction target, despite a moderate increase in noise ratio. This highlights the prioritisation of service feasibility over maximal point inclusion.
In Sha Tin, where demand exhibits mixed density and elongated spatial patterns along riverbanks and transport corridors, the proposed method achieves a lower noise ratio than the baseline while subdividing along dominant spatial axes, which preserves meaningful demand structure while maintaining centroid-based coverage.
In Tuen Mun, a lower-density and more spatially dispersed district, the baseline method produces few large clusters with a high noise ratio. The proposed method substantially increases cluster resolution while simultaneously reducing noise, demonstrating adaptability even in sparse environments.
Across all districts, the same algorithmic framework and the same fixed parameter-selection procedure (Section 3.1.1 and Section 3.2.2) are applied without district-specific manual tuning; the district-specific parameter values are outputs of that procedure. The observed variations in cluster granularity and geometry arise naturally from local spatial structure rather than manual adjustment, consistent with the robustness and scalability of the proposed Golden Distance-guided clustering approach.

5.4. Behavioural Insights and Generalisability

Beyond the spatial results reported above, the analysis also supports several behavioural observations. First, the estimated Golden Distance values differ across districts, consistent with—though not by itself demonstrating—spatially non-uniform walking tolerance. This variation suggests that accessibility tolerance is influenced by the local urban context, so a single static service radius is unlikely to be adequate for representing user behaviour across districts.
Second, unmet-demand events contain meaningful behavioural information rather than simply representing missing observations. Even when a rental is not completed, the event still reveals a boundary between acceptable and unacceptable access distance. By combining successful ride events with unmet-demand events, the proposed framework captures this behavioural threshold more effectively and, therefore, provides a better representation of true demand.
Third, the results show that user behaviour should influence not only demand estimation but also the design of spatial demand units. Density-based clustering alone may produce clusters that are not behaviourally feasible from the perspective of user access. By enforcing Golden Distance as a service constraint and selectively refining oversized clusters, the proposed method generates clusters that are more aligned with realistic service coverage and operational deployment needs.
Although the experiments are conducted in Hong Kong, the framework itself is not location-specific. Its core components—Golden Distance estimation, HDBSCAN-based topology discovery, and adaptive k-medoids refinement—can be applied to other cities using commonly available operational data. The exact value of Golden Distance is expected to vary across cities due to differences in urban form, walking culture, climate, and transport integration. Therefore, the method is generalisable at the framework level while remaining locally adaptive through behaviour-based recalibration. This claim of generalisability is based on the framework’s design—the absence of any Hong Kong-specific parameters hard-coded into the method—rather than on empirical validation in other cities; testing the framework in additional urban contexts, with different walking cultures, climates, and transport systems, remains necessary before generalisability can be considered demonstrated rather than plausible (Section 5.5).

5.5. Limitations

This section consolidates the limitations that remain open after this revision so that the scope of the empirical claims made in this study is stated in one place. Items settled by the analyses added in this revision—the direct test of the distance ordering (Section 4.3.2), the uncertainty of the Golden Distance estimates (Section 4.3.2), the Golden-Distance-compliance metric (Section Golden-Distance Compliance), the exact temporal split (Section Training-Testing Procedure and Temporal Validation), and the resolution-fair accuracy evaluation (Section Resolution-Fair Evaluation)—are reported in those sections and are no longer listed here. Seven items remain open.
Confounding in the unmet-demand comparison. The behavioural premise underlying Equation (1) is now tested directly for the three study districts (Section 4.3.2): the mean ordering holds in Tseung Kwan O and Tuen Mun, while in Sha Tin, the two group means are statistically indistinguishable and only the median ordering holds. What remains open is the comparison itself. The successful-ride and inferred unmet-demand samples are highly imbalanced and plausibly differ systematically in time of day, weather, location, and user mix in addition to distance, and no matching or regression adjustment for these contextual confounders has been carried out (Section 4.3.1). The bootstrap intervals in Section 4.3.2 quantify sampling uncertainty only and do not address this confounding. Relatedly, Equation (1) estimates Golden Distance from group means, which is fragile under the heavy right tail of the ride-distance distribution; the Sha Tin reversal is a direct instance of this, and a robust or quantile-based estimator has not been evaluated.
Ground-truth validation of the unmet-demand inference rules. The filtering rules in Table 2 remain heuristic proxies rather than validated labels, and the dataset contains no independent confirmation that an inferred event reflects a user who wanted a bike and could not reach one (Section 4.3.1). Some inferred events may reflect bike condition, payment or application failures, adverse weather, or abandoned trips. A validation exercise against an independent ground-truth source has not been performed.
Transferability across cities and over time. The ordering tested in Section 4.3.2 is an aggregate property of the three study districts rather than a general behavioural law, and neither it nor the Golden Distance values themselves have been tested in another city. The dataset spans one calendar year, which covers a single seasonal cycle but does not establish year-over-year stability (Section 4.2). The claim that the framework generalises beyond Hong Kong rests on the absence of city-specific parameters in its design rather than on empirical validation. GPS positioning uncertainty in the underlying location data, and the dependence of the results on historical operational patterns that may themselves reflect pre-existing supply allocation rather than unconstrained demand, are acknowledged as open questions (Section 5.4).
Sensitivity to the behavioural scaling parameter and to the adaptive-k heuristics. No sensitivity curve of accuracy or compliance against the behavioural scaling parameter α is reported. The adaptive-k formula, the elongation-to-exponent mapping, and the clipping interval are empirical design heuristics rather than formally derived results (Section 3.2.2 and Section 3.3.3), and the characteristic cluster extent used in the formula does not fully capture curved, ring-shaped, or branched geometries; sensitivity to these morphologies has not been tested.
Within-district comparison of clustering algorithms. No head-to-head comparison of HDBSCAN against other variable-density methods—for example, OPTICS, adaptive-bandwidth DBSCAN variants, or locally calibrated density-based clustering—has been carried out on this dataset, nor against simpler Golden-Distance-based benchmarks such as fixed-radius clustering or radius-constrained k-medoids (Section 3.2.2 and Section 5.1). The choice of HDBSCAN is therefore presented as a considered design decision rather than an empirically settled comparison, and the resolution-matched analysis of Section Resolution-Fair Evaluation shows that a tuned DBSCAN can reach the same clustering resolution.
Fit scope of the clustering structure and of Golden Distance. The clustering structures and the Golden Distance values are estimated on the full study-period point set rather than on the training partition alone (Sections Training-Testing Procedure and Temporal Validation). The predictive model is fitted only on the training partition, so this does not affect the separation of training and test hours for the forecast itself, but the spatial units on which predictions are reported are informed by the full period, and a fully out-of-sample construction of those units has not been evaluated.
Evaluation based on a prediction model fitted at the cluster level. Both pipelines share a single district-level forecast that is disaggregated to clusters by an observed, unit-local activity share (Section Resolution-Fair Evaluation). Cluster-level RMSE and R2 are therefore properties of the reporting partition rather than of predictive skill, and the resolution-fair analysis of Section Resolution-Fair Evaluation is a diagnosis of that design rather than a remedy for it. An evaluation in which a prediction model is fitted directly at the cluster level so that partitions can be compared on genuinely comparable predictive tasks remains outstanding; statistical significance testing and repeated or cross-validated trials likewise remain future work.

6. Conclusions

Key Findings. This study proposes a user-behaviour-based dynamic clustering optimisation algorithm that incorporates an estimated walking-tolerance threshold—Golden Distance—into spatial clustering for true-demand prediction in dockless shared-bike systems. Across three Hong Kong districts, the proposed pipeline produced service zones satisfying the Golden Distance constraint for 86.5% to 91.6% of clustered demand points, at cluster coverages of 68.0% to 78.5%, and against 60.0% to 71.1% at coverages of 49.7% to 88.1% for the DBSCAN baseline (Section Golden-Distance Compliance). A resolution-fair evaluation (Section Resolution-Fair Evaluation) established that the cluster-level RMSE reduction previously reported for this pipeline largely reflects its finer reporting unit rather than better prediction: the same fixed district-level forecast spans a five- to seven-fold range of RMSE when scored on progressively coarser spatial units, and at matched clustering resolution the DBSCAN baseline equals or exceeds the proposed pipeline on cluster-level metrics. The contribution demonstrated here is therefore spatial rather than predictive.
Core Innovations. The core contribution of this work is introducing Golden Distance as a dynamic, behaviourally motivated service-radius proxy and embedding it into a user-behaviour-based dynamic clustering optimisation algorithm. Unlike static geometric partitioning, the method selectively refines only clusters that violate this accessibility constraint and incorporates elongation-aware adaptive scaling. As discussed in Section 3.1.2 and Section 3.3.3, Golden Distance is best understood as a heuristic, distance-based proxy for walking tolerance derived from operational proxies for unmet demand, and the elongation-aware adaptive scaling rule is an empirical design heuristic rather than a formally derived optimum. Within this scope, the design bridges behavioural modelling and spatial optimisation within a unified clustering framework. The claim supported by the evidence is a narrow one: the pipeline automates, through the fixed per-district selection rule of Section 3.1.1 rather than manual tuning, a coverage–compliance trade-off that a DBSCAN user would otherwise have to find by external search over ε and min_samples; evaluated against 120 such configurations per district, selected post hoc with knowledge of the target cluster counts, the pipeline is competitive with the best matched configuration in Sha Tin and Tuen Mun (margins of 0.44 and 1.1 percentage points) and substantially better in Tseung Kwan O (54.3 percentage points), which provides the strongest single-district evidence for the spatial claim. It is not claimed that DBSCAN cannot produce Golden-Distance-compliant structure, nor that the advantage is uniform across districts.
Practical Implications. Operationally, the proposed method may enable more precise bike allocation, reduced oversupply, and better mitigation of unmet demand. By aligning clustering structures with an estimated service-accessibility threshold, operators could deploy resources more efficiently, design better rebalancing strategies, and improve overall system responsiveness. These operational benefits are plausible given the Golden-Distance-compliance reported in Section Golden-Distance Compliance but have not yet been directly evaluated against operational outcomes (e.g., fleet-rebalancing cost, service-level metrics, or field trials), which remains an important direction for validating practical impact.
Future Directions. This work extends our prior IoT-driven demand prediction framework [18] by embedding adaptive, behaviour-aware spatial optimisation. Building on the limitations identified in Section 5.5, priority directions for future work include: (i) ablation studies that separately quantify the contributions of HDBSCAN, the Golden Distance constraint, and adaptive k-medoids refinement, the granularity component having been addressed in Section Resolution-Fair Evaluation; (ii) benchmarking against additional variable-density clustering methods (e.g., OPTICS, adaptive-bandwidth DBSCAN) and against simpler Golden-Distance-based partitions (e.g., fixed-radius clustering, radius-constrained k-medoids, or covering-based spatial partitions); (iii) validation of the unmet-demand inference rules against independent ground truth, and matching or regression adjustment of the unmet-demand comparison for contextual confounders; (iv) an evaluation in which the prediction model is fitted directly at the cluster level rather than disaggregated from a district-level forecast, together with statistical significance testing and repeated or cross-validated experiments; (v) cluster-quality metrics beyond the compliance metric now reported in Section Golden-Distance Compliance, such as silhouette or compactness indices and cluster stability across resampled periods; (vi) sensitivity analyses for the behavioural scaling parameter α and the elongation-to-exponent mapping used in adaptive k; (vii) computational benchmarking of runtime and scalability relative to the DBSCAN baseline; (viii) temporal validation across multiple years and seasons, and application of the framework beyond the three Hong Kong districts studied here to test transferability across cities with different walking cultures, climates, and transport systems; and (ix) integration of the framework with digital twins, reinforcement-learning-based fleet rebalancing, multimodal mobility systems, and real-time urban sensing applications.

Author Contributions

Conceptualization, K.C.H.C. and A.H.F.L.; methodology, K.C.H.C. and C.Q.J.; software, K.C.H.C.; validation, K.C.H.C., S.K.P.N. and H.C.W.C.; formal analysis, K.C.H.C.; investigation, K.C.H.C.; resources, S.K.P.N. and H.C.W.C.; data curation, K.C.H.C. and S.K.P.N.; writing—original draft preparation, K.C.H.C.; writing—review and editing, C.Q.J., R.C.C.C., H.L. and A.H.F.L.; visualization, K.C.H.C.; supervision, C.Q.J., R.C.C.C., H.L. and A.H.F.L.; project administration, A.H.F.L.; funding acquisition, C.Q.J. and R.C.C.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to privacy, legal, and commercial confidentiality restrictions.

Acknowledgments

The authors thank LocoBike for providing the operational dataset used in this study. During the preparation of this manuscript, the authors used Claude Opus 4.8 (Anthropic) only for superficial language editing (grammar, spelling, and phrasing). Generative AI was not used to generate any scientific content, data, or figures. All content was written, reviewed, and verified by the authors, who take full responsibility for the content of this publication.

Conflicts of Interest

Author Ken C. H. Ching, Steve K. P. Ng and Hassan C. W. Ching were employed by the company Locobike. The remaining authors 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.

Abbreviations

The following abbreviations are used in this manuscript:
AIoTArtificial Intelligence of Things
CAGRCompound annual growth rate
DBSCANDensity-based spatial clustering of applications with noise
DTMPDemand truncation and migration process
GDGolden Distance
GPSGlobal positioning system
HDBSCANHierarchical density-based spatial clustering of applications with noise
IoTInternet of Things
LOSLine-of-sight distance
RMSERoot mean square error
TKOTseung Kwan O
WDWalking distance

References

  1. Fishman, E. Bikeshare: A review of recent literature. Transp. Rev. 2016, 36, 92–113. [Google Scholar] [CrossRef] [Scilit]
  2. Shaheen, S.; Cohen, A. Shared Micromobility Policy Toolkit: Docked and Dockless Bike and Scooter Sharing. Transportation Sustainability Research Center, UC Berkeley, 2019. Available online: https://escholarship.org/uc/item/00k897b5 (accessed on 23 August 2026).
  3. DeMaio, P. Bike-sharing: History, Impacts, Models of Provision, and Future. J. Public Transp. 2009, 12, 41–56. [Google Scholar] [CrossRef] [Scilit]
  4. Shaheen, S.A.; Guzman, S.; Zhang, H. Bikesharing in Europe, the Americas, and Asia. Transp. Res. Rec. J. Transp. Res. Board 2010, 2143, 159–167. [Google Scholar] [CrossRef] [Scilit]
  5. National Association of City Transportation Officials. Shared Micromobility in the U.S. and Canada: 2023. NACTO, 2023. Available online: https://nacto.org/publication/shared-micromobility-report-2023/ (accessed on 23 August 2026).
  6. Global Market Insights. Bike Sharing Market Size & Share 2025–2034, 2024. Available online: https://www.gminsights.com/industry-analysis/bike-sharing-market (accessed on 23 August 2026).
  7. Grand View Research. Bicycle Sharing Market Size Report, 2024. Available online: https://www.grandviewresearch.com/industry-analysis/bicycle-sharing-market-report (accessed on 23 August 2026).
  8. Zag Daily. Shared Micromobility Ridership Hit Record High in North America in 2024, 2024. Available online: https://zagdaily.com/featured/shared-micromobility-ridership-hit-record-high-in-north-america-in-2024/ (accessed on 23 August 2026).
  9. Metropolitan Washington Council of Governments. Dockless Micromobility Ridership on the Rise Across the Region, 2025. Available online: https://www.mwcog.org/newsroom/2025/09/08/dockless-micromobility-ridership-on-the-rise-across-the-region-bicycling-bikesharing-micromobility/ (accessed on 23 August 2026).
  10. Wang, Z.; Yu, D.; Zheng, X.; Meng, F.; Wu, X. A model-data dual-driven approach for predicting shared bike flow near metro stations. Sustainability 2025, 17, 1032. [Google Scholar] [CrossRef] [Scilit]
  11. Raviv, T.; Tzur, M.; Forma, I.A. Static repositioning in a bike-sharing system: Models and solution approaches. EURO J. Transp. Logist. 2013, 2, 187–229. [Google Scholar] [CrossRef] [Scilit]
  12. Schuijbroek, J.; Hampshire, R.; van Hoeve, W.-J. Inventory rebalancing and vehicle routing in bike sharing systems. Eur. J. Oper. Res. 2017, 257, 992–1004. [Google Scholar] [CrossRef] [Scilit]
  13. Fricker, C.; Gast, N. Incentives and redistribution in homogeneous bike-sharing systems with stations of finite capacity. EURO J. Transp. Logist. 2016, 5, 261–291. [Google Scholar] [CrossRef] [Scilit]
  14. Liu, X.; Pelechrinis, K. Excess demand prediction for bike sharing systems. PLoS ONE 2021, 16, e0252894. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. O’MAhony, E.; Shmoys, D. Data analysis and optimization for (citi) bike sharing. In Proceedings of the 29th AAAI Conference on Artificial Intelligence, Austin, TX, USA, 25–29 January 2015. [Google Scholar] [CrossRef] [Scilit]
  16. Pfrommer, J.; Warrington, J.; Schildbach, G.; Morari, M. Dynamic vehicle redistribution and online price incentives in shared mobility systems. IEEE Trans. Intell. Transp. Syst. 2014, 15, 1567–1578. [Google Scholar] [CrossRef] [Scilit]
  17. Shui, C.; Szeto, W. A review of bicycle-sharing service planning problems. Transp. Res. Part C Emerg. Technol. 2020, 117, 102648. [Google Scholar] [CrossRef] [Scilit]
  18. Ching, K.C.H.; Jiang, C.; Ching, H.C.W.; Ng, S.K.P.; Cheung, R.C.C.; Li, H.; Lam, A.H.F. A novel AIoT-based and user behaviour-driven dockless bike-sharing management system for chaotic operations in a condensed city. IEEE Trans. Intell. Transp. Syst. 2025, 26, 22728–22750. [Google Scholar] [CrossRef] [Scilit]
  19. Zhao, Y.; Du, B.; Luo, M.; Wen, H. Robust spatio-temporal demand prediction for bike-sharing systems with dynamic hierarchical structure. CCF Trans. Pervasive Comput. Interact. 2025, 7, 229–245. [Google Scholar] [CrossRef] [Scilit]
  20. Chen, L.; Zhang, D.; Wang, L.; Yang, D.; Ma, X.; Li, S.; Wu, Z.; Pan, G.; Nguyen, T.-M.; Jakubowicz, J. Dynamic cluster-based over-demand prediction in bike sharing systems. In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing (UbiComp), Heidelberg, Germany, 12–16 September 2016; pp. 841–852. [Google Scholar] [CrossRef] [Scilit]
  21. Feng, S.; Chen, H.; Du, C.; Li, J.; Jing, N. A hierarchical demand prediction method with station clustering for bike sharing system. In Proceedings of the IEEE 3rd International Conference on Data Science in Cyberspace (DSC), Guangzhou, China, 18–21 June 2018; pp. 829–836. [Google Scholar] [CrossRef] [Scilit]
  22. Liu, J.; Sun, L.; Li, Q.; Ming, J.; Liu, Y.; Xiong, H. Functional zone based hierarchical demand prediction for bike system ex-pansion. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Halifax, NS, Canada, 13–17 August 2017; pp. 957–966. [Google Scholar] [CrossRef] [Scilit]
  23. Dastjerdi, A.M.; Morency, C. Bike-sharing demand prediction at community level under COVID-19 using deep learning. Sensors 2022, 22, 1060. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Yang, Y.; Heppenstall, A.; Turner, A.; Comber, A. Using graph structural information about flows to enhance short-term demand prediction in bike-sharing systems. Comput. Environ. Urban Syst. 2020, 83, 101521. [Google Scholar] [CrossRef] [Scilit]
  25. Wang, Y.-J.; Kuo, Y.-H.; Huang, G.Q.; Gu, W.; Hu, Y. Dynamic demand-driven bike station clustering. Transp. Res. Part E Logist. Transp. Rev. 2022, 160, 102656. [Google Scholar] [CrossRef] [Scilit]
  26. Fishman, E.; Washington, S.; Haworth, N. Bike share: A synthesis of the literature. Transp. Rev. 2013, 33, 148–165. [Google Scholar] [CrossRef] [Scilit]
  27. Zhang, X.; Shen, Y.; Zhao, J. The mobility pattern of dockless bike sharing: A four-month study in Singapore. Transp. Res. Part D Transp. Environ. 2021, 98, 102961. [Google Scholar] [CrossRef] [Scilit]
  28. Mix, R.; Hurtubia, R.; Raveau, S. Optimal location of bike-sharing stations: A built environment and accessibility approach. Transp. Res. Part A Policy Pract. 2022, 160, 126–142. [Google Scholar] [CrossRef] [Scilit]
  29. Li, X.; Xu, Y.; Zhang, X.; Shi, W.; Yue, Y.; Li, Q. Improving short-term bike sharing demand forecast through an irregular convolutional neural network. arXiv 2022, arXiv:2202.04376. [Google Scholar]
  30. Liang, Y.; Huang, G.; Zhao, Z. Bike sharing demand prediction based on knowledge sharing across modes: A graph-based deep learning approach. In Proceedings of the 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC), Macau, China, 8–12 October 2022. [Google Scholar] [CrossRef] [Scilit]
  31. Ren, Z.; Cui, H.; Ma, X.; Zhu, M.; Wang, J. Modeling real demand in dockless bike-sharing systems: Integrating user preferences and behavioral insights. J. Transp. Eng. Part A Syst. 2025, 151, 04025044. [Google Scholar] [CrossRef] [Scilit]
  32. Zhu, X.; Chen, X.; Miranda-Moreno, L.; Sun, L. Uncovering unmet demand in bike-sharing systems based on Bayesian Gaussian decomposition of time-varying OD tensor. In Proceedings of the 12th Triennial Symposium on Transportation Analysis (TRISTAN XII), Okinawa, Japan, 22–27 June 2025; Available online: https://tristan2025.org/proceedings/TRISTAN2025_ExtendedAbstract_449.pdf (accessed on 23 August 2026).
  33. Negahban, A. Simulation-based estimation of the real demand in bike-sharing systems in the presence of censoring. Eur. J. Oper. Res. 2019, 277, 317–332. [Google Scholar] [CrossRef] [Scilit]
  34. Cui, H.; Ren, Z.; Ma, X.; Zhu, M. How does bike absence influence mode shifts among dockless bike-sharing users? Evidence from Nanjing, China. Transp. Res. Rec. J. Transp. Res. Board 2025, 2679, 471–488. [Google Scholar] [CrossRef] [Scilit]
  35. Nahmias, S. Demand estimation in lost sales inventory systems. Nav. Res. Logist. 1994, 41, 739–757. [Google Scholar] [CrossRef] [Scilit]
  36. Jain, A.; Rudi, N.; Wang, T. Demand estimation and ordering under censoring: Stock-out timing is (almost) all you need. Oper. Res. 2015, 63, 134–150. [Google Scholar] [CrossRef] [Scilit]
  37. Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. arXiv 2016. [Google Scholar] [CrossRef] [Scilit]
  38. Campello, R.J.G.B.; Moulavi, D.; Sander, J. Density-Based Clustering Based on Hierarchical Density Estimates. In Advances in Knowledge Discovery and Data Mining; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7819, pp. 160–172. [Google Scholar]
  39. Scikit-Learn Developers. DBSCAN. Scikit-Learn 1.8.0 Documentation, 2025. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html (accessed on 23 August 2026).
  40. Wang, L.; Chen, P.; Chen, L.; Mou, J. Ship AIS trajectory clustering: An HDBSCAN-based approach. J. Mar. Sci. Eng. 2021, 9, 566. [Google Scholar] [CrossRef] [Scilit]
  41. Wang, D.; Huang, Y.; Cai, Z. A two-phase clustering approach for traffic accident black spots identification: Integrated GIS-based processing and HDBSCAN model. Int. J. Inj. Control. Saf. Promot. 2023, 30, 270–281. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  42. Ibrahim, R.; Shafiq, M.O. Detecting taxi movements using Random Swap clustering and sequential pattern mining. J. Big Data 2019, 6, 39. [Google Scholar] [CrossRef] [Scilit]
  43. Cesario, E.; Lindia, P.; Vinci, A. Multi-density crime predictor: An approach to forecast criminal activities in multi-density crime hotspots. J. Big Data 2024, 11, 75. [Google Scholar] [CrossRef] [Scilit]
  44. McInnes, L.; Healy, J. Accelerated hierarchical density based clustering. In Proceedings of the 2017 IEEE International Conference on Data Mining Workshops (ICDMW), New Orleans, LA, USA, 18–21 November 2017; pp. 33–42. [Google Scholar] [CrossRef] [Scilit]
  45. McInnes, L.; Healy, J.; Astels, S. hdbscan: Hierarchical density based clustering. J. Open Source Softw. 2017, 2, 205. [Google Scholar] [CrossRef] [Scilit]
  46. Kaufman, L.; Rousseeuw, P.J. Finding Groups in Data: An Introduction to Cluster Analysis; John Wiley & Sons: New York, NY, USA, 2009; pp. 68–125. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.