The Application of Keirsey’s Temperament Model to Twitter Data in Portuguese

  • Cristina Fátima ClaroEmail author
  • Ana Carolina E. S. LimaEmail author
  • Leandro N. de CastroEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11352)


Temperament is a set of innate tendencies of the mind related with the processes of perception, analysis and decision making. The purpose of this paper is to predict Twitter users temperament based on Portuguese tweets and following Keirsey’s model, which classifies the temperament into artisan, guardian, idealist and rational. The proposed methodology uses a Portuguese version of LIWC, which is a dictionary of words, to analyze the context of words, and supervised learning using the KNN, SVM and Random Forests for training the classifiers. The resultant average accuracy obtained was 88.37% for the artisan temperament, 86.92% for the guardian, 55.61% for the idealist, and 69.09% for the rational. For classification using TF-IDF the SVM algorithm obtained the best performance to the artisan temperament with average accuracy of 88.28%.


Machine learning Social media Keirsey temperament model 



The authors thank CAPES, CNPq, Fapesp, and MackPesquisa for the financial support. The authors also acknowledge the support of Intel for the Natural Computing and Machine Learning Laboratory as an Intel Center of Excellence in Artificial Intelligence.


  1. 1.
    Nor Rahayu, N., Zainol, Z., Yoong, T.L.C.: A comparative study of different classifiers for automatic personality prediction. In: 2016 6th IEEE International Conference on Control System, Computing and Engineering (ICCSCE), pp. 435–440. IEEE (2016)Google Scholar
  2. 2.
    Plank, B., Dirk, H.: Personality traits on Twitter-or-How to Get 1, 500 personality tests in a week. In: Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis (WASSA 2015), pp. 92–98 (2015)Google Scholar
  3. 3.
    Lima, A.C.E.S, de Castro, L.N.: Predicting temperament from Twitter data. In: 2016 5th IIAI International Congress on Advanced Applied Informatics (IIAI-AAI). IEEE (2016)Google Scholar
  4. 4.
    Claro, C.F., Lima, A.C.E.S., de Castro, L.N.: Predicting temperament using Keirsey’s model for Portuguese Twitter data. In Proceedings of the 10th International Conference on Agents and Artificial Intelligence, pp. 250–256 (2018)Google Scholar
  5. 5.
    Gundecha, P., Liu, H.: Mining social media: a brief introduction. In: New Directions in Informatics, Optimization, Logistics, and Production. Informs, pp. 1–17 (2012)Google Scholar
  6. 6.
    Tang, J., Chang, Y., Liu, H.: Mining social media with social theories: a survey. ACM SIGKDD Explor. Newsl. 15(2), 20–29 (2014)CrossRefGoogle Scholar
  7. 7.
    Calegari, M.d.L., Gemignani, O.H.: Temperamento e Carreira. Summus Editorial, São Paulo (2006)Google Scholar
  8. 8.
    Pennebaker, J.W., Boyd, R.L., Jordan, K., Blackburn, K.: The Development and Psychometric Properties of LIWC2015 (2015)Google Scholar
  9. 9.
    Hall, C.S., Lindzey, G., Campbell, J.B.: Teorias da Personalidade. Artmed, Porto Alegre (2000)Google Scholar
  10. 10.
    Ito, P.d.C.P., Guzzo, R.S.L.: Diferenças individuais: temperamento e personalidade; importância da teoria. In: Estudos de Psicologia, pp. 91–100 (2002)Google Scholar
  11. 11.
    Keirsey, D.: Please Undestand Me II: Temperament, Character, Intelligence. Prometheus Nemesis Book Company (1998)Google Scholar
  12. 12.
    Keirsey, D.M.:, Corporate Offices (1996). Accessed 12 Oct 2017
  13. 13.
    Lima, A.C.E.S.: Mineração de Mídias Sociais como Ferramenta para a Análise da Tríade da Persona Virtual. São Paulo (2016)Google Scholar
  14. 14.
    Verhoeven, B., Daelemans, W., Plank, B.: Twisty: a multilingual twitter stylometry corpus for gender and personality profiling. In: Proceedings of the 10th International Conference on Language Resources and Evaluation (2016)Google Scholar
  15. 15.
    Xavier, O.C., Carvalho, C.L.D.: Desenvolvimento de Aplicações Sociais A Partir de APIs em Redes Sociais Online. UFG, Goiânia (2011)Google Scholar
  16. 16.
    Kwak, H., Lee, C., Park, H., Moon, S.: What is Twitter, a social network or a news media? In: Proceedings of the 19th International Conference on World Wide Web, pp. 591–600. ACM (2010)Google Scholar
  17. 17.
    Haddi, E., Liu, X., Shi, Y.: The role of text pre-processing in sentiment analysis. Procedia Comput. Sci. 17, 26–32 (2013)CrossRefGoogle Scholar
  18. 18.
    Spencer, J., Uchyigit, G.: Sentimentor: sentiment analysis of Twitter data. In: Proceedings of European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (2012)Google Scholar
  19. 19.
    Feldman, R., Sanger, J.: The Text Mining Handbook: Advanced approaches in Analyzing Unstructured Data. Cambridge University Press, New York (2007)Google Scholar
  20. 20.
    Komisin, M.C., Guinn, C.I.: Identifying personality types using document classification methods. In: FLAIRS Conference (2012)Google Scholar
  21. 21.
    Pennebaker, W., King, L.A.: Linguistic styles: language use as an individual difference. J. Pers. Soc. Psychol. 77(6), 1296 (1999)CrossRefGoogle Scholar
  22. 22.
    Tausczik, Y.R., Pennebaker, J.W.: The psychological meaning of words: LIWC and computerized text analysis methods. J. Lang. Soc. Psychol. 29(1), 24–54 (2010)CrossRefGoogle Scholar
  23. 23.
  24. 24.
    Pedregosa, F., et al.: Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011)MathSciNetzbMATHGoogle Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.Mackenzie Presbyterian UniversitySão PauloBrazil

Personalised recommendations