Ship port order information acquisition method and system, electronic equipment and storage medium

By obtaining and processing the port docking record table of ship history and generating and analyzing multiple port sequences, the problem of large barriers to obtaining ship port sequence information is solved, and convenient access to ship port sequence information is achieved.

CN120014884AActive Publication Date: 2025-05-16YIHAILAN (BEIJING) DATA TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, there are relatively large barriers to obtaining ship port sequence information, and it is difficult for ordinary users to obtain custom port sequence information for different ship types.

Method used

By obtaining the port docking record table of ship history, multiple second port sequences are generated, and based on the correlation between these sequences and the first port sequence, a preset order is determined, and a third port sequence is finally formed to obtain ship port sequence information.

Benefits of technology

It realizes effective acquisition of ship port sequence information, reduces acquisition barriers, and provides a more convenient way to obtain information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120014884A_ABST
    Figure CN120014884A_ABST
Patent Text Reader

Abstract

The invention provides a ship port order information acquisition method and system, electronic equipment and a storage medium. The ship port order information acquisition method comprises the steps that a historical port docking record table of ships is acquired, and the port docking record table comprises a first port sequence; generating a plurality of second port sequences according to the first port sequence; respectively determining whether each second port sequence is related to the first port sequence; under the condition that the second port sequence is related to the first port sequence, determining a preset order corresponding to the second port sequence; sequentially acquiring port names of a preset order in the first port sequence, and forming a third port sequence; and taking 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. According to the invention, the port order information of the ship is obtained through the time sequence autoregression test method, and the problem that the ship port order information obtaining barrier is large in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ship transportation technology, and in particular to a method and system for acquiring ship port sequence information, an electronic device and a storage medium. Background Art

[0002] In related technologies, ship port sequences are generally obtained through ship owners. However, there are many ship owners in the world, and there are many customary port sequences for different ship types and routes. The customary port sequences of different ships may not be displayed on the official website of the shipping company. For ordinary users, the barrier to obtaining information on ship 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] To this end, a first aspect of the present invention proposes a method for acquiring ship port sequence information.

[0005] The second aspect of the present invention provides 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 this, according to a first aspect of the present invention, a method for obtaining ship port sequence information is proposed, comprising: obtaining a port call record table of a ship's history, wherein the port call record table includes a first port sequence, and the first port sequence includes 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 composed of a plurality of sequentially arranged port names in the first port sequence moved according to a preset order, and each second port sequence corresponds to a different preset order; determining whether each second port sequence is related to the first port sequence; when 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 order, 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 the ship port sequence information.

[0009] The method for obtaining the port sequence information of a ship provided by the present invention mainly comprises: firstly obtaining a port call record table of the ship's history, wherein the port call record table includes a first port sequence, and a plurality of port names arranged in a preset order in the first port sequence may be sorted according to the arrival and departure time of the ship, and the port names in the first port sequence may be repeated. That is to say, the port call record table of the ship's history records the ports that the ship has docked during operation in the past period of time. After obtaining the port call record table of the ship's history, a plurality of second port sequences are generated according to the first port sequence, wherein the second port sequence is a port sequence composed of a plurality of 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, the first port sequence may be processed by a moving window technology to obtain a plurality of second port sequences, and the preset order may range from 1st to 30th by way of example, and the Nth port in the first port sequence is the same as the NKth port in the second port sequence, wherein K is the preset order corresponding to the second port sequence. After obtaining multiple second port sequences, determine whether each second port sequence is related to the first port sequence, that is, determine 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, it means that 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, it means that 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 in multiple second port sequences, determine the preset order corresponding to the second port sequence; if there are multiple second port sequences related to the first port sequence, determine the preset order corresponding to each second port sequence related to the first port sequence, and then calculate the least common multiple between the multiple preset orders. After obtaining the preset order or the least common multiple, obtain the preset order or the least common multiple port names in the first port sequence in sequence, and form a third port sequence with these port names in the order of 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 port sequence information of the ship.In the present invention, a historical port call record table of a ship is first obtained, and then a first port sequence is obtained according to the port call record table, and then a moving window technology is used to generate a plurality of second port sequences after moving windows of different preset orders according to the first port sequence, and then it is determined whether each second port sequence is related to the first port sequence, and then when the 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, and finally, the preset order of port names are obtained in sequence in the first port sequence to form a third port sequence, and finally, the ship's port sequence information of the ship is obtained according to the port names in the third port sequence and the corresponding port information, thereby realizing the acquisition of the ship's 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 the above-mentioned ship port sequence information according to the present invention may also have the following technical features: In some technical solutions, optionally, the steps of separately determining whether each second port sequence is related to the first port sequence include: separately calculating the 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; separately calculating the average value between 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.

