Uber has filed for a patent for artificial intelligence technology that knows when passengers are drunk.