Next Article in Journal
Understanding Trust in the Smart City Through Focus Groups in Hong Kong
Previous Article in Journal
Development Coordination of Chinese Megacities Using the Node–Place–Value Model: A Case Study of Changsha
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Proximity Features: A Random Forest Approach to the Influence of the Built Environment on Local Travel Behavior

by
Manuel Benito-Moreno
1,2,*,
José Carpio-Pinedo
1 and
Patxi J. Lamíquiz-Daudén
1
1
Department of Urban and Regional Planning, Universidad Politécnica de Madrid, 28040 Madrid, Spain
2
TECNALIA Research & Innovation, Basque Research and Technology Alliance (BRTA), Parque Tecnológico de Bizkaia, 48160 Derio, Spain
*
Author to whom correspondence should be addressed.
Urban Sci. 2025, 9(4), 122; https://doi.org/10.3390/urbansci9040122
Submission received: 3 March 2025 / Revised: 2 April 2025 / Accepted: 9 April 2025 / Published: 14 April 2025

Abstract

:
Recent European policies fostering sustainable mobility target urban proximity as a core strategy for a modal shift towards low-carbon modes. Urban proximity, as a characteristic of the built environment, can be studied as a sub-thread of a broad and complex body of literature which associates urban factors such as density or land use mix with observed travel behavior, so as to address their relative influence on the latter. Building on this previous knowledge, the present work addresses the importance of a diverse set of factors on local travel modal choice between walking and other modes, according to the 2018 Household Mobility Survey of the Metropolitan Region of Madrid, and a large variety of demographic and built environment characteristics. The work proposes to address this importance through a workflow on a set of Machine Learning models, filtering different distance thresholds and purposes of the trips, going through a strict feature selection process, and executing under different schema definitions. The resulting models are inspected for accuracy, feature importance, and composition. Results suggest that even small changes in distance thresholds exert a great impact on all models; sociodemographic variables are slightly more important in most models, yet building age, along with other street layout factors, pervasively obtain fairly accurate predictions too.

1. Introduction

Urban proximity has emerged as a key strategy for sustainable development that advocates for minimizing long-distance travel and car dependency and ensuring access to basic urban functions. The central tenet of this strategy is the promotion of active local travel for short distances—and particularly walking—aiming for a modal shift that is currently seen as essential for fostering healthy lifestyles and sustainable mobility.
Despite its popularity, the concept still largely relies on prescriptive approaches rooted in planning culture, which continuously need empirical evidence to inform what remains an often contentious public debate. Encouraging more local pedestrian travel demands more than a reduction in distances. It demands understanding a complex interplay between social, economic, and spatial configurations of the urban fabric.
Understanding which features can drive this modal shift is informative for urban planners, especially if they belong to those that can be influenced “by policy design”. This study explores combinations of these characteristics as predictors of local pedestrian travel behavior. In this line of research, the potential for modal shift through urban proximity can be studied through short active non-work home-based travel, as a way of capturing how certain urban settings could “evaporate” a share of shorter car or transit trips.
Using the Madrid Metropolitan Region as a case study, we analyze the relationship between local mode choice and social and environmental factors identified in planning literature. We draw inspiration from previous empirical studies on mode choice, focusing on those dealing with local active travel or explicitly addressing urban proximity. In this literature, there is a general consensus that mode choice is influenced by both social characteristics and built environment factors, with the former often playing a more significant role than the latter, and travel distance being a strong prerequisite in all cases.
The empirical approach to mode choice has been traditionally oriented by microeconomic theories of consumer choice and principles of cost-benefit optimization. By correlating built environment metrics with travel mode decisions, and accounting for different social and trip characteristics, studies seek to inform policy by predicting theoretical returns of improving urban conditions where spatial, social, and economic costs are not trivial.
This approach is popular because it yields clear associations between intelligible characteristics of the built environment and travel behavior. However, when using these features as predictors of travel behavior, methodological problems (multicollinearities, threshold-like nonlinearities, or endogeneity) and conceptual dilemmas (when associating utilitarian decisions with the choice to walk in proximity) arise.
Recently, machine learning has emerged as an alternative modeling approach, offering perceived advantages in handling dimensionality challenges, relaxing traditional modeling assumptions, improving prediction accuracy, and facilitating model convergence. However, this approach comes with its own limitations, which commonly imply a reduced heuristic power derived from their “black-box” nature, making researchers and policymakers somewhat hesitant, even skeptical, in their adoption.
The goal of this study is to address variation in predictive power across different models accounting for “varying definitions of proximity” according to distance (as a physical limit) and trip purpose (as a proxy to the diverse nature of local travel). In a context of demand for proximity policies, this study seizes the opportunity to experiment with new ways of exploring patterns of association between walking, and the social and built environment. It leverages machine learning approaches to predict walking against all other modes, exploring the tradeoff between informational power and robust modeling.
Specifically, we analyze Madrid metropolitan travel survey data on home-based trips, applying controls that include short trip distance thresholds ranging from 600 to 1500 m, and non-work purposes. A broad portfolio of social and built environment metrics is then built and tested for modeling in multiple configurations and grouping strategies which help cross-validating the reliability of the final models.
For each combination of distance and trip purpose—relevant by sample size—we implement a supervised machine learning workflow to identify the most important metrics for achieving reasonable accuracies. By inspecting both accuracy and feature importance behaviors across combinations, we seek the expected relationships found in the associated literature but also assess the predictive potential of these “urban proximal” behaviors under different data scenarios.
This paper is structured as follows. First, we review the existing literature on the effects of the built environment on travel behavior, focusing specifically on studies empirically addressing urban proximity. This section outlines conceptual foundations, previous empirical evidence, and methodological considerations. Next, we detail the research design, including preliminary data exploration and treatment, modeling filters, feature inventory, and combined features’ schemas used. Finally, we present the model results and conclude with reflections on the implications of our findings for research and practice.

2. Literature Review

2.1. Background

Urban proximity has emerged as one of the strategic levers in European policy for sustainable urban development. By reducing trip lengths and promoting active modes of travel, proximity-oriented spatial design supports a shift toward sustainable transportation [1,2,3]. Urban proximity policy is about fostering geographic nearness among activities that generate active travel demand. However, when addressed as a research concept, it extends beyond physical nearness, emphasizing many other nuances of local spatial conditions needed to facilitate these interactions, and broader social implications [4,5].
In planning practice, these principles can be traced to early neighborhood-scale planning movements in history. Its contemporary usage, however, is rooted in mid-20th-century critiques of car-oriented, modernist zoning, and the loss of attention to public space and human scale. This criticism eventually catalyzed a series of planning movements proposing a comeback of the original values of neighborhood planning. Since then, many contributions over the decades have helped shape the current debate around the concept, also setting the framework for most empirical research from the 1990s onwards [6].
Urban proximity has inspired empirical research on travel behavior more or less explicitly, particularly in the realm of mode choice in local environments. Early studies of this thread focused on neighborhood characteristics and their influence on travel behavior, spurred by debates surrounding urban sprawl and car-oriented development. New Urbanist alternatives, with their emphasis on walkable street layouts, mixed land use, and compact urban form, provoked both political and academic interest in how built environment features shape travel behavior, so as to demonstrate whether these prescriptions -and, to which extent- could actually tame travel behavior or not [7,8,9,10].
Current interest in proximity-oriented policies mirrors earlier debates. Concepts like the Walkable City or the 15-Minute City advocate for easy access to essential services within walkable distances, but face criticism from skeptical policymakers or segments of the public [11,12,13,14]. Research trends such as Accessibility Planning advocate for proximity as a tool to counteract mobility-focused approaches which often exacerbate access inequities, and also report implementation gaps in policy-making institutions [15,16].
Some of these approaches have reached a degree of maturity which has gained traction as actual policy frameworks. In Spain, where our case study is located, proximity is explicitly invoked as a target of the national New Urban Agenda, and associated with the commonly prescribed characteristics of density, land use mix, or accessibility, a clear legacy of the previous debate. In Spain, the importance of urban proximity policy has already had an impact on many examples of local planning in cities such as Vitoria-Gasteiz, Barcelona, Castelló de la Plana, Valladolid, or Pontevedra [17,18,19].
Our proposed case study, the Metropolitan Region of Madrid (henceforth MRM) constitutes an interesting regional context for studying active travel behavior. The MRM is the biggest population concentration in Spain, a quite diverse set of political and urban local contexts [20], with a privileged data availability that poses a great opportunity for advancing general and local knowledge on the matter.

2.2. Framework

By shifting short trips from cars or public transportation to active modes, urban proximity policies aim to reduce environmental impacts, improve public health, and foster social engagement [1,2]. Research on this “modal shift” focuses on the interplay between individual characteristics, trip purposes, the built environment, and the way they can unlock travel change. It revolves around notions of “trip evaporation” or “latent demand” suggesting that, when certain conditions align with residents’ needs, preferences, or perceptions, walking will become their first choice for local travel [21].
The relationship between the built environment and travel behavior is often framed through the “D’s”, a shorthand introduced by Cervero and Kockelman [22] that summarizes and groups the characteristics that influence travel behavior, first proposed in the context of New Urbanist prescriptions. Since then, factors such as density, diversity, design, and destination accessibility have become common to model travel choices, with subsequent reviews expanding this framework [23,24,25].
This line of research broadly accepts that, while socioeconomic characteristics exert a critical influence on mode choice, built environment features remain important, particularly for active travel, in which notions of distance or accessibility are usually highlighted [26,27]. However, consensus on what particular features to measure, how to measure them, and how to associate them to travel behavior, has not been reached yet [28,29].
Within this broader field, the particularities of local travel behavior have received increasing attention in recent years [30]. Earlier studies explored the dynamics of non-work local active travel through notions of transportation cost, later refined into “neighborhood” measures of accessibility. Findings suggested a distinct nature of local behavior, defined by social and built environment factors, but showing higher complexity and sensitivity to variations on the latter. They also identified limitations derived from data unavailability, sensitivity to metric approaches, and methodological fragmentation [31,32,33,34,35,36,37].
The explicit notion of Urban Proximity has seen recent epistemological, methodological, and empirical advancements. As an approach to policy, it should inform the promotion of active travel; as a metric approach, it revolves around the notion of user-defined local accessibilities; as a transportation problem, it mainly (though not exclusively) focuses on daily, non-work recurrent trips; heuristically, it usually defines a Boolean state of proximity (either filtering trip or social characteristics, and commonly using thresholds of time or space), which is tested against behavior, and moderated by other characteristics [16,38,39,40].
Recent empirical studies on proximity reflect these ideas more or less explicitly. Haugen [41,42] studied practical and social dimensions of satisfaction with proximity in Sweden, as well as its objective measurement, showing how life situations influence threshold perceptions, and how these are also tied to the cultural and social context. In Marquet’s studies in Barcelona [5,38] and Gil-Solá and Vilhemson [43] studies in Sweden, both social and spatial metrics are tested against threshold-defined travel behavior, revealing complex interplays between spatial configurations, individuals, and choices.
The growing popularity of the 15-Minute City concept has catalyzed a rather homogeneous metric approach to proximity. This concept advocates for sufficient access to basic needs around (though not exclusively) residential locations, in time-distance thresholds of around 15 min, providing a starting point for quantitative proximity operationalization based on cumulative accessibility metrics [12].
For instance, refs. [44,45,46] demonstrate that local behaviors using these definitions vary greatly in social and urban space, confirming the need for flexible proximity thresholds that account for age, household structure, or even cultural contexts. Other works like [47,48,49,50] have expanded this search by incorporating morphological, physical, functional, socioeconomic, and regional structure dimensions to test the varying influence of “proximity states” considering both user preferences and urban characteristics, in local travel.
Notions of accessibility (in the geographic sense) seem to be the most popular approach to the question. Recent works use accessibility metrics of cumulative opportunities, land use intensity or sufficiency, land use complementarity, or regional structure, replicating the former multifaceted dissection of built environment factors into the “D’s”, only more explicitly introducing notions of local active travel thresholds [51,52,53,54,55].
Reviews on this approach have highlighted the importance of carefully defining pairs of origins and destinations, along with the aforementioned user-defined thresholds and needs; the consistent trend for measuring residential-based accessibility, and the combination of local accessibility with characteristics such as income, density, and street design. These studies also underline the importance of nuanced movement rules, varying scales of analysis, and accurate pedestrian network representations [56,57,58].
In summary, our review situates the empirical study of urban proximity within a broader context of the study of travel and the built environment. We set our hypothesis in the idea that, if distance and user preferences are the most influential features in choosing to walk in proximity, controlling these features will make predictive models point out the relevance of social characteristics, and secondarily be moderated by built environment characteristics. This way, the most relevant features can be inspected for insights into better ways to tailor future proximity policy, accounting for varying distances and needs.
In the next section, to further frame methodological possibilities, we review specific methods for statistically capturing the impact of different features on travel behavior.

