Modelling interactions for diagnosis