The stability of the operation of the power system is essential to ensure a continuous supply of electricity to meet the load of the system. In the operational process, voltage stability (VS) should be recognized and predicted as a basic requirement. In electrical systems, deep learning and machine learning algorithms have found widespread applications. These algorithms can learn from previous data to detect and predict future scenarios of potential instability. This study introduces long short-term memory (LSTM) technology to predict the stability of the nominal voltage of the power system. Based on the results, the recommended LSTM technology achieved the highest accuracy target of 99.5%. In addition, the LSTM model outperforms other machine learning (ML) and deep learning techniques, i.e., support vector machines (SVMs), Naive Bayes (NB), and convolutional neural networks (CNNs), when comparing the accuracy of the VS forecast. The results show that the LSTM method is useful to predict the voltage of an electrical system. The IEEE 33-bus system indicates that the recommended approach can rapidly and precisely verify the system stability category. Furthermore, the proposed method outperforms conventional assessment methods that rely on shallow learning.