A rapid test harnessing the power of AI is set to transform the diagnosis of a lung condition that affects 3 million people in the UK.