Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-05T23:33:23.174Z Has data issue: false hasContentIssue false

Recognition of visual scene elements from a story text in Persian natural language

Published online by Cambridge University Press:  24 August 2022

Mojdeh Hashemi-Namin
Affiliation:
Iran University of Science and Technology, Tehran, Iran
Mohammad Reza Jahed-Motlagh*
Affiliation:
Iran University of Science and Technology, Tehran, Iran
Adel Torkaman Rahmani
Affiliation:
Iran University of Science and Technology, Tehran, Iran
*
*Corresponding author. E-mail: jahedmr@iust.ac.ir
Rights & Permissions [Opens in a new window]

Abstract

Text-to-scene conversion systems map natural language text to formal representations required for visual scenes. The difficulty involved in this mapping is one of the most critical challenges for developing these systems. The current study mapped Persian natural language text as the headmost system to a conceptual scene model. This conceptual scene model is an intermediate semantic representation between natural language and the visual scene and contains descriptions of visual elements of the scene. It will be used to produce meaningful animation based on an input story in this ongoing study. The mapping task was modeled as a sequential labeling problem, and a conditional random field (CRF) model was trained and tested for sequential labeling of scene model elements. To the best of the authors’ knowledge, no dataset for this task exists; thus, the required dataset was collected for this task. The lack of required off-the-shelf natural language processing modules and a significant error rate in the available corpora were important challenges to dataset collection. Some features of the dataset were manually annotated. The results were evaluated using standard text classification metrics, and an average accuracy of 85.7% was obtained, which is satisfactory.

Information

Type
Article
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Table 1. The design methodology and the language understanding approaches that have been used for mapping the input natural language text to a formal representation in some TTSC systems

Figure 1

Table 2. Different types of information used in TTSC systems for the mapping task (Hassani and Lee 2016)

Figure 2

Table 3. The elements of the conceptual scene model, which are mapped from the input text

Figure 3

Table 4. Comparison of the conceptual scene model elements between Ma (2006), Glass and Bangay (2008) and the current study

Figure 4

Figure 1. The visualization of the Persian sentence: (“Each time Zakariya visited her, he noticed that she was provided with special food in her sanctuary, which caused him to wonder”). The tokens mapped to the scene model elements are marked in the visualization.

Figure 5

Table 5. The tags prepared for the annotators to annotate the WSD and the conceptual scene model element tags. These tags were obtained from the ITRC corpus, which was in CoNLL 2008 format (Surdeanu et al. 2008)

Figure 6

Figure 2. The annotation interface used by the annotators.

Figure 7

Table 6. Top principal concepts of FarsNet and their equivalent entry in WordNet

Figure 8

Figure 3. The completed corpus; WSD, Super-WSD, and scene element tags added for the sentence in Figure 1. The column added to the left of the figure shows the English translation of each token.

Figure 9

Table 7. The sentence in Figure 1 manually annotated and its translation into English (column 3). Columns 1–2, 4–6, and 10 are from the ITRC corpus. Columns 7–9 were added by annotators; the WSD tag, the hypernym of the token from the principal concepts list, and the scene element tag mapped to each token, respectively

Figure 10

Table 8. The Persian sentence (translated as “He/She saw a beautiful flower.”) to show the interdependencies of scene elements in a sentence. The tokens are ordered according to the sentence in the Persian language

Figure 11

Figure 4. The part of the dataset produced based on the part of the completed corpus shown in Table 7.

Figure 12

Table 9. The distribution of all scene elements across the completed corpus, produced dataset, training, and test sets. 4th column: The proportion percentage of each scene element in the dataset. Last column: The percentage of each scene element in the test set in proportion to its total number in the dataset

Figure 13

Table 10. The collected dataset statistics

Figure 14

Table 11. The final selected feature set of CRF in this study

Figure 15

Table 12. The different features which were tested during the feature selection process and the resulting average F1-score for all scene elements using that feature set

Figure 16

Table 13. The precision, recall, and F1-score of the 10 scene elements of the conceptual scene model learned by the CRF model

Figure 17

Figure 5. The heat map confusion matrix of all scene elements learned by the CRF model.

Figure 18

Table 14. A feature ablation study to understand the proportion of each annotation type to system performance. 3rd column: Average F1-score while features of Second column removed, 4th column: The difference of F1-score while some features are removed in comparison with the base feature set

Figure 19

Table 15. The accuracy measures of non-sequential models in the second attempt to solve the mapping problem. Columns 3–5 are average F1-score for all scene elements with a different feature set. 3rd column: The dataset similar to the CRF dataset. 4th column: Tokens with JUNK label were removed from the dataset. 5th column: A filter was applied to artificially balance the dataset as preprocessing

Figure 20

Table 16. Detailed accuracy measures of the J48 model with feature set: FROM, GPOS, DEPREL, ARG, WSD, Super-WSD, and Scene-Element, based on the completed corpus. 5th, 6th, and Last column: precision, recall, and F1-score of CRF model with the same feature set