Civil track analysis method and system based on hybrid vector retrieval enhancement

Through the use of hybrid vector retrieval and enhancement methods and large model question and answer frameworks in the analysis of the trails, the problem of the output of the trace trace analysis in the existing technology lacks intuitive and understandable, and achieves lower operation thresholds and higher interpretability. And readability.

CN119378690AActive Publication Date: 2025-01-28THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411942940.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-01-28
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

When explaining and analyzing complex tracks, the output lacks intuitiveness and comprehensibility, making it difficult to form smooth interaction with users, and fail to effectively combine the language generation ability and track analysis tasks of large language models.

Method used

Adopt a civil airline analysis method based on the enhancement of mixed vector retrieval, combine the language processing capacity of large models and efficient data retrieval mechanisms, to build a two -way vector feature library and query features, perform similarity calculations, and use the large model Q & A framework to provide detailed detailed provision explain.

Benefits of technology

The interactive and friendly analysis and interpretation of the track data is realized, the operation threshold is reduced, the interpretability and the readability of the data analysis are improved, and it is suitable for a variety of civilian track analysis scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119378690A_ABST
    Figure CN119378690A_ABST
Patent Text Reader

Abstract

The invention discloses a civil track analysis method and system based on hybrid vector retrieval enhancement, and the method comprises the steps: obtaining the position information and description information of a plurality of known targets, and constructing a bidirectional vector feature library; position information and description information of a to-be-analyzed target are obtained, and bidirectional quantity query features are constructed; the bidirectional vector query features comprise geographic vector query features and semantic vector query features; performing similarity calculation based on the bidirectional quantity query features and a bidirectional quantity feature library to obtain a final similarity between the to-be-analyzed target and the known target; starting a large model service, and initializing a large model by using a system cue word to obtain a large model question and answer framework; and inputting the final similarity calculation result into the large model question and answer framework to obtain an analysis result output by the large model question and answer framework. The method is suitable for the fields of marine navigation, logistics transportation and the like, and the civil track data can be interactively friendly and accurately analyzed and explained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of track analysis, and in particular to a civil track analysis method and system based on hybrid vector retrieval enhancement. Background Art

[0002] Currently, track analysis technology is widely used in the fields of maritime navigation, logistics and transportation to predict target trajectories, monitor abnormal behaviors and provide navigation assistance. Existing research mostly relies on machine learning and deep learning models, which are trained on a large amount of historical track data to establish track prediction and analysis models. These methods have good prediction capabilities when there is sufficient data. However, when interpreting and analyzing complex tracks, the output of traditional machine learning methods often lacks intuitiveness and comprehensibility, making it difficult to form smooth interactions with users.

[0003] With the development of large language models, they have shown great potential in natural language processing, text generation and summarization. However, there is still a lack of detailed discussion on how to combine the language generation capabilities of large models with the specific tasks of track analysis. In particular, there is no mature solution to combine historical data retrieval with generation models to form a clear and smooth analysis process that is easy for users to understand and make decisions by leveraging the capabilities of large models in retrieval-augmented generation (RAG). Summary of the invention

[0004] Purpose of the invention: In view of the shortcomings of the prior art, the purpose of the present invention is to provide a civil track analysis method and system based on hybrid vector retrieval enhancement, combining the powerful language processing capabilities of large models and efficient data retrieval mechanisms to perform interactive and friendly analysis and interpretation of civil track data.

[0005] Technical solution: To achieve the above-mentioned invention object, the present invention adopts the following technical solution: In a first aspect, the present invention provides a civil track analysis method based on hybrid vector retrieval enhancement, comprising the following steps: Step 1: Acquire location information and description information of multiple known targets and construct a dual-vector feature library; the dual-vector feature library includes a geographic vector library and a semantic vector library; the geographic vector library stores the average speed, speed standard deviation, average acceleration, total distance and straightness of the track of the known target; the semantic vector library stores the semantic vector obtained by text embedding of the description information of the known target; the description information at least includes the identity information of the known target; Step 2: Obtain location information and description information of the target to be analyzed, and construct a dual-vector query feature; the dual-vector query feature includes a geographic vector query feature and a semantic vector query feature; Step 3: Calculate the similarity based on the dual-vector query feature and the dual-vector feature library to obtain the final similarity between the target to be analyzed and the known target; Step 4: Enable the big model service, use the system prompt words to initialize the big model, and obtain the big model question-answering framework; Step 5: Input the final similarity calculation result obtained in step 3 into the dialogue template in the large model question and answer framework obtained in step 4 to obtain the output result of the large model question and answer.

[0006] Furthermore, the target speed and acceleration are calculated based on the timestamp and longitude and latitude of the target track data, or the timestamp, longitude and latitude and altitude, and then the average speed, average acceleration and speed standard deviation of the target are calculated; the total distance is calculated based on the longitude and latitude of the target track data, or the longitude and latitude and altitude, and then the straightness is calculated in combination with the starting point and the end point.

[0007] Furthermore, the calculation result of the final similarity between the target to be analyzed and the known target includes: a preset number of target sets with the highest geographical similarity, a preset number of target sets with the highest semantic similarity, and a cross-similarity matrix constructed based on the two sets.

[0008] Furthermore, is the set of top K targets with the highest geographical similarity, is the top K target set with the highest semantic similarity. and For each target in, construct the cross-similarity matrix for: ; ; ; The superscript T indicates transposition. Indicates known target and The geographical similarity between Indicates known target and The semantic similarity between them, i∈[1,K].

[0009] Furthermore, for the target to be analyzed q and known targets d , based on geographic vectors and The geographic similarity is calculated according to the following formula: ; ; in , , , , They are the average speed, speed standard deviation, average acceleration, total distance and straightness of the target to be analyzed. , , , , They are the average speed, speed standard deviation, average acceleration, total distance and straightness of the known target.

[0010] Furthermore, for the target to be analyzed q and known targets d , based on semantic vector and The semantic similarity is calculated according to the following formula: ; in Indicates the magnitude of the vector to be calculated.

[0011] In a second aspect, the present invention provides a civil track analysis system based on hybrid vector retrieval enhancement, comprising: A feature library construction module is used to obtain location information and description information of multiple known targets and construct a dual-vector feature library; the dual-vector feature library includes a geographic vector library and a semantic vector library; the geographic vector library stores the average speed, speed standard deviation, average acceleration, total distance and straightness of the track of the known target; the semantic vector library stores the semantic vector obtained by text embedding of the description information of the known target; the description information at least includes the identity information of the known target; A query feature construction module, used to obtain location information and description information of the target to be analyzed, and to construct a dual-vector query feature; the dual-vector query feature includes a geographic vector query feature and a semantic vector query feature; A similarity calculation module is used to perform similarity calculation based on the dual-vector query feature and the dual-vector feature library to obtain the final similarity between the target to be analyzed and the known target; The track analysis module is used to enable the big model service, initialize the big model using the system prompt words, and obtain the big model question and answer framework; and input the final similarity calculation result obtained by the similarity calculation module into the big model question and answer framework to obtain the output result of the big model question and answer framework.

[0012] In a third aspect, the present invention provides a computer system comprising a memory, a processor, and a computer program / instructions stored in the memory and executable on the processor, wherein the computer program / instructions, when executed by the processor, implement the steps of a civil track analysis method based on hybrid vector retrieval enhancement.

[0013] In a fourth aspect, the present invention provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the civil track analysis method based on hybrid vector retrieval enhancement.

[0014] Beneficial effects: Compared with the prior art, the present invention has the following advantages: 1. The present invention provides a simple track analysis system: by combining the ability to generate large models and the ability to retrieve historical data, the present invention shows a lower operating threshold in the analysis of track data and reduces the difficulty of track analysis.

[0015] 2. The present invention enhances the interpretability of data analysis: by utilizing the natural language generation capability of the large model, a detailed explanation of the track analysis results can be provided, making it easier for users to understand the analysis process and its basis, thereby improving the effectiveness and transparency of decision-making.

[0016] 3. The present invention enhances the readability and interactive friendliness of the results: the present invention is not only suitable for large-scale data analysis, but also has better interactive friendliness by using natural language for interaction, and is suitable for promotion and application in various civil track analysis scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a method flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments.

[0019] like Figure 1 As shown, a civil track analysis method based on hybrid vector retrieval enhancement disclosed in an embodiment of the present invention includes the following steps: Step 1: Obtain the location information and description information of multiple known targets and build a dual-vector feature library.

[0020] Specifically, assuming that there are M known targets, for each known target, the location information includes the target's timestamp t (Unit: seconds), longitude x (Unit: degrees), latitude y (Unit: degrees), height h(Unit: meter) data (in some scenarios, there may be no altitude data, such as sea navigation). The information source can be an open source data set or a measured data set. The description information includes the identity information of the target. For example, for sea navigation, the description information of the target can be ship information, including the ship name, Maritime Mobile Service Identity (MMSI, which is a nine-digit code sent by the ship's radio communication system on its radio channel that can uniquely identify various stations and group call stations) and other information that can be used to describe its identity. Assume that the target has a total of N+1 data points.

[0021] In this embodiment, the dual vector feature library specifically includes a geographic vector library and a semantic vector library. The geographic vector library stores the average speed, speed standard deviation, average acceleration, total distance and straightness of the track of the known target. The semantic vector library stores the semantic vector obtained by text embedding of the description information of the known target.

[0022] Specifically, the construction method of the geographic vector library is as follows: For each target, calculate the target velocity vector: ; in, , , are the longitude, latitude and altitude at time t, , , They are t +1 The longitude, latitude, and altitude at time. t The value is [0, N ].

[0023] Calculate the target velocity from the velocity vector: ; The target acceleration value can be approximately calculated by the target velocity: ; The target average speed can be calculated from the target speed: ; The target speed standard deviation can be calculated from the target speed and the target average speed: ; The target average acceleration can be approximately calculated by the target acceleration: ; Calculate the total distance to the target using the target's latitude, longitude and altitude: ; Calculate the target straightness by the total target distance and the target starting and ending points: ; in, , , are the longitude, latitude and altitude of the starting point, , , are the longitude, latitude and altitude of the destination respectively.

[0024] From the above, we can get the target geographic vector: ; Will M By saving the known target geographic vectors to a database, a target geographic vector library can be obtained, wherein the database can adopt any existing database that can store the above-mentioned geographic vectors.

[0025] The construction method of the semantic vector library is as follows: Save the target ship name, MMSI number and identity information into a text document (.txt) format, and map the document to the vector space using the Embedding method to obtain a vector The embedding method is a vector mapping method, and its core spirit is to map text content into vectors in a fixed way. This method is not unique, and it is recommended to use the open source method "all-MiniLM-L6-v2" of Google.

[0026] Will M Vector Use the ChromaDB (semantic vector database) method to save it as a database file. You can get the semantic vector library. The ChromaDB (semantic vector database) method is not unique, but it is a common method in the industry.

[0027] Step 2: Obtain the location information and description information of the target to be analyzed and construct a dual-vector query feature.

[0028] The location information and description information of the target to be analyzed in this step are consistent with those in step 1. The difference is that the amount of data of the known target is large, while the amount of data of the target to be analyzed is small, and there may be missing items.

[0029] The construction method of the dual vector query feature is basically the same as step 1, except that only the geographic vector and semantic vector No need to create a database.

[0030] In order to distinguish known targets from targets to be analyzed, in this embodiment, the elements in the dual-vector feature library are marked as , , mark the dual-vector query feature of the target to be analyzed as , . q , d They represent the target to be analyzed and the known target respectively.

[0031] Step 3: Perform similarity calculation based on the dual-vector query features and the dual-vector feature library to obtain the final similarity between the target to be analyzed and the known target.

[0032] Specifically, the similarity calculation process is as follows: For a target to be analyzed q , traverse all the M targets and perform similarity calculation. d= [1, M ].

[0033] For each and , perform geographic similarity calculation: ; in: ; in , , , , They are the average speed, speed standard deviation, average acceleration, total distance and straightness of the target to be analyzed. , , , , They are the average speed, speed standard deviation, average acceleration, total distance and straightness of the known target.

[0034] For each and Calculate semantic similarity: ; For the target q to be analyzed, obtain: The top K targets with the highest geographical similarity: ; The top K targets with the highest semantic similarity: ; for and For each target in, construct a cross-similarity matrix : ; ; ; Where i and j are positive integers in [1, K]. In a specific implementation, K can generally be 5. The superscript T represents transposition. Indicates known target and The geographical similarity between Indicates known target and The calculation of the geographic similarity and semantic similarity between known targets can be found in the above formula and will not be repeated here.

[0035] Step 4: Enable the big model service, use the system prompt words to initialize the big model, and obtain the big model question and answer framework.

[0036] In this step, enabling big model services mainly includes enabling big model services such as Zhipu Qingyan and Tongyi Qianwen. The specific big model is not limited here, as long as it has basic conversation understanding capabilities. Among them, the big model service is a natural language processing model based on deep learning training, which can understand and generate text that conforms to the context.

[0037] The system prompt words are text inputs that provide behavioral guidance for the large model and are used to standardize the output behavior of the model. The system prompt words used in this embodiment are: "From now on, you need to generate answers based on the similarity calculation results combined with the context and summarize them. You cannot generate answers arbitrarily. The target to be analyzed is: <location information and description information of the target to be analyzed>. The target situation is as follows: 1. Geographic similarity matching situation: 2. Semantic similarity matching: . 3. Cross similarity matrix: Based on this information, you need to: 1. Identify target behavior patterns. 2. Mining potential associations. After enabling the big model service, load the big model question-and-answer framework. The loading method can refer to the LangChain method and is not limited here.

[0038] Step 5: Input the final similarity calculation result obtained in step 3 into the dialogue template in the large model question and answer framework obtained in step 4 to obtain the output result of the large model question and answer.

[0039] The dialogue template input into the large model question-answering framework obtained in step 4 is to fill in the geographical similarity matching situation obtained in step 3 In the example, fill in the semantic similarity matching situation In , fill the cross-similarity matrix into The large model can then generate output results based on the above information.

[0040] Among them, the large model needs to have a certain level of intelligence, that is: it can recognize basic semantic logical relationships, and will not generate divergent content or fail to communicate normally; it can recognize track information and will not be insensitive to digital content; it can recognize longitude and latitude information, and can roughly describe the real location it represents based on the longitude and latitude information.

[0041] Based on the same inventive concept, an embodiment of the present invention discloses a civil track analysis system based on hybrid vector retrieval enhancement, comprising: A feature library construction module is used to obtain location information and description information of multiple known targets and construct a dual-vector feature library; the dual-vector feature library includes a geographic vector library and a semantic vector library; the geographic vector library stores the average speed, speed standard deviation, average acceleration, total distance and straightness of the track of the known target; the semantic vector library stores the semantic vector obtained by text embedding of the description information of the known target; the description information at least includes the identity information of the known target; A query feature construction module, used to obtain location information and description information of the target to be analyzed, and to construct a dual-vector query feature; the dual-vector query feature includes a geographic vector query feature and a semantic vector query feature; A similarity calculation module is used to perform similarity calculation based on the dual-vector query feature and the dual-vector feature library to obtain the final similarity between the target to be analyzed and the known target; The track analysis module is used to enable the big model service, initialize the big model using the system prompt words, and obtain the big model question and answer framework; and input the final similarity calculation result obtained by the similarity calculation module into the big model question and answer framework to obtain the output result of the big model question and answer framework.

[0042] An embodiment of the present invention also discloses a computer system, including a memory, a processor, and a computer program / instruction stored in the memory and executable on the processor. When the computer program / instruction is executed by the processor, the steps of the civil track analysis method based on hybrid vector retrieval enhancement are implemented.

[0043] The embodiment of the present invention further discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the civil track analysis method based on hybrid vector retrieval enhancement.

Claims

1. A civil track analysis method based on hybrid vector retrieval enhancement, characterized in that: The steps include: Step 1: Acquire location information and description information of multiple known targets and construct a dual-vector feature library; the dual-vector feature library includes a geographic vector library and a semantic vector library; the geographic vector library stores the average speed, speed standard deviation, average acceleration, total distance and straightness of the track of the known target; the semantic vector library stores the semantic vector obtained by text embedding of the description information of the known target; the description information at least includes the identity information of the known target; Step 2: Obtain the location information and description information of the target to be analyzed and construct a dual-vector query feature; The dual-vector query feature includes a geographic vector query feature and a semantic vector query feature; Step 3: Calculate the similarity based on the dual-vector query feature and the dual-vector feature library to obtain the final similarity between the target to be analyzed and the known target; Step 4: Enable the big model service, use the system prompt words to initialize the big model, and obtain the big model question-answering framework; Step 5: Input the final similarity calculation result obtained in step 3 into the dialogue template in the large model question and answer framework obtained in step 4 to obtain the output result of the large model question and answer.

2. According to claim 1, a civil track analysis method based on hybrid vector retrieval enhancement is characterized in that: According to the timestamp and longitude and latitude of the target track data, or the timestamp, longitude and latitude and altitude, the target speed and acceleration are calculated, and then the average speed, average acceleration and speed standard deviation of the target are calculated; The total distance is calculated based on the longitude and latitude of the target track data, or the longitude and latitude and altitude, and then the straightness is calculated by combining the starting point and the end point.

3. The method for civil track analysis based on hybrid vector retrieval enhancement according to claim 1 is characterized in that: The calculation results of the final similarity between the target to be analyzed and the known target include: a preset number of target sets with the highest geographical similarity, a preset number of target sets with the highest semantic similarity, and a cross-similarity matrix constructed based on the two sets.

4. The method for civil track analysis based on hybrid vector retrieval enhancement according to claim 3 is characterized in that: set up is the set of top K targets with the highest geographical similarity, is the top K target set with the highest semantic similarity. and For each target in, construct the cross-similarity matrix for: ; ; ; The superscript T indicates transposition. Indicates known target and The geographical similarity between Indicates known target and The semantic similarity between them, i∈[1,K].

5. The method for civil track analysis based on hybrid vector retrieval enhancement according to claim 3 is characterized in that: For the target to be analyzed q and known targets d , based on geographic vectors and The geographic similarity is calculated according to the following formula: ; ; in , , , , They are the average speed, speed standard deviation, average acceleration, total distance and straightness of the target to be analyzed. , , , , They are the average speed, speed standard deviation, average acceleration, total distance and straightness of the known target.

6. The method for civil track analysis based on hybrid vector retrieval enhancement according to claim 3 is characterized in that: For the target to be analyzed q and known targets d , based on semantic vector and The semantic similarity is calculated according to the following formula: ; in Indicates the magnitude of the vector to be calculated.

7. A civil track analysis system based on hybrid vector retrieval enhancement, characterized in that: include: A feature library construction module is used to obtain the location information and description information of multiple known targets and construct a dual-vector feature library; The dual vector feature library includes a geographic vector library and a semantic vector library; the geographic vector library stores the average speed, speed standard deviation, average acceleration, total distance and straightness of the track of the known target; the semantic vector library stores the semantic vector obtained by text embedding of the description information of the known target; the description information at least includes the identity information of the known target; The query feature construction module is used to obtain the location information and description information of the target to be analyzed and construct a dual-vector query feature; The dual-vector query feature includes a geographic vector query feature and a semantic vector query feature; A similarity calculation module is used to perform similarity calculation based on the dual-vector query feature and the dual-vector feature library to obtain the final similarity between the target to be analyzed and the known target; The track analysis module is used to enable the large model service, initialize the large model using the system prompt words, and obtain the large model question-answering framework; And the final similarity calculation result obtained by the similarity calculation module is input into the large model question answering framework to obtain the output result of the large model question answering framework.

8. The civil track analysis system based on hybrid vector retrieval enhancement according to claim 7 is characterized in that: The calculation results of the final similarity between the target to be analyzed and the known target include: a preset number of target sets with the highest geographical similarity, a preset number of target sets with the highest semantic similarity, and a cross-similarity matrix constructed based on the two sets.

9. A computer system comprising a memory, a processor, and a computer program / instruction stored in the memory and executable on the processor, characterized in that: When the computer program / instructions are executed by a processor, the steps of a civil track analysis method based on hybrid vector retrieval enhancement according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of a civil track analysis method based on hybrid vector retrieval enhancement according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Reading understanding intelligent question and answer method based on RPR fusion model

    CN114064871A

  • Question decomposition type semantic parsing method fusing fact text

    CN114841170A

  • Multi-mode spatio-temporal trajectory data processing method, device, equipment, medium and product

    CN118410303A

  • Aviation industry traffic data processing method and system based on large model

    CN118800102A

  • Text information processing method, system and device, and non-volatile readable storage medium

    WO2024199145A1