Skip to article frontmatterSkip to article content

Spatial Kernel Density Estimation

Spatial Kernel Density Estimation (Spatial KDE) is an extension of KDE for analyzing geospatial data.

It works with the same approach as KDE, i.e., selecting a Kernel Function, choosing a bandwidth, and calculate the density for every spatial sampling unit (grid cells).

How every event points contribute to the density of each sample grid cell?

Impacts from near by points to each cell.

Impacts from near by points to each cell.

Spatial KDE in a nutshell. For more information, please see Bailey and Gatrell 1995. Interactive Spatial Data Analysis. Anderson 2009]

Spatial KDE in a nutshell. For more information, please see Bailey and Gatrell 1995. Interactive Spatial Data Analysis. Anderson 2009]

Calculation of Spatial KDE

The sum of 2-D kernel functions.

The sum of bell shape kernels for every cell in the grid Levine 2013. Crimestat 4.

The sum of bell shape kernels for every cell in the grid Levine 2013. Crimestat 4.

Spatial KDE vs. aggregated count by cell

When using a grid-based approach for spatial data analysis, counting points in each cell might only reveal random distribution if the grid cell size is too small (the lower figure). In such cases, the counting result is not useful in presenting the spatial pattern.

Density estimation techniques, such as spatial KDE (middle figure), can help identify the spatial structure and trends within the data. These methods can effectively highlight areas with high concentration versus low concentration, as well as capture the changing rates and other essential aspects of spatial patterns.

Demonstration of KDE.

Demonstration of KDE.

Example of Spatial KDE

Health care POI @ Queenstown

Health care POI @ Queenstown

Commercial POI @ Queenstown

Commercial POI @ Queenstown

Education POI @ Queenstown

Education POI @ Queenstown

Food POI @ Queenstown

Food POI @ Queenstown

Beverages POI @ Queenstown

Beverages POI @ Queenstown

Outdoor Activity POI @ Queenstown

Outdoor Activity POI @ Queenstown

Bandwidth Selection in Spatial KDE

With smaller bandwidth values, the density estimates are more localized and highlight finer details of the data distribution, which could be similar to the distribution of aggregated count by cell---seems random. As the bandwidth increases, the KDE maps start to emphasize broader spatial patterns and general trends in the data. This smoother representation of density may help identify larger-scale features and regional differences while potentially overlooking local variations in the data.

E.g., Health POI @ Queenstown

E.g., Health POI @ Queenstown

KDE with different bandwidths

KDE with different bandwidths

Kernel Functions for Spatial KDE

(a) Gaussian (b) Epanechnikov (c) Triangular (d) Uniform

All kernel functions have a rounded base shape.

Kernel functions (height-dimension) for 2D spatial data. See Fouedjio et al. 2017.

Kernel functions (height-dimension) for 2D spatial data. See Fouedjio et al. 2017.

Examples and differences between threee Kernel Functions using the same dataset.

Examples and differences between threee Kernel Functions using the same dataset.

Visualizing Spatial KDE

Example of Spatial KDE visualisation: Chin 2023

Example of Spatial KDE visualisation: Chin 2023

Example of Spatial KDE visualisation: Xia et al. 2024

Example of Spatial KDE visualisation: Xia et al. 2024

Example of Spatial KDE visualisation: Wheeler 2014

Example of Spatial KDE visualisation: Wheeler 2014

Example of Spatial KDE visualisation: Yang et al. 2019

Example of Spatial KDE visualisation: Yang et al. 2019

Example of Spatial KDE visualisation: Kuo et al. 2012

Example of Spatial KDE visualisation: Kuo et al. 2012

Example of Spatial KDE visualisation: Levine 2013

Example of Spatial KDE visualisation: Levine 2013

Edge Effects

Edge effects in KDE refer to the bias and inaccuracy in density estimates near the boundary of the study area due to the lack of data beyond the edges.

Effects of the edges where the external data is not included.

Effects of the edges where the external data is not included.

Methods addressing edge effects

Advanced Techniques and Applications

Dual KDE

See Jansenberger & Staufer-Steinnocher 2004 for more details

See Jansenberger & Staufer-Steinnocher 2004 for more details

Space-time KDE

See Hu et al. 2018 for more details

See Hu et al. 2018 for more details

Network KDE

See Tang et al. 2016 for more details

See Tang et al. 2016 for more details

Summary

Capturing Local Point Patterns with Spatial KDE

References
  1. Anderson, T. K. (2009). Kernel density estimation and K-means clustering to profile road accident hotspots. Accident Analysis & Prevention, 41(3), 359–364. 10.1016/j.aap.2008.12.014
  2. Fouedjio, F., Hill, E. J., & Laukamp, C. (2017). Geostatistical clustering as an aid for ore body domaining: case study at the Rocklea Dome channel iron ore deposit, Western Australia. Applied Earth Science, 127(1), 15–29. 10.1080/03717453.2017.1415114
  3. Chin, W. C. B. (2023). Delineating Zones of Disease Diffusion from the Amenity-Sharing Network in Peninsular Malaysia. In Earth Data Analytics for Planetary Health (pp. 143–167). Springer Nature Singapore. 10.1007/978-981-19-8765-6_8
  4. Xia, R., Genovese, P. V., Li, Z., & Zhao, Y. (2024). Analyzing spatiotemporal features of Suzhou’s old canal city: an optimized composite space syntax model based on multifaceted historical-modern data. Heritage Science, 12(1). 10.1186/s40494-024-01499-5
  5. Yang, J., Zhu, J., Sun, Y., & Zhao, J. (2019). Delimitating Urban Commercial Central Districts by Combining Kernel Density Estimation and Road Intersections: A Case Study in Nanjing City, China. ISPRS International Journal of Geo-Information, 8(2), 93. 10.3390/ijgi8020093
  6. Hu, Y., Wang, F., Guin, C., & Zhu, H. (2018). A spatio-temporal kernel density estimation framework for predictive crime hotspot mapping and evaluation. Applied Geography, 99, 89–97. 10.1016/j.apgeog.2018.08.001
  7. Tang, L., Kan, Z., Zhang, X., Sun, F., Yang, X., & Li, Q. (2015). A network Kernel Density Estimation for linear features in space–time analysis of big trace data. International Journal of Geographical Information Science, 30(9), 1717–1737. 10.1080/13658816.2015.1119279