Pathway identification from a given stimulus-response behaviour