AI detection for accurate alarm