Ship message broadcast success rate detection method based on AIS data

By parsing the message field and marking the time slot timeout value of AIS data, the success rate of ship message broadcasting is calculated, which solves the problem of low success rate of message broadcasting by AIS equipment and achieves high-accuracy detection and normal operation of the AIS system. , to provide guarantee for the safe navigation of ships.

CN118317012BActive Publication Date: 2024-09-03THE NAVIGATION GUARANTEE CENT OF NORTH CHINA SEA NGCN MOT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410718986.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-03
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

The message broadcast success rate of AIS equipment is affected by problems such as equipment crashes, signal interference, and transmission time slot conflicts, which affect the capacity of the AIS network system and the safety of ship navigation.

Method used

By parsing the message field of the AIS data, the time slot timeout value of the target ship is marked, and the starting message with the time slot timeout value X is selected as the possible starting data of a group of messages. Based on the No. 1 message after the interval The time slot timeout value carried in the message is used to obtain the single segment message data, the broadcast success amount and the total number of broadcast messages are calculated, and the steps are repeated to obtain the ship message broadcast success rate.

Benefits of technology

It has achieved high-accuracy detection of the success rate of ship message broadcasting, and can timely detect abnormal berths with low broadcasting success rate, ensuring the normal operation of the AIS system and the safe navigation of ships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118317012B
    Figure CN118317012B
Patent Text Reader

Abstract

The present invention relates to the technical field of AIS data processing, and in particular to a method for detecting the success rate of ship message broadcasting based on AIS data. The method comprises: obtaining a plurality of target No. 1 messages corresponding to a target ship and arranged in sequence according to the receiving time after parsing the message field, and marking the time slot timeout value of each target No. 1 message; selecting a starting message with a time slot timeout value of X and taking it as the possible starting data of a group of messages, starting timing from the time corresponding to the starting message, and obtaining single-segment message data based on the time slot timeout value carried by the No. 1 message after an interval of X minutes; and obtaining a broadcast success value r based on the single-segment message data. i and the total amount of broadcast messages R i Repeat the above steps to obtain n successful broadcasts r i And the total number of n broadcast messages R i ; Based on n successful broadcasts r i And the total number of n broadcast messages R i The message broadcast success rate obtained by this method has high accuracy and is easy to calculate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of AIS data processing, and in particular to a method for detecting the success rate of ship message broadcasting based on AIS data. Background Art

[0002] With the rapid development and widespread application of AIS technology, the Automatic Identification System (AIS) has become an important means to ensure the safety of ship navigation, protect the marine environment and improve traffic efficiency. At the same time, due to the rapid growth in the number of ships equipped with AIS equipment, the International Maritime Organization (IMO) stipulates that international routes with a gross tonnage of more than 300 tons and non-international commercial ships with a gross tonnage of more than 500 tons need only install Class A shipborne AIS equipment, small and medium-sized ships need to install AIS Class B berths, and auxiliary navigation facilities (including wireless buoys and lighthouses) need to install ATON AIS equipment.

[0003] With the extensive application of AIS equipment, the success rate of message broadcasting has also been highly valued by relevant departments. In the special rectification activities of AIS shipyard equipment, it was found that the success rate of message broadcasting of shipyard equipment was seriously affected by problems such as equipment deadlock and aging, signal interference in special areas and transmission time slot conflicts. This not only affects the system capacity of the entire AIS network, but also poses a potential danger to the navigation safety of surrounding ships. Since Class A ships have faster sailing speeds and larger tonnage, they cause greater harm to maritime navigation when abnormalities occur. Therefore, based on the data received by the AIS shore base, the SOTDMA protocol mechanism is used to detect the success rate of message broadcasting of Class A ships, and timely discover the shipyard with abnormal message broadcasting, thereby ensuring the normal operation of the AIS system and escorting the safe navigation of ships. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for detecting the success rate of ship message broadcasting based on AIS data.

[0005] To solve the above problems, the technical solution adopted by the present invention is:

[0006] 1. A method for detecting the success rate of ship message broadcasting based on AIS data, the method comprising:

[0007] Step 1: After parsing the message field, multiple target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time are obtained, and the time slot timeout value of each target No. 1 message is marked; wherein the communication status bit field of each target No. 1 message complies with the preset rules;

[0008] Step 2: Select a starting message with a time slot timeout value of X and use it as the possible starting data of a group of messages, start timing from the time corresponding to the starting message, and obtain single-segment message data based on the time slot timeout value carried by message No. 1 after an interval of X minutes; the value range of X is 4 to 7;

[0009] Step 3: Based on the single-segment message data, the number of successful broadcasts r corresponding to the time interval is obtained. i and the total amount of broadcast messages R i ;

[0010] Step 4: Repeat steps 2 and 3 to obtain n successful broadcasts r i And the total number of n broadcast messages R i ;

[0011] Step 5: Based on the number of successful broadcasts r i And the total number of n broadcast messages R i , the following formula is used to obtain the ship message broadcast success rate:

[0012] ;

[0013] ;

[0014] ;

[0015] Among them, r is the number of successful ship message broadcasts, R is the total number of ship message broadcasts, and Pr is the success rate of ship message broadcasts.

[0016] As an implementation method of the invention, in step 1, multiple target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time are obtained in the following manner:

[0017] Step S101, obtaining multiple No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time according to the MMSI;

[0018] Step S102: for any one of the No. 1 messages, when it is determined that the communication status bit field verification has passed, use it as the target No. 1 message whose communication status bit field complies with the preset rule.

[0019] As an implementation mode of the invention, in step S102, the communication status bit field is verified as follows:

[0020] Determine whether the first 2 bits of the 19-bit communication status bit of message No. 1 are synchronization status bits; the last 3 bits are time slot timeout values, and the time slot timeout value range is X~0, and X is a maximum of 7; the last 14 bits are sub-message information, and the sub-message information matches the time slot timeout value;

[0021] When it is determined that all of the 19-bit communication status bits of the message satisfy the above rules, it is determined that the communication status bit field verification has passed.

[0022] As an implementation mode of the invention, in step 2, the detection is performed based on the time slot timeout value carried by message No. 1 after an interval of X minutes to obtain single-segment message data, including:

[0023] Step S201: after an interval of X minutes, determine whether there is a message with a time slot timeout value of 0. If so, determine whether the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are consistent; if not, take the time after an interval of X minutes as the starting point to determine whether a new message will be detected within an interval of 4 frames, and whether the relationship between the time slot number B occupied by the new message and the time slot number A of the message with a time slot of 0 in the current group satisfies |BA|<75;

[0024] Step S202, when it is determined that it exists, and the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are inconsistent; or, when it is determined that it does not exist, and it is determined that no new message is detected within the time interval of 4 frames with the moment after the interval of X minutes as the starting point; or, when it is determined that it does not exist, it is determined that a new message is detected within the time interval of 4 frames with the moment after the interval of X minutes as the starting point, but |BA|<75 is not satisfied, the starting message to the previous message that does not meet the condition is used as a single-segment message data.

[0025] As an implementation mode of the invention, in step 2, the detection is performed based on the time slot timeout value carried by message No. 1 after an interval of X minutes to obtain single-segment message data, and further includes:

[0026] Step S203, when it is determined that it exists, and the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are consistent; or, when it is determined that it does not exist, it is determined that a new message is detected within the interval of 4 frames with the moment after the interval X minutes as the starting point, and |BA|<75 is satisfied, the initial message or the new message is used as the starting message, and the timing starts from the moment corresponding to the starting message, and step S201 is repeated.

[0027] As an implementation mode of the invention, in step S201, the theoretical occupied time slot number is obtained by adding the time slot number corresponding to the message with a time slot timeout value of 0 in the current group and the time slot offset.

[0028] As an implementation method of the invention, the number of messages in the single-segment message data is used as the broadcast success amount r i .

[0029] As an implementation mode of the invention, the number of packets to be sent for all groups in the single segment of packet data is calculated according to the time slot timeout value of each group of packet data in the single segment of packet data. i .

[0030] As an implementation mode of the invention, for any group of message data, the corresponding number of messages to be sent is X+1.

[0031] The beneficial effects of adopting the above technical solution are:

[0032] The ship message broadcast success rate detection method based on AIS data provided by the present invention comprises: obtaining a plurality of target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time after parsing the message field, and marking the time slot timeout value of each target No. 1 message; selecting a starting message with a time slot timeout value of X and using it as a possible starting data of a group of messages, starting timing from the time corresponding to the starting message, and obtaining single-segment message data based on the time slot timeout value carried by No. 1 message after an interval of X minutes; obtaining the broadcast success amount r within the time interval corresponding to the single-segment message data based on the single-segment message data i and the total amount of broadcast messages R i Repeat the above steps to obtain n successful broadcasts r i And the total number of n broadcast messages R i , n≥10000; based on n successful broadcasts r i And the total number of n broadcast messages R i The message broadcast success rate obtained by this method is highly accurate and easy to calculate, and can timely detect abnormal ships with low broadcast success rate for processing and resolution, thereby ensuring the normal operation of the AIS system and escorting the safe navigation of ships. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 The present invention provides a flowchart of the message broadcast success rate detection.

[0034] Figure 2 The present invention provides a flow chart for calculating the amount of single-segment message broadcast.

[0035] Figure 3 It is a schematic diagram of the structure of message No. 1 carrying the SOTDMA communication status bit.

[0036] Figure 4 This is a schematic diagram of SOTDMA time slot selection. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is clearly and completely described below in conjunction with specific embodiments.

[0038] The present invention provides a method for detecting the success rate of ship message broadcasting based on AIS data. The AIS message broadcasting success rate Pr refers to the ratio of the number of successful message broadcasts r to the total number of messages that should be broadcast R within a certain period of time, and the calculation formula is: Pr=r / R.

[0039] Therefore, the core of the AIS message broadcast success rate detection algorithm is to accurately obtain two key parameters: the total message broadcast amount R and the actual broadcast success amount r in the same time. The message broadcast success amount r refers to the data after parsing message No. 1 and verifying it through the message field; the total message broadcast amount R needs to be inferred from the time slot timeout value in the SOTDMA communication status bit field carried by the No. 1 ship message and the time slot number carried by the VSI in the received data to infer the total amount of messages that should be broadcast.

[0040] However, since the speed of a ship may change during navigation, resulting in the switching of the message broadcast content (the message will change from message No. 1 to message No. 3, and then return to message No. 1 after 1 minute, until the ship speed changes again), the present invention adopts a method of selecting multiple sections of stable data, respectively parsing and analyzing to obtain the total message broadcast amount and the successful broadcast amount within the data time, and then summing and counting to obtain the AIS message broadcast success probability.

[0041] like Figure 1 and Figure 2 As shown, the method includes:

[0042] Step 1: After parsing the message field, multiple target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time are obtained, and the time slot timeout value of each target No. 1 message is marked; wherein the communication status bit field of each target No. 1 message complies with the preset rules;

[0043] In the ship message, message No. 1 transmits information on the VDL data link in SOTDMA access mode. Its message length is fixed at 256 bits and occupies 1 time slot. Its structure is as follows: Figure 3 As shown. The 168-bit data field contains 19 bits of communication status information, and the communication status information contains a 3-bit time slot timeout value, which indicates the reservation of the time slot for the subsequent message; the time slot timeout value indicates that the time slot has been occupied for the next few frames, and the time slot timeout value decreases by 1 for each frame transmitted. When the time slot timeout value is 0, if the subsequent transmission is stopped, the time slot offset in the sub-message is set to 0; if the transmission continues, the time slot needs to be re-reserved and the time slot timeout value is set to X, where X is any integer between 3 and 7. The time slot offset in the sub-message indicates the time slot offset relative to the next frame, that is, the time slot number occupied by the next frame is indicated by the time slot offset value, as shown in Table 1.

[0044] Table 1

[0045]

[0046] Therefore, in this step, the following method is used to obtain multiple target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time:

[0047] Step S101, obtaining a plurality of No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time according to the ship MMSI code;

[0048] Step S102: for any one of the No. 1 messages, when it is determined that the communication status bit field verification has passed, use it as the target No. 1 message whose communication status bit field complies with the preset rule.

[0049] Among them, the communication status bit field is verified as follows:

[0050] Determine whether the first 2 bits of the 19-bit communication status bit of message No. 1 are synchronization status bits; the last 3 bits are the time slot timeout value, and the time slot timeout value range is X~0, and X is 7 at most; the last 14 bits are sub-message information, and the sub-message information matches the time slot timeout value; specifically, as shown in Table 1, when the time slot timeout value is 3, 5 or 7, the corresponding sub-message information is the number of stations received; when the slot timeout value is 2, 4 or 6, the corresponding sub-message information is the time slot number occupied by the transmitted message; when the slot timeout value is 1, the corresponding sub-message information is UTC time and UTC minute; when the slot timeout value is 0, the corresponding sub-message information is the time slot offset.

[0051] When it is determined that all of the 19-bit communication status bits of the message satisfy the above rules, it is determined that the communication status bit field verification has passed.

[0052] Step 2: Select a starting message with a time slot timeout value of X and use it as the possible starting data of a group of messages, start timing from the time corresponding to the starting message, and obtain a single-segment message data based on the time slot timeout value carried by message No. 1 after an interval of X minutes; the value range of X is 3 to 7; wherein, the "group" in the present invention refers to a group of message data in which the time slot timeout value continuously changes from X to 0.

[0053] In the present invention, in the process of calculating the total amount of message broadcasting, it is taken into account that since the message reception success rate is not 100%, the message with relevant information may not be received when the message broadcasting rate is switched, that is, it is impossible to intuitively judge whether the selected data segment maintains a constant rate through the received data. Therefore, it is necessary to determine it by analyzing the relationship between the message slot timeout value and the message broadcasting slot selection.

[0054] (1) Message slot timeout value:

[0055] The message slot timeout value is the same as before Figure 3 As described in Table 1, through the rule that the time slot timeout value in a group of messages decreases from X to 0, and when the time slot timeout value is 0, the sub-message information corresponds to the time slot offset, the theoretical occupied time slot of the initial message of the next group of messages can be obtained, wherein the initial message of the next group of messages refers to the first message received in the next group.

[0056] Specifically, the theoretical occupied time slot number is obtained by adding the time slot number corresponding to the message whose time slot in the current group is 0 and the time slot offset.

[0057] (2) Message broadcast time slot selection

[0058] When the time slot timeout value is 0 and the message needs to be transmitted, the next frame time slot number is determined by the root time slot selection rule. It takes the current NS as the starting point, determines the nominal increment NI according to the report rate Rr of the station message, and obtains the next NS. Then, with NS as the center and SI as the time slot selection range, the nominal transmission time slot NTS is selected from it. Figure 4 As shown in Table 2, the nominal transmission time slot NTS is the time slot number occupied when the message is transmitted, which is obtained at the data receiving end through the information carried by VSI. For Class A ships, there are three types of nominal reporting intervals, and the corresponding nominal increments 2NI and time slot selection ranges SI are shown in Table 2.

[0059] Table 2 Reporting intervals for Class A shipborne stations

[0060]

[0061] according to Figure 4 It can be seen that the minimum interval between adjacent nominal time slots NTS is 2NI-SI. In practice, due to the problem of ship message reception success rate, it is difficult to accurately determine the message broadcast rate Rr through the received data, but it can be determined that as long as the message broadcast rate remains unchanged, the reference nominal time slot NS remains unchanged, and the message time slot selection range remains unchanged, when the time slot timeout value is 0, the difference between the time slot number B of the first message received in the next frame (i.e., the next group) and the time slot number A of the message with the current time slot timeout value of 0 must be less than SI: that is, |BA| <SI。

[0062] Therefore, in the calculation of the total amount of single-segment message broadcast, considering that the rate of the ship may change during navigation, the data needs to be processed in segments to ensure that the message rate of each segment is consistent; the data of this segment needs to be selected first to ensure that there is no change in the message broadcast rate in the selected data segment. When the message rate changes, it will insert ITDMA broadcast, so the SOTDMA protocol rules cannot be met between frames. Therefore, when selecting data segments, the following rules must be met:

[0063] (1)All the information carried by the message communication status bits is SOTDMA information;

[0064] (2)Data analysis starts when the time slot timeout value is greater than or equal to 3;

[0065] (3)In two adjacent groups of data, either the status of the time slot timeout value of the current group of data being 0 can be detected, or it is detected that the interval between the new message data of the next group and the time slot timeout value of the current group of data being 0 does not exceed 4 frames. The time slot number B occupied by the new message and the time slot number A of the message with a time slot of 0 in the current group satisfy |B - A| < SI, and according to Table 2, the maximum value of SI is 75. Therefore, |B - A| < 75.

[0066] Therefore, in this step, detection is performed based on the time slot timeout value carried by Message No. 1 after an interval of X minutes to obtain single-segment message data, including:

[0067] Step S201: After an interval of X minutes, determine whether there is a message with a time slot timeout value of 0. If there is a message with a time slot timeout value of 0, determine whether the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are the same; among them, the theoretical occupied time slot number is obtained by adding the time slot number corresponding to the message with a time slot timeout value of 0 in the current group and the time slot offset. In the present invention, the next group of messages refers to the messages adjacent to the current group of messages and received after the current group of messages.

[0068] If there is no message with a time slot timeout value of 0, take the moment after an interval of X minutes as the starting point to determine whether a new message will be detected within the time interval of 4 frames from this moment, and whether the relationship between the time slot number B occupied by the new message and the time slot number A of the message with a time slot of 0 in the current group satisfies |B - A| < 75.

[0069] Specifically, when X = 6, the moment corresponding to the starting message with a time slot timeout value of 6 is [2023-09-20 10:14:53:447]. After an interval of 6 minutes, determine whether there is a message with a time slot timeout value of 0. If not, take the moment [2023-09-20 10:20:53:447] after an interval of 6 minutes as the starting point to determine whether a new message will be detected within the time interval of 4 frames from this moment, that is, determine whether a new message will be detected within the time of [2023-09-20 10:20:53:447] - [2023-09-20 10:24:53:447].

[0070] It should be noted that a new message may be detected within the 4 frames, and the time slot number occupied by the new message will be taken as the time slot number B occupied by the new message; of course, it is also possible that at least two new messages with different time slot timeout values ​​are detected. In this case, since these new messages belong to the same group, the time slot numbers of these new messages are the same, so the time slot number of any message can be obtained as the time slot number B occupied by the new message.

[0071] According to the judgment result in the aforementioned step S201, step S202 or step S203 is executed:

[0072] Step S202, when it is determined that there is a message with a time slot timeout value of 0, and the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are inconsistent; or, when it is determined that there is no message, and it is determined that no new message is detected within the time interval of 4 frames with the time after the interval of X minutes as the starting point; or, when it is determined that there is no message, and it is determined that a new message is detected within the time interval of 4 frames with the time after the interval of X minutes as the starting point, but |BA|<75 is not satisfied, the starting message (that is, Figure 2 The starting data in the message) to the previous message that does not meet the above conditions (i.e. Figure 2 The data in the technical data) is regarded as single-segment message data.

[0073] Step S203, when it is determined that there is a message with a time slot timeout value of 0, and the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are consistent; or, when it is determined that there is no message, it is determined that a new message is detected within the interval of 4 frames with the moment after the interval X minutes as the starting point, and |BA|<75 is satisfied, the initial message or the new message is taken as the starting message, and the timing starts from the moment corresponding to the starting message, and step S201 is repeated.

[0074] That is, in selecting the message data segment, first select the data that may be the start of a group of messages, that is, select the message with a time slot timeout value of X (the value of X is 3~7), occupying the time slot number A, and after an interval of X minutes, determine whether there is a message with a time slot timeout value of 0. If so, parse the time slot offset corresponding to the message and calculate the time slot number B occupied by the next group of messages. If the time slot number of the subsequently received message is B, it means that the data is normal and continuous; if the message with a time slot timeout value of 0 does not exist, calculate the time position point when the time slot timeout value is 0 according to the time interval, and detect the received message within the interval of 4 frames with this point as the starting point. The reason for the interval of 4 frames is that the minimum time slot timeout value at the start of a new group of messages is 3, that is, the normal reception of this group of messages will last for at least 4 minutes, and the relationship between the time slot number B occupied by the message and the time slot number A of the previous group satisfies |BA|<75. If the above conditions are met, the data is normal and continuous. Regardless of whether the message with a time slot timeout value of 0 can be detected normally, as long as the above conditions are met, the next round of time slot overvalue detection will continue until the data does not meet the above conditions, indicating that the ship may have a rate switch, then stop data detection to complete the selection of single-segment data.

