Lightweight Neural Network Implementation and its application