Method, device, electronic device and storage medium for measuring waterway section transportation volume

By preprocessing and correlation of maritime ship port report data and ship AIS data, combined with the channel section algorithm, the problem of inability to monitor changes in channel section flow and freight volume in traditional methods is solved, real-time and accurate multi-dimensional analysis is achieved, and the scientificity and efficiency of channel management are improved.

CN119648093BActive Publication Date: 2025-07-22CHINA ACAD OF TRANSPORTATION SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510152398.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-12
Publication Date
2025-07-22
Estimated Expiration
2045-02-12

AI Technical Summary

Technical Problem

Traditional waterway cross-sectional flow and freight volume statistics can only rely on lock equipment and cannot achieve full-range monitoring, resulting in limited data coverage, poor accuracy and reliability, and the inability to monitor changes in flow and freight volume in real time.

Method used

By preprocessing the port report data of maritime ships and ship AIS data, we construct constraints for data correlation, and combining ship AIS trajectory information and channel section information, we construct ships through channel section algorithms to identify ship behaviors to obtain transportation volume.

Benefits of technology

The calculation of channel cross-section flow and freight volume that does not rely on infrastructure is realized, the real-time and accuracy of data is improved, the analysis results of multi-time and spatial dimensions are provided, and the efficiency of channel management and decision-making are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119648093B_ABST
    Figure CN119648093B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for calculating the transportation volume of a waterway section, relating to the technical field of data processing. The method includes: performing data preprocessing on the maritime ship port reporting data to obtain initial maritime ship port reporting data; performing data preprocessing on the ship AIS data to obtain initial ship AIS data; constructing constraint conditions based on the initial maritime ship port reporting data and the initial ship AIS data, and performing data association according to the constraint conditions to obtain an associated data set; constructing an algorithm for ships to pass through the waterway section based on the ship AIS trajectory information and the waterway section information; and identifying ship behaviors according to the associated data set and the algorithm for ships to pass through the waterway section to obtain the transportation volume of ships passing through the waterway section. The present invention can provide real-time, accurate and comprehensive waterway operation data for relevant management departments, and help improve the efficiency of waterway management and the scientific nature of decision-making.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly relates to a method, device, electronic device and storage medium for calculating the transportation volume of a waterway section. Background Art

[0002] In the current shipping industry, the statistics of ship section flow and freight volume are crucial tasks, which are directly related to the operation efficiency and economic benefits of the shipping industry. However, traditional statistical methods mainly rely on lock devices. Although this method can provide certain data support to a certain extent, there are many deficiencies.

[0003] Since traditional statistical methods can only rely on lock devices for monitoring, they can only measure specific waterway sections and cannot achieve full-range monitoring of waterway section flow. This not only limits the data coverage but also affects the accuracy and reliability of the data. Since the process of ships passing through the lock takes a certain amount of time and the statistics are often carried out after the ships have passed through the lock, the current statistical time range of the number of ships passing through the lock is relatively long and the data granularity is relatively coarse. It is impossible to monitor the changes in section flow and freight volume in real time, and it is difficult to meet the needs of data analysis and ship management. Therefore, there is an urgent need for a new solution to solve the problem that traditional statistical methods cannot monitor the changes in waterway section flow and freight volume in real time. Summary of the Invention

[0004] In view of the above deficiencies of the prior art, the present invention provides a method, device, electronic device and storage medium for calculating the transportation volume of a waterway section, effectively solving the problem that traditional statistical methods cannot monitor the changes in waterway section flow and freight volume in real time.

[0005] In a first aspect, the present invention provides a method for calculating the transportation volume of a waterway section, the method comprising:

[0006] Performing data preprocessing on the maritime ship port reporting data to obtain initial maritime ship port reporting data;

[0007] Performing data preprocessing on the ship AIS data to obtain initial ship AIS data;

[0008] Constructing constraint conditions according to the initial maritime ship port reporting data and the initial ship AIS data, and performing data association according to the constraint conditions to obtain an associated data set;

[0009] Constructing a ship passing through the waterway section algorithm according to the ship AIS trajectory information and the waterway section information;

[0010] Identifying ship behaviors according to the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of the ship passing through the waterway section.

[0011] Further, the data preprocessing of the vessel AIS data to obtain initial vessel AIS data includes:

[0012] Performing message parsing on the vessel AIS data to obtain vessel AIS parsed data;

[0013] Performing thinning processing on the vessel AIS parsed data to obtain the initial vessel AIS data.

[0014] Further, the performing message parsing on the vessel AIS data to obtain vessel AIS parsed data includes:

[0015] Extracting the encapsulated vessel AIS message information from the vessel AIS data;

[0016] Converting the vessel AIS message information from the ASCII string form into a binary stream form to obtain binary vessel AIS message information;

[0017] Intercepting binary data segments from the binary vessel AIS message information corresponding to respective information segments to obtain the vessel AIS parsed data.

[0018] Further, the constructing constraint conditions according to the initial maritime vessel port reporting data and the initial vessel AIS data, and performing data association according to the constraint conditions to obtain an associated data set includes:

