Decoding Artificial Intelligence: A Tutorial on Neural Networks in Behavioral Research
Background: Artificial Neural Networks (ANNs), particularly multilayer perceptrons (MLPs) with backpropagation, are increasingly used in Behavioral and Health Sciences for data analysis. This paper provides a comprehensive tutorial on implementing backpropagation in MLP models for regression and classification tasks using Python. Method: The tutorial guides readers step-by-step through building a backpropagation MLP using a simulated data matrix (N = 1,000) with psychological variables, demonstrating ANNs’ versatility in predicting continuous variables and classifying (binary and polytomous) patterns. Python scripts and detailed output interpretations are included. Results: MLP models trained with backpropagation show effectiveness in regression (R² = .71) and classification (binary AUC = .93, polytomous AUC range: .81-.93) on test sets. Conclusions: This tutorial aims to demystify ANNs and promote their use in Behavioral and Health Sciences and other fields, bridging the gap between theory and practical implementation.
Authors
- Albert Sesé (ORCID: https://orcid.org/0000-0003-3771-1749)
- Federico Leguizamo (ORCID: https://orcid.org/0000-0003-1603-0629)
- Antonio Núñez (ORCID: https://orcid.org/0000-0003-1295-1594)
- Juan José Montaño Moreno (ORCID: https://orcid.org/0000-0002-1116-1964)
- Elena Gervilla (ORCID: https://orcid.org/0000-0003-3194-5499)
- Berta Cajal Blasco (ORCID: https://orcid.org/0000-0001-6103-0156)
- Rafael Jiménez (ORCID: https://orcid.org/0000-0002-1181-3221)
- Javier Martínez-García
Institutions
- Health Research Institute of the Balearic Islands (ES)
Publication Details
- Journal
- Clínica y Salud
- Published
- 2025-06-24
- DOI
- https://doi.org/10.5093/clh2025a13
- Primary Topic
- Machine Learning in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- European Commission
- Universitat de les Illes Balears
- Govern de les Illes Balears