A SysML model generation and recommendation method

Through natural language processing and artificial intelligence technology, SysML models are automatically generated and related models are recommended, which solves the problem of domain experts and end users having difficulty expressing their needs, improves software development efficiency and quality, and is suitable for low-code development and other model generation scenarios.

CN116483348BActive Publication Date: 2024-10-11HARBIN INST OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310467547.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-10-11
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

In the process of model-driven system engineering, it is difficult for domain experts and end users to express their needs using natural language, which makes it difficult for the developed system to fully meet business needs. It is also difficult to model from scratch, which reduces R&D efficiency.

Method used

By extracting the requirements described in natural language based on model-driven design, natural language processing and artificial intelligence technology, building an automatic generator of SysML requirement diagrams, automatically generating SysML models, and using similar text detection and requirements traceability relationships to recommend relevant models to support intelligence. Model generation and recommendation.

Benefits of technology

It realizes the automatic generation of SysML requirement diagram models based on natural language requirements, reduces system modeling workload, improves software development efficiency and quality, supports agile development, and extends to model generation and recommendation in other low-code development processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116483348B_ABST
    Figure CN116483348B_ABST
Patent Text Reader

Abstract

The present invention discloses a SysML model generation and recommendation method, which constructs a SysML requirement diagram automatic generator by learning existing project requirements and SysML models, realizes automatic generation of SysML requirement diagrams according to system requirements expressed in natural language, and recommends models through the requirement traceability relationship of SysML models, supporting intelligent model reuse in model-driven system engineering. The present invention can automatically generate SysML requirement diagram models according to natural language requirements, and support visual requirement confirmation and changes, and then use the traceability of SysML models to automatically recommend module diagrams, activity diagrams and other SysML diagram models, assist software system modeling and development, and improve the development efficiency and quality of software systems. The present invention is also applicable to the generation and recommendation of UML models, and can also be further applied to model generation and recommendation in other low-code development processes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer software and relates to a SysML model generation and recommendation method. Background Art

[0002] Low-code development refers to the use of technologies such as model-driven and visual programming to quickly deliver applications by manually writing a small amount of code. It supports users with low technical backgrounds to build complete software solutions, and can effectively solve problems such as business and development conflicts and long delivery time caused by changes in traditional software development requirements.

[0003] Model-driven systems engineering is the core technology of low-code development. Models are the main assets of the development process and are used to analyze, verify, simulate, and generate code for applications to be built. Low-code development uses pre-built visual components to abstract and automate various steps of the software development life cycle.

[0004] SysML is a widely used and expressive graphical modeling language. Based on the SysML graphical model, systems can be visually designed, analyzed and verified.

[0005] Currently, modeling is still mainly a manual activity in the process of model-driven system engineering. IT experts use models to express requirements, but domain experts and end users usually use natural language to express requirements, which makes it difficult for them to understand the requirements model, hindering rapid feedback and effective communication between them, resulting in the development system being difficult to fully meet business needs and difficult to change.

[0006] If we can learn the historical knowledge of software modeling and development, reuse existing artifact models, and intelligently generate and recommend models based on system requirements described in natural language, we can effectively support the representation and analysis of domain information, avoid modeling from scratch, reduce the difficulty of model construction, and further improve R&D efficiency. However, there is still a lack of effective solutions. Summary of the invention

[0007] In order to solve the problem that the existing technology usually focuses on the completion and repair of existing models, does not support the input of easy-to-describe natural sentence requirements, and intelligently generates and recommends low-code development models, the present invention provides a SysML model generation and recommendation method. Based on model-driven design, natural language processing, artificial intelligence and other technologies, the present invention automatically generates SysML models based on the demand text expressed in natural language by mining existing software development knowledge, and generates relevant personalized suggestions for software solutions through intelligent model recommendation, reducing the workload of system modeling, supporting agile development, and ensuring software quality while improving development efficiency.

[0008] The objective of the present invention is achieved through the following technical solutions:

[0009] A SysML model generation and recommendation method comprises the following steps:

[0010] Step S1: Based on the existing project model, extract the requirements described in natural language, express the model as an XMI document, and build a requirements-SysML model library;

[0011] Step S2: Based on the machine translation model, a SysML requirement diagram automatic generator is constructed, the <requirement, requirement diagram XMI sequence> of each project in the requirement-SysML model library is parsed, and the SysML requirement diagram automatic generator is trained;

