Sine neural network (SNN) with double-stage weights and structure determination (DS-WASD)