Text this: Failure Prediction of Two Types of Rocks Based on Acoustic Emission Characteristics