Methods, systems, electronic devices, and storage media for obtaining vessel port sequence information

By obtaining historical port berthing records of ships and using mobile window technology to generate port sequences, relevant port information can be determined, thus overcoming the barriers to obtaining ship port sequence information and achieving accurate port sequence information acquisition.

CN120014884BActive Publication Date: 2025-11-14YIHAILAN (BEIJING) DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510124617.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-26
Publication Date
2025-11-14
Estimated Expiration
2045-01-26

AI Technical Summary

Technical Problem

Obtaining port sequence information for vessels is difficult due to significant barriers; ordinary users often struggle to access the port sequence information for different vessel types and routes.

Method used

By acquiring historical port berthing records of ships, multiple port sequences of different preset orders are generated using moving window technology. The relevant sequences are determined and port information is extracted to form ship port sequence information.

Benefits of technology

This breakthrough has solved the barriers to obtaining vessel port sequence information, enabling accurate acquisition of such information and reducing the difficulty of information acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120014884B_ABST
    Figure CN120014884B_ABST
Patent Text Reader

Abstract

This invention proposes a method, system, electronic device, and storage medium for acquiring ship port sequence information. The method includes: acquiring a historical port berthing record table of ships, wherein the port berthing record table includes a first port sequence; generating multiple second port sequences based on the first port sequence; determining whether each second port sequence is related to the first port sequence; if the second port sequence is related to the first port sequence, determining a preset order corresponding to the second port sequence; sequentially acquiring the preset order of port names from the first port sequence and forming a third port sequence; and using the third port sequence and the port information corresponding to the multiple port names in the third port sequence as the ship port sequence information. This invention acquires ship port sequence information through a time-series autoregressive test method, solving the problem of significant barriers to acquiring ship port sequence information in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of marine transportation technology, and more specifically, to a method and system for acquiring ship port sequence information, an electronic device, and a storage medium. Background Technology

[0002] In related technologies, vessel port sequences are generally obtained through ship owners. However, there are numerous ship owners worldwide, and different ship types and routes have many customary port sequences. The customary port sequences of different ships are not necessarily displayed on the ship company's official website. For ordinary users, the barrier to obtaining information on vessel port sequences is relatively large. Summary of the Invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0004] Therefore, the first aspect of the present invention proposes a method for obtaining ship port sequence information.

[0005] A second aspect of the present invention proposes a system for acquiring ship port sequence information.

[0006] A third aspect of the present invention provides an electronic device.

[0007] A fourth aspect of the present invention provides a storage medium.

[0008] In view of the above, according to a first aspect of the present invention, a method for obtaining ship port sequence information is proposed, comprising: obtaining a historical port berthing record table of ships, wherein the port berthing record table includes a first port sequence, the first port sequence including a plurality of sequentially arranged port names; generating a plurality of second port sequences according to the first port sequence, wherein the second port sequence is a port sequence formed by moving the plurality of sequentially arranged port names in the first port sequence according to a preset order, and the preset order corresponding to each second port sequence is different; determining whether each second port sequence is related to the first port sequence; if the second port sequence is related to the first port sequence, determining the preset order corresponding to the second port sequence; obtaining a preset order of port names in the first port sequence in sequence and forming a third port sequence; and using the third port sequence and the port information corresponding to the plurality of port names in the third port sequence as ship port sequence information.

[0009] The method for obtaining ship port sequence information provided by this invention mainly includes: firstly, obtaining a historical port berthing record table for ships, wherein the port berthing record table includes a first port sequence, in which multiple port names are arranged in a preset order, which can be sorted according to the arrival and departure times of the ships, and the port names in the first port sequence can be repeated. That is to say, the historical port berthing record table records the ports that ships have berthed during their operation over a past period. After obtaining the historical port berthing record table, multiple second port sequences are generated according to the first port sequence, wherein the second port sequence is a port sequence composed of multiple sequentially arranged port names in the first port sequence after being moved according to a preset order, and the preset order corresponding to each second port sequence is different. That is to say, a moving window technique can be used to process the first port sequence to obtain multiple second port sequences. For example, the preset order can range from order 1 to order 30, and the Nth port in the first port sequence is the same as the NKth port in the second port sequence, where K is the preset order corresponding to the second port sequence. After obtaining multiple second port sequences, it is determined whether each second port sequence is related to the first port sequence. Specifically, it is determined whether the port names in the same row of the second and first port sequences are the same. If the port names are the same, the second port sequence is related to the first port sequence; otherwise, they are not. Based on the existence of a second port sequence related to the first port sequence, a preset order is determined for that second port sequence. If multiple second port sequences are related to the first port sequence, a preset order is determined for each related second port sequence, and then the least common multiple (LCM) among these preset orders is calculated. After obtaining the preset order or LCM, the preset number or LCM number of port names are sequentially obtained from the first port sequence, and these port names are arranged in the order of the first port sequence to form a third port sequence. Finally, the third port sequence and the port information corresponding to the multiple port names in the third port sequence are used as the vessel's port sequence information.In this invention, the historical port berthing records of ships are first obtained. Then, a first port sequence is obtained based on the port berthing records. Next, a moving window technique is used to generate multiple second port sequences with different preset orders based on the first port sequence. Then, it is determined whether each second port sequence is related to the first port sequence. When a second port sequence is related to the first port sequence, the preset order of the second port sequence related to the first port sequence is determined. Finally, the port names of the preset order are obtained sequentially from the first port sequence to form a third port sequence. Finally, the ship's port sequence information is obtained based on the port names and corresponding port information in the third port sequence, thereby realizing the acquisition of ship port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0010] The method for obtaining ship port sequence information according to the present invention may also have the following technical features:

[0011] In some technical solutions, optionally, the step of determining whether each second port sequence is related to the first port sequence includes: calculating a first distance value between two ports located at the same position in the second port sequence and the first port sequence; mapping the first distance value to a preset interval to obtain a second distance value; calculating the average value among multiple second distance values ​​corresponding to each second port sequence; and determining whether the second port sequence is related to the first port sequence based on the average value.

[0012] In this technical solution, the steps for determining whether each second port sequence is related to the first port sequence include: First, calculating the first distance value between two ports located at the same position in both the second and first port sequences. Since ports are not numbers and cannot be added or subtracted, correlation calculation is impossible; therefore, the distance value becomes the port distance value. After obtaining the first distance value, since the distance value is too large to accurately determine the correlation, the first distance value can be mapped to a preset interval to obtain a second distance value. The preset interval can be 0-1. The smaller the first distance value between two ports, the closer the second distance value is to 1; the larger the first distance value between two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all port names in each second port sequence, calculating the average of the multiple second distance values ​​corresponding to each second port sequence, and finally determining whether each port sequence is related to the first port sequence based on the average value corresponding to each second port sequence. In this application, a first distance value is calculated between ports located at the same position in the second port sequence and the first port sequence. Then, the first distance value is mapped to the 0-1 interval through a function. The average value of the 0-1 interval obtained for each second port sequence is calculated. Finally, the correlation between the second port sequence and the first port sequence is determined based on the average value, thereby realizing the calculation of whether the first port sequence and the second port sequence are related.

[0013] In some technical solutions, optionally, the step of determining whether the second port sequence is related to the first port sequence based on the average value includes: determining the maximum value among multiple average values; comparing the maximum value with a preset threshold; determining that the second port sequence corresponding to the maximum value is related to the first port sequence based on the maximum value being greater than or equal to the preset threshold; and determining that the vessel has no habitual port sequence based on the maximum value being less than the preset threshold.

[0014] In this technical solution, the step of determining whether the second port sequence is related to the first port sequence based on the average value includes: after obtaining the average value corresponding to each second port sequence, comparing multiple average values ​​to determine the maximum value, and then comparing the maximum value with a preset threshold. If the maximum value is greater than or equal to the preset threshold, it indicates that the second port sequence corresponding to the maximum value is related to the first port sequence; if the maximum value is less than the preset value, it indicates that none of the multiple second port sequences is related to the first port sequence, thus indicating that the ship has no habitual port sequence, that is, the ship does not have a fixed port of call.

[0015] In some technical solutions, the step of obtaining the ship's historical port berthing record table may optionally include: obtaining first data information from the ship's Automatic Identification System (AIS); obtaining port location information; and obtaining the port berthing record table based on the first data information and the port location information, wherein the port berthing record table includes ship identity information, port information, and the ship's arrival and departure times.

[0016] In this technical solution, the steps for obtaining historical port berthing records for vessels include: first, acquiring the vessel's AIS data (the initial data from its Automatic Identification System, AIS); then, acquiring the location information for each port; and finally, generating historical port berthing record data (the port berthing record table) based on the AIS data and port location information. The port berthing record table includes the following fields: vessel identity information, port information, and arrival / departure times at the port. Generating historical port berthing records using AIS data and port location information ensures the accuracy of the port information in the port berthing record table.

[0017] According to a second aspect of the present invention, a system for acquiring ship port sequence information is provided, comprising: a first acquisition module for acquiring a historical port berthing record table of ships, wherein the port berthing record table includes a first port sequence, the first port sequence including multiple sequentially arranged port names; a first generation module for generating multiple second port sequences based on the first port sequence, wherein the second port sequence is a port sequence formed by moving multiple sequentially arranged port names in the first port sequence according to a preset order, and the preset order corresponding to each second port sequence is different; a first determination module for determining whether each second port sequence is related to the first port sequence; a first processing module for determining the preset order corresponding to the second port sequence when the second port sequence is related to the first port sequence; a second processing module for acquiring a preset order of port names in the first port sequence in sequence and forming a third port sequence; and a third processing module for using the third port sequence and the port information corresponding to the multiple port names in the third port sequence as ship port sequence information.

