Inferring physical laws by artificial intelligence based causal models