From 2015; an older article; but it is a survey of “state of the art” in 2015 and a good historical overview of various perspectives in the area of bacterial cognition. It’s likely any studies in 2022 will be linked to these. https://www.frontiersin.org/articles/10.3389/fmicb.2015.00264/full