It always helps to determine optimal solutions for stochastic problems thereby maintaining good balance between its key elements. Nature inspired algorithms are meta-heuristics that mimic the natural activities for solving optimization issues in the era of computation. In the past decades, several research works have been presented for optimization especially in the field of data mining. This paper addresses the implementation of bio-inspired optimization techniques for machine learning based data mining classification by four different optimization algorithms. The stochastic problems are overcome by training the neural network model with techniques such as barnacles mating , black widow optimization, cuckoo algorithm and elephant herd optimization. The experiments are performed on five different datasets, and the outcomes are compared with existing methods with respect to runtime, mean square error and classification rate. From the experimental analysis, the proposed bio-inspired optimization algorithms are found to be effective for classification with neural network training.