We present an automated laser tracking and optogenetic manipulation system (ALTOMS) for studying social memory in fruit flies (Drosophila melanogaster). ALTOMS comprises an intelligent central control module for high-speed fly behavior analysis and feedback laser scanning (∼40 frames per second) for targeting two lasers (a 473-nm blue laser and a...