A team of researchers in the Netherlands say they may be able to identify the IVF treatment cycles which are unlikely to work by carrying out tests to measure bacteria in urine or in the vagina. The team from Erasmus MC in Rotterdam say that their work has enabled them to predict, with an accuracy of 96%, when a woman is not going to get pregnant using IVF.
As with many of these things, the research is still at an early stage and far more investigation in a wider group of women will be needed before this would be ready to be used in a clinical setting so you are not likely to be able to access this kind of testing at a clinic near you in the near future.
Further trials are likely, and there may also be work to determine whether lifestyle changes could alter the levels of bacteria. You can read more about it on the website http://www.erasmusmc.nl