SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.20542 · ICLR · 2025

PaPaGei: Open Foundation Models for Optical Physiological Signals

Mohammad Malekzadeh, Dimitris Spathis, Fahim Kawsar, Arvind Pillai

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 0 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/2410.20542.json · badge: /api/ran/2410.20542.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
Nokia-Bell-Labs/papagei-foundation-model canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
nokia-bell-labs/papagei-foundation-model marked official in Papers with Code
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ResNet1DMoE Ran
ran on a synthesized input · constructed an object; no result was computed
nokia-bell-labs/papagei-foundation-model/models/resnet.py
code served (permissive licence) · get_code("6fc0623095469f99")
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, ResNet1DMoE: 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 = {
    "in_channels": 3,
    "base_filters": 32,
    "kernel_size": 5,
    "stride": 2,
    "groups": 1,
    "n_block": 2,
    "n_classes": 4,
    "n_experts": 2,
    "downsample_gap": 2,
    "increasefilter_gap": 4,
    "use_bn": True,
    "use_do": True,
    "verbose": False,
    "use_projection": 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 ResNet1DMoE — 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 ResNet1DMoE 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
extract_labels Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Nokia-Bell-Labs/papagei-foundation-model/linearprobing/utils.py
code served (permissive licence) · get_code("c1b7b82f4e8d1c33")
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) and returned ndarray, ndim 1, dtype family int, shape (5,) 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 numpy as np
import pandas as pd

# Test case 1: age label
y_age = np.array([45, 55, 30, 60, 25])
ARGS_age = {
    'y': y_age,
    'label': 'age',
    'binarize_val': None
}

# Test case 2: sex label
y_sex = np.array(['M', 'F', 'M', 'F', 'M'])
ARGS_sex = {
    'y': y_sex,
    'label': 'sex',
    'binarize_val': None
}

# Test case 3: bmi label with binarize_val
y_bmi = np.array([22.5, 28.0, 25.5, 30.2, 21.0])
ARGS_bmi = {
    'y': y_bmi,
    'label': 'bmi',
    'binarize_val': 25.0
}

# Test case 4: icu_days label
y_icu = np.array([0, 5, 0, 10, 3])
ARGS_icu = {
    'y': y_icu,
    'label': 'icu_days',
    'binarize_val': None
}

# Test case 5: death_inhosp label (passthrough)
y_death = np.array([0, 1, 0, 1, 0])
ARGS_death = {
    'y': y_death,
    'label': 'death_inhosp',
    'binarize_val': None
}

# Test case 6: optype label
y_optype = np.array(['Colorectal', 'Biliary/Pancreas', 'Stomach', 'Others', 'Major resection'])
ARGS_optype = {
    'y': y_optype,
    'label': 'optype',
    'binarize_val': None
}

# Test case 7: AHI label
y_ahi = np.array([0, 5, 0, 15, 2])
ARGS_ahi = {
    'y': y_ahi,
    'label': 'AHI',
    'binarize_val': None
}

# Test case 8: Hypertension label
y_hyper = np.array(['Normal', 'High', 'Normal', 'Low', 'High'])
ARGS_hyper = {
    'y': y_hyper,
    'label': 'Hypertension',
    'binarize_val': None
}

# Test case 9: Diabetes label
y_diabetes = np.array(['0', '1', '0', '1', '0'])
ARGS_diabetes = {
    'y': y_diabetes,
    'label': 'Diabetes',
    'binarize_val': None
}

# Test case 10: valence label
y_valence = np.array([3, 6, 5, 7, 4])
ARGS_valence = {
    'y': y_valence,
    'label': 'valence',
    'binarize_val': None
}

# Test case 11: affect label (passthrough)
y_affect = np.array([1, 2, 3, 4, 5])
ARGS_affect = {
    'y': y_affect,
    'label': 'affect',
    'binarize_val': None
}

# Test case 12: activity label (passthrough)
y_activity = np.array([10, 20, 30, 40, 50])
ARGS_activity = {
    'y': y_activity,
    'label': 'activity',
    'binarize_val': None
}

# Test case 13: nsrr_current_smoker label
y_smoker = np.array(['yes', 'no', 'yes', 'no', 'yes'])
ARGS_smoker = {
    'y': y_smoker,
    'label': 'nsrr_current_smoker',
    'binarize_val': None
}

# Test case 14: sds label
y_sds = np.array([45, 55, 50, 60, 48])
ARGS_sds = {
    'y': y_sds,
    'label': 'sds',
    'binarize_val': None
}

