Method and system for positioning and correcting video data using seabed topography profile
The method of positioning and correcting video data through seabed topographic profiles uses the DTW dynamic time warping distance algorithm to calculate the profile similarity of seabed video data, which solves the problem of low positioning accuracy of seabed video data and achieves high-accuracy positioning correction.
Patent Information
- Application Number
- CN202111664024.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the existing seabed video data positioning technology, ultra-short baseline positioning has problems of low precision and low accuracy. In particular, due to error points and outliers caused by dynamic changes in the ocean environment and bending of sound rays, it is impossible to accurately locate seabed sulfide minerals. point.
The seabed topographic profile is used to position and correct the video data. By obtaining the original data of the water depth profile of the target survey line, performing equal-spaced migration and drawing the offset topographic profile, the DTW dynamic time warping distance optimization algorithm is used to calculate the profile similarity and select the similarity. The location of the highest offset terrain profile is used as the actual geographic location.
It achieves positioning correction that matches seafloor video data quickly and accurately, solves the limitations of the DTW algorithm in application, and improves positioning precision and accuracy.
Smart Images

Figure CN114299277B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of application of seabed solid mineral resources, and in particular to a method and system for positioning and correcting video data using seabed topographic profiles. Background Art
[0002] Near-bottom camera is one of the most effective detection methods for seafloor hydrothermal sulfide resource surveys, and the accuracy of the positioning of seafloor camera data is the basis for further in-depth sulfide surveys and research. Near-bottom camera data is generally collected near the seabed by a camera towed on a ship, and the positioning of the camera equipment is generally achieved with the help of an ultra-short baseline fixed on the near-bottom equipment. The ultra-short baseline measurement accuracy is high, but due to reasons such as the measurement environment, it will cause varying degrees of false data and erroneous data, or even missing data, which brings difficulties to camera positioning.
[0003] Some research has been conducted at home and abroad on the removal of outliers in ultra-short baseline data. Li Shoujun et al. (2008) proposed a fusion integration method based on Kalman filtering technology and realized inertial navigation and ultra-short baseline. Zhou Hongwei et al. (2016) developed an ultra-short baseline data post-processing software based on MATLAB program. The software first removes the acoustic transponder positioning jump point data, and then smoothes and filters the removed data to obtain a smooth curve. Shan Rui et al. (2019) processed the ultra-short baseline positioning data based on the robust adaptive Kalman filtering algorithm, filtered out the jump points in the positioning data, and obtained smoother filtered data that is consistent with the original data. MORGADO et al. (2006) proposed a data processing method that couples ultra-short baseline and inertial navigation and uses the Kalman filter operator. AUGENSTEIN et al. (2008) discussed the reasons for the generation of outliers and data loss in ultra-short baselines, and proposed a method of fusing GPS, DEL and ultra-short baselines to process data using inertial navigation. The current means of locating seabed video data is to use ultra-short baseline positioning, but this technology currently has the following problems:
[0004] (1) Due to the influence of factors such as the dynamic changes in the ocean environment, the calibration deviation of the measuring instrument installation, the reliability of peripheral equipment measurement, and the accuracy of sound velocity measurement and correction, ultra-short baseline positioning will have large gross errors and continuous abnormal errors.
[0005] (2) Since the ultra-short baseline positioning system is a type of underwater acoustic positioning technology, for the underwater acoustic positioning system, the uneven distribution of underwater sound speed will cause the sound line to bend, which will seriously affect the positioning accuracy of the system.
[0006] (3) The data obtained by the ultra-short baseline positioning system will have a large number of erroneous points and outliers, which will cause information dislocation in both time and space. Some survey lines cannot even find any method to achieve positioning by processing the ultra-short baseline data itself, making it impossible to correspond the surveyed video data with the actual geographical location, that is, it is impossible to accurately locate the sulfide mineral points obtained through video, which seriously affects the use and analysis of video data.
[0007] In summary, the current positioning of seabed video data using ultra-short baselines has problems such as low precision and low accuracy. How to overcome the above problems has become a technical issue that urgently needs to be solved in this field. Summary of the invention
[0008] The purpose of the present invention is to provide a method and system for positioning and correcting video data using seabed topography profiles, so as to improve the correction accuracy and precision.
[0009] To achieve the above object, the present invention provides a method for positioning and correcting video data using a seabed topography profile, the method comprising:
[0010] Step S1: Obtain the original data sequence a corresponding to the water depth profile of the target survey line;
[0011] Step S2: performing equal-interval offset on the target survey line water depth profile in the grid layer of the target area, so that all profiles generated after the offset traverse the grid layer of the target area, and obtaining each offset data sequence b corresponding to the target survey line water depth profile;
[0012] Step S3: With distance as the horizontal coordinate and elevation value as the vertical coordinate, batch draw the offset terrain profile based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line; multiple offset terrain profiles with an offset distance less than the set offset distance are called seabed terrain profiles;
[0013] Step S4: according to the original data sequence a and each migration data sequence b corresponding to the target survey line water depth profile, a DTW dynamic time warping distance optimization algorithm is used to calculate the profile similarity between the target survey line water depth profile and each migration terrain profile;
[0014] Step S5: Select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video survey line water depth profile.
[0015] Optionally, step S4 specifically includes:
[0016] Step S41: using the DTW dynamic time warping distance optimization algorithm to calculate the dynamic time curvature according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line;
[0017] Step S42: calculating the original distance between the two sequences according to the dynamic time curvature;
[0018] Step S43: Calculate the distance similarity between the two sequences according to the original distance between the two sequences;
[0019] Step S44: taking the original distance corresponding to the maximum distance similarity as the shortest distance, and the path corresponding to the shortest distance as the optimal path;
[0020] Step S45: Calculate the penalty coefficient based on the number of optimal path nodes and the length of each diagonal straight line when calculating the shortest distance;
[0021] Step S46: Calculate the profile similarity between the target survey line water depth profile and each offset terrain profile according to the penalty coefficient and the original distance between the two sequences.
[0022] Optionally, the DTW dynamic time warping distance optimization algorithm is used to calculate the dynamic time curvature according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line. The specific formula is:
[0023]
[0024] Where W(a,b) in D represents the dynamic time curvature, dist(a1,b1) represents the first non-zero data point in the profile data sequence, the min function is used to calculate the minimum distance sum between all data points except the first data point, m represents the length of the offset data sequence b, and n represents the length of the original data sequence a. In the min function, n and m both represent positive integers greater than 2.
[0025] Optionally, the penalty coefficient is calculated based on the number of optimal path nodes when calculating the shortest distance and the length of each diagonal straight line, and the specific formula is:
[0026]
[0027] Among them, comLen i It represents the length of the i-th diagonal straight line when calculating the shortest distance, seqLen represents the number of optimal path nodes when calculating the shortest distance, and α represents the penalty coefficient.
[0028] Optionally, the profile similarity between the target survey line water depth profile and each offset terrain profile is calculated according to the penalty coefficient and the original distance between the two sequences. The specific formula is:
[0029] up_distance=distance×α
[0030]
[0031] Among them, distance represents the original distance between the two sequences, α represents the penalty coefficient, and up_similarity represents the profile similarity between the water depth profile of the target survey line and each offset terrain profile.
[0032] The present invention also provides a system for positioning and correcting video data using a seabed topographic profile, the system comprising:
[0033] An acquisition module is used to acquire the original data sequence a corresponding to the water depth profile of the target survey line;
[0034] An offset module is used to perform equal-interval offset on the target survey line water depth profile in the grid layer of the target area, so that all profiles generated after the offset traverse the grid layer of the target area, and obtain each offset data sequence b corresponding to the target survey line water depth profile;
[0035] A drawing module is used to draw the offset terrain profile in batches based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line, with the distance as the horizontal coordinate and the elevation value as the vertical coordinate; a plurality of offset terrain profiles with an offset distance less than the set offset distance are called seabed terrain profiles;
[0036] A profile similarity calculation module is used to calculate the profile similarity between the target survey line water depth profile and each offset terrain profile using a DTW dynamic time warping distance optimization algorithm according to the original data sequence a and each offset data sequence b corresponding to the target survey line water depth profile;
[0037] The correction module is used to select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video measurement line water depth profile.
[0038] Optionally, the profile similarity calculation module specifically includes:
[0039] A dynamic time curvature calculation unit, used to calculate the dynamic time curvature according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line by using a DTW dynamic time curvature distance optimization algorithm;
[0040] An original distance calculation unit, used for calculating the original distance between two sequences according to the dynamic time curvature;
[0041] A distance similarity calculation unit, used for calculating the distance similarity between the two sequences according to the original distance between the two sequences;
[0042] An optimal distance determination unit, used to take the original distance corresponding to the maximum distance similarity as the shortest distance, and the path corresponding to the shortest distance as the optimal path;
[0043] A penalty coefficient calculation unit, used to calculate the penalty coefficient based on the number of optimal path nodes and the length of each diagonal straight line when calculating the shortest distance;
[0044] The surface similarity calculation unit is used to calculate the profile similarity between the water depth profile of the target survey line and each offset terrain profile according to the penalty coefficient and the original distance between the two sequences.
[0045] Optionally, the DTW dynamic time warping distance optimization algorithm is used to calculate the dynamic time curvature according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line. The specific formula is:
[0046]
[0047] Where W(a,b) in D represents the dynamic time curvature, dist(a1,n1) represents the first non-zero data point in the profile data sequence, the min function is used to calculate the minimum distance sum between all data points except the first data point, m represents the length of the offset data sequence b, and n represents the length of the original data sequence a. In the min function, n and m both represent positive integers greater than 2.
[0048] Optionally, the penalty coefficient is calculated based on the number of optimal path nodes when calculating the shortest distance and the length of each diagonal straight line, and the specific formula is:
[0049]
[0050] Among them, comLen i It represents the length of the i-th diagonal straight line when calculating the shortest distance, seqLen represents the number of optimal path nodes when calculating the shortest distance, and α represents the penalty coefficient.
[0051] Optionally, the profile similarity between the target survey line water depth profile and each offset terrain profile is calculated according to the penalty coefficient and the original distance between the two sequences. The specific formula is:
[0052] up_distance=distance×α
[0053]
[0054] Among them, distance represents the original distance between the two sequences, α represents the penalty coefficient, and up_similarity represents the profile similarity between the water depth profile of the target survey line and each offset terrain profile.
[0055] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0056] The scheme disclosed in the present invention does not need to use the data obtained by the ultra-short baseline positioning system. It only needs to obtain the original data sequence corresponding to the water depth profile of the target survey line to batch extract and draw the offset terrain profile at a certain interval in the target area, improve the DTW (Dynamic Time Warping) dynamic time bending distance algorithm, and use the improved algorithm to batch calculate the similarity between the extracted offset terrain profile and the target profile, and finally achieve the purpose of being able to quickly and accurately match the terrain profile with the highest similarity to the target terrain profile in the target area, and realize the purpose of positioning and correcting the seabed video data. In addition, in the process of positioning and correction, the limitations of the original DTW algorithm in the application of this field are solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] 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 labor.
[0058] Figure 1 This is a flow chart of the method for positioning and correcting video data using a seabed topographic profile according to the present invention;
[0059] Figure 2 This is an example diagram of pathological matching of the present invention;
[0060] Figure 3 This is a schematic diagram of the matching of two sequences of the present invention;
[0061] Figure 4 This is a structural diagram of the system for positioning and correcting video data using seabed topographic profiles of the present invention;
[0062] Figure 5 It is a schematic diagram of the target line elements and target area of the present invention;
[0063] Figure 6 A schematic diagram of a topographic profile of a target area traversed by the present invention;
[0064] Figure 7 This is a schematic diagram of the comparison between the target survey line, the corrected survey line position and its profile. DETAILED DESCRIPTION
[0065] 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.
[0066] The purpose of the present invention is to provide a method and system for positioning and correcting video data using seabed topography profiles, so as to improve the correction accuracy and precision.
[0067] 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.
[0068] The research idea is: when conducting actual seabed resource survey operations, the camera tow body obtains visual data such as high-definition photos and video materials of the seabed by towing operations near the seabed. A temperature, salinity and depth sensor will be bound to the camera tow body at the same time, so that the real-time water depth data of the camera tow body can be obtained. In actual operation tasks, the tow body is required to maintain a certain speed and move along the set survey line, so the speed and heading of the camera tow body can be determined, and the trajectory of the tow body is basically similar to the driving trajectory of the mother ship. Since the driving trajectory of the mother ship is known, the direction and length of the camera tow body during operation can be known. In addition, through the temperature, salinity and depth sensor bound to the camera tow body, its continuous water depth data while traveling can be obtained, that is, the water depth profile of the video survey line of the camera tow body. Finally, as many terrain profiles as possible with the same travel direction and length as the camera towed body are extracted from the high-precision terrain data of the target area, and the obtained massive terrain profiles are matched with the water depth profile of the video survey line through the DTW dynamic time warping distance algorithm. The geographical location of the offset terrain profile with the highest similarity to the water depth profile when the camera towed body is moving in the target area is found, and the camera towed body can be positioned and corrected.
[0069] Example 1
[0070] like Figure 1 As shown, the present invention discloses a method for positioning and correcting video data using a seabed topographic profile, the method comprising:
[0071] Step S1: Obtain the original data sequence a corresponding to the water depth profile of the target survey line.
[0072] Step S2: performing equal-interval offset on the target survey line water depth profile in the grid layer of the target area, so that all profiles generated after the offset traverse the grid layer of the target area, and obtaining offset data sequences b corresponding to the target survey line water depth profile.
[0073] Step S3: With distance as the horizontal coordinate and elevation value as the vertical coordinate, batch draw the offset terrain profile based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line; multiple offset terrain profiles with an offset distance less than the set offset distance are called seabed terrain profiles.
[0074] Step S4: According to the original data sequence a and each migration data sequence b corresponding to the target survey line water depth profile, a DTW dynamic time warping distance optimization algorithm is used to calculate the profile similarity between the target survey line water depth profile and each migration terrain profile.
[0075] Step S5: Select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video survey line water depth profile.
[0076] The following is a detailed discussion of each step:
[0077] Step S1: Obtain the original data sequence a corresponding to the water depth profile of the target survey line, where a = (a1, a2, ... a i ,…a n ), length is n, n is a positive integer greater than 2, a i Represents the original data corresponding to the water depth profile of the ith target survey line; the data corresponding to the water depth profile of the target survey line includes the longitude, latitude and elevation information of each grid in the entire target survey line.
[0078] In this embodiment, the da.UpdateCursor function of the arcpy toolkit is used to read the data corresponding to the water depth profile of the target survey line, thereby forming an original data sequence corresponding to the water depth profile of the target survey line.
[0079] Step S2: The target survey line water depth profile is offset at equal intervals in the grid layer of the target area, so that all profiles generated after the offset traverse the grid layer of the target area, and each offset data sequence b corresponding to the target survey line water depth profile is obtained, where b = (b1, b2, ... b j ,…b m ), length is m, m is a positive integer greater than 2, b j Represents the offset data corresponding to the depth profile of each target survey line. The offset data corresponding to the depth profile of each target survey line includes FIRST_DIST value and FIRST_Z value, where FIRST_DIST value is the Euclidean distance of each point of the offset profile from the starting point of the offset profile, and FIRST_Z value is the elevation value after offset, which is obtained by combining the position of the target area where the offset profile is located with the original raster data. The raster layer of the target area is drawn from the original raster data of multiple target areas, and the original raster data of the target area includes the latitude, longitude and elevation information of each raster in the target area.
[0080] In this embodiment, the Describe function and Raster function of the arcpy toolkit are used to obtain the length range of the water depth profile of the target survey line to be corrected in the x and y directions and the grid range of the target area, and then the floor function of the math toolkit is used to calculate the maximum number of offsets of the water depth profile of the target survey line in the four directions of east, west, south and north within the target area, and batch offset is performed. The Array function of the arcpy toolkit is used to record all the profile coordinates after offset as a coordinate array, the Polyline function of the arcpy toolkit is used to convert the coordinate array into a Polyline class that can be recognized by the arcpy toolkit, and finally the loop statement and the CopyFeatures_management function of the arcpy toolkit are used to batch export the raster data of the offset profile (i.e., each offset data sequence b corresponding to the water depth profile of the target survey line).
[0081] The present invention performs an offset operation of the water depth profile of the target survey line to traverse the target area, which is the first task to be performed for terrain profile matching. The smaller the interval between the offset profiles, the more comprehensive the coverage of the target area, and the more accurate the matching result of the terrain profile. After that, each offset profile is densified along its overlapping profile targets by introducing new turning points along the line to capture the profile features. The elevation, distance and other information about the profile targets input along this densification method are stored together in an output table of csv type as a data source for drawing terrain profiles and calculating the similarity of terrain profiles.
[0082] Step S3: With distance as the horizontal coordinate and elevation value as the vertical coordinate, batch draw the offset terrain profile based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line.
[0083] In this embodiment, the StackProfile_3d function of the arcpy toolkit and the loop statement are used to batch output and store the offset data sequences b corresponding to the water depth profile of the target survey line into an output table of the csv type. The read_csv function of the pandas toolkit is used to read the offset data corresponding to the water depth profile of each target survey line in the output table, and then the loop statement and the pylab toolkit are used to batch draw the offset terrain profile and store it in a specified folder. Multiple offset terrain profiles are called seabed terrain profiles.
[0084] Step S4: According to the original data sequence a and each migration data sequence b corresponding to the target survey line water depth profile, a DTW dynamic time warping distance optimization algorithm is used to calculate the profile similarity between the target survey line water depth profile and each migration terrain profile.
[0085] Since the terrain profile is essentially a broken line composed of n point coordinates (FIRST_DIST, FIRST_Z) in the sequence, in order to calculate the similarity between the water depth profile of the target survey line and the offset terrain profile obtained after batch migration, Python can be used to call numpy and math tools to first calculate the similarity distance between them, and then calculate the similarity between them through the similarity distance. The specific calculation process of the present invention is as follows:
[0086] Step S41: using the DTW dynamic time warping distance optimization algorithm, the dynamic time curvature is calculated according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line. The specific formula is:
[0087]
[0088] Where W(a,b) in D represents the dynamic time curvature, dist(a1,b1) represents the first non-zero data point in the profile data sequence, the min function is used to calculate the minimum distance sum between all data points except the first data point, m represents the length of the offset data sequence b, and n represents the length of the original data sequence a. In the min function, n and m both represent positive integers greater than 2.
[0089] Step S42: Calculate the original distance between the two sequences according to the dynamic time curvature. The specific formula is:
[0090] distance = W(a,b) in D
[0091] Among them, distance represents the original distance between two sequences.
[0092] Step S43: Calculate the distance similarity between the two sequences based on the original distance between the two sequences. The specific formula is:
[0093]
[0094] Among them, similarity represents the distance similarity between two sequences.
[0095] Step S44: the original distance corresponding to the maximum distance similarity is taken as the shortest distance, and the path corresponding to the shortest distance is taken as the optimal path.
[0096] In the process of terrain profile sequence similarity matching calculation based on Python's DTW algorithm, some terrain profile data sequences have periodic fluctuation characteristics, and the monotonic advancement rate of their curves is inconsistent. This will cause the path direction to be adjusted multiple times in order to maintain short-term monotonicity during the calculation of the above algorithm, which will cause the "pathological matching" phenomenon of inconsistent peaks and troughs when calculating the distance of the terrain profile sequence.
[0097] by Figure 2 For example, since the distance between the two terrain profile sequences at the position indicated by the dotted circle is too large, the original distance between the two sequences is increased, which will lead to the phenomenon of "pathological matching" in the matching process. If the curve is moved forward or backward appropriately, the regional trends can be satisfied, thereby eliminating the influence of "pathological matching" on the similarity. Since the longer the longest common substring of the two sequences, the smaller the deviation, the smaller the amplitude required for adjustment. Therefore, the present invention defines a penalty coefficient α to adjust the original algorithm. The length of each diagonal straight line is as follows: Figure 3 Middle slash.
[0098] Step S45: Calculate the penalty coefficient based on the number of optimal path nodes when calculating the shortest distance and the length of each diagonal straight line. The specific formula is:
[0099]
[0100] Among them, comLen i It represents the length of the i-th diagonal straight line when calculating the shortest distance, seqLen represents the number of optimal path nodes when calculating the shortest distance, and α represents the penalty coefficient.
[0101] Step S46: Calculate the profile similarity (i.e. improved similarity) between the target survey line water depth profile and each offset terrain profile according to the penalty coefficient and the original distance between the two sequences. The specific formula is:
[0102] up_distance=distance×α
[0103]
[0104] Among them, distance represents the original distance between the two sequences, α represents the penalty coefficient, and up_similarity represents the profile similarity between the water depth profile of the target survey line and each offset terrain profile.
[0105] Step S5: Select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video line depth profile. In this embodiment, Python is used to sort the profile similarities between the target line depth profile and each offset terrain profile, and the terrain profile with the highest similarity to the target line depth profile in the target area is matched, so as to achieve the purpose of positioning and correcting the video line depth profile.
[0106] The calculation and matching of similarity between terrain profile sequences is the key link of the present invention. The similarity between terrain profile sequences is calculated by selecting the DTW dynamic time warping distance algorithm suitable for terrain profile matching. In the process of calculation, the limitations of the original DTW algorithm in the application of this field were found. The algorithm was improved to solve the problem that "some terrain profile data sequences have periodic fluctuation characteristics, and the monotonic advancement rate of their curves is inconsistent, which leads to incorrect matching." The present invention conducts a more detailed study on the measurement of data sequence similarity, and carries out a comprehensive solution for batch terrain profile matching based on python, and finally achieves matching of the terrain profile with the highest similarity to the water depth profile of the target survey line in the target area, that is, achieving the purpose of positioning and correcting the seabed video data.
[0107] Example 2
[0108] like Figure 4 As shown, the present invention also provides a system for positioning and correcting video data using a seabed topographic profile, the system comprising:
[0109] The acquisition module 401 is used to acquire the original data sequence a corresponding to the water depth profile of the target survey line.
[0110] The migration module 402 is used to perform equal-interval migration on the target survey line water depth profile in the grid layer of the target area, so that all profiles generated after the migration traverse the grid layer of the target area, and obtain each migration data sequence b corresponding to the target survey line water depth profile.
[0111] The drawing module 403 is used to draw the offset terrain profiles in batches based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line, with distance as the horizontal coordinate and elevation value as the vertical coordinate; multiple offset terrain profiles with an offset distance less than the set offset distance are called seabed terrain profiles.
[0112] The profile similarity calculation module 404 is used to calculate the profile similarity between the target survey line water depth profile and each offset terrain profile using the DTW dynamic time warping distance optimization algorithm according to the original data sequence a and each offset data sequence b corresponding to the target survey line water depth profile.
[0113] The correction module 405 is used to select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video measurement line water depth profile.
[0114] As an optional implementation, the profile similarity calculation module 404 of the present invention specifically includes:
[0115] The dynamic time curvature calculation unit is used to calculate the dynamic time curvature according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line by adopting the DTW dynamic time curvature distance optimization algorithm.
[0116] The original distance calculation unit is used to calculate the original distance between two sequences according to the dynamic time curvature.
[0117] The distance similarity calculation unit is used to calculate the distance similarity between the two sequences according to the original distance between the two sequences.
[0118] The optimal distance determination unit is used to take the original distance corresponding to the maximum distance similarity as the shortest distance, and the path corresponding to the shortest distance as the optimal path.
[0119] The penalty coefficient calculation unit is used to calculate the penalty coefficient based on the number of optimal path nodes and the length of each diagonal straight line when calculating the shortest distance.
[0120] The surface similarity calculation unit is used to calculate the profile similarity between the water depth profile of the target survey line and each offset terrain profile according to the penalty coefficient and the original distance between the two sequences.
[0121] The same formulas as those in Example 1 are not repeated here one by one.
[0122] Example 3
[0123] Before performing positioning correction on the seafloor visual depth profile, first check the properties of the original data. Figure 5 As shown, the original data (AUV high-precision terrain data of the study area) tag20marea used in the present invention has a data accuracy of 1m×1m, GRID raster format, a data range of 26.1788306731~26.1291175383, -44.834999084~-44.799911499, spatial reference coordinate system GCS_WGS_1984, and datum surface D_WGS_1984. The target line element (target survey line water depth profile) data line has a range of 26.170278~26.164633, -44.829083~-44.824617, Shapefile spatial data type, geographic coordinate system GCS_WGS_1984, and datum surface D_WGS_1984.
[0124] Step S1: In the target area tag20marea, the target line elements line are batch offset at intervals of 10 meters in the east, west, south and north directions, such as Figure 6 As shown, (a) is a schematic diagram of the section position after partial migration; (b) is a topographic section after partial migration; (c) is a schematic diagram of the contour lines of the target area. After migration, 186,526 offset topographic sections are obtained, named offLines_merge, Shapefile spatial data type, geographic coordinate system GCS_WGS_1984, and datum D_WGS_1984.
[0125] Step S2: Batch read and save the data of the migrated profile. Since the arcpy toolkit itself has an upper limit on the amount of data for batch reading of terrain profiles, the step size is set to 10000, that is, the terrain profiles are read and saved in batches. After the data is read, the data of 186526 profiles are saved in the offLines.csv file.
[0126] Step S3: batch draw depth-shifted terrain profiles. Read the terrain profile data saved in step S2 and batch draw the offset terrain profiles. Name the 186,526 terrain profiles drawn with "profile_profile number" and save them as 186,256 png image files.
[0127] Step S4: The similarity between the migrated terrain profile sequence and the target profile sequence is calculated in batches using the DTW dynamic time warping distance optimization algorithm in Python. The improved algorithm is used to batch calculate the similarity between the 186,526 terrain profile sequences after migration and the target terrain profile sequence, and the calculation results of the similarity are stored in the DTWresult.csv file, as shown in Table 1.
[0128] Table 1 Terrain profile similarity matching results
[0129]
[0130]
[0131] Step S5: Sort the calculated similarities in descending order, and the result shows that the similarity between the terrain profile sequence at the location of line element line_96492 and the target terrain profile sequence is 90.703%. After calculation, the profile sequence has the highest similarity with the target terrain profile (i.e., the water depth profile of the video survey line) in the target area, that is, the actual geographical location of the water depth terrain profile should be the geographical location of profile line_96492, and finally the positioning correction of the seabed video data is realized. Figure 7The target survey line, the corrected survey line position and the schematic diagram of profile comparison are given.
[0132] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0133] 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 positioning and correcting video data using a seabed topography profile, characterized in that: The method comprises: Step S1: Obtain the original data sequence a corresponding to the water depth profile of the target survey line; Step S2: performing equal-interval offset on the target survey line water depth profile in the grid layer of the target area, so that all profiles generated after the offset traverse the grid layer of the target area, and obtaining each offset data sequence b corresponding to the target survey line water depth profile; Step S3: With distance as the horizontal coordinate and elevation value as the vertical coordinate, batch draw the offset terrain profile based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line; multiple offset terrain profiles with an offset distance less than the set offset distance are called seabed terrain profiles; Step S4: according to the original data sequence a and each migration data sequence b corresponding to the target survey line water depth profile, a DTW dynamic time warping distance optimization algorithm is used to calculate the profile similarity between the target survey line water depth profile and each migration terrain profile; Step S4 specifically includes: Step S41: using the DTW dynamic time warping distance optimization algorithm, the dynamic time curvature is calculated according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line. The specific formula is: Wherein, DTW(a,b) represents dynamic time curvature, dist(a1,b1) represents the first non-zero point on the profile data sequence, the min function is used to calculate the minimum distance sum between all data points except the first data point, m represents the length of the offset data sequence b, n represents the length of the original data sequence a, and in the min function, n and m both represent positive integers greater than 2; Step S42: calculating the original distance between the two sequences according to the dynamic time curvature; Step S43: Calculate the distance similarity between the two sequences according to the original distance between the two sequences; Step S44: taking the original distance corresponding to the maximum distance similarity as the shortest distance, and the path corresponding to the shortest distance as the optimal path; Step S45: Calculate the penalty coefficient based on the number of optimal path nodes when calculating the shortest distance and the length of each diagonal straight line. The specific formula is: Among them, comLen i It represents the length of the i-th diagonal straight line when calculating the shortest distance, seqLen represents the number of optimal path nodes when calculating the shortest distance, and α represents the penalty coefficient; Step S46: Calculate the profile similarity between the target survey line water depth profile and each offset terrain profile based on the penalty coefficient and the original distance between the two sequences. The specific formula is: up_distance=distance×α Among them, distance represents the original distance between the two sequences, α represents the penalty coefficient, and up_similarity represents the profile similarity between the water depth profile of the target survey line and each offset terrain profile; Step S5: Select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video survey line depth profile.
2. A system for positioning and correcting video data using seabed topography profiles, characterized in that: The system comprises: An acquisition module is used to acquire the original data sequence a corresponding to the water depth profile of the target survey line; An offset module is used to perform equal-interval offset on the target survey line water depth profile in the grid layer of the target area, so that all profiles generated after the offset traverse the grid layer of the target area, and obtain each offset data sequence b corresponding to the target survey line water depth profile; A drawing module is used to draw the offset terrain profile in batches based on the offset data in each offset data sequence b corresponding to the water depth profile of the target survey line, with the distance as the horizontal coordinate and the elevation value as the vertical coordinate; a plurality of offset terrain profiles with an offset distance less than the set offset distance are called seabed terrain profiles; A profile similarity calculation module is used to calculate the profile similarity between the target survey line water depth profile and each offset terrain profile using a DTW dynamic time warping distance optimization algorithm according to the original data sequence a and each offset data sequence b corresponding to the target survey line water depth profile; The profile similarity calculation module specifically includes: The dynamic time curvature calculation unit is used to calculate the dynamic time curvature according to the original data sequence a and each offset data sequence b corresponding to the water depth profile of the target survey line by using the DTW dynamic time curvature distance optimization algorithm. The specific formula is: Wherein, DTW(a,b) represents dynamic time curvature, dist(a1,b1) represents the first non-zero point on the profile data sequence, the min function is used to calculate the minimum distance sum between all data points except the first data point, m represents the length of the offset data sequence b, n represents the length of the original data sequence a, and in the min function, n and m both represent positive integers greater than 2; An original distance calculation unit, used for calculating the original distance between two sequences according to the dynamic time curvature; A distance similarity calculation unit, used for calculating the distance similarity between the two sequences according to the original distance between the two sequences; An optimal distance determination unit, used to take the original distance corresponding to the maximum distance similarity as the shortest distance, and the path corresponding to the shortest distance as the optimal path; The penalty coefficient calculation unit is used to calculate the penalty coefficient based on the number of optimal path nodes and the length of each diagonal straight line when calculating the shortest distance. The specific formula is: Among them, comLen i It represents the length of the i-th diagonal straight line when calculating the shortest distance, seqLen represents the number of optimal path nodes when calculating the shortest distance, and α represents the penalty coefficient; The surface similarity calculation unit is used to calculate the profile similarity between the target survey line water depth profile and each offset terrain profile according to the penalty coefficient and the original distance between the two sequences. The specific formula is: up_distance=distance×α Among them, distance represents the original distance between the two sequences, α represents the penalty coefficient, and up_similarity represents the profile similarity between the water depth profile of the target survey line and each offset terrain profile; The correction module is used to select the geographical location of the offset terrain profile with the largest profile similarity as the actual geographical location of the seabed video measurement line water depth profile.
Citation Information
Patent Citations
Underwater node positioning method oriented to sound velocity profile
CN109031314A
Seabed hydrothermal sulfide resource evaluation and prediction method based on multi-index comprehensive elements
CN110717618A