2.3. Methods to Address Proximity

Prediction of mode choice has been explored through three primary theoretical lenses: utility theory (travel decisions are driven by conscious and rational evaluations of costs and opportunities), habit formation (travel is influenced by attitudes and lifecycle events, as a less rational decision), and activity-travel research (travel is influenced by a combination of social, normative, temporal, and geographical constraints) [59,60,61,62,63].
These theories -and, particularly, utility theory- have been inspected through quantitative microeconomic approaches to consumer choice such as the Random Utility Models (models that incorporate “random” elements to account for unobserved preferences) or the Discrete Choice Models (models that frame decisions as probabilistic distributions of utility across alternatives). Although many operational variations of these approaches have been proposed, multivariate and multinomial Linear, Logit, and Probit models have been the most common way to go in this domain [64,65,66].
These models are the standard in studies of mode choice and the built environment. They offer interpretability, as their estimated coefficients provide insights into the direction and magnitude of relationships, and instrumental variables, estimated intercepts, or distribution of errors help understand unobserved influences. When expressed as elasticities, they reveal the magnitude of change in a variable required to produce a fixed change in travel outcomes such as mode choice. This particular approach is thought to be widely informative to policymakers, as it attempts to provide a sort of return-of-investment view to evaluate the potential for modal shift [23,24,25,27].
Despite their strengths, these models face methodological challenges. Dimensionality reduction (removal of variables) is frequently necessary to ensure predictor independence (and thus, model convergence), and it is typically achieved through Principal Component Analysis or expert-based variable selection. However, this removal can lead to a tradeoff between preserving valuable information and maintaining interpretability and is commonly a subjective process.
Second, perceived endogeneity between mode choice and the environment remains a persistent issue in the literature, as exemplified by the “residential self-selection problem”, a particular dilemma of considering whether individuals choose their home location based on their preferred travel mode or not, complicating causal interpretations [25,67].
Third, these kinds of models struggle with non-linear relationships in their attempt to fit linear functions of travel behavior, potentially oversimplifying complex dynamics, and significantly lowering the accuracy of models. In the case of the effects of the built environment on individuals, threshold-like, non-linear effects are widely acknowledged in research [68,69], posing dilemmas to the validity of Linear, Logit, or Probit kind models.
To address these limitations, machine learning (ML) has emerged as an interesting approach in transportation research, particularly for predicting mode choice. ML, in short, are algorithmic methods that attempt to learn from observed data in order to improve the accuracy of prediction, with little assumptions on the data structure, which they consider opaque or “black-box” [70]. ML techniques are interesting in this field of study for dealing well with non-linear relationships, allowing for flexible definitions of the input data, and dealing well with high dimensionality, maintaining high predictive performance and convergence [70].
Among ML approaches, Random Forests (RF) have gained significant traction in mode choice models due to their balance of accuracy, efficiency, and interpretability. RF are models that build ensembles of decision trees (a tree graph approach to splitting probabilities of an event occurring when sequentially looking at associated predictors), each adjusted to a random subset of the data, and finally “voting” for the most accurate elements of the final tree. This randomness reduces overfitting and allows RF models to capture non-linear interactions more effectively than linear approaches [71].
Random Forests offer additional advantages, such as readable insights into variable importance, aligning with our goal of policy information. However, they are not without limitations. They prioritize prediction over theoretical exploration, making them less suited for causal inference, and prone to overfitting if poorly specified or combined with low-quality data. Recent studies suggest that combining RF with linear models could mitigate this limitation, offering a hybrid approach that enhances both accuracy and interpretability [71,72,73,74,75].
Meanwhile, other works are exploring different techniques of feature importance and/or explainable ML modeling to address the relationship between travel outcomes and features of the social and built environment, such as the use of SHAP (SHapley Additive exPlanations) values [76,77,78], or partial dependence plots to unveil non-linear relationships between predictors and travel outcomes [79].
Any modeling approach to complex phenomena will simplify reality to a point which will pose doubts about the actual clarification of mechanisms of influence. Concerning travel and the built environment, the amount of potentially related information (the many predictors proposed by planning literature) leads to a subjective process of model specification (deciding what factors to use or the shape of their relationship, according to different theories) which, in our particular case, is also affected by a non-trivial sensitivity to metric approaches to their measurement (deciding how to measure urban and social characteristics, by which thresholds, etc.)
When exploring travel datasets in search of potentially modifiable behavior, we understand that social and formal realities are intertwined in complex ways which can only partially be captured. In the process of correctly specifying models, we assume there is a part of the story which is obscured by our decisions on the information used. If urban proximity is defined through variable user-defined thresholds of behavior, we could leverage the ability of RF models to achieve convergence and reasonable accuracy under many different definitions, while maintaining a homogeneous data treatment and specification methodology, as the structure of the problem does not need to be defined for each particular population segment.

3. Materials and Methods

To situate our approach in the wider legacy of the study of travel and the built environment, we classify it as a choice model of disaggregate travel behavior, combined with aggregate built environment data and a wide portfolio of demographic variables [66,67,80,81,82,83]. Operationally, it will deal with combinations of arrays of data filters for user needs and varying thresholds of proximity which, in our case, we approach using distance and purpose. These filters yield diverse data subsets with potential heterogeneity in causal mechanisms, complexity in feature relationships, and, in general, high sensitivity to the filters used. Heuristically, it will leverage Random Forests’ capacity to manage this complexity and still yield readable and accurate results. This section describes each component of the proposed research methodology.

3.1. Data Constraints and Measurement Strategy

3.1.1. Data

The MRM integrates 28 municipalities, with a total population of 5,557,365 inhabitants as of 2017 (the reference year for the travel survey), and a total area of 193,588 hectares. MRM includes a wide variety of urban fabrics, with a diversity of density levels and land use combinations. Mixed-use town and neighborhood centers coexist with residential-only suburbs and specialized centralities, resulting in a very diverse caseload of urban tissue samples to illustrate the proposed method.
The main data sources were the Spanish Cadastre and the 2018 Madrid Region travel survey dataset (Encuesta Domiciliaria de Movilidad or EDM2018). The dataset was copied into four versions, filtering distance in 300 m intervals (from 600 to 1500 m), keeping home-based, non-work purposes. Each trip was labeled with Boolean values for walking (1) and other modes (0), and the different social, trip characteristics, and attitudinal variables were properly “dummified” into Boolean columns for each unique category.
In this survey, all trips performed by each household member during a normal weekday are “declared”, with purpose and precise origins and destinations, along with starting and end times, which produce a relatively objective travel distance (calculated as the crow flies), and a more subjective travel time (which is checked for coherent speeds per mode, for instance, walking trips being is checked to be between 1 and 5 km/h). These locations are aggregated for privacy reasons into carefully defined Transportation Analysis Zones (TAZs). The dataset includes an expansion factor, referred to as the “elevator”. This scalar extrapolates the surveyed trips to the broader population, based on a detailed demographic segmentation developed by the Regional Transportation Authority of Madrid, using gender, age, and household size cohorts [84].
A thorough exploration of the data was performed. A rule of 15-minute trips (labeling all trips as being under 15 min of duration, as per their start and end hour of the day) was inspected for all variables available in the survey, leading to some decisions for not including particular variables or classes, as well as some caveats for dataset imbalance. Information on nationality, reduced mobility conditions, qualitative frequency, day of week, attitudinal or trip purpose variables with an ambiguous response of ‘other’, households above 5 members, or night trips (between 9 PM and 6 AM), were filtered out.
A significant imbalance between a majority of walking trips in proximity and all other modes was revealed. In searching for ways of controlling user needs, combinations of distance, purpose, age, household structure, building age, and density were explored. However, when controlling beyond distance and purpose, samples became highly imbalanced (towards walking) or reduced to irrelevance (too small sample sizes).
Oversampling was first considered in these cases but, given the decision of testing walking against ‘all other modes’, the synthetic creation of records of the minority could potentially become confounding or biased. This led us to opt for only controlling distance and purpose, combined with random undersampling, in order to keep wider and less “intervened” samples on each model. Random undersampling, in the implementation used, randomly picks and removes samples from the majority class which, in most models (especially when filtering smaller trip distances), corresponds to walking trips.
Information about the transportation infrastructure and the street network was gathered from the Consorcio Regional de Transportes de Madrid open data portal (CRTM), the latter being modified to accommodate a realistic pedestrian movement representation, using Open Street Map to detect footbridges and other pedestrian-only links. This last source also served as a reference for building the boundary data on green areas, which were not available in the Catastro database (the cadastral data only contain information for private premises, and most public green areas are not represented in it).
The built and social environment was modeled by combining Catastro and the Spanish Statistical Institute (Instituto Nacional de Estadística, INE) census data. Catastro provides a detailed description of each individual property and its composition in terms of land use, floor area, and other architectural details. INE offers detailed information aggregated to the Census Tract boundaries (areas around 1000–2000 inhabitants each), such as income, household size, or age cohorts. These sources combined to provide a “synthetic population” stratum of potential respondents in the EDM2018 TAZs.

