Skip to content

Evaluation

The ETSAM test set contains 17 experimental tomograms with ground-truth membrane annotations. The steps below reproduce the evaluation reported in the paper.

Use the data collection script with the test set manifest:

Terminal window
python scripts/collect_data.py \
--csv data/testset.csv \
--collection-dir data/collection

This runs ETSAM inference on all test tomograms and computes Dice, IoU, Precision, and Recall against the ground-truth annotations.

Terminal window
python evaluation/evaluate_etsam.py

Results are saved to results/etsam_testset_predictions/3d_metrics.csv.

This evaluates ETSAM prediction consistency by averaging per-slice Dice, IoU, Precision, and Recall separately across the XY, XZ, and YZ planes.

Terminal window
python evaluation/evaluate_etsam_plane_wise.py

Results are saved to results/etsam_testset_predictions/etsam_testset_plane_wise_metrics.csv.

This evaluates ETSAM prediction consistency across membrane orientations by binning membrane voxels by surface-normal angle and computing Dice, IoU, Precision, and Recall for each theta bin.

Terminal window
python evaluation/evaluate_etsam_theta_wise.py

Results are saved to results/etsam_testset_predictions/etsam_testset_theta_wise_metrics.csv.

Run paired t-tests comparing ETSAM against TARDIS and MemBrain-Seg:

Terminal window
python evaluation/t-test.py

Compute the Area Under the Precision-Recall Curve (AUPRC) and generate PR curve plots:

Terminal window
python evaluation/pr_curve_auprc.py

ETSAM is benchmarked with standard segmentation metrics computed against ground-truth binary membrane annotations.

MetricInterpretation
DiceHarmonic mean of precision and recall; overall segmentation quality.
IoUMeasures how much the predicted membrane region overlaps the ground truth relative to their combined area
PrecisionFraction of predicted membrane pixels that are correct.
RecallFraction of true membrane pixels that are detected.

The AUPRC, or Area Under the Precision-Recall Curve, provides a threshold-independent assessment of model discrimination.

ETSAM was compared against two leading cryo-ET membrane segmentation methods TARDIS and MemBrain-Seg.

ETSAM achieves a more favorable precision-recall trade-off than both baselines on the independent test set, demonstrating robust membrane detection across simulated and experimental tomograms.