I would say it's an almost impossible problem to solve, sure in the short term you might be able to detect ai but not for long ai will just improve and there will be no way to distinguish between the two. Even now say chatgpt writes 80 percen