SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.findings-acl.352 · ACL Findings · 2025

CTPD: Cross-Modal Temporal Pattern Discovery for Enhanced Multimodal Electronic Health Records Analysis

Feng Wu, Fuying Wang, Lequan Yu, Yihan Tang

Open in the Atlas

Code that ran

11 of 14 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; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 2 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/2025.findings-acl.352.json · badge: /api/ran/2025.findings-acl.352.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
HKU-MedAI/CTPD canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
FunctionStatusWhere it lives
TSCXRIrgcollate_fn Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/dataset/mimic4_downstream_datamodule.py
code served (permissive licence) · get_code("0093fe7598984622")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create sample batch items
# Each item needs: name, ts, ts_mask, ts_tt, label, reg_ts
# Optional (if len > 6): cxr_imgs, cxr_time, cxr_time_mask, reg_img, reg_img_mask

batch_item_1 = {
    'name': 'sample_1',
    'ts': torch.randn(5, 4),  # sequence length 5, feature dim 4
    'ts_mask': torch.ones(5, 4),
    'ts_tt': torch.randn(5, 4),
    'label': torch.tensor([1.0]),
    'reg_ts': torch.randn(3, 4),
}

batch_item_2 = {
    'name': 'sample_2',
    'ts': torch.randn(7, 4),  # different sequence length
    'ts_mask': torch.ones(7, 4),
    'ts_tt': torch.randn(7, 4),
    'label': torch.tensor([0.0]),
    'reg_ts': torch.randn(3, 4),
}

# Test with minimal batch (6 items, triggers else branch)
batch_minimal = [batch_item_1, batch_item_2]

# Create batch with optional CXR fields (> 6 items triggers if branch)
batch_item_1_full = {
    'name': 'sample_1',
    'ts': torch.randn(5, 4),
    'ts_mask': torch.ones(5, 4),
    'ts_tt': torch.randn(5, 4),
    'label': torch.tensor([1.0]),
    'reg_ts': torch.randn(3, 4),
    'cxr_imgs': torch.randn(2, 3, 32, 32),  # batch, channels, height, width
    'cxr_time': torch.tensor([1.5]),
    'cxr_time_mask': torch.ones(2, 3),
    'reg_img': torch.randn(2, 3, 16, 16),
    'reg_img_mask': torch.ones(2, 3),
}

batch_item_2_full = {
    'name': 'sample_2',
    'ts': torch.randn(7, 4),
    'ts_mask': torch.ones(7, 4),
    'ts_tt': torch.randn(7, 4),
    'label': torch.tensor([0.0]),
    'reg_ts': torch.randn(3, 4),
    'cxr_imgs': torch.randn(2, 3, 32, 32),
    'cxr_time': torch.tensor([2.5]),
    'cxr_time_mask': torch.ones(2, 3),
    'reg_img': torch.randn(2, 3, 16, 16),
    'reg_img_mask': torch.ones(2, 3),
}

batch_full = [batch_item_1_full, batch_item_2_full]

ARGS = {
    'batch': batch_full
}
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
TextTSIrgcollate_fn Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/dataset/mimic3_downstream_datamodule.py
code served (permissive licence) · get_code("8e22674a6d337920")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create a batch with 2 examples
# Each example needs: ts, ts_mask, ts_tt, label, reg_ts, and optionally input_ids, attention_mask, note_time, text_time_mask

batch = []

# Example 1 - without text fields (len(batch[0]) <= 6)
example1 = {
    'ts': torch.randn(5, 4),  # 5 time steps, 4 features
    'ts_mask': torch.ones(5, 4),
    'ts_tt': torch.randn(5, 4),
    'label': torch.tensor([1.0]),
    'reg_ts': torch.randn(3),  # 3 regression features
}
batch.append(example1)

