Computer algorithms must show they are free of race, gender and other biases before they are deployed, US politicians have proposed.
Lawmakers have drafted a bill that would require tech firms to test prototype algorithms for bias.
Many organisations rely on coded instructions or algorithms for tasks such as showing users relevant ads, analysing behaviour or sorting data.
Critics said the bill could limit the benefits of machine intelligence.
The rules would affect companies with annual revenues of $50m (£38m) in revenue or which hold data on more than one million people.
- Artificial intelligence: Algorithms face scrutiny over potential bias
- The race to make the world’s most powerful computer ever
Democratic Senator Ron Wyden, who helped draft the law, said it was needed because computer algorithms were “increasingly involved” in the lives of Americans.
“But instead of eliminating bias, too often these algorithms depend on biased assumptions or data that can actually reinforce discrimination against women and people of colour,” he said.
A statement outlining the need for the law, cited as evidence an algorithm that Amazon used to help recruit staff which was found to be biased against women. The algorithm was scrapped.
Last month, the US Department of Housing and Urban Development sued Facebook for enabling discrimination by letting advertisers restrict who saw ads for homes on the basis of race, religion or nationality.
The proposed law drew criticism from the Information Technology and Innovation Foundation industry group.
Daniel Castro, a spokesman for the foundation said the law would only “stigmatise” AI and discourage its use.
“To hold algorithms to a higher standard than human decisions implies that automated decisions are inherently less trustworthy or more dangerous than human ones, which is not the case,” he said in a statement.
Nigel Farage’s 400km pro-Brexit march sets off from Sunderland to London
Kit Armstrong: From child prodigy to piano-playing superstar
Music show: La Chica, Danger Mouse, Karen O and Foals
McDonald’s: Tom Watson urges chain to drop Monopoly campaign
Christchurch shootings: Sajid Javid warns tech giants over footage
Study reveals the wolf within your pet dog
NHS let me down, says health manager with cancer
Looting, clashes as Yellow Vests seek new momentum