Image classification by integration of neural networks and machine learning