Whats improbable about it? There is no fundamental change from what is possible right now. Its just a matter of scale.
There are already AI trained to identify common firearms. (currently limited commercial security use, unsure on military use)
There are already systems that can identify firing...