Skip to content

DIDSR/seg-agreement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Segmentation Agreement Confidence Intervals

This tool implements the method described in Hu et al. (2025).

Overview

A R function for computing confidence intervals when comparing an AI segmentation algorithm performance against multiple-human-observer annotations.

Quick Start

the programming language: R

## Source the function
source("segmentationagreementci.R")

## Run analysis
result <- computesegmentationagreement_ci(

alpha = 0.05,                    # 95% confidence level
segmentation_data = your_data,   # Your DSC data matrix
n_observer = 3                   # Number of observers
)

## View results
print(result)

Input Data Format

Your data should be a matrix with columns:

  • DSC.observer.pair.1, DSC.observer.pair.2, ... (n_observer columns)
  • DSC.device.observer.pair.1, DSC.device.observer.pair.2, ... (n*(n-1)/2 or n*(n-1) columns)

Output

Returns confidence intervals for the difference in disagreement rates:

  • Point estimate (delta_est)
  • Bootstrap CI (lower_bootstrap, upper_bootstrap)
  • Z-Wald CI (lower_wald, upper_wald)

Requirements

  • R (>= 3.5.0)
  • Base R packages: stats

Contact

For questions regarding regulatory use or methodology, please contact Tingting.Hu@fda.hhs.gov.

Related Reference

Hu T, Sahiner B, Guan S, Mikailov M, Cha K, Samuelson F, Petrick N. Statistical testing of agreement in overlap-based performance between an AI segmentation device and a multi-expert human panel without requiring a reference standard. J Med Imaging (Bellingham). 2025 Sep;12(5):055003. doi: 10.1117/1.JMI.12.5.055003. Epub 2025 Oct 22. PMID: 41132782; PMCID: PMC12543030.

Disclaimer

This software and documentation was developed at the Food and Drug Administration (FDA) by employees of the Federal Government in the course of their official duties. Pursuant to Title 17, Section 105 of the United States Code, this work is not subject to copyright protection and is in the public domain. Permission is hereby granted, free of charge, to any person obtaining a copy of the Software, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, or sell copies of the Software or derivatives, and to permit persons to whom the Software is furnished to do so. FDA assumes no responsibility whatsoever for use by other parties of the Software, its source code, documentation or compiled executables, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic. Further, use of this code in no way implies endorsement by the FDA or confers any advantage in regulatory decisions. Although this software can be redistributed and/or modified freely, we ask that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages