Tool for generating UML (Unified Modeling Language) diagram according to demand description
By automatically generating UML diagrams through the analysis of requirements specifications, the problem of low efficiency in traditional drawing methods and high barriers to entry for automation tools has been solved, achieving efficient and accurate UML diagram generation and improving team collaboration efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WINCOR NIXDORF RETAIL & BANKING SYST (SHANGHAI) LTD
- Filing Date
- 2024-10-11
- Publication Date
- 2026-04-14
AI Technical Summary
Traditional manual drawing of UML diagrams is inefficient and affected by the illustrator's understanding, while existing automated tools have high barriers to entry and lack flexibility.
By employing natural language processing and generative models, UML diagrams are automatically generated through the analysis of requirements specifications. This includes modules for requirements analysis, process evaluation and optimization, diagram generation, and manual adjustment, simplifying the software design process.
It significantly improves the efficiency and accuracy of UML diagram drawing, ensures that the generated diagrams meet industry standards, and enhances team collaboration efficiency.
Smart Images

Figure CN121858069A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of software development and automated document generation, and specifically relates to a tool for generating UML diagrams based on requirements specifications, including example diagrams, sequence diagrams, flowcharts, and state diagrams. Background Technology
[0002] In software development and project management, flowcharts are an important tool for describing steps and processes. However, traditional manual drawing methods are inefficient and easily affected by the illustrator's understanding. Existing automation tools typically require structured input, have a high barrier to entry, and lack flexibility. Summary of the Invention
[0003] This invention provides a tool for generating UML diagrams based on requirements specifications. By analyzing the natural language requirements specifications, it automatically generates flowcharts. This tool employs natural language processing and a generative model to simplify the software design process, significantly improve drawing efficiency and accuracy, ensure that generated diagrams conform to industry standards, and enhance team collaboration efficiency.
[0004] 1. User Interface Module: Provides an interface for inputting requirements, adjusting parameters, generating graphs, and manual editing.
[0005] 2. Requirements Analysis Module: Receives user input and uses a large language model to extract key process steps and logical relationships.
[0006] 3. Process Evaluation and Optimization Module: Evaluate the refined process steps, identify optimization points and provide suggestions to ensure the rationality of the generated results.
[0007] 4. UML diagram generation module: Automatically generates various types of UML diagrams based on the requirements analysis results and optimization suggestions.
[0008] 5. Manual Adjustment Module: Allows users to manually adjust the generated UML diagrams and provides graphical editing tools. Attached Figure Description
[0009] Figure 1 This invention provides a schematic diagram of the flowchart generation process, illustrating the complete process from inputting requirements specifications to outputting a flowchart.
[0010] Figure 2 The tool module structure diagram of this invention illustrates the interaction relationships between the modules. Detailed Implementation
[0011] The following example will detail the specific implementation of the present invention, but this does not limit the scope of the invention. Depending on actual needs and application environment, the specific implementation of the present invention can have various variations and adjustments.
[0012] 1. Requirements Input: Users input their requirements through the user interface module, which supports multiple formats (such as text, Markdown, etc.) and provides real-time feedback to ensure the validity of the input.
[0013] 2. Demand preprocessing: The system performs word segmentation, part-of-speech tagging, and syntactic parsing on user-input requirements, using advanced Natural Language Processing (NLP) techniques to ensure the structure of the text.
[0014] Techniques such as stop word filtering and stemming are employed to improve text quality and remove redundant information.
[0015] 3. Text quality optimization: Optimize the input text using natural language processing algorithms (such as BERT, GPT, etc.) to ensure grammatical correctness and logical coherence.
[0016] Enhance the expressive power of text through methods such as synonym replacement and sentence reconstruction.
[0017] 4. Key steps and relationship extraction: 4.1 Syntactic parsing: Using dependency parsing tools, we identify actions, objects, and modifiers to construct a sentence structure tree.
[0018] 4.2 Keyword extraction: Apply TF-IDF or TextRank algorithms to extract key verbs and nouns to form a keyword list.
[0019] 4.3 Semantic Analysis: Using Semantic Role Labeling (SRL) technology, we analyze the logical relationships between sentences and identify causal and conditional relationships.
[0020] 4.4 Process Refinement: Transform natural language into structured text formats (such as JSON, XML, or PlantUML) to ensure the readability and operability of information.
[0021] 5. Process evaluation and optimization: By evaluating the refined process steps through rule engines and machine learning models, potential areas for optimization can be identified.
[0022] It provides a comprehensive scoring mechanism that offers optimization suggestions based on the completeness, logic, and feasibility of the process.
[0023] 6. Iterative optimization: Based on the comprehensive score and optimization suggestions, determine whether iterative optimization is needed. If optimization is required, return to step 3 to start a new round of iterations to ensure high quality of the final result.
[0024] 7. UML diagram generation: The extracted steps and relationships are converted into visual flowcharts using a deep learning model (such as a neural network), supporting various UML diagram types (such as use case diagrams, class diagrams, sequence diagrams, etc.).
[0025] Ensure that the generated UML diagrams conform to industry standards and have good readability and maintainability.
[0026] 8. Output and Editing: The final flowchart is output, which users can choose to download (supporting multiple formats such as PNG, SVG, PDF, etc.) or edit further.
[0027] It provides graphical editing tools that allow users to manually adjust the generated UML diagrams to ensure they meet specific requirements.
[0028] 9. Logs and History: By logging and managing historical versions, the system can trace the generated UML diagrams and their details, support version comparison and recovery functions, and improve team collaboration efficiency.
[0029] The above is a specific embodiment of the present invention. Although the present invention has been described in a particular manner, this does not mean that the embodiments of the present invention are limited to this. Any modifications and changes to the technical solutions, as long as they do not depart from the spirit and scope of the present invention, should be considered within the protection scope of the present invention.
Claims
1. A tool for generating content based on artificial intelligence, characterized in that, It can automatically generate flowcharts based on the user's input of natural language requirements.
2. The tool according to claim 1, characterized in that, Natural language processing techniques and generative models are used for requirement analysis and flowchart generation.
3. The tool according to claim 1 or 2, characterized in that, It supports the generation of various types of UML diagrams, including example diagrams, sequence diagrams, flowcharts, and state diagrams.
4. The tool according to any one of claims 1 to 3, characterized in that, Provides users with the ability to manually adjust the generated UML diagrams.