3.1.2. Measurement Strategy

The measurement strategy considers all metrics calculated at the housing unit level, from which the particular isochrones for each distance threshold are calculated, becoming the geographic extent for each calculation. As we have calculated the estimated “synthetic population” at the building level (housing units sharing a geolocated address), all metrics have been averaged, weighting by population, and grouping the data by the ID of the TAZ where each address is contained. This way, all metrics adopt the form of a basic “reach accessibility metric” (measuring something within a certain reachable area), and smooth the influence of well-known sources of spatial bias such as the Modifiable Area Unit Problem. Formula (1) expresses this measurement strategy in a generalized way.
M T A Z = i H P i f R i i H P i
where:
  • MTAZ is the final metric computed for the aggregation zone.
  • H is the set of housing units within the aggregation zone.
  • Pi represents the population associated with housing unit i
  • Ri is the set of reachable nodes from housing unit i
  • i within the threshold distance.
  • f(Ri) is an arbitrary function applied to compute a particular metric based on the information contained in the reachable nodes.

3.2. Predictors

The measurement strategy considers all metrics calculated at the housing unit level, from which the particular isochrones for each distance threshold are calculated, becoming the geographic extent for each calculation. As we have calculated the estimated “synthetic population” at the building level (housing units sharing a geolocated address), all metrics have been averaged, weighting by population, and grouping the data by the ID of the TAZ where each address is contained. This way, all metrics adopt the form of a basic “reach accessibility metric” (measuring something within a certain reachable area), and smooth the influence of sources of spatial bias such as the Modifiable Area Unit Problem. To avoid scale issues with the proposed RF approach, features are normalized beforehand.

3.2.1. Density

Density is the most used feature in this legacy of research, likely for its ease of calculation, being strongly associated with local travel behavior [85]. Density has been used elsewhere to distinguish regional classes of urban fabric (such as rural vs urban fabric), account for the varying intensity of resident or floating population, measure indices of formal spatial volumetric configurations, or describe policy areas [86,87]. We opt for the density measurement as total accessible population and housing (from each housing unit), floor area ratios, and percentage of different reachable land use classes.

3.2.2. Diversity

Spatial co-presence measures were used in this work, following the “walkable trips” methodology described in [51]. These metrics quantify the spatial complementarity of residences and other land uses within certain thresholds, enabling walking. This approach moves away from previous land use mix metrics, often borrowed from ecology, which have been criticized for having symmetry issues, or being too sensitive to varying spatial boundaries [88]. The selected metrics leverage the accessibility concept to build a notion of theoretical sufficiency and complementarity at walkable distances, and also yield notions of imbalance (namely the “unpaired trips”), which suggest latent demand.

3.2.3. Design

Street network characteristics such as slope, block length, straightness index, intersection degree, mean building age, or regional network centrality measures such as betweenness were included. These measures capture elements of the urban form that influence the effective reachability of destinations, particularly for different demographic groups. We have mostly drawn inspiration from reviews such as [89,90], or thoughts on the influence of street layout such as [91]. Data limitations at the regional scale precluded the inclusion of more “material design” metrics, which remain a gap for future works.

3.2.4. Destination Accessibility

Specific accessibility was measured by counting cumulative opportunities (the number of unique assets of a particular type within a specified distance), echoing the recent trends sparked by the 15-Minute City concepts. Metrics also include accessibility to green spaces and unique transit options. While some biases regarding the “count of different properties” exist, the combination of land use percentages and absolute density ensures a nuanced representation of accessibility (see the aforementioned reviews [56,57,58]).

3.2.5. Demographics

These include gender, household structure (e.g., presence of children, retirees, students), educational level, work status, household size, and age cohort, derived from the travel survey. Other variables were calculated at the TAZ level, assigning census data to each residential unit in the area, and then performing average metrics for reachable units at the different thresholds, including income, mean household size, and mean age. Other attitudinal indicators such as holding a driving license, a transit card, or having a car, were drawn from suggestions in the literature, and taken from the travel survey [60,61,62].
From the variables that were initially built, some were discarded for having extremely high correlations, or only representing very slight theoretical differences from other factors already in our portfolio. In Table 1, we detail all variables used in the study with their description.

3.3. Feature Selection Process

RFs have two important design considerations: feature selection and overfitting. It is necessary to select the least noisy features (in our case, simple column data), to achieve a good generalization (which will make models maintain accuracy when presented with new data). Multicollinear or irrelevant predictors should be reduced, as in other modeling approaches. In ML, this can be addressed through Feature Importance, a quantity (from 0 to 1) that reflects the “impact” of each individual predictor in the global model performance (aiming at a metric of our choice, such as accuracy). Specifically, we use Permutation Feature Importance, which tests the change in models after randomly shuffling each feature, allowing us to answer the question: is this feature better than randomness [92]?
On the other hand, overfitting is the situation where a model has learned a particular dataset so much that it does predict with high accuracy only because it knows the shape of the data very well. Thus, when reading new data and attempting to predict new observations, it might not be able to capture actual relationships between the data and the target. This issue is a particular concern in our approach, as it particularly affects small samples. Though we aim at medium-sized datasets after filtering distance and purpose, walking behavior will most likely be the norm in proximity distances, so artificial “balancing” of our data will be desirable, yet it will further reduce the size of each model’s input, exposing it to easier overfitting. Given the results of preliminary experiments with data filters to capture user needs in trips, we opt for using random undersampling to balance the travel mode information of each model, removing random samples from the “walking” category, which accounts for the majority of trips in most models.
Keeping these constraints in mind, we detail the proposed feature selection workflow. To address what features of the social and built environment better predict “proximity choice”, we propose a “survival game” process of extracting the importance of combinations of these features, for each of the proposed combinations of trip distance thresholds and purposes. Variables that compose a final version of a particular model, and do not show signs of overfitting, can potentially be considered important to the models’ specifications on distance and purpose control.

3.3.1. Filtering the Dataset for Each Model

We prepare each dataset with particular distance and purpose controls and perform a random undersampling method to balance the sample for mode choice. The use of an array of short-distance thresholds becomes our Boolean states of proximity. We start at a short value of 600, going up to 1500 m in 300 m steps, which are sound lower and upper bound for walking trips in our data. Hypothetically, if other modes of walking are chosen for trips within these ranges, there could be identifiable reasons for it, assuming that walking is universally preferred over other modes.
Trip Purpose filters the everyday non-work travel behavior targeted in the reviewed literature. It mainly affects the location of the destinations and should show great variation in mode choice. More detailed inspections of the EDM2018 could be tried in future works (such as trips to primary schools or universities, or different activities of care). Moreover, in our data, some purposes have some confounding definitions, such as Stroll/Sport or Leisure Trips. Table 2 shows the final combined filters in the exercise.

3.3.2. Preparing Predictors’ Combinations

We define a series of relevant combinations of features to start with (which come from domain knowledge and use Principal Component Analysis (PCA) for merging variables into meaningful indices). The targeted PCAs merge groups of variables under different explanatory combinations, inspired by the many theories found in the literature. PCA is commonly used for dimensionality reduction broadly used in our scope domain (see, for instance, [22,67]). It transforms a dataset with many correlated variables into a smaller set of uncorrelated variables (the orthogonal principal components).
Included schemas are models incorporating all related predictors, which will be affected by multicollinearity, thus feature importance might be less reliable. However, it is interesting to test how all variables behave together; a thematic grouping of indicators (using the D’s framework) could address much of the multicollinearity that can be expected across groups; aggregated variables that retain trip purpose predictors leave information directly associated with trip purpose out of the grouping of factors; using only thematic variables for each of the D’s can address if any of them is more informative than others and finally; using all metrics, and all combined metrics, both using only sociodemographic and built environment-themed features, which in turn let us compare both approaches.
In Table 3, the grouping strategy is made explicit, while Table 4 summarizes the schemas’ composition and assigns a key name. For each schema listed in Table 4, PCA was performed by selecting the groups depicted in Table 2, selecting only the first component, which accounts for the most variance in the data. Further information on the Only Purpose schemas is given in Table 5, explaining those features considered for each trip purpose.

3.3.3. Eliminating Highly Correlated Predictors

We perform a first feature selection based on extreme correlation. We iteratively evaluate the pairwise correlations among all features, discarding the feature from each highly correlated pair (>0.9) that is less correlated with the target. If we were to approach this process manually, we would choose variables that make it to the final model based on our expert criteria, or even modify this correlation threshold based on our knowledge. However, we decided to keep the process transparent in terms of selection, as we have to aim for the highest possible accuracy (without bias), as recommended in ML literature. Also, it is interesting to test if those variables that “survive” in each model have domain soundness, mean a proxy for something else, or are totally unexpected. We acknowledge that this particular correlation threshold will greatly impact the selection process, so further iterations of this value should be considered. However, so as not to have an additional source of uncertainty, we decide to simply keep it high.

3.3.4. Iterations of Permutation Feature Importance

Next is an iterative process of model fitting and feature importance evaluation. Models are fitted using a non-exhaustive grid search (combinations of model parameters aiming for higher accuracy). The grid search covered the number of trees in the random forest (50 and 100 trees); values for limited versus maximum tree depth (10 splits or no limitation); and allowing deeper trees by setting the size of the minimum sample which can be split and the minimum size of leaves to a value of 2 (which allows for fully developed trees, but also increases the risk of overfitting), or more controlled values of 10 minimum sample and leave size.
Many approaches to feature importance exist, such as the Gini Impurity, the Shapley Additive Explanations, the Boruta algorithm, or the Recursive Feature Elimination [93]. We have selected Permutation Feature Importance for its intuitive interpretation against randomness. Each iteration, permutation feature importance is run, discarding features with negative importance for the next iteration or, in other words, dropping features which, even if they are considered theoretically important, do not add more predicting power than randomness. We perform this process until no negative features are found.
This method has a good balance between simplicity of interpretation and computational cost. However, we acknowledge that other sides of the results could be explored through alternative methods for feature selection.

3.3.5. Overfitting Tests

The final models are also tested for overfitting: If a sensible difference exists between the accuracy of the train and test data in each model, this may be an indicator of overfitting. Also, we use cross-validation to understand how well the model generalizes our problem. Cross-validation consists of testing the trained model against random subsets of the training data. If the accuracy of the different subsets is very diverse (we inspect this point using the mean and standard deviation of accuracy at each test), then overfitting is likely happening. For our final models, we will only select those that pass these tests.

