Abstract
Personality reflects how people can behave in different situations and affects their decisions. Analyzing personality is useful in many fields, for example in the prediction of performance in a job. Emotion recognition is another important research topic due to the wide spread of social media. People express their feeling in form of Facebook posts, tweeter real reactions, and shares. Understanding both personality and emotions from the written text is much easier when it comes to humans. However, this task is impossible with the huge amount of data spread all other social media. The use of machine learning algorithms for personality and emotion recognition from text data is a new research field. In this paper, we propose an enhanced recognition system for personality recognition and emotion recognition. The proposed enhanced recognition system is composed of four main modules, namely data acquisition module, data preprocessing module, personality recognition module, and emotion recognition module. Several machine learning algorithms are used for the multiclass classification process. Gray wolf optimization (GWO) algorithm is used for hyperparameter optimization, while group GWO (GGWO) algorithm is used for feature selection. The proposed model could achieve an accuracy of 99.99% using the random forest algorithm for personality detection and 88.06% using a decision tree for emotion recognition, which outperforms other state-of-the-art studies. We can profit from social media despite some of its drawbacks by understanding people's emotions through their tweets, posts, etc. For instance, before someone commits suicide, we can tell what their intentions are. Most suicide committers, according to recent studies, leave suicide notes on their social media accounts, and these letters need to be taken seriously.












Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Change history
15 December 2023
A Correction to this paper has been published: https://doi.org/10.1007/s00521-023-09105-8
References
Bromme L, Rothmund T, Azevedo F (2022) Mapping political trust and involvement in the personality space—a meta-analysis and new evidence. J Pers 90(6):846–872
Rakhshani A et al (2021) Personality traits and perceptions of major life events. Eur J Pers 36(4):683–703
Stachl C et al (2020) Predicting personality from patterns of behavior collected with smartphones. Proc Natl Acad Sci 117(30):17680–17687
Sapra L, Bhatt R, Thakur G (2022) An analysis for the prediction of human behaviour & observation level on social media using machine learning approaches. Math Stat Eng Appl 71(4):2606–2620
Christian H et al (2021) Text based personality prediction from multiple social media data sources using pre-trained language model and model averaging. J Big Data 8(1)
Costa PT, McCrae RR (1992) Four ways five factors are basic. Personal Individ Differ 13(6):653–665
Eysenck H (2018) Dimensions of personality. Routledge, Milton Park
Marston WM (1928) Emotions of normal people
Moreno JD et al (2021) Can personality traits be measured analyzing written language? A meta-analytic study on computational methods. Personal Individ Differ 177:110818
Lauriola I, Lavelli A, Aiolli F (2022) An introduction to deep learning in natural language processing: models, techniques, and tools. Neurocomputing 470:443–456
Amirhosseini MH, Kazemiani H (2020) Machine learning approach to personality type prediction based on the myers-briggs type indicator®. Multimodal Technol Interact 4(1):9
Fu J, Zhang H, Ding BY (2021) Personality trait detection based on ASM localization and deep learning. Sci Program 2021:1–11
Lin X, Li X, Lin X (2020) A review on applications of computational methods in drug screening and design. Molecules 25(6):1375
Witten IH, Frank E, Hall MA (2011) Data mining: practical machine learning tools and techniques
Murphy BA, Lilienfeld SO (2019) Are self-report cognitive empathy ratings valid proxies for cognitive empathy ability? Negligible meta-analytic relations with behavioral task performance. Psychol Assess 31(8):1062
Abdullah SMSA et al (2021) Multimodal emotion recognition using deep learning. J Appl Sci Technol Trends 2(02):52–58
Ezzameli K, Mahersia H (2023) Emotion recognition from unimodal to multimodal analysis: a review. Inf Fus, p 101847
Gruhl D et al (2005) The predictive power of online chatter. In: Proceeding of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining - KDD '05
Iwendi C et al (2020) Cyberbullying detection solutions based on deep learning architectures. Multimed Syst, p 1–14
Rodríguez AOR et al (2020) Emotional characterization of children through a learning environment using learning analytics and AR-Sandbox. J Ambient Intell Humaniz Comput 11(11):5353–5367
ZainEldin H, Gamel SA, El-Kenawy E-SM, Alharbi AH, Khafaga DS, Ibrahim A, Talaat FM (2023) Brain tumor detection and classification using deep learning and sine-cosine fitness grey wolf optimization. Bioengineering 10(1):18
Zhang H, Jolfaei A, Alazab M (2019) A face emotion recognition method using convolutional neural network and image edge computing. IEEE Access 7:159081–159089
Kanjo E, Younis EMG, Ang CS (2019) Deep learning analysis of mobile physiological, environmental and location sensor data for emotion detection. Inf Fusion 49:46–56
El-Rashidy N, ElSayed NE, El-Ghamry A et al (2022) Prediction of gestational diabetes based on explainable deep learning and fog computing. Soft Comput 26:11435–11450. https://doi.org/10.1007/s00500-022-07420-1
Siam AI, Gamel SA, Talaat FM (2023) Automatic stress detection in car drivers based on non-invasive physiological signals using machine learning techniques. Neural Comput Appl 35:12891–12904
Shrivastava K, Kumar S, Jain DK (2019) An effective approach for emotion detection in multimedia text data using sequence based convolutional neural network. Multimed Tools Appl 78(20):29607–29639
Asghar MZ et al (2020) Senti-eSystem: a sentiment-based eSystem -using hybridized fuzzy and deep neural network for measuring customer satisfaction. Softw Pract Exp 51(3):571–594
Hasan M, Rundensteiner E, Agu E (2018) Automatic emotion detection in text streams by analyzing Twitter data. Int J Data Sci Anal 7(1):35–51
Kumar Y, Koul A, Singh C (2023) A deep learning approaches in text-to-speech system: a systematic review and recent research perspective. Multimed Tools Appl 82(10):15171–15197
Alswaidan N, Menai MEB (2020) A survey of state-of-the-art approaches for emotion recognition in text. Knowl Inf Syst 62(8):2937–2987
Ma C, Prendinger H, Ishizuka M (2005) Emotion estimation and reasoning based on affective textual interaction. In: Affective computing and intelligent interaction, pp 622–628
Nandwani P, Verma R (2021) A review on sentiment analysis and emotion detection from text. Soc Netw Anal Min 11(1):81
Batbaatar E, Li M, Ryu KH (2019) Semantic-emotion neural network for emotion recognition from text. IEEE Access 7:111866–111878
Available from: https://datareportal.com/reports/digital-2022-october-global-statshot.
Talaat FM (2023) Real-time facial emotion recognition system among children with autism based on deep learning and IoT. Neural Comput Appl 35:12717–12728. https://doi.org/10.1007/s00521-023-08372-9
Mehta Y et al (2020) Bottom-up and top-down: predicting personality with psycholinguistic and language model features. In: 2020 IEEE international conference on data mining (ICDM). Pp. 1184–1189
Dandannavar PS, Mangalwede SR, Kulkarni PM (2018) Social media text - a source for personality prediction. In: 2018 international conference on computational techniques, electronics and mechanical systems (CTEMS), pp 62–65
Mouzannar H, Rizk Y, Awad M (2018) Damage identification in social media posts using multimodal deep learning. In: ISCRAM
Yu M et al (2019) Deep learning for real-time social media text classification for situation awareness—using hurricanes Sandy, Harvey, and Irma as case studies. Int J Digit Earth 12(11):1230–1247
Khare P, Burel G, Alani H (2018) Classifying crises-information relevancy with semantics. Springer, Cham
Lavanya PM, Sasikala E (2021) Deep learning techniques on text classification using natural language processing (NLP) In social healthcare network: a comprehensive survey. In: 2021 3rd international conference on signal processing and communication (ICPSC), pp 603–609
Organization WH (2021) Suicide worldwide in 2019: global health estimates
Du J et al (2018) Extracting psychiatric stressors for suicide from social media using deep learning. BMC Med Inf Decis Mak 18(S2)
Tadesse MM et al (2019) Detection of suicide ideation in social media forums using deep learning. Algorithms 13(1)
Klonsky ED, May AM (2014) Differentiating suicide attempters from suicide ideators: a critical frontier for suicidology research. Suicide Life-Threat Behav 44(1):1–5
Macrynikola N et al (2021) Does social media use confer suicide risk? A systematic review of the evidence. Comput Hum Behav Rep 3
Twenge JM et al (2019) Age, period, and cohort trends in mood disorder indicators and suicide-related outcomes in a nationally representative dataset, 2005–2017. J Abnorm Psychol 128(3):185–199
De Choudhury M et al (2016) Discovering shifts to suicidal ideation from mental health content in social media. In: Proceedings of the 2016 CHI conference on human factors in computing systems, pp 2098–2110
Elnagar A, Al-Debsi R, Einea O (2020) Arabic text classification using deep learning models. Inf Process Manage 57(1):102121
Kadhim AI (2019) Survey on supervised machine learning techniques for automatic text classification. Artif Intell Rev 52(1):273–292
Deng X et al (2018) Feature selection for text classification: a review. Multimed Tools Appl 78(3):3797–3816
Kim H-J et al (2018) Towards perfect text classification with Wikipedia-based semantic Naïve Bayes learning. Neurocomputing 315:128–134
Ramadhani P, Hadi S (2021) Text classification on the instagram caption using support vector machine. J Phys Conf Ser. IOP Publishing
Muliono Y, Tanzil F (2018) A comparison of text classification methods k-NN, Naïve Bayes, and support vector machine for news classification. Jurnal Informatika: Jurnal Pengembangan IT 3(2):157–160
Jang B et al (2020) Bi-LSTM model to increase accuracy in text classification: combining Word2vec CNN and attention mechanism. Appl Sci 10(17)
Alshathri S, Talaat FM, Nasr AA (2022) A new reliable system for managing virtual cloud network. Comput Mater Contin 73(3):5863–5885
Luan Y, Lin S (2019) Research on text classification based on CNN and LSTM. In: 2019 IEEE international conference on artificial intelligence and computer applications (ICAICA), pp 352–355
Sadiq AT, Abdullah SM (2012) Hybrid intelligent technique for text categorization. In: 2012 international conference on advanced computer science applications and technologies (ACSAT), pp 238–245
Garg P, Girdhar N (2021) A systematic review on spam filtering techniques based on natural language processing framework. In: 2021 11th international conference on cloud computing, data science & engineering (confluence), pp 30–35
Zhao S et al (2014) Multi-modal microblog classification via multi-task learning. Multimed Tools Appl 75(15):8921–8938
Whitehead M, Yaeger L (2010) Sentiment mining using ensemble classification models. Innovations and advances in computer sciences and engineering. Springer, Berlin, pp 509–514
Chowdhary K (2020) Natural language processing. Fundam Artif Intell, pp 603–649
Acheampong FA, Wenyu C, Nunoo‐Mensah H (2020) Text‐based emotion detection: advances, challenges, and opportunities. Eng Rep 2(7)
William D, Suhartono D (2021) Text-based depression detection on social media posts: a systematic literature review. Procedia Comput Sci 179:582–589
Mohammad S et al (2018) SemEval-2018 task 1: affect in tweets. In: Proceedings of the 12th international workshop on semantic evaluation, pp 1–17
Badaro G et al (2018) EMA at SemEval-2018 task 1: emotion mining for Arabic. In: proceedings of The 12th international workshop on semantic evaluation, pp 236–244
Khalil EAH, Houby EMFE, Mohamed HK (2021) Deep learning for emotion analysis in Arabic tweets. J Big Data; 8(1)
Mansy A, Rady S, Gharib T (2022) An ensemble deep learning approach for emotion detection in Arabic tweets. Int J Adv Comput Sci Appl. https://doi.org/10.14569/IJACSA.2022.01304112.
Yousaf A et al (2021) Emotion recognition by textual tweets classification using voting classifier (LR-SGD). IEEE Access 9:6286–6295
Mehmood A et al (2020) A deep siamese convolution neural network for multi-class classification of alzheimer disease. Brain Sci 10(2):84
Available from: https://www.kaggle.com/code/kehlinswain/predict-personality-types-using-ml-social-media/data.
Available from: https://www.kaggle.com/code/shainy/twitter-emotion-analysis/data.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflicts of interest to report regarding the present study.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
The original online version of this article was revised with the affiliation details of the authors.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Talaat, F.M., El-Gendy, E.M., Saafan, M.M. et al. Utilizing social media and machine learning for personality and emotion recognition using PERS. Neural Comput & Applic 35, 23927–23941 (2023). https://doi.org/10.1007/s00521-023-08962-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00521-023-08962-7