The rise of artificial intelligence (AI) has triggered a revolution in a variety of industries, transforming the way we live.