[0011] In the technical solution, the step of determining whether each second port sequence is related to the first port sequence includes: first, respectively calculating the first distance value between two ports located at the same position in the second port sequence and the first port sequence. Since the port is not a number, it cannot be added or subtracted, and the correlation cannot be calculated, so it becomes the value of the distance between the ports. After obtaining the first distance value, since the distance value is too large, the correlation cannot be accurately determined, so the first distance value can be mapped to a preset interval to obtain a second distance value, wherein the preset interval can be a 0-1 interval, the smaller the first distance value between the two ports, the closer the second distance value is to 1, and the larger the first distance value between the two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all the port names in each second port sequence, respectively calculate the average value between the multiple second distance values ​​corresponding to each second port sequence, and finally determine whether each port sequence is related to the first port sequence according to the average value corresponding to each second port sequence. In the present application, the first distance value between the ports located at the same position between the second port sequence and the first port sequence is calculated, and then the first distance value is mapped to the 0-1 interval through a function, and then the average value of the 0-1 interval value obtained for each second port sequence is calculated, and finally, whether the second port sequence is related to 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.

[0012] 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 ship has no habitual port sequence based on the maximum value being less than the preset threshold.

[0013] In the 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 therein, and then comparing the maximum value with a preset threshold value. If the maximum value is greater than or equal to the preset threshold value, it means 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 means that any second port sequence among the multiple second port sequences is not related to the first port sequence, and further indicates that the ship has no habitual port sequence, that is, the ship does not have a fixed port of call.

[0014] In some technical solutions, optionally, the step of obtaining a historical port call record of a ship includes: obtaining first data information from a ship automatic identification system of the ship; obtaining port location information; and obtaining a port call record based on the first data information and the port location information, wherein the port call record includes ship identity information, port information, and arrival and departure times of the ship.

[0015] In this technical solution, the step of obtaining the historical port call record table of the ship includes: first obtaining the first data information in the ship's Automatic Identification System (AIS), namely the ship's AIS data, and then obtaining the location information of each port. Finally, the historical call record data of the ship, namely the port call record table, is generated according to the AIS data and the port location information, wherein the port call record table includes the following fields: ship identity information. The port information of the call and the arrival and departure time of the ship when it is docked at the port. The historical port call record table of the ship is generated through the AIS data and the port location information, thereby ensuring the accuracy of the port information in the port call record table.

[0016] According to a second aspect of the present invention, a system for acquiring ship port sequence information is proposed, comprising: a first acquisition module, the first acquisition module is used to acquire a port call record table of a ship's history, wherein the port call record table includes a first port sequence, and the first port sequence includes a plurality of sequentially arranged port names; a first generation module, the first generation module is used to generate a plurality of second port sequences according to the first port sequence, wherein the second port sequence is a port sequence composed of a plurality of 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; a first determination module, the first determination module is used to determine whether each second port sequence is related to the first port sequence; a first processing module, the first processing module 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; a second processing module, the second processing module is used to sequentially acquire a preset order of port names in the first port sequence and form a third port sequence; a third processing module, the third processing module is used to use the third port sequence and the port information corresponding to the plurality of port names in the third port sequence as the ship port sequence information.

