Moral Machine

Also known as: Moral Machine experiment

On this page 7

The Moral Machine is an online experiment created at the MIT Media Lab that asked members of the public to decide how an autonomous vehicle should behave in an unavoidable crash. Launched in 2016, it presented variations of the trolley problem and recorded which group of people or animals each participant chose to spare. In AI ethics, the Moral Machine experiment is the best-known attempt to measure public moral preferences at global scale and one of the most debated examples of how such preferences should, or should not, shape machine behavior.

The results, published in the journal Nature in 2018, drew on roughly 40 million decisions made in ten languages by people in 233 countries and territories. The project showed both the appeal and the limits of crowdsourced ethics for artificial intelligence.

How the Moral Machine experiment works

The Moral Machine works by showing a participant two outcomes of the same accident and asking which one the car should choose. A self-driving car with sudden brake failure either continues straight or swerves into the other lane, and each option kills a different set of characters, such as children, elderly people, doctors, criminals, pregnant women, dogs or cats.

Each session contains 13 randomly generated scenarios. The design varies one or more attributes between the two outcomes, so the researchers could estimate how much each attribute changes the probability that a character is spared. They used conjoint analysis, a statistical method from market research, to compute an average marginal component effect for every factor. An optional survey at the end collected age, gender, education, income, political and religious views.

The following table lists the nine dimensions that the scenarios tested and the global direction of preference that the study reported.

DimensionChoice presentedGlobal tendency
SpeciesHumans or petsStrong preference for humans
Number of livesMore characters or fewerStrong preference for more
AgeYoung or elderlyStrong preference for the young
Law complianceLawful pedestrians or jaywalkersModerate preference for lawful
Social statusHigher status or lower statusModerate preference for higher
FitnessAthletic or larger charactersWeak preference for fit
GenderWomen or menWeak preference for women
RolePassengers or pedestriansWeak preference for pedestrians
InterventionStay on course or swerveWeak preference for inaction
Dimensions tested in the Moral Machine

Key findings and cultural clusters

The central finding is that three preferences were nearly universal: sparing humans over animals, sparing more lives over fewer, and sparing the young over the old. Beyond these, the strength of preferences varied considerably between countries, and the variation followed recognizable cultural and economic patterns.

Using countries with at least 100 respondents, the authors applied hierarchical clustering and identified three broad cultural clusters. These groupings correlate with measures such as individualism, the rule of law and economic inequality, although the correlations do not prove causation.

ClusterTypical membershipDistinctive pattern
Western clusterNorth America and much of EuropeStronger preference for inaction and saving more lives
Eastern clusterEast Asian and some Islamic countriesWeaker preference for sparing the young
Southern clusterLatin America and some French-influenced countriesStronger preference for sparing women and the young
Cultural clusters reported in the study

Participants from countries with stronger institutions and rule of law showed a larger preference for sparing lawful pedestrians, while participants from countries with higher economic inequality gave more weight to social status. These links illustrate that moral intuitions about machines are shaped by local norms, not only by abstract principles.

Moral Machine and machine ethics

The Moral Machine belongs to descriptive ethics: it records what people say they prefer, not what is morally right. Machine ethics, by contrast, asks how artificial agents should reason about right and wrong. Confusing the two is the most common misreading of the experiment.

The table below contrasts the experiment with neighboring approaches in AI ethics, which helps place it correctly in the field.

ApproachMain questionTypical output
Moral MachineWhat do people prefer in dilemmas?Statistical preference estimates
Machine ethicsHow should an agent decide?Formal decision rules or models
Value sensitive designWhich values should a system protect?Design requirements
Participatory AIWho should shape the system?Stakeholder input in development
Regulatory guidelinesWhat is legally acceptable?Binding or advisory rules
How the Moral Machine compares with related approaches

A notable tension appeared with the German Ethics Commission on Automated and Connected Driving, which in 2017 stated that automated systems must not distinguish between people based on personal features such as age or gender. The Moral Machine data showed that many people would make exactly such distinctions, which demonstrates that popular preference and ethical policy can diverge.

Criticisms and methodological limits

The experiment has attracted serious criticism from philosophers, engineers and social scientists. The main objections concern realism, sampling and normative use of the data, and they matter for anyone who cites the results.

CriticismExplanationImplication
Unrealistic scenariosReal crashes rarely offer certain, binary outcomesFindings say little about actual vehicle control
Self-selected sampleVolunteers skewed young, male and educatedResults are not nationally representative
Forced binary choiceNo option to refuse or randomizePreferences may be exaggerated
Stylized charactersIcons stand in for complex peopleJudgments rely on stereotypes
Gamified formatViral sharing encouraged quick playSome answers may lack reflection
Main criticisms and their implications

Engineers also point out that autonomous vehicles do not identify the age or social status of pedestrians, and that safety engineering focuses on reducing collision risk long before a dilemma could arise. Under this view, trolley-style questions distract from more pressing issues such as perception failures, liability and validation standards.

  • Treating the results as a moral rulebook for vehicles ignores the gap between preference and justification.
  • Ranking characters by status or fitness risks encoding discrimination into automated systems.
  • Aggregating preferences by country can hide disagreement within each population.

Lasting influence on AI ethics

Despite its limits, the Moral Machine had a lasting influence on public debate and research methods. It showed that large, multilingual online studies can reveal cross-cultural variation in moral intuitions, and it encouraged later work on preference aggregation, including proposals to build voting-based decision models from crowd judgments.

Its most durable lesson is cautionary. Designers who want an AI system to reflect human values must decide whose values count, how they are aggregated and when public preference should yield to rights, law or principles of non-discrimination. The experiment made these questions concrete for a broad audience.

In everyday language

The Moral Machine was a website game with a serious purpose. It showed a driverless car that could not stop. The visitor had to pick who the car would hit. Sometimes the choice was between old and young people. Sometimes it was between people and pets.

Millions of people played it. The researchers learned that most people want to save humans, save more lives and save children. They also learned that people in different parts of the world weigh some choices differently.

The key point is simple. Knowing what people prefer is not the same as knowing what is right. A popular answer can still be unfair.

Seen in the real world

A university course on responsible AI design uses the Moral Machine as a classroom exercise. Forty engineering students complete the 13 scenarios individually, then compare their answers with the published global and regional results. Most students find that they favored saving more lives and younger characters, which matches the worldwide trend.

The instructor then asks the class to draft a decision policy for a delivery robot that shares sidewalks with pedestrians. When students try to turn their own preferences into rules, they quickly see the problem: rules based on age, gender or appearance would violate anti-discrimination principles and are technically impossible to apply reliably. The final policy instead focuses on lower speeds, wider safety margins and early braking. The outcome is a clear lesson that preventing dilemmas matters more than resolving them.