BackgroundRodents utilize chemical cues to recognize and avoid other conspecifics infected with pathogens. Infection with pathogens and acute inflammation alter the repertoire and signature of olfactory stimuli emitted by a sick individual. These cues are recognized by healthy conspecifics via the vomeronasal or accessory olfactory system, triggering an innate form of avoidance behavior. However, the molecular identity of the sensory neurons and the higher neural circuits involved in the detection of sick conspecifics remain poorly understood.ResultsWe employed mice that are in an acute state of inflammation induced by systemic administration of lipopolysaccharide (LPS). Through conditional knockout of the G-protein Gαi2 and deletion of other key sensory transduction molecules (Trpc2 and a cluster of 16 vomeronasal type 1 receptors), in combination with behavioral testing, subcellular Ca2+imaging, and pS6 and c-Fos neuronal activity mapping in freely behaving mice, we show that the Gαi2+vomeronasal subsystem is required for the detection and avoidance of LPS-treated mice. The active components underlying this avoidance are contained in urine whereas feces extract and two selected bile acids, although detected in a Gαi2-dependent manner, failed to evoke avoidance behavior. Our analyses of dendritic Ca2+responses in vomeronasal sensory neurons provide insight into the discrimination capabilities of these neurons for urine fractions from LPS-treated mice, and how this discrimination depends on Gαi2. We observed Gαi2-dependent stimulation of multiple brain areas including medial amygdala, ventromedial hypothalamus, and periaqueductal grey. We also identified the lateral habenula, a brain region implicated in negative reward prediction in aversive learning, as a previously unknown target involved in these tasks.ConclusionsOur physiological and behavioral analyses indicate that the sensing and avoidance of LPS-treated sick conspecifics depend on the Gαi2 vomeronasal subsystem. Our observations point to a central role of brain circuits downstream of the olfactory periphery and in the lateral habenula in the detection and avoidance of sick conspecifics, providing new insights into the neural substrates and circuit logic of the sensing of inflammation in mice.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12915-023-01653-8.