Toyota to apply artificial intelligence to boost efficiency in its factories