Neural Networks to Study Invariant Features of Protein Folding