Numerous variables, such as changes in the environment, toxins, spontaneous mutations, and replication mistakes, can have an impact on DNA. It is known as a gene mutation when this occurrence permanently alters the DNA sequence that forms a gene, changing it from the sequence seen in most people. Alleles, which are small variations within the same gene, are produced as a result of mutations. Each person is different due to these minute variations in their DNA sequence. In particular, some mutations affect just the carriers, whilst others affect both all children and the carrier organism's progeny. Changes in the DNA sequence (genetic mutations) are one of the reasons that lead to life-threatening disorders such as cancer and other diseases, so it has become necessary to detect these mutations early and know their types and their impact on the DNA sequence The DNA modifications developing in the cells of the following generation are what bioinformatics is most concerned about. In this paper, an efficient approach based on the architecture of long-term memory (LSTM) recurrent neural networks is presented. The method involves locating mutations using the Needleman algorithm that compares the reference DNA sequence with the mutant sequence. The deep neural network is then trained on the Cancer Cell Lines portal (CCLE) dataset to classify the different types of genetic mutations that have been identified. The algorithm reports the mutation type and locus for each pair of DNA inputs. Finally, the simulation output demonstrates the effectiveness of the algorithm. By testing the method, it was found that it was able to identify the mutation type with 100% accuracy.