Classification of cracking sources of different engineering media via machine learning