# Test case 15: DOD label with NaN values
y_dod = np.array([pd.NaT, pd.Timestamp('2020-01-01'), pd.NaT, pd.Timestamp('2021-06-15'), np.nan], dtype=object)
ARGS_dod = {
    'y': y_dod,
    'label': 'DOD',
    'binarize_val': None
}

# Test case 16: stdyvis label
y_stdyvis = np.array([1, 3, 2, 3, 1])
ARGS_stdyvis = {
    'y': y_stdyvis,
    'label': 'stdyvis',
    'binarize_val': None
}

# Test case 17: afib label
y_afib = np.array(['af', 'normal', 'af', 'normal', 'af'])
ARGS_afib = {
    'y': y_afib,
    'label': 'afib',
    'binarize_val': None
}

# Use the first test case as the default ARGS
ARGS = ARGS_age
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (5,) — shape (5,) 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
get_data_for_ml Ran
ran; our contract draft was wrong, not the code
Nokia-Bell-Labs/papagei-foundation-model/linearprobing/utils.py
code served (permissive licence) · get_code("576f145ac4432c5f")
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) 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 torch
import numpy as np
import pandas as pd

torch.manual_seed(0)

# Create a small dataframe with user ids and labels
df = pd.DataFrame({
    'user_id': ['patient_1', 'patient_2', 'patient_3'],
    'label_col': [0, 1, 0]
})

# Create a dictionary of embeddings (tensors or arrays)
dict_embeddings = {
    'patient_1': torch.randn(4),
    'patient_2': torch.randn(4),
    'patient_3': np.random.randn(4)
}

ARGS = {
    'df': df,
    'dict_embeddings': dict_embeddings,
    'case_name': 'user_id',
    'label': 'label_col',
    'level': 'patient'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, pandas, torch — 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
get_data_for_ml_from_df Ran
ran; our contract draft was wrong, not the code
Nokia-Bell-Labs/papagei-foundation-model/linearprobing/utils.py
code served (permissive licence) · get_code("44cee95a33ad89d9")
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) 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 torch
import numpy as np
import pandas as pd

torch.manual_seed(0)

# Create a small dataframe with user ids and labels
df = pd.DataFrame({
    'user_id': ['patient_1', 'patient_2', 'patient_3'],
    'diagnosis': [0, 1, 0]
})

# Create dict_embeddings with embeddings for some patients
# Each patient has a list of embeddings (could be tensors or arrays)
dict_embeddings = {
    'patient_1': [torch.randn(4), torch.randn(4)],
    'patient_2': [torch.randn(4), torch.randn(4)],
    'patient_3': [torch.randn(4), torch.randn(4)]
}

ARGS = {
    'df': df,
    'dict_embeddings': dict_embeddings,
    'case_name': 'user_id',
    'label': 'diagnosis',
    'level': 'patient'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, pandas, torch — 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 4 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-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

Photoplethysmography (PPG) is the leading non-invasive technique for monitoring biosignals and cardiovascular health, with widespread adoption in both clinical settings and consumer wearable devices. While machine learning models trained on PPG signals have shown promise, they tend to be task-specific and struggle with generalization. Current research is limited by the use of singledevice datasets, insufficient exploration of out-of-domain generalization, and a lack of publicly available models, which hampers reproducibility. To address these limitations, we present PAPAGEI, the first open foundation model for PPG signals. The model is pre-trained on over 57,000 hours of data, comprising 20 million unlabeled PPG segments from publicly available datasets. We introduce a novel representation learning approach that leverages domain knowledge of PPG signal morphology across individuals, enabling the capture of richer representations compared to traditional contrastive learning methods. We evaluate PAPAGEI against state-of-the-art time-series foundation models and self-supervised learning benchmarks across 20 tasks from 10 diverse datasets, spanning cardiovascular health, sleep disorders, pregnancy monitoring, and wellbeing assessment. Our model demonstrates superior performance, improving classification and regression metrics by 6.3% and 2.9% respectively in at least 14 tasks. Notably, PAPAGEI achieves these results while being more data-and parameter-efficient, outperforming models that are 70× larger. Beyond accuracy, we examine model robustness across different skin tones, establishing a benchmark for bias evaluation in future models. PAPAGEI can serve as both a feature extractor and an encoder for multimodal models, opening up new opportunities for multimodal health monitoring 1 .

For agents

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

get_harvested_code_for_paper("2410.20542")
get_code_for_paper("2410.20542")
have("2410.20542")

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

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

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

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

Connect an agent — have() is free.