The demand for accurate localization in complex environments continues to increase despite the difficulty in extracting positional information from measurements are not yet complete. Like any other process, localization also has security requirements. The use of ultra-wideband (UWB) indoor localization systems have recently grown quickly in industries, with a reliable, fast, and have high accuracy performances. In particular, time difference-of-arrival (TDOA) is one of the widely used localization models. However, as TDOA measurement errors increase, the accuracy of the localization decreases. The accuracy of the TDOA measurement is influenced the accuracy of the localization and affected by multiple factors such as time synchronization, errors in sensor positions, missing data is caused by network attack. To reduce the influence of a sensor measurement error in localization, this paper proposes an improved localization algorithm for source localization using deep learning to address a TDOA measurements error or missing data in an asynchronous localization called DeepTAL. Unlike the conventional algorithm, DeepTAL can obtain highly accurate localization data in the presence of TDOA measurement errors or missing data. The algorithm starts with TDOA measurements without time synchronization. A network based on Long Short-Term Memory (LSTM) is then applied to achieve a stronger learning and better representation of the determined target state and TDOA prediction. The network can express features more abstractly at higher levels and increase recognition accuracy. After that, the target node is accurately located by TDOAs. We implement the DeepTAL algorithm on an asynchronous localization system with UWB signals. The experiments show that the proposed DeepTAL algorithm is efficient in improving the localization precision as measurement errors or missing data.