This study explores the effectiveness of music therapy in repairing psychological trauma in bereaved families, aiming to provide a comprehensive understanding of its potential therapeutic impact. It begins with an analysis of the current situation faced by bereaved families, identifying the psychological challenges they experience. The research design included the recruitment of participants from bereaved families, who were then divided into an experimental group and a control group. An optimized Long Short-Term Memory (LSTM) network model was constructed to analyze music therapy data, tailored specifically to capture the nuances of this therapeutic process. The experimental procedure detailed the specific operations involved in the music therapy sessions and established a clear comparison framework between the two groups. The performance of the proposed LSTM model demonstrated high accuracy (0.85), precision (0.86), recall (0.84), and F 1-score (0.85), indicating its effectiveness in predicting treatment outcomes. When compared to the Self-Reporting Inventory-90 (SCL-90) scale, the model captured the trend of treatment effects with a high level of accuracy and reliability. Notably, participants numbered 2, 6, and 8 in the experimental group showed substantial improvement rates of 67.21%, 71.45%, and 75.67%, respectively, in their psychological health issues. The comparative analysis between the experimental and control groups confirmed that the music therapy approach, as guided by the proposed LSTM model, led to a more significant improvement in psychological health issues for bereaved families. This suggests that the model offers a promising avenue for enhancing the effectiveness of music therapy in this context.