The State of Health (SOH) is a critical performance metric that characterizes the condition of lithium-ion batteries, directly influencing their lifespan and operational efficiency. In order to enhance the accuracy of SOH predictions for batteries and reduce operational risks, a novel approach has been introduced. This method, based on Health Matrix Optimization for Long Short Term Memory (LSTM) neural networks, aims to optimize the prediction process. Initially, the Spearman correlation coefficient method is employed to analyze the correlation of battery state data. Through the use of a heatmap, data points with strong correlations to SOH are identified, leading to the creation of a health feature matrix. This matrix is then utilized to fine-tune the hyperparameters of the LSTM neural network, resulting in refined approximations. Subsequently, by employing this optimized LSTM neural network, accurate predictions of the SOH for lithium-ion batteries are made. The results demonstrate a notable improvement in prediction accuracy by 35.71% and a significant increase in prediction speed by 35.5% when compared to traditional methods. This innovative approach proves to be effective in enhancing battery performance and longevity.