Temporal fine-tuning for early risk detection