Automatic Rule Generation Method for User Action Detection from Traffic Data