Tidal flat terrain monitoring method based on few-sample learning
Through a method based on few-sample learning, the coastal monitoring system and the large-scale basic model SAM are used, combined with water level information and camera parameter correction, to achieve high-precision monitoring of tidal flat terrain, solving the high labor cost and difficulty of real-time observation in the existing technology. problem, realizing fully automated and dynamic monitoring of tidal flat terrain.
Patent Information
- Application Number
- CN202410661807.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing tidal flat terrain monitoring methods have problems such as high labor costs, limited measurement range, and difficulty in real-time observation in terms of wide-area and high-frequency monitoring, especially due to the high computational cost and labeling of deep learning methods in training and parameter adjustment. The sample size and accuracy of the data set are limited, making it difficult to obtain a representative annotated data set.
Using a method based on few-sample learning, non-orthophoto tidal flat inundation image data is obtained through the coastal monitoring system, and the large-scale basic model SAM is used for enhanced learning to achieve rapid and accurate extraction of the tidal flat water edge, combined with the data provided by the water level monitoring station. Real-time tide level information is used to construct high-precision tidal flat terrain, and non-orthogonal waterside lines are converted into orthogonal waterside lines through collinear equations. Finally, the internal and external camera parameter correction and natural neighbor interpolation methods are used to form tidal flat digital terrain elevations.
It realizes fully automated and dynamic monitoring of tidal flat terrain, reduces manpower investment, improves monitoring accuracy and frequency, and is suitable for large-scale and rapidly changing tidal flat terrain scenarios.
Smart Images

