Reliable and structural deep neural networks