From the horse's mouth: "By training a machine learning model on a dataset of human- and AI-generated text, it is possible to develop an algorithm that can accurately identify AI-generated content." - chatGPT.