Learning, Evaluation and Avoidance of Failure situations (LEAF) is a tool for failure prevention in robot's task plan by learning from previous experience.
Related research papers:
http://www.fsr.ethz.ch/papers/FSR_2017_paper_5.pdf
https://link.springer.com/chapter/10.1007/978-3-319-70136-3_10