Improving the classification of extreme classes by means of loss regularisation and generalised beta distributions