Construction method and reasoning device of knowledge graph of international regulations for preventing collisions at sea
By constructing a knowledge graph of international maritime collision avoidance rules, the problem of smart ships in processing real-time data and non-deterministic problems is solved, automatic reasoning and real-time decision-making on maritime collision avoidance rules are realized, and the reference basis and intelligent collision avoidance algorithm are improved. Real-time decision-making capabilities.
Patent Information
- Application Number
- CN202210131690.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-02-14
AI Technical Summary
Existing technology does not yet have a good solution for dealing with real-time data and non-deterministic issues in international maritime collision avoidance rules, resulting in a lack of effective rule processing methods in the application of autonomous collision avoidance of smart ships.
By constructing a knowledge graph of international maritime collision avoidance rules, extract rule knowledge, identify entities and relationships, form a rule ontology, and use graph database storage to realize automatic reasoning of rule knowledge. Combined with the entity recognition module, graph calculation module and interaction module, it provides Automatic judgment and collision avoidance behavior guidance.
It realizes the visual expression and comprehensive combing of international maritime collision avoidance rules, and provides an automatic reasoning device based on rule knowledge, which can identify water traffic objects, judge encounter scenarios and guide collision avoidance behaviors that comply with the rules, improving the performance of intelligent collision avoidance algorithms. Reference evidence and real-time decision-making capabilities.
Smart Images

