Introduction to Space Time Cubes

Spatial data frequently includes a temporal element. A space-time cube is a 3D representation of this spatiotemporal data. It allows you to analyze spatial and temporal patterns, forecast future values, and visualize data and analysis results in 2D and 3D.

Structure of a space-time cube

A space-time cube is composed of locations and bins.

Locations

The location is the position in 2D space (x, y) and geometry of a space-time bin. Locations are static and defined when the space-time cube is created. They determine the type of space-time cube that is created. Space-time cubes may be grid cubes, where the locations are formed by a regularly shaped grid of rectangles or hexagons, or defined location cubes, where the locations are predefined such as state polygons or monitoring station points.

Diagram of a location in a space-time cube

Bins

A bin represents a single location and a single time step. Each bin has a fixed position in space (x, y) and time. It adds the third dimension, time, to a location. Each bin represents the same duration of time which is defined when the space-time cube is created.

Every location in the space-time cube will have the same number of bins. Bins at the same location form a time series. Bins at the same time in the space-time form a time slice. To determine the total number of bins in a space-time cube, use the Describe Space Time Cube tool

Diagram of a bin in a space-time cube

Create a space-time cube

The format of the input data will determine the method you use to create a space-time cube. The following tools can be used to create a space-time cube:

Create Space Time Cube By Aggregating Points

If you have point features with a time field that you want to aggregate at locations throughout a study area, use the Create Space Time Cube By Aggregating Points tool. This will result in either a grid cube (fishnet or hexagon) or a defined location cube if you provided polygons into which the points will be aggregated—for example, theft incidents in New York City.

Create Space Time Cube By Aggregating Points tool illustration

Note:

The tool will only accept a point feature class as the Input Features parameter value. If the data is in a table, use the XY Table To Point tool to create a point feature class.

Each bin will have a COUNT field specifying the number of points in the bin. Each bin may also have additional fields that summarize the attributes from the input dataset.

Learn more about the attributes included in a space-time cube upon creation

Learn more about creating a space-time cube by aggregating points

Create Space Time Cube From Defined Locations

If you have feature locations that do not change over time and attributes or measurements that have been collected over time, such as panel data or station data, use the Create Space Time Cube From Defined Locations tool. This will result in a cube that is structured using those defined locations. If temporal aggregation is selected, each time period will include summary statistics for the selected attributes. If no temporal aggregation is selected, each time period will have one set of attributes.

Create Space Time Cube From Defined Locations tool illustration

Learn more about creating a space-time cube from defined locations

Create Space Time Cube From Multidimensional Raster Layer

If you have a multidimensional raster, use the Create Space Time Cube From Multidimensional Raster Layer tool to convert the multidimensional raster to a space-time cube. The shape of cells determines whether the cube is a grid cube (square cells) or a defined locations cube (rectangular cells).

Create Space Time Cube From Multidimensional Raster Layer tool illustration

Learn more about creating a space-time cube from multidimensional raster points

Types of space-time cubes

A space-time cube can be a grid cube or a defined locations cube. The cube type is determined when the space-time cube is created.

The primary difference between grid cubes and defined locations cubes is in the structure of the space-time cube. The locations in a grid cube are formed by a regularly shaped grid of square or hexagon features. In a defined locations cube, the locations and their shapes are unrestricted. Both types of space-time cubes can be used as input to any of the tools in the Space Time Cube Visualization, Space Time Pattern Analysis, and Time Series Forecasting toolsets.

Note:

You can use the Describe Space Time Cube tool to determine the type of an existing space-time cube.

Grid cube

The grid cube structure has rows, columns, and time steps. If you multiply the number of rows by the number of columns by the number of time steps, you will obtain the total number of bins in the cube. The rows and columns determine the spatial extent of the cube and the time steps determine its temporal extent. A grid cube is always rectangular. However, the locations that have no data for all time steps will not be visualized or included in any analysis.

Diagram of a grid cube

Defined locations cube

The defined locations cube structure has features and time steps. If you multiply the number of features by the number of time steps, you will obtain the total number of bins in the cube. The features determine the spatial extent of the cube, and the time steps determine the temporal extent.

