A major goal of neuroscience studies is to identify the neurons and molecules responsible for memory. Mechanosensory habituation in Caenorhabditis elegans is a simple form of learning and memory, in which a circuit of several sensory neurons and interneurons governs behavior. However, despite the usefulness of this paradigm, there are hardly any systems for rapid and accurate behavioral genetic analysis. Here, we developed a multiplexed optical system to genetically analyze C. elegans mechanosensory habituation, and identified two interneurons involved in memory formation. The system automatically trains large populations of animals and simultaneously quantifies the behaviors of various strains by optically discriminating between transgenic and nontransgenic animals. Biochemical and cell-specific behavioral analyses indicated that phosphorylation of cyclic AMP response element-binding protein (CREB), a factor known to regulate memory allocation, was facilitated during training and this phosphorylation in AVA and AVD interneurons was required for habituation. These interneurons are a potential target for cell-specific exploration of the molecular substrates of memory.Caenorhabditis elegans | mechanosensory habituation | memory | optical quantification | neural circuit I dentification of the physical substrates of memory in the brain, namely neurons and molecules encoding memory, is a major challenge in neuroscience. Recent studies have revealed that the transcription factor cAMP response element-binding protein (CREB) (1) is crucial for determining which neurons in the lateral amygdala participate in encoding an auditory fear memory, and that neurons with higher CREB activity are preferentially allocated into a unique memory trace (memory engram) (2-6). Thus, it has been generally thought through the accumulated weight of evidence that memory is represented by a specific population of neurons in the brain that forms memory engrams: only a portion of eligible neurons are recruited into a specific memory. Although this CREB-dependent memory allocation model is established (5), the identification of specific neurons supporting a given memory remains a long-standing challenge. Moreover, the extreme complexity of nervous systems in model animals still hampers cell-specific genetic analyses; therefore, even if neurons encoding memory could be identified, it would be difficult to address the subsequent question of how these neurons store memory at the molecular level in situ.The nematode Caenorhabditis elegans is a genetically tractable model organism with a neural circuit composed of only 302 neurons. Moreover, the wiring of this nervous system has been completely determined. These unique features of the C. elegans nervous system have proven to be advantageous for various behavioral experiments, such as genetic rescue experiments, ectopic expression analysis, overexpression analysis, and RNA interference-mediated gene disruption, because all of these transgenic studies can be conducted in situ in a cell-specific manner...