[0019] Extracting the associated fields of the initial maritime vessel port reporting data and the initial vessel AIS data, and performing preliminary data association according to the associated fields;

[0020] Constructing a time association constraint according to the time information in the initial maritime vessel port reporting data and the initial vessel AIS data;

[0021] Constructing a space association constraint according to the position information in the initial maritime vessel port reporting data and the initial vessel AIS data;

[0022] Constructing a similarity constraint according to the vessel static attribute information in the initial maritime vessel port reporting data and the initial vessel AIS data;

[0023] Performing data association according to the time association constraint, the space association constraint and the similarity constraint to obtain the associated data set.

[0024] Further, the constructing an algorithm for a vessel to pass through a channel section according to the vessel AIS trajectory information and the channel section information includes:

[0025] Obtaining the front and rear end points of the vessel AIS trajectory and the two end break points of the channel section;

[0026] Construct a plurality of target vectors based on the front and rear end points and the two end break points.

[0027] Judge whether the ship passes through the waterway section according to the plurality of target vectors.

[0028] Further, after constructing the target vector according to the front and rear end points and the two end break points, it further includes:

[0029] Determine the navigation direction of the ship passing through the waterway section according to the direction relationship between the target vector and the front and rear end points.

[0030] Further, the identifying the ship behavior according to the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of the ship passing through the waterway section includes:

[0031] Construct the analysis dimension of the waterway section;

[0032] Calculate the flow of the ship passing through the waterway section according to the associated data set and the ship passing through the waterway section algorithm;

[0033] Calculate the freight volume of the ship passing through the waterway section according to the associated data set and the ship passing through the waterway section algorithm.

[0034] In a second aspect, the present invention provides a device for measuring the transportation volume of a waterway section, and the device includes:

[0035] A first processing module, configured to perform data preprocessing on the maritime ship port report data to obtain initial maritime ship port report data;

[0036] A second processing module, configured to perform data preprocessing on the ship AIS data to obtain initial ship AIS data;

[0037] A data association module, configured to construct a constraint condition according to the initial maritime ship port report data and the initial ship AIS data, and perform data association according to the constraint condition to obtain an associated data set;

[0038] An algorithm construction module, configured to construct an algorithm for a ship to pass through a waterway section according to the ship AIS trajectory information and the waterway section information;

[0039] A data measurement module, configured to identify ship behavior according to the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of the ship passing through the waterway section.

[0040] In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the waterway cross-section traffic volume measurement method as described in the first aspect of the present invention.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the waterway cross-section traffic volume measurement method as described in the first aspect of the present invention.

[0042] The waterway cross-section traffic volume measurement method, device, electronic device, and storage medium provided by the present invention construct a dataset fusion constraint based on a large dataset of ship operations, effectively fuse multi-source datasets of ship operations, improve the efficiency of data use, reduce errors caused by single data analysis, better ensure the relevance and consistency between data, and improve the accuracy and reliability of analysis results. By constructing an algorithm for ships passing through the waterway cross-section, the measurement of the waterway cross-section flow and freight volume without relying on infrastructure is realized, and the waterway cross-section analysis results in multiple waterways and multiple spatio-temporal dimensions are formed. It can provide real-time, accurate, and comprehensive waterway operation data for relevant management departments, provide scientific data support for monitoring the ship transportation situation of the waterway cross-section, and help improve the efficiency of waterway management and the scientific nature of decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0044] Figure 1 is the first schematic diagram of the waterway cross-section traffic volume measurement method flow provided by the embodiment of the present invention;

[0045] Figure 2 is the second schematic diagram of the waterway cross-section traffic volume measurement method flow provided by the embodiment of the present invention;

[0046] Figure 3 is the third schematic diagram of the waterway cross-section traffic volume measurement method flow provided by the embodiment of the present invention;

[0047] Figure 4 is the fourth schematic diagram of the waterway cross-section traffic volume measurement method flow provided by the embodiment of the present invention;

[0048] Figure 5 is the fifth schematic diagram of the waterway cross-section traffic volume measurement method flow provided by the embodiment of the present invention;

[0049] Figure 6 It is a schematic diagram of the trajectory points when the ship passes through the channel cross-section in the embodiment of the present invention;

[0050] Figure 7 It is a schematic diagram of the intersection vector of the cross-section line segment and the trajectory line segment in the embodiment of the present invention;

[0051] Figure 8 It is a diagram for explaining the vector position in the embodiment of the present invention;

[0052] Figure 9 It is a schematic diagram of the ship sailing upstream in the embodiment of the present invention;

[0053] Figure 10 It is a schematic diagram of the ship sailing downstream in the embodiment of the present invention;

[0054] Figure 11 It is the sixth schematic diagram of the flow of the method for measuring the transportation volume of the channel cross-section provided by the embodiment of the present invention;

[0055] Figure 12 It is a schematic diagram of the structure of the device for measuring the transportation volume of the channel cross-section provided by the embodiment of the present invention;

