Classification of earthquake precursors from a fracture mechanics model