The term artificial intelligence typically refers to automation of tasks by software that previously required human levels of intelligence to perform. While machine learning is sometimes used interchangeably with AI, machine learning is just one sub-category of artificial intelligence whereby a device learns from its access to a stream of data.When we talk about AI spending, we’re typically talking about investment that companies are making in building AI capabilities. While this may change in the future, McKinsey estimates that the vast majority of spending is done internally or as an investment, and very little of it is done purchasing artificial intelligence applications from other businesses.