bacterial infection detection