Ship berthing trajectory classification method, system, terminal equipment and storage medium

The classification of ship berthing trajectories through the neural network model solves the problem of low classification efficiency in the existing technology and achieves automated and efficient trajectory classification.

CN114781497BInactive Publication Date: 2024-10-25JIMEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210356066.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing ship berthing trajectory classification efficiency is low, mainly due to the cumbersome operation caused by manual classification, which reduces the classification efficiency.

Method used

The neural network model is used to classify ship berthing trajectories. By obtaining and initializing the classification model, calculating the activation function, classifying the trajectories, and determining the output error based on the expected and sample classification results, the parameters of the model are updated until the convergence conditions are met to improve classification. Efficiency and accuracy.

Benefits of technology

It improves the efficiency and accuracy of ship berthing trajectory classification, reduces the tediousness of manual operations, and realizes automated trajectory classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114781497B_ABST
    Figure CN114781497B_ABST
Patent Text Reader

Abstract

The present invention provides a ship berthing trajectory classification method, system, terminal device and storage medium, the method comprising: inputting berthing trajectory samples into a berthing trajectory classification model; initializing the berthing trajectory classification model, and calculating the activation function of the berthing trajectory classification model; performing trajectory classification on the berthing trajectory samples according to the activation function and the berthing trajectory classification model to obtain a sample classification result; determining an output error according to an expected classification result and a sample classification result; updating parameters of the berthing trajectory classification model according to the output error until a preset convergence condition is met; inputting the berthing trajectory of a ship to be classified into the converged berthing trajectory classification model for trajectory classification, and obtaining a trajectory classification result. The present invention can effectively perform trajectory classification on the berthing trajectory of a ship to be classified according to the converged berthing trajectory classification model, thereby improving the efficiency and accuracy of ship berthing trajectory classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ship trajectory analysis, and in particular to a ship berthing trajectory classification method, system, terminal equipment and storage medium. Background Art

[0002] Automatic Identification System (AIS) data contains a large number of maritime traffic characteristics, which can be used to mine effective and potential information about the movement of ships in AIS data. Mining relevant behavior patterns from ship AIS data to assist water safety supervision is of great significance to the increasingly complex maritime traffic safety situation.

[0003] Ship berthing involves the slow movement of ships in shallow water. Due to its complexity, it has important theoretical research and engineering practical value. At present, ship berthing is mostly done manually. Large ships have limited maneuverability, the rudder effect is weakened at low speed, and they are easily affected by wind and water flow. Using data mining technology to classify ship berthing trajectories and construct typical berthing patterns is helpful to discover the movement characteristics and behavior patterns of ships and provide new berthing patterns. Therefore, the classification method of ship berthing trajectories is increasingly valued.

[0004] In the existing ship berthing trajectory classification process, the ship berthing trajectory is generally classified by manual classification, which makes the manual operation cumbersome and reduces the efficiency of ship berthing trajectory classification. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method, system, terminal device and storage medium for classifying ship berthing trajectories, aiming to solve the problem of low efficiency in existing ship berthing trajectory classification.

[0006] The embodiment of the present invention is implemented as follows: a method for classifying ship berthing trajectories, the method comprising:

[0007] Acquire a berthing trajectory sample, and input the berthing trajectory sample into a berthing trajectory classification model;

[0008] Initializing the docking trajectory classification model and calculating an activation function of the docking trajectory classification model;

[0009] Performing trajectory classification on the berthing trajectory sample according to the activation function and the berthing trajectory classification model to obtain a sample classification result;

[0010] Obtaining an expected classification result of the docking trajectory sample, and determining an output error of the docking trajectory classification model according to the expected classification result and the sample classification result;

[0011] updating parameters of the berthing trajectory classification model according to the output error until the berthing trajectory classification model meets a preset convergence condition;

[0012] The berthing trajectory of the ship to be classified is input into the converged berthing trajectory classification model to perform trajectory classification to obtain a trajectory classification result.

[0013] Furthermore, the formula used for performing trajectory classification on the docking trajectory sample according to the activation function and the docking trajectory classification model includes:

[0014]

[0015] in, W is the weight set connecting the hidden layer and the output layer in the docking trajectory classification model, It is used to characterize the activation performance of neurons in the docking trajectory classification model, z is the docking trajectory sample, o is the sample classification result.

[0016] Furthermore, the formula used to determine the output error of the berthing trajectory classification model according to the expected classification result and the sample classification result includes:

[0017]

[0018] in, d R is the real part of the expected classification result, d I is the imaginary part of the expected classification result, H is the number of hidden nodes in the docking trajectory classification model, n is the number of input nodes in the docking trajectory classification model, is the real part of the expected classification result, is the imaginary part of the expected classification result, E is the output error.

[0019] Furthermore, the formula used to update the parameters of the berthing trajectory classification model according to the output error includes:

[0020]

[0021]

[0022] in, for w R The adjustment increment is for w I The adjustment increment.

[0023] Furthermore, after obtaining the berthing trajectory sample, the method further includes:

[0024] Performing trajectory analysis on sample data in the berthing trajectory sample, and determining a trajectory type of each sample data according to the trajectory analysis result;

[0025] Data screening is performed on each sample data according to the trajectory type.

[0026] Furthermore, the data screening of each sample data according to the trajectory type includes:

[0027] If the trajectory type corresponding to any of the sample data is a discontinuous trajectory, a loose trajectory or an entangled trajectory, the sample data is deleted from the docking trajectory sample.

[0028] Furthermore, after updating the parameters of the berthing trajectory classification model according to the output error, the method further includes:

[0029] Obtaining the current iteration number of the berthing trajectory classification model;

[0030] If the current number of iterations is greater than or equal to the number threshold, it is determined that the berthing trajectory classification model meets the preset convergence condition;

[0031] If the current number of iterations is less than the number threshold, it is determined that the docking trajectory classification model does not meet the preset convergence condition, and for the docking trajectory classification model after parameter update, the step of calculating the activation function of the docking trajectory classification model and subsequent steps are returned to execute.

[0032] Another object of an embodiment of the present invention is to provide a ship berthing trajectory classification system, the system comprising:

[0033] A sample acquisition unit, used for acquiring a berthing trajectory sample and inputting the berthing trajectory sample into a berthing trajectory classification model;

[0034] an initialization unit, used to initialize the docking trajectory classification model and calculate an activation function of the docking trajectory classification model;

[0035] a sample classification unit, configured to classify the docking trajectory samples according to the activation function and the docking trajectory classification model to obtain a sample classification result;

[0036] an error determination unit, configured to obtain an expected classification result of the docking trajectory sample, and determine an output error of the docking trajectory classification model according to the expected classification result and the sample classification result;

[0037] a parameter updating unit, configured to update parameters of the berthing trajectory classification model according to the output error until the berthing trajectory classification model meets a preset convergence condition;

[0038] The trajectory classification unit is used to input the berthing trajectory of the ship to be classified into the converged berthing trajectory classification model to perform trajectory classification and obtain a trajectory classification result.

[0039] Another object of an embodiment of the present invention is to provide a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0040] Another object of an embodiment of the present invention is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0041] According to the embodiment of the present invention, by initializing the berthing trajectory classification model and calculating the activation function of the berthing trajectory classification model, based on the activation function and the initialized berthing trajectory classification model, the berthing trajectory samples can be effectively classified to obtain the sample classification result, by obtaining the expected classification result of the berthing trajectory samples, and based on the expected classification result and the sample classification result, the output error of the berthing trajectory classification model can be effectively determined, the berthing trajectory classification model is updated based on the output error, and according to the converged berthing trajectory classification model, the berthing trajectory of the ship to be classified can be effectively classified, thereby improving the efficiency and accuracy of the ship berthing trajectory classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of a method for classifying ship berthing trajectories provided by a first embodiment of the present invention;

[0043] Figure 2 is a flow chart of a ship berthing trajectory classification method provided by a second embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of the structure of a ship berthing trajectory classification system provided by a third embodiment of the present invention;

[0045] Figure 4 It is a schematic diagram of the structure of a terminal device provided in the fourth embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0047] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.

[0048] Embodiment 1

[0049] See also Figure 1 , is a flow chart of a ship berthing trajectory classification method provided by a first embodiment of the present invention. The ship berthing trajectory classification method can be applied to any terminal device or system. The ship berthing trajectory classification method comprises the steps of:

[0050] Step S10, obtaining a berthing trajectory sample, and inputting the berthing trajectory sample into a berthing trajectory classification model;

[0051] The sample berthing trajectory in the berthing trajectory sample includes speed, heading, wind speed and wind direction. The berthing trajectory sample can be set according to demand. For example, the data in the AIS data can be set as the berthing trajectory sample by manual setting. By inputting the berthing trajectory sample into the berthing trajectory classification model, the subsequent model training operation of the berthing trajectory classification model is effectively guaranteed.

[0052] Step S20, initializing the berthing trajectory classification model and calculating the activation function of the berthing trajectory classification model;

[0053] Among them, by initializing the docking trajectory classification model, the weights connecting the hidden layer and the output layer in the docking trajectory classification model can be effectively updated, and by calculating the activation function of the docking trajectory classification model, the subsequent trajectory classification operation of the docking trajectory samples is effectively guaranteed;

[0054] Step S30, performing trajectory classification on the berthing trajectory sample according to the activation function and the berthing trajectory classification model to obtain a sample classification result;

[0055] The berthing trajectory sample is classified by using the activation function and the berthing trajectory classification model to obtain a sample classification result corresponding to the berthing trajectory sample, and the sample classification result is used to characterize the clustering result of the sample data in the berthing trajectory sample;

[0056] Optionally, in this step, the formula used to classify the docking trajectory samples according to the activation function and the docking trajectory classification model includes:

[0057]

[0058]

[0059]

[0060] in, W is the weight set connecting the hidden layer and the output layer in the docking trajectory classification model, w is the weight connecting the hidden layer and the output layer in the docking trajectory classification model, It is used to characterize the activation performance of neurons in the docking trajectory classification model, z is the docking trajectory sample, o is the sample classification result, w R yes w The real part of w I yes w The imaginary part of n is the number of input nodes in the docking trajectory classification model.

[0061] Furthermore, in this step, the longitude in the docking trajectory sample is used as the real part of the docking trajectory classification model input, and the latitude in the docking trajectory sample is used as the imaginary part of the docking trajectory classification model input. Therefore, the complex input of the docking trajectory classification model is constructed. Since all longitudes and latitudes on the earth are perpendicular to each other, the real part and imaginary part of the complex number constitute an orthogonal unit basis.

[0062] Step S40, obtaining an expected classification result of the docking trajectory sample, and determining an output error of the docking trajectory classification model according to the expected classification result and the sample classification result;

[0063] Among them, by obtaining the expected classification results of the berthing trajectory samples, and based on the expected classification results and the sample classification results, the output error of the berthing trajectory classification model can be effectively determined, and the parameter update operation of the berthing trajectory classification model is effectively guaranteed based on the output error;

[0064] Optionally, in this step, the square error function used to determine the output error of the berthing trajectory classification model according to the expected classification result and the sample classification result includes:

[0065]

[0066]

[0067] remember:

[0068] Formula 1

[0069] Formula 2

[0070] g represents the square of the error;

[0071] Derivative of formula 1:

[0072]

[0073]

[0074] Derivative of formula 2:

[0075]

[0076] Find the second-order derivative of formula 1:

[0077]

[0078] Find the second-order derivative of formula 2:

[0079]

[0080] By adjusting the weights, the loss function can be minimized. for w R The adjustment increment is for w I Adjustment increment:

[0081]

[0082]

[0083]

[0084] in, i is the imaginary part of the complex number, d R is the real part of the expected classification result, d I is the imaginary part of the expected classification result, H is the number of hidden nodes in the docking trajectory classification model, is the real part of the expected classification result, is the imaginary part of the expected classification result, E is the output error, and i represents the imaginary part of the complex number.

[0085] Step S50, updating parameters of the berthing trajectory classification model according to the output error until the berthing trajectory classification model meets a preset convergence condition;

[0086] Among them, the converged berthing trajectory classification model is the fractional convex value neural network (FCVNN). According to the converged berthing trajectory classification model, the berthing trajectory of the ship to be classified can be effectively classified, which improves the efficiency and accuracy of the ship berthing trajectory classification;

[0087] Optionally, in this step, the formula used to update the parameters of the berthing trajectory classification model according to the output error includes:

[0088] The design update law is as follows:

[0089] Formula 3

[0090] Formula 4

[0091] in ,right E beg w R The derivative of can be obtained:

[0092] Formula 5

[0093] ɑ indicates fractional order;

[0094] right E beg w I The derivative of can be obtained:

[0095] Formula 6

[0096] Substitute Formula 5 into Formula 3:

[0097]

[0098] Substituting formula six into formula four:

[0099]

[0100] in, for w R The adjustment increment is for w I The adjustment increment.

[0101] Furthermore, in this step, after the parameters of the berthing trajectory classification model are updated according to the output error, the method further includes:

[0102] Obtaining the current iteration number of the berthing trajectory classification model;

[0103] If the current number of iterations is greater than or equal to the number threshold, it is determined that the berthing trajectory classification model meets the preset convergence condition;

[0104] The number threshold can be set according to the requirements, for example, the number threshold can be set to 10 times, 20 times or 100 times;

[0105] If the current number of iterations is less than the number threshold, it is determined that the docking trajectory classification model does not meet the preset convergence condition, and for the docking trajectory classification model after parameter update, the step of calculating the activation function of the docking trajectory classification model and subsequent steps are returned to execute.

[0106] Step S60, inputting the berthing trajectory of the ship to be classified into the converged berthing trajectory classification model to perform trajectory classification, and obtaining a trajectory classification result;

[0107] Among them, based on the converged berthing trajectory classification model, the berthing trajectory of the ship to be classified can be effectively classified, which improves the efficiency and accuracy of ship berthing trajectory classification.

[0108] In this embodiment, by initializing the berthing trajectory classification model and calculating the activation function of the berthing trajectory classification model, based on the activation function and the initialized berthing trajectory classification model, the berthing trajectory samples can be effectively classified to obtain the sample classification results, by obtaining the expected classification results of the berthing trajectory samples, and based on the expected classification results and the sample classification results, the output error of the berthing trajectory classification model can be effectively determined, the berthing trajectory classification model is updated based on the output error, and according to the converged berthing trajectory classification model, the berthing trajectory of the ship to be classified can be effectively classified, thereby improving the efficiency and accuracy of the ship berthing trajectory classification.

[0109] Embodiment 2

[0110] See also Figure 2 , is a flow chart of a ship berthing trajectory classification method provided by a second embodiment of the present invention, and this embodiment is used to further refine the steps after step S10, including the steps of:

[0111] Step S70, performing trajectory analysis on the sample data in the berthing trajectory sample, and determining the trajectory type of each sample data according to the trajectory analysis result;

[0112] The trajectory coordinates of the trajectory points in each sample data are obtained respectively, and the trajectory segments of each sample data are generated according to the trajectory coordinates. It is determined whether the navigation trajectory corresponding to each sample data has a discontinuous phenomenon according to the trajectory segments, and the break distance between the trajectory segments with discontinuous phenomena is obtained;

[0113] If the break distance between any trajectory segment is greater than the distance threshold, the sample data corresponding to the trajectory segment is determined to be a discontinuous trajectory; if the break distance between the trajectory segments in any sample data is less than or equal to the distance threshold, and the number of breaks between the trajectory segments in the sample data is greater than the preset number, the sample data corresponding to the trajectory segment is determined to be a loose trajectory; if there is entanglement between the trajectory segments in any sample data, the sample data corresponding to the trajectory segment is determined to be an entangled trajectory; if there is no breakage and entanglement between the trajectory segments in any sample data, the sample data is determined to be standard data.

[0114] Step S80, screening each sample data according to the trajectory type;

[0115] Among them, the data of each sample data is screened by trajectory type, which effectively improves the accuracy of the sample data, thereby improving the accuracy of the berthing trajectory classification model training. Optionally, in this step, the data of each sample data is screened according to the trajectory type, including:

[0116] If the trajectory type corresponding to any of the sample data is a discontinuous trajectory, a loose trajectory or an entangled trajectory, the sample data is deleted from the docking trajectory sample, wherein the accuracy of the docking trajectory sample data is effectively improved by deleting the sample data of the discontinuous trajectory, the loose trajectory and the entangled trajectory.

[0117] In this embodiment, by performing trajectory analysis on sample data in the berthing trajectory samples, the trajectory type of each sample data can be effectively determined based on the trajectory analysis results, and data screening is performed on each sample data based on the trajectory type, which effectively improves the accuracy of the sample data and further improves the accuracy of the berthing trajectory classification model training.

[0118] Embodiment 3

[0119] See also Figure 3 , is a schematic diagram of the structure of a ship berthing trajectory classification system 100 provided in the third embodiment of the present invention, comprising: a sample acquisition unit 10, an initialization unit 11, a sample classification unit 12, an error determination unit 13, a parameter updating unit 14 and a trajectory classification unit 15, wherein:

[0120] The sample acquisition unit 10 is used to acquire a berthing trajectory sample and input the berthing trajectory sample into a berthing trajectory classification model. The sample berthing trajectory in the berthing trajectory sample includes speed, heading, wind speed and wind direction. The berthing trajectory sample can be set according to demand. For example, the data in the AIS data can be set as the berthing trajectory sample by manual setting. By inputting the berthing trajectory sample into the berthing trajectory classification model, the subsequent model training operation of the berthing trajectory classification model is effectively guaranteed.

[0121] Optionally, the sample acquisition unit 10 is further used to: perform trajectory analysis on the sample data in the berthing trajectory sample, and determine the trajectory type of each sample data according to the trajectory analysis result;

[0122] Data screening is performed on each sample data according to the trajectory type.

[0123] Furthermore, the sample acquisition unit 10 is further configured to: if the trajectory type corresponding to any of the sample data is a discontinuous trajectory, a loose trajectory or an entangled trajectory, delete the sample data from the docking trajectory sample.

[0124] The initialization unit 11 is used to initialize the docking trajectory classification model and calculate the activation function of the docking trajectory classification model. By initializing the docking trajectory classification model, the weights connecting the hidden layer and the output layer in the docking trajectory classification model can be effectively updated, and by calculating the activation function of the docking trajectory classification model, the subsequent trajectory classification operation of the docking trajectory samples is effectively guaranteed.

[0125] The sample classification unit 12 is used to perform trajectory classification on the docking trajectory sample according to the activation function and the docking trajectory classification model to obtain a sample classification result. The docking trajectory sample is classified by the activation function and the docking trajectory classification model to obtain a sample classification result corresponding to the docking trajectory sample, and the sample classification result is used to characterize the clustering result of the sample data in the docking trajectory sample.

[0126] Optionally, the formula used for performing trajectory classification on the docking trajectory sample according to the activation function and the docking trajectory classification model includes:

[0127]

[0128] in, W is the weight connecting the hidden layer and the output layer in the docking trajectory classification model, It is used to characterize the activation performance of neurons in the docking trajectory classification model, z is the docking trajectory sample, o is the sample classification result.

[0129] The error determination unit 13 is used to obtain the expected classification result of the docking trajectory sample, and determine the output error of the docking trajectory classification model according to the expected classification result and the sample classification result. By obtaining the expected classification result of the docking trajectory sample, and based on the expected classification result and the sample classification result, the output error of the docking trajectory classification model can be effectively determined, and the parameter update operation of the docking trajectory classification model is effectively guaranteed based on the output error.

[0130] Optionally, the formula used to determine the output error of the berthing trajectory classification model according to the expected classification result and the sample classification result includes:

[0131]

[0132] in, d R is the real part of the expected classification result, d I is the imaginary part of the expected classification result, H is the number of hidden nodes in the docking trajectory classification model, n is the number of input nodes in the docking trajectory classification model, is the real part of the expected classification result, is the imaginary part of the expected classification result, E is the output error.

[0133] The parameter updating unit 14 is used to update the parameters of the berthing trajectory classification model according to the output error until the berthing trajectory classification model meets the preset convergence condition. The converged berthing trajectory classification model is a fractional convex value neural network (FCVNN). According to the converged berthing trajectory classification model, the berthing trajectory of the ship to be classified can be effectively classified, thereby improving the efficiency and accuracy of the ship berthing trajectory classification.

