University researchers and NHS staff developed an AI forecasting tool that predicts resignations and explains workforce factors behind possible departures.