Tuning of a 4D ML reconstruction strategy for treatment verification in ion beam radiotherapy