[0056] Figure 13 It is a schematic diagram of the structure of an electronic device provided by the embodiment of the present invention.

[0057] Description of the main component symbols:

[0058] 200, device for measuring the transportation volume of the channel cross-section; 210, first processing module; 220, second processing module; 230, data association module; 240, algorithm construction module; 250, data measurement module; 300, electronic device; 310, processor; 320, communication interface; 330, memory; 340, communication bus. Detailed implementation manners

[0059] To make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be further described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be noted that the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0060] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.

[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used in the specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0062] In the current shipping industry, the statistics of ship cross-section flow and freight volume are crucial tasks. Since traditional methods for ship cross-section flow and freight volume statistics can only rely on lock equipment for monitoring, they can only measure specific channel cross-sections and cannot achieve full-range monitoring of channel cross-section flow. This not only limits the data coverage but also affects the accuracy and reliability of the data. Since the process of a ship passing through a lock takes a certain amount of time and the statistics are often carried out after the ship has passed through the lock, the current statistical time range for the number of ships passing through the lock is relatively long, the data granularity is relatively coarse, and it is impossible to monitor the changes in cross-section flow and freight volume in real time, making it difficult to meet the needs of data analysis and ship management.

[0063] Embodiment 1

[0064] The embodiment of the present invention provides a method for calculating the transportation volume of a channel cross-section, effectively solving the problem that traditional statistical methods cannot monitor the changes in channel cross-section flow and freight volume in real time. Figure 1 is the first schematic diagram of the process of the method for calculating the transportation volume of a channel cross-section provided by the embodiment of the present invention, as Figure 1 shown, the method includes the following steps:

[0065] S100. Perform data preprocessing on the port reporting data of maritime ships to obtain initial port reporting data of maritime ships.

[0066] In the embodiment of the present invention, the port reporting data of maritime ships can comprehensively reflect the completion of each voyage of a ship, and a port report is made each time before arriving at and leaving the port. The port reporting data of maritime ships includes, but is not limited to, data such as ship name, ship MMSI number, ship call sign, type of entering and leaving the port, reporting time, ship static information, and ship transportation dynamic information. Among them, ship static information includes, but is not limited to, information such as ship tonnage, ship size, ship nationality, and port of registry, and ship transportation dynamic information includes, but is not limited to, information such as the names of ports where the ship enters and leaves, types of loaded and unloaded goods, and quantities of loaded and unloaded goods.

[0067] The port reporting data of maritime ships records the detailed information of ships entering and leaving ports and loading and unloading goods. The data volume is huge. At the same time, due to factors such as system transmission problems and reporting errors, there may be redundant and incorrect data. Therefore, it is necessary to preprocess the port reporting data of maritime ships. The data preprocessing mainly includes data cleaning, deleting incorrect data such as abnormal time and repeated time. The final initial port reporting data of maritime ships includes fields such as ship name, port of registry code, port reporting agency, loading and unloading volume, entering and leaving port identifier, cargo type, actual loaded volume, reporting time, etc., laying a foundation for the subsequent measurement of transportation volume.

[0068] S200. Preprocess the ship AIS data to obtain the initial ship AIS data.

[0069] In the embodiment of the present invention, the ship AIS data can reflect the whole process of the ship's navigation track. Its data generation speed is fast, and the data generation interval ranges from 2s to 3min. The ship AIS data includes, but is not limited to, information such as ship name, ship MMSI number, ship position longitude and latitude, ship speed, and ship navigation time. The ship AIS data consists of ship AIS statements in a special format and there is redundant data, so it needs to be preprocessed. Figure 2 It is the second schematic diagram of the method flow for measuring the transportation volume of the channel section provided by the embodiment of the present invention. As Figure 2 shown, the data preprocessing of the ship AIS data specifically includes the following steps:

[0070] S210. Parse the ship AIS data to obtain the ship AIS parsed data.

[0071] Figure 3 It is the third schematic diagram of the method flow for measuring the transportation volume of the channel section provided by the embodiment of the present invention. As Figure 3 shown, the message parsing specifically includes the following steps:

[0072] S211. Extract the encapsulated ship AIS message information from the ship AIS data.

[0073] The ship AIS data is usually sent in the NMEA 0183 protocol format. The AIS message information is encapsulated in the ship AIS data and exists in the form of an ASCII code string, which encapsulates the ship's navigation dynamic information and static information.

[0074] Exemplarily, taking the ship AIS data "!--VDM,x1,x2,x3,a,s--s,x4*hh <cr> <lf>Take "---" as an example for illustration, where!-- represents the sender identification; VDM represents the statement structure identification; x1 represents the total number of statements required for transmitting the message, with a value range of 1 to 9; x2 represents the statement sequence number, with a value range of 1 to 9; x3 represents the sequence message identification code, with a value range of 0 to 9; a represents the AIS channel, with a value of A or B; s--s represents the encapsulated AIS message information, which is in the form of a hexadecimal ASCII code string; x4 represents the number of padding bits, with a value range of 0 to 5; hh represents the checksum.