# Example 2 - with text fields (len(batch[0]) > 6)
example2 = {
    'ts': torch.randn(4, 4),  # 4 time steps, 4 features
    'ts_mask': torch.ones(4, 4),
    'ts_tt': torch.randn(4, 4),
    'label': torch.tensor([0.0]),
    'reg_ts': torch.randn(3),
    'input_ids': [torch.randint(0, 100, (6,)), torch.randint(0, 100, (5,))],  # 2 notes with different lengths
    'attention_mask': [torch.ones(6), torch.ones(5)],
    'note_time': torch.randn(2),  # 2 notes
    'text_time_mask': torch.ones(2, dtype=torch.long),
}
batch.append(example2)

ARGS = {
    'batch': batch
}
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
custom_collate_fn Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/dataset/mimic3_pretraining_datamodule.py
code served (permissive licence) · get_code("aa91672db2e4351e")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create a batch of examples with all required keys
batch = [
    {
        'idx': 'sample_0',
        'ts': torch.randn(5, 4),  # time series with 5 timesteps, 4 features
        'ts_mask': torch.ones(5, 4),
        'ts_tt': torch.randn(5, 3),  # time indices
        'reg_ts': torch.randn(4),  # regular ts (will be stacked)
        'input_ids': torch.randint(0, 100, (6,)),  # token ids with 6 tokens
        'attention_mask': torch.ones(6),
        'text_time': torch.randn(7),  # text time embedding
        'text_time_mask': torch.ones(7),
        'reg_input_ids': torch.randint(0, 100, (8,)),
        'reg_attention_mask': torch.ones(8),
    },
    {
        'idx': 'sample_1',
        'ts': torch.randn(4, 4),  # different length time series
        'ts_mask': torch.ones(4, 4),
        'ts_tt': torch.randn(4, 3),
        'reg_ts': torch.randn(4),
        'input_ids': torch.randint(0, 100, (5,)),  # different token length
        'attention_mask': torch.ones(5),
        'text_time': torch.randn(7),
        'text_time_mask': torch.ones(7),
        'reg_input_ids': torch.randint(0, 100, (7,)),
        'reg_attention_mask': torch.ones(7),
    },
]

ARGS = {
    'batch': batch
}
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
custom_collate_fn Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/dataset/mimic4_pretraining_datamodule.py
code served (permissive licence) · get_code("27f0a65c6fb421f7")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create sample batch examples with all required keys
batch = [
    {
        'idx': 'sample_0',
        'ts': torch.randn(5, 4),  # variable length time series
        'ts_mask': torch.randint(0, 2, (5, 4)),  # mask for ts
        'ts_tt': torch.randn(5, 3),  # time indices
        'reg_ts': torch.randn(6),  # regular ts features
        'cxr_imgs': torch.randn(3, 4, 4),  # CXR images (channels, height, width)
        'cxr_time': torch.randn(2),  # CXR time features
        'cxr_time_mask': torch.randint(0, 2, (2,)),  # CXR time mask
        'reg_img': torch.randn(3, 8, 8),  # regular image
        'reg_img_mask': torch.randint(0, 2, (3,)),  # regular image mask
    },
    {
        'idx': 'sample_1',
        'ts': torch.randn(7, 4),  # different length
        'ts_mask': torch.randint(0, 2, (7, 4)),
        'ts_tt': torch.randn(7, 3),
        'reg_ts': torch.randn(6),
        'cxr_imgs': torch.randn(3, 4, 4),
        'cxr_time': torch.randn(2),
        'cxr_time_mask': torch.randint(0, 2, (2,)),
        'reg_img': torch.randn(3, 8, 8),
        'reg_img_mask': torch.randint(0, 2, (3,)),
    },
]

ARGS = {
    'batch': batch,
}
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
get_transforms Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/dataset/mimic4_pretraining_datamodule.py
code served (permissive licence) · get_code("2ff3e41136330b56")
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 Compose. 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 torchvision

torch.manual_seed(0)

