A method and device for identifying a single tugboat target

By acquiring and processing the real-time trajectory data of a single tug vessel, learning its motion characteristics, and using a random forest model for identification, it solves the problem of false positives and false negatives in the trajectory recognition of single tug vessels in the existing technology, and improves the efficiency of sea-related and fishing-related activities. Ability to monitor violations of laws and regulations.

CN112907632BActive Publication Date: 2024-09-06HAINAN HAILAN HUANYU MARINE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110265932.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-11
Publication Date
2024-09-06
Estimated Expiration
2041-03-11

AI Technical Summary

Technical Problem

The existing technology cannot effectively identify the long-term trajectory characteristics of a single tug vessel, resulting in false alarms and false alarms, and cannot adapt to changing movement trajectories, affecting the precise crackdown on illegal activities related to sea and fishing and the management of fishing moratoriums during the winter season.

Method used

By obtaining the real-time trajectory data of the ship, we perform preprocessing, trajectory clustering and feature extraction, learn a large number of single-trailer trajectory features, use the random forest model for identification, and extract at least 3 hours of historical trajectories to reduce the false alarm rate and improve recognition. accuracy.

Benefits of technology

It greatly reduces the false alarm rate and almost never misses the report, improves the ability to obtain intelligence on fishing-related violations, and enhances the precise crackdown on fishing-related violations and the refined management of late-season fishing moratoriums.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112907632B
    Figure CN112907632B
Patent Text Reader

Abstract

The present invention provides a method and device for identifying a single-tugboat target, the method comprising: obtaining real-time driving trajectory data of the ship; preprocessing the real-time driving trajectory data to obtain a preprocessing result; performing trajectory clustering on the preprocessing result to obtain a clustering result; extracting features from the clustering result to obtain feature data; inputting the feature data into a preset model for identifying the single-tugboat target for processing to obtain an identification result of the single-tugboat target. The scheme of the present invention is based on the movement characteristics of the single-tugboat, abstracts features such as course changes, number of turns, and segmented straight-line time, does not directly set a threshold, greatly reduces the false alarm rate, and improves the ability to obtain intelligence on illegal and irregular behaviors involving the sea and fisheries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and a device for identifying a single-tugboat target. Background Art

[0002] Accurate identification of single-tug fishing vessels (fishing vessels that tow nets to fish alone) can improve the ability to obtain intelligence on marine and fishery-related illegal and irregular activities, thereby strengthening the targeted crackdown on fishery-related illegal and irregular activities and the refined management of the summer fishing moratorium.

[0003] The prior art has at least the following problems:

[0004] The general single-tow operation lasts for more than several hours, while the traditional rule-based single-tow can only identify a short time (1 hour) and cannot fully express the trajectory characteristics of the single-tow. Rule-based recognition requires setting a fixed threshold, which has certain limitations and cannot adapt to the changing movement trajectory, resulting in false positives and false negatives. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method and device for identifying single-tugboat targets. Based on the movement characteristics of single-tugboats, characteristics such as course changes, number of turns, and segmented straight-line time are abstracted. Instead of directly setting a threshold, a large number of single-tugboat trajectory characteristics are learned, and historical trajectories of at least 3 hours are extracted. The trajectories are classified, which greatly reduces the false alarm rate and improves the ability to obtain intelligence on illegal and irregular behaviors involving sea and fisheries.

[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0007] A method for identifying a single tugboat target, comprising:

[0008] Obtain real-time ship trajectory data;

[0009] Preprocessing the real-time driving trajectory data to obtain a preprocessing result;

[0010] Performing trajectory clustering on the preprocessing result to obtain a clustering result;

[0011] Performing feature extraction on the clustering results to obtain feature data;

[0012] The characteristic data is input into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target.

[0013] Optionally, preprocessing the real-time driving trajectory data includes:

[0014] Deleting the real-time driving trajectory data in which the number of trajectory points is less than the first value;

