The Underwater Acoustic Sensor Network (UASN) is a large network in which the vicinity of a transmitting node is made up of numerous operational sensor nodes. The communication process may be substantially disrupted due to the underwater acoustic channel’s time-varying and space-varying features. As a result, the underwater acoustic communication system faces the problems of reducing interference and enhancing communication effectiveness and quality through adaptive modulation. To overcome this issue, this paper intends to propose a model for optimal path selection and secured data transmission in UASN via Long Short-Term Memory (LSTM) based energy prediction. The proposed model of transmitting the secured data in UASN through the optimal path involves two major phases. Initially, the nodes are selected under the consideration of constraints like energy, distance and link quality in terms of throughput. Moreover, the energy is predicted with the aid of LSTM and the optimal path is selected with the proposed hybrid optimization algorithm termed as Pelican Updated Chimp Optimization Algorithm (PUCOA), which is the combination of two algorithms including the Pelican Optimization Algorithm (POA) and Chimp Optimization Algorithm (COA). Further, the data is transmitted via the optimal path securely by encrypting the data with the proposed improved blowfish algorithm (IBFA). At last, the developed LSTM+PUCOA model is validated with standard benchmark models and it proves that the performance of the proposed LSTM+PUCOA model attains 90.85% of accuracy, 92.78% of precision, 91.78% of specificity, 89.79% of sensitivity, 7.21% of FPR, 89.76% of F1 score, 89.77% of MCC, 10.20% of FNR, 92.45% of NPV, and 10.22% of FDR for Learning percentage 70.