How to predict car accidents with Artificial Intelligence

Use Cases
Data Literacy

Can Artificial Intelligence predict road traffic accidents? With the proper methodology and deep learning algorithms applied to accident data, the answer is "Yes."

A citizen data scientist recently created a model to predict traffic accidents in New Zealand using a free trial of the no-code artificial intelligence tool from Obviously.ai.

“It was very easy,” says Arthur Valle, PhD, a professor at the Waikato Institute of Technology. “Just a matter of a few clicks and I was able to get results within seconds. It’s very intuitive. You don’t need to look at tutorials or videos. The way the tool was designed helps a lot.”

Crash Prediction with Artificial Intelligence


How easy is it? Arthur actually cracked the code for accident risk on his lunch break.

If you have a good set of accident records, you can use those data points in combination with machine learning techniques to create a prediction model for motor vehicle accidents and potentially save lives, Arthur figured.

That kind of training set could be fed into a neural network using learning methods to create a model that would look at variables such as traffic volume, speed limit, and weather conditions to predict the likelihood of vehicle crashes.

Normally that kind of intense number crunching would require weeks of work by a highly trained data scientist using artificial intelligence algorithms with names like "random forest" in order to build a traffic safety prediction model.

But all of that work can be done in less than a minute with Obviously.ai's no code artificial intelligence tool.

Machine Learning Made Easy

Obviously.ai first came to Arthur’s attention when the machine learning company appeared on Betalist.com, which covers start-ups offering innovative new solutions. Although Arthur didn’t make use of it at the time, Obviously.ai’s no-code prediction model stuck in the back of his mind.

That suddenly became important in mid-May of 2021 when car accidents became topical in New Zealand.

That was when the country hosted its Road Safety Week. According to the New Zealand Ministry of Transport, road accidents there claim the lives of one person each day on average, with another seven people suffering injuries. If the government could use metrics to better understand accident locations, it could potentially save lives.

If that sounds like a big data problem to you, you're not alone.

Building a Model for Crash Prediction

In line with the theme of Road Safety Week, a student of Arthur’s was trying to do some analysis on a free downloadable dataset of crashes in New Zealand that was made available by the transport agency as part of its public effort to solve road accidents.

The student was trying to use a linear regression model on the data but couldn’t derive any meaningful results.

That was when Arthur remembered the Obviously.ai tool for predictive data analysis.

After class, but before he treated himself to lunch, Arthur decided to sign up for a free trial of the no-code tool and input the New Zealand crashes dataset to see if the tool could use artificial intelligence to predict traffic accidents.

He was stunned by what happened next. It worked! In just minutes Arthur had created a prediction model that could interpret factors like weather conditions and speed limits to predict vehicle crashes.

“I’m not a coder,” Arthur says candidly. “I’m an old fashioned data scientist. I’m not a programmer at all. I could not write one line of code. Obviously.ai helped me a lot.”

Digging into Deep Learning

As a man of letters, Arthur appreciates how Obviously.ai actually shows you the algorithm that was used to determine the result, as well as the degree of accuracy derived by the machine learning.

“You guys are describing exactly what are the techniques and what are the model specifications,” Arthur says. “So very transparent and very professional.”

So impressed was Arthur by what he was able to achieve in just five minutes that he used a feature of Obviously.ai to export his work and post his A.I. model on LinkedIn, allowing anybody all over the world to tweak the conditions to determine the likelihood of vehicle crashes in New Zealand.

You can try Arthur’s predictive model yourself. It allows you to change weather conditions, whether the road is paved, the presence of different kinds of vehicles, and other predictive columns in real time, then spits out a probability of a road accident in that scenario. You can even dig into the decision trees to understand how to model made its prediction.

“I sent a public link to my student and said, ‘Oh, I have great news, the Obviously.ai tool works, please take a look,” Arthur says.

Obviously.ai’s no code a.i. tool allowed Arthur to look at the New Zealand crash data set through the new lens of adaptive machine learning without having to understand convolutional neural networks and back propagation. Even this quick exercise offered surprises on motor vehicle road accidents.

Take weather conditions for example: Who knew that heavy rain was not as bad as light rain for traffic safety?

More research will need to be done for validation, but Arthur suspects this deep learning revelation is actually telling him that heavy rain limits the number of motorcyclists on the road, which can have a big impact on accident severity.

“It’s not just the data, you need to have some feeling about the context, otherwise the numbers could lead you to a different interpretation,” Arthur says.

Next Steps

Arthur was impressed with the initial results he achieved during his lunch break and wants to dive deeper into the data. His student will be using the Obviously.ai tool to run more predictions and come back with a full report in a few weeks. Arthur promises to give us an update when that happens, so subscribe to our no code blog to find out if his machine learning accident risk model can really improve road safety.

For now, though, Arthur already sees the promise of the Obviously.ai data tool he exported and made publicly available.

“Let’s say the New Zealand transportation agency got insight into what the data is telling us,” Arthur says. “They could promote it and make people aware of those conditions, and potentially save lives.”


Wow! What a brilliant way to use a free trial of Obviously.ai’s tool. You don't have to understand logistic regression, classifiers, or Bayesian probability to create a prediction model using machine learning. All you need is a dataset and a free trial. Go ahead, give it a try and see what you can solve on your lunch break.


(Car accident photo by Matt Chesin on Unsplash)

Become the Data Scientist your team always needed.

Get Started

Get Started Now

See how no code machine learning can transform your business and change how you make decisions.