Algorithms learned to sift ultrasonic rat squeaks from other noise, which could help researchers who study rodents’ emotional states. Lucy Huang reports.