[0018] The ship port sequence information acquisition system provided by this invention mainly includes: a first acquisition module, a first generation module, a first determination module, a first processing module, a second processing module, and a third processing module. The first acquisition module can acquire historical port berthing records of ships. These records include a first port sequence, in which multiple port names arranged in a preset order, such as by ship arrival and departure times, are listed. Port names in the first port sequence can be duplicated. In other words, the historical port berthing records document the ports that ships have berthed during their operations over a past period. After obtaining the port berthing records of the ships' history, the first generation module generates multiple second port sequences based on the first port sequence. Each second port sequence is a port sequence formed by moving the sequentially arranged port names from the first port sequence according to a preset order. The preset order for each second port sequence is different; that is, a moving window technique can be used to process the first port sequence to obtain multiple second port sequences. For example, the preset order can range from 1 to 30. The Nth port in the first port sequence is the same as the NKth port in the second port sequence, where K is the preset order corresponding to the second port sequence. After obtaining multiple second port sequences, the first determining module determines whether each second port sequence is related to the first port sequence, specifically whether the port names in the same row of the second and first port sequences are the same. If the port names in the same row are the same, the second port sequence is related to the first port sequence; if the port names in the same row are different, the second port sequence is not related to the first port sequence. The first processing module determines the preset order of a second port sequence if it finds a second port sequence related to the first port sequence among multiple second port sequences. If multiple second port sequences are related to the first port sequence, the module determines the preset order for each related second port sequence and calculates the least common multiple (LCM) among these preset orders. After obtaining the preset order or LCM, the second processing module sequentially retrieves the preset order or LCM number of port names from the first port sequence and arranges these port names into a third port sequence according to their order in the first port sequence. Finally, the third processing module uses the third port sequence and the port information corresponding to the multiple port names in the third port sequence as the vessel's port sequence information.In this invention, the historical port berthing records of ships are first obtained. Then, a first port sequence is obtained based on the port berthing records. Next, a moving window technique is used to generate multiple second port sequences with different preset orders based on the first port sequence. Then, it is determined whether each second port sequence is related to the first port sequence. When a second port sequence is related to the first port sequence, the preset order of the second port sequence related to the first port sequence is determined. Finally, the port names of the preset order are obtained sequentially from the first port sequence to form a third port sequence. Finally, the ship's port sequence information is obtained based on the port names and corresponding port information in the third port sequence, thereby realizing the acquisition of ship port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0019] In some technical solutions, optionally, the first determining module includes: a first calculation module, which is used to calculate a first distance value between two ports located at the same position in the second port sequence and the first port sequence respectively; a mapping module, which is used to map the first distance value to a preset interval to obtain a second distance value; a second calculation module, which is used to calculate the average value among multiple second distance values ​​corresponding to each second port sequence respectively; and a fourth processing module, which is used to determine whether the second port sequence and the first port sequence are related based on the average value.

[0020] In this technical solution, the first calculation module includes: a first calculation module, a mapping module, a second calculation module, and a fourth processing module. The first calculation module calculates the first distance value between two ports located at the same position in the second port sequence and the first port sequence. Since ports are not numbers and cannot be added or subtracted, correlation calculations are not possible; therefore, the distance value becomes the port distance value. After obtaining the first distance value, because the distance value is too large to accurately determine the correlation, the mapping module maps the first distance value to a preset interval to obtain a second distance value. The preset interval can be 0-1. The smaller the first distance value between two ports, the closer the second distance value is to 1; the larger the first distance value between two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all port names in each second port sequence, the second calculation module calculates the average of the multiple second distance values ​​corresponding to each second port sequence. Finally, the fourth processing module determines whether each port sequence is correlated with the first port sequence based on the average value corresponding to each second port sequence. In this application, a first distance value is calculated between ports located at the same position in the second port sequence and the first port sequence. Then, the first distance value is mapped to the 0-1 interval through a function. The average value of the 0-1 interval obtained for each second port sequence is calculated. Finally, the correlation between the second port sequence and the first port sequence is determined based on the average value, thereby realizing the calculation of whether the first port sequence and the second port sequence are related.

[0021] In some technical solutions, the fourth processing module includes: a fifth processing module, which is used to determine the maximum value among multiple average values; a comparison module, which is used to compare the maximum value with a preset threshold; a sixth processing module, which is used to determine that the second port sequence corresponding to the maximum value is related to the first port sequence based on the maximum value being greater than or equal to the preset threshold; and a seventh processing module, which is used to determine that the ship has no habitual port sequence based on the maximum value being less than the preset threshold.

[0022] In this technical solution, the fourth processing module includes a fifth processing module, a comparison module, a sixth processing module, and a seventh processing module. Specifically, after obtaining the average value corresponding to each second port sequence, multiple average values ​​are compared. The fifth processing module determines the maximum value, and the comparison module compares the maximum value with a preset threshold. The sixth processing module determines that if the maximum value is greater than or equal to the preset threshold, it indicates that the second port sequence corresponding to that maximum value is related to the first port sequence. The seventh processing module determines that if the maximum value is less than the preset threshold, it indicates that none of the multiple second port sequences is related to the first port sequence, thus indicating that the vessel has no habitual port sequence, i.e., the vessel does not have a fixed port of call.

[0023] In some technical solutions, optionally, the first acquisition module includes: a second acquisition module, which is used to acquire first data information from the vessel's Automatic Identification System; a third acquisition module, which is used to acquire port location information; and an eighth processing module, which is used to acquire a port berthing record table based on the first data information and the port location information, wherein the port berthing record table includes vessel identity information, port information, and the vessel's arrival and departure times.

