“…In the last 20 years, multiple research groups have reported increasingly sophisticated, easy-to-use tools for automated annotation of video data of animal behavior (Knutsen et al, 2005;Voigts et al, 2008;Perkon et al, 2011;Clack et al, 2012;Ohayon et al, 2013;Giovannucci et al, 2018;Dominiak et al, 2019;Vanzella et al, 2019;Betting et al, 2020;Petersen et al, 2020). One natural extension of this ability has been to apply these algorithms for on-line, closed-loop paradigms, where changes in behavior of the animal are detected as rapidly as possible, and the behavior is used to modify or manipulate the brain, the virtual environment or the context of behavior.…”