Process monitoring in milling by pattern recognition