<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anton Eremin on Medium]]></title>
        <description><![CDATA[Stories by Anton Eremin on Medium]]></description>
        <link>https://medium.com/@eremintonny?source=rss-1d8b1ad77f09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aFA9IHf5acfgu3T3.</url>
            <title>Stories by Anton Eremin on Medium</title>
            <link>https://medium.com/@eremintonny?source=rss-1d8b1ad77f09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:44:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eremintonny/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Prague walking accessibility.]]></title>
            <link>https://medium.com/data-science/prague-walking-accessibility-8c0954e83bea?source=rss-1d8b1ad77f09------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c0954e83bea</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Anton Eremin]]></dc:creator>
            <pubDate>Tue, 12 Nov 2019 20:39:51 GMT</pubDate>
            <atom:updated>2019-11-13T19:09:08.711Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Abstract</h3><p>In this study, we try to analyze walkability of the city for children from age 10 to 16. We use a number of data sources and network analysis for building accessibility map of the selected city. With K nearest neighbor technique we perform clustering for selecting districts with different walkability scores. We analyze this clutters in terms of walkability scores and POIs density and determine areas which need to be improved in terms of walking accessibility.</p><p>Notebooks for this research is free accessible on GitHub:</p><p><a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/01.%20Walking%20Accessibility%20Data%20Acquisition.ipynb">Data acquisition and cleaning</a></p><p><a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/02.%20Walking%20Accessibility%20Data%20Analysis.ipynb">Exploratory Data Analysis and Visualization</a></p><p><a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/03.%20Walking%20Accessibility%20Modeling.ipynb">Modelling and clustering</a></p><h4>Keywords</h4><p><em>Accessibility Clustering analysis Network analysis Urban Planning</em></p><h3>2. Introduction</h3><p>Walking is the most reliable, easy and healthy way to travel. Yet today the number of children walking to school is in decline. This has damaging consequences for our children’s health, safety and well being. Over 70 per cent of today’s parents walked to school when they were children but less than half of children walk to school today. Meanwhile, the number of children being driven to school is growing, with an increasingly negative impact on congestion, health and communities [1].</p><p>Walking is an easy, free and healthy way for children to get to school or other activities such as libraries, cultural and hobby centers, playgrounds e. t. c. Walking provides a lot of benefits for everyone.</p><p>What do we mean under pedestrian accessibility? For us, it means the ability to reach particular everyday — life points of interest (POI) in a reasonable time. Under reasonable time we mean time that children need to spend to walk 1300 meters. This distance is recommended as reasonable for selected age range. [2] Common POIs for children from 10 to 16 years are: schools, hobby and leisure time facilities, libraries, sport facilities and outdoor playgrounds.</p><p>The objectives of this study therefore are: (1) Analyze the current city`s infrastructure for children in terms of density population and density of POIs. (2) Build a network of walkable routes. (3) Define walkability clusters</p><p>With discussions on related literature, this section has introduced the purpose and scope of this paper. Study Area and Data section go into the study area and data sources. Methods are introduced in Methods section. Results section presents the results and illustrates how the results can be applied in planning practice. Conclusions and policy recommendations are followed in Discussion and Conclusions section.</p><p>Full report is available on <a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/README.md">GitHib</a></p><h3>3. Study Area and Data</h3><p>Prague is the largest city of Czech Republic with a total area of 298 km2 and a population of 1,3 millions and the 14th largest city in the European Union. It is known as a major economical and cultural hub, located in the central region of Czech Republic. As a city with a more than 14th centuries of history it has classical medieval city center with a lot of historical buildings and small streets. Surroundings of the city center are more modern and on the periphery prevail small townhouses and private residences. The map below shows administrative borders of the municipal districts of Prague and total population of each district.</p><p>For our study, we use such types of data as population and geo data of the selected POI. All data was acquired from open data sources: for population we use data from Czech Statistical Office, for educational facilities — registry of The Ministry of Education, Youth and Sports of Czech Republic. Other data sets were acquired from Prague`s open data portal and other web resources.</p><h4>3.1 Population</h4><p>As population data set we use census data from Czech Statistical Office. The entire data set of <a href="https://www.czso.cz/">Czech Statistical Office</a> contains data of population, gender and age of citizens of Czech Republic. Features names are coded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*0mCR-JefOeDvvD95U_RUeg.png" /></figure><p>As our study area is Prague, we are only interested in population of the administrative districts with <em>uzcis = 44</em>. We filtered data from original data set according to this parameter, removed unnecessary columns and performed renaming.</p><h4>3.2 Geo-shapes</h4><p>The administrative districts borders data set was acquired from <a href="http://www.geoportalpraha.cz/">IPR Praha</a>. This is json data that contains an array of district’s properties, such as Name, Shape, Area e.t.c.</p><pre>&quot;type&quot; : &quot;FeatureCollection&quot;,<br>	&quot;name&quot; : &quot;TMMESTSKECASTI_P&quot;,<br>	&quot;features&quot; : [<br>		{<br>			&quot;type&quot; : &quot;Feature&quot;,<br>			&quot;geometry&quot; : {<br>				&quot;type&quot; : &quot;Polygon&quot;,<br>				&quot;coordinates&quot; : [<br>					[<br>						[ 14.535485616000074, 50.01175081800005 ],<br>						...<br>						[ 14.535067366000021, 50.011918405000074 ]<br>				]<br>			},<br>			&quot;properties&quot; : {<br>				&quot;OBJECTID&quot; : 1,<br>				&quot;DAT_VZNIK&quot; : &quot;20171204150607&quot;,<br>				&quot;DAT_ZMENA&quot; : &quot;20171204154726&quot;,<br>				&quot;PLOCHA&quot; : 3703180.2199999997,<br>				&quot;ID&quot; : 34,<br>				&quot;KOD_MC&quot; : 539791,<br>				&quot;NAZEV_MC&quot; : &quot;Praha-Újezd&quot;,<br>				&quot;KOD_MO&quot; : 43,<br>				&quot;KOD_SO&quot; : &quot;116&quot;,<br>				&quot;TID_TMMESTSKECASTI_P&quot; : 34,<br>				&quot;POSKYT&quot; : &quot;HMP-IPR&quot;,<br>				&quot;ID_POSKYT&quot; : 43,<br>				&quot;STAV_ZMENA&quot; : &quot;U&quot;,<br>				&quot;NAZEV_1&quot; : &quot;Újezd&quot;,<br>				&quot;Shape_Length&quot; : 0.11393431835892182,<br>				&quot;Shape_Area&quot; : 3703180.22185<br>			}<br>		},</pre><p>From this data we interested in area and geometry, Also we get a district`s names as unique key.</p><p>We compare population data set and districts borders data sets by the name of district. We get 57 unique records in these two data sets. We perform joining by <em>name</em> this to sets into resulting one. Resulting data set was saved to IBM Cloud Storage as <em>prague_district_population.csv</em>. Also, it can be accessed on our <a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/data/prague_district_population.csv">GitHub repository</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*AhE2vSBm5Gkf22Xn0I2iBA.png" /></figure><h4>3.3 Points of interest</h4><p>In our study, we interested in a few types of points such as: schools, educational and hobby centers, libraries, sport facilities and playgrounds. We decided to use only these 5 types, because these types are the most common types for children age 10–16. Data was acquired from numerous data sources. We don’t use any types of geo API such as Google Places or Foursquare, because we need full coverage of studying area for our research. All well-known API don’t provide such facilities for free accounts.</p><h4>Schools and educational centers</h4><p>We get schools and educational centers data from The Ministry of Education, Youth and Sports. This xml data set contains information about all state educational facilities in Prague. For our study, we are interested only in POIs types, districts and geographical coordinates.</p><p>From original educational data sets, we extracted addresses and types of educational facilities, with 2273 rows in total. Types are coded. As we didn’t find any futures description to this data set, we have to decide what types of educational facilities are suitable for our research. We get unique types from retrieved data:</p><pre>Types in XML file<br>A00 Mateřská škola<br>L11 Školní jídelna<br>L13 Školní jídelna - výdejna<br>B00 Základní škola<br>M60 Přípravný stupeň základní školy speciální<br>G21 Školní družina<br>G22 Školní klub<br>F10 Základní umělecká škola<br>C00 Střední škola<br>D00 Konzervatoř<br>M20 Školní knihovna<br>E00 Vyšší odborná škola<br>M79 Jiné účelové zařízení<br>H22 Domov mládeže<br>G11 Dům dětí a mládeže<br>G40 Zařízení pro další vzdělávání pedagogických pracovníků<br>M40 Středisko praktického vyučování<br>H21 Internát<br>K20 Speciálně pedagogické centrum<br>G12 Stanice zájmových činností<br>K10 Pedagogicko-psychologická poradna<br>F20 Jazyková škola s právem státní jazykové zkoušky<br>J12 Dětský domov se školou<br>J21 Středisko výchovné péče<br>J14 Diagnostický ústav<br>J11 Dětský domov<br>J13 Výchovný ústav<br>L12 Školní jídelna - vývařovna<br>H10 Škola v přírodě<br>A15 Mateřská škola (lesní mateřská škola)<br>Schools and educational centers count 560<br>Unique types [&#39;school&#39; &#39;educatioanal center&#39;]</pre><p>We can see that types that are interesting for us are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*Bxmu34VdYhZjNinAszB_ww.png" /></figure><p>For modeling step we don`t interested in actual venue address but in coordinates instead. We retrieve latitude and longitude with ArcGis api. The resulting data sets for schools and educational center contains 560 rows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*caiNLLN7r9CBmlbVwWJThA.png" /></figure><p>Libraries’ data was scrapped from <a href="https://cs.wikipedia.org/wiki/M%C4%9Bstsk%C3%A1_knihovna_v_Praze">web</a>. As data cleaning process we extracted addresses and districts name from original html page. For html parsing we use <em>BeautifulSoup</em> library. Addresses were converted to latitude and longitude with ArcGis api. The resulting data set contains 41 libraries.</p><h4>Sport centers, clubs and playgrounds.</h4><p>Data with sport facilities and playgrounds were retrieves for Prague Open Data Portal. For this data we perform the same steps as for previous data sets: address and district`s names extracting, converting address to latitude and longitude.</p><p>We join all five data sets to a resulting one with 1623 rows. Data set is accessible on out <a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/data/prague_pois.csv">GitHub Repository</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*eb9luGRW6sfoOjZDyExy-w.png" /></figure><p>Streets network data obtained from Open Street Map (OSM)The OSM data contains Prague road networks and surrounding connected roads, which are line geometries characterized by length. These can be used to construct a routable topology graph (directed, weighted and connected), which consists of nodes and edges, so that any well-known route search algorithm can be applied [3]. Pedestrian network for Prague contains 140 822 nodes and 204 575 links. Pre-proceeds data we store at IBM Cloud Object Storage and <a href="https://github.com/tonnyeremin/Urban-Data-Science/blob/master/data/network_14.224437012000067_49.94190007000003_14.706787572000053_50.17742967400005.h5">GitHub</a></p><h3>4. Exploratory Data Analysis</h3><p>Total Prague`s population is approximately 1.3 millions of people. The highest values is at south districts — from 110K to 130K. All districts with population higher than mean are situated around historical center districts. The averages population of these districts is 70 K people. This is expected. Most people in such types of cities as Prague leaves close to center but not inside it. Two largest districts in the north with population from 90 to 100K shows us new development areas of Prague.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*qR3wPQPSM24v0vlyPueGQw.png" /></figure><p>Analyzing Prague’s population from another point of view, we can notice that distribution of children per 1000 adults is correlated with previous picture. In this diagram we can clearly see districts that are mainly liked by families. The central districts and as suburbs has the lowest values while districts around center but not far from it has average values, approximately form 160 to 180 children per 1000 adults.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*0WBuGFHlYv6uTGUoDYT2YA.png" /></figure><p>Top 10 districts with highest children population are repeat top districts form previous pictures. Maximum we have 8 percent in Prague 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*nKxIWxcB6IrGwfMqPPlsbg.png" /></figure><p>Points of interest is also concentrated around historical center. Distribution by districts is correlated with districts population. This is expected values. We have approximately equal number of points in all districts from top 10 by population, with an anomaly height values at the south.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*bS_SctMhPIHbZV5jZounwQ.png" /></figure><p>Total number of POIs doesn’t show a full view of how good each district is for children. For us more interesting to look at how number of POIs is related to 1000 children. For example, if we look at the histogram of Schools/1000. We notice that Top values are not correlated with children`s population. We can see that Prague 1 have the highest values but if we look at previous graphs we can see that by the percent of children Prague not even in top 10. From the other side, Prague 4 has the highest values of population and it also have average values of Schools/1000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*Q-aflkJgkRVimwJmgCx-Hg.png" /></figure><p>The same picture we can see on next histograms. Central districts have the highest value of POIs/1000 while suburbs have the lowest. From the one side this is because of low children’s population in the city center, form the other cities are growing from its historical centers and concentration of schools and other facilities is often higher there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*lW8dD3KxMLTpxSkGuZ6PDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*sMkqmTUFwcbz8UKDlni-8A.png" /></figure><h3>5. Methodology</h3><h3>5.1 Network Analysis</h3><p>The spatial frame of this study necessitates the use of point-based accessibility measures. The commonly used spatial units are administrative division and grid cell. As study area ranges from a city to a country, even the whole world, the type, shape and size of spatial unit differ in research purposes and there is no consensus over them. In our study with use a bounding box of Prague as spatial frame. We can`t use smaller frames such as administrative divisions for our research because we have to deal with the boundary conditions. If children leave in own district and nearest POI is located in another. In this case, very often parents of course decide to go to this nearest POI.</p><p>In the first step, we converted OSM street network to graph objects. For building graph we use Pandana framework. The main use case of Pandana is to perform an aggregation along the network — i.e. a buffer query. The api is designed to perform the aggregations for all nodes in the network at the same time in a multi-threaded fashion (using an underlying C library). Most walking-scale accessibility queries can be performed in well under a second, even for hundreds of thousands of nodes. [4]</p><p>Under cleaning we mean removing points that don’t represent actual intersections (hence are not nodes in the graph theory sense).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*cPKsP-pnpau4P2KT" /></figure><p>The graph of streets [6]</p><p>As the second step is to locate POIs from the previous step to network graph and calculate accessibility matrix. Under accessibility matrix we mean an array of distances to top 3 POIs from the array of predefined POI acquired at data acquisition step. As we want to research average values of accessibility we calculate average walking distance for every type of POIs: school, library, other children`s facilities. And store it to data set. This data set later will be used for clustering. We get 140877 edges in total</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*9X1oqF9iD3YX3rkPXynWlQ.png" /></figure><p>We will use K-Means clustering algorithm. This is a method of vector quantization, originally from signal processing, that is popular for cluster analysis in data mining. k-means clustering aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster. This results in a partitioning of the data space into Voronoi cells. k-Means minimizes within-cluster variances (squared Euclidean distances). Do determine the optimal number of clusters we use and Elbow method.</p><p>The Elbow method is a heuristic method of interpretation and validation of consistency within cluster analysis designed to help find the appropriate number of clusters in a data set. It is often ambiguous and not very reliable, and hence other approaches for determining the number of clusters such as the Silhouette method are preferable.</p><p>This method looks at the percentage of variance explained as a function of the number of clusters: One should choose a number of clusters so that adding another cluster doesn’t give much better modeling of the data. More precisely, if one plots the percentage of variance explained by the clusters against the number of clusters, the first clusters will add much information (explain a lot of variance), but at some point the marginal gain will drop, giving an angle in the graph. The number of clusters is chosen at this point, hence the “elbow criterion”. This “elbow” cannot always be unambiguously identified.[1] Percentage of variance explained is the ratio of the between-group variance to the total variance, also known as an F-test. A slight variation of this method plots the curvature of the within group variance.[2]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*HHIWs_xtl8Pv4y9OHbhXIA.png" /></figure><h3>5.2 Walkability Clusters</h3><p>As a result, we have 4 clusters. We calculate averages values of distance, walkability core and time for each cluster. Under reasonable time we mean time that children need to spend to walk 1300 meters. Calculated walkability score for each type in each cluster. SCORE = Actual Distance /1300. As average walking speed we get 4 km/h [4].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*lofbu1lZAVhcyq5CNJo0GA.png" /></figure><p>By redefining weights of edges on walking graph we can visualize cluster on the Prague`s map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*ujUy2a8-rD8vbI7bbhwUCg.png" /></figure><p>Also, we build walkability heat map for every type of our POIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*P2n738Yuc8aB3D981oK9iA.png" /></figure><h3>5. Results</h3><p>As a result, we have 4 clusters of walkability in Prague. Cluster 2 have optimal walkability score 1. It means that from every point inside this cluster children can reach all necessary POIs approximately in 15 minutes average. Schools are most reachable inside this cluster, which is very good result. From the other side Cluster 2 mainly covers central historical district and we know that in this districts population of children’s is lower than at surrounding districts. The second cluster is number 0. It has walkability score around 1,3. schools and sport facilities can reached inside this cluster less than 10 minutes. This is very good results.</p><p>The lowest values of accessibility score inside these two clusters have libraries and hobby centers. It takes approximately 30 minutes of walking time on average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*h0OwCrEEnkzUddBPVq9IhA.png" /></figure><p>The lowest value we get at cluster 3. This cluster covers mainly small suburbs and district which are very far from the city center, mainly this is small villages. Bit from the other inside cluster 3 is also situated a lot of new development projects</p><p>Cluster 1 we decided to count as noise values because inside this cluster we mainly have parks, cemeteries and industrial areas in other words non-living areas.</p><p>The most reachable POIs are schools, it is very good results because according to different studies the walking distance to schools has the most important value in measuring districts pedestrian accessibility.</p><p>Also very good result we have sport facilities. In all clusters except No 1 they can be reached in 10 of walking time in average.</p><p>The lowest accessibility score have hobby centers and libraries It is expectable results because we have one venue of this type per district as usual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*jrP5LG7_Uru5m7EDi4XQ0A.png" /></figure><h3>7. Discussion and Conclusions</h3><p>In this study we analyzed walkability of Prague. Our focus mainly was on walking accessibility for children age 10–16. We decided common points interest for selected focus group and perform measuring of the shortest distances to all selected POIs. With unsupervised clustering algorithms we divided studying region into for 4 clusters. With methods of statistical analyzes we examined the results of clustering.</p><p>In future research we are planning to make more detailed analysis of each type. We have to add weights to the street graph edges according to relief. Also, we are interest to look at the pedestrian accessibility in terms not only shortest routes but safest too.</p><h3>8. References</h3><ol><li>Living Streets (The Pedestrians’ Association) <a href="https://www.livingstreets.org.uk/media/3618/ls_school_run_report_web.pdf">A LIVING STREETS REPORT</a></li><li><a href="https://ijbnpa.biomedcentral.com/articles/10.1186/1479-5868-7-87">Criterion distances and correlates of active transportation to school in Belgian older adolescents.</a> Delfien Van Dyck, Ilse De Bourdeaudhuij, Greet Cardon &amp; Benedicte Deforche</li><li>Naumann, S., &amp; Kovalyov, M. Y. (2017). Pedestrian route search based on OpenStreetMap. In <em>Intelligent Transport Systems and Travel Behaviour (pp. 87–96)</em>. Cham: Springer.</li><li>Pandana <a href="https://udst.github.io/pandana/introduction.html#introduction">https://udst.github.io/pandana/introduction.html#introduction</a></li><li>THE MECHANICS OF WALKING IN CHILDREN <a href="https://physoc.onlinelibrary.wiley.com/doi/pdf/10.1113/jphysiol.1983.sp014895">https://physoc.onlinelibrary.wiley.com/doi/pdf/10.1113/jphysiol.1983.sp014895</a></li><li>OSMnx: Python for Street Networks <a href="https://geoffboeing.com/2016/11/osmnx-python-street-networks/">https://geoffboeing.com/2016/11/osmnx-python-street-networks/</a></li></ol><h3>9. Copyright information</h3><p>© Anton Eremin 2019</p><p>Open Access</p><p>This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (<a href="http://creativecommons.org/licenses/by/4.0/">http://creativecommons.org/licenses/by/4.0/</a>), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c0954e83bea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/prague-walking-accessibility-8c0954e83bea">Prague walking accessibility.</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>