Predicting future brain atrophy based on longitudinal MRI.
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 2 matches
- [1] § Methods › Implementation and performance evaluation ↔ Models.R, lines 1 to 50 · score 0.68 · Pearson correlation coefficient, absolute error, metrics, glmnet, brain, models · block
oscr:b:2F5VMTB8KZX7B-X· Report a mismatch - [2] § Methods › Implementation and performance evaluation ↔ Models.R, lines 1 to 50 · score 0.54 · correlation coefficients, confidence intervals, error · block
oscr:b:2F5VMTB8KZX7B-X· 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
R · 120 lines · 3.9 KB · MIT · 2 matches
- # Elastic Net Model for Predicting Brain Atrophy
- # Author: Maryam Hadji, University of Eastern Finland, Kuopio, Finland ([email hidden])
- # Last updated: 20.Feb.2025
- # Requirements:
- # R version 4.3.1 or later
- # install.packages("glmnet")
- # install.packages("caret", dependencies = c("Depends", "Suggests"))
- # install.packages("Metrics")
- # Usage:
- # Set working directory to the directory containing this script
- # source('ENLR.R')
- # Parameters:
- # model_type: An integer (1, 2, 3, or 4) indicating the model configuration to use
- # Y: response variable (hippocampal atrophy percentage)
- # seed: seed number for reproducible results
- # Returned values:
- # A list of model performance metrics including:
- # - Pearson_R: Pearson correlation coefficients
- # - Spearman_R: Spearman correlation coefficients
- # - allmae: Mean Absolute Error values
- # - CI: Confidence Intervals for predictions
- # - coef_all: Coefficients from the model
- # Model name
- # 1-BL_ MRI only
- # 2-BL_ MRI+Riskfactors
- # 3-Longitudinal_ MRI only
- # 4-Longitudinal_ MRI+Riskfactors
- # Load Required Libraries
- library(Matrix)
- library(ggplot2)
- library(lattice)
- library(Metrics)
- library(caret)
- library(randomForest)
- library(dplyr)
- library(glmnet)
- # Load Custom Functions
- source("Functions/ENLR.R")
- source("Functions/conf_int_2.R")
- # Load Data
- load("TotalData_bl_24_48.Rdata")
- # Function to Calculate Annualized Percentage Change
- Annualized_percentage_change <- function(MRI_24, MRI_48, region = "hippocampus") {
- if (region == "hippocampus") {
- region_24 <- rowMeans(MRI_24[, c("Right Hippocampus", "Left Hippocampus")], na.rm = TRUE)
- region_48 <- rowMeans(MRI_48[, c("Right Hippocampus", "Left Hippocampus")], na.rm = TRUE)
- } else if (region == "ventricles") {
- region_24 <- rowMeans(MRI_24[, c("Right Inf Lat Vent", "Left Inf Lat Vent",
- "Right Lateral Ventricle", "Left Lateral Ventricle")], na.rm = TRUE)
- region_48 <- rowMeans(MRI_48[, c("Right Inf Lat Vent", "Left Inf Lat Vent",
- "Right Lateral Ventricle", "Left Lateral Ventricle")], na.rm = TRUE)
- } else if (region == "TGM") {
- region_24 <- totalgray_24
- region_48 <- totalgray_48
- } else {
- stop("Invalid region specified. Choose 'hippocampus', 'ventricles', or 'TGM'.")
- }
- return(((region_24 - region_48) / region_24) * 100 / 2)
- }
- # Function to Prepare Data and Run Elastic Net Model
- run_model <- function(model_type, region = "hippocampus", seed = 123) {
- set.seed(seed)
- # Calculate Atrophy Rate for Selected Region
- Y <- Annualized_percentage_change(MRI_24, MRI_48, region)
- if (model_type == 1) {
- Xdata <- cbind(MRI_24, Feild_strengt)
- } else if (model_type == 2) {
- Xdata <- cbind(MRI_24, Age, sex, DX_24, Feild_strengt)
- } else if (model_type == 3) {
- Xdata <- cbind(MRI_24, MRI_24bl, Feild_strengt)
- } else if (model_type == 4) {
- Xdata <- cbind(MRI_24, MRI_24bl, Age, sex, APOE4, DX_24, Feild_strengt)
- } else {
- stop("Invalid model type. Choose 1, 2, 3, or 4.")
- }
- RID <- rownames(Xdata)
- # Normalization
- normParam <- preProcess(Xdata, method = c("center", "scale"))
- Xdata <- predict(normParam, Xdata)
- Pearson_R <- vector()
- Spearman_R <- vector()
- allmae <- vector()
- yhat_pred <- matrix(0, nrow = length(RID), ncol = 10)
- coef_all <- list()
- for (ll in 1:10) {
- res <- ENLR(Xdata, Y, 0.5, ll)
- coef_all[[ll]] <- res$coefs
- yhat_pred[, ll] <- res$yhat
- Pearson_R <- c(Pearson_R, res$pearson_cor)
- Spearman_R <- c(Spearman_R, res$spearman_cor)
- allmae <- c(allmae, res$MAE)
- }
- # Confidence Interval calculation
- CI <- conf_int(yhat_pred, Y, nboot = 1000, alpha = 0.05)
- save(Pearson_R, Spearman_R, allmae, yhat_pred, Y, coef_all, CI, DX_bl, DX,
- file = paste0("Results/Model_", model_type, "_", region, "_ENLR.Rdata"))
- return(list(Pearson_R = mean(Pearson_R), Spearman_R = mean(Spearman_R),
- allmae = mean(allmae), CI = CI, coef_all = coef_all))
- }
Models.R at commit b57f8b7, under MIT · at the source
Overview
Abstract
Background: Neuron loss is a hallmark of neurodegenerative diseases and leads to brain atrophy detectable with magnetic resonance imaging (MRI). Accurate prediction of future atrophy is valuable for research in Alzheimer's disease (AD) and related dementias.
Objective: This study aimed to predict annualized percentage changes in hippocampal, ventricular, and total gray matter (TGM) volumes in individuals ranging from cognitively normal to dementia, and to evaluate whether longitudinal MRI-derived change measures improve prediction performance compared with single-time-point MRI information.
Methods: Using elastic net regression, we compared baseline models based on single-timepoint MRI information with longitudinal models incorporating prior MRI-derived change measures. Both approaches were evaluated as MRI-only and MRI + risk-factor variants, with risk factors including age, sex, APOE4, and diagnostic status.
Results: In cross-validated analyses using the Alzheimer's Disease Neuroimaging Initiative (ADNI) cohort, the longitudinal MRI + risk-factor model performed best, yielding Pearson correlations of 0.62 for hippocampal atrophy, 0.51 for ventricular enlargement, and 0.41 for TGM atrophy. Longitudinal models consistently outperformed single time-point models, and adding risk factors improved predictive performance beyond MRI alone. External validation using the Australian Imaging, Biomarkers and Lifestyle cohort confirmed these findings. Predicted atrophy outperformed present-day regional volumes in identifying individuals progressing from normal cognition to MCI/
Conclusions: MRI-derived longitudinal features enhance atrophy prediction, and predicted atrophy rates provide sensitive markers of future cognitive decline. These findings support the potential utility of predicted atrophy for cohort enrichment and therapeutic trial design.
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 2 matches between paragraphs and lines of code.
MaryamHadji/Future-prediction
b57f8b7df185c9ac36a0039758c38f14f350d857, 3 October 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
14 files
- AUC.R, R, 80 lines
- Annualized percentage change.R, R, 27 lines
- Barplot.R, R, 112 lines
- ENLR.R, R, 76 lines
- External Evaluation_Conversion_CN
.R , R, 76 lines - External Evaluation_Conversion_MC
I.R , R, 76 lines - Models.R, R, 120 lines, 2 matches
- Progression Prediction_CN.R, R, 91 lines
- Progression Prediction_MCI.R, R, 83 lines
- Pvalue.R, R, 47 lines
- ROC_Values.R, R, 81 lines
- ScatterPlot.R, R, 66 lines
- LICENSE, License, 21 lines
- README.md, Text, 41 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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 12 scripts, each with its path and the digest of its content;
- 2 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
- Publisher: n/a → IOS Press
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 9 keywords, 14 MeSH terms, 3 funders, 54 references.
Cite
This paper
Hadji, M., Moradi, E., & Tohka, J. (2026). Predicting future brain atrophy based on longitudinal MRI. Journal of Alzheimer's disease : JAD, 113(2), 796-812. https://
BibTeX
@article{hadji2026predic
author = {Hadji, Maryam and Moradi, Elaheh and Tohka, Jussi},
title = {{Predicting future brain atrophy based on longitudinal MRI}},
journal = {Journal of Alzheimer's disease : JAD},
year = {2026},
month = jul,
volume = {113},
number = {2},
pages = {796--812},
publisher = {IOS Press},
issn = {1387-2877},
doi = {10.1177/
url = {https://
pmid = {42517811},
pmcid = {PMC13554364}
}
RIS
TY - JOUR
AU - Hadji, Maryam
AU - Moradi, Elaheh
AU - Tohka, Jussi
TI - Predicting future brain atrophy based on longitudinal MRI
T2 - Journal of Alzheimer's disease : JAD
J2 - J Alzheimers Dis
PY - 2026
DA - 2026/
VL - 113
IS - 2
SP - 796
EP - 812
SN - 1387-2877
PB - IOS Press
DO - 10.1177/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1177/
"type": "article-journal",
"title": "Predicting future brain atrophy based on longitudinal MRI",
"container-title": "Journal of Alzheimer's disease : JAD",
"author": [
{
"family": "Hadji",
"given": "Maryam"
},
{
"family": "Moradi",
"given": "Elaheh"
},
{
"family": "Tohka",
"given": "Jussi"
}
],
"container-title-short":
"volume": "113",
"issue": "2",
"page": "796-812",
"DOI": "10.1177/
"PMID": "42517811",
"PMCID": "PMC13554364",
"ISSN": "1387-2877",
"publisher": "IOS Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
28
]
]
}
}
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.1186/s12967-024-06046-1 [code]
- Reversal gene expression assessment for drug repurposing, a case study of glioblastoma.Journal: Journal of translational medicineIn common: randomForest, pROC, glmnet, 3 other tools, 1 reference
- [2] doi:10.1186/s13148-025-02015-7 [code]
- Association of blood-based DNA methylation of lncRNAs with Alzheimer's disease diagnosis.Journal: Clinical epigeneticsIn common: randomForest, pROC, glmnet, 3 other tools, Alzheimer's / dementia, clinical / translational
- [3] doi:10.3390/genes14061285 [code]
- Metabolic Pathway Pairwise-Based Signature as a Potential Non-Invasive Diagnostic Marker in Alzheimer's Disease Patients.Journal: GenesIn common: randomForest, pROC, glmnet, 3 other tools, Alzheimer's / dementia, clinical / translational
- [4] doi:10.1186/s12967-025-06402-9 [code]
- Construction of enhanced MRI-based radiomics models using machine learning algorithms for non-invasive prediction of IL7R expression in high-grade gliomas and its prognostic value in clinical practice.Journal: Journal of translational medicineIn common: randomForest, pROC, glmnet, 3 other tools, structural MRI / diffusion, clinical / translational
- [5] doi:10.1002/alz.70227 [code]
- Real-world brain imaging in a population-based cohort enables accurate markers for dementia.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: ggplot2, tidyverse, Alzheimer's / dementia, structural MRI / diffusion, clinical / translational, 5 references
- [6] doi:10.1038/s41598-026-34997-6 [code]
- Uncovering the role of integrated stress in Alzheimer's disease through single-cell and transcriptomic analysis.Journal: Scientific reportsIn common: randomForest, pROC, glmnet, 3 other tools, Alzheimer's / dementia
- [7] doi:10.1002/hbm.26708 [code]
- DeepComBat: A statistically motivated, hyperparameter-robust, deep learning approach to harmonization of neuroimaging data.Journal: Human brain mappingIn common: randomForest, pROC, caret, 2 other tools, structural MRI / diffusion, 2 references
- [8] doi:10.1093/braincomms/fcaf493 [code]
- Subcortical correlates of developmental language disorder: more than the neostriatum.Journal: Brain communicationsIn common: randomForest, pROC, glmnet, 3 other tools, structural MRI / diffusion
- [9] doi:10.1162/netn_a_00292 [code]
- Larger lesion volume in people with multiple sclerosis is associated with increased transition energies between brain states and decreased entropy of brain activity.Journal: Network neuroscience (Cambridge, Mass.)In common: randomForest, pROC, glmnet, 3 other tools, structural MRI / diffusion
- [10] doi:10.1038/s41698-025-00909-6 [code]
- Diagnostic and prognostic potential of cell-free RNAs in cerebrospinal fluid and plasma for brain tumors.Journal: NPJ precision oncologyIn common: randomForest, pROC, glmnet, 3 other tools, clinical / translational
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, 12 scripts, and 2 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:9091ac6d220e6ec2…
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.1177/13872877261471049)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1177/13872877261471049.svg
:target: https://openscicode.org/badge/doi/10.1177/13872877261471049
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1177/13872877261471049"><img src="https://openscicode.org/badge/doi/10.1177/13872877261471049.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.
