Sound Detection stopper

Can I hook up a mic that hears the “bad” sounds and stops my X-Carve from continuing? I feel like the “normal” sounds are dramatically different from the “bad” sounds.

Sound patterns:
Blade Stall
Strain
Bending
Whipping
Shit flying everywhere sound because a 2x4 is whipping around with 24v of power that looks unnatural.

If you can design a sound detection algorithm that can tell good noise from bad noise and is 99% accurate I will buy it!