1. A method for teaching a knowledge-based database for automatic defect classification, which comprises: (a) selecting a review data file; (b) inputting of parameters and data by a user on one page of a learning mode wherein the parameters and the data are known to the user; (c) starting an alignment procedure and a procedure for adjusting light intensity; (d) automatically adjusting the optimal intensity of the lighting by approaching a few defects and if necessary regulating the optimal illumination; (e) checking a detection using a few examples, whereby the optimization of the detection parameters is carried out using pictures; (f) automatically approaching all defects of a wafer or wafers, whereby the respective defect is detected and a descriptor is assigned to the respective defect; and, (g) analyzing and automatically grouping of the descriptors of the defect.