[0012] Step S3: parse the system requirements of the new project described in natural language, input the trained SysML requirement diagram automatic generator, and automatically generate the requirement diagram XMI sequence;

[0013] Step S4: For new project requirements and generated requirement diagram XMI documents, similar text detection is used to retrieve the requirement-SysML model library and recommend similar projects and similar requirement diagrams;

[0014] Step S5: visually confirm or complete the SysML requirement diagram;

[0015] Step S6: Using the requirement traceability relationship of the SysML model, recommend module definition diagrams, internal module diagrams, package diagrams, parameter diagrams, activity diagrams, state diagrams, use case diagrams, and sequence diagrams corresponding to similar projects and requirements;

[0016] Step S7: Store the new project requirements and the SysML model updated and improved by the developer in the Requirements-SysML model library, and expand the model library.

[0017] Compared with the prior art, the present invention has the following advantages:

[0018] The present invention can automatically generate SysML requirement diagram models according to natural language requirements, and support visual requirement confirmation and change, and then use the traceability of SysML models to automatically recommend module diagrams, activity diagrams and other SysML diagram models to assist software system modeling and development, and improve the development efficiency and quality of software systems. The present invention is also applicable to the generation and recommendation of UML models, and can be further applied to model generation and recommendation in other low-code development processes, such as generating and recommending business process models. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flowchart of the SysML model generation and recommendation method of the present invention;

[0020] Figure 2 This is an example of a SysML requirement diagram;

[0021] Figure 3 This is an example of an XMI document for a requirement diagram;

[0022] Figure 4 An example of the process of building and training a SysML requirement diagram automatic generator;

[0023] Figure 5 Define graph examples for the recommended modules;

[0024] Figure 6 This is an example of a recommended internal module diagram;

[0025] Figure 7 An example of a recommended activity diagram is shown below. DETAILED DESCRIPTION

[0026] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.

[0027] The present invention provides a SysML model generation and recommendation method, which constructs a SysML requirement diagram automatic generator by learning existing project requirements and SysML models, realizes automatic generation of SysML requirement diagrams according to system requirements expressed in natural language, and recommends models through the requirement traceability relationship of SysML models, supporting intelligent model reuse in model-driven system engineering. Figure 1 As shown, the following steps are included:

[0028] Step S1: Based on the existing project model, extract the requirements described in natural language, express the model as an XMI document, and build a requirements-SysML model library. The specific steps are as follows:

[0029] Step S101: Parse the open source projects and internal model repositories containing the models, and extract the natural language text description of the project requirements;

[0030] Step S102: extracting the SysML model of the project and the traceability relationship between various diagram models to generate an XMI document, wherein the SysML model includes: requirement diagram, module definition diagram, internal module diagram, package diagram, parameter diagram, activity diagram, state diagram, use case diagram, and sequence diagram;

[0031] Step S103: Establish requirements-SysML model mapping for each project and build a requirements-SysML model library.

[0032] For example, a SysML requirement diagram of a natural language description of the requirement "Build a self-service vending machine system that allows users to insert coins, select products, eject products, and give change." Figure 2 As shown, an example of an XMI document for a requirement diagram is as follows Figure 3 shown.

[0033] Step S2: Based on the machine translation model, build a SysML requirement diagram automatic generator, parse the <requirement, requirement diagram XMI sequence> of each project in the requirement-SysML model library, and train the SysML requirement diagram automatic generator. The specific steps are as follows:

[0034] Step S201: parse the requirements-SysML model library, pre-process and segment the natural language requirements of each project and the requirements diagram XMI document;

[0035] Step S202: construct a training data set based on each project requirement token sequence and requirement graph XMI token sequence;

[0036] Step S203: Based on the machine translation model, a SysML requirement diagram automatic generator is constructed, the input of the model is a project requirement token sequence, and the output is a requirement diagram XMI token sequence;

[0037] Step S204: using the training data set to train the SysML requirement diagram automatic generator.

[0038] An example of the process of building and training a SysML requirement diagram automatic generator is as follows: Figure 4 shown.

[0039] Step S3: Parse the system requirements of the new project in natural language description, input the trained SysML requirement diagram automatic generator, and automatically generate the requirement diagram XMI sequence. The specific steps are as follows:

[0040] Step S301: preprocessing and segmenting the system requirements of the natural language description of the new project;

