Figure 8 is the feature importance graph of random
forest depicts that “BPM” (beats per minute) occupies
the highest importance in affecting music listeners’
mental health states. “Fav genre” (favorite genre)
ranks the second and “Hours per day” has a moderate
effect. “Music effects” (self-analyzed music effects
on individual mental health states) contributes the
least to predicting mental health conditions using
random forest.
3.2 Compare Results
Based on table 2, which shows the RMSE value for
each model and for each category of mental health
issues, logistic regression generally outperforms
random forest and XGBoost since it has relatively
low RMSEs among all four mental health states,
indicating a more accurate prediction ability.
Nevertheless, the logistic regression model is never
without room for improvement.
Table 2: RMSE values for all three models regarding four mental health states
RMSE Anxiet
ression Insomnia OCD
Logistic Regression 0.5608 0.6720 0.6538 0.5080
Random Forest 0.6720 0.7184 0.6660 0.5820
XGBoost 0.6538 0.7405 0.6538 0.6222
4 CONCLUSION
In conclusion, although the percentages of false
predictions are not so significant in terms of both
logistic regression and XGBoost, the RMSE figure is
not good enough. Overall, the paper partly
demonstrates the influence of music on mental health,
with beats per minute (BPM) affecting the most.
Nevertheless, the research might be more convincing
if the RMSE values are lower than 0.1. For future
improvement, the reason of the relatively bad
performance must be determined. Poor data quality is
the culprit of underperformance since the self-
assessment of mental health indicators might deviate
due to subjective factors and inconsistent criteria,
which will affect the effectiveness of the dataset. Also
the lack of restrictions in data collection may also lead
to some noise. In addition, the model itself should be
modified by adjusting the parameters and considering
probable other complicated relationship between
music and mental health states rather than splitting
the level into two groups. Last but not least, other
variables such as the time period of listening to music
in a day are not taken into consideration. These
factors may also affect people’s mental health status.
In conclusion, while the performance of the proposed
model does not meet researcher’s expectation, it does
provide some insights into the relationship between
music and mental health, and at the same time paves
the way for future optimization.
REFERENCES
Bogt, T. T., Hale, W. W. Becht, A. 2021. Wild Years: Rock
Music, Problem Behaviors and Mental Well-being in
Adolescence and Young Adulthood. J Youth, 50, 2487-
2500.
Borg, M. E., Heffer, T. Willoughby, T. 2024. Generational
Shifts in Adolescent Mental Health: A Longitudinal
Time-Lag Study. J. Youth Adolescence, 1-12.
Bowling, D. L. 2023. Biological Principles for Music and
Mental Health. Transl Psychiatry, 13, 374.
Chen, L. F. 2024. Analysis on the Construction Path of
College Students' Mental Health Education and
Guidance Mechanism in the New Media Era. News
Research Guide, 15 (01), 148-150.
Han, Y., Yang, Y., Shentu, M. L., et al. 2025. Positive
Mental Health (PMH) Scale for Middle School
Students: Structure and Measure. Journal of Peking
University (Natural Science), 61(01), 166-172.
He, Q., Attan, S. A., Zhang, J. et al. 2024. Evaluating Music
Education Interventions for Mental Health in Chinese
University Student: a Dual Fuzzy Analytic Method. Sci
Rep, 14, 19727.
Hill, E. D., Kashyap, P., Raffanello, E. et al. 2025.
Prediction of Mental Health Risk in Adolescents. Nat
Med, 1-7.
Hu, P. Y. 2024. Application of Music Therapy in College
Students' Mental Health Education. Education Science
& Culture Magazine, 18, 184-188.
Wang, L. 2023. Exploring the Influence of Music
Education on the Development of College Mental
Health based on Big Data. Soft Comput. 27, 17213-
17229.
Yang, Y. Q., Huang, J., Lin, Z. X., et al. 2025. Mental
Health Literary and its Relationship with Symptoms of
Depression, Anxiety, and Insomnia in Young Adults.
Chinese Mental Health Journal, 4, 344-349.