This sort of Automated Threat Identification has been around for quite a while.
I’ve seen examples done in Matlab and C++.
The problem is that a computer program can only do what it’s told, no replacement for human intuition.
A machine has not caught a terrorist yet.