A Unified Framework for Statistical Inference and Study Design of Comparative F 1 and F β Scores under Paired Classifier Evaluations
Preprint
Abstract
Background and objective The F 1 score and its generalized F β score are widely used to evaluate machine learning and artificial intelligence (AI) models in healthcare, particularly for imbalanced clinical datasets. In practice, competing prediction models are commonly evaluated on the same patient cohort, resulting in correlated classifier decisions. However, existing approaches for statistical inference of F 1 -related metrics typically assume independent classifier decisions or lack integrated procedures for comparative evaluation, power analysis, and sample size determination in paired validation studies. Methods We propose psF1pair, a unified framework for confidence interval estimation, hypothesis testing, and power and sample size calculation for comparative F 1 and F β scores under paired evaluation designs. Dependence between classifiers is modeled using a four-component multinomial representation of the joint decision process, allowing explicit estimation and incorporation of classifier correlations commonly encountered when AI models are evaluated on the same patient cohort. Exact distributions are used for small sample settings, while asymptotic approximations are employed for computational efficiency in large studies. Results Simulation studies demonstrated that the proposed confidence intervals achieved nominal coverage probabilities across a wide range of sample sizes and correlation settings. Estimated power closely agreed with empirical power, with discrepancies generally below 3%. Compared with existing methods, psF1pair showed competitive or superior statistical power while maintaining appropriate type I error rates across a broad range of scenarios. Applications to skin cancer classification and breast cancer screening demonstrated that accounting for classifier correlation produced narrower confidence intervals and improved statistical efficiency. Conclusions psF1pair provides a practical and rigorous framework for evaluation and study planning of medical AI systems using F 1 and F β metrics. The method supports comparative benchmarking, uncertainty quantification, and sample size determination for future validation studies. An open-source R package is freely available.Keywords
Funding Information
- National Institutes of Health (P50CA236733)
- National Institutes of Health (U54CA163072)
- VA Tennessee Valley Healthcare System (VUMC120842)
- Lifespan Rhode Island Hospital (U01CA287008)
This publication has 15 references indexed in Scilit:
- A Unified Framework for Statistical Inference and Power Analysis of Single and Comparative Fβ ScoresStatistics in Medicine, 2026
- Artificial intelligence (Al) in healthcare diagnosis: evidence-based recent advances and clinical implicationsSensors & Diagnostics, 2025
- Advancements and Prospects of Machine Learning in Medical Diagnostics: Unveiling the Future of Diagnostic PrecisionArchives of Computational Methods in Engineering, 2024
- Hypothesis testing procedure for binary and multi‐class F1‐scores in the paired designStatistics in Medicine, 2023
- Efficient Medical Diagnosis of Human Heart Diseases Using Machine Learning Techniques With and Without GridSearchCVIEEE Access, 2022
- Classification of skin cancer using convolutional neural networks analysis of Raman spectraComputer Methods and Programs in Biomedicine, 2022
- A deep learning based approach for automatic detection of COVID-19 cases using chest X-ray imagesBiomedical Signal Processing and Control, 2021
- An Ensemble Machine Learning Method for the Prediction of Heart Disease2021
- Automatic lung cancer detection from CT image using improved deep neural network and ensemble classifierNeural Computing and Applications, 2020
- Cell-free DNA Analysis for Noninvasive Examination of TrisomyThe New England journal of medicine, 2015