[0075] S212. Convert the ship AIS message information from the ASCII code string form to the binary stream form to obtain the binary ship AIS message information.

[0076] Convert the extracted ship AIS message information from the ASCII code string form to the binary stream form. In the embodiment of the present invention, the ship AIS message information is represented in hexadecimal form and needs to be converted to binary. Each hexadecimal character corresponds to 4 bits of binary.

[0077] S213. Intercept the binary data segment from the binary ship AIS message information corresponding to the corresponding information segment to obtain the ship AIS parsed data.

[0078] In the embodiment of the present invention, following the ship AIS message information conversion standard (ITU-R M.1371), intercept the binary stream bit by bit in sequence and map each binary data segment to the corresponding information segment to obtain the ship AIS parsed information. Exemplarily, the message type is usually located in the first 6 bits of the binary stream. The first 6 bits 000001 represent a position report. Convert the intercepted binary data segment to the corresponding information segment to obtain the position report. The subsequent bits are parsed according to the AIS message standard in sequence to obtain information such as the position, course, and speed of the ship.

[0079] S220. Perform decimation processing on the ship AIS parsed data to obtain the initial ship AIS data.

[0080] There is a large amount of redundant data in the ship AIS parsed data, which has a great impact on calculations. Therefore, it is necessary to perform decimation processing on the ship AIS parsed data to remove abnormal data and redundant data, thereby improving the analysis efficiency. In the embodiment of the present invention, the Douglas-Peucker algorithm is used for decimation processing, which specifically includes the following steps:

[0081] (a) Virtually connect a straight line segment between the start and end points of the ship AIS trajectory curve in the ship AIS parsed data, calculate the distance between all points on the trajectory curve and the straight line, and find the maximum distance value d max .

[0082] (b) Set a predetermined threshold D, and compare the maximum distance value d max Compare it with a predetermined threshold D. If d max < D, it is considered that all intermediate points on this trajectory curve contribute little to the shape of the curve. Discard all intermediate points on the trajectory curve and use this straight line segment as an approximation of the trajectory curve. This section of the trajectory curve is processed.

[0083] (c) If d max ≥ D, retain the maximum distance point corresponding to dmax. The coordinate point corresponding to this maximum distance point is a feature point on the curve. Take this maximum distance point as the boundary and divide the curve into two parts. Repeat steps (a) and (b) for these two parts until all d max < D, that is, the thinning of the trajectory curve is completed.

[0084] After thinning the parsed data of ship AIS by the Douglas-Peucker algorithm, filter out redundant data and retain the AIS trajectory data with better data quality.

[0085] S300. Construct constraint conditions based on the initial maritime ship port reporting data and the initial ship AIS data, and perform data association according to the constraint conditions to obtain an associated data set.

[0086] In the embodiment of the present invention, the maritime ship port reporting data set records the discrete behaviors and freight volumes of ships entering and leaving ports, and the ship AIS data set records the continuous navigation trajectories of ships. To achieve the precise association of the maritime ship port reporting data set and the ship AIS data set, time association constraints, spatial association constraints, and similarity constraints need to be established. Figure 4 It is the fourth schematic diagram of the flow of the channel cross-section traffic volume measurement method provided by the embodiment of the present invention. As Figure 4 shown, the data association specifically includes the following steps:

[0087] S310. Extract the associated fields of the initial maritime ship port reporting data and the initial ship AIS data, and perform preliminary data association according to the associated fields.

[0088] In the embodiment of the present invention, the ship MMSI number is selected as the associated field of the initial maritime ship port reporting data and the initial ship AIS data for preliminary data association. The ship MMSI number is the Maritime Mobile Service Identity, a nine-digit code defined by the International Telecommunication Union, used to uniquely identify ships globally. This field is a common field of the maritime ship port reporting data and the ship AIS data, and has high data reporting quality and good integrity, making it an ideal field for associating the two data sets.

[0089] S320. Construct time association constraints based on the time information in the initial maritime ship port reporting data and the initial ship AIS data.

[0090] The time of a ship's entry and exit in the maritime ship port reporting data should match the timestamp of the AIS track point in the ship's AIS data. However, the entry and exit reporting regulations state that a ship should report its entry and exit information to the maritime administration agency at the expected departure or arrival location 4 hours in advance, but the advance time should not exceed 24 hours. Therefore, the corresponding time of the ship's entry and exit behavior in the maritime ship port reporting data does not exactly coincide with the ship's departure or arrival time in the ship's AIS data. Thus, the following time correlation constraints are constructed:

[0091]

[0092] In the above formula, S 1 represents the corresponding time of the ship's entry and exit behavior in the maritime ship port reporting data, S 2 represents the residence area time in the ship's AIS data, t max represents 24h, t min represents 4h, represents the allowed time deviation.

[0093] S330. Construct spatial correlation constraints based on the location information in the initial maritime ship port reporting data and the initial ship AIS data.