[0075] Step 3: Based on the single-segment message data, the number of successful broadcasts r corresponding to the time interval is obtained. i and the total amount of broadcast messages R i ;

[0076] The number of messages in the single-segment message data is taken as the number of successful broadcasts r i The time slot timeout value indicates the relationship between message frames, so the time slot timeout value is the time parameter for obtaining the total amount of message broadcast, that is, the number of frames Fn, one frame represents 1 minute; according to the time slot timeout value of each group of message data in a single segment of message data, the number of messages that should be sent in all groups of this segment of data R is calculated. i ; For any set of message data, the corresponding number of messages to be sent is X+1.

[0077] That is, the number of successful message broadcasts after completing the single-segment data selection is r i The calculation is to count the number of messages successfully received within this data time interval, that is, r i By analyzing the timeout value of the received message slot, the total number of messages broadcast during this data time interval R is calculated. i , that is, when the time slot over-value of each group of data changes from X to 0, X+1 messages should be sent, and so on, the sum of the messages to be sent for all groups in this segment of data is calculated statistically, that is, R i .

[0078] If a single segment message contains 8 messages, then r iThat is, 8; when the single-segment message data includes a start message with a time slot timeout value of 7 and a start message with a time slot timeout value of 3, its R i The value is 8+4=12.

[0079] Step 4: Repeat steps 2 and 3 to obtain n successful broadcasts r i And the total number of n broadcast messages R i , n ≥ 10000;

[0080] After obtaining the total amount of single-segment data broadcast messages R i and the number of successful broadcasts r i After that, the same method is used to continue to select the next segment of data with unchanged navigation status. In the process of detecting the message broadcast success rate, the navigation status of the ship and the message broadcast rate are not taken into consideration. The statistical data may contain any of the reporting rates in Table 2. With the minimum broadcast frequency of 6 messages / s as a reference, the data volume of about 12 days is counted, 12*24*60*6=103680 messages, that is, when the total number of frames R counted reaches about 100,000, the data segment selection is completed, and at least 10,000 message data segments can be selected.

[0081] Step 5: Use the following formula to obtain the ship message broadcast success rate:

[0082] ;

[0083] ;

[0084] ;

[0085] Among them, r is the number of successful message broadcasts, R is the total number of message broadcasts, and Pr is the ship message broadcast success rate.

[0086] The ship message broadcast success rate detection method based on AIS data provided by the present invention comprises: obtaining a plurality of target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time after parsing the message field, and marking the time slot timeout value of each target No. 1 message; selecting a starting message with a time slot timeout value of X and using it as a possible starting data of a group of messages, starting timing from the time corresponding to the starting message, and obtaining single-segment message data based on the time slot timeout value carried by the No. 1 message after an interval of X minutes; obtaining the broadcast success amount r within the time interval corresponding to the single-segment message data based on the single-segment message data i and the total amount of broadcast messages R i Repeat the above steps to obtain n successful broadcasts r i And the total number of n broadcast messages R i , n≥10000; based on n successful broadcasts r i And the total number of n broadcast messages Ri The message broadcast success rate obtained by this method is highly accurate and easy to calculate, and can timely detect abnormal ships with low broadcast success rate for processing and resolution, thereby ensuring the normal operation of the AIS system and escorting the safe navigation of ships.

Claims

