SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.10351 · NeurIPS · 2025

PhysioWave: A Multi-Scale Wavelet-Transformer for Physiological Signal Representation

Yawei Li, Luca Benini, Yanlong Chen, Mattia Orlandi, Pierangelo Rapa, Simone Benatti

arXiv · PDF · Open in the Atlas

Code that ran

16 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (13 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 15 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2506.10351.json · badge: /api/ran/2506.10351.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
ForeverBlue816/PhysioWave community
Papers with Code archive
16 ran · 3 no recorded run
FunctionStatusWhere it lives
ChannelAggregationFFN Ran
ran on a synthesized input
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("ca7a0e8019cd06ba")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, 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
import torch.nn as nn

# INIT_ARGS for ChannelAggregationFFN.__init__
INIT_ARGS = {
    'embed_dims': 8,
    'ffn_ratio': 4.0,
    'kernel_size': 3,
    'dropout': 0.1
}

# ARGS for ChannelAggregationFFN.forward
# Input shape: [B, C, H, W] where C must equal embed_dims
ARGS = {
    'x': torch.randn(2, 8, 5, 7)  # batch=2, channels=8 (matches embed_dims), height=5, width=7
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ClassificationHead Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("df8a054ee2900019")
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 an instance of its own class, ClassificationHead: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'embed_dim': 4,
    'num_classes': 3,
    'hidden_dims': [8, 6],
    'dropout': 0.1,
    'pooling': 'mean',
    'activation': 'gelu',
    'use_norm': True
}
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 ClassificationHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ClassificationHead output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
CrossScaleCAFFN Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("54bda82debbe7757")
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 an instance of its own class, CrossScaleCAFFN: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

class ElementScale(nn.Module):
    """
    Element-wise scaling layer with learnable parameters.
    Used for residual connections in cross-scale fusion.
    """

    def __init__(self, shape, init_value=1e-05):
        super().__init__()
        self.scale = nn.Parameter(torch.ones(*shape) * init_value)

    def forward(self, x):
        return x * self.scale

class ChannelAggregationFFN(nn.Module):
    """
    Channel Aggregation Feed-Forward Network
    
    Implements the channel aggregation mechanism for processing
    multi-channel physiological signals. Uses depthwise convolutions
    for efficient channel-wise processing.
    """

    def __init__(self, embed_dims, ffn_ratio=4.0, kernel_size=3, dropout=0.1):
        super().__init__()
        hid = int(embed_dims * ffn_ratio)
        self.fc1 = nn.Conv2d(embed_dims, hid, 1)
        self.dw = nn.Conv2d(hid, hid, kernel_size, padding=kernel_size // 2, groups=hid)
        self.act = nn.GELU()
        self.fc2 = nn.Conv2d(hid, embed_dims, 1)
        self.drop = nn.Dropout(dropout)
        self.decomp = nn.Conv2d(hid, 1, 1)
        self.decomp_act = nn.GELU()
        self.sigma = ElementScale([1, hid, 1, 1])

    def forward(self, x):
        """
        Process features with channel aggregation and decomposition.
        
        Args:
            x: [B, C, H, W] - Input feature map
            
        Returns:
            [B, C, H, W] - Processed features
        """
        out = self.fc1(x)
        out = self.dw(out)
        out = self.act(out)
        out = self.drop(out)
        t = self.decomp_act(self.decomp(out))
        out = out - t
        out = out + self.sigma(out)
        out = self.fc2(out)
        out = self.drop(out)
        return out

class CrossScaleCAFFN(nn.Module):
    """
    Cross-Scale Channel Aggregation FFN
    
    Extends CAFFN with cross-scale attention mechanism.
    This allows features at different decomposition levels
    to exchange information, as described in Section 2.1 of the paper.
    """

    def __init__(self, embed_dims, ffn_ratio=4.0, kernel_size=3, dropout=0.1):
        super().__init__()
        self.base = ChannelAggregationFFN(embed_dims, ffn_ratio, kernel_size, dropout)
        self.attn = nn.MultiheadAttention(embed_dims, num_heads=4, batch_first=True)
        self.scale = nn.Parameter(torch.tensor(0.1))

    def forward(self, x, prev_feats=[]):
        """
        Process with cross-scale attention.
        
        Args:
            x: [B, C, H, W] - Current scale features
            prev_feats: List of features from previous scales
            
        Returns:
            [B, C, H, W] - Enhanced features with cross-scale information
        """
        out = self.base(x)
        if prev_feats:
            B, C, H, W = out.shape
            q = out.permute(0, 2, 3, 1).reshape(B, -1, C)
            ks = torch.cat([pf.permute(0, 2, 3, 1).reshape(B, -1, C) for pf in prev_feats], dim=1)
            attn_out, _ = self.attn(q, ks, ks)
            attn_out = attn_out.view(B, H, W, C).permute(0, 3, 1, 2)
            out = out + self.scale * attn_out
        return out


# Setup code
embed_dims = 4
ffn_ratio = 4.0
kernel_size = 3
dropout = 0.1

model = CrossScaleCAFFN(
    embed_dims=embed_dims,
    ffn_ratio=ffn_ratio,
    kernel_size=kernel_size,
    dropout=dropout
)

# Create input tensor [B, C, H, W] with B=2, C=4, H=3, W=5
x = torch.randn(2, embed_dims, 3, 5)

# Create previous features list
prev_feats = [
    torch.randn(2, embed_dims, 3, 5),
    torch.randn(2, embed_dims, 3, 5)
]

ARGS = {
    "embed_dims": embed_dims,
    "ffn_ratio": ffn_ratio,
    "kernel_size": kernel_size,
    "dropout": dropout
}
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 CrossScaleCAFFN — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CrossScaleCAFFN output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
ElementScale Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("966a39bc7be9c14b")
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 an instance of its own class, ElementScale: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

# ElementScale takes two parameters: shape and init_value
# shape: tuple specifying the shape of the learnable parameter
# init_value: scalar for initialization (default 1e-05)

# Define shape - using distinct dimensions for probing
shape = (4, 3)

# Define init_value
init_value = 1e-05

ARGS = {
    "shape": shape,
    "init_value": init_value,
}
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 ElementScale — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ElementScale output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
LearnableWaveFilter Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("edfcc52fc19861cb")
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 an instance of its own class, LearnableWaveFilter: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn
import pywt

torch.manual_seed(0)

ARGS = {
    'in_ch': 8,
    'kernel_size': 16,
    'wave_init': 'db6',
    'separate_per_channel': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pywt, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LearnableWaveFilter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LearnableWaveFilter output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
LinearHead Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("824249b21c72067e")
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 an instance of its own class, LinearHead: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'embed_dim': 4,
    'output_dim': 3,
    'pooling': 'mean',
    'bias': True,
    'use_norm': False,
}
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 LinearHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LinearHead output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
MultiHeadGate Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("3a21551e06f6ba20")
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 an instance of its own class, MultiHeadGate: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn
import math

torch.manual_seed(0)

# Create a small input tensor for testing
# Shape: [B=2, C=4, T=3]
x = torch.randn(2, 4, 3)

# Define ARGS dict with all parameters for MultiHeadGate
ARGS = {
    "in_ch": 4,
    "num_heads": 2
}
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 MultiHeadGate — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MultiHeadGate output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("82f1e9e92f017b2f")
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 an instance of its own class, PatchEmbed: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

# Create a small input tensor: [B=2, C=1, H=4, W=20]
x = torch.randn(2, 1, 4, 20)

# Define arguments for PatchEmbed.__init__
ARGS = {
    "input_channels": 1,
    "patch_size": (1, 20),
    "embed_dim": 128,
    "norm_layer": nn.LayerNorm,
    "activation_fct": nn.GELU,
    "flatten": True,
}
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 PatchEmbed — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PatchEmbed output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
PositionEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("2e8a0dbca8441867")
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 an instance of its own class, PositionEmbedding: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn
import math

torch.manual_seed(0)

class PositionEmbedding(nn.Module):
    """
    Position Encoding Module
    Supports 1D and 2D sinusoidal position encoding
    """

    def __init__(self, embed_dim, max_len=5000, pos_type='1d'):
        super().__init__()
        self.embed_dim = embed_dim
        self.pos_type = pos_type
        if pos_type == '1d':
            self.pos_embed = self._create_1d_pos_embed(max_len, embed_dim)
        else:
            self.pos_embed = None

    def _create_1d_pos_embed(self, max_len, embed_dim):
        """Create 1D sinusoidal position encoding"""
        pe = torch.zeros(max_len, embed_dim)
        position = torch.arange(0, max_len).unsqueeze(1).float()
        div_term = torch.exp(torch.arange(0, embed_dim, 2).float() * -(math.log(10000.0) / embed_dim))
        pe[:, 0::2] = torch.sin(position * div_term)
        pe[:, 1::2] = torch.cos(position * div_term)
        return nn.Parameter(pe.unsqueeze(0), requires_grad=False)

    def get_1d_sincos_pos_embed_from_grid(self, embed_dim, pos):
        """Generate 1D sinusoidal position encoding"""
        assert embed_dim % 2 == 0
        omega = torch.arange(embed_dim // 2, dtype=torch.float32)
        omega /= embed_dim / 2.0
        omega = 1.0 / 10000 ** omega
        pos = pos.reshape(-1)
        out = torch.einsum('m,d->md', pos, omega)
        emb_sin = torch.sin(out)
        emb_cos = torch.cos(out)
        emb = torch.cat([emb_sin, emb_cos], dim=1)
        return emb

    def get_2d_sincos_pos_embed(self, embed_dim, freq_size, time_size):
        """Generate 2D position encoding"""
        assert embed_dim % 2 == 0
        freq_embed_dim = embed_dim // 2
        time_embed_dim = embed_dim - freq_embed_dim
        freq_pos = torch.arange(freq_size, dtype=torch.float32)
        freq_embed = self.get_1d_sincos_pos_embed_from_grid(freq_embed_dim, freq_pos)
        time_pos = torch.arange(time_size, dtype=torch.float32)
        time_embed = self.get_1d_sincos_pos_embed_from_grid(time_embed_dim, time_pos)
        freq_embed_2d = freq_embed.repeat_interleave(time_size, dim=0)
        time_embed_2d = time_embed.repeat(freq_size, 1)
        pos_embed_2d = torch.cat([freq_embed_2d, time_embed_2d], dim=1)
        return pos_embed_2d

    def forward(self, tokens, freq_size=None, time_size=None):
        """
        Add position encoding
        
        Args:
            tokens: [B, L, D] - Input tokens
            freq_size: Frequency dimension size (for 2D position encoding)
            time_size: Time dimension size (for 2D position encoding)
            
        Returns:
            [B, L, D] - Tokens with position encoding added
        """
        B, L, D = tokens.shape
        if self.pos_type == '1d':
            if self.pos_embed is not None and L <= self.pos_embed.shape[1]:
                pos_embed = self.pos_embed[:, :L, :]
            else:
                pos_embed = self.get_1d_sincos_pos_embed_from_grid(D, torch.arange(L, dtype=torch.float32))
                pos_embed = pos_embed.unsqueeze(0)
            return tokens + pos_embed.to(tokens.device)
        elif self.pos_type == '2d':
            if freq_size is None or time_size is None:
                pos_embed = self.get_1d_sincos_pos_embed_from_grid(D, torch.arange(L, dtype=torch.float32))
                pos_embed = pos_embed.unsqueeze(0)
            else:
                expected_patches = freq_size * time_size
                if L != expected_patches:
                    pos_embed = self.get_1d_sincos_pos_embed_from_grid(D, torch.arange(L, dtype=torch.float32))
                    pos_embed = pos_embed.unsqueeze(0)
                else:
                    pos_embed = self.get_2d_sincos_pos_embed(D, freq_size, time_size)
                    pos_embed = pos_embed.unsqueeze(0)
            return tokens + pos_embed.to(tokens.device)
        else:
            return tokens


ARGS = {
    'embed_dim': 4,
    'max_len': 100,
    'pos_type': '1d'
}
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 PositionEmbedding — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PositionEmbedding output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
ReconstructionHead Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("7942f4213fb32c56")
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 an instance of its own class, ReconstructionHead: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'embed_dim': 8,
    'patch_dim': 16,
    'hidden_dims': [12, 10],
    'dropout': 0.1,
    'activation': 'gelu',
    'use_norm': True,
}
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 ReconstructionHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ReconstructionHead output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
RegressionHead Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("680c7801d23f51d3")
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 an instance of its own class, RegressionHead: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'embed_dim': 8,
    'output_dim': 1,
    'hidden_dims': [16, 12],
    'dropout': 0.1,
    'pooling': 'mean',
    'activation': 'gelu',
    'use_norm': True,
    'output_activation': 'sigmoid'
}
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 RegressionHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RegressionHead output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
RoPEAttention Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("6a814ed00b265973")
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 an instance of its own class, RoPEAttention: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "dim": 64,
    "num_heads": 8,
    "rope_dim": 32,
    "attn_drop": 0.1,
    "proj_drop": 0.1,
}
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 RoPEAttention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RoPEAttention output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
RotaryEmbedding Ran
ran on a synthesized input
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("a85798cf89cbf21d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 5, 4) 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
import torch.nn as nn

class RotaryEmbedding(nn.Module):
    """
    Rotary Position Embedding (RoPE)
    Relative position encoding, friendly for long sequences
    """

    def __init__(self, dim, base=10000):
        super().__init__()
        assert dim % 2 == 0
        self.dim, self.base = (dim, base)

    def forward(self, x, seq_len):
        """
        Args:
            x: [B, H, N, D] - Input tensor
            seq_len: Sequence length
            
        Returns:
            [B, H, N, D] - Tensor with RoPE applied
        """
        B, H, N, D = x.shape
        pos = torch.arange(N, device=x.device)
        inv = 1.0 / self.base ** (torch.arange(0, D, 2, device=x.device) / D)
        freqs = pos[:, None] * inv[None, :]
        cosv = freqs.cos().unsqueeze(1).unsqueeze(1)
        sinv = freqs.sin().unsqueeze(1).unsqueeze(1)
        xr = x.permute(2, 0, 1, 3).reshape(N, B, H, D // 2, 2)
        e, o = (xr[..., 0], xr[..., 1])
        eo = e * cosv - o * sinv
        oo = e * sinv + o * cosv
        xo = torch.stack([eo, oo], dim=-1).reshape(N, B, H, D)
        return xo.permute(1, 2, 0, 3)


INIT_ARGS = {
    'dim': 4,
    'base': 10000
}

ARGS = {
    'x': torch.randn(2, 3, 5, 4),
    'seq_len': 5
}

if __name__ == '__main__':
    rope = RotaryEmbedding(**INIT_ARGS)
    output = rope(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Output:\n{output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 5, 4) — shape (2, 3, 5, 4) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
TransformerBlock Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("8560d21a0d260387")
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 an instance of its own class, TransformerBlock: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "dim": 8,
    "num_heads": 2,
    "mlp_ratio": 4.0,
    "dropout": 0.1,
    "rope_dim": 4,
}
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 TransformerBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TransformerBlock output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
TransformerEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("7e4e651dd8c5c744")
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 an instance of its own class, TransformerEncoder: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "embed_dim": 8,
    "depth": 2,
    "num_heads": 2,
    "mlp_ratio": 4.0,
    "dropout": 0.1,
    "rope_dim": 4,
}
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 TransformerEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TransformerEncoder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
load_wavelet_kernel Ran
ran, honoured the contract we drafted
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("0dfad84f5b401137")
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 2, 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
import torch.nn.functional as F
import pywt

torch.manual_seed(0)

ARGS = {
    "wave_name": "db4",
    "kernel_size": 16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pywt, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
AdaptiveWaveletSelector Not yet run
unverified (harvested, no recorded run)
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("6df81da5a5b007df")
How it ran

no invocation recorded.

BERTWaveletTransformer Not yet run
unverified (harvested, no recorded run)
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("22065ead0d5fe95a")
How it ran

no invocation recorded.

SoftGateWaveletDecomp Not yet run
unverified (harvested, no recorded run)
ForeverBlue816/PhysioWave/model.py
code served (permissive licence) · get_code("29c69248d12d542d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 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.

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-24.

Repositories linked to this paper

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

Abstract

Physiological signals are often corrupted by motion artifacts, baseline drift, and other low-SNR disturbances, which pose significant challenges for analysis. Additionally, these signals exhibit strong non-stationarity, with sharp peaks and abrupt changes that evolve continuously, making them difficult to represent using traditional time-domain or filtering methods. To address these issues, a novel waveletbased approach for physiological signal analysis is presented, aiming to capture multi-scale time-frequency features in various physiological signals. Leveraging this technique, two large-scale pretrained models specific to EMG and ECG are introduced for the first time, achieving superior performance and setting new baselines in downstream tasks. Additionally, a unified multi-modal framework is constructed by integrating pretrained EEG model, where each modality is guided through its dedicated branch and fused via learnable weighted fusion. This design effectively addresses challenges such as low signal-to-noise ratio, high inter-subject variability, and device mismatch, outperforming existing methods on multi-modal tasks. The proposed wavelet-based architecture lays a solid foundation for analysis of diverse physiological signals, while the multi-modal design points to nextgeneration physiological signal processing with potential impact on wearable health monitoring, clinical diagnostics, and broader biomedical applications. Code and data are available at: github.com/ForeverBlue816/PhysioWave

For agents

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

get_harvested_code_for_paper("2506.10351")
get_code_for_paper("2506.10351")
have("2506.10351")

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

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

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

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

Connect an agent — have() is free.