Real-Time Assessment of Perioperative Behaviors and Prediction of Perioperative Outcomes