Localization of deformation and prognostibility of rock failure