Uncertainty-Inspired Multi-Task Learning in Arbitrary Scenarios of ECG Monitoring