[0041] Step S302: Input the requirement token sequence into the trained SysML requirement diagram automatic generator, output the requirement diagram XMI token sequence, and generate the requirement diagram XMI document.

[0042] Step S4: For new project requirements and the generated requirement diagram XMI document, similar text detection is used to retrieve the requirement-SysML model library and recommend similar projects and similar requirement diagrams.

[0043] Step S5: Visually confirm or complete the SysML requirement diagram. The specific steps are as follows:

[0044] Step S501: using the SysML modeling tool to read the requirement graph XMI document and visualize the requirement graph;

[0045] Step S502: Based on the generated requirement graph and the recommended similar requirement graphs, manually confirm or complete the requirement graph.

[0046] Step S6: Using the requirement traceability relationship of the SysML model, recommend module definition diagrams, internal module diagrams, package diagrams, parameter diagrams, activity diagrams, state diagrams, use case diagrams, and sequence diagrams corresponding to similar projects and requirements. The recommended SysML module definition diagrams, internal module diagrams, and activity diagrams are as follows: Figure 5 , Figure 6 , Figure 7 shown.

[0047] Step S7: Store the new project requirements and the SysML model updated and improved by the developer in the Requirements-SysML model library, and expand the model library.

Claims

1. A SysML model generation and recommendation method, characterized in that The method comprises the following steps: Step S1: Based on the existing project model, extract the requirements described in natural language, express the model as an XMI document, and build a requirements-SysML model library. The specific steps are as follows: Step S101: Parse the open source projects and internal model repositories containing the models, and extract the natural language text description of the project requirements; Step S102: extracting the SysML model of the project and the traceability relationship between various graph models to generate an XMI document; Step S103: Establishing the requirements-SysML model mapping of each project and building the requirements-SysML model library; Step S2: Based on the machine translation model, build a SysML requirement diagram automatic generator, parse the requirements and requirement diagram XMI sequences of each project in the requirement-SysML model library, and train the SysML requirement diagram automatic generator. The specific steps are as follows: Step S201: parse the requirements-SysML model library, pre-process and segment the natural language requirements of each project and the requirements diagram XMI document; Step S202: construct a training data set based on each project requirement token sequence and requirement graph XMI token sequence; Step S203: Based on the machine translation model, a SysML requirement diagram automatic generator is constructed, the input of the model is a project requirement token sequence, and the output is a requirement diagram XMI token sequence; Step S204: training the SysML requirement diagram automatic generator using the training data set; Step S3: parse the system requirements of the new project described in natural language, input the trained SysML requirement diagram automatic generator, and automatically generate the requirement diagram XMI sequence; Step S4: For new project requirements and generated requirement diagram XMI documents, similar text detection is used to retrieve the requirement-SysML model library and recommend similar projects and similar requirement diagrams; Step S5: Visually confirm or complete the SysML requirement diagram. The specific steps are as follows: Step S501: using the SysML modeling tool to read the requirement graph XMI document and visualize the requirement graph; Step S502: manually confirming or completing the demand graph based on the generated demand graph and the recommended similar demand graphs; Step S6: Using the requirement traceability relationship of the SysML model, recommend module definition diagrams, internal module diagrams, package diagrams, parameter diagrams, activity diagrams, state diagrams, use case diagrams, and sequence diagrams corresponding to similar projects and requirements; Step S7: Store the new project requirements and the SysML model updated and improved by the developer in the Requirements-SysML model library, and expand the Requirements-SysML model library.

2. The SysML model generation and recommendation method according to claim 1, characterized in that The SysML model includes: requirement diagram, module definition diagram, internal module diagram, package diagram, parameter diagram, activity diagram, state diagram, use case diagram, and sequence diagram.

3. The SysML model generation and recommendation method according to claim 1, characterized in that The specific steps of step S3 are as follows: Step S301: preprocessing and segmenting the system requirements of the natural language description of the new project; Step S302: Input the requirement token sequence into the trained SysML requirement diagram automatic generator, output the requirement diagram XMI token sequence, and generate the requirement diagram XMI document.

Citation Information

Patent Citations

  • SysML-based security-critical autonomous system modeling method and tool

    CN113190222A

  • Safe and reliable semantic extension and modeling method of SysML language

    CN114816431A

  • Cloud manufacturing service process recommendation method based on deep learning

    CN115048490A

  • Industrial algorithm model recommendation method based on industrial big data

    CN115905705A

  • Automatic Design Assessment and Smart Analysis

    US20230028912A1