A defined locations cube from a multidimensional raster layer has the same number of features and time dimensions as the number of cells and dimensions of the multidimensional raster layer.

Spatial and temporal pattern analysis

Once you create a space-time cube, you can identify spatial and temporal patterns using any tool in the Space Time Pattern Analysis toolset. Each tool in the toolset will create a features class with the results of the analysis. The Change Point Detection, Emerging Hot Spot Analysis, Time Series Clustering, Time Series Cross Correlation, and Local Outlier Analysis tools will also update the original space-time cube with the results from the analysis.

ToolDescriptionQuestions

Change Point Detection

Detects time steps when a statistical property (mean value, standard deviation, or linear trend) of the time series changes for each location of a space-time cube.

  • Do the statistical properties (mean value, standard deviation, linear trend) of the time series change over time?
  • When do statistical properties in the time series change?
  • How do the statistical properties in the time series change over time?

Emerging Hot Spot Analysis

Detects the clustering of point densities (counts) or values in a space-time cube then, for every location, classifies the trend of these hot and cold spots into a category. The categories include new, consecutive, intensifying, persistent, diminishing, sporadic, oscillating, and historical hot and cold spots.

  • Where and when are high and low values clustered?
  • Are these clusters statistically significant?
  • How does a hot or cold spot change over time at a given location?

Local Outlier Analysis

Identifies statistically significant clusters and outliers in the context of both space and time.

  • Where are there spatial and temporal clusters and outliers?
  • Are the clusters and outliers statistically significant?

Time Series Clustering

Partitions a collection of time series, stored in a space-time cube, based on the similarity of time series characteristics. Time series can be clustered based on three criteria: having similar values across time, tending to increase and decrease at the same time, and having similar repeating patterns.

  • Do the locations in a space-time cube have similar time series characteristics?
  • Which locations have similar values across time, stay in proportion across time, or display similar smooth periodic patterns across time?

Time Series Cross Correlation

Calculates the cross correlation at various time lags between two time series stored in a space-time cube.

  • What is the cross correlation between two time series at a location?
  • What is the time lag (shift) with the strongest cross correlation?

Time series forecasting

Once you create a space-time cube, you can use the tools in the Time Series Forecasting toolset. The toolset includes three tools that estimate future values at every location in the space-time cube and one model evaluation tool to compare the forecast models. The tools in the toolset will save the forecast results in an output feature class and, optionally, a space-time cube. The following forecasting tools are available:

ToolDescription

Curve Fit Forecast

Uses simple curve fitting to model a time series and forecast future values at every location in a space-time cube.

Exponential Smoothing

Forecasts the values of each location of a space-time cube using the Holt-Winters exponential smoothing method by decomposing the time series at each location cube into seasonal and trend components.

Forest-based Forecast

Forecasts the values of each location of a space-time cube using an adaptation of the random forest algorithm, which is a supervised machine learning method developed by Leo Breiman and Adele Cutler.

Evaluate Forecasts By Location

Selects the most accurate among multiple forecasting results for each location of a space-time cube. This allows you to use multiple tools in the Time Series Forecasting toolset with the same time series data and select the best forecast for each location.

Visualize a space-time cube

You can visualize the analysis results and variables in the space-time cube using the tools in the Space Time Cube Visualization toolset. The space-time cube can be visualized in 2D or 3D. To visualize the results in 2D, use the Visualize Space Time Cube in 2D tool. To visualize the results in 3D, open a scene and use the Visualize Space Time Cube in 3D tool, or create a space-time cube layer using the Make Space Time Cube Layer tool.

Note:

It is recommended that you use the Make Space Time Cube Layer tool to visualize a space-time cube in 3D. Although you can use both the Visualize Space Time Cube in 3D and the Make Space Time Cube Layer tool to visualize a space-time cube in 3D, the space-time cube layer created by the Make Space Time Cube Layer tool provides many more display theme options and greater functionality for interacting with the space-time cube visualization.

Visualizing the space-time cube in 2D and 3D allows you to do the following:

  • Summarize the results at a location and view and compare the results between locations.
  • Understand the structure of the space-time cube.
  • View and interact with the data and analysis results, which will lead to a better understanding of the results.

