New study will use artificial intelligence to improve treatments for people with multiple long-term conditions