Image copyright Getty Images Image caption World Bank Group President Jim Yong Kim says the world is a on a "crash course"

The world is on a "crash course" as people's hopes collide with a future in which millions of jobs are automated, the World Bank chief has said.

Jim Yong Kim said policymakers should take action by investing in education and health.

The World Bank president was speaking in New York ahead of the group's annual meeting in Washington DC this week.

The remarks come amid wider concerns about political threats to economic growth.

The World Bank plans to publish a ranking of countries that measures investments in "human capital", such as education.

The focus is a shift for the organisation, which was established after World War Two to spur infrastructure reconstruction.

But Dr Kim said other kinds of investments are important to economic growth in the future, as robots displace millions of low-skill workers.

"The one thing you know for sure that you'll need in whatever the economy looks like in the future is people who can learn," he told the BBC.

"We want to create a sense of urgency to invest in people that we think is necessary given the way ... the global economy is changing."

Political risks

The push for education and health investments comes as outlooks for economic growth improve.

In July the IMF said it expected the global economy to expand by 3.5% this year and by 3.6% in 2018.

Image copyright Getty Images Image caption IMF chief Christine Lagarde says the global economic recovery should not be wasted

IMF managing director Christine Lagarde said updated forecasts, to be released this week, were likely to be even more optimistic.

However, bankers from the IMF, World Bank and other organisations have warned that the progress is threatened by political movements that favour trade barriers, isolation, military aggression and other measures.

"If your aspirations start to rise but then there's no opportunity it can lead to fragility, conflict, violence," Dr Kim said. "This is the crash course we're going down."

Political uncertainties are increasingly behind many of the risks identified by sovereign debt analysts, said Moritz Kraemer, managing director of S&P Global Ratings, which tracks economic and political movements in dozens of countries to devise credit ratings.

The subject was also the topic of a speech by European Central Bank president Mario Draghi earlier this year.

Ms Lagarde said this month that policymakers "should not let a good recovery go to waste".

"We know what can happen if we let the moment pass," she said. "Growth will be too weak, and jobs too few. Safety nets will be unable to handle aging populations. Our financial system will be unprepared for future shocks."