Smart automated factory environments