Adaptive variable window filtering method, system and device for single-beam bathymetric data
By using an adaptive variable window filtering method and a median deviation median algorithm, the window size is dynamically adjusted, which solves the terrain distortion problem of fixed window filtering technology in steep terrain areas and achieves high-precision filtering and feature preservation of underwater terrain.
Patent Information
- Application Number
- CN202611313630.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing fixed-window filtering techniques in steep terrain areas can cause excessive smoothing of abrupt changes in the actual terrain due to the excessively large window span, resulting in terrain distortion after filtering.
An adaptive variable window filtering method is adopted to dynamically adjust the sliding window size according to the local terrain slope, and combined with a robust filtering algorithm based on the median and the median deviation, outliers are identified and corrected to ensure that terrain features are not distorted.
This improves the universality and accuracy of the filtering method for different underwater terrains, maintains the authenticity of underwater micro-topography and terrain features, and enhances the reliability and terrain fidelity of the filtering results.
Smart Images

Figure CN123175229A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of underwater topographic surveying technology, and in particular to an adaptive variable window filtering method, system and equipment for single-beam bathymetry data. Background Technology
[0002] Unmanned surface vessel (USV) single-beam echo sounding technology is widely used in underwater topographic surveying scenarios such as inland waterways, nearshore topography, and reservoir siltation monitoring. However, due to the influence of water bubbles, vessel vibration, momentary instrument malfunctions, and environmental clutter, the depth sequences acquired by the echo sounder often contain anomalous jumps that deviate from the true depth. If these anomalous values are not filtered, they will directly affect the accuracy of underwater topographic mapping and subsequent engineering assessments.
[0003] Currently, existing technologies use fixed-window sliding filtering combined with the MAD robust estimation algorithm to filter water depth sequences. The MAD robust estimation algorithm relies on the median and robust standard deviation to identify outliers. When the center measurement point of the window is identified as an outlier, it is corrected; otherwise, the original value is retained, thus possessing a certain degree of anti-interference capability.
[0004] However, the aforementioned existing technology uses a fixed 7-point window, whose span remains constant under all terrain conditions. But when the survey line passes through areas with dense reefs, steep terrain, or undulating gullies, the excessively large fixed window may cross the actual terrain change points, which may misjudge the original steep slopes, cliffs, or reef boundaries as noise and smooth them out, resulting in distortion of underwater micro-topography and terrain change features. Summary of the Invention
[0005] This invention provides an adaptive variable window filtering method, system, and device for single-beam bathymetry data, which can solve the problem that existing fixed window filtering technology in steep terrain areas causes excessive smoothing of abrupt changes in the real terrain due to the excessively large window span, resulting in terrain distortion after filtering.
[0006] This invention provides an adaptive variable window filtering method for single-beam bathymetry data, comprising: Obtain the original water depth sequence measured along the track by an unmanned surface vessel single-beam echo sounder; The local topographic slope of the current measuring point is determined based on the original water depth sequence, and the sliding window size corresponding to the current measuring point is determined based on the local topographic slope and the preset slope threshold. The current water depth sequence is determined from the original water depth sequence based on the sliding window size. The current water depth sequence is then filtered to obtain the filtered water depth value of the current measuring point. The target water depth sequence is obtained by integrating the filtered water depth values from all measuring points.
[0007] The adaptive variable window filtering method for single-beam bathymetry data provided in this invention adaptively determines the sliding window size based on the local terrain slope, enabling the filtering window to dynamically adjust with the complexity of the underwater terrain. This solves the problem that existing fixed window techniques cannot dynamically balance noise reduction and terrain fidelity based on the complexity of the underwater terrain. Thus, while effectively removing outliers from the bathymetry data, it maintains the topographic features of underwater micro-topography, cliffs, and reef boundaries without distortion, improving the universality and accuracy of the filtering method for different underwater terrains, and thereby improving the terrain fidelity accuracy.
[0008] Furthermore, based on the local terrain slope and a preset slope threshold, the sliding window size corresponding to the current measuring point is determined, specifically as follows: Obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window. When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
[0009] This approach, by presetting two levels of slope thresholds, constructs a three-level variable window filtering system with 3, 5, and 7 points. The sliding window size automatically switches according to the terrain slope: a large 7-point window is used when the slope is less than the first threshold to enhance robustness; a medium 5-point window is used when the slope is between the two thresholds to balance noise reduction and shape preservation; and a small 3-point window is used when the slope is greater than the second threshold to retain terrain details. The three window levels are adapted to three types of underwater terrain: flat, slightly undulating, and steep reefs. In flat areas, a large window enhances noise suppression, while in steep areas, a small window preserves realistic terrain changes, achieving an adaptive balance between noise reduction and terrain fidelity. This solves the problems of poor universality and severe terrain distortion inherent in existing fixed-window technologies.
[0010] Furthermore, the current water depth sequence is filtered, specifically as follows: The window size is calculated based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window at each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; The discrimination threshold is determined based on the median deviation and the preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
[0011] This robust filtering method, based on the median and median deviation, uses the median within the window to reflect the central trend of the water depth data, and the median deviation to measure the dispersion of the data within the window, thereby determining the discrimination threshold. Since the median itself is unaffected by extreme values, this filtering approach effectively resists interference from isolated gross errors, avoiding threshold shifts caused by individual outliers. This further improves the accuracy of gross error identification and the reliability of the filtering results based on the adaptive variable window.
[0012] Furthermore, the filtered water depth value at the current measuring point is obtained, specifically: Calculate the difference between the current water depth and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
[0013] By calculating the difference between the current depth value at the measuring point and the median value within the window, and comparing this difference with a discrimination threshold, isolated gross errors in the depth measurement sequence can be accurately identified. Specifically, if the difference exceeds the discrimination threshold, the current measuring point is determined to be a gross error and corrected using the median value within the window; if the difference does not exceed the discrimination threshold, the original depth value is retained. This discrimination mechanism is simple and efficient, effectively eliminating abnormal depth values caused by water bubbles, ship vibration, momentary instrument malfunctions, or environmental clutter while preserving true topographic features, thus improving the reliability of the filtered depth data.
[0014] Furthermore, the method also includes: For each sliding window size, when the range of measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, the sliding window is reduced so that the range of measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0015] This approach, by performing boundary out-of-bounds checks on the adaptive window for each measuring point, automatically reduces the effective window range when the window exceeds the beginning or end of the data sequence. This ensures that the sliding window boundary does not exceed the original water depth sequence, guaranteeing that all measuring points in the beginning and end regions of the data can complete the filtering calculation. It avoids algorithm anomalies or the discarding of boundary data due to array out-of-bounds errors. Furthermore, this boundary window shrinking process, combined with the adaptive window size, allows for flexible adjustment of the effective window in the beginning and end regions based on the actual number of available measuring points. This solves the problems of low accuracy and data distortion in the boundary processing of traditional fixed-window algorithms, improving the reliability and terrain fidelity of the filtering results in the boundary regions.
[0016] Furthermore, the local topographic slope of the current measuring point is determined based on the original water depth sequence, specifically as follows: The water depth difference between the current measuring point and the adjacent measuring points before and after it is determined based on the original water depth sequence, as well as the horizontal distance between the adjacent measuring points before and after it. The local terrain slope is calculated based on the difference in water depth and the horizontal distance.
[0017] This method calculates the local terrain slope by dividing the difference in water depth between adjacent measuring points by the corresponding horizontal distance. The calculation is simple and efficient, quickly reflecting the degree of terrain undulation at the current measuring point. The slope calculation result is directly used for the adaptive selection of the sliding window size, ensuring that the window size can be adjusted in real time according to changes in terrain complexity, providing a reliable data foundation for variable window filtering.
[0018] Furthermore, after acquiring the raw water depth sequence measured along the track by the unmanned surface vessel's single-beam echo sounder, the method also includes: The original water depth sequence is sorted in ascending order by track mileage to obtain water depth data.
[0019] By sorting the original water depth sequence in ascending order by track mileage, the water depth measuring points are ensured to be distributed in an orderly manner along the track direction. This allows the sliding window to correctly select adjacent measuring points before and after the current measuring point as it moves along the track. This ensures that subsequent slope calculations and window filtering are based on the correct spatial adjacency relationship, avoiding the impact on the accuracy of the filtering results due to spatial discontinuity of measuring points within the window caused by disordered data order.
[0020] Another embodiment of the present invention provides an adaptive variable window filtering system for single-beam bathymetry data, comprising: a data acquisition module, a window determination module, a filtering processing module, and an integrated output module; The data acquisition module is used to acquire the raw water depth sequence measured by the unmanned vessel single-beam echo sounder along the track; The window determination module is used to determine the local terrain slope of the current measuring point based on the original water depth sequence, and to determine the sliding window size corresponding to the current measuring point based on the local terrain slope and the preset slope threshold. The filtering module is used to determine the current water depth sequence from the original water depth sequence based on the sliding window size, and to filter the current water depth sequence to obtain the filtered water depth value of the current measuring point. The integrated output module is used to integrate the filtered water depth values from all measuring points to obtain the target water depth sequence.
[0021] Furthermore, the system also includes a boundary processing module; The boundary processing module is used to reduce the sliding window size for each sliding window when the range of the measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, so that the range of the measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0022] Another embodiment of the present invention provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the steps of the adaptive variable window filtering method for single-beam bathymetry data as described in the present invention. Attached Figure Description
[0023] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0024] Figure 1 This is a flowchart illustrating an adaptive variable window filtering method for single-beam bathymetry data provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of an adaptive variable window filtering system for single-beam depth sounding data provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of another adaptive variable window filtering system for single-beam depth sounding data provided in an embodiment of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0027] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0028] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0029] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0030] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0031] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0032] See Figure 1 To address the problem that existing fixed-window filtering techniques in steep terrain areas over-smooth the abrupt changes in terrain due to excessively large window spans, resulting in terrain distortion after filtering, an embodiment of this invention provides an adaptive variable-window filtering method for single-beam bathymetry data, comprising: Step 101: Obtain the original water depth sequence measured by the unmanned surface vessel single beam echo sounder along the track.
[0033] In this step, the unmanned surface vessel (USV) is equipped with a single-beam echo sounder that travels along a preset track. During the journey, water depth data is continuously measured according to a set sampling frequency or sampling interval to obtain a one-dimensional original water depth sequence distributed along the track. This sequence contains the water depth value of each measuring point and its corresponding track position information.
[0034] As an example of an embodiment of the present invention, after obtaining the original water depth sequence measured along the track by an unmanned surface vessel single-beam echo sounder, the method further includes: The original water depth sequence is sorted in ascending order by track mileage to obtain water depth data.
[0035] It should be noted that, due to the possibility of unmanned vessels turning, changing direction, or detouring during actual operations, the original collected data may not be monotonically increasing along the track in chronological order. This embodiment corrects the original water depth sequence into an ordered water depth dataset along the track direction by sorting the data in ascending order by track mileage. This ensures that the sliding window always captures spatially adjacent measurement points as it moves along the track, avoiding spatial discontinuity of measurement points within the window due to data order disorder. This provides a reliable data foundation for the correct calculation of local terrain slope and the accurate execution of sliding window filtering.
[0036] In this embodiment, the track mileage information corresponding to each depth measuring point in the original depth sequence is extracted. The track mileage information is used to characterize the cumulative distance of the measuring point from the starting point along the track direction. Using the track mileage as the sorting key, a sorting algorithm is used to rearrange all depth measuring points in ascending order of track mileage, and the depth value of each measuring point moves synchronously with its corresponding track mileage information.
[0037] Step 102: Determine the local topographic slope of the current measuring point based on the original water depth sequence, and determine the sliding window size corresponding to the current measuring point based on the local topographic slope and the preset slope threshold.
[0038] In this step, based on the water depth changes of neighboring measuring points around the current measuring point in the original water depth sequence, the local terrain slope at the current measuring point is calculated. In this step, the calculation method of the local terrain slope is not limited. For example, one, two or more points can be taken before and after the current measuring point for calculation, or a fitting method can be used, as long as it can reflect the degree of terrain undulation at the current measuring point. The local terrain slope is compared with one or more pre-set slope thresholds. Based on the comparison result, one of multiple predefined window sizes is selected as the sliding window size corresponding to the current measuring point, and the larger the slope, the smaller the window.
[0039] Step 103: Determine the current water depth sequence from the original water depth sequence based on the sliding window size, and perform filtering on the current water depth sequence to obtain the filtered water depth value of the current measuring point.
[0040] In this step, taking the current measuring point as the center, a certain number of adjacent measuring points are selected before and after the original water depth sequence. This number is determined by the sliding window size determined in step 102, thus forming the current water depth sequence corresponding to the current measuring point. This current water depth sequence is then processed using a filtering algorithm. The specific filtering algorithm in this step is not limited; it can be, for example, MAD robust estimation, median filtering, mean filtering, or other filtering methods, as long as it can process the data within the window and determine whether the current measuring point is abnormal. Based on the distribution of water depth values at each measuring point in the current water depth sequence, it is determined whether the water depth value of the current measuring point is an outlier. In this step, the criteria for determining anomalies are not limited; they can be based on, for example, the median, mean, standard deviation, or other statistical measures, as long as outliers can be identified. If an outlier is found, it is corrected; otherwise, the original value is retained, resulting in the filtered water depth value of the current measuring point. In this step, the correction method is not limited; it can be, for example, replaced with the median, mean, or other values, as long as it can correct the outlier.
[0041] Step 104: Integrate the filtered water depth values from all measuring points to obtain the target water depth sequence.
[0042] In this step, the filtered water depth values obtained after filtering each measuring point are combined according to the original order of each measuring point in the original water depth sequence or the order of the track mileage to form a complete filtered water depth sequence, which is output as the target water depth sequence for subsequent underwater topographic mapping or other applications.
[0043] As an example of an embodiment of the present invention, the sliding window size corresponding to the current measuring point is determined based on the local terrain slope and a preset slope threshold, specifically as follows: Obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window. When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
[0044] In this embodiment, based on engineering experience, a slope of around 8 degrees is considered flat, and around 20 degrees is considered steep. Based on this experience, this embodiment presets two slope thresholds according to the tangent value of these degrees: a first threshold of 0.15 and a second threshold of 0.35. When the slope of a local terrain is less than the first threshold, the terrain is determined to be flat, and a 7-point large window is activated. When the slope of a local terrain is determined to be between the two thresholds, the terrain is determined to be slightly undulating, and a 5-point medium window is activated. When the slope of a local terrain is greater than the second threshold, the terrain is determined to be steep and densely packed with reefs, and a 3-point small window is activated.
[0045] As an example of an embodiment of the present invention, filtering the current water depth sequence is specifically performed as follows: The window size is calculated based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window at each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; The discrimination threshold is determined based on the median deviation and the preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
[0046] In this embodiment, the median depth (MED) within the window is the median value of the depth values at each measuring point in the current depth sequence, arranged in ascending order. It reflects the overall level of the depth data within the window. The median deviation (MAD) is the median value of the absolute deviation sequence of the depth values at each measuring point relative to the median depth within the window, reflecting the dispersion of the depth data within the window. Considering that approximately 50% of the data falls within ±0.6745 in a standard normal distribution, there is an approximate relationship between MAD and the standard deviation σ: MAD ≈ 0.6745 × σ, i.e., σ ≈ 1.4826 × MAD. Therefore, this embodiment sets the preset conversion factor to 1.4826, and multiplies the median deviation (MAD) by this preset conversion factor to obtain an estimated value of the equivalent standard deviation σ. Subsequently, a gross error discrimination threshold of 3σ is set according to the 3σ principle. When the absolute value of the difference between the depth value at the current measuring point and the median depth within the window exceeds this discrimination threshold, the measuring point is determined to be a gross error and is corrected. The statistical basis for this discrimination mechanism is that, under the assumption of normal distribution, the probability of data falling within the range of μ±3σ is about 99.73%, therefore, the measurement points outside this range have a 99.73% probability of being outliers.
[0047] As an example of an embodiment of the present invention, the filtered water depth value of the current measuring point is obtained as follows: Calculate the difference between the current water depth and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
[0048] In this embodiment, the difference between the current water depth value at the measuring point and the middle value within the window is calculated as the current difference. This current difference is compared with a discrimination threshold: if the current difference is greater than the discrimination threshold, it indicates that the water depth value at the current measuring point deviates too much from the overall level of the data within the window, and is considered an outlier. In this case, the water depth value at the current measuring point is replaced with the middle value within the window to correct the outlier; if the current difference is less than or equal to the discrimination threshold, it indicates that the water depth value at the current measuring point is within the normal fluctuation range and is considered a valid water depth value. In this case, the original water depth value of the current measuring point is retained. Through the above method, the filtering processing of the water depth value at the current measuring point is completed, and the filtered water depth value of the current measuring point is obtained.
[0049] As an example of an embodiment of the present invention, the method further includes: For each sliding window size, when the range of measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, the sliding window is reduced so that the range of measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0050] In this embodiment, based on the sliding window size determined in step 102, the range of measurement points covered by the sliding window in the original water depth sequence is determined with the current measurement point as the center. It is then determined whether the range of measurement points exceeds the beginning or end of the original water depth sequence: if it exceeds the beginning, the starting boundary of the sliding window is adjusted to the position of the first measurement point in the original water depth sequence; if it exceeds the end, the ending boundary of the sliding window is adjusted to the position of the last measurement point in the original water depth sequence; if it does not exceed the end, the original window remains unchanged. After the above adjustments, an effective window whose boundary does not exceed the original water depth sequence is obtained, which is used for subsequent filtering processing.
[0051] For example, suppose the original water depth sequence has 10 measuring points, numbered 1 to 10. The current measuring point is the 2nd measuring point. In step 102, the sliding window size determined based on the slope of this point is a 7-point window (i.e., taking 3 points before and after). Calculated as a complete window, the measuring points covered by this window should be from the -1st to the 5th point (i.e., 2-3=-1, 2+3=5). However, the -1st and 0th points do not exist, as they exceed the beginning of the sequence (the 1st point). Therefore, the starting boundary of the window is adjusted from the -1st point to the 1st point, and the window range becomes the 5th point, a total of 5 measuring points. This window boundary does not exceed the beginning of the original sequence, and the current measuring point (the 2nd point) is still within the window; therefore, this window is a valid window.
[0052] As an example of an embodiment of the present invention, the local topographic slope of the current measuring point is determined based on the original water depth sequence, specifically as follows: The water depth difference between the current measuring point and the adjacent measuring points before and after it is determined based on the original water depth sequence, as well as the horizontal distance between the adjacent measuring points before and after it. The local terrain slope is calculated based on the difference in water depth and the horizontal distance.
[0053] In this embodiment, each measuring point in the original water depth sequence includes planar position information and a water depth value. The planar position information is used to determine the horizontal position of the measuring point, and the water depth value is used to characterize the underwater topographic depth at that measuring point. Taking the current measuring point as the center, several measuring points are selected forward and backward in the original water depth sequence as reference measuring points. The water depth values of the forward and backward reference measuring points are obtained respectively, and the absolute value of the water depth difference between them is calculated. Simultaneously, the horizontal distance between the forward and backward reference measuring points is obtained based on their planar position information. Dividing the absolute value of the water depth difference by the horizontal distance yields the local topographic slope of the current measuring point.
[0054] like Figure 2 As shown, based on the above-mentioned method embodiments, an embodiment of the present invention provides an adaptive variable window filtering system 200 for single-beam bathymetry data, including: a data acquisition module 201, a window determination module 202, a filtering processing module 203, and an integrated output module 204; Data acquisition module 201 is used to acquire the original water depth sequence measured by the unmanned vessel single beam echo sounder along the track; The window determination module 202 is used to determine the local topographic slope of the current measuring point based on the original water depth sequence, and to determine the sliding window size corresponding to the current measuring point based on the local topographic slope and the preset slope threshold. The filtering module 203 is used to determine the current water depth sequence from the original water depth sequence according to the sliding window size, and to filter the current water depth sequence to obtain the filtered water depth value of the current measuring point. The integrated output module 204 is used to integrate the filtered water depth values of all measuring points to obtain the target water depth sequence.
[0055] Furthermore, such as Figure 3 As shown, the system 200 of the present invention further includes a boundary processing module 205; The boundary processing module 205 is used to reduce the sliding window for each sliding window size when the range of the measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, so that the range of the measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0056] Furthermore, the window determination module 202 is also used to obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window. When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
[0057] Furthermore, the filtering module 203 is also used to calculate the midpoint of the window based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window at each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; The discrimination threshold is determined based on the median deviation and the preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
[0058] Furthermore, the filtering module 203 is also used to calculate the difference between the current water depth value and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
[0059] Furthermore, the window determination module 202 is also used to determine the water depth difference between adjacent measuring points before and after the current measuring point, as well as the horizontal distance between adjacent measuring points before and after, based on the original water depth sequence. The local terrain slope is calculated based on the difference in water depth and the horizontal distance.
[0060] Furthermore, the data acquisition module 201 is also used to sort the original water depth sequence in ascending order by track mileage to obtain water depth data.
[0061] It is understood that the above system embodiments correspond to the method embodiments of the present invention, and can implement all the implementation methods of any of the above method embodiments of the present invention, which will not be repeated here.
[0062] It should be noted that the system embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the system embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0063] Based on the embodiments of the adaptive variable window filtering method for single-beam bathymetry data described above, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the adaptive variable window filtering method for single-beam bathymetry data of any of the above embodiments of the present invention, the steps of which include: Obtain the original water depth sequence measured along the track by an unmanned surface vessel single-beam echo sounder; The local topographic slope of the current measuring point is determined based on the original water depth sequence, and the sliding window size corresponding to the current measuring point is determined based on the local topographic slope and the preset slope threshold. The current water depth sequence is determined from the original water depth sequence based on the sliding window size. The current water depth sequence is then filtered to obtain the filtered water depth value of the current measuring point. The target water depth sequence is obtained by integrating the filtered water depth values from all measuring points.
[0064] Embodiments of the present invention Furthermore, based on the local terrain slope and a preset slope threshold, the sliding window size corresponding to the current measuring point is determined, specifically as follows: Obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window. When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
[0065] Furthermore, the current water depth sequence is filtered, specifically as follows: The window size is calculated based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window at each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; The discrimination threshold is determined based on the median deviation and the preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
[0066] Furthermore, the filtered water depth value at the current measuring point is obtained, specifically: Calculate the difference between the current water depth and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
[0067] Furthermore, the method also includes: For each sliding window size, when the range of measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, the sliding window is reduced so that the range of measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0068] Furthermore, the local topographic slope of the current measuring point is determined based on the original water depth sequence, specifically as follows: The water depth difference between the current measuring point and the adjacent measuring points before and after it is determined based on the original water depth sequence, as well as the horizontal distance between the adjacent measuring points before and after it. The local terrain slope is calculated based on the difference in water depth and the horizontal distance.
[0069] Furthermore, after acquiring the raw water depth sequence measured along the track by the unmanned surface vessel's single-beam echo sounder, the method also includes: The original water depth sequence is sorted in ascending order by track mileage to obtain water depth data.
[0070] For example, in this embodiment, the computer program can be divided into one or more modules, one or more modules are stored in memory and executed by a processor to complete the present invention. One or more module elements can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in a terminal device.
[0071] Terminal devices can be computing devices such as desktop computers, laptops, handheld computers, and cloud servers. Terminal devices may include, but are not limited to, processors and memory.
[0072] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device through various interfaces and lines.
[0073] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium, including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the adaptive variable window filtering method for single-beam bathymetry data of any of the above-described method embodiments of the present invention, the steps of which include: Obtain the original water depth sequence measured along the track by an unmanned surface vessel single-beam echo sounder; The local topographic slope of the current measuring point is determined based on the original water depth sequence, and the sliding window size corresponding to the current measuring point is determined based on the local topographic slope and the preset slope threshold. The current water depth sequence is determined from the original water depth sequence based on the sliding window size. The current water depth sequence is then filtered to obtain the filtered water depth value of the current measuring point. The target water depth sequence is obtained by integrating the filtered water depth values from all measuring points.
[0074] Embodiments of the present invention Furthermore, based on the local terrain slope and a preset slope threshold, the sliding window size corresponding to the current measuring point is determined, specifically as follows: Obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window. When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
[0075] Furthermore, the current water depth sequence is filtered, specifically as follows: The window size is calculated based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window at each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; The discrimination threshold is determined based on the median deviation and the preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
[0076] Furthermore, the filtered water depth value at the current measuring point is obtained, specifically: Calculate the difference between the current water depth and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
[0077] Furthermore, the method also includes: For each sliding window size, when the range of measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, the sliding window is reduced so that the range of measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0078] Furthermore, the local topographic slope of the current measuring point is determined based on the original water depth sequence, specifically as follows: The water depth difference between the current measuring point and the adjacent measuring points before and after it is determined based on the original water depth sequence, as well as the horizontal distance between the adjacent measuring points before and after it. The local terrain slope is calculated based on the difference in water depth and the horizontal distance.
[0079] Furthermore, after acquiring the raw water depth sequence measured along the track by the unmanned surface vessel's single-beam echo sounder, the method also includes: The original water depth sequence is sorted in ascending order by track mileage to obtain water depth data.
[0080] Based on the above-described method embodiments, this invention further provides a computer program / program product, which is stored in a storage medium and executed by at least one processor to implement the adaptive variable window filtering method for single-beam bathymetry data according to any of the above-described method embodiments, the steps of which include: Obtain the original water depth sequence measured along the track by an unmanned surface vessel single-beam echo sounder; The local topographic slope of the current measuring point is determined based on the original water depth sequence, and the sliding window size corresponding to the current measuring point is determined based on the local topographic slope and the preset slope threshold. The current water depth sequence is determined from the original water depth sequence based on the sliding window size. The current water depth sequence is then filtered to obtain the filtered water depth value of the current measuring point. The target water depth sequence is obtained by integrating the filtered water depth values from all measuring points.
[0081] Embodiments of the present invention Furthermore, based on the local terrain slope and a preset slope threshold, the sliding window size corresponding to the current measuring point is determined, specifically as follows: Obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window. When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
[0082] Furthermore, the current water depth sequence is filtered, specifically as follows: The window size is calculated based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window at each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; The discrimination threshold is determined based on the median deviation and the preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
[0083] Furthermore, the filtered water depth value at the current measuring point is obtained, specifically: Calculate the difference between the current water depth and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
[0084] Furthermore, the method also includes: For each sliding window size, when the range of measurement points corresponding to the sliding window is outside the beginning or end of the original water depth sequence, the sliding window is reduced so that the range of measurement points corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
[0085] Furthermore, the local topographic slope of the current measuring point is determined based on the original water depth sequence, specifically as follows: The water depth difference between the current measuring point and the adjacent measuring points before and after it is determined based on the original water depth sequence, as well as the horizontal distance between the adjacent measuring points before and after it. The local terrain slope is calculated based on the difference in water depth and the horizontal distance.
[0086] Furthermore, after acquiring the raw water depth sequence measured along the track by the unmanned surface vessel's single-beam echo sounder, the method also includes: The original water depth sequence is sorted in ascending order by track mileage to obtain water depth data.
[0087] The modules / units integrated into the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0088] The above are preferred embodiments of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. An adaptive variable window filtering method for single-beam bathymetry data, characterized in that, include: Obtain the original water depth sequence measured along the track by an unmanned surface vessel single-beam echo sounder; The local topographic slope of the current measuring point is determined based on the original water depth sequence, and the sliding window size corresponding to the current measuring point is determined based on the local topographic slope and the preset slope threshold. The current water depth sequence is determined from the original water depth sequence according to the sliding window size, and the current water depth sequence is filtered to obtain the filtered water depth value of the current measuring point. The target water depth sequence is obtained by integrating the filtered water depth values from all measuring points.
2. The adaptive variable window filtering method for single-beam bathymetry data as described in claim 1, characterized in that, The step of determining the sliding window size corresponding to the current measuring point based on the local terrain slope and a preset slope threshold is as follows: Obtain a preset first threshold and a second threshold, wherein the first threshold is less than the second threshold; When the local terrain slope is less than the first threshold, the sliding window size corresponding to the current measuring point is a 7-point window; When the local terrain slope is greater than or equal to the first threshold and less than the second threshold, the sliding window size corresponding to the current measuring point is a 5-point window; When the local terrain slope is greater than or equal to the second threshold, the sliding window size corresponding to the current measuring point is a 3-point window.
3. The adaptive variable window filtering method for single-beam bathymetry data as described in claim 1, characterized in that, The filtering process for the current water depth sequence specifically involves: The window size is calculated based on the current water depth sequence; The deviation sequence is obtained by calculating the difference between the water depth value and the middle value in the window for each measuring point in the current water depth sequence; The median of the deviation sequence is determined as the deviation median; A discrimination threshold is determined based on the median deviation and a preset conversion coefficient, and the current water depth value of the current measuring point in the current water depth sequence is filtered based on the discrimination threshold.
4. The adaptive variable window filtering method for single-beam bathymetry data as described in claim 3, characterized in that, The process of obtaining the filtered water depth value at the current measuring point is as follows: Calculate the difference between the current water depth value and the middle value in the window to obtain the current difference; Compare the current difference with the discrimination threshold; If the current difference is greater than the discrimination threshold, the current water depth value is corrected according to the middle value in the window to obtain the filtered water depth value; If the current difference is less than or equal to the discrimination threshold, then the current water depth value is used as the filtered water depth value.
5. The adaptive variable window filtering method for single-beam bathymetry data as described in claim 1, characterized in that, The method further includes: For each sliding window size, when the range of the measuring point corresponding to the sliding window is outside the beginning or end of the original water depth sequence, the sliding window is reduced so that the range of the measuring point corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
6. The adaptive variable window filtering method for single-beam bathymetry data as described in claim 1, characterized in that, The determination of the local topographic slope of the current measuring point based on the original water depth sequence is specifically as follows: The water depth difference between adjacent measuring points before and after the current measuring point, as well as the horizontal distance between adjacent measuring points before and after the current measuring point, are determined based on the original water depth sequence. The local terrain slope is calculated based on the water depth difference and the horizontal distance.
7. The adaptive variable window filtering method for single-beam bathymetry data as described in claim 1, characterized in that, After acquiring the raw water depth sequence measured along the track by the unmanned surface vessel single-beam echo sounder, the method further includes: The original water depth sequence is sorted in ascending order by track mileage to obtain water depth data.
8. An adaptive variable window filtering system for single-beam bathymetry data, characterized in that, include: The module consists of a data acquisition module, a window determination module, a filtering module, and an integrated output module. The data acquisition module is used to acquire the original water depth sequence measured by the unmanned vessel single-beam echo sounder along the track; The window determination module is used to determine the local terrain slope of the current measuring point based on the original water depth sequence, and to determine the sliding window size corresponding to the current measuring point based on the local terrain slope and a preset slope threshold. The filtering module is used to determine the current water depth sequence in the original water depth sequence according to the sliding window size, and to filter the current water depth sequence to obtain the filtered water depth value of the current measuring point. The integrated output module is used to integrate the filtered water depth values of all measuring points to obtain the target water depth sequence.
9. The adaptive variable window filtering system for single-beam bathymetry data as described in claim 8, characterized in that, The system also includes a boundary processing module; The boundary processing module is used to reduce the sliding window for each sliding window size when the range of the measuring point corresponding to the sliding window is outside the beginning or end of the original water depth sequence, so that the range of the measuring point corresponding to the sliding window is within the beginning or end of the original water depth sequence, thus obtaining an effective window.
10. A terminal device, characterized in that, The method includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the adaptive variable window filtering method for single-beam bathymetry data as described in any one of claims 1-7.
