The brain is estimating how much confidence it has in certain predictions or certain bits of sensory information. This is known as Precision Weighting.

How Bayesian logic explains the brain: its extraordinary successes and surprising failures.