/ Модель

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

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

opview-v2-30k

ЭмбеддингиТекст → embedding
93скачиваний за 30 дней0лайковвеса обновлены11 ноя 2026

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

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

OpView V2 — набор самоконтролируемо предобученных энкодеров для извлечения признаков из ЭЭГ в исследованиях декодирования мозговых сигналов.

OpView V2 — набор из пяти энкодеров ЭЭГ, разработанный авторами исследовательской работы и выпущенный в виде набора чекпойнтов 30k. Модель предназначена для извлечения признаков из окон сигналов ЭЭГ: энкодеры применяют фиксированные операторные представления и независимо обучались с самоконтролем. Их используют замороженными для линейных проб, лёгких моделей считывания, сравнения представлений и экспериментов с дообучением.

В наборе 21,83 млн параметров суммарно; каждый энкодер имеет ширину 192 и 8 голов внимания. Пять представлений охватывают форму сигнала, динамику, частотную мощность, отношения между каналами и проективные признаки. Предобучение проводилось на 61 публичном источнике ЭЭГ, преимущественно исследовательских записях. Модель принимает сигналы ЭЭГ и выдаёт векторы признаков; репозиторий содержит веса safetensors. Лицензия модели — MIT.

В оценке на исследовательских наборах преимущество предобучения неодинаково: наиболее выраженные улучшения показали энкодеры Dynamics, Waveform и Projective, тогда как Frequency и Relation не превзошли соответствующие случайно инициализированные модели или операторы в описанном сравнении. Широкие векторы признаков и требования к числу каналов могут ограничивать применение. Модель не является медицинским устройством и не предназначена для диагностики, мониторинга, лечения или клинических решений.

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

  • Извлечение признаков ЭЭГ для линейного классификатора
  • Сравнение представлений ЭЭГ по форме сигнала, динамике и частотным характеристикам
  • Создание лёгких моделей считывания для задач декодирования ЭЭГ
  • Подготовка признаков для классификации моторного воображения
  • Исследовательские эксперименты по дообучению энкодеров ЭЭГ

Ограничения

Преимущества предобучения различаются между пятью энкодерами, а признаки имеют большую размерность; Relation и Projective требуют нескольких каналов и могут не подходить для биполярных и малоканальных монтажей. Модель не валидирована для клинического применения, а её результаты на отдельных людях и недостаточно представленных группах неизвестны.

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

OpView V2

OpView is a set of five EEG encoders. Each encoder reads the signal through its own fixed, parameter-free operator, which puts one kind of structure into explicit coordinates, and each was pretrained independently with its own self-supervised objective. The encoders are used frozen, as feature extractors: a fixed count sketch turns each encoder's token states into one feature vector per window and view.

This folder holds the released model: the five views of checkpoint set 30k (Waveform masked reconstruction, Dynamics future-change prediction, Frequency, Relation and Projective autoencoders).

ViewWhat the operator makes explicitEncoder inputPretraining objective
Waveformthe time course of each channelthe window divided by its visible RMS, 1-s patches of 125-ms micro tokens25 % of 250-ms channel atoms hidden; whitened spectral error on the hidden samples
Dynamicshow the signal changes, causallythe level and 8 causal lag differences (1 to 128 samples), 62.5-ms tokenspredict the future change x[t+h] − x[t] at h = 62.5, 125 and 250 ms
Frequencyspectral power of each channelstandardised log power in 1-Hz groups up to 75 Hz of 1, 2 and 4-s atoms (no phase)autoencoder of the log power
Relationcoupling between channelslog-shape and log-scale of reference-free anchor cross-spectra, 6 bands per atomautoencoder of the cross-spectral chart
Projectivethe scalp topography over timedegree 1–3 spherical-harmonic projector and log RMS of 62.5-ms tokensautoencoder of the projector tokens

Waveform, Dynamics, Relation and Projective also carry two small training-only terms (band-power retention and a slot auxiliary), whose heads are in the checkpoints but are not part of the features. The code is described view by view in opview/models/README.md and opview/operators/README.md of the code repository.

Intended use

A research feature extractor for EEG decoding: frozen features for linear probes or other light readouts, comparisons between views, and fine-tuning experiments (the Dynamics encoder has been fine-tuned end to end through the same readout).

