Capacity prediction of lithium-ion batteries represents an important function of battery management systems. Conventional machine learning-based methods for capacity prediction are inefficient to learn long-term dependencies during capacity degradations. This paper investigates the deep learning method for lithium-ion battery's capacity prediction based on long short-term memory recurrent neural network, which is employed to capture the latent long-term dependence of degraded capacity. The neural network is adaptively optimized by the Adam optimization algorithm, and the dropout technique is exploited to prevent overfitting. Based on the offline cycling aging data of batteries, the capacity prediction performance is validated and evaluated. The experimental results demonstrate that the proposed algorithm can accurately track the nonlinear degradation trend of capacity within the whole lifespan with a maximum error of only 2.84%. INDEX TERMS Lithium-ion batteries, capacity prediction, aging factors, long short-term memory (LSTM).