A new study develops a K-nearest neighbours model to identify patients at high risk of recurrent fainting after patent foramen ovale closure.