Catherine Naughtie, University of Bath
@CatNaughtie
Empirical driver behaviour and transport psychology research frequently relies on instrumented vehicles, simulators, or naturalistic observation studies, but what can we do when these options are not available? I will provide insights from my experience designing, developing, and piloting an online study into driver behaviour and the effect of vehicle control perturbations on driver efficiency and performance in a secondary attentional loading task. This experiment was designed to provide a realistic analogue of the driving task to explore the psychological underpinnings of behaviours.
In less than two months, it was possible to learn JavaScript and develop a game as an analogue of the driving task and run a pilot study (N = 35) that successfully validated the experimental protocol. Pilot results supported the hypothesised negative effect of perturbation on performance and indicated interesting dynamics relating to context, degree, and direction of perturbations that are being explored in a follow up study. Here, I will outline the main challenges involved in this process, the benefits associated with it, and show that it is possible for a coding novice to develop interactive, bespoke behavioural experiments quickly and successfully. This online approach can facilitate innovative approaches to driver behaviour and transport psychology research.
Full Transcript:
Catherine Naughtie:
Well, good afternoon. I’m Catherine Naughtie, a PhD research at the University of Bath. Today, I’m going to talk to you about my experience using online research in driver behavior. And I recently faced a challenge that is doubtless familiar to you, a ban on in-person research.
Catherine Naughtie:
Now, studying road user and driver behavior in lockdown is really challenging as research in the field frequently relies on instrumented vehicles, simulators, and naturalistic observation. So, what do we do when these options are not available? But online methods provide a lifeline, allowing us to continue our research and moreover to leverage the power of moving it online, to approach research differently and engage with participants in new ways.
Catherine Naughtie:
Today, I’m going to talk to you about my experience, adapting my research and the approach I took, its benefits, and some of the challenges I had to overcome. I wanted to highlight three tricks I learned through this experience that helped me go from being a coding novice to successfully building and running a code based experiment. One, to do online research, not simply to do research online. Two, to be ambitious. And three, to use the community. Hang on. The thing isn’t working. Okay, there we go.
Catherine Naughtie:
So, what do I mean by do online research, not simply doing research online? Well, in driver behavior and transport research, there are some questions that are best understood through high fidelity or naturalistic methods, such as evaluating responses to a specific vehicle system or observational studies of ease good to use, and some questions that can be answered using traditional in-person methods, such as attitudes surveys, or road user interviews.
Catherine Naughtie:
However, where there’s evidence for a behavioral effect in literature, we can explore larger and more diverse samples available online to investigate the underlying cognitive processes involved, asking questions that are not so fundamental, that it’s unclear how the mechanism would operate in a driving task, or so specific that it would require a realistic experiment setup. But they’re just right, where enough is known to develop a simple experiment that can form the basis of later implementations and ecologically valid context. This is where online methods can add real value.
Catherine Naughtie:
To put this in context, consider my research project. This emerged from an opportunity. Most modern vehicle control systems are electronic, meaning it’s possible to change how they respond to driver inputs on the fly. Therefore, it’s theoretically possible to create personalized adaptive vehicle controls. This could help reduce emissions, improve safety and just make cars nicer to drive, which is great, in theory.
Catherine Naughtie:
However, research has shown that changing the way that a vehicle behaves in response to driver inputs can increase mental workload, impaired attention and damage performance. Therefore, to fully realize the benefits of adaptive systems, we need to understand the cognitive and behavioral consequences of actually implementing them.
Catherine Naughtie:
Now, previous studies investigating perturbations in driver vehicle interactions used instrumented vehicles and simulators, as you can see on the image on the right. Now, this approach is costly and it’s time consuming, and it’s definitely not something you can do online. However, from a behavioral perspective, the processes that these studies were interrogating could be investigated using online methods, including some of the most pressing unanswered questions. Are there thresholds where changes become noticeable or impact performance? Are there times when adaptations are more or less dangerous? Does priming influence the ways that people respond to these changes?
Catherine Naughtie:
As previous studies supported the assumption that theoretical understandings of attention and workload, and the findings of more general perturbations studies would apply in a driving context, it would be reasonable to hypothesize that findings from studies eliciting similar attentional demands could be transferable to an automotive domain. This meant that the questions could be addressed without costly simulation studies and benefit from the diverse participant pool available through online experimentation.
Catherine Naughtie:
However, though it wasn’t necessary to implement this experiment on vehicle, it was important to design a task that replicated the cognitive processes that are associated with driving. And this moves me on to point two, be ambitious.
Catherine Naughtie:
I developed an experimental protocol adapting the Atari game, Pong, where I can manipulate the responsiveness of the user controls during game play, incorporating an auditory distractor task and presenting visual primes. This effectively addresses the research questions that I was dealing with. However, I quickly found out that implementing the plan meant developing it using JavaScript.
Catherine Naughtie:
Now, back then I saw coding as something other people did. It was a foreign syntax, completely opaque to me. That’s changed now. And within weeks I was able to learn to code and build an online game for my experiment. And if I can, you can too.
Catherine Naughtie:
Learning to code meant I could explode the true power of Gorilla, not only to develop the games, but also design bespoke metrics that could dramatically simplify my data analysis. For instance, I needed to use a formula to compute efficiency scores. Creating a metric meant that I could calculate it automatically in the code and log the computed value at each time step in the data output. This flexibility, simply isn’t available with standard off the shelf approaches. And nesting a code task in an experiment gives you the best of both worlds, the power to build bespoke experiments and the ease of off the shelf templates for simpler components, such as demographics or stimuli presentation. But figuring out how to do all this is still challenging. And here I wanted to stress the benefits of just using the community.
Catherine Naughtie:
In academia, researchers often present methods in a very sanitized way, that smooth over glitches, false starts and errors. And this can make learning new methods, incredibly daunting. Forums like the Gorilla Facebook group and Stack Overflow are places where you can really benefit from insights into running experiments and support solving coding problems. I benefited from posting and reading questions in these forums, and from realizing that so many other people had the same questions that I did, even seasoned programmers. And open materials, code libraries and jumping head first into these support networks will save you hours of frustration and make the learning process faster and much, much more enjoyable.
Catherine Naughtie:
At various points in my pilot, I came across bugs. For instance, one, I called the never never-ending task, where errors in my code meant participants ended up playing a game that lasted forever rather than five minutes, but all these bugs were solvable. And in fact, the whole experiment was streamlined in the process of debugging. And recognizing that errors are a normal part of the process helped me gain confidence, and go from feeling overwhelmed to mostly comfortably developing and debugging my own code. And most importantly, running a successful study.
Catherine Naughtie:
So, in summary, using online methods and driver behavior research has immense potential. And my top tips for making the most of it are to formulate online questions, to harness all the benefits of the paradigm, to be ambitious and challenge yourself, to develop new skills, and to lean in to the vibrant community, growing around online research to help you do that. Thank you very much for your attention.
Speaker 2:
Thank you very much, Catherine. So, we have a question, I was thinking of as well, from Camilla, how did you go about learning JavaScript from scratch in such a short time? Tell us of your wisdom.
Catherine Naughtie:
To be honest, it was seeking out help a lot. And I spent an awful lot of time on Stack Overflow and I found some brilliant YouTube videos, where people would walk through the processes. And I basically spent a lot of time looking at other people’s code and trying to work out how they were structuring the syntax to do particular things that I knew I needed to do. And I found games or different applications that were doing… Because essentially, I needed to make the puddles move up and down, and change the speed at which they did that based on when people were clicking.
Catherine Naughtie:
And so, I looked at games where they were doing similar things and said, “How are they doing it?” When I didn’t understand, I’d annoy developers on Stack Overflow saying, “How do you do this? How is that working? How’s this working?” And failing a lot. And then through that, I started working out the logic behind it. And then I think once you’re doing it immersively over that period of time, you can actually learn quite quickly. But yeah, it was a challenge.
Speaker 2:
Fantastic. Thank you very much.