[0094] The location of the ship entering and leaving the port in the maritime ship port reporting data should match the location of the residence area in the ship's AIS data, and the ship's traveling direction should be consistent. Thus, the following spatial correlation constraints are constructed:

[0095]

[0096]

[0097] In the above formula, represents the location coordinates of the port in the maritime ship port reporting data, represents the location coordinates of the residence area in the ship's AIS data, is the Euclidean distance calculation function, represents the maximum location deviation threshold, represents the ship's traveling direction angle formed by the ship's departure port location and the ship's arrival port location in the maritime ship port reporting data, represents the ship's traveling direction angle near the residence area in the ship's AIS data, represents the maximum angle deviation threshold.

[0098] S340. Construct similarity constraints based on the ship's static attribute information in the initial maritime ship port reporting data and the initial ship AIS data.

[0099] In the embodiments of the present invention, in order to increase the accuracy of data association, in addition to the ship MMSI field, similarity constraints can also be constructed based on various ship static attribute information. For example, similarity thresholds or matching rules for ship name, ship call sign, IMO number, ship length, ship width, and ship height are defined to determine whether each static attribute is consistent.

[0100] S350. Perform data association according to time association constraints, space association constraints, and similarity constraints to obtain an associated data set.

[0101] In the embodiments of the present invention, during the data fusion and association process, an associated data set including ship navigation longitude and latitude track point information and ship carried cargo type information is constructed through time association constraints, space association constraints, and similarity association constraints, thereby laying a data foundation for the measurement of the waterway section traffic volume.

[0102] S400. Construct an algorithm for a ship to pass through a waterway section according to ship AIS track information and waterway section information.

[0103] The algorithm for a ship to pass through a waterway section is used to identify the behavior of a ship passing through a waterway section. The core of this algorithm is to determine whether a ship passes through a waterway section. After quantitative analysis, it is equivalent to determining whether the line connecting two adjacent AIS track points belonging to the same ship intersects the waterway section line. Figure 5 It is the fifth schematic diagram of the waterway section traffic volume measurement method flow provided by the embodiments of the present invention. As Figure 5 shown, the construction of the algorithm for a ship to pass through a waterway section specifically includes the following steps:

[0104] S410. Obtain the front and rear endpoints of the ship AIS track and the two breakpoints of the waterway section.

[0105] In the embodiments of the present invention, a section is divided in the waterway to find the position points at both ends of the waterway section, and at the same time, two adjacent track points during the ship's navigation are recorded. Whether the ship passes through the waterway section is judged by the line connecting the position points and the track points. Figure 6 It is a schematic diagram of track points when a ship passes through a waterway section in the embodiments of the present invention. As Figure 6 shown, the two breakpoints of the waterway section are M1 and M2 respectively, and the two adjacent track points of the ship AIS track are N1 and N2 respectively.

[0106] S420. Construct multiple target vectors according to the front and rear endpoints and the two breakpoints.

[0107] Construct multiple target vectors according to the front and rear endpoints N1 and N2 of the ship AIS track and the two breakpoints M1 and M2 of the waterway section, which are vector N1M1, vector M1N1, vector N1M2, vector M1N2, vector N1N2, and vector M1M2 respectively.

[0108] S430. Determine whether the ship passes through the channel section according to multiple target vectors.

[0109] In the embodiment of the present invention, the vector cross product theorem is used to determine whether multiple target vectors simultaneously satisfy the following two conditions:

[0110] and have different signs

[0111] and have different signs

[0112] If multiple target vectors simultaneously satisfy the above two conditions, it indicates that the section line segment M1M2 and the trajectory line segment N1N2 intersect. Figure 7 It is a schematic diagram of the intersection vector of the section line segment and the trajectory line segment in the embodiment of the present invention. As Figure 7 shown, if the section line segment M1M2 and the trajectory line segment N1N2 intersect, it is considered that the ship has passed through the channel section.

[0113] The principle of the vector cross product theorem is specifically as follows: Suppose there are vector A(x1, y1) and vector B(x2, y2), then the calculation formula of the vector product is as follows:

[0114]

[0115] The calculation formula of the modulus of the vector product is as follows:

[0116]

[0117] In the above formula, θ represents the included angle between vector A and vector B, which lies in the plane defined by these two vectors, and its value ranges from 0° to 180°.

[0118] The operation result of the vector cross product is the cross product. The cross product of two vectors is perpendicular to these two vectors. The direction of A×B is determined according to the right - hand rule from vector A to vector B. Therefore, the spatial position relationship between vector A and vector B can be judged by the direction of the cross product, that is, the positive or negative of the cross product. Figure 8 It is a diagram showing the position of the vector in the embodiment of the present invention. As Figure 8 shown, if A×B < 0, it indicates that vector A is in the counter - clockwise direction of vector B; if A×B > 0, it indicates that vector A is in the clockwise direction of vector B.

