(CNN) – Uber wants to know when you’ve had a few too many drinks, and it’s turning to artificial intelligence for answers.
The ride-sharing giant has published a patent application to identify drunk passengers.
It describes an algorithm that will weigh a variety of factors, like typos, how precisely a use clicks, walking speed and the time of day.
For example, a rider clumsily typing at 1 a.m. on a Saturday would likely be considered not sober.
Uber plans to use that technology to better tailor its rides, either by warning drivers or matching them with drivers with relevant experience or training.