SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.09822 · NeurIPS · 2024

Advancing Stroke Risk Prediction Using a Multi-modal Foundation Model

Bjoern Menze, Camille Delgrange, Olga Demler, Samia Mora, Ezequiel De La Rosa, Neda Davoudi

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2411.09822.json · badge: /api/ran/2411.09822.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
CamilleDelgrange/SSMSRPM canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
camilledelgrange/ssmsrpm canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
exclude_bias_and_norm Ran
ran, violated the contract we drafted
CamilleDelgrange/SSMSRPM/models/MultimodalBarlowTwins3D.py
code served (permissive licence) · get_code("28c640db8f721c0d")
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 bool, ndim 0, dtype family float, shape () 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

torch.manual_seed(0)

# The function exclude_bias_and_norm takes a parameter p and checks if p.ndim == 1
# So p needs to be a tensor or have an ndim attribute

# Create a simple parameter (tensor) with ndim == 1
p_1d = torch.randn(4)

# Create a simple parameter (tensor) with ndim != 1
p_2d = torch.randn(4, 3)

# Test with 1D parameter
ARGS = {
    "p": p_1d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
find_top_slice Ran
ran, honoured the contract we drafted
CamilleDelgrange/SSMSRPM/models/Evaluator.py
code served (permissive licence) · get_code("b81b2523bb9c0c97")
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 int64, ndim 0, dtype family int, shape () 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

# Create a small array of slice sums (GradCAM values)
# This represents the sum of GradCAM values for different slices
slice_sums = np.array([0.5, 2.3, 1.8, 0.9, 3.1])

ARGS = {
    "slice_sums": slice_sums
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int64, ndim 0, dtype family int, shape () — shape () 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_object_size Ran
ran, honoured the contract we drafted
camilledelgrange/ssmsrpm/trainers/pretrain.py
code served (permissive licence) · get_code("e2755609fb9df897")
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 int, ndim 0, dtype family int, shape () 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 sys
import torch

torch.manual_seed(0)

# The function get_object_size takes a single parameter 'obj' and returns its size
# We need to provide a valid object to measure

# Create a simple object to measure
test_obj = torch.randn(2, 4)

ARGS = {
    "obj": test_obj
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
load_pretrain_model Ran
ran; our contract draft was wrong, not the code
CamilleDelgrange/SSMSRPM/models/BarlowTwins3D.py
code served (permissive licence) · get_code("eea865b2a402c6ac")
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 dict. 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary file with a valid torch checkpoint
temp_dir = tempfile.mkdtemp()
checkpoint_path = os.path.join(temp_dir, "model.pth")

# Create a sample state dict with keys that start with "module."
# (the function strips the first 4 characters, which is "module.")
sample_state_dict = {
    "module.layer1.weight": torch.randn(3, 4),
    "module.layer1.bias": torch.randn(3),
    "module.layer2.weight": torch.randn(5, 3),
    "module.layer2.bias": torch.randn(5),
}

# Save the checkpoint
torch.save({"state_dict": sample_state_dict}, checkpoint_path)

ARGS = {
    "pretrained_model": checkpoint_path
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
mask_background Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CamilleDelgrange/SSMSRPM/models/Evaluator.py
code served (permissive licence) · get_code("cb13f1dbdeac14a1")
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 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 numpy as np

# Create a small test volume with various intensity values
np.random.seed(0)
volume = np.random.rand(4, 5, 6).astype(np.float32) * 100

# Define arguments dict
ARGS = {
    "volume": volume,
    "percentile": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, 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
sum_heatmap_slices Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CamilleDelgrange/SSMSRPM/models/Evaluator.py
code served (permissive licence) · get_code("ab1907fa405a8c17")
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. 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 numpy as np

# Create a small 3D array (gradcam_result)
# Shape: (depth, height, width) = (5, 4, 3)
# This allows us to see distinct shapes after summing along different axes
gradcam_result = np.random.rand(5, 4, 3).astype(np.float32)

ARGS = {
    "gradcam_result": gradcam_result
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

FunctionAlso present inEarliest-datedOthers named
exclude_bias_and_norm 7 other papers
7 dated earlier
2105.04906 (2021-05)
VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning
2110.09348 (2021-10)
Understanding Dimensional Collapse in Contrastive Self-supervised Learning
2112.09164 (2021-12)
High Fidelity Visualization of What Your Self-Supervised Representation Knows About
and 4 more not named here

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

Predicting stroke risk is a complex challenge that can be facilitated by integrating diverse clinically available data modalities. This study introduces a self-supervised multi-modal framework combining brain MRI and clinical records to improve stroke risk prediction prior to onset. By leveraging large unannotated clinical datasets, the framework captures complementary and synergistic information across image (brain MRI) and tabular (clinical records) data modalities, serving as a multimodal foundation model. Our approach employs a contrastive learning framework integrating language-image pretraining with an image-tabular matching module, to better capture the multimodal characteristics of each patient. We benchmark its performance against state-of-the-art uni-modal and multi-modal methods across tabular, image and combined data modalities under various model settings. The proposed multi-modal foundation model outperformed self-supervised tabular (image) methods by 2.1% (2.8%) in ROC-AUC and by 10.6% (12.8%) in balanced accuracy. Additionally, it showed a 7.6% increase in accuracy compared to the best multimodal supervised model. Using interpretable tools, our approach demonstrated * Equal contribution † Equal contribution, corresponding author

For agents

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

get_harvested_code_for_paper("2411.09822")
get_code_for_paper("2411.09822")
have("2411.09822")

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

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

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

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

Connect an agent — have() is free.