Behavior modeling in smart environments using camera networks