[0015] Deleting the real-time driving trajectory data whose average speed is less than the second value in the real-time driving trajectory data; and / or

[0016] The real-time driving trajectory data having an average speed greater than a third value is deleted.

[0017] Optionally, performing trajectory clustering on the preprocessing result to obtain a clustering result includes:

[0018] Performing trajectory clustering on the preprocessing results by using a clustering algorithm to obtain an intermediate clustering result;

[0019] Calculating the activity range of the to-be-identified vessel according to the intermediate clustering result, and obtaining an activity range result;

[0020] The activity range results that are less than or equal to the first threshold are deleted; otherwise, the activity range is retained to obtain the final clustering result.

[0021] Optionally, feature extraction is performed on the clustering result to obtain feature data, including:

[0022] Feature extraction is performed on the clustering results to obtain at least one of the following feature data: heading change results, number of turns results, straight travel time results, circling rate results, speed, and heading.

[0023] Optionally, the heading change result is the sum of heading changes of the ship to be identified, and the heading change is the heading difference of the ship to be identified at two moments;

[0024] The turning number result is the turning number of the vessel to be identified;

[0025] The straight travel time result is the segmented statistical straight travel time of the vessel to be identified;

[0026] The turning rate result is the turning rate of the vessel to be identified; the turning rate is the total distance of the vessel to be identified divided by the displacement.

[0027] Optionally, the prediction model for a single tugboat target is trained as follows:

[0028] Obtain historical trajectory sample data of ships;

[0029] Performing data cleaning on the historical track sample data of the vessel to obtain a cleaning result;

[0030] Performing data visualization processing on the cleaning result to obtain a visualization result;

[0031] Performing feature extraction on the visualization result to obtain the feature extraction result;

[0032] The feature extraction result is trained through a random forest model to obtain the preset model.

[0033] Optionally, the parameters of the random forest model include:

[0034] n_estimators = 60;

[0035] max_depth=10;

[0036] min_samples_split = 10;

[0037] Among them, n_estimators is the number of decision trees, max_depth is the depth of the decision tree, and min_samples_split is the minimum number of samples for a node.

[0038] Optionally, the characteristic data is input into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target, including:

[0039] Input the feature data into a preset model and output a prediction result;

[0040] Determine the type of the vessel to be identified according to the prediction result and obtain a determination result;

[0041] According to the judgment result, the single-tow vessel target is acquired.

[0042] Optionally, obtaining the single-tow vessel target according to the judgment result includes:

[0043] When the judgment result is that the probability that the to-be-identified vessel is a single-tow vessel target is greater than 0.7, the single-tow vessel target is acquired.

[0044] An embodiment of the present invention further provides a device for identifying a single tugboat target, comprising:

[0045] An acquisition module is used to acquire the real-time traveling track data of the vessel;

[0046] A preprocessing module, used to preprocess the real-time driving trajectory data to obtain a preprocessing result;

[0047] A clustering module, used for performing trajectory clustering on the preprocessing results to obtain clustering results;

[0048] A feature extraction module, used to extract features from the clustering results to obtain feature data;

[0049] The recognition module is used to input the characteristic data into a preset model for identifying the single-tugboat target for processing, so as to obtain the recognition result of the single-tugboat target.

[0050] The above solution of the present invention includes at least the following beneficial effects:

[0051] Based on the movement characteristics of single-tugboats, we abstract features such as course changes, number of turns, and segmented straight-line time. Instead of setting a threshold directly, we learn a large number of single-tug trajectory features and extract at least 3 hours of historical trajectories to classify the trajectories. This greatly reduces the false alarm rate and almost eliminates missed reports, improving the ability to obtain intelligence on illegal and irregular activities involving the sea and fisheries. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a flow chart of a method for identifying a single tugboat target according to an embodiment of the present invention;

[0053] Figure 2 1 is a schematic diagram of an algorithm flow of a method for identifying a single tugboat target according to an embodiment of the present invention;

