Skip to main content
Log in

A Hybrid CNN-LSTM Model for Psychopathic Class Detection from Tweeter Users

  • Published:
Cognitive Computation Aims and scope Submit manuscript

Abstract

In today’s digital era, the use of online social media networks, such as Google, YouTube, Facebook, and Twitter, permits people to generate a massive amount of textual content. The textual content that is produced by people reveals essential information regarding their personality, with psychopathy being among these distinct personality types. This work was aimed at classifying input texts according to the traits of psychopaths and non-psychopaths. Several studies based on traditional techniques, such as the SRPIII technique, using small-sized datasets have been conducted for the detection of psychopathic behavior. However, the purpose of the current study was to build an effective computational model for the detection of psychopaths in the domain of text analytics and computational intelligence. This study was aimed at developing a technique based on a convolutional neural network + long short-term memory (CNN-LSTM) model by using a deep learning approach to detect psychopaths. A convolutional neural network was used to extract local information from a text, while the long short-term memory was used to extract the contextual dependencies of the text. By combining the advantages of convolutional neural network and long short-term memory, the proposed hybrid CNN-LSTM was able to yield a good classification accuracy of 91.67%. Additionally, a large-sized benchmark dataset was acquired for the effective classification of the given input text into psychopath vs. non-psychopath classes, thereby enabling persons with such personality traits to be identified.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  1. Ahmad N, Siddique J. Personality assessment using Twitter tweets. Procedia Computer Science. 2017;112:1964–73.

    Article  Google Scholar 

  2. Ahmad H, Asghar MZ, Khan AS, Habib A. A systematic literature review of personality trait classification from textual content. Open Computer Science. 2020;10(1):175–93.

    Article  Google Scholar 

  3. Akhtar MS, Ekbal A, Cambria E. How intense are you? Predicting intensities of emotions and sentiments using stacked ensemble. IEEE Comput Intell Mag. 2020;15(1):64–75.

    Article  Google Scholar 

  4. Akhtar S, Ghosal D, Ekbal A, Bhattacharyya P, Kurohashi S. All-in-one: emotion, sentiment and intensity prediction using a multi-task ensemble framework. IEEE Transactions on Affective Computing. 2019

  5. Akram HAA, Mahmood A. Predicting personality traits, gender and psychopath behavior of Twitter users. International Journal of Technology Diffusion (IJTD). 2014;5(2):1–14.

    Article  Google Scholar 

  6. Bornstein A. Beyond Word Embeddings Part 2 Retrieved from 2018 https://towardsdatascience.com/beyond-word-embeddings-part-2-word-vectors-nlp-modeling-from-bow-to-bert-4ebd4711d0ec

  7. Cleckley H. The mask of sanity: an attempt to clarify some issues about the so-called psychopathic personality. Ravenio Books. 1964

  8. Gao M, Li T, Huang P. Text classification research based on improved Word2vec and CNN. In International Conference on Service-Oriented Computing (pp. 126–135). Springer, Cham. 2018

  9. Hancock JT, Woodworth MT, Porter S. Hungry like the wolf: a word-pattern analysis of the language of psychopaths. Legal and criminological psychology. 2013;18(1):102–14.

    Article  Google Scholar 

  10. Hancock JT, Woodworth M, Boochever R. Psychopaths online: the linguistic traces of psychopathy in email, text messaging and Facebook. Media and Communication. 2018;6(3):83–92.

    Article  Google Scholar 

  11. Hastings ME, Tangney JP, Stuewig J. Psychopathy and identification of facial expressions of emotion. Personality Individ Differ. 2008;44(7):1474–83.

    Article  Google Scholar 

  12. Hussain A, Cambria E. Semi-supervised learning for big social data analysis. Neuro-computing. 2018;275:1662–73.

    Google Scholar 

  13. Ji S, Li X, Huang Z, Cambria E. Suicidal ideation and mental disorder detection with attentive relation networks. arXiv preprint. 2020

  14. Keshtkar F, Burkett C, Li H, Graesser AC. Using data mining techniques to detect the personality of players in an educational game. In Educational Data Mining(pp. 125–150). Springer, Cham. 2014

  15. Li W, Zhu L, Shi Y, Guo K, Cambria E. User reviews: sentiment analysis using lexicon integrated two-channel CNN-LSTM family models. Applied Soft Computing, 2020:106435

  16. Liu G, Guo J. Bidirectional LSTM with attention mechanism and convolutional layer for text classification. Neurocomputing. 2019;337:325–38.

    Article  Google Scholar 

  17. Liu L, Preotiuc-Pietro D, Samani ZR, Moghaddam ME, Ungar L. Analyzing personality through social media profile picture choice. In Tenth international AAAI conference on web and social media. 2016:211–220.

  18. Liu J, Yang Y, Lv S, Wang J, Chen H. Attention-based BiGRU-CNN for Chinese question classification. J Ambient Intell Humaniz Comput. 2019:1–12.

  19. Luan Y, Lin S. Research on text classification based on CNN and LSTM. In 2019 IEEE International Conference on Artificial Intelligence and Computer Applications (ICAICA) (pp. 352–355). IEEE. 2019.

  20. Mayo Foundation for Medical Education and Research (MFMER), available at: https://www.mayoclinic.org/diseases-conditions/personality-disorders/symptoms-causes/syc-20354463, last accessed 10 July 2019.

  21. Mehta Y, Majumder N, Gelbukh A, Cambria E. Recent trends in deep learning based personality detection. Artificial Intelligence Review.  2019:1–27.

  22. Neumann CS, Kosson DS, Forth AE, Hare RD. Factor structure of the Hare Psychopathy Checklist: Youth Version (PCL: YV) in incarcerated adolescents. Psychol Assess. 2006;18(2):142.

    Article  Google Scholar 

  23. Oneto L, Bisio F, Cambria E, Anguita D. Semi-supervised learning for affective common-sense reasoning. Cognit Comput. 2017;9(1):18–42.

    Article  Google Scholar 

  24. Prasad S, Singh VK, Sapre A. Handwriting analysis based on segmentation method for prediction of human personality using support vector machine. Int J Comput Appl. 2010;8(12):25–9.

    Google Scholar 

  25. Rani S, Kumar P. Deep learning based sentiment analysis using convolution neural network. Arab J Sci Eng. 2018:1–10. 

  26. Reidy DE, Zeichner A, Martinez MA. Effects of psychopathy traits on unprovoked aggression. Aggress Behav. 2008;34(3):319–28.

    Article  Google Scholar 

  27. Rhanoui M, Mikram M, Yousfi S, Barzali S. A CNN-BiLSTM model for document-level sentiment analysis. Machine Learning and Knowledge Extraction. 2019;1(3):832–47.

    Article  Google Scholar 

  28. Robison J, McQuiggan S, Lester J. Developing empirically based student personality profiles for affective feedback models. In International Conference on Intelligent Tutoring Systems (pp. 285–295). Springer, Berlin, Heidelberg. 2010.

  29. Rodrigues do Carmo R, Lacerda AM, Dalip DH. A majority voting approach for sentiment analysis in short texts using topic models. In Proceedings of the 23rd Brazillian Symposium on Multimedia and the Web. 2017:449–455. ACM

  30. Roesslein J (2009) Tweepy An easy-to-use Python library for accessing the Twitter API

  31. Rudkowsky E, Haselmayer M, Wastian M, Jenny M, Emrich Š, Sedlmair M. More than bags of words: sentiment analysis with word embeddings. Communication Methods and Measures. 2018;12(2–3):140–57.

    Article  Google Scholar 

  32. Sagadevan S, Malim NHAH, Husin MH. Sentiment valences for automatic personality detection of online social networks users using three factor model. Procedia Comput Sci. 2015;72:201–8.

    Article  Google Scholar 

  33. Salton and McGill: G. Salton and M. J. McGill. Introduction to modern information retrieval. McGraw-Hill, New York, NY, USA, 1983

  34. Shah, T. (2017). Train, Validation and test sets. Retrieved from https://tarangshah.com/blog/2017-12-03/train-validation-and-test-sets/

  35. Shaheen A, Ali U, Kumar H. Extraversion personality traits and social support as determinants of coping responses among individuals with HIV/AIDs. Journal of Psychology and Clinical Psychiatry. 2015;4:1–5.

    Article  Google Scholar 

  36. She X, Zhang D. Text classification based on hybrid CNN-LSTM hybrid model. In 2018 11th International Symposium on Computational Intelligence and Design (ISCID). 2018;2:185–189. IEEE.

  37. Shrestha P. (2017), Trait Theory of Personality, available at: https://www.psychestudy.com/general/personality/trait-theory, Last accessed 05 June 2019

  38. Singh P. Natural language processing. In Machine learning with PySpark (pp. 191–218). Apress, Berkeley, CA 2019

  39. Sumner C, Byers A, Boochever R, Park GJ. Predicting dark triad personality traits from twitter usage and a linguistic analysis of tweets. In 2012 11th International Conference on Machine Learning and Applications. 2012;2:386–393. IEEE

  40. Sun X, Zhang C, Ding S, Quan C. Detecting anomalous emotion through big data from social networks based on a deep learning method. Multimedia Tools and Applications. 2018:1–22.

  41. Tandera T, Suhartono D, Wongso R, Prasetio YL. Personality prediction system from facebook users. Procedia computer science. 2017;116:604–11.

    Article  Google Scholar 

  42. Wald R, Khoshgoftaar TM, Napolitano A, Sumner C. Using Twitter content to predict psychopathy. In 2012 11th International Conference on Machine Learning and Applications (Vol. 2, pp. 394–401). IEEE. 2012.

  43. Wang JH, Liu TW, Luo X, Wang L. An lstm approach to short text sentiment classification with word embeddings. In Proceedings of the 30th Conference on Computational Linguistics and Speech Processing (ROCLING 2018) 2018:214–223.

  44. Wang R, Li Z, Cao J, Chen T, Wang L. Convolutional recurrent neural networks for text classification. In 2019 International Joint Conference on Neural Networks (IJCNN) (pp. 1–6). IEEE. 2019.

  45. Whitty MT, Doodson J, Creese S, Hodges D. A picture tells a thousand words: what Facebook and Twitter images convey about our personality. Personality Individ Differ. 2018;133:109–14.

    Article  Google Scholar 

  46. Wijaya W, Tolle H, Utaminingrum F. Personality analysis through handwriting detection using android based mobile device. Journal of Information Technology and Computer Science. 2018;2(2)

  47. Yao XL. Attention-based BiLSTM neural networks for sentiment classification of short texts. In Proc. Int. Conf. Inf. Sci. Cloud Comput. 2017:110–117

  48. Zhou C, Sun C, Liu Z, Lau F. A C-LSTM neural network for text classification. arXiv preprint. 2015.

Download references

Acknowledgements

This project was funded by the Deanship of Scientific Research (DSR) at King Abdulaziz University, Jeddah, under Grant No. G:52–611–1441. The authors, therefore, acknowledge with thanks DSR for technical and financial support.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Fahad Mazaed Alotaibi.

Ethics declarations

Informed Consent

All procedures followed were in accordance with the ethical standards of the responsible committee on human experimentation (institutional and national) and with the Helsinki Declaration of 1975, as revised in 2008 (5). Additional informed consent was obtained from all patients for which identifying information is included in this article.

Conflict of Interest

The authors declare that they have no conflict of interest.

Human and Animal Rights

This study did not involve any experimental research on humans or animals; hence, an approval from an ethics committee was not applicable in this regard. The data collected from the online forums are publicly available data, and no personally identifiable information of the forum users were collected or used for this study.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Alotaibi, F.M., Asghar, M.Z. & Ahmad, S. A Hybrid CNN-LSTM Model for Psychopathic Class Detection from Tweeter Users. Cogn Comput 13, 709–723 (2021). https://doi.org/10.1007/s12559-021-09836-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12559-021-09836-7

Keywords

Navigation