[0119] As a preferred implementation manner of the embodiment of the present invention, the navigation direction of the ship passing through the channel section can be determined according to the direction relationship between multiple target vectors and the front and rear end points. Figure 9 It is a schematic diagram of the ship sailing upstream in the embodiment of the present invention. As Figure 9 As shown in the figure, if the trajectory point N1 is in the counterclockwise direction of the vector M1M2 and the trajectory point N2 is in the clockwise direction of the vector M1M2, that is:

[0120] <0 and >0

[0121] It indicates that the sailing direction of the ship is upstream.

[0122] Figure 10 This is a schematic diagram of the ship sailing downstream in the embodiment of the present invention. As Figure 10 shown in the figure, if the trajectory point N1 is in the clockwise direction of M1M2 and the trajectory point N2 is in the counterclockwise direction of M1M2, that is:

[0123] >0 and <0

[0124] It indicates that the sailing direction of the ship is downstream.

[0125] In the embodiment of the present invention, the upstream transportation volume and the downstream transportation volume of the ship passing through the waterway section can be calculated respectively according to the actual situation.

[0126] S500. Identify the ship behavior according to the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of the ship passing through the waterway section.

[0127] Figure 11 This is the sixth schematic diagram of the method flow for calculating the transportation volume of the waterway section provided by the embodiment of the present invention. As Figure 11 shown in the figure, the calculation of the transportation volume of the ship passing through the waterway section specifically includes the following steps:

[0128] S510. Construct the analysis dimension of the waterway section.

[0129] In the embodiment of the present invention, the transportation volume of the waterway section includes the waterway section flow and the waterway section freight volume. The transportation volume of the waterway section can be calculated and analyzed from different time dimensions and space dimensions. From the time dimension, the time is refined into dimensions such as hour, day, month, ten-day period, and year, covering real-time monitoring and macro statistics. For example, from the ship transportation volume per hour in a day at a certain waterway section, the trend change in a day can be observed. From the space dimension, the ship transportation volumes of different sections at the same time are analyzed. For example, from the ship transportation volumes of different waterway sections in a certain waterway on a certain day, the busy degree of ship transportation in different regions can be observed.

[0130] S520. Calculate the flow of the ship passing through the waterway section according to the associated data set and the ship passing through the waterway section algorithm.

[0131] In the embodiments of the present invention, the relatively complete ship AIS trajectories in the ship AIS data are obtained by screening the preprocessed associated data set according to the ship navigation characteristics, the behavior of the ship passing through the channel section is identified, and it is determined whether the ship passes through the channel section. The number of times the i th ship passes through the channel section within a certain statistical period L i is accumulated, and finally the flow of ships passing through the channel section is obtained L , and the calculation formula is as follows:

[0132]

[0133] In the above formula, represents the flow of ships passing through the channel section, that is, the total number of times all ships pass through the channel section within the statistical period; represents the total number of ships passing through the channel section within a certain statistical period, L i represents the th ship passes through the channel section within the statistical period.

[0134] S530. Calculate the freight volume of ships passing through the channel section according to the associated data set and the ship passing through the channel section algorithm.

[0135] The freight volume of different cargo types for each time a ship passes through the channel section within a certain statistical period is accumulated, and finally the freight volume of ships passing through the channel section is obtained. The calculation formula is as follows:

[0136]

[0137] In the above formula, represents the freight volume of ships passing through the channel section, that is, the total freight volume of all ships passing through the channel section within a certain statistical period, represents the total number of main cargo types, H i represents the th cargo type passes through the channel section within the statistical period. This cargo type includes but is not limited to coal, petroleum, metal ore, mineral construction materials, and grain.

[0138] The method for measuring the transportation volume of the channel section provided by the embodiments of the present invention is based on the big data set of ship operation, constructs the data set fusion constraint, effectively fuses the multi-source data sets of ship operation, improves the efficiency of data use, reduces the error caused by single data analysis, better guarantees the relevance and consistency between data, and improves the accuracy and reliability of the analysis results. By constructing the ship passing through the channel section algorithm, the measurement of the channel section flow and freight volume without relying on infrastructure is realized, and the channel section analysis results of multiple channels and multiple space-time dimensions are formed.

[0139] Example 2

[0140] Based on the same technical concept as in Embodiment 1 of the above method, an apparatus for calculating the transportation volume of a waterway section according to an embodiment of the present invention Figure 12 is a schematic structural diagram of the apparatus for calculating the transportation volume of a waterway section provided by an embodiment of the present invention, as Figure 12 shown. The apparatus 200 for calculating the transportation volume of a waterway section includes:

[0141] A first processing module 210, configured to perform data preprocessing on the port reporting data of maritime vessels to obtain initial port reporting data of maritime vessels.

[0142] A second processing module 220, configured to perform data preprocessing on the AIS data of vessels to obtain initial AIS data of vessels.

[0143] A data association module 230, configured to construct constraint conditions according to the initial port reporting data of maritime vessels and the initial AIS data of vessels, and perform data association according to the constraint conditions to obtain an associated data set.

