Facebook is to use footage from police body cameras to train its algorithms to recognise videos of real-life shootings.
The technology giant will give the cameras to Metropolitan Police Specialist Firearms Command officers.
It will then capture footage as they carry out regular training.
Facebook was criticised for failing to prevent copies of videos of the Christchurch mosque shootings from being shared on its platform.
The announcement came the day before Facebook and other tech firms will face questions from US senators about their efforts to identify and remove violent content from their platforms.
“We did not have enough content depicting first-person footage of violent events to effectively train our machine learning technology,” it said in a blog.
The Metropolitan Police said it was “happy to help” develop the technology.
“Technology that automatically stops livestreaming of attacks once identified, would also significantly help prevent the glorification of such acts and the promotion of the toxic ideologies that drive them,” assistant commissioner for specialist operations Neil Basu said.