[0017] The system for acquiring the ship port sequence information provided by the present 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 the port call record table of the ship's history, wherein the port call record table includes a first port sequence, and the names of multiple ports arranged in a preset order in the first port sequence can be sorted according to the arrival and departure time of the ship, and the port names in the first port sequence can be repeated. That is to say, the port call record table of the ship's history records the ports that the ship has docked during its operation in the past period of time. After obtaining the port call record table of the ship's history, the first generation module generates multiple second port sequences 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, the first port sequence can be processed by a moving window technology to obtain multiple second port sequences. Exemplarily, the preset order range can be 1 to 30, and the Nth port in the first port sequence is the same as the NKth port in the second port sequence, wherein K is the preset order corresponding to the second port sequence. After obtaining multiple second port sequences, the first determination module determines whether each second port sequence is related to the first port sequence, that is, determines 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, it means that 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, it means that the second port sequence is not related to the first port sequence. The first processing module is used to determine the preset order corresponding to the second port sequence based on the presence of a second port sequence related to the first port sequence in multiple second port sequences; 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 between the multiple preset orders is calculated. After obtaining the preset order or the least common multiple, the second processing module sequentially obtains the preset order or the least common multiple port names in the first port sequence, and composes these port names into a third port sequence according to the 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 ship port sequence information of the ship.In the present invention, a historical port call record table of a ship is first obtained, and then a first port sequence is obtained according to the port call record table, and then a moving window technology is used to generate a plurality of second port sequences after moving windows of different preset orders according to the first port sequence, and then it is determined whether each second port sequence is related to the first port sequence, and then when the 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, and finally, the preset order of port names are obtained in sequence in the first port sequence to form a third port sequence, and finally, the ship's port sequence information of the ship is obtained according to the port names in the third port sequence and the corresponding port information, thereby realizing the acquisition of the ship's port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0018] In some technical schemes, optionally, the first determination module includes: a first calculation module, the first calculation module is used to respectively calculate the first distance value between two ports located at the same position in the second port sequence and the first port sequence; a mapping module, the mapping module is used to map the first distance value to a preset interval to obtain a second distance value; a second calculation module, the second calculation module is used to respectively calculate the average value between multiple second distance values ​​corresponding to each second port sequence; and a fourth processing module, 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.

[0019] In the technical solution, the first calculation module includes: a first calculation module, a mapping module, a second calculation module and a fourth processing module. Among them, the first calculation module calculates the first distance value between the two ports located at the same position in the second port sequence and the first port sequence respectively. Since the port is not a number, it cannot be added or subtracted, and the correlation cannot be calculated, so it becomes the value of the distance between the ports. After obtaining the first distance value, since the distance value is too large, the correlation cannot be accurately judged, so the mapping module can map the first distance value to a preset interval to obtain a second distance value, wherein the preset interval can be a 0-1 interval, the smaller the first distance value between the two ports, the closer the second distance value is to 1, and the larger the first distance value between the two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all the port names in each second port sequence, the second calculation module calculates the average value between the multiple second distance values ​​corresponding to each second port sequence, and finally the fourth processing module determines whether each port sequence is related to the first port sequence according to the average value corresponding to each second port sequence. In the present application, the first distance value between the ports located at the same position between the second port sequence and the first port sequence is calculated, and then the first distance value is mapped to the 0-1 interval through a function, and then the average value of the 0-1 interval value obtained for each second port sequence is calculated, and finally, whether the second port sequence is related to 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.

[0020] In some technical schemes, the fourth processing module includes: a fifth processing module, the fifth processing module is used to determine the maximum value among multiple average values; a comparison module, the comparison module is used to compare the maximum value with a preset threshold; a sixth processing module, the sixth processing module 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, the seventh processing module is used to determine that the ship has no habitual port sequence based on the maximum value being less than the preset threshold.

[0021] In the technical solution, the fourth processing module includes: a fifth processing module, a comparison module, a sixth processing module and a seventh processing module. 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 then the comparison module compares the maximum value with a preset threshold value. The sixth processing module is used to indicate that if the maximum value is greater than or equal to the preset threshold value, the second port sequence corresponding to the maximum value is related to the first port sequence; the seventh processing module is used to indicate that if the maximum value is less than the preset value, any second port sequence in the multiple second port sequences is not related to the first port sequence, and further indicates that the ship has no habitual port sequence, that is, the ship has no fixed port of call.

[0022] In some technical solutions, optionally, the first acquisition module includes: a second acquisition module, the second acquisition module is used to acquire the first data information in the ship automatic identification system of the ship; a third acquisition module, the third acquisition module is used to acquire the port location information; an eighth processing module, the eighth processing module is used to acquire the port stop record table according to the first data information and the port location information, wherein the port stop record table includes the ship identity information, port information and the arrival and departure time of the ship.

[0023] In this technical solution, the first acquisition module includes: a second acquisition module, a third acquisition module and an eighth processing module. Among them, the second acquisition module can obtain the first data information in the ship's Automatic Identification System (AIS), that is, the ship's AIS data, and then the third acquisition module obtains the location information of each port. Finally, the eighth processing module generates the ship's historical call record data, that is, the port call record table, based on the AIS data and the port's location information, wherein the port call record table includes the following fields: ship identity information. The port information of the call and the arrival and departure time of the ship when it is docked at the port. The historical ship's port call record table is generated through the AIS data and the port's location information, thereby ensuring the accuracy of the port information in the port call record table.

[0024] According to a third aspect of the present invention, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for obtaining ship port sequence information as described in any one of the above items are implemented.

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

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

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

[0028] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 One of the flow charts of a method for acquiring ship port sequence information according to an embodiment of the present invention is shown; Figure 2 A schematic flow chart showing the steps of respectively determining whether each second port sequence is related to the first port sequence in a method for acquiring ship port sequence information according to an embodiment of the present invention; Figure 3 A schematic flow chart showing a step of determining whether a second port sequence is related to a first port sequence according to an average value in a method for acquiring ship port sequence information according to an embodiment of the present invention; Figure 4 A schematic flow chart showing the steps of obtaining a historical port call record table of a ship in a method for obtaining ship port sequence information according to an embodiment of the present invention; Figure 5 A second flow chart of a method for acquiring ship port sequence information according to an embodiment of the present invention is shown; Figure 6 One of the principle schematic diagrams of a method for acquiring ship port sequence information according to an embodiment of the present invention is shown; Figure 7 A second schematic diagram showing the principle of a method for acquiring ship port sequence information according to an embodiment of the present invention; Figure 8 A schematic block diagram showing a system for acquiring ship port sequence information according to an embodiment of the present invention; Fig. 9 A schematic block diagram showing a first determination module in a system for acquiring ship port sequence information according to an embodiment of the present invention is shown; Fig.10 A schematic block diagram showing a fourth processing module in a system for acquiring ship port sequence information according to an embodiment of the present invention; Fig.11 A schematic block diagram showing a first acquisition module in a system for acquiring ship port sequence information according to an embodiment of the present invention is shown; Fig.12 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0030] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0032] Figure 1 A flowchart of a method for obtaining ship port sequence information according to an embodiment of the present invention is shown. The method includes: Step 102: Obtain a port call record table of the ship's history, wherein the port call record table includes a first port sequence, and the first port sequence includes a plurality of sequentially arranged port names; Step 104: generating a plurality of second port sequences respectively according to the first port sequence, wherein the second port sequence is a port sequence formed by moving a plurality of sequentially arranged port names in the first port sequence according to a preset order, and each second port sequence corresponds to a different preset order; Step 106: Determine whether each second port sequence is related to the first port sequence; Step 108: When the second port sequence is related to the first port sequence, determining a preset order corresponding to the second port sequence; Step 110: sequentially obtain a preset number of port names in the first port sequence and form a third port sequence; Step 112: The third port sequence and the port information corresponding to the multiple port names in the third port sequence are used as the ship port sequence information.

[0033] The method for obtaining the port sequence information of a ship provided by the present invention mainly comprises: firstly obtaining a port call record table of the ship's history, wherein the port call record table includes a first port sequence, and a plurality of port names arranged in a preset order in the first port sequence may be arranged according to the arrival and departure time of the ship, and the port names in the first port sequence may be repeated. That is to say, the port call record table of the ship's history records the ports that the ship has docked during operation in the past period of time. After obtaining the port call record table of the ship's history, a plurality of second port sequences are generated according to the first port sequence, wherein the second port sequence is a port sequence composed of a plurality of 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, the first port sequence may be processed by a moving window technology to obtain a plurality of second port sequences, and the preset order may range from 1 to 30, and the Nth port in the first port sequence is the same as the NKth port in the second port sequence, wherein K is the preset order corresponding to the second port sequence. Exemplarily, when the first port sequence is (A, B, C, D), if the preset order corresponding to the second port sequence is 1, the second port sequence is (B, C, D, A); if the preset order corresponding to the second port sequence is 2, the second port sequence is (C, D, A, B). After obtaining multiple second port sequences, determine whether each second port sequence is related to the first port sequence, that is, determine 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, it means that 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, it means that 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 in 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 lowest common multiple between the multiple preset orders is calculated. After obtaining the preset order or the least common multiple, the preset order or the least common multiple port names are sequentially obtained in the first port sequence, and the port names are combined 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 port sequence information of the ship.In the present invention, a historical port call record table of a ship is first obtained, and then a first port sequence is obtained according to the port call record table, and then a moving window technology is used to generate a plurality of second port sequences after moving windows of different preset orders according to the first port sequence, and then it is determined whether each second port sequence is related to the first port sequence, and then when the 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, and finally, the preset order of port names are obtained in sequence in the first port sequence to form a third port sequence, and finally, the ship's port sequence information of the ship is obtained according to the port names in the third port sequence and the corresponding port information, thereby realizing the acquisition of the ship's port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0034] Figure 2 A flow chart showing the steps of determining whether each second port sequence is related to the first port sequence in a method for acquiring ship port sequence information according to an embodiment of the present invention; wherein the steps of determining whether each second port sequence is related to the first port sequence include: Step 202: Calculate first distance values ​​between two ports located at the same position in the second port sequence and the first port sequence respectively; Step 204: Map the first distance value to a preset interval to obtain a second distance value; Step 206: Calculate the average value of the second distance values ​​corresponding to each second port sequence respectively; Step 208: Determine whether the second port sequence is related to the first port sequence based on the average value.

