Comparative study on local and global strategies for confidence estimation in neural networks and extensions to improve their predictive power