{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T01:28:49Z","timestamp":1760059729490,"version":"build-2065373602"},"reference-count":56,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2025,7,2]],"date-time":"2025-07-02T00:00:00Z","timestamp":1751414400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Informatics"],"abstract":"<jats:p>Mental health disparities among those who self-identify as gay men in Peru remain a pressing public health concern, yet predictive models for early identification remain limited. This research aims to (1) develop machine learning and deep learning models to predict mental health issues in those who self-identify as gay men, and (2) evaluate the influence of demographic, economic, health-related, behavioral and social factors using interpretability techniques to enhance understanding of the factors shaping mental health outcomes. A dataset of 2186 gay men from the First Virtual Survey for LGBTIQ+ People in Peru (2017) was analyzed, considering demographic, economic, health-related, behavioral, and social factors. Several classification models were developed and compared, including Logistic Regression, Artificial Neural Networks, Random Forest, Gradient Boosting Machines, eXtreme Gradient Boosting, and a One-dimensional Convolutional Neural Network (1D-CNN). Additionally, the Shapley values and Layer-wise Relevance Propagation (LRP) heatmaps methods were used to evaluate the influence of the studied variables on the prediction of mental health issues. The results revealed that the 1D-CNN model demonstrated the strongest performance, achieving the highest classification accuracy and discrimination capability. Explainability analyses underlined prior infectious diseases diagnosis, access to medical assistance, experiences of discrimination, age, and sexual identity expression as key predictors of mental health outcomes. These findings suggest that advanced predictive techniques can provide valuable insights for identifying at-risk individuals, informing targeted interventions, and improving access to mental health care. Future research should refine these models to enhance predictive accuracy, broaden applicability, and support the integration of artificial intelligence into public health strategies aimed at addressing the mental health needs of this population.<\/jats:p>","DOI":"10.3390\/informatics12030060","type":"journal-article","created":{"date-parts":[[2025,7,2]],"date-time":"2025-07-02T09:08:44Z","timestamp":1751447324000},"page":"60","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Predicting Mental Health Problems in Gay Men in Peru Using Machine Learning and Deep Learning Models"],"prefix":"10.3390","volume":"12","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7080-3325","authenticated-orcid":false,"given":"Alejandro","family":"Aybar-Flores","sequence":"first","affiliation":[{"name":"Department of Engineering, Universidad del Pac\u00edfico, Lima 15072, Peru"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5068-5357","authenticated-orcid":false,"given":"Elizabeth","family":"Espinoza-Portilla","sequence":"additional","affiliation":[{"name":"Faculty of Health Sciences, School of Medicine, Universidad Continental, Lima 15046, Peru"}]}],"member":"1968","published-online":{"date-parts":[[2025,7,2]]},"reference":[{"key":"ref_1","unstructured":"Castillo, A., and Cornejo, D. (2020). Factores Asociados al Autoreporte de Depresi\u00f3n y Ansiedad en los \u00daltimos Doce Meses en Personas LGTBI v\u00eda una Encuesta Virtual en Per\u00fa, 2017. [Bachelor\u2019s Dissertation, Universidad Peruana de Ciencias Aplicadas]."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Soriano-Moreno, D., Salda\u00f1a-Cabanillas, D., Vasquez-Yeng, L., Valencia-Huamani, J., Alave-Rosas, J., and Soriano, A. (2022). Discrimination and mental health in the minority sexual population: Cross-sectional analysis of the first peruvian virtual survey. PLoS ONE, 17.","DOI":"10.1371\/journal.pone.0268755"},{"key":"ref_3","unstructured":"Ponce, D. (2017). Factores Asociados a Problemas de Salud Mental. 2022. An\u00e1lisis de la Primera Encuesta Virtual para Personas LGBTI, Per\u00fa. [Bachelor\u2019s Dissertation, Universidad Ricardo Palma]."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Castaneda, J., Poma, N., Mougenot, B., and Herrera-A\u00f1azco, P. (2023). Association between the Expression of Sexual Orientation and\/or Gender Identity and Mental Health Perceptions in the Peruvian LGBTI Population. Int. J. Environ. Res. Public Health, 20.","DOI":"10.3390\/ijerph20095655"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"353","DOI":"10.1146\/annurev.clinpsy.3.022806.091510","article-title":"Sexual orientation and mental health","volume":"3","author":"Herek","year":"2007","journal-title":"Annu. Rev. Clin. Psychol."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"95","DOI":"10.1007\/s11920-018-0969-9","article-title":"Social Determinants of Mental Health: Where We Are and Where We Need to Go","volume":"20","author":"NeMoyer","year":"2018","journal-title":"Curr. Psychiatry Rep."},{"key":"ref_7","unstructured":"M\u00e1s Igualdad Per\u00fa (2025, January 10). II Estudio de Salud Mental LGBTIQ+\u2014Informe Final. Available online: https:\/\/www.masigualdad.pe\/_files\/ugd\/4aec54_c8d6e0ecec9c43fab85c79aaa04bbbd1.pdf."},{"key":"ref_8","unstructured":"INEI (National Institute of Statistics and Informatics) (2025, January 10). Primera Encuesta Virtual para Personas LGBTI 2017: Principales Resultados. Available online: https:\/\/www.inei.gob.pe\/media\/MenuRecursivo\/boletines\/lgbti.pdf."},{"key":"ref_9","unstructured":"M\u00e1s Igualdad Per\u00fa (2025, January 11). Salud Mental de Personas LGBTQ+ en Per\u00fa\u2014Informe Final. Available online: https:\/\/www.masigualdad.pe\/_files\/ugd\/4aec54_d267bbb3a8564e1980f90ccd15281c39.pdf."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Roth, C., Papassotiropoulos, A., Br\u00fchl, A., Lang, U., and Huber, C. (2021). Psychiatry in the Digital Age: A Blessing or a Curse?. Int. J. Environ. Res. Public Health, 18.","DOI":"10.3390\/ijerph18168302"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"116","DOI":"10.1007\/s11920-019-1094-0","article-title":"Artificial Intelligence for Mental Health and Mental Illnesses: An Overview","volume":"21","author":"Graham","year":"2019","journal-title":"Curr. Psychiatry Rep."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Iyortsuun, N., Kim, S., Jhon, M., Yang, H., and Pant, S. (2023). A Review of Machine Learning and Deep Learning Approaches on Mental Health Diagnosis. Healthcare, 11.","DOI":"10.3390\/healthcare11030285"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"56","DOI":"10.54254\/2755-2721\/2025.21185","article-title":"Prediction of Mental Problem Based on Deep Learning Models","volume":"138","author":"Huang","year":"2025","journal-title":"Appl. Comput. Eng."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"e17450179315688","DOI":"10.2174\/0117450179315688240607052117","article-title":"Machine Learning Techniques to Predict Mental Health Diagnoses: A Systematic Literature Review","volume":"20","author":"Madububambachu","year":"2024","journal-title":"Clin. Pract. Epidemiol. Ment. Health"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"e28962","DOI":"10.2196\/28962","article-title":"Machine Learning Applications in Mental Health and Substance Use Research Among the LGBTQ2S+ Population: Scoping Review","volume":"9","author":"Kundu","year":"2021","journal-title":"JMIR Med. Inf."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Chapagain, S. (2024). Predictive Insights into LGBTQ+ Minority Stress: A Transductive Exploration of Social Media Discourse. arXiv.","DOI":"10.1109\/DSAA61799.2024.10722807"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"15579883231176646","DOI":"10.1177\/15579883231176646","article-title":"Mental Health Disparities Among Homosexual Men and Minorities: A Systematic Review","volume":"17","author":"Malik","year":"2023","journal-title":"Am. J. Men\u2019s Health"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"2299","DOI":"10.1007\/s10508-022-02288-6","article-title":"Social Change and the Health of Sexual Minority Individuals: Do the Effects of Minority Stress and Community Connectedness Vary by Age Cohort?","volume":"51","author":"Frost","year":"2022","journal-title":"Arch. Sex. Behav."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"32","DOI":"10.1037\/a0014672","article-title":"Internalized Stigma Among Sexual Minority Adults: Insights From a Social Psychological Perspective","volume":"56","author":"Herek","year":"2009","journal-title":"J. Couns. Psychol."},{"key":"ref_20","unstructured":"World Health Organization, and Calouste Gulbenkian Foundation (2014). Social Determinants of Mental Health, World Health Organization. Available online: https:\/\/iris.who.int\/bitstream\/handle\/10665\/112828\/9789241506809_eng.pdf."},{"key":"ref_21","first-page":"58","article-title":"The social determinants of mental health and disorder: Evidence, prevention and recommendations","volume":"23","author":"Kirkbride","year":"2024","journal-title":"World Psychiatry Off. J. World Psychiatr. Assoc."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Zhang, Y., Chen, S., Akintunde, T., Okagbue, E., Isangha, S., and Musa, T. (2024). Life course and mental health: A thematic and systematic review. Front. Psychol., 15.","DOI":"10.3389\/fpsyg.2024.1329079"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"2018000","DOI":"10.1176\/appi.ps.201800060","article-title":"Addressing the Social Determinants of Mental Health: If Not Now, When? If Not Us, Who?","volume":"69","author":"Shim","year":"2018","journal-title":"Psychiatr. Serv."},{"key":"ref_24","first-page":"122","article-title":"The use of machine learning algorithms to predict mental health outcomes based on behavioral data collected through digital devices","volume":"49","author":"Burrichter","year":"2022","journal-title":"Arch. Clin. Psychiatry"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Chen, T., Carter, J., Mahmud, M., and Khuman, A. (2022). Computational Intelligence in Depression Detection. Artificial Intelligence in Healthcare\u2014AI in Mental Health, Springer Nature.","DOI":"10.1007\/978-981-19-5272-2"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"145","DOI":"10.17977\/um018v4i22021p145-152","article-title":"Stress Classification using Deep Learning with 1D Convolutional Neural Networks","volume":"4","author":"Saleh","year":"2021","journal-title":"Knowl. Eng. Data Sci."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"141890","DOI":"10.1109\/ACCESS.2024.3463746","article-title":"Advancing Emotional Health Assessments: A Hybrid Deep Learning Approach Using Physiological Signals for Robust Emotion Recognition","volume":"12","author":"Awan","year":"2024","journal-title":"IEEE Access"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"144082","DOI":"10.1109\/ACCESS.2024.3433513","article-title":"State-of-the-Art in 1D Convolutional Neural Networks: A Survey","volume":"12","author":"Ige","year":"2024","journal-title":"IEEE Access"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"240","DOI":"10.17843\/rpmesp.2021.382.6149","article-title":"Factors associated with the non-use of health services in LGBTI people from Peru","volume":"38","author":"Romani","year":"2021","journal-title":"Rev. Peru. Med. Exp. Salud Publ."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Noorunnahar, M., Chowdhury, A., and Mila, F. (2023). A tree-based eXtreme Gradient Boosting (XGBoost) machine learning model to forecast the annual rice production in Bangladesh. PLoS ONE, 18.","DOI":"10.1371\/journal.pone.0283452"},{"key":"ref_31","first-page":"1144","article-title":"Random Forest Classifiers: A Survey and Future Research Directions","volume":"36","author":"Kulkarni","year":"2013","journal-title":"Int. J. Adv. Comput."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"1533","DOI":"10.1016\/j.enbuild.2017.11.039","article-title":"Gradient boosting machine for modeling the energy consumption of commercial buildings","volume":"158","author":"Touzani","year":"2018","journal-title":"Energy Build."},{"key":"ref_33","first-page":"833","article-title":"Modelos param\u00e9tricos y no param\u00e9tricos en problemas de credit scoring","volume":"32","author":"Bonilla","year":"2003","journal-title":"Rev. Esp. Financ. Contab."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Hosmer, D., Lemeshow, S., and Sturdivant, R. (2013). Introduction to the Logistic Regression Model. Applied Logistic Regression, John Wiley & Sons.","DOI":"10.1002\/9781118548387"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Qazi, E., Almorjan, A., and Zia, T. (2022). A One-Dimensional Convolutional Neural Network (1D-CNN) Based Deep Learning System for Network Intrusion Detection. Appl. Sci., 12.","DOI":"10.3390\/app12167986"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"128","DOI":"10.17843\/rpmesp.2019.361.4062","article-title":"Manipulaci\u00f3n, an\u00e1lisis y visualizaci\u00f3n de datos de la encuesta demogr\u00e1fica y de salud familiar con el programa R","volume":"36","year":"2019","journal-title":"Rev. Peru. Med. Exp. Salud Publ."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"547","DOI":"10.30684\/etj.v40i4.2054","article-title":"Tuning the Hyperparameters of the 1D CNN Model to Improve the Performance of Human Activity Recognition","volume":"40","author":"Lateef","year":"2022","journal-title":"Eng. Technol. J."},{"key":"ref_38","unstructured":"Lundberg, S., and Lee, S. (2017, January 4\u20139). A unified approach to interpreting model predictions. Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"135392","DOI":"10.1109\/ACCESS.2021.3116481","article-title":"Explainable artificial intelligence for tabular data: A survey","volume":"9","author":"Sahakyan","year":"2021","journal-title":"IEEE Access"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Ullah, I., Rios, A., Gala, V., and Mckeever, S. (2022). Explaining Deep Learning Models for Tabular Data Using Layer-Wise Relevance Propagation. Appl. Sci., 12.","DOI":"10.3390\/app12010136"},{"key":"ref_41","unstructured":"Guerra, M. (2023). An\u00e1lisis Exploratorio Sobre la Violencia y\/o Discriminaci\u00f3n Reportados por Personas LGBTI en el Per\u00fa, 2017. [Bachelor\u2019s Dissertation, Universidad Peruana de Ciencias Aplicadas]."},{"key":"ref_42","unstructured":"Trust for America\u2019s Health (2023, February 06). Addressing the Social Determinants of Health Inequities Among Gay Men and Other Men Who Have Sex with Men in the United States. Available online: https:\/\/www.tfah.org\/wp-content\/uploads\/archive\/assets\/files\/TFAH-2014-MSM-Report-final.pdf."},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Lamontagne, E., Leroy, V., Yakusik, A., Parker, W., Howell, S., and Ventelou, B. (2024). Assessment and determinants of depression and anxiety on a global sample of sexual and gender diverse people at high risk of HIV: A public health approach. BMC Public Health, 24.","DOI":"10.1186\/s12889-023-17493-8"},{"key":"ref_44","doi-asserted-by":"crossref","unstructured":"Zhang, X., Zhou, Y., and Zhang, K. (2023). Social capital, perceived stress, and mental health of men who have sex with men in China: A cross-sectional study. Front. Psychol., 14.","DOI":"10.3389\/fpsyg.2023.1134198"},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Br\u00e4nstr\u00f6m, R., Hughes, T., and Pachankis, J. (2024). Global LGBTQ Mental Health. Global LGBTQ Health, Springer.","DOI":"10.1007\/978-3-031-36204-0_3"},{"key":"ref_46","first-page":"47","article-title":"Prediction of Mental Health Instability using Machine Learning and Deep Learning Algorithms","volume":"15","author":"Radhika","year":"2023","journal-title":"J. Comput. Sci. Appl."},{"key":"ref_47","unstructured":"Laijawala, V., Aachaliya, A., Jatta, H., and Pinjarkar, V. (2022, January 4\u20136). Mental Health Prediction using Data Mining: A Systematic Review. Proceedings of the 3rd International Conference on Advances in Science & Technology (ICAST), Bahir Dar, Ethiopia."},{"key":"ref_48","unstructured":"Madineni, S. (2023, January 18\u201321). Mental Health Survey Analysis & Prediction Using Deep Learning Algorithms. Proceedings of the Symposium of Student Scholars, Kennesaw, GA, USA. Available online: https:\/\/digitalcommons.kennesaw.edu\/undergradsymposiumksu\/spring2023\/presentations\/113."},{"key":"ref_49","doi-asserted-by":"crossref","unstructured":"Taye, M. (2023). Understanding of Machine Learning with Deep Learning: Architectures, Workflow, Applications and Future Directions. Computers, 12.","DOI":"10.3390\/computers12050091"},{"key":"ref_50","first-page":"139","article-title":"An overview of machine learning and deep learning","volume":"14","author":"Karima","year":"2021","journal-title":"Alger. J. Sci."},{"key":"ref_51","first-page":"604","article-title":"1D-CNN based Model for Classification and Analysis of Network Attacks","volume":"12","author":"Singh","year":"2021","journal-title":"Int. J. Adv. Comput. Sci. Appl."},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"7000210","DOI":"10.1109\/JSTQE.2021.3049349","article-title":"One-Dimensional Deep Learning Architecture for Fast Fluorescence Lifetime Imaging","volume":"27","author":"Xiao","year":"2021","journal-title":"IEEE J. Sel. Top. Quantum Electron."},{"key":"ref_53","first-page":"1","article-title":"Fraud Detection Using Multilayer Perceptron and Convolutional Neural Network","volume":"14","author":"Odeniyi","year":"2021","journal-title":"Int. J. Adv. Secur."},{"key":"ref_54","doi-asserted-by":"crossref","first-page":"102444","DOI":"10.1016\/j.xcrp.2025.102444","article-title":"Capacity estimation of retired lithium-ion batteries using random charging segments from massive real-world data","volume":"6","author":"Zhou","year":"2021","journal-title":"Cell Rep. Phys. Sci."},{"key":"ref_55","unstructured":"See, J. (2025, June 05). What it Means to Suffer in Silence. Challenges to Mental Health Access among LGBT People, 2019. Galen Centre for Health and Social Policy. Available online: https:\/\/galencentre.org\/wp-content\/uploads\/2019\/04\/PFA02_2019_Challenges-to-Mental-Health-Access-Among-LGBT-People.pdf."},{"key":"ref_56","doi-asserted-by":"crossref","first-page":"101577","DOI":"10.1016\/j.giq.2021.101577","article-title":"Implications of the use of artificial intelligence in public governance: A systematic literature review and a research agenda","volume":"38","author":"Zuiderwijk","year":"2021","journal-title":"Gov. Inf. Q."}],"container-title":["Informatics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2227-9709\/12\/3\/60\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T18:03:10Z","timestamp":1760032990000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2227-9709\/12\/3\/60"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,7,2]]},"references-count":56,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2025,9]]}},"alternative-id":["informatics12030060"],"URL":"https:\/\/doi.org\/10.3390\/informatics12030060","relation":{},"ISSN":["2227-9709"],"issn-type":[{"type":"electronic","value":"2227-9709"}],"subject":[],"published":{"date-parts":[[2025,7,2]]}}}