Next Article in Journal
A Review of IoT-Based Smart City Development and Management
Previous Article in Journal
Turning Features Detection from Aerial Images: Model Development and Application on Florida’s Public Roadways
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Methodology for Identifying Optimal Pedestrian Paths in an Urban Environment: A Case Study of a School Environment in A Coruña, Spain

by
David Fernández-Arango
1,*,†,
Francisco-Alberto Varela-García
1,*,† and
Alberto M. Esmorís
2
1
Advanced Visualization and Cartography Group, Department of Civil Engineering, Campus de Elviña, Universidade da Coruña, 15071 A Coruña, Spain
2
3DGeo Research Group, Institute of Geography, Heidelberg University, Im Neuenheimer Feld 368, 69120 Heidelberg, Germany
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Smart Cities 2024, 7(3), 1441-1461; https://doi.org/10.3390/smartcities7030060
Submission received: 3 May 2024 / Revised: 10 June 2024 / Accepted: 11 June 2024 / Published: 14 June 2024
(This article belongs to the Topic SDGs 2030 in Buildings and Infrastructure)

Abstract

:
Improving urban mobility, especially pedestrian mobility, is a current challenge in virtually every city worldwide. To calculate the least-cost paths and safer, more efficient routes, it is necessary to understand the geometry of streets and their various elements accurately. In this study, we propose a semi-automatic methodology to assess the capacity of urban spaces to enable adequate pedestrian mobility. We employ various data sources, but primarily point clouds obtained through a mobile laser scanner (MLS), which provide a wealth of highly detailed information about the geometry of street elements. Our method allows us to characterize preferred pedestrian-traffic zones by segmenting crosswalks, delineating sidewalks, and identifying obstacles and impediments to walking in urban routes. Subsequently, we generate different displacement cost surfaces and identify the least-cost origin–destination paths. All these factors enable a detailed pedestrian mobility analysis, yielding results on a raster with a ground sampling distance (GSD) of 10 cm/pix. The method is validated through its application in a case study analyzing pedestrian mobility around an educational center in a purely urban area of A Coruña (Galicia, Spain). The segmentation model successfully identified all pedestrian crossings in the study area without false positives. Additionally, obstacle segmentation effectively identified urban elements and parked vehicles, providing crucial information to generate precise friction surfaces reflecting real environmental conditions. Furthermore, the generation of cumulative displacement cost surfaces allowed for identifying optimal routes for pedestrian movement, considering the presence of obstacles and the availability of traversable spaces. These surfaces provided a detailed representation of pedestrian mobility, highlighting significant variations in travel times, especially in areas with high obstacle density, where differences of up to 15% were observed. These results underscore the importance of considering obstacles’ existence and location when planning pedestrian routes, which can significantly influence travel times and route selection. We consider the capability to generate accurate cumulative cost surfaces to be a significant advantage, as it enables urban planners and local authorities to make informed decisions regarding the improvement of pedestrian infrastructure.

1. Introduction

The enhancement of urban pedestrian mobility stands as one of the Sustainable Development Goals (SDGs) outlined in the United Nations’ 2030 Agenda [1], specifically goal 11: “Make cities inclusive, safe, resilient and sustainable”. Urban mobility adaptation is directed towards enhancing the efficiency and safety of pedestrian travel, a particularly vulnerable group in urban settings. Both children and pedestrians over the age of 65 are considered vulnerable people, as indicated in studies such as Agarwala and Vasudevan (2020) [2], Lord et al. (2018) [3], and Campisi et al. (2022) [4]. In this context, the daily commute of students to educational institutions represents one of the most critical scenarios in terms of road safety because its main participants are children, often accompanied by elderly people such as grandparents, as shown in Fernández-Arango et al. (2022) [5]. School entry and exit times are particularly critical moments as they often result in significant traffic congestion around educational centers, corroborating the results of studies like Deluka-Tibljaš et al. (2021) [6], which demonstrate that school environments are among the areas in cities where the most children are injured. In this regard, it is evident that studying road infrastructure for people with reduced mobility is crucial due to the variations in users’ perceptions and experiences depending on the street environment. Streets with wider or pedestrian-specific sidewalks offer a safer and more pleasant walking environment than narrow sidewalks, reducing the likelihood of accidents and facilitating traffic flow. Obstacles such as street furniture and vehicles parked around the sidewalks significantly complicate mobility.
Therefore, possessing a detailed understanding of the routes students utilize is paramount, as it enables the formulation of appropriate mobility policies tailored to the urban environment of each school. This entails comprehending the characteristics of roads, their geometry, urban furnishings, and equipment, and the mobility potential of each sidewalk and public space that may be utilized in pedestrian routes.
Having data on student concentration in specific areas or on particular routes provides fundamental information for planning efficient pedestrian pathways. School administrators and educational authorities possess information regarding students’ residences, and while the calculation of optimal travel routes is one of the most valuable tools of a GIS (Collischon et al., 2000) [7], the difficulty in analyzing this information alongside other data sources can entail complex georeferencing processes and specialized personnel for its acquisition and analysis. In this regard, the decision-making process for the design of school pedestrian routes in Spain is generally carried out considering students’ residences based on manually recorded information in their enrollment forms, typically prioritizing proximity to the school, as evidenced in initiatives such as Camino Escolar Seguro, Stop Accidentes, Caminos Escolares, Teachers for Future Spain, and International Walk to School [8,9,10,11,12].
Most related studies we have reviewed consider factors such as slope (Hosseini et al., 2023) [13] to identify optimal pedestrian routes. Some, like Massin et al. (2022) [14], analyze the influence of obstacles present in routes, while González-Collado et al. (2024) [15] employ a combination of data acquired through an MLS and HMLS (handheld mobile laser scanner) to identify multiple elements existing along two kilometers of urban roadway. Incorporating obstacles in urban spaces seems necessary in studies of pedestrian mobility in cities.
This work highlights that traditional approaches based solely on origin–destination proximity and terrain inclination are insufficient to guarantee efficient pedestrian routes. Incorporating detailed data on obstacles’ locations and free walking space availability is crucial for optimizing pedestrian mobility. In this regard, our work enables combining data from mobile laser scanning (MLS) with certain AI and GIS techniques that have demonstrated great capacity to understand pedestrian mobility in urban environments. The methodology developed has allowed the identification of obstacles to characterize in detail the most walkable pedestrian crossing areas on sidewalks and crosswalks, significantly improving the accuracy of studies based solely on origin–destination distance. Our method can generate cumulative travel cost surfaces and identify the least-cost routes in any urban area using a set of raster layers with a 10 cm/pixel spatial resolution. The results demonstrate that pedestrian-specific zones and streets with wider and more open spaces significantly improve city pedestrian mobility.
To validate the method, a case study has been conducted in the urban environment of A Coruña, analyzing a total of 3960.66 m and calculating different accumulated displacement cost surfaces and least-cost paths from 30 student households to the educational center itself.
This paper is organized as follows: Section 2 describes the study area, the materials used, and the proposed methodology. Section 3 presents the results obtained. Section 4 discusses the results, and Section 5 describes the study’s main findings.

2. Materials and Methods

2.1. Test Site and Method Overview

Although the proposed method is general enough to be applied in any urban environment, it specifically focuses on pedestrian mobility analysis in urban areas. For this reason, ten streets in the city of A Coruña (Galicia, Spain) were selected as a case study, characterized by a purely urban structure consisting of one or multiple lanes, curbs, sidewalks, and buildings. Additionally, nearly all streets had parked vehicles and a significant amount of urban furniture, adding complexity to the study and making LiDAR point cloud segmentation and accessibility analysis more challenging. Table 1 describes some metrics of the analyzed streets, while Figure 1 depicts the study area.
To generate the pedestrian accessibility model, four general phases were followed, as outlined in Figure 2: Phase 1 involved creating initial information surfaces with parameters influencing urban pedestrian mobility, derived from data acquired from various sources (LiDAR, OSM, Cadastre …). Phase 2 consisted of generating different friction surfaces for displacement, where each cell represents a unit cost of movement. Phase 3 involved generating an accumulated displacement cost surface, where each cell represents the travel time to a destination point. Finally, phase 4 encompassed model validation tests.

