A RUCM-based autonomous driving system requirements modeling method
By extending the RUCM method and introducing specific concepts and constraints in the field of autonomous driving, the problem of complexity of requirement description in the autonomous driving system is solved, professional description and accuracy of the requirements of the autonomous driving system are achieved, and the quality and efficiency of software development are improved. .
Patent Information
- Application Number
- CN202111160489.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing demand modeling methods are difficult to accurately describe complex usage scenarios and environmental characteristics in autonomous driving systems, resulting in incomplete or inaccurate demand descriptions and affecting the quality of software design and development.
By extending the RUCM method, specific concepts, attributes and constraints in the autonomous driving field are introduced, a domain conceptual model is established, UCMeta and use case description templates are expanded, causal relationship types and keywords are added, and the professionalism and accuracy of demand descriptions are improved.
It achieves a professional description of autonomous driving system requirements, reduces the ambiguity of requirement descriptions, improves the accuracy and efficiency of software development, and ensures the integrity and accuracy of subsequent designs.
Smart Images

Figure CN113986201B
Abstract
Description
Technical Field
[0001] The present invention relates to a method for demand modeling, and in particular to a method for demand modeling of an autonomous driving system based on RUCM. Background Art
[0002] With the deepening of the scientific and technological revolution, human society has entered a new era of intelligentization where everything is connected and everything is intelligent. Autonomous driving technology has gradually become the focus under the rapid development of artificial intelligence and the automotive industry. Autonomous driving involves a large number of usage scenarios and specifications. In order to grasp this diversity, a method is needed to effectively distinguish the different characteristics of vehicles during the requirements description stage and accurately describe the typical usage scenarios of autonomous driving. These are called use cases for autonomous driving. Under unified specifications, accurate use case descriptions of autonomous driving scenarios are a key step in the software design of autonomous driving systems.
[0003] Use case modeling is an important component of object-oriented software development technology. As a medium for communication between developers, the use case model can accurately define software requirements, minimize the possibility of ambiguity, and ensure consistency in the understanding of requirements between users and developers. The use case model plays a very important role in the entire development process, and it can drive the analysis and design of the software to be gradually refined.
[0004] Requirements analysis is crucial to the success of a system or software project. Among the large number of existing requirements documents, there are completely formal and completely informal documents. Completely formal requirements specification documents are difficult for users to understand, and completely informal documents cannot accurately describe them, which can easily cause misunderstandings between system developers and users. Therefore, it is a desirable approach to describe requirements in a natural language that is restricted by rules and maintain a balance between these two extremes. RUCM (Restricted Use Case Modeling) is such a tool. The RUCM method is a requirements modeling method based on use case modeling, which can effectively reduce the ambiguity of requirements descriptions and promote the automated analysis and conversion of requirements models.
[0005] The RUCM method is a requirement modeling method based on use case modeling, which consists of a use case diagram, an improved structured use case specification template, and a set of restriction rules. Experiments have shown that using RUCM for requirement modeling can effectively reduce the ambiguity of the requirement specification while retaining the advantages of natural language being easy to understand and use. Therefore, the RUCM method has significant advantages in software requirement modeling. RUCM is a general requirement description method, and the RUCM method has good extensibility, and can support security requirement description by extending RUCM.
[0006] In the initial version of RUCM, no concepts, attributes, and constraints related to autonomous driving were set. In this paper, we will propose a new extension to RUCM, add specific concepts, attributes, and constraints in the field of autonomous driving, and create a new method dedicated to use case modeling in the field of autonomous driving based on the general method. Summary of the invention
[0007] Purpose of the invention: The present invention proposes a requirement modeling method for an autonomous driving system based on RUCM. By introducing domain concepts and features, the method improves the terminology expertise, description accuracy, and scenario completeness of the autonomous driving system software design in the requirement description stage, so as to avoid defects in subsequent designs due to incomplete and inaccurate use case descriptions.
[0008] Technical solution: The present invention provides a method for modeling the requirements of an autonomous driving system based on RUCM, comprising the following steps:
[0009] (1) Analyze and extract the concepts and features of the autonomous driving domain, divide the domain entity hierarchy, and establish a domain concept model based on the WISE DRIVE standard;
[0010] (2) Combine the extracted domain concepts with the RUCM metamodel to expand UCMeta: Convert the domain concept model into UML Profile, and expand the autonomous driving domain concepts in the RUCM metamodel UCMeta; refine it in Actor, expand the Use Case into different types, and establish ADS Use Case; expand the relationship type between use cases, and add Exposure relationship to describe the causal relationship between driving behaviors; analyze the domain concept model, determine the autonomous driving use case description template, and add description rules and keywords; expand the RUCM description template to describe the autonomous driving task requirements, and add the concept risk level and requirement level for the description of driving task requirements;
[0011] (3) Add relevant items to the RUCM description template and build an autonomous driving system requirement template based on the RUCM description template to enable it to complete the autonomous driving scenario description more accurately.
[0012] Furthermore, the implementation process of the refinement in the Actor described in step (2) is as follows:
[0013] According to the characteristics of the autonomous driving environment, Actors are expanded and divided into five types: natural environment, road, entity, human, and animal. Among them:
[0014] The natural environment refers to the natural environment part of the driving environment, including temperature, visibility and other weather attributes related to driving;
[0015] Road represents the road where the driving task takes place, including attributes such as road structure and road surface conditions;
[0016] Entities refer to entities other than humans that may be involved in driving scenarios, including two subcategories: vehicles and other obstacles. Vehicles are divided into three subcategories according to different types of vehicles, namely rail vehicles, large off-road vehicles, and ordinary road vehicles.
[0017] Humans are divided into two subcategories according to their types, namely vehicle users and road users. Road users include pedestrians, traffic controllers, and animal riders; vehicle users include two subcategories: drivers and passengers;
[0018] Animals refer to animals that appear in the driving environment and affect driving behavior, with attributes such as animal species, height, weight, etc.; animal species has two options: domesticated and wild.
[0019] Furthermore, the ADS Use Case establishment process described in step (2) is as follows:
[0020] The Uase Case is expanded to ADS Use Case, which is defined as a use case applicable to the autonomous driving system. According to the different contents of the use case and the three-layer division of autonomous driving behavior in the WISE DRIVE method, the ADS Use Case is divided into three types: control use case, operation use case and strategy use case. The control use case is used to describe basic movements; the operation use case focuses on a series of vehicle behaviors; the strategy use case describes the overall goal of the driving task; the three types are used in combination and call each other.
[0021] Furthermore, the relationship type between the extended use cases described in step (2) is extended in the Use Case Relationship, and the implementation process is as follows:
[0022] Added the relationship type Exposure, which is used to describe the causal relationship between autonomous driving tasks. Exposure contains the attributes result case, inducement case, and relative frequency, which represent the probability of the result, inducement, and the causal relationship between the two.
[0023] Add the keyword EXPOSURED BY USE CASE to Exposure, followed by the precipitating use case of the use case, and the described use case itself as the result use case.
[0024] Furthermore, the description rule in step (2) is:
[0025] The keyword INCLUDE USE CASE is used in the strategy use case to include several control use cases and operation use cases. The keyword INCLUDE USE CASE is used in the operation use case to include several control use cases. The control use case cannot include the operation use case or strategy use case. The operation use case cannot include the strategy use case.
[0026] Use the keyword EXPOSURED BY USE CASE followed by the use case that caused the use case and describe the causal relationship with other driving behaviors.
[0027] The keyword REF is used to refer to the Actor as the environment of the driving scene;
[0028] Among the Actor types, four types, namely roads, natural environment, other obstacles and animals, are classified as environmentActor; vehicles, vehicle users and road users are classified as roadUser; all types are automatically classified in the adsspecification list.
[0029] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects:
[0030] 1. Aiming at the scene environment and the autonomous driving system with complex task situations, the present invention conducts in-depth analysis on the extraction and description of autonomous driving scenarios, and creates a demand modeling method applicable to this field, so as to realize the professional description of autonomous driving use cases in the demand description stage, and pave the way for the later software development and testing;
[0031] 2. The present invention aims at the scenario description requirement modeling of the autonomous driving system, and extends the UCMeta of the standard RUCM. UCMeta is the metamodel of the RUCM method, which is defined by MOF (Meta Object Facility). Through domain analysis, the model elements Actor Metamodel and Use Case Metamodel of the UML standard are refined and extended in the field, so as to support the specialized requirement modeling in the field.
[0032] 3. The present invention aims at scenario description requirement modeling of autonomous driving systems, and expands the requirement description template and restriction rules of the standard RUCM. Due to the characteristics of autonomous driving tasks themselves, it is required to describe the environmental information of each driving task in detail at the requirement stage. The present invention can support professional description of autonomous driving task scenarios, such as roads, weather, other road users, etc., at the software requirement modeling stage by extending the requirement description template of RUCM. The use case contains sufficiently detailed environmental information to facilitate subsequent development and testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A conceptual model diagram of the field within the applicable scope of the present invention;
[0034] Figure 2 A driving task structure diagram for the field to which the present invention is applicable;
[0035] Figure 3 It is the UCMeta4ADS package diagram of RUCM described in the present invention;
[0036] Figure 4 The ecore diagram of the metamodel after the Actor extension described in the present invention;
[0037] Figure 5 This is the Use Case metamodel diagram of the present invention. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below with reference to the accompanying drawings.
[0039] The present invention proposes a method for modeling the requirements of an autonomous driving system based on RUCM, such as Figure 1 As shown, the use case description of the driving task includes three aspects, and the illustrated structure is the main structure of the autonomous driving scenario description that needs to be modeled in the application of the present invention. Based on the RUCM modeling method, by extending UCMeta and the use case description template, it is possible to complete the professional description of the autonomous driving use case. This method will be applied to software design and development in the field of autonomous driving, improve the efficiency of domain demand modeling, fill the gap in dedicated modeling tools in the field of autonomous driving, and help promote the standardized development of my country's automotive autonomous driving industry. Specifically, it includes the following steps:
[0040] Step 1: Analyze and extract the concepts and features of autonomous driving, divide the domain entity hierarchy, and establish a domain concept model based on the WISEDRIVE standard;
[0041] The present invention creates a conceptual model of the autonomous driving field based on the standards for describing autonomous driving use cases in the WISE DRIVE method.
[0042] The WISE DRIVE method is a Requirements Analysis Framework for Automated Driving Systems. WISE DRIVE includes three aspects: driving task description, driving environment ontology, and driving quality requirements.
[0043] The present invention refers to the driving task description and driving environment ontology of the WISE DRIVE standard, introduces the environment ontology related to autonomous driving into the demand modeling, and adopts the three-layer structure of WISE DRIVE in the driving task description part, including the strategy layer, the operation layer and the control layer. Figure 2 shown.
[0044] Step 2: Combine the extracted domain concepts with the RUCM metamodel to extend UCMeta, such as Figure 3 As shown. Convert the domain concept model to UML Profile, expand the concept of autonomous driving domain in RUCM's metamodel UCMeta; refine it in Actor, expand different types of Use Cases, and establish ADS Use Cases; expand the relationship types between use cases, add Exposure relationships to describe the causal relationship between driving behaviors; analyze the domain concept model, determine the autonomous driving use case description template, add description rules and keywords; expand the RUCM description template to describe the autonomous driving task requirements, and add the concept risk level and requirement level for the description of driving task requirements.
[0045] UCMeta is the metamodel of the RUCM method, which is defined using MOF (Meta Object Facility) and includes the metamodel (UCMeta), UML use cases (UML::UseCases), use case templates (UCSTemplate), sentence meanings (SentenceSemantics), sentence patterns (SentencePatterns), and sentence structures (SentenceStructure). The latter three mainly complete the specification of natural language. The expansion of UCMeta focuses on the use case template (UCSTemplate) package, and the metaclass UseCase can be expanded by adding a relationship to UseCaseSpecification. The following introduces the detailed expansion of the present invention from the perspectives of Actor and Use Case:
[0046] 1. Refinement of Actor:
[0047] In UML, actors are used to describe roles that interact with the system from outside the system. They can usually be people who use the system, or external devices or logical entities. The UML standard does not classify actors. In RUCM, for each use case, actors are divided into primary actors and secondary actors. The primary actor is the first actor that initializes the use case, and the rest are secondary actors.
[0048] In the present invention, Actors are expanded according to the characteristics of the autonomous driving environment and divided into five types: natural environment, road, entity, human, and animal. Figure 4 The specific contents are as follows:
[0049] 1) Natural Environment: describes the natural environment in the driving environment, including temperature, visibility and other weather attributes related to driving. According to the WISE DRIVE method, four types of data that are easy to obtain and highly relevant to driving behavior are selected as attributes of this category. They are temperature, visibility, cloud information and wind speed.
[0050] 2) Road, which indicates the road where the driving task takes place, contains attributes such as road structure and road condition. It is the main environmental factor of autonomous driving, and almost all driving tasks take place on the road. Therefore, it is necessary to describe the road structure in order to describe the driving behavior in detail. In UCMeta4ADS, the road class contains three attributes: road type, road condition, and road structure. Each attribute is an enumeration type. For example, four options are defined in the road type: local_road, collector_roads, arterial_roads, and freeways.
[0051] 3) Entity (Object), refers to entities other than humans that may be involved in the driving scene, generally refers to objects. It includes two subcategories: Vehicle and Other Obstacles; Vehicle is divided into three subcategories according to different types of vehicles, namely RailedVehicle, OffRoadVehicle and RoadVehicle, which represent rail vehicles, large off-road vehicles, and ordinary road vehicles respectively.
[0052] 4) Human, refers to humans who have an impact on driving tasks, and is divided into two subcategories according to different types, including vehicle users and road users. Road users include pedestrians, traffic controllers, and animal riders; vehicle users include drivers and passengers.
[0053] 5) Animal: refers to animals that may appear in the driving environment and affect driving behavior, including animal species, height, weight and other attributes; animal species has two options: domestic and wild.
[0054] 2. Extension and classification of use cases
[0055] Use Case describes a set of actions performed by the system. It is an important concept to describe the system behavior through interaction with actors. The RUCM method standardizes the specification of Use Case. In this invention, Use Case is extended to ADS Use Case, which is defined as a use case applicable to the autonomous driving system. According to the different contents of the use case, ADS Use Case is further subdivided into three categories. The following is a detailed introduction to the relevant extended content:
[0056] In the present invention, ADS Use Case inherits from Use Case, and its metamodel is as follows: Figure 5 As shown. According to the three-layer division of autonomous driving behaviors in the WISE DRIVE method, ADS Use Case is divided into three types: control use cases, operation use cases and strategy use cases. Among them, control use cases describe the basic movements of the vehicle, including starting, accelerating, decelerating, maintaining speed, maintaining angle, etc. Operation use cases describe actions consisting of a series of basic movements, such as driving behaviors such as overtaking, changing lanes, and passing intersections. Strategy use cases refer to the overall plan of the entire driving task, which is usually a task of longer duration. For example, driving through a block, driving through a section of highway, and so on. Due to the complexity of the description of autonomous driving tasks, describing a specific driving behavior requires the assistance of many scenarios and antecedent descriptions. In order to reduce the redundancy of use case descriptions, a three-layer structure is set up to use the mutual calls between use cases to improve the efficiency of scenario descriptions and enhance the hierarchy and readability of use case descriptions. The three types are used in combination and called each other to reduce the redundancy of the description and achieve clear hierarchy. The three use cases can be called in the following ways:
[0057] The keyword INCLUDE USE CASE can be used in a strategy use case to include several control use cases and operation use cases. The keyword INCLUDE USE CASE can be used in an operation use case to include several control use cases. A control use case cannot include an operation use case or a strategy use case. An operation use case cannot include a strategy use case.
[0058] Extension of the relationship type between use cases. In order to describe the causal relationship between autonomous driving use cases, the present invention adds a relationship type Exposure, which is used to describe the causal relationship between autonomous driving tasks. Exposure contains the attributes result use case (resultUC), inducement use case (exposureUC) and relative frequency (relativeFrequency), which respectively represent the result, inducement, and the probability of the causal relationship between the two.
[0059] At the same time, add the keyword EXPOSURED BY USE CASE to Exposure in the tool, followed by the causal use case of the use case, and the described use case itself is the result use case.
[0060] Extension of the Use Case Specification. To describe the autonomous driving use case in a professional and refined manner, the present invention adds domain-related attributes to the use case, such as Figure 5 shown.
[0061] The demand level (DemandLevel) indicates the amount of system computing required for a specific driving task. For example, when the weather is clear and the road is dry, driving at a low speed on a street with very little traffic, the system computing demand is low. In bad weather or when it is necessary to deal with some complex traffic conditions, the demand level is high. According to the difference in the demand level of each driving line, the system can choose the appropriate task when making decisions to avoid accidents. The present invention adds this attribute to each autonomous driving use case to identify the system resource requirements for each driving task.
[0062] RiskCategory means risk level. Each autonomous driving use case has a different risk level. For example, the risk level of driving straight in the lane is low, and the risk level of running a red light is high. This attribute is an enumeration type with four values: normal driving, near crash, crash, and fallback. The present invention adds this attribute to each autonomous driving use case to identify the different risk levels of each driving task.
[0063] Step 3: Add relevant items to the RUCM description template and build an autonomous driving system requirement template based on the RUCM description template to more accurately complete the autonomous driving scenario description.
[0064] The content of the RUCM description template includes: Use Case Name, Use Case Brief Description, Precondition for Use Case Execution, Primary Actor, Secondary Actor, Dependency between the Use Case and Other Use Cases, Generalization between the Use Case and Other Use Cases, Basic Flow of the Use Case, and Three Other Event Flows (Global Alternative Flow, Bounded Alternative Flow, Specific Alternative Flow). After each event flow is executed, there must be a PostCondition to indicate the result after the execution of the event flow. There is only one Basic Flow in each use case, and the number of Global Alternative Flow, Bounded Alternative Flow, and Specific Alternative Flow is determined according to the specific actual situation. The RUCM description template is also equipped with corresponding rules and keywords when in use. In the present invention, not only the RUCM requirement description template is extended with relevant automatic driving, but also corresponding new rules and keywords are added. The following is a detailed expansion from these two aspects:
[0065] The information of each column of the Use Case template in RUCM4ADS of the present invention is shown in Table 1. Since only part of it has been changed, only part of it is shown here, and the flow part is consistent with RUCM, so it is not described here.
[0066] Table 1 RUCM4ADS requirement description template (part)
[0067]
[0068] The basic part of the RUCM4ADS requirement description template is basically the same as the common RUCM use case template, with the addition of actors related to the driving environment. These include roads, natural environments, other obstacles, animals, vehicles, vehicle users, and road users. Roads, natural environments, other obstacles, and animals belong to EnvironmentActors, and vehicles, vehicle users, and road users belong to RoadUsers. Figure 5 As shown. When the user uses the REF keyword to reference an Actor, the Actor's index will be automatically added to the category directory of the use case description.
[0069] Add new restriction rules and keywords to the RUCM4ADS requirement template. The restriction rules and keywords for the autonomous driving requirement description in this implementation are as follows:
[0070] R1: The keyword INCLUDE USE CASE can be used in a strategy use case to include several control use cases and operation use cases. The keyword INCLUDE USE CASE can be used in an operation use case to include several control use cases. A control use case cannot include an operation use case or a strategy use case. An operation use case cannot include a strategy use case.
[0071] R2: Use the keyword EXPOSURED BY USE CASE, followed by the use case that causes this use case, to describe the causal relationship with other driving behaviors.
[0072] R3: Use the keyword REF to reference the Actor as the environment of the driving scene.
[0073] R4: Among the Actor types, the four types of roads, natural environment, other obstacles, and animals are classified as environmentActor; vehicles, vehicle users, and road users are classified as roadUser; all types are automatically classified in the adsspecification list.
Claims
1. A method for modeling requirements of an autonomous driving system based on RUCM, characterized in that: The following steps are involved: (1) Analyze and extract the concepts and features of the autonomous driving domain, divide the domain entity hierarchy, and establish a domain concept model based on the WISE DRIVE standard; (2) Combine the extracted domain concepts with the RUCM metamodel to expand UCMeta: Convert the domain concept model into UML Profile, and expand the autonomous driving domain concepts in the RUCM metamodel UCMeta; refine it in Actor, expand the Use Case into different types, and establish ADS Use Case; expand the relationship types between use cases, and add Exposure relationship to describe the causal relationship between driving behaviors; Analyze the domain concept model, determine the template for describing the autonomous driving use case, and add description rules and keyword usage; expand the RUCM description template to describe the autonomous driving task requirements, and add the concept risk level and requirement level for describing the driving task requirements; (3) Add relevant items to the RUCM description template and build an autonomous driving system requirement template based on the RUCM description template to enable it to more accurately complete the autonomous driving scenario description; The ADS Use Case establishment process described in step (2) is as follows: The Uase Case is expanded to ADS Use Case, which is defined as a use case applicable to the autonomous driving system. According to the different contents of the use case and the three-layer division of autonomous driving behavior in the WISE DRIVE method, the ADS Use Case is divided into three types: control use case, operation use case and strategy use case. The control use case is used to describe basic movements. The operation use case focuses on a series of vehicle behaviors. The strategy use case describes the overall goal of the driving task. The three types are used in combination and can be called upon each other.
2. The RUCM-based autonomous driving system requirement modeling method according to claim 1, characterized in that: The implementation process of the refinement in Actor described in step (2) is as follows: According to the characteristics of the autonomous driving environment, Actors are expanded and divided into five types: natural environment, road, entity, human, and animal. Among them: The natural environment refers to the natural environment part of the driving environment, including temperature, visibility and driving-related weather attributes; Road represents the road where the driving task takes place, including road structure and road condition attributes; Entities refer to entities other than humans involved in driving scenarios, including two subcategories: vehicles and other obstacles. Vehicles are divided into three subcategories according to different types of vehicles, namely rail vehicles, large off-road vehicles, and ordinary road vehicles. Humans are divided into two subcategories according to their types, namely vehicle users and road users. Road users include pedestrians, traffic controllers, and animal riders; vehicle users include two subcategories: drivers and passengers; Animals refer to animals that appear in the driving environment and affect driving behavior, with attributes such as animal species, height, and weight; there are two options for animal species: domesticated and wild.
3. The RUCM-based automatic driving system requirement modeling method according to claim 1, characterized in that: The relationship type between the extended use cases described in step (2) is extended in the Use Case Relationship. The implementation process is as follows: Added the relationship type Exposure, which is used to describe the causal relationship between autonomous driving tasks. Exposure contains the attributes result case, inducement case, and relative frequency, which represent the probability of the result, inducement, and the causal relationship between the two. Add the keyword EXPOSURED BY USE CASE to Exposure, followed by the causing use case, and the described use case itself as the resulting use case.
4. The RUCM-based autonomous driving system requirement modeling method according to claim 1, characterized in that: The description rule in step (2) is: The keyword INCLUDE USE CASE is used in the strategy use case to include several control use cases and operation use cases. The keyword INCLUDE USE CASE is used in the operation use case to include several control use cases. The control use case cannot include the operation use case or strategy use case. The operation use case cannot include the strategy use case. Use the keyword EXPOSURED BY USE CASE followed by the causal use case to describe the causal relationship with other driving behaviors; The keyword REF is used to refer to the Actor as the environment of the driving scene; Among the Actor types, four types, namely roads, natural environment, other obstacles and animals, are classified as environmentActor; vehicles, vehicle users and road users are classified as roadUser; all types are automatically classified in the adsspecification list.