[0035] In this embodiment, the step of determining whether each second port sequence is related to the first port sequence includes: firstly, respectively calculating the first distance value between two ports located at the same position in the second port sequence and the first port sequence. Since the port is not a number, it cannot be added or subtracted, and the correlation cannot be calculated, so it becomes the value of the distance between the ports. After obtaining the first distance value, since the distance value is too large, the correlation cannot be accurately determined, so the first distance value can be mapped to a preset interval to obtain a second distance value, wherein the preset interval can be a 0-1 interval, the smaller the first distance value between the two ports, the closer the second distance value is to 1, and the larger the first distance value between the two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all the port names in each second port sequence, respectively calculate the average value between the multiple second distance values ​​corresponding to each second port sequence, and finally determine whether each port sequence is related to the first port sequence according to the average value corresponding to each second port sequence. In the present application, the first distance value between the ports located at the same position between the second port sequence and the first port sequence is calculated, and then the first distance value is mapped to the 0-1 interval through a function, and then the average value of the value in the 0-1 interval obtained for each second port sequence is calculated, and finally, whether the second port sequence is related to 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.

[0036] Figure 3 A flow chart showing a step of determining whether a second port sequence is related to a first port sequence according to an average value in a method for acquiring ship port sequence information according to an embodiment of the present invention; wherein the step of determining whether the second port sequence is related to the first port sequence according to the average value comprises: Step 302: Determine the maximum value among multiple average values; Step 304: Compare the maximum value with a preset threshold; Step 306: Based on the maximum value being greater than or equal to a preset threshold, determining that a second port sequence corresponding to the maximum value is related to the first port sequence; Step 308: Based on the maximum value being less than a preset threshold, it is determined that the ship has no habitual port sequence.

[0037] 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 therein, and then comparing the maximum value with a preset threshold value; if the maximum value is greater than or equal to the preset threshold value, it means 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 means that any second port sequence among the multiple second port sequences is not related to the first port sequence, and further indicates that the ship has no habitual port sequence, that is, the ship does not have a fixed port of call.

[0038] Figure 4 A flow chart showing the steps of obtaining a historical port call record table of a ship in a method for obtaining ship port sequence information according to an embodiment of the present invention is shown; wherein the steps of obtaining a historical port call record table of a ship include: Step 402: Acquire first data information in the ship automatic identification system of the ship; Step 404: Obtain port location information; Step 406: Obtain a port berthing record table according to the first data information and the port location information, wherein the port berthing record table includes the ship identity information, port information, and the arrival and departure time of the ship.

[0039] In this embodiment, the step of obtaining the historical port call record table of the ship includes: first obtaining the first data information in the ship's Automatic Identification System (AIS), namely the ship's AIS data, and then obtaining the location information of each port. Finally, the historical call record data of the ship, namely the port call record table, is generated according to the AIS data and the port location information, wherein the port call record table includes the following fields: ship identity information. The port information of the call and the arrival and departure time of the ship when it is docked at the port. The historical port call record table of the ship is generated through the AIS data and the port location information, thereby ensuring the accuracy of the port information in the port call record table.

[0040] Figure 5 A second flow chart of a method for obtaining ship port sequence information according to an embodiment of the present invention is shown; wherein the method comprises: Step 502: Generate a ship call record; Step 504: Generate new docking sequences after moving windows of order 1 to 30 respectively; Step 506: Calculate the correlation between the new sequence and the original sequence; Step 508: Determine the optimal moving window size for a single ship; Step 510: Mining custom port sequence data.