2.2. Pedestrian Mobility Zone: Sidewalks and Crosswalks

With the aim of promoting safe pedestrian movement, we adjusted the space to be analyzed for pedestrian transit, restricting walking to specific areas designated for pedestrians. To achieve this, a region composed of sidewalks and crosswalks was generated, forming the basis for the rest of the friction surfaces.
The delineation of sidewalks was achieved by rasterizing vector cartography from the A Coruña City Council with a GSD of 10 cm/pix and contrasting its accuracy with information obtained from OpenStreetMap and the Spanish Cadastre Website.
The segmentation and geolocation of crosswalks were performed automatically using AI techniques that allowed training of the computer vision model YOLOv8m-seg. For this purpose, images generated from intensity values of LiDAR point clouds were employed, previously processed through the MLS point cloud processing pipeline prepared for this study and available at github-dfarango.

2.2.1. Crosswalk Dataset and Model Training

The first step in training the model was to label the crosswalks, distinguishing between two types, crosswalk A and crosswalk B, as their behavior in computer vision varies significantly. Figure 3 illustrates an example of each type of crosswalk.
For labeling, the web application Roboflow was utilized [16]. The generated dataset can be viewed and downloaded at Roboflow_Universe/dfarango, and its metrics are presented in Table 2.
With this dataset, the YOLOv8m-seg model from Ultralytics was trained on the Kaggle platform, which allows the use of customized Jupyter Notebooks and limited free access to GPUs. Table 3 presents the hyper-parameter values used to train the YOLOv8 model. The complete code for this training and an explanation of the selected parameters can be viewed and downloaded at Kaggle/davidfarango.

2.2.2. Validation of the Segmenter

To validate the system’s performance, some of the most common metrics in object detection and segmentation were employed: precision, recall, F1-score, and mean average precision (mAP). These metrics are related to the concept of IoU (intersection over union), which is utilized to quantify the degree of overlap between the predicted boundary and the ground truth (Figure 4). In our dataset, like in many others, a pre-defined 0.5 IoU threshold is set to classify whether a prediction is deemed a true positive or a false positive.
Precision (1) measures how accurate the prediction is, and it represents the ratio of true positives to all predicted positives, while recall (2) measures how well all positives are found. The F1-score (3) is calculated as the harmonic mean of the precision and recall scores, and mean average precision (mAP) provides a joint analysis of precision and recall, indicating the average precision values for all recall values between 0 and 1, where AP (average precision) is the area found under the precision–recall curve (4). Further information of these parameters is provided in Quintana et al. (2016), Arya et al. (2020), Pham et al. (2020), SciKit Learn, mAP for Object Detection, and Sánchez-Alor (2020) [17,18,19,20,21,22].
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
F 1 s c o r e = 2 P r e c i s i o n R e c a l l P r e c i s i o n + R e c a l l
A P = 0 1 p ( r ) d r
where TP = true positive, FP = false positive, and FN = false negative.

2.2.3. Inferences and Results

Once the model was trained, inference was performed on the 61 images using the neural network, with the weights adjusted during training, to obtain the segmentation of the crosswalks. Subsequently, to transfer these inferences to a GIS, pixel values were reclassified, assigning a value of ‘1’ to pixels belonging to crosswalks (both type A and type B) and ‘0’ to the rest of the pixels in the image. The script that performs this process is indexReclass.py, which generates a normalized index using the Red and Green bands (I = (R − G)/(R + G)) and reclassifies all values other than 0 to a value of ‘1’.

2.3. DTM and Obstacles

To obtain a digital terrain model (DTM) of the study area and the location of all obstacles hindering pedestrian movement, the algorithm proposed in a previous study (Fernández-Arango et al., 2022) [23] was employed. This algorithm allowed the generation of a DTM raster from LiDAR point clouds acquired through MLS. Initially, the algorithm segmented the LiDAR point cloud into ground points and non-ground points. Subsequently, a DTM with a GSD of 10 cm/pix was generated, with each pixel value representing the mean elevation of the points within each cell of the cloud. Additionally, interpolation was employed for occluded areas to ensure a continuous DTM along the entire street.
A digital surface model (DSM) of the entire street was generated for the detection and geolocation of permanent obstacles, and height-above-ground (HAG) values were calculated for the entire point cloud. Any group of points with HAG values ranging between 25 and 220 cm was considered a pedestrian impedance obstacle.

2.4. Pedestrian Segmentation

While some segmentation tasks can be reduced to a 2D problem (e.g., segmentation of crossing zones), differentiating pedestrians from other objects in urban contexts demands an accurate 3D characterization due to the extensive variety of objects (e.g., street lights, urban trees, or garbage containers). Thus, we formulated pedestrian segmentation as a binary classification problem where each point must be classified as pedestrian or non-pedestrian. More concretely, we computed multiscale features from the 3D point cloud to train a random forest model for binary point-wise classification (Thomas et al., 2018; Weinmann et al., 2017) [24,25]. Finally, we generated a GeoTIFF raster with a cell size of 10   cm from the point cloud that is well suited for our later path-finding algorithm. Each cell in the raster can be seen as a binary mask that specifies whether there are pedestrians or not. All the previous computations were carried out using the open-source VirtuaLearn3D framework [26] for artificial intelligence applied to point clouds.
For the computation of the multiscale geometric features, we considered spherical neighborhoods with the following radii: 12.5   cm , 25   cm , 50   cm , 75   cm , 1   m , 2   m , 3   m , and 5   m . For each spherical neighborhood, we computed the linearity, planarity, sphericity, surface variation, omnivariance, verticality, anisotropy, eigenentropy, and the sum of eigenvalues.
We also computed the distance to the lowest point (floor distance) considering 2D rectangular neighborhoods on the horizontal plane centered on support points uniformly distributed inside the smallest axis-aligned bounding box containing the point cloud. In this way, we considered cell sizes of 10   m and 50   m . As we used MLS point clouds in our study, we also considered the available spectral information (intensity) and the scan angle associated with each point. These two features, together with the two point-wise floor distances, were transformed by mean-based smooth filters in spherical neighborhoods with radii of 25   cm , 1   m , and 3   m .
Due to the large number of features (88), we conducted ablation studies to determine to what extent the features are necessary. First, we evaluated the model trained without smooth features. Then, we evaluated the model trained without smooth features and raw height features, i.e., considering geometric features only. Finally, we considered all the features but iteratively discarded the geometric features of the maximum radius. As the biggest neighborhoods lead to the most significant computational burden, this last ablation study effectively analyzes the upper bound of data mining regarding computational cost. All the evaluations for the ablation studies were carried out through stratified k-folding (with k = 5 ).
We opted for the active learning paradigm to train our random forest model because our point clouds are not labeled (Yang and Loog, 2016) [27]. With this paradigm, the first iteration requires a manually segmented initial budget. After this first iteration, we measured the point-wise entropy as defined in Equation (5). In this equation, e i refers to the entropy of the i-th point, n c is the number of classes (in our case n c = 2 ), and z i j is the probability that the i-th point belongs to the j-th class. Subsequent iterations were focused on extending the training dataset with information from high-entropy regions, enabling the training of the model with just a few hours of work from the oracle, i.e., the human that reviews high-entropy points to decide whether they must be labeled as a pedestrian or not.
e i = j = 1 n c z i j log 2 ( z i j )
We applied hyperparameter tuning with stratified k-folding (using k = 5 ) to train our models for two reasons: (1) to avoid the typical active learning pitfall of neglecting the classifier’s configuration (Lüth et al., 2023) [28]; and (2) to analyze the model generalization in terms of its mean accuracy and standard deviation on different data splits. More concretely, we applied hyperparameter tuning twice. Once with the initial budget and once with the final training dataset. Our experiments considered the number of binary decision trees, the maximum depth for each decision tree, and the class weight strategy as hyperparameters for grid search optimization.
The number of decision trees is an essential hyperparameter because it significantly impacts the compromise between the robustness against overfitting and the execution time (especially the time for model training). The maximum depth of each tree is another relevant hyperparameter. On the one hand, too much depth means the model might become prone to overfitting. On the other hand, insufficient depth means the model cannot exploit interactions between features to achieve a successful classification. For the class weight strategy, we considered uniform weights (all classes have weight one) and a balanced alternative, where each class is weighted such that w i = n s ( n c · n i ) 1 . In this strategy, w i is the weight for the i-th class, n c is the number of classes, n s is the number of samples used to train a given decision tree, and n i is the number of samples belonging to the i-th class on the split of data used to train a particular decision tree. At most, a randomly selected 30 % of the training dataset is considered for each decision tree.