[0054] Figure 3 It is a schematic structural diagram of a single tugboat target recognition device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0056] like Figure 1 As shown, an embodiment of the present invention provides a method for identifying a single tugboat target, comprising:

[0057] Step S1: obtaining real-time traveling track data of the vessel;

[0058] Step S2: preprocessing the real-time driving trajectory data to obtain a preprocessing result;

[0059] Step S3: performing trajectory clustering on the preprocessing result to obtain a clustering result;

[0060] Step S4: extracting features from the clustering results to obtain feature data;

[0061] Step S5: inputting the characteristic data into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target.

[0062] Specifically, Figure 2 As shown, the real-time trajectory data of the ship is obtained, including:

[0063] 1) The front end creates a single-drag template, draws a single-drag identification area and associates it with the template to generate warning conditions and store them in Redis (Remote Dictionary Server); the back end saves the warning conditions; and stores the data in Redis and MySQL (relational database management system).

[0064] 2) Use Spark (a fast and general computing engine for large-scale data processing) to read the target trajectory for the past three hours, filter the trajectory using the region condition in Redis, and save it to a local file.

[0065] This embodiment of the present invention, based on the movement characteristics of single-tugboats, abstracts features such as course changes, number of turns, and segmented straight-line time. Instead of directly setting a threshold, a large number of single-tug trajectory features are learned, and historical trajectories of at least 3 hours are extracted to classify the trajectories. This greatly reduces the false alarm rate, almost eliminates missed reports, and improves the ability to obtain intelligence on illegal and irregular activities involving the sea and fisheries.

[0066] In an optional embodiment of the present invention, Figure 2 As shown, in step S2, the real-time driving trajectory data is preprocessed, including:

[0067] Deleting the real-time driving trajectory data in which the number of trajectory points is less than the first value;

[0068] Deleting the real-time driving trajectory data whose average speed is less than the second value in the real-time driving trajectory data; and / or

[0069] The real-time driving trajectory data having an average speed greater than a third value is deleted.

[0070] The first value may be 10; the second value may be 2 nodes; the third value may be 6 nodes;

[0071] In an optional embodiment of the present invention, in step S3, performing trajectory clustering on the preprocessing result to obtain a clustering result includes:

[0072] Performing trajectory clustering on the preprocessing results by using a clustering algorithm to obtain an intermediate clustering result;

[0073] Calculating the activity range of the to-be-identified vessel according to the intermediate clustering result, and obtaining an activity range result;

[0074] The activity range results that are less than or equal to the first threshold are deleted; otherwise, the activity range is retained to obtain the final clustering result.

[0075] The preprocessing results are clustered using the KMeans clustering algorithm, and the first threshold can be that the general activity range within 20 minutes is 900 meters;

[0076] In an optional embodiment of the present invention, the method for identifying a single tugboat target further includes:

[0077] Delete ships whose length is not within the range of 0-60 meters;

[0078] Characteristics of the trajectory: moving back and forth in a fixed area.

[0079] In an optional embodiment of the present invention, in step S4, feature extraction is performed on the clustering result to obtain feature data, including:

[0080] Feature extraction is performed on the clustering results to obtain at least one of the following feature data: heading change results, number of turns results, straight travel time results, circling rate results, speed, and heading.

[0081] In an optional embodiment of the present invention, in step S4, the heading change result is the sum of the heading changes of the ship to be identified; the heading change is the heading difference between two moments of the ship to be identified;

[0082] The turning number result is the turning number of the vessel to be identified;

[0083] The straight travel time result is the segmented statistical straight travel time of the vessel to be identified;

[0084] The turning rate result is the turning rate of the vessel to be identified; the turning rate is the total distance of the vessel to be identified divided by the displacement.

[0085] In an optional embodiment of the present invention, Figure 2 As shown, in step S5, the single tugboat target model is trained as follows:

