The BRAIN strategy for online learning