The powerful tool for defect analysis is an expert system. It is a computer programme based on the knowledge of experts for solving the quality of castings. We present the expert system developed in the VSB-Technical University of Ostrava called ‘ESWOD’. The ESWOD programme consists of three separate modules: identification, diagnosis / causes and prevention / remedy. The identification of casting defects in the actual form of the system is based on their visual aspect.