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
- Adzrool Idzwan Ismail (ORCID: https://orcid.org/0000-0003-3334-0784)
- Z. S. Xu (ORCID: https://orcid.org/0000-0002-2511-4675)
Institutions
- Xi’an International University (CN)
- Northern University of Malaysia (MY)
Publication Details
- Published
- 2025-03-14
- DOI
- https://doi.org/10.1145/3734921.3734944
- Primary Topic
- Environmental Engineering and Cultural Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00