Multilevel neural network approach for general pur pose qualità diagnosis