Evaluating the impact of segmentation strategies on radiomic feature stability for paediatric brain tumour diagnosis using diffusion weighted imaging.
One block of code here has a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 1 match
- [1] § 2 Materials and methods › 2.1 Data › 2.1.5 Feature extraction. ↔ FeatureExtraction.py, lines 60 to 139 · score 0.72 · bin width, PyRadiomics, resampling, ROIs, ADC, eroded · block
oscr:b:RWBMDPSHEVS49-3· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.1371/journal.pone.0323398 [code]
- Ratio maps of T1w/
T2w MRI signal intensity do not improve deep-learning segmentation of pediatric brain tumors. Journal: PloS oneIn common: NiBabel, scikit-learn, pandas, 2 other tools, structural MRI / diffusion, other condition, 3 authors - [3] doi:10.3390/cancers15164015 [code]
- Deciphering Machine Learning Decisions to Distinguish between Posterior Fossa Tumor Types Using MRI Features: What Do the Data Tell Us?Journal: CancersIn common: scikit-learn, pandas, SciPy, 1 other tool, structural MRI / diffusion, other condition, 5 references
- [4] doi:10.1038/s41598-022-20703-9 [code]
- Robustness of radiomics to variations in segmentation methods in multimodal brain MRI.Journal: Scientific reportsIn common: PyRadiomics, Pingouin, NiBabel, 4 other tools, structural MRI / diffusion, other condition, 3 references
- [5] doi:10.1038/s41467-023-44591-3 [code]
- Radiomic tractometry reveals tract-specific imaging biomarkers in white matter.Journal: Nature communicationsIn common: PyRadiomics, NiBabel, scikit-learn, 3 other tools, structural MRI / diffusion, clinical / translational, 3 references
- [6] doi:10.1038/s41598-023-42414-5
- Predicting 'Brainage' in late childhood to adolescence (6-17yrs) using structural MRI, morphometric similarity, and machine learning.Journal: Scientific reportsIn common: structural MRI / diffusion, 2 authors
- [7] doi:10.3389/fmed.2021.748144 [code]
- Differentiation of Brain Abscess From Cystic Glioma Using Conventional MRI Based on Deep Transfer Learning Features and Hand-Crafted Radiomics Features.Journal: Frontiers in medicineIn common: PyRadiomics, OpenCV, scikit-learn, 3 other tools, structural MRI / diffusion, clinical / translational, other condition, 2 references
- [8] doi:10.1093/noajnl/vdag132 [code]
- Spherical radiomics for radiogenomic assessment of glioblastoma heterogeneity.Journal: Neuro-oncology advancesIn common: PyRadiomics, Pingouin, NiBabel, 4 other tools, structural MRI / diffusion, clinical / translational, other condition, 1 reference
- [9] 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
- [10] doi:10.1093/neuonc/noaf058 [code]
- Applications of artificial intelligence and advanced imaging in pediatric diffuse midline glioma.Journal: Neuro-oncologyIn common: PyRadiomics, NiBabel, pandas, 2 other tools, structural MRI / diffusion, clinical / translational, other condition, 2 references
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:3b02049572689f4d…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1371/journal.pone.0356382)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1371/journal.pone.0356382.svg
:target: https://openscicode.org/badge/doi/10.1371/journal.pone.0356382
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pone.0356382"><img src="https://openscicode.org/badge/doi/10.1371/journal.pone.0356382.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