Out of scope: OpView is not a medical device. It was not built, validated or approved for diagnosis, monitoring, treatment or any other clinical decision, and must not be used for one.

How to use

Install the opview package from the code in the supplementary material of the paper (pip install -e . in its code folder; it includes this loader, opview/hub.py) and pip install huggingface_hub safetensors.

from opview.hub import from_pretrained

model = from_pretrained("Anony-0x3f/opview-v2-30k")         # a folder written by scripts/export_hf.py, or a repo id
features = model.features("dynamics", x_uv, channel_names, sample_rate=256)   # float32 [B, k]
encoder = model.encoders["dynamics"]          # the frozen torch module

x_uv is a NumPy array [B, C, T] (or [C, T]) in microvolts. What the code requires:

  • Sampling rate: 256 Hz. features resamples other rates with the polyphase resampler the pretraining data went through (opview.data.preprocess.resample_recording); resampling whole recordings before cutting windows avoids edge effects.
  • Channels: names of the 10-20/10-05 system as MNE's standard_1005 montage knows them (case-insensitive; EEG prefixes and -REF, -M1, ... suffixes are dropped). Each name becomes its template direction times 0.085 m. Bipolar derivations have no single position: pass xyz ([C, 3], metres on the 0.085 m sphere) instead of channel_names.
  • Window length: Waveform and Frequency need T a multiple of 256 samples, Dynamics a multiple of 16 above 128, Projective a multiple of 16; Relation needs a 1, 2 or 4-s support whose half-overlapping atoms tile the window. A 4-s window (1024 samples) suits every view.
  • Montage: Relation needs at least 3 channels. It reads min(3, C − 1) anchors at 1 s, min(9, C − 1) at 2 s and min(14, C − 1) at 4 s, and needs the statistics table of each (support, anchors) it reads. This release holds (1, 2), (1, 3), (2, 2), (2, 4), (2, 7), (2, 9), (4, 2), (4, 4), (4, 7), (4, 11), (4, 13), (4, 14) (support in seconds, anchors; relation/config.json); a montage that needs another table raises KeyError, and scripts/fit_relation_tables.py of the code repository fits one from the pretraining stores. Projective needs at least 4 channels in distinct directions.
  • Preprocessing: features does not filter or re-reference. The pretraining recordings were band-passed 0.1–75 Hz with 50 and 60 Hz notches (opview.data.preprocess.preprocess_recording); bad channels were repaired by spherical-spline interpolation and some sources were average-referenced. In the evaluation, BCI IV-2a, BNCI2015001 and Nakanishi2015 were average-referenced and rescaled to their recorded amplitude for Waveform, Dynamics and Frequency.

features is the trained (T) arm of scripts/extract_features.py with the readout settings stored in this folder's config.json (readout, the sketch section of the evaluation config). The random-initialisation and operator arms, the evaluation datasets and the Compass probe are in the code repository.

Architecture and size

Every trunk has width 192 and 8 attention heads. Parameter counts are those of the checkpoints, training-only heads included.

ViewObjectiveParametersFeature widthWeights
Waveformmasked waveform (25% of 250-ms channel atoms hidden, hidden-only loss)4,428,51932,76817.7 MB
Dynamicsfuture-change prediction4,359,79232,76817.5 MB
Frequencyautoencoder (mask 0%)3,739,7898,19215.0 MB
Relationautoencoder (mask 0%)5,015,49424,57620.1 MB
Projectiveautoencoder (mask 0%)4,287,1268,19217.2 MB

Total: 21,830,720 parameters. Tensors are stored as safetensors. Files:

FileSize
LICENSE1.1 kB
dynamics/calibration.npz20.7 kB
dynamics/config.json29.5 kB
dynamics/model.safetensors17.5 MB
frequency/calibration.npz33.0 kB
frequency/config.json1.6 kB
frequency/model.safetensors15.0 MB
projective/calibration.npz19.7 kB
projective/config.json1.2 kB
projective/model.safetensors17.2 MB
relation/calibration.npz98.3 kB
relation/config.json15.7 kB
relation/model.safetensors20.1 MB
waveform/calibration.npz28.0 kB
waveform/config.json0.9 kB
waveform/model.safetensors17.7 MB

