All-weather berthing and leaving ship position identification method based on 4D millimeter wave radar
Through the combination of 4D millimeter-wave radar and multi-layer perceptron models, the problem of insufficient position identification accuracy of berthing and berthing ships in the existing technology is solved, high-precision identification in all-weather environments is achieved, and safety and accuracy are improved.
Patent Information
- Application Number
- CN202411069477.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-09-27
AI Technical Summary
Existing position identification technology for berthing and berthing vessels has shortcomings in accuracy and real-time performance. It is difficult to achieve high-precision determination of ship position and attitude especially in harsh environments, and reliance on manual operation can easily lead to accidents.
An all-weather berthing and berthing ship position identification method based on 4D millimeter wave radar is adopted. By acquiring and processing radar point cloud data, the multi-layer perceptron model and statistical filtering algorithm are used, combined with the random sampling consistency algorithm, to fit the outer wall of the ship's nearshore side. Equations of the plane to determine the position and attitude of the ship.
It achieves high-precision identification of the ship's position and attitude in an all-weather environment, avoids the impact of bad weather and industrial dust, and improves the safety and accuracy of the berthing and unberthing process.
Smart Images

Figure CN118707484A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target position recognition, and in particular to an all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar. Background Art
[0002] Ocean transportation has become the most commonly used means of transportation in international trade with its strong capacity, low cost and wide application scenarios. With the continuous growth of international trade demand, both shipbuilding and navigation technology are advancing by leaps and bounds. Therefore, ships as ocean transportation vehicles are also increasingly developing in the direction of large-scale, systematized and intelligent.
[0003] The berthing and unberthing of a ship is the most complicated operation process in the navigation of a ship. It is not only affected by meteorological and hydrological factors, but also by the ship type. As modern ships gradually develop towards specialization, complexity and large-scale, the incidence of berthing and unberthing accidents increases year by year. The berthing and unberthing operation of a ship requires high professional knowledge and skills of the ship pilot, and the technical standards for berthing and unberthing auxiliary facilities are also gradually increasing. At present, the completion of the berthing and unberthing process of a ship mainly relies on the communication and manual operation between the ship operator and the pilot. In this way, the determination or estimation of the position and posture of the hull during berthing and unberthing (distance from the dock shoreline, speed, angle between the hull and the dock shoreline, etc.) depends entirely on the experience of both the pilot and the pilot. Therefore, a large number of various accidents may occur in the berthing and unberthing guidance process that relies entirely on manual operation, resulting in loss of life and property.
[0004] At present, the automatic berthing and unberthing guidance devices can be mainly divided into three categories according to the adopted technology: visual detection, radar detection and satellite positioning. Visual detection uses visual acquisition equipment such as depth cameras to obtain photos and videos of ships, and then obtains information such as the position, posture and moving speed of the ship from them. It has the highest detection accuracy and good real-time performance, but the detection distance is short and it is easily interfered by environmental factors. Radar detection uses radars such as millimeter waves and laser radars to scan ships. It has a long detection distance and good real-time performance. It is often used for military purposes, but the detection accuracy is slightly lower. Satellite positioning has the longest detection distance and is not affected by environmental factors, but its real-time performance is poor, and it is difficult to achieve high-precision ship position and posture determination. According to the location of equipment installation, it can be divided into ship-borne and land-based types, that is, the detection equipment is installed on board or on shore. The former is highly flexible and can be used in any port, while the latter can be installed with higher power and higher precision equipment to achieve better results. In some working scenes with relatively harsh environments, such as general cargo ports for transporting coal and ore, there is a large amount of coal ash dust in the air during port operations, which seriously affects the normal operation of laser radar and visual detection systems. Millimeter-wave radar uses electromagnetic waves in the frequency domain of 30GHz to 300GHz and a wavelength of 1mm to 10mm for detection. It has strong penetrating power, can work in all weather conditions, and will not be affected by powder dust.
[0005] Traditional millimeter-wave radar mainly collects three kinds of characteristic information of radial velocity, radial distance and azimuth of the measured object in the plane, so it can only detect the position and attitude of the target on the plane, and has limitations in detecting targets in space. 4D millimeter-wave radar adds vertical pitch angle information on the basis of traditional millimeter-wave radar, so that the radar can output the position and velocity of the measured object in three-dimensional space, so as to more accurately detect the position and attitude of the target in space. However, there is currently a lack of specific research on the application of 4D millimeter-wave radar in the position recognition of berthing and unberthing ships. Summary of the invention
[0006] The purpose of the present invention is to provide an all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar, which can improve the accuracy of berthing and unberthing ship position recognition.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] An all-weather berthing and unberthing vessel position recognition method based on 4D millimeter wave radar, comprising:
[0009] Obtain millimeter-wave radar point cloud data of berthing and unberthing vessels at the current moment;
[0010] Converting the millimeter-wave radar point cloud data into a spatial rectangular coordinate system to obtain initial point cloud data;
[0011] Preprocessing the initial point cloud data to obtain preprocessed point cloud data;
[0012] Inputting the pre-processed point cloud data into a trained multi-layer perceptron model to obtain classified point cloud data; the trained multi-layer perceptron model is obtained by training the multi-layer perceptron model using historical millimeter wave radar point cloud data of different berthing and unberthing ships;
[0013] The outliers in the classified point cloud data are filtered out using the statistical filtering algorithm to obtain the filtered point cloud data of the outer wall of the ship near the shore.
[0014] The random sampling consistency algorithm is used to perform plane fitting on the filtered point cloud data of the outer wall of the ship near the shore, and the plane equation of the outer wall of the ship near the shore is obtained.
[0015] Based on the plane equation of the outer wall of the ship near the shore, the ship's position and posture at the current moment are determined.
[0016] Optionally, the millimeter-wave radar point cloud data is measured by a 4D millimeter-wave radar; the 4D millimeter-wave radar is set at a preset distance from the dock shoreline.
[0017] Optionally, the origin of the spatial rectangular coordinate system is the center of the 4D millimeter wave radar;
[0018] The positive direction of the X-axis of the spatial rectangular coordinate system is perpendicular to the direction of the dock shoreline and points to the dock shoreline; the Y-axis of the spatial rectangular coordinate system is parallel to the dock shoreline; the Z-axis of the spatial rectangular coordinate system is perpendicular to the ground plane, and the spatial rectangular coordinate system conforms to the right-hand coordinate system principle.
[0019] Optionally, the X coordinate of any point in the pre-processed point cloud data is in [D0, D0+S];
[0020] The Y coordinate of any point in the pre-processed point cloud data is in [-W / 2, W / 2]; wherein D0 is the preset distance between the 4D millimeter-wave radar and the dock shoreline; S is the operating distance during the berthing and unberthing process; and W is the berth width.
[0021] Optionally, before obtaining the millimeter wave radar point cloud data of the berthing and unberthing vessels at the current moment, the method further includes:
[0022] Obtain historical millimeter wave radar point cloud data of different berthing and unberthing vessels;
[0023] Convert historical millimeter-wave radar point cloud data into a spatial rectangular coordinate system to obtain multiple sets of historical point cloud data;
[0024] Preprocessing the historical initial point cloud data to obtain historical preprocessed point cloud data;
[0025] Annotate the classified point cloud data in the historical preprocessed point cloud data to obtain historical annotated point cloud data;
[0026] The historical labeled point cloud data is used as input to train the multi-layer perceptron model to obtain a trained multi-layer perceptron model.
[0027] Optionally, outliers in the classified point cloud data are filtered out using a statistical filtering algorithm to obtain filtered point cloud data of the outer wall of the nearshore side of the ship, including:
[0028] Determine any point in the classified point cloud data as the current point;
[0029] Determine the distance between the current point and each point in the classified point cloud data except the current point as a first distance;
[0030] determining a mean and a standard deviation of all of the first distances;
[0031] Determine a current radius threshold according to an average value and a standard deviation of all the first distances;
[0032] According to the neighbor point search window, multiple neighbor points of the current point are determined;
[0033] Determine the average value of the distance between the current point and all neighboring points as the current judgment value;
[0034] When the current judgment value is less than the current radius threshold, the current point is retained;
[0035] When the current judgment value is greater than or equal to the current radius threshold, delete the current point;
[0036] Update the current point and return to step "determine the distance between the current point and each point in the classified point cloud data" until all points in the classified point cloud data are traversed to obtain the filtered point cloud data of the outer wall of the nearshore side of the ship.
[0037] Optionally, the current radius threshold is: R max =μ+std·σ;
[0038] Among them, R max is the current radius threshold, μ is the average value of the first distance, σ is the standard deviation of the first distance, and std is the coefficient of the standard deviation of the first distance.
[0039] Optionally, a random sampling consistency algorithm is used to perform plane fitting on the filtered point cloud data of the outer wall of the nearshore side of the ship to obtain a plane equation of the outer wall of the nearshore side of the ship, including:
[0040] Determine the number of sampling points as n1, the maximum number of iterations as F, and the distance threshold d max ;
[0041] Based on prior knowledge, determine the preset angle threshold θmin ;
[0042] Let the number of iterations f = 1;
[0043] Randomly sample n1 points as the sampling point cloud at the fth iteration;
[0044] Determine the centroid of the sampling point cloud at the fth iteration;
[0045] Delete the centroid of the sampling point cloud at the f-th iteration to obtain the centroid-free sampling point cloud at the f-th iteration;
[0046] The least square method is used to perform plane fitting on the de-centroided sampling point cloud at the f-th iteration to obtain the least square plane equation at the f-th iteration;
[0047] Determine that the plane corresponding to the least squares plane equation is the fitting plane at the fth iteration;
[0048] Determine that the angle between the fitting plane and the XOY coordinate plane at the f-th iteration is the first angle;
[0049] Determine the point cloud data of the filtered point cloud data of the outer wall of the nearshore side of the ship except the sampled point cloud at the f-th iteration as the de-sampled point cloud at the f-th iteration;
[0050] Determine the distance from each point in the desampled point cloud at the f-th iteration to the fitting plane at the f-th iteration as the second distance;
[0051] Determine whether the condition of the outer wall plane equation of the nearshore side of the ship is met, and obtain a judgment result; the condition of the outer wall plane equation of the nearshore side of the ship is that the first angle at the fth iteration is less than the preset angle threshold θ min , and all second distances at the fth iteration are less than the distance threshold d max ;
[0052] If the judgment result is no, the value of the iteration number f is increased by 1, and the process returns to the step of "randomly sampling n1 points as the sampling point cloud at the f-th iteration" until the maximum iteration number is F, an error message is output, the current time is updated, and the process returns to the step of "obtaining the millimeter-wave radar point cloud data of the berthing and unberthing vessels at the current time";
[0053] If the judgment result is yes, then the least square plane equation at the f-th iteration is determined to be the plane equation of the outer wall of the nearshore side of the ship.
[0054] Optionally, based on the plane equation of the outer wall of the nearshore side of the ship, determining the position and posture of the ship at the current moment includes:
[0055] Determine the normal vector of the plane equation of the outer wall of the ship near the shore as the outer wall normal vector;
[0056] Get the normal vector of the YOZ plane of the spatial rectangular coordinate system as the reference normal vector;
[0057] Determine the cosine of a second angle according to the outer wall normal vector and the reference normal vector; the second angle is the angle between the outer wall plane on the nearshore side of the ship and the YOZ plane of the spatial rectangular coordinate system;
[0058] According to the cosine of the second angle, the second angle is solved by using inverse trigonometric functions;
[0059] Assume that the intersection point of the X-axis of the spatial rectangular coordinate system and the outer wall plane of the ship near the shore is (x0, 0, 0);
[0060] Substituting the intersection point into the plane equation of the outer wall of the nearshore side of the ship to solve the horizontal coordinate of the intersection point;
[0061] The absolute value of the horizontal coordinate of the intersection is determined as the straight-line distance from the center of the radar housing along the positive direction of the X-axis of the spatial rectangular coordinate system to the outer wall of the nearshore side of the ship; the second angle and the straight-line distance from the center of the radar housing along the positive direction of the X-axis of the spatial rectangular coordinate system to the outer wall of the nearshore side of the ship are used to express the position and posture of the ship at the current moment.
[0062] Optionally, the plane equation of the outer wall of the nearshore side of the vessel is:
[0063] ax+by+cz+d=0;
[0064] Among them, a, b and c are the coefficients of the plane equation of the outer wall of the ship near the shore, d is the constant term of the plane equation of the outer wall of the ship near the shore, and x, y, z are the x-coordinate, y-coordinate and z-coordinate of the midpoint of the spatial rectangular coordinate system.
[0065] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0066] The purpose of the present invention is to provide an all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar, by collecting 4D millimeter wave radar point cloud data and converting it to a spatial rectangular coordinate system, performing direct filtering preprocessing according to prior knowledge, and then inputting the trained multi-layer perceptron model to obtain the classified point cloud and perform statistical filtering to obtain the point cloud of the outer wall of the nearshore ship, and using a random sampling consistency algorithm to perform plane fitting to obtain the plane equation of the outer wall of the nearshore ship, and on this basis, infer the angle and distance between the outer wall of the nearshore side of the ship and the shoreline of the dock, so as to obtain the position and attitude information of the ship at this time. At the same time, using a 4D millimeter wave radar sensor as a detection device, all-weather detection can be carried out to avoid the influence of rain, snow, fog and haze weather and industrial dust, and it has strong stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0068] Figure 1 A schematic flow chart of a method for identifying the position of berthing and unberthing vessels in all weather conditions based on 4D millimeter wave radar provided in Example 1 of the present invention;
[0069] Figure 2 Schematic diagram of the relative positions of the 4D millimeter wave radar, the ship and the berth in Example 1 of the present invention
[0070] Figure 3 Schematic diagram of the initial point cloud after conversion to the spatial rectangular coordinate system in Example 1 of the present invention;
[0071] Figure 4 Schematic diagram of a point cloud preprocessed by straight-through filtering in Example 1 of the present invention
[0072] Figure 5 This is a schematic diagram of using 4D millimeter wave radar to collect and obtain the initial point cloud of the current ship in Example 1 of the present invention;
[0073] Figure 6 This is a schematic diagram of using 4D millimeter wave radar to collect historical point clouds of different ships in Example 1 of the present invention;
[0074] Figure 7 A schematic diagram of the network structure of the multi-layer perceptron algorithm used in Example 1 of the present invention
[0075] Figure 8 This is a schematic diagram of a classified point cloud after being classified by a multi-layer perceptron model with a first parameter in Example 1 of the present invention;
[0076] Fig. 9 This is a schematic diagram of a classified point cloud after classification by a multi-layer perceptron model with a second parameter according to Embodiment 1 of the present invention;
[0077] Fig.10 This is a schematic diagram of a classified point cloud after classification by a multi-layer perceptron model with a third parameter according to Embodiment 1 of the present invention;
[0078] Fig.11 This is a schematic diagram of a classified point cloud after classification by the multi-layer perceptron model of the fourth parameter in Example 1 of the present invention;
[0079] Fig.12 This is a schematic diagram of a classified point cloud after classification by the multi-layer perceptron model with the fifth parameter in Example 1 of the present invention;
[0080] Fig.13 This is a schematic diagram of a classified point cloud after classification by the multi-layer perceptron model with the sixth parameter in Example 1 of the present invention;
[0081] Fig.14 This is a schematic diagram of a classified point cloud after classification by the multi-layer perceptron model of the seventh parameter in Example 1 of the present invention;
[0082] Fig.15 This is a schematic diagram of a classified point cloud after classification by the multi-layer perceptron model with the eighth parameter in Example 1 of the present invention;
[0083] Fig.16 Schematic diagram of comparison of point clouds of the outer wall of the nearshore side of a ship after statistical filtering with different parameters according to Embodiment 1 of the present invention;
[0084] Fig.17 This is a schematic diagram of the plane effect of the outer wall of the nearshore side of the ship fitted in Example 1 of the present invention. DETAILED DESCRIPTION
[0085] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0086] The purpose of the present invention is to provide an all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar, which can improve the accuracy of berthing and unberthing ship position recognition.
[0087] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0088] Example 1
[0089] like Figure 1 As shown, in this embodiment, a method for identifying the position of berthing and unberthing vessels based on 4D millimeter wave radar in all weather conditions includes:
[0090] Step 101: Obtain millimeter wave radar point cloud data of berthing and unberthing vessels at the current moment. The millimeter wave radar point cloud data is measured by a 4D millimeter wave radar. The 4D millimeter wave radar is set at a preset distance from the dock shoreline.
[0091] Step 102: Convert the millimeter wave radar point cloud data to a spatial rectangular coordinate system to obtain initial point cloud data. The origin of the spatial rectangular coordinate system is the center of the 4D millimeter wave radar. The positive direction of the X-axis of the spatial rectangular coordinate system is perpendicular to the direction of the dock shoreline and points to the dock shoreline. The Y-axis of the spatial rectangular coordinate system is parallel to the dock shoreline. The Z-axis of the spatial rectangular coordinate system is perpendicular to the ground plane, and the spatial rectangular coordinate system conforms to the right-hand coordinate system principle.
[0092] Step 103: Preprocess the initial point cloud data to obtain preprocessed point cloud data. The X coordinate of any point in the preprocessed point cloud data is in [D0, D0+S]. The Y coordinate of any point in the preprocessed point cloud data is in [-W / 2, W / 2]. Wherein, D0 is the preset distance between the 4D millimeter wave radar and the dock shoreline. S is the operating distance during the berthing and unberthing operation. W is the berth width.
[0093] Step 104: input the pre-processed point cloud data into the trained multi-layer perceptron model to obtain classified point cloud data. The trained multi-layer perceptron model is obtained by training the multi-layer perceptron model using historical millimeter wave radar point cloud data of different berthing and unberthing ships.
[0094] Step 105: Filter outliers in the classified point cloud data using a statistical filtering algorithm to obtain filtered point cloud data of the outer wall of the nearshore side of the ship.
[0095] Step 106: Use a random sampling consistency algorithm to perform plane fitting on the filtered point cloud data of the outer wall of the nearshore side of the ship to obtain a plane equation of the outer wall of the nearshore side of the ship.
[0096] Step 107: Determine the position and posture of the vessel at the current moment based on the plane equation of the outer wall of the nearshore side of the vessel.
[0097] Before step 101, the method further includes:
[0098] Step 108: Acquire historical millimeter wave radar point cloud data of different berthing and unberthing vessels.
[0099] Step 109: Convert the historical millimeter wave radar point cloud data into a spatial rectangular coordinate system to obtain multiple groups of historical point cloud data.
[0100] Step 1010: pre-process the historical initial point cloud data to obtain historical pre-processed point cloud data.
[0101] Step 1011: labeling the classified point cloud data in the historical pre-processed point cloud data to obtain historical labeled point cloud data.
[0102] Step 1012: Using the historically labeled point cloud data as input, the multi-layer perceptron model is trained to obtain a trained multi-layer perceptron model.
[0103] Step 105 includes:
[0104] Step 105 - 1 : Determine any point in the classified point cloud data as the current point.
[0105] Step 105 - 2 : Determine the distance between the current point and each point in the classified point cloud data except the current point as a first distance.
[0106] Step 105 - 3 : Determine the mean and standard deviation of all first distances.
[0107] Step 105-4: Determine the current radius threshold according to the average value and standard deviation of all first distances. The current radius threshold is: R max =μ+std·σ.
[0108] Among them, R max is the current radius threshold, μ is the average value of the first distance, σ is the standard deviation of the first distance, and std is the coefficient of the standard deviation of the first distance.
[0109] Step 105-5: Determine multiple neighboring points of the current point based on the neighboring point search window.
[0110] Step 105-6: Determine the average value of the distance between the current point and all neighboring points as the current decision value.
[0111] Step 105-7: When the current determination value is less than the current radius threshold, the current point is retained.
[0112] Step 105-8: When the current determination value is greater than or equal to the current radius threshold, delete the current point.
[0113] Step 105 - 9 : Update the current point and return to step 105 - 2 until all points in the classified point cloud data are traversed to obtain the filtered point cloud data of the outer wall of the nearshore side of the ship.
[0114] Step 106 includes:
[0115] Step 106-1: Determine the number of sampling points as n1, the maximum number of iterations as F, and the distance threshold d max .
[0116] Step 106-2: Determine the preset angle threshold θ based on prior knowledge min .
[0117] Step 106-3: Set the number of iterations f=1.
[0118] Step 106 - 4 : Randomly sample n1 points as the sampling point cloud at the f-th iteration.
[0119] Step 106-5: Determine the centroid of the sampling point cloud at the f-th iteration.
[0120] Step 106-6: Delete the centroid of the sampling point cloud at the f-th iteration to obtain the centroid-removed sampling point cloud at the f-th iteration.
[0121] Step 106-7: Use the least square method to perform plane fitting on the centroid-removed sampling point cloud at the f-th iteration to obtain the least square plane equation at the f-th iteration.
[0122] Step 106-8: Determine that the plane corresponding to the least squares plane equation is the fitting plane at the f-th iteration.
[0123] Step 106 - 9 : Determine that the angle between the fitting plane and the XOY coordinate plane at the f-th iteration is the first angle.
[0124] Step 106 - 10: Determine the point cloud data in the filtered point cloud data of the outer wall on the nearshore side of the ship except the sampled point cloud at the f-th iteration as the de-sampled point cloud at the f-th iteration.
[0125] Step 106 - 11: Determine the distance from each point in the desampled point cloud at the f-th iteration to the fitting plane at the f-th iteration as the second distance.
[0126] Step 106-12: Determine whether the condition of the outer wall plane equation on the nearshore side of the ship is met, and obtain a determination result; the condition of the outer wall plane equation on the nearshore side of the ship is that the first angle at the fth iteration is less than a preset angle threshold θ min , and all second distances at the fth iteration are less than the distance threshold d max If the judgment result is no, then execute step 106-13; if the judgment result is yes, then execute step 106-14.
[0127] Step 106 - 13: Increase the value of the number of iterations f by 1, and return to step 106 - 4 until the maximum number of iterations F is reached, output an error message, update the current time and return to step 101 .
[0128] Step 106-14: Determine the least square plane equation at the f-th iteration as the plane equation of the outer wall of the ship near the shore.
[0129] Step 107 includes:
[0130] Step 107 - 1 : Determine the normal vector of the plane equation of the outer wall of the nearshore side of the ship as the outer wall normal vector.
[0131] Step 107 - 2: Obtain the normal vector of the YOZ plane of the spatial rectangular coordinate system as the reference normal vector.
[0132] Step 107-3: Determine the cosine of the second angle according to the outer wall normal vector and the reference normal vector. The second angle is the angle between the outer wall plane on the nearshore side of the ship and the YOZ plane of the spatial rectangular coordinate system.
[0133] Step 107 - 4 : According to the cosine of the second angle, the second angle is solved by using an inverse trigonometric function.
[0134] Step 107-5: Assume that the intersection point of the X-axis of the spatial rectangular coordinate system and the outer wall plane of the nearshore side of the ship is (x0, 0, 0).
[0135] Step 107-6: Substitute the intersection point into the plane equation of the outer wall of the nearshore side of the ship to solve the horizontal coordinate of the intersection point.
[0136] Step 107-7: Determine the absolute value of the horizontal coordinate of the intersection point as the straight-line distance from the center of the radar housing along the positive direction of the X-axis of the spatial rectangular coordinate system to the outer wall of the nearshore side of the ship. The second angle and the straight-line distance from the center of the radar housing along the positive direction of the X-axis of the spatial rectangular coordinate system to the outer wall of the nearshore side of the ship are used to express the position and posture of the ship at the current moment.
[0137] Among them, the plane equation of the outer wall of the ship near the shore is:
[0138] ax+by+cz+d=0.
[0139] Among them, a, b and c are the coefficients of the plane equation of the outer wall of the ship near the shore, d is the constant term of the plane equation of the outer wall of the ship near the shore, and x, y, z are the x-coordinate, y-coordinate and z-coordinate of the midpoint of the spatial rectangular coordinate system.
[0140] The coordinates of the raw data returned by the 4D millimeter wave radar used in this embodiment are in the form of a spherical coordinate system, which needs to be converted to a spatial rectangular coordinate system for the convenience of subsequent processing. The raw data returned by the radar is the radial distance from the radar to the target, which is set to D, and the azimuth in the horizontal plane of the spherical coordinate system is The pitch angle in the vertical plane is set to θ. The spatial rectangular coordinate system is as follows Figure 2 As shown, the origin of the coordinates is the center of the shell of the 4D millimeter wave radar, the positive direction of the X axis is perpendicular to the dock shoreline and points to the sea side, the positive direction of the Y axis is parallel to the dock shoreline, and the positive direction of the Z axis is perpendicular to the ground and points to the sky, and the entire coordinate system conforms to the right-hand coordinate system convention. Then it has the following conversion relationship with the coordinates X, Y and Z in the spatial rectangular coordinate system:
[0141]
[0142] Based on this relationship, the point cloud coordinate space can be transformed into a spatial rectangular coordinate system.
[0143] The original data sent back by the 4D millimeter wave radar is converted into a spatial rectangular coordinate system, and the initial point cloud obtained is as follows Figure 3 shown.
[0144] Step 102 specifically involves performing a through-filter on the initial point cloud according to prior knowledge such as the radar installation position, berth width, and operation distance to obtain a preprocessed point cloud.
[0145] In this embodiment, a 4D millimeter wave radar is used as the main detection device, and the installation is as follows: Figure 2 As shown, the millimeter wave radar is installed at a certain distance D0 from the dock shoreline to the sea side.
[0146] According to the dock planning in this embodiment, the length of most ships during berthing and unberthing operations is about 160 meters or less, and according to the safety principle, the berth needs to leave a safety distance of at least 1 / 4 of the ship length, so the berth width W in this embodiment generally does not exceed 200 meters. In this embodiment, the operating distance S for ships to carry out berthing and unberthing operations is about 100 meters (usually between 3 / 4 and 1 / 2 of the ship length, depending on the specific situation), that is, the ship starts berthing operations within 100 meters of the dock shoreline and ends unberthing operations outside the 100-meter range of the dock shoreline. In addition, the ship must always be on the water surface during the berthing and unberthing process, and will not appear in the area where the radar reaches the dock shoreline.
[0147] Therefore, through the straight-through filtering algorithm, the X-axis range of the 4D millimeter-wave radar is limited to [D0, D0+100] meters, and the Y-axis range is [-100, 100] meters. In this way, the scanning points in irrelevant areas are eliminated, and the pre-processed point cloud obtained is as follows: Figure 4 shown.
[0148] Step 103 specifically involves inputting the preprocessed point cloud into the trained multi-layer perceptron model for classification to obtain a classified point cloud. The trained multi-layer perceptron model is obtained by collecting historical point cloud data of the ship at different positions and postures and inputting it into the multi-layer perceptron algorithm for training. Therefore, before performing step 103, the following steps need to be performed:
[0149] Collect historical point cloud data of ships at different positions and postures, specifically:
[0150] During the berthing and unberthing process, the position of the ship (i.e., the distance from the ship to the dock shoreline) and the attitude information (i.e., the angle between the ship and the dock shoreline) are constantly changing. However, in this dynamic process, due to the large target size of the cargo ship itself, there is no effective means to obtain its accurate attitude information as a reference. Therefore, historical point cloud data collected from different positions and angles are used to replace the initial point cloud data at different times during the actual operation.
[0151] Under the premise of not changing the installation distance between the radar and the dock shoreline, different reference values of the centering distance can be obtained by changing the deflection angle of the radar relative to the dock shoreline. Figure 6 As shown in the figure, assuming that the radar at the center distance D1 from the outer wall of the ship near the shore is deflected by a certain angle θ, the simulation at this time is as follows Figure 5 As shown in the figure, during the berthing and unberthing process, the center distance between the outer wall of the ship near the shore and the radar is D2, and at a certain moment when the angle with the dock shoreline is θ, there is a relationship between D1 and D2:
[0152] D1=D2cosθ.
[0153] In this embodiment, the data collection situation is shown in Table 1.
[0154] Table 1 Data collected by radar
[0155]
[0156] The centroid distance between the outer wall plane of the ship near the shore and the radar refers to the straight-line distance from the center of the radar housing, i.e., the origin of the coordinates, along the positive direction of the X-axis to the outer wall of the ship near the shore. The deflection angle of the radar is the deflection of the YOZ plane of the radar spatial rectangular coordinate system from parallel to the dock shoreline to a certain angle θ with the dock shoreline in step 101.
[0157] The historical point cloud data is annotated and divided into training set and test set, specifically:
[0158] The historical point cloud data is manually annotated and divided into positive and negative classes. The positive class is the outer wall of the ship near the shore, marked as 1; the negative class is the background, marked as 0, to obtain the annotated historical point cloud data. The annotated historical point cloud is used to construct a data set. According to the time of each berthing and unberthing process of the ship in this embodiment and the frame rate of the 4D millimeter wave radar acquisition data, 50,000 points of data at each centering distance and radar deflection angle are selected as the training set. 10,000 points of data at each centering distance and radar deflection angle are used as the test set, and the 10,000 points of data are not repeated with the 50,000 points of data constituting the training set. The training set is input into the multi-layer perceptron algorithm to train the multi-layer perceptron model.
[0159] The point cloud features and their meanings used by the multi-layer perceptron algorithm during training are shown in Table 2.
[0160] Table 2 Point cloud features used and their meanings
[0161]
[0162]
[0163] The divided training set is input into the multi-layer perceptron algorithm, and the trained multi-layer perceptron model is obtained after training, specifically:
[0164] Determine the size of the multilayer perceptron model. Figure 7 As shown in FIG. 3 , the network structure of the multilayer perceptron algorithm consists of an input layer, an output layer, and several hidden layers in the middle, and the trained model consists of weights and biases transmitted between layers. Therefore, it is necessary to determine the number of hidden layers and the number of nodes in each hidden layer by weighing the classification effect and the training time. After the experimental test of different numbers of hidden layers and nodes in this embodiment, the training time is shown in Table 3.
[0165] Table 3 Effect of different numbers of hidden layers and the number of nodes in each hidden layer on training time
[0166]
[0167] The specific process of training the multi-layer perceptron model is as follows:
[0168] The initial weights and biases are randomly generated. The input training set data is weighted and summed, transformed by the activation function, and forward propagated to the next hidden layer. The weighted summation-activation function transformation process is repeated until the output. This is a forward propagation process.
[0169] After completing a forward propagation, the loss function is used to calculate the error between the output value and the reference value of the training sample.
[0170] Since the number of sample points in the training set is large, the optimizer for solving the weights and biases of each connection layer is determined to be the Adam optimizer. The gradient of the inter-layer weight and bias parameter changes is calculated through the chain rule, and the optimizer is used to solve it and back-propagated to the input layer as the initial weight for the next forward propagation. This is a back-propagation process.
[0171] Repeat the above forward propagation and back propagation process again until the value of the loss function is minimized, the solution is considered complete, and the classification results are output. The positive class is the point cloud of the outer wall of the ship near the shore, and the negative class is the background point cloud.
[0172] Among them, the selected activation function is the ReLU function, and its expression is as follows, where x is the input feature variable:
[0173] f(x)=max(0,x)
[0174] The selected loss function is the cross entropy loss function, which is expressed as:
[0175]
[0176] Where y is the label value of whether a point in the training set belongs to the positive class or the negative class. is the predicted value of the classification. When the loss takes the minimum value, it can be considered that the classification accuracy has reached the maximum. The training is terminated, the model is saved, and then the trained model is loaded to classify the data in the test set to obtain the classified point cloud. Figure 8-Figure 15 As shown in Table 3, it can be seen that too many layers and nodes will lead to a significant increase in training time, but the effect may not be improved. Too few will not achieve the ideal classification effect. In summary, the multi-layer perceptron model selected after training finally contains 3 hidden layers, with 100 nodes in each layer.
[0177] The classified point cloud is filtered using a statistical filtering algorithm to obtain the point cloud of the outer wall of the ship near the shore, specifically:
[0178] The total number of points in the input classification point cloud is recorded as N. The distances between them are assumed to form a Gaussian distribution. The shape of the point cloud is determined by the mean μ and standard deviation σ of the Gaussian distribution. Suppose a point P in the point cloud is n The coordinates of the point are (Xn, Yn, Zn). The point is connected to any point P with coordinates (Xm, Ym, Zm). m , the distance S i for:
[0179]
[0180] Calculate the mean μ and standard deviation σ of all Pn and Pm distances:
[0181]
[0182] Then the radius threshold R max for:
[0183] R max =μ+std·σ
[0184] According to the “3σ” principle of normal distribution data, the standard deviation effect coefficient std is selected as 1, that is, at least about 68.26% of the points in the point cloud are retained.
[0185] Considering the number of points in each frame of the 4D millimeter-wave radar point cloud data used in this embodiment, the neighbor point search window is selected as 20, and the average distance from each point to its nearest 20 neighbor points is traversed and compared with the radius threshold R max If the radius is greater than the threshold, the point is considered an outlier and is filtered out. Otherwise, it is considered an inlier and retained. The filtered point cloud after statistical filtering is as follows: Fig.16 shown.
[0186] The random sampling consistency algorithm is used to perform plane fitting on the point cloud of the outer wall of the nearshore side of the ship, and the plane equation of the outer wall of the nearshore side of the ship is obtained, which is:
[0187] In this embodiment, for the input classified point cloud data, considering the data volume and execution efficiency, the number of sampling points each time is set to n1 = 20, and the maximum number of iterations F = 1000. Considering the scanning accuracy of the 4D millimeter wave radar used in this embodiment, the distance threshold d is set max 0.01 m.
[0188] According to the prior knowledge that the outer wall of the nearshore side of the ship should be close to the vertical plane during the berthing and unberthing process, it is stipulated that the angle θ between the fitted outer wall plane of the nearshore side of the ship and the XOY coordinate plane should be greater than the angle threshold θ min In this embodiment, θ is selected min =80°.
[0189] Twenty points are sampled from the point cloud of the outer wall of the nearshore side of the ship as the sampling point cloud H, and the centroid of H is calculated and removed from the sampling point cloud.
[0190] The sampling point cloud H after the centroid is removed is fitted with a least square plane. There are many methods for solving the least square plane, such as the normal equation method, the singular value decomposition method, the QR decomposition method, etc. This embodiment adopts the singular value decomposition method, which is specifically:
[0191] Assume the required least squares plane equation is:
[0192] ax+by+cz+d=0
[0193] Among them, the parameters a, b and c satisfy the regularization conditions:
[0194] a 2 +b 2 +c 2 =1
[0195] According to the definition, the obtained least squares plane should satisfy the distance d from any point Pi in the sampling point cloud H to the plane. i The sum of squares e is minimal:
[0196]
[0197] The centroid of the sampled point cloud H It should be located on the plane, so its coordinates also satisfy the plane equation, so we have:
[0198]
[0199] Written in matrix form, that is:
[0200] HX=0
[0201] in:
[0202]
[0203] And X also satisfies the regularization conditions mentioned above:
[0204] ||X||=1
[0205] Perform singular value decomposition on H to obtain the left singular matrix U, the singular value diagonal matrix S and the right singular matrix V:
[0206] H=USV T
[0207] Then for S, V and X we have:
[0208] SV T X=0
[0209] Then bring in the constraint condition ||X||=1, then When ||HX|| is the smallest, it is the least squares solution of the equation HX=0.
[0210] At this time, the parameters a, b and c of the current least squares plane equation can be obtained from V, and the parameter d can be obtained by substituting the centroid.
[0211] Calculate the distance d0 between the unsampled part of the point cloud and the current least squares plane, and determine whether it is less than the distance threshold d max = 0.01 m, and whether the angle θ0 between the current least squares plane and the plane of the spatial rectangular coordinate system XOY is greater than the angle threshold θ min =80°.
[0212] If both the distance threshold and the angle threshold conditions are met, the least squares plane equation at this time is output as the plane equation of the outer wall of the ship near the shore. If any condition is not met, the above process is repeated until both conditions are met.
[0213] If the least squares plane equation that satisfies both threshold conditions is still not solved when the maximum number of iterations F=1000 is reached, it is considered that the outer wall plane of the nearshore side of the ship cannot be fitted at this time, an error message is output, and the process returns to step 101.
[0214] In this embodiment, the plane fitting result of the point cloud of the outer wall near the shore of the ship is as follows: Fig.17 shown.
[0215] According to the equation of the outer wall plane on the nearshore side of the ship, the angle between the outer wall plane on the nearshore side of the ship and the dock shoreline and the center distance to the radar are calculated, so as to obtain the position and posture of the ship at this time, which is specifically:
[0216] Assume that the least squares plane equation obtained from step 105 is:
[0217] ax+by+cz+d=0
[0218] Then its normal vector is (a, b, c), and the normal vector of the YOZ plane of the spatial rectangular coordinate system in step 101 is (1, 0, 0), and the angle between the two is The cosine of is:
[0219]
[0220] Therefore, we only need to use the inverse trigonometric function to solve
[0221] The centroid distance D between the plane of the outer wall of the ship near the shore and the radar refers to the straight-line distance from the center of the radar shell, i.e. the origin of the coordinate system, along the positive direction of the X-axis to the outer wall of the ship near the shore.
[0222] For the centroid distance D, since the X-axis of the spatial rectangular coordinate system in step 101 is drawn from the center of the radar housing, the intersection point with the outer wall plane of the nearshore side of the ship is assumed to be (x0, 0, 0), and the solution is obtained by substituting it into the plane equation:
[0223]
[0224] The final fitted outer wall plane of the ship near the shore in this embodiment is as follows Fig.10 The test results are shown in Table 4, and the error analysis is shown in Table 5.
[0225] Table 4 Method test results
[0226]
[0227]
[0228] Table 5 Error summary
[0229]
[0230] It can be seen from Table 5 that in this embodiment, when the distance between the radar and the outer wall of the ship near the shore is small (for example, when the center distance D1 between the outer wall plane of the ship near the shore and the radar is 2.10 meters), the distance between the outer wall plane of the ship near the shore and the radar and the angle between the outer wall plane of the ship near the shore and the dock shoreline measured by this method will have a relatively large error. This is because Figure 3 As shown in FIG. 1 , the initial point cloud data collected by the millimeter-wave radar is distributed roughly in a fan shape. When the distance between the ship and the radar (i.e., the center of the fan shape) is too close, the outer wall plane of the ship near the shore has exceeded the detection range of the millimeter-wave radar used in this embodiment, resulting in too few points belonging to the outer wall of the ship near the shore in the initial point cloud, which cannot be correctly classified by the multi-layer perceptron model trained in step 103-1. Therefore, when determining the installation position of the millimeter-wave radar, i.e. Figure 2When the millimeter-wave radar is at a distance D0 from the land side of the dock shoreline, D0 needs to be at least 10 meters. In addition, the ship must maintain a safe distance from the dock shoreline when berthing (generally more than 1m to prevent collision), so that the minimum value of D1 of the outer wall of the ship near the shore is about 13 meters to maintain a good effect.
[0231] As shown in Table 5, when D1 is greater than 13 meters, this method can ensure that the average detection error of the centering distance between the outer wall of the ship near the shore and the radar is about 0.16 meters, and the average detection error of the angle with the dock shoreline is about 0.99°, which demonstrates the effectiveness of this method.
[0232] Example 2
[0233] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement an all-weather berthing and unberthing vessel position identification method based on 4D millimeter wave radar in embodiment 1.
[0234] Example 3
[0235] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements an all-weather berthing and unberthing ship position identification method based on 4D millimeter-wave radar in Example 1.
[0236] Example 4
[0237] A computer program product includes a computer program. When the computer program is executed by a processor, the computer program implements the all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar in embodiment 1.
[0238] Example 5
[0239] A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an all-weather berthing and unberthing ship position identification method based on a 4D millimeter wave radar in Example 1 is implemented.
[0240] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0241] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.
[0242] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0243] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for all-weather berthing and unberthing ship position recognition based on 4D millimeter wave radar, characterized in that: include: Obtain millimeter-wave radar point cloud data of berthing and unberthing vessels at the current moment; Converting the millimeter-wave radar point cloud data into a spatial rectangular coordinate system to obtain initial point cloud data; Preprocessing the initial point cloud data to obtain preprocessed point cloud data; Inputting the pre-processed point cloud data into a trained multi-layer perceptron model to obtain classified point cloud data; the trained multi-layer perceptron model is obtained by training the multi-layer perceptron model using historical millimeter wave radar point cloud data of different berthing and unberthing ships; The outliers in the classified point cloud data are filtered out using the statistical filtering algorithm to obtain the filtered point cloud data of the outer wall of the ship near the shore. The random sampling consistency algorithm is used to perform plane fitting on the filtered point cloud data of the outer wall of the ship near the shore, and the plane equation of the outer wall of the ship near the shore is obtained. Based on the plane equation of the outer wall of the ship near the shore, the ship's position and posture at the current moment are determined.
2. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1 is characterized in that: The millimeter-wave radar point cloud data is measured by a 4D millimeter-wave radar; the 4D millimeter-wave radar is set at a preset distance from the dock shoreline.
3. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1 is characterized in that: The origin of the spatial rectangular coordinate system is the center of the 4D millimeter wave radar; The positive direction of the X-axis of the spatial rectangular coordinate system is perpendicular to the direction of the dock shoreline and points to the dock shoreline; the Y-axis of the spatial rectangular coordinate system is parallel to the dock shoreline; the Z-axis of the spatial rectangular coordinate system is perpendicular to the ground plane, and the spatial rectangular coordinate system conforms to the right-hand coordinate system principle.
4. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 2 is characterized in that: The X coordinate of any point in the pre-processed point cloud data is in [D0, D0+S]; The Y coordinate of any point in the pre-processed point cloud data is in [-W / 2, W / 2]; wherein D0 is the preset distance between the 4D millimeter-wave radar and the dock shoreline; S is the operating distance during the berthing and unberthing process; and W is the berth width.
5. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1 is characterized in that: Before obtaining the millimeter wave radar point cloud data of the berthing and unberthing vessels at the current moment, it also includes: Obtain historical millimeter wave radar point cloud data of different berthing and unberthing vessels; The historical millimeter-wave radar point cloud data is converted into a spatial rectangular coordinate system to obtain multiple groups of historical point cloud data; Preprocessing the historical initial point cloud data to obtain historical preprocessed point cloud data; Annotate the classified point cloud data in the historical preprocessed point cloud data to obtain historical annotated point cloud data; The historical labeled point cloud data is used as input to train the multi-layer perceptron model to obtain a trained multi-layer perceptron model.
6. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1 is characterized in that: The statistical filtering algorithm is used to filter out outliers in the classified point cloud data to obtain the filtered point cloud data of the outer wall of the nearshore side of the ship, including: Determine any point in the classified point cloud data as the current point; Determine the distance between the current point and each point in the classified point cloud data except the current point as a first distance; determining a mean and a standard deviation of all of the first distances; Determine a current radius threshold according to an average value and a standard deviation of all the first distances; According to the neighbor point search window, multiple neighbor points of the current point are determined; Determine the average value of the distance between the current point and all neighboring points as the current judgment value; When the current judgment value is less than the current radius threshold, the current point is retained; When the current judgment value is greater than or equal to the current radius threshold, delete the current point; Update the current point and return to step "determine the distance between the current point and each point in the classified point cloud data" until all points in the classified point cloud data are traversed to obtain the filtered point cloud data of the outer wall of the nearshore side of the ship.
7. The all-weather berthing and unberthing vessel position recognition method based on 4D millimeter wave radar according to claim 6, characterized in that: The current radius threshold is: R max =μ+std·σ; Among them, R max is the current radius threshold, μ is the average value of the first distance, σ is the standard deviation of the first distance, and std is the coefficient of the standard deviation of the first distance.
8. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1, characterized in that: The random sampling consistency algorithm is used to perform plane fitting on the filtered point cloud data of the outer wall of the nearshore side of the ship to obtain the plane equation of the outer wall of the nearshore side of the ship, including: Determine the number of sampling points as n1, the maximum number of iterations as F, and the distance threshold d max ; Based on prior knowledge, determine the preset angle threshold θ min ; Let the number of iterations f = 1; Randomly sample n1 points as the sampling point cloud at the fth iteration; Determine the centroid of the sampling point cloud at the fth iteration; Delete the centroid of the sampling point cloud at the f-th iteration to obtain the centroid-free sampling point cloud at the f-th iteration; The least square method is used to perform plane fitting on the de-centroided sampling point cloud at the f-th iteration to obtain the least square plane equation at the f-th iteration; Determine that the plane corresponding to the least squares plane equation is the fitting plane at the fth iteration; Determine that the angle between the fitting plane and the XOY coordinate plane at the f-th iteration is the first angle; Determine the point cloud data of the filtered point cloud data of the outer wall of the nearshore side of the ship except the sampled point cloud at the f-th iteration as the de-sampled point cloud at the f-th iteration; Determine the distance from each point in the desampled point cloud at the f-th iteration to the fitting plane at the f-th iteration as the second distance; Determine whether the condition of the outer wall plane equation of the nearshore side of the ship is met, and obtain a judgment result; the condition of the outer wall plane equation of the nearshore side of the ship is that the first angle at the fth iteration is less than the preset angle threshold θ min , and all second distances at the fth iteration are less than the distance threshold d max ; If the judgment result is no, the value of the iteration number f is increased by 1, and the process returns to the step "randomly sampling n1 points as the sampling point cloud at the f-th iteration" until the maximum iteration number is F, an error message is output, the current time is updated, and the process returns to the step "obtaining the millimeter-wave radar point cloud data of the berthing and unberthing vessels at the current time"; If the judgment result is yes, then the least square plane equation at the f-th iteration is determined to be the plane equation of the outer wall of the nearshore side of the ship.
9. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1, characterized in that: Based on the plane equation of the outer wall of the ship near the shore, the current position and attitude of the ship are determined, including: Determine the normal vector of the plane equation of the outer wall of the ship near the shore as the outer wall normal vector; Get the normal vector of the YOZ plane of the spatial rectangular coordinate system as the reference normal vector; Determine the cosine of a second angle according to the outer wall normal vector and the reference normal vector; the second angle is the angle between the outer wall plane on the nearshore side of the ship and the YOZ plane of the spatial rectangular coordinate system; According to the cosine of the second angle, the second angle is solved by using inverse trigonometric functions; Assume that the intersection point of the X-axis of the spatial rectangular coordinate system and the outer wall plane of the ship near the shore is (x0, 0, 0); Substituting the intersection point into the plane equation of the outer wall of the nearshore side of the ship to solve the horizontal coordinate of the intersection point; The absolute value of the horizontal coordinate of the intersection is determined as the straight-line distance from the center of the radar housing along the positive direction of the X-axis of the spatial rectangular coordinate system to the outer wall of the nearshore side of the ship; the second angle and the straight-line distance from the center of the radar housing along the positive direction of the X-axis of the spatial rectangular coordinate system to the outer wall of the nearshore side of the ship are used to express the position and posture of the ship at the current moment.
10. The all-weather berthing and unberthing ship position recognition method based on 4D millimeter wave radar according to claim 1, characterized in that: The plane equation of the outer wall of the ship near the shore is: ax+by+cz+d=0; Among them, a, b and c are the coefficients of the plane equation of the outer wall of the ship near the shore, d is the constant term of the plane equation of the outer wall of the ship near the shore, and x, y, z are the x-coordinate, y-coordinate and z-coordinate of the midpoint of the spatial rectangular coordinate system.
Citation Information
Cited By
Ship berthing and mooring integrated safety monitoring method and system
CN119044964A