3.3.6. Selection of Results

The three most accurate models for each purpose were selected, along with the best three Built Environment-only models, and inspected for accuracy, permutation feature importance, and confusion matrices. Models were forced to either have a minimum value of 50,000 in the total “elevator” sum (as a proxy to the size of the population they represent), and have a minimum of two features remaining in the final model, if the iteration reaches that point. Throughout the process, we used Python’s (Version 3.11) implementation contained in sci-kit learn [93], and imbalanced-learn libraries.

4. Results

4.1. Model Accuracy

Two of the most common approaches to inspect performance in Machine Learning classification are Accuracy and Confusion Matrices. In this context, accuracy is defined as the proportion of correctly classified instances over the total number of instances. A higher accuracy value indicates better model performance, but it is essential to complement this metric with its parameters (commonly displayed as confusion matrices) to understand classification errors. Mathematically, it is expressed as
Accuracy = T P + T N T P + T N + F P + F N
where:
  • TP (True Positives): The number of correctly predicted positive cases.
  • TN (True Negatives): The number of correctly predicted negative cases.
  • FP (False Positives): The number of negative cases incorrectly classified as positive.
  • FN (False Negatives): The number of positive cases incorrectly classified as negative.
High accuracy, under this formulation, only expresses the overall ability to correctly classify a trip as walking or not. Thus, its composition needs to be inspected, as models could, for instance, predict walking trips well, but nonwalking trips incorrectly. Our previous undersampling to balance classes before modeling, partly helps overcome this situation.
The most accurate model is the Shopping model at a 600 m distance, achieving the highest accuracy (0.752) without overfitting. The second and third most accurate models are also observed at short distances (Shopping 900 m and Sport/Stroll 600 m, with accuracies of 0.724 and 0.712, respectively), also suggesting strong predictive power. Out of the five highest accuracy models, four of them were for shopping purposes. A step below, we find the pooled “all” category (0.694 accuracies for the 1200 m model); the best Care model (1200 m with an accuracy of 0.691), and the best Study model (attained at 900 m and a global accuracy of 0.68). Way below these purposes, it is the best-performing Leisure purpose model, with a global accuracy of 0.628, and a 1200 m threshold.
Regarding the schemas used, across all tested configurations, demographic-driven models tended to achieve higher accuracy than those using only built environment factors. When considering only built environment factors, the most accurate models are purpose-driven schemas at 600 m (Shopping and Sport/Stroll trips); and design-focused schemas, especially those incorporating network centrality measures such as betweenness and straightness and density-based schemas, showing competitive accuracy levels.
Confusion matrices provided another (and a bit more disappointing) view of model performance by breaking down the correct and incorrect predictions. In our dataset, all models exhibit high TP, suggesting they effectively differentiate walking trips, but also many models exhibit rather high proportions of FN, showing that some models underestimate nonwalking trips. This behavior suggests that either the selected features are only well suited to predict walking (and in most cases, probably overfitted), but generally show problems in predicting other modes; or that the pooled “other modes” category should be considered in more detail and disaggregation, as it is not as easy to generalize by these models or, in a third stance, that the controls could be actually explaining most of the variation in mode choice.
Table 6 shows the selected results, highlighting those models that have at least a TN percentage higher than 30% which, though it is not a great performance, can be seen as a tendency towards a better generalization. When seen from this perspective, it is interesting to note that the best models only keep “All”, “Care”, and “Study” models, which suggests that it is only through larger samples (as in the “All” models) or in these specific purposes where we can detect a relevant influence of factors beyond distance and purpose.

4.2. Permutation Feature Importance

Permutation Feature Importance helped identify the most influential predictors in our models, yet multiple random state iterations only tended to show stable results in models with a better proportion of TN. However, even with the randomness implied by our permutation feature importance approach, features that consistently make it to the final models can be detected in the majority of the iterations performed. Models struggle to generalize our problem, yet still suggest some notable patterns.
As in accuracy patterns, demographics show greater influence on most models. Household size and income were important across models, followed by some age cohorts (younger and older populations) and activity status. Vehicle ownership or driving license were also important in some models. Regarding built environment features, building age consistently ranks as one of the most important across schemas, along with street network characteristics. Other emergent factors are less frequent, such as some accessibility metrics, unbuilt areas, and those associated with urban sprawl, such as single-family residences.
Shopping Trips show interesting patterns. The best model is a combination of Gender, Income, and Household size. The next three models are achieved only by means of built environment features, pointing at design features (they all originated from Only Design schemas) with similar importance. Building Age and features of the “configurational” kind such as centralities seem to be the most important. Also, some less important Density metrics arise, such as “Percentage Unbuilt” or “Percentage Shopping Mall”.
Best models in the “All Purposes” category are similar in accuracy and show expected factor combinations. The best model used Only Demographic schema and pointed at “Has vehicle”, “Household Size”, “Income”, and a more confusing factor of Household Structure (“Students aged 6 to 12”). Another two models kept “Building Age” obliterating all other factors, while the remaining two are first, a combination of characteristic density factors (“Population Density”, “Percentage Unbuilt”, and “Percentage Single Family Residence”) and, second, a model exclusively retaining “Accessibility to Transit”.
Care trips attain the best performance when “Has a vehicle” is present. Also “Has driving license” ranked important in the best three models. Other less informative, yet important features were “Unemployed”, “Household Size”, “Education” or “Income”. These models yielded confusing features in their three best Built Environment-Only models. While the general Combination of Accessibilities and Building Age emerged as very important, other confusing features such as Accessibility to Leisure Bars emerged.
Study models were, once again, more demographic-oriented. However, in this case, the best model also maintains other more informative Built Environment metrics, such as Accessibility to Transit, Small Parks, and Population Density. Level of education and Age Cohorts arise as very important in these models. The best three models only using Built Environment include a very confusing model including Accessibility to Medium Parks, Leisure Diversity, or Percentage of Shopping Mall; another more reasonable model with features capturing Accessibility to different kinds of School Facilities; and another parsimonious model using only Betweenness and Building Age.
Leisure models had a comparatively low accuracy, only managing to obtain one model, composed of Accessibility to Transit, and Density/Diversity of groups of less and more walkable land uses, respectively. Also, Betweenness played a less important role in this purpose. Features in Sport/Stroll trips also yield somewhat confusing models. The best model is a combination of Building Age and Transportation, and the second best is composed mostly of combined Demographic features, such as Household Size and Income, and, notably below in accuracy, models combining either Building Age with Centrality measures (Betweenness and Straightness), and Population Density with Percentage Single-Family Residence, respectively. Figure 1 and Figure 2 show feature importance results.
When considering only those models with TN higher than 30%, we note a slightly more readable set of feature importance results. “All”, “Study” and “Care” models generalize better and still consistently point at demographics and accessibility to relevant facilities, together with features that point to the presence of less walkable environments.

5. Discussion

5.1. Regarding the Distance Threshold Approach

Changes in distance thresholds significantly affect model performance across different purposes. This idea aligns with the high importance and granularity of distance in local mode choice [16,40]. Shorter distances (600–900 m) yielded higher predictive accuracy on average. However, these thresholds reduce the “other modes” class considerably and, after undersampling, models in shorter distances receive a sort of “target leakage” bias that should not be overseen, and can be locally very significant (for instance, in places where other modes are especially less used).
In future works, more sophisticated ways of resampling models, particularly those oversampling minority classes, should be tested, probably taking into account the original modes in the oversampled class. Also, another way of reducing the imbalance class could be focusing directly on those areas where nonwalking behavior in proximity is significant and, while potentially losing data, obtaining more “naturally” balanced samples. The selection of those differentiated areas, however, should be discussed with care.
An implication of distance thresholds is that they constrain the spatial window in which the built environment is measured “around respondents” (in our case, using isochrones). This approach is supported by many reviewed works, from early works such as [21,31], reviews such as [23,24], to more contemporary works such as [87], and the trend of accessibility measurement noted in the 15-Minute City-related work [56,57,58]. We have not considered the sensitivity of metrics to this aggregation approach, as recommended in works like [36,37]. Future steps could include more pedestrian-oriented aggregations such as routes (understanding the role of spatial aggregation in the models), or specifically addressing how model performance varies with distance threshold.

5.2. Regarding Trip Purpose Controls