2.5. Better-Walkability Areas

For a pedestrian, walking on a wide sidewalk free of obstacles is more pleasant, safe, and efficient in terms of cost–time of displacement than walking on a sidewalk full of obstacles that must be avoided. For this reason, we added to the study a surface of better-walkability areas, prioritizing the widest and obstacle-free passage zones. The approach was based on the notion that regions farthest from obstacles should have a lower movement cost than those closest to them. Additionally, higher cost values were assigned to areas near building walls and at the edges of sidewalks with roadways, as pedestrians tend to avoid these regions to avoid potential obstacles on building facades or parked vehicles.
A raster was calculated to generate this friction surface for movement, with pixels having different penalty time values based on their proximity to one or more obstacles. Table 4 presents these penalty times.

2.6. Pedestrian Accessibility Analysis: The Creation of Cumulative Pedestrian Travel Cost Surfaces and Model Validation Testing

Through the joint analysis of all previously generated friction surfaces, several accumulated displacement cost surfaces were constructed. In these surfaces, each cell represents the total cost value to travel from that cell to the destination cell, moving along the optimal or least-cost displacement route. To generate these surfaces, Equation (6), proposed by Langmuir (1984) [29], was utilized, allowing for the estimation of displacement values based on the terrain slope, and subsequently, the rest of the friction surfaces were added.
T = a Δ S + b Δ H 1 + c Δ H 2 + d Δ H 3
T represents the time spent on the journey, Δ S the distance traveled, Δ H 1 the vertical distance traveled uphill, Δ H 2 the vertical distance traveled downhill with moderate slope (5–12), and Δ H 3 the vertical distance traveled downhill on a steep slope (>=12). The constants used are a = time (s) needed to walk 1 m on a horizontal surface, b = additional time (s) per meter of uphill elevation gain, c = additional time (s) per meter of elevation loss on moderate downhill slopes, and d = additional time (s) per meter of elevation loss on steep downhill slopes. The values assigned to these constants were those proposed by Langmuir (1984) [29] for the constants b = 6.0 , c = 1.9998 , and d = 1.9998 . However, a was assigned as 0.75 based on more recent studies such as Bosina and Weidmann (2017), Martín Bermejo (2007), Aghabayk et al. (2021), and Looney et al. (2019) [30,31,32,33], which better represent the walking speeds of all types of pedestrians.
To implement the remaining friction surfaces in the analysis and calculate the accumulated displacement cost for each cell, Equation (7) was utilized and implemented in the algorithm Rwalk [34].
T o t a l C o s t = T + λ F r i c t i o n C o s t s Δ S
where λ = 1 is a dimensionless scaling factor of the friction surface.
To validate the model, pedestrian accessibility tests were conducted in five different scenarios, varying the pedestrian’s mobility flexibility in each case study. Thirty student residences were randomly chosen as origin points, with the educational center Fogar de Sta. Margarida in A Coruña selected as the destination. The following tests were conducted:
  • Test 1: A study applying only a friction surface based on terrain slope values.
  • Test 2: In addition to a friction surface based on slopes, another surface based on obstacles derived from the point cloud analysis with HAG values between 25 and 220 cm was utilized. Spaces with a passage width of less than 50 cm from building walls and sidewalk curbs were considered obstacles. Cells containing these elements were assigned a unit displacement cost of 1000 s.
  • Test 3: To the two previously mentioned friction surfaces, another one representing pedestrians was added, considering them as obstacles as well. A unit displacement cost of 1000 s per cell was assigned to them.
  • Test 4: To the friction surface of test 2, another one of better-walkability areas concerning obstacles was added, with the temporal penalties described in Table 4.
  • Test 5: The friction surfaces from tests 2 and 3 were used, and another one of better-walkability areas concerning obstacles and pedestrians was added, using the temporal penalties described in Table 4.
In Table 5, the friction surfaces used in each of the conducted tests are summarized.

3. Results

3.1. Pedestrian Mobility Zone: Sidewalks and Crosswalks

Of the streets studied (Figure 1), all necessary pedestrian crossings were successfully identified to determine pedestrian routes. For validating the model inferences, the obtained segmentations were compared with a ground truth of the study region, which had previously been utilized in other works such as Fernández-Arango et al. (2022) and Esmorís et al. (2023) [23,35]. A total of 40 pedestrian crossings were identified, corresponding to 10 streets in the vicinity of Fogar de Sta. As depicted in Figure 5, Margarida school was manually digitized and compared with the number of crossings segmented by YOLOv8m-seg against the ground truth. The aim of this comparison was to validate the model, as there is an interest in extending the study to other areas lacking pedestrian crossing data. The algorithm successfully detected all pedestrian crossings in the study area without yielding any false positives. Additionally, the total surface area of all segmented pedestrian crossings was compared with that of the digitized ones. In this case, the total surface area of the digitized crossings was 1941.81 m2 compared to 2477.89 m2 of the crossings segmented by the model, resulting in a 27.61% larger segmented area. This ensured, for our study, that no potential pedestrian route space was overlooked. Figure 6 provides a detailed comparison of some segmented pedestrian crossings and their corresponding ground truths.
To validate the effectiveness of the pedestrian crossing segmenter, precision–recall (P-R) and F1–confidence values were analyzed. Figure 7 illustrates the model’s performance based on the P-R and F1–confidence graphs. As observed, for crosswalk class A, an identification value of 0.904 was obtained, meaning that when the model predicted the presence of crosswalk A, 90.4% of those predictions were correct relative to all predictions of crosswalk A made by the model. For crosswalk class B, the identification value was even higher, at 99.5%. This indicates exceptionally high performance by the model in predicting the presence of crosswalks in class B, with a very high precision rate. For all classes combined, the identification value was 94.9% for an IoU threshold of 0.5, thus indicating that, overall, the model achieved high precision in detecting objects in all classes considered together. These results demonstrate that the model can accurately identify both types of crosswalks, although there may be variations in performance between individual classes. The high precision in detecting crosswalks in class B is particularly notable, suggesting that the model is particularly effective in identifying this specific class of objects.
Moreover, the YOLOv8 segment model has been pre-trained on a wide variety of 80 different objects like bicycles, cars, dogs, backpacks, potted plants, fire hydrants, or traffic lights. Thus, the model weights should be well suited to differentiate between many types of objects, which is expected to lead to successful transfer learning when specializing the model to another task. The features that are automatically extracted by the neural network should be unbiased due to the significant diversity of classes involved in the pre-training process.
The F1–confidence curve provides insights into the model’s ability to balance precision and recall across different confidence thresholds. In this case, an F1-score of 0.95 was achieved when the confidence threshold was set at 0.568. This score indicates a suitable balance between the model’s precision and recall, suggesting significant capability in accurately identifying positive instances while keeping a low number of false detections, even under moderate confidence conditions.
Table 6 displays the results of training validation through a confusion matrix. As evidenced, 87 % of true instances of crosswalk A were correctly classified. Similarly, 100% of true instances of crosswalk B were classified accurately.

3.2. DTM and Obstacles

With the employed methodology, a total area of 30,388.93 m2 was obtained as a DTM for pedestrian traffic, including sidewalks and pedestrian crossings, representing 37.81% of the analyzed urban area. Additionally, from the point cloud, an area of 7655.79 m2 was classified as obstacles for pedestrians, accounting for 25.19% of the traversable surface. Among these obstacles, 7472.49 m2 was identified as fixed obstacles, and 183.30 m2 was pedestrians considered obstacles due to having an HAG between 25 and 220 cm. Table 7 shows the number of obstacles detected on each analyzed street.
Figure 8 provides a detailed view of the detected and geolocated obstacles. The grid cells comprising these obstacles have an impedance value of T = 1000 s, as walking over them is impossible. In this image, the boundaries between sidewalk–roadway and areas near buildings and walls, also classified as obstacles, can be distinguished. Moreover, multiple permanent obstacles and pedestrians are identified.