[0041] In this embodiment, the AIS data and port location information are first used to generate the ship's historical call record data, such as Figure 6 As shown, the docking record data includes the following fields: ship identity information, docked port information and docked arrival and departure time. Then generate new docking sequences after moving windows of order 1 to 30, that is, add a data column to the original docking record table, which is recorded as the ports of moving windows of order 1 to 30. The information in this column is consistent with the original docked port information, but the port in the nth row is the port in the nkth row, and k is the order of movement. Then calculate the correlation between the new sequence and the original sequence. Since the port is not a number, it cannot be added or subtracted, and the correlation cannot be calculated, so it becomes the value of the distance between ports, and is mapped to the interval of 0-1 through a function, such as Figure 7 As shown. Then determine the optimal moving window size for a single ship, that is, calculate the average value of the 0-1 interval obtained for each ship at the 1st to 30th order. The order with the largest mean value and exceeding the data cleaning threshold is the number of ports in the customary port sequence port string. If the ship with the largest mean value but does not exceed the data cleaning threshold, it is judged as non-liner transportation (there is no periodicity and no customary port sequence). Finally, mine the customary port sequence data, that is, for ships determined to have a customary port sequence, take the port string in the moving window as the customary port sequence. For example, Figure 7 As shown, it can be seen that the correlations at lags of 4, 8, 12, 16, 20, 24, and 28 are the highest. Therefore, when the scores are the same, the lowest common multiple of 4 is used, and the resulting combined port order is (B, C, B, A).

[0042] Figure 8 A schematic block diagram of a system for acquiring ship port sequence information according to an embodiment of the present invention is shown; wherein the system 80 for acquiring ship port sequence information comprises: A first acquisition module 802 is used to acquire a port call record table of the ship's history, wherein the port call record table includes a first port sequence, and the first port sequence includes a plurality of sequentially arranged port names; A first generating module 804 is used to generate a plurality of second port sequences according to the first port sequence, wherein the second port sequence is a port sequence formed by moving a plurality of sequentially arranged port names in the first port sequence according to a preset order, and each second port sequence corresponds to a different preset order; A first determination module 806, configured to respectively determine whether each second port sequence is related to the first port sequence; A first processing module 808, for determining a preset order corresponding to the second port sequence if the second port sequence is related to the first port sequence; 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; The third processing module 812 is used to use 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.

[0043] The system 80 for acquiring the ship port sequence information provided by the present 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 the port call record table of the ship's history, wherein the port call record table includes a first port sequence, and the names of multiple ports arranged in a preset order in the first port sequence can be sorted according to the arrival and departure time of the ship, and the port names in the first port sequence can be repeated. That is to say, the port call record table of the ship's history records the ports that the ship has docked during its operation in the past period of time. After obtaining the port call record table of the ship's history, the first generation module 804 generates a plurality of second port sequences according to the first port sequence, wherein the second port sequence is a port sequence composed of a plurality of sequentially arranged port names in the first port sequence after being moved according to a preset order, and each second port sequence corresponds to a different preset order, that is, the first port sequence can be processed by a moving window technique to obtain a plurality of second port sequences, and the preset order can range from 1 to 30, and the Nth port in the first port sequence is the same as the NKth port in the second port sequence, wherein K is the preset order corresponding to the second port sequence. After obtaining a plurality of second port sequences, the first determination module 806 determines whether each second port sequence is related to the first port sequence, that is, determines 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, it means that 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, it means that the second port sequence is not related to the first port sequence. The first processing module 808 is used to determine the preset order corresponding to the second port sequence based on the presence of a second port sequence related to the first port sequence in multiple second port sequences; 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 between the multiple preset orders is calculated. After obtaining the preset order or the least common multiple, the second processing module 810 sequentially obtains the preset order or the least common multiple port names in the first port sequence, and composes 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 port sequence information of the ship.In the present invention, a historical port call record table of a ship is first obtained, and then a first port sequence is obtained according to the port call record table, and then a moving window technology is used to generate a plurality of second port sequences after moving windows of different preset orders according to the first port sequence, and then it is determined whether each second port sequence is related to the first port sequence, and then when the 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, and finally, the preset order of port names are obtained in sequence in the first port sequence to form a third port sequence, and finally, the ship's port sequence information of the ship is obtained according to the port names in the third port sequence and the corresponding port information, thereby realizing the acquisition of the ship's port sequence information and solving the problem of large barriers to the acquisition of ship port sequence information in related technologies.