ARGS = {
    "is_train": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
hier_CL_hard Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/utils/hard_ts_losses.py
code served (permissive licence) · get_code("147a3d5d66a9e3ef")
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 Tensor, 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.functional as F

torch.manual_seed(0)

# Create small tensors for z1 and z2
# The function expects:
# - z1 and z2 to have shape (B, T, D) where B is batch size, T is time steps, D is feature dim
# - The function does pooling operations that halve T each iteration
# - We need T to be a power of 2 for the pooling to work nicely
# Using B=2, T=8, D=4 (distinct sizes for clarity)

B = 2
T = 8
D = 4

z1 = torch.randn(B, T, D)
z2 = torch.randn(B, T, D)

# lambda_ controls the balance between instance and temporal contrastive loss
lambda_ = 0.5

# temporal_unit specifies at which pooling depth to start computing temporal loss
temporal_unit = 0

ARGS = {
    'z1': z1,
    'z2': z2,
    'lambda_': lambda_,
    'temporal_unit': temporal_unit,
}
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 Tensor, 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
inst_CL_hard Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/utils/hard_ts_losses.py
code served (permissive licence) · get_code("2635f5f7c676f584")
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 Tensor, 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.functional as F

torch.manual_seed(0)

# Create z1 and z2 tensors
# The function expects:
# - z1 and z2 to have .size(0) and .size(1) methods (tensors)
# - z1 to have .device attribute
# - Both to be concatenable along dim 0
# - Both to support transpose operations
# - Both to support matrix multiplication

B = 2  # batch size
T = 4  # time/sequence dimension
D = 3  # feature dimension

z1 = torch.randn(B, T, D)
z2 = torch.randn(B, T, D)

ARGS = {
    "z1": z1,
    "z2": z2,
}
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 Tensor, 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
linear_warmup_decay Ran
ran; our contract draft was wrong, not the code
HKU-MedAI/CTPD/src/cmehr/utils/lr_scheduler.py
pointer only (licence: MIT); the stored copy get_code serves, from toummHus/HAIR, is pointer only (licence: NONE) · get_code("442cb54f21dcfe50")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from toummHus/HAIR, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_pkl Ran
ran; our contract draft was wrong, not the code
HKU-MedAI/CTPD/src/cmehr/utils/file_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from mahmoodlab/Panther, is pointer only (licence: NOASSERTION) · get_code("369ca48ec835bd84")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mahmoodlab/Panther, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

save_hdf5 Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/utils/file_utils.py
code served (permissive licence) · get_code("78d1eb8c49c0ec4a")
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 str. 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 h5py
import numpy as np
import tempfile
import os

# Create a temporary directory for the output file
temp_dir = tempfile.mkdtemp()
output_path = os.path.join(temp_dir, "test_output.h5")

# Construct asset_dict with numpy arrays of different shapes
asset_dict = {
    'data_1': np.random.randn(2, 4).astype(np.float32),
    'data_2': np.random.randn(3, 5).astype(np.int32),
    'data_3': np.array([['hello', 'world'], ['foo', 'bar']], dtype=object),
}

# Construct attr_dict with metadata for some assets
attr_dict = {
    'data_1': {
        'description': 'First dataset',
        'version': 1,
    },
    'data_2': {
        'source': 'synthetic',
    },
}

# Define all arguments
ARGS = {
    'output_path': output_path,
    'asset_dict': asset_dict,
    'attr_dict': attr_dict,
    'mode': 'w',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
temp_CL_hard Ran
ran on a synthesized input
HKU-MedAI/CTPD/src/cmehr/utils/hard_ts_losses.py
code served (permissive licence) · get_code("a2697d5921c9d900")
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 Tensor, 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.functional as F

torch.manual_seed(0)

# z1 and z2 are tensors with shape (B, T, D) where:
# B = batch size, T = time/sequence steps, D = embedding dimension
# The function expects z1.size(0) = B and z1.size(1) = T
# It performs operations like matmul(z, z.transpose(1, 2)) which needs (B, T, D) @ (B, D, T) -> (B, T, T)

B = 2  # batch size
T = 3  # sequence/time dimension (must be > 1 to avoid early return)
D = 4  # embedding dimension

z1 = torch.randn(B, T, D)
z2 = torch.randn(B, T, D)

ARGS = {
    "z1": z1,
    "z2": z2,
}
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 Tensor, 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
hier_CL_soft Not yet run
unverified (harvested, no recorded run)
HKU-MedAI/CTPD/src/cmehr/utils/soft_ts_losses.py
pointer only (licence: MIT); the stored copy get_code serves, from seunghan96/softclt, is pointer only (licence: NONE) · get_code("0be0fff234787733")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seunghan96/softclt, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

inst_CL_soft Not yet run
unverified (harvested, no recorded run)
HKU-MedAI/CTPD/src/cmehr/utils/soft_ts_losses.py
pointer only (licence: MIT); the stored copy get_code serves, from seunghan96/softclt, is pointer only (licence: NONE) · get_code("11c3ac399a368b09")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seunghan96/softclt, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

temp_CL_soft Not yet run
unverified (harvested, no recorded run)
HKU-MedAI/CTPD/src/cmehr/utils/soft_ts_losses.py
pointer only (licence: MIT); the stored copy get_code serves, from seunghan96/softclt, is pointer only (licence: NONE) · get_code("dcb343f47a053445")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seunghan96/softclt, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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
load_pkl 6 other papers
5 dated earlier, 1 same year, order not determinable
2403.06800 (2024-03)
MambaMIL: Enhancing Long Sequence Modeling with Sequence Reordering in Computational Pathology
2405.09851 (2024-05)
Region of Interest Detection in Melanocytic Skin Tumor Whole Slide Images -Nevus & Melanoma
2405.11618 (2024-05)
Transcriptomics-guided Slide Representation Learning in Computational Pathology
and 3 more not named here
linear_warmup_decay 5 other papers
5 dated earlier
2206.05379 (2022-06)
A Benchmark for Compositional Visual Reasoning
2403.14614 (2024-03)
AdaIR: Adaptive All-in-One Image Restoration via Frequency Mining and Modulation
2404.02154 (2024-04)
Dynamic Pre-training: Towards Efficient and Scalable All-in-One Image Restoration
and 2 more not named here
hier_CL_soft 1 other paper
1 dated earlier
2312.16424 (2023-12)
Soft Contrastive Learning for Time Series
inst_CL_soft 1 other paper
1 dated earlier
2312.16424 (2023-12)
Soft Contrastive Learning for Time Series
temp_CL_soft 1 other paper
1 dated earlier
2312.16424 (2023-12)
Soft Contrastive Learning for Time Series

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

Integrating multimodal Electronic Health Records (EHR) data-such as numerical time series and free-text clinical reports-has great potential in predicting clinical outcomes. However, prior work has primarily focused on capturing temporal interactions within individual samples and fusing multimodal information, overlooking critical temporal patterns across patients. These patterns, such as trends in vital signs like abnormal heart rate or blood pressure, can indicate deteriorating health or an impending critical event. Similarly, clinical notes often contain textual descriptions that reflect these patterns. Identifying corresponding temporal patterns across different modalities is crucial for improving the accuracy of clinical outcome predictions, yet it remains a challenging task. To address this gap, we introduce a Cross-Modal Temporal Pattern Discovery (CTPD) framework, designed to efficiently extract meaningful cross-modal temporal patterns from multimodal EHR data. Our approach introduces shared initial temporal pattern representations which are refined using slot attention to generate temporal semantic embeddings. To ensure rich cross-modal temporal semantics in the learned patterns, we introduce a Temporal Pattern Noise Contrastive Estimation (TP-NCE) loss for crossmodal alignment, along with two reconstruction losses to retain core information of each modality. Evaluations on two clinically critical tasks-48-hour in-hospital mortality and 24-hour phenotype classification-using the MIMIC-III database demonstrate the superiority of our method over existing approaches. The code is anonymously available at https: //github.com/HKU-MedAI/CTPD.

For agents

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

get_harvested_code_for_paper("2025.findings-acl.352")
get_code_for_paper("2025.findings-acl.352")
have("2025.findings-acl.352")

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

curl https://syntology.ai/api/ran/2025.findings-acl.352.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.findings-acl.352.svg)](https://syntology.ai/paper/2025.findings-acl.352)

Connect an agent — have() is free.