1. A method for detecting the success rate of ship message broadcasting based on AIS data, characterized in that: The method comprises: Step 1: After parsing the message field, multiple target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time are obtained, and the time slot timeout value of each target No. 1 message is marked; wherein the communication status bit field of each target No. 1 message complies with the preset rules; Step 2: Select a starting message with a time slot timeout value of X and use it as the possible starting data of a group of messages, start timing from the time corresponding to the starting message, and obtain single-segment message data based on the time slot timeout value carried by message No. 1 after an interval of X minutes; the value range of X is 4 to 7; Step 3: Based on the single-segment message data, the number of successful broadcasts r corresponding to the time interval is obtained. i and the total amount of broadcast messages R i ; Step 4: Repeat steps 2 and 3 to obtain n successful broadcasts r i And the total number of n broadcast messages R i ; Step 5: Based on the number of successful broadcasts r i And the total number of n broadcast messages R i , the following formula is used to obtain the ship message broadcast success rate: ; ; ; Among them, r is the number of successful ship message broadcasts, R is the total number of ship message broadcasts, and Pr is the ship message broadcast success rate; In step 2, the detection is performed based on the time slot timeout value carried by message No. 1 after an interval of X minutes to obtain single-segment message data, including: Step S201: after an interval of X minutes, determine whether there is a message with a time slot timeout value of 0. If so, determine whether the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are consistent; if not, take the time after an interval of X minutes as the starting point to determine whether a new message will be detected within an interval of 4 frames, and whether the relationship between the time slot number B occupied by the new message and the time slot number A of the message with a time slot of 0 in the current group satisfies |BA|<75; Step S202: when it is determined that the condition exists, and the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are inconsistent; or when it is determined that the condition does not exist, and it is determined that no new message is detected within the time interval of 4 frames with the time after the interval of X minutes as the starting point; or when it is determined that the condition does not exist, and it is determined that a new message is detected within the time interval of 4 frames with the time after the interval of X minutes as the starting point, but |BA|<75 is not satisfied, the starting message to the previous message that does not meet the condition is used as a single-segment message data; In step 2, the detection is performed based on the time slot timeout value carried by message No. 1 after an interval of X minutes to obtain single-segment message data, and further includes: Step S203, when it is determined that it exists, and the theoretical occupied time slot number and the actual occupied time slot number of the initial message of the next group of messages are consistent; or, when it is determined that it does not exist, it is determined that a new message is detected within the interval of 4 frames with the moment after the interval X minutes as the starting point, and |BA|<75 is satisfied, the initial message or the new message is used as the starting message, and the timing starts from the moment corresponding to the starting message, and step S201 is repeated.

2. A method for detecting the success rate of ship message broadcasting based on AIS data according to claim 1, characterized in that: In step 1, multiple target No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time are obtained in the following manner: Step S101, obtaining multiple No. 1 messages corresponding to the target ship and arranged in sequence according to the receiving time according to the MMSI; Step S102: for any one of the No. 1 messages, when it is determined that the communication status bit field verification has passed, use it as the target No. 1 message whose communication status bit field complies with the preset rule.

3. A method for detecting the success rate of ship message broadcasting based on AIS data according to claim 2, characterized in that: In step S102, the communication status bit field is verified as follows: Determine whether the first 2 bits of the 19-bit communication status bit of message No. 1 are synchronization status bits; the last 3 bits are time slot timeout values, and the time slot timeout value ranges from 0 to X, and X is a maximum of 7; the last 14 bits are sub-message information, and the sub-message information matches the time slot timeout value; When it is determined that all of the 19-bit communication status bits of the message satisfy the above rules, it is determined that the communication status bit field verification has passed.

4. A method for detecting the success rate of ship message broadcasting based on AIS data according to claim 1, characterized in that: In step S201, the theoretical occupied time slot number is obtained by adding the time slot number corresponding to the message with a time slot timeout value of 0 in the current group and the time slot offset.

5. The method for detecting the success rate of ship message broadcasting based on AIS data according to claim 1, characterized in that: The number of messages in the single-segment message data is taken as the number of successful broadcasts r i .

6. A method for detecting the success rate of ship message broadcasting based on AIS data according to claim 1, characterized in that: According to the time slot timeout value of each group of message data in the single segment message data, the message R to be sent for all groups in this segment of data is calculated. i .

7. A method for detecting the success rate of ship message broadcasting based on AIS data according to claim 6, characterized in that: For any group of message data, the corresponding number of messages to be sent is X+1.