Early prediction of flare events and prognosis of possible sources