Surface texture analysis based upon pattern recognition for monitoring machining process