[0144] An algorithm construction module 240, configured to construct an algorithm for vessels to pass through the waterway section according to the AIS trajectory information of vessels and the waterway section information.

[0145] A data calculation module 250, configured to identify vessel behaviors according to the associated data set and the algorithm for vessels to pass through the waterway section, so as to obtain the transportation volume of vessels passing through the waterway section.

[0146] The apparatus for calculating the transportation volume of a waterway section provided by an embodiment of the present invention can provide real-time, accurate and comprehensive waterway operation data for relevant management departments, provide scientific data support for monitoring the vessel transportation situation of the waterway section, and help improve the waterway management efficiency and decision-making scientificity.

[0147] It can be understood that the implementation manners in the method for calculating the transportation volume of a waterway section described in Embodiment 1 above are equally applicable to this embodiment and can achieve the same technical effects, so they will not be repeated here.

[0148] Example 3

[0149] Based on the same concept, an embodiment of the present invention further provides an electronic device Figure 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention, as Figure 13 As shown in the figure, the electronic device 300 may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340. Among them, the processor 310, the communication interface 320, and the memory 330 complete communication with each other through the communication bus 340. The processor 310 may call the logical instructions in the memory 330 to execute the steps of the waterway section traffic volume measurement method described in the above embodiments. For example, it includes:

[0150] S100. Perform data preprocessing on the maritime ship port reporting data to obtain initial maritime ship port reporting data;

[0151] S200. Perform data preprocessing on the ship AIS data to obtain initial ship AIS data;

[0152] S300. Construct constraint conditions based on the initial maritime ship port reporting data and the initial ship AIS data, and perform data association according to the constraint conditions to obtain an associated data set;

[0153] S400. Construct a ship passing through the waterway section algorithm based on the ship AIS trajectory information and the waterway section information;

[0154] S500. Identify ship behaviors according to the associated data set and the ship passing through the waterway section algorithm to obtain the traffic volume of the ship passing through the waterway section.

[0155] Among them, the processor 310 may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. chips, or combinations of the above types of chips.

[0156] In addition, when the logical instructions in the above-mentioned memory 330 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0157] The memory 330 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely provided relative to the processor, and these remote memories may be connected to the processor through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0158] Embodiment 4

[0159] Based on the same concept, an embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and the computer program includes at least one segment of code. The at least one segment of code can be executed by a master control device to control the master control device to implement the steps of the method for calculating the transportation volume of a waterway section as described in the above various embodiments. For example, it includes:

[0160] S100. Perform data preprocessing on the maritime ship port reporting data to obtain initial maritime ship port reporting data;

[0161] S200. Perform data preprocessing on the ship AIS data to obtain initial ship AIS data;

[0162] S300. Construct constraint conditions based on the initial maritime ship port reporting data and the initial ship AIS data, and perform data association according to the constraint conditions to obtain an associated data set;

[0163] S400. Construct an algorithm for a ship to pass through a waterway section based on the ship AIS trajectory information and the waterway section information;

[0164] S500. Identify ship behaviors based on the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of ships passing through the waterway section.

[0165] Based on the same technical concept, an embodiment of the present invention also provides a computer program, which, when executed by the master control device, is used to implement the above method embodiment.

[0166] The computer program can be stored in whole or in part on a computer-readable storage medium packaged together with the processor, or can be stored in whole or in part on a memory not packaged together with the processor.

[0167] Based on the same technical concept, an embodiment of the present invention also provides a processor, which is used to implement the above method embodiment. The above processor can be a chip.

[0168] In summary, the waterway section transportation volume measurement method, device, electronic device and storage medium provided by the present invention are based on the big data set of ship operation, construct a data set fusion constraint, effectively fuse the multi-source data sets of ship operation, improve the efficiency of data use, reduce the error caused by single data analysis, better ensure the relevance and consistency between data, and improve the accuracy and reliability of the analysis results. By constructing the ship passing through the waterway section algorithm, the measurement of the waterway section flow and freight volume without relying on infrastructure is realized, and the waterway section analysis results of multiple waterways and multiple spatio-temporal dimensions are formed. It can provide real-time, accurate and comprehensive waterway operation data for relevant management departments, provide scientific data support for monitoring the ship transportation situation of the waterway section, and help improve the waterway management efficiency and decision-making science.

[0169] Reference to "embodiments" in this text means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0170] The above embodiments only represent several implementation manners of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.

