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.
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.
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.
Figure 5.
Study area with 40 ground truth crosswalks. Source: self-made.
Figure 5.
Study area with 40 ground truth crosswalks. Source: self-made.
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.
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.
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.
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.
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.
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.
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.
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.
Street | Avg St Width (m) | Avg SW Width (m) | Avg SW (%) | Zmin (m) | Zmax (m) | Avg Slope (%) |
---|
Eduardo Dato | 16.74 | 4.46 | 26.64 | 23.75 | 41.61 | 6.72 |
Avda. Habana | 38.03 | 19.26 | 50.64 | 10.86 | 23.80 | 1.78 |
Andres Martinez Salazar | 15.44 | 6.24 | 40.41 | 24.38 | 29.51 | 2.28 |
Virrey Osorio | 16.14 | 6.92 | 42.87 | 13.66 | 37.39 | 5.72 |
Valle Inclan | 15.81 | 6.77 | 42.82 | 16.27 | 41.21 | 5.91 |
Filantropia | 18.96 | 9.48 | 50.00 | 17.77 | 43.29 | 6.59 |
Paseo Ronda | 33.2 | 7.55 | 22.74 | 17.63 | 42.53 | 5.06 |
Perez Lugin | 15.59 | 6.76 | 43.36 | 19.77 | 31.97 | 3.39 |
Pza. Portugal | 51.16 | 29.73 | 58.11 | 9.58 | 14.50 | 1.21 |
Calvo Sotelo | 27.14 | 4.29 | 15.81 | 13.30 | 15.90 | 1.00 |
Average | 24.82 | 10.15 | 39.34 | 16.70 | 32.17 | 3.96 |
Table 2.
Metrics of the dataset generated through Roboflow.
Table 2.
Metrics of the dataset generated through Roboflow.
Initial Image Number | Class Balance (Crosswalk A/Crosswalk B) | Median Image Ratio | Preprocessing | Data Augmentation | Final Image Number | %Image Test Split (Train/Valid/Test) |
---|
61 | 405/65 | 2654 × 2166 | Auto-adjust contrast using adaptive equalization | Saturation transformation between −54% and +54% | 470 | 80/20/0 |
Table 3.
Values of hyperparameters used to train YOLOv8 model.
Table 3.
Values of hyperparameters used to train YOLOv8 model.
Model | Epochs | Image Size (pix) | Batch | Patience | Flipud | Fliplr | Shear |
---|
YOLOv8m-seg.pt | 1000 | auto | −1 (auto) | 100 | 0.5 | 0.5 | 0.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 | <50 | 1000 |
[50–80) | 80 | 0.5 |
[80–110) | 110 | 0.25 |
>=110 | >=110 | 0 |
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 Surface | Test 1 | Test 2 | Test 3 | Test 4 | Test 5 |
---|
Slope | x | x | x | x | x |
Obstacles | | x | x | x | x |
Pedestrians | | | x | | x |
Better-walkability areas with respect to obstacles | | | | x | x |
Better-walkability areas with respect to pedestrians | | | | | x |
Table 6.
Confusion matrix.
Table 6.
Confusion matrix.
| True Crosswalk A | True Crosswalk B |
---|
Predicted crosswalk A | 0.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.
Street | St A (m2) | SW A (m2) | Obst A (m2) | Ped A (m2) | Obst/SW Ratio (%) | Ped/Obst Ratio (%) |
---|
Eduardo Dato | 4139.32 | 1756.65 | 469.26 | 10.06 | 26.71 | 2.10 |
Avda. Habana | 19,499.44 | 7323.44 | 1289.04 | 70.36 | 17.60 | 5.18 |
Andres Martinez Salazar | 3317.41 | 1250.26 | 507.42 | 4.93 | 40.59 | 0.96 |
Virrey Osorio | 6328.53 | 2608.10 | 900.81 | 7.03 | 34.54 | 0.77 |
Valle Inclan | 6438.97 | 2645.36 | 944.69 | 7.15 | 35.71 | 0.75 |
Filantropia | 5980.64 | 2209.95 | 831.77 | 6.84 | 37.64 | 0.82 |
Paseo Ronda | 13,172.80 | 3734.95 | 795.21 | 24.26 | 21.29 | 2.96 |
Perez Lugin | 5306.02 | 2314.55 | 695.61 | 5.17 | 30.05 | 0.74 |
Pza. Portugal | 7272.89 | 4249.49 | 607.7 | 15.61 | 14.30 | 2.50 |
Calvo Sotelo | 8907.14 | 2296.18 | 430.98 | 31.89 | 18.77 | 6.89 |
Average | 8036.31 | 3038.89 | 747.25 | 18.33 | 27.72 | 2.45 |
Total | 80,363.06 | 30,388.93 | 7472.49 | 183.3 | | |
Table 8.
The precision, recall, F1-score, and Matthews correlation coefficient (MCC) for the different configurations defining the ablation studies. In this table, 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, means spherical neighborhoods with radii greater than or equal to x. The best result is represented in bold text.
Discarded Features | Evaluation Metrics (%) |
---|
| Precision | Recall | F1 | MCC |
---|
Smooth features | 98.21 | 99.55 | 98.87 | 97.75 |
Non-geometric features | 97.84 | 99.40 | 98.60 | 97.23 |
Geometric features with | 99.36 | 99.78 | 99.57 | 99.14 |
Geometric features with | 99.19 | 99.70 | 99.45 | 98.90 |
Geometric features with | 98.86 | 99.58 | 99.22 | 98.44 |
Geometric features with | 98.53 | 99.49 | 99.00 | 98.02 |
Geometric features with | 98.10 | 99.38 | 98.73 | 97.48 |
Geometric features with | 97.35 | 99.17 | 98.24 | 96.51 |
Geometric features with | 97.72 | 99.35 | 98.52 | 97.06 |
Geometric features | 99.77 | 99.93 | 99.85 | 99.70 |
No features discarded | 99.56 | 99.84 | 99.70 | 99.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. | Max | Class | Initial acc. (%) | Final acc. (%) | Training |
---|
Trees | Depth | Weights | Mean | Stdev | Mean | Stdev | Time (s) |
---|
90 | 5 | Uniform | 94.91 | 0.075 | 91.47 | 0.054 | 232 |
90 | 5 | Balanced | 88.58 | 0.087 | 83.34 | 0.251 | 255 |
90 | 15 | Uniform | 99.94 | 0.008 | 99.39 | 0.020 | 488 |
90 | 15 | Balanced | 99.55 | 0.006 | 98.04 | 0.056 | 471 |
90 | 25 | Uniform | 99.97 | 0.002 | 99.90 | 0.002 | 486 |
90 | 25 | Balanced | 99.98 | 0.002 | 99.89 | 0.003 | 488 |
180 | 5 | Uniform | 94.89 | 0.101 | 91.45 | 0.071 | 478 |
180 | 5 | Balanced | 88.57 | 0.113 | 83.43 | 0.127 | 493 |
180 | 15 | Uniform | 99.94 | 0.004 | 99.40 | 0.010 | 958 |
180 | 15 | Balanced | 99.57 | 0.021 | 98.06 | 0.036 | 921 |
180 | 25 | Uniform | 99.97 | 0.002 | 99.90 | 0.003 | 952 |
180 | 25 | Balanced | 99.98 | 0.001 | 99.90 | 0.004 | 953 |
360 | 5 | Uniform | 94.91 | 0.016 | 91.36 | 0.032 | 948 |
360 | 5 | Balanced | 88.47 | 0.108 | 83.49 | 0.111 | 814 |
360 | 15 | Uniform | 99.95 | 0.006 | 99.41 | 0.014 | 1897 |
360 | 15 | Balanced | 99.57 | 0.026 | 98.08 | 0.012 | 1835 |
360 | 25 | Uniform | 99.97 | 0.002 | 99.91 | 0.003 | 1900 |
360 | 25 | Balanced | 99.98 | 0.002 | 99.90 | 0.003 | 1667 |
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 ID | Accumulated Cost Time (s) | |
---|
| Test 1 | Test 2 | Test 3 | Test 4 | Test 5 | MD T4-T1 (s) | MD T4-T1 (%) | MD T5-T1 (s) | MD T5-T1 (%) |
---|
1 | 543.07 | 545.10 | 545.41 | 550.33 | 562.15 | 7.26 | 1.34 | 19.08 | 3.51 |
2 | 473.78 | 490.44 | 490.57 | 508.04 | 510.69 | 34.26 | 7.23 | 36.91 | 7.79 |
3 | 470.22 | 473.02 | 473.08 | 480.12 | 484.37 | 9.90 | 2.11 | 14.15 | 3.01 |
4 | 235.08 | 236.96 | 237.10 | 239.75 | 245.98 | 4.67 | 1.99 | 10.90 | 4.64 |
5 | 237.97 | 238.98 | 239.34 | 241.86 | 247.14 | 3.89 | 1.63 | 9.17 | 3.85 |
6 | 197.29 | 197.65 | 197.85 | 199.22 | 203.88 | 1.93 | 0.98 | 6.59 | 3.34 |
7 | 244.77 | 246.54 | 246.90 | 252.86 | 259.09 | 8.19 | 3.35 | 14.42 | 5.89 |
8 | 463.63 | 466.88 | 466.96 | 477.97 | 481.35 | 14.34 | 3.09 | 17.72 | 3.82 |
9 | 352.39 | 354.36 | 354.65 | 359.44 | 369.31 | 7.05 | 2.00 | 16.92 | 4.80 |
10 | 244.07 | 246.10 | 246.21 | 261.39 | 262.09 | 17.32 | 7.10 | 18.02 | 7.38 |
11 | 535.03 | 536.38 | 536.70 | 540.17 | 551.27 | 5.14 | 0.96 | 16.25 | 3.04 |
12 | 511.47 | 513.47 | 513.75 | 518.69 | 530.51 | 7.22 | 1.41 | 19.04 | 3.72 |
13 | 546.65 | 551.24 | 551.22 | 566.36 | 570.78 | 19.71 | 3.61 | 24.13 | 4.41 |
14 | 541.78 | 545.62 | 545.76 | 556.01 | 560.70 | 14.23 | 2.63 | 18.92 | 3.49 |
15 | 508.29 | 511.66 | 511.79 | 521.17 | 525.87 | 12.88 | 2.53 | 17.58 | 3.46 |
16 | 487.12 | 490.16 | 490.30 | 506.00 | 509.48 | 18.88 | 3.88 | 22.36 | 4.59 |
17 | 494.10 | 496.90 | 497.03 | 513.02 | 515.15 | 18.92 | 3.93 | 21.05 | 4.26 |
18 | 458.59 | 460.52 | 460.64 | 479.44 | 484.96 | 20.85 | 4.55 | 26.37 | 5.75 |
19 | 254.94 | 258.17 | 258.38 | 263.32 | 270.43 | 8.38 | 3.29 | 15.49 | 6.08 |
20 | 178.24 | 182.38 | 182.48 | 185.97 | 190.91 | 7.73 | 4.34 | 12.67 | 7.11 |
21 | 264.27 | 266.77 | 266.91 | 270.95 | 277.18 | 6.68 | 2.53 | 12.91 | 4.89 |
22 | 395.28 | 396.58 | 396.89 | 400.28 | 411.11 | 5.00 | 1.26 | 15.83 | 4.00 |
23 | 410.25 | 413.04 | 413.10 | 419.46 | 422.32 | 9.21 | 2.24 | 12.07 | 2.94 |
24 | 511.76 | 515.08 | 515.15 | 552.27 | 557.12 | 40.51 | 7.92 | 45.36 | 8.86 |
25 | 456.20 | 505.98 | 506.09 | 524.76 | 526.85 | 68.56 | 15.03 | 70.65 | 15.49 |
26 | 444.15 | 445.74 | 445.85 | 463.69 | 466.56 | 19.54 | 4.40 | 22.41 | 5.05 |
27 | 412.73 | 415.25 | 415.38 | 420.92 | 428.72 | 8.19 | 1.98 | 15.99 | 3.87 |
28 | 272.46 | 273.92 | 274.07 | 275.73 | 277.50 | 3.27 | 1.20 | 5.04 | 1.85 |
29 | 315.28 | 316.56 | 316.83 | 320.48 | 327.76 | 5.20 | 1.65 | 12.48 | 3.96 |
30 | 205.17 | 218.67 | 218.82 | 222.39 | 227.42 | 17.22 | 8.39 | 22.25 | 10.84 |
Average | 396.19 | 401.17 | 401.33 | 411.36 | 416.85 | 15.18 | 3.88 | 20.66 | 5.40 |