3.3. Pedestrian Segmentation

The results of our ablation studies on pedestrian segmentation can be seen in Table 8. Interestingly, the combination of raw floor distances, smoothed intensity, scan angle, and floor distances with no geometric features yields the best results, even better than considering all the mined features. The reason might be that the extra information encoded through the geometric features interferes with the information available through height, spectral, and scanning features, making the model fit worse to the data. Therefore, models dealing with pedestrian segmentation in 3D point clouds might save time and money by computing only height and smoothed features, provided that intensity and scan angle are available.
Concerning the hyperparameter tuning experiments detailed in Table 9, we hold that using 90 decision trees with a maximum depth of 25 each and balanced class weights leads to the best model. This model configuration is powerful enough to maintain high accuracy when considering the final training dataset. Moreover, it has a low standard deviation, so it is expected to yield similar results despite any randomness involved in the model training (e.g., random data splits). On top of that, it takes less than 10 min to train on the final dataset, which means it is well suited to run more experiments in less time than models using more decision trees (those take between 900 and 1900 s). While it is close in scores and standard deviation to its uniform counterpart, having a model that works with balanced class weights should be preferred because it accounts for the data imbalance inherent to the problem. Note that pedestrian segmentation implies having many objects represented in the point cloud, where only pedestrians must be labeled as positives, which unavoidably leads to a non-uniform class distribution.
The ablation experiments in Table 8 and the hyperparameter tuning in Table 9 were carried out independently. Thus, the hyperparameter tuning experiments were conducted considering all the features. Combining the results from both experiments, we have a random forest model with 90 decision trees of maximum depth 25 and balanced class weights trained considering 14 features per point. Under these circumstances, the training time is around 60.72 s , and the evaluation metrics on the final training dataset are 99.94 % accuracy, 99.76 % precision, 99.93 % recall, 99.85 % F1-score, and 99.70 % MCC. Finally, a visual inspection of the results is available in Figure 9, which shows the model’s classification directly in the 3D point clouds.

3.4. Better-Walkability Areas

It was possible to differentiate 16,443.88 m2 of less suitable surface for pedestrian traffic due to its proximity to obstacles compared to 13,945.05 m2 of surface completely free of obstacles, resulting in a 54.11% reduction in the area available for pedestrian traffic. Figure 10 shows two details of the better-walkability areas. Image ‘A’ displays a detail of the surface generated solely from permanent obstacles, while in image ‘B’, a detail of the surface incorporating both permanent obstacles and pedestrians is shown. These images illustrate the different temporal penalties for proximity to obstacles. Additionally, in image ‘B’, a trend is observed where pedestrians tend to walk in the center of available passage areas, indicating that the most common behavior is to walk while trying to keep as far away as possible from existing obstacles.

3.5. Pedestrian Accessibility Analysis: The Creation of Cumulative Pedestrian Travel Cost Surfaces and Model Validation Testing

Pedestrian routes were calculated from 30 student residences near the analyzed school. The routes were analyzed for each residence based on the four situations indicated in Table 5. Figure 11 displays images and details of each of the four cumulative cost surfaces for the same area. As observed, each test has generated a cumulative cost surface and different least-cost path trajectories, confirming that the least-cost paths have identified cells with the lowest unit displacement cost and have adapted to the available space between obstacles, utilizing areas furthest from them, as easily observed in images G, H, I, and J.
Table 10 compares the accumulated displacement time from each residence to the educational center. As expected, the lowest times were found in all cases in test 1, where there were no pedestrian movement restrictions. Conversely, the longest travel times occurred in tests 4 and 5, where paths farthest from both obstacles and pedestrians were prioritized and penalized with higher travel time values for those closer. The average maximum time difference between tests 1 and 4 for all studied residences was 3.88%, and in the case of test 5 compared to test 1, it was 5.40%. These time differences are significant, indicating the importance of filtering pedestrians prior to pedestrian mobility studies, as performed in this work. The maximum difference values obtained between tests 4 and 1 were found at residences 25, 30, and 24, with delay percentages of 15.03%, 8.39%, and 7.92%, respectively, confirming that the excessive presence of obstacles and the need to seek pedestrian paths away from them greatly influences pedestrian travel efficiency.
Finally, Figure 12 displays the least-cost paths obtained in each test, utilizing the previously generated cumulative cost surfaces. It is evident that the trajectories varied significantly to avoid existing obstacles, but it can also be observed that some paths, such as 2, 14, or 25, have drastically altered their trajectory, even switching sidewalks, to gain more walkable space, despite having to travel a section opposite to the destination and a longer distance, validating the temporal results shown in Table 10. However, paths in the NE area (19, 7, and 20) barely vary their trajectory between different tests due to the greater pedestrian space available, as they traverse areas designated for pedestrians for much of their route.

4. Discussion

The work carried out in this research enabled the creation of an effective method for understanding pedestrian mobility in urban areas. It accurately calculated cumulative displacement cost surfaces and identified least-cost paths from any location within the study area to a destination point.
The proposed method differs from others, mentioned in Section 1, because it utilizes MLS point clouds as one of the initial data sources, allowing for a very extensive analysis area to be covered in a short time and obtaining high-quality information, both geometrically and radiometrically. Acquiring this type of data is costly, and processing these point clouds to extract relevant information for accessibility analysis requires complex operations. However, the result obtained was a study on raster surfaces of very high spatial resolution, which provided street geometry with a level of detail impossible to achieve with any other starting data. This information allowed for the generation of displacement cost surfaces with a GSD of 10 cm/pixel, producing street information practically at the level of individual tiles, enabling clear differentiation of potential obstacles or areas with greater difficulty for walking.
Similarly, the pedestrian crossing segmenter, based on computer vision methods, demonstrated effective performance, successfully detecting all existing pedestrian crossings in the study area without any false positives and achieving precision–recall and F1–confidence values similar to recent studies specifically dedicated to pedestrian crossing detection using computer vision such as Kaya et al. (2023) [36]. It was possible to adequately segment all pedestrian crossings in the study area, accurately delineating available passage areas and without losing spaces for potential pedestrian routes. The use of this technique significantly improves results compared to other methods like Luaces et al. (2020) [37], as the segmentation of each pedestrian crossing is much more precise, based on pixel identification rather than following geometric patterns. Clearly, as the segmenter is fed with new images of pedestrian crossings with similar characteristics, it will gain precision, resulting in an increasingly accurate model over time.
Concerning pedestrian segmentation in the 3D point clouds, we found that a simple combination of height features and point-wise smoothing filters on the intensity, scan angle, and height features of a neighborhood can be enough to detect pedestrians successfully. By including the execution time in our hyperparameter tuning experiments, we were able to design a more sustainable machine learning model that trains on a big dataset in 74 % less time than four-times-bigger ensembles yet provides similar accuracy. Despite the validation paradox inherent to the active learning paradigm, we think that our model has shown good generalization capabilities due to the high mean accuracy ( 99.89 % ) and low accuracy variance ( 0.003 % ) measured in our experiments. However, even if we needed to train the model on two or three times more data to improve its generalization, we could do it with a few hours of human work thanks to the entropy-guided labeling method.
It is evident that obstacles impede pedestrian movement, but it is also important to consider the free space available for walking between them. This is another difference to highlight in our research compared to the current state of the art, as importance has been given not only to the existence and location of obstacles on sidewalks but also to the available passage spaces between them. In this regard, we have assigned a unit displacement cost value of 1000 s to cells belonging to obstacles. This decision was based on the fact that walking over these cells is unfeasible, and therefore, least-cost path trajectories must avoid them. Similarly, we assigned the same penalty to passage spaces narrower than 50 cm relative to obstacles, building facades, and curb edges, as these are uncomfortable and even hazardous pedestrian-traffic areas. The penalty values gradually decreased from spaces larger than 80 cm, where pedestrians can walk more easily between them.
As demonstrated in the conducted tests, both the accumulated displacement cost values and the least-cost paths varied significantly when these parameters were considered (Table 10), increasing travel time by up to 15.03% in some cases. It is important to highlight the influence of the lower parts of tree canopies, which, with a height of less than 220 cm, also represent significant pedestrian obstacles, causing pedestrians to avoid walking in these areas, as observed in images A and B of Figure 10. Similarly, narrow streets also pose an impediment to pedestrians, who seek to avoid obstacles and even choose longer routes to circumvent narrow passage areas, as seen in least-cost paths 2, 14, and 25 of Figure 12, which alter their trajectories to avoid streets with narrow passage areas. Conversely, the least-cost paths originating from residences 19, 7, and 20 hardly vary their trajectories during all tests. This is because most of their routes pass through pedestrian streets and parks, with areas specifically designated for pedestrians, confirming that such areas significantly improve urban pedestrian mobility. Therefore, there are increasing research efforts and initiatives focused on redistributing urban public space to promote pedestrianization (Mendzina et al., 2020; Urban Design or The City of Children by Francesco Tonucci) [38,39,40].

5. Conclusions

Once again, MLS data has proven to be a valuable data source for conducting geomatic studies, particularly in this case, for pedestrian mobility analysis in a purely urban area of the city of A Coruña. Leveraging high-density and highly accurate point clouds has enabled us to conduct a mobility study with tremendous precision, using raster format surfaces with a GSD of 10 cm/pixel. This allowed for clearly identifying obstacles and other impediments to pedestrian movement freedom. Similarly, using computer vision techniques through AI has enabled us to obtain a surface composed of sidewalk areas and pedestrian crossings, precisely delineating pedestrian freedom areas and better-walkability areas between existing obstacles. The combined analysis of all these factors resulted in the generation of multiple cumulative displacement cost surfaces, which facilitated the quantification of the time required to walk from any point in the study area to a destination point, as well as identifying the optimal path for pedestrian movement.
The results obtained once again demonstrate that pedestrian-specific areas and wider streets with open spaces significantly improve pedestrian mobility in cities. In this case, it has been quantified that, for the study area in this work, travel times vary on average by 3.88% and represent up to a 15.03% delay in areas with a high presence of obstacles or narrow passage spaces.
The main limitation of this study lies in the high cost associated with acquiring MLS point cloud data and processing these point clouds to extract relevant information for accessibility analysis. Additionally, the time and complexity required to perform these operations are significant. This could limit the replicability of the study in other cities that may not have the financial or technical resources required to carry out a similar data acquisition and processing process.
However, regarding replicability in other cities, the approach and methodology used in this study could be adapted and applied in different urban contexts. The use of MLS point clouds as an initial data source for pedestrian mobility analysis, along with AI-based computer vision techniques, provides a robust framework for conducting similar studies in other urban areas. Although specific resources may vary from city to city, the general approach of utilizing high-quality data and advanced analysis techniques can be successfully applied in different urban environments to understand and improve pedestrian mobility. In addition, our proposed methodology allows us to get more out of those cities that already have LiDAR data of their streets, usually to make inventories of urban elements.
As future lines of research, it is intended to extend this work to broader urban environments within the city. It also opens up another associated line of research, which is to conduct a specific mobility study for wheelchair users or people with reduced mobility due to age, physical impairments, or specific circumstances (e.g., walking with small children, pushing a shopping cart, etc.). In this case, obstacle restrictions should be extended to a height above ground (HAG) of 5 cm or even lower, considering the difficulty in overcoming these height differences. Similarly, there is the possibility for other new studies, such as creating an application capable of identifying and managing school routes based on the knowledge of the location of students’ residences for each school and the application of the model described in this study.

Author Contributions

Conceptualization, D.F.-A. and F.-A.V.-G.; methodology, D.F.-A., F.-A.V.-G. and A.M.E.; software: D.F.-A. and A.M.E.; validation, D.F.-A. and F.-A.V.-G.; formal analysis, D.F.-A., F.-A.V.-G. and A.M.E.; investigation, D.F.-A., F.-A.V.-G. and A.M.E.; writing—original draft preparation, D.F.-A., F.-A.V.-G. and A.M.E.; writing—review and editing, D.F.-A., F.-A.V.-G. and A.M.E.; supervision, F.-A.V.-G.; project administration, F.-A.V.-G.; funding acquisition, F.-A.V.-G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Directorate-General for Traffic of Spain, grant numbers SPIP2017-02340 and SPIP2015-01867; and the Deutsche Forschungsgemeinschaft (DFG), German Research Foundation, by the project VirtuaLearn3D (Grant Number: 496418931).

Data Availability Statement

The pipeline code can be viewed and downloaded at github-dfarango. Aggregate data on participation in mobility surveys, as well as the methods and results associated with this work can be found on the project website at Geomove.

Acknowledgments

We would like to especially express our gratitude to the staff of CartoLAB-UDC, SusMobLab-UDC, GAC-CITIUS and TIDOP-USAL for their collaboration in this research. We also give thanks to CESGA for allowing us to use their FinisTerrae-III supercomputer to speed up our point cloud processing experiments.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sustainable Developments Goals. Available online: https://www.un.org/sustainabledevelopment/cities/ (accessed on 14 April 2024).
  2. Agarwala, R.; Vasudevan, V. Relationship between mobility and pedestrian traffic safety in India. Transp. Dev. Econ. 2020, 6, 15. [Google Scholar] [CrossRef]
  3. Lord, S.; Cloutier, M.S.; Garnier, B.; Christoforou, Z. Crossing road intersections in old age—With or without risks? Perceptions of risk and crossing behaviours among the elderly. Transp. Res. Part F Traffic Psychol. Behav. 2018, 55, 282–296. [Google Scholar] [CrossRef]
  4. Campisi, T.; Otković, I.I.; Šurdonja, S.; Deluka-Tibljaš, A. Impact of social and technological distraction on pedestrian crossing behaviour: A case study in Enna, Sicily. Transp. Res. Procedia 2022, 60, 100–107. [Google Scholar] [CrossRef]
  5. Fernández-Arango, D.; Varela-García, F.A.; López-Fernández, J. Dynamic Analysis of School Mobility Using Geolocation Web Technologies. ISPRS Int. J. Geo-Inf. 2022, 12, 8. [Google Scholar] [CrossRef]
  6. Deluka-Tibljaš, A.; Ištoka Otković, I.; Campisi, T.; Šurdonja, S. Comparative analyses of parameters influencing children pedestrian behavior in conflict zones of urban intersections. Safety 2021, 7, 5. [Google Scholar] [CrossRef]
  7. Collischonn, W.; Pilar, J.V. A direction dependent least-cost-path algorithm for roads and canals. Int. J. Geogr. Inf. Sci. 2000, 14, 397–406. [Google Scholar] [CrossRef]
  8. Camino Escolar Seguro. Available online: http://www.caminoescolarseguro.com/ (accessed on 15 November 2022).
  9. Stop Accidentes. Asociación de Ayuda y Orientación a los Afectados por Accidentes de Tráfico. Available online: https://stopaccidentes.org/ (accessed on 15 November 2022).
  10. Caminos Escolares: La Senda Verde de los Hábitos y Entornos Saludables. Available online: https://web.bizkaia.eus/documents/880311/9767048/CAMINOS_ESCOLARES.pdf (accessed on 15 November 2022).
  11. Teachers for Future Spain. Colecaminos. Available online: https://teachersforfuturespain.org/que-hacemos/colecaminos/ (accessed on 15 November 2022).
  12. International Walk to School. Available online: http://www.iwalktoschool.org/ (accessed on 15 November 2022).
  13. Hosseini, R.; Tong, D.; Lim, S.; Sun, Q.C.; Sohn, G.; Gidófalvi, G.; Alimohammadi, A.; Seyedabrishami, S. A Novel Method for Extracting and Analyzing the Geometry Properties of the Shortest Pedestrian Paths Focusing on Open Geospatial Data. ISPRS Int. J. Geo-Inf. 2023, 12, 288. [Google Scholar] [CrossRef]
  14. Massin, T.; Ghio, M.; Touzard, C.; Blas, F. Detección y medición del efecto de las macrobarreras urbanas sobre la caminabilidad. Aplicación al caso de la ciudad de Buenos Aires, Argentina. Rev. Urban. 2022, 47, 207–222. [Google Scholar] [CrossRef]
  15. González-Collazo, S.M.; Balado, J.; Túñez-Alcalde, R.M.; Garrido, I.; Lorenzo, H.; Díaz-Vilariño, L. Enhancing urban pathfinding for pedestrians through fusion of mls and hmls data. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2024, 48, 197–204. [Google Scholar] [CrossRef]
  16. Roboflow. Available online: https://roboflow.com/ (accessed on 15 November 2023).
  17. Quintana, M.; Torres, J.; Menéndez, J.M. A Simplified Computer Vision System for Road Surface Inspection and Maintenance. IEEE Trans. Intell. Transp. Syst. 2016, 17, 608–619. [Google Scholar] [CrossRef]
  18. Arya, D.; Maeda, H.; Kumar Ghosh, S.; Toshniwal, D.; Omata, H.; Kashiyama, T.; Sekimoto, Y. Global Road Damage Detection: State-of-the-art Solutions. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA, 10–13 December 2020; pp. 5533–5539. Available online: https://www.computer.org/csdl/proceedings-article/big-data/2020/09377790/1s64n3mSA1y (accessed on 13 March 2024).
  19. Pham, V.; Pham, C.; Dang, T. Road Damage Detection and Classification with Detectron2 and Faster R-CNN. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data) 2020, Atlanta, GA, USA, 10–13 December 2020; pp. 5592–5601. Available online: https://www.computer.org/csdl/proceedings-article/big-data/2020/09378027/1s64Mbvlx6w (accessed on 3 March 2024).
  20. SciKit Learn. Available online: https://scikit-learn.org/stable/auto_examples/model_selection/plot_precision_recall.html (accessed on 18 November 2023).
  21. mAP (mean Average Precision) for Object Detection. Available online: https://jonathan-hui.medium.com/map-mean-averageprecision- for-object-detection-45c121a31173#:~:text=AP%20(Average%20precision)%20is%20a,value%20over%200%20to%201 (accessed on 18 November 2023).
  22. Sánchez-Alor, J. Evaluación de Algoritmos de Detección de Objetos Basados en Deep Learning Para Detección de Incidencias en Carreteras. Ph.D. Thesis, University of Valladolid, Valladolid, Spain, 2020. Available online: https://uvadoc.uva.es/bitstream/handle/10324/43277/TFG-G4450.pdf?sequence=1 (accessed on 20 February 2024).
  23. Fernández-Arango, D.; Varela-García, F.A.; González-Aguilera, D.; Lagüela-López, S. Automatic generation of urban road 3D models for pedestrian studies from LiDAR data. Remote Sens. 2022, 14, 1102. [Google Scholar] [CrossRef]
  24. Thomas, H.; Goulette, F.; Deschaud, J.E.; Marcotegui, B.; LeGall, Y. Semantic Classification of 3D Point Clouds with Multiscale Spherical Neighborhoods. In Proceedings of the 2018 International Conference on 3D Vision (3DV), Verona, Italy, 5–8 September 2018; pp. 390–398. [Google Scholar] [CrossRef]
  25. Weinmann, M.; Jutzi, B.; Mallet, C.; Weinmann, M. Geometric features and their relevance for 3d point cloud classification. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2017, 4, 157–164. [Google Scholar] [CrossRef]
  26. VirtuaLearn3D Framework. Available online: https://github.com/3dgeo-heidelberg/virtualearn3d (accessed on 12 January 2024).
  27. Yang, Y.; Loog, M. Active learning using uncertainty information. In Proceedings of the 2016 23rd International Conference on Pattern Recognition (ICPR), Cancun, Mexico, 4–8 December 2016; pp. 2646–2651. [Google Scholar] [CrossRef]
  28. Lüth, C.T.; Bungert, T.J.; Klein, L.; Jaeger, P.F. Toward realistic evaluation of deep active learning algorithms in image classification. arXiv 2023, arXiv:2301.10625. Available online: https://arxiv.org/abs/2301.10625 (accessed on 23 February 2024).
  29. Langmuir, E. Mountaincraft and Leadership: A Handbook for Mountaineers and Hillwalking Leaders in the British Isles; Mountain Training England: Betws-y-Coed, UK, 1984. [Google Scholar]
  30. Bosina, E.; Weidmann, U. Estimating pedestrian speed using aggregated literature data. Phys. A Stat. Mech. Appl. 2017, 468, 1–29. [Google Scholar] [CrossRef]
  31. Martín Bermejo, D. Comparación de Tiempos de Trayectos Metro-A Pie-Bici en la Zona Urbana de Barcelona. 2007. Available online: https://upcommons.upc.edu/handle/2099.1/3316 (accessed on 15 March 2024).
  32. Aghabayk, K.; Parishad, N.; Shiwakoti, N. Investigation on the impact of walkways slope and pedestrians physical characteristics on pedestrians normal walking and jogging speeds. Saf. Sci. 2021, 133, 105012. [Google Scholar] [CrossRef]
  33. Looney, D.P.; Santee, W.R.; Hansen, E.O.; Bonventre, P.J.; Chalmers, C.R.; Potter, A.W. Estimating energy expenditure during level, uphill, and downhill walking. Med. Sci. Sports Exerc. 2019, 51, 1954–1960. [Google Scholar] [CrossRef]
  34. Rwalk. Available online: https://grass.osgeo.org/grass83/manuals/r.walk.html (accessed on 29 March 2024).
  35. Esmorís, A.M.; Vilariño, D.L.; Arango, D.F.; Varela-García, F.A.; Cabaleiro, J.C.; Rivera, F.F. Characterizing zebra crossing zones using LiDAR data. Comput. Aided Civ. Infrastruct. Eng. 2023, 38, 1767–1788. [Google Scholar] [CrossRef]
  36. Kaya, Ö.; Çodur, M.Y.; Mustafaraj, E. Automatic detection of pedestrian crosswalk with faster r-cnn and yolov7. Buildings 2023, 13, 1070. [Google Scholar] [CrossRef]
  37. Luaces, M.R.; Fisteus, J.A.; Sánchez-Fernández, L.; Munoz-Organero, M.; Balado, J.; Díaz-Vilariño, L.; Lorenzo, H. Accessible routes integrating data from multiple sources. ISPRS Int. J. Geo-Inf. 2020, 10, 7. [Google Scholar] [CrossRef]
  38. Mendzina, E.; Vugule, K. Importance and planning of pedestrian streets in urban environment. Landsc. Archit. Art 2020, 16, 80–86. [Google Scholar] [CrossRef]
  39. Urban Design. Pedestrian-Friendly Street: A Great Asset to the Community. Available online: https://nclurbandesign.org/pedestrian-friendly-street-a-great-asset-to-the-community/#:~:text=A%20pedestrian%2Dfriendly%20street%20reduces,area%20look%20nicer%20%5B1%5D (accessed on 16 April 2024).
  40. The City of Children by Francesco Tonucci. Available online: https://francescotonucci.org/en/francesco-tonucci/the-city-of-children/ (accessed on 16 April 2024).
