Inflammation-activated C/EBPβ mediates high-fat diet-induced depression-like behaviors in mice. Here, CEBPB is linked to depressive symptom measurement.