Welcome to Journal of Graphics

Journal of Graphics ›› 2026, Vol. 47 ›› Issue (4): 863-873.DOI: 10.11996/JG.j.2095-302X.2026040863

• Digital Design and Manufacture • Previous Articles     Next Articles

Intelligent generation method of SysML2.0 composition and activity diagrams based on semantic-syntactic dual-layer prompting strategy

HU Derui1,2, FANG Zhemei1,2(), LUO Yunfeng1,2   

  1. 1 School of Artificial Intelligence and Automation, Huazhong University of Science and Technology, Wuhan Hubei 430074, China
    2 National Key Laboratory of Science and Technology on Multispectral Information Processing, Huazhong University of Science and Technology, Wuhan Hubei 430074, China
  • Received:2025-12-05 Accepted:2026-05-14 Online:2026-08-31 Published:2026-08-31
  • Contact: FANG Zhemei
  • Supported by:
    National Natural Science Foundation of China(62103158);Automated Target Recognition Key Laboratory (Shanghai) Joint Fund Supported Project(ATR(S)2025-001)

Abstract:

To address the challenges of complex system modeling, including the complexity of model construction and the high learning cost of SysML2.0 syntax, an intelligent SysML2.0 model generation method based on a syntax-semantic dual-layer prompting strategy was proposed. At the semantic layer, a structured semantic prompt template was constructed to standardize the representation of system compositions, behaviors, and relationships. At the syntactic layer, three prompting strategies, namely zero-shot prompting, instruction prompting, and few-shot prompting, were designed to guide Large Language Models (LLMs) in generating composition diagram and activity diagram model codes conforming to SysML2.0 syntax specifications. Meanwhile, model complexity and generation accuracy metrics were established to systematically evaluate the generation performance under different prompting strategies, model complexities, and LLM conditions. Experimental results showed that the few-shot prompting strategy achieved nearly 100% generation accuracy under different complexity levels and across different LLMs, significantly outperforming zero-shot and instruction prompting strategies. Although the generation performance of all methods decreased as model complexity increased, the few-shot prompting strategy demonstrated better adaptability and stability. The results indicated that the few-shot-driven syntax-semantic hierarchical prompting mechanism effectively alleviated semantic hallucinations and structural errors in SysML2.0 model generation by LLMs, thereby improving model generation quality without requiring large-scale annotated datasets. A feasible pathway was thus provided for the transformation of Model-Based Systems Engineering (MBSE) from manual modeling to intelligent modeling.

Key words: prompts, model-based systems engineering, SysML2.0, intelligent generation, large language model

CLC Number: