Accurately estimating the state of charge of lithium-ion batteries has become a crucial challenge in the development of battery management systems within the electric vehicle industry. To address this issue, numerous studies have explored various solutions, which can be categorized into two main approaches: 1) battery model derivation coupled with filter design, and 2) data collection for battery system identification. Ensuring high accuracy and real-time applicability are vital requirements for successful battery management systems development. The paper introduces a novel approach for estimating the state of charge, which includes two key components. The first one is the neural network utilization: this involves a neural network architecture that incorporates a one-dimensional convolutional neural network and long short-term memory and a multi-layer perceptron. The second one is the Ampere-hour integration compensation: it employs Ampere-hour integration to refine the predicted state of charge estimates obtained from the neural network, thereby improve the accuracy of the estimations. To validate the effectiveness of the proposed method, the researchers applied it to well-established lithium-ion battery datasets from the University of Maryland. The experimental results, when compared with previous studies, demonstrate that the proposed method significantly improves the accuracy of state of charge prediction across various environmental and operational conditions.