[0086] Obtain historical trajectory sample data of ships;

[0087] Performing data cleaning on the historical track sample data of the vessel to obtain a cleaning result;

[0088] Performing data visualization processing on the cleaning result to obtain a visualization result;

[0089] Performing feature extraction on the visualization result to obtain the feature extraction result;

[0090] The feature extraction result is trained through a random forest model to obtain the preset model.

[0091] Specifically, the Python offline part includes:

[0092] 1) Obtaining historical track sample data of the vessel, including: manually identifying the same number of single-tug vessel targets and normal targets (targets that are not single-tug vessels), and querying the historical tracks from the historical track library as sample data.

[0093] 2) Performing data cleaning on the historical track sample data of the vessel to obtain cleaning results, including: deleting tracks with too few points, because the track data is too little and has no reference value.

[0094] 3) Performing data visualization processing on the cleaning results to obtain visualization results, including: visualizing the trajectory of each ship to be identified and deleting obvious outliers. Some outliers are very far away from the normal trajectory. If they are not deleted, the accuracy of the model will be greatly affected.

[0095] 4) Extracting features from the visualization result to obtain the feature extraction result. The feature extraction content specifically includes the following features:

[0096] 41. Count the sum of the heading changes of the ship to be identified (for the same target ID, calculate the heading difference between the two moments before and after, and then accumulate them).

[0097] 42. Count the number of turns of the ship to be identified (if the difference between the two headings is greater than 180 degrees, it is a turn).

[0098] 43. Count the straight-line time of the ship to be identified in each segment (the total track time of the same target ID divided by the number of turns is the straight-line time of each segment).

[0099] 44. Calculate the turning rate of the vessel to be identified (total distance traveled divided by displacement).

[0100] 45. Count the maximum, minimum, average, median, deduplicated statistics, standard deviation, and quantile of the speed of the ship to be identified.

[0101] 46. ​​Divide the heading changes greater than 180 and less than 180 into two groups, and combine them with the speed respectively:

[0102] Specifically, the heading difference of the same target ID is calculated, and those greater than or equal to 180 are grouped into one group, and those less than 180 are grouped into another group, forming the following features: the heading difference is greater than or equal to 180_speed 1, the phase difference is less than 180_speed 1, the heading difference is greater than or equal to 180_speed 2, and the phase difference is less than 180_speed 2.

[0103] The feature extraction results obtained through the above feature extraction specifically include: heading change results, number of turns results, straight-line time results, circling rate results, speed, and heading.

[0104] 5) The feature extraction result is trained by a random forest model to obtain the predicted single tugboat target model, including:

[0105] 51. Load the offline model (preset model) from HDFS (Hadoop Distributed File System) and select n samples from the sample data by random sampling with replacement;

[0106] 52. Randomly select k features from all the feature extraction results obtained in step 4) above, and use these k features to establish a decision tree (usually a classification tree CART, but can also be other or mixed) for the selected n samples;

[0107] 53. Repeat steps 51 and 52 above m times, that is, generate m decision trees to form a random forest model;

[0108] 54. For new data, each tree makes a decision and finally votes to confirm which category it is classified into.

[0109] In an optional embodiment of the present invention, in step S5, the parameters of the random forest model include:

[0110] n_estimators = 60;

[0111] max_depth=10;

[0112] min_samples_split = 10;

[0113] Among them, n_estimators is the number of decision trees, max_depth is the depth of the decision tree, and min_samples_split is the minimum number of samples for a node.

[0114] Specifically, the larger the value of the number of decision trees, the more decision trees are generated and the more accurate the results are, but the training time will also be longer; the smaller the value of the minimum number of node samples, the less likely it is to overfit; the larger the value of the depth of the decision tree, the deeper the tree, the more likely it is to overfit, and the smaller the value, the less likely it is to overfit;

[0115] like Figure 2 As shown, grid search and cross validation are used to select the best parameters and the preset model is saved to HDFS.

