Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection.
The 3 matches
- [1] § Methods and Materials › Model performance evaluation ↔ metrics.py, lines 113–254 · score 0.81 · ground truth, GT lesion, positive lesions, predicted segmentations, score, FP
- [2] § Methods and Materials › Model performance evaluation ↔ metrics.py, lines 113–254 · score 0.66 · TP lesion, FN lesion, Hausdorff, FP, BraTS, HD95
- [3] § Methods and Materials › Convolutional neural network ↔ nnunetv2/training/nnUNetTrainer/nnUNetTrainer.py, lines 168–229 · score 0.58 · deep learning, network architecture, hyperparameter, image segmentation, weights, training
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 · 408 lines · 14 KB · no license · 2 matches
- import numpy as np
- import nibabel as nib
- import cc3d
- import scipy
- import os
- import pandas as pd
- import surface_distance
- import sys
- import math
- def dice(im1, im2):
- """
- Computes Dice score for two images
- Parameters
- ==========
- im1: Numpy Array/Matrix; Predicted segmentation in matrix form
- im2: Numpy Array/Matrix; Ground truth segmentation in matrix form
- Output
- ======
- dice_score: Dice score between two images
- """
- im1 = np.asarray(im1).astype(bool)
- im2 = np.asarray(im2).astype(bool)
- if im1.shape != im2.shape:
- raise ValueError("Shape mismatch: im1 and im2 must have the same shape.")
- # Compute Dice coefficient
- intersection = np.logical_and(im1, im2)
- return 2. * (intersection.sum()) / (im1.sum() + im2.sum())
- def get_TissueWiseSeg(prediction_matrix, gt_matrix, tissue_type):
- """
- Converts the segmentatations to isolate tissue types
- Parameters
- ==========
- prediction_matrix: Numpy Array/Matrix; Predicted segmentation in matrix form
- gt_matrix: Numpy Array/Matrix; Ground truth segmentation in matrix form
- tissue_type: str; Can be WT, ET or TC
- Output
- ======
- prediction_matrix: Numpy Array/Matrix; Predicted segmentation in matrix form with
- just tissue type mentioned
- gt_matrix: Numpy Array/Matrix; Ground truth segmentation in matrix form with just
- tissue type mentioned
- """
- if tissue_type == 'WT':
- np.place(prediction_matrix, (prediction_matrix != 1) & (prediction_matrix != 2) & (prediction_matrix != 3), 0)
- np.place(prediction_matrix, (prediction_matrix > 0), 1)
- np.place(gt_matrix, (gt_matrix != 1) & (gt_matrix != 2) & (gt_matrix != 3), 0)
- np.place(gt_matrix, (gt_matrix > 0), 1)
- elif tissue_type == 'TC':
- np.place(prediction_matrix, (prediction_matrix != 1) & (prediction_matrix != 3), 0)
- np.place(prediction_matrix, (prediction_matrix > 0), 1)
- np.place(gt_matrix, (gt_matrix != 1) & (gt_matrix != 3), 0)
- np.place(gt_matrix, (gt_matrix > 0), 1)
- elif tissue_type == 'ET':
- np.place(prediction_matrix, (prediction_matrix != 3), 0)
- np.place(prediction_matrix, (prediction_matrix > 0), 1)
- np.place(gt_matrix, (gt_matrix != 3), 0)
- np.place(gt_matrix, (gt_matrix > 0), 1)
- return prediction_matrix, gt_matrix
- def get_GTseg_combinedByDilation(gt_dilated_cc_mat, gt_label_cc):
- """
- Computes the Corrected Connected Components after combing lesions
- together with respect to their dilation extent
- Parameters
- ==========
- gt_dilated_cc_mat: Numpy Array/Matrix; Ground Truth Dilated Segmentation
- after CC Analysis
- gt_label_cc: Numpy Array/Matrix; Ground Truth Segmentation after
- CC Analysis
- Output
- ======
- gt_seg_combinedByDilation_mat: Numpy Array/Matrix; Ground Truth
- Segmentation after CC Analysis and
- combining lesions
- """
- gt_seg_combinedByDilation_mat = np.zeros_like(gt_dilated_cc_mat)
- for comp in range(np.max(gt_dilated_cc_mat)):
- comp += 1
- gt_d_tmp = np.zeros_like(gt_dilated_cc_mat)
- gt_d_tmp[gt_dilated_cc_mat == comp] = 1
- gt_d_tmp = (gt_label_cc*gt_d_tmp)
- np.place(gt_d_tmp, gt_d_tmp > 0, comp)
- gt_seg_combinedByDilation_mat += gt_d_tmp
- return gt_seg_combinedByDilation_mat
- def get_LesionWiseScores(prediction_seg, gt_seg, label_value, dil_factor):
- """
- Computes the Lesion-wise scores for pair of prediction and ground truth
- segmentations
- Parameters
- ==========
- prediction_seg: str; location of the prediction segmentation
- gt_label_cc: str; location of the gt segmentation
- label_value: str; Can be WT, ET or TC
- dil_factor: int; Used to perform dilation
- Output
- ======
- tp: Number of TP lesions WRT prediction segmentation
- fn: Number of FN lesions WRT prediction segmentation
- fp: Number of FP lesions WRT prediction segmentation
- gt_tp: Number of Ground Truth TP lesions WRT prediction segmentation
- metric_pairs: list; All the lesion-wise metrics
- full_dice: Dice Score of the pair of segmentations
- full_gt_vol: Total Ground Truth Segmenatation Volume
- full_pred_vol: Total Prediction Segmentation Volume
- """
- ## Get Prediction and GT segs matrix files
- pred_nii = nib.load(prediction_seg)
- gt_nii = nib.load(gt_seg)
- pred_mat = pred_nii.get_fdata()
- gt_mat = gt_nii.get_fdata()
- ## Get Spacing to computes volumes
- ## Brats Assumes all spacing is 1x1x1mm3
- sx, sy, sz = pred_nii.header.get_zooms()
- ## Get the prediction and GT matrix based on
- ## WT, TC, ET
- pred_mat, gt_mat = get_TissueWiseSeg(
- prediction_matrix = pred_mat,
- gt_matrix = gt_mat,
- tissue_type = label_value
- )
- ## Get Dice score for the full image
- if np.all(gt_mat==0) and np.all(pred_mat==0):
- full_dice = 1.0
- else:
- full_dice = dice(
- pred_mat,
- gt_mat
- )
- ## Get HD95 sccre for the full image
- if np.all(gt_mat==0) and np.all(pred_mat==0):
- full_hd95 = 0.0
- else:
- full_sd = surface_distance.compute_surface_distances(gt_mat.astype(int),
- pred_mat.astype(int),
- (sx,sy,sz))
- full_hd95 = surface_distance.compute_robust_hausdorff(full_sd, 95)
- ## Get Sensitivity and Specificity
- full_sens, full_specs = get_sensitivity_and_specificity(result_array = pred_mat,
- target_array = gt_mat)
- ## Get GT Volume and Pred Volume for the full image
- full_gt_vol = np.sum(gt_mat)*sx*sy*sz
- full_pred_vol = np.sum(pred_mat)*sx*sy*sz
- ## Performing Dilation and CC analysis
- dilation_struct = scipy.ndimage.generate_binary_structure(3, 2)
- gt_mat_cc = cc3d.connected_components(gt_mat, connectivity=26)
- pred_mat_cc = cc3d.connected_components(pred_mat, connectivity=26)
- gt_mat_dilation = scipy.ndimage.binary_dilation(gt_mat, structure = dilation_struct, iterations = dil_factor)
- gt_mat_dilation_cc = cc3d.connected_components(gt_mat_dilation, connectivity=26)
- gt_mat_combinedByDilation = get_GTseg_combinedByDilation(
- gt_dilated_cc_mat = gt_mat_dilation_cc,
- gt_label_cc = gt_mat_cc
- )
- ## Performing the Lesion-By-Lesion Comparison
- gt_label_cc = gt_mat_combinedByDilation
- pred_label_cc = pred_mat_cc
- gt_tp = []
- tp = []
- fn = []
- fp = []
- metric_pairs = []
- for gtcomp in range(np.max(gt_label_cc)):
- gtcomp += 1
- ## Extracting current lesion
- gt_tmp = np.zeros_like(gt_label_cc)
- gt_tmp[gt_label_cc == gtcomp] = 1
- ## Extracting ROI GT lesion component
- gt_tmp_dilation = scipy.ndimage.binary_dilation(gt_tmp, structure = dilation_struct, iterations = dil_factor)
- # Volume of lesion
- gt_vol = np.sum(gt_tmp)*sx*sy*sz
- ## Extracting Predicted true positive lesions
- pred_tmp = np.copy(pred_label_cc)
- #pred_tmp = pred_tmp*gt_tmp
- pred_tmp = pred_tmp*gt_tmp_dilation
- intersecting_cc = np.unique(pred_tmp)
- intersecting_cc = intersecting_cc[intersecting_cc != 0]
- for cc in intersecting_cc:
- tp.append(cc)
- ## Isolating Predited Lesions to calulcate Metrics
- pred_tmp = np.copy(pred_label_cc)
- pred_tmp[np.isin(pred_tmp,intersecting_cc,invert=True)] = 0
- pred_tmp[np.isin(pred_tmp,intersecting_cc)] = 1
- ## Calculating Lesion-wise Dice and HD95
- dice_score = dice(pred_tmp, gt_tmp)
- surface_distances = surface_distance.compute_surface_distances(gt_tmp, pred_tmp, (sx,sy,sz))
- hd = surface_distance.compute_robust_hausdorff(surface_distances, 95)
- metric_pairs.append((intersecting_cc,
- gtcomp, gt_vol, dice_score, hd))
- ## Extracting Number of TP/FP/FN and other data
- if len(intersecting_cc) > 0:
- gt_tp.append(gtcomp)
- else:
- fn.append(gtcomp)
- fp = np.unique(
- pred_label_cc[np.isin(
- pred_label_cc,tp+[0],invert=True)])
- return tp, fn, fp, gt_tp, metric_pairs, full_dice, full_hd95, full_gt_vol, full_pred_vol, full_sens, full_specs
- def get_sensitivity_and_specificity(result_array, target_array):
- """
- This function is extracted from GaNDLF from mlcommons
- You can find the documentation here -
- https://github.com/mlcommons/GaNDLF/blob/master/GANDLF/metrics/segmentation.py#L196
- """
- iC = np.sum(result_array)
- rC = np.sum(target_array)
- overlap = np.where((result_array == target_array), 1, 0)
- # Where they agree are both equal to that value
- TP = overlap[result_array == 1].sum()
- FP = iC - TP
- FN = rC - TP
- TN = np.count_nonzero((result_array != 1) & (target_array != 1))
- Sens = 1.0 * TP / (TP + FN + sys.float_info.min)
- Spec = 1.0 * TN / (TN + FP + sys.float_info.min)
- # Make Changes if both input and reference are 0 for the tissue type
- if (iC == 0) and (rC == 0):
- Sens = 1.0
- return Sens, Spec
- def get_LesionWiseResults(pred_file, gt_file, challenge_name, output=None):
- """
- Computes the Lesion-wise scores for pair of prediction and ground truth
- segmentations
- Parameters
- ==========
- pred_file: str; location of the prediction segmentation
- gt_file: str; location of the gt segmentation
- challenge_name: str; name of the challenge for parameters
- Output
- ======
- Saves the performance metrics as CSVs
- results_df: pd.DataFrame; lesion-wise results with other metrics
- """
- ## Dilation and Threshold Parameters
- if challenge_name == 'BraTS-GLI':
- dilation_factor = 3
- lesion_volume_thresh = 50
- elif challenge_name == 'BraTS-SSA':
- dilation_factor = 3
- lesion_volume_thresh = 50
- elif challenge_name == 'BraTS-MEN':
- dilation_factor = 1
- lesion_volume_thresh = 50
- elif challenge_name == 'BraTS-PED':
- dilation_factor = 3
- lesion_volume_thresh = 50
- elif challenge_name == 'BraTS-MET':
- dilation_factor = 1
- lesion_volume_thresh = 2
- final_lesionwise_metrics_df = pd.DataFrame()
- final_metrics_dict = dict()
- label_values = ['WT', 'TC', 'ET']
- for l in range(len(label_values)):
- tp, fn, fp, gt_tp, metric_pairs, full_dice, full_hd95, full_gt_vol, full_pred_vol, full_sens, full_specs = get_LesionWiseScores(
- prediction_seg = pred_file,
- gt_seg = gt_file,
- label_value = label_values[l],
- dil_factor = dilation_factor
- )
- metric_df = pd.DataFrame(
- metric_pairs, columns=['predicted_lesion_numbers', 'gt_lesion_numbers',
- 'gt_lesion_vol', 'dice_lesionwise', 'hd95_lesionwise']
- ).sort_values(by = ['gt_lesion_numbers'], ascending=True).reset_index(drop = True)
- metric_df['_len'] = metric_df['predicted_lesion_numbers'].map(len)
- ## Removing <= 50 lesions from analysis
- fn_sub = (metric_df[(metric_df['_len'] == 0) &
- (metric_df['gt_lesion_vol'] <= lesion_volume_thresh)
- ]).shape[0]
- gt_tp_sub = (metric_df[(metric_df['_len'] != 0) &
- (metric_df['gt_lesion_vol'] <= lesion_volume_thresh)
- ]).shape[0]
- metric_df['Label'] = [label_values[l]]*len(metric_df)
- metric_df = metric_df.replace(np.inf, 374)
- final_lesionwise_metrics_df = final_lesionwise_metrics_df.append(metric_df)
- metric_df_thresh = metric_df[metric_df['gt_lesion_vol'] > lesion_volume_thresh]
- try:
- lesion_wise_dice = np.sum(metric_df_thresh['dice_lesionwise'])/(len(metric_df_thresh) + len(fp))
- except:
- lesion_wise_dice = np.nan
- try:
- lesion_wise_hd95 = (np.sum(metric_df_thresh['hd95_lesionwise']) + len(fp)*374)/(len(metric_df_thresh) + len(fp))
- except:
- lesion_wise_hd95 = np.nan
- if math.isnan(lesion_wise_dice):
- lesion_wise_dice = 1
- if math.isnan(lesion_wise_hd95):
- lesion_wise_hd95 = 0
- metrics_dict = {
- 'Num_TP' : len(gt_tp) - gt_tp_sub, # GT_TP
- #'Num_TP' : len(tp),
- 'Num_FP' : len(fp),
- 'Num_FN' : len(fn) - fn_sub,
- 'Sensitivity': full_sens,
- 'Specificity': full_specs,
- 'Legacy_Dice' : full_dice,
- 'Legacy_HD95' : full_hd95,
- 'GT_Complete_Volume' : full_gt_vol,
- 'LesionWise_Score_Dice' : lesion_wise_dice,
- 'LesionWise_Score_HD95' : lesion_wise_hd95
- }
- final_metrics_dict[label_values[l]] = metrics_dict
- #final_lesionwise_metrics_df.to_csv(os.path.split(pred_file)[0] + '/' +
- # os.path.split(pred_file)[1].split('.')[0] +
- # '_lesionwise_metrics.csv',
- # index=False)
- results_df = pd.DataFrame(final_metrics_dict).T
- results_df['Labels'] = results_df.index
- results_df = results_df.reset_index(drop=True)
- results_df.insert(0, 'Labels', results_df.pop('Labels'))
- results_df.replace(np.inf, 374, inplace=True)
- if output:
- results_df.to_csv(output, index=False)
- return results_df
metrics.py at commit 43c9052, no license · at the source
Overview
- Department of Radiation Medicine and Applied Sciences, University of California San Diego, La Jolla, California
- Indiana University School of Medicine, Indianapolis, Indiana
- Weldon School of Biomedical Engineering, Purdue University, West Lafayette, Indiana
- Department of Radiology, Scripps Health, San Diego, California
- Department of Radiation Oncology, University of California Irvine, Irvine, California
Abstract
Purpose: Modern management of brain metastases requires close surveillance with serial magnetic resonance imaging, creating interest in techniques for automated detection. The convolutional neural network (CNN) is currently the dominant approach to automated metastasis detection, and multiple variations of the CNN have been investigated to improve performance. In this work, we looked beyond the impact of network architecture and assessed the impact on performance of providing anatomic contextual information to a CNN during the training period.
Methods and Materials: The nnU-Net, a widely adopted CNN, was selected for this study. The nnU-Net was trained on an institutional data set comprising 301 high-resolution, T1-weighted, contrast-enhanced magnetic resonance images and associated structure labels consisting of both target brain metastases (1111 total) and several organs at risk (OARs) that were labeled in the process of radiosurgery planning. During the training period, the model was presented with either labeled brain metastases (BM) alone or with the complete structure set of metastases and OARs (BM+OAR). The test set contained 100 cases and 421 total metastases.
Results: We found that, by multiple standard performance metrics, the BM+OAR model outperformed the BM model. Median case-wise Dice coefficient for BM was 0.75 (IQR, 0.51-0.86) and for BM+OAR was 0.79 (IQR, 0.58-0.86) (P < .001). Median sensitivity for BM was 1.0 (IQR, 0.71-1.0) and for BM+OAR was 1.0 (IQR, 0.75-1.0) (P < .01). Median positive predictive value for BM was 0.5 (IQR, 0.25-0.74) and for BM+OAR was 0.77 (IQR, 0.50-1.0) (P < .001). Importantly, among lesions scored as “false-positives,” 47/
Conclusions: These findings suggest that providing anatomic contextual information can improve the accuracy of CNN-based automated brain metastasis detection algorithms and open new opportunities for research into the optimization of automated detection approaches for brain metastases.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
MIC-DKFZ/nnUNet
202f6baa0adc2ef5f7b615df19cc4da970412cc0, 25 September 2026Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
225 files
- .github/
scripts/ , Shell, 46 linessafe-label.sh - .github/
scripts/ , Shell, 29 linessafe-pr-review.sh - documentation/
__init__.py , Python, 1 line - documentation/
competitions/ , Python, 1 lineFLARE24/ Task_1/ __init__.py - documentation/
competitions/ , Python, 209 linesFLARE24/ Task_1/ inference_flare_task1.py - documentation/
competitions/ , Python, 1 lineFLARE24/ Task_2/ __init__.py - documentation/
competitions/ , Python, 467 linesFLARE24/ Task_2/ inference_flare_task2.py - documentation/
competitions/ , Python, 1 lineFLARE24/ __init__.py - documentation/
competitions/ , Python, 1 lineToothfairy2/ __init__.py - documentation/
competitions/ , Python, 359 linesToothfairy2/ inference_script_semseg_ only_customInf2.py - documentation/
competitions/ , Python, 1 line__init__.py - nnunetv2/
__init__.py , Python, 1 line - nnunetv2/
batch_running/ , Python, 1 line__init__.py - nnunetv2/
batch_running/ , Python, 1 linebenchmarking/ __init__.py - nnunetv2/
batch_running/ , Python, 41 linesbenchmarking/ generate_benchmarking_co mmands.py - nnunetv2/
batch_running/ , Python, 69 linesbenchmarking/ summarize_benchmark_resu lts.py - nnunetv2/
batch_running/ , Python, 121 linescollect_results_custom_D ecathlon.py - nnunetv2/
batch_running/ , Python, 17 linescollect_results_custom_D ecathlon_2d.py - nnunetv2/
batch_running/ , Python, 111 linesgenerate_lsf_runs_custom Decathlon.py - nnunetv2/
batch_running/ , Shell, 52 linesjobs.sh - nnunetv2/
batch_running/ , Python, 1 linerelease_trainings/ __init__.py - nnunetv2/
batch_running/ , Python, 1 linerelease_trainings/ nnunetv2_v1/ __init__.py - nnunetv2/
batch_running/ , Python, 112 linesrelease_trainings/ nnunetv2_v1/ collect_results.py - nnunetv2/
batch_running/ , Python, 91 linesrelease_trainings/ nnunetv2_v1/ generate_lsf_commands.py - nnunetv2/
configuration.py , Python, 10 lines - nnunetv2/
dataset_conversion/ , Python, 147 linesDataset015_018_RibFrac_R ibSeg.py - nnunetv2/
dataset_conversion/ , Python, 70 linesDataset021_CTAAorta.py - nnunetv2/
dataset_conversion/ , Python, 55 linesDataset023_AbdomenAtlas1 _1Mini.py - nnunetv2/
dataset_conversion/ , Python, 114 linesDataset027_ACDC.py - nnunetv2/
dataset_conversion/ , Python, 110 linesDataset042_BraTS18.py - nnunetv2/
dataset_conversion/ , Python, 110 linesDataset043_BraTS19.py - nnunetv2/
dataset_conversion/ , Python, 84 linesDataset073_Fluo_C3DH_A54 9_SIM.py - nnunetv2/
dataset_conversion/ , Python, 198 linesDataset114_MNMs.py - nnunetv2/
dataset_conversion/ , Python, 61 linesDataset115_EMIDEC.py - nnunetv2/
dataset_conversion/ , Python, 196 linesDataset119_ToothFairy2_A ll.py - nnunetv2/
dataset_conversion/ , Python, 86 linesDataset120_RoadSegmentat ion.py - nnunetv2/
dataset_conversion/ , Python, 97 linesDataset137_BraTS21.py - nnunetv2/
dataset_conversion/ , Python, 68 linesDataset218_Amos2022_task 1.py - nnunetv2/
dataset_conversion/ , Python, 64 linesDataset219_Amos2022_task 2.py - nnunetv2/
dataset_conversion/ , Python, 49 linesDataset220_KiTS2023.py - nnunetv2/
dataset_conversion/ , Python, 70 linesDataset221_AutoPETII_202 3.py - nnunetv2/
dataset_conversion/ , Python, 59 linesDataset223_AMOS2022postC hallenge.py - nnunetv2/
dataset_conversion/ , Python, 60 linesDataset224_AbdomenAtlas1 .0.py - nnunetv2/
dataset_conversion/ , Python, 55 linesDataset226_BraTS2024-Bra TS-GLI.py - nnunetv2/
dataset_conversion/ , Python, 54 linesDataset227_TotalSegmenta torMRI.py - nnunetv2/
dataset_conversion/ , Python, 32 linesDataset987_dummyDataset4 .py - nnunetv2/
dataset_conversion/ , Python, 32 linesDataset989_dummyDataset4 _2.py - nnunetv2/
dataset_conversion/ , Python, 1 line__init__.py - nnunetv2/
dataset_conversion/ , Python, 131 linesconvert_MSD_dataset.py - nnunetv2/
dataset_conversion/ , Python, 53 linesconvert_raw_dataset_from _old_nnunet_format.py - nnunetv2/
dataset_conversion/ , Python, 73 linesdatasets_for_integration _tests/ Dataset996_IntegrationTe st_Hippocampus_regions_i gnore.py - nnunetv2/
dataset_conversion/ , Python, 37 linesdatasets_for_integration _tests/ Dataset997_IntegrationTe st_Hippocampus_regions.p y - nnunetv2/
dataset_conversion/ , Python, 33 linesdatasets_for_integration _tests/ Dataset998_IntegrationTe st_Hippocampus_ignore.py - nnunetv2/
dataset_conversion/ , Python, 27 linesdatasets_for_integration _tests/ Dataset999_IntegrationTe st_Hippocampus.py - nnunetv2/
dataset_conversion/ , Python, 1 linedatasets_for_integration _tests/ __init__.py - nnunetv2/
dataset_conversion/ , Python, 111 linesgenerate_dataset_json.py - nnunetv2/
ensembling/ , Python, 1 line__init__.py - nnunetv2/
ensembling/ , Python, 207 linesensemble.py - nnunetv2/
evaluation/ , Python, 1 line__init__.py - nnunetv2/
evaluation/ , Python, 58 linesaccumulate_cv_results.py - nnunetv2/
evaluation/ , Python, 262 linesevaluate_predictions.py - nnunetv2/
evaluation/ , Python, 339 linesfind_best_configuration. py - nnunetv2/
experiment_planning/ , Python, 1 line__init__.py - nnunetv2/
experiment_planning/ , Python, 1 linedataset_fingerprint/ __init__.py - nnunetv2/
experiment_planning/ , Python, 211 linesdataset_fingerprint/ fingerprint_extractor.py - nnunetv2/
experiment_planning/ , Python, 1 lineexperiment_planners/ __init__.py - nnunetv2/
experiment_planning/ , Python, 603 linesexperiment_planners/ default_experiment_plann er.py - nnunetv2/
experiment_planning/ , Python, 108 linesexperiment_planners/ network_topology.py - nnunetv2/
experiment_planning/ , Python, 1 lineexperiment_planners/ resampling/ __init__.py - nnunetv2/
experiment_planning/ , Python, 54 linesexperiment_planners/ resampling/ planners_no_resampling.p y - nnunetv2/
experiment_planning/ , Python, 181 linesexperiment_planners/ resampling/ resample_with_torch.py - nnunetv2/
experiment_planning/ , Python, 26 linesexperiment_planners/ resencUNet_planner.py - nnunetv2/
experiment_planning/ , Python, 1 lineexperiment_planners/ residual_unets/ __init__.py - nnunetv2/
experiment_planning/ , Python, 291 linesexperiment_planners/ residual_unets/ residual_encoder_unet_pl anners.py - nnunetv2/
experiment_planning/ , Python, 512 lineslike_nnssl.py - nnunetv2/
experiment_planning/ , Python, 171 linesplan_and_preprocess_api. py - nnunetv2/
experiment_planning/ , Python, 235 linesplan_and_preprocess_entr ypoints.py - nnunetv2/
experiment_planning/ , Python, 1 lineplans_for_pretraining/ __init__.py - nnunetv2/
experiment_planning/ , Python, 82 linesplans_for_pretraining/ move_plans_between_datas ets.py - nnunetv2/
experiment_planning/ , Python, 239 linesverify_dataset_integrity .py - nnunetv2/
imageio/ , Python, 1 line__init__.py - nnunetv2/
imageio/ , Python, 107 linesbase_reader_writer.py - nnunetv2/
imageio/ , Python, 81 linesnatural_image_reader_wri ter.py - nnunetv2/
imageio/ , Python, 222 linesnibabel_reader_writer.py - nnunetv2/
imageio/ , Python, 88 linesreader_writer_registry.p y - nnunetv2/
imageio/ , Python, 234 linessimpleitk_reader_writer. py - nnunetv2/
imageio/ , Python, 100 linestif_reader_writer.py - nnunetv2/
inference/ , Python, 197 linesJHU_inference.py - nnunetv2/
inference/ , Python, 1 line__init__.py - nnunetv2/
inference/ , Python, 315 linesdata_iterators.py - nnunetv2/
inference/ , Python, 100 linesexamples.py - nnunetv2/
inference/ , Python, 160 linesexport_prediction.py - nnunetv2/
inference/ , Python, 1,099 linespredict_from_raw_data.py - nnunetv2/
inference/ , Python, 65 linessliding_window_predictio n.py - nnunetv2/
model_sharing/ , Python, 1 line__init__.py - nnunetv2/
model_sharing/ , Python, 61 linesentry_points.py - nnunetv2/
model_sharing/ , Python, 39 linesmodel_download.py - nnunetv2/
model_sharing/ , Python, 124 linesmodel_export.py - nnunetv2/
model_sharing/ , Python, 8 linesmodel_import.py - nnunetv2/
paths.py , Python, 79 lines - nnunetv2/
postprocessing/ , Python, 1 line__init__.py - nnunetv2/
postprocessing/ , Python, 361 linesremove_connected_compone nts.py - nnunetv2/
preprocessing/ , Python, 1 line__init__.py - nnunetv2/
preprocessing/ , Python, 1 linecropping/ __init__.py - nnunetv2/
preprocessing/ , Python, 39 linescropping/ cropping.py - nnunetv2/
preprocessing/ , Python, 1 linenormalization/ __init__.py - nnunetv2/
preprocessing/ , Python, 104 linesnormalization/ default_normalization_sc hemes.py - nnunetv2/
preprocessing/ , Python, 24 linesnormalization/ map_channel_name_to_norm alization.py - nnunetv2/
preprocessing/ , Python, 1 linepreprocessors/ __init__.py - nnunetv2/
preprocessing/ , Python, 492 linespreprocessors/ default_preprocessor.py - nnunetv2/
preprocessing/ , Python, 1 lineresampling/ __init__.py - nnunetv2/
preprocessing/ , Python, 231 linesresampling/ default_resampling.py - nnunetv2/
preprocessing/ , Python, 13 linesresampling/ no_resampling.py - nnunetv2/
preprocessing/ , Python, 174 linesresampling/ resample_torch.py - nnunetv2/
preprocessing/ , Python, 15 linesresampling/ utils.py - nnunetv2/
preprocessing/ , Python, 1 linesampling_locations/ __init__.py - nnunetv2/
preprocessing/ , Python, 171 linessampling_locations/ extract_sampling_locatio ns.py - nnunetv2/
run/ , Python, 1 line__init__.py - nnunetv2/
run/ , Python, 73 linesload_pretrained_weights. py - nnunetv2/
run/ , Python, 351 linesrun_training.py - nnunetv2/
run/ , Python, 252 linesrun_training_from_pretra ined.py - nnunetv2/
tests/ , Python, 1 line__init__.py - nnunetv2/
tests/ , Python, 1 lineintegration_tests/ __init__.py - nnunetv2/
tests/ , Python, 42 linesintegration_tests/ add_lowres_and_cascade.p y - nnunetv2/
tests/ , Python, 18 linesintegration_tests/ cleanup_integration_test .py - nnunetv2/
tests/ , Shell, 10 linesintegration_tests/ lsf_commands.sh - nnunetv2/
tests/ , Shell, 18 linesintegration_tests/ prepare_integration_test s.sh - nnunetv2/
tests/ , Shell, 27 linesintegration_tests/ run_integration_test.sh - nnunetv2/
tests/ , Python, 75 linesintegration_tests/ run_integration_test_bes tconfig_inference.py - nnunetv2/
tests/ , Shell, 1 lineintegration_tests/ run_integration_test_tra iningOnly_DDP.sh - nnunetv2/
tests/ , Python, 46 linesintegration_tests/ run_nnunet_inference.py - nnunetv2/
tests/ , Python, 53 linestest_copy_file_if_newer. py - nnunetv2/
tests/ , Python, 140 linestest_find_objects.py - nnunetv2/
tests/ , Python, 521 linestest_foreground_location s.py - nnunetv2/
tests/ , Python, 148 linestest_natural_image_tiff_ compression.py - nnunetv2/
tests/ , Python, 45 linestest_paths.py - nnunetv2/
tests/ , Python, 273 linestest_resampling.py - nnunetv2/
training/ , Python, 1 line__init__.py - nnunetv2/
training/ , Python, 1 linedata_augmentation/ __init__.py - nnunetv2/
training/ , Python, 24 linesdata_augmentation/ compute_initial_patch_si ze.py - nnunetv2/
training/ , Python, 1 linedata_augmentation/ custom_transforms/ __init__.py - nnunetv2/
training/ , Python, 136 linesdata_augmentation/ custom_transforms/ cascade_transforms.py - nnunetv2/
training/ , Python, 55 linesdata_augmentation/ custom_transforms/ deep_supervision_donwsam pling.py - nnunetv2/
training/ , Python, 22 linesdata_augmentation/ custom_transforms/ masking.py - nnunetv2/
training/ , Python, 31 linesdata_augmentation/ custom_transforms/ region_based_training.py - nnunetv2/
training/ , Python, 45 linesdata_augmentation/ custom_transforms/ transforms_for_dummy_2d. py - nnunetv2/
training/ , Python, 1 linedataloading/ __init__.py - nnunetv2/
training/ , Python, 217 linesdataloading/ data_loader.py - nnunetv2/
training/ , Python, 586 linesdataloading/ foreground_locations.py - nnunetv2/
training/ , Python, 530 linesdataloading/ nnunet_dataset.py - nnunetv2/
training/ , Python, 71 linesdataloading/ utils.py - nnunetv2/
training/ , Python, 1 linelogging/ __init__.py - nnunetv2/
training/ , Python, 303 lineslogging/ nnunet_logger.py - nnunetv2/
training/ , Python, 1 lineloss/ __init__.py - nnunetv2/
training/ , Python, 156 linesloss/ compound_losses.py - nnunetv2/
training/ , Python, 29 linesloss/ deep_supervision.py - nnunetv2/
training/ , Python, 200 linesloss/ dice.py - nnunetv2/
training/ , Python, 32 linesloss/ robust_ce_loss.py - nnunetv2/
training/ , Python, 1 linelr_scheduler/ __init__.py - nnunetv2/
training/ , Python, 26 lineslr_scheduler/ polylr.py - nnunetv2/
training/ , Python, 143 lineslr_scheduler/ warmup.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ __init__.py - nnunetv2/
training/ , Python, 1,505 lines, 1 matchnnUNetTrainer/ nnUNetTrainer.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ pretraining/ __init__.py - nnunetv2/
training/ , Python, 455 linesnnUNetTrainer/ pretraining/ dynamicPretrainedTrainer .py - nnunetv2/
training/ , Python, 760 linesnnUNetTrainer/ pretraining/ pretrainedTrainer.py - nnunetv2/
training/ , Python, 287 linesnnUNetTrainer/ pretraining/ thrp_primusx_finetuning. py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ primus/ __init__.py - nnunetv2/
training/ , Python, 511 linesnnUNetTrainer/ primus/ primus_trainers.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ __init__.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ benchmarking/ __init__.py - nnunetv2/
training/ , Python, 67 linesnnUNetTrainer/ variants/ benchmarking/ nnUNetTrainerBenchmark_5 epochs.py - nnunetv2/
training/ , Python, 68 linesnnUNetTrainer/ variants/ benchmarking/ nnUNetTrainerBenchmark_5 epochs_noDataLoading.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ competitions/ __init__.py - nnunetv2/
training/ , Python, 5 linesnnUNetTrainer/ variants/ competitions/ aortaseg24.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ data_augmentation/ __init__.py - nnunetv2/
training/ , Python, 390 linesnnUNetTrainer/ variants/ data_augmentation/ nnUNetTrainerDA5.py - nnunetv2/
training/ , Python, 191 linesnnUNetTrainer/ variants/ data_augmentation/ nnUNetTrainerDAOrd0.py - nnunetv2/
training/ , Python, 34 linesnnUNetTrainer/ variants/ data_augmentation/ nnUNetTrainerNoDA.py - nnunetv2/
training/ , Python, 215 linesnnUNetTrainer/ variants/ data_augmentation/ nnUNetTrainerNoMirroring .py - nnunetv2/
training/ , Python, 35 linesnnUNetTrainer/ variants/ data_augmentation/ nnUNetTrainer_noDummy2DD A.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ loss/ __init__.py - nnunetv2/
training/ , Python, 40 linesnnUNetTrainer/ variants/ loss/ nnUNetTrainerCELoss.py - nnunetv2/
training/ , Python, 59 linesnnUNetTrainer/ variants/ loss/ nnUNetTrainerDiceLoss.py - nnunetv2/
training/ , Python, 76 linesnnUNetTrainer/ variants/ loss/ nnUNetTrainerTopkLoss.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ lr_schedule/ __init__.py - nnunetv2/
training/ , Python, 12 linesnnUNetTrainer/ variants/ lr_schedule/ nnUNetTrainerCosAnneal.p y - nnunetv2/
training/ , Python, 128 linesnnUNetTrainer/ variants/ lr_schedule/ nnUNetTrainer_warmup.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ network_architecture/ __init__.py - nnunetv2/
training/ , Python, 29 linesnnUNetTrainer/ variants/ network_architecture/ nnUNetTrainerBN.py - nnunetv2/
training/ , Python, 15 linesnnUNetTrainer/ variants/ network_architecture/ nnUNetTrainerNoDeepSuper vision.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ optimizer/ __init__.py - nnunetv2/
training/ , Python, 58 linesnnUNetTrainer/ variants/ optimizer/ nnUNetTrainerAdam.py - nnunetv2/
training/ , Python, 65 linesnnUNetTrainer/ variants/ optimizer/ nnUNetTrainerAdan.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ sampling/ __init__.py - nnunetv2/
training/ , Python, 57 linesnnUNetTrainer/ variants/ sampling/ nnUNetTrainer_probabilis ticOversampling.py - nnunetv2/
training/ , Python, 1 linennUNetTrainer/ variants/ training_length/ __init__.py - nnunetv2/
training/ , Python, 98 linesnnUNetTrainer/ variants/ training_length/ nnUNetTrainer_Xepochs.py - nnunetv2/
training/ , Python, 59 linesnnUNetTrainer/ variants/ training_length/ nnUNetTrainer_Xepochs_No Mirroring.py - nnunetv2/
utilities/ , Python, 1 line__init__.py - nnunetv2/
utilities/ , Python, 24 linescollate_outputs.py - nnunetv2/
utilities/ , Python, 16 linescrossval_split.py - nnunetv2/
utilities/ , Python, 75 linesdataset_name_id_conversi on.py - nnunetv2/
utilities/ , Python, 105 linesddp.py - nnunetv2/
utilities/ , Python, 53 linesddp_allgather.py - nnunetv2/
utilities/ , Python, 50 linesdefault_n_proc_DA.py - nnunetv2/
utilities/ , Python, 132 linesfile_path_utilities.py - nnunetv2/
utilities/ , Python, 174 linesfind_class_by_name.py - nnunetv2/
utilities/ , Python, 56 linesfind_objects.py - nnunetv2/
utilities/ , Python, 91 linesget_network_from_plans.p y - nnunetv2/
utilities/ , Python, 89 linesget_network_via_name.py - nnunetv2/
utilities/ , Python, 27 lineshelpers.py - nnunetv2/
utilities/ , Python, 60 linesjson_export.py - nnunetv2/
utilities/ , Python, 1 linelabel_handling/ __init__.py - nnunetv2/
utilities/ , Python, 351 lineslabel_handling/ label_handling.py - nnunetv2/
utilities/ , Python, 252 linesload_weights_utils.py - nnunetv2/
utilities/ , Python, 12 linesnetwork_initialization.p y - nnunetv2/
utilities/ , Python, 279 linesoverlay_plots.py - nnunetv2/
utilities/ , Python, 1 lineplans_handling/ __init__.py - nnunetv2/
utilities/ , Python, 341 linesplans_handling/ plans_handler.py - nnunetv2/
utilities/ , Python, 51 linespool_utils.py - nnunetv2/
utilities/ , Python, 76 linesutils.py - setup.py, Python, 4 lines
- LICENSE, License, 201 lines
- readme.md, Text, 78 lines
data.mendeley.com/preview/jhxrwsct49
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
rachitsaluja/BraTS-2023-Metrics
43c905242b2eecf421d4ab2da7af8ece9777d322, 12 October 2023Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
5 files
- metrics.py, Python, 408 lines, 2 matches
- surface_distance/
__init__.py , Python, 17 lines - surface_distance/
lookup_tables.py , Python, 283 lines - surface_distance/
metrics.py , Python, 328 lines - README.md, Text, 86 lines
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:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 227 scripts, each with its path and the digest of its content;
- 3 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.
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 2, 28 September 2026
- Authors: added Aaron B. Simon (0000-0003-4685-2711); removed Aaron B. Simon
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 25 references.
Cite
This paper
Truong, E., Houri, J., Hermann, G., Moiseenko, V., Hattangadi-Gluth, J., Rudie, J., & Simon, A. B. (2026). Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection. Advances in radiation oncology, 11(10), 102092. https://
BibTeX
@article{truong2026effec
author = {Truong, Ethan and Houri, Jordan and Hermann, Gretchen and Moiseenko, Vitali and Hattangadi-Gluth, Jona and Rudie, Jeffrey and Simon, Aaron B.},
title = {{Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection}},
journal = {Advances in radiation oncology},
year = {2026},
month = may,
volume = {11},
number = {10},
pages = {102092},
publisher = {Elsevier},
issn = {2452-1094},
doi = {10.1016/
url = {https://
pmid = {42733485},
pmcid = {PMC13571451}
}
RIS
TY - JOUR
AU - Truong, Ethan
AU - Houri, Jordan
AU - Hermann, Gretchen
AU - Moiseenko, Vitali
AU - Hattangadi-Gluth, Jona
AU - Rudie, Jeffrey
AU - Simon, Aaron B.
TI - Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection
T2 - Advances in radiation oncology
J2 - Adv Radiat Oncol
PY - 2026
DA - 2026/
VL - 11
IS - 10
SP - 102092
SN - 2452-1094
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection",
"container-title": "Advances in radiation oncology",
"author": [
{
"family": "Truong",
"given": "Ethan"
},
{
"family": "Houri",
"given": "Jordan"
},
{
"family": "Hermann",
"given": "Gretchen"
},
{
"family": "Moiseenko",
"given": "Vitali"
},
{
"family": "Hattangadi-Gluth",
"given": "Jona"
},
{
"family": "Rudie",
"given": "Jeffrey"
},
{
"family": "Simon",
"given": "Aaron B."
}
],
"container-title-short":
"volume": "11",
"issue": "10",
"page": "102092",
"DOI": "10.1016/
"PMID": "42733485",
"PMCID": "PMC13571451",
"ISSN": "2452-1094",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
25
]
]
}
}
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.1002/hipo.70124 [code]
- Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults.Journal: HippocampusIn common: nnU-Net, SimpleITK, tifffile, 9 other tools, 2 references
- [2] 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: nnU-Net, SimpleITK, tifffile, 9 other tools, other condition, 1 reference
- [3] doi:10.1007/s12021-026-09817-x [code]
- Circle of Willis-Guided Localization for Simultaneous Detection and Classification of Large Vessel Occlusions in Brain CTA.Journal: NeuroinformaticsIn common: nnU-Net, SimpleITK, tifffile, 9 other tools, 1 reference
- [4] doi:10.3389/fmed.2026.1875760 [code]
- Adaptive multi-stage domain unlearning for white-matter lesion segmentation.Journal: Frontiers in medicineIn common: nnU-Net, SimpleITK, tifffile, 9 other tools, 1 reference
- [5] 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: nnU-Net, SimpleITK, tifffile, 9 other tools, 1 reference
- [6] 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: nnU-Net, SimpleITK, tifffile, 9 other tools, 1 reference
- [7] doi:10.64898/2026.07.15.26357954 [code]
- Portable Ultra-Low Field MRI Deep-Learning Algorithms for White Matter Lesion Segmentation Improve Accuracy and Reflect Clinical Disability in Multiple SclerosisJournal: medRxiv (preprint)In common: nnU-Net, SimpleITK, tifffile, 9 other tools
- [8] doi:10.1136/jnnp-2025-335884 [code]
- Diffusivity anisotropy signature of slowly expanding lesions predicts progression independent of relapse activity in multiple sclerosis.Journal: Journal of neurology, neurosurgery, and psychiatryIn common: nnU-Net, SimpleITK, tifffile, 9 other tools
- [9] 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: nnU-Net, SimpleITK, scikit-image, 8 other tools, other condition
- [10] doi:10.1371/journal.pcbi.1014555 [code]
- Body surface potential driven personalisation of electrophysiological digital twins in hypertrophic cardiomyopathy.Journal: PLoS computational biologyIn common: nnU-Net, SimpleITK, scikit-image, 8 other tools
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: 3 repositories of the authors' code, each at its verified commit and with its license, 227 scripts, and 3 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:deada1f0febf2b3a…
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.
