{"id":19079465,"url":"https://github.com/suzana-ilic/nlp_affective_computing","last_synced_at":"2025-04-30T05:43:33.233Z","repository":{"id":54701965,"uuid":"247757523","full_name":"suzana-ilic/NLP_affective_computing","owner":"suzana-ilic","description":"NLP Affective Computing - text-based emotion recognition with Deep Learning and LLMs","archived":false,"fork":false,"pushed_at":"2025-03-18T18:46:58.000Z","size":811,"stargazers_count":14,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T05:43:27.002Z","etag":null,"topics":["affective-computing","data","deeplearning","linguistics","llms","nlp"],"latest_commit_sha":null,"homepage":"https://www.suzanailic.com/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suzana-ilic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-16T16:02:52.000Z","updated_at":"2025-03-25T03:02:48.000Z","dependencies_parsed_at":"2022-08-14T00:30:50.164Z","dependency_job_id":null,"html_url":"https://github.com/suzana-ilic/NLP_affective_computing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzana-ilic%2FNLP_affective_computing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzana-ilic%2FNLP_affective_computing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzana-ilic%2FNLP_affective_computing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzana-ilic%2FNLP_affective_computing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suzana-ilic","download_url":"https://codeload.github.com/suzana-ilic/NLP_affective_computing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251651221,"owners_count":21621702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["affective-computing","data","deeplearning","linguistics","llms","nlp"],"created_at":"2024-11-09T02:14:46.139Z","updated_at":"2025-04-30T05:43:33.205Z","avatar_url":"https://github.com/suzana-ilic.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\nThis thesis aims to contribute to research efforts in the field of affective computing and to provide a holistic analysis of text-based emotion recognition from the perspective of Applied and Computational  Linguistics. We will examine linguistic features, annotation schemes, categorical and dimensional emotion models, as well as commonly used research datasets with different linguistic styles, and focus on deep neural network architectures as the main prediction systems, since deep learning has achieved major breakthroughs and state-of-the-art results for a large number of tasks in the field of Natural Language Processing (Young  et  al. 2018). Schematic thesis overview that spans analyses, tasks and implications for (1) datasets, (2) emotion models and (3) algorithms:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/suzana-ilic/EDA_nlp_emotion_datasets/blob/master/images/overview.png\" width=\"600\"\u003e\u003c/p\u003e\n\n# Overview\n\n## Emotion Models\n\n- Categorical emotion models – emotions are represented as distinct, mutually exclusive categories (e.g. the basic emotions anger, fear, joy, ...)\n- Dimensional emotion models – emotions are represented in a two- or multidimensional space (e.g. valence and arousal)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/suzana-ilic/EDA_nlp_emotion_datasets/blob/master/images/em_models.png\" width=\"600\"\u003e\u003c/p\u003e\n\n\n### Model demo: Predicting basic emotions\n\nIn this demo you can try out directly in the browser [a fine-tuned checkpoint of DistilRoBERTa-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base) by Jochen Hartmann. The model was trained on 6 diverse datasets (see Appendix below) and predicts Ekman's 6 basic emotions, plus a neutral class:\n\n- anger 🤬\n- disgust 🤢\n- fear 😨\n- joy 😀\n- neutral 😐\n- sadness 😭\n- surprise 😲\n\n[Demo](https://huggingface.co/spaces/Suzana/text_basic_emotions) by Suzana Ilic\n\nModel reference: Jochen Hartmann, \"Emotion English DistilRoBERTa-base\". https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/, 2022.\n\n### Datasets\n\n- Dataset I – Facebook posts\n- Dataset II – Media headlines (SemEval 2007)\n\n### Notebooks\n\n- EDA\n- Transformers\n\n# Exploratory data analysis for emotion datasets (text)\n\nThe goal of exploratory data analyses for emotion datasets is to get an understanding of the corpus, the linguistic style, lexical elements, syntax as well as the annotation scheme, distribution and imbalance check of classes (or analyses of scores).\n\n## Contents\n\n## Dataset I\n\n- **Dataset:** 2,894 Facebook posts annotated with scores for valence and arousal on an integer scale from 1-9 repsectively\n- [EDA](https://github.com/suzana-ilic/EDA_nlp_emotion_datasets/blob/master/notebooks/)\n- Model (BERT, RoBERTa) using [Simple Transformers](https://simpletransformers.ai/)\n\n**Task:** Regression\\\n**Paper:** [Modelling valence and arousal in facebook posts (2016)](https://www.semanticscholar.org/paper/Modelling-Valence-and-Arousal-in-Facebook-posts-Preotiuc-Pietro-Schwartz/5b9f7b419766a35c9ee4a37d5338fa557bbbea47)\\\n**References:**\\\nPreoţiuc-Pietro, D., Schwartz, H. A., Park, G., Eichstaedt, J., Kern, M., Ungar, L., \u0026 Shulman, E. (2016): Modelling valence and arousal in facebook posts. In Proceedings of the 7th workshop on computational approaches to subjectivity, sentiment and social media analysis (pp. 9-15).\n\nDimensonal Emotion model based on the circumplex model (valence and arousal) by James A. Russell (1980): A Circumplex Model of Affect. Journal of Personality and Social Psychology (39,6:1161–1178).\n\n**Dataset Access**: The original authors have taken the dataset offline, it's currently not available.\n\n## Dataset II\n\nFor the experimental setup comparing different predictive models, we use a research\ndataset for text-based emotion recognition called GoEmotions, a corpus of 58k care-\nfully curated comments extracted from Reddit, with human annotations to 27 emo-\ntion categories or Neutral (Demszky et al. 2020).\n\n- Number of examples: 58,009.\n- Number of emotion labels: 27 + Neutral.\n- Maximum sequence length in training and evaluation datasets: 30.\n\nIn addition to the raw data, the authors also include a version filtered based on\nrater-agreement, which contains the following split:\n\n- Size of training dataset: 43,410.\n- Size of test dataset: 5,427.\n- Size of validation dataset: 5,426.\n\n**Dataset Access**\n- [GoEmotions](https://github.com/google-research/google-research/tree/master/goemotions/data)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuzana-ilic%2Fnlp_affective_computing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuzana-ilic%2Fnlp_affective_computing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuzana-ilic%2Fnlp_affective_computing/lists"}