Writing the rules for autonomous vehicles

Steven keeping Sydney based freelance journalist specialisting in electronics
Steven Keeping

Self-driving vehicles are a good idea. Why? Because a world that invests enormous amounts of energy and precious resources building complex machines that spend most of their lives doing nothing is hardly on the path to sustainability. Last year, analyst firm Statista reported that manufacturers assembled 94.7 million light vehicles (cars and vans), and that number is expected to grow to 111.7 million by 2023. This growth is driven in large part by the Chinese and Indian middle classes as they look for ways to spend their new wealth. And yet, in the US at least, cars do little more than adorn the drives of suburban homes, spending just 8 per cent of their operating lives moving people from Point A to B.

Steven Keeping

Even while doing the job for which they’ve been designed, vehicles with a conventional (internal combustion) engine go about it in a compromised manner. According to The Atlantic, more than 80 per cent of the energy derived from gasoline is squandered by a car’s inefficiencies. There is nothing else in our lives that wastes more energy—or even comes close. Electric vehicles are far more mechanically efficient but still consume considerable energy in their construction, generate carbon during operation (unless the electricity for recharging has come from renewable sources), and are just as likely as conventional autos to sit idle in the garage.

There are signs that the latest generation of would-be drivers is indeed questioning the insanity of buying the most under-used asset they will ever own and paying around US$ 13,000 a year for the privilege. Moreover, young people find that online shopping, on-demand TV, and social media enables them to do many things for which previous generations needed a car. Besides, the majority of young people live in cities where congestion, lack of parking, and resurgent public transport systems conspire to keep cars off the road.


These millennials are the consumers of the future and a generation that thinks differently about transportation. Familiar with the gig economy, to them being able to hail a ride from a smartphone screen wherever and whenever seems the obvious answer to getting around. Spending a fortune on a steel box that’s typically stationary either in a parking lot or traffic queue, doesn’t make sense. That’s why car companies, ride-hailing firms, and Internet giants are climbing over each other to introduce fleets of autonomous vehicles that are only rented when needed.

The software is the challenge
The hardware for autonomous vehicles is quite advanced. Technologies such as LiDAR (a surveying method that measures the distance to a target by illuminating it with pulsed laser light and measuring the reflected pulses with a sensor, to build a 3D picture of the environment), radars, GNSS (Global Navigation Satellite System), cloud-connectivity, proximity sensors, and cameras work together to present an accurate picture of what’s happening around the vehicle, to its ‘brain’. The challenge really starts when the car’s computer has to analyse all this information, work out what’s going to happen in the next few seconds and then, crucially, decide what to do next.

The answer to this complex automotive engineering problem, according to the big players in the sector, is to teach the car to think like a human by showing it examples of situations that might come up and then telling it what to do. So, a car slowing ahead triggers the autonomous vehicle to brake gradually, a red light triggers a controlled stop, and a school child running unexpectedly onto the road triggers an emergency manoeuvre. The problem comes when the situations are less clear cut. As The Economist points out, could a plastic bag blowing across the carriageway be mistaken for a running child, a puddle for a sinkhole in the pavement, or a pile of snow for a badly-parked car? And what happens when the vehicle hits roadworks that force it to divert to routes not included in the digital maps stored in the computer’s memory?

Worse yet, it’s almost impossible to write code for algorithms that act on information that human drivers detect and react to without thinking. Examples include the cyclist who doesn’t yield, the learner driver who turns without signalling, and the intoxicated pedestrian who stumbles onto the road. It’s also hard to forge software that caters for exceptions to hard regulations. Imagine a broken-down vehicle on a two-lane highway with a solid line down the centre. A human driver crosses the line to pass when it’s safe to do so, but the autonomous vehicle stubbornly refuses to bend the rules and waits until the obstruction is cleared.

That’s not the only occasion human drivers ignore regulations. Australians, for example, habitually cruise in the outside lane of a quiet freeway even when signs indicate they should use the inside ‘except when overtaking’. And in the UK a headlight flash should officially only be used as a warning, whereas most Brits use the signal to indicate to another driver that they can pull out.

Solving the wrong problem
In their rush to market, the autonomous vehicle makers are trying to solve the wrong problem. Adapting autonomous cars to a human driving environment is as difficult as it was to accommodate the first conventional cars on the streets of New York at the turn of the 19th century. Then, the few ‘horseless carriages’ on the road had to thread their way between the city’s 100,000 horses—and several million pounds of daily-deposited horse manure—averaging a speed little more than walking pace.

But by the 1920s, when the Ford Model T made motoring affordable and practical, New York’s transport infrastructure had been completely redesigned around the needs of car drivers—with pedestrians, cyclists and, well, horses coming a very distant second. Elsewhere, the 1920s Los Angeles’ design was pretty much dictated by the car. The city’s low population density and far-flung suburbs were created because of the ease with which people could move around in cars during a decade of rapid expansion, from 1910 onwards.

Such radical approaches are needed to introduce autonomous vehicles safely. For example, keeping human-controlled automobiles and self-driven cars apart would eliminate many of the situations where the latter’s’ computer systems could struggle to make the right decision. Similarly, keeping pedestrians and cyclists—and those pesky horses—away from the autonomous cars would eliminate the need for many thousands of lines of code dedicated to avoiding accidents.

In truth, the lessons of history are likely to be ignored because of the economic imperatives, and we’ll spend several decades transitioning from conventional vehicles to autonomous cars by adapting current road systems to suit the latter. But one day, when everyone has gotten used to the idea of climbing into a car and sitting back to relax, the system will be set up to perfectly cater to autonomous-only car fleets allied to a business model forecast by William Clay Ford Jr., executive chairman of the Ford Motor Company. Ford Jr. recognised, as far back as 2000, that the future for his firm would be one where it owned vehicles and made them available to motorists solely when they needed to get somewhere.

Until then, autonomous vehicle software engineers face an uphill struggle and, sadly, the cars they design will be involved in accidents.



Please enter your comment!
Please enter your name here

Are you human? *