Close the Loop: From Data to Actions in Intelligent Physical Systems