Full text
DETECTING CITY-HINTERLAND PAIRS WITH A COMMUNITY DETECTION ALGORITHM Kushal Sharma
II Detecting City-Hinterland Pairs With a Community Detection Algorithm Dissertation supervised by Prof. Dr. Judith Verstegen Institute for Geoinformatics Westfälische Wilhelms-Universität, Münster, Germany Co-supervised by Prof. Dr. Brian Dermody Utrecht University, Utrecht, Netherlands Prof. Dr. Roberto Henriques NOVA Information Management School University of New Lisbon, Lisbon, Portugal February 2019
III Declaration I hereby certify that this thesis, entitled “Detecting City-Hinterland Pairs with a Community Detection Algorithm”, has been entirely composed by me and is based on my own work and under the guidance of my supervisors. No other person’s work has been used without due acknowledgment. All the references used have been cited, and all sources of information, including graphs, illustrations and data sets, have been specifically acknowledged. Signature: ……………………………… Münster, February 2019
IV Acknowledgments I would like to express my sincere gratitude to my supervisor Dr. Judith Verstegen, for continuous support on my research, for her patience, enthusiasm, guidance and motivation throughout the work. I would like to express my heartfelt gratitude to my co-supervisor, Dr. Brian Dermody for his ideas, suggestions, and comments that were really helpful for completing this work. I am also thankful to Dr. Roberto Henriques for co-supervising my thesis. I will always be in debt to their guidance. I am grateful to the Erasmus Mundus program for providing me the opportunity and fellowship to pursue the Master's degree in Geospatial Technologies. It was really a wonderful opportunity to learn in a multi-cultural environment with my amicable classmates taught by inspirational teachers. I am grateful to all those who have played a part in institutionalizing this course. I sincerely applaud the efforts of this hardworking team from all three partner universities of this master's program. Finally, I would like to take this opportunity to express my love and gratitude to my family who has always been by my side, encouraging and supporting me throughout the time period of my study. My all endeavors are the trust of my parents, the encouragement of my sisters and brothers.
V Detecting City-Hinterland Pairs With a Community Detection Algorithm Abstract With the increasing urbanization, cities tend to grow together with the infrastructure networks beyond their administrative boundaries. Identifying the right dimension of the city is thus challenging for the geographers. One way to represent a city could be identifying the city core and its hinterland as a part of the city itself. Since the transport network is used to deliver the resources between the city and its hinterland, we can hypothesize that the connectedness between the city and its hinterland is represented by the transport network topology. Hence, it would be justifiable to consider the transport network topology as a foundation for identifying hinterlands. One way to achieve this task of identifying hinterland utilizing the transport network topology is by using community detection algorithms. This thesis presents and evaluates a methodology for defining city-hinterland pairs at a regional level using community detection algorithms applied to the transport network. Easily accessible OpenStreetMap(OSM) road network data was used as the data for our research. We used three modularity optimization based community detection algorithms to identify communities in the road network. The identified communities were assigned to city core areas and hinterland based on the proposed criteria. Results from different algorithms were compared among each other and with the OECD Functional Urban Areas(FUAs). Similarity among the results between the three algorithms was acceptable with the average Goodness-of-fit (GOF) scores of 0.60 and 0.65 for core urban area and hinterland respectively. With OECD FUAs results showed less similarity with average GOF scores of 0.40 and 0.31 for core urban area and hinterland respectively. The disimilarity of our result with OECD data is justifiable as the OECD FUAs use population data and commuting data of administrative units without considering transport connectivity but we use only road network as the basis for identifying city and hinterland communities. Keywords: City; Hinterland; Transport Network; Community Detection Algorithms; Communities; Modularity
VI Acronyms OECD Organisation for Economic Co-operation and Development FUAs Functional Urban Areas GIS Geographic Information System OSM OpenStreetMap GOF Goodness-of-fit
VII Table of Contents Acknowledgments ....................................................................................................................... IV Abstract ......................................................................................................................................... V Acronyms ..................................................................................................................................... VI Table of Contents ....................................................................................................................... VII List of Figures .............................................................................................................................. IX List of Tables ................................................................................................................................ X 1. Introduction ........................................................................................................................... 1 1.1. Background ...................................................................................................................... 1 1.2. Research Gap.................................................................................................................... 2 1.3. Research Questions .......................................................................................................... 3 1.4. Research Objectives ......................................................................................................... 4 2. Theoretical Background........................................................................................................ 5 2.1. Community Detection Algorithms ................................................................................... 5 2.2. Modularity Optimization Algorithms .............................................................................. 5 2.2.1. Louvain Algorithm ....................................................................................................... 6 2.2.2. Leiden Algorithm ......................................................................................................... 7 2.2.3. Fastgreedy Algorithm ................................................................................................... 8 3. Methodology ........................................................................................................................... 9 3.1. Study Area ........................................................................................................................ 9 3.2. Datasets Used ................................................................................................................. 10 3.3. Data preprocessing ......................................................................................................... 11 3.4. Implementation of Community Detection Algorithms .................................................. 14 3.4.1. Louvain Algorithm ..................................................................................................... 14 3.4.2. Leiden Algorithm ....................................................................................................... 15 3.4.3. Fastgreedy Algorithm ................................................................................................. 16 3.4.4. Post-processing of results ........................................................................................... 16 3.4.5. Delineation of community areas ................................................................................. 16 3.4.6. Identifying core urban areas ....................................................................................... 17
VIII 3.4.7. Assigning city names .................................................................................................. 18 3.4.8. Identifying Hinterlands ............................................................................................... 18 3.4.9. Comparing Results ..................................................................................................... 19 4. Results and Discussion ........................................................................................................ 21 4.1. Communities detected on the weighted and non-weighted road network ..................... 21 4.2. Classification of city core urban areas and hinterland ................................................... 23 4.3. Comparing the results..................................................................................................... 26 4.4. Resolution limit in Algorithms ....................................................................................... 29 4.5. Limitations of our work.................................................................................................. 30 5. Conclusion and future works.............................................................................................. 32 5.1. Conclusion ...................................................................................................................... 32 5.2. Future works ................................................................................................................... 34 Bibliography ................................................................................................................................ 35 Appendix ...................................................................................................................................... 38
IX List of Figures Figure 1: Louvain algorithm steps. Reprinted figure from [28] .................................................... 7 Figure 2: An example showing disconnected community. a) Initial partition b) Internally disconnected community (in red color) after moving of crucial node 0. Reprinted figure from [29] .................................................................................................................................................. 8 Figure 3: Study area: Three government regions ((Regierungsbezirke) in North Rhine- Westphalia, Germany ...................................................................................................................... 9 Figure 4: Data preprocessing steps for creating clean and simplified road network data ............ 11 Figure 5: Small section of the road network data used a) Downloaded road network data b) Road network data after performing preprocessing steps ...................................................................... 14 Figure 6: Steps for converting partition nodes into community areas .......................................... 17 Figure 7: Goodness-of-Fit score calculation between two intersecting polygons (Adapted from Hargrove et. al [36]) ...................................................................................................................... 19 Figure 8: Communities detected on the unweighted and weighted road network by different algorithms a)LouvainNonWgt b)LouvainWgt c)LeidenNonWeight d)LeidenWgt e)FastgreedyNonWgt f)FastgreedyWgt ....................................................................................... 22 Figure 9: Core communities classified using natural breaks classification for different algorithms a)LouvainWgt b)LeidenWgt c)FastgreedyWgt d)LouvainLev3Wgt e)LouvainLev2Wgt ........... 24 Figure 10: City core areas and hinterland identified by three algorithms a) LouvainWgt b) LeidenWgt c)FastgreedyWgt ....................................................................................................... 25 Figure 11: Goodness-of-fit scores of core areas identified by three algorithms with OECD core urban areas .................................................................................................................................... 27 Figure 12:Goodness-of-fit scores of hinterland areas identified by three algorithms with OECD hinterlands ..................................................................................................................................... 28 Figure 13: Communities based on input road network a)&b) LouvainWgt c)&d)LeidenWgt e)&f) FastgreedyWgt .................................................................................................................... 30
6 Where is the weight of edge connecting nodes i and node j, = ∑ is the is the sum of the weights of the edges attached to the node i, = ∑ is the sum of all edge weights, is a Kronecar Delta Function which equals 1 if i and j are in sthe ame community and 0 otherwise, c i and c j are the communities of i and j. In equation 2, the term is the expected weight of the edge connecting node i and node j in the null model of modularity proposed by Newman and Girvan. One of the main limitations of modularity optimization methods is the resolution problem. Due to this, the algorithms could fail in identifying communities smaller than a certain size or weight existing in the network at optimal modularity partition [27]. 2.2.1. Louvain Algorithm The Louvain algorithm [28] is one of the most widely used modularity optimization based algorithms for identifying communities in large networks. It can be applied to both unweighted and weighted networks. This algorithm uses two main iterative phases for detecting communities with higher modularity. At first, each node is assigned to different communities so that the number of communities is equal to a number of nodes in the network. After then, each node is moved from the current community to another community and the modularity is checked. If the modularity doesn't change after moving, the node stays in the same community and otherwise, the node is assigned to the community which has the highest increase in modularity. This step is repeated for each node until there is no improvement in modularity. After completing this step, one level of communities is detected. In the second phase, a new network is created by converting the communities in the previous phase into nodes. Then edges between these nodes are created and assigned the sum of the weight of links between corresponding communities. This process is repeated with the newly formed
7 aggregate network to detect communities at a higher level. The algorithm stops if no further improvement in the modularity of the whole partition is possible. . 2.2.2. Leiden Algorithm The Leiden algorithm [29] is a recently introduced modularity optimization based algorithm that can be used for both weighted and unweighted large networks. This algorithm is considered as an improvement to the Louvain algorithm discussed above because it solves some of the issues such as badly connected communities that were present in the Louvain algorithm [29]. In Louvain algorithm (Section 2.2.1), while moving the nodes from one community to another, it might move the crucial node that acts as a bridge with the rest of the communities. After moving that crucial node, the old community would be disconnected (Figure 2b). This leads to the identification of badly connected and disconnected communities in Louvain Algorithm. Leiden algorithm solves the aforementioned problem and helps in detecting improved communities in the network [29]. The Leiden algorithm also starts with the communities equal to the number of nodes. After then, the algorithm moves individual nodes from one community to another to find communities that increases modularity. The next step involves the refinement of the individual communities found Figure 1: Louvain algorithm steps. Reprinted figure from [28]
8 in the earlier step. After the refinement step, the initial community might split into multiple subcommunities ensuring well-connected communities. After then, aggregation of the community nodes is done based on the refined partition. These steps are iterated until no more improvement can be made in terms of modularity value. 2.2.3. Fastgreedy Algorithm The Fastgreedy algorithm [30] is another modularity optimization method of community detection which can also be applied in the case of large weighted and unweighted networks. In this algorithm also, the number of communities are equal to the number of nodes (n) at the beginning but the edges are not present during this stage. Insertion of the edges is done one by one and the modularity is checked after the addition of each edge. The edge to be inserted is chosen in such a way that such that the new partition gives the maximum increase of modularity with respect to the previous arrangement. After adding the first edge in the disconnected nodes, the number of communities decreases from n to n – 1. This will give the new partition in the network with n-1 communities. A similar procedure is followed to insert remaining edges. The change in modularity is calculated in each iteration step after merging of two communities so that we can choose which merger is the best. This process is repeated until the single community is formed. The best partition of the network into communities is chosen from this subset of partitions for which the modularity is maximum. Figure 2: An example showing disconnected community. a) Initial partition b) Internally disconnected community (in red color) after moving of crucial node 0. Reprinted figure from [29] a) b)
9 3. Methodology 3.1. Study Area Three of the five government regions (Regierungsbezirke) in North Rhine-Westphalia state, Germany i.e. Münster, Düsseldorf, and Köln were chosen as the study area for our research. The study area features 12 cities with more than 200,000 population and 3 of them are from the list of Germany's 10 largest cities. Availability of OECD Functional Urban Areas data for most of the cities in this region in order to validate our result was the main reason for choosing this study area. Figure 3: Study area: Three government regions ((Regierungsbezirke) in North Rhine-Westphalia, Germany (Data Source: www.gadm.org)
10 3.2. Datasets Used As one of the motives of our research was to use fewer data possible which are easily available for most of the countries to detect cities and hinterland, we focused on road network data only. The road network data was downloaded from OpenStreetMap(OSM) using the python package OSMnx [31]. OSMnx helps in custom and automated downloading of street network data from OpenStreetMap and corrects the topology of street networks. This package allows applying various queries before downloading so that we can obtain the data that is applicable for our purpose. The corrected street network data can be saved as a GraphML, SVGs, or ESRI shapefiles for later use. For our research, the street network data was downloaded by specifying the boundary of the study area in OSMnx. The boundary used was the polygon shapefile after merging administrative boundaries of the three regions Münster, Düsseldorf, and Köln. The administrative boundaries were downloaded from the GADM database (www.gadm.org). Further queries were applied such as selecting the desired road network type, highway type and applying a custom filter before downloading the actual dataset required for our purpose. Following considerations were taken while downloading data using OSMnx: Network type: drive Highway-type: motorway, trunk , primary, secondary, tertiary Residential road type was not included in our dataset because we were focused on identifying communities at the regional level and residential roads might affect the results by identifying smaller communities at the local level. Roads that can lead to the creation of complex intersections were also excluded while downloading. The downloaded road network data was in the form of nodes and edges shapefile with all the attributes such as speed and highway type. These attributes were preserved in order to assign the weights for each edge in the later stage.
11 3.3. Data preprocessing The data preprocessing step is imperative before implementing community detection algorithms. In our case, the road network data downloaded from OSM had lots of unnecessary and disconnected edges that needed data cleaning and simplification steps. Hence, several steps of data preprocessing were performed to convert the downloaded data into corrected and simplified road network data before implementing community detection algorithms. The entire data preprocessing steps were performed in ArcMap 10.6 software using several tools. The details of these preprocessing steps are explained in the following section. Figure 4 illustrates the workflow of these preprocessing steps to convert the downloaded data into input data for community detection algorithms. Merge Divided Roads Collapse Road Detail (Simplifying Roundabouts) Check and Correct Topological Errors Spatial Join to Retain Original Attributes Merge Road Segments between Intersections Weight Calculation of Road Edges Data Preprocessing Steps in ArcGIS Downloaded Road Network Data Input data for Community Detection Algorithms Figure 4: Data preprocessing steps for creating clean and simplified road network data
12 Merge Divided Roads Most of the roads in the downloaded data were represented by multiple lines. Due to this, a single connection between two intersections was represented by more than one edges. If we include those multiple edges for a single connection during the algorithm implementation, it might affect the results. In order to solve this problem, 'Merge Divided Roads' tool was used. With this tool, roads were merged into a single road centerline if they were from the same road type, mostly parallel to one another, and were within the merge distance of 50 meters. Collapse Road Detail There were many roundabouts or traffic circles in the original road network data that can interrupt the general trend of a road network. The 'Collapse Road Detail' tool was used to collapse such road segments and replace them with simpler links. This step reduced the number of edges from the road network data that were insignificant for the analysis. Merge Road Segments between Intersections There were multiple line segments between two intersections in the road network. Due to this, multiple edges were created between two intersections instead of a single edge. In order to solve this problem, all the lines were dissolved into a single line feature using the 'dissolve' tool. After dissolving all the road network into single line feature, the 'Feature to Line' tool was used to split the single line feature at intersections and each of the split lines became an output line feature. Check and Correct Topological Errors This step helped in correcting the major topological errors existed in the road network prepared from the above steps. For this, a network topology was created with the following topological rules. Rule 1: Must Not Have Dangles – This rule helped to detect undershoots and overshoots in the existing road network data. Rule 2: Must not overlap- This rule helped in identifying overlaps in the road network The errors that were found after validating the data with the above rules were corrected accordingly.
13 Spatial Join As all the attributes were lost while dissolving all the road segments, the 'spatial join' tool was used to retain original attributes of road segments after correcting topology. The attributes of the original feature that share a line segment with the new line were assigned to the later one. Weight calculation for edges Before implementing the algorithms on the weighted network, each edge of the road network was assigned a weight. The weight was calculated based on the travel time of each road segment. The following steps were involved in the assignment of weights: Length of every road segments was calculated From the speed attribute available for each road segment, maximum speed was selected as there were more than one values for speed. Travel time was calculated in minutes by dividing the length of the road segment with speed. Finally, weight was calculated as the inverse of the travel time so that road segment with less time was assigned more weight and vice versa. This is because an increase in travel time of a segment indicates that the nodes connected by this road segment have less probability to be included in the same community. After performing all the preprocessing steps mentioned above, a final clean and simplified road network data was created that was used as the input while implementing the community detection algorithms. The downloaded road network data consisted of 37279 edges and 24124 nodes which was later reduced to 13518 edges and 8214 nodes after data preprocessing steps. Figure 5 shows a small section of the road network before and after the data preprocessing steps.
14 3.4. Implementation of Community Detection Algorithms Three modularity optimization based algorithms i.e. Louvain, Leiden, and Fastgreedy algorithm were applied in our road network data to identify communities. 3.4.1. Louvain Algorithm Various python implementation of the Louvain method [28] of community detection can be found as the python modules or packages. We used the python package named 'community' also called 'python-Louvain' [32] which depends on NetworkX [33] for handling graph operations. The input Figure 5: Small section of the road network data used a) Downloaded road network data b) Road network data after performing preprocessing steps a) b)
15 graph for this package should be a NetworkX graph object. So, we converted the shapefile of road network data prepared after data preprocessing into NetworkX graph object of nodes and edges by using functions available in NetworkX. We used the both unweighted and weighted graph as input for detecting communities. For the weighted network, two approaches were used for the partition of nodes. In the first one, the partition of nodes with the highest modularity was identified and this result was used as the major output for most of the analysis. And the second one was used to find partition at different levels of the dendrogram generated after applying the algorithm. A dendrogram obtained by this algorithm represents hierarchical clustering of nodes and every level in it is a partition of the nodes. Level 0 is the partition at the lowest level with the smallest communities, and the highest level is 1 less than the length of dendrogram with larger communities and with the maximum modularity. After the partition of nodes, each community was given a unique identifier which was used to label the communities for later use. These nodes were converted into shapefile format for the postprocessing. 3.4.2. Leiden Algorithm For our research, we used the package named 'leidenalg' [34] as the python implementation of the Leiden algorithm [29]. This package is built on the top of 'igraph' library (https://igraph.org/python/). The input for this algorithm implementation should be a graph of type igraph. We converted the nodes and edges from the networkX graph used in the previous algorithm into an igraph graph to use in this algorithm. Communities were detected for both weighted and unweighted graphs. It was not possible to obtain the partition of nodes at a different level in this algorithm implementation. So we used the partition obtained with maximum modularity as the output of the algorithm. Since the result obtained using this algorithm were slightly different after each run, the result with maximum modularity among 10 replications was taken for further analysis. The difference in the results for each run is due to the difference in the starting node that this algorithm use for partitioning the nodes. This will lead to the slightly different partitions in different runs of algorithms for which they have optimal modularity. A similar approach used in Louvain algorithm implementation was followed for converting the output into the shapefile of partition nodes with communities' attribute.
22 The visual comparison of the communities detected using three algorithms on the weighted and unweighted road network is shown in Figure 8. Size and pattern of communities detected on unweighted road network (Figure 8a, 8c, 8e) are significantly different than that on weighted road networks (Figure 8b, 8d, 8f). In overall, the community areas detected in the unweighted network are larger in size than the community areas detected on a weighted network. Figure 8: Communities detected on the unweighted and weighted road network by different algorithms. a)LouvainNonWgt b)LouvainWgt c)LeidenNonWeight d)LeidenWgt e)FastgreedyNonWgt f)FastgreedyWgt
23 In the case of unweighted networks, only the number of connections between nodes is considered regardless of longer or shorter road segments connecting them for detecting communities. Thus, it is justifiable to have smaller communities in the weighted network because after using the travel time as a weight factor, the communities are separated mostly by the longer segment of road segments which have more travel time (lesser weight). This helps to identify core areas as separate communities due to the presence of shorter road segments with less travel time (more weight). The higher density of smaller communities exists in the center and southern part of the study area ((Figure 8b, 8d, 8f). The middle and southern part of the study area constitute of Köln and Düsseldorf region and these regions consist of large cities like Köln, Düsseldorf, Essen, and Duisburg. From this finding, we can at least hint that the presence of smaller and denser communities are significant in the areas where we have a higher density of road networks. 4.2. Classification of city core urban areas and hinterland The range of intersection density values obtained by using natural breaks for the classification of core urban areas and the number of communities identified as core urban areas in each of the algorithm results is shown in Table 3. The break values obtained for classification of core areas using this approach are not similar across different algorithms. This is justifiable to have this difference in break values because the intersection density values of the communities detected by different algorithms are not similar. Percentage of communities assigned as core urban area in Fastgreedy and Leiden algorithm is a bit higher than that of Louvain algorithm (highest level). Louvain level 2 has the least percentage of communities identified as core areas using this classification. Methods Intersection density values for core urban areas (Intersections per Km) No of core communities % of total communities FastgreedyWgt >0.57 33 35% LeidenWgt >0.58 33 36% LouvainWgt >0.62 26 30% LouvainWgtLev3 >0.59 55 34% LouvainWgtLev2 >0.76 131 22% Table 3: Intersection density break values used for classification of core communities
24 Figure 9 shows the visual comparison of the core urban communities identified using the break values of intersection density obtained as shown in Table 3. Core urban communities are relatively smaller in size and are surrounded by larger communities in the results from three algorithms at the highest level (Figure 9a, 9b, 9c). This signifies that the presence of dense connection of road networks (mostly secondary and tertiary roads) in the city core urban area leads to the detection of smaller communities. As we go farther from the city core, longer segments of primary and secondary roads are more prevalent leading to the detection of larger communities. Considering this pattern, we used a simpler concept of adjacency to assign hinterlands by selecting the larger communities around core areas. Figure 9: Core communities classified using natural breaks classification for different algorithms. a)LouvainWgt ;b)LeidenWgt; c)FastgreedyWgt; d)LouvainLev3Wgt; e)LouvainLev2Wgt
25 In the case of results from Louvain algorithm for lower level, the aforementioned concept of assigning hinterland is not significant as the communities are relatively smaller around the core areas. Also, the modularity score for these methods is lowest among all other which raises the question of reliability of these detected communities. Hence, for detecting hinterlands of the cities, we have only considered the results obtained from FastgreedyWgt, LeidenWgt and LouvainWgt methods. The hinterlands of each city core urban areas identified are depicted in Figure 10. Altogether 12 core urban areas of the cities and their respective hinterland areas were identified by all the three algorithms. Leiden Algorithm identified one more city core urban area, which was left undetected in other two algorithms Louvain and Fastgreedy. Figure 10: City core areas and hinterland identified by three algorithms. a) LouvainWgt ; b) LeidenWgt ; c)FastgreedyWgt
26 Münster being one of the major city in our study area was left unidentified with our proposed method. This might be due to the issue of resolution limit that these community detection algorithms have. This will be explained in the later section. 4.3. Comparing the results Table 3 shows the Goodness-of-fit (GOF) scores between the results from three different algorithms and with the OECD FUAs. The average GOF score for core urban areas identified across three algorithms is 0.60 with a standard deviation of 0.10 and for the hinterland areas, the average GOF score is 0.65 with a standard deviation of 0.044. The results from the Leiden algorithm have better similarity with Fastgreedy algorithm with about 70% match for both core urban area and hinterland. These results indicate that the communities detected from different community detection algorithms are quite different which ultimately leads to the identification of dissimilar core urban areas and hinterland of the cities. The results obtained from classification using a constant range of intersection density values is presented in the Appendix. LouvainWgt LeidenWgt FastgreedyWgt OECD FUAs LouvainWgt 1 0.64 0.61 0.28 LeidenWgt 0.54 1 0.70 0.37 FastgreedyWgt 0.55 0.72 1 0.28 OECD FUAs 0.43 0.39 0.37 1 GOF Core Area GOF Hinterland Table 4: GOF values between results from different algorithms and with OECD FUAs The main reason for the differences in the results is due to the different heuristics used by these algorithms to maximize modularity while identifying communities. As discussed in section 2.4, the Leiden algorithm solves the issues of disconnected communities present in Louvain algorithm and gives a better quality of partition. This improvement in the Leiden algorithm might be one main reason for the difference in communities detected between these two algorithms. Fastgreedy use quite different approach than the other two algorithms. Also, the optimal modularity value achieved as a stopping point for these algorithms during the partition might not be the same. This ultimately leads to the detection of communities that are different across these algorithms. As the community areas detected are different among these algorithms, the intersection density values for
27 these communities will also differ accordingly. Hence, the natural breaks classification identified the non-uniform range of intersection density values for classifying core urban areas across three algorithms. This could be one of the reasons for slightly lower similarity between the core urban areas identified between algorithms. Comparison of results with OECD FUAs Overall GOF values obtained after comparing the results from our proposed method with OECD Functional Urban Areas (FUAs) are quite lower for all the three algorithms (Table 4). The average GOF score obtained for core areas is 0.40 with a standard deviation of 0.02 and the average for the hinterland is 0.31 with a standard deviation of 0.04. This result indicates that there is not much similarity between the core areas and hinterland identified using our method with the OECD core areas and hinterland. Among three algorithms, results from Louvain algorithm have highest GOF score of 0.43 for core areas whereas results from Leiden algorithm have the highest GOF score of 0.37 for hinterlands. The overall GOF score was slightly decreased by the influence of the core urban area and hinterland of Münster city because this city was completely undetected using our method but was included in the OECD FUAs for comparison. Figure 11 depicts the similarity between the core urban areas obtained from our proposed method and OECD core urban areas of 7 cities. The higher similarity of around 60% is obtained for the core areas of the cities Köln and Düsseldorf by Louvain algorithm. Although similar core urban Figure 11: Goodness-of-fit scores of core areas identified by three algorithms with OECD core urban areas 0.44 0.33 0.52 0.62 0.41 0.59 0.47 0.32 0.54 0.34 0.46 0.37 0.00 0.52 0.34 0.53 0.56 0.39 0.40 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 Aachen Bonn Duisburg Düsseldorf Essen Köln Münster GOF Scores of Core areas LouvainWgt LeidenWgt FastgreedyWgt
28 areas are obtained among the three algorithms for most of the cities, the GOF score appears lower for those cities. In the case of larger cities like Köln and Düsseldorf, the variability between GOF score among the three algorithms seems quite higher. Münster have zero similarity because the core urban area of this city was not detected. GOF scores between the hinterland identified by our proposed method and the OECD hinterland for 7 cities are depicted in Figure 12. High variability of GOF score can be seen for most of the cities among the hinterlands identified from three algorithms. Essen showed the lowest similarity among all the cities. Münster have the zero similarity for hinterland as well because hinterland can be identified only after identifying core urban area but it was left undetected as mentioned earlier. Figure 12:Goodness-of-fit scores of hinterland areas identified by three algorithms with OECD hinterlands In summary, the above results point that city core urban areas and the hinterlands obtained from our proposed method have less similarity with OECD FUAs. It is justifiable to have this difference in the results because OECD uses population data and commuting data of administrative units as the basis to identify core urban areas and hinterlands without considering connectivity through the road network. Hence, we can argue that use of OECD FUAs as the validation data for comparing our result might be unsuitable in our case where the road connectivity is considered as the main 0.34 0.39 0.34 0.57 0.11 0.37 0.40 0.38 0.37 0.33 0.19 0.59 0.00 0.39 0.59 0.34 0.49 0.09 0.26 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 Aachen Bonn Duisburg Düsseldorf Essen Köln Münster GOF Scores of hinterlands LouvainWgt LeidenWgt FastgreedyWgt
29 basis for determining city core urban area and hinterland. OECD method uses employees commuting data of surrounding administrative units to identify hinterland which ignores road network connectivity for people's movement between the city and its hinterland. In our case, we used the assumption that road network topology best represents the connectedness between the city and its hinterland which helped us to determine communities with dense road connections among themselves and sparse connections with the rest. So, using community detection algorithms we were able to detect communities in the road network that can correspond to either core urban area with higher road density and hinterland with lesser road density. 4.4. Resolution limit in Algorithms In the previous section, we found out that the core urban area of a major city Münster was left undetected due to the resolution limit problem prevailing in modularity optimization algorithms. Due to this problem, algorithms fail to uncover the communities smaller than the certain scale which depends on the total size or weight of the network [27, 37]. In our case, the study area consisted of many larger cities such as Köln and Düsseldorf which have relatively denser road network connections in the core urban areas and were detected easily by these algorithms. But, Münster city although being a major city has relatively few numbers of road network connections within the core urban area and with the surrounding hinterlands as well. As a result, modularity optimization algorithms that we used were unable to detect the core urban area community of Münster as a separate community due to the effect of relatively denser road connection of larger cities existing in the study area. Figure 13 illustrates this problem of resolution limit where we can see that the algorithms that we use were able to identify smaller communities if the network size is smaller. Figure 13a, 13c, and 13e show the communities detected when the algorithms were applied to the whole study area. Figure 13b, 13d and 13f shows communities detected when the algorithms were applied only on the Münster region with the subset of same road network used for the larger region. Results show that communities detected on the subset of road network have a different result than on the road network of the whole study area. Smaller communities than before are detected in the Münster region after implementing community detection algorithms on the road network of the particular
30 region only. Also, the core urban area of Münster City is detected by all the three algorithms in this scenario (Figure 13b, 13d and 13f) which was left undetected while using the road network of the whole study area. This clearly justifies the earlier statement that the resolution limit problem existing in modularity based community detection algorithms was the main reason for Münster city being undetected in our results. 4.5. Limitations of our work In our study, we only used three modularity optimization based community detection algorithms for detecting communities. Use of other algorithms in addition to Modularity based methods could have been used to study the nature of communities detected in road network across different class of algorithms. Whole Study area Münster Region Figure 13: Communities based on input road network a)&b) LouvainWgt c)&d)LeidenWgt e)&f) FastgreedyWgt
31 As a result of preprocessing steps of the downloaded OSM road network data, underpass and overpass roads were treated as intersections instead of separate links. Although there were very few cases like this, the result could have been improved by retaining such spatial relationship of the road connectivity. We only used OECD FUAs as the validation data to compare our results. Due to the lack of more realistic validation data, it was difficult to say which algorithms gave better results in terms of finding city core urban areas and hinterlands. Also, the use of higher modularity values as the basis to choose the results among different methods might not be always true while detecting communities in the real world scenario. Due to the rigorous and time-consuming steps for the processing of OSM data, the study area was limited to only three regions of the North Rhine-Westphalia state, Germany. Use of road network of whole state or country for identifying communities could have been considered to get more insights on a different level of city hinterland pair detection.
38 Appendix Appendix A: Classification of Communities using a constant intersection density (>0.61) break values for all algorithms Figure A1: Core communities classified using fixed range for using fixed range of intersection density values for classification a)LouvainWgt ;b)LeidenWgt; c)FastgreedyWgt; d)LouvainLev3Wgt; e)LouvainLev2Wgt
39 LouvainWgt LeidenWgt FastgreedyWgt OECD FUAs LouvainWgt 1 0.80 0.61 0.28 LeidenWgt 0.71 1 0.62 0.31 FastgreedyWgt 0.61 0.70 1 0.25 OECD FUAs 0.47 0.43 0.38 1 Table A1: GOF values between results from different algorithms and with OECD FUAs using fixed range of intersection density values for classification Figure A2: Core areas and Hinterlands of the cities obtained using fixed range of intersection density values for classification a)LouvainWgt b)LeidenWgt c)FastgreedyWgt
40 Figure A 3: GOF scores of core areas obtained with our proposed method with OECD core areas Figure A 4: GOF scores of hinterland obtained with our proposed method with OECD hinterlands 0.44 0.33 0.52 0.62 0.41 0.75 0.47 0.26 0.67 0.66 0.32 0.65 0.00 0.52 0.34 0.53 0.56 0.39 0.40 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 Aachen Bonn Duisburg Düsseldorf Essen Köln Münster Goodness-of-Fit Score LouvainWgt LeidenWgt FastgreedyWgt 0.34 0.33 0.25 0.54 0.11 0.32 0.40 0.22 0.37 0.43 0.19 0.33 0.00 0.39 0.42 0.24 0.42 0.09 0.24 0.00 0.10 0.20 0.30 0.40 0.50 0.60 Aachen Bonn Duisburg Düsseldorf Essen Köln Münster Goodness-of-Fit(GOF) scores LouvainWgt LeidenWgt FastgreedyWgt