Heuristic techniques to optimize neural network architecture in manufacturing applications