Unraveling Feature Extraction Mechanisms in Neural Networks