A physics oriented AI framework