Manuscript Offprint
arXiv:2610.36698Translating Poetic Emotion into Dynamic Mathematical Visuals: A Strange Attractor-Based Approach
Abstract
Poetry conveys emotional experiences through language. This project investigates how poetic emotional experiences can be represented through dynamic mathematical visualisations while further developing a pipeline for this purpose. By leveraging a pretrained RoBERTa-based emotion classifier, the system analyses the fine-grained emotional states within a poem. These detected emotions are then mapped onto the parameters of strange attractors, complex structures from dynamical systems theory, to generate abstract, deterministic, and dynamic imagery. This work situates itself at the intersection of poetry, psychology, and mathematics, aiming to extend the poetic experience beyond language into the sensory domain.
CCS Concepts
• Human-centered computing → Visualization techniques; HCI theory, concepts and models; • Computing methodologies → Natural language processing.
ACM Reference Format:
Subhadra Nayak. 2026. Translating Poetic Emotion into Dynamic Mathematical Visuals: A Strange Attractor-Based Approach. In Proceedings of
17th Indian Conference on Human-Computer Interaction (IndiaHCI '26). ACM, New York, NY, USA, 6 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
1 Introduction
A poem is an arrangement of language that rewards its reader with a form of experience that is self-sufficient in itself to create a structured world [13]. It is a form of writing that invites the kind of reading, attention, and analysis typically reserved for poetry, done in hopes of the meaningful possibilities of the language [9]. A poem can have certain linguistic characteristics, such as meter, rhythm, metaphor, or imagery, but is not defined by the presence or absence of such a family of characteristics, but rather by the experience it provides.
Poetry can produce measurable emotional peaks, such as chills and goosebumps, with these responses tending to occur around poetic closures and being associated with socially and personally relevant content [14]. Its content can allow readers to mentally simulate situations, people and experiences, while its formal and prosodic features can shape emotional responses through rhythm, meter, rhyme and anticipation. The readers' awareness of their experience and evaluation of the poem can contribute to an aesthetic emotional response [6]. The experience created by a poem evokes an emotional response, by both what it conveys and how it is constructed.
Poems often manifest through other art forms, such as performance/spoken word, music/audio, visual and audiovisual art (poetry films/installations), sculpture/visual poetry, and digital/media poetry, using kinetic text, manipulated voices, and other multimedia forms. This is done to produce an embodied experience and to make its silent properties perceptible, thereby expanding their spatiality beyond language [10].
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
IndiaHCI '26, Hyderabad, Telangana, India
Mathematics and poetry are related in how patterns are formed and revealed. Poetry deals with patterns that reflect human experiences, largely influenced by emotions, while mathematics deals with patterns in the physical world, primarily governed by variables [1]. The proposed system aims to represent a poem's emotional
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-1-4503-XXXX-X/2018/06 https://doi.org/10.1145/nnnnnnn.nnnnnnn
Subhadra Nayak
content through dynamic visuals, primarily via a particle simulator. The main purpose is to extend the way poems are experienced through mathematics and to propose frameworks that could help achieve this.
2 Background and motivation
Poems are often translated into new materials, spaces, bodies, imagery, sounds, and interfaces. Kinetic typography research employs time, motion, rhythm, tempo, sound, and spatial composition to enhance a poem's emotional impact [8]. The Muses of Poetry combines poetry with semantic analysis, real-time character animation, natural-voice interaction, facial expressions, and affective voice to control how a virtual character recites poem that expresses the emotional content of the poem [12]. The Generative Visual Renku project combines poetry, generative art, animation, interface design, and computational semantics [3]. These approaches have made otherwise abstract textual features of the poem perceptible and increased its sensory range, making it more experiential.
The proposed system attempts to express expresses a poem's emotional content through the mathematics of a set of strange attractors that produce the dynamic visuals. The motivation for this approach comes from the ability of strange attractors to generate deterministic, dynamic, abstract visuals, making each simulation predictable.
3 Research gaps and questions
A substantial amount of work has been done to experience poetry in different forms. The previously mentioned research demonstrates several ways to visualise and analyse poems and their emotional content. However, the pipeline by which a poem's emotional content is used to create dynamic visuals governed by mathematical rules is not explored. The project develops an experimental prototype for this purpose and addresses the following research questions.
(1) RQ1: Is there a way to visually embody a poem's emotional content such that it remains predictable on each simulation? The answer was to control the visual parameter using a rule-based method, with a deterministic mathematical system to help. For this system, the chosen field of deterministic systems is strange attractors. Answering this RQ leads to another RQ,
(2) RQ2: How can emotions expressed in a poem be mapped to the parameters of a mathematical system to construct such a visual representation?
4 Related Work
4.1 Emotion
4.1.1 Emotion and its classification. Emotion is an intense, temporally unfolding experience that can arise from feelings, thoughts, memories, judgment, or imagination [2]. There are different models that classify emotions based on different theories. Few examples as mentioned in [11] are: Discrete or basic-emotion models, Dimensional models, Appraisal models, Constructionist models, Componential models, Embodied and situated approaches. The models that

Figure 2: Valence-arousal representation of the 28 emotion labels used in the emotion-mapping framework.
have been worked upon are basic-emotion models and dimensional models, specifically valence-arousal, as discussed below.
(1) Paul Ekman’s Basic Emotion Theory: The theory proposes six basic emotions: happiness, sadness, fear, anger, surprise, and disgust. Later studies of facial expressions often included “neutral” as a baseline category rather than as a basic emotion.
(2) Valence-Arousal Model: This represents emotional experience along two continuous dimensions: valence, which describes how pleasant or unpleasant an experience is, and arousal, which describes how activated or energetic the experience is. For example, excitement and fear can both involve high arousal, but excitement is generally pleasant whereas fear is unpleasant.
Ekman’s model focuses on identifying “which emotion is present,” whereas the valence-arousal model describes “how pleasant and how activated the experience is.” Together, these perspectives provide complementary ways of interpreting emotional content.
4.1.2 Emotions Classifier used in the system. The system uses a pretrained RoBERTa-based emotion classifier, SamLowe/roberta-base-go_emotions, accessed through the Hugging Face Inference API. The classifier was fine-tuned on the GoEmotions dataset which contains 58000 Reddit comments.
There are 28 categories this model can recognise: admiration, amusement, anger, annoyance, approval, caring, confusion, curiosity, desire, disappointment, disapproval, disgust, embarrassment, excitement, fear, gratitude, grief, joy, love, nervousness, optimism, pride, realisation, relief, remorse, sadness, surprise and neutral
The classifier was selected primarily for its fine-grained emotion vocabulary for NLP, multi-emotion output, accessibility as a pretrained model, and suitability for exploratory prototyping. It was not selected because it is assumed to provide a ground-truth interpretation of poetic emotion. Given a poem as input, the classifier surfaces all detected emotions along with their weight scores.
Translating Poetic Emotion into Dynamic Mathematical Visuals: A Strange Attractor-Based Approach
IndiaHCI '26, October 29–31, 2026, Hyderabad, Telangana, India
4.2 Mathematics
Dynamical systems theory represents possible states in a state space and studies the trajectory traced through that space [7]. A dynamical system is anything whose state changes over time according to rules. The state is the information needed to describe the system at a given moment, and the rules determine how that state evolves.
A chaotic system is a dynamical system whose behaviour is generated by definite rules but becomes difficult to predict over long periods because small differences in starting conditions grow rapidly. Two states that begin extremely close together can later follow very different trajectories [4]. This is called sensitive dependence on initial conditions; the familiar butterfly effect. The other features associated with chaotic system are deterministic, meaning the present state and the rules determine the next state and they are mostly non linear, meaning effects are not proportional to causes as small changes can be amplified.
A strange attractor is an attracting invariant set in the phase space of a nonlinear dynamical system. Trajectories approaching the attractor remain confined to a bounded region and may show intricate, fractal-like geometry, aperiodic motion, and sensitivity toward initial conditions [5]. Its structure and dynamics depend on the governing equations, system parameters, and initial conditions.
In this work, four three-dimensional chaotic systems were used to generate distinct visual dynamics for the particle simulator: Thomas, Lorenz, Chen-Lee and Halvorsen systems. Changing the parameter values of these attractors can alter the resulting trajectory. In the proposed particle simulator, these attractors define the underlying visual dynamics, and their parameters are controlled by the poem's emotional content. This provides a connection between the representation of emotion by the mathematically based visual motion.
5 Methodology
The system translates the emotional content of a user-written poem into a dynamic visual representation generated through the mathematical behaviour of an attractor. The overall system consists of four interconnected stages:
(1) Text input and emotion extraction
(2) Emotion-to-visual mapping
(3) Visual generation and its selection
(4) Visual rendering
The complete pipeline of the system can be expressed as shown in Figure 3:
5.1 Text and Emotion Extraction
The user enters a poem into the Text COMP in TouchDesigner, which is read by a Python script DAT. The Python script then retrieves emotion scores using the SamLowe/roberta-base-go_emotions model from Hugging Face.
The model output is ranked according to the detected emotion scores, and the three highest-scoring emotions are selected. These three emotions are assigned distinct functional roles within the visual mapping pipeline as discussed in following section.
5.2 Emotion-to-Visual Mapping Framework
The Python script maps the three highest-scoring detected emotions to visual parameters using five lookup tables, collectively referred to as the emotion database:
-
emotion_table: Maps each emotion to hue, saturation, value, valence, and arousal. Thus, the table provides the colour representation of each emotion as well as its valence and arousal classifications. The valence-arousal categorisation used in the system follows a three-level representation. This can be seen in Figure 2.
-
emotion_to_category: Maps individual emotions to broader emotional categories based on Basic Emotion Theory. The categories used are happiness, sadness, fear, anger, surprise, disgust, and neutral.
-
category_table: Maps the seven emotional categories to attractor parameters. Each category is associated with an attractor shape through the switch position, with Thomas = 0, Lorenz = 1, Chen-Lee = 2, and Halvorsen = 3. The parameter b is additionally used for the Thomas attractor to produce four distinct shapes.
-
valence_table: Maps the three-level valence classification to the brightness or visual glow of the resulting shape through its bloom intensity.
-
arousal_table: Maps the three-level arousal classification to particle movement parameters, specifically particle speed through the corresponding dt and offset values.
The three detected emotions are assigned different mapping paths:
(1) Dominant emotion A - shape and colour: The dominant emotion first accesses the emotion_table, which provides its predefined colour information in HSV format. The emotion is then passed through the emotion_to_category table to determine its broader emotional category. This category is subsequently used to access the category_table, which determines the attractor selection through switch and provides the attractor-specific shape parameter b.
(2) Second emotion B - bloom: The second-ranked emotion accesses the emotion_table, from which its valence classification is obtained. The resulting valence (Positive, Neutral, or Negative) is then mapped through the valence_table, which determines the corresponding bloom intensity.
(3) Third emotion C - movement: The third-ranked emotion accesses the emotion_table to obtain its arousal classification (Low, Medium, or High). This classification is then mapped through the arousal_table, which determines the corresponding parameters governing particle movement.
5.3 Touchpoint of dependency connection
The Python script then sends the mapped values into the seven channels of a constant CHOP. The constant CHOP, therefore, acts as a centralised parameter interface between the emotion-mapping layer and the visual-generation and rendering layers.
• Switch: Selects the attractor
• b: Thomas attractor-specific; shape parameter
• Hue: Controls the hue of the dominant emotion
Subhadra Nayak

Figure 3: Detailed system architecture of the proposed system, illustrating how emotions extracted from a poem are translated into dynamic visual representations.
• Saturation: Controls the saturation of the dominant emotion
• Value: Controls the value of the dominant emotion
• Bloom: Controls bloom intensity in bloom TOP
• Speed: Controls particle speed through attractor’s dt and offset.
5.4 Visual generation and its selection
The dynamic visuals are generated by particles whose positions are determined by the previously discussed strange-attractor equations. These dynamical systems are implemented in TouchDesigner using GLSL and native TOP operators, with feedback used to retain and iteratively update the system state. All the attractors pass through the switch, whose value from the emotion mapping determines which attractor's output is passed forward.
5.5 Visual Rendering
Particle geometry is defined, then rendered using a camera and a light. After rendering, the system passes through the bloom TOP, and colour is adjusted by Slider4Hsva, which takes its value from the previously mentioned switch. These can be seen in Figure 4.
6 Preliminary findings
A pilot study was conducted to simulate seven different categories of poems and create corresponding visuals for each. Eight participants were asked to describe the emotions they felt while reading each poem and viewing its related visual. This can be seen in Figure 5. The visuals were presented in a different order from the poem, and the emotions available for selection were the same as those used to identify the shapes in the system: happiness, sadness, fear, anger, surprise, disgust, and neutral (labelled calm/neutral). Their participation was via a Google Form that included the poems and visuals linked to unlisted YouTube videos, which was sent to known people (convenience sampling) who might be interested in poetry and art, although reported engagement varied for both. Responses were analysed descriptively for exploratory purposes without using any statistical approach.
Overall, agreement across poem-visual pairs was 23.21%. For each of the seven emotions, evaluation was based on how each person responded to a poem and on how that response compared with the corresponding generated visual for the same poem. A match was considered when both their choices were the same. Of the 56 poem-visual pairs (8 participants multiplied by 7 emotions), 13 pairs matched, representing 23.21%. It was noted that participants often selected "Neutral."
7 Discussion
The pilot study was an exploratory, early-stage assessment with eight participants, aimed at identifying issues in the mapping rather than testing hypotheses or making generalisable claims. It cannot establish whether the system works or fails in general, and the findings may not generalise to other readers or viewers due to the small sample size. The pilot study also included a categorical response format, which may have limited participants' ability to fully describe their emotional experiences. An abstract visual can evoke a range of emotional qualities, such as calmness, sadness,
Translating Poetic Emotion into Dynamic Mathematical Visuals: A Strange Attractor-Based Approach
IndiaHCI '26, October 29–31, 2026, Hyderabad, Telangana, India

Figure 4: Implementation of the proposed poem-to-visual pipeline in TouchDesigner.
Intended emotion
Participants (n = 8)

Figure 5: Analyzing participants' emotional choices for the poem and its visual representation, and assessing whether they align with each other.
Subhadra Nayak
or tension, which cannot be adequately represented by selecting a single category. As a result, some participants may have chosen "neutral" as a broad fallback option when the visual might not align with any specific category. A more open-ended and nuanced evaluation could provide a richer understanding of these responses.
The current approach of assigning parameters one-to-one may have its limitations. While the three highest-scoring emotions are derived from the poem, they are treated as separate, independent parameters. Consequently, the final visual is a combination of individually mapped emotional attributes rather than a holistic representation of the poem's emotional state. This separation may result in a visual representation that differs perceptually from the emotional character inferred from the poem, even when each mapping adheres to its established rule. This may be further work in this direction.
The emotion classification model introduces a potential source of variation within the system. During the development phase, there were instances in which some emotion that seemed prominent in a poem received a relatively low score from the classifier. For example, content related to "fear" might be assigned a lower score for "fear." Additionally, it was noticed that the model often leaned towards a "Neutral" classification. These variations can carry over into the mapping process and affect the resulting visual representation.
8 Conclusion
An experimental prototype of a system that connects a poem's emotional content to a mathematical equation has been created to visualise poetry. This study proposes a pipeline for this process. However, this is at an exploratory scale and opens future work around two areas. First, is the testing and analysis approach; second, the possibility of different mapping systems that could holistically represent a poem's emotional content. This could mean exploring how multiple emotional signals can be composed into a coherent visual representation. Both steps are cyclical to each other. These questions drive the need for deeper investigation into blended emotion-to-parameter mappings and more effective perceptual evaluation methods.
References
[1] Ron Aharoni. 2014. Mathematics, poetry and beauty. Journal of Mathematics and the Arts 8, 1–2 (2014), 5–12.
[2] Michel Cabanac. 2002. What is emotion? Behavioural Processes 60, 2 (2002), 69–83.
[3] Kenny KN Chow and D Fox Harrell. 2010. The generative visual renku project: integrating multimedia semantics, animation, and interface design. In CHI'10 Extended Abstracts on Human Factors in Computing Systems. 3013–3018.
[4] William Ditto and Toshinori Munakata. 1995. Principles and applications of chaotic systems. Commun. ACM 38, 11 (1995), 96–102.
[5] J-P Eckmann and David Ruelle. 1985. Ergodic theory of chaos and strange attractors. Reviews of modern physics 57, 3 (1985), 617.
[6] Philip N. Johnson-Laird and Keith Oatley. 2022. How poetry evokes emotions. Acta Psychologica 224 (2022), 103506.
[7] Anatole Katok and Boris Hasselblatt. 1995. Introduction to the Modern Theory of Dynamical Systems. Number 54. Cambridge University Press.
[8] Hyunjung Kim and Hyunju Lee. 2008. Enhancing Emotion in Kinetic Typography. International Journal of Asia Digital Art and Design 7 (2008), 5–10.
[9] Robert B. Pierce. 2003. Defining Poetry. Philosophy and Literature 27, 1 (2003), 151–163.
[10] Bill Psarras. 2018. Locating poetic objects: experiencing poetry into site through walking, sound and interaction. (2018).
[11] David Sander. 2025. Theories of emotion for human affective neuroscience. The Cambridge Handbook of Human Affective Neuroscience (2025), 7–32.
[12] Franciszek Sobiech, Natalia Walczak, Magdalena Wróbel-Lachowska, and Laurent Babout. 2026. How (and Why) do We Measure Art? Methods in HCI-Driven Interactive Art Research. In Proceedings of the Extended Abstracts of the 2026 CHI Conference on Human Factors in Computing Systems. 1–5.
[13] Eliseo Vivas. 1954. What Is a Poem? The Sewanee Review 62, 4 (1954), 578–597.
[14] Eugen Wassiliwizky, Stefan Koelsch, Valentin Wagner, Thomas Jacobsen, and Winfried Menninghaus. 2017. The emotional power of poetry: Neural circuitry, psychophysiology and compositional principles. Social cognitive and affective neuroscience 12, 8 (2017), 1229–1240.
Received 15 August 2026; revised 01 October 2026; accepted 10 October 2026