With the speed of modern solid state drives, ransomware can encrypt a lot of data in under a minute.
I don't really see the usefulness of this. If you get ransomware, you will still need to wipe the drive and restore from backups anyways. The AI will likely have false positives that will cause issues as well.