[0134] Furthermore, the parameter updating unit 14 is further used to: obtain the current iteration number of the berthing trajectory classification model;

[0135] If the current number of iterations is greater than or equal to the number threshold, it is determined that the berthing trajectory classification model meets the preset convergence condition;

[0136] If the current number of iterations is less than the number threshold, it is determined that the docking trajectory classification model does not meet the preset convergence condition, and for the docking trajectory classification model after parameter update, the step of calculating the activation function of the docking trajectory classification model and subsequent steps are returned to execute.

[0137] Optionally, the formula used to update the parameters of the berthing trajectory classification model according to the output error includes:

[0138]

[0139]

[0140] in, for w R The adjustment increment is for w I The adjustment increment.

[0141] The track classification unit 15 is used to input the berthing track of the ship to be classified into the converged berthing track classification model for track classification to obtain a track classification result. Based on the converged berthing track classification model, the berthing track of the ship to be classified can be effectively classified, thereby improving the efficiency and accuracy of the ship berthing track classification.

[0142] In this embodiment, by initializing the berthing trajectory classification model and calculating the activation function of the berthing trajectory classification model, based on the activation function and the initialized berthing trajectory classification model, the berthing trajectory samples can be effectively classified to obtain the sample classification results, by obtaining the expected classification results of the berthing trajectory samples, and based on the expected classification results and the sample classification results, the output error of the berthing trajectory classification model can be effectively determined, the berthing trajectory classification model is updated based on the output error, and according to the converged berthing trajectory classification model, the berthing trajectory of the ship to be classified can be effectively classified, thereby improving the efficiency and accuracy of the ship berthing trajectory classification.

[0143] Embodiment 4

[0144] Figure 4 2 is a block diagram of a terminal device 2 provided in the fourth embodiment of the present application. Figure 4 As shown, the terminal device 2 of this embodiment includes: a processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the processor 20, such as a program of a ship berthing trajectory classification method. When the processor 20 executes the computer program 22, the steps in each embodiment of the above-mentioned ship berthing trajectory classification method are implemented, such as Figure 1 S10 to S60 as shown, or Figure 2 Alternatively, the processor 20 implements the above when executing the computer program 22 Figure 3 The functions of each unit in the corresponding embodiment are, for example, Figure 3 For details on the functions of units 10 to 15 shown, please refer to Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.

[0145] Exemplarily, the computer program 22 may be divided into one or more units, which are stored in the memory 21 and executed by the processor 20 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 22 in the terminal device 2. For example, the computer program 22 may be divided into a sample acquisition unit 10, an initialization unit 11, a sample classification unit 12, an error determination unit 13, a parameter updating unit 14, and a trajectory classification unit 15, and the specific functions of each unit are as described above.

[0146] The terminal device may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 3 It is only an example of the terminal device 2 and does not constitute a limitation of the terminal device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0147] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0148] The memory 21 may be an internal storage unit of the terminal device 2, such as a hard disk or memory of the terminal device 2. The memory 21 may also be an external storage device of the terminal device 2, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 2. Further, the memory 21 may also include both an internal storage unit and an external storage device of the terminal device 2. The memory 21 is used to store the computer program and other programs and data required by the terminal device. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0149] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0150] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium can be non-volatile or volatile. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in computer-readable storage media can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable storage media do not include electrical carrier signals and telecommunication signals.

