Toward cognitive support for automated defect detection