[0044] Fig. 9 A schematic block diagram of a first calculation module in a system for acquiring ship port sequence information according to an embodiment of the present invention is shown; wherein the first determination module 806 includes: A first calculation module 8062, used to respectively calculate a first distance value between two ports located at the same position in the second port sequence and the first port sequence; A mapping module 8064, configured to map the first distance value into a preset interval to obtain a second distance value; The second calculation module 8066 is used to respectively calculate the average value between the multiple second distance values ​​corresponding to each second port sequence; The fourth processing module 8068 is used to determine whether the second port sequence is related to the first port sequence according to the average value.

[0045] In this embodiment, the first determination 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 respectively. Since the port is not a number, it cannot be added or subtracted, and the correlation cannot be calculated, so it becomes the value of the distance between the ports. After obtaining the first distance value, since the distance value is too large, the correlation cannot be accurately determined, so the mapping module 8064 can map the first distance value to a preset interval to obtain a second distance value, wherein the preset interval can be a 0-1 interval, the smaller the first distance value between the two ports, the closer the second distance value is to 1, and the larger the first distance value between the two ports, the closer the second distance value is to 0. After obtaining the second distance values ​​corresponding to all the port names in each second port sequence, the second calculation module 8066 calculates the average value between the multiple second distance values ​​corresponding to each second port sequence respectively, and finally the fourth processing module 8068 determines whether each port sequence is related to the first port sequence according to the average value corresponding to each second port sequence. In the present application, the first distance value between the ports located at the same position between the second port sequence and the first port sequence is calculated, and then the first distance value is mapped to the 0-1 interval through a function, and then the average value of the 0-1 interval value obtained for each second port sequence is calculated, and finally, whether the second port sequence is related to 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.

[0046] Fig.10 A schematic block diagram of a fourth processing module in a system for acquiring ship port sequence information according to an embodiment of the present invention is shown; wherein the fourth processing module 8068 includes: A fifth processing module 8070 is used to determine a maximum value among the multiple average values; A comparison module 8072, used to compare the maximum value with a preset threshold; A sixth processing module 8074, configured to determine, based on the maximum value being greater than or equal to a preset threshold, that a second port sequence corresponding to the maximum value is related to the first port sequence; The seventh processing module 8076 is used to determine that the ship has no customary port sequence based on the maximum value being less than a preset threshold.

[0047] 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 then the comparison module 8072 compares the maximum value with a preset threshold value, the sixth processing module 8074 is used to indicate that if the maximum value is greater than or equal to the preset threshold value, then the second port sequence corresponding to the maximum value is related to the first port sequence; the seventh processing module 8076 is used to indicate that if the maximum value is less than the preset value, then any second port sequence in the multiple second port sequences is not related to the first port sequence, and then it indicates that the ship has no customary port sequence, that is, the ship has no fixed port of call.

[0048] Fig.11 A schematic block diagram of a first acquisition module in a system for acquiring ship port sequence information according to an embodiment of the present invention is shown; wherein the first acquisition module 802 includes: The second acquisition module 8022 is used to acquire first data information of a ship automatic identification system of the ship; The third acquisition module 8024 is used to obtain port location information; The eighth processing module 8026 is used to obtain a port berthing record table according to the first data information and the port location information, wherein the port berthing record table includes the ship identity information, port information and the arrival and departure time of the ship.

[0049] 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. Among them, the second acquisition module 8022 can obtain the first data information in the ship's Automatic Identification System (AIS), that is, the ship's AIS data, and then the third acquisition module 8024 obtains the location information of each port. Finally, the eighth processing module 8026 generates the ship's historical call record data, that is, the port call record table, according to the AIS data and the port's location information, wherein the port call record table includes the following fields: ship identity information. The port information of the call and the arrival and departure time of the ship when it is docked at the port. The port call record table of the historical ship is generated through the AIS data and the port's location information, thereby ensuring the accuracy of the port information in the port call record table.

[0050] Fig.12A schematic block diagram of an electronic device of 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, and when the processor 1204 executes the computer program, the steps of the method for obtaining the ship port sequence information as described above are implemented.

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

[0052] An embodiment of the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for obtaining the ship port sequence information as described in any one of the above items are implemented.

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

