In this work, neutron spectra are unfolded using artificial neural networks (ANNs). The neutron response of the NE213 scintillator detector, characterized by the pulse height distribution, is calculated to obtain the necessary data for unfolding the energy spectrum. This is achieved using both analytical response functions and response functions generated by the MCNPX-PHOTRACK code. In this query, the Levenberg-Marquardt method (LMM), which has a high computational speed in the learning method, is used to train the network. The performance of the ANN for unfolding the neutron energy spectrum of the NE213 scintillation detector was evaluated by comparing its results to the established Gravel method. The ANN method consistently produced spectra with a single peak closely matching the incident energy, while the Gravel method showed additional peaks and distortions. Quantitative analysis revealed a lower relative energy peak difference (indicating higher accuracy) for the ANN method compared to Gravel, particularly when noise was introduced into the data. These results suggest that ANNs offer a more robust and accurate approach for neutron spectrum unfolding.