pattern recognition in AI detection