Security correspondent, BBC News
UK intelligence agency GCHQ intends to use artificial intelligence to tackle issues from child sexual abuse to disinformation and human trafficking.
The UK's adversaries were already using the technology, it said.
The agency has published a paper, Ethics of AI: Pioneering a New National Security, saying the technology will be put at the heart of its operations.
And officials say it will help analysts spot patterns hidden inside large – and fast growing – amounts of data.
This could include:
But it cannot predict human behaviour such as moving towards executing a terrorist attack.
The paper also sets out how GCHQ wants to support the AI sector, including setting up an industry-facing AI lab from its Manchester office, dedicated to prototyping projects and mentoring start-ups.
And GCHQ says it details how it will ensure it uses AI fairly and transparently, including:
It is a sign the agency wants to avoid a repeat of criticism people were unaware how it used data, following whistleblower Edward Snowden's revelations.
"While this unprecedented technological evolution comes with great opportunity, it also poses significant ethical challenges for all of society, including GCHQ," the agency's director, Jeremy Fleming, said.
"Today, we are setting out our plan and commitment to the ethical use of AI in our mission.
"I hope it will inspire further thinking at home and abroad about how we can ensure fairness, transparency and accountability to underpin the use of AI."
It comes as the government prepares to publish its Integrated Review into security, defence, development and foreign policy, in which technology, including AI, is expected to play a central role.
GCHQ outlined areas where adversaries were already using AI, including:
A growing number of states are using AI to automate the production of false content to affect public debate, including "deepfake" video and audio, GCHQ warns.
The technology can individually target and personalise this content or spread it through chatbots or by interfering with social-media algorithms.
But it could also help GCHQ detect and fact-check it and identify "troll farms" and botnet accounts.
GCHQ says AI could:
Increasingly used to automate cyber-attacks, AI could also help identify malicious software and attackers as they continually develop new tactics to breach systems and steal data, GCHQ says.
Organised crime groups are becoming increasingly sophisticated in their use of technology, including encryption tools, the dark web and cryptocurrency, GCHQ says.
But AI could help:
UK's National Cyber Force comes out of the shadows
GCHQ put 'image before cost' with new building
Russian forces in Kyiv, says Ukraine
Fighting rages near Ukraine's capital after invasion
Russia bans British airlines from its airspace
John Simpson: Is this a new Cold War?
Why a year is a long time for vaccine safety
What role did these police have in Floyd’s death? Video
BBC Ukraine editor: There is no safe place any more
A high society beheading that caused outrage
Weekly quiz: Which pop royalty will play this jubilee gig?
The Indian teenager who defeated a world champion
Why has Putin invaded Ukraine?
How Taiwan used simple tech to help contain Covid-19
'You'd think I would've done something about it'
Comedian Dara O'Briain on why he can’t speak slowly!
Tips to help you save money!
Martin Lewis is here to help with broadband and mobile costs and more
One priceless art collection, stolen twice
The hunt for two paintings in the biggest art heist in history
© 2022 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.