Figure 1. Study area and distribution of the 10 streets analyzed. The green polygon shows the total study area (173,153.40 m2). The yellow polygon shows the streets studied (80,363.06 m2) and the black lines are the road axes of the streets studied. Source: self-made.
Figure 1. Study area and distribution of the 10 streets analyzed. The green polygon shows the total study area (173,153.40 m2). The yellow polygon shows the streets studied (80,363.06 m2) and the black lines are the road axes of the streets studied. Source: self-made.
Smartcities 07 00060 g001
Figure 2. Phases used to generate the pedestrian accessibility model in urban areas. Source: self-made.
Figure 2. Phases used to generate the pedestrian accessibility model in urban areas. Source: self-made.
Smartcities 07 00060 g002
Figure 3. Examples of the two types of labeled pedestrian crosswalks. The violet polygon means crosswalk type A and the red polygon means crosswalk type B. Source: self-made.
Figure 3. Examples of the two types of labeled pedestrian crosswalks. The violet polygon means crosswalk type A and the red polygon means crosswalk type B. Source: self-made.
Smartcities 07 00060 g003
Figure 4. Graphic explanation of intersection over union (IoU). Source: IoU for object detection.
Figure 4. Graphic explanation of intersection over union (IoU). Source: IoU for object detection.
Smartcities 07 00060 g004
Figure 5. Study area with 40 ground truth crosswalks. Source: self-made.
Figure 5. Study area with 40 ground truth crosswalks. Source: self-made.
Smartcities 07 00060 g005
Figure 6. Segmented crosswalks, detail. Red pixels show segmented crosswalks and green bounding boxes show crosswalk ground truth. Source: self-made.
Figure 6. Segmented crosswalks, detail. Red pixels show segmented crosswalks and green bounding boxes show crosswalk ground truth. Source: self-made.
Smartcities 07 00060 g006
Figure 7. Left image: mask precision–recall curve for object segmentation. Class A identification value: 0.904, class B: 0.995, and for all classes: 0.949, with an average precision (mAP) of 0.5. Right image: F1–confidence curve, showing an identification value for all classes of 0.95 at a confidence threshold of 0.568. Source: self-made.
Figure 7. Left image: mask precision–recall curve for object segmentation. Class A identification value: 0.904, class B: 0.995, and for all classes: 0.949, with an average precision (mAP) of 0.5. Right image: F1–confidence curve, showing an identification value for all classes of 0.95 at a confidence threshold of 0.568. Source: self-made.
Smartcities 07 00060 g007
Figure 8. Detail of obstacle surface. Examples of some of the obstacles that have been detected are streetlights and trees. Red pixels show permanent obstacles and blue pixels show pedestrians. Source: self-made.
Figure 8. Detail of obstacle surface. Examples of some of the obstacles that have been detected are streetlights and trees. Red pixels show permanent obstacles and blue pixels show pedestrians. Source: self-made.
Smartcities 07 00060 g008
Figure 9. The segmented pedestrians visualized in the 3D point cloud. The purple color means the point is not classified as a pedestrian; yellow means it is. Source: self-made.
Figure 9. The segmented pedestrians visualized in the 3D point cloud. The purple color means the point is not classified as a pedestrian; yellow means it is. Source: self-made.
Smartcities 07 00060 g009
Figure 10. Detail of obstacle friction surface. Image (A) shows better-walkability area surface only including obstacles. Image (B) shows better-walkability area surface including obstacles and pedestrians. Source: self-made.
Figure 10. Detail of obstacle friction surface. Image (A) shows better-walkability area surface only including obstacles. Image (B) shows better-walkability area surface including obstacles and pedestrians. Source: self-made.
Smartcities 07 00060 g010
Figure 11. Figures (A,C,E,G,I) show the least-cost paths over cumulative cost surfaces. Figures (B,D,F,H,J) show the least-cost paths over friction surfaces and obstacles. Figures (A,B): result test 1, considering only the slope surface. Figures (C,D): result test 2, considering permanent obstacles. Figures (E,F): result test 3, considering permanent obstacles and pedestrians. Figures (G,H): result test 4, considering permanent obstacles and better walking areas around them. Figures (I,J): result test 5, considering permanent obstacles, pedestrians, and better walking areas around them. Source: self-made.
Figure 11. Figures (A,C,E,G,I) show the least-cost paths over cumulative cost surfaces. Figures (B,D,F,H,J) show the least-cost paths over friction surfaces and obstacles. Figures (A,B): result test 1, considering only the slope surface. Figures (C,D): result test 2, considering permanent obstacles. Figures (E,F): result test 3, considering permanent obstacles and pedestrians. Figures (G,H): result test 4, considering permanent obstacles and better walking areas around them. Figures (I,J): result test 5, considering permanent obstacles, pedestrians, and better walking areas around them. Source: self-made.
Smartcities 07 00060 g011
Figure 12. Least-cost paths resulting from tests 1 to 4. The numbers indicate the IDs of the 30 residences analyzed as origin points. In image (d), the areas with the most significant changes in the routes are indicated by arrows and polygons. Source: self-made.
Figure 12. Least-cost paths resulting from tests 1 to 4. The numbers indicate the IDs of the 30 residences analyzed as origin points. In image (d), the areas with the most significant changes in the routes are indicated by arrows and polygons. Source: self-made.
Smartcities 07 00060 g012
Table 1. Characterization of the streets that make up the study area. Avg St Width is the average value of the width of the street; Avg SW is the average value of the width of the two sidewalks of the street; the average width of a single sidewalk is half of this value; Avg SW (%) indicates the sidewalk vs. street ratio as a percentage; Zmin and Zmax indicate the minimum and maximum altitude values of the street; Avg slope is the average slope of the street; Average indicates the average values for the set of all streets.
Table 1. Characterization of the streets that make up the study area. Avg St Width is the average value of the width of the street; Avg SW is the average value of the width of the two sidewalks of the street; the average width of a single sidewalk is half of this value; Avg SW (%) indicates the sidewalk vs. street ratio as a percentage; Zmin and Zmax indicate the minimum and maximum altitude values of the street; Avg slope is the average slope of the street; Average indicates the average values for the set of all streets.
StreetAvg St Width (m)Avg SW Width (m)Avg SW (%)Zmin (m)Zmax (m)Avg Slope (%)
Eduardo Dato16.744.4626.6423.7541.616.72
Avda. Habana38.0319.2650.6410.8623.801.78
Andres Martinez Salazar15.446.2440.4124.3829.512.28
Virrey Osorio16.146.9242.8713.6637.395.72
Valle Inclan15.816.7742.8216.2741.215.91
Filantropia18.969.4850.0017.7743.296.59
Paseo Ronda33.27.5522.7417.6342.535.06
Perez Lugin15.596.7643.3619.7731.973.39
Pza. Portugal51.1629.7358.119.5814.501.21
Calvo Sotelo27.144.2915.8113.3015.901.00
Average24.8210.1539.3416.7032.173.96
Table 2. Metrics of the dataset generated through Roboflow.
Table 2. Metrics of the dataset generated through Roboflow.
Initial Image NumberClass Balance (Crosswalk A/Crosswalk B)Median Image RatioPreprocessingData AugmentationFinal Image Number%Image Test Split (Train/Valid/Test)
61405/652654 × 2166Auto-adjust contrast using adaptive equalizationSaturation transformation between −54% and +54%47080/20/0
Table 3. Values of hyperparameters used to train YOLOv8 model.
Table 3. Values of hyperparameters used to train YOLOv8 model.
ModelEpochsImage Size (pix)BatchPatienceFlipudFliplrShear
YOLOv8m-seg.pt1000auto−1 (auto)1000.50.50.5
Table 4. Penalty times are based on distance to obstacles. It is considered in this analysis that areas closest to obstacles are part of them to ensure moving away from them during displacements and seeking more comfortable pedestrian routes.
Table 4. Penalty times are based on distance to obstacles. It is considered in this analysis that areas closest to obstacles are part of them to ensure moving away from them during displacements and seeking more comfortable pedestrian routes.
Distance to Obstacle (cm)Space Available for Walking (cm)Penalty Per Meter (s)
<50<501000
[50–80)800.5
[80–110)1100.25
>=110>=1100
Table 5. Summary of the friction surfaces used in each of the pedestrian accessibility tests conducted.
Table 5. Summary of the friction surfaces used in each of the pedestrian accessibility tests conducted.
Friction SurfaceTest 1Test 2Test 3Test 4Test 5
Slopexxxxx
Obstacles xxxx
Pedestrians x x
Better-walkability areas with respect to obstacles xx
Better-walkability areas with respect to pedestrians x
Table 6. Confusion matrix.
Table 6. Confusion matrix.
True Crosswalk ATrue Crosswalk B
Predicted crosswalk A0.87
Predicted crosswalk B 1.00
Table 7. Measurement of obstacle surfaces identified by street. St A, SW A, Obst A, and Ped A show areas of total streets, sidewalks, obstacles, and pedestrians. Obst/SW represents the ratio of obstacles to sidewalk, and Ped/Obst shows the ratio of pedestrians to obstacles and pedestrians (Ped A/(Ped A + Obst A) × 100). Average and Total show the average and total surface values for all analyzed streets.
Table 7. Measurement of obstacle surfaces identified by street. St A, SW A, Obst A, and Ped A show areas of total streets, sidewalks, obstacles, and pedestrians. Obst/SW represents the ratio of obstacles to sidewalk, and Ped/Obst shows the ratio of pedestrians to obstacles and pedestrians (Ped A/(Ped A + Obst A) × 100). Average and Total show the average and total surface values for all analyzed streets.
StreetSt A (m2)SW A (m2)Obst A (m2)Ped A (m2)Obst/SW Ratio (%)Ped/Obst Ratio (%)
Eduardo Dato4139.321756.65469.2610.0626.712.10
Avda. Habana19,499.447323.441289.0470.3617.605.18
Andres Martinez Salazar3317.411250.26507.424.9340.590.96
Virrey Osorio6328.532608.10900.817.0334.540.77
Valle Inclan6438.972645.36944.697.1535.710.75
Filantropia5980.642209.95831.776.8437.640.82
Paseo Ronda13,172.803734.95795.2124.2621.292.96
Perez Lugin5306.022314.55695.615.1730.050.74
Pza. Portugal7272.894249.49607.715.6114.302.50
Calvo Sotelo8907.142296.18430.9831.8918.776.89
Average8036.313038.89747.2518.3327.722.45
Total80,363.0630,388.937472.49183.3
Table 8. The precision, recall, F1-score, and Matthews correlation coefficient (MCC) for the different configurations defining the ablation studies. In this table, r x means spherical neighborhoods with radii greater than or equal to x. The best result is represented in bold text.
Table 8. The precision, recall, F1-score, and Matthews correlation coefficient (MCC) for the different configurations defining the ablation studies. In this table, r x means spherical neighborhoods with radii greater than or equal to x. The best result is represented in bold text.
Discarded FeaturesEvaluation Metrics (%)
PrecisionRecallF1MCC
Smooth features98.2199.5598.8797.75
Non-geometric features97.8499.4098.6097.23
Geometric features with r 5 99.3699.7899.5799.14
Geometric features with r 3 99.1999.7099.4598.90
Geometric features with r 2 98.8699.5899.2298.44
Geometric features with r 1 98.5399.4999.0098.02
Geometric features with r 0.75 98.1099.3898.7397.48
Geometric features with r 0.5 97.3599.1798.2496.51
Geometric features with r 0.25 97.7299.3598.5297.06
Geometric features99.7799.9399.8599.70
No features discarded99.5699.8499.7099.41
Table 9. The results from the grid-search-based hyperparameter tuning. The initial accuracies were measured on the initial budget (i.e., the training dataset at the first iteration) and the final accuracies on the final budget (i.e., the training dataset at the final iteration). The mean execution time of training the model is measured considering the dataset at the final iteration because it contains the most samples. The selected model after the hyperparameter analysis is represented in bold.
Table 9. The results from the grid-search-based hyperparameter tuning. The initial accuracies were measured on the initial budget (i.e., the training dataset at the first iteration) and the final accuracies on the final budget (i.e., the training dataset at the final iteration). The mean execution time of training the model is measured considering the dataset at the final iteration because it contains the most samples. The selected model after the hyperparameter analysis is represented in bold.
Num.MaxClassInitial acc. (%)Final acc. (%)Training
TreesDepthWeightsMeanStdevMeanStdevTime (s)
905Uniform94.910.07591.470.054232
905Balanced88.580.08783.340.251255
9015Uniform99.940.00899.390.020488
9015Balanced99.550.00698.040.056471
9025Uniform99.970.00299.900.002486
9025Balanced99.980.00299.890.003488
1805Uniform94.890.10191.450.071478
1805Balanced88.570.11383.430.127493
18015Uniform99.940.00499.400.010958
18015Balanced99.570.02198.060.036921
18025Uniform99.970.00299.900.003952
18025Balanced99.980.00199.900.004953
3605Uniform94.910.01691.360.032948
3605Balanced88.470.10883.490.111814
36015Uniform99.950.00699.410.0141897
36015Balanced99.570.02698.080.0121835
36025Uniform99.970.00299.910.0031900
36025Balanced99.980.00299.900.0031667
Table 10. Tests 1 to 5 show the travel time walking from each home to the educational center. MD = maximum difference, shows the maximum time difference, in seconds and percentage, of the times obtained in each test 4 vs. test 1 and also test 5 vs. test 1. Average shows the average values obtained in all tests, for the 30 cases analyzed.
Table 10. Tests 1 to 5 show the travel time walking from each home to the educational center. MD = maximum difference, shows the maximum time difference, in seconds and percentage, of the times obtained in each test 4 vs. test 1 and also test 5 vs. test 1. Average shows the average values obtained in all tests, for the 30 cases analyzed.
Home IDAccumulated Cost Time (s)
Test 1Test 2Test 3Test 4Test 5MD T4-T1 (s)MD T4-T1 (%)MD T5-T1 (s)MD T5-T1 (%)
1543.07545.10545.41550.33562.157.261.3419.083.51
2473.78490.44490.57508.04510.6934.267.2336.917.79
3470.22473.02473.08480.12484.379.902.1114.153.01
4235.08236.96237.10239.75245.984.671.9910.904.64
5237.97238.98239.34241.86247.143.891.639.173.85
6197.29197.65197.85199.22203.881.930.986.593.34
7244.77246.54246.90252.86259.098.193.3514.425.89
8463.63466.88466.96477.97481.3514.343.0917.723.82
9352.39354.36354.65359.44369.317.052.0016.924.80
10244.07246.10246.21261.39262.0917.327.1018.027.38
11535.03536.38536.70540.17551.275.140.9616.253.04
12511.47513.47513.75518.69530.517.221.4119.043.72
13546.65551.24551.22566.36570.7819.713.6124.134.41
14541.78545.62545.76556.01560.7014.232.6318.923.49
15508.29511.66511.79521.17525.8712.882.5317.583.46
16487.12490.16490.30506.00509.4818.883.8822.364.59
17494.10496.90497.03513.02515.1518.923.9321.054.26
18458.59460.52460.64479.44484.9620.854.5526.375.75
19254.94258.17258.38263.32270.438.383.2915.496.08
20178.24182.38182.48185.97190.917.734.3412.677.11
21264.27266.77266.91270.95277.186.682.5312.914.89
22395.28396.58396.89400.28411.115.001.2615.834.00
23410.25413.04413.10419.46422.329.212.2412.072.94
24511.76515.08515.15552.27557.1240.517.9245.368.86
25456.20505.98506.09524.76526.8568.5615.0370.6515.49
26444.15445.74445.85463.69466.5619.544.4022.415.05
27412.73415.25415.38420.92428.728.191.9815.993.87
28272.46273.92274.07275.73277.503.271.205.041.85
29315.28316.56316.83320.48327.765.201.6512.483.96
30205.17218.67218.82222.39227.4217.228.3922.2510.84
Average396.19401.17401.33411.36416.8515.183.8820.665.40
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