Display themes

Display themes are preset 2D and 3D symbology to visualize the variables, analysis results, and forecast results contained in a space-time cube. These display themes enhance the analysis results and make it more intuitive to explore the data in a space-time cube. You can select a display theme by setting the Display Theme parameter in the Visualize Space Time Cube in 2D and Visualize Space Time Cube in 3D tool or selecting the display theme in the Themes gallery on the space-time cube ribbon.

One or more display themes exist for each type of analysis. To get a list of all the display themes available for a space-time cube, use the Describe Space Time Cube tool. The following table lists the display theme options available for the tools in the Space Time Pattern Analysis and Time Series Forecasting toolsets:

Tool2D themes3D ThemesSpace-Time Cube layer themes

Change Point Detection

Time Series Change Point

Time Series Change Point

Change Points

Emerging Hot Spot Analysis

Hot and Cold Spot Trends

Hot and Cold Spot Trends

Hot Spot Type

Hot Spot p-value

Hot Spot Z-Score

Local Outlier Analysis

Local Outlier Analysis Results

Percentage of Local Outliers

Local Outlier in Most Recent Time Period

Locations Without Spatial Neighbors

Cluster and Outlier Results

Local Outlier Type

Local Moran's I

Local Outlier Z-Score

Local Outlier p-value

Time Series Clustering

Time Series Clustering Results

Time Series Cross Correlation

Time Series Cross Correlation Results

Curve Fit Forecast

Locations with Data Trends

Forecast Results

Time Series Outlier Results

Forecast Results

Time Series Outlier Results

Forecast Result

Residual Value

Time Series Outliers

Exponential Smoothing

Forecast Results

Time Series Outlier Results

Forecast Results

Time Series Outlier Results

Level Component

Trend Component

Season Component

Level + Trend Component

Forecast Result

Residual Value

Time Series Outliers

Forest-based Forecast

Forecast Results

Time Series Outlier Results

Forecast Results

Time Series Outlier Results

Forecast Result

Residual Value

Time Series Outliers

Evaluate Forecasts By Location

Forecasts Results

Forecast Results

Forecast Result

Residual Value

Learn more about visualization display themes for space-time cubes in 2D and 3D

Learn more about visualization display themes for space-time cube layers

Utilities

The Utilities toolset contains tools that help you prepare the data before creating a space-time cube, summarize the contents of a space-time cube, and create a subset of an existing space-time cube to create a new space-time cube.

Fill Missing Values tool

Data may contain null values. Null values can negatively impact the results of an analysis. For example, features with missing values may be dropped from the analysis. When creating a space-time cube, features with null values present in any of the summary field records will be excluded from the output cube. Instead of dropping these input features, the missing data values can be estimated based on the existing data using the Fill Missing Values tool. You can fill missing values using global statistics, spatial neighbors, or spatiotemporal neighbors.

Note:

It is recommended that you address missing values in the input data before creating a space-time cube. You can open a Data Engineering view from the input feature layer to identify null values for each field and fill them.

Describe Space Time Cube

A space-time cube can take many forms, including the following:

  • A grid cube, a defined location cube, or a forecast cube
  • Contain a single variable or multiple variables
  • Contain a single analysis result or multiple analysis results
  • Span a short amount of time, such as a day, or a long amount of time
  • Extend across a small area, such as a neighborhood, or a large area, such as the world
It is important to understand the contents and characteristics of a space-time cube. Use the Describe Space Time Cube tool to summarize a space-time cube and its contents.

Subset Space Time Cube tool

The Subset Space Time Cube tool creates a new space-time cube with fewer time steps or locations, based on the selected subset method and criteria. The bin structure, including time step interval and location geometry, remains the same.

Additional tools

The Space Time Pattern Mining toolbox includes many tools you can use to analyze a space-time cube; however, you may need to prepare, smooth, or transform the data before creating a space-time cube. Several tools in the Spatial Statistics toolbox may be helpful for data preprocessing, for example, the Time Series Smoothing or Calculate Rates tool.

Related topics