A learning approach to enhance assurances for real-time self-adaptive systems