Generative AI-based dialogue generation and optimization in the style of traditional Chinese opera Dream of the Red Chamber using K-means Clustering

This study proposes a generative artificial intelligence framework that integrates prompt engineering and K-means clustering to generate stylized dialogues from the tradition of Dream of the Red Chamber. The prompts for each character were constructed from the linguistic features of classical texts, and each generated sentence was encoded into semantic, lexical, and keyword-based features. K-means clustering was used to identify stylistic categories, and the number of clusters was validated using the Elbow Method and the Silhouette Coefficient. Evaluation used BLEU, Perplexity, and a custom Style Consistency Score. As a result, the K-means-enhanced model improved fluency and style consistency over the baseline. This method provides a quantitative approach to improving generative models in traditional cultural domains.

Authors

Publication Details

Journal
Environment and Social Psychology
Published
2025-09-24
DOI
https://doi.org/10.59429/esp.v10i9.4081
Primary Topic
Educational Technology and Pedagogy
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Generative AI-based dialogue generation and optimization in the style of traditional Chinese opera Dream of the Red Chamber using K-means Clustering

Adzrool Idzwan bin Ismail, Z. S. Xu
Environment and Social Psychology
Educational Technology and Pedagogy
article

Generative AI-based dialogue generation and optimization in the style of traditional Chinese opera Dream of the Red Chamber using K-means Clustering

Adzrool Idzwan bin Ismail, Z. S. Xu
article en

Abstract

This study proposes a generative artificial intelligence framework that integrates prompt engineering and K-means clustering to generate stylized dialogues from the tradition of Dream of the Red Chamber. The prompts for each character were constructed from the linguistic features of classical texts, and each generated sentence was encoded into semantic, lexical, and keyword-based features. K-means clustering was used to identify stylistic categories, and the number of clusters was validated using the Elbow Method and the Silhouette Coefficient. Evaluation used BLEU, Perplexity, and a custom Style Consistency Score. As a result, the K-means-enhanced model improved fluency and style consistency over the baseline. This method provides a quantitative approach to improving generative models in traditional cultural domains.

Environment and Social PsychologyVol. 10(9)
Openalex Percentile: Top 86%
Educational Technology and Pedagogy
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Generative AI-based dialogue generation and optimization in the style of traditional Chinese opera Dream of the Red Chamber using K-means Clustering — Adzrool Idzwan bin Ismail, Z. S. Xu · Environment and Social Psychology (2025) | TGRS Research Map | TGRS