[0151] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A ship berthing trajectory classification method, It is characterized in that The method comprises: Acquire a berthing trajectory sample, and input the berthing trajectory sample into a berthing trajectory classification model; Initializing the docking trajectory classification model and calculating an activation function of the docking trajectory classification model; Performing trajectory classification on the berthing trajectory sample according to the activation function and the berthing trajectory classification model to obtain a sample classification result; Obtaining an expected classification result of the docking trajectory sample, and determining an output error of the docking trajectory classification model according to the expected classification result and the sample classification result; updating parameters of the berthing trajectory classification model according to the output error until the berthing trajectory classification model meets a preset convergence condition; Inputting the berthing trajectory of the ship to be classified into the converged berthing trajectory classification model to perform trajectory classification, and obtaining a trajectory classification result; The formula used for performing trajectory classification on the docking trajectory sample according to the activation function and the docking trajectory classification model includes: in, W is the weight set connecting the hidden layer and the output layer in the docking trajectory classification model, w is the weight connecting the hidden layer and the output layer in the docking trajectory classification model, It is used to characterize the activation performance of neurons in the docking trajectory classification model, z is the docking trajectory sample, o is the sample classification result, w R yes w The real part of w I yes w The imaginary part of n is the number of input nodes in the docking trajectory classification model; The formula used to determine the output error of the berthing trajectory classification model according to the expected classification result and the sample classification result includes: in, d R is the real part of the expected classification result, d I is the imaginary part of the expected classification result, H is the number of hidden nodes in the docking trajectory classification model, n is the number of input nodes in the docking trajectory classification model, is the real part of the expected classification result, is the imaginary part of the expected classification result, E is the output error; The formula used to update the parameters of the berthing trajectory classification model according to the output error includes: in, for w R The adjustment increment is for w I The adjustment increment.

2. The ship berthing trajectory classification method according to claim 1, It is characterized in that After obtaining the berthing trajectory sample, the method further includes: Performing trajectory analysis on sample data in the berthing trajectory sample, and determining a trajectory type of each sample data according to the trajectory analysis result; Data screening is performed on each sample data according to the trajectory type.

3. The ship berthing trajectory classification method according to claim 2, It is characterized in that The screening of each sample data according to the trajectory type includes: If the trajectory type corresponding to any of the sample data is a discontinuous trajectory, a loose trajectory or an entangled trajectory, the sample data is deleted from the docking trajectory sample.

4. The ship berthing trajectory classification method according to any one of claims 1 to 3, It is characterized in that After updating the parameters of the berthing trajectory classification model according to the output error, the method further includes: Obtaining the current iteration number of the berthing trajectory classification model; If the current number of iterations is greater than or equal to the number threshold, it is determined that the berthing trajectory classification model meets the preset convergence condition; If the current number of iterations is less than the number threshold, it is determined that the docking trajectory classification model does not meet the preset convergence condition, and for the docking trajectory classification model after parameter update, the step of calculating the activation function of the docking trajectory classification model and subsequent steps are returned to execute.

5. A ship berthing trajectory classification system, It is characterized in that The system comprises: A sample acquisition unit, used for acquiring a berthing trajectory sample and inputting the berthing trajectory sample into a berthing trajectory classification model; an initialization unit, used to initialize the docking trajectory classification model and calculate an activation function of the docking trajectory classification model; a sample classification unit, configured to classify the docking trajectory samples according to the activation function and the docking trajectory classification model to obtain a sample classification result; an error determination unit, configured to obtain an expected classification result of the docking trajectory sample, and determine an output error of the docking trajectory classification model according to the expected classification result and the sample classification result; a parameter updating unit, configured to update parameters of the berthing trajectory classification model according to the output error until the berthing trajectory classification model meets a preset convergence condition; A trajectory classification unit, used for inputting the berthing trajectory of the ship to be classified into the converged berthing trajectory classification model to perform trajectory classification and obtain a trajectory classification result; The formula used for performing trajectory classification on the docking trajectory sample according to the activation function and the docking trajectory classification model includes: in, W is the weight set connecting the hidden layer and the output layer in the docking trajectory classification model, w is the weight connecting the hidden layer and the output layer in the docking trajectory classification model, It is used to characterize the activation performance of neurons in the docking trajectory classification model, z is the docking trajectory sample, o is the sample classification result, w R yes w The real part of w I yes w The imaginary part of n is the number of input nodes in the docking trajectory classification model; The formula used to determine the output error of the berthing trajectory classification model according to the expected classification result and the sample classification result includes: in, d R is the real part of the expected classification result, d I is the imaginary part of the expected classification result, H is the number of hidden nodes in the docking trajectory classification model, n is the number of input nodes in the docking trajectory classification model, is the real part of the expected classification result, is the imaginary part of the expected classification result, E is the output error; The formula used to update the parameters of the berthing trajectory classification model according to the output error includes: in, for w R The adjustment increment is for w I The adjustment increment.

6. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.