[0024] In this technical solution, the first acquisition module includes a second acquisition module, a third acquisition module, and an eighth processing module. The second acquisition module acquires the first data information from the vessel's Automatic Identification System (AIS), i.e., the vessel's AIS data. The third acquisition module then acquires the location information of each port. Finally, the eighth processing module generates historical berthing record data for the vessel, i.e., a port berthing record table, based on the AIS data and port location information. The port berthing record table includes the following fields: vessel identity information, port information, and the vessel's arrival and departure times at the port. Generating a historical port berthing record table using AIS data and port location information ensures the accuracy of the port information in the port berthing record table.

[0025] According to a third aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for acquiring ship port sequence information as described above.

[0026] The electronic device provided by the present invention, when the processor executes the computer program, implements the steps of the above-mentioned method for obtaining ship port sequence information, and can achieve the technical effects of any of the above technical solutions, which will not be elaborated here.

[0027] According to a fourth aspect of the invention, a storage medium is provided on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the method for obtaining ship port sequence information as described above are implemented.

[0028] The storage medium provided by this invention, when the computer program is executed by the processor, implements the steps of the above-mentioned method for obtaining ship port sequence information, and can achieve the technical effects of any of the above technical solutions, which will not be elaborated here.

[0029] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description

[0030] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0031] Figure 1 One of the flowcharts illustrating a method for obtaining ship port sequence information according to an embodiment of the present invention is shown;

[0032] Figure 2 The diagram illustrates a step in a method for obtaining ship port sequence information according to an embodiment of the present invention, which involves determining whether each second port sequence is related to a first port sequence.

[0033] Figure 3 The diagram illustrates a step in a method for obtaining ship port sequence information according to an embodiment of the present invention: determining whether a second port sequence is related to a first port sequence based on an average value.

[0034] Figure 4 This diagram illustrates a step in the method for obtaining ship port sequence information according to an embodiment of the present invention: obtaining a historical port berthing record table of a ship.

[0035] Figure 5 A second flowchart illustrating a method for obtaining ship port sequence information according to an embodiment of the present invention is shown.

[0036] Figure 6 This diagram illustrates one of the principles of a method for obtaining ship port sequence information according to an embodiment of the present invention.

[0037] Figure 7 The second schematic diagram illustrates the principle of a method for obtaining ship port sequence information according to an embodiment of the present invention.

[0038] Figure 8 A schematic block diagram of a ship port sequence information acquisition system according to an embodiment of the present invention is shown;

[0039] Figure 9 A schematic block diagram of the first determining module in a ship port sequence information acquisition system according to an embodiment of the present invention is shown.

[0040] Figure 10 A schematic block diagram of the fourth processing module in a ship port sequence information acquisition system according to an embodiment of the present invention is shown.

[0041] Figure 11 A schematic block diagram of the first acquisition module in a ship port sequence information acquisition system according to an embodiment of the present invention is shown.

[0042] Figure 12 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. Detailed Implementation

[0043] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0044] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0045] Figure 1 A flowchart illustrating one embodiment of a method for obtaining ship port sequence information according to the present invention is shown. The method includes:

[0046] Step 102: Obtain the port berthing record table of the ship's history, wherein the port berthing record table includes a first port sequence, and the first port sequence includes multiple port names arranged in sequence;

[0047] Step 104: Generate multiple second port sequences based on the first port sequence. Each second port sequence is a port sequence formed by moving the port names in the first port sequence according to a preset order. Each second port sequence has a different preset order.

[0048] Step 106: Determine whether each second port sequence is related to the first port sequence;

[0049] Step 108: If the second port sequence is related to the first port sequence, determine the preset order corresponding to the second port sequence;

[0050] Step 110: Obtain the port names of a preset order in the first port sequence in sequence, and form the third port sequence;

[0051] Step 112: Use the third port sequence and the port information corresponding to multiple port names in the third port sequence as the ship port sequence information.

[0052] The method for obtaining ship port sequence information provided by this invention mainly includes: firstly, obtaining a historical port berthing record table of ships, wherein the port berthing record table includes a first port sequence, in which multiple port names are arranged in a preset order, which can be sorted according to the arrival and departure times of the ships, and the port names in the first port sequence can be repeated. That is to say, the historical port berthing record table of ships records the ports that ships have berthed during their operation in the past period. After obtaining the historical port berthing record table of ships, multiple second port sequences are generated according to the first port sequence, wherein the second port sequence is a port sequence composed of multiple sequentially arranged port names in the first port sequence after being moved according to a preset order, and the preset order corresponding to each second port sequence is different. That is to say, the moving window technique can be used to process the first port sequence to obtain multiple second port sequences. For example, the preset order can be in the range of 1 to 30, and the Nth port in the first port sequence is the same as the NKth port in the second port sequence, where K is the preset order corresponding to the second port sequence. For example, when the first port sequence is (A, B, C, D), if the preset order of the second port sequence is 1, then the second port sequence is (B, C, D, A); if the preset order of the second port sequence is 2, then the second port sequence is (C, D, A, B). After obtaining multiple second port sequences, it is determined whether each second port sequence is related to the first port sequence, that is, whether the port names in the same row of the second port sequence and the first port sequence are the same. If the port names in the same row of the second port sequence and the first port sequence are the same, then the second port sequence is related to the first port sequence; if the port names in the same row of the second port sequence and the first port sequence are different, then the second port sequence is not related to the first port sequence. Based on the existence of a second port sequence related to the first port sequence among the multiple second port sequences, the preset order corresponding to the second port sequence is determined; if there are multiple second port sequences related to the first port sequence, the preset order corresponding to each second port sequence related to the first port sequence is determined, and then the least common multiple of the multiple preset orders is calculated. After obtaining the preset order or least common multiple, the preset number of port names or the least common multiple are sequentially obtained from the first port sequence, and these port names are arranged into a third port sequence according to the order in the first port sequence. Finally, the third port sequence and the port information corresponding to the multiple port names in the third port sequence are used as the ship's port sequence information.In this invention, the historical port berthing records of ships are first obtained. Then, a first port sequence is obtained based on the port berthing records. Next, a moving window technique is used to generate multiple second port sequences with different preset orders based on the first port sequence. Then, it is determined whether each second port sequence is related to the first port sequence. When a second port sequence is related to the first port sequence, the preset order of the second port sequence related to the first port sequence is determined. Finally, the port names of the preset order are obtained sequentially from the first port sequence to form a third port sequence. Finally, the ship's port sequence information is obtained based on the port names and corresponding port information in the third port sequence, thereby realizing the acquisition of ship port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0053] Figure 2 The diagram illustrates a flowchart of a method for obtaining ship port sequence information according to an embodiment of the present invention, showing the steps of determining whether each second port sequence is related to a first port sequence; wherein, the steps of determining whether each second port sequence is related to the first port sequence include:

[0054] Step 202: Calculate the first distance value between two ports located at the same position in the second port sequence and the first port sequence, respectively;

[0055] Step 204: Map the first distance value to a preset interval to obtain the second distance value;

[0056] Step 206: Calculate the average value among the multiple second distance values ​​corresponding to each second port sequence;

[0057] Step 208: Determine whether the second port sequence is correlated with the first port sequence based on the average value.

[0058] In this embodiment, the step of determining whether each second port sequence is related to the first port sequence includes: First, calculating the first distance value between two ports located at the same position in the second port sequence and the first port sequence. Since ports are not numbers and cannot be added or subtracted, correlation calculation is not possible; therefore, the distance value becomes the distance value between ports. After obtaining the first distance value, since the distance value is too large to accurately determine the correlation, the first distance value can be mapped to a preset interval to obtain a second distance value. The preset interval can be the range of 0-1. The smaller the first distance value between two ports, the closer the second distance value is to 1; the larger the first distance value between two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all port names in each second port sequence, calculating the average of the multiple second distance values ​​corresponding to each second port sequence, and finally determining whether each port sequence is related to the first port sequence based on the average value corresponding to each second port sequence. In this application, a first distance value is calculated between ports located at the same position in the second port sequence and the first port sequence. Then, the first distance value is mapped to the 0-1 interval through a function. The average value of the 0-1 interval obtained for each second port sequence is calculated. Finally, the correlation between the second port sequence and the first port sequence is determined based on the average value, thereby realizing the determination of whether the first port sequence and the second port sequence are related.

[0059] Figure 3 The diagram illustrates a step in a method for obtaining ship port sequence information according to an embodiment of the present invention: determining whether a second port sequence is related to a first port sequence based on an average value. The step of determining whether a second port sequence is related to a first port sequence based on an average value includes:

[0060] Step 302: Determine the maximum value among multiple averages;

[0061] Step 304: Compare the maximum value with the preset threshold;

[0062] Step 306: Based on the maximum value being greater than or equal to a preset threshold, determine the correlation between the second port sequence corresponding to the maximum value and the first port sequence;

[0063] Step 308: Based on the fact that the maximum value is less than the preset threshold, determine that the ship has no habitual port sequence.

[0064] In this embodiment, the step of determining whether the second port sequence is related to the first port sequence based on the average value includes: after obtaining the average value corresponding to each second port sequence, comparing multiple average values ​​to determine the maximum value, and then comparing the maximum value with a preset threshold. If the maximum value is greater than or equal to the preset threshold, it indicates that the second port sequence corresponding to the maximum value is related to the first port sequence; if the maximum value is less than the preset value, it indicates that none of the multiple second port sequences is related to the first port sequence, thereby indicating that the ship has no habitual port sequence, that is, the ship does not have a fixed port of call.

[0065] Figure 4 The diagram illustrates a step in the method for obtaining ship port sequence information according to an embodiment of the present invention: obtaining a historical port berthing record table of ships. The step of obtaining the historical port berthing record table of ships includes:

[0066] Step 402: Obtain the first data information from the vessel's Automatic Identification System (AIS);

[0067] Step 404: Obtain port location information;

[0068] Step 406: Obtain the port berthing record table based on the first data information and port location information. The port berthing record table includes the vessel's identity information, port information, and the vessel's arrival and departure times.

[0069] In this embodiment, the step of obtaining the historical port berthing record table for a vessel includes: firstly, obtaining the first data information from the vessel's Automatic Identification System (AIS), namely the vessel's AIS data; then, obtaining the location information of each port. Finally, generating the historical berthing record data, i.e., the port berthing record table, based on the AIS data and the port location information. The port berthing record table includes the following fields: vessel identity information, port information, and the vessel's arrival and departure times at the port. Generating the historical port berthing record table for a vessel using AIS data and port location information ensures the accuracy of the port information in the port berthing record table.

