Predicting Pornography Use Among Adolescents in Spain: Findings from Ensemble Tree Models and Explainable Machine Learning
Open Access
- 4 August 2026
- journal article
- research article
- Published by MDPI AG in Computation
- Vol. 14 (8) , 177
Abstract
Pornography use during adolescence is a relevant issue from social, educational, and public health perspectives. As with other behaviours, its correlates may involve complex and nonlinear relationships. This study uses data from the 2023 Spanish Survey on Drug Use in Secondary Education (ESTUDES), a major source for analysing potentially addictive behaviours among adolescents in Spain because of its large sample size (original sample: N = 42,208; complete-case analytical sample: N = 33,543). Pornography use was modelled as a binary outcome using logistic regression, XGBoost, LightGBM, and CatBoost. The models included sociodemographic characteristics, family-related factors, parental control, substance use, selected sexual behaviours, indicators of mental well-being, and addictive Internet use. The four methods showed similar predictive performance. CatBoost achieved the highest AUC and the lowest Brier score and log loss, whereas LightGBM obtained the highest accuracy, specificity, and precision. Logistic regression yielded the highest sensitivity, negative predictive value, balanced accuracy, and F1-score. SHAP analysis identified sex as the most influential predictor, followed by addictive Internet use, cannabis and alcohol use, family conflict, and selected risky sexual behaviours. The findings suggest that pornography use among adolescents forms part of a broader behavioural and psychosocial profile. Whereas sex operated mainly as a strong direct predictor, problematic Internet use showed substantial interactions with age and cannabis and alcohol use. This study demonstrates how explainable machine learning can complement conventional regression by identifying the main correlates, nonlinear patterns, and interactions associated with adolescent pornography use.Keywords
This publication has 42 references indexed in Scilit:
- Workers’ perceptions of the economic impact of generative AI on sustainable economic development: evidence from ensemble tree models and explainable machine learningQuality & Quantity, 2026
- Prevalence and Factors Associated with Intentional Pornography Access among Spanish AdolescentsSexuality Research and Social Policy, 2026
- Online Pornography Consumption, Risky Behaviors, and Sexist Attitudes in Adolescence: A Cross-Sectional Survey StudyArchives of Sexual Behavior, 2025
- Profiles of Alcohol Use Disorders, Problematic Pornography Use, and Compulsive Sexual Behavior: The Role of Mental Health, Moral Disapproval, Thought Suppression, and Self-Concealment Among Israeli–Arab AdolescentsArchives of Sexual Behavior, 2025
- Family and Parental Factors Related to Pornography Use and Problematic Pornography Use Among Adolescents and Young AdultsCurrent Addiction Reports, 2025
- Factors Associated with Sexually Explicit Internet Material Use among Adolescents: A Systematic ReviewArchives of Sexual Behavior, 2024
- Pornography Use and Associated Factors in Adolescents: A Cross-Jurisdictional Approach (Spain vs. Mexico)Archives of Sexual Behavior, 2024
- Impact of COVID-19 on adolescent sexual life and attitudes: have we considered all the possible secondary effects of the pandemic?European Journal of Pediatrics, 2023
- Adolescents’ Use of Pornography: Trends over a Ten-year Period in SwedenArchives of Sexual Behavior, 2021
- Associations Between Croatian Adolescents’ Use of Sexually Explicit Material and Sexual Behavior: Does Parental Monitoring Play a Role?Archives of Sexual Behavior, 2017