Hard to pin down a single citation of that point. But some good places to start are:
https://en.wikipedia.org/wiki/Critical_brain_hypothesis
https://journals.aps.org/pre/abstract/10.1103/PhysRevE.79.04... (on sci-hub)