[0070] Figure 5 A second flowchart illustrating a method for obtaining ship port sequence information according to an embodiment of the present invention is shown; wherein the method includes:

[0071] Step 502: Generate vessel call-off record;

[0072] Step 504: Generate new attachment sequences after moving windows of order 1 to 30 respectively;

[0073] Step 506: Calculate the correlation between the new sequence and the original sequence;

[0074] Step 508: Determine the optimal movement window size for a single vessel;

[0075] Step 510: Mining habitual port sequence data.

[0076] In this embodiment, AIS data and port location information are first used to generate historical call-in records for vessels, such as... Figure 6 As shown, the port call record data includes the following fields: vessel identity information, port information, and arrival / departure times. Then, new port call sequences are generated after moving windows of order 1 to 30. This involves adding a new data column to the original port call record table, denoted by the ports for moving windows of orders 1 to 30. This column's information is consistent with the original port information, but the port in the nth row is the port in the nkth row, where k is the moving order. Then, the correlation between the new sequence and the original sequence is calculated. Since ports are not numbers and cannot be added or subtracted, correlation calculations are not possible. Therefore, the values ​​are transformed into distances between ports, which are mapped to the 0-1 interval using a function. Figure 7 As shown. Then, the optimal moving window size for a single vessel is determined by calculating the average of the 0-1 values ​​obtained for each vessel at levels 1-30. The level with the largest mean exceeding the data cleaning threshold is the number of ports in the customary port sequence. If a vessel has the largest mean but does not exceed the data cleaning threshold, it is judged as non-liner shipping (no periodicity, no customary port sequence). Finally, the customary port sequence data is mined; that is, for vessels determined to have a customary port sequence, the port sequence within the moving window is taken as the customary port sequence. For example, as shown... Figure 7 As shown, it can be seen that the correlation is highest at lags of 4, 8, 12, 16, 20, 24, and 28. Therefore, when the scores are the same, the least common multiple of 4 is used, and the resulting combination order is (B, C, B, A).

[0077] Figure 8 A schematic block diagram of a ship port sequence information acquisition system according to an embodiment of the present invention is shown; wherein, the ship port sequence information acquisition system 80 includes:

[0078] The first acquisition module 802 is used to acquire the port berthing record table of the ship's history, wherein the port berthing record table includes a first port sequence, and the first port sequence includes multiple port names arranged in sequence;

[0079] The first generation module 804 is used to generate multiple second port sequences according to the first port sequence. The second port sequence is a port sequence formed by moving multiple sequentially arranged port names in the first port sequence according to a preset order, and the preset order corresponding to each second port sequence is different.

[0080] The first determining module 806 is used to determine whether each second port sequence is related to the first port sequence;

[0081] The first processing module 808 is used to determine the preset order corresponding to the second port sequence when the second port sequence is related to the first port sequence;

[0082] The second processing module 810 is used to sequentially obtain a preset number of port names in the first port sequence and form a third port sequence.

[0083] The third processing module 812 is used to use the third port sequence and the port information corresponding to multiple port names in the third port sequence as the ship port sequence information.

[0084] The ship port sequence information acquisition system 80 provided by this invention mainly includes: a first acquisition module 802, a first generation module 804, a first determination module 806, a first processing module 808, a second processing module 810, and a third processing module 812. The first acquisition module 802 can acquire historical port berthing records of ships. These records include a first port sequence, in which multiple port names arranged in a preset order, such as by ship arrival and departure times, are listed. Port names in the first port sequence can be repeated. In other words, the historical port berthing records document the ports that ships have berthed during their operations over a past period. After obtaining the port berthing record table of the ship's history, the first generation module 804 generates multiple second port sequences based on the first port sequence. Each second port sequence is a port sequence formed by moving the sequentially arranged port names from the first port sequence according to a preset order. The preset order for each second port sequence is different; that is, a moving window technique can be used to process the first port sequence to obtain multiple second port sequences. For example, the preset order can range from 1 to 30. The Nth port in the first port sequence is the same as the NKth port in the second port sequence, where K is the preset order corresponding to the second port sequence. After obtaining multiple second port sequences, the first determining module 806 determines whether each second port sequence is related to the first port sequence, that is, whether the port names in the same row of the second port sequence and the first port sequence are the same. If the port names in the same row of the second port sequence and the first port sequence are the same, then the second port sequence is related to the first port sequence; if the port names in the same row of the second port sequence and the first port sequence are different, then the second port sequence is not related to the first port sequence. The first processing module 808 determines the preset order corresponding to the second port sequence if a second port sequence related to the first port sequence exists among multiple second port sequences; if multiple second port sequences related to the first port sequence exist, it determines the preset order corresponding to each second port sequence related to the first port sequence, and then calculates the least common multiple among the multiple preset orders. After obtaining the preset order or least common multiple, the second processing module 810 sequentially obtains the preset order or least common multiple of port names in the first port sequence, and arranges these port names into a third port sequence according to the order in the first port sequence. Finally, the third processing module 812 uses the third port sequence and the port information corresponding to the multiple port names in the third port sequence as the ship's port sequence information.In this invention, the historical port berthing records of ships are first obtained. Then, a first port sequence is obtained based on the port berthing records. Next, a moving window technique is used to generate multiple second port sequences with different preset orders based on the first port sequence. Then, it is determined whether each second port sequence is related to the first port sequence. When a second port sequence is related to the first port sequence, the preset order of the second port sequence related to the first port sequence is determined. Finally, the port names of the preset order are obtained sequentially from the first port sequence to form a third port sequence. Finally, the ship's port sequence information is obtained based on the port names and corresponding port information in the third port sequence, thereby realizing the acquisition of ship port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0085] Figure 9 A schematic block diagram of a first calculation module in a ship port sequence information acquisition system according to an embodiment of the present invention is shown; wherein, the first determination module 806 includes:

