A method and system for extracting a coastal waterline
By constructing a spatiotemporal proximity adaptive learning module and a Transformer-based hierarchical multi-scale feature fusion encoder, combined with a conditional diffusion model and multi-factor nonlinear tide level correction, the problems of weak cross-regional generalization ability, insufficient multi-source data fusion, and low tide level correction accuracy in existing technologies for coastal waterline extraction are solved, achieving high-precision and robust automatic extraction of coastal waterlines.
Patent Information
- Application Number
- CN202611337438.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing coastal waterline extraction technologies suffer from weak cross-regional generalization capabilities, insufficient fusion of multi-source data, low accuracy of tidal level correction, and inadequate systematic deployment and automation. As a result, they lack extraction accuracy and robustness in complex beach environments, making it difficult to meet the high-precision requirements of coastal zone management.
A spatiotemporal proximity adaptive learning module is used to construct a spatiotemporal proximity reference sample set. Feature extraction and refinement are performed by combining a Transformer-based hierarchical multi-scale feature fusion encoder and a conditional diffusion model. A multi-factor nonlinear tide level correction method is then used to generate a high-precision coastal waterline.
It achieves high-precision and robust waterline extraction in complex beach environments, improves the level of automation of the entire process, and meets the refined needs of coastal zone management.
Smart Images