[0116] In an optional embodiment of the present invention, in step S5, the characteristic data is input into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target, including:

[0117] Input the feature data into a preset model and output a prediction result;

[0118] Determine the type of the vessel to be identified according to the prediction result and obtain a determination result;

[0119] According to the judgment result, the single-tow vessel target is acquired.

[0120] Specifically, the feature engineering (feature extraction) method in the Python offline process is called to generate the same features for the real-time data and load the offline model (preset model) to perform real-time prediction to obtain the prediction results.

[0121] Among them, the trained preset model is a number of trees composed of a bunch of ifelse statements. It starts from the root node and judges layer by layer downward until the leaf node, and finally obtains the category to which the target belongs. Then, the results of multiple trees are combined for voting, and the minority obeys the majority to obtain the final category, and a prediction is made, and the probability that the target is a single drag target is output; the output result can be the category to which the target belongs or the probability.

[0122] Target categories include: AISB (Automatic Identification System of Ships), RADAR_AIS_B, RADAR (Radar).

[0123] In an optional embodiment of the present invention, Figure 2 As shown, in step S5, obtaining the single-towed vessel target according to the judgment result includes:

[0124] When the judgment result is that the probability that the to-be-identified vessel is a single-tow vessel target is greater than 0.7, the single-tow vessel target is acquired.

[0125] Specifically, Figure 2 As shown, the identification method of the single tugboat target also includes:

[0126] 1) ES (file browser) queries the most recent latitude and longitude information according to the prediction results, so as to obtain the location information of the single tugboat target, and sends the location information to the distributed publish-subscribe messaging system Kafka;

[0127] 2) According to the warning data of the distributed publish-subscribe messaging system Kafka, the results are saved to Redis, Mysql and Hive (data warehouse tool), and the front end periodically requests the warning results (the prediction model of the single-tugboat target identifies whether the target is a single-tugboat target. If it is a single-tugboat target, it is saved to Kafka, otherwise it is not saved to Kafka), and the single-tugboat target is circled with a mark, and the warning results are obtained and saved to Mysql;

[0128] 3) Displaying the warning results.

[0129] The above-mentioned technical scheme of the embodiment of the present invention realizes the accurate identification of single-tug fishing vessels, improves the ability to obtain intelligence on illegal and irregular behaviors involving sea and fisheries, and further strengthens the accurate crackdown on illegal and irregular behaviors involving fisheries and the refined management of summer fishing moratorium.

[0130] like Figure 3 As shown, an embodiment of the present invention further provides a single tugboat target identification device 30, comprising:

[0131] An acquisition module 31 is used to acquire real-time traveling track data of a vessel;

[0132] A preprocessing module 32, used for preprocessing the real-time driving trajectory data to obtain a preprocessing result;

[0133] A clustering module 33, used to perform trajectory clustering on the preprocessing results to obtain clustering results;

[0134] A feature extraction module 34 is used to extract features from the clustering results to obtain feature data;

[0135] The recognition module 35 is used to input the characteristic data into a preset model for identifying a single-tugboat target for processing, so as to obtain a recognition result of the single-tugboat target.

[0136] Optionally, preprocessing the real-time driving trajectory data includes:

[0137] Deleting the real-time driving trajectory data in which the number of trajectory points is less than the first value;

[0138] Deleting the real-time driving trajectory data whose average speed is less than the second value in the real-time driving trajectory data; and / or

[0139] The real-time driving trajectory data having an average speed greater than a third value is deleted.

[0140] Optionally, performing trajectory clustering on the preprocessing result to obtain a clustering result includes:

[0141] Performing trajectory clustering on the preprocessing results by using a clustering algorithm to obtain an intermediate clustering result;

[0142] Calculating the activity range of the to-be-identified vessel according to the intermediate clustering result, and obtaining an activity range result;

