Turning students into AIs by training to recognize patterns