BT-CAP: a subcomponent-aware and anatomically constrained data augmentation framework for multi-modal brain tumor MRI segmentation.
The 16 matches
- [1] § Materials and methods › Context adaptation › Deforming peritumoral edema with anatomical constraints ↔ src/BT_CAP/edema.py, lines 5–44 · score 0.98 · outer shell, warped edema, map_coordinates, inner edema, displacement field, Gaussian filter
- [2] § Materials and methods › Core manipulation › B-spline deformation and reinsertion of tumor subcomponents ↔ src/BT_CAP/deform.py, lines 40–81 · score 0.86 · spline transformations, deformed mask, nearest neighbour, Random displacements, linear, resampled
- [3] § Materials and methods › Refinement › Inpainting empty areas in the tumor core ↔ src/BT_CAP/rearrange.py, lines 200–341 · score 0.80 · empty voxels, Gaussian filter, transformed islands, tumor core, placement, filled
- [4] § Materials and methods › Core manipulation › Rearranging tumor subcomponents for optimal core coverage ↔ src/BT_CAP/rearrange.py, lines 21–49 · score 0.79 · sub islands, distance transform, Large islands, peaks, watershed, splitting
- [5] § Materials and methods › Core manipulation › B-spline deformation and reinsertion of tumor subcomponents ↔ src/BT_CAP/main.py, lines 98–164 · score 0.78 · deformed mask, Random displacements, bounding box, reinserted, physical, rescaled
- [6] § Materials and methods › Core manipulation › Rearranging tumor subcomponents for optimal core coverage ↔ src/BT_CAP/rearrange.py, lines 90–141 · score 0.77 · transformed island, bounding box, minimizing, ftol, xtol, mass
- [7] § Materials and methods › Refinement › Inpainting empty areas in the tumor core ↔ src/BT_CAP/inpaint.py, lines 7–53 · score 0.77 · empty areas, Gaussian filter, original tumor core, donor, padded, Inpainting
- [8] § Results › Anatomical plausibility ↔ src/BT_CAP/edema.py, lines 5–44 · score 0.66 · displacement field, inner edema, edema mask, tumor core, zero, deformed
- [9] § Materials and methods › Refinement › Smoothing interfaces and managing outlier intensities ↔ src/BT_CAP/rearrange.py, lines 143–174 · score 0.65 · KD tree, modified, median, outlier, nearest, neighborhood
- [10] § Materials and methods › Context adaptation › Deforming peritumoral edema with anatomical constraints ↔ src/BT_CAP/main.py, lines 98–164 · score 0.64 · random displacement, original tumor core, uniformly, deformed, spacing, threshold
- [11] § Materials and methods › Core manipulation › Rearranging tumor subcomponents for optimal core coverage ↔ src/BT_CAP/rearrange.py, lines 90–141 · score 0.62 · empty_core, init_shift, clip, bbox, Rearranging, tumor
- [12] § Materials and methods › Implementation details ↔ src/BT_CAP/main.py, lines 318–327 · score 0.59 · random seed, BT CAP, Reproducibility, workers, Parallel, augmentation
- [13] § Materials and methods › Core manipulation › Rearranging tumor subcomponents for optimal core coverage ↔ src/BT_CAP/rearrange.py, lines 200–341 · score 0.58 · Find single enclosed, empty voxels, filled, neighbours, Rearranging, subcomponents
- [14] § Materials and methods › Core manipulation › Extracting tumor subcomponents ↔ src/BT_CAP/extract.py, lines 13–37 · score 0.56 · binary mask, bounding box, cropping, components, voxels, smooth
- [15] § Materials and methods › Implementation details ↔ src/BT_CAP/main.py, lines 318–327 · score 0.55 · BT CAP augmentation, random seed, CPU
- [16] § Materials and methods › Core manipulation › Rearranging tumor subcomponents for optimal core coverage ↔ src/BT_CAP/rearrange.py, lines 143–174 · score 0.52 · KD tree, NN, outliers, voxels, Rearranging, tumor
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 341 lines · 16 KB · MIT · 7 matches
- from __future__ import annotations
- from .utils import get_bounding_box, smooth_interface_with_kernel
- from scipy.ndimage import label, center_of_mass, affine_transform, generate_binary_structure, gaussian_filter, binary_opening, convolve, distance_transform_edt
- from scipy.optimize import minimize
- from skimage.segmentation import watershed
- from skimage.feature import peak_local_max
- from sklearn.neighbors import NearestNeighbors
- import numpy as np
- def extract_sorted_islands(mask: np.ndarray) -> list[np.ndarray]:
- labeled, num_features = label(mask.astype(np.uint8))
- islands = []
- for i in range(1, num_features + 1):
- comp = (labeled == i)
- cnt = int(comp.sum())
- if cnt > 0:
- islands.append((cnt, comp))
- islands.sort(reverse=True, key=lambda x: x[0])
- return [comp for _, comp in islands]
- def split_large_island(island: np.ndarray, threshold: int) -> list[tuple[int, np.ndarray]]:
- voxel_count = int(island.sum())
- if voxel_count <= threshold:
- return [(voxel_count, island.astype(np.uint8, copy=False))]
- dist = distance_transform_edt(island)
- if dist.max() < 1:
- return [(voxel_count, island.astype(np.uint8, copy=False))]
- coords = peak_local_max(dist, labels=island, num_peaks=2, exclude_border=False)
- if coords is None or len(coords) < 2:
- return [(voxel_count, island.astype(np.uint8, copy=False))]
- markers = np.zeros_like(island, dtype=np.int32)
- for i, c in enumerate(coords[:2], start=1):
- markers[tuple(c)] = i
- labels_ws = watershed(-dist, markers, mask=island)
- sub_islands = []
- for lbl in (1, 2):
- sub = (labels_ws == lbl)
- if sub.sum() >= 100:
- struct = generate_binary_structure(3, 1)
- sub = binary_opening(sub, structure=struct)
- cnt = int(sub.sum())
- if cnt > 0:
- sub_islands.append((cnt, sub.astype(np.uint8, copy=False)))
- if len(sub_islands) < 2:
- return [(voxel_count, island.astype(np.uint8, copy=False))]
- final = []
- for cnt, sub in sub_islands:
- final.extend(split_large_island(sub, threshold))
- return final
- def transform_island(
- island: np.ndarray,
- angles_deg: np.ndarray,
- shifts_vox: np.ndarray,
- modalities: np.ndarray | None = None,
- ) -> tuple[np.ndarray, np.ndarray | None]:
- theta_x, theta_y, theta_z = np.deg2rad(angles_deg.astype(float))
- Rx = np.array([[1, 0, 0],
- [0, np.cos(theta_x), -np.sin(theta_x)],
- [0, np.sin(theta_x), np.cos(theta_x)]], dtype=np.float64)
- Ry = np.array([[ np.cos(theta_y), 0, np.sin(theta_y)],
- [0, 1, 0 ],
- [-np.sin(theta_y), 0, np.cos(theta_y)]], dtype=np.float64)
- Rz = np.array([[ np.cos(theta_z), -np.sin(theta_z), 0],
- [ np.sin(theta_z), np.cos(theta_z), 0],
- [0, 0, 1]], dtype=np.float64)
- R = Rz @ Ry @ Rx
- center = (np.array(island.shape, dtype=np.float64) / 2.0)
- shifts = shifts_vox.astype(np.float64)
- offset = center - R @ center - shifts
- transformed_island = affine_transform(
- island.astype(np.float32, copy=False),
- R, offset=offset, order=0, mode="constant", cval=0.0, prefilter=False
- )
- transformed_island = (transformed_island > 0.5).astype(np.uint8)
- transformed_modalities = None
- if modalities is not None:
- C = modalities.shape[0]
- out = []
- for i in range(C):
- ch = affine_transform(
- modalities[i].astype(np.float32, copy=False),
- R, offset=offset, order=3, mode="constant", cval=0.0, prefilter=True
- )
- out.append(ch)
- transformed_modalities = np.stack(out, axis=0).astype(np.float32, copy=False)
- transformed_modalities *= transformed_island[None, ...]
- return transformed_island, transformed_modalities
- def optimize_island(
- island: np.ndarray,
- tumor_core: np.ndarray,
- covered_core: np.ndarray,
- angle_bounds: tuple[float, float] = (-180.0, 180.0),
- shift_margin_vox: float | None = None,
- maxiter: int = 80,
- rng: np.random.Generator = None
- ) -> np.ndarray:
- empty_core = (tumor_core.astype(bool) & (~covered_core.astype(bool)))
- bbox = get_bounding_box(tumor_core, [1])
- if bbox is None:
- return np.zeros(6, dtype=np.float32)
- (z_min, z_max), (y_min, y_max), (x_min, x_max) = bbox
- dz, dy, dx = (z_max - z_min), (y_max - y_min), (x_max - x_min)
- if shift_margin_vox is None:
- shift_margin_vox = 0.5
- shift_bounds = np.array([
- [-dx * shift_margin_vox, dx * shift_margin_vox],
- [-dy * shift_margin_vox, dy * shift_margin_vox],
- [-dz * shift_margin_vox, dz * shift_margin_vox],
- ], dtype=np.float64)
- ang_lo, ang_hi = angle_bounds
- angle_bounds_arr = np.array([[ang_lo, ang_hi]] * 3, dtype=np.float64)
- com_island = np.array(center_of_mass(island))
- if empty_core.any():
- com_core = np.array(center_of_mass(empty_core))
- else:
- com_core = np.array(center_of_mass(tumor_core))
- init_shift = (com_core - com_island)
- init_shift = np.clip(init_shift, shift_bounds[:, 0], shift_bounds[:, 1])
- init_angles = rng.uniform(ang_lo / 4.0, ang_hi / 4.0, size=3)
- x0 = np.concatenate([init_angles, init_shift]).astype(np.float64)
- def _clamp_params(p: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
- a = np.clip(p[:3], angle_bounds_arr[:, 0], angle_bounds_arr[:, 1])
- s = np.clip(p[3:], shift_bounds[:, 0], shift_bounds[:, 1])
- return a, s
- def cost(p: np.ndarray) -> float:
- a, s = _clamp_params(p)
- t_mask, _ = transform_island(island, a, s)
- sz = t_mask.sum()
- if sz == 0:
- return 1e6
- overlap = (t_mask.astype(bool) & empty_core).sum()
- score = overlap / float(sz)
- return -float(score)
- res = minimize(
- cost, x0, method="Powell",
- options={"maxiter": maxiter, "xtol": 0.2, "ftol": 0.1}
- )
- a, s = _clamp_params(res.x.astype(np.float64))
- return np.concatenate([a, s]).astype(np.float32)
- def clean_mask_intensity_knn(volume: np.ndarray, mask: np.ndarray, mad_thresh=3.5, iqr_factor=1.5, k=5):
- mask = mask.astype(bool)
- tumor_voxels = volume[mask]
- if tumor_voxels.size == 0:
- return volume.copy(), np.zeros_like(volume, dtype=bool)
- tumor_coords = np.argwhere(mask)
- median_intensity = np.median(tumor_voxels)
- mad = np.median(np.abs(tumor_voxels - median_intensity))
- if mad > 0:
- modified_z = 0.6745 * (tumor_voxels - median_intensity) / mad
- out_idx = np.where(np.abs(modified_z) > mad_thresh)[0]
- else:
- q1, q3 = np.percentile(tumor_voxels, [25, 75])
- iqr = q3 - q1
- lo, hi = q1 - iqr_factor * iqr, q3 + iqr_factor * iqr
- out_idx = np.where((tumor_voxels < lo) | (tumor_voxels > hi))[0]
- outlier_mask = np.zeros_like(volume, dtype=bool)
- if out_idx.size == 0:
- return volume.copy(), outlier_mask
- outlier_coords = tumor_coords[out_idx]
- outlier_mask[tuple(outlier_coords.T)] = True
- valid_coords = tumor_coords[np.setdiff1d(np.arange(len(tumor_coords)), out_idx)]
- valid_values = volume[tuple(valid_coords.T)]
- filled = volume.copy()
- if valid_coords.shape[0] == 0:
- return filled, outlier_mask
- nn = NearestNeighbors(n_neighbors=min(k, len(valid_coords)), algorithm="kd_tree")
- nn.fit(valid_coords)
- _, neigh_idx = nn.kneighbors(outlier_coords)
- for i, idxs in enumerate(neigh_idx):
- filled[tuple(outlier_coords[i])] = float(np.mean(valid_values[idxs]))
- return filled.astype(np.float32, copy=False), outlier_mask
- def find_single_enclosed_empty_voxels(mask: np.ndarray) -> np.ndarray:
- mask = mask.astype(bool)
- empty = ~mask
- struct = generate_binary_structure(3, 1).astype(np.uint8)
- neigh = convolve(mask.astype(np.uint8), struct, mode="constant", cval=0)
- enclosed = empty & (neigh == 6)
- return enclosed
- def fill_enclosed_with_neighbor_mean(intensity_vol: np.ndarray, enclosed_mask: np.ndarray) -> np.ndarray:
- filled = intensity_vol.copy()
- Z, Y, X = intensity_vol.shape
- coords = np.argwhere(enclosed_mask)
- for z, y, x in coords:
- vals = []
- if z > 0: vals.append(intensity_vol[z-1, y, x ])
- if z < Z-1: vals.append(intensity_vol[z+1, y, x ])
- if y > 0: vals.append(intensity_vol[z, y-1, x ])
- if y < Y-1: vals.append(intensity_vol[z, y+1, x ])
- if x > 0: vals.append(intensity_vol[z, y, x-1])
- if x < X-1: vals.append(intensity_vol[z, y, x+1])
- if vals:
- filled[z, y, x] = float(np.mean(vals))
- return filled.astype(np.float32, copy=False)
- def rearrange_subcomponents_into_core(
- tumor_core_dict: dict[int, tuple[np.ndarray, np.ndarray]],
- tumor_core: np.ndarray,
- case_name: str,
- sample_idx: int,
- queue=None,
- rng: np.random.Generator = None,
- ) -> tuple[np.ndarray, np.ndarray]:
- tumor_core = tumor_core.astype(np.uint8, copy=False)
- core_vox = int(tumor_core.sum())
- if core_vox == 0:
- return np.zeros_like(tumor_core, dtype=np.uint8), np.zeros((4, *tumor_core.shape), dtype=np.float32)
- threshold = max(100, core_vox // 2)
- enh_islands, nonenh_islands, cyst_islands = [], [], []
- for label_key, (sub_mask, sub_mods) in tumor_core_dict.items():
- for i_idx, island in enumerate(extract_sorted_islands(sub_mask)):
- if island.sum() < 100:
- continue
- for j_idx, (cnt, split_island) in enumerate(split_large_island(island, threshold)):
- if cnt < 100:
- continue
- tup = (cnt,
- f"Comp{label_key}-Island{i_idx}-Split{j_idx}",
- split_island.astype(np.uint8, copy=False),
- label_key,
- sub_mods)
- if label_key == 1:
- enh_islands.append(tup)
- elif label_key == 2:
- nonenh_islands.append(tup)
- elif label_key == 3:
- cyst_islands.append(tup)
- enh_islands.sort(key=lambda x: x[0], reverse=True)
- nonenh_islands.sort(key=lambda x: x[0], reverse=True)
- cyst_islands.sort(key=lambda x: x[0], reverse=True)
- total_islands = len(enh_islands) + len(nonenh_islands) + len(cyst_islands)
- if queue is not None:
- queue.put(("progress", case_name, sample_idx, 0, total_islands))
- covered_core = np.zeros_like(tumor_core, dtype=np.uint8)
- placed = 0
- placed_ETs_vol = np.zeros((4, *tumor_core.shape), dtype=np.float32)
- placed_NETs_vol = np.zeros((4, *tumor_core.shape), dtype=np.float32)
- placed_CCs_vol = np.zeros((4, *tumor_core.shape), dtype=np.float32)
- placed_ETs_mask = np.zeros_like(tumor_core, dtype=np.uint8)
- placed_NETs_mask = np.zeros_like(tumor_core, dtype=np.uint8)
- placed_CCs_mask = np.zeros_like(tumor_core, dtype=np.uint8)
- components = [
- (1, enh_islands, "Enhancing"),
- (2, nonenh_islands, "Non-enhancing"),
- (3, cyst_islands, "Cystic"),
- ]
- while any(len(lst) > 0 for _, lst, _ in components):
- candidates = []
- for label_idx, lst, _ in components:
- if lst:
- cnt, island_id, island_mask, key_lbl, sub_mods = lst[0]
- candidates.append((cnt, island_mask, island_id, key_lbl, sub_mods, lst))
- candidates.sort(key=lambda t: t[0], reverse=True)
- for _, island_mask, island_id, key_lbl, sub_mods, source_list in candidates:
- params = optimize_island(island_mask, tumor_core, covered_core, rng=rng)
- t_mask, t_mods = transform_island(island_mask, params[:3], params[3:], modalities=sub_mods)
- placed += 1
- if queue is not None:
- queue.put(("island_placement", case_name, sample_idx, placed, total_islands))
- if t_mask.any():
- t_mask = gaussian_filter(t_mask.astype(np.float32), sigma=1.0) > 0.6
- t_mask = t_mask.astype(np.uint8, copy=False)
- if t_mods is not None:
- t_mods *= t_mask[None, ...]
- within_core = (t_mask > 0) & (tumor_core > 0)
- if within_core.any() and t_mods is not None:
- if key_lbl == 1:
- placed_ETs_vol[:, within_core] = t_mods[:, within_core]
- for m in range(4):
- placed_ETs_vol[m] = smooth_interface_with_kernel(
- placed_ETs_vol[m], t_mask.astype(bool), placed_ETs_mask.astype(bool),
- dilate_iter=2, alpha=0.7, kernel_size=(3, 3, 3)
- )
- placed_ETs_mask[within_core] = 1
- elif key_lbl == 2:
- placed_NETs_vol[:, within_core] = t_mods[:, within_core]
- for m in range(4):
- placed_NETs_vol[m] = smooth_interface_with_kernel(
- placed_NETs_vol[m], t_mask.astype(bool), placed_NETs_mask.astype(bool),
- dilate_iter=2, alpha=0.7, kernel_size=(3, 3, 3)
- )
- placed_NETs_mask[within_core] = 1
- elif key_lbl == 3:
- placed_CCs_vol[:, within_core] = t_mods[:, within_core]
- for m in range(4):
- placed_CCs_vol[m] = smooth_interface_with_kernel(
- placed_CCs_vol[m], t_mask.astype(bool), placed_CCs_mask.astype(bool),
- dilate_iter=2, alpha=0.7, kernel_size=(3, 3, 3)
- )
- placed_CCs_mask[within_core] = 1
- covered_core[within_core] = 1
- source_list.pop(0)
- ET_holes = find_single_enclosed_empty_voxels(placed_ETs_mask)
- NET_holes = find_single_enclosed_empty_voxels(placed_NETs_mask)
- CC_holes = find_single_enclosed_empty_voxels(placed_CCs_mask)
- cleaned_ETs = np.zeros_like(placed_ETs_vol, dtype=np.float32)
- cleaned_NETs = np.zeros_like(placed_NETs_vol, dtype=np.float32)
- cleaned_CCs = np.zeros_like(placed_CCs_vol, dtype=np.float32)
- for m in range(4):
- if placed_ETs_mask.any():
- cleaned_ETs[m], _ = clean_mask_intensity_knn(placed_ETs_vol[m], placed_ETs_mask)
- cleaned_ETs[m] = fill_enclosed_with_neighbor_mean(cleaned_ETs[m], ET_holes)
- placed_ETs_mask[ET_holes] = 1
- if placed_NETs_mask.any():
- cleaned_NETs[m], _ = clean_mask_intensity_knn(placed_NETs_vol[m], placed_NETs_mask)
- cleaned_NETs[m] = fill_enclosed_with_neighbor_mean(cleaned_NETs[m], NET_holes)
- placed_NETs_mask[NET_holes] = 1
- if placed_CCs_mask.any():
- cleaned_CCs[m], _ = clean_mask_intensity_knn(placed_CCs_vol[m], placed_CCs_mask)
- cleaned_CCs[m] = fill_enclosed_with_neighbor_mean(cleaned_CCs[m], CC_holes)
- placed_CCs_mask[CC_holes] = 1
- final_vol = np.zeros_like(placed_ETs_vol, dtype=np.float32)
- final_mask = np.zeros_like(tumor_core, dtype=np.uint8)
- inter_mask = np.zeros_like(tumor_core, dtype=np.uint8)
- if placed_NETs_mask.any():
- final_vol[:, placed_NETs_mask > 0] = cleaned_NETs[:, placed_NETs_mask > 0]
- for m in range(4):
- final_vol[m] = smooth_interface_with_kernel(final_vol[m], placed_NETs_mask.astype(bool), inter_mask.astype(bool),
- dilate_iter=2, alpha=0.7, kernel_size=(3, 3, 3))
- inter_mask[placed_NETs_mask > 0] = 1
- final_mask[placed_NETs_mask > 0] = 2
- if placed_CCs_mask.any():
- final_vol[:, placed_CCs_mask > 0] = cleaned_CCs[:, placed_CCs_mask > 0]
- for m in range(4):
- final_vol[m] = smooth_interface_with_kernel(final_vol[m], placed_CCs_mask.astype(bool), inter_mask.astype(bool),
- dilate_iter=2, alpha=0.7, kernel_size=(3, 3, 3))
- inter_mask[placed_CCs_mask > 0] = 1
- final_mask[placed_CCs_mask > 0] = 3
- if placed_ETs_mask.any():
- final_vol[:, placed_ETs_mask > 0] = cleaned_ETs[:, placed_ETs_mask > 0]
- for m in range(4):
- final_vol[m] = smooth_interface_with_kernel(final_vol[m], placed_ETs_mask.astype(bool), inter_mask.astype(bool),
- dilate_iter=2, alpha=0.7, kernel_size=(3, 3, 3))
- inter_mask[placed_ETs_mask > 0] = 1
- final_mask[placed_ETs_mask > 0] = 1
- return final_mask, final_vol
rearrange.py at commit 6957bba, under MIT · at the source
Overview
- Computational Neurosurgery Lab, Department of Neurosurgery, Macquarie University, Sydney, NSW, Australia
- Iranian Pediatric Neurosurgery Research Center, Tehran University of Medical Sciences, Tehran, Iran
- Department of Neurosurgery, Mashhad University of Medical Sciences, Mashhad, Iran
Abstract
Background: Data scarcity and class imbalance remain critical challenges in medical image analysis, particularly for brain tumor MRI segmentation, where subcomponents such as enhancing tumor, non-enhancing tumor, cystic component, and peritumoral edema are underrepresented. Existing augmentation strategies, from classical geometric transforms to GAN-based and diffusion model-based synthesis, either lack subcomponent-level control or require extensive generative model training, limiting their practicality in low-data settings.
Materials and methods: We propose the Brain Tumor Compositional Augmentation Pipeline (BT-CAP), a subcomponent-aware and anatomically constrained augmentation framework for multi-modal MRI. BT-CAP decomposes tumor subcomponents and recomposes them through a sequence of targeted operations, including isotropic scaling, B-spline deformation, Powell-optimized spatial rearrangement, inpainting, interface smoothing, and constrained edema deformation, applied consistently across all MRI modalities and segmentation masks, producing label-ready augmented volumes without additional annotation. We evaluated augmentation diversity (SSIM, label distribution, intensity variation, centroid displacement) and anatomical plausibility on 50 BraTS-PEDs 2025 cases, yielding 250 augmented volumes, and assessed segmentation performance on the full 256-case dataset using 3-fold cross-validation.
Results: BT-CAP achieved a mean SSIM of 0.956 ± 0.014 with wide subcomponent volume change ranges and realistic intensity heterogeneity, confirming meaningful structural diversity. By architectural design, all augmented segmentation mask voxels were confined within brain boundaries, and zero overlap between deformed edema and the tumor core was observed across all 250 cases. Segmentation experiments showed mean Dice score improvements of 6%–7% for tumor subcomponents and 2%–3% for tumor core and whole tumor compared to training without compositional augmentation, with a computational cost of approximately 2 min per case on CPU.
Conclusion: BT-CAP establishes a new class of compositional augmentation methods that deliver anatomically structured, label-ready, and scalable data generation without generative model training. The framework is applicable to any multi-class segmentation task where data scarcity and structural fidelity are critical, and is openly available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 16 matches between paragraphs and lines of code.
dramintavallaii/BT-CAP
6957bba9ea25c8f588bca32eb18a60122e64252f, 5 September 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
15 files
- examples/
brats_example.ipynb , Jupyter, 2 lines - examples/
quickstart.ipynb , Jupyter, 2 lines - setup.py, Python, 37 lines
- src/
BT_CAP/ , Python, 16 lines__init__.py - src/
BT_CAP/ , Python, 81 lines, 1 matchdeform.py - src/
BT_CAP/ , Python, 63 lines, 2 matchesedema.py - src/
BT_CAP/ , Python, 37 lines, 1 matchextract.py - src/
BT_CAP/ , Python, 53 lines, 1 matchinpaint.py - src/
BT_CAP/ , Python, 41 linesload.py - src/
BT_CAP/ , Python, 330 lines, 4 matchesmain.py - src/
BT_CAP/ , Python, 341 lines, 7 matchesrearrange.py - src/
BT_CAP/ , Python, 27 linesscale.py - src/
BT_CAP/ , Python, 152 linesutils.py - LICENSE, License, 21 lines
- README.md, Text, 137 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 13 scripts, each with its path and the digest of its content;
- 16 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
All data, code, and implementations used in this study are openly available at the following GitHub repository: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 2 authors, 5 keywords, 8 references.
Cite
This paper
Tavallaii, A., & Shah Ghasi, S. (2026). BT-CAP: a subcomponent-aware and anatomically constrained data augmentation framework for multi-modal brain tumor MRI segmentation. Frontiers in radiology, 6, 1785108. https://
BibTeX
@article{tavallaii2026bt
author = {Tavallaii, Amin and Shah Ghasi, Shamim},
title = {{BT-CAP: a subcomponent-aware and anatomically constrained data augmentation framework for multi-modal brain tumor MRI segmentation}},
journal = {Frontiers in radiology},
year = {2026},
month = may,
volume = {6},
pages = {1785108},
publisher = {Frontiers Media SA},
issn = {2673-8740},
doi = {10.3389/
url = {https://
pmid = {42206199},
pmcid = {PMC13201455}
}
RIS
TY - JOUR
AU - Tavallaii, Amin
AU - Shah Ghasi, Shamim
TI - BT-CAP: a subcomponent-aware and anatomically constrained data augmentation framework for multi-modal brain tumor MRI segmentation
T2 - Frontiers in radiology
J2 - Front Radiol
PY - 2026
DA - 2026/
VL - 6
SP - 1785108
SN - 2673-8740
PB - Frontiers Media SA
DO - 10.3389/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3389/
"type": "article-journal",
"title": "BT-CAP: a subcomponent-aware and anatomically constrained data augmentation framework for multi-modal brain tumor MRI segmentation",
"container-title": "Frontiers in radiology",
"author": [
{
"family": "Tavallaii",
"given": "Amin"
},
{
"family": "Shah Ghasi",
"given": "Shamim"
}
],
"container-title-short":
"volume": "6",
"page": "1785108",
"DOI": "10.3389/
"PMID": "42206199",
"PMCID": "PMC13201455",
"ISSN": "2673-8740",
"publisher": "Frontiers Media SA",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
12
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.3389/fmed.2026.1875760 [code]
- Adaptive multi-stage domain unlearning for white-matter lesion segmentation.Journal: Frontiers in medicineIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, methods / tools, structural MRI / diffusion, 2 references
- [2] doi:10.1002/hipo.70124 [code]
- Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults.Journal: HippocampusIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, structural MRI / diffusion, 2 references
- [3] doi:10.1186/s12880-026-02335-x [code]
- Automatic lateral ventricle and choroid plexus segmentation method in infant brain MR images.Journal: BMC medical imagingIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, structural MRI / diffusion, 2 references
- [4] doi:10.21037/qims-2026-0792 [code]
- An nnU-Net-based framework with adaptive feature representation for 3D brain tumor segmentation.Journal: Quantitative imaging in medicine and surgeryIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, methods / tools, structural MRI / diffusion, other condition, 1 reference
- [5] doi:10.1038/s41598-026-48496-1 [code]
- A unified FLAIR hyperintensity segmentation model for various CNS tumor types and acquisition time points.Journal: Scientific reportsIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, methods / tools, structural MRI / diffusion, other condition, 1 reference
- [6] doi:10.1038/s41598-026-55397-w [code]
- Fast surface reconstruction of human brain MRI: benchmarking deep-learning based morphometry tools.Journal: Scientific reportsIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, methods / tools, structural MRI / diffusion, 1 reference
- [7] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, structural MRI / diffusion, other condition, 1 reference
- [8] doi:10.3389/fnins.2026.1870124 [code]
- An end-to-end pipeline for automated fetal brain segmentation and biometry from 3D SSFP MRI.Journal: Frontiers in neuroscienceIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, structural MRI / diffusion, 1 reference
- [9] doi:10.3390/biomedicines14071475 [code]
- ETDACVO: Structural-Fidelity-Awar
e Evolutionary Co-Optimization for Robust and Explainable Brain Tumor MRI Classification. Journal: BiomedicinesIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, methods / tools, structural MRI / diffusion, other condition - [10] doi:10.1016/j.adro.2026.102092 [code]
- Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection.Journal: Advances in radiation oncologyIn common: SimpleITK, scikit-image, scikit-learn, 2 other tools, other condition, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 13 scripts, and 16 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:739ca3667c08b3b3…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
