https://github.com/PierreMasselot/Paper--2021--JRSS_SA--Machine_Learning_Thresholds