The notion that bacteria can learn and evolve characteristics akin to intelligence was, for instance, recently supported by Rafael Lahoz-Beltra, a biomathematician based in Madrid, whose ideas are summarized in Lahoz-Beltra et al (2014) https://www.embopress.org/doi/full/10.1038/s44319-024-00334-z