- Introduced by
- Nakaya & Yano (space-time formulation); KDE foundation by Rosenblatt and Parzen
- Year
- 2010 (space-time extension); 1956 (KDE origin)
- Type
- Non-parametric density estimation
- Family
- GIS / spatial
What does it do?
Space-Time Kernel Density Estimation extends classical KDE into three dimensions, two spatial and one temporal, to show how the intensity of point events (crimes, accidents, disease cases) varies continuously across geographic space and time.
It produces a smooth surface that highlights where and when events concentrate most densely.
The intuition behind the method
Think of each event, such as a crime, a traffic accident, or a disease case, as a small mound placed on a three-dimensional surface whose axes are longitude, latitude, and time. Each mound spreads outward according to a chosen kernel function and bandwidths. ST-KDE sums these overlapping mounds into one smooth landscape. Peaks mark locations and time windows where events cluster most intensely, so analysts can see whether a hot spot is stable over time or transient.
History
Kernel density estimation for univariate data is associated with Rosenblatt (1956) and Parzen (1962). The space-time extension is associated with Nakaya and Yano (2010), whose paper combined space-time KDE with scan statistics in a space-time cube to visualise snatch-and-run crime clusters in Kyoto City for 2003 to 2004. The application areas listed below reflect the uses this entry describes.
When to use it
Choose ST-KDE when you have point events with reliable coordinates and timestamps, and you want a continuous picture of how event intensity changes across space and time together, for example to tell stable clusters from transient ones. It suits exploratory work in crime analysis, epidemiology, and accident mapping when events are reasonably numerous. Small samples give unstable estimates; there is no validated minimum number of events for ST-KDE, so check stability with a sensitivity analysis. Do not rely on it when timestamps are imprecise or missing, or when physical barriers mean that a smooth kernel misrepresents access across the study area. Key assumptions to keep in mind: the product kernel implies separable space and time smoothing; events are treated as a realisation of an intensity without modelling dependence; edge correction is needed at study-area boundaries; and the population at risk must be handled separately. When you need formal tests of clustering, use space-time scan statistics or Getis-Ord Gi* instead.
Limitations and considerations
- Results are sensitive to bandwidth choice: small bandwidths produce noisy, spiky surfaces, while large bandwidths over-smooth and can merge distinct clusters.
- The product of spatial and temporal kernels in the mechanics formula implies separability, so events whose spatial location shifts over time, or that show other space-time interaction, are not represented unless the kernel is extended.
- It gives exploratory density estimates, not formal tests of whether a cluster is statistically significant.
- Edge effects near the boundary of the study area can inflate or deflate density estimates, and edge correction adds complexity.
- Each grid cell sums contributions from all n events, so computation grows with both the number of events and the grid resolution.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Because the mechanics formula uses separate spatial and temporal bandwidths (h_s and h_t), smoothing in space and in time can be set independently, which suits data where the two scales differ.
- It shows jointly where and when events concentrate, so a stable cluster can be distinguished from a transient one; Nakaya and Yano used this to separate stable and transient crime clusters in a space-time cube.
- The estimate is non-parametric and does not assume a fixed form for the event process, so it can follow irregular intensity patterns.
- The output is a continuous surface that can be shown as a map sequence or a 3D cube, which helps when communicating exploratory results.
Applications
- Illustrative uses include the following; only the Kyoto crime study is documented in the cited source.
- Crime analysis: mapping how robbery or assault hot spots evolve across hours of the day or days of the week.
- Epidemiology: identifying where and when disease incidence peaks during an outbreak.
- Traffic safety: detecting road segments and time periods with elevated accident density.
- Ecological studies: tracking shifts in animal activity hotspots across seasons or diurnal cycles.
How it works
How it works
Assemble a point dataset in which each record has geographic coordinates (x, y) and a timestamp. Events may be crimes, emergency calls, disease occurrences, or other georeferenced events. Accurate locations and complete timestamps matter, because errors in either dimension shift the estimated peaks. The method treats the events as a realisation of an underlying intensity and does not model dependence between events.
Choose a spatial bandwidth (h_s) and a temporal bandwidth (h_t) separately, because space and time are measured in different units and events may cluster at different scales in each dimension. h_s is expressed in the spatial distance unit (for example metres) and h_t in the time unit (for example days). Data-driven options include cross-validation, such as least-squares cross-validation (LSCV), and fixed bandwidths chosen from domain knowledge. Because the result depends on these choices, run a sensitivity analysis over several bandwidth pairs.
For each grid cell (s, t) in the space-time cube, the estimate averages the product of a spatial kernel K_s and a temporal kernel K_t over all n events, as in the mechanics formula. Here K_s is a bivariate kernel over the two spatial coordinates and K_t is a univariate kernel over time. The 1/(n h_s^2 h_t) factor yields a proper density only when each kernel integrates to one. Gaussian and quartic kernels are common choices for each component. Because the spatial and temporal kernels enter as a product, the two dimensions are treated as separable, which means no space-time interaction is built into the smoothing.
Formula
\hat{f}(s,t) = \frac{1}{n h_s^2 h_t} \sum_{i=1}^{n} K_s\!\left(\frac{s - s_i}{h_s}\right) K_t\!\left(\frac{t - t_i}{h_t}\right)Evaluate the estimate on a regular space-time grid to produce a density cube, or a series of density maps, one per time slice. When the component kernels integrate to one, the 1/(n h_s^2 h_t) factor makes the total volume under the surface equal to one (ignoring truncation at the study-area boundary), which keeps the output interpretable as a probability density. High-density regions indicate where and when events concentrate in the estimate; they are exploratory and are not tests of statistical significance.
Display the density cube as a sequence of 2D maps across time slices, as 3D isosurfaces, or as space-time path diagrams. Treat high-density regions as descriptive concentrations of events, not as confirmed hot spots. Compare the estimated densities with a null expectation, such as a baseline population or background event rate, so that elevated concentrations are not confused with areas that are simply more populous or more intensively monitored.
Common pitfalls
- Choosing one bandwidth pair without sensitivity analysis. Test several pairs and report how the hot spot locations change.
- Ignoring the population at risk. High event density in a populous area may reflect population size rather than elevated risk, so divide by a baseline density where possible.
- Reading the density map as confirmed hot spots. Pair it with scan statistics or Gi* for inference.
- Omitting edge correction near study-area boundaries, which can create artificial low-density zones at the edges.
- Using the same bandwidth scale for space and time without accounting for their different units.
Frequently asked questions
How do I choose the spatial and temporal bandwidths?
Start with cross-validation, such as least-squares cross-validation (LSCV), to obtain data-driven values. Then run a sensitivity analysis over a grid of bandwidth combinations and report how hot spot locations shift. Domain knowledge, such as a typical patrol radius or disease incubation period, can help set the search range.
Is ST-KDE the same as running KDE separately for each time period?
No. Running KDE separately for each time slice treats time as a categorical grouping and ignores smoothing along the temporal dimension. ST-KDE applies a continuous temporal kernel, so nearby events in time inform the estimate and the result is a single smooth three-dimensional density surface.
Can ST-KDE be used to predict future hot spots?
ST-KDE describes past event density and has no forecasting model, so it should not be extrapolated to future periods. For prediction, use a dedicated forecasting or spatiotemporal regression model.
Which software implements ST-KDE?
Several GIS and statistical environments offer space-time or 3D kernel density tools. Whichever you use, confirm that it accepts separate spatial and temporal bandwidths (h_s and h_t), documents the kernel form it uses, and provides edge correction at the study-area boundary.
How many events do I need for reliable ST-KDE estimates?
There is no validated minimum. Very sparse datasets give unstable estimates whatever the bandwidth, so check stability by re-running with different bandwidths and with resampled events. With few events, consider aggregating to coarser spatial or temporal units or using a parametric space-time model.
Related methods
Sources
Nakaya, T., & Yano, K. (2010). Visualising crime clusters in a space-time cube: An exploratory data-analysis approach using space-time kernel density estimation and scan statistics. Transactions in GIS, 14(3), 223-239.
Open DOI referenceKernel density estimation. Wikipedia.
Open publication reference