[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.< / lf> < / cr>

Claims

1. A method for calculating the transportation volume of a waterway section, characterized in that The method includes: Performing data preprocessing on the maritime ship port reporting data to obtain initial maritime ship port reporting data; Performing data preprocessing on the ship AIS data to obtain initial ship AIS data; Constructing constraint conditions based on the initial maritime ship port reporting data and the initial ship AIS data, and performing data association according to the constraint conditions to obtain an associated data set. The constraint conditions include time association constraint, spatial association constraint, and similarity constraint; constructing an algorithm for a ship to pass through a channel section according to the ship AIS trajectory information and the channel section information; Identifying ship behaviors according to the associated data set and the ship passing through the channel section algorithm to obtain the transportation volume of the ship passing through the channel section; Among them, the time association constraint means that the corresponding time of the ship's entry and exit behavior in the initial maritime ship port reporting data does not exactly coincide with the ship's departure or arrival time in the initial ship AIS data; The spatial association constraint means that the position of the ship entering and leaving the port in the initial maritime ship port reporting data should match the position of the staying area in the initial ship AIS data, and the ship's traveling direction should be consistent; The similarity constraint means judging the consistency of the ship's static attribute information by defining a similarity threshold or a matching rule; The constructing an algorithm for a ship to pass through a channel section according to the ship AIS trajectory information and the channel section information includes: Obtaining the front and rear endpoints of the ship AIS trajectory and the two end breakpoints of the channel section; Constructing a plurality of target vectors according to the front and rear endpoints and the two end breakpoints; Judging whether the ship passes through the channel section according to the plurality of target vectors.

2. The method for measuring the transportation volume of a waterway section according to claim 1, characterized in that The performing data preprocessing on the ship AIS data to obtain initial ship AIS data includes: Performing message parsing on the ship AIS data to obtain ship AIS parsed data; Performing thinning processing on the ship AIS parsed data to obtain the initial ship AIS data.

3. The waterway cross-section traffic volume measurement method according to claim 2, characterized in that, The performing message parsing on the ship AIS data to obtain ship AIS parsed data includes: Extracting the encapsulated ship AIS message information from the ship AIS data; Converting the ship AIS message information from the ASCII code string form into a binary stream form to obtain binary ship AIS message information; Intercepting binary data segments from the binary ship AIS message information corresponding to the corresponding information segments to obtain the ship AIS parsed data.

4. The method for measuring the waterway cross-section transportation volume according to claim 1, characterized in that The constructing constraint conditions based on the initial maritime ship port reporting data and the initial ship AIS data, and performing data association according to the constraint conditions to obtain an associated data set includes: Extracting the associated fields of the initial maritime ship port reporting data and the initial ship AIS data, and performing preliminary data association according to the associated fields; Constructing a time association constraint according to the time information in the initial maritime ship port reporting data and the initial ship AIS data; Constructing a spatial association constraint according to the position information in the initial maritime ship port reporting data and the initial ship AIS data; Constructing a similarity constraint according to the ship's static attribute information in the initial maritime ship port reporting data and the initial ship AIS data; Perform data association according to the time association constraint, the space association constraint, and the similarity constraint to obtain the associated data set.

5. The method for measuring the transportation volume of a waterway section according to claim 1, wherein After constructing the target vector according to the front and rear endpoints and the two end breakpoints, the following steps are further included: Determine the navigation direction of the ship passing through the waterway section according to the direction relationship between the target vector and the front and rear endpoints.

6. The method for measuring the transportation volume of a waterway cross-section according to claim 1, characterized in that The step of identifying the ship behavior according to the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of the ship passing through the waterway section includes: Construct the analysis dimension of the waterway section; Calculate the flow rate of the ship passing through the waterway section according to the associated data set and the ship passing through the waterway section algorithm; Calculate the freight volume of the ship passing through the waterway section according to the associated data set and the ship passing through the waterway section algorithm.

7. A device for measuring the transportation volume of a waterway section, characterized in that, The device includes: A first processing module for performing data preprocessing on the maritime ship port reporting data to obtain initial maritime ship port reporting data; A second processing module for performing data preprocessing on the ship AIS data to obtain initial ship AIS data; A data association module for constructing constraint conditions according to the initial maritime ship port reporting data and the initial ship AIS data, and performing data association according to the constraint conditions to obtain an associated data set, where the constraint conditions include a time association constraint, a space association constraint, and a similarity constraint; An algorithm construction module for constructing a ship passing through the waterway section algorithm according to the ship AIS trajectory information and the waterway section information; A data measurement module for identifying ship behavior according to the associated data set and the ship passing through the waterway section algorithm to obtain the transportation volume of the ship passing through the waterway section; Among them, the time association constraint means that the time corresponding to the ship's entry and exit behavior in the initial maritime ship port reporting data does not completely coincide with the time when the ship departs or arrives in the initial ship AIS data; The space association constraint means that the position of the ship entering and leaving the port in the initial maritime ship port reporting data should match the position of the stay area in the initial ship AIS data, and the ship's driving direction should be consistent; The similarity constraint means that the consistency of the ship's static attribute information is judged by defining a similarity threshold or a matching rule; The step of constructing a ship passing through the waterway section algorithm according to the ship AIS trajectory information and the waterway section information includes: Obtain the front and rear endpoints of the ship AIS trajectory and the two end breakpoints of the waterway section; Construct multiple target vectors according to the front and rear endpoints and the two end breakpoints; Judge whether the ship passes through the waterway section according to the multiple target vectors.

8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the waterway section transportation volume measurement method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the waterway section transportation volume measurement method according to any one of claims 1 to 6.