Open Access iconOpen Access



Personality Trait Detection via Transfer Learning

Bashar Alshouha1, Jesus Serrano-Guerrero1,*, Francisco Chiclana2, Francisco P. Romero1, Jose A. Olivas1

1 Department of Information Technologies and Systems, University of Castilla-La Mancha, Ciudad Real, 13071, Spain
2 Institute of Artificial Intelligence, School of Computer Science and Informatics, De Montfort University, The Gateway, Leicester, LE1 9BH, UK

* Corresponding Author: Jesus Serrano-Guerrero. Email: email

(This article belongs to the Special Issue: Transfroming from Data to Knowledge and Applications in Intelligent Systems)

Computers, Materials & Continua 2024, 78(2), 1933-1956.


Personality recognition plays a pivotal role when developing user-centric solutions such as recommender systems or decision support systems across various domains, including education, e-commerce, or human resources. Traditional machine learning techniques have been broadly employed for personality trait identification; nevertheless, the development of new technologies based on deep learning has led to new opportunities to improve their performance. This study focuses on the capabilities of pre-trained language models such as BERT, RoBERTa, ALBERT, ELECTRA, ERNIE, or XLNet, to deal with the task of personality recognition. These models are able to capture structural features from textual content and comprehend a multitude of language facets and complex features such as hierarchical relationships or long-term dependencies. This makes them suitable to classify multi-label personality traits from reviews while mitigating computational costs. The focus of this approach centers on developing an architecture based on different layers able to capture the semantic context and structural features from texts. Moreover, it is able to fine-tune the previous models using the MyPersonality dataset, which comprises 9,917 status updates contributed by 250 Facebook users. These status updates are categorized according to the well-known Big Five personality model, setting the stage for a comprehensive exploration of personality traits. To test the proposal, a set of experiments have been performed using different metrics such as the exact match ratio, hamming loss, zero-one-loss, precision, recall, F1-score, and weighted averages. The results reveal ERNIE is the top-performing model, achieving an exact match ratio of 72.32%, an accuracy rate of 87.17%, and 84.41% of F1-score. The findings demonstrate that the tested models substantially outperform other state-of-the-art studies, enhancing the accuracy by at least 3% and confirming them as powerful tools for personality recognition. These findings represent substantial advancements in personality recognition, making them appropriate for the development of user-centric applications.


Cite This Article

APA Style
Alshouha, B., Serrano-Guerrero, J., Chiclana, F., Romero, F.P., Olivas, J.A. (2024). Personality trait detection via transfer learning. Computers, Materials & Continua, 78(2), 1933-1956.
Vancouver Style
Alshouha B, Serrano-Guerrero J, Chiclana F, Romero FP, Olivas JA. Personality trait detection via transfer learning. Comput Mater Contin. 2024;78(2):1933-1956
IEEE Style
B. Alshouha, J. Serrano-Guerrero, F. Chiclana, F.P. Romero, and J.A. Olivas "Personality Trait Detection via Transfer Learning," Comput. Mater. Contin., vol. 78, no. 2, pp. 1933-1956. 2024.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 512


  • 166


  • 0


Share Link