Accurate prediction of cancer survival plays a crucial role in treatment planning and precision oncology. This study proposes an adaptive brown bear optimization enhanced grid-long short-term memory (ABBO-Grid-LSTM) model for cancer survival prediction using gene expression data. The ABBO algorithm is used to optimize the Grid-LSTM parameters for improved convergence and reduced local minima issues. A hybrid feature extraction strategy based on relative strength index (RSI) and Bollinger bands percentage (BOLL%B) indicators is introduced to capture variation patterns in gene expression profiles and improve survival related feature representation. The proposed model was evaluated using PAN-CANCER and molecular taxonomy of breast cancer international consortium (METABRIC) datasets and compared with conventional and deep learning based survival prediction models. Experimental results show that the proposed ABBO-Grid-LSTM achieved lower normalized MAPE and prediction error compared with existing methods. Analysis of variance (ANOVA) confirmed that the performance improvement was statistically significant (p < 0.05). The proposed framework also supports survival risk estimation and provides a scalable approach for future transcriptomic and multi-omics survival prediction studies. The proposed model achieved normalized Mean absolute percentage error (MAPE) values of 0.374 and 0.390 with prediction errors of 0.121 and 0.138 using the PAN-CANCER and METABRIC datasets, respectively.