SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.13502 · 2025

Foundation Models for Spatio-Temporal Data Science: A Tutorial and Survey

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 7 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.13502.json · badge: /api/ran/2503.13502.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
winfredge/t2s community (classifier label)
classifier basis not recorded on the link
12 ran · 2 no recorded run
FunctionStatusWhere it lives
acf_torch Ran
ran; our contract draft was wrong, not the code
winfredge/t2s/evaluate/feature_based_measures.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yihaoang/tsgbench, is pointer only (licence: NONE) · get_code("12d73e40361cea46")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yihaoang/tsgbench, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

any_length_evaluation Ran
ran on a synthesized input
winfredge/t2s/pretrained_lavae_unified.py
code served (permissive licence) · get_code("d82bd93d77a079bf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample data with different sequence lengths
# Each sample should have shape (batch_size, sequence_length, features)
sample_24 = np.random.randn(2, 24, 4)  # 2 samples, length 24, 4 features
sample_48 = np.random.randn(3, 48, 4)  # 3 samples, length 48, 4 features
sample_96 = np.random.randn(1, 96, 4)  # 1 sample, length 96, 4 features

real_samples = [sample_24, sample_48, sample_96]

ARGS = {
    "real_samples": real_samples
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_crps Ran
ran on a synthesized input
winfredge/t2s/evaluation.py
code served (permissive licence) · get_code("329507de6aa07e90")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy.stats import norm

np.random.seed(0)

# Create small test data with distinct dimensions:
# ori_data shape: (n_samples=2, n_timesteps=3, n_series=4)
# gen_data shape: (n_samples=2, n_timesteps=3, n_series=4, n_generations=5)

n_samples = 2
n_timesteps = 3
n_series = 4
n_generations = 5

ori_data = np.random.randn(n_samples, n_timesteps, n_series).astype(np.float32)
gen_data = np.random.randn(n_samples, n_timesteps, n_series, n_generations).astype(np.float32)

ARGS = {
    "ori_data": ori_data,
    "gen_data": gen_data,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_mdd Ran
ran on a synthesized input
winfredge/t2s/evaluate/feature_based_measures.py
code served (permissive licence) · get_code("289e725b6db86015")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

torch.manual_seed(0)

# Create small tensor data with distinct dimensions
# Shape: (batch=2, time_steps=3, features=4)
ori_data = torch.randn(2, 3, 4)
gen_data = torch.randn(2, 3, 4)

ARGS = {
    "ori_data": ori_data,
    "gen_data": gen_data,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_json_format Ran
ran on a synthesized input
winfredge/t2s/Dataset_Construction_Pipeline/Get_Embedding_and_Convert_JSON_to_CSV.py
code served (permissive licence) · get_code("76d56d4f0fe92df8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import json
import tempfile
import os

# Create a temporary JSON file with valid format
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, 'test_data.json')

# Create valid JSON data matching the requirements
valid_json_data = {
    'sampled_time_series': [0.5] * 96,  # List of length 96 (sample_length for index 2)
    'embedding': list(np.random.randn(128).astype(float))  # List of length 128
}

with open(temp_file, 'w', encoding='utf-8') as f:
    json.dump(valid_json_data, f)

sample_length = 96

ARGS = {
    'file_path': temp_file,
    'sample_length': sample_length
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clean_embedding_string Ran
ran on a synthesized input
winfredge/t2s/Dataset_Construction_Pipeline/Evaluate_Datasets.py
code served (permissive licence) · get_code("967329189b4a8731")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes a string representation of an embedding and converts it to a list of floats
# It expects a string that may have brackets and whitespace

embedding_str = "[0.1 0.2 0.3 0.4]"

ARGS = {
    "embedding_str": embedding_str
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cosine_similarity Ran
ran on a synthesized input
winfredge/t2s/Dataset_Construction_Pipeline/Evaluate_Datasets.py
code served (permissive licence) · get_code("ae78b69362a23bd8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Setup for cosine_similarity function
# The function takes two arguments: a and b
# Both are converted to numpy arrays and flattened
# Then dot product and norms are computed
# So we need two array-like objects

a = np.array([1.0, 2.0, 3.0, 4.0])
b = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "a": a,
    "b": b,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
custom_collate_fn Ran
ran on a synthesized input
winfredge/t2s/datafactory/dataloader.py
code served (permissive licence) · get_code("0ff3801deacfdeec")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function takes a batch argument which is a list of tuples
# Each tuple contains (data, dataset_idx)
# Each data is itself a tuple of (batch_texts, batch_xs, batch_embeddings)

# Create sample data for dataset 0
texts_0 = [np.array([1, 2, 3, 4]), np.array([5, 6, 7, 8])]
xs_0 = [np.array([0.1, 0.2, 0.3, 0.4]), np.array([0.5, 0.6, 0.7, 0.8])]
embeddings_0 = [np.array([1.0, 2.0, 3.0, 4.0]), np.array([5.0, 6.0, 7.0, 8.0])]
data_0 = (texts_0, xs_0, embeddings_0)

# Create sample data for dataset 1
texts_1 = [np.array([10, 11, 12, 13])]
xs_1 = [np.array([1.0, 1.1, 1.2, 1.3])]
embeddings_1 = [np.array([10.0, 11.0, 12.0, 13.0])]
data_1 = (texts_1, xs_1, embeddings_1)

# Create sample data for dataset 2
texts_2 = [np.array([20, 21, 22, 23]), np.array([24, 25, 26, 27])]
xs_2 = [np.array([2.0, 2.1, 2.2, 2.3]), np.array([2.4, 2.5, 2.6, 2.7])]
embeddings_2 = [np.array([20.0, 21.0, 22.0, 23.0]), np.array([24.0, 25.0, 26.0, 27.0])]
data_2 = (texts_2, xs_2, embeddings_2)

# Construct the batch as a list of (data, dataset_idx) tuples
# Each data element is (text, x, embedding)
batch = [
    (data_0[0][0], data_0[1][0], data_0[2][0], 0),
    (data_0[0][1], data_0[1][1], data_0[2][1], 0),
    (data_1[0][0], data_1[1][0], data_1[2][0], 1),
    (data_2[0][0], data_2[1][0], data_2[2][0], 2),
    (data_2[0][1], data_2[1][1], data_2[2][1], 2),
]

# Re-format to match the function's expectations: [(data, dataset_idx), ...]
# where data is (text, x, embedding)
batch = [
    ((data_0[0][0], data_0[1][0], data_0[2][0]), 0),
    ((data_0[0][1], data_0[1][1], data_0[2][1]), 0),
    ((data_1[0][0], data_1[1][0], data_1[2][0]), 1),
    ((data_2[0][0], data_2[1][0], data_2[2][0]), 2),
    ((data_2[0][1], data_2[1][1], data_2[2][1]), 2),
]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
determine_device Ran
ran; our contract draft was wrong, not the code
winfredge/t2s/evaluate/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yihaoang/tsgbench, is pointer only (licence: NONE) · get_code("b11fd8459d71a086")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yihaoang/tsgbench, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_binomial_mask Ran
ran, violated the contract we drafted
winfredge/t2s/evaluate/ts2vec.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from AslanDing/AutoTCL, is pointer only (licence: NONE) · get_code("fd10054ec4772b80")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from AslanDing/AutoTCL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_continuous_mask Ran
ran, violated the contract we drafted
winfredge/t2s/evaluate/ts2vec.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from AslanDing/AutoTCL, is pointer only (licence: NONE) · get_code("acda587a1d1be3bf")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from AslanDing/AutoTCL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

histogram_torch Ran
ran; our contract draft was wrong, not the code
winfredge/t2s/evaluate/feature_based_measures.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yihaoang/tsgbench, is pointer only (licence: NONE) · get_code("9f3f5233a9f7a99f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yihaoang/tsgbench, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_mrr Not yet run
unverified (harvested, no recorded run)
winfredge/t2s/evaluation.py
code served (permissive licence) · get_code("64cff81f8e0ee1dd")
How it ran

no invocation recorded.

initialize_ts2vec Not yet run
unverified (harvested, no recorded run)
winfredge/t2s/evaluate/ts2vec.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yihaoang/tsgbench, is pointer only (licence: NONE) · get_code("98a90a05f7630bee")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yihaoang/tsgbench, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 2 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
generate_binomial_mask 9 other papers
8 dated earlier, 1 later · 3 only as an assembly brick
2106.10466 (2021-06)
TS2Vec: Towards Universal Representation of Time Series
2202.01575 (2022-02)
CoST: Contrastive Learning of Disentangled Seasonal-Trend Representations for Time Series Forecasting
2306.12086 (2023-06)
What Constitutes Good Contrastive Learning in Time-Series Forecasting?
and 6 more not named here
generate_continuous_mask 8 other papers
7 dated earlier, 1 later · 3 only as an assembly brick
2106.10466 (2021-06)
TS2Vec: Towards Universal Representation of Time Series
2202.01575 (2022-02)
CoST: Contrastive Learning of Disentangled Seasonal-Trend Representations for Time Series Forecasting
2309.03755 (2023-09)
TSGBench: Time Series Generation Benchmark
and 5 more not named here
acf_torch 1 other paper
1 dated earlier
2309.03755 (2023-09)
TSGBench: Time Series Generation Benchmark
determine_device 1 other paper
1 dated earlier
2309.03755 (2023-09)
TSGBench: Time Series Generation Benchmark
histogram_torch 1 other paper
1 dated earlier
2309.03755 (2023-09)
TSGBench: Time Series Generation Benchmark
initialize_ts2vec 1 other paper
1 dated earlier
2309.03755 (2023-09)
TSGBench: Time Series Generation Benchmark

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Spatio-Temporal (ST) data science, which includes sensing, managing, and mining large-scale data across space and time, is fundamental to understanding complex systems in domains such as urban computing, climate science, and intelligent transportation. Traditional deep learning approaches have significantly advanced this field, particularly in the stage of ST data mining. However, these models remain task-specific and often require extensive labeled data. Inspired by the success of Foundation Models (FM), especially large language models, researchers have begun exploring the concept of Spatio-Temporal Foundation Models (STFMs) to enhance adaptability and generalization across diverse ST tasks. Unlike prior architectures, STFMs empower the entire workflow of ST data science, ranging from data sensing, management, to mining, thereby offering a more holistic and scalable approach. Despite rapid progress, a systematic study of STFMs for ST data science remains lacking. This survey aims to provide a comprehensive review of STFMs, categorizing existing methodologies and identifying key research directions to advance ST general intelligence.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.13502")
get_code_for_paper("2503.13502")
have("2503.13502")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.13502.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.13502.svg)](https://syntology.ai/paper/2503.13502)

Connect an agent — have() is free.