{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T11:08:58Z","timestamp":1788952138932,"version":"build-2803163510"},"reference-count":38,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T00:00:00Z","timestamp":1788912000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Psychol."],"abstract":"<jats:p>Around several hundred million people globally suffer from severe or negative mental health illnesses (MH). However, individuals report highly variable perceptions of music\u2019s impact on their mental health. The purpose of this study was to develop and validate machine learning-based model to predict the effects of music on self-reported mental health (MH). The benchmark dataset is used to analyse the evaluated machine-learning models which has 1,626 individuals across 34 variables. Further this dataset is split into training and testing set, respectively, using state of the art techniques. Of all the machine learning algorithms examined, the Subspace KNN classifier performed the best with a classification accuracy rate of 90.2 percent. Nevertheless, the main importance of the study lies in its methodology, and not in the algorithms themselves, showing how sensitivity analysis shows that the predictors and the design of the study have much more impact on prediction performance than the algorithms used. While there have been studies that have introduced novel architectures for machine learning, this study aims to systematically compare existing supervised learning methods to a relatively under-explored prediction task in which heterogeneous self-reported perceptions of music\u2019s effects on mental health are predicted. The key methodological advance is not just comparison of classifiers, but the sensitivity analysis that shows that the choice of the classification algorithm has far less effect on the predictive performance than does the choice of the predictors and the study design. It is necessary to note that the high level of classification accuracy does not mean that listening to music is the only factor predicting the efficacy of therapy. The fact is that a large portion of the prediction ability results from the initial state of the individual\u2019s mental health, which is directly related to the outcome variable and thus makes up the predictor-outcome circularity. However, sensitivity analysis showed that the performance of the classifier was significantly affected by the presence of baseline mental health factors such as anxiety, depression, insomnia, and obsessive-compulsive disorder. However, it is important to note that this accuracy is substantially inflated by the inclusion of mental health severity predictors (anxiety, depression, OCD) that conceptually overlap with the outcome variable. A sensitivity analysis excluding these variables yielded a more modest accuracy of 73.2%, indicating that the model\u2019s predictive power derives primarily from this circular relationship rather than from music-specific features. In order to determine the contribution of the features related specifically to music, a further sensitivity test was conducted by excluding mental health-related variables. With this, the accuracy of classification was reduced to 73.2%. This suggests that the selection of predictors is more significant to the success of the model than the selection of the algorithm. Thus, results should be taken to reflect prediction of response to music. Moreover, about one-third of participants who reported balanced distributions for each group on all outcome measures indicated that they experienced negative effects of music in terms of their MH, which puts into question whether it is fair to assume that all people with MH disorders derive benefits from exposure to music. Finally, results indicate that exposure to music can help differentiate groups based on the genre of music they listened to before outcome assessments. However, the primary contribution of this study lies more in its empirical nature than in its algorithmic aspect. Unlike previous studies that have introduced novel machine learning techniques for modeling behavioral health, this research assesses existing machine learning methods to predict self-reported perceptions about the effect of music on mental wellbeing. This assessment reveals that predictor selection impacts machine learning models significantly more than the choice of machine learning algorithm.<\/jats:p>","DOI":"10.3389\/fpsyg.2026.1864672","type":"journal-article","created":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T10:12:17Z","timestamp":1788948737000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Understanding emotional responses to music using machine learning: evidence from a public dataset"],"prefix":"10.3389","volume":"17","author":[{"given":"He","family":"Sun","sequence":"first","affiliation":[{"name":"School of Music, Suzhou University of Science and Technology","place":["Suzhou, China"]},{"name":"College of Education, Zhejiang University","place":["Hangzhou, China"]},{"name":"Guidance Environment Emergency Technology Equipment Research Center (Chongqing) Co., Ltd.","place":["Chongqing, China"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2026,9,9]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","first-page":"e0324369","DOI":"10.1371\/journal.pone.0324369","article-title":"The role of music in ADHD: a multi-dimensional computational and theoretical analysis","volume":"20","author":"Achuthan","year":"2025","journal-title":"PLoS One"},{"key":"ref2","doi-asserted-by":"publisher","first-page":"1039","DOI":"10.1038\/s41598-025-30760-5","article-title":"Mental health in digital microsystems across three Asian reddit communities","volume":"16","author":"Achuthan","year":"2026","journal-title":"Sci. Rep."},{"key":"ref3","doi-asserted-by":"publisher","first-page":"e0270031","DOI":"10.1371\/journal.pone.0270031","article-title":"Music listening and stress recovery in healthy individuals: a systematic review with meta-analysis of experimental studies","volume":"17","author":"Adiasto","year":"2022","journal-title":"PLoS One"},{"key":"ref4","doi-asserted-by":"publisher","first-page":"1779","DOI":"10.1177\/03057356211065061","article-title":"Maladaptive music listening strategies are modulated by individual traits","volume":"50","author":"Alluri","year":"2022","journal-title":"Psychol. Music"},{"key":"ref0001","doi-asserted-by":"publisher","first-page":"8","DOI":"10.58729\/1941-6687.1476","volume":"22","author":"Buhari","year":"2024"},{"key":"ref5","doi-asserted-by":"publisher","first-page":"351","DOI":"10.1007\/s00520-019-04817-x","article-title":"Music, heart rate variability, and symptom clusters: a comparative study","volume":"28","author":"Chen","year":"2020","journal-title":"Support. Care Cancer"},{"key":"ref6","doi-asserted-by":"publisher","first-page":"233","DOI":"10.1177\/00938548241291026","article-title":"Sex differences in coping strategies and well-being during the COVID-19 pandemic among Taiwanese police officers","volume":"52","author":"Chu","year":"2025","journal-title":"Crim. Justice Behav."},{"key":"ref7","doi-asserted-by":"publisher","first-page":"e532","DOI":"10.1093\/pubmed\/fdad059","article-title":"Music therapy for health workers to reduce stress, mental workload and anxiety: a systematic review","volume":"45","author":"Colin","year":"2023","journal-title":"J. Public Health (Oxf.)"},{"key":"ref8","doi-asserted-by":"publisher","first-page":"81","DOI":"10.1186\/s13019-020-01141-y","article-title":"The effect of music therapy on pain, anxiety and depression in patients after coronary artery bypass grafting","volume":"15","author":"Dai","year":"2020","journal-title":"J. Cardiothorac. Surg."},{"key":"ref9","doi-asserted-by":"publisher","first-page":"134","DOI":"10.1080\/17437199.2020.1846580","article-title":"Music therapy for stress reduction: a systematic review and meta-analysis","volume":"16","author":"De Witte","year":"2022","journal-title":"Health Psychol. Rev."},{"key":"ref10","doi-asserted-by":"publisher","first-page":"18","DOI":"10.1017\/S0266462321001094","article-title":"PP90 effectiveness of music therapy for autism spectrum disorder, dementia, depression, insomnia, and schizophrenia","volume":"37","author":"Gassner","year":"2021","journal-title":"Int. J. Technol. Assess. Health Care"},{"key":"ref12","doi-asserted-by":"publisher","first-page":"16","DOI":"10.1007\/s12264-021-00762-0","article-title":"Association of increased amygdala activity with stress-induced anxiety but not social avoidance behavior in mice","volume":"38","author":"Huang","year":"2022","journal-title":"Neurosci. Bull."},{"key":"ref13","doi-asserted-by":"publisher","first-page":"100350","DOI":"10.1016\/j.health.2024.100350","article-title":"A comprehensive review of predictive analytics models for mental illness using machine learning algorithms","volume":"6","author":"Islam","year":"2024","journal-title":"Healthcare Analytics"},{"key":"ref14","doi-asserted-by":"publisher","first-page":"10309","DOI":"10.1007\/s00521-021-06208-y","article-title":"Suicidal ideation and mental disorder detection with attentive relation networks","volume":"34","author":"Ji","year":"2022","journal-title":"Neural Comput. & Applic."},{"key":"ref15","doi-asserted-by":"publisher","first-page":"157716","DOI":"10.1109\/ACCESS.2024.3484470","article-title":"Music emotion recognition based on deep learning: a review","volume":"12","author":"Jiang","year":"2024","journal-title":"IEEE Access"},{"key":"ref16","doi-asserted-by":"publisher","first-page":"1552396","DOI":"10.3389\/fdgth.2025.1552396","article-title":"Advancing personalized digital therapeutics: integrating music therapy, brainwave entrainment methods, and AI-driven biofeedback","volume":"7","author":"Jiao","year":"2025","journal-title":"Front. Digital Health"},{"key":"ref17","first-page":"239","volume-title":"Sentiment Sounds: Orchestrating Emotions with Machine Learning for Personalized Song Recommendations","author":"Kadam","year":"2024"},{"key":"ref18","doi-asserted-by":"publisher","first-page":"2545","DOI":"10.1109\/TAFFC.2025.3583505","article-title":"Are we there yet? A brief survey of music emotion prediction datasets, models and outstanding challenges","volume":"16","author":"Kang","year":"2025","journal-title":"IEEE Trans. Affect. Comput."},{"key":"ref19","volume-title":"Utilizing Machine Learning to Identify Mental Health Issues Based on Music Genre Preferences 2025 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT)","author":"Kurniawan","year":"2025"},{"key":"ref20","doi-asserted-by":"publisher","first-page":"338","DOI":"10.3390\/brainsci15040338","article-title":"Music therapy in depression: exploring mechanisms and efficacy in rat models","volume":"15","author":"Le","year":"2025","journal-title":"Brain Sci."},{"key":"ref21","doi-asserted-by":"publisher","first-page":"221","DOI":"10.26599\/IJCS.2025.9100011","article-title":"Applications of artificial intelligence in music: a review","volume":"9","author":"Ma","year":"2025","journal-title":"Int. J. Crowd Sci."},{"key":"ref22","doi-asserted-by":"publisher","first-page":"1505694","DOI":"10.3389\/fpsyg.2025.1505694","article-title":"The role of musical aspects of language in human cognition","volume":"16","author":"Pastuszek-Lipi\u0144ska","year":"2025","journal-title":"Front. Psychol."},{"key":"ref23","doi-asserted-by":"publisher","first-page":"692","DOI":"10.1007\/s42452-025-07178-9","article-title":"Review on music emotion analysis using machine learning: technologies, methods, datasets, and challenges","volume":"7","author":"Patil","year":"2025","journal-title":"Discov. Appl. Sci."},{"key":"ref24","author":"Raihan","year":"2024"},{"key":"ref25","doi-asserted-by":"publisher","first-page":"281","DOI":"10.1016\/j.joim.2022.01.005","article-title":"Addressing the need for personalizing music therapy in integrative oncology","volume":"20","author":"Rajendran","year":"2022","journal-title":"J. Integr. Med."},{"key":"ref26","doi-asserted-by":"publisher","first-page":"100374","DOI":"10.1016\/j.bbih.2021.100374","article-title":"Music, mental health, and immunity","volume":"18","author":"Rebecchini","year":"2021","journal-title":"Brain Behav. Immunity Health"},{"key":"ref27","volume-title":"Eight Shows a Week: Investigating the Psychological Cost of a Musical Theatre Performance Career","author":"Risley","year":"2025"},{"key":"ref28","doi-asserted-by":"publisher","first-page":"1","DOI":"10.25163\/angiotherapy.729405","article-title":"Predictive modeling of the chronic pain-induced depression in old adults based on music intervention","volume":"7","author":"Sahu","year":"2023","journal-title":"J. Angiother."},{"key":"ref29","doi-asserted-by":"publisher","first-page":"1400444","DOI":"10.3389\/fnins.2024.1400444","article-title":"A review of artificial intelligence methods enabled music-evoked EEG emotion recognition and their applications","volume":"18","author":"Su","year":"2024","journal-title":"Front. Neurosci."},{"key":"ref30","doi-asserted-by":"publisher","first-page":"45460","DOI":"10.1038\/s41598-025-29200-1","article-title":"Feature centric based deep learning approach for music mood recognition with HuBERT transformer model","volume":"15","author":"Sun","year":"2025","journal-title":"Sci. Rep."},{"key":"ref31","doi-asserted-by":"publisher","first-page":"e0240862","DOI":"10.1371\/journal.pone.0240862","article-title":"Effects of music therapy on depression: a meta-analysis of randomized controlled trials","volume":"15","author":"Tang","year":"2020","journal-title":"PLoS One"},{"key":"ref32","doi-asserted-by":"publisher","first-page":"4839334","DOI":"10.1155\/da\/4839334","article-title":"Method matters: enhancing voice-based depression detection with a new data collection framework","volume":"2025","author":"Vilenchik","year":"2025","journal-title":"Depress. Anxiety"},{"key":"ref33","doi-asserted-by":"publisher","first-page":"128135","DOI":"10.1109\/ACCESS.2023.3332289","article-title":"Extracting mental health indicators from English and Spanish social media: a machine learning approach","volume":"11","author":"Villa-P\u00e9rez","year":"2023","journal-title":"IEEE Access"},{"key":"ref34","doi-asserted-by":"publisher","first-page":"e72","DOI":"10.1002\/brx2.72","article-title":"Music therapy for depression: a narrative review","volume":"2","author":"Wang","year":"2024","journal-title":"Brain-X"},{"key":"ref35","doi-asserted-by":"publisher","first-page":"1741463","DOI":"10.3389\/fpsyg.2026.1741463","article-title":"The application of AI-assisted music therapy tools in mental health interventions","volume":"17","author":"Wei","year":"2026","journal-title":"Front. Psychol."},{"key":"ref36","doi-asserted-by":"publisher","first-page":"92","DOI":"10.1177\/03057356231225670","article-title":"Music engagement for stress and anxiety in adults during the COVID-19 pandemic: a systematic review","volume":"53","author":"Zhang","year":"2025","journal-title":"Psychol. Music"},{"key":"ref37","doi-asserted-by":"publisher","first-page":"762701","DOI":"10.3389\/fpsyg.2022.762701","article-title":"The use of deep learning-based gesture interactive robot in the treatment of autistic children under music perception education","volume":"13","author":"Zhang","year":"2022","journal-title":"Front. Psychol."},{"key":"ref38","doi-asserted-by":"publisher","first-page":"393","DOI":"10.1515\/humor-2020-0055","article-title":"The association of animated sitcom viewing with humor styles and humor types","volume":"34","author":"Zsila","year":"2021","journal-title":"Humor"}],"container-title":["Frontiers in Psychology"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fpsyg.2026.1864672\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,9]],"date-time":"2026-09-09T10:12:20Z","timestamp":1788948740000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fpsyg.2026.1864672\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,9]]},"references-count":38,"alternative-id":["10.3389\/fpsyg.2026.1864672"],"URL":"https:\/\/doi.org\/10.3389\/fpsyg.2026.1864672","relation":{},"ISSN":["1664-1078"],"issn-type":[{"value":"1664-1078","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,9]]},"article-number":"1864672"}}