Pretraining data

61 public EEG sources (55 continuous recording stores and 6 signal banks; the list, where each is read from and each view's share are in opview/data/corpora/pretraining.json and docs/data.md). Waveform, Dynamics and Frequency read all 61 (2,320.7 training hours), Relation 60 (2,311.7 h; one source has no electrode positions) and Projective 59 (1,519.0 h). Only the pretraining subjects of each source were used (70/15/15 subject splits per study). No source of the 13 evaluation datasets of EEG-FM-Compass is in the corpus.

The licences and terms of use of the sources are not documented in the code repository; each source keeps its own. Check them before using these weights where the terms of a source matter.

Training procedure

Each view was trained alone for 30,000 updates of 32 windows (seed 0). Every update mixes sources in single-source micro-batches whose losses are weighted by their signal time. AdamW with learning rate 4e-4 and weight decay 0.05, linear warm-up over 1,500 updates and a cosine schedule to zero, gradient clipping at 1.0, bf16 autocast on a GPU. The exact configuration of each view is resolved_config in <view>/config.json.

Evaluation

In the paper the encoders are evaluated frozen with a closed-form ridge readout, leave one subject out, on nine datasets of EEG-FM-Compass (131 held-out subjects, three seeds), against two controls read the same way: the same architecture at random initialisation and the operator alone. Differences in points of balanced accuracy, pooled over the held-out subjects, with the paired Wilcoxon p in parentheses; "aligned" standardises each subject's features over that subject's unlabelled trials:

Pretrained − random init., alignedPretrained − operator, alignedPretrained − random init.Pretrained − operator
Model of five views+1.3 (1e-4)+2.2 (7e-6)+1.0 (0.018)+2.6 (4e-5)
Dynamics+7.8 (2e-15)+9.2 (1e-11)+5.0 (6e-7)+10.2 (3e-11)
Waveform+4.5 (9e-5)+7.8 (1e-4)+1.6 (0.14)+7.1 (3e-5)
Projective+4.4 (4e-9)+0.6 (0.28)+2.9 (1e-5)+0.6 (0.14)
Frequency−0.8 (0.41)−1.1 (0.20)−0.6 (0.54)−2.3 (3e-4)
Relation−0.4 (0.13)+0.4 (0.21)−0.4 (0.61)+0.6 (0.79)

The rows are those of checkpoint set 30k (Frequency, Relation and Projective as autoencoders); the masked variants, the results per dataset, the comparison with released encoders and the within-subject protocol are in the paper. Full fine-tuning of the Dynamics encoder with the benchmark's recipe (three seeds) gives pretrained minus random initialisation between −1.8 and +0.9 points on the nine datasets, none significant at p < 0.05 without alignment.

Limitations and bias

  • Pretraining helps unevenly. Under a linear readout the Dynamics, Waveform and Projective encoders gain over the same architecture at random initialisation; the Frequency and Relation encoders do not, and they do not gain over their operators (table above).
  • The features are wide (32,768 columns for Waveform and Dynamics, 24,576 for Relation, 8,192 for Frequency and Projective).
  • Montage coverage: positions come from template directions of the 10-20/10-05 names, not measured positions. Relation and Projective need several channels; bipolar and few-channel montages are read partly or not at all.
  • The pretraining corpus is public research EEG, mostly from laboratory paradigms (motor imagery, ERP, SSVEP, resting state, sleep, emotion, among others). The age, sex, health and recording hardware of its participants are not summarised in the code repository; groups and systems that research datasets rarely include may be under-represented, and performance on them is unknown.
  • Benchmark results are cross-subject averages over a few small datasets and do not predict performance for any individual.

Licence

MIT (LICENSE). The pretraining data keep their own licences (see above).

Citation

@misc{opview2026,
  title  = {Learning EEG Structure in Its Native Coordinates: Operator-Preconditioned Multi-View Pretraining},
  author = {Anonymous authors},
  note   = {Under double-blind review},
  year   = {2026}
}

Exported from checkpoint set 30k with code commit ab6b2610539c3f70cf99d3d4f6d3f907ce22fd2b.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

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

0 моделей