Figure CN123182018A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method and system for extracting coastal waterline. Background Technology
[0002] The coastal waterline, as a dynamic boundary between the ocean and land, is one of the most important fundamental geographical elements in coastal spatial management. Under the multiple pressures of sea-level rise caused by global climate change, frequent extreme storm events, and intensive human development activities in coastal areas, global coastlines are undergoing unprecedented erosion, siltation, and morphological evolution. The spatial location of the waterline fluctuates significantly interannually, seasonally, and even during tidal cycles. Accurately and timely understanding the location and changing trends of the coastal waterline is directly related to a series of major application needs, including coastal resource development planning, marine ecological red line delineation and supervision, coastal wetland protection and restoration, storm surge disaster risk assessment, marine area use rights confirmation and registration, and the protection of national maritime rights. Remote sensing technology, with its unique advantages of wide coverage, stable observation cycles, relatively low data acquisition costs, and independence from ground infrastructure, is gradually replacing traditional manual field measurement methods, becoming an irreplaceable core technology for large-scale monitoring and dynamic updating of the coastal waterline. After nearly half a century of development, remote sensing data sources have expanded from single low-to-medium resolution optical images to a multimodal, multi-scale Earth observation system encompassing sub-meter high-resolution optical images, fully polarimetric synthetic aperture radar images, airborne lidar point clouds, UAV low-altitude remote sensing images, and shore-based video monitoring images. Correspondingly, coastal waterline extraction technology has also undergone a complete technological evolution, from early reliance on manual visual interpretation and digitization, to semi-automatic extraction based on edge detection operators, threshold segmentation, and active contour models, and now to intelligent, fully automatic extraction represented by deep learning semantic segmentation networks. However, the coastal environment itself possesses extremely high spatial heterogeneity and dynamic complexity—shoreline types vary greatly, ranging from bedrock cliffs, sandy beaches, and silty tidal flats to man-made structures. Tidal levels, wave conditions, lighting conditions, and cloud cover at the time of imaging significantly affect the representation of land-water boundaries in remote sensing images, making it difficult for any single extraction method to maintain stable and reliable segmentation accuracy in all scenarios. Summary of the Invention
[0003] In view of this, embodiments of this application provide a method and system for extracting coastal waterline to improve the extraction accuracy of coastal waterline.
[0004] One aspect of this application provides a method for extracting a coastal waterline, the method comprising the following steps:
[0005] A spatiotemporal proximity reference sample set is constructed based on historical samples that satisfy the spatiotemporal proximity constraint with the target image;
[0006] Using the spatiotemporal proximity reference sample set as a priori constraint, feature extraction and fusion are performed on the preprocessed multi-source remote sensing data to obtain cross-modal fusion features;
[0007] The cross-modal fusion features are deeply encoded using a Transformer-based hierarchical multi-scale feature fusion encoder to generate a hierarchical feature pyramid that includes multiple scales.
[0008] Using the aforementioned hierarchical feature pyramid as a condition, the preliminary waterline probability map is iteratively denoised and refined through a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold.
[0009] The binary segmentation map of the waterline is post-processed and vectorized to generate instantaneous waterline vector data with geographic coordinates;
[0010] Based on the multi-factor nonlinear tide level correction method, the instantaneous waterline vector data is corrected to the mean spring tide high tide line to obtain the final coastal waterline.
[0011] In some embodiments, constructing a spatiotemporal proximity reference sample set based on historical samples that satisfy spatiotemporal proximity constraints with the target image includes the following steps:
[0012] A spatiotemporal proximity reference sample set is constructed based on historical samples that satisfy the spatiotemporal weighted distance with the target image; wherein, the spatiotemporal weighted distance includes spatial proximity and temporal proximity with different weight coefficients;
[0013] The method further includes the following steps:
[0014] The historical samples are subjected to quality assessment and screening; wherein the indicators of the quality assessment include the confidence score of the historical extraction results, the cloud coverage rate of the historical images, the imaging environment condition score, and the completeness of the overlap between the historical waterline and the geographical range of the target image.
[0015] In some embodiments, the step of using the spatiotemporal proximity reference sample set as a prior constraint to extract and fuse features from preprocessed multi-source remote sensing data to obtain cross-modal fusion features includes the following steps:
[0016] The spatiotemporal proximity reference sample set is used as an auxiliary channel input, and features are extracted together with the preprocessed multi-source remote sensing data.
[0017] The method of using the spatiotemporal proximity reference sample set as a prior constraint is as follows: based on the historical waterline in the spatiotemporal proximity reference sample set, a prior probability map is constructed, and pixels in the prior probability map that are closer to the historical waterline are assigned a higher prior probability of the land-water boundary.
[0018] The steps for feature extraction include:
[0019] The hyperspectral or multispectral data in the multi-source remote sensing data are processed using a dimensionality reduction and compression method based on spectral theory to obtain spectral compressed features. Optical features and SAR features of the multi-source remote sensing data are extracted using a dual-branch encoder architecture, and the optical features and SAR features are enhanced and fused bidirectionally through a cross-modal attention mechanism. These features are then combined with the spectral compressed features to obtain the cross-modal fused features.
[0020] In some embodiments, the dimensionality reduction and compression method based on spectral theory specifically includes:
[0021] Each pixel of the hyperspectral or multispectral data is treated as a sample point in a high-dimensional space, and a spectral similarity map is constructed based on the spectral angular distance or Euclidean distance between pixels.
[0022] Calculate the Laplacian matrix of the spectral similarity map and perform eigenvalue decomposition, then select several eigenvectors corresponding to the minimum eigenvalues to form a low-dimensional embedding space;
[0023] The hyperspectral or multispectral data is projected into the low-dimensional embedding space to obtain the spectral compression features.
[0024] In some embodiments, the method of extracting optical features and SAR features from the multi-source remote sensing data using a dual-branch encoder architecture, and performing bidirectional feature enhancement and fusion on the optical features and SAR features through a cross-modal attention mechanism, includes the following steps:
[0025] Using a feature map of a certain level in the optical branch as the query and a feature map of the same level in the SAR branch as the key and value, calculate the similarity matrix between the optical feature and the SAR feature;
[0026] The SAR features are injected into the optical features using a weighted summation method based on the similarity matrix;
[0027] By using reverse attention to inject the optical features into the SAR features, bidirectional feature enhancement is achieved.
[0028] In some embodiments, the step of iteratively denoising and refining the preliminary waterline probability map using a conditional diffusion model based on the hierarchical feature pyramid to generate a binary waterline segmentation map with a confidence level reaching a preset threshold includes the following steps:
[0029] The preliminary segmentation head is used to perform a forward inference on the hierarchical feature pyramid to output the preliminary waterline probability map.
[0030] Starting with the preliminary waterline probability map, and guided by the hierarchical feature pyramid as a conditional image feature, a noise prediction network is used for progressive reverse denoising. Each step of denoising predicts and removes noise components, ultimately generating the binary segmentation map of the waterline. In the reverse denoising process, a boundary-aware loss term is used to assign higher weights to the waterline boundary region.
[0031] In some embodiments, the method based on multi-factor nonlinear tide level correction corrects the instantaneous waterline vector data to the mean high tide line of spring tide, obtaining the final coastal waterline, including the following steps:
[0032] By extracting multi-temporal remote sensing data of the same geographical area, the instantaneous waterline position sequence at different tide levels is obtained;
[0033] Several profile lines are set along the direction perpendicular to the coastline of the target shoreline. The intersections of each instantaneous waterline and each profile line are extracted to obtain discrete point pairs of tide height and horizontal position.
[0034] Based on the discrete point pairs, a nonlinear beach elevation profile model is constructed for each profile using piecewise polynomial fitting or cubic spline interpolation algorithms.
[0035] Substitute the elevation value of the mean high tide line into each profile model, calculate the planar position on each profile, and connect them sequentially to obtain the final coastal waterline.
[0036] Another aspect of this application embodiment provides a coastal waterline extraction system, the system comprising:
[0037] The historical sample acquisition unit is used to construct a spatiotemporal proximity reference sample set based on historical samples that satisfy the spatiotemporal proximity constraint with the target image.
[0038] The feature fusion unit is used to extract and fuse features from the preprocessed multi-source remote sensing data using the spatiotemporal proximity reference sample set as a priori constraint, so as to obtain cross-modal fusion features.
[0039] The feature encoding unit is used to perform deep encoding of the cross-modal fusion features using a Transformer-based hierarchical multi-scale feature fusion encoder to generate a hierarchical feature pyramid including multiple scales.
[0040] The waterline segmentation unit is used to iteratively denoise and refine the preliminary waterline probability map using the hierarchical feature pyramid as a condition and a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold.
[0041] The waterline vectorization unit is used to post-process and vectorize the binary segmentation map of the waterline to generate instantaneous waterline vector data with geographic coordinates.
[0042] The waterline correction unit is used to correct the instantaneous waterline vector data to the mean high tide line based on the multi-factor nonlinear tide level correction method, so as to obtain the final coastal waterline.
[0043] Another aspect of this application embodiment provides an electronic device, including a processor and a memory;
[0044] The memory is used to store programs;
[0045] The processor executes the program to implement any of the methods described above.
[0046] Another aspect of this application provides a computer-readable storage medium storing a program that is executed by a processor to implement the method described in any of the above embodiments.
[0047] This application includes at least the following beneficial effects:
[0048] This application constructs a spatiotemporal proximity reference sample set based on historical samples that satisfy spatiotemporal proximity constraints with the target image; using the spatiotemporal proximity reference sample set as a priori constraints, it extracts and fuses features from preprocessed multi-source remote sensing data to obtain cross-modal fusion features; it uses a Transformer-based hierarchical multi-scale feature fusion encoder to perform deep encoding on the cross-modal fusion features, generating a hierarchical feature pyramid including multiple scales; using the hierarchical feature pyramid as a condition, iteratively denoises and refines the preliminary waterline probability map through a conditional diffusion model, generating a waterline binary segmentation map with a confidence level reaching a preset threshold; it post-processes and vectorizes the waterline binary segmentation map to generate instantaneous waterline vector data with geographic coordinates; based on a multi-factor nonlinear tide level correction method, it corrects the instantaneous waterline vector data to the mean spring tide high tide line to obtain the final coastal waterline. This application overcomes the shortcomings of weak generalization ability of deep learning and insufficient fusion of multi-source data by using spatiotemporal proximity adaptive learning and deep fusion of cross-modal features. By combining hierarchical multi-scale Transformer encoding and diffusion model iterative refinement, it achieves accurate extraction of weak edges and multi-scale shorelines. Finally, through multi-factor nonlinear tide level correction, it significantly improves the extraction accuracy of coastal waterline and the level of full-process automation in complex beach environments. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 A schematic flowchart illustrating a method for extracting the waterline of a coastline provided in this application embodiment;
[0051] Figure 2 This is a structural block diagram of a coastal waterline extraction system provided in an embodiment of this application. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0053] Before providing a detailed description of the embodiments of this application, some related technologies involved in the embodiments of this application will be described first, as follows:
[0054] How to achieve comprehensive breakthroughs in multiple aspects, such as multimodal remote sensing data collaboration, improving the generalization ability of deep learning models, accurately characterizing weak edges and fuzzy boundaries, nonlinear correction of tidal level and elevation, and efficient deployment of large-scale operational systems, and to build an automatic method and system for extracting coastal waterline with high precision, strong robustness and wide adaptability, has always been a cutting-edge hot topic and technical challenge in the interdisciplinary field of remote sensing geoscience and coastal zone science.
[0055] At the level of specific technical implementation, existing methods for remote sensing extraction of coastal waterlines can be systematically categorized into three major schools of thought. Each school exhibits unique advantages under specific conditions, but also faces several common and individual bottlenecks. The first category is based on traditional image processing and physical model-driven methods. Typical approaches include edge detection based on operators such as Canny and Sobel, multi-band thresholding based on spectral indices such as the normalized difference water index, object-level segmentation based on region growing or watershed transformation, and boundary extraction based on energy functional optimization using active contour models and level set algorithms. These methods have clear mathematical principles, low computational complexity, and can be deployed without a large number of labeled samples. However, their segmentation thresholds and algorithm parameters are highly dependent on manual experience for setting and adjusting them for specific regions and imaging conditions. Once transferred to shorelines with different landforms, lighting conditions, or tidal states, the preset parameters immediately become invalid, leading to a sharp drop in extraction accuracy and making it difficult to meet the basic requirements of robustness for large-scale automated monitoring. The second category comprises end-to-end data-driven methods based on deep learning semantic segmentation. Represented by fully convolutional networks, U-Net and its variants, the DeepLab series, SegFormer, and Swin-UNet, these methods employ an architecture where the encoder extracts multi-scale hierarchical features and the decoder restores spatial resolution, achieving a direct mapping from remote sensing image pixels to binary land and water labels. Given sufficient training data coverage and the same distribution of test and training data, these methods have achieved significantly higher extraction accuracy than traditional methods in scenarios such as bedrock and sandy shores, with edge localization accuracy reaching sub-pixel levels.
[0056] However, deep learning methods suffer from three major systemic defects: First, their cross-regional and cross-temporal generalization capabilities are severely insufficient. The model's segmentation performance for shoreline types, sediment content levels, or wave breaking patterns not present in the training set deteriorates sharply, almost necessitating the re-collection and labeling of data and fine-tuning of network weights for each new monitoring area, which greatly limits its operational application. Second, most existing studies focus on single optical remote sensing data sources, and the collaborative utilization of optical and synthetic aperture radar data in cloudy and rainy areas is limited to image reconstruction or shallow feature stitching, without establishing an end-to-end cross-modal feature-level deep fusion framework for shoreline extraction. Third, in weak edge areas with extremely low spectral contrast between land and water, such as silty tidal flats, river deltas, and the periphery of alluvial islands, existing segmentation networks generally suffer from problems such as blurred boundaries, topological breaks, and frequent small-area voids. The geometric integrity and boundary sharpness of the output results are far from meeting the requirements of the precision of legal coastline delineation for refined coastal zone management. The third category is coastline estimation methods based on tidal level correction. The core objective is to transform the instantaneous waterline extracted at the moment of satellite transit into a legally recognized mean high tide line using topographic or tidal models. Existing methods generally rely on the oversimplified assumption of uniform shoreline slope, using single tidal station observations or tidal model grid data for linear interpolation correction of the entire shoreline. This completely ignores the nonlinear morphological characteristics of the actual shoreline profile and the spatial zonation of tides. In silty coasts and estuaries with wide intertidal bands and numerous tidal channels, this simplification leads to a systematic positional deviation of several meters or even tens of meters between the estimated coastline and the actual legally recognized shoreline, severely limiting the direct usability of remote sensing extraction results in coastal zone management practices. In summary, the key to breakthroughs in high-precision coastal waterline extraction technology lies in organically integrating the technical advantages of the above methods, overcoming their inherent limitations, and constructing a complete solution encompassing multi-source data adaptive fusion, robust extraction at weak edges, nonlinear tidal level correction, and systematic deployment.
[0057] The disadvantages of existing technologies are as follows:
[0058] I. Inherent limitations of traditional image processing methods.
[0059] Traditional image processing and physical model-driven methods encompass thresholding, edge detection, region growing, active contour models, and mathematical morphology. A common drawback of these methods is their heavy reliance on human experience to fine-tune parameters for specific regions and imaging conditions, lacking adaptive adjustment capabilities. Specifically, while thresholding is computationally simple, selecting the appropriate threshold is challenging, resulting in lower extraction accuracy. Edge detection works reasonably well on bedrock and artificial coastlines, but is highly susceptible to image noise, leading to broken or interrupted coastlines requiring complex post-processing steps to reconnect them. Active contour models offer relatively accurate results, but their high model complexity and computational burden, coupled with the direct impact of initial contour settings on convergence, make them ineffective at fully utilizing implicit information in large datasets. Furthermore, active contour methods are limited to simple images and have a narrow processing range. Cellular automata offer advantages in detecting silty coastlines but are unsuitable for widespread application and require multiple trials to determine the optimal threshold. Overall, the accuracy of traditional methods drops sharply when migrating across regions. Parameters optimized in one place can hardly be reused for shorelines under different landform types or environmental conditions, making it difficult to meet the basic requirements of robustness for algorithms in large-scale automated monitoring.
[0060] II. Systemic bottlenecks in deep learning methods.
[0061] In recent years, deep learning methods, represented by U-Net and its variants, DeepLabV3+ encoder-decoder architectures, have made significant progress in coastal waterline extraction, achieving an intersection-over-union (IoU) accuracy of 85% to 99% under ideal conditions. However, existing deep learning methods suffer from the following systemic shortcomings. First, their cross-regional generalization ability is severely insufficient. While existing deep learning methods demonstrate superior performance compared to traditional machine learning methods in terms of spatial accuracy, robustness to scene variability, and generalization ability across diverse landscapes, their segmentation performance degrades sharply when the model is transferred to coastal types or environmental conditions not adequately covered in the training data. Research indicates that U-Net requires a large amount of labeled data and has limited generalization ability to UAV imagery. This cross-regional generalization gap is the core bottleneck limiting the operational deployment of deep learning methods in coastal waterline extraction. Second, model selection lacks a systematic basis. Existing research on coastline extraction is dominated by U-Net variants, but most studies lack a systematic justification for choosing a specific architecture, often simply adopting popular models without in-depth analysis of their applicability in coastal environments. Third, the boundary-aware loss function is highly environment-dependent. The effectiveness of existing boundary-aware loss functions varies significantly under different coastal environmental conditions, and a unified boundary enhancement strategy is lacking to address the differentiated boundary characteristics of various shoreline types, such as bedrock, sandy, and silty shores. Fourth, the contradiction between the demand for high-resolution datasets and data scarcity is prominent. Deep learning methods heavily rely on large-scale, high-quality labeled data, but fine-grained labeling of coastal areas is extremely costly, especially for high-resolution remote sensing imagery. Pixel-by-pixel labeling is labor-intensive and requires high levels of expertise, becoming a significant bottleneck restricting model performance improvement.
[0062] III. Insufficiency of SAR-optical data fusion.
[0063] The collaborative utilization of multi-source remote sensing data is considered an important way to improve the accuracy and timeliness of coastal waterline extraction, but existing research has significant shortcomings in this area. On the one hand, optical remote sensing is severely limited by cloud cover; most existing satellite waterline extraction algorithms rely on optical satellite imagery, which requires cloud-free conditions to obtain a clear view of the land surface, significantly reducing data availability in cloud- and rainy coastal areas. On the other hand, while SAR imagery is unaffected by clouds, its interpretability is poor, and the identification of land-water boundaries is difficult, thus its adoption in satellite waterline extraction is far less widespread than that of optical imagery. Although various SAR-optical fusion methods, ranging from general linear regression to deep learning models, have been developed for optical image reconstruction, the applicability of these methods in coastline extraction has not been fully studied and validated.
[0064] At the technical implementation level, most existing research focuses on single remote sensing data sources, and the collaborative utilization of optical and SAR data is limited to image reconstruction or shallow feature stitching. An end-to-end, cross-modal feature-level deep fusion framework for waterline extraction tasks has not yet been established. Land-sea segmentation in SAR images faces two challenges: first, deep learning models are typically built based on the entire image rather than focusing on the land-sea transition zone, and high-resolution input, under the constraint of a fixed receptive field size, does not necessarily yield better segmentation results; second, the accuracy of traditional single-resolution models in SAR image waterline extraction still has significant room for improvement, and even with ensemble learning frameworks, significant errors still exist in practical applications.
[0065] IV. Precision defects of tide level correction methods.
[0066] Tide level correction from the instantaneous waterline to the legal coastline (mean high tide line) is a core step in coastline extraction, but existing methods suffer from significant accuracy issues. Previous research has clearly indicated that current remote sensing-based coastline extraction primarily relies on the instantaneous waterline, while tide level correction methods, though diverse, generally exhibit low accuracy. Traditional tide level correction methods are theoretically based on the oversimplified assumption of uniform shoreline slope, using linear interpolation of single tide gauge observations or tidal model grid data to correct the entire shoreline, completely ignoring the nonlinear morphological characteristics of the actual shoreline profile and the spatial zonation of tides. Although recent studies have introduced improved tide level correction methods based on equilibrium profile models, achieving higher accuracy than fitted linear tide level correction methods and traditional methods, these methods are still primarily applicable to specific shoreline types such as sandy beaches. Their universality and accuracy in complex shoreline areas such as silty coasts, river deltas, and areas with numerous tidal channels remain to be verified. In silty coastal areas with wide intertidal bands and numerous tidal channels, the assumption of uniform shore slope will lead to a systematic positional deviation of several meters or even tens of meters between the estimated coastline and the actual legal coastline, which seriously restricts the direct usability of remote sensing results in coastal zone management practices.
[0067] V. Insufficient systematic deployment and automation.
[0068] Existing research on coastal waterline extraction almost entirely focuses on improving the accuracy of the algorithms themselves, while there is a significant gap in engineering optimization and automated deployment at the system architecture level. From the perspective of the overall technology chain, current research lacks an adaptive adjustment mechanism for algorithm parameters driven by environmental parameters. Environmental parameters such as tide height, wave conditions, and lighting conditions at different imaging times significantly affect the representation of waterlines in remote sensing images. Existing methods generally use fixed parameters or fixed model weights, failing to dynamically optimize extraction strategies based on real-time environmental conditions. Regarding accuracy verification and quality control, existing methods are mostly one-time extractions, lacking a systematic mechanism for automatic matching and comparison of multi-source measured data. The accuracy evaluation of extraction results relies on manual sampling verification, failing to achieve online closed-loop correction and continuous optimization. In terms of computing architecture, large-scale, high-frequency monitoring of coastal zones generates massive amounts of remote sensing data. Existing research lacks edge-cloud collaborative computing solutions for conditions of limited communication bandwidth and limited computing power at the edge, making it difficult to support the needs of operational and large-scale practical applications.
[0069] In summary, existing methods for coastal waterline extraction suffer from a series of technical bottlenecks, including strong parameter dependence of traditional methods, weak cross-regional generalization ability of deep learning, insufficient fusion of multi-source data, low accuracy of tidal level correction, and inadequate systematic deployment and automation. These shortcomings are interconnected and progressive, constituting a systemic obstacle restricting the transition of this field from academic research to practical application. Therefore, breakthroughs in the entire technological chain, from adaptive fusion of multi-source data, robust extraction of weak edges, nonlinear tidal level correction to systematic deployment, are urgently needed.
[0070] Reference Figure 1 This application provides a method for extracting the coastal waterline, specifically including the following steps S100~S150:
[0071] S100: Construct a spatiotemporal proximity reference sample set based on historical samples that satisfy the spatiotemporal proximity constraint with the target image;
[0072] S110: Using the spatiotemporal proximity reference sample set as a priori constraint, feature extraction and fusion are performed on the preprocessed multi-source remote sensing data to obtain cross-modal fusion features;
[0073] S120: The cross-modal fusion features are deeply encoded using a Transformer-based hierarchical multi-scale feature fusion encoder to generate a hierarchical feature pyramid including multiple scales.
[0074] S130: Using the hierarchical feature pyramid as a condition, the preliminary waterline probability map is iteratively denoised and refined through a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold.
[0075] S140: Post-process and vectorize the binary segmentation map of the waterline to generate instantaneous waterline vector data with geographic coordinates;
[0076] S150: Based on the multi-factor nonlinear tide level correction method, the instantaneous waterline vector data is corrected to the mean spring tide high tide line to obtain the final coastal waterline.
[0077] Optionally, constructing a spatiotemporal proximity reference sample set based on historical samples that satisfy spatiotemporal proximity constraints with the target image includes the following steps:
[0078] A spatiotemporal proximity reference sample set is constructed based on historical samples that satisfy the spatiotemporal weighted distance with the target image; wherein, the spatiotemporal weighted distance includes spatial proximity and temporal proximity with different weight coefficients;
[0079] The method further includes the following steps:
[0080] The historical samples are subjected to quality assessment and screening; wherein the indicators of the quality assessment include the confidence score of the historical extraction results, the cloud coverage rate of the historical images, the imaging environment condition score, and the completeness of the overlap between the historical waterline and the geographical range of the target image.
[0081] Optionally, the step of using the spatiotemporal proximity reference sample set as a priori constraint to extract and fuse features from the preprocessed multi-source remote sensing data to obtain cross-modal fusion features includes the following steps:
[0082] The spatiotemporal proximity reference sample set is used as an auxiliary channel input, and features are extracted together with the preprocessed multi-source remote sensing data.
[0083] The method of using the spatiotemporal proximity reference sample set as a prior constraint is as follows: based on the historical waterline in the spatiotemporal proximity reference sample set, a prior probability map is constructed, and pixels in the prior probability map that are closer to the historical waterline are assigned a higher prior probability of the land-water boundary.
[0084] The steps for feature extraction include:
[0085] The hyperspectral or multispectral data in the multi-source remote sensing data are processed using a dimensionality reduction and compression method based on spectral theory to obtain spectral compressed features. Optical features and SAR features of the multi-source remote sensing data are extracted using a dual-branch encoder architecture, and the optical features and SAR features are enhanced and fused bidirectionally through a cross-modal attention mechanism. These features are then combined with the spectral compressed features to obtain the cross-modal fused features.
[0086] Optionally, the dimensionality reduction and compression method based on spectral theory specifically includes:
[0087] Each pixel of the hyperspectral or multispectral data is treated as a sample point in a high-dimensional space, and a spectral similarity map is constructed based on the spectral angular distance or Euclidean distance between pixels.
[0088] Calculate the Laplacian matrix of the spectral similarity map and perform eigenvalue decomposition, then select several eigenvectors corresponding to the minimum eigenvalues to form a low-dimensional embedding space;
[0089] The hyperspectral or multispectral data is projected into the low-dimensional embedding space to obtain the spectral compression features.
[0090] Optionally, the step of extracting optical and SAR features from the multi-source remote sensing data using a dual-branch encoder architecture, and then performing bidirectional feature enhancement and fusion on the optical and SAR features through a cross-modal attention mechanism, includes the following steps:
[0091] Using a feature map of a certain level in the optical branch as the query and a feature map of the same level in the SAR branch as the key and value, calculate the similarity matrix between the optical feature and the SAR feature;
[0092] The SAR features are injected into the optical features using a weighted summation method based on the similarity matrix;
[0093] By using reverse attention to inject the optical features into the SAR features, bidirectional feature enhancement is achieved.
[0094] Optionally, the step of iteratively denoising and refining the preliminary waterline probability map using the hierarchical feature pyramid as a condition and a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold includes the following steps:
[0095] The preliminary segmentation head is used to perform a forward inference on the hierarchical feature pyramid to output the preliminary waterline probability map.
[0096] Starting with the preliminary waterline probability map, and guided by the hierarchical feature pyramid as a conditional image feature, a noise prediction network is used for progressive reverse denoising. Each step of denoising predicts and removes noise components, ultimately generating the binary segmentation map of the waterline. In the reverse denoising process, a boundary-aware loss term is used to assign higher weights to the waterline boundary region.
[0097] Optionally, the method based on multi-factor nonlinear tide level correction corrects the instantaneous waterline vector data to the mean high tide line of spring tide to obtain the final coastal waterline, including the following steps:
[0098] By extracting multi-temporal remote sensing data of the same geographical area, the instantaneous waterline position sequence at different tide levels is obtained;
[0099] Several profile lines are set along the direction perpendicular to the coastline of the target shoreline. The intersections of each instantaneous waterline and each profile line are extracted to obtain discrete point pairs of tide height and horizontal position.
[0100] Based on the discrete point pairs, a nonlinear beach elevation profile model is constructed for each profile using piecewise polynomial fitting or cubic spline interpolation algorithms.
[0101] Substitute the elevation value of the mean high tide line into each profile model, calculate the planar position on each profile, and connect them sequentially to obtain the final coastal waterline.
[0102] The following section will provide a detailed introduction and explanation of the solutions in the embodiments of this application, using specific application examples.
[0103] The purpose of this application is to provide a method and system for extracting coastal waterline. This is achieved by constructing a spatiotemporal proximity adaptive learning module, a boundary refinement module guided by a diffusion model, a Transformer-based hierarchical multi-scale feature fusion module, a spectral compression and cross-modal feature alignment module, an environmental parameter adaptive extraction module, a multi-factor nonlinear tide level correction module, a multi-source measured data accuracy verification and closed-loop correction module, and an edge cloud collaborative deployment and online iterative optimization module. Based on these modules, a multimodal data acquisition and preprocessing platform, a high-precision waterline extraction engine, and an adaptive correction and verification system are built, forming a fully automated system from data acquisition, high-precision extraction, adaptive correction to efficient edge deployment, achieving accurate, robust, and efficient extraction of coastal waterline. The specific technical solutions provided in this application are as follows:
[0104] I. System Overall Architecture.
[0105] The coastal waterline extraction system proposed in this application adopts a layered modular architecture, consisting of three logical layers and a collaborative computing infrastructure layer. The layers are seamlessly connected and work collaboratively through standardized data interfaces and control command channels.
[0106] The system consists of: a multimodal data acquisition and preprocessing layer, responsible for acquiring and standardizing multi-source remote sensing data; a high-precision waterline extraction engine layer, which is the core algorithm layer of the system, completing the entire processing flow from feature extraction, cross-modal fusion, preliminary segmentation, boundary refinement to outputting instantaneous waterline vectors; an adaptive correction and verification layer, responsible for tide level correction, automatic accuracy verification, and closed-loop feedback optimization of the extraction results; and an edge cloud collaborative computing infrastructure layer, providing distributed computing resource scheduling and data transmission support for the above three layers.
[0107] II. Multimodal data acquisition and preprocessing platform.
[0108] The multimodal data acquisition and preprocessing platform is responsible for acquiring and standardizing raw data from various remote sensing sensors, providing high-quality, spatiotemporally unified data input for subsequent processing in this system. The platform comprises three sub-modules: a data access module, a data preprocessing module, and a data organization and management module.
[0109] The data access module is responsible for connecting to multi-source remote sensing data, including but not limited to satellite optical remote sensing data (covering multispectral and panchromatic images from Landsat series, Sentinel-2 series, domestic Gaofen satellite series, WorldView series, etc.), satellite SAR remote sensing data (covering C-band or X-band single-polarization or dual-polarization images from Sentinel-1, Gaofen-3, TerraSAR-X, etc.), UAV remote sensing data (covering high-resolution images and point cloud data collected by low-altitude remote sensing platforms equipped with multispectral cameras, hyperspectral imagers, or LiDAR lidar), and auxiliary environmental data (covering tidal level observation data at the time of imaging or forecast data from precise tidal models, nearshore meteorological data, wave data, etc.).
[0110] The data preprocessing module is responsible for standardizing various types of raw data. For optical remote sensing imagery, radiometric calibration, atmospheric correction, geometric fine correction, orthorectification, and cloud mask generation are performed sequentially. Atmospheric correction uses the FLAASH model or the 6S radiative transfer model for pixel-by-pixel correction. Geometric fine correction achieves sub-pixel-level registration based on orbital ephemeris parameters and ground control points. Cloud mask generation uses a deep learning-based cloud detection model to estimate the probability of cloud coverage pixel-by-pixel, marking cloud-covered areas as invalid regions and storing their confidence information. For SAR remote sensing imagery, thermal noise removal, radiometric calibration, multi-look processing, speckle filtering, and terrain correction are performed sequentially. The speckle filtering uses an adaptive filtering algorithm based on nonlocal means or wavelet transform to suppress speckle noise while preserving the texture details of land and water boundaries to the maximum extent. For UAV hyperspectral imagery, spectral calibration, radiometric calibration, and geometric correction are performed, and inertial measurement unit and GPS data are used to assist in geometric reconstruction. All preprocessed images are uniformly projected to the same geographic coordinate system and resampled to a uniform spatial resolution.
[0111] The data organization and management module is responsible for establishing a spatiotemporal index database. It organizes and manages preprocessed images in multiple dimensions according to geographic location (latitude and longitude grid encoding), imaging time (timestamp), sensor type (data source), and data quality level (cloud coverage, imaging condition score, etc.), supporting rapid retrieval and access based on spatiotemporal range and data quality constraints. This module also maintains a historical waterline data database, storing all extracted waterline vector data and its associated environmental parameters, accuracy evaluation indicators, and other metadata, providing prior data support for spatiotemporal proximity adaptive learning.
[0112] III. High-precision waterline extraction engine.
[0113] The high-precision waterline extraction engine is the core algorithm layer of this application embodiment, consisting of five key modules: a spatiotemporal proximity adaptive learning module, a spectral compression and cross-modal feature alignment module, a Transformer-based hierarchical multi-scale feature fusion encoder, a diffusion model-guided boundary refinement module, and a preliminary segmentation result generation and output module. These modules work together organically through cascaded data flows and control signals to complete the entire computation process from the original image to the high-precision waterline vector.
[0114] 3.1 Spatiotemporal Proximity Adaptive Learning Module.
[0115] The core function of the spatiotemporal proximity adaptive learning module is to dynamically retrieve and filter the most valuable spatiotemporal proximity samples from the historical waterline results database for the target image to be processed, and use these samples to adapt the subsequent deep learning model online or provide strong prior constraints, thereby solving the problem of insufficient generalization ability of existing methods under new regional and temporal conditions.
[0116] This module includes a spatiotemporal proximity sample retrieval submodule, a sample quality assessment and screening submodule, and an online adaptation submodule. The specific implementation is as follows: First, the spatiotemporal proximity sample retrieval submodule uses the geographic extent of the target image (a polygonal region defined by the coordinates of its four corner points) and the imaging time (a timestamp accurate to the minute) as query conditions to retrieve all historical records satisfying the spatiotemporal proximity constraint from the historical waterline results database. The measure of spatiotemporal proximity uses a custom-defined spatiotemporal weighted distance, comprehensively considering spatial proximity (Hausdorff distance or overlap ratio between two waterline polygons) and temporal proximity (absolute time difference between imaging times), assigning different weight coefficients. The search scope expands outwards layer by layer from the target image until a number of historical samples not less than a preset threshold are retrieved or the maximum search radius is reached. Then, the sample quality assessment and screening submodule performs multi-dimensional quality assessments on the retrieved historical samples. Assessment metrics include, but are not limited to: the confidence score of the historical extraction results (derived from the quality assessment module at the time of extraction), the cloud coverage rate of the historical image, the imaging environment condition score (considering the suitability of environmental parameters such as tide height, solar altitude angle, and wind speed), and the completeness of the overlap between the historical waterline and the geographical extent of the target image. All candidate samples are sorted in descending order based on the comprehensive quality score, and several top-ranked samples are selected to form a spatiotemporal proximity reference sample set. Finally, the online adaptation submodule uses this reference sample set to perform lightweight online adaptation of the subsequent segmentation model. The adaptation method is as follows: using the historical waterline in the reference sample set as a soft constraint prior, a prior probability map is constructed—pixels closer to the historical waterline are assigned a higher prior probability of the land-water boundary. This prior probability map is used as an auxiliary channel and input into the segmentation model along with the original remote sensing image bands; or a meta-learning strategy is adopted, using a small number of gradient update steps to allow the pre-trained model to quickly adapt to the data distribution characteristics of the target image. Unlike traditional methods that involve one-time training and fixed deployment, this module's online adaptation mechanism enables the model to dynamically utilize historical knowledge and tailor the optimal extraction strategy for each input image, thereby achieving high-precision generalization across regions and time phases.
[0117] 3.2 Spectrum compression and cross-modal feature alignment module.
[0118] The spectral compression and cross-modal feature alignment module is responsible for efficient feature extraction and modality fusion of high-dimensional multi-source remote sensing data, serving as a crucial bridge connecting multimodal data input with subsequent deep learning models. This module comprises a spectral compression submodule and a cross-modal feature alignment submodule.
[0119] The spectral compression submodule, designed for hyperspectral data or multispectral data with rich spectral bands, employs a dimensionality reduction compression method based on spectral theory to map high-dimensional spectral data to a low-dimensional feature space. Specifically, each pixel of the hyperspectral image is treated as a sample point in the high-dimensional space, and a spectral similarity map is constructed using the spectral angular distance or Euclidean distance between pixels. The Laplacian matrix is calculated on this map, and eigenvalue decomposition is performed. Several eigenvectors corresponding to the minimum eigenvalues are selected to form a low-dimensional embedding space. The original high-dimensional spectral data is projected into this embedding space to obtain the spectral-compressed feature representation. This compression process preserves the local neighborhood relationships and global manifold structure between pixels in the original high-dimensional spectral space, thereby effectively reducing data redundancy while maximizing the retention of spectral difference information that is crucial for distinguishing land and water boundaries. The spectral-compressed feature representation serves as one of the feature inputs for subsequent cross-modal fusion.
[0120] The cross-modal feature alignment submodule achieves feature-level deep fusion of optical remote sensing data (including compressed spectral features and raw RGB and near-infrared bands) and SAR remote sensing data. Unlike existing methods that perform simple stitching or weighted fusion at the pixel level, this submodule employs a dual-branch encoder architecture: the optical branch extracts spectral semantic features and spatial context features from the optical data, while the SAR branch extracts texture structure features and backscattering features unaffected by cloud cover from the SAR data. The two branches perform feature alignment and interaction at multiple feature levels through a cross-modal attention mechanism. Specifically, the cross-modal attention works as follows: using a feature map at a certain level of the optical branch as the query and a feature map at the same level or corresponding receptive field range of the SAR branch as the key and value, a similarity matrix between the optical and SAR features is calculated. Useful information from the SAR features is injected into the optical features through weighted summation, while semantic information from the optical features is injected into the SAR features using back attention, achieving bidirectional feature enhancement. Furthermore, this submodule introduces an internal learning mechanism based on historical time-series imagery: when cloud-covered areas exist in the target image, the spatiotemporal correspondence established between historical clear optical images and current SAR images within the same geographical area is utilized. A cross-modal mapping network is trained to learn the nonlinear transformation from SAR images to optical features, thereby enabling high-confidence reconstruction of the optical information of cloud-covered areas at the feature level. This cross-modal feature alignment method overcomes the limitations of weather-related constraints in optical remote sensing and the difficulties in SAR remote sensing interpretation, allowing for deep fusion and complementarity of the advantages of the two modalities at the feature level. This provides the subsequent segmentation network with feature inputs far superior to those from a single data source.
[0121] 3.3 Transformer-based hierarchical multi-scale feature fusion encoder.
[0122] The Transformer-based hierarchical multi-scale feature fusion encoder is responsible for deep encoding of the fused multimodal features, generating a hierarchical feature pyramid with strong semantic expressive power and accurate spatial localization capability. This encoder is the backbone structure of the core segmentation network in this application embodiment. Its design concept is to combine the global context modeling capability of the Transformer self-attention mechanism with the hierarchical multi-scale feature extraction structure to cope with the characteristics of large differences in the morphological scale and rich boundary details of the coastal waterline.
[0123] This encoder employs a hierarchical structure, divided into four stages from low to high resolution, with each stage containing several Transformer blocks. Unlike standard visual Transformers, the encoder in this embodiment uses a sliding window self-attention mechanism within each stage, dividing the feature map into several local windows and independently calculating self-attention within each window, thereby capturing local detail information while ensuring computational efficiency. Between different stages, spatial resolution is gradually reduced and the number of feature channels is increased through feature downsampling operations to form multi-scale feature representations. To achieve cross-scale feature fusion, the encoder sets a hierarchical multi-scale feature fusion module at the output of each stage. The fusion module works by adaptively weighting and fusing the feature map output from the current stage, the feature map from the previous stage (after upsampling), and the feature map from the next stage (after downsampling) through a spatial attention mechanism. The fusion weights are determined by the semantic importance of the feature maps themselves—for pixel locations that are difficult to distinguish, such as boundary regions and complex texture regions, the fusion module automatically assigns higher response weights to multi-scale features; for easily distinguishable regions such as uniform water bodies or land areas, it mainly relies on features at the current scale. This hierarchical, multi-scale feature fusion strategy enables the encoder to simultaneously capture the macroscopic trend of the waterline (through high-level semantic features) and the microscopic boundary details (through low-level texture features), thereby significantly improving the segmentation accuracy for complex shoreline morphologies and weak edge regions. The encoder ultimately outputs a hierarchical feature pyramid containing four scale levels for use by the subsequent decoder and diffusion model.
[0124] 3.4 Boundary refinement module guided by diffusion model.
[0125] The boundary refinement module guided by the diffusion model is a key innovative module in this application embodiment for achieving high-precision extraction of waterline boundaries. Unlike existing technologies that directly use semantic segmentation networks to output binary segmentation results, this application embodiment introduces a conditional diffusion model to perform probabilistic iterative refinement and global optimization of the initial waterline segmentation results, fundamentally solving the limitations of traditional segmentation networks in handling problems such as blurred boundaries, spectral confusion, and topological discontinuities. The basic principle of the diffusion model is: during the training phase, the model learns how to recover the original clear label map from a segmentation label map that has been progressively corrupted by added noise; during the inference phase, the model starts from a purely random noise map and, under the conditional guidance of the target image, it iteratively denoises through multiple steps to finally generate a high-quality segmentation result. In the specific implementation of this application embodiment, this module includes a diffusion model training submodule and a diffusion model inference submodule.
[0126] The workflow of the diffusion model training submodule is as follows: First, a training dataset is constructed, using preprocessed remote sensing imagery as conditional input and manually labeled or high-precision measured binary waterline segmentation maps as target labels. In each training iteration, noise is progressively added from the real label map according to a predefined Gaussian noise scheduling scheme, generating noisy label maps at different noise levels. The diffusion model uses a U-Net architecture as the noise prediction network. The network input consists of the noisy label map, the current noise time step, and conditional image features (provided by the hierarchical feature pyramid extracted by the aforementioned Transformer encoder). The network's task is to predict the noise components added to the label map at the current time step. By minimizing the mean square error between the predicted noise and the real noise, the model progressively learns the ability to recover a clean segmentation map from the noise. To ensure that the diffusion process pays special attention to the waterline boundary region, a boundary-aware loss term is introduced during training, assigning higher weights to pixels near the waterline, thus enabling the model to prioritize the recovery quality of the boundary region during the denoising process.
[0127] The workflow of the diffusion model inference submodule is as follows: First, the input image is subjected to a fast forward inference using the aforementioned Transformer encoder and a lightweight preliminary segmentation head (such as a single-layer convolutional classifier), outputting a coarse preliminary waterline probability map. This preliminary segmentation result serves as the prior initialization condition for the diffusion process, rather than iterating from pure noise, thus significantly reducing the number of denoising steps required. Then, starting with the preliminary waterline probability map, the diffusion model performs progressive reverse denoising according to the trained noise prediction network, guided by the conditions of the target image. In each denoising step, the noise prediction network integrates the current noisy segmentation map, the noise time step, and image features to predict and remove noise components, gradually recovering a clear, continuous, and sharp-boundary waterline segmentation map. During the denoising process, the conditional image features are applied to each level of the noise prediction network through a cross-attention mechanism, ensuring that the recovered waterline highly matches the actual boundary in the image. Finally, after a preset number of iterations for refinement, a high-confidence binary waterline segmentation map is output. Unlike existing semantic segmentation methods that output results only once, the diffusion model models the segmentation results globally from the perspective of probability distribution. This can effectively repair defects such as topological breaks, small-area voids, and blurred boundaries that may exist in the initial segmentation, and significantly improve the geometric integrity and boundary sharpness of the waterline extraction results.
[0128] 3.5 Preliminary segmentation result generation and output module.
[0129] The initial segmentation result generation and output module is responsible for converting the high-confidence binary waterline segmentation map output by the diffusion model into vectorized waterline data with real geographic coordinates. This module includes a raster post-processing submodule and a vectorization output submodule.
[0130] The raster post-processing submodule performs a series of post-processing operations on the binary segmentation map output by the diffusion model. First, adaptive thresholding is used to convert the probability map into a binary mask, with the threshold selected based on suggested parameters provided by the adaptive environmental parameter extraction module. Then, morphological closing operations are used to fill small holes in the segmentation results, and morphological opening operations are used to remove isolated noise patches. The structuring element size is automatically adjusted according to the spatial resolution of the image and the target shoreline type. Furthermore, a graph-based connected component analysis algorithm is used to identify and retain the largest continuous water body region as the main waterline boundary, while removing isolated water bodies or land fragments caused by missegmentation.
[0131] The vectorized output submodule converts the post-processed binary raster into a vector format waterline. First, an edge-tracking algorithm extracts the pixel sequence of the land-water boundary from the binary raster. Then, the Douglas-Peucker algorithm simplifies the extracted boundary pixel sequence into a polyline, reducing the number of vertices while maintaining geometric accuracy. Finally, the simplified polyline is transformed from the pixel coordinate system to the geographic coordinate system, generating instantaneous waterline vector data with real geographic coordinates. The output vector data also carries metadata information, including the timestamp of the extraction time, the data source type used, the confidence score of each segment of the waterline, and the core parameter settings used in the extraction process.
[0132] IV. Adaptive calibration and verification system.
[0133] The adaptive correction and verification system is responsible for scientifically correcting, verifying the accuracy of, and optimizing the instantaneous waterline vector data output by the high-precision waterline extraction engine, ensuring that the final results meet the high-precision requirements of coastal zone management for the statutory coastline. This system consists of three core modules: an adaptive environmental parameter extraction module, a multi-factor nonlinear tide level correction module, and a multi-source measured data accuracy verification and closed-loop correction module.
[0134] 4.1 Environmental Parameter Adaptive Extraction Module.
[0135] The core function of the adaptive environmental parameter extraction module is to dynamically adjust the key algorithm parameters of each module in the high-precision waterline extraction engine based on the environmental parameter vector of the target area at the imaging time, so that the entire system can always maintain the optimal extraction performance under different environmental conditions.
[0136] This module comprises an environmental parameter acquisition submodule, a parameter adaptation decision submodule, and an adaptation execution submodule. The environmental parameter acquisition submodule connects in real-time to multiple external data sources: tidal height data at the imaging time is obtained from tidal observation stations or precise tidal models; nearshore wave significant wave height, wind speed, and wind direction data are obtained from meteorological data platforms; solar altitude angle and azimuth angle data are obtained from solar position calculation models; and cloud cover index and imaging angle information are obtained from satellite imaging metadata. These multi-source environmental parameters are integrated into a multi-dimensional environmental parameter vector. The parameter adaptation decision submodule, based on this environmental parameter vector, outputs an adaptive parameter combination for the current environmental conditions through a pre-trained meta-learner. The training process of the meta-learner involves collecting environmental parameter records and their corresponding optimal parameter combinations from historical extraction tasks (annotated by human experts or obtained through grid search), constructing a mapping model from environmental parameters to algorithm parameters, enabling the meta-learner to predict reasonable algorithm parameters based on unseen environmental parameter combinations. The adaptation execution submodule dynamically adjusts several key parameters in the high-precision shoreline extraction engine based on the output of the meta-learner. These parameters include, but are not limited to: the number of denoising steps in the diffusion model boundary refinement module (increasing the number of denoising steps under conditions of blurred boundaries in low light or high sediment concentration to ensure sufficient refinement, and reducing the number of steps to improve efficiency under conditions of clear boundaries); the fusion weight allocation strategy in the hierarchical feature fusion module of the Transformer encoder (increasing the contribution ratio of multi-scale fusion in complex shoreline areas); the feature dimensions of the spectral compression submodule (adaptively adjusting the compression ratio according to data quality); and morphological operation parameters in raster post-processing. This module achieves environment-driven self-adjustment of algorithm parameters, enabling the same system to maintain optimal extraction results under different climatic conditions, tidal states, and lighting environments.
[0137] 4.2 Multi-factor nonlinear tide level correction module.
[0138] The multi-factor nonlinear tide level correction module is responsible for correcting instantaneous waterline vector data to the legal coastline position (usually the mean spring tide high tide line), solving the problem that existing tide level correction methods produce significant errors in complex beach areas due to the assumption of uniform slope.
[0139] This module comprises a multi-temporal waterline sequence construction submodule, a profile morphology adaptive modeling submodule, a tidal zone nonlinear correction submodule, and a coastline location inverse calculation submodule. The multi-temporal waterline sequence construction submodule first uses a high-precision waterline extraction engine to extract instantaneous waterlines from multi-temporal remote sensing images of the same geographic area, obtaining a sequence of waterline locations under different tidal levels. Each waterline is associated with the precise tidal level value at the time of imaging. The profile morphology adaptive modeling submodule sets several equally spaced profile lines along a direction perpendicular to the coastline direction on the target shoreline. The intersection points of each instantaneous waterline with the profile are extracted on each profile line, obtaining a set of discrete point pairs composed of tidal level and horizontal position. Based on this set of discrete points, the submodule automatically constructs a nonlinear shoreline elevation profile model of the profile using piecewise polynomial fitting or cubic spline interpolation algorithms. During the fitting process, the submodule first analyzes the distribution pattern of the discrete point sequence, automatically determines the profile type (straight line, convex upward, concave downward, or stepped), and selects the most suitable fitting function form based on the profile type. The tidal zone nonlinear correction submodule corrects the systematic error of a single tide gauge station representing the entire shoreline. This submodule connects to the regional precise tidal model, obtains the harmonic constants of multiple control points on the target shoreline, calculates the mean high tide level of each control point using harmonic analysis, and generates a continuous tidal reference surface along the entire shoreline using Kriging space interpolation. The coastline position inverse calculation submodule uses the mean high tide level obtained after tidal zone correction along the entire shoreline as the target elevation, substitutes it into the nonlinear shoreline elevation profile model of each profile, and solves for the precise planar position of the mean high tide point on each profile through inverse calculation. Finally, the mean high tide points calculated on all profiles are connected sequentially along the coastline direction to form the mean high tide line. The line is fused with the artificial coastline using spatial topology analysis to obtain the final remotely sensed coastline. Compared with existing methods that assume a uniform slope, this module fully considers the true nonlinear morphology of the shoreline profile and the spatial variation of tides, significantly improving the accuracy of tide level correction in complex areas such as silty coasts and river deltas.
[0140] 4.3 Multi-source measured data accuracy verification and closed-loop correction module.
[0141] The multi-source measured data accuracy verification and closed-loop correction module is the quality control center of the system in this application embodiment. It is responsible for automatically evaluating the accuracy of each extraction result and performing closed-loop optimization based on the evaluation results, fundamentally solving the problem of uncontrollable accuracy in existing methods.
[0142] This module comprises a multi-source verification data matching submodule, an error analysis and evaluation submodule, and a closed-loop correction feedback submodule. The multi-source verification data matching submodule automatically retrieves verification data sources that spatiotemporally match the waterline to be verified, including but not limited to: UAV LiDAR point cloud data from the same region and period (extracting the baseline waterline after filtering and separating ground points), high-precision real-time dynamic differential GPS measured cross-section data, long-term collected and calibrated baseline waterline sequences from video monitoring systems, and manually interpreted high-precision verification sample points. Through a spatiotemporal registration algorithm, the multi-source verification data and the satellite-extracted waterline are unified to the same coordinate system and time reference, eliminating comparison biases caused by differences in data sources and acquisition times. After completing data matching, the error analysis and evaluation submodule calculates the horizontal deviation distance between the extracted waterline and the verification data segment by segment along the waterline direction, generating an error distribution curve along the waterline direction. Based on the error distribution curve, the submodule further performs error pattern recognition: determining whether the deviation is mainly manifested as a systematic deviation (such as a uniform shift of the entire waterline towards land or sea) or a local random error (a large deviation only occurs in a specific shoreline section), and calculating key accuracy indicators, including average error, root mean square error, and error quantiles for each shoreline section. The closed-loop correction feedback submodule automatically triggers targeted correction strategies based on the error pattern recognition results. When a systematic deviation is detected, the submodule extracts the deviation parameters through regression analysis and feeds the correction amount back to the parameter space of the high-precision waterline extraction engine, such as adjusting the decision threshold for land-water classification or correcting the conditional guidance strength of the diffusion model. When a local random error is detected, the submodule uses a geographically weighted regression method for local adaptive correction, applying the correction amount only to shoreline sections with large errors to avoid interfering with correctly extracted areas. After the corrected waterline is updated, it can re-enter the accuracy verification process, forming a closed-loop iteration of "extraction—verification—correction—re-verification" until the accuracy meets the preset requirements. This closed-loop feedback mechanism enables the extraction accuracy of the system in this application embodiment to be self-monitored and continuously optimized during operation, greatly improving the reliability and accuracy stability in practical applications.
[0143] V. Edge cloud collaborative deployment and online iterative optimization.
[0144] Edge cloud collaborative deployment and online iterative optimization aim to solve the dual contradiction of the bottleneck of massive remote sensing data transmission and the limited computing power at the edge in large-scale, high-frequency coastal waterline monitoring.
[0145] 5.1 Edge cloud collaborative deployment architecture.
[0146] This application's embodiments employ a hierarchical collaborative architecture of edge-side preprocessing and coarse extraction, and cloud-based high-precision inference and continuous training. The system deploys computing modules of different granularities and complexities at the edge and in the cloud, respectively.
[0147] Edge computing is deployed at nodes close to the data source, such as onboard computing units of UAVs, edge servers at shore-based monitoring stations, or computing platforms mounted on buoys. The lightweight processing pipeline running at the edge includes: a data access and preprocessing module (performing basic processing such as radiometric calibration, geometric correction, and cloud detection); a lightweight feature extraction module (using MobileViT or a miniature Transformer network after model distillation to extract only low-level texture and edge features); and a region of interest (ROI) rapid localization module (based on water index thresholding or a lightweight classification network to quickly identify sub-regions in the image containing valid waterline information). After processing the original image as described above, the edge only uploads image slices and preliminary feature data corresponding to the ROI to the cloud, rather than transmitting the entire original image. The uploaded data volume is approximately 10% to 20% of the original image, thus significantly reducing the demand for transmission bandwidth and the pressure on cloud storage.
[0148] A high-performance computing cluster is deployed in the cloud to run the core high-precision inference pipeline of this application: a spectral compression and cross-modal feature alignment module, a Transformer-based hierarchical multi-scale feature fusion encoder, a diffusion model-guided boundary refinement module, and an adaptive correction and verification system. The cloud also undertakes the continuous training and updating of the model: using actual extracted data from the edge and high-quality edge line samples verified by a multi-source measured data verification module, the high-precision model in the cloud is periodically incrementally trained and its parameters fine-tuned. After training, the model is compressed into a lightweight version using knowledge distillation and then distributed to the edge for model updates, achieving online iterative improvement of edge inference capabilities.
[0149] The collaboration mechanism between the edge and the cloud is as follows: When the edge is processing a current task, the task scheduling module dynamically decides which subtasks to complete at the edge and which to upload to the cloud for processing, based on task priority and available computing resources. For emergency monitoring tasks with high timeliness requirements, lightweight extraction is prioritized at the edge to provide rapid response results; for routine investigation tasks with high accuracy requirements, the complete task chain is handed over to the cloud for processing. The preliminary extraction results at the edge also serve as prior initialization for high-precision processing in the cloud, accelerating the cloud inference process.
[0150] 5.2 Online iterative optimization mechanism.
[0151] The online iterative optimization mechanism is the core design of this system, enabling it to become more accurate with repeated use. The mechanism comprises the following closed-loop components: data acquisition (the edge continuously acquires new remote sensing images and corresponding environmental parameters, while simultaneously collecting multi-source measured verification data in key areas), extraction and verification (the edge and cloud respectively complete lightweight and high-precision extraction; the multi-source measured data accuracy verification module evaluates the extraction results and generates samples with precision annotations), sample screening and storage (the waterline extraction results that meet the preset accuracy standards, along with their corresponding original images, environmental parameters, and algorithm parameters, are stored in the historical waterline results database as reference samples for subsequent spatiotemporal proximity adaptive learning), incremental model training (the cloud periodically extracts new high-quality samples from the database and incrementally fine-tunes the high-precision model in conjunction with existing training data, gradually adapting the model to the feature distribution of new areas and changing environments), model distillation and distribution (the updated cloud model is compressed into a lightweight edge model through knowledge distillation and distributed to each edge node via a wireless communication network), and strategy parameter update (the error statistics of the multi-source measured data accuracy verification module are simultaneously fed back to the environmental parameter adaptive extraction module to update the parameter mapping relationship of the meta-learner, making parameter adaptive decision-making more accurate). Through the continuous operation of the above closed-loop mechanism, the system of this application embodiment can continuously accumulate experience, optimize the model, and adapt to changes during the actual operation after deployment, thereby achieving continuous improvement in extraction accuracy and overcoming the problem that the accuracy of traditional deep learning methods is fixed after deployment and cannot adapt to environmental changes.
[0152] In summary, the embodiments of this application include the following key technical solutions:
[0153] This paper presents a method for waterline extraction based on spatiotemporal proximity adaptive learning, comprising: constructing a historical waterline data database, and performing multi-dimensional spatiotemporal indexing of historical waterline vectors and their environmental parameters using geographic coordinate grid encoding, imaging timestamps, and data quality levels; for the target image to be processed, dynamically retrieving spatially and temporally proximity historical waterline samples using a custom spatiotemporal weighted distance as a metric, comprehensively considering the weighted combination of spatial Hausdorff distance and temporal difference; performing quality assessment and screening of the retrieved historical samples, constructing a comprehensive quality score ranking based on confidence score, cloud coverage, and imaging environmental conditions; generating a prior probability map as a soft-constraint auxiliary channel based on the selected high-quality spatiotemporal proximity sample set, which is then input into the subsequent segmentation model, or using a meta-learning strategy to update the pre-trained model online with a small amount of gradients to adapt it to the target image data distribution; thereby achieving online adaptive optimization of the model across regions and time phases, overcoming the limitation of insufficient generalization ability of traditional methods in new regions.
[0154] Furthermore, the spatiotemporal proximity sample retrieval adopts a multi-scale hierarchical search strategy, that is, taking the geographic range of the target image as the center, expanding the search radius outward layer by layer according to the preset spatial distance threshold and time interval, until the number of retrieved samples reaches the preset threshold or the maximum search radius limit; the spatiotemporal weighted distance comprehensively considers the weighted combination of the Hausdorff distance between two waterline polygons and the absolute time difference of the imaging time, and the spatial weight and temporal weight are adaptively adjusted according to the dynamic change rate of the shoreline in the target area.
[0155] Furthermore, a four-stage hierarchical Transformer encoder is constructed, with each stage containing multiple sliding window self-attention Transformer blocks to extract land-water boundary features at different resolution levels. Between each stage of the encoder, spatial resolution is progressively reduced and the number of feature channels is increased through feature downsampling, forming a multi-scale feature pyramid. A hierarchical multi-scale feature fusion module is set at the output of each stage, adaptively weighting and fusing the feature map of the current stage, the upsampled feature map of the previous stage, and the downsampled feature map of the next stage through a spatial attention mechanism. The fusion weights are dynamically determined by the semantic importance of the features at each pixel location, automatically enhancing the multi-scale feature response for blurred boundary regions and complex texture regions. The encoder's final output includes a hierarchical feature pyramid with multiple scale levels, while preserving both the macroscopic trend and microscopic boundary details of the waterline.
[0156] Furthermore, the sliding window self-attention Transformer block uses self-attention calculation within a local window instead of global self-attention. Each window independently calculates the attention weights between pixels, which reduces computational complexity while retaining the ability to model local boundary details. Adjacent windows achieve cross-window information interaction through a shift window mechanism, ensuring the global topological continuity of the waterline.
[0157] Furthermore, a conditional diffusion model is constructed as a boundary refiner for waterline segmentation. This includes: During the training phase, noise is progressively added to the ground-labeled binary waterline segmentation map according to Gaussian noise scheduling to generate a noisy label map. A U-Net-based noise prediction network predicts noise components from the noisy label map. The conditional inputs include remote sensing image features and noise time steps. A boundary-aware loss is introduced to assign higher weights to waterline boundary pixels, enabling the model to prioritize learning the denoising and recovery capabilities of boundary regions. During the inference phase, the coarse waterline probability map output by the initial semantic segmentation network is used as a priori initialization condition. Guided by the target remote sensing image features, a clear, continuous, and sharp-boundary waterline segmentation map is progressively recovered through iterative denoising. During denoising, conditional image features are applied to each layer of the noise prediction network through a cross-attention mechanism. This achieves the progressive reconstruction of high-precision waterline boundaries from noise, addressing the inherent shortcomings of traditional segmentation methods in handling blurred boundaries, spectral confusion, and topological discontinuities.
[0158] Furthermore, the preliminary waterline probability map is obtained by a Transformer encoder combined with a lightweight preliminary segmentation head to perform a fast forward inference on the input image, including a single-layer convolution classifier; using this preliminary segmentation result as the starting point for diffusion model inference instead of pure noise, the number of denoising steps required is greatly reduced, achieving a balance between boundary refinement and computational efficiency.
[0159] Furthermore, the training of the noise prediction network adopts a boundary-aware loss function, which calculates the weight coefficient of each pixel based on the distance between the pixel and the waterline boundary. The weight of pixels in the neighborhood of the waterline decreases as the distance increases, so that the model pays more attention to the segmentation quality of the boundary region during training, ensuring that the boundary clarity and topological continuity of the waterline are restored first during the denoising process.
[0160] This paper presents a hyperspectral water boundary feature extraction method based on spectral compression. For hyperspectral remote sensing images, a spectral similarity map based on spectral angular distance or Euclidean distance is constructed, using pixels as sample points in a high-dimensional space. The Laplacian matrix of this map is calculated and eigenvalue decomposition is performed. Several eigenvectors corresponding to the minimum eigenvalues are selected to form a low-dimensional embedding space. The original high-dimensional spectral data is projected into the low-dimensional embedding space to obtain the spectral compressed feature representation. This compression method preserves the local neighborhood relationships and global manifold structure of pixels in the original hyperspectral space during dimensionality reduction, reducing data redundancy while maintaining the spectral difference information required for water-land boundary discrimination. The spectral compressed feature representation, along with the original RGB and near-infrared bands, serves as the feature input for subsequent cross-modal fusion.
[0161] This paper presents a SAR-optical cross-modal feature-level deep fusion method for waterline extraction. It constructs a dual-branch asymmetric encoder architecture: the optical branch extracts spectral semantic features and spatial context features from multispectral / hyperspectral optical images, while the SAR branch extracts texture structure features and backscattering features from synthetic aperture radar images. The two branches perform bidirectional feature alignment and interaction at multiple feature levels through a cross-modal attention mechanism. Specifically, a similarity matrix is calculated using a feature map at a certain level of the optical branch as the query and the corresponding receptive field feature map of the SAR branch as the key and value. SAR features are then weighted and injected into the optical features, while optical semantic information is injected into the SAR features through back attention. Furthermore, an internal learning mechanism based on historical time-series images is introduced. Utilizing the spatiotemporal correspondence between historical clear optical images and current SAR images within the same geographical area, a cross-modal mapping network is trained to learn the nonlinear transformation from SAR images to optical features, enabling high-confidence reconstruction of optical information in cloud-covered areas at the feature level. This achieves deep fusion and complementary advantages of optical and SAR remote sensing at the feature level.
[0162] Furthermore, the cross-modal attention mechanism adopts a layer-by-layer alignment strategy, that is, cross-modal attention calculation is performed independently at multiple downsampling levels of the encoder, and the attention weight of each level is dynamically adjusted according to the feature representation capability of each modality at that scale; the alignment of texture details is emphasized in low-level features, and the alignment of semantic information is emphasized in high-level features, so as to achieve layered and progressive cross-modal feature enhancement.
[0163] Furthermore, based on the internal learning mechanism of historical time-series images, for areas covered by clouds in the current image, historical clear optical images of the same geographical area under cloudless conditions are retrieved from the historical waterline results database. Using the spectral features of the historical clear optical images as supervision signals and the current SAR image as input, the cross-modal mapping network is trained to output reconstructed optical features to replace invalid areas covered by clouds, ensuring the integrity and consistency of the input features of subsequent segmentation models.
[0164] This paper presents an adaptive method for waterline extraction based on environmental parameters. An adaptive extraction module is constructed, comprising: an environmental parameter acquisition submodule, which integrates multi-source environmental parameters such as tidal level data, nearshore wave significant wave height, solar altitude angle, and cloud cover index into a multi-dimensional environmental parameter vector; a parameter adaptation decision submodule, which maps the current environmental parameter vector to an adaptation parameter combination based on a pre-trained meta-learner trained on the correspondence between environmental parameters and optimal parameter combinations in historical extraction tasks; and an adaptation execution submodule, which dynamically adjusts the denoising steps of the diffusion model boundary refinement module according to the adaptation parameters output by the meta-learner—increasing the denoising steps to fully refine the boundary under blurred boundary conditions and reducing the steps to improve efficiency under clear boundary conditions. Simultaneously, it dynamically adjusts the fusion weight allocation strategy of the hierarchical multi-scale feature fusion module in the Transformer encoder, ensuring that the same system maintains optimal extraction performance under different climatic conditions, tidal states, and illumination environments.
[0165] Furthermore, the meta-learner adopts a multi-layer perceptron structure, with a multi-dimensional environmental parameter vector as input and an adaptation parameter vector as output, including the number of denoising steps, multi-scale fusion weight coefficients, and spectral compression feature dimensions. The training data of the meta-learner comes from historical extraction task records. Each record contains environmental parameters, the corresponding optimal parameter combination determined by human experts or grid search, and the final extraction accuracy index. The training aims to minimize the weighted mean square error between the predicted parameters and the actual optimal parameters.
[0166] This paper presents an automatic verification and closed-loop correction method for coastal waterline extraction accuracy based on multi-source measured data. It constructs an automatic matching and comparison module for multi-source verification data, automatically retrieving verification data sources that spatiotemporally match the waterline to be verified, including UAV LiDAR point cloud data, high-precision RTK-GPS measured cross-section data, and baseline waterlines from video monitoring systems. A spatiotemporal registration algorithm unifies the multi-source verification data and the satellite-extracted waterline to the same coordinate system and time reference. The horizontal deviation distance between the extracted waterline and the verification data is calculated segment by segment along the waterline direction, generating an error distribution curve along the waterline direction. Based on the error distribution curve, error patterns are identified, determining whether the deviation is systematic or local random. For systematic deviations, deviation parameters are extracted through regression analysis and fed back to the parameter space of the extraction algorithm to adjust the decision threshold or conditional guidance intensity. For local random errors, geographically weighted regression is used for local adaptive correction. The corrected waterline re-enters the accuracy verification process, forming a closed-loop iterative optimization mechanism of "extraction—verification—correction—re-verification," achieving continuous online optimization of the system's extraction accuracy.
[0167] Furthermore, error pattern recognition is achieved by analyzing the statistical characteristics of the error distribution curve: the mean, variance, and skewness of the error distribution curve are calculated; when the mean error deviates significantly from zero and the variance is small, it is determined to be a systematic deviation; when the variance of the error is large and shows local fluctuations, it is determined to be a local random error; closed-loop iterative optimization continues until the average error and root mean square error both meet the preset accuracy threshold, or the maximum number of iterations is reached.
[0168] This paper presents an edge-cloud collaborative coastal waterline extraction system architecture, employing a hierarchical collaborative architecture of edge-end preprocessing and coarse extraction, and cloud-based high-precision inference and continuous training. The edge is deployed on UAV-borne computing units, shore-based monitoring station edge servers, or buoy-mounted computing platforms, running data access and preprocessing, lightweight feature extraction based on MobileViT or model distillation-derived micro-Transformer networks, and a rapid region of interest (ROI) localization module based on the water index threshold method. Only ROI image slices are uploaded to the cloud, with the uploaded data volume not exceeding 20% of the original image. The cloud deploys a high-performance computing cluster, running a Transformer-based hierarchical multi-scale feature fusion encoder, a diffusion model-guided boundary refinement module, and a multi-factor nonlinear tidal level correction module. The cloud periodically uses high-quality, verified waterline samples returned from the edge to incrementally train the high-precision model, compressing it into a lightweight version through knowledge distillation before distributing it to the edge for updates. The system also includes a task scheduling module, dynamically allocating computing tasks between the edge and cloud based on task priority and available computing resources, achieving a balance between low-latency response and high-precision processing in large-scale, high-frequency monitoring.
[0169] Furthermore, the edge-end region of interest rapid localization module uses a lightweight water index thresholding method or a multi-class lightweight classification network to quickly scan the preprocessed image and identify sub-regions containing effective land-water boundary information; only image slices with boundary confidence scores higher than a preset threshold and their corresponding preliminary feature data are uploaded to the cloud, significantly reducing data transmission bandwidth and cloud storage pressure; the preliminary extraction results at the edge end also serve as prior initialization conditions for high-precision inference in the cloud, accelerating the cloud inference process.
[0170] Furthermore, the online iterative optimization mechanism includes: data acquisition stage—the edge continuously acquires new remote sensing images and environmental parameters; extraction and verification stage—the edge and cloud respectively complete lightweight and high-precision extraction, and the multi-source measured data accuracy verification module evaluates the results and generates samples with precision annotations; sample screening and storage stage—the waterline extraction results that meet the accuracy standards, along with their original images, environmental parameters, and algorithm parameters, are stored in the historical waterline results database; model incremental training stage—the cloud periodically extracts new high-quality samples from the database and incrementally fine-tunes the high-precision model by combining them with the original training data; model distillation and distribution stage—the updated cloud model is compressed into a lightweight edge model through knowledge distillation and distributed to each edge node; strategy parameter update stage—error statistics are fed back to the environmental parameter adaptive extraction module to update the parameter mapping relationship of the meta-learner.
[0171] Furthermore, the incremental training of the model adopts a selective replay strategy, sampling from the historical waterline results database in layers according to shoreline type, environmental conditions, and geographical region to ensure the diversity and representativeness of the incremental training samples; the learning rate of incremental training is set to one-tenth to one-hundredth of the initial training learning rate, and elastic weights are used to consolidate regularization constraints to prevent the model from catastrophically forgetting historical knowledge.
[0172] This paper presents a method for coastline tide correction that integrates multi-temporal waterline sequences and nonlinear shoreline profile modeling. A multi-factor nonlinear tide correction module is constructed, comprising: a multi-temporal waterline sequence construction submodule, which extracts instantaneous waterline positions from multi-temporal remote sensing images of the same geographic area to obtain waterline position sequences under different tide heights; and a profile morphology adaptive modeling submodule, which sets equally spaced profile lines along a direction perpendicular to the coastline, extracts the intersections of each instantaneous waterline with the profile, and automatically constructs a nonlinear shoreline elevation profile model based on discrete point pairs using piecewise polynomial fitting or cubic spline interpolation. Before fitting, the profile type is automatically determined. The model can be linear, convex upward, convex downward, or stepped, and the appropriate fitting function form can be selected according to the type; the tidal zone nonlinear correction submodule connects to the regional precise tidal model to obtain the harmonic constants of multiple control points, and generates a continuous tidal reference surface along the entire coastline through Kriging space interpolation; the coastline position inverse calculation submodule substitutes the mean spring tide high tide height after tidal zone correction into the nonlinear shoreline profile model, and solves the precise planar position of the mean spring tide high tide point on each profile through inverse calculation, and connects the points along the coastline to form the legal coastline; it breaks through the applicability limitations of the traditional uniform slope assumption in silty coasts and estuarine delta areas.
[0173] Furthermore, the automatic determination of the profile type is achieved by analyzing the distribution characteristics of the first and second differences of the discrete point pair sequence: when the first difference of the discrete point sequence is basically constant, it is determined to be linear; when the first difference is monotonically decreasing and the second difference is negative, it is determined to be convex upward; when the first difference is monotonically increasing and the second difference is positive, it is determined to be convex downward; when the first difference shows a sudden jump, it is determined to be step-like. Linear fitting is used for linear types, quadratic polynomial or cubic spline fitting is used for convex upward and convex downward types, and piecewise fitting is used for step-like types with continuity constraints set at the jump points.
[0174] Reference Figure 2 This application provides a coastal waterline extraction system, comprising:
[0175] The historical sample acquisition unit is used to construct a spatiotemporal proximity reference sample set based on historical samples that satisfy the spatiotemporal proximity constraint with the target image.
[0176] The feature fusion unit is used to extract and fuse features from the preprocessed multi-source remote sensing data using the spatiotemporal proximity reference sample set as a priori constraint, so as to obtain cross-modal fusion features.
[0177] The feature encoding unit is used to perform deep encoding of the cross-modal fusion features using a Transformer-based hierarchical multi-scale feature fusion encoder to generate a hierarchical feature pyramid including multiple scales.
[0178] The waterline segmentation unit is used to iteratively denoise and refine the preliminary waterline probability map using the hierarchical feature pyramid as a condition and a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold.
[0179] The waterline vectorization unit is used to post-process and vectorize the binary segmentation map of the waterline to generate instantaneous waterline vector data with geographic coordinates.
[0180] The waterline correction unit is used to correct the instantaneous waterline vector data to the mean high tide line based on the multi-factor nonlinear tide level correction method, so as to obtain the final coastal waterline.
[0181] It is understood that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0182] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this application are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0183] Furthermore, although this application is described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the functions and / or features may be integrated into a single physical system and / or software module, or one or more functions and / or features may be implemented in a separate physical system or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding this application. Rather, given the properties, functions, and internal relationships of the various functional modules in the system disclosed herein, the actual implementation of the module will be understood within the scope of ordinary skill of an engineer. Therefore, those skilled in the art can implement the application set forth in the claims using ordinary skill without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of this application, which is determined by the full scope of the appended claims and their equivalents.
[0184] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0185] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, system, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, system, or device). For the purposes of this specification, "computer-readable medium" can mean any system that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, system, or device.
[0186] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections with one or more wires (electronic systems), portable computer disk drives (magnetic systems), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic systems, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0187] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0188] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0189] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
[0190] The above is a detailed description of the preferred embodiments of this application, but this application is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.
Claims
1. A method for extracting the waterline of a coastline, characterized in that, The method includes the following steps: A spatiotemporal proximity reference sample set is constructed based on historical samples that satisfy the spatiotemporal proximity constraint with the target image; Using the spatiotemporal proximity reference sample set as a priori constraint, feature extraction and fusion are performed on the preprocessed multi-source remote sensing data to obtain cross-modal fusion features; The cross-modal fusion features are deeply encoded using a Transformer-based hierarchical multi-scale feature fusion encoder to generate a hierarchical feature pyramid that includes multiple scales. Using the aforementioned hierarchical feature pyramid as a condition, the preliminary waterline probability map is iteratively denoised and refined through a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold. The binary segmentation map of the waterline is post-processed and vectorized to generate instantaneous waterline vector data with geographic coordinates; Based on the multi-factor nonlinear tide level correction method, the instantaneous waterline vector data is corrected to the mean spring tide high tide line to obtain the final coastal waterline.
2. The method for extracting the coastal waterline according to claim 1, characterized in that, The step of constructing a spatiotemporal proximity reference sample set based on historical samples that satisfy spatiotemporal proximity constraints with the target image includes the following steps: A spatiotemporal proximity reference sample set is constructed based on historical samples that satisfy the spatiotemporal weighted distance with the target image; wherein, the spatiotemporal weighted distance includes spatial proximity and temporal proximity with different weight coefficients; The method further includes the following steps: The historical samples are subjected to quality assessment and screening; wherein the indicators of the quality assessment include the confidence score of the historical extraction results, the cloud coverage rate of the historical images, the imaging environment condition score, and the completeness of the overlap between the historical waterline and the geographical range of the target image.
3. The method for extracting the coastal waterline according to claim 1, characterized in that, The step of using the spatiotemporal proximity reference sample set as a prior constraint to extract and fuse features from preprocessed multi-source remote sensing data to obtain cross-modal fusion features includes the following steps: The spatiotemporal proximity reference sample set is used as an auxiliary channel input, and features are extracted together with the preprocessed multi-source remote sensing data. The method of using the spatiotemporal proximity reference sample set as a prior constraint is as follows: based on the historical waterline in the spatiotemporal proximity reference sample set, a prior probability map is constructed, and pixels in the prior probability map that are closer to the historical waterline are assigned a higher prior probability of the land-water boundary. The steps for feature extraction include: The hyperspectral or multispectral data in the multi-source remote sensing data are processed using a dimensionality reduction and compression method based on spectral theory to obtain spectral compressed features. Optical features and SAR features of the multi-source remote sensing data are extracted using a dual-branch encoder architecture, and the optical features and SAR features are enhanced and fused bidirectionally through a cross-modal attention mechanism. These features are then combined with the spectral compressed features to obtain the cross-modal fused features.
4. The method for extracting the coastal waterline according to claim 3, characterized in that, The dimensionality reduction and compression method based on spectral theory specifically includes: Each pixel of the hyperspectral or multispectral data is treated as a sample point in a high-dimensional space, and a spectral similarity map is constructed based on the spectral angular distance or Euclidean distance between pixels. Calculate the Laplacian matrix of the spectral similarity map and perform eigenvalue decomposition, then select several eigenvectors corresponding to the minimum eigenvalues to form a low-dimensional embedding space; The hyperspectral or multispectral data is projected into the low-dimensional embedding space to obtain the spectral compression features.
5. The method for extracting the coastal waterline according to claim 3, characterized in that, The method employs a dual-branch encoder architecture to extract optical and SAR features from the multi-source remote sensing data, and then uses a cross-modal attention mechanism to perform bidirectional feature enhancement and fusion on the optical and SAR features, including the following steps: Using a feature map at a certain level of the optical branch as the query and a feature map at the same level of the SAR branch as the key and value, calculate the similarity matrix between the optical feature and the SAR feature; The SAR features are injected into the optical features using a weighted summation method based on the similarity matrix; By using reverse attention to inject the optical features into the SAR features, bidirectional feature enhancement is achieved.
6. The method for extracting the coastal waterline according to claim 1, characterized in that, The process of using the hierarchical feature pyramid as a condition to iteratively denoise and refine the initial waterline probability map through a conditional diffusion model, generating a binary waterline segmentation map with a confidence level reaching a preset threshold, includes the following steps: The preliminary segmentation head is used to perform a forward inference on the hierarchical feature pyramid to output the preliminary waterline probability map. Starting with the preliminary waterline probability map, and guided by the hierarchical feature pyramid as a conditional image feature, a noise prediction network is used for progressive reverse denoising. Each step of denoising predicts and removes noise components, ultimately generating the binary segmentation map of the waterline. In the reverse denoising process, a boundary-aware loss term is used to assign higher weights to the waterline boundary region.
7. A method for extracting a coastal waterline according to any one of claims 1 to 6, characterized in that, The method based on multi-factor nonlinear tide level correction corrects the instantaneous waterline vector data to the mean high tide line of spring tide, obtaining the final coastal waterline, and includes the following steps: By extracting multi-temporal remote sensing data of the same geographical area, the instantaneous waterline position sequence at different tide levels is obtained; Several profile lines are set along the direction perpendicular to the coastline of the target shoreline. The intersections of each instantaneous waterline and each profile line are extracted to obtain discrete point pairs of tide height and horizontal position. Based on the discrete point pairs, a nonlinear beach elevation profile model is constructed for each profile using piecewise polynomial fitting or cubic spline interpolation algorithms. Substitute the elevation value of the mean high tide line into each profile model, calculate the planar position on each profile, and connect them sequentially to obtain the final coastal waterline.
8. A coastal waterline extraction system, characterized in that, The system includes: The historical sample acquisition unit is used to construct a spatiotemporal proximity reference sample set based on historical samples that satisfy the spatiotemporal proximity constraint with the target image. The feature fusion unit is used to extract and fuse features from the preprocessed multi-source remote sensing data using the spatiotemporal proximity reference sample set as a priori constraint, so as to obtain cross-modal fusion features. The feature encoding unit is used to perform deep encoding of the cross-modal fusion features using a Transformer-based hierarchical multi-scale feature fusion encoder to generate a hierarchical feature pyramid including multiple scales. The waterline segmentation unit is used to iteratively denoise and refine the preliminary waterline probability map using the hierarchical feature pyramid as a condition and a conditional diffusion model to generate a waterline binary segmentation map with a confidence level reaching a preset threshold. The waterline vectorization unit is used to post-process and vectorize the binary segmentation map of the waterline to generate instantaneous waterline vector data with geographic coordinates. The waterline correction unit is used to correct the instantaneous waterline vector data to the mean high tide line based on the multi-factor nonlinear tide level correction method, so as to obtain the final coastal waterline.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a program that is executed by a processor to implement the method as described in any one of claims 1 to 7.
