Skip to content
Back to skills

Mea Array Spiking Rvq Motif Transformer

ASecurity

Use when generatively modeling sparse binary spike volumes from MEA/HD-MEA recordings. Discrete generative model with RVQ motif vocabulary + factorized masked transformer for array-wide spiking activity.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 28, 2026
developmentgo

Security analysis

A100/100

Scanned September 28, 2026

npx -y skills add hiyenwong/ai_collection --skill mea-array-spiking-rvq-motif-transformer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mea Array Spiking Rvq Motif Transformer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mea Array Spiking Rvq Motif Transformer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hiyenwong-mea-array-spiking-rvq-motif-transformer/badge)](https://www.skillsdirectory.com/skills/hiyenwong-mea-array-spiking-rvq-motif-transformer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: mea-array-spiking-rvq-motif-transformer
description: Use when generatively modeling sparse binary spike volumes from MEA/HD-MEA recordings. Discrete generative model with RVQ motif vocabulary + factorized masked transformer for array-wide spiking activity.
trigger: MEA generative model, microelectrode array spiking, RVQ spike motifs, masked transformer spiking, array-wide binary spike volumes, organoid spiking simulation, spike tokenization, neural activity generation
category: ai_collection
---

# Discrete Generative Model of MEA Spiking: RVQ Motifs + Factorized Masked Transformer

**Source**: arXiv:2609.23907v1 (2026-09-20) — Tanveer, Mostajo-Radji, Wang.

## Problem

Generative models of neural activity typically assume a **fixed set of sorted neurons**, but high-density microelectrode arrays (HD-MEAs) produce **extremely sparse, array-wide binary spike volumes** where the observed electrode subset varies across assays. Standard sequence models over sorted spike trains do not apply.

## Architecture (3 components)

1. **Residual vector-quantized autoencoder (RVQ-AE)**: learns a shared vocabulary of **spatiotemporal motifs** (localized spatio-temporal spike patterns) from raw binary volumes.
2. **Factorized masked transformer**: predicts **where** activity occurs (binary activity mask) and **which motif** appears at each active location — two factorized heads, no autoregressive scan over all sites.
3. **No assay-specific parameters**: one compact reusable representation across diverse neural preparations.

## Key Design Points

- **Motif reuse across tissue**: assay identity explains only **9%** of entropy in motif use; motif overlap across tissue types ≈ overlap within them → the vocabulary is universal, not preparation-specific.
- **Factorization is the efficiency lever**: separating *presence* (where) from *identity* (what motif) avoids modeling the combinatorial explosion of empty sites.
- Masked completion and free generation both supported by the same transformer.

## Verified Results (31 assays: human brain organoids + acute ex vivo human hippocampal tissue)

| Comparison | Result |
|---|---|
| Voxel-level reconstruction AP vs matched flat tokenizer | **5.2×** |
| Site-level AP, masked completion + free generation vs matched generative baseline | **1.4–2.6×** |
| All 4 generation-metric families | outperforms baseline |
| Cross-tissue generalization | works without learned assay-specific parameters |

## Implementation Checklist

1. Input: binary spike volume tensor (T × H × W) per assay; do NOT sort neurons — use raw electrode grid.
2. Train RVQ-AE on local spatiotemporal crops → discrete motif codebook (residual quantization for fine-grained reconstruction).
3. Train masked transformer: mask random spatiotemporal locations; heads predict (a) activity binary mask, (b) motif code at active sites.
4. Evaluate reconstruction AP at voxel level and site level; compare against flat-tokenizer baseline (no motif structure).
5. For simulation: sample mask, then sample motif codes at active locations, decode with RVQ decoder.

## Use Cases

- Disease / drug-response studies (simulate population activity under conditions)
- Closed-loop experimentation (fast forward generation for control loops)
- Data augmentation for BCI decoders trained on scarce MEA data
- Cross-preparation transfer (organoid ↔ slice) with the shared motif vocabulary

## Related Skills

- `spike-image-decoder` — decoding spikes to images (inverse direction)
- `spiking-mode-neural-networks` — training with spike patterns
- `atoms-of-thought-eeg-microstates` — motif/token vocabulary idea at EEG scale

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…