Improved F1-score formula