Text this: Two stages fault detection method based on error, applied in EBM facility