Marine trajectory prediction method and device based on knowledge enhancement

Through the method based on knowledge enhancement, the problem of low information density and over-fitting of sparse data sets in maritime trajectory prediction is solved, the prediction accuracy and data utilization rate are improved, and the efficiency and accuracy of maritime trajectory prediction are achieved.

CN118733743AActive Publication Date: 2024-10-01NAT UNIV OF DEFENSE TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411188429.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-01
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

Traditional maritime trajectory prediction technology faces low information density and over-fitting problems when dealing with sparse data sets, resulting in reduced prediction performance and increased costs due to difficulty in data acquisition.

Method used

Using a method based on knowledge enhancement, we use a large language model to extract knowledge from maritime activity data, perform data cleaning and reconstruction, combine address mapping and event disambiguation, and use the FP-Growth algorithm to construct a frequent pattern tree to obtain time-location and time -Event rules, and obtain prior knowledge from open source channels for rule fusion and update, and deduce new time-location rules.

Benefits of technology

It improves the predictability and utilization of maritime trajectory data, enhances the ability to mine behavioral patterns, improves the accuracy of maritime trajectory prediction, reduces costs and ensures quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733743A_ABST
    Figure CN118733743A_ABST
Patent Text Reader

Abstract

The invention relates to a sea trajectory prediction method and device based on knowledge enhancement. The method comprises the following steps: performing knowledge extraction on maritime activity data according to a large language model to obtain time sequence data, geographic data and event data; performing address mapping and event disambiguation on the geographic data and the event data, performing discretization processing on the time sequence data, the preprocessed geographic data and the preprocessed event data, and performing rule mining on a discrete data set according to an FP-Growth algorithm to obtain a plurality of time-position rules or time-event rules; and according to the confidence coefficient of the time-event rule and the distribution probability of the event-position information, distributing a new confidence coefficient of the time-position increment rule, fusing and updating the new confidence coefficient with the time-position stock rule set, and according to the updated time-position stock rule set, predicting the position where the ship may appear in a month. By adopting the method, the offshore trajectory prediction accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device for predicting maritime trajectories based on knowledge enhancement. Background Art

[0002] With the expansion of overseas interests, maritime trajectory prediction technology is increasingly becoming an important means to seize the initiative in maritime activities and maintain maritime security. The mining and analysis of ship behavior patterns is crucial to improving maritime monitoring efficiency and optimizing maritime resource allocation. The demand for trajectory prediction research by relevant institutions is becoming increasingly urgent.

[0003] Traditional trajectory prediction technology faces many challenges when dealing with sparse data sets, because the predictability of such data sets is often low, mainly due to the following two points: First, the information density is low. In open source information such as news texts and web forums, the data describing maritime trajectories are inevitably incomplete. For example, many announcements only report events in which ships are involved but lack tracking of their location information. This type of information is highly correlated with the ship, but cannot be directly used for trajectory prediction in the absence of background knowledge or context, resulting in a substantial waste of information resources. The second is the overfitting problem. When the data set is small or very sparse, the model may overfit to limited samples and ignore broader behavioral patterns. This overfitting will lead to a decrease in prediction performance when faced with new or different data.

[0004] Based on the above problems, the performance of trajectory prediction technology can be improved from two perspectives: one is to expand the size of the data set, and the other is to improve the utilization rate of existing data. Due to the limited channels for obtaining maritime trajectory data, the acquisition of time-position data is more difficult, and incremental information retrieval will inevitably lead to a significant increase in time and labor costs; and the quality of simulation data is difficult to guarantee. Therefore, improving the utilization rate of existing data is expected to be an ideal solution to reduce costs and ensure quality. Summary of the invention

[0005] Based on this, it is necessary to provide a method and device for maritime trajectory prediction based on knowledge enhancement that can improve the accuracy of maritime trajectory prediction in response to the above technical problems.

[0006] A method for predicting marine trajectory based on knowledge enhancement, the method comprising: Obtain the maritime activity data of the ship; extract knowledge from the maritime activity data based on the large language model to obtain time series data, geographic data and event data; perform address mapping and event disambiguation on the geographic data and event data to obtain pre-processed geographic data and event data; Discretize the time series data, preprocessed geographic data and event data to obtain discrete data sets; conduct rule mining on the discrete data sets by constructing frequent pattern trees according to the FP-Growth algorithm to obtain multiple time-location rules or time-event rules; Event-location information and the distribution probability of event-location information are obtained from open source channels. The confidence of the new time-location increment rule is assigned according to the confidence of the time-event rule and the distribution probability of the event-location information. The new time-location increment rule is merged and updated with the time-location stock rule set. The possible location of the ship in a certain month is predicted based on the updated time-location stock rule set.

[0007] In one embodiment, knowledge is extracted from marine activity data based on a large language model to obtain time series data, geographic data, and event data, including: Perform data cleaning and data reconstruction on offshore activity data to obtain reconstructed data; Initial prompt words are pre-set and prompt word optimization strategies are set to optimize the initial prompt words. The optimized prompt words are used to guide the large language model to transcribe the reconstructed data, and the time complex sentences composed of a main sentence, multiple subordinate clauses and rich conjunctions and the inverted sentences with abnormal subject positions in the reconstructed data are split into two or more simple sentences; the simple sentences are extracted to obtain preliminary extraction results; The preliminary extraction results are annotated according to a preset extraction error label system, and the annotated text is used as the same type of error text. The sentence structure of the same type of error text is analyzed to generate a simulated text question-answer pair, and after deleting the modifying components in the simulated text question-answer pair, the optimized prompt word is modified to obtain a modified prompt word; The modified prompt words are used to guide the large language model to extract knowledge from the marine activity data to obtain time series data, geographic data and event data.

[0008] In one embodiment, data cleaning and data reconstruction are performed on the marine activity data to obtain reconstructed data, including: The maritime activity data are cleaned, and missing items, duplicate items, web page tags, and garbled codes in the maritime activity data are deleted to obtain relatively pure records. The maritime activity data crawled from different sites are then integrated and classified according to the ship name. For each ship, the data are arranged in chronological order. Based on the professional knowledge of navigation, the arranged maritime activity data are reconstructed to obtain multiple categories of reconstructed data, including "arrival", "departure" and "participation" categories; among them, the "arrival" category indicates that the ship is anchored at a certain place, and the text does not mention the subsequent activities of the ship at that place and the reason for anchoring; the "departure" category indicates that the ship leaves a certain place, and does not mention the subsequent activities and the reason for leaving; the "participation" category indicates the specific maritime activities in which the ship participates, or sails in a certain area.

[0009] In one of the embodiments, the pre-set initial prompt words include background knowledge, user expectations, task flow, additional information and task examples; wherein, background knowledge includes the concept of time complex sentences, user expectations include transcribing into simple sentences, the task flow includes determining the relationship between main and subordinate clauses, extracting events to form new sentences, replacing pronouns and inferring the timeline, additional information includes event understanding priority, and task examples include input data and output data.

[0010] In one of the embodiments, the prompt word optimization strategy includes information guidance, full coverage design and differentiated design; information guidance means emphasizing modal particles or adverbs and synonymous repetition or synonymous paraphrase; full coverage design means setting boundary conditions and exception handling mechanisms in the prompt words by considering and including various possible situations; differentiated design means formulating different handling methods for different situations.

[0011] In one of the embodiments, the pre-set extraction error label system includes primary labels and secondary labels; the primary labels include ship name errors, time errors, location errors and event errors; the secondary labels include implicit subject reasoning, implicit time reasoning, implicit location reasoning, insufficient summary and generalization, insufficient knowledge background and output format errors.

[0012] In one embodiment, address mapping and event disambiguation are performed on geographic data and event data to obtain pre-processed geographic data and event data, including: Based on the large language model assisted by expert experience, all potential destinations are mapped into several regions, the geographical locations that appear in the maritime activity data are mapped into a set of regions, and the different expressions of the same event in the maritime activity data are unified to obtain the preprocessed geographic data and event data.

[0013] In one embodiment, the time-location rule is that the ship will appear at the location specified in the second item in the month specified in the first item; the time-event rule is that the ship will engage in the activity specified in the second item in the month specified in the first item.

[0014] In one embodiment, the new time-location increment rule is merged and updated with the time-location inventory rule set, including: The new time-location increment rule is merged and updated with the time-location stock rule set. If the new time-location increment rule does not exist in the time-location stock rule set, the new time-location increment rule is added to the rule set; if the new time-location increment rule exists in the time-location stock rule set, the confidence of the two is added together to update the confidence of the corresponding time-location rule; The time-location inventory rule set is updated using the updated confidence of the time-location rule.

[0015] A marine trajectory prediction device based on knowledge enhancement, the device comprising: The data preprocessing module is used to obtain the marine activity data of the ship; extract knowledge from the marine activity data according to the large language model to obtain time series data, geographic data and event data; perform address mapping and event disambiguation on the geographic data and event data to obtain preprocessed geographic data and event data; The data discretization and rule mining module is used to discretize time series data, pre-processed geographic data and event data to obtain discrete data sets; according to the FP-Growth algorithm, the rules of the discrete data sets are mined by constructing a frequent pattern tree to obtain multiple time-location rules or time-event rules; The trajectory prediction module is used to obtain event-position information and the distribution probability of event-position information from open source channels, assign the confidence of the new time-position increment rule according to the confidence of the time-event rule and the distribution probability of the event-position information, merge and update the new time-position increment rule with the time-position stock rule set, and predict the possible location of the ship in a certain month according to the updated time-position stock rule set.

[0016] The above-mentioned method and device for predicting maritime trajectory based on knowledge enhancement, this application uses a large language model to extract knowledge from maritime activity data, can extract entities and relationships in the text, and organize them into structured data, so as to better analyze and study the rich knowledge contained in the text. It can better understand and analyze maritime activity data, provide strong support for the implementation of effective maritime trajectory prediction, and then perform address mapping and event disambiguation on geographic data and event data to improve the predictability of data. The predictability of maritime activity data is greatly improved, which is conducive to the subsequent rule mining algorithm to further analyze the "stock information" contained therein. Then, the time series data, pre-processed geographic data and event data are discretized, the data points of the trajectory data are expanded, and the duration of different events is reflected, and the influencing factors of "location" and "event" of events with longer duration are expanded, which is conducive to better discovering the behavioral patterns in the data. The FP-Growth algorithm is used to process discrete data sets by constructing a frequent pattern tree, which not only greatly reduces the number of scans required, but also greatly improves data processing efficiency. It can also mine the time-location rules or time-event rules in the trajectory data, and discover the "stock information" contained in the data, which is the basis for the subsequent rule mining work of introducing prior knowledge. Finally, it is obtained from open source channels. The event-location information and the distribution probability of the event-location information are used as prior knowledge. The confidence of the new time-location increment rule is assigned according to the confidence of the time-event rule and the distribution probability of the event-location information. The new time-location increment rule is integrated and updated with the time-location stock rule set, and the descriptive information about the location of the event is obtained and integrated. The event-location prior knowledge is summarized, and the time-event rules lacking location description are bridged with the event-location prior knowledge, and then new time-location rules are inferred or the original rules are enhanced. New rules are discovered and the original rules are enhanced by reasoning, and finally a complete set of rules is constructed based on the historical trajectory information of the ship to realize the maritime trajectory prediction. Compared with the traditional zero prior knowledge rule mining, this method can more fully explore the behavior patterns hidden in the maritime trajectory data, improve the utilization rate of existing data, and thus improve the accuracy of maritime trajectory prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a flow chart of a method for predicting marine trajectory based on knowledge enhancement in one embodiment; Figure 2 A schematic diagram of a flow chart of a transcription example of a time complex sentence in one embodiment; Figure 3 A schematic diagram of a process for constructing a complex sentence transcription prompt word in one embodiment; Figure 4 A schematic diagram of a flow chart of a prompt word construction example of an information extraction module in another embodiment; Figure 5 A schematic diagram of a system for extracting error labels in one embodiment; Figure 6 It is a structural block diagram of a marine trajectory prediction device based on knowledge enhancement in one embodiment; Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.

[0019] In one embodiment, Figure 1 As shown, a method for predicting marine trajectory based on knowledge enhancement is provided, comprising the following steps: Step 102, obtaining the marine activity data of the vessel; performing knowledge extraction on the marine activity data according to the large language model to obtain time series data, geographic data and event data; performing address mapping and event disambiguation on the geographic data and event data to obtain pre-processed geographic data and event data.

[0020] This application uses a large language model to extract knowledge from maritime activity data, extracting entities and relationships in the text and organizing them into structured data to better analyze and study the rich knowledge contained in the text. It can better understand and analyze maritime activity data and provide strong support for the implementation of effective maritime trajectory prediction.

[0021] At the same time, in the maritime activity data, due to the excessive number of geographical locations involved, it is not conducive to discovering similar behavior patterns that are actually pointed to by adjacent geographical locations. In addition, the descriptions of the same event are often diverse, which is not conducive to the analysis and utilization of rule mining algorithms. Therefore, this application improves the predictability of data by performing address mapping and event disambiguation on geographic data and event data. Address mapping is to map all potential destinations into several regions, and map the geographical locations that appear in the trajectory data to an instance in the regional set. In this application, the global sailing destinations of ships can be roughly divided into 17 sea areas according to geographical locations (as shown in Table 1), and all geographical locations that appear in the trajectory history can be mapped to one of these 17 regions. For example, Qingdao Port and Dalian Port can both be mapped to the "East Asian Maritime Region"; "San Francisco" and "Vancouver" can both be mapped to the "Northeastern Pacific Ocean Region". In addition, there are many expressions such as "home" and "homeport" in the resume information. Due to the frequent changes in the fleet and ownership of ships, the home port of the ship will also be adjusted accordingly. Therefore, the address mapping of this type of information cannot be generalized and needs to be analyzed in conjunction with current events. The mapping of various geographical locations in the resume is implemented by large language models assisted by manual means.

[0022] Table 1

[0023] Event disambiguation is the unification of different descriptions of the same event. In the ship's resume, a large amount of maritime activity information is involved, and different descriptions may refer to the same event. In addition, this type of information often exists in the form of abbreviations, years, and classes, and needs to point to a unified reference point. For example, "Jewelry Auctions", "Jewelry II", and "JewelryIII" actually refer to the same series of auctions; "Art and Craft Workshops" and "ACW" actually refer to art and craft workshops. Event disambiguation is implemented through a large language model assisted by manual methods.

[0024] After address mapping and event disambiguation, the predictability of maritime activity data is greatly improved, which is conducive to the subsequent rule mining algorithm to further analyze the "stock information" contained therein.

[0025] Step 104, discretize the time series data, the preprocessed geographic data and the event data to obtain a discrete data set; perform rule mining on the discrete data set by constructing a frequent pattern tree according to the FP-Growth algorithm to obtain multiple time-location rules or time-event rules.

[0026] Trajectory data in maritime activity data are often continuous event records. From the start time of the relevant activity to the end time of the relevant activity, it is considered that the ship participates in an event at a certain location, but this continuous record is not conducive to rule mining algorithm processing. This application splits continuous records into discrete records with the smallest unit being "day". As shown in Table 2, the data of a certain ship records a summer voyage in the central Pacific Ocean from August 14 to August 16. By creating entries by "day", the original data can be split into three records on the 14th, 15th and 16th. The discretization of time series data expands the data points of trajectory data, and can reflect the duration of different events, expand the influencing factors of "location" and "event" of events with longer duration, and is conducive to better discovering behavioral patterns in the data.

[0027] Table 2

[0028] After discretization, the original continuous data is expanded into discrete data, forming a larger discrete data set. This application uses the FP-Growth algorithm to process discrete data sets by constructing a frequent pattern tree, which greatly reduces the number of scans required and can greatly improve data processing efficiency.

[0029] After processing discrete data sets, the FP-Growth algorithm obtains time-location or time-event rules. The time-location rule indicates that the ship will appear at the location indicated by the latter item in the month indicated by the former item, and the time-event rule indicates that the ship will engage in the activities indicated by the latter item in the month indicated by the former item. Table 3 shows examples of two rules. In the rule shown in the first row, the confidence that the ship appears in the "Southwestern Pacific Ocean Region" in January is 0.2577; in the rule shown in the second row, the confidence that the ship participates in the "Summer Cruise" in June is 0.3909.

[0030] Table 3

[0031] By discretizing time series data, preprocessed geographic data and event data, and then conducting rule mining on discrete data sets by constructing a frequent pattern tree based on the FP-Growth algorithm, we have preliminarily obtained two sets of rules: time-location and time-event. This has better excavated the "stock information" contained in the data, which is the basis for subsequent rule mining work that introduces prior knowledge.

[0032] Step 106, obtain event-location information and the distribution probability of event-location information from open source channels, assign confidence to the new time-location increment rule according to the confidence of the time-event rule and the distribution probability of the event-location information, merge and update the new time-location increment rule with the time-location stock rule set, and predict the possible location of the ship in a certain month according to the updated time-location stock rule set.

[0033] Obtain external prior knowledge that is highly correlated with ship activity events to assist in the reasoning of downstream tasks. Compared with time-location time-location information, event-location event-location information is easier to obtain in open source channels. For example, after searching for the two keywords "Steamboat Willie" and "Fall Cruise", the search engine will feedback a large amount of open source text about Steamboat Willie's movements. After integration, these data can better summarize the probability of ship deployment in various sea areas. Table 4 shows the open source knowledge of Steamboat Willie's participation in "Fall Cruise" (data after address mapping); Table 4

[0034] Then, the rule mining knowledge and prior knowledge acquired in the early stage are integrated, new rules are discovered through reasoning, and the original rules are enhanced to achieve the bridge from time-event and event-location to time-location, including: First, the confidence is assigned to the incremental rule based on the confidence of each time-event stock rule obtained in step 104 and the probability of each event-location distribution obtained above. Table 5 shows an example of the inference rule. In this example, the confidence of the time-event rule discovered in the early stage is 0.1376 and 0.5129 in August and September respectively, and the prior knowledge data after retrieval shows that the probability of a ship appearing in the "East Asian Maritime Region" when participating in the "Fall Cruise" in August is 100%; the probability of a ship appearing in the "East Asian Maritime Region", "Southeast Asian Maritime Region" and "Southwestern Pacific Ocean Region" when participating in the "Fall Cruise" in September is 44%, 42% and 14% respectively. According to the probability of occurrence in each place, the confidence of the original data is assigned to the new rule, and the confidence of the time-location incremental rule is obtained.

[0035] Table 5

[0036] Merge the stock rules and incremental rules. If the time-position incremental rule does not exist in the time-position stock rule set, add it to the rule set; if it exists, add the confidence of the two to update the confidence of the time-position rule. The reason why the confidence of the new rule can be accumulated with the confidence of the original rule is that the time-event rule obtained in step 104 only analyzes the activity history of ships that lack location descriptions, while the activity history of ships that contain location descriptions is used for time-position rule mining, and is not applied to time-event rule mining, avoiding repeated calculations. In this way, the final rule set is obtained. When it is necessary to predict the most likely location of a ship in a certain month, the result in the rule set and its confidence can be directly given.

[0037] Acquire and integrate descriptive information about the location of the event, summarize event-location prior knowledge, bridge the time-event rules that lack location description with event-location prior knowledge, and then infer new time-location rules or enhance the original rules. Discover new rules and enhance the original rules through reasoning, and finally build a complete set of rules based on the historical trajectory information of the ship. Compared with traditional zero-prior knowledge rule mining, this method can more fully explore the behavior patterns hidden in the maritime trajectory data, improve the utilization of existing data, and thus improve the accuracy of maritime trajectory prediction.

[0038] In the above-mentioned maritime trajectory prediction method based on knowledge enhancement, this application uses a large language model to extract knowledge from maritime activity data, which can extract entities and relationships in the text and organize them into structured data to better analyze and study the rich knowledge contained in the text. It can better understand and analyze maritime activity data, provide strong support for the implementation of effective maritime trajectory prediction, and then perform address mapping and event disambiguation on geographic data and event data to improve the predictability of data. The predictability of maritime activity data is greatly improved, which is conducive to the subsequent rule mining algorithm to further analyze the "stock information" contained therein. Then, the time series data, pre-processed geographic data and event data are discretized, the data points of the trajectory data are expanded, and the duration of different events is reflected, and the influencing factors of "location" and "event" of events with longer duration are expanded, which is conducive to better discovering the behavioral patterns in the data. The FP-Growth algorithm is used to process discrete data sets by constructing a frequent pattern tree, which not only greatly reduces the number of scans required, but also greatly improves data processing efficiency. It can also mine the time-location rules or time-event rules in the trajectory data, and discover the "stock information" contained in the data, which is the basis for the subsequent rule mining work of introducing prior knowledge. Finally, it is obtained from open source channels. The event-location information and the distribution probability of the event-location information are used as prior knowledge. The confidence of the new time-location increment rule is assigned according to the confidence of the time-event rule and the distribution probability of the event-location information. The new time-location increment rule is integrated and updated with the time-location stock rule set, and the descriptive information about the location of the event is obtained and integrated. The event-location prior knowledge is summarized, and the time-event rules lacking location description are bridged with the event-location prior knowledge, and then new time-location rules are inferred or the original rules are enhanced. New rules are discovered and the original rules are enhanced by reasoning, and finally a complete set of rules is constructed based on the historical trajectory information of the ship to realize the maritime trajectory prediction. Compared with the traditional zero prior knowledge rule mining, this method can more fully explore the behavior patterns hidden in the maritime trajectory data, improve the utilization rate of existing data, and thus improve the accuracy of maritime trajectory prediction.

[0039] In one embodiment, knowledge is extracted from marine activity data based on a large language model to obtain time series data, geographic data, and event data, including: Perform data cleaning and data reconstruction on offshore activity data to obtain reconstructed data; Initial prompt words are pre-set and prompt word optimization strategies are set to optimize the initial prompt words. The optimized prompt words are used to guide the large language model to transcribe the reconstructed data, and the time complex sentences composed of a main sentence, multiple subordinate clauses and rich conjunctions and the inverted sentences with abnormal subject positions in the reconstructed data are split into two or more simple sentences; the simple sentences are extracted to obtain preliminary extraction results; The preliminary extraction results are annotated according to a preset extraction error label system, and the annotated text is used as the same type of error text. The sentence structure of the same type of error text is analyzed to generate a simulated text question-answer pair, and after deleting the modifying components in the simulated text question-answer pair, the optimized prompt word is modified to obtain a modified prompt word; The modified prompt words are used to guide the large language model to extract knowledge from the marine activity data to obtain time series data, geographic data and event data.

[0040] In a specific embodiment, complex sentences in the original data are converted into simple sentences to enhance the understanding of the text by the large language model, so that models with smaller parameters and poorer semantic understanding ability can also perform knowledge extraction tasks.

[0041] In natural language texts such as news reports and forum posts, there are widespread complex sentences consisting of a main clause, multiple subordinate clauses, and abundant conjunctions, as well as inverted sentences with abnormal subject positions. Such complex sentences often have high information density, unclear object reference, and are prone to ambiguity, which causes certain difficulties for entity recognition and relationship extraction. Specifically for English corpus, sentences containing time adverbial clauses (time complex sentences) are the most common complex sentences. For time complex sentences, they usually contain descriptions of primary and secondary events in chronological order. By splitting such a sentence into two or more simple sentences, the complexity of model processing can be significantly reduced. Each simple sentence is relatively independent, has a clear reference, and focuses on specific information. This method helps the model to more accurately identify and understand entities and relationships in sentences, such as events, subjects, time and other elements, thereby improving the quality and completeness of knowledge extraction. In the implementation process, the main clause and subordinate clauses of the time complex sentence are first identified, and then they are transcribed into separate sentences. For example Figure 2As shown in the figure, the time compound sentence “After a 10-day port call to Hainan Island, LCC 19 arrived in Taiwan, on Feb. 12 before returning to Shanghai on 19th.” can be transcribed into three simple sentences: (1) “On Feb 2, LCC 19 port call to Hainan Island.” (2) “On Feb 12, LCC 19 arrived in Taiwan.” (3) “On Feb 19, LCC 19returned to Shanghai.”.

[0042] This application uses a large language model to achieve the above-mentioned sentence transcription. In order to improve the accuracy of sentence transcription, this application sets prompt words to guide the training of the large language model to understand the task scenario and user expectations, so as to achieve twice the result with half the effort. In the prompt words for transcribing time complex sentences, it is necessary to use concise language to clarify the transcription process, supplemented by representative examples. Specifically, the prompt words need to contain the following information: (1) Background knowledge: What is a time complex sentence? (2) User expectations: In what form should the time complex sentence be transcribed? (3) Task flow: ① Determine the order of the main clause and the subordinate clause. ② If the subordinate clause event precedes the main clause event, extract the event and form a new sentence, which should be before the main clause event; if the subordinate clause event occurs after the main clause event, extract the event and form a new sentence, which should be after the main clause event. ③ Make sure to replace any pronouns or referential expressions in the new sentence with the correct antecedent to maintain the clarity and completeness of the information conveyed. ④ If there is any uncertainty about the exact date or order of the events, infer a reasonable timeline.

[0043] (4) Additional information: ① If the event in the clause can be understood as both a "starting event" and an "ending event", it should be transcribed as "starting event" first. ② Ensure that the transcribed sentence conforms to the temporal logic.

[0044] (5) Task examples: representative inputs and outputs.

[0045] The compound sentence transcription prompt words used in this embodiment are as follows: Figure 3 shown.

[0046] Carefully constructing prompt words to guide the large language model to accurately identify entities and relationships in the data and obtain structured knowledge is conducive to effect evaluation and data analysis in subsequent tasks. This application combines the prompt word construction strategy to guide the large language model to extract knowledge. The large language model is expected to be rich in pre-training, and can better understand the text semantics and context in the knowledge extraction task, and extract richer language features and knowledge representation; at the same time, experience is obtained through unsupervised or semi-supervised methods to reduce dependence on large amounts of labeled data. Compared with traditional sequence labeling methods, the extraction integrity is high; the extraction accuracy is high; zero-sample or few-sample learning, the labeling cost is low; the parameter modification cost is low.

[0047] When guiding a large language model to extract knowledge, the following three problems need to be solved: (1) Long-distance dependency problem: The text to be processed is too long. Even if the task expectations are clear, the model still cannot answer according to the requirements. For example, in a long prompt word, the "time" format to be extracted is specified as "YYYY-MM-DD", and the model still describes "time" in the form of natural language.

[0048] (2) Information fabrication problem: When some information about certain items is missing, the large language model makes unfounded inferences and fabricates information. For example, in a lot of information, there is only the "month" and "date" of the event, but no "year" information. The large language model will fabricate the year to fill in the gap.

[0049] (3) Reasoning and filling problems: Some of the information that needs to be extracted in the text is not directly given, but reasonable inferences can be made through the context to guess the implicit information in the text. For example, when a ship participates in an activity, the start time and duration are specified, and the end time needs to be inferred based on this; the name of the activity is "Mediterranean Party", even if the location of the activity is not specified, it should be inferred that the event takes place in the Mediterranean.

[0050] To solve the above problems, on the one hand, it is necessary to use programming methods to process the information fed back by the model, and on the other hand, it is necessary to continuously optimize the prompt words through strategies. During the implementation process, this application designed the following three prompt word optimization strategies to solve the above problems: (1) Information guidance: Whether it is "emphasis" methods such as modal particles and adverbs, or "repetition" methods such as synonym repetition and synonym paraphrase, they can effectively guide the focus of the large language model and have a significant impact on the model's feedback. For example, the large language model will generally handle instructions containing "carefully" with caution, and will generally impose relatively strict constraints on instructions containing "must".

[0051] (2) Comprehensive design: By considering and including various possible situations, setting boundary conditions and exception handling mechanisms in the prompt words, we can effectively reduce the error output of large language models when dealing with special situations, and ensure the accuracy and stability of knowledge extraction tasks. This strategy helps improve the robustness and applicability of the model. For example, when dealing with special time data that lacks "year" information, "year" is uniformly marked as "YYYY".

[0052] (3) Differentiated design: Formulating different processing methods for different situations can better guide large language models to generate expected content and avoid confusing or erroneous outputs. This strategy helps improve the model's adaptability to diverse situations and improves the effectiveness and accuracy of knowledge extraction tasks. For example, some information can be inferred based on context, while some cannot.

[0053] Figure 4 Examples of the above three strategies in the prompt words of the information extraction module are shown.

[0054] When using prompt words to guide the large language model to extract the reconstructed data, the initial extraction results are not accurate enough, because the observable data is limited, but the multi-source heterogeneous information in the real world is infinite. This inevitably leads to the prompt words and examples used in the model at the beginning of the design cannot cover all possibilities, and the generalization of the knowledge extraction method is difficult to guarantee. In traditional machine learning and deep learning methods, the model is usually unable to perform real-time feedback and optimization after training. The large-scale annotation data and computing resources required to adjust the model parameters often consume a lot of manpower and material resources, which is difficult to meet the needs of continuous, efficient, and low-cost iterative optimization of the model. To this end, this application proposes a feedback optimization idea of ​​"supervisor in the loop", focusing on the main problems, combining external knowledge (experience) with model optimization, reducing the cost of model improvement, and achieving quality and efficiency improvement of the extraction effect.

[0055] During implementation, the feedback optimization process mainly performs the following four steps: (1) Use the validation set to evaluate the preliminary extraction results, according to the "extraction error label system" (such as Figure 5 ), which is an incorrect label for the text.

[0056] (2) Filter out texts with similar labels as similar error texts and classify them for subsequent analysis.

[0057] (3) For similar erroneous texts, we analyze the similarities in sentence structure and generate simulated text question-answer pairs that fully reflect their characteristics. Such representative sentences do not exist in the original text.

[0058] (4) Delete the modifying components of the original sample question-answer pairs and the components with similar structures to the simulated text, append the simulated text question-answer pairs to the samples, and limit the total size of the prompt words and samples as much as possible.

[0059] (5) For errors that occur more than the threshold, analyze their characteristics and add the processing measures to the prompt words.

[0060] (6) The modified prompt words and examples are fed back into the large language model training process. The model is improved by improving the prompt words, thereby improving the accuracy of the large language model in knowledge extraction.

[0061] The above work can be done manually or with the help of a large language model with strong semantic understanding ability. However, whether it is a human or a large model with stronger semantic understanding ability, the reason is that the current model has limited semantic understanding ability and needs to learn from "mistakes". By improving the prompt words, the experience summarized and analyzed by the external "supervisor" is introduced into the knowledge extraction framework to "learn" the method of solving problems.

[0062] Table 6 shows the examples of simulated text question-answer pairs generated after summarizing common errors. In this example, the user input is: "March 1, 1989 Steamboat Willie departed shipyard to participate in Mediterranean Party with Steamboat Lily. September 7, Steamboat Willie departed Southern shipyard for a two-week sea cruise. Dec 29, anchored off The Philippines, Malaysia, Singapore, Vietnam and Indonesia after a four-month cruise in the Pacific AoR." (March 1, 1989, Steamboat Willie and Steamboat Lily left the dock to participate in the "Mediterranean Party" event; on September 7, Steamboat Willie left Southern Shipyard for a two-week sea voyage; on December 29, after a four-month Pacific cruise, it anchored in the Philippines, Malaysia, Singapore, Vietnam and Indonesia). This simulated input contains the following five representative error-prone sentence structures: (1) Implicit location reasoning: The first sentence does not contain a location, but the name of the event is “Mediterranean Party”, so it is likely to take place in the Mediterranean region.

[0063] (2) Implicit time reasoning: The second sentence does not specify the end time of the event, but gives the start time (September 7) and duration (two weeks). Based on this, we can infer that the end time is around September 21.

[0064] (3) Implicit Subject Inference: The ship activity event in the third sentence has no subject, but this is a common elliptical expression in natural language texts. Based on the context, we can infer that the subject of the event is still "Steamboat Willie".

[0065] (4) Insufficient summarization: The third sentence mentions that the ship is docked in several Southeast Asian countries (The Philippines, Malaysia, Singapore, Vietnam and Indonesia). To facilitate subsequent trajectory analysis, it can be summarized as "Southeast Asia". For this type of text, the large language model can be guided to make a summary.

[0066] (5) Insufficient knowledge background: The third sentence states that the ship activity event occurred in the “Pacific AoR”. Similar “sea area” expressions are relatively common in texts on maritime activities. However, due to insufficient knowledge reserves, the model may not be able to accurately identify it as a “location”.

[0067] It can be seen that it is very necessary to provide this background knowledge as a sample to the large language model for feedback optimization, which can greatly improve the accuracy of marine knowledge extraction by the large language model.

[0068] Table 6

[0069] Finally, the extraction results include information of six categories of items: ["ship name", "start time", "end time", "location", "event name", "other ships"], specifically: (1) Ship name: subject of the incident.

[0070] (2) Start time: The start time of the event. For the purpose of uniform expression, it is expressed in the standard format of “YYYY-MM-DD”.

[0071] (3) End time: The end time of the event. For the purpose of unified expression, it is referred to in the standard format of “YYYY-MM-DD”.

[0072] (4) Location: The location where the event occurred. Since geographic location can be subdivided into multiple levels of labels and the format is difficult to unify, the extraction result should be considered correct as long as it contains the lowest level of standard geographic location mentioned in the text. For example, for "coast of Japan" that appears in the text, as long as the extraction result contains "Japan", it should be considered correct.

[0073] (5) Event name: the content or nature of the event. For example, for the word “trainingavailability (TRAV)” that appears in the text, whether the extraction result contains “training availability” or “TRAV”, it should be considered to be extracted correctly.

[0074] (6) Other vessels: vessels other than the subject vessel involved in the incident.

[0075] These six types of data constitute time series data, geographic data, and event data.

[0076] In one embodiment, data cleaning and data reconstruction are performed on the marine activity data to obtain reconstructed data, including: The maritime activity data are cleaned, and missing items, duplicate items, web page tags, and garbled codes in the maritime activity data are deleted to obtain relatively pure records. The maritime activity data crawled from different sites are then integrated and classified according to the ship name. For each ship, the data are arranged in chronological order. Based on the professional knowledge of navigation, the arranged maritime activity data are reconstructed to obtain multiple categories of reconstructed data, including "arrival", "departure" and "participation" categories; among them, the "arrival" category indicates that the ship is anchored at a certain place, and the text does not mention the subsequent activities of the ship at that place and the reason for anchoring; the "departure" category indicates that the ship leaves a certain place, and does not mention the subsequent activities and the reason for leaving; the "participation" category indicates the specific maritime activities in which the ship participates, or sails in a certain area.

[0077] In a specific embodiment, firstly, the missing items, duplicate items, web page tags, and garbled codes in the original data are deleted to obtain relatively clean records; secondly, the maritime history data crawled from different sites are integrated and classified according to the ship name to reduce the inconsistency of different data sources; then, for each ship, the data is arranged in chronological order to facilitate subsequent transcription and extraction; finally, based on the professional knowledge of navigation, the activity data is screened, and the maritime activities can be roughly divided into the following three categories: (1) “Arrival” category: The vessel is at a certain place and the text does not mention the subsequent activities of the vessel at that place and the reason for the berthing.

[0078] (2) “Departure” category: The vessel leaves a place without mentioning subsequent activities and reasons for departure.

[0079] (3) “Participation” category: specific maritime activities in which the vessel participates, or sails in a certain area.

[0080] In one of the embodiments, the pre-set initial prompt words include background knowledge, user expectations, task flow, additional information and task examples; wherein, background knowledge includes the concept of time complex sentences, user expectations include transcribing into simple sentences, the task flow includes determining the relationship between main and subordinate clauses, extracting events to form new sentences, replacing pronouns and inferring the timeline, additional information includes event understanding priority, and task examples include input data and output data.

[0081] In one of the embodiments, the prompt word optimization strategy includes information guidance, full coverage design and differentiated design; information guidance means emphasizing modal particles or adverbs and synonymous repetition or synonymous paraphrase; full coverage design means setting boundary conditions and exception handling mechanisms in the prompt words by considering and including various possible situations; differentiated design means formulating different handling methods for different situations.

[0082] In one of the embodiments, the pre-set extraction error label system includes primary labels and secondary labels; the primary labels include ship name errors, time errors, location errors and event errors; the secondary labels include implicit subject reasoning, implicit time reasoning, implicit location reasoning, insufficient summary and generalization, insufficient knowledge background and output format errors.

[0083] In one embodiment, address mapping and event disambiguation are performed on geographic data and event data to obtain pre-processed geographic data and event data, including: Based on the large language model assisted by expert experience, all potential destinations are mapped into several regions, the geographical locations that appear in the maritime activity data are mapped into a set of regions, and the different expressions of the same event in the maritime activity data are unified to obtain the preprocessed geographic data and event data.

[0084] In one embodiment, the time-location rule is that the ship will appear at the location specified in the second item in the month specified in the first item; the time-event rule is that the ship will engage in the activity specified in the second item in the month specified in the first item.

[0085] In one embodiment, the new time-location increment rule is merged and updated with the time-location inventory rule set, including: The new time-location increment rule is merged and updated with the time-location stock rule set. If the new time-location increment rule does not exist in the time-location stock rule set, the new time-location increment rule is added to the rule set; if the new time-location increment rule exists in the time-location stock rule set, the confidence of the two is added together to update the confidence of the corresponding time-location rule; The time-location inventory rule set is updated using the updated confidence of the time-location rule.

[0086] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0087] In one embodiment, Figure 6 As shown, a marine trajectory prediction device based on knowledge enhancement is provided, including: a data preprocessing module 602, a data discretization and rule mining module 604 and a trajectory prediction module 606, wherein: The data preprocessing module 602 is used to obtain the marine activity data of the ship; extract knowledge from the marine activity data according to the large language model to obtain time series data, geographic data and event data; perform address mapping and event disambiguation on the geographic data and event data to obtain preprocessed geographic data and event data; The data discretization and rule mining module 604 is used to discretize the time series data, the pre-processed geographic data and the event data to obtain a discrete data set; perform rule mining on the discrete data set by constructing a frequent pattern tree according to the FP-Growth algorithm to obtain multiple time-location rules or time-event rules; The trajectory prediction module 606 is used to obtain event-position information and the distribution probability of event-position information from open source channels, assign confidence to a new time-position increment rule according to the confidence of the time-event rule and the distribution probability of the event-position information, merge and update the new time-position increment rule with the time-position stock rule set, and predict the possible position of the ship in a certain month according to the updated time-position stock rule set.

[0088] For the specific limitations of the maritime trajectory prediction device based on knowledge enhancement, please refer to the limitations of the maritime trajectory prediction method based on knowledge enhancement above, which will not be repeated here. Each module in the above-mentioned maritime trajectory prediction device based on knowledge enhancement can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0089] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for predicting maritime trajectory based on knowledge enhancement is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0090] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0091] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0092] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0093] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for predicting marine trajectory based on knowledge enhancement, characterized in that: The method comprises: Acquire the marine activity data of the vessel; perform knowledge extraction on the marine activity data according to the large language model to obtain time series data, geographic data and event data; perform address mapping and event disambiguation on the geographic data and event data to obtain pre-processed geographic data and event data; Discretizing the time series data, the preprocessed geographic data and the event data to obtain a discrete data set; performing rule mining on the discrete data set by constructing a frequent pattern tree according to the FP-Growth algorithm to obtain a plurality of time-location rules or time-event rules; Event-location information and the distribution probability of event-location information are obtained from open source channels, and the confidence of a new time-location increment rule is assigned according to the confidence of the time-event rule and the distribution probability of the event-location information. The new time-location increment rule is merged and updated with the time-location stock rule set, and the possible location of the ship in a certain month is predicted according to the updated time-location stock rule set.

2. The method according to claim 1, characterized in that Knowledge is extracted from the marine activity data according to the large language model to obtain time series data, geographic data and event data, including: performing data cleaning and data reconstruction on the marine activity data to obtain reconstructed data; Initial prompt words are pre-set and a prompt word optimization strategy is set to optimize the initial prompt words, and the optimized prompt words are used to guide the large language model to perform sentence transcription on the reconstructed data, and the time complex sentence composed of a main sentence, multiple subordinate clauses and abundant conjunctions and the inverted sentence with abnormal subject position in the reconstructed data are split into two or more simple sentences; the simple sentences are extracted to obtain preliminary extraction results; The preliminary extraction results are annotated according to a preset extraction error label system, the annotated text is used as a similar error text, a sentence structure analysis is performed on the similar error text, a simulated text question-answer pair is generated, and after deleting the modifying components in the simulated text question-answer pair, the optimized prompt word is modified by feedback to obtain a modified prompt word; The modified prompt words are used to guide the large language model to extract knowledge from the marine activity data to obtain time series data, geographic data and event data.

3. The method according to claim 2, characterized in that The marine activity data is cleaned and reconstructed to obtain reconstructed data, including: The marine activity data are cleaned, and missing items, duplicate items, web page tags, and garbled codes in the marine activity data are deleted to obtain relatively pure records. The marine activity data crawled from different sites are integrated and classified according to the ship name. For each ship, the data are arranged in chronological order. Based on the knowledge of the professional field of navigation, the arranged marine activity data are reconstructed to obtain multiple categories of reconstructed data, including "arrival", "departure" and "participation" categories; among them, the "arrival" category indicates that the ship is moored at a certain place, and the text does not mention the subsequent activities of the ship at that place and the reason for the mooring; the "departure" category indicates that the ship leaves a certain place, and does not mention the subsequent activities and the reason for leaving; the "participation" category indicates the specific marine activities in which the ship participates, or sails in a certain area.

4. The method according to claim 2, characterized in that: The pre-set initial prompt words include background knowledge, user expectations, task flow, additional information and task examples; wherein, the background knowledge includes the concept of time complex sentences, the user expectations include transcribing into simple sentences, the task flow includes determining the relationship between main and subordinate clauses, extracting events to form new sentences, replacing pronouns and inferring the timeline, the additional information includes event understanding priority, and the task examples include input data and output data.

5. The method according to claim 2, characterized in that: The prompt word optimization strategy includes information guidance, full coverage design and differentiated design; the information guidance means emphasizing modal particles or adverbs and synonymous repetition or synonymous paraphrase; the full coverage design means setting boundary conditions and exception handling mechanisms in the prompt words by considering and including various possible situations; the differentiated design means formulating different handling methods for different situations.

6. The method according to claim 2, characterized in that The preset extraction error label system includes primary labels and secondary labels; the primary labels include ship name errors, time errors, location errors and event errors; the secondary labels include implicit subject reasoning, implicit time reasoning, implicit location reasoning, insufficient summary and generalization, insufficient knowledge background and output format errors.

7. The method according to claim 1, characterized in that Performing address mapping and event disambiguation on the geographic data and event data to obtain pre-processed geographic data and event data includes: Based on the large language model assisted by expert experience, all potential destinations are mapped into several regions, the geographical locations that appear in the maritime activity data are mapped into a set of regions, and the different expressions of the same event in the maritime activity data are unified to obtain the preprocessed geographic data and event data.

8. The method according to claim 1, characterized in that The time-position rule means that the ship will appear at the location specified in the second item in the month specified in the first item; the time-event rule means that the ship will engage in the activity specified in the second item in the month specified in the first item.

9. The method according to claim 1, characterized in that: The new time-location increment rule is merged and updated with the time-location stock rule set, including: The new time-location increment rule is merged and updated with the time-location stock rule set. If the new time-location increment rule does not exist in the time-location stock rule set, the new time-location increment rule is added to the rule set; if the new time-location increment rule exists in the time-location stock rule set, the confidences of the two are added together to update the confidence of the corresponding time-location rule; The time-location inventory rule set is updated using the confidence of the updated time-location rule.

10. A marine trajectory prediction device based on knowledge enhancement, characterized in that: The device comprises: A data preprocessing module is used to obtain the marine activity data of the ship; perform knowledge extraction on the marine activity data according to the large language model to obtain time series data, geographic data and event data; perform address mapping and event disambiguation on the geographic data and event data to obtain preprocessed geographic data and event data; A data discretization and rule mining module is used to discretize the time series data, the preprocessed geographic data and the event data to obtain a discrete data set; perform rule mining on the discrete data set by constructing a frequent pattern tree according to the FP-Growth algorithm to obtain multiple time-location rules or time-event rules; The trajectory prediction module is used to obtain event-position information and the distribution probability of event-position information from open source channels, assign the confidence of a new time-position increment rule according to the confidence of the time-event rule and the distribution probability of the event-position information, merge and update the new time-position increment rule with the time-position stock rule set, and predict the possible position of the ship in a certain month according to the updated time-position stock rule set.

Citation Information

Patent Citations

  • Frequent pattern increment mining method for spatio-temporal trajectory data and electronic equipment

    CN111459997A

  • Marine target trajectory prediction method and device based on multi-source data

    CN114282625A

  • Navigation mode frequent sequence mining method and system for AIS ship trajectory big data

    CN115470260A

  • Vehicle track prediction method and device based on large language model guidance

    CN118394874A