Scientists use AI to develop better predictions of why children struggle at school