Fernández-Arango, D.; Varela-García, F.-A.; Esmorís, A.M. Methodology for Identifying Optimal Pedestrian Paths in an Urban Environment: A Case Study of a School Environment in A Coruña, Spain. Smart Cities 2024, 7, 1441-1461. https://doi.org/10.3390/smartcities7030060

AMA Style

Fernández-Arango D, Varela-García F-A, Esmorís AM. Methodology for Identifying Optimal Pedestrian Paths in an Urban Environment: A Case Study of a School Environment in A Coruña, Spain. Smart Cities. 2024; 7(3):1441-1461. https://doi.org/10.3390/smartcities7030060

Chicago/Turabian Style

Fernández-Arango, David, Francisco-Alberto Varela-García, and Alberto M. Esmorís. 2024. "Methodology for Identifying Optimal Pedestrian Paths in an Urban Environment: A Case Study of a School Environment in A Coruña, Spain" Smart Cities 7, no. 3: 1441-1461. https://doi.org/10.3390/smartcities7030060

APA Style

Fernández-Arango, D., Varela-García, F. -A., & Esmorís, A. M. (2024). Methodology for Identifying Optimal Pedestrian Paths in an Urban Environment: A Case Study of a School Environment in A Coruña, Spain. Smart Cities, 7(3), 1441-1461. https://doi.org/10.3390/smartcities7030060

Article Metrics

Back to TopTop