[0143] The activity range results that are less than or equal to the first threshold are deleted; otherwise, the activity range is retained to obtain the final clustering result.

[0144] Optionally, feature extraction is performed on the clustering result to obtain feature data, including:

[0145] Feature extraction is performed on the clustering results to obtain at least one of the following feature data: heading change results, number of turns results, straight travel time results, circling rate results, speed, and heading.

[0146] Optionally, the heading change result is the sum of heading changes of the ship to be identified, and the heading change is the heading difference of the ship to be identified at two moments;

[0147] The turning number result is the turning number of the vessel to be identified;

[0148] The straight travel time result is the segmented statistical straight travel time of the vessel to be identified;

[0149] The turning rate result is the turning rate of the vessel to be identified; the turning rate is the total distance of the vessel to be identified divided by the displacement.

[0150] Optionally, the prediction model for a single tugboat target is trained as follows:

[0151] Obtain historical trajectory sample data of ships;

[0152] Performing data cleaning on the historical track sample data of the vessel to obtain a cleaning result;

[0153] Performing data visualization processing on the cleaning result to obtain a visualization result;

[0154] Performing feature extraction on the visualization result to obtain the feature extraction result;

[0155] The feature extraction result is trained through a random forest model to obtain the preset model.

[0156] Optionally, the parameters of the random forest model include:

[0157] n_estimators = 60;

[0158] max_depth=10;

[0159] min_samples_split = 10;

[0160] Among them, n_estimators is the number of decision trees, max_depth is the depth of the decision tree, and min_samples_split is the minimum number of samples for a node.

[0161] Optionally, the characteristic data is input into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target, including:

[0162] Input the feature data into a preset model and output a prediction result;

[0163] Determine the type of the vessel to be identified according to the prediction result and obtain a determination result;

[0164] According to the judgment result, the single-tow vessel target is acquired.

[0165] Optionally, obtaining the single-tow vessel target according to the judgment result includes:

[0166] When the judgment result is that the probability that the to-be-identified vessel is a single-tow vessel target is greater than 0.7, the single-tow vessel target is acquired.

[0167] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.

[0168] The embodiment of the present invention further provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0169] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0170] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0171] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0172] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0173] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0174] If the functions 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 this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the 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, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0175] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0176] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0177] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for identifying a single tugboat target, characterized in that: include: Obtain real-time ship trajectory data; Preprocessing the real-time driving trajectory data to obtain a preprocessing result; Performing trajectory clustering on the preprocessing result to obtain a clustering result; Performing feature extraction on the clustering results to obtain feature data; Inputting the characteristic data into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target; The preset model for identifying single tugboat targets is trained by the following method: Obtain historical trajectory sample data of ships; Performing data cleaning on the historical track sample data of the vessel to obtain a cleaning result; Performing data visualization processing on the cleaning result to obtain a visualization result; Performing feature extraction on the visualization result to obtain a feature extraction result; The feature extraction result is trained by a random forest model to obtain the preset model; The feature extraction result is trained by a random forest model to obtain the preset model, including: Load the offline model from the distributed file system and randomly select n samples from the sample data with replacement, where n is a positive integer. Randomly select k features from the feature extraction results, and establish a decision tree for the selected n samples using the selected k features; k is a positive integer; Repeat the process of random sampling m times to select n samples and randomly select k features to generate m decision trees and form a random forest model; m is a positive integer; For new data, each decision tree is voted to confirm which category it is classified into; Among them, the parameters of the random forest model include: n_estimators = 60; max_depth=10; min_samples_split = 10; Among them, n_estimators is the number of decision trees, max_depth is the depth of the decision tree, and min_samples_split is the minimum number of samples for a node; The characteristic data is input into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target, including: Input the feature data into a preset model and output a prediction result; Determine the type of the vessel to be identified according to the prediction result and obtain a determination result; According to the judgment result, a single tugboat target is obtained; Wherein, obtaining the single-towed vessel target according to the judgment result includes: When the judgment result is that the probability that the to-be-identified vessel is a single-tow vessel target is greater than 0.7, the single-tow vessel target is acquired.

