{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/language-and-mental-health-measures-of","title":"Language and Mental Health: Measures of Emotion Dynamics from Text as Linguistic Biosocial Markers","arxiv_id":"2310.17369","date":"2023-10-26","proceeding":null,"authors":["Daniela Teodorescu","Tiffany Cheng","Alona Fyshe","Saif M. Mohammad"],"abstract":"Research in psychopathology has shown that, at an aggregate level, the patterns of emotional change over time -- emotion dynamics -- are indicators of one's mental health. One's patterns of emotion change have traditionally been determined through self-reports of emotions; however, there are known issues with accuracy, bias, and ease of data collection. Recent approaches to determining emotion dynamics from one's everyday utterances addresses many of these concerns, but it is not yet known whether these measures of utterance emotion dynamics (UED) correlate with mental health diagnoses. Here, for the first time, we study the relationship between tweet emotion dynamics and mental health disorders. We find that each of the UED metrics studied varied by the user's self-disclosed diagnosis. For example: average valence was significantly higher (i.e., more positive text) in the control group compared to users with ADHD, MDD, and PTSD. Valence variability was significantly lower in the control group compared to ADHD, depression, bipolar disorder, MDD, PTSD, and OCD but not PPD. Rise and recovery rates of valence also exhibited significant differences from the control. This work provides important early evidence for how linguistic cues pertaining to emotion dynamics can play a crucial role as biosocial markers for mental illnesses and aid in the understanding, diagnosis, and management of mental health disorders.","url_abs":"https://arxiv.org/abs/2310.17369v2","url_pdf":"https://arxiv.org/pdf/2310.17369v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[],"tasks":[],"methods":[{"method_slug":"ocd","method_name":"OCD"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2310.17369","atlas_url":"https://app.syntology.ai/?focus=2310.17369","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.17369"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/Priya22/EmotionDynamics","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":12,"ran_violates":1,"ran_honours":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":16,"ran":14,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"13b2a07c1504519c","entry":"default_hb","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/ued.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/ued.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"13b2a07c1504519c"}},{"code_sha256_prefix":"171ff6924bde1a3d","entry":"ellipse_distance","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/utils.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"171ff6924bde1a3d"}},{"code_sha256_prefix":"06c7e9969950ecf0","entry":"get_alpha","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/avgEmoValues.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/avgEmoValues.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"06c7e9969950ecf0"}},{"code_sha256_prefix":"fd52e4ac92555e1c","entry":"get_clean_ued","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/post_process.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/post_process.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fd52e4ac92555e1c"}},{"code_sha256_prefix":"2ac14531e8b02c7e","entry":"get_day_date_month_year","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/clean_data.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/clean_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2ac14531e8b02c7e"}},{"code_sha256_prefix":"ab066d27ea29c686","entry":"get_df","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/pre_process.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/pre_process.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ab066d27ea29c686"}},{"code_sha256_prefix":"3940f7033c1f1c37","entry":"get_tenp_hb","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/ued.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/ued.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3940f7033c1f1c37"}},{"code_sha256_prefix":"9d0086ad351ed7ba","entry":"in_ellipse","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/utils.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9d0086ad351ed7ba"}},{"code_sha256_prefix":"52cca1f2a46bb38c","entry":"in_range","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/utils.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"52cca1f2a46bb38c"}},{"code_sha256_prefix":"906292559773d41e","entry":"prep_dim_lexicon","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/avgEmoValues.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/avgEmoValues.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"906292559773d41e"}},{"code_sha256_prefix":"e7ed23ca78e3368f","entry":"process_summ","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/post_process.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/post_process.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e7ed23ca78e3368f"}},{"code_sha256_prefix":"7911aa18fc937995","entry":"process_ued","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/post_process.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/post_process.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7911aa18fc937995"}},{"code_sha256_prefix":"ddc42c5abfcb2891","entry":"read_lexicon","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/avgEmoValues.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/avgEmoValues.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ddc42c5abfcb2891"}},{"code_sha256_prefix":"0bd46fc531c81114","entry":"split_tokens","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/ued.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/ued.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0bd46fc531c81114"}},{"code_sha256_prefix":"285f12bb4cd9a311","entry":"get_urls","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/clean_data.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/clean_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"285f12bb4cd9a311"}},{"code_sha256_prefix":"4a7734d5943bc35c","entry":"prep","repo":"Priya22/EmotionDynamics","repo_kind":"found_in_text","path":"code/uedLib/lib/pre_process.py","file_url":"https://github.com/Priya22/EmotionDynamics/blob/HEAD/code/uedLib/lib/pre_process.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4a7734d5943bc35c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}