[0054] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0055] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0056] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for obtaining ship port sequence information, characterized in that: include: Acquire a port call record table of the ship's history, wherein the port call record table includes a first port sequence, and the first port sequence includes a plurality of port names arranged in sequence; Generate multiple second port sequences according to the first port sequence, wherein the second port sequence is a port sequence formed by moving the multiple sequentially arranged port names in the first port sequence according to a preset order, and each second port sequence corresponds to a different preset order; respectively determining whether each of the second port sequences is related to the first port sequence; In the case where the second port sequence is related to the first port sequence, determining the preset order corresponding to the second port sequence; sequentially obtaining the preset number of port names in the first port sequence and forming a third port sequence; The third port sequence and the port information corresponding to the plurality of port names in the third port sequence are used as ship port sequence information.

2. The method for obtaining ship port sequence information according to claim 1, characterized in that: The step of respectively determining whether each of the second port sequences is related to the first port sequence comprises: respectively calculating first distance values ​​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; respectively calculating an average value between a plurality of second distance values ​​corresponding to each of the second port sequences; Determine whether the second port sequence is correlated with the first port sequence based on the average value.

3. The method for obtaining ship port sequence information according to claim 2, characterized in that: The step of determining whether the second port sequence is related to the first port sequence according to the average value comprises: determining a maximum value among a plurality of said average values; comparing the maximum value with a preset threshold; Based on the maximum value being greater than or equal to the 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 less than the preset threshold, it is determined that the ship has no customary port sequence.

4. The method for obtaining ship port sequence information according to any one of claims 1 to 3, characterized in that: The step of obtaining the historical port call record table of the ship includes: Acquiring first data information from an automatic ship identification system of the ship; Get port location information; The port berthing record table is obtained according to the first data information and the port location information, wherein the port berthing record table includes ship identity information, port information and arrival and departure time of the ship.

5. A system for acquiring ship port sequence information, characterized in that: include: A first acquisition module, the first acquisition module is used to acquire a port call record table of the ship's history, wherein the port call record table includes a first port sequence, and the first port sequence includes a plurality of port names arranged in sequence; A first generating module, the first generating module is used to generate 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 each second port sequence corresponds to a different preset order; a first determination module, the first determination module being used to respectively determine whether each of the second port sequences is related to the first port sequence; a first processing module, the first processing module being configured to determine 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, the second processing module is used to sequentially obtain the port names of the preset order in the first port sequence and form a third port sequence; The third processing module is used to use the third port sequence and the port information corresponding to the multiple port names in the third port sequence as ship port sequence information.

6. The system for acquiring ship port sequence information according to claim 5, characterized in that: The first determining module comprises: A first calculation module, the first calculation module is used to respectively calculate a first distance value between two ports located at the same position in the second port sequence and the first port sequence; A mapping module, the mapping module is used to map the first distance value to a preset interval to obtain a second distance value; A second calculation module, the second calculation module is used to respectively calculate the average value between the plurality of second distance values ​​corresponding to each second port sequence; A fourth processing module, the fourth processing module is used to determine whether the second port sequence is related to the first port sequence according to the average value.

7. The system for acquiring ship port sequence information according to claim 6, characterized in that: The fourth processing module comprises: a fifth processing module, the fifth processing module being used to determine a maximum value among a plurality of the average values; A comparison module, wherein the comparison module is used to compare the maximum value with a preset threshold; a sixth processing module, the sixth processing module being configured 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 customary port sequence based on the maximum value being less than the preset threshold.

8. The system for acquiring ship port sequence information according to any one of claims 5 to 7, characterized in that: The first acquisition module includes: A second acquisition module, the second acquisition module is used to acquire first data information from the ship automatic identification system of the ship; A third acquisition module, the third acquisition module is used to acquire port location information; An eighth processing module, the eighth processing module is used to obtain the port berthing record table according to the first data information and the port location information, wherein the port berthing record table includes ship identity information, port information and arrival and departure time of the ship.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method for obtaining the ship port sequence information according to any one of claims 1 to 4 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for obtaining ship port sequence information as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

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

    CN115471390A

  • Container tracking data processing method, system and device, storage medium and chip

    CN115660539A

  • Ship traffic flow prediction method and system based on target monitoring data

    CN116611552A

  • Non-cooperative radar radiation source pulse repetition interval modulation period estimation method and system

    CN117741637A

  • Model training method and device and driving behavior prediction method

    CN118297129A