[0086] The first calculation module 8062 is used to calculate the first distance value between two ports located at the same position in the second port sequence and the first port sequence, respectively.

[0087] The mapping module 8064 is used to map the first distance value to a preset interval to obtain the second distance value;

[0088] The second calculation module 8066 is used to calculate the average value among multiple second distance values ​​corresponding to each second port sequence;

[0089] The fourth processing module 8068 is used to determine whether the second port sequence is related to the first port sequence based on the average value.

[0090] In this embodiment, the first determining module 806 includes: a first calculation module 8062, a mapping module 8064, a second calculation module 8066, and a fourth processing module 8068. The first calculation module 8062 calculates the first distance value between two ports located at the same position in the second port sequence and the first port sequence. Since ports are not numbers and cannot be added or subtracted, correlation calculations are not possible; therefore, the distance value becomes the port distance value. After obtaining the first distance value, since the distance value is too large to accurately determine the correlation, the mapping module 8064 maps the first distance value to a preset interval to obtain a second distance value. The preset interval can be 0-1. The smaller the first distance value between two ports, the closer the second distance value is to 1; the larger the first distance value between two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all port names in each second port sequence, the second calculation module 8066 calculates the average value among the multiple second distance values ​​corresponding to each second port sequence. Finally, the fourth processing module 8068 determines whether each port sequence is correlated with the first port sequence based on the average value corresponding to each second port sequence. In this application, a first distance value is calculated between ports located at the same position in the second port sequence and the first port sequence. Then, the first distance value is mapped to the 0-1 interval through a function. The average value of the 0-1 interval obtained for each second port sequence is calculated. Finally, the correlation between the second port sequence and the first port sequence is determined based on the average value, thereby realizing the calculation of whether the first port sequence and the second port sequence are related.

[0091] Figure 10 A schematic block diagram of a fourth processing module in a ship port sequence information acquisition system according to an embodiment of the present invention is shown; wherein, the fourth processing module 8068 includes:

[0092] The fifth processing module 8070 is used to determine the maximum value among multiple average values;

[0093] Comparison module 8072 is used to compare the maximum value with a preset threshold;

[0094] The sixth processing module 8074 is used to determine whether the second port sequence corresponding to the maximum value is related to the first port sequence based on the maximum value being greater than or equal to a preset threshold.

[0095] The seventh processing module 8076 is used to determine that a ship has no habitual port sequence based on the maximum value being less than a preset threshold.

[0096] In this embodiment, the fourth processing module 8068 includes a fifth processing module 8070, a comparison module 8072, a sixth processing module 8074, and a seventh processing module 8076. After obtaining the average value corresponding to each second port sequence, multiple average values ​​are compared. The fifth processing module 8070 determines the maximum value, and the comparison module 8072 compares the maximum value with a preset threshold. The sixth processing module 8074 indicates that if the maximum value is greater than or equal to the preset threshold, the second port sequence corresponding to that maximum value is related to the first port sequence. The seventh processing module 8076 indicates that if the maximum value is less than a preset value, none of the multiple second port sequences is related to the first port sequence, thus indicating that the vessel has no habitual port sequence, i.e., the vessel does not have a fixed port of call.

[0097] Figure 11 A schematic block diagram of a first acquisition module in a ship port sequence information acquisition system according to an embodiment of the present invention is shown; wherein, the first acquisition module 802 includes:

[0098] The second acquisition module 8022 is used to acquire the first data information of the ship's Automatic Identification System;

[0099] The third acquisition module 8024 is used to acquire port location information;

[0100] The eighth processing module 8026 is used to obtain a port berthing record table based on the first data information and port location information. The port berthing record table includes vessel identity information, port information, and vessel arrival and departure times.

[0101] In this embodiment, the first acquisition module 802 includes a second acquisition module 8022, a third acquisition module 8024, and an eighth processing module 8026. The second acquisition module 8022 acquires the first data information from the vessel's Automatic Identification System (AIS), i.e., the vessel's AIS data. Then, the third acquisition module 8024 acquires the location information of each port. Finally, the eighth processing module 8026 generates historical berthing record data for the vessel, i.e., a port berthing record table, based on the AIS data and the port location information. The port berthing record table includes the following fields: vessel identity information, port information, and the vessel's arrival and departure times at the port. Generating a historical port berthing record table using AIS data and port location information ensures the accuracy of the port information in the port berthing record table.

[0102] Figure 12A schematic block diagram of an electronic device according to an embodiment of the present invention is shown; wherein, the electronic device 120 includes a memory 1202, a processor 1204, and a computer program stored in the memory 1202 and executable on the processor 1204, wherein the processor 1204 executes the computer program to implement the steps of the method for obtaining ship port sequence information as described above.

