People on student visas cannot be self-employed so any consultancy cannot be done as personal consultancy through OUI as you would have to register as self-employed. It may be possible for you to be employed by a University Department to do the work – you would need to speak to the department as well as the University’s Staff Immigration Team.