Evolution of the model under a switching external field H(t). (a) The change in the average readout population Δ 〈U〉 between the first signal and after a large number of signals, as a function of the inverse temperature β and the energetic cost of storage σ. Δ 〈U〉 quantifies the habituation strength. (b) The change in the mutual information between the readout population and the external field, ΔIU,H. A region with maximal information gain corresponds to intermediate habituation strength. (c) The change in the feedback information ΔIf indicates that, close to the region of maximal information gain, the storage favors information. (d-e) In the region of maximal information gain, the average number of readout units, 〈U〉, decreases with the number of repetitions, while the average storage concentration, 〈S〉, increases. At large times, the system reaches a periodic steady state. (f-g) In the same region, the information encoded on H through the readout, IU,H, increases in time during habituation, boosting in turn the feedback information, ΔIf. (h) The internal dissipation rate due to the production of U and S, , decreases in time. Model parameters for panels (d-h) are β = 3, σ = 0.6 (in the unit measure of energy, for simplicity), and as specified in the Methods.