Figure CN118583140A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of tidal flat terrain remote sensing measurement, in particular to a tidal flat terrain monitoring method based on few-sample learning. Background Art
[0002] Traditional methods of tidal flat topography mapping mainly rely on classical surveying techniques and aerial image interpretation. Although modern technologies such as real-time kinematic differential (RTK) and 3D laser scanning (TLS) have shown their advantages in small-scale high-frequency dynamic measurements, these methods are usually accompanied by high labor costs and limited measurement range.
[0003] In wide-area tidal flat topography mapping, the water edge method is widely used due to its ability to capture topographic features that change over time. Although satellite imagery has an advantage in coverage, it is more suitable for long-term monitoring due to the limitations of satellite transit cycles and weather conditions, and its measurement accuracy is limited by image resolution.
[0004] The rapid changes in tidal flat topography make it difficult for existing satellite and drone monitoring methods to achieve real-time observations, and these methods also require a large amount of manpower, limiting the high-frequency monitoring of tidal flat topography changes. In contrast, the coastal monitoring system has become an effective monitoring alternative with its automated image acquisition capabilities, high temporal and spatial resolution, and wide monitoring range.
[0005] Image segmentation, as a key technical step to distinguish water bodies from other objects, is the basis for effective research and monitoring. Although advances in artificial intelligence and deep learning have promoted the automation of image segmentation, the high computational cost of deep learning methods in training and parameter adjustment, coupled with the color and geomorphological complexity of tidal flats, makes it difficult to obtain representative annotated data sets. The number and accuracy of the annotated data sets determine the accuracy of artificial intelligence and deep learning, so traditional measurement methods still have major limitations. Summary of the invention
[0006] The purpose of the present invention is to provide a tidal flat topography monitoring method based on few-sample learning in response to the above-mentioned deficiencies of the prior art, and to provide an innovative solution for the automatic identification of the waterside by supporting few-sample learning.
[0007] The purpose of the present invention is achieved by the following technical solutions:
[0008] A tidal flat topography monitoring method based on few-sample learning, characterized in that the method comprises the following specific steps:
[0009] S1. Obtain non-orthophoto tidal flat flooding image data through the coastal monitoring system;
[0010] S2. With the support of a small number of labeled samples, the large-scale basic model SAM is introduced for enhanced learning to achieve fast and accurate extraction of the tidal flat water edge;
[0011] S3, using the collinear equation, convert the non-orthogonal water edge line into the orthogonal water edge line;
[0012] S4. Combined with the real-time tide information provided by the water level monitoring station, a high-precision tidal flat topography is constructed on the time scale of the tidal cycle.
[0013] The specific steps of step S1 are:
[0014] (1) Use the coastal monitoring system to continuously capture tidal flat images. The time interval is set according to the monitoring range. The smaller the time interval, the higher the terrain accuracy, but the remote image transmission requirements are also higher;
[0015] (2) The two water level values of the tidal flat image starting to be flooded and completely flooded are used as water level thresholds, and the tidal flat flooded images between the two threshold water levels are selected.
[0016] The specific steps of step S2 are:
[0017] (1) The image encoder and image embedder of the SAM model are used to extract features from the tidal flat flooding image, which provides the necessary image feature information for subsequent steps;
[0018] (2) Cue points are generated from labeled and unlabeled samples through the cue generation module. For labeled samples, small samples are further expanded through data augmentation operations, including rotating the original image by 90 degrees, 180 degrees, and 270 degrees, mirroring along the vertical and horizontal axes, and adjusting the intensity of the image through gamma correction. These operations generate a series of variant images, thereby enhancing the generalization ability of the model and improving the accuracy of feature recognition. For unlabeled samples, superpixels are used to segment various types of pixels, and pixels containing water bodies are separated from other types of landscapes by setting the comprehensive weights of color space similarity and plane distance. That is, the Gaussian mixture algorithm is used to further classify each pixel into two clusters: water body cluster and non-water body cluster. The Gaussian mixture algorithm is as follows:
[0019]
[0020]
[0021] Among them, p(x) represents the probability of pixel x, C(i) represents the components of the cluster, w(i) represents the component weight of the i-th cluster, μ(i) and σ(i) represent the mean and standard deviation of the i-th component, respectively.
[0022] Then, a prompt mask is generated according to the pixel features of the tidal flat water body, and prompt points are extracted from the mask.
[0023] (3) Using the segmentation module, the tidal flat flooded image is segmented into water bodies and non-water bodies based on the clue points obtained through training, so as to extract the accurate water edge.
[0024] The specific steps of step S3 are:
[0025] (1) Lens distortion correction: Use the Matlab camera calibration toolbox to input grid photos taken at different angles and calculate the camera intrinsic parameters.
[0026] (2) Image calibration is used to generate orthographic projection images: Image calibration follows the principle of linear transformation from three-dimensional world coordinates (x, y, z) to two-dimensional image coordinates (u, v) in photogrammetry, which defines the basic relationship between image coordinates and real-world coordinates through collinear equations.
[0027] As shown below:
[0028]
[0029]
[0030] where (u0,v0) is the center of the image, (x c ,y c ,z c ) is the location of the camera site, f is the focal length of the camera, λ u ,λ v are the horizontal and vertical scaling factors, m i,j represents the rotation and translation coefficient;
[0031] Solving the above equation is quite complicated, and there are many unknown parameters in the equation, so the direct linear transformation (DLT) equation is used to solve it, which defines the linear relationship between the image and world coordinates. The DLT equation is as follows:
[0032]
[0033]
[0034] Among them, 11 unknown L 1-11 The coefficients are calculated by combining the external calibration points with the corresponding image coordinate points. The physical characteristic parameters of the camera need to be input during the calculation: image size (m, n), focal length f, image center coordinates (u0, v0), camera position in real world coordinates (x c ,y c , z c ) and three Euler angles (φ, σ, τ). 1-11After the coefficients, the inverse operation of formula (3) (4) is applied to convert the image coordinates into the actual world coordinates. After fixing the camera in the field, take a field image containing the RTK calibration points, extract the pixel coordinates corresponding to the calibration points, and calculate the camera extrinsic parameters according to the above formula;
[0035] (3) Using the internal and external parameters of the camera, the waterside line is orthographically projected, that is, the coordinates of the waterside line set are converted from pixel coordinates to geographic coordinates.
[0036] (4) Iteratively calculate the number of intersections between each waterside line and the other waterside lines, and delete the waterside line with the largest number of intersections until there are no intersecting waterside lines.
[0037] The specific steps of step 4 are:
[0038] (1) RTK calibrates the water level sensor and combines it with real-time water level data to discretize the water edge at the same time into an elevation point cloud;
[0039] (2) The monitoring area is divided into grids according to the required resolution. The elevation point cloud is interpolated to the grid using the natural neighbor interpolation method to form elevation raster data, that is, the digital terrain elevation of the tidal flat.
[0040] The invention has the advantages of providing an effective solution strategy for the field of tidal flat terrain monitoring where annotated data are scarce, thereby supporting the establishment of a fully automated and dynamic monitoring system for tidal flat terrain. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a flow chart of the present invention;
[0042] Figure 2 This is a flow chart of the few-sample learning strategy in the present invention;
[0043] Figure 3 This is an image segmentation effect diagram of the few-sample learning strategy in the present invention;
[0044] Figure 4 This is a rendering of the camera internal reference calibration result in the present invention;
[0045] Figure 5 This is a rendering of the camera internal and external parameter calibration results in the present invention;
[0046] Figure 6 Construct a detailed flow chart for the tidal flat terrain in the present invention;
[0047] Figure 7 It is the elevation point cloud map in the present invention;
[0048] Figure 8 A tidal flat topographic map in the embodiment provided by the present invention;
[0049] Fig. 9 This is a verification accuracy diagram in the embodiment provided by the present invention. DETAILED DESCRIPTION
[0050] The features of the present invention and other related features are further described in detail below through embodiments in conjunction with the accompanying drawings to facilitate understanding by those skilled in the art:
[0051] Example: Figures 1 to 9 As shown, the tidal flat terrain monitoring method based on few-sample learning in this embodiment includes the following steps:
[0052] Step S1: According to the tidal flat to be monitored, a 4G network camera is set at the spatial location (3360622.14, 570868.14, 9.09). The camera takes pictures from 7:00 to 17:00 every day, and records tidal flat images every 10 minutes. Combined with the real-time water level data, the water level threshold [0.25m, 3.50m] is set to automatically filter the tidal flat flooded images.
[0053] Step S2: With the support of 300 labeled samples, the large-scale basic model SAM is used for enhanced learning to achieve fast and accurate extraction of the tidal flat water edge, such as Figure 2 The results of water extraction are shown in the following figure. Figure 3 As shown, the results are quite accurate.
[0054] Step S3: Before converting the waterside line into an orthographic projection, the internal and external parameters of the camera need to be calculated. The camera internal parameter correction result is as follows: Figure 4 The physical characteristic parameters of the camera used in this embodiment are as follows: image size (3840, 2160), image center coordinates (1884.31, 1086.09), camera focal length (2691.56, 2680.53), camera spatial position (3360622.14, 570868.14, 9.09) and camera Euler angle (azimuth: 9.87°, pitch angle: 70.09°, roll angle: 1.00°). Substituting the parameters into the formula, the camera internal and external parameter correction result is as follows: Figure 5 Then, the waterside line set is uniformly transformed into orthographic projection using the internal and external parameters, that is, from pixel coordinates to geographic coordinates; and the intersecting waterside lines are deleted to obtain a non-intersecting waterside line set.
[0055] Step S4: Press Figure 6 The process shown in the figure constructs the tidal flat terrain. Combined with the real-time water level collected (the water level has been calibrated by GPS-RTK), the waterside line at the corresponding time is uniformly converted into an elevation point cloud, as shown in the figure. Figure 7 Then the monitoring area is divided into 0.5m resolution grids, and the elevation point cloud is interpolated into the tidal flat DEM using the natural neighbor interpolation method, as shown in Figure 8 shown.
[0056] Through the comprehensive application of the coastal monitoring system, Segment Anything model and few-shot learning strategy, a tidal flat terrain monitoring method based on few-shot learning was developed. The average absolute error of the terrain obtained was about 0.080m. The error of the 101 points measured was as follows: Fig. 9 As shown, this measurement accuracy basically meets the requirements.
[0057] In summary, the measurement results of the present invention are accurate and suitable for scenes with a large range and fast-changing tidal flat terrain.
[0058] Although the above embodiments have described in detail the concepts and embodiments of the present invention with reference to the accompanying drawings, ordinary technicians in this field can recognize that various improvements and changes can still be made to the present invention without departing from the scope of the claims, so they are not described one by one here.
Claims
1. A tidal flat topography monitoring method based on few-sample learning, characterized by: The steps include: S1. Setting up a coastal monitoring system and a water level monitoring station on the monitored tidal flat, and obtaining non-orthophoto tidal flat flooding image data of the tidal flat through the coastal monitoring system; S2. With the support of a small amount of labeled samples, a large-scale basic model SAM is used to perform reinforcement learning to extract the tidal flat water edge in the non-orthophoto tidal flat flooded image; S3, using the collinear equation, converting the extracted non-orthogonal water edge into an orthogonal water edge; S4. Combining the real-time tide level information provided by the water level monitoring station and the transformed orthographic water edge, a tidal flat topography is constructed on the time scale of the tidal cycle.
2. The method for monitoring tidal flat topography based on few-sample learning according to claim 1, characterized in that: Step S1 includes: using the coastal monitoring system to continuously capture images of the tidal flat at certain time intervals, using two water level values when the tidal flat begins to flood and when it is completely flooded as threshold water levels, respectively, and screening tidal flat flooded images between the two threshold water levels.
3. The tidal flat topography monitoring method based on few-sample learning according to claim 1, characterized in that: Step S2 includes: extracting features from the non-orthophoto tidal flat flooded image using an image encoder and an image embedder of a SAM model; Using the cue generation module, cue points are generated from labeled samples and unlabeled samples; For the labeled samples, the small samples are expanded by data augmentation operations, including rotating the original images by 90 degrees, 180 degrees, and 270 degrees, mirroring along the vertical and horizontal axes, and adjusting the intensity of the images by gamma correction to generate a series of variant images; For the unlabeled samples, superpixels are used to segment various pixels, and pixels containing water bodies are distinguished from other types of landscapes by setting the comprehensive weight of color space similarity and plane distance. Then, a hint mask is generated according to the pixel characteristics of the tidal flat water body, and hint points are extracted from it. The segmentation module is used to segment the tidal flat flooded images into water bodies and non-water bodies based on the clue points obtained through training, so as to extract the accurate water edge.
4. The method for monitoring tidal flat topography based on few-sample learning according to claim 3, characterized in that: A Gaussian mixture algorithm is used to classify each pixel in the unlabeled sample into a water body cluster and a non-water body cluster.
5. The tidal flat topography monitoring method based on few-sample learning according to claim 1, characterized in that: Step S3 includes: Lens distortion correction: Matlab camera calibration toolbox was used to input square photos taken at different angles to calculate the camera intrinsic parameters of the coastal monitoring system; Image calibration: Solve the collinear linear equations using direct linear transformation equations to convert image coordinates into real world coordinates; After the camera of the coastal monitoring system is fixed, take a field image containing RTK calibration points, extract the pixel coordinates corresponding to the calibration points, and calculate the camera external parameters; Using the internal and external parameters of the camera, the coordinates of the waterside set are converted from pixel coordinates to geographic coordinates to achieve orthographic projection of the waterside; Iteratively calculate the number of intersections between each waterside line and the remaining waterside lines, and delete the waterside line with the largest number of intersections until there are no intersecting waterside lines.
6. The tidal flat topography monitoring method based on few-sample learning according to claim 1, characterized in that: Step S4 includes: RTK calibrates the water level sensor of the water level monitoring station, and combines the real-time tide level data to discretize the water edge at the same time into an elevation point cloud; The monitoring area is divided into grids according to the required resolution, and the elevation point cloud is interpolated to the grid through the natural neighbor interpolation method to form elevation raster data, that is, the tidal flat digital terrain elevation.
Citation Information
Patent Citations
Method for calibrating tidal flat DEM (digital elevation model) on basis of remote sensing water lines
CN103761375A
Silt tidal flat topography evolution method based on oblique photographing three-dimensional reconstruction technology
CN108050994A
Beach monitoring method based on tide model and photogrammetry technology
CN112444234A
Satellite image ship model recognition method under small sample condition
CN112712049A
Automatic extraction method for tidal flat elevation
CN112926468A