Purpose controls are a fair approach to user needs, but some categories seem to have bias induced by the lack of further controls such as age, household structure, or income, which are gaining more detailed attention in the literature [30] (for instance, study or care trips have strong age and household implications that were not taken into account). Other models can be biased by limitations of the survey used, such as the Sport/Stroll, the Leisure, and the Care categories, which could also take advantage of further demographic filtering, but also from the selection of destinations considered.
The most accurate models achieved were for shopping purposes and, besides one single model for Sport/Stroll, the second most accurate was in the pooled “All” category. However, only the “All”, “Care” and “Study” models showed some tendency towards a reasonable prediction of nonwalking trips. In some of the categories, quite different feature definitions were achieved, suggesting that similar predictions can be obtained from demographics, built environments, and both kinds of features, yet pointing to demographic features as slightly more important. This could mean that: approaches are interchangeable (could lead to a deeper reflection about the endogeneity of travel and residential location seen in [25,67], or they have similar importance when making choice predictions (with a slightly more relevant role of demographics), being consistent with ideas expressed in [23,24,27].

5.3. Regarding the Schemas and Features Used in the Models

Models using built environment schemas exhibit higher FN rates compared to those incorporating demographics, reinforcing the idea that the built environment alone does not fully explain mode choice decisions. Schemas having demographic definitions were the most accurate, followed by purpose-driven, and those design-centered. In general, schemas using more disaggregated variables (such as those using all variables), ended up having some extraneous predictors, maybe due to the inflexible feature selection. In this sense, future steps could involve relaxing the correlation threshold (or specifically inspecting how the models’ performance varies with this parameter), allowing experts entering the loop of feature selection (manually validating the elimination of features, or simply focusing on one particular “D” at a time), or using more sophisticated grouping techniques, helping to maintain relevance, while avoiding multicollinearity.
In models including demographics in their final feature sets, the most important predictors align with established findings in proximity research: household size and income are strong determinants [38,42,43]. Some age cohorts and activity status emerged in the final models -particularly younger and older populations-, consistent with their importance in recent research [30]. Features such as vehicle ownership or driving license were very important in some models, pointing at the dilemma of endogeneity and residential self-selection described in the literature [25,67]. These features, however, can be very informative as a target variable, or controlled for in future works. In general, it can be said that features revolving around ideas from activity travel research, and theories like habit formation, have a relevant role in studying proximity behavior [59,62].
Regarding the Built Environment factors, Building Age and network centrality such as Degree, Straightness, or Betweenness emerged in many models strongly biased towards walking trips. This result is interesting and has a double reading: On one hand, these features “mask” many other predictors of the built environment, which could be consistent with findings of configurational theories such as Space Syntax or Complex Networks [48]. On the other hand, the interplay between configuration and period might be pointing to a more complex condition of metropolitan structure that could be a proxy for walkability, and it is comparable to the results in [91]. In this sense, though the results are consistent, it remains a future task to inspect further nuances of both regional and local configurational arrangements and, we acknowledge, if this is a particular condition of the MRM (which exhibits many areas or historical urban fabric which, in most cases, are centers that exhibit prominence of walking trips). As expressed in [21], the importance is not on the factor itself (in our case, configuration or regional arrangement), but what it brings along with it. Thus, features like Building Age should be further reviewed for disaggregation into “smaller” design components.
Accessibility, Density, and Diversity metrics yielded more confusing results. Combinations of Accessibilities and Accessibility to Transit were important in some highly accurate models (particularly in those generalizing the problem better), but in other models (and probably highly correlated to some alternative and more informative metric) confusing features emerged, with little or no reasonable connection to the modeled purpose. Regarding density, some accurate models were obtained which pointed to factors preventing walkability, such as combinations of Percentage Single-Family Residence or Percentage Undeveloped Land. In our case, it is disappointing that other more elaborate indices such as the Walkable Trips capturing Diversity through complementarity did not make it almost into any models, when a good generalization was not achieved.
A less “unsupervised” feature selection process, and a more nuanced study through previous control, could help to unveil these factors’ implications in walking behavior. In this sense, a more targeted or conscious use of conditions of accessibility or density could be carried out. For instance, they could be used for filtering urban configurations with no pedestrian accessibility before modeling, differentiating more complex “neighborhood types” such as urban sprawl or other classes of residential neighborhoods, through these factors, as in early approaches such as [21,33], or improving “compliance metrics” such as [51], prior to predictive modeling. Also, introducing all these different “D’s” in single models could simply lead to the confusion expressed in [26], and a simplification of the approach (for instance, only using complex indices of accessibility that account for density and diversity) could improve the readability of results.

5.4. Regarding Informational Power

Policy-wise, these results are still rather limited. In general, better accuracy with less overfitting could be useful for agnostic simulation strategies in which the target is to obtain accurate pedestrian flow prediction. However, not being able to generalize the importance of the associated factors (and, particularly, those that can be influenced “by policy design”), hinders the ability of potential simulation efforts in terms of scenario building. Results are also lacking spatial information, which obscures a critical need not only for knowing “what to do” but also “where to intervene” in planning practice. This issue could be addressed by using alternative feature importance strategies such as SHAP values, which yield individual metrics for observations, that could potentially be located and studied in terms of spatial patterns. Regarding spatial patterns, another interesting idea could be to spatially cluster (for instance, using unsupervised ML workflows such as DBScan, or Local Indicators of Spatial Autocorrelation) those features that seem relevant across models, and perform more controlled comparisons. In any case, helping planners or local experts in the discussion on the effects of the social and built environment on proximity is an appealing future step.
The ability of RF models to converge in many different data scenarios is interesting for a global exploration of these datasets. In the reviewed works on the study of urban proximity, a call for accounting for “arrays” of distances, abilities, or needs across users is encouraged, and other statistical approaches, such as linear or logit models (derived from translations of utility theory, among others), would involve a more costly process of individual model fitting. However, when it comes to comparison across models, the proposed methodology yields incomparable results (feature importance cannot be compared across different models). In this sense, a more controlled feature selection could be helpful for a further iteration in which, after a robust selection, the complete matrix of models could be fit with more “readable” models of the linear or logit kind, yielding readable metrics such as elasticities, more readable model errors, or allowing for the study of “unexplained” variation through intercepts, latent variables, or random utility models.
Finally, some critical questions on endogeneity, such as the residential self-selection or the local vs regional accessibility questions, were not addressed by this method. The former, however, could be addressed by using some of the discarded “attitudinal” variables in the EDM2018 (which held answers such as “I rather walk” or “I rather drive”, which could be further targeted instead of mode choice, to then inspect the similarities and differences. The case of regional vs local accessibility could be further explored by using information about “competing” modes, such as daily distances covered by car from a particular TAZ, which could help explain certain local mode choice behavior, linking, for instance, daily local trips with daily longer commute (such as intermediate “drop-offs” or errands run on the way to work.

6. Conclusions

This study performed a complete feature selection workflow on a very diverse set of predictors, attempting to understand if general regularities emerge from their association with walking behavior. Results ended up yielding mixed suggestions in terms of heuristic power to study urban proximity. In a broad sense, ML approaches seem to struggle with generalizing the problem of local travel mode choice, biasing results towards pedestrian travel, and only achieving balanced results in either large samples or in Care and Study models. However, approaching feature selection only with performance in mind, results in a loss of explanatory power, as the factors (and their importance) yielded by models still need further expert interpretation to possibly inform policy.
Some positive findings were made. Many models reveal a high -although rather biased- predictive power using little information on street configurations and broad building periods, which is an advantage for models that only need to simulate this local behavior, or studies which focus on particular configurations of the urban form revealed by clustering or other kinds of spatial analysis, which could help to reveal “states of proximity” in which walking behavior could need to be modeled differently. Also, models only using demographic variables can be an interesting approach, as this information is broadly available, helping to address endogeneity problems such as the “residential self-selection problem”.
Overall, an exploration like the one presented here yielded an interesting set of predictors across all models, which could be further refined and used in more domain-driven models such as Logit or Probit models, or less explicable Machine Learning models (which are commonly more accurate). Future research should explore hybrid modeling approaches combining econometric and machine learning techniques to enhance both interpretability and predictive power. If some of the ambiguities found in this work are sorted out, ML models could not only detect important features, but also discriminate between those that have linear or non-linear relationships with choice, or those that are “better together”, further improving the specification of Linear or Logit models which, to our view, seems to be the more informative approach still.
The downsides were that too many models ended up having a disappointing behavior in predicting other modes; being formed by features which become misleading or counterintuitive; some attitudinal and sociodemographic predictors seem to point out social patterns which are not directly interpretable (or endogenous to travel mode choice), and need further research. The first issue could be mitigated by the further implementation of variable selection which takes into account domain-driven recommendations. The second could use a prior investigation of social patterns in the targeted geography, and could be adjusted to apply further control to experiments on local mode choice.
The issue with the poor classification of other modes could be addressed by adding new mode alternatives to the models, and addressing sample balance in a more sophisticated “mode-conscious” way. Also, extremely short threshold distances might diminish samples very much, to a point in which comparing walking and other modes becomes trivial, so distance should be kept at the maximum ranges of observed walking trips (in our case, the 1500 m threshold), in order to fully be able to compare modes when seeking to inform “modal shifts”.
Policy implications need to be taken with care, in view of the results. While models have been proven very sensitive to the effects of proximity thresholds and purpose, the sets of factors suggested are sometimes misleading, and models struggle to generalize the choice to walk against other modes. Some of the less biased modes point to urban configuration proxies, demographic features, and known characteristics of less walkable environments. Also, Care and Study show the best overall performances, suggesting that these activities and the most implied population segments seem an interesting vector to further inspect the combined effects of the social and built environment as a tool for policy information.

Author Contributions

Conceptualization, M.B.-M., P.J.L.-D. and J.C.-P.; methodology, M.B.-M.; software, M.B.-M.; validation, M.B.-M.; formal analysis, M.B.-M.; investigation, M.B.-M.; resources, M.B.-M.; data curation, M.B.-M.; writing—original draft preparation, M.B.-M.; writing—review, and editing, M.B.-M., P.J.L.-D. and J.C.-P.; visualization, M.B.-M.; supervision, P.J.L.-D.; project administration, P.J.L.-D.; funding acquisition, P.J.L.-D. and J.C.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This article is a partial result of the project “Accesibility Plannig For The 15-Minute City (ACC < 15′)”, which is funded by the National Program of I + D + I for social challenges, including in the National Plan of Scientific and Technical Research and Innovation 2017–2020 (PID2020-116584RB-I00/AEI/10.13039/501100011033).

Data Availability Statement

The repository containing the complete code used in the gathering, preparation, and final modeling of the data can be found at https://github.com/manubenitomoreno/pw_sources (accessed on 1 February 2025). Datasets and notebooks are available in the corresponding folders of the repository.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Banister, D. The Sustainable Mobility Paradigm. Transp. Policy 2008, 15, 73–80. [Google Scholar] [CrossRef]
  2. Banister, D. Cities, Mobility and Climate Change. J. Transp. Geogr. 2011, 19, 1538–1546. [Google Scholar] [CrossRef]
  3. Holden, E.; Banister, D.; Gössling, S.; Gilpin, G.; Linnerud, K. Grand Narratives for Sustainable Mobility: A Conceptual Review. Energy Res. Soc. Sci. 2020, 65, 101454. [Google Scholar] [CrossRef]
  4. Urry, J. Mobility and Proximity. Sociology 2002, 36, 255–274. [Google Scholar] [CrossRef]
  5. Marquet Sardà, O. Redescubrir la Proximidad Urbana. Componentes Socioespaciales de la Movilidad Cotidiana Sostenible en Barcelona. Ph.D. Thesis, Universitat Autònoma de Barcelona, Barcelona, Spain, 2015. [Google Scholar]
  6. Sharifi, A. From Garden City to Eco-Urbanism: The Quest for Sustainable Neighborhood Development. Sustain. Cities Soc. 2016, 20, 1–16. [Google Scholar] [CrossRef]
  7. Calthorpe, P. The Next American Metropolis: Ecology, Community, and the American Dream, 5th ed.; Princeton Architectural Press: New York, NY, USA, 1997. [Google Scholar]
  8. Cervero, R. Congestion Relief: The Land Use Alternative. J. Plan. Educ. Res. 1991, 10, 119–130. [Google Scholar] [CrossRef]
  9. Cervero, R. Built Environments and Mode Choice: Toward a Normative Framework. Transp. Res. Part D Transp. Environ. 2002, 7, 265–284. [Google Scholar] [CrossRef]
  10. Cervero, R. Alternative Approaches to Modeling the Travel-Demand Impacts of Smart Growth. J. Am. Plan. Assoc. 2006, 72, 285–295. [Google Scholar] [CrossRef]
  11. Pozueta, J.; Lamíquiz Daudén, F.J.; Schettino, M.P. La Ciudad Paseable: Recomendaciones para la Consideración de los Peatones en el Planeamiento, el Diseño Urbano y la Arquitectura; Centro de Estudios y Experimentación de Obras Públicas: Madrid, Spain, 2009. [Google Scholar]
  12. Moreno, C.; Allam, Z.; Chabaud, D.; Gall, C.; Pratlong, F. Introducing the “15-Minute City”: Sustainability, Resilience and Place Identity in Future Post-Pandemic Cities. Smart Cities 2021, 4, 93–111. [Google Scholar] [CrossRef]
  13. Bertaud, A. Last Utopia: The 15-Minute City. 2022. Available online: https://urbanreforminstitute.org/wp-content/uploads/2022/02/15mincity-bertaud.pdf (accessed on 19 January 2023).
  14. Marquet, O.; Mojica, L.; Fernández-Núñez, M.-B.; Maciejewska, M. Pathways to 15-Minute City Adoption: Can Our Understanding of Climate Policies’ Acceptability Explain the Backlash towards x-Minute City Programs? Cities 2024, 148, 104878. [Google Scholar] [CrossRef]
  15. Bertolini, L.; Silva, C. Bridging the Implementation Gap. In Designing Accessibility Instruments; Papa, E., Silva, C., Hull, A., Eds.; Routledge: London, UK, 2019; pp. 223–233. [Google Scholar]
  16. Silva, C.; Büttner, B.; Seisenberger, S.; Rauli, A. Proximity-Centred Accessibility—A Conceptual Debate Involving Experts and Planning Practitioners. J. Urban Mobil. 2023, 4, 100060. [Google Scholar] [CrossRef]
  17. Fariña Tojo, J. La Agenda Urbana Española: Hacia una Ciudad Más Saludable. Ciudad. Territ. Estud. Territ. 2019, 51, 753–764. [Google Scholar]
  18. Lamíquiz-Daudén, P.J.; Baquero-Larriva, M.T.; Ramirez-Saiz, A.; Carpio-Pinedo, J. Proximity and Planning Tools in Spanish: The Cases of Barcelona, Castelló de la Plana, Pontevedra, Valladolid, and Vitoria-Gasteiz. Cuarta Época 2024, 220, 665. Available online: https://recyt.fecyt.es/index.php/CyTET/issue/download/4506/986#page=307 (accessed on 8 April 2025).
  19. Ramírez-Saiz, A.; Baquero Larriva, M.T.; Lamiquiz Dauden, F.J.; Higueras García, E. Proximity Planning for Healthier Cities: Lessons from Barcelona, Bergamo, Ottawa, and Portland. Cities Health 2024, 1–23. [Google Scholar] [CrossRef]
  20. Carpio-Pinedo, J. Spaces of Consumption in the Mobile Metropolis: Symbolic Capital, Multi-Accessibility and Spatial Conditions for Social Interaction. Ph.D. Thesis, Universidad Politécnica de Madrid, Madrid, Spain, 2020. [Google Scholar] [CrossRef]
  21. Handy, S.L.; Boarnet, M.G.; Ewing, R.; Killingsworth, R.E. How the Built Environment Affects Physical Activity. Am. J. Prev. Med. 2002, 23, 64–73. [Google Scholar] [CrossRef] [PubMed]
  22. Cervero, R.; Kockelman, K. Travel Demand and the 3Ds: Density, Diversity, and Design. Transp. Res. Part D Transp. Environ. 1997, 2, 199–219. [Google Scholar] [CrossRef]
  23. Ewing, R.; Cervero, R. Travel and the Built Environment: A Synthesis. Transp. Res. Rec. J. Transp. Res. Board 2001, 1780, 87–114. [Google Scholar] [CrossRef]
  24. Ewing, R.; Cervero, R. Travel and the Built Environment: A Meta-Analysis. J. Am. Plan. Assoc. 2010, 76, 265–294. [Google Scholar] [CrossRef]
  25. Stevens, M.R. Does Compact Development Make People Drive Less? J. Am. Plan. Assoc. 2017, 83, 7–18. [Google Scholar] [CrossRef]
  26. Handy, S. Is Accessibility an Idea Whose Time Has Finally Come? Transp. Res. Part D Transp. Environ. 2020, 83, 102319. [Google Scholar] [CrossRef]
  27. Aston, L.; Currie, G.; Delbosc, A.; Kamruzzaman, M.; Teller, D. Exploring Built Environment Impacts on Transit Use—An Updated Meta-Analysis. Transp. Rev. 2021, 41, 73–96. [Google Scholar] [CrossRef]
  28. Næss, P.; Peters, S.; Stefansdottir, H.; Strand, A. Causality, Not Just Correlation: Residential Location, Transport Rationales and Travel Behavior across Metropolitan Contexts. J. Transp. Geogr. 2018, 69, 181–195. [Google Scholar] [CrossRef]
  29. Stevens, M.R. Reviewing Research on Travel and the Built Environment: If You Don’t Like Meta-Analysis, Try Meta-Regression Analysis Instead! J. Plan. Educ. Res. 2023, 0, 0739456X231197382. [Google Scholar] [CrossRef]
  30. Gao, C.; Lai, X.; Li, S.; Cui, Z.; Long, Z. Bibliometric Insights into the Implications of Urban Built Environment on Travel Behavior. IJGI Int. J. Geo-Inf. 2023, 12, 453. [Google Scholar] [CrossRef]
  31. Handy, S.L. Regional versus Local Accessibility: Neo-Traditional Development and Its Implications for Non-Work Travel. Built Environ. 1992, 18, 253–267. [Google Scholar]
  32. Saelens, B.E.; Sallis, J.F.; Frank, L.D. Environmental Correlates of Walking and Cycling: Findings from the Transportation, Urban Design, and Planning Literatures. Ann. Behav. Med. 2003, 25, 80–91. [Google Scholar] [CrossRef]
  33. Krizek, K.J. Operationalizing Neighborhood Accessibility for Land Use-Travel Behavior Research and Regional Modeling. J. Plan. Educ. Res. 2003, 22, 270–287. [Google Scholar] [CrossRef]
  34. Lee, C.; Moudon, A.V. The 3Ds+R: Quantifying Land Use and Urban Form Correlates of Walking. Transp. Res. Part D Transp. Environ. 2006, 11, 204–215. [Google Scholar] [CrossRef]
  35. Iacono, M.; Krizek, K.J.; El-Geneidy, A. Measuring Non-Motorized Accessibility: Issues, Alternatives, and Execution. J. Transp. Geogr. 2010, 18, 133–140. [Google Scholar] [CrossRef]
  36. Vale, D.S.; Saraiva, M.; Pereira, M. Active Accessibility: A Review of Operational Measures of Walking and Cycling Accessibility. JTLU J. Transp. Land Use 2016, 9, 209–235. [Google Scholar] [CrossRef]
  37. Bolten, N.; Caspi, A. Towards Routine, City-Scale Accessibility Metrics: Graph Theoretic Interpretations of Pedestrian Access Using Personalized Pedestrian Network Analysis. PLoS ONE 2021, 16, e0248399. [Google Scholar] [CrossRef] [PubMed]
  38. Marquet, O.; Miralles-Guasch, C. The Walkable City and the Importance of the Proximity Environments for Barcelona’s Everyday Mobility. Cities 2015, 42, 258–266. [Google Scholar] [CrossRef]
  39. Gil Solá, A.; Vilhelmson, B. Negotiating Proximity in Sustainable Urban Planning: A Swedish Case. Sustainability 2018, 11, 31. [Google Scholar] [CrossRef]
  40. Büttner, B.; Silva, C.; Merlin, L.; Geurs, K. Just around the Corner: Accessibility by Proximity in the 15-Minute City. J. Urban Mobil. 2024, 6, 100095. [Google Scholar] [CrossRef]
  41. Haugen, K. The Advantage of ‘Near’: Which Accessibilities Matter to Whom? Eur. J. Transp. Infrastruct. Res. 2011, 11, 368–388. [Google Scholar] [CrossRef]
  42. Haugen, K.; Holm, E.; Strömgren, M.; Vilhelmson, B.; Westin, K. Proximity, Accessibility and Choice: A Matter of Taste or Condition? Pap. Reg. Sci. 2012, 91, 65–85. [Google Scholar] [CrossRef]
  43. Gil Solá, A.; Vilhelmson, B. To Choose, or Not to Choose, a Nearby Activity Option: Understanding the Gendered Role of Proximity in Urban Settings. J. Transp. Geogr. 2022, 99, 103301. [Google Scholar] [CrossRef]
  44. Li, T. Modeling the Efficacy of the 15-Minute City Using Large-Scale Mobility Data from the Perspective of Accessibility and User Choice: A Case Study on the Urban Food Environment. Ph.D. Dissertation, Massachusetts Institute of Technology, Cambridge, MA, USA, 2022. [Google Scholar]
  45. Calafiore, A.; Dunning, R.; Nurse, A.; Singleton, A. The 20-Minute City: An Equity Analysis of Liverpool City Region. Transp. Res. Part D Transp. Environ. 2022, 102, 103111. [Google Scholar] [CrossRef]
  46. Birkenfeld, C.; Victoriano-Habit, R.; Alousi-Jones, M.; Soliz, A.; El-Geneidy, A. Who Is Living a Local Lifestyle? Towards a Better Understanding of the 15-Minute-City and 30-Minute-City Concepts from a Behavioural Perspective in Montréal, Canada. J. Urban Mobil. 2023, 3, 100048. [Google Scholar] [CrossRef]
  47. Gaglione, F. 15-Minute Neighbourhood Accessibility: A Comparison between Naples and London. Eur. Transp. Trasp. Eur. 2021, 85, 1–16. [Google Scholar] [CrossRef]
  48. Elldér, E. Built Environment and the Evolution of the “15-Minute City”: A 25-Year Longitudinal Study of 200 Swedish Cities. Cities 2024, 149, 104942. [Google Scholar] [CrossRef]
  49. Knap, E.; Ulak, M.B.; Geurs, K.T.; Mulders, A.; Van Der Drift, S. A Composite X-Minute City Cycling Accessibility Metric and Its Role in Assessing Spatial and Socioeconomic Inequalities—A Case Study in Utrecht, the Netherlands. J. Urban Mobil. 2023, 3, 100043. [Google Scholar] [CrossRef]
  50. Poorthuis, A.; Zook, M. Moving the 15-Minute City beyond the Urban Core: The Role of Accessibility and Public Transport in the Netherlands. J. Transp. Geogr. 2023, 110, 103629. [Google Scholar] [CrossRef]
  51. Carpio-Pinedo, J.; Benito-Moreno, M.; Lamíquiz-Daudén, P.J. Beyond Land Use Mix, Walkable Trips. An Approach Based on Parcel-Level Land Use Data and Network Analysis. J. Maps 2021, 17, 23–30. [Google Scholar] [CrossRef]
  52. Aristizábal, J.E.; Sarache, W.; Escobar, D.A. Spatial Regression Model of Urban Walkability under the 15-Minute City Approach. GTG Geoj. Tour. Geosites 2023, 49, 1037–1045. [Google Scholar] [CrossRef]
  53. Yu, A.; Higgins, C.D. Travel Behaviour and the 15-Minute City: Access Intensity, Sufficiency, and Non-Work Car Use in Toronto. Travel Behav. Soc. 2024, 36, 100786. [Google Scholar] [CrossRef]
  54. Graells-Garrido, E.; Serra-Burriel, F.; Rowe, F.; Cucchietti, F.M.; Reyes, P. A City of Cities: Measuring How 15-Minutes Urban Accessibility Shapes Human Mobility in Barcelona. PLoS ONE 2021, 16, e0250080. [Google Scholar] [CrossRef]
  55. Abbiasov, T.; Heine, C.; Sabouri, S.; Salazar-Miranda, A.; Santi, P.; Glaeser, E.; Ratti, C. The 15-Minute City Quantified Using Human Mobility Data. Nat. Hum. Behav. 2024, 8, 445–455. [Google Scholar] [CrossRef]
  56. Logan, T.M.; Hobbs, M.H.; Conrow, L.C.; Reid, N.L.; Young, R.A.; Anderson, M.J. The X-Minute City: Measuring the 10, 15, 20-Minute City and an Evaluation of Its Use for Sustainable Urban Design. Cities 2022, 131, 103924. [Google Scholar] [CrossRef]
  57. Papadopoulos, E.; Sdoukopoulos, A.; Politis, I. Measuring Compliance with the 15-Minute City Concept: State-of-the-Art, Major Components and Further Requirements. Sustain. Cities Soc. 2023, 99, 104875. [Google Scholar] [CrossRef]
  58. Megahed, G.; Elshater, A.; Afifi, S.; Elrefaie, M.A. Reconceptualizing Proximity Measurement Approaches through the Urban Discourse on the X-Minute City. Sustainability 2024, 16, 1303. [Google Scholar] [CrossRef]
  59. Acheampong, R.A.; Silva, E. Land Use–Transport Interaction Modeling: A Review of the Literature and Future Research Directions. JTLU J. Transp. Land Use 2015, 8, 11–38. [Google Scholar] [CrossRef]
  60. Van Acker, V.; Goodwin, P.; Witlox, F. Key Research Themes on Travel Behavior, Lifestyle, and Sustainable Urban Mobility. Int. J. Sustain. Transp. 2016, 10, 25–32. [Google Scholar] [CrossRef]
  61. Lanzini, P.; Khan, S.A. Shedding Light on the Psychological and Behavioral Determinants of Travel Mode Choice: A Meta-Analysis. Transp. Res. Part F Traffic Psychol. Behav. 2017, 48, 13–27. [Google Scholar] [CrossRef]
  62. Javaid, A.; Creutzig, F.; Bamberg, S. Determinants of Low-Carbon Transport Mode Adoption: Systematic Review of Reviews. Environ. Res. Lett. 2020, 15, 103002. [Google Scholar] [CrossRef]
  63. Timmermans, H.J.P.; Zhang, J. Modeling Household Activity Travel Behavior: Examples of State of the Art Modeling Approaches and Research Agenda. Transp. Res. Part B Methodol. 2009, 43, 187–190. [Google Scholar] [CrossRef]
  64. Walker, J.; Ben-Akiva, M. Generalized Random Utility Model. Math. Soc. Sci. 2002, 43, 303–343. [Google Scholar] [CrossRef]
  65. McFadden, D. Econometric Models for Probabilistic Choice among Products. J. Bus. 1980, 53, S13–S29. [Google Scholar] [CrossRef]
  66. Handy, S. Methodologies for Exploring the Link between Urban Form and Travel Behavior. Transp. Res. Part D Transp. Environ. 1996, 1, 151–165. [Google Scholar] [CrossRef]
  67. Cao, J. Residential Self-Selection in the Relationships between the Built Environment and Travel Behavior: Introduction to the Special Issue. JTLU J. Transp. Land Use 2014, 7, 1–3. [Google Scholar] [CrossRef]
  68. Galster, G. Nonlinear and Threshold Aspects of Neighborhood Effects. Kölner Z. Soziologie Sozialpsychol. 2014, 66, 117–133. [Google Scholar] [CrossRef]
  69. Zhao, B.; Deng, M.; Shi, Y. Inferring Nonwork Travel Semantics and Revealing the Nonlinear Relationships with the Community Built Environment. Sustain. Cities Soc. 2023, 99, 104889. [Google Scholar] [CrossRef]
  70. Breiman, L. Statistical Modeling: The Two Cultures (with Comments and a Rejoinder by the Author). Statist. Sci. 2001, 16, 199–231. [Google Scholar] [CrossRef]
  71. Zhao, X.; Yan, X.; Yu, A.; Van Hentenryck, P. Prediction and Behavioral Analysis of Travel Mode Choice: A Comparison of Machine Learning and Logit Models. Travel Behav. Soc. 2020, 20, 22–35. [Google Scholar] [CrossRef]
  72. Kashifi, M.T.; Jamal, A.; Kashefi, M.S.; Almoshaogeh, M.; Rahman, S.M. Predicting the Travel Mode Choice with Interpretable Machine Learning Techniques: A Comparative Study. Travel Behav. Soc. 2022, 29, 279–296. [Google Scholar] [CrossRef]
  73. Hagenauer, J.; Helbich, M. A Comparative Study of Machine Learning Classifiers for Modeling Travel Mode Choice. Expert Syst. Appl. 2017, 78, 273–282. [Google Scholar] [CrossRef]
  74. García-García, J.C.; García-Ródenas, R.; López-Gómez, J.A.; Martín-Baos, J.Á. A Comparative Study of Machine Learning, Deep Neural Networks and Random Utility Maximization Models for Travel Mode Choice Modelling. Transp. Res. Procedia 2022, 62, 374–382. [Google Scholar] [CrossRef]
  75. Cheng, L.; Chen, X.; De Vos, J.; Lai, X.; Witlox, F. Applying a Random Forest Method Approach to Model Travel Mode Choice Behavior. Travel Behav. Soc. 2019, 14, 1–10. [Google Scholar] [CrossRef]
  76. Hatami, F.; Rahman, M.M.; Nikparvar, B.; Thill, J.C. Non-linear Associations between the Urban Built Environment and Commuting Modal Split: A Random Forest Approach and SHAP Evaluation. IEEE Access 2023, 11, 12649–12662. [Google Scholar] [CrossRef]
  77. Yang, L.; Yang, H.; Cui, J.; Zhao, Y.; Gao, F. Non-Linear and Synergistic Effects of Built Environment Factors on Older Adults’ Walking Behavior: An Analysis Integrating LightGBM and SHAP. Trans. Urban Data Sci. Technol. 2024, 3, 46–60. [Google Scholar] [CrossRef]
  78. Ji, S.; Wang, X.; Lyu, T.; Liu, X.; Wang, Y.; Heinen, E.; Sun, Z. Understanding Cycling Distance According to the Prediction of the XGBoost and the Interpretation of SHAP: A Non-Linear and Interaction Effect Analysis. J. Transp. Geogr. 2022, 103, 103414. [Google Scholar] [CrossRef]
  79. Liu, J.; Wang, B.; Xiao, L. Non-linear Associations between Built Environment and Active Travel for Working and Shopping: An Extreme Gradient Boosting Approach. J. Transp. Geogr. 2021, 92, 103034. [Google Scholar] [CrossRef]
  80. Stead, D.; Marshall, S. The Relationships between Urban Form and Travel Patterns. An International Review and Evaluation. Eur. J. Transp. Infrastruct. Res. 2001, 1, 113–141. [Google Scholar] [CrossRef]
  81. Boarnet, M.; Crane, R. The Influence of Land Use on Travel Behavior: Specification and Estimation Strategies. Transp. Res. Part A Policy Pract. 2001, 35, 823–845. [Google Scholar] [CrossRef]
  82. Crane, R. The Influence of Urban Form on Travel: An Interpretive Review. J. Plan. Lit. 2000, 15, 3–23. [Google Scholar] [CrossRef]
  83. Boarnet, M.G. A Broader Context for Land Use and Travel Behavior, and a Research Agenda. J. Am. Plan. Assoc. 2011, 77, 197–213. [Google Scholar] [CrossRef]
  84. Consorcio Regional de Transportes de Madrid. 2021.
  85. Handy, S. Thoughts on the Meaning of Mark Stevens’s Meta-Analysis. J. Am. Plan. Assoc. 2017, 83, 26–28. [Google Scholar] [CrossRef]
  86. Berghauser Pont, M.Y.; Perg, P.G.; Haupt, P.A.; Heyman, A. A Systematic Review of the Scientifically Demonstrated Effects of Densification. IOP Conf. Ser. Earth Environ. Sci. 2020, 588, 052031. [Google Scholar] [CrossRef]
  87. Duranton, G.; Puga, D. The Economics of Urban Density. J. Econ. Perspect. 2020, 34, 3–26. [Google Scholar] [CrossRef]
  88. Zhuo, Y.; Jing, X.; Wang, X.; Li, G.; Xu, Z.; Chen, Y.; Wang, X. The Rise and Fall of Land Use Mix: Review and Prospects. Land 2022, 11, 2198. [Google Scholar] [CrossRef]
  89. Forsyth, A. What Is a Walkable Place? The Walkability Debate in Urban Design. Urban Des. Int. 2015, 20, 274–292. [Google Scholar] [CrossRef]
  90. Ewing, R.; Handy, S. Measuring the Unmeasurable: Urban Design Qualities Related to Walkability. J. Urban Des. 2009, 14, 65–84. [Google Scholar] [CrossRef]
  91. Sevtsuk, A. Estimating Pedestrian Flows on Street Networks: Revisiting the Betweenness Index. J. Am. Plan. Assoc. 2021, 87, 512–526. [Google Scholar] [CrossRef]
  92. Nicodemus, K.K.; Malley, J.D.; Strobl, C.; Ziegler, A. The Behaviour of Random Forest Permutation-Based Variable Importance Measures under Predictor Correlation. BMC Bioinform. 2010, 11, 110. [Google Scholar] [CrossRef]
  93. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
Figure 1. Feature importance of the three most accurate models for each trip purpose.
Figure 1. Feature importance of the three most accurate models for each trip purpose.
Urbansci 09 00122 g001
Figure 2. Feature Importance of the three most accurate built environment models for each trip purpose.
Figure 2. Feature Importance of the three most accurate built environment models for each trip purpose.
Urbansci 09 00122 g002
Table 1. Complete list of the dataset variables and their description.
Table 1. Complete list of the dataset variables and their description.
Category/NameData TypeDescription
ID Labels
id_tazlabelTransportation Analysis Zone.
id_municipalitylabelMunicipality Code.
Outcome Variables
trip_modecategoricalWalking/Other. Target Variable.
elevator *numericalRepresentativeness of the trip (number of persons).
Trip Characteristics **
trip_purposelabelTrip Purpose. Used as Control.
trip_distancenumericalTrip Distance, in meters. Used as Control.
dem_gendercategoricalMale/Female.
dem_cohortcategoricalAge Cohort.
dem_educationordinalEducational Level.
dem_hou_sizenumericalHousehold Size of respondent.
dem_activitycategoricalActivity (Worker, Caretaker, Student, Retiree).
dem_hou_structurecategoricalWorker, Students, Retiree, Children, Other.
Demographics ***
dem_incomenumericalMean Annual Household Income.
dem_household_sizenumericalMean Household Size.
dem_mean_agenumericalMean Population Age.
Destination Accessibility
acc_care_othernumericalNumber of unique other entities of care.
acc_care_publicnumericalNumber of unique main entities of care (hospital, etc).
acc_school_superiornumericalNumber of unique superior educational institutions.
acc_school_basicnumericalNumber of unique basic educational institutions.
acc_leisure_barnumericalNumber of unique bars, restaurants, or venues alike.
acc_leisure_culturalnumericalNumber of unique cultural institutions.
acc_leisure_showsnumericalNumber of unique theaters, cinemas, or venues alike.
acc_shopping_mallnumericalNumber of unique shopping malls.
acc_shopping_alonenumericalNumber of unique markets or supermarkets.
acc_sport_othernumericalNumber of unique retail units not in other categories.
acc_transportationnumericalNumber of unique public transportation lines.
acc_parks_SnumericalNumber of unique green areas less than 2 hectares of area.
acc_parks_MnumericalNumber of unique green areas between 2 and 20 hectares of area.
acc_parks_LnumericalNumber of unique green areas over 20 hectares of area.
Density
dens_hou_totalnumericalNumber of unique housing properties.
den_far_agnumericalTotal built area above ground, over ground built area.
den_built_totalnumericalTotal built area.
den_perc_unbuiltnumericalPercentage of unbuilt ground area.
den_perc_housing_sfrnumericalPercentage of area of single-family residence.
den_perc_care_othernumericalPercentage of area other entities of care.
den_perc_care_publicnumericalPercentage of area main entities of care (hospital, etc).
den_perc_school_superiornumericalPercentage of area superior educational institutions.
den_perc_school_basicnumericalPercentage of area basic educational institutions.
den_perc_leisure_barnumericalPercentage of area bars, restaurants, or venues alike.
den_perc_leisure_culturalnumericalPercentage of area cultural institutions.
den_perc_leisure_showsnumericalPercentage of area theaters, cinemas, or venues alike.
den_perc_shopping_mallnumericalPercentage of area shopping malls.
den_perc_shopping_marketnumericalPercentage of area markets or supermarkets.
den_perc_shopping_alonenumericalPercentage of area retail units not in other categories.
den_perc_sport_othernumericalPercentage of area sports venues.
den_perc_officenumericalPercentage of area offices.
den_perc_industrialnumericalPercentage of area industrial usage.
den_perc_storagenumericalPercentage of area storage space.
den_perc_parkingnumericalPercentage of area built up parking.
Diversity
div_wt_carenumericalNumber of walkable trips care purposes
div_ut_carenumericalNumber of unpaired trips care purposes
div_wt_schoolnumericalNumber of walkable trips study purposes
div_ut_schoolnumericalNumber of unpaired trips study purposes
div_wt_leisurenumericalNumber of walkable trips leisure purposes
div_ut_leisurenumericalNumber of unpaired trips leisure purposes
div_wt_shoppingnumericalNumber of walkable trips shopping purposes
div_ut_shoppingnumericalNumber of unpaired trips shopping purposes
div_wt_sportnumericalNumber of walkable trips sport purposes
div_ut_sportnumericalNumber of unpaired trips sport purposes
Design
des_mean_degreenumericalMean degree of reachable nodes
des_straightnessnumericalStraightness index of nearest node
des_block_lengthnumericalMean block length of reachable street segments
des_culdesacnumericalPercentage of length in culdesac, over total reachable street length
des_slopenumericalMean weighted slope of reachable street segments ****
des_betweennessnumericalMean betweenness centrality of reachable nodes
des_mean_agenumericalMean weighted building age of reachable buildings ****
* The elevator is used as a weight input in the models. ** The variables noted with the prefix “dem_” are associated with individuals. *** These are demographic variables associated with the TAZ level. **** Further weighted variables, using length for slope and floor area for building age.
Table 2. Model Filters.
Table 2. Model Filters.
Distance (m)600, 900, 1200, 1500
Trip PurposeStudy, Sport/Stroll, Shopping, Care, Leisure, Study
Table 3. PCA Grouping Strategy.
Table 3. PCA Grouping Strategy.
Grouped FeatureOriginal Features
acc_generalacc_care_other
acc_care_public
acc_school_superior
acc_school_basic
acc_leisure_bar
acc_leisure_cultural
acc_leisure_shows
acc_shopping_mall
acc_shopping_market
acc_shopping_alone
acc_sport_other
acc_green_areasacc_parks_S
acc_parks_M
acc_parks_L
den_urban_formden_far_ag
den_built_total
den_land_use_walkableden_perc_housing_ch
den_perc_care_other
den_perc_care_public
den_perc_school_superior
den_perc_school_basic
den_perc_leisure_bar
den_perc_leisure_cultural
den_perc_leisure_shows
den_perc_shopping_mall
den_perc_shopping_market
den_perc_shopping_alone
den_perc_sport_other
den_perc_office
den_less_walkableden_perc_industrial
den_perc_storage
den_perc_parking
div_walkablediv_wt_care
div_wt_school
div_wt_leisure
div_wt_shopping
div_wt_sport
div_unpaireddiv_ut_care
div_ut_school
div_ut_leisure
div_ut_shopping
div_ut_sport
dem_attitudedem_att_license
dem_att_vehicle
dem_att_card
dem_socialdem_education
dem_hou_size
dem_activity_retired
dem_activity_student
dem_activity_unemployed
dem_activity_worker
dem_hou_structure_children
dem_hou_structure_other
dem_hou_structure_retiree
dem_hou_structure_students_age13_18
dem_hou_structure_students_age6_12
dem_hou_structure_worker
Table 4. Final Schemas.
Table 4. Final Schemas.
SchemaDefinition
all_features_allAll features, including demographics and built environment.
combined_features_allCombined (grouped) demographic and built environment.
all_features_beAll built environment features.
combined_features_beCombined (grouped) built environment features.
purpose_combined_features_beCombined (grouped) purpose-built environment features.
only_purpose_features_beOnly purpose-built environment features.
only_densityOnly density-built environment features.
only_diversityOnly diversity-built environment features.
only_accessibilityOnly accessibility-built environment features.
only_designOnly design-built environment features.
Table 5. Features associated with Trip Purpose.
Table 5. Features associated with Trip Purpose.
Trip PurposeFeatures
Shoppingacc_shopping_mall
acc_shopping_market
acc_shopping_alone
den_perc_shopping_mall
den_perc_shopping_market
den_perc_shopping_alone
div_wt_shopping
div_ut_shopping
Studyacc_school_superior
acc_school_basic
den_perc_school_superior
den_perc_school_basic
div_wt_school
div_ut_school
Leisureacc_leisure_bar
acc_leisure_cultural
acc_leisure_shows
den_perc_leisure_bar
den_perc_leisure_cultural
den_perc_leisure_shows
div_wt_leisure
div_ut_leisure
Sport/Strollacc_sport_other
acc_parks_S
acc_parks_M
acc_parks_L
den_perc_sport_other
Careacc_care_other
acc_care_public
den_perc_care_other
den_perc_care_public
div_wt_care
div_ut_care
Table 6. Selected Results.
Table 6. Selected Results.
DistancePurposeSchemaRowsSampleAccuracyTN(%)FN(%)TP(%)FP(%)
600Shoppingonly_purpose_features_be3501253,7050.7521288982
900Shoppingonly_design4301308,6490.7241684955
600Sport/Strollonly_purpose_features_be3331245,5140.712694973
600Shoppingonly_design3501253,7050.6981090982
1200Allall_features_dem21,2281,560,1090.69433678713
1200Careall_features_dem3571255,1870.69157438218
1200Careall_features_all3571255,1870.69158427723
600Allcombined_features_all13,4811,001,8200.6891783955
1500Allonly_density23,5601,722,1290.68637638317
600Allcombined_features_be13,4811,001,8200.6841684955
900Studyall_features_all5580436,0090.68230708812
600Allonly_accessibility13,4811,001,8200.6791387928
900Careall_features_dem2964213,3060.67448528614
900Studyall_features_be5580436,0090.67229718713
1200Shoppingonly_purpose_features_be4738338,0830.6711882919
600Studyonly_purpose_features_be3917305,4600.671981928
600Carepr_combined_features_be *2022145,9930.66933678515
600Studyonly_design3917305,4600.6671882919
1500Sport/Strollcombined_features_all5914420,7450.6561684946
600Carecombined_features_be2022145,9930.64432688614
900Careall_features_be2964213,3060.64244567822
1200Leisurecombined_features_all109580,4510.62819818812
1500Sport/Strollonly_design5914420,7450.6211486946
1500Sport/Strollonly_density5914420,7450.6051387937
* Abbreviated from purpose_combined_features_be.
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.

Share and Cite

MDPI and ACS Style

Benito-Moreno, M.; Carpio-Pinedo, J.; Lamíquiz-Daudén, P.J. Proximity Features: A Random Forest Approach to the Influence of the Built Environment on Local Travel Behavior. Urban Sci. 2025, 9, 122. https://doi.org/10.3390/urbansci9040122

AMA Style

Benito-Moreno M, Carpio-Pinedo J, Lamíquiz-Daudén PJ. Proximity Features: A Random Forest Approach to the Influence of the Built Environment on Local Travel Behavior. Urban Science. 2025; 9(4):122. https://doi.org/10.3390/urbansci9040122

Chicago/Turabian Style

Benito-Moreno, Manuel, José Carpio-Pinedo, and Patxi J. Lamíquiz-Daudén. 2025. "Proximity Features: A Random Forest Approach to the Influence of the Built Environment on Local Travel Behavior" Urban Science 9, no. 4: 122. https://doi.org/10.3390/urbansci9040122

APA Style

Benito-Moreno, M., Carpio-Pinedo, J., & Lamíquiz-Daudén, P. J. (2025). Proximity Features: A Random Forest Approach to the Influence of the Built Environment on Local Travel Behavior. Urban Science, 9(4), 122. https://doi.org/10.3390/urbansci9040122

Article Metrics

Back to TopTop