/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
pytorch
Опубликована
19 ноя 2026

cst-mtgnn-metr-la

Прогноз временных рядовTime_series → time_series3 профессии
93скачиваний за 30 дней0лайковвеса обновлены21 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модель CST MTGNN прогнозирует скорость движения на датчиках METR-LA на следующий час по измерениям за предыдущий час.

CST MTGNN for METR-LA — модель прогнозирования скорости дорожного движения, разработанная автором репозитория takumiecd. Она использует архитектуру MTGNN с вариантом CST: один слой CSTLinear формирует оценки графа датчиков, а фиксированная Chart строится по публичным координатам дорожных датчиков. Модель принимает измерения за предыдущий час и предсказывает скорость на 207 датчиках METR-LA для 12 последовательных пятиминутных интервалов, то есть на следующий час.

В трёх запусках с общими координатами датчиков CST показала снижение тестовой MAE относительно MTGNN с координатами: в среднем на 5,5% по всем шагам прогноза и на 7,6% для горизонта 60 минут. Эти результаты относятся к конкретному набору METR-LA и описанному протоколу эксперимента; модель обучалась с нуля 100 эпох. Число параметров графа CST составляет 3 072 против 20 000 у сравниваемого варианта MTGNN.

В репозитории доступны веса Safetensors и CLI для запуска на CPU или CUDA. Лицензия — Apache-2.0. Для прогнозирования нужны входные измерения METR-LA, а доступ к координатам датчиков учитывается при построении графа.

Сценарии применения

  • прогноз скорости движения на дорожных датчиках METR-LA
  • построение пятиминутных прогнозов трафика на час вперёд
  • оценка ожидаемой скорости на конкретном дорожном датчике
  • сравнение графовых моделей для прогнозирования трафика

Ограничения

Результаты описаны для датчиков и протокола набора METR-LA; переносимость на другие дорожные сети не установлена. Для работы нужны измерения датчиков и координаты, используемые при построении фиксированного графа.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

CST MTGNN for METR-LA

This model predicts the next hour of traffic speed at 207 road sensors using the preceding hour of measurements. The CST variant uses one CSTLinear to generate MTGNN's sensor graph scores. Its fixed Chart is built from public sensor coordinates.

Three-seed results with shared sensor coordinates

CST had lower test MAE in all three seeds when both models received the same sensor coordinates. Averaged across seeds, MAE fell by 5.5% across all 12 forecast steps and by 7.6% at 60 minutes.

Forecast horizonMTGNN + coordinatesCST + coordinatesMAE reductionSeeds favoring CST
15 min2.9192.8034.0%3/3
30 min3.3473.1805.0%3/3
60 min3.8613.5687.6%3/3
All 12 steps3.3063.1255.5%3/3

The test MAE is in miles per hour (lower is better). Here is the all-step MAE for each pair.

SeedMTGNN + coordinatesCST + coordinatesMAE reduction
173.3323.1306.1%
293.2813.1214.9%
433.3053.1235.5%

MTGNN concatenates the scaled coordinates to its learned sensor ID embeddings. CST uses the same locations in its fixed Chart. Each pair shares the initial weights outside the graph generator, batch order, and data split. Both models trained from scratch for 100 epochs on an RTX 4090, with batch size 64 and checkpoint selection by validation MAE. The CST graph uses 512 Atoms, with an initial Atom learning rate of 0.0048. The graph parameter count fell from 20,000 to 3,072, and mean training time rose from 10.2 to 11.2 minutes per run.

Validation MAE by epoch for MTGNN and CST with shared sensor coordinates, with the mean and range across three seeds

The lines show the mean validation MAE across the three seeds. The shaded areas span the minimum and maximum at each epoch.

Per-seed results (CSV) · Summary (JSON)

PEMS-BAY feed outage and delay evaluation

A separate PEMS-BAY experiment used 325 sensors and the validation-selected checkpoints from 100-epoch runs for seeds 17, 29, and 43. On 10,412 held-out forecast windows, CST had lower overall MAE than coordinate-aware MTGNN in all three seeds for every tested outage and delay scenario. The downloadable Safetensors at the root of this repository are the METR-LA checkpoints. The PEMS-BAY checkpoint collection contains all six PEMS-BAY weights and inference instructions.

The table reports three-seed mean MAE in miles per hour across all 12 five-minute forecast steps, with the number of paired seeds favoring CST in parentheses.

Feed conditionMTGNN + coordinatesCSTOverall MAE reductionAffected-sensor MAE reduction
No injected fault1.7441.5859.1% (3/3)—
Regional outage, 30 min1.7491.5899.2% (3/3)11.4% (3/3)
Regional outage, 120 min1.8231.6589.0% (3/3)7.2% (3/3)
Regional delay, 15 min1.7801.6109.6% (3/3)11.7% (3/3)
Network-wide delay, 5 min1.9041.68111.7% (3/3)11.7% (3/3)
Network-wide delay, 15 min2.1511.86513.3% (3/3)13.3% (3/3)
Network-wide delay, 30 min2.5372.20113.2% (3/3)13.2% (3/3)
120 min regional outage + 15 min network-wide delay2.2331.94612.9% (3/3)12.9% (3/3)

For each six-hour block, we used one sampled sensor and its 32 nearest neighbors for the regional faults. Both models received the same synthetic outages and delivery delays while the original forecast targets were kept. Missing inputs use the latest valid reading in the preceding hour, with the training mean for gaps before the first valid reading. Among sensors affected by a two-hour outage, CST lowered MAE from 3.338 to 3.099 mph. With network-wide delay of 15 and 30 minutes, CST lowered 60-minute-ahead MAE by 17.5% and 18.0%.

CST MAE reduction across outage and delay conditions

Dots show the relative reduction in the three-seed mean MAE. Bars span the three seed-pair reductions.

Feed evaluation by seed · Metrics by horizon and checkpoint hashes · 100-epoch validation curves · 100-epoch results by seed · Evaluation protocol and reproduction

Initial comparison for the published checkpoints

The downloadable Safetensors are the two checkpoints from the initial seed-17 comparison shown here. The three-seed experiment results and validation curves are linked above.

Model15-minute MAE30-minute MAE60-minute MAEAll-horizon MAEGraph parameters
MTGNN2.9383.4013.9603.35519,840
CST MTGNN2.8093.1903.5733.1323,072

MAE is measured in miles per hour with missing targets excluded. Both variants were trained for 100 epochs from random initialization with seed 17. Evaluation uses the best checkpoint by validation MAE. The METR-LA CSV is divided chronologically into 23,967 train, 3,417 validation, and 6,843 test forecast windows with non-overlapping target timestamps across the splits.

Training and validation MAE

Run a held-out forecast

The GitHub repository includes training, evaluation and a CLI for CPU or CUDA. The CLI downloads the model configuration and Safetensors weights on its first run.

git clone https://github.com/takumiecd/cst-mtgnn-metr-la.git
cd cst-mtgnn-metr-la
python -m pip install -r requirements.txt
mkdir -p data
curl -fL 'https://zenodo.org/records/5146275/files/METR-LA.csv?download=1' -o data/METR-LA.csv
python infer.py data/METR-LA.csv --test-index 0 --sensor 773869 --variant cst

The example returns 12 predicted and observed values at five-minute intervals. Use --variant baseline to compare the same window and --device cuda for GPU inference. The weights refer to the 207 sensor IDs in config.json.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Прогнозирование временных рядов пока не поддерживается рантаймом.

Ревизия весов
d842fd4

0 моделей