Samsung Electronics Co said on Wednesday it planned to invest $22 billion in artificial intelligence technology by 2020.