Preprocessing, optimal network architecture and extracting knowledge