2. The method for identifying a single tugboat target according to claim 1, characterized in that: Preprocessing the real-time driving trajectory data includes: Deleting the real-time driving trajectory data in which the number of trajectory points is less than the first value; Deleting the real-time driving trajectory data whose average speed is less than the second value in the real-time driving trajectory data; and / or The real-time driving trajectory data having an average speed greater than a third value is deleted.

3. The method for identifying a single tugboat target according to claim 1, characterized in that: Performing trajectory clustering on the preprocessing result to obtain a clustering result includes: Performing trajectory clustering on the preprocessing results by using a clustering algorithm to obtain an intermediate clustering result; Calculating the activity range of the to-be-identified vessel according to the intermediate clustering result, and obtaining an activity range result; The activity range results that are less than or equal to the first threshold are deleted; otherwise, the activity range is retained to obtain the final clustering result.

4. The method for identifying a single tugboat target according to claim 3, characterized in that: Performing feature extraction on the clustering results to obtain feature data includes: Feature extraction is performed on the clustering results to obtain at least one of the following feature data: heading change results, number of turns results, straight travel time results, circling rate results, speed, and heading.

5. The method for identifying a single tugboat target according to claim 4, characterized in that: The heading change result is the sum of the heading changes of the ship to be identified, and the heading change is the heading difference of the ship to be identified at two moments; The turning number result is the turning number of the vessel to be identified; The straight travel time result is the segmented statistical straight travel time of the vessel to be identified; The turning rate result is the turning rate of the vessel to be identified; the turning rate is the total distance of the vessel to be identified divided by the displacement.

6. A device for identifying a single tugboat target, characterized in that: include: An acquisition module is used to acquire the real-time traveling track data of the vessel; A preprocessing module, used to preprocess the real-time driving trajectory data to obtain a preprocessing result; A clustering module, used for performing trajectory clustering on the preprocessing results to obtain clustering results; A feature extraction module, used to extract features from the clustering results to obtain feature data; An identification module, used for inputting the characteristic data into a preset model for identifying a single-tugboat target for processing, and obtaining an identification result of the single-tugboat target; The single-tugboat target recognition device further includes a training module for training the preset model for identifying the single-tugboat target, including: Obtain historical trajectory sample data of ships; Performing data cleaning on the historical track sample data of the vessel to obtain a cleaning result; Performing data visualization processing on the cleaning result to obtain a visualization result; Performing feature extraction on the visualization result to obtain a feature extraction result; The feature extraction result is trained by a random forest model to obtain the preset model; The feature extraction result is trained by a random forest model to obtain the preset model, including: Load the offline model from the distributed file system and randomly select n samples from the sample data with replacement, where n is a positive integer. Randomly select k features from the feature extraction results, and establish a decision tree for the selected n samples using the selected k features; k is a positive integer; Repeat the process of random sampling m times to select n samples and randomly select k features to generate m decision trees and form a random forest model; m is a positive integer; For new data, each decision tree is voted to confirm which category it is classified into; Among them, the parameters of the random forest model include: n_estimators = 60; max_depth=10; min_samples_split = 10; Among them, n_estimators is the number of decision trees, max_depth is the depth of the decision tree, and min_samples_split is the minimum number of samples for a node; The characteristic data is input into a preset model for identifying a single-tugboat target for processing to obtain an identification result of the single-tugboat target, including: Input the feature data into a preset model and output a prediction result; Determine the type of the vessel to be identified according to the prediction result and obtain a determination result; According to the judgment result, a single tugboat target is obtained; Wherein, obtaining the single-towed vessel target according to the judgment result includes: When the judgment result is that the probability that the to-be-identified vessel is a single-tow vessel target is greater than 0.7, the single-tow vessel target is acquired.