Bacteria have the ability to change its pattern, adapt, interact and feel any change around!, whether it was environmental, biological or chemical (Human impacts). It can react with its surroundings by its unique enzymatic system based on information written in its DNA, or sometimes plasmids. .
However, I wounder, is there any "hidden" specific system controls its behavior and feelings!