Modeling and Optimization of Human-machine Interaction Processes via the Maximum Entropy Principle