Abstract
The article is devoted to the study of the effectiveness of modern natural language processing architectures in the task of automated detection of signs of post-traumatic stress disorder (PTSD) from text data. The work is based on a comparative analysis of the distilbert-base-uncased model for original English-language texts and the xlm-roberta-base model for data adapted into Ukrainian via machine translation via the Google Translate API. To conduct the experiments, a representative dataset of 4822 records was compiled, including texts with verified signs of PTSD, control texts for other psychological diagnoses, and neutral content, enabling evaluation of the models' ability to perform differential diagnosis. Experimental results demonstrated high classification efficiency: the English-language model reached an accuracy of 0.90 with an F1-score of 0.88-0.91, while the Ukrainian-language version showed an accuracy of 0.85, maintaining a high level of Recall at 0.88 for the target class. It has been shown that, despite a slight loss in accuracy due to the morphological complexity of the Ukrainian language and automatic translation errors, the use of multilingual transformers is a viable approach for developing preliminary mental-state screening systems in the Ukrainian digital environment.