Autonomous vehicles could understand their passengers better with ChatGPT, research shows
Purdue University assistant professor Ziran Wang stands next to a test autonomous vehicle that he and his students equipped to interpret commands from passengers using ChatGPT or other large language models. Credit: Purdue University / John Underwood

Imagine simply telling your vehicle, "I'm in a hurry," and it automatically takes you on the most efficient route to where you need to be.

Purdue University engineers have found that an autonomous vehicle (AV) can do this with the help of ChatGPT or other chatbots made possible by artificial intelligence algorithms called large language models.

The study, which appears on the preprint server arXiv, is to be presented Sept. 25 at the 27th IEEE International Conference on Intelligent Transportation Systems. It may be among the first experiments testing how well a real AV can use large language models to interpret commands from a passenger and drive accordingly.

Ziran Wang, an assistant professor in Purdue's Lyles School of Civil and Construction Engineering who led the study, believes that for vehicles to be fully autonomous one day, they'll need to understand everything that their passengers command, even when the command is implied. A taxi driver, for example, would know what you need when you say that you're in a hurry without you having to specify the route the driver should take to avoid traffic.

Although today's AVs come with features that allow you to communicate with them, they need you to be clearer than would be necessary if you were talking to a human. In contrast, large language models can interpret and give responses in a more humanlike way because they are trained to draw relationships from huge amounts of text data and keep learning over time.

"The conventional systems in our vehicles have a user interface design where you have to press buttons to convey what you want, or an audio recognition system that requires you to be very explicit when you speak so that your vehicle can understand you," Wang said. "But the power of large language models is that they can more naturally understand all kinds of things you say. I don't think any other existing system can do that."

Autonomous vehicles could understand their passengers better with ChatGPT, research shows
Purdue Ph.D. student Can Cui sits for a ride in the test autonomous vehicle. A microphone in the console picks up his commands, which large language models in the cloud interpret. The vehicle drives according to instructions generated from the large language models. Credit: Purdue University / John Underwood

Conducting a new kind of study

In this study, large language models didn't drive an AV. Instead, they were assisting the AV's driving using its existing features. Wang and his students found through integrating these models that an AV could not only understand its passenger better, but also personalize its driving to a passenger's satisfaction.

Before starting their experiments, the researchers trained ChatGPT with prompts that ranged from more direct commands (e.g., "Please drive faster") to more indirect commands (e.g., "I feel a bit motion-sick right now"). As ChatGPT learned how to respond to these commands, the researchers gave its large language models parameters to follow, requiring it to take into consideration traffic rules, , the weather and other information detected by the vehicle's sensors, such as cameras and light detection and ranging.

The researchers then made these large language models accessible over the cloud to an experimental vehicle with level four autonomy as defined by SAE International. Level four is one level away from what the industry considers to be a fully .

When the vehicle's speech recognition system detected a command from a passenger during the experiments, the large language models in the cloud reasoned the command with the parameters the researchers defined. Those models then generated instructions for the vehicle's drive-by-wire system—which is connected to the throttle, brakes, gears and steering—regarding how to drive according to that command.

Autonomous vehicles could understand their passengers better with ChatGPT, research shows
While study participants sat in the driver's seat of the test autonomous vehicle and spoke commands, a Purdue researcher sat in the back to monitor the large language models and feeds from the vehicle's cameras. Pictured from back to front of the vehicle: Purdue master's student Yupeng Zhou and Ph.D. student Can Cui. Credit: Purdue University / John Underwood

For some of the experiments, Wang's team also tested a memory module they had installed into the system that allowed the large language models to store data about the passenger's historical preferences and learn how to factor them into a response to a command.

The researchers conducted most of the experiments at a proving ground in Columbus, Indiana, which had previously been an airport runway. This environment allowed them to safely test the vehicle's responses to a passenger's commands while driving at highway speeds on the runway and handling two-way intersections. They also tested how well the vehicle parked according to a passenger's commands in the lot of Purdue's Ross-Ade Stadium.

The study participants used both commands that the large language models had learned and ones that were new while riding in the vehicle. Based on their survey responses after their rides, the participants expressed a lower rate of discomfort with the decisions the AV made compared to data on how people tend to feel when riding in a level four AV with no assistance from large language models.

The team also compared the AV's performance to baseline values created from data on what people would consider on average to be a safe and comfortable ride, such as how much time the vehicle allows for a reaction to avoid a rear-end collision and how quickly the vehicle accelerates and decelerates. The researchers found that the AV in this study outperformed all baseline values while using the large language models to drive, even when responding to commands the models hadn't already learned.

Autonomous vehicles could understand their passengers better with ChatGPT, research shows
The trunk of the test autonomous vehicle contains a drive-by-wire system that allows large language models in the cloud to assist the vehicle with responding to a passenger's commands. Pictured from left to right: Purdue Ph.D. student Zichong Yang and Purdue assistant professor Ziran Wang. Credit: Purdue University /John Underwood

Future directions

The large language models in this study averaged 1.6 seconds to process a passenger's command, which is considered acceptable in non-time-critical scenarios but should be improved upon for situations when an AV needs to respond faster, Wang said. This is a problem that affects large language models in general and is being tackled by the industry as well as by university researchers.

Although not the focus of this study, it's known that large language models like ChatGPT are prone to "hallucinate," which means that they can misinterpret something they learned and respond in the wrong way. Wang's study was conducted in a setup with a fail-safe mechanism that allowed participants to safely ride when the large language models misunderstood commands. The models improved in their understanding throughout a participant's ride, but hallucination remains an issue that must be addressed before vehicle manufacturers consider implementing large language models into AVs.

Vehicle manufacturers also would need to do much more testing with large language models on top of the studies that university researchers have conducted. Regulatory approval would additionally be required for integrating these models with the AV's controls so that they can actually drive the vehicle, Wang said.

In the meantime, Wang and his students are continuing to conduct experiments that may help the industry explore the addition of large language models to AVs.

Autonomous vehicles could understand their passengers better with ChatGPT, research shows
The test autonomous vehicle drives itself as part of a demonstration in the parking lot of Purdue's Ross-Ade Stadium. Credit: Purdue University / John Underwood

Since their study testing ChatGPT, the researchers have evaluated other public and private chatbots based on large language models, such as Google's Gemini and Meta's series of Llama AI assistants. So far, they've seen ChatGPT perform the best on indicators for a safe and time-efficient ride in an AV. Published results are forthcoming.

Another next step is seeing whether it would be possible for large language models of each AV to talk to each other, such as to help AVs determine which should go first at a four-way stop. Wang's lab also is starting a project to study the use of large vision models to help AVs drive in extreme winter weather common throughout the Midwest. These models are like but trained on images instead of text.

More information: Can Cui et al, Personalized Autonomous Driving with Large Language Models: Field Experiments, arXiv (2023). DOI: 10.48550/arxiv.2312.09397

Journal information: arXiv

Citation: Autonomous vehicles could understand their passengers better with ChatGPT, research shows (2024, September 16) retrieved 16 September 2024 from https://techxplore.com/news/2024-09-autonomous-vehicles-passengers-chatgpt.html

This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.