Benchmarking privacy and utility in synthetic tabular cohorts for Alzheimer's disease research.
7 blocks of code here have 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 7 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
- [1] § METHODS › Privacy evaluation ↔ R/benchmark.plots.R, lines 273 to 317 · score 0.67 · privacy loss, hitting rate, identifiability risk, ADR, NNDR, NNAA · block
oscr:b:EPXSJ3BRKN3BH-9· Report a mismatch - [2] § RESULTS › Privacy analysis ↔ R/bmk_ctgan.R, the whole file · a weak match · score 0.60 · confidence interval, hitting rate, identifiability risk, recall, MIA, CTGAN · block
oscr:b:152ZJ1N6GPZXS-K· Report a mismatch - [3] § RESULTS › Privacy analysis ↔ R/bmk_degrees.R, lines 1 to 72 · score 0.59 · confidence interval, hitting rate, identifiability risk, recall, MIA, score · block
oscr:b:WJCZTXFH1YAA8-F· Report a mismatch - [4] § METHODS › Generating synthetic tabular data ↔ python/bayesian_synthesizing.py, lines 17 to 59 · score 0.56 · correlated attribute mode, Bayesian networks, root, privacy · block
oscr:b:TZDXRV1MH40RD-W· Report a mismatch - [5] § METHODS › Utility evaluation › Missing values ↔ python/train_svm.py, lines 108 to 116 · score 0.56 · IterativeImputer, SimpleImputer, imputed, training · block
oscr:b:6XW414J5N116D-M· Report a mismatch - [6] § METHODS › Utility evaluation › Missing values ↔ python/main_ctgan.py, lines 31 to 43 · score 0.56 · IterativeImputer, SimpleImputer, imputed, CTGAN · block
oscr:b:5RPAMPWXRSM2S-X· Report a mismatch - [7] § METHODS › Privacy evaluation ↔ python/eval_benchmark.py, lines 111 to 140 · score 0.53 · SynthEval, hitting rate, NNDR, benchmarking, NNAA, MIA · block
oscr:b:AW6CYDVZFG00K-Y· 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 · 717 lines · 28 KB · MIT · 1 match
- library(dplyr)
- library(Rmisc)
- library(ggplot2)
- library(ggpubr)
- library(stringr)
- library(ggforce)
- library(paletteer)
- library(ggsci)
- ##### ADNI #####
- epsilons <- c(5, 10, 50, 100, 200, NA)
- samples <- c(rep(100, length(epsilons)-length(which(is.na(epsilons)))), 18)
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/adni/bmk_new_deg2_eps", ifelse(is.na(epsilons), "zero", epsilons), ".csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(epsilons)) {
- df <- read.csv(file_paths[i])
- df$Epsilon <- epsilons[i]
- df$samples <- samples[i]
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_ds <- bind_rows(res_list)
- util_cols <- c("mutual_inf_diff_value", "ks_tvd_stat_value",
- "frac_ks_sigs_value","avg_F1_diff_value", "avg_F1_diff_hout_value",
- "nnaa_value")
- priv_cols <- c("priv_loss_nndr_value", "priv_loss_nnaa_value","hit_rate_value",
- "avg_nndr_value", "eps_identif_risk_value", "priv_loss_eps_value",
- "mia_recall_value", "att_discl_risk_value")
- cols <- c(util_cols, priv_cols)
- bmk_ds$Epsilon <- bmk_ds %>%
- select(Epsilon) %>%
- mutate_all(~replace(., is.na(.), 0)) %>%
- mutate(Epsilon = factor(Epsilon, levels = as.character(unique(Epsilon)))) %>%
- pull(Epsilon)
- # CTGAN
- epochs <- c(750)
- setting <- c("default", "optim")
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/adni/bmk_new_ctgan_", setting, "_epochs_", epochs, ".csv")
- #file_paths <- c(file_paths, "~/Python/WASP-DDLS/SE-benchmark/bmk_ctgan_epochs_100.csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(file_paths)) {
- df <- read.csv(file_paths[i])
- df$Epochs <- epochs[i]
- df$samples <- 100
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_ctgan <- bind_rows(res_list)
- bmk_ctgan$Epochs <- as.factor(bmk_ctgan$Epochs)
- # Synthpop
- bmk_synthpop <- read.csv("~/Python/WASP-DDLS/SE-benchmark/adni/bmk_synthpop_2.csv") %>% mutate(
- Epochs = 0,
- samples = 100
- )
- # TabPFN
- temps <- c('1.0', '0.75', '0.5', '0.25')
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/adni/bmk_new_tabpfn_t_", temps, ".csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(file_paths)) {
- df <- read.csv(file_paths[i])
- df$temp <- temps[i]
- df$samples <- 100
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_tabpfn <- bind_rows(res_list)
- bmk_tabpfn$temp <- as.factor(bmk_tabpfn$temp)
- label_list = c("DS (5)", "DS (10)","DS (50)","DS (100)",
- "DS (200)", "DS w/o DP", "CTGAN (default)", "CTGAN (optimal)",
- "Synthpop",
- "TabPFN (t=1.0)", "TabPFN (t=0.75)", "TabPFN (t=0.5)", "TabPFN (t=0.25)")
- util_df_adni <- rbind(select(bmk_ds, dataset, model, all_of(util_cols)),
- select(bmk_ctgan, dataset, model, all_of(util_cols)),
- select(bmk_synthpop, dataset, model, all_of(util_cols)),
- select(bmk_tabpfn, dataset, model, all_of(util_cols))) |>
- dplyr::mutate(avg_F1_diff_value = abs(avg_F1_diff_value),
- avg_F1_diff_hout_value = abs(avg_F1_diff_hout_value)) |>
- dplyr::mutate(mutual_inf_diff = 1 - tanh(mutual_inf_diff_value),
- ks_tvd_stat = 1 - ks_tvd_stat_value,
- frac_ks_sigs = 1 - frac_ks_sigs_value,
- avg_F1_diff = 1 - abs(avg_F1_diff_value),
- avg_F1_diff_hout = 1 - abs(avg_F1_diff_hout_value),
- nnaa = 1 - nnaa_value)
- util_df_adni$util_score <- util_df_adni |> dplyr::select(c(mutual_inf_diff, ks_tvd_stat, frac_ks_sigs, avg_F1_diff, avg_F1_diff_hout, nnaa)) |> rowMeans()
- util_df_adni$Method <- factor(util_df_adni$dataset, levels = unique(util_df_adni$dataset),
- labels=label_list)
- priv_df_adni <- rbind(select(bmk_ds, dataset, model, all_of(priv_cols)),
- select(bmk_ctgan, dataset, model, all_of(priv_cols)),
- select(bmk_synthpop, dataset, model, all_of(priv_cols)),
- select(bmk_tabpfn, dataset, model, all_of(priv_cols))) |>
- dplyr::mutate(priv_loss_nndr = 1 - abs(priv_loss_nndr_value),
- priv_loss_nnaa = 1 - abs(priv_loss_nnaa_value),
- priv_loss_eps = 1 - abs(priv_loss_eps_value),
- hit_rate = 1 - hit_rate_value,
- eps_identif_risk = 1 - eps_identif_risk_value,
- mia_recall = 1 - mia_recall_value,
- att_discl_risk = 1 - att_discl_risk_value)
- priv_df_adni$priv_score <- priv_df_adni |> dplyr::select(c(priv_loss_nndr, priv_loss_nnaa, priv_loss_eps, hit_rate, eps_identif_risk, att_discl_risk)) |> rowMeans()
- priv_df_adni$Method <- factor(priv_df_adni$dataset, levels = unique(priv_df_adni$dataset),
- labels=label_list)
- up_df_adni <- util_df_adni |> dplyr::select(c(Method, model, util_score)) |>
- dplyr::inner_join(priv_df_adni |> dplyr::select(c(Method, model, priv_score)), by = c("Method", "model"))
- colormap <- c(
- paletteer_d("rcartocolor::BluYl")[1:6],
- paletteer_d("beyonce::X58")[3:4],
- "#663399",
- paletteer_d("ggsci::cyan_material")[c(1,3,5,7)]
- )
- up_plot_adni <- ggplot(data = up_df_adni, aes(x=util_score, y=priv_score, fill=Method)) +
- geom_point(pch=21, color = "black", size=3) +
- labs(title = "ADNI", x = "Utility", y = "Privacy") +
- #scale_fill_paletteer_d("rcartocolor::BluYl") +
- scale_fill_manual(values = colormap) +
- theme_minimal() +
- ylim(0.7,1.0) + xlim(0.3,0.85)
- plot(up_plot_adni)
- #ggsave("~/R/DDLS-plots/up_plot.png", up_plot, width = 7, height = 5, units = "in", dpi = 500)
- ###### A4 #########
- epsilons <- c(5, 10, 50, 100, 200, NA)
- samples <- c(rep(100, length(epsilons)-length(which(is.na(epsilons)))), 23)
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/a4/bmk_new_deg2_eps", ifelse(is.na(epsilons), "zero", epsilons), ".csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(epsilons)) {
- df <- read.csv(file_paths[i])
- df$Epsilon <- epsilons[i]
- df$samples <- samples[i]
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_ds <- bind_rows(res_list)
- util_cols <- c("mutual_inf_diff_value", "ks_tvd_stat_value",
- "frac_ks_sigs_value","avg_F1_diff_value", "avg_F1_diff_hout_value",
- "nnaa_value")
- priv_cols <- c("priv_loss_nndr_value", "priv_loss_nnaa_value","hit_rate_value",
- "avg_nndr_value", "eps_identif_risk_value", "priv_loss_eps_value",
- "mia_recall_value", "att_discl_risk_value")
- cols <- c(util_cols, priv_cols)
- bmk_ds$Epsilon <- bmk_ds %>%
- select(Epsilon) %>%
- mutate_all(~replace(., is.na(.), 0)) %>%
- mutate(Epsilon = factor(Epsilon, levels = as.character(unique(Epsilon)))) %>%
- pull(Epsilon)
- # CTGAN
- epochs <- c(750)
- setting <- c("default", "optim")
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/a4/bmk_new_ctgan_", setting, "_epochs_", epochs, ".csv")
- #file_paths <- c(file_paths, "~/Python/WASP-DDLS/SE-benchmark/bmk_ctgan_epochs_100.csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(file_paths)) {
- df <- read.csv(file_paths[i])
- df$Epochs <- epochs[i]
- df$samples <- 100
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_ctgan <- bind_rows(res_list)
- bmk_ctgan$Epochs <- as.factor(bmk_ctgan$Epochs)
- # Synthpop
- bmk_synthpop <- read.csv("~/Python/WASP-DDLS/SE-benchmark/a4/bmk_new_synthpop.csv") %>% mutate(
- Epochs = 0,
- samples = 100
- )
- # TabPFN
- temps <- c('1.0')
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/a4/bmk_new_tabpfn_t_", temps, ".csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(file_paths)) {
- df <- read.csv(file_paths[i])
- df$temp <- temps[i]
- df$samples <- 100
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_tabpfn <- bind_rows(res_list)
- bmk_tabpfn$temp <- as.factor(bmk_tabpfn$temp)
- label_list = c("DS (5)", "DS (10)", "DS (50)", "DS (100)", "DS (200)", "DS w/o DP",
- "CTGAN (default)", "CTGAN (optimal)",
- "Synthpop", "TabPFN (t=1.0")
- util_df_a4 <- rbind(select(bmk_ds, dataset, model, all_of(util_cols)),
- select(bmk_ctgan, dataset, model, all_of(util_cols)),
- select(bmk_synthpop, dataset, model, all_of(util_cols)),
- select(bmk_tabpfn, dataset, model, all_of(util_cols))
- ) |>
- dplyr::mutate(avg_F1_diff_value = abs(avg_F1_diff_value),
- avg_F1_diff_hout_value = abs(avg_F1_diff_hout_value)) |>
- dplyr::mutate(mutual_inf_diff = 1 - tanh(mutual_inf_diff_value),
- ks_tvd_stat = 1 - ks_tvd_stat_value,
- frac_ks_sigs = 1 - frac_ks_sigs_value,
- avg_F1_diff = 1 - abs(avg_F1_diff_value),
- avg_F1_diff_hout = 1 - abs(avg_F1_diff_hout_value),
- nnaa = 1 - nnaa_value)
- util_df_a4$util_score <- util_df_a4 |> dplyr::select(c(mutual_inf_diff, ks_tvd_stat, frac_ks_sigs, avg_F1_diff, avg_F1_diff_hout, nnaa)) |> rowMeans()
- util_df_a4$Method <- factor(util_df_a4$dataset, levels = unique(util_df_a4$dataset),
- labels=label_list)
- priv_df_a4 <- rbind(select(bmk_ds, dataset, model, all_of(priv_cols)),
- select(bmk_ctgan, dataset, model, all_of(priv_cols)),
- select(bmk_synthpop, dataset, model, all_of(priv_cols)),
- select(bmk_tabpfn, dataset, model, all_of(priv_cols))
- ) |>
- dplyr::mutate(priv_loss_nndr = 1 - abs(priv_loss_nndr_value),
- priv_loss_nnaa = 1 - abs(priv_loss_nnaa_value),
- priv_loss_eps = 1 - abs(priv_loss_eps_value),
- hit_rate = 1 - hit_rate_value,
- eps_identif_risk = 1 - eps_identif_risk_value,
- mia_recall = 1 - mia_recall_value,
- att_discl_risk = 1 - att_discl_risk_value)
- priv_df_a4$priv_score <- priv_df_a4 |> dplyr::select(c(priv_loss_nndr, priv_loss_nnaa, priv_loss_eps, hit_rate, eps_identif_risk, att_discl_risk)) |> rowMeans()
- priv_df_a4$Method <- factor(priv_df_a4$dataset, levels = unique(priv_df_a4$dataset),
- labels=label_list)
- up_df_a4 <- util_df_a4 |> dplyr::select(c(Method, model, util_score)) |>
- dplyr::inner_join(priv_df_a4 |> dplyr::select(c(Method, model, priv_score)), by = c("Method", "model"))
- up_df_a4 <- up_df_a4 %>% mutate(Framework = as.factor(gsub(" .*", "", Method)))
- #up_df$Method <- factor(up_df$dataset, levels = unique(up_df$dataset),
- # labels=c("DS (eps=5)", "DS (eps=10)", "DS (eps=25)","DS (eps=50)","DS (eps=100)",
- # "DS (eps=200)", "DS w/o DP", "CTGAN (10 epochs)",
- # "CTGAN (50 epochs)", "CTGAN (100 epochs)", "Synthpop"))
- colormap <- c(
- paletteer_d("rcartocolor::BluYl")[1:6],
- paletteer_d("beyonce::X58")[3:4],
- "#663399",
- paletteer_d("ggsci::cyan_material")[c(1,3,5,7)]
- )
- up_plot_a4 <- ggplot(data = up_df_a4, aes(x=util_score, y=priv_score, fill=Method)) +
- geom_point(pch=21, color="black", size=3) +
- labs(title = "A4", x = "Utility", y = "Privacy") +
- #scale_fill_paletteer_d("rcartocolor::BluYl") +
- scale_fill_manual(values = colormap) +
- theme_minimal() +
- ylim(0.7,1.0) + xlim(0.3,0.85)
- #plot(up_plot_a4)
- up_plot <- ggarrange(up_plot_adni, up_plot_a4, nrow=2, common.legend = TRUE, legend = "right")
- plot(up_plot)
- #ggsave("~/R/DDLS-plots/up_plot.jpg", up_plot, width = 7, height = 10, units = "in", dpi = 1000)
- ###### GRIDS OF METRICS ######
- library(lme4)
- # Privacy grid
- privs <- c("priv_loss_nndr_value", "priv_loss_nnaa_value", "eps_identif_risk_value", "hit_rate_value", "mia_recall_value", "att_discl_risk_value")
- priv_titels <- c(
- priv_loss_nndr_value = "NNDR privacy loss",
- priv_loss_nnaa_value = "NNAA privacy loss",
- eps_identif_risk_value = "Epsilon identifiability",
- hit_rate_value = "Hitting rate",
- mia_recall_value = "MIA",
- att_discl_risk_value = "ADR"
- )
- priv_df_adni <- priv_df_adni %>% mutate(eps_identif_risk_value = eps_identif_risk_value*100,
- hit_rate_value = hit_rate_value*100)
- priv_df_a4 <- priv_df_a4 %>% mutate(eps_identif_risk_value = eps_identif_risk_value*100,
- hit_rate_value = hit_rate_value*100)
- get_privacy_plot <- function(priv_df, p) {
- pp <- ggplot(data = priv_df, aes(x = Method, y = !!sym(p), fill = Method)) +
- labs(title = priv_titels[p],
- x = "",
- y = "") +
- scale_fill_manual(values = colormap) +
- theme_classic() +
- theme(axis.text.x = element_text(angle = 30, vjust = 1, hjust=1, size = 8))
- if(p %in% c("eps_identif_risk_value", "hit_rate_value")) {
- yval = 9.0
- pp <- pp + geom_hline(yintercept = yval, linetype = "dashed", color = "darkred") +
- geom_rect(
- xmin = -Inf, xmax = Inf,
- ymin = yval, ymax = Inf,
- fill = "grey80",
- alpha = 0.5
- )
- } else if(p %in% c("priv_loss_nndr_value", "priv_loss_nnaa_value")) {
- mu = mean(priv_df[[p]], na.rm=T)
- #m = length(unique(priv_df$Method))
- #n = nrow(priv_df)/m
- #se = sd(priv_df[[p]], na.rm=T)/sqrt(n)
- #t_crit <- qt(1 - 0.01 / (2 * m), df = round(n)-1)
- form <- as.formula(paste(p, "~ 1 + (1 | Method)"))
- fit <- lmer(form, data = priv_df)
- cis <- confint(fit, level = 0.99, parm = "(Intercept)")
- upper = cis[2]
- lower = cis[1]
- pp <- pp +
- geom_hline(yintercept = mu, linetype = "solid", color = "lightgray") +
- geom_hline(yintercept = upper, linetype = "dashed", color = "darkred", alpha=0.5) +
- geom_hline(yintercept = lower, linetype = "dashed", color = "darkred", alpha=0.5) +
- geom_rect(xmin = -Inf, xmax = Inf, ymin = upper, ymax = Inf, fill = "grey80", alpha = 0.2) +
- geom_rect(xmin = -Inf, xmax = Inf, ymin = -Inf, ymax = lower, fill = "grey80", alpha = 0.2)
- } else if(p %in% c("mia_recall_value", "att_discl_risk_value")) {
- yval = 0.5
- pp <- pp + geom_hline(yintercept = yval, linetype = "dashed", color = "darkred") +
- geom_rect(
- xmin = -Inf, xmax = Inf,
- ymin = yval, ymax = Inf,
- fill = "grey80",
- alpha = 0.5
- )
- }
- pp <- pp + geom_hline(yintercept = 0.0, linetype = "dotted", color = "black") +
- geom_boxplot()
- return(pp)
- }
- pPlotlist_adni <- list()
- pPlotlist_a4 <- list()
- for (p in privs) {
- pp_adni <- get_privacy_plot(priv_df_adni, p)
- pp_a4 <- get_privacy_plot(priv_df_a4, p)
- pPlotlist_adni[[paste0(p, "_adni")]] <- pp_adni
- pPlotlist_a4[[paste0(p, "_a4")]] <- pp_a4
- }
- priv_grid_adni <- ggarrange(plotlist = pPlotlist_adni, ncol = 2, nrow = 3, common.legend = TRUE, legend = "right")
- plot(priv_grid_adni)
- priv_grid_a4 <- ggarrange(plotlist = pPlotlist_a4, ncol = 2, nrow = 3, common.legend = TRUE, legend = "right")
- plot(priv_grid_a4)
- ggsave("~/R/DDLS-plots/priv_grid_adni.tiff", priv_grid_adni, width = 10, height = 10, units = "in", dpi = 500)
- ggsave("~/R/DDLS-plots/priv_grid_a4.tiff", priv_grid_a4, width = 10, height = 10, units = "in", dpi = 500)
- #ggsave("~/R/DDLS-plots/util_grid.png", util_grid, width = 10, height = 10, units = "in", dpi = 500)
- #ggsave("~/R/DDLS-plots/priv_grid.png", priv_grid, width = 10, height = 10, units = "in", dpi = 500)
- utils <- c("mutual_inf_diff_value", "ks_tvd_stat_value", "frac_ks_sigs_value", "avg_F1_diff_value", "avg_F1_diff_hout_value", "nnaa_value")
- # Mapping column names
- util_titles <- c(
- mutual_inf_diff_value = "MI diff",
- ks_tvd_stat_value = "KS/TVD stat",
- frac_ks_sigs_value = "Frac. KS sigs",
- avg_F1_diff_value = "Avg. Diff. F1",
- avg_F1_diff_hout_value = "Avg. Diff. F1 (test)",
- nnaa_value = "NNAA value"
- )
- get_util_plot <- function(util_df, u) {
- up <- ggplot(data = util_df, aes(x = Method, y = !!sym(u), fill = Method)) +
- labs(title = util_titles[u],
- x = "",
- y = "") +
- scale_fill_manual(values = colormap) +
- theme_classic() +
- theme(axis.text.x = element_text(angle = 30, vjust = 1, hjust=1, size = 8))
- if (u == 'nnaa_value') {
- mu = mean(util_df[[u]], na.rm=T)
- #m = length(unique(priv_df$Method))
- #n = nrow(priv_df)/m
- #se = sd(priv_df[[p]], na.rm=T)/sqrt(n)
- #t_crit <- qt(1 - 0.01 / (2 * m), df = round(n)-1)
- form <- as.formula(paste(u, "~ 1 + (1 | Method)"))
- fit <- lmer(form, data = util_df)
- cis <- confint(fit, level = 0.99, parm = "(Intercept)")
- upper = cis[2]
- lower = cis[1]
- up <- up +
- geom_hline(yintercept = mu, linetype = "solid", color = "lightgray") +
- geom_hline(yintercept = upper, linetype = "dashed", color = "darkred", alpha=0.5) +
- geom_hline(yintercept = lower, linetype = "dashed", color = "darkred", alpha=0.5) +
- geom_rect(xmin = -Inf, xmax = Inf, ymin = upper, ymax = Inf, fill = "grey80", alpha = 0.2) +
- geom_rect(xmin = -Inf, xmax = Inf, ymin = -Inf, ymax = lower, fill = "grey80", alpha = 0.2)
- } else if (u == "frac_ks_sigs_value"){
- up <- up + geom_hline(yintercept = 1.0, linetype = "solid", color = "gray")
- }
- up <- up + geom_boxplot()
- return(up)
- }
- uPlotlist_adni <- list()
- uPlotlist_a4 <- list()
- for (u in utils) {
- uPlotlist_adni[[u]] <- get_util_plot(util_df_adni, u)
- uPlotlist_a4[[u]] <- get_util_plot(util_df_a4, u)
- }
- util_grid_adni <- ggarrange(plotlist = uPlotlist_adni, ncol = 2, nrow = 3, common.legend = TRUE, legend = "right")
- plot(util_grid_adni)
- util_grid_a4 <- ggarrange(plotlist = uPlotlist_a4, ncol = 2, nrow = 3, common.legend = TRUE, legend = "right")
- plot(util_grid_a4)
- ggsave("~/R/DDLS-plots/util_grid_adni.tiff", util_grid_adni, width = 10, height = 10, units = "in", dpi = 500)
- ggsave("~/R/DDLS-plots/util_grid_a4.tiff", util_grid_a4, width = 10, height = 10, units = "in", dpi = 500)
- ##### Get specific values #####
- summary_stats_adni <- up_df_adni %>%
- group_by(Method) %>%
- dplyr::summarize(
- mean_u = mean(util_score),
- mean_p = mean(priv_score),
- sd_u = sd(util_score),
- sd_p = sd(priv_score),
- num = n(),
- ci_margin_u = qt(0.975, df = n() - 1) * sd(util_score) / sqrt(n()),
- ci_margin_p = qt(0.975, df = n() - 1) * sd(priv_score) / sqrt(n()),
- ci_lwr_u = mean_u - ci_margin_u,
- ci_upr_u = mean_u + ci_margin_u,
- ci_lwr_p = mean_p - ci_margin_p,
- ci_upr_p = mean_p + ci_margin_p
- )
- summary_stats_a4 <- up_df_a4 %>%
- group_by(Method) %>%
- dplyr::summarize(
- mean_u = mean(util_score),
- mean_p = mean(priv_score),
- ci_margin_u = qt(0.975, df = n() - 1) * sd(util_score) / sqrt(n()),
- ci_margin_p = qt(0.975, df = n() - 1) * sd(priv_score) / sqrt(n()),
- ci_lwr_u = mean_u - ci_margin_u,
- ci_upr_u = mean_u + ci_margin_u,
- ci_lwr_p = mean_p - ci_margin_p,
- ci_upr_p = mean_p + ci_margin_p
- )
- priv_df_adni %>% group_by(dataset) %>%
- dplyr::summarise(Mean = mean(eps_identif_risk_value),
- SD = sd(eps_identif_risk_value),
- N = n(),
- margin = qt(0.975, df = n() - 1) * sd(eps_identif_risk_value) / sqrt(n()),
- lower = Mean - margin,
- upper = Mean + margin) %>% filter(upper > 0.09)
- priv_df_a4 %>% group_by(dataset) %>%
- dplyr::summarise(Mean = mean(eps_identif_risk_value),
- SD = sd(eps_identif_risk_value),
- N = n(),
- margin = qt(0.975, df = n() - 1) * sd(eps_identif_risk_value) / sqrt(n()),
- lower = Mean - margin,
- upper = Mean + margin) %>% filter(upper > 0.09)
- priv_df_adni %>% group_by(dataset) %>%
- dplyr::summarise(Mean = mean(att_discl_risk_value),
- SD = sd(att_discl_risk_value),
- N = n(),
- margin = qt(0.975, df = n() - 1) * sd(att_discl_risk_value) / sqrt(n()),
- lower = Mean - margin,
- upper = Mean + margin) %>% filter(upper > 0.1)
- priv_df_a4 %>% group_by(dataset) %>%
- dplyr::summarise(Mean = mean(att_discl_risk_value),
- SD = sd(att_discl_risk_value),
- N = n(),
- margin = qt(0.975, df = n() - 1) * sd(att_discl_risk_value) / sqrt(n()),
- lower = Mean - margin,
- upper = Mean + margin) %>% filter(upper > 0.1)
- priv_df_adni %>% group_by(dataset) %>%
- dplyr::summarise(Mean = mean(mia_recall_value),
- SD = sd(mia_recall_value),
- N = n(),
- margin = qt(0.975, df = n() - 1) * sd(mia_recall_value) / sqrt(n()),
- lower = Mean - margin,
- upper = Mean + margin) %>% filter(upper > 0.1)
- priv_df_a4 %>% group_by(dataset) %>%
- dplyr::summarise(Mean = mean(mia_recall_value),
- SD = sd(mia_recall_value),
- N = n(),
- margin = qt(0.975, df = n() - 1) * sd(mia_recall_value) / sqrt(n()),
- lower = Mean - margin,
- upper = Mean + margin) %>% filter(upper > 0.1)
- # Bonus experiment
- #### ADNI+ ####
- epsilons <- c(100, NA)
- samples <- c(100, 18)
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/adni_plus/bmk_new_deg2_eps", ifelse(is.na(epsilons), "zero", epsilons), ".csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(epsilons)) {
- df <- read.csv(file_paths[i])
- df$Epsilon <- epsilons[i]
- df$samples <- samples[i]
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_ds <- bind_rows(res_list)
- util_cols <- c("mutual_inf_diff_value", "ks_tvd_stat_value",
- "frac_ks_sigs_value","avg_F1_diff_value", "avg_F1_diff_hout_value",
- "nnaa_value")
- priv_cols <- c("priv_loss_nndr_value", "priv_loss_nnaa_value","hit_rate_value",
- "avg_nndr_value", "eps_identif_risk_value", "priv_loss_eps_value",
- "mia_recall_value", "att_discl_risk_value")
- cols <- c(util_cols, priv_cols)
- bmk_ds$Epsilon <- bmk_ds %>%
- select(Epsilon) %>%
- mutate_all(~replace(., is.na(.), 0)) %>%
- mutate(Epsilon = factor(Epsilon, levels = as.character(unique(Epsilon)))) %>%
- pull(Epsilon)
- # CTGAN
- epochs <- c(750)
- setting <- c("default")
- file_paths <- paste0("~/Python/WASP-DDLS/SE-benchmark/adni_plus/bmk_new_ctgan_", setting, "_epochs_", epochs, ".csv")
- #file_paths <- c(file_paths, "~/Python/WASP-DDLS/SE-benchmark/bmk_ctgan_epochs_100.csv")
- # Read CSVs in a loop
- res_list <- list()
- for (i in seq_along(file_paths)) {
- df <- read.csv(file_paths[i])
- df$Epochs <- epochs[i]
- df$samples <- 100
- res_list[[i]] <- df
- }
- # Combine all data frames
- bmk_ctgan <- bind_rows(res_list)
- bmk_ctgan$Epochs <- as.factor(bmk_ctgan$Epochs)
- # Synthpop
- bmk_synthpop <- read.csv("~/Python/WASP-DDLS/SE-benchmark/adni_plus/bmk_new_synthpop.csv") %>% mutate(
- Epochs = 0,
- samples = 100
- )
- # TabPFN
- bmk_tabpfn <- read.csv("~/Python/WASP-DDLS/SE-benchmark/adni_plus/bmk_new_tabpfn_t_1.0.csv")
- label_list = c("DS (100)", "DS w/o DP", "CTGAN (default)", "Synthpop", "TabPFN (t=1.0)")
- util_df_adni_plus <- rbind(select(bmk_ds, dataset, model, all_of(util_cols)),
- select(bmk_ctgan, dataset, model, all_of(util_cols)),
- select(bmk_synthpop, dataset, model, all_of(util_cols)),
- select(bmk_tabpfn, dataset, model, all_of(util_cols))
- ) |>
- dplyr::mutate(avg_F1_diff_value = abs(avg_F1_diff_value),
- avg_F1_diff_hout_value = abs(avg_F1_diff_hout_value)) |>
- dplyr::mutate(mutual_inf_diff = 1 - tanh(mutual_inf_diff_value),
- ks_tvd_stat = 1 - ks_tvd_stat_value,
- frac_ks_sigs = 1 - frac_ks_sigs_value,
- avg_F1_diff = 1 - abs(avg_F1_diff_value),
- avg_F1_diff_hout = 1 - abs(avg_F1_diff_hout_value),
- nnaa = 1 - nnaa_value)
- util_df_adni_plus$util_score <- util_df_adni_plus |> dplyr::select(c(mutual_inf_diff, ks_tvd_stat, frac_ks_sigs, avg_F1_diff, avg_F1_diff_hout, nnaa)) |> rowMeans()
- util_df_adni_plus$Method <- factor(util_df_adni_plus$dataset, levels = unique(util_df_adni_plus$dataset),
- labels=label_list)
- priv_df_adni_plus <- rbind(select(bmk_ds, dataset, model, all_of(priv_cols)),
- select(bmk_ctgan, dataset, model, all_of(priv_cols)),
- select(bmk_synthpop, dataset, model, all_of(priv_cols)),
- select(bmk_tabpfn, dataset, model, all_of(priv_cols))
- ) |>
- dplyr::mutate(priv_loss_nndr = 1 - abs(priv_loss_nndr_value),
- priv_loss_nnaa = 1 - abs(priv_loss_nnaa_value),
- priv_loss_eps = 1 - abs(priv_loss_eps_value),
- hit_rate = 1 - hit_rate_value,
- eps_identif_risk = 1 - eps_identif_risk_value,
- mia_recall = 1 - mia_recall_value,
- att_discl_risk = 1 - att_discl_risk_value)
- priv_df_adni_plus$priv_score <- priv_df_adni_plus |> dplyr::select(c(priv_loss_nndr, priv_loss_nnaa, priv_loss_eps, hit_rate, eps_identif_risk, att_discl_risk)) |> rowMeans()
- priv_df_adni_plus$Method <- factor(priv_df_adni_plus$dataset, levels = unique(priv_df_adni_plus$dataset),
- labels=label_list)
- up_df_adni_plus <- util_df_adni_plus |> dplyr::select(c(Method, model, util_score)) |>
- dplyr::inner_join(priv_df_adni_plus |> dplyr::select(c(Method, model, priv_score)), by = c("Method", "model"))
- colormap <- c(
- paletteer_d("rcartocolor::BluYl")[1:2],
- paletteer_d("beyonce::X58")[3],
- "#663399",
- paletteer_d("ggsci::cyan_material")[c(1,3,5,7)]
- )
- up_plot_adni_plus <- ggplot(data = up_df_adni_plus, aes(x=util_score, y=priv_score, fill=Method)) +
- labs(title = "ADNI+", x = "Utility", y = "Privacy") +
- #scale_fill_paletteer_d("rcartocolor::BluYl") +
- scale_fill_manual(values = colormap) +
- theme_minimal()
- #ylim(0.7,1.0) + xlim(0.3,0.85)
- up_df_adni_ <- up_df_adni %>% filter(Method %in% up_df_adni_plus$Method)
- up_plot_adni_plus <- up_plot_adni_plus +
- geom_point(pch=21, color="gray", size = 3, data=up_df_adni_, alpha=0.75) +
- geom_point(pch=21, color = "black", size=3)
- plot(up_plot_adni_plus)
- up_plot_adni_plus <- up_plot_adni_plus + theme(plot.margin = margin(5.5, 125, 5.5, 125))
- up_plot_all <- ggarrange(up_plot_adni, up_plot_a4, ncol=2, common.legend = TRUE, legend = "right")
- up_plot_all <- ggarrange(up_plot_all, up_plot_adni_plus, nrow=2, common.legend = FALSE)
- plot(up_plot_all)
- ##### Saving and stuff ####
- ggsave("~/R/DDLS-plots/up_plot_all.tiff", up_plot_all, width = 10, height = 9, units = "in", dpi = 500)
- summary_stats_adni_plus <- up_df_adni_plus %>%
- group_by(Method) %>%
- dplyr::summarize(
- mean_u = mean(util_score),
- mean_p = mean(priv_score),
- sd_u = sd(util_score),
- sd_p = sd(priv_score),
- num = n(),
- ci_margin_u = qt(0.975, df = n() - 1) * sd(util_score) / sqrt(n()),
- ci_margin_p = qt(0.975, df = n() - 1) * sd(priv_score) / sqrt(n()),
- ci_lwr_u = mean_u - ci_margin_u,
- ci_upr_u = mean_u + ci_margin_u,
- ci_lwr_p = mean_p - ci_margin_p,
- ci_upr_p = mean_p + ci_margin_p
- )
- res <- summary_stats_adni %>% inner_join(summary_stats_adni_plus, by='Method', suffix = c('.adni', '.adni_plus')) %>%
- mutate(ci.bound_u = (mean_u.adni - mean_u.adni_plus) - 1.96 * sqrt((sd_u.adni^2/num.adni) + (sd_u.adni^2/num.adni)),
- ci.bound_p = (mean_p.adni - mean_p.adni_plus) - 1.96 * sqrt((sd_p.adni^2/num.adni) + (sd_p.adni^2/num.adni)))
- res <- data.frame()
- for(method in unique(up_df_adni_plus$Method)) {
- a <- up_df_adni_plus %>% filter(Method == method)
- b <- up_df_adni %>% filter(Method == method)
- t_u <- t.test(a$util_score, b$util_score, alternative = "two.sided", var.equal=F)
- t_p <- t.test(a$priv_score, b$priv_score, alternative = "two.sided", var.equal=F)
- res <- rbind(res, data.frame(Method = method,
- #t_stat_u = t_u$statistic,
- p_value_u = t_u$p.value * nrow(a),
- mean_u_x = t_u$estimate[1],
- mean_u_y = t_u$estimate[2],
- #t_stat_p = t_p$statistic,
- p_value_p = t_p$p.value * nrow(a),
- mean_p_x = t_p$estimate[1],
- mean_p_y = t_p$estimate[2]
- ))
- }
benchmark.plots.R at commit 299d5c6, under MIT · at the source
Overview
- Centre for Mathematical Sciences, Lund University, Lund, Sweden
- Clinical Memory Research Unit, Department of Clinical Sciences in Malmö, Lund University, Lund, Sweden
- Department of Clinical Sciences Malmö, SciLifeLab, Lund University, Lund, Sweden
- Wallenberg Center for Molecular Medicine, Lund University, Lund, Sweden
- Memory Clinic, Skåne University Hospital, Malmö, Sweden
Abstract
INTRODUCTION: The scarcity of large, clinically relevant cohorts is becoming a bottleneck in Alzheimer's disease (AD) research, as their sensitive nature makes open data sharing difficult. Privacy‐preserving synthetic datasets generated with machine learning may help address this challenge.
METHODS: We compared five frameworks for generating synthetic tabular data from the Alzheimer's Disease Neuroimaging Initiative and Anti‐Amyloid Treatment in Asymptomatic Alzheimer's Disease cohorts, with a set of empirical privacy and utility metrics. Two of the methods, DataSynthesizer and TableDiffusion, provide ε‐differential privacy guarantees.
RESULTS: Methods with differential privacy achieved high privacy ratings but low levels of utility. Deep learning methods like Tabular Prior‐data Fitted Network (TabPFN) and Conditional Generative Adversarial Network (CTGAN) also showed high privacy with limited utility. In contrast, non‐private DataSynthesizer and Synthpop offered higher utility at a cost of lower privacy.
DISCUSSION: The evaluated methods demonstrated a clear trade‐off between privacy and utility. High privacy was generally associated with insufficient utility, highlighting the need for further research into synthetic data generation for AD.
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 7 matches between paragraphs and lines of code.
fwinzell/synthetic_ad
299d5c63736fcf624ab4aa5a67f43723c116be7d, 12 February 2026Availability: 2 checks, the latest on 27 October 2026: the link answers
- 27 October 2026: the link answers
- 27 September 2026: the link answers
32 files
- R/
a4_dataset.R , R, 111 lines - R/
benchmark.plots.R , R, 717 lines, 1 match - R/
bmk_ctgan.R , R, 78 lines, 1 match - R/
bmk_degrees.R , R, 222 lines, 1 match - R/
bmk_ds_vs_sp.R , R, 87 lines - R/
compute_cis.R , R, 182 lines - R/
correlation_biomarkers.R , R, 38 lines - R/
create_and_save_datasets , R, 110 lines.R - R/
get_larger_adni.R , R, 99 lines - R/
ml_plots.R , R, 183 lines - R/
ml_table.R , R, 152 lines - R/
plot.results.R , R, 180 lines - R/
plot_results_new.R , R, 293 lines - R/
synthpop.R , R, 66 lines - R/
tables_for_paper.R , R, 109 lines - python/
bayesian_synthesizing.py , Python, 185 lines, 1 match - python/
correlations_new.py , Python, 126 lines - python/
create_synthetic_data_ta , Python, 110 linesble.py - python/
display_distributions.py , Python, 32 lines - python/
eval_benchmark.py , Python, 400 lines, 1 match - python/
graph.py , Python, 273 lines - python/
main_ctgan.py , Python, 356 lines, 1 match - python/
main_ds.py , Python, 283 lines - python/
main_ml.py , Python, 777 lines - python/
mia_test.py , Python, 278 lines - python/
plot_bn.py , Python, 64 lines - python/
tabpfn_generate.py , Python, 215 lines - python/
train_hgb.py , Python, 161 lines - python/
train_svm.py , Python, 452 lines, 1 match - python/
utils.py , Python, 204 lines - LICENSE, License, 21 lines
- README.md, Text, 5 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;
- 30 scripts, each with its path and the digest of its content;
- 7 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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 4 keywords, 2 funders, 26 references.
Cite
This paper
Winzell, F., Arvidsson, I., Overgaard, N. C., Heyden, A., Åström, K., Karlsson, L., Vogel, J. W., Hansson, O., Mattsson‐Carlgren, N., & for the Alzheimer's Disease Neuroimaging Initiative. (2026). Benchmarking privacy and utility in synthetic tabular cohorts for Alzheimer's disease research. Alzheimer's & dementia (Amsterdam, Netherlands), 18(3), e70430. https://
BibTeX
@article{winzell2026benc
author = {Winzell, Filip and Arvidsson, Ida and Overgaard, Niels Christian and Heyden, Anders and Åström, Kalle and Karlsson, Linda and Vogel, Jacob W and Hansson, Oskar and Mattsson‐Carlgren, Niklas and {for the Alzheimer's Disease Neuroimaging Initiative}},
title = {{Benchmarking privacy and utility in synthetic tabular cohorts for Alzheimer's disease research}},
journal = {Alzheimer's \& dementia (Amsterdam, Netherlands)},
year = {2026},
month = jul,
volume = {18},
number = {3},
pages = {e70430},
publisher = {Wiley},
issn = {2352-8729},
doi = {10.1002/
url = {https://
pmid = {42582267},
pmcid = {PMC13457355}
}
RIS
TY - JOUR
AU - Winzell, Filip
AU - Arvidsson, Ida
AU - Overgaard, Niels Christian
AU - Heyden, Anders
AU - Åström, Kalle
AU - Karlsson, Linda
AU - Vogel, Jacob W
AU - Hansson, Oskar
AU - Mattsson‐Carlgren, Niklas
AU - for the Alzheimer's Disease Neuroimaging Initiative
TI - Benchmarking privacy and utility in synthetic tabular cohorts for Alzheimer's disease research
T2 - Alzheimer's & dementia (Amsterdam, Netherlands)
J2 - Alzheimers Dement (Amst)
PY - 2026
DA - 2026/
VL - 18
IS - 3
SP - e70430
SN - 2352-8729
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "Benchmarking privacy and utility in synthetic tabular cohorts for Alzheimer's disease research",
"container-title": "Alzheimer's & dementia (Amsterdam, Netherlands)",
"author": [
{
"family": "Winzell",
"given": "Filip"
},
{
"family": "Arvidsson",
"given": "Ida"
},
{
"family": "Overgaard",
"given": "Niels Christian"
},
{
"family": "Heyden",
"given": "Anders"
},
{
"family": "Åström",
"given": "Kalle"
},
{
"family": "Karlsson",
"given": "Linda"
},
{
"family": "Vogel",
"given": "Jacob W"
},
{
"family": "Hansson",
"given": "Oskar"
},
{
"family": "Mattsson‐Carlgren",
"given": "Niklas"
},
{
"literal": "for the Alzheimer's Disease Neuroimaging Initiative"
}
],
"container-title-short":
"volume": "18",
"issue": "3",
"page": "e70430",
"DOI": "10.1002/
"PMID": "42582267",
"PMCID": "PMC13457355",
"ISSN": "2352-8729",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
1
]
]
}
}
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.1016/j.isci.2023.107522 [code]
- Deep learning for risk-based stratification of cognitively impaired individuals.Journal: iScienceIn common: LightGBM, Plotly, lme4, 10 other tools, Alzheimer's / dementia, 1 reference
- [2] doi:10.1016/j.isci.2026.116055 [code]
- Mapping the transcriptional diversity of calcium signaling in the mouse and human brain.Journal: iScienceIn common: LightGBM, NetworkX, Plotly, 9 other tools
- [3] doi:10.1007/s11764-023-01355-8 [code]
- Symptom networks in glioma patients: understanding the multidimensionality of symptoms and quality of life.Journal: Journal of cancer survivorship : research and practiceIn common: NetworkX, lme4, ggpubr, 8 other tools, 1 reference
- [4] doi:10.1016/j.celrep.2025.116165 [code]
- Spatiotemporal profiling reveals the impact of caloric restriction in the aging mammalian brain.Journal: Cell reportsIn common: LightGBM, NetworkX, Plotly, 8 other tools
- [5] doi:10.1038/s41467-026-73996-z [code]
- Genetic architecture of white matter microstructure captured by unsupervised deep representation learning of fractional anisotropy maps.Journal: Nature communicationsIn common: LightGBM, Plotly, PyTorch, 8 other tools
- [6] doi:10.1016/j.ynirp.2024.100214 [code]
- FreeSurfer version-shuffling can enhance brain age predictions.Journal: Neuroimage. ReportsIn common: LightGBM, lme4, ggpubr, 8 other tools
- [7] doi:10.1038/s43587-025-01016-8 [code]
- Organ-specific proteomic aging clocks predict disease and longevity across diverse populations.Journal: Nature agingIn common: LightGBM, Plotly, ggpubr, 7 other tools, Alzheimer's / dementia
- [8] doi:10.1016/j.patter.2023.100693 [code]
- SynapseCLR: Uncovering features of synapses in primary visual cortex through contrastive representation learning.Journal: Patterns (New York, N.Y.)In common: LightGBM, NetworkX, Plotly, 7 other tools
- [9] doi:10.1038/s41467-025-62590-4 [code]
- AI-driven fusion of multimodal data for Alzheimer's disease biomarker assessment.Journal: Nature communicationsIn common: Plotly, PyTorch, seaborn, 5 other tools, Alzheimer's / dementia, 2 references
- [10] doi:10.1002/advs.202515675 [code]
- Mendelian Randomization and Double Machine Learning Modeling Reveal Brain Imaging-Derived Phenotypes as Functional Contributors to 18 Autoimmune Inflammatory Diseases.Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)In common: LightGBM, Plotly, ggplot2, 7 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, 30 scripts, and 7 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:d0fce15003e417e7…
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.1002/dad2.70430)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1002/dad2.70430.svg
:target: https://openscicode.org/badge/doi/10.1002/dad2.70430
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1002/dad2.70430"><img src="https://openscicode.org/badge/doi/10.1002/dad2.70430.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.
