Sea area illegal event source tracking method and device based on knowledge graph and electronic equipment
By constructing a knowledge graph and a graph neural network model, the problem of low update efficiency of fixed nodes in tracing the source of maritime illegal incidents is solved, and efficient tracing of the source of illegal incidents in the maritime area is realized, while the rich information of the data is retained.
Patent Information
- Application Number
- CN202410860769.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing methods for tracing the source of illegal maritime incidents are carried out on fixed nodes, which results in a large amount of graph calculation and low source tracing efficiency when dynamically updating new events.
Build a target data set based on the knowledge graph, determine the knowledge triples of illegal events, establish a feature matrix data set, and train the target model through the graph neural network to achieve aggregation learning of nodes in the knowledge graph, avoid full graph learning, and improve computing efficiency.
It improves the computational efficiency of tracing the source of illegal incidents in maritime areas, retains rich information of graph data, and enables learning of new nodes without the need for full graph learning.
Smart Images

Figure CN118733707A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of water transportation technology, and in particular to a method, device and electronic equipment for tracing the source of illegal incidents in maritime areas based on a knowledge graph. Background Art
[0002] The general knowledge graph has many entities, but its accuracy is low, and it cannot achieve accurate application in maritime illegal incidents. Through the information fusion results of multi-source heterogeneous data, entity recognition, knowledge extraction, and knowledge fusion quality assessment are carried out to build a knowledge graph model of illegal incident ontology relationship recognition-knowledge extraction fusion-knowledge process storage, which makes up for the shortcomings of general knowledge graphs in entity attributes and data patterns, and can take into account the application scenarios of different illegal incidents and the needs of users.
[0003] Graph convolutional neural network is a kind of neural network used to efficiently process graph structure data. Traditional convolutional neural network models can only be used to process data with Euclidean structure type. Since the nodes in the graph structure are not translation invariant, they cannot be convolved by sharing the same size of convolution kernel. Compared with other graph neural networks, the GraphSAGE (Graph Sample and Aggregate) algorithm is characterized by its powerful inductive learning ability, which enables it to process unseen nodes and quickly generate embeddings for new nodes; at the same time, through neighborhood sampling and diversified aggregation functions, GraphSAGE achieves efficient processing of large-scale graphs and captures rich features, thus showing higher flexibility and scalability in practical applications.
[0004] The existing clue mining and accident tracing methods have the following problems: 1. Some researchers have used event graphs to trace the source of events, but they often just structure the events in the form of graphs without deep learning; 2. Current accident tracing is basically carried out on graphs with fixed nodes. When a new event occurs, the current graph needs to be re-learned, which increases the complexity of the calculation. Summary of the invention
[0005] In view of this, it is necessary to provide a method, device and electronic device for tracing the source of illegal incidents in maritime areas based on knowledge graphs, so as to solve the technical problem that the method for tracing the source of illegal incidents in maritime areas in the existing technology is carried out on fixed nodes, and the dynamic update of new events will result in large graph calculations, thus leading to low tracing efficiency.
[0006] In order to solve the above problems, the present invention provides a method for tracing the source of illegal incidents in maritime areas based on knowledge graph, comprising: Build a target knowledge graph based on the maritime illegal incident dataset and determine the illegal incident knowledge triples; According to the knowledge triples of illegal events, a feature matrix dataset of illegal data in actual sea areas is established; Taking the feature matrix data set as input, training the initial graph neural network to obtain a fully trained target graph neural network; Based on the target graph neural network and real-time maritime data, illegal incidents in maritime areas are traced to their source.
[0007] In a possible implementation, the target knowledge graph is constructed based on the maritime illegal case data set to determine the illegal event knowledge triples, including: Obtain historical data on illegal incidents in the sea area, where the historical data at least includes information on the vessel involved, the location where the incident occurred, the incident, the persons involved and the background of the incident; Analyze historical data and determine the ontology relationship model; The entity recognition module and relationship extraction module of the maritime illegal knowledge extraction model are trained based on the ontology relationship model; A well-trained maritime illegality knowledge extraction model is used to extract knowledge from historical data and determine the knowledge triples of illegal events.
[0008] In a possible implementation, the feature matrix data set of actual sea area illegal data is established based on the illegal event knowledge triples, including: Classify the historical data of maritime illegal incidents to obtain general data sets and special data sets; Based on the knowledge triples of the target knowledge graph, a general feature set corresponding to a general data set is derived, and a special feature set corresponding to a special data set is derived; Use the preset synonym mining algorithm to perform synonym mining and replacement on the general feature set and the special data set to obtain text features; The text features are encoded to obtain the feature matrix dataset of actual maritime violation data.
[0009] In a possible implementation, the encoding of text features to obtain a feature matrix data set of actual maritime illegal data includes: The preset one-hot encoding method is used to encode text features and obtain the feature matrix dataset of actual maritime illegal data.
[0010] In a possible implementation, the initial graph neural network model is trained using the feature matrix data set as input to obtain a fully trained target graph neural network model, including: Based on the nodes of the target knowledge graph, adjacent nodes are sampled to obtain local domain information; Calculate the element-by-element mean of the features of all sampled adjacent nodes to obtain the aggregated features; The adjacency relationship of each node is determined according to the aggregated features, and the target graph neural network model is obtained.
[0011] In a possible implementation, the sampling of adjacent nodes based on the nodes of the target knowledge graph to obtain local domain information includes: The initial graph neural network model samples the node adjacency list derived from the knowledge graph to obtain the local domain information of the starting node.
[0012] In a possible implementation, the element-by-element mean calculation of the features of all sampled adjacent nodes can be expressed by the following formula:
[0013] in Representation Node In the The hidden states (or features) of the layer, Representation Node The set of neighbor nodes of represents the operation of finding the mean, Represents an aggregate feature.
[0014] In a second aspect, the present invention further provides a device for tracing the source of illegal incidents in maritime areas based on a knowledge graph, comprising: The knowledge triple determination module is used to construct a target knowledge graph based on the maritime illegal incident data set and determine the illegal incident knowledge triples; The feature matrix building module is used to build a feature matrix data set of actual sea area illegal data based on the illegal event knowledge triples; A model training module, used to train the initial graph neural network model using the feature matrix data set as input to obtain a fully trained target graph neural network model; The source tracing module is used to trace the source of illegal incidents in the sea area based on the target graph neural network model and real-time sea area data.
[0015] In a third aspect, the present invention further provides an electronic device, comprising: a processor and a memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, it implements the steps in the method for tracing the source of illegal incidents in maritime areas based on the knowledge graph as described above.
[0016] In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for tracing the source of illegal incidents in maritime areas based on knowledge graph as described above.
[0017] The beneficial effects of the present invention are as follows: first, a knowledge graph is constructed, and corresponding knowledge triples are extracted from the maritime illegal incident data set based on the knowledge graph, and then characteristic matrix data of actual maritime illegal data is established based on the illegal incident knowledge triples, and the initial graph neural network is trained through the characteristic matrix data of the maritime illegal data, so that the nodes in the knowledge graph can be aggregated and learned through the graph neural network, and learning can be performed on newly added nodes in the knowledge graph without learning the entire graph, which not only improves the computing efficiency but also retains the rich information of the graph data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] FIG1 is a method flow chart of an embodiment of a method for tracing the source of illegal incidents in maritime areas based on a knowledge graph provided by the present invention; Figure 2 for Figure 1 A method flow chart of step S101 in an embodiment; Figure 3 A schematic diagram of the structure of an embodiment of a relationship extraction model in the method for tracing the source of illegal incidents in maritime areas based on a knowledge graph provided by the present invention; Figure 4 for Figure 1 A method flow chart of an embodiment of step S102; Figure 5 A schematic diagram of an embodiment of some features of illegal events in the method for tracing the source of illegal events in sea areas based on knowledge graph provided by the present invention; Figure 6 A schematic diagram of the structure of an embodiment of the GraphSAGE model sampling process in the method for tracing the source of illegal incidents in maritime areas based on knowledge graph provided by the present invention; Figure 7 It is a schematic diagram of an embodiment of a device for tracing the source of illegal incidents in sea areas based on a knowledge graph provided by the present invention; Figure 8 It is a schematic diagram of the operating environment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0019] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0020] A knowledge graph is a graphical structure used to represent a large amount of knowledge and information. It is usually composed of entities (such as people, places, things), concepts (such as categories, attributes), and the relationships between them. Its purpose is to help machines understand and process information and support intelligent reasoning and decision-making. The establishment of a knowledge graph involves technologies such as data extraction, semantic modeling, and knowledge representation. It is widely used in artificial intelligence fields such as semantic search, intelligent question-answering systems, and recommendation systems. Through knowledge graphs, data can be better organized, connected, and utilized to promote the discovery and application of information.
[0021] GraphSAGE (Graph Sample and Aggregate) is a node representation learning algorithm for graph neural networks, which aims to learn low-dimensional vector representations of nodes in a graph. The GraphSAGE algorithm consists of two core steps: sampling neighbor nodes and aggregating neighbor node features.
[0022] Among them, sampling neighbor nodes: GraphSAGE obtains the neighbor nodes of each node by sampling the nodes in the graph. The sampled neighbor nodes can be directly connected first-order neighbors or more distant higher-order neighbors. The purpose of this step is to obtain the local neighbor information of the node.
[0023] Aggregate neighbor node features: Once the neighbor nodes of a node are obtained, the GraphSAGE algorithm updates the representation of the target node by aggregating the features of the neighbor nodes. The aggregation process can be done in different ways, such as average pooling, max pooling, LSTM, etc., to integrate the features of the neighbor nodes and generate a new representation of the target node.
[0024] The advantage of the GraphSAGE algorithm is that it can effectively process large graph data, and at the same time can learn the representation of each node and capture the structural and semantic information of the node in the graph. This enables GraphSAGE to achieve good performance in tasks such as node classification and link prediction, and is widely used in social network analysis, recommendation systems and other fields.
[0025] Tracing the source of illegal incidents in the sea area refers to the process of tracing and tracking illegal acts that occur in the marine environment. By tracing the source, we can find out the root cause, cause and relevant responsible parties of the illegal acts, which helps to reveal the truth behind the incident, so as to take corresponding measures to stop, punish or correct it.
[0026] When tracing the source of illegal incidents in the sea area, it is necessary to first collect and analyze various information and data related to the illegal incidents, including key information such as the nature, location, and time of possible illegal acts, and then further analyze the collected information to screen out effective evidence that can prove the illegal acts, which may include document records, surveillance videos, on-site inspections, etc. Finally, conduct field investigations and evidence collection to determine the specific details and scope of the illegal acts to ensure the integrity and reliability of the evidence.
[0027] A specific embodiment of the present invention discloses a method for tracing the source of illegal incidents in maritime areas based on knowledge graphs. Figure 1 ,include: S101. Build a target knowledge graph based on the maritime illegal incident data set and determine the illegal incident knowledge triples; S102, establishing a feature matrix data set of actual sea area illegal data based on the illegal event knowledge triples; S103, using the feature matrix data set as input, training the initial graph neural network to obtain a fully trained target graph neural network; S104. Trace the source of illegal incidents in the sea area based on the target graph neural network and real-time sea area data.
[0028] In this embodiment, a knowledge graph is first constructed, and corresponding knowledge triples are extracted from the maritime illegal incident data set based on the knowledge graph. Subsequently, feature matrix data of actual maritime illegal data is established based on the illegal incident knowledge triples, and the initial graph neural network is trained through the feature matrix data of the maritime illegal data, so that the nodes in the knowledge graph can be aggregated and learned through the graph neural network. New nodes in the knowledge graph can be learned without learning the entire graph, which not only improves the computing efficiency but also retains the rich information of the graph data.
[0029] It should be noted that the marine illegal incident dataset refers to a dataset that records and analyzes illegal activities that occur in the marine environment. This type of dataset may include various types of information, such as the geographic location, time, type of violation (such as illegal fishing, pollution, etc.), vessels involved, or personal information. These data are of great significance for marine protection, law enforcement, and policy making.
[0030] Illegal incidents are violations of laws, regulations or international agreements in the marine environment. These incidents can involve a variety of violations, such as illegal fishing, unauthorized exploitation activities, marine pollution, illegal dumping of waste, unauthorized navigation or docking, etc. These violations may have negative impacts on marine ecosystems, resource conservation and human health.
[0031] Illegal event knowledge triples refer to the three basic elements that describe an illegal event based on the knowledge graph: subject, predicate, and object. These triples can be used to construct a semantic representation of an illegal event to facilitate the understanding and processing of computer programs and databases.
[0032] For example, if we want to describe an illegal incident about illegal fishing, a possible knowledge triple may be as follows: Subject: Fishing Boat A Predicate: Illegal fishing was carried out Object: Marine Protected Area B This triple describes that fishing vessel A engaged in illegal fishing in marine protected area B.
[0033] When constructing a semantic knowledge base of illegal events, a series of triples can be used to describe a complex event, including time, location, type of violation, subjects and objects involved, etc.
[0034] In some embodiments, the target knowledge graph is constructed based on the maritime violation case data set to determine the violation event knowledge triples. Figure 2 ,include: S201. Obtain historical data of illegal incidents in the sea area, wherein the historical data at least includes information of the vessel involved, the location where the incident occurred, the incident, the persons involved and the background of the incident; S202, analyzing historical data to determine an ontology relationship model; S203, training the entity recognition module and the relationship extraction module of the maritime illegal knowledge extraction model according to the ontology relationship model; S204. Use a well-trained maritime illegality knowledge extraction model to dynamically extract knowledge from historical data to determine illegal event knowledge triplets.
[0035] In step S201, a crawler script is written through a python program to collect and store relevant maritime violation cases on the Internet, deconstruct the crawled maritime violation case text data, analyze the characteristics of the maritime violation incidents such as the ships involved, the location of the incident, the time of the incident, the people involved, the background of the violation, the consequences of the violation, etc., determine the ontology relationship model, and clean and pre-process the crawled maritime violation case text data. First, the illegal data in the txt format file is cleaned, the document directory is deleted, the document header, footer and page number are deleted, and the document meaningless spaces and line breaks are removed, etc. The data preprocessing process forms the original data set of maritime violation cases.
[0036] In step S202, label studio is used to perform text annotation, and the entities and relationships of part of the original data set of maritime violation cases are plotted using the "BIO" format.
[0037] In the BIO method, a piece of text is usually marked with BX, IX, and O. X represents an entity. When the entity is time, X represents the time when the illegal event occurred.
[0038] B means begin, which is a name entity of a Chinese character in Chinese; I means Inside, which indicates the middle and end part of the name entity; O means Other, which indicates a part of an unspecified entity. As shown in Table 1 and Table 2: Table 1: “BIO” labeling strategy (partial)
[0039] Table 2: Examples of annotations for the “BIO” annotation strategy
[0040] In step S103, the training set of the maritime illegal knowledge extraction model in the "BIO" format formed after the text annotation work with the help of label studio is used to train the maritime illegal knowledge extraction model, and the entity recognition module and the concern extraction module of the maritime illegal knowledge extraction model are trained. After the extraction accuracy of the entity recognition module and the concern extraction module reaches 85%, the maritime illegal knowledge extraction model performs knowledge dynamic extraction on the remaining maritime illegal knowledge data set to form illegal knowledge triples.
[0041] In a specific embodiment, BERT and BI-LSTM models are used to extract maritime illegal knowledge. Figure 3 It can be seen that the model consists of four parts, namely the input layer, the BERT-based word embedding layer, the feature extraction layer, and the classification layer.
[0042] (1) The input layer is mainly used for data preprocessing, converting the original data into word vector representation and inputting it into the model.
[0043] (2) Based on the word embedding layer of BERT, there are three types of vectors in the input of BERT, namely, Token Embeddings, which is the word vector obtained based on context information (MLM task), Segment Embedding, which is used to process sentence vectors to judge the semantic similarity of sentence pairs (NSP task), and Position Embeddings, which is the position vector that records the sequence order. BERT adds them together to obtain the vector representation of each word in the sentence.
[0044] (3) Feature extraction layer: The BiLSTM model is also used to extract features and perform semantic encoding processing. The forward LSTM unit can output a positive feature vector; the backward LSTM unit outputs a negative feature vector, and finally they are combined to obtain the feature vector output by the BiLSTM.
[0045] (4) Classifier layer: Use the Softmax classifier to classify the feature vector to obtain the model's prediction results. After further labeling the data results extracted from the relationship, the model's training set is obtained.
[0046] Furthermore, after extracting the knowledge triples, in order to realize efficient query of knowledge in the graph structure, in this embodiment, Neo4j is used for storage.
[0047] In some embodiments, the feature matrix data set of actual sea area illegal data is established based on the illegal event knowledge triples, see Figure 4 ,include: S401, classifying historical data of maritime illegal incidents to obtain general data sets and special data sets; S402, deriving a general feature set corresponding to a general data set based on the knowledge triples of the target knowledge graph, and deriving a special feature set corresponding to a special data set; S403, using a preset synonym mining algorithm to perform synonym mining and replacement on the general feature set and the special data set respectively to obtain text features; S404. Encode the text features to obtain a feature matrix data set of actual maritime violation data.
[0048] In step S401, considering the matrix sparsity and excessive matrix dimension problems that may occur in the feature matrix in the later stage, the accident features are divided into general accident features and specific features of different types of accidents based on the data types that may be received in actual situations. Figure 5 , which is a schematic diagram of the construction of some general data sets and special data sets. Among them, the general characteristics of accidents include common indicators such as environmental visibility, traffic flow density, whether the ship's light type is normal, and whether the ship's structure is normal. Different characteristic indicators are selected according to the characteristics of different types of accidents. For example, for smuggling accidents, whether the AIS is suddenly turned off and whether there is illegal berthing are added. For collision incidents, whether the ship has a large turn and whether the ship's speed has a sudden change are added. For illegal fishing incidents, whether the berthing area is compliant and whether the fishing tools are compliant are added as special features. Finally, a characteristic indicator system with general characteristics plus special characteristics of different accidents is formed.
[0049] In step S403, considering that in the actual accident investigation report, there are certain differences in the descriptions of different features, for example, for the indicator of visibility, different statements such as good visibility, visibility less than 5 meters, and poor visibility are commonly seen in accident investigation reports. Therefore, through the synonym knowledge base method in the synonym mining algorithm, the feature data exported from the knowledge graph is replaced with synonyms to complete the preliminary processing of the text information, and then the feature extraction of the text information is completed by constructing a regular expression. Through the above method, an event feature chain of accident node id + text feature can be obtained, where "0" is the event id, the header is the date time, accident consequences, event level and other features, and the corresponding specific feature description is the text information in the second column.
[0050] Furthermore, since most of the features in the accident investigation report are text descriptions, they are difficult to use directly for training graph neural networks. Therefore, after obtaining the features after synonym replacement, the one-hot encoding method is used to digitize various features and store them in an array in the form of 0 and 1 to form a feature matrix.
[0051] Furthermore, in step S103, the initial graph neural network model is trained with the feature matrix data set as input to obtain a fully trained target graph neural network model, including: Based on the nodes of the target knowledge graph, adjacent nodes are sampled to obtain local domain information; Calculate the element-by-element mean of the features of all sampled adjacent nodes to obtain the aggregated features; The adjacency relationship of each node is determined according to the aggregated features, and the target graph neural network model is obtained.
[0052] It should be noted that in the node sampling part, the model will sample according to the node adjacency list exported from the knowledge graph to obtain the local neighborhood information of the starting node.
[0053] In layer sampling, the nodes sampled in the previous layer are used as the basis to continue sampling their neighboring nodes. As the number of layers increases, the receptive field of each starting node (that is, the part of the graph that can be affected) will gradually expand. However, the number of nodes sampled in each layer is usually gradually reduced to control the computational complexity. The whole sampling process is as follows: Figure 6 shown.
[0054] Furthermore, in the present invention, the aggregation method adopted is mean aggregation. The features of all sampled neighbor nodes are element-by-element mean calculation. That is, for each feature dimension, the average value of all neighbor nodes on that dimension is calculated. This new feature vector is the aggregated feature of the neighbor node. This process can be expressed by a mathematical formula:
[0055] in Representation Node In the The hidden states (or features) of the layer, Representation Node The set of neighbor nodes of Indicates the operation of finding the average. It should be noted that different aggregation methods can be selected according to different data characteristics.
[0056] Finally, when evaluating the newly embedded node features, the F1 value is used for judgment. Formula 1.2 represents precision, 1.3 represents recall, and 1.4 represents the F1 value after comprehensively considering precision and recall.
[0057] (1.2) (1.3) (1.4) After the features of the newly embedded node are aggregated and optimized, the features and adjacency relationships of the new node are input into the classifier to quickly obtain the type of event.
[0058] Based on the above-mentioned method for tracing the source of illegal incidents in sea areas based on knowledge graph, the embodiment of the present application also provides a device for tracing the source of illegal incidents in sea areas based on knowledge graph, please refer to Figure 7 ,include: The knowledge triple determination module 710 is used to construct a target knowledge graph based on the maritime illegal incident data set and determine the illegal incident knowledge triples; The feature matrix building module 720 is used to build a feature matrix data set of actual sea area illegal data based on the illegal event knowledge triples; A model training module 730 is used to train the initial graph neural network model using the feature matrix data set as input to obtain a fully trained target graph neural network model; The source tracing module 740 is used to trace the source of illegal incidents in the sea area based on the target graph neural network model and real-time sea area data.
[0059] like Figure 8 As shown, based on the above-mentioned method for tracing the source of illegal incidents in maritime areas based on knowledge graph, the present invention also provides an electronic device, which can be a computing electronic device such as a mobile terminal, a desktop computer, a notebook, a PDA, and a server. The electronic device includes a processor 810, a memory 820, and a display 830. Figure 8 Only some components of the electronic device are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0060] In some embodiments, the memory 820 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory 820 may also be an external storage electronic device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 820 may also include both an internal storage unit of the electronic device and an external storage electronic device. The memory 820 is used to store application software and various types of data installed in the electronic device, such as program codes for installing the electronic device. The memory 820 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a knowledge graph-based maritime illegal event tracing program 840 is stored on the memory 820, and the knowledge graph-based maritime illegal event tracing program 840 can be executed by the processor 810, thereby realizing the knowledge graph-based maritime illegal event tracing method of each embodiment of the present application.
[0061] In some embodiments, the processor 810 can be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 820, such as executing a method for tracing the source of illegal incidents in maritime areas based on a knowledge graph.
[0062] In some embodiments, the display 830 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 830 is used to display information on the electronic device for tracing the source of illegal incidents in sea areas based on the knowledge graph and to display a visual user interface. The components 810-830 of the electronic device communicate with each other through a system bus.
[0063] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0064] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for tracing the source of illegal incidents in maritime areas based on knowledge graph, characterized in that: include: Build a target knowledge graph based on the maritime illegal incident dataset and determine the illegal incident knowledge triples; According to the knowledge triples of illegal events, a feature matrix dataset of illegal data in actual sea areas is established; Taking the feature matrix data set as input, training the initial graph neural network model to obtain a fully trained target graph neural network model; Based on the target graph neural network model and real-time maritime data, illegal incidents in the sea area are traced to their source.
2. The method for tracing the source of illegal incidents in maritime areas based on knowledge graph according to claim 1 is characterized in that: The target knowledge graph is constructed based on the maritime violation case data set to determine the violation event knowledge triples, including: Obtain historical data on illegal incidents in the sea area, where the historical data at least includes information on the vessel involved, the location where the incident occurred, the incident, the persons involved and the background of the incident; Analyze historical data and determine the ontology relationship model; The entity recognition module and relationship extraction module of the maritime illegal knowledge extraction model are trained based on the ontology relationship model; A well-trained maritime illegality knowledge extraction model is used to extract knowledge from historical data and determine the knowledge triples of illegal events.
3. The method for tracing the source of illegal incidents in maritime areas based on knowledge graph according to claim 1 is characterized in that: The feature matrix data set of actual sea area illegal data is established based on the illegal event knowledge triples, including: Classify the historical data of maritime illegal incidents to obtain general data sets and special data sets; Based on the knowledge triples of the target knowledge graph, a general feature set corresponding to a general data set is derived, and a special feature set corresponding to a special data set is derived; Use the preset synonym mining algorithm to perform synonym mining and replacement on the general feature set and the special data set to obtain text features; The text features are encoded to obtain the feature matrix dataset of actual maritime violation data.
4. The method for tracing the source of illegal incidents in maritime areas based on knowledge graph according to claim 3 is characterized in that: The text features are encoded to obtain a feature matrix data set of actual maritime illegal data, including: The preset one-hot encoding method is used to encode text features and obtain the feature matrix dataset of actual maritime illegal data.
5. The method for tracing the source of illegal incidents in maritime areas based on knowledge graph according to claim 1 is characterized in that: The initial graph neural network model is trained using the feature matrix data set as input to obtain a fully trained target graph neural network model, including: Based on the nodes of the target knowledge graph, adjacent nodes are sampled to obtain local domain information; Calculate the element-by-element mean of the features of all sampled adjacent nodes to obtain the aggregated features; The adjacency relationship of each node is determined according to the aggregated features, and the target graph neural network model is obtained.
6. The method for tracing the source of illegal incidents in maritime areas based on knowledge graph according to claim 5 is characterized in that: The node based on the target knowledge graph performs adjacent node sampling to obtain local domain information, including: The initial graph neural network model samples the node adjacency list derived from the knowledge graph to obtain the local domain information of the starting node.
7. The method for tracing the source of illegal incidents in maritime areas based on knowledge graph according to claim 5 is characterized in that: The element-by-element mean calculation of the features of all sampled adjacent nodes can be expressed by the following formula: in Representation Node In the The hidden states (or features) of the layer, Representation Node The set of neighbor nodes of represents the operation of finding the mean, Represents an aggregate feature.
8. A device for tracing the source of illegal incidents in maritime areas based on knowledge graph, characterized in that: include: The knowledge triple determination module is used to construct a target knowledge graph based on the maritime illegal incident data set and determine the illegal incident knowledge triples; The feature matrix building module is used to build a feature matrix data set of actual sea area illegal data based on the illegal event knowledge triples; A model training module, used to train the initial graph neural network model using the feature matrix data set as input to obtain a fully trained target graph neural network model; The source tracing module is used to trace the source of illegal incidents in the sea area based on the target graph neural network model and real-time sea area data.
9. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, it implements the steps in the method for tracing the source of illegal incidents in maritime areas based on knowledge graph as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for tracing the source of maritime illegal incidents based on knowledge graph as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Ship activity knowledge graph construction method
CN114647736A
Prediction method and device based on knowledge graph and electronic equipment
CN115114411A
Knowledge graph for satellite task planning and user intention task decomposition method
CN115422373A
Maritime accident assisting method and device based on knowledge graph and electronic equipment
CN116860984A
Knowledge graph construction method for marine moving target
CN116992043A
Cited By
Live broadcast information analysis method based on knowledge graph
CN120429448A
Construction waste tracking method based on graph neural network
CN120821960A
Construction waste tracking method based on graph neural network
CN120821960B
