SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.06459 · 2024

From Pixel to Cancer: Cellular Automata in Computed Tomography

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2403.06459.json · badge: /api/ran/2403.06459.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
mrgiovanni/pixel2cancer canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
distributed_all_gather Ran
ran; our contract draft was wrong, not the code
mrgiovanni/pixel2cancer/monai_trainer.py
code served (permissive licence) · get_code("fcfa9e2be1bb189d")
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 list. 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
from unittest.mock import Mock, patch

torch.manual_seed(0)

# Mock torch.distributed functions since we're in a single-process environment
mock_world_size = 2

def mock_get_world_size():
    return mock_world_size

def mock_barrier():
    pass

def mock_all_gather(gather_list, tensor):
    # Simulate gathering from multiple processes
    # Fill the gather list with copies of the tensor
    for i in range(len(gather_list)):
        gather_list[i].copy_(tensor)

# Patch torch.distributed functions
torch.distributed.get_world_size = mock_get_world_size
torch.distributed.barrier = mock_barrier
torch.distributed.all_gather = mock_all_gather

# Create test tensors
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(2, 3)

# Create tensor_list parameter
tensor_list = [tensor1, tensor2]

# Define ARGS with all parameters
ARGS = {
    "tensor_list": tensor_list,
    "valid_batch_size": None,
    "out_numpy": False,
    "world_size": 2,
    "no_barrier": True,
    "is_valid": None,
}
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 list — a list 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_window_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mrgiovanni/pixel2cancer/networks/swin_transformer_3d.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shiqiyu/opengait, is pointer only (licence: NONE) · get_code("aad0ea11cb13d353")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shiqiyu/opengait, 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.

json_get_fold Ran
ran; our contract draft was wrong, not the code
mrgiovanni/pixel2cancer/monai_trainer.py
code served (permissive licence) · get_code("49f38716cc6d9f10")
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 os
import json
import tempfile

# Create a temporary directory and JSON file for testing
tmpdir = tempfile.mkdtemp()
basedir = tmpdir

# Create sample data with fold information
json_data = {
    'training': [
        {'image': 'img1.jpg', 'label': 'label1.txt', 'fold': 0},
        {'image': 'img2.jpg', 'label': 'label2.txt', 'fold': 1},
        {'image': 'img3.jpg', 'label': 'label3.txt'},
        {'images': ['img4.jpg', 'img5.jpg'], 'labels': ['label4.txt', 'label5.txt'], 'fold': 0},
    ]
}

# Write JSON to temporary file
datalist_path = os.path.join(tmpdir, 'datalist.json')
with open(datalist_path, 'w') as f:
    json.dump(json_data, f)

# Create dummy files so paths resolve correctly
for item in json_data['training']:
    for k, v in item.items():
        if k != 'fold':
            if isinstance(v, list):
                for iv in v:
                    fpath = os.path.join(basedir, iv)
                    os.makedirs(os.path.dirname(fpath), exist_ok=True)
                    with open(fpath, 'w') as f:
                        f.write('')
            elif isinstance(v, str) and len(v) > 0:
                fpath = os.path.join(basedir, v)
                os.makedirs(os.path.dirname(fpath), exist_ok=True)
                with open(fpath, 'w') as f:
                    f.write('')

ARGS = {
    'datalist': datalist_path,
    'basedir': basedir,
    'fold': 0,
    'key': 'training'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mrgiovanni/pixel2cancer/networks/swin_transformer_3d.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from pkyong95/PCVOS, is pointer only (licence: GPL-3.0) · get_code("4876d8faacbd6927")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from pkyong95/PCVOS, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

window_reverse Ran
ran; our contract draft was wrong, not the code
mrgiovanni/pixel2cancer/networks/swin_transformer_3d.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tony890048/exPreCast, is pointer only (licence: NONE) · get_code("75fd6fbfca7a246c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tony890048/exPreCast, 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.

train_epoch Not yet run
unverified (harvested, no recorded run)
mrgiovanni/pixel2cancer/monai_trainer.py
code served (permissive licence) · get_code("0c7f56ecce26a975")
How it ran

no invocation recorded.

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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 3 later) and 1 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
get_window_size 26 other papers
15 dated earlier, 1 the same month, 9 later, 1 same year, order not determinable · 7 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.13230 (2021-06)
Video Swin Transformer
2111.14821 (2021-11)
End-to-End Referring Video Object Segmentation with Multimodal Transformers
and 23 more not named here
window_reverse 16 other papers
11 dated earlier, 1 the same month, 4 later · 5 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2106.13230 (2021-06)
Video Swin Transformer
2111.14821 (2021-11)
End-to-End Referring Video Object Segmentation with Multimodal Transformers
and 13 more not named here
window_partition 15 other papers
12 dated earlier, 1 the same month, 2 later · 2 only as an assembly brick
2106.13230 (2021-06)
Video Swin Transformer
2111.13300 (2021-11)
A Robust Volumetric Transformer for Accurate 3D Tumor Segmentation
2111.14821 (2021-11)
End-to-End Referring Video Object Segmentation with Multimodal Transformers
and 12 more not named here
distributed_all_gather 2 other papers
2 dated earlier
2211.02701 (2022-11)
MONAI: An open-source framework for deep learning in healthcare
2311.01908 (2023-11)
LLM-driven Multimodal Target Volume Contouring in Radiation Oncology
json_get_fold 1 other paper
1 dated earlier
2402.19470 (2024-02)
Towards Generalizable Tumor Synthesis

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

Repositories linked to this paper

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

Abstract

AI for cancer detection encounters the bottleneck of data scarcity, annotation difficulty, and low prevalence of early tumors. Tumor synthesis seeks to create artificial tumors in medical images, which can greatly diversify the data and annotations for AI training. However, current tumor synthesis approaches are not applicable across different organs due to their need for specific expertise and design. This paper establishes a set of generic rules to simulate tumor development. Each cell (pixel) is initially assigned a state between zero and ten to represent the tumor population, and a tumor can be developed based on three rules to describe the process of growth, invasion, and death. We apply these three generic rules to simulate tumor development--from pixel to cancer--using cellular automata. We then integrate the tumor state into the original computed tomography (CT) images to generate synthetic tumors across different organs. This tumor synthesis approach allows for sampling tumors at multiple stages and analyzing tumor-organ interaction. Clinically, a reader study involving three expert radiologists reveals that the synthetic tumors and their developing trajectories are convincingly realistic. Technically, we analyze and simulate tumor development at various stages using 9,262 raw, unlabeled CT images sourced from 68 hospitals worldwide. The performance in segmenting tumors in the liver, pancreas, and kidneys exceeds prevailing literature benchmarks, underlining the immense potential of tumor synthesis, especially for earlier cancer detection. The code and models are available at https://github.com/MrGiovanni/Pixel2Cancer

For agents

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

get_harvested_code_for_paper("2403.06459")
get_code_for_paper("2403.06459")
have("2403.06459")

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

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

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

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

Connect an agent — have() is free.