Figure CN114547332B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of international maritime collision avoidance, and specifically relates to a method for constructing a knowledge graph of international maritime collision avoidance rules and an inference device. Background Art
[0002] With the development of the computer industry in recent years, the application demand for intelligent ships has also increased. In the process of research on autonomous collision avoidance of intelligent ships, the importance of rules has become increasingly prominent. At present, the expert system based on collision avoidance rules is a relatively mature application of current rules in ship intelligence. The advantage of the expert knowledge base is that the knowledge coverage is comprehensive, and the inference engine and knowledge base are independent of each other and can work together, but there is no good solution for processing real-time data and non-deterministic problems. Summary of the invention
[0003] In view of the problems existing in the prior art, the present invention provides a method and an inference device for constructing a knowledge graph of the International Regulations for Preventing Collisions at Sea to construct a knowledge graph of the International Regulations for Preventing Collisions at Sea.
[0004] To achieve the above object, the present invention provides a method for constructing a knowledge graph of international regulations for preventing collisions at sea, comprising:
[0005] 1) Extract knowledge of the International Regulations for Preventing Collisions at Sea;
[0006] 2) Identify entities and relationships in rules and construct rule ontology;
[0007] 3) The constructed ontology is stored through graph database, relational database, etc. to form a collision avoidance rule graph.
[0008] 4) Based on the International Regulations for Preventing Collisions at Sea diagram, automatic reasoning of rule knowledge is achieved.
[0009] The general method of knowledge representation is used to divide the collision avoidance rule knowledge into rule entities, entity attributes and collision avoidance constraints. The International Regulations for Preventing Collisions at Sea describe the combination of water traffic objects and their temporal behaviors, which can be formally expressed as: COLREGs = {O, B, T, S}; where O represents the object class, B represents the behavior class, S represents the scene class, and T represents the time class.
[0010] The object class is a collection of water transportation entities. The formal expression of the water transportation object class is: O = {O H , O E , O S}, where O H For personnel, E For environment, S The ship class; the personnel class is mainly used to represent the set of personnel related to the ship defined in the rules. H = {O H1 , OH2 , ... Hn}(n=1, 2, 3...); The environment class is mainly used to describe the surrounding environment of the ship when it is sailing. E = {O E1 , O E2 , ... En}(n=1, 2, 3...), the natural environment class and the traffic environment class are subclasses of the environment class. The former mainly describes the natural environment including wind, waves, fog, rain, snow, haze, etc., and the latter is mainly used to describe the characteristics of the water area when the ship is sailing; the ship class is used to describe the set of ships defined in the collision avoidance rules. S = {O S1 , O S2 , ... Sn According to different maneuvering capabilities, they can be divided into: sailing boats, fishing boats, general motor boats, and ships with special maneuvering capabilities. At the same time, the rules also restrict ships of different sizes, so according to different ship sizes, they can be divided into: ships of 50 meters and above, ships of 12 to 50 meters, and ships of less than 12 meters.
[0011] The behavior category is a general description of the behavior of personnel and ships, including personnel behavior, ship actions and ship traffic behavior. Personnel behavior is the regulation of the responsibilities of personnel in the rules. Ship actions are the specific maneuvering behaviors of ships, which are the concrete expression of ship behavior in collision avoidance scenarios, including specific behavioral characteristics such as left turn, right turn, acceleration, straight driving, parking, and reversing. Ship traffic behavior is an abstract expression of ship behavior, mainly including overtaking behavior, encounter behavior, right crossing behavior, left crossing behavior, etc.
[0012] The time class describes the duration of the behavior of a traffic object, which is expressed in the rule body as start time and end time.
[0013] Traffic scenarios are the core component of rule knowledge. They can be a description of the current ship encounter situation or a guide for the behavior of ships in encounter scenarios. According to the rules, scenarios can be divided into six categories: encounter scenarios of different types of ships, crossing encounter scenarios, encounter scenarios, encounter scenarios of sailboats, overtaking scenarios, and encounter scenarios with poor visibility.
[0014] The entities generated by the formal expression of rules are used as concepts or classes of the collision avoidance rule ontology, entity attributes are used as object attributes or data attributes of the rule ontology, and collision avoidance constraints are used as collision avoidance decision rules of the ontology. When converting entity attributes into ontology attributes, generally, the relationship between entities is converted into object attributes, such as the execution relationship between the personnel class and the behavior class, which is converted into the object attribute objectProperties:execBehavior of the ontology, and the attributes used to describe the detailed characteristics of the entity itself are converted into data attributes of the ontology, such as the length and name of the ship itself are converted into dataProperties:length and data Properties:name. The collision avoidance constraints are used as the preconditions for rule knowledge reasoning. The rule ontology is constructed using ontology construction software. The expression of the international maritime collision avoidance rules ontology is a four-tuple, and the format of the four-tuple is (knowledge class, attribute, collision avoidance decision rule, knowledge instance). The collision avoidance rule ontology is generated under the review of collision avoidance rule experts and ontology experts.
[0015] On the basis of the knowledge ontology of the International Regulations for Preventing Collisions at Sea, the entities are continuously expanded, and the relationships and attributes between entities are established; the knowledge base is expanded through knowledge reasoning and further mining of implicit knowledge based on the existing knowledge base; knowledge reasoning rules are defined to realize automatic judgment of collision avoidance scenarios.
[0016] The present invention also provides a knowledge graph reasoning device for the International Regulations for Preventing Collisions at Sea. The knowledge graph construction device for the International Regulations for Preventing Collisions at Sea includes a number of processors and memories. The memories are used to store a number of computer programs. The processors are used to execute the programs in the memories to add new instances, thereby ensuring the extensibility of the graph.
[0017] In addition, the rule graph reasoning device also includes an entity recognition module, which is used to obtain ship data from external sensors and perform entity and attribute matching with the collision avoidance rule graph based on the knowledge graph;
[0018] A graph calculation module, which performs graph calculation on the entities and attributes output by the entity recognition module to screen the applicable rules and regulations for ships;
[0019] The interactive module is used to call the graph calculation module, obtain the applicable rules for ships, match them with the rule scenario model, generate rule clauses that meet the current situation, and push the reasoning results to users in combination with the graph reasoning module.
[0020] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0021] The present invention can not only realize the visual expression of the knowledge of international maritime collision avoidance regulations, but also use the knowledge graph technology to comprehensively sort out the knowledge of collision avoidance regulations, providing a reference basis for the ship intelligent collision avoidance algorithm; and according to the collision avoidance rules knowledge graph, a set of rule-based automatic reasoning devices is constructed, which can realize the recognition of water traffic objects, the judgment of encounter scenarios and the guidance of collision avoidance behaviors in accordance with the rules. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flow chart of a method for constructing a knowledge graph of international regulations for preventing collisions at sea according to the present invention;
[0023] Figure 2 A schematic diagram of the structure of a device for constructing a knowledge graph of international regulations for preventing collisions at sea according to the present invention;
[0024] Figure 3 This is a schematic diagram of a device for constructing a knowledge graph of international regulations for preventing collisions at sea according to the present invention;
[0025] Figure 4 It is the entity recognition mode layer diagram of the present invention;
[0026] Figure 5 This is a schematic diagram of the knowledge graph of the International Regulations for Preventing Collisions at Sea of the present invention;
[0027] Figure 6 It is an overall schematic diagram of the knowledge graph reasoning device of the International Regulations for Preventing Collisions at Sea of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0029] Figure 1 The flowchart of the method for constructing the knowledge graph of the International Regulations for Preventing Collisions at Sea of the present invention is as follows:
[0030] 1) Extract knowledge of the International Regulations for Preventing Collisions at Sea;
[0031] 2) Identify entities and relationships in rules and construct rule ontology;
[0032] 3) The constructed ontology is stored through graph database, relational database, etc. to form a collision avoidance rule graph.
[0033] 4) Based on the International Regulations for Preventing Collisions at Sea diagram, automatic reasoning of rule knowledge is achieved.
[0034] The knowledge graph construction device of the International Maritime Collision Regulations of this embodiment is as follows: Figure 2 As shown, it includes the following unit structures:
[0035] The collision avoidance rule ontology construction unit 100 associates the attributes of the entities and scenes described in the rule by means of a quadruple to form a collision avoidance rule ontology;
[0036] The data collection unit 101 mainly stores and manages the collected data and provides data attributes for the rule ontology and instantiates the rule ontology;
[0037] Text data unit 102, the text data mainly refers to new regulations or recommendations issued by IMO or local authorities;
[0038] The navigation data unit 103 includes the navigation data including the heading, speed, signal lights, signal type, vehicle, rudder and other data information of the ship during navigation;
[0039] The graph construction unit 104 generates a collision avoidance rule graph by combining the graph database with the rule ontology.
[0040] Text data is obtained from maritime accident investigation reports, and entities in the text data are identified, such as ships, traffic scenes, collision time, etc. Secondly, the ship's motion status is obtained by combining navigation data. These two types of data are extracted and the ontology of the International Maritime Collision Regulations is constructed in a four-tuple format (knowledge class, attribute, collision avoidance decision rule, knowledge instance). Finally, the rule ontology is imported into the database neo4j to form a rule knowledge graph.
[0041] like Figure 3 As shown, a schematic diagram of the knowledge graph reasoning device of the International Regulations for Preventing Collisions at Sea includes:
[0042] The collision avoidance rule knowledge graph S01 is the basis of the graph computing and entity recognition module. At the same time, the structure of the graph computing and entity recognition module can also dynamically feedback to the knowledge graph to supplement and expand the graph;
[0043] Entity recognition module S02, used for the knowledge graph, obtains data source from sensor unit and performs entity and attribute recognition;
[0044] A graph calculation module S03 is used to perform graph calculation based on the knowledge graph, entities and attributes output by the entity recognition module to identify the scene where the current ship is located;
[0045] The interactive module S04 is used to call the output result of the graph calculation module and feed it back to the user.
[0046] The specific implementation process is as follows: the current heading, speed, position and other data of the ship are obtained from the ship-borne navigation equipment, and the entity recognition module S02 performs entity recognition, and the recognized entity is used to calculate the current encounter scene of the ship through the graph calculation module S03, and the inference of the current encounter scene is pushed to the user through the interaction module S04, and the collision avoidance strategy that complies with the collision avoidance rules under the scene is recommended to the user.
[0047] Knowledge graph entity recognition mode such as Figure 4 As shown, Figure 4 The entity Class (ship) is defined and the entity attribute String (used or capable of being used as a water transportation vehicle) is defined. Combined with Instance (motor boat), the entity attribute String (any ship propelled by a machine), Location (latitude, longitude), data attributes (heading, relative position, relative distance, speed) are defined. In addition, the rules for using motor boats are defined. The above recognition pattern is used to identify water transportation objects, forming the basis for graph knowledge reasoning.
[0048] Based on the identified entities, the graph computing module S03 has built-in 11 SWRL reasoning rules to realize the recognition of rule graph encounter scenarios and the recommendation of collision avoidance strategies. Some SWRL reasoning rules are shown in Table 1:
[0049] Table 1 Part of SWRL reasoning table
[0050]
[0051]
[0052] Rule 1 means that ship a receives a warning about the danger of collision with ship b, warns both ships a and b separately, and asserts that both ships are in danger of collision.
[0053] Rule 2 defines a collision scenario as a situation where a motor vessel with first-level maneuvering capability (first-level maneuvering capability refers to motor vessels other than fishing vessels, out-of-control vessels, sailboats, and maneuvering vessels) has a heading difference within the range of 174°≤ΔC≤186° and both ships have received a collision danger warning.
[0054] Rule 3 defines and provides guidance on the behavior of ships in encounter situations, namely, each ship should turn right.
[0055] Rule 4 defines the behavior of a power-driven ship with first-level maneuverability as a right crossing behavior when the difference in side angles of the two ships is within the range of 6°≤ΔQ≤112.5° and there is a risk of collision between the two ships.
[0056] Rule 5 defines the left-crossing behavior.
[0057] Rules 6 and 7 define the vessels that give way and sail straight.
[0058] Rule 8 states that in a crossing situation, the give-way vessel should give way by turning right.
[0059] Rule 9 defines overtaking as the case where the difference in side angles between the two ships is 112.5°≤ΔQ≤247.5° and the speed relationship between the two ships is y1>x1cosQ.
[0060] Rule 10 defines a vessel that is in a give-way position when its bearing is 112.5°≤ΔB≤247.5° in an overtaking situation.
[0061] Rule 11 defines the behavior that the give-way vessel should take in an overtaking scenario by turning left.
[0062] Based on the above-mentioned custom inference rules, the reasoning function of the knowledge graph of the International Regulations for Preventing Collisions at Sea can be realized, showing the intelligent characteristics of the rule graph.
[0063] The graph computing module calculates the attribute paths of the identified entities, obtains the nodes associated with the entities, and performs reasoning based on customized rules, and recommends the obtained reasoning results to the users.
[0064] After the knowledge graph is built, it is stored in the graph database in the form of RDF. Here are some examples of the results: Figure 5 As shown in the figure, the hierarchical relationship between entities is determined to build the IsA network, then entity attributes are added and attribute associations are performed, and finally a collision avoidance rule knowledge graph is formed.
[0065] The present invention also provides a knowledge graph reasoning device for international maritime collision avoidance regulations, such as Figure 6 As shown, the knowledge graph construction device of the International Regulations for Preventing Collisions at Sea includes several processors and memories, the memories are used to store several computer programs, and the processors are used to execute the programs in the memories to add new instances to ensure the extensibility of the graph;
[0066] In addition, the rule graph reasoning device also includes an entity recognition module, which is used to obtain ship data from external sensors and perform entity and attribute matching with the collision avoidance rule graph based on the knowledge graph;
[0067] A graph calculation module, which performs graph calculation on the entities and attributes output by the entity recognition module to screen the applicable rules and regulations for ships;
[0068] The interactive module is used to call the graph calculation module, obtain the applicable rules for ships, match them with the rule scenario model, generate rule clauses that meet the current situation, and push the reasoning results to users in combination with the graph reasoning module.
[0069] It will be easily understood by those skilled in the art that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing a knowledge graph of international regulations for preventing collisions at sea, characterized in that: The following steps are involved: Extract knowledge of the International Regulations for Preventing Collisions at Sea; Identify the entities and relationships in the knowledge of the International Regulations for Preventing Collisions at Sea and construct the ontology of the regulations; The constructed rule ontology is stored to form a collision avoidance rule knowledge graph; According to the collision avoidance rule knowledge graph, automatic reasoning of rule knowledge is realized; Among them, the collision avoidance rule knowledge is divided into rule entities, entity attributes and collision avoidance constraints; The collision avoidance rules are formally expressed as: COLREGs = {O, B, T, S}; where O represents the object class, B represents the behavior class, S represents the scene class, and T represents the time class; The object class is a collection of water transportation entities; the formal expression of the water transportation object class is: O = {O H ,O E ,O S }, where O H Indicates personnel class, O E Indicates environment type, O S Represents the ship class; the personnel class is used to represent the set of personnel related to the ship defined in the rules. H = {O H1 , O H2 , …O Hn }(n=1,2,3…); The environment class is used to describe the surrounding environment of the ship when it is sailing. E = {O E1 , O E2 , …O En }(n=1,2,3…), the natural environment class and the traffic environment class are subclasses of the environment class. The former describes the natural environment, and the latter describes the characteristics of the waters when the ship is sailing; the ship class is used to describe the set of ships defined in the collision avoidance rules. S = {O S1 , O S2 , …O Sn }(n=1,2,3…), according to different maneuvering capabilities, they can be divided into: sailing boats, fishing boats, general motor boats, and special maneuvering boats; The behavior category is a general description of the behavior of personnel and ships, including personnel behavior, ship actions and ship traffic behavior; personnel behavior is the specification of the responsibilities of personnel in the rules; ship actions are the specific maneuvering behaviors of ships, which are the concrete expressions of ship behaviors in collision avoidance scenarios, including left turns, right turns, acceleration, straight driving, parking and reverse driving; ship traffic behavior is an abstract expression of ship behavior, including overtaking behavior, encounter behavior, right crossing behavior and left crossing behavior; The time class is a description of the duration of the behavior of the traffic object, which is expressed in the rule body as start time and end time; Traffic scenarios are divided into six categories: encounter scenarios of different types of ships, crossing encounter scenarios, head-on encounter scenarios, sailboat encounter scenarios, overtaking scenarios, and encounter scenarios in poor visibility; According to the knowledge classification of the International Regulations for Preventing Collisions at Sea, the concepts, entities, attributes and relationships of the collision regulations are extracted to construct the regulation ontology; The ontology of the International Regulations for Preventing Collisions at Sea is expressed as a quaternary group, and the format of the quaternary group is (knowledge class, attribute, collision avoidance decision rule, knowledge instance).
2. The method for constructing a knowledge graph of the International Regulations for Preventing Collisions at Sea according to claim 1, characterized in that: Obtain ship data and match entities and attributes with the collision avoidance rules knowledge graph, and infer the collision avoidance results based on the inference rules.
3. A knowledge graph reasoning device for the international regulations for preventing collisions at sea for implementing the method for constructing the knowledge graph of the international regulations for preventing collisions at sea as described in claim 1 or 2, characterized in that: include: The entity recognition module is used to match the acquired ship data with the collision avoidance rules knowledge graph for entities and attributes based on the knowledge graph; A graph calculation module, which is used to perform graph calculation using the entities and attributes output by the entity recognition module to screen applicable rules for ships; The interactive module is used to call the graph calculation module, obtain the applicable rules for ships, match them with the rule scenario model, infer the results and push them to the user.
