In this proposed model, back propagation algorithm of neural network is replaced by PSO algorithm. Here the randomly generated weights are assigned in each link of neural network. In particle swarm optimization algorithm, PBest is the location of the best solution of a particle has achieved so far. GBest is the location of the best solution that any neighbor of a particle has achieved so far. Initially random numbers are generated for each particle and these random values are considered as PBest and present weights. Velocity is calculated using Eq. (6) and added with the present weight in each link of neural network. For each particle, the newly calculated weights are compared with the PBest weights and the minimum error produced weights are stored in PBest. Initial velocity V is assumed to be 1 and GBest is the weights of minimum error produced particle. New weight is calculated as in Eq. (7).