Model-Specific Confidence Estimation Algorithm