[0103] The electronic device 120 provided by the present invention, when the processor 1204 executes the computer program, implements the steps of the above-described method for obtaining ship port sequence information, and can achieve the technical effects of any of the above embodiments, which will not be repeated here.

[0104] One embodiment of the present invention provides a storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of the method for obtaining ship port sequence information as described above.

[0105] The storage medium provided by the present invention, when the computer program is executed by the processor, implements the steps of the above-described method for obtaining ship port sequence information, and can achieve the technical effects of any of the above embodiments, which will not be repeated here.

[0106] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, unless otherwise expressly specified and limited. The terms "connection," "installation," and "fixing," etc., should be interpreted broadly. For example, "connection" can mean a fixed connection, a detachable connection, or an integral connection; it can mean a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0107] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0108] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for obtaining ship port sequence information, characterized in that, include: Obtain a port berthing record table of the ship's history, wherein the port berthing record table includes a first port sequence, the first port sequence including multiple port names arranged in sequence; Multiple second port sequences are generated based on the first port sequence, wherein each second port sequence is a port sequence formed by moving multiple sequentially arranged port names in the first port sequence according to a preset order, and the preset order corresponding to each second port sequence is different. Determine whether each of the second port sequences is related to the first port sequence; When the second port sequence is related to the first port sequence, the preset order corresponding to the second port sequence is determined as the target order; The target number of port names are obtained sequentially from the first port sequence and then combined to form a third port sequence; The third port sequence and the port information corresponding to multiple port names in the third port sequence are used as the ship port sequence information; The step of determining whether each second port sequence is related to the first port sequence includes: Calculate the first distance value between two ports located at the same sequence position in the second port sequence and the first port sequence, respectively; The first distance value is mapped to a preset interval to obtain the second distance value; Calculate the average value among the multiple second distance values ​​corresponding to each second port sequence; The correlation between the second port sequence and the first port sequence is determined based on the average value. The step of determining whether the second port sequence is related to the first port sequence based on the average value includes: Determine the maximum value among the multiple said averages; The maximum value is compared with a preset threshold. Based on the fact that the maximum value is greater than or equal to the preset threshold, it is determined that the second port sequence corresponding to the maximum value is related to the first port sequence; Based on the fact that the maximum value is less than the preset threshold, it is determined that the vessel has no habitual port sequence.

2. The method for obtaining ship port sequence information according to claim 1, characterized in that, The steps for obtaining the port berthing record of the vessel's history include: Obtain first data information from the Automatic Identification System (AIS) of the vessel; Obtain port location information; The port berthing record table is obtained based on the first data information and the port location information. The port berthing record table includes the vessel's identity information, port information, and the vessel's arrival and departure times.

3. A system for acquiring ship port sequence information, characterized in that, include: The first acquisition module is used to acquire a historical port berthing record table of ships, wherein the port berthing record table includes a first port sequence, and the first port sequence includes multiple port names arranged in sequence; A first generation module is configured to generate multiple second port sequences based on the first port sequence, wherein the second port sequence is a port sequence formed by moving multiple sequentially arranged port names in the first port sequence according to a preset order, and the preset order corresponding to each second port sequence is different. A first determining module is configured to determine whether each second port sequence is related to the first port sequence. A first processing module is configured to determine, when the second port sequence is related to the first port sequence, the preset order corresponding to the second port sequence as the target order; The second processing module is used to sequentially obtain the target number of port names in the first port sequence and form a third port sequence. The third processing module is used to use the third port sequence and port information corresponding to multiple port names in the third port sequence as ship port sequence information. The first determining module includes: A first calculation module is used to calculate a first distance value between two ports located at the same sequence position in the second port sequence and the first port sequence, respectively. A mapping module is used to map the first distance value to a preset interval to obtain a second distance value; The second calculation module is used to calculate the average value among multiple second distance values ​​corresponding to each second port sequence; The fourth processing module is used to determine whether the second port sequence is related to the first port sequence based on the average value. The fourth processing module includes: The fifth processing module is used to determine the maximum value among the multiple average values; A comparison module is used to compare the maximum value with a preset threshold. The sixth processing module is used to determine, based on the maximum value being greater than or equal to the preset threshold, that the second port sequence corresponding to the maximum value is related to the first port sequence; The seventh processing module is used to determine that the ship has no habitual port sequence based on the fact that the maximum value is less than the preset threshold.

4. The system for acquiring ship port sequence information according to claim 3, characterized in that, The first acquisition module includes: The second acquisition module is used to acquire the first data information from the Automatic Identification System of the vessel. The third acquisition module is used to acquire port location information; The eighth processing module is used to obtain the port berthing record table based on the first data information and the port location information, wherein the port berthing record table includes vessel identity information, port information and the vessel's arrival and departure times.

5. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method for obtaining ship port sequence information as described in claim 1 or 2.

6. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for obtaining ship port sequence information as described in claim 1 or 2.

Citation Information

Patent Citations

  • Port alignment method based on ship AIS and shipping date data

    CN115471390A

  • Model training method and device and driving behavior prediction method

    CN118297129A