Substructural identification using neural networks