Text this: Step-by-step classification detection algorithm of SPPM based on K-means clustering