Online relational inference for evolving multi-agent interacting system