Evaluating the impact of segmentation strategies on radiomic feature stability for paediatric brain tumour diagnosis using diffusion weighted imaging.
The 1 match
- [1] § 2 Materials and methods › 2.1 Data › 2.1.5 Feature extraction. ↔ FeatureExtraction.py, lines 60–139 · score 0.72 · bin width, PyRadiomics, resampling, ROIs, ADC, eroded
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 · 144 lines · 5.4 KB · no license · 1 match
- # -*- coding: utf-8 -*-
- """
- @author: mulvanyt
- """
- import os
- import numpy as np
- import pandas as pd
- import nibabel as nib
- import cv2
- from radiomics import featureextractor
- def calculate_adc(b0_path, b1000_path, out_adc_path):
- """Calculates the ADC map from b0 and b1000 images using nibabel."""
- b0_img = nib.load(b0_path)
- b1000_img = nib.load(b1000_path)
- # Get image arrays and converts to float
- b0_arr = b0_img.get_fdata().astype(np.float32)
- b1000_arr = b1000_img.get_fdata().astype(np.float32)
- # Calculate ADC and truncate
- adc_arr = -(np.log(b1000_arr / b0_arr)) / 1000.0
- adc_arr = np.clip(adc_arr, a_min=0, a_max=0.004)
- # Create new Nifti image using the affine and header from b0
- adc_img = nib.Nifti1Image(adc_arr, b0_img.affine, b0_img.header)
- nib.save(adc_img, out_adc_path)
- return out_adc_path
- def apply_morphology(roi_path, iterations, operation, out_path):
- """Applies in-plane 3x3 erosion/dilation directly to input image (paths)"""
- roi_img = nib.load(roi_path)
- roi_arr = np.round(roi_img.get_fdata(), decimals=0).astype(np.uint8)
- kernel = np.ones((3, 3), np.uint8)
- if operation == 'erode':
- new_roi_arr = cv2.erode(roi_arr, kernel, iterations=iterations)
- elif operation == 'dilate':
- new_roi_arr = cv2.dilate(roi_arr, kernel, iterations=iterations)
- if out_path is None:
- return new_roi_arr
- else:
- new_roi_img = nib.Nifti1Image(new_roi_arr, roi_img.affine, roi_img.header)
- nib.save(new_roi_img, out_path)
- return out_path
- def extract_features(extractor, image_path, mask_path):
- """Extracts features from file paths and filters to 19 first-order features."""
- result = extractor.execute(image_path, mask_path)
- first_order = {k.replace('original_firstorder_', ''): v
- for k, v in result.items() if 'original_firstorder_' in k}
- first_order['StandardDeviation'] = first_order['Variance'] ** 0.5
- return first_order
- def main():
- data_dir = "./"
- patient_info_path = os.path.join(data_dir, "patient_info.csv")
- df_info = pd.read_csv(patient_info_path)
- patient_ids = df_info.iloc[:, 0].astype(str).tolist()
- # Configure PyRadiomics
- settings = {
- 'binWidth': 25e-6,
- 'interpolator': 'sitkBSpline',
- 'resampledPixelSpacing': [1, 1, 1]
- }
- extractor = featureextractor.RadiomicsFeatureExtractor(**settings)
- extractor.disableAllFeatures()
- extractor.enableFeatureClassByName('firstorder')
- results_original = []
- results_eroded = {1: [], 2: [], 3: []}
- results_dilated = {1: [], 2: [], 3: []}
- for pid in patient_ids:
- print(f"Processing Patient ID: {pid}")
- b0_path = os.path.join(data_dir, f"{pid}_b0.nii.gz")
- b1000_path = os.path.join(data_dir, f"{pid}_b1000.nii.gz")
- roi_path = os.path.join(data_dir, f"{pid}_roi.nii")
- adc_path = os.path.join(data_dir, f"{pid}_adc.nii.gz")
- #Generate and Save ADC
- adc_path = calculate_adc(b0_path, b1000_path, adc_path)
- #Original Features
- print(" Calculating original features...")
- feats_orig = extract_features(extractor, adc_path, roi_path)
- if feats_orig:
- feats_orig['Patient_ID'] = pid
- results_original.append(feats_orig)
- #Generate Eroded/Dilated ROIs and Calculate Features
- for iterations in [1, 2, 3]:
- # Erosion
- print(f" Calculating eroded features (iter={iterations})...")
- eroded_roi_path = os.path.join(data_dir, f"{pid}_roi_eroded_{iterations}.nii.gz")
- apply_morphology(roi_path, iterations, 'erode', eroded_roi_path)
- # Dilation
- print(f" Calculating dilated features (iter={iterations})...")
- dilated_roi_path = os.path.join(data_dir, f"{pid}_roi_dilated_{iterations}.nii.gz")
- apply_morphology(roi_path, iterations, 'dilate', dilated_roi_path)
- #Eroded Feature Calculation
- feats_erode = extract_features(extractor, adc_path, eroded_roi_path)
- if feats_erode:
- feats_erode['Patient_ID'] = pid
- results_eroded[iterations].append(feats_erode)
- #Dilated Feature Calculation
- feats_dilate = extract_features(extractor, adc_path, dilated_roi_path)
- if feats_dilate:
- feats_dilate['Patient_ID'] = pid
- results_dilated[iterations].append(feats_dilate)
- # Save DataFrames with Patient_ID as the first column
- def save_df(result_list, filename):
- if not result_list:
- return
- df = pd.DataFrame(result_list)
- cols = ['Patient_ID'] + [c for c in df.columns if c != 'Patient_ID']
- df = df[cols]
- df.to_csv(filename, index=False)
- print(f"Saved: {filename}")
- # Save all outputs
- save_df(results_original, os.path.join(data_dir, "original_data.csv"))
- for i in [1, 2, 3]:
- save_df(results_eroded[i], os.path.join(data_dir, f"eroded_{i}_features.csv"))
- save_df(results_dilated[i], os.path.join(data_dir, f"dilated_{i}_features.csv"))
- if __name__ == "__main__":
- main()
FeatureExtraction.py at commit 94ab7c2, no license · at the source
Overview
- Aston Institute of Health and Neurodevelopment, Aston University, Birmingham, United Kingdom
- Department of Oncology, Birmingham Women’s and Children’s Hospital NHS Foundation Trust, Birmingham, United Kingdom
- Institute of Cancer & Genomics Science, University of Birmingham, Birmingham, United Kingdom
- Medical Physics Nottingham University Hospitals NHS Trust, Nottingham, United Kingdom
- School of Medicine, University of Nottingham, Nottingham, United Kingdom
Abstract
Objectives: This research aims to comprehensively assess the impact of both conservatively and extensively delineated Regions of Interest (ROI) on subsequent quantitative in-vivo characterisation of paediatric brain tumours using diffusion-weighted MRI.
Methods: Utilising a retrospective cohort of 106 paediatric brain tumour patients, ground truth (GT) ROIs delineating tumour boundaries were eroded or dilated, simulating conservative and extensive ROI drawing strategies respectively. Stability was evaluated for 19 first-order radiomic features extracted from Apparent Diffusion Coefficient (ADC) maps within each ROI. Further, these features were used to train a series of machine learning models to evaluate the impact of ROI boundaries on downstream diagnostic classification.
Results: For 18/
Conclusion: The consistently reduced impact of conservative boundaries over extensive ones suggests that, in terms of segmentation strategies, exclusion of ambiguous boundary regions may be preferable over their inclusion. Additionally, diagnostic models exhibited improved robustness to variable ROI drawing strategies through training augmentation and selection of stable features.
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 1 match between paragraphs and lines of code.
tmulvanyAC/ADC_Radiomic_Stability
94ab7c2d94f32e3376eed08da900b4aa92837c57, 20 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
2 files
- FeatureExtraction.py, Python, 144 lines, 1 match
- RunExperiments.py, Python, 252 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;
- 2 scripts, each with its path and the digest of its content;
- 1 match 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
Due to the sensitive nature of the data used in this study, which involves child patient data, the full raw datasets cannot be shared publicly. Access to the data is restricted in accordance with ethical guidelines and study protocol. Therefore, the data for this publication cannot be made available. For more information about data availability, contact Sara Burling at . Specific sections of code covering the image processing and machine learning/
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 2, 28 September 2026
- Funding: added National Institute for Health and Care Research
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 12 MeSH terms, 29 references.
Cite
This paper
Mulvany, T., Griffiths-King, D., Worthington, L., Crombie, K., Rose, H. E. L., Peet, A., Apps, J., & Novak, J. (2026). Evaluating the impact of segmentation strategies on radiomic feature stability for paediatric brain tumour diagnosis using diffusion weighted imaging. PloS one, 21(8), e0356382. https://
BibTeX
@article{mulvany2026eval
author = {Mulvany, Timothy and Griffiths-King, Daniel and Worthington, Lara and Crombie, Katherine and Rose, Heather E. L. and Peet, Andrew and Apps, John and Novak, Jan},
title = {{Evaluating the impact of segmentation strategies on radiomic feature stability for paediatric brain tumour diagnosis using diffusion weighted imaging}},
journal = {PloS one},
year = {2026},
month = aug,
volume = {21},
number = {8},
pages = {e0356382},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/
url = {https://
pmid = {42611869},
pmcid = {PMC13484970}
}
RIS
TY - JOUR
AU - Mulvany, Timothy
AU - Griffiths-King, Daniel
AU - Worthington, Lara
AU - Crombie, Katherine
AU - Rose, Heather E. L.
AU - Peet, Andrew
AU - Apps, John
AU - Novak, Jan
TI - Evaluating the impact of segmentation strategies on radiomic feature stability for paediatric brain tumour diagnosis using diffusion weighted imaging
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/
VL - 21
IS - 8
SP - e0356382
SN - 1932-6203
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Evaluating the impact of segmentation strategies on radiomic feature stability for paediatric brain tumour diagnosis using diffusion weighted imaging",
"container-title": "PloS one",
"author": [
{
"family": "Mulvany",
"given": "Timothy"
},
{
"family": "Griffiths-King",
"given": "Daniel"
},
{
"family": "Worthington",
"given": "Lara"
},
{
"family": "Crombie",
"given": "Katherine"
},
{
"family": "Rose",
"given": "Heather E. L."
},
{
"family": "Peet",
"given": "Andrew"
},
{
"family": "Apps",
"given": "John"
},
{
"family": "Novak",
"given": "Jan"
}
],
"container-title-short":
"volume": "21",
"issue": "8",
"page": "e0356382",
"DOI": "10.1371/
"PMID": "42611869",
"PMCID": "PMC13484970",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
18
]
]
}
}
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.1093/braincomms/fcag317 [code]
- Deep learning segmentation of paediatric brain tumours using diffusion-weighted MRI: towards an early, &
lt;i& gt;in vivo& lt;/ i& gt; classification pipeline. Journal: Brain communicationsIn common: NiBabel, pandas, NumPy, structural MRI / diffusion, other condition, 6 references, 3 authors - [2] doi:10.1038/s41598-026-56688-y [code]
- On the value of radiomics in addition to clinical measures in emotional conflict fMRI for predicting sertraline response in major depressive disorder.Journal: Scientific reportsIn common: PyRadiomics, NiBabel, scikit-learn, 3 other tools, 3 references
- [3] doi:10.1038/s41598-026-47942-4 [code]
- CT-based radiomic markers to predict late-onset seizures after traumatic brain injury.Journal: Scientific reportsIn common: PyRadiomics, NiBabel, scikit-learn, 3 other tools, clinical / translational, other condition, 1 reference
- [4] 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: Pingouin, OpenCV, NiBabel, 4 other tools, structural MRI / diffusion, other condition
- [5] doi:10.3390/cancers18162636 [code]
- Exploring the Impact of T2-Weighted MRI Fat Saturation on Radiomics Stability for Brain Radionecrosis Prediction After Skull-Base Proton Therapy: A Pilot Study.Journal: CancersIn common: PyRadiomics, scikit-learn, pandas, 2 other tools, structural MRI / diffusion, clinical / translational, 1 reference
- [6] doi:10.1186/s13244-026-02296-3 [code]
- A pre-trained foundation model framework for multiplanar MRI classification of extramural vascular invasion and mesorectal fascia invasion in rectal cancer.Journal: Insights into imagingIn common: OpenCV, NiBabel, scikit-learn, 3 other tools, structural MRI / diffusion, other condition, 1 reference
- [7] doi:10.1186/s13244-026-02365-7 [code]
- Super-resolution MRI and 2.5D deep learning for intratumoral-peritumoral
radiomics in preoperative prediction of rectal cancer perineural invasion. Journal: Insights into imagingIn common: PyRadiomics, NiBabel, scikit-learn, 3 other tools, structural MRI / diffusion, other condition - [8] doi:10.21203/rs.3.rs-9914920/v1 [code]
- Prediction of cognitive performance by demographics, sleep, and brain morphometry: machine learning findings from ENIGMA-Sleep Working GroupJournal: Research Square (preprint)In common: Pingouin, NiBabel, scikit-learn, 3 other tools, structural MRI / diffusion, 1 reference
- [9] doi:10.3389/fonc.2026.1816015 [code]
- Modality-level attribution and redundancy-aware radiomics for MRI-based differentiation of melanoma and NSCLC brain metastases.Journal: Frontiers in oncologyIn common: PyRadiomics, NiBabel, scikit-learn, 3 other tools, structural MRI / diffusion, other condition
- [10] doi:10.1038/s41593-026-02228-w [code]
- Circuit response to neuromodulation characterized with simultaneous deep brain stimulation and precision neuroimaging in humans.Journal: Nature neuroscienceIn common: Pingouin, OpenCV, NiBabel, 4 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: 1 repository of the authors' code, each at its verified commit and with its license, 2 scripts, and 1 match 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:58737e2967d4bd86…
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.
