A zero-shot coastal beach remote sensing scene classification method and device
By generating specialized aliases through a large language model and a visually guided semantic enhancement mechanism, and combining training-independent dynamic adapters and meta-adaptors, the feature space of the pre-trained model is optimized, solving the semantic mismatch and domain shift problems in tidal flat remote sensing classification, and achieving high-precision unlabeled remote sensing scene classification.
Patent Information
- Application Number
- CN202611309492.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot effectively solve multiple problems in tidal flat scenarios, such as semantic mismatch, pseudo-label noise, domain offset, and lack of label constraints, resulting in low accuracy of tidal flat remote sensing classification and difficulty in achieving high-precision and timely dynamic monitoring.
By using a large language model to integrate prior geoscience knowledge to generate professional aliases, and by calibrating text-visual alignment through a visually guided semantic enhancement mechanism, combined with training-irrelevant dynamic adapters and meta-adaptors, high-confidence positive samples are dynamically cached, and the feature space of the pre-trained visual language model is optimized in real time to achieve the classification of beach and tidal flat scene.
It achieves high-precision remote sensing classification of tidal flats across regions, tide levels, and seasonal phases without manual annotation, significantly improving the problems of domain offset and false label noise, and enhancing the accuracy of tidal flat land cover classification.
Smart Images

Figure CN123142033A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the interdisciplinary fields of image classification, image recognition, remote sensing image processing, computer vision, artificial intelligence, deep learning, machine learning and geoscience analysis, especially for intelligent interpretation scenarios of dynamic and complex land features such as coastal tidal flats and coastal mudflats. Specifically, it involves a zero-sample classification method and device for remote sensing scenes such as tidal flats based on pseudo-labels to enhance visual language adaptation. Background Technology
[0002] Tidal flats, as a key coastal ecosystem, are widely distributed in river deltas and coastal mudflats, possessing important ecological functions and resource potential. They play a crucial role in ecological stability, biodiversity maintenance, pollution control, disaster prevention and mitigation, and land reserve. These land features are characterized by wide spatial distribution, alternating wet and dry periods, dynamic tidal changes, significant seasonal differences, blurred boundaries, and complex textural gradients. Furthermore, manual sampling and labeling in the field are difficult and costly. Utilizing remote sensing technology for scene classification is a core technical means to achieve large-scale, long-term dynamic monitoring of tidal flats. Traditional remote sensing classification methods based on convolutional neural networks rely on a large number of manually labeled samples, making it difficult to meet the practical application needs of tidal flat scenes that are constantly changing and new land feature types are emerging. In recent years, affected by both global warming and intensified coastal development, the spatial pattern of tidal flat areas has undergone frequent and dramatic dynamic changes. Therefore, high-precision and timely dynamic monitoring of these areas has become an important task for ecological protection and national land space governance.
[0003] Zero-shot classification methods based on the pre-trained visual language pre-trained model CLIP can identify unknown scenes without annotation, providing a new approach for classifying remote sensing scenes such as tidal flats. However, the CLIP model, pre-trained in a general domain, has significant shortcomings when dealing with specialized remote sensing scenes such as tidal flats: First, there is a serious text-visual semantic mismatch between general category names and the visual features of tidal flat features, and text encoding cannot activate the specialized visual modes of remote sensing images; Second, existing pseudo-label generation methods lack semantic calibration mechanisms for the tidal flat domain, and are affected by fuzzy samples from the intertidal zone and feature boundaries, resulting in noisy and unreliable pseudo-labels; Third, mainstream methods rely on static inference during the inference stage, which cannot adapt to the strong domain shift problem caused by different shore sections, tide levels, and seasonal phases; Fourth, they depend on domain-specific pre-training, complex generative networks, or course learning, resulting in high computational costs and difficult engineering deployment.
[0004] Current mainstream remote sensing solutions based on CLIP fine-tuning, as well as various solutions for transferring pre-trained models to remote sensing scenarios, do not focus on semantic enhancement to address the weak text-visual alignment problem. Therefore, general category names struggle to match the specialized visual characteristics of tidal flats, further exacerbating pseudo-label noise. Existing solutions include RS-CLIP models, which introduce CLIP models to automatically generate pseudo-labels and perform zero-shot classification workflows. TDA, on the other hand, is an adaptive approach for the testing phase of general visual models. Its native architecture includes positive and negative buffers, aiming to independently complete classification. The meta-adaptor, however, is natively designed for general image few-shot learning scenarios and must rely on manually labeled real support sets as visual priors. Neither of these solutions can independently adapt to the application requirements of label-free zero-shot monitoring of tidal flats.
[0005] Therefore, existing single-technology solutions and conventional module combinations cannot simultaneously solve multiple challenges in tidal flat scenarios, such as semantic mismatch, pseudo-label noise, domain offset, and lack of annotation constraints. There is an urgent need for a lightweight, fully automated, zero-shot classification method with geospatial semantic alignment capabilities and online adaptive capabilities to achieve high-precision remote sensing classification of tidal flats across regions, tidal levels, and seasonal phases. Summary of the Invention
[0006] This application provides a zero-sample remote sensing scene classification method and apparatus for coastal mudflats.
[0007] The technical solution provided in this application is as follows.
[0008] Firstly, a zero-sample coastal mudflat plot classification method is provided, including: Acquire an image dataset containing multiple types of remote sensing scenes; By leveraging a large language model and integrating prior geoscience knowledge, multiple professional aliases are generated for each type of remote sensing scene image in the image dataset, and a candidate pool of category aliases is constructed. The confidence scores of samples in the image dataset are predicted using a pre-trained visual language model. The average confidence score of each category is calculated and sorted. The categories and samples with the lowest ranking are selected as the text-visual weak alignment category set. The candidate words of the text-visual weak alignment category set are calibrated through a visually guided semantic enhancement mechanism to obtain the text embedding that fits the current category. A pre-trained visual language model is used to extract visual features from the images in the image dataset; the similarity between the visual features and the corresponding text embeddings is calculated, and high-confidence positive samples are dynamically cached; the categories corresponding to the high-confidence positive samples are used as pseudo-labels to construct a support set; The image data of the support set is used as a visual prior input meta-adaptor. The text category embeddings of the support set are aggregated through a cross-attention mechanism, and the feature space of the pre-trained visual language model is optimized in real time during the inference stage to achieve the classification of beach tidal flat scenes.
[0009] In one possible implementation, the utilization of prior geoscientific knowledge fused with a large language model includes: Structured prompts are constructed based on the names of each type of scenario, geoscientific knowledge, and prior geoscientific knowledge. The prompt words are input into a large language model, which guides the model to understand the semantics of the scene by combining the morphological characteristics and spatial distribution patterns of intertidal landforms. A preset number of professional aliases are generated for each type of remote sensing scene, and all aliases are merged into the category alias candidate pool.
[0010] In one possible implementation, the formula for calculating the average confidence level is as follows:
[0011] in, Let i be the average confidence level for category i. The initial prediction is a category. The test sample set, The class probabilities output by CLIP Let j represent the j-th test sample image, where j represents the test sample index.
[0012] In one possible implementation, the calibration of candidate words in the text-visual weak alignment category set through a visually guided semantic enhancement mechanism to obtain a text embedding adapted to the current category includes: The candidate word scores for the corresponding categories in the text-visual weak alignment category set are calculated using a composite scoring function. The composite scoring function is as follows:
[0013] in, This represents the average confidence level of the samples corresponding to the alias. For the sample size, This is a sample balance penalty term, where 'a' represents an alias. Based on the candidate word scores, the optimal alias is obtained and adapted to the text embedding of the current category;
[0014] In the formula, As the best alternative name, This represents a set of candidate aliases.
[0015] In one possible implementation, calculating the similarity between the visual features and the corresponding text embeddings, and dynamically caching high-confidence positive samples, includes: Using the Training Independent Dynamic Adapter (TDA) mechanism, the similarity between the visual features and the corresponding text embeddings is calculated, and the predicted probability distributions for each category are obtained after normalization. Based on the predicted probability distribution, the category corresponding to the maximum probability is used as the pseudo-label; A positive sample cache is constructed using key-value pairs with visual features as keys and pseudo-labels as values. The positive sample cache is used to store positive pseudo-label samples with high reliability of prediction results. When the cache reaches the preset limit, the key-value pairs in the cache are dynamically updated based on the predicted entropy.
[0016] High-reliability positive samples are cached to generate corresponding category pseudo-labels, and a support set is constructed.
[0017] In one possible implementation, the step of using the image data of the support set as a visual prior input meta-adaptor, aggregating the text category embeddings of the support set through a cross-attention mechanism, and optimizing the feature space of the pre-trained visual language model in real time during the inference phase to achieve beach tidal flat scene classification includes: The sample images and corresponding category labels in the support set are input into the CLIP visual encoder and the CLIP text encoder, respectively; the corresponding visual features are extracted by the CLIP visual encoder, and visual cache features are constructed according to the category labels to provide visual priors of the target remote sensing scene for the meta-adaptation process; the corresponding text category embeddings are generated by the CLIP text encoder. By using the meta-adapter, text category embeddings and visual cached feature information are fused based on the original cross-attention mechanism to obtain a category representation of the fused target remote sensing scene visual features; The gated residual update mechanism in the Meta-adapter is adopted to optimize the fused category representation; The optimized CLIP feature space is used to calculate the image-text matching degree and output the final classification result, thus achieving zero-shot classification of coastal mudflat remote sensing scenes.
[0018] Furthermore, the gated residual update mechanism in the Meta-adapter is used to optimize the fused category representation, including: Based on the information difference between the category representation of the fused target remote sensing scene visual features and the original category text embedding, a life gate weight is used to adaptively adjust the fusion ratio of visual information through a gating function; The weighted visual enhancement representation is fused with the original CLIP text category embedding using a residual connection method to obtain an optimized category embedding representation.
[0019] Secondly, a zero-sample coastal mudflat scene classification device is provided, including: The acquisition module is used to acquire image datasets containing multiple types of remote sensing scenes; The first construction module is used to leverage a large language model to integrate prior geoscience knowledge and generate multiple professional aliases for each type of remote sensing scene image in the image dataset, thereby constructing a category alias candidate pool. The calibration module is used to predict the confidence of samples in the image dataset using a pre-trained visual language model, calculate the average confidence of each category and sort them, select the category and samples with the lowest ranking as the text-visual weak alignment category set; and calibrate the candidate words of the text-visual weak alignment category set through a visually guided semantic enhancement mechanism to obtain the text embedding that fits the current category. The second construction module is used to extract visual features from the images in the image dataset using a pre-trained visual language model; calculate the similarity between the visual features and the corresponding text embeddings, and dynamically cache high-confidence positive samples; and construct a support set by using the categories corresponding to the high-confidence positive samples as pseudo-labels. The output module is used to take the image data of the support set as a visual prior input meta-adaptor, aggregate the text category embeddings of the support set through a cross-attention mechanism, and optimize the feature space of the pre-trained visual language model in real time during the inference stage to achieve the classification of beach tidal flat scene.
[0020] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the zero-sample coastal mudflat scene classification method as described in the first aspect.
[0021] Fourthly, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the zero-sample coastal mudflat scene classification method as described in the first aspect.
[0022] The beneficial effects of this application are as follows: The method provided in this application requires no manual annotation throughout the entire process, can be adapted to tidal flat images of different shorelines, tide levels, and seasonal phases, effectively solves problems such as blurred ground feature boundaries and domain offset, and has excellent classification accuracy. It has important application value in the fields of coastal zone resource surveys and coastal wetland protection.
[0023] The method provided in this application can significantly improve the domain offset phenomenon and greatly enhance the classification accuracy of tidal flat features with complex shapes and blurred boundaries. Attached Figure Description
[0024] Figure 1 A flowchart illustrating the zero-sample remote sensing scene classification method for coastal mudflats and other objects that combines pseudo-labels with enhanced visual language adaptation, as provided in the embodiments of this application. Figure 2Network diagram of the zero-shot remote sensing scene classification method combining pseudo-labels to enhance visual language adaptation provided in the embodiments of this application; Figure 3 The semantic enhancement network graph provided for embodiments of this application; Figure 4 The dataset provided in this application includes a set of coastal mudflat sample images; Figure 5 A schematic diagram of the structure of the zero-sample remote sensing scene classification method for coastal mudflats and other remote sensing scenes provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] In the description of this application, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid unnecessarily obscuring the description of this application. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0027] Existing remote sensing scene classification methods for coastal mudflats cannot simultaneously solve multiple problems such as semantic mismatch, pseudo-label noise, domain offset, and lack of annotation constraints in mudflat scenes.
[0028] In view of this, this application provides a zero-sample coastal mudflat remote sensing scene classification method and system device that combines pseudo-labels to enhance visual language adaptation.
[0029] See Figure 1 The zero-shot remote sensing scene classification method for coastal mudflats and other similar locations, which combines pseudo-labels with enhanced visual language adaptation, provided in this application embodiment, includes: S100: Obtain an image dataset containing multiple types of remote sensing scenes; S200. Using a large language model to integrate prior knowledge of geosciences, generate multiple professional aliases for each type of remote sensing scene image in the image dataset, and construct a category alias candidate pool. S300. Utilize a pre-trained visual language model to predict the confidence level of samples in the image dataset, calculate the average confidence level of each category and sort them, and select the category and samples with the lowest ranking as the text-visual weak alignment category set; calibrate the candidate words of the text-visual weak alignment category set through a visually guided semantic enhancement mechanism to obtain the text embedding that fits the current category. S400. Use a pre-trained visual language model to extract visual features from the images in the image dataset; calculate the similarity between the visual features and the corresponding text embeddings, and dynamically cache high-confidence positive samples; use the categories corresponding to the high-confidence positive samples as pseudo-labels to construct a support set; S500: The image data of the support set is used as a visual prior input meta-adaptor. The text category embeddings of the support set are aggregated through a cross-attention mechanism. The feature space of the pre-trained visual language model is optimized in real time during the inference stage to achieve the classification of beach tidal flat scene.
[0030] In one possible implementation, in S100, the various remote sensing scenes include tidal flat scenes, beach scenes, woodland scenes, water body scenes, farmland scenes, port scenes, building scenes, airport scenes, and bridge scenes, etc.
[0031] See Figure 2 This is a schematic diagram of the overall network structure of the zero-sample remote sensing scene classification method for coastal mudflats and other remote sensing scenes that combines pseudo-labels to enhance visual language adaptation, as provided in the embodiments of this application.
[0032] Specifically, in S100, this application embodiment selects four mainstream publicly available remote sensing datasets: UCM21, WHU-RS19, NWPU-RESISC45, and AID-30. These datasets cover a wide range of typical land features, including buildings, roads, farmland, woodland, water bodies, tidal flats, beaches, ports, airports, bridges, and wetlands, providing a rich variety of scene types. This allows for a thorough verification of the classification effectiveness and generalization ability of this application embodiment for tidal flat scenes.
[0033] In one possible implementation, S200 includes: S210. Construct structured prompt words based on the names of each type of scenario, geoscientific knowledge, and prior geoscientific knowledge; S220. Input the prompt words into the large language model, guide the model to understand the scene semantics by combining the morphological characteristics and spatial distribution patterns of intertidal landforms, generate a preset number of professional aliases for each type of remote sensing scene, and merge all aliases into the category alias candidate pool.
[0034] Specifically, in S210, the geoscience knowledge includes coastal geomorphology, tidal dynamics, and remote sensing image interpretation standards, etc.
[0035] Specifically, candidate aliases prioritize expressions that conform to remote sensing visual characteristics, highlighting the morphology, texture, structure, and spatial distribution of land features, while avoiding the use of generic, colloquial names. For example, for the category "beach," professional expressions such as "beach," "sand beach," "tidal flat," and "shore shoal" are generated to match the remote sensing imagery, providing professional textual support for subsequent semantic alignment. Step S200 establishes a professional semantic system adapted to the characteristics of coastal mudflat land features from a textual perspective, laying the foundation for subsequent accurate text-visual alignment and high-quality pseudo-label generation.
[0036] In one possible implementation, S300 includes: S310. Use a pre-trained visual language model to predict the category and confidence level of samples in the image dataset, and calculate the average confidence level of each category.
[0037] Furthermore, the pre-trained visual language model is called Contrastive Language-Image Pre-training, or CLIP for short.
[0038] Furthermore, the formula for calculating the average confidence level is as follows:
[0039] in, Let i be the average confidence level for category i. The initial prediction is a category. The test sample set, The class probabilities output by CLIP Let j represent the j-th test sample image, where j represents the test sample index.
[0040] It should be noted that in S310, the categories are the original categories. For example, "beach", "sand beach", "tidal flat", and "shore shoal" are all beach categories.
[0041] S320. Sort the average confidence scores of each category from high to low, and select the category with the lowest ranking and its samples as the text-visual weak alignment category set.
[0042] Furthermore, the ranking is determined by a fixed percentage at the end. For example, in the WHU_RS19 dataset, there are a total of 19 categories, and the categories at the end, truncated at 20%, are 'Meadow', 'Commercial', and 'Viaduct'.
[0043] S330. The candidate words of the text-visual weak alignment category set are calibrated through a visually guided semantic enhancement mechanism to obtain a text embedding that fits the current category.
[0044] Furthermore, S330 includes: S331. Calculate the candidate word scores for the corresponding categories of the text-visual weak alignment category set using a composite scoring function; The composite scoring function is as follows:
[0045] in, This represents the average confidence level of the samples corresponding to the alias. For the sample size, This is a sample balance penalty term. a Indicates an alias; The penalty is calculated using the following formula:
[0046] in, C represents the total number of test samples and C represents the total number of categories. S332. Based on the candidate word scores, obtain the optimal alias and adapt it to the text embedding of the current category;
[0047] In the formula, As the best alternative name, This represents a set of candidate aliases.
[0048] See Figure 3 This illustrates the visual guidance semantic enhancement process provided in an embodiment of this application.
[0049] It should be noted that for each category, all samples initially identified as belonging to the current category by the model are statistically analyzed, and the average predicted probability of these samples is calculated as the alignment confidence score between that category and the visual features. The lower the confidence score, the worse the match between the category name and the visual features of the remote sensing image. All categories are sorted from high to low confidence scores, and categories with a fixed percentage (e.g., 20%) at the bottom are identified as text-visual weak alignment categories. These categories are usually too generic in name and cannot effectively activate the specialized visual patterns in the remote sensing image, resulting in blurred model predictions and severe category confusion, which is particularly prominent in scenes with soft boundaries and irregular shapes, such as beaches, mudflats, and wetlands. For the identified weak alignment categories, the optimal specialized term is automatically selected from the specialized alias candidate pool constructed in step 200 according to the unsupervised composite scoring rule. The scoring rules for candidate aliases incorporate three key indicators: first, confidence, reflecting the reliability of the model's predictions when using the alias; second, coverage, reflecting the number of valid samples that the alias can stably match; and third, balance constraints, used to suppress excessive sample attraction by a single alias and avoid class distribution imbalance. This step calculates the comprehensive score for each candidate alias sequentially, selects the alias with the highest score as the optimal term for that weakly aligned category, and inputs it into the CLIP text encoder to generate a more specialized text embedding suitable for remote sensing scenarios. For categories with high confidence and good semantic alignment, the original name is directly retained to avoid unnecessary perturbation.
[0050] Meanwhile, the optimal professional alias is only used for similarity calculation between images and text. The final output classification result will still be mapped back to the original category label of the dataset, ensuring that the label space, data format and general evaluation criteria are fully compatible, without introducing additional annotations or changing the evaluation process.
[0051] In one possible implementation, S400 includes: S410. Use CLIP image encoder to extract visual features of images in the image dataset.
[0052] Furthermore, the CLIP image encoder employs a Vision Transformer (ViT) architecture. Preferably, it is ViT-L / 14.
[0053] S420. Calculate the similarity between the visual features and the corresponding text embeddings, and dynamically cache high-confidence positive samples.
[0054] Furthermore, the S420 includes: S421. Using the Training-Free Dynamic Adapter (TDA) mechanism, calculate the similarity between the visual features and the corresponding text embeddings, and obtain the predicted probability distribution for each category after normalization. S422. Based on the predicted probability distribution, the category corresponding to the maximum probability is used as the pseudo-label; S423. Use key-value pairs with visual features as keys and pseudo-labels as values to construct a positive sample cache; the positive sample cache is used to store positive pseudo-label samples with high reliability of prediction results. S424. When the cache reaches the preset limit, the key-value pairs in the cache are dynamically updated according to the predicted entropy.
[0055] S430. Generate corresponding category pseudo-labels from the cache of highly reliable positive samples and construct a support set.
[0056] Furthermore, in S421, the TDA has a positive cache filtering architecture.
[0057] Furthermore, in S424, when the cache reaches a preset upper limit, the positive cache prioritizes retaining high-reliability samples with lower prediction entropy and replaces samples with higher prediction entropy with low-entropy samples.
[0058] Furthermore, in S430, the support set includes a pseudo-label support set containing sample images and their corresponding category labels.
[0059] Understandably, the S400 uses the training-free dynamic adaptation mechanism (TDA) to dynamically predict and filter input samples during the testing phase. Under conditions of no manual annotation and offline fine-tuning, it dynamically filters samples from the tidal flat image test stream to construct a high-purity, evenly distributed pseudo-label support set, providing reliable visual priors for downstream meta-adaptors.
[0060] To ensure the reliability of the pseudo-labels, this step adopts a positive caching architecture within TDA, using a key-value pair storage format with visual features as keys and pseudo-labels as values, and setting a maximum cache capacity for each category. When the cache is not full, high-confidence samples are directly stored; once the cache reaches its limit, it is updated according to the entropy minimization principle, retaining low-entropy samples with more certain predictions and lower noise, replacing high-entropy samples with ambiguous predictions and low confidence, ensuring that the cache always retains the most reliable and representative samples. During cache maintenance, the number of samples in each category is strictly balanced to avoid one category excessively occupying cache space. Outliers, low-confidence fragments, samples with blurred boundaries, and easily confused ground feature samples are removed, resulting in a pseudo-label support set with high purity, high confidence, balanced distribution, and strong representativeness. This pseudo-label support set is generated entirely in real-time during the inference phase, without relying on any manual annotation, offline fine-tuning, or domain-specific pre-training, providing a stable and clean visual prior for subsequent lightweight meta-adaptors. This step utilizes high-quality pseudo-labels generated by TDA to construct a support set, which replaces the manually labeled support set in the original Meta-adapter, facilitating subsequent information aggregation.
[0061] In one possible implementation, S500 includes: S510. Input the sample images and corresponding category labels from the support set into the CLIP visual encoder and the CLIP text encoder, respectively; extract the corresponding visual features through the CLIP visual encoder, and construct visual cache features according to the category labels to provide visual priors of the target remote sensing scene for the meta-adaptation process; generate the corresponding text category embedding through the CLIP text encoder.
[0062] S520: Using the Meta-adapter, the text category embedding and visual cache feature information are fused based on the original cross-attention mechanism to obtain the category representation of the fused target remote sensing scene visual features.
[0063] Further, S520 includes: using the text category embedding as the query vector Query, and the visual cache features as the key vector Key and value vector Value; calculating the correlation between the text category embedding and the visual cache features to obtain the corresponding correlation weights, and normalizing the correlation weights; and weighting and aggregating the visual cache features according to the normalized correlation weights, so that the visual cache features with higher semantic relevance to the current target category receive higher aggregation weights, and reducing the influence of visual cache features with lower semantic relevance to the current target category on the aggregation result, thereby obtaining the aggregated visual features corresponding to the target category.
[0064] It is evident that the S500 can narrow the gap between the CLIP general semantic space and the visual distribution in the remote sensing field, enabling text categories to embed visual information of remote sensing scenes such as tidal flats from adaptively learned pseudo-labels, making the text expression more in line with the visual characteristics of real remote sensing images.
[0065] S530 adopts the gated residual update mechanism in the Meta-adapter to optimize the fused category representation.
[0066] Furthermore, the S530 includes: S531. Based on the information difference between the category representation of the fused target remote sensing scene visual features and the original category text embedding, the fusion ratio of visual information is adaptively adjusted through a gating function. S532. The weighted visual enhancement representation is fused with the original CLIP text category embedding using a residual connection method to obtain the optimized category embedding representation.
[0067] Understandably, the S530, while retaining the original semantic knowledge of CLIP, improves the adaptability of the categorical text representation to the visual features of the target remote sensing scene. It uses the category embedding optimized by the Meta-Adapter to calculate the similarity between the visual features of the sample to be classified, obtaining a classification result adapted to the target remote sensing scene. Therefore, while preserving the general semantic knowledge of CLIP, it can improve the matching accuracy between the visual features of subsequent samples and the category semantics, enhancing the model's professional perception ability of gradually changing, weakly boundary features such as beaches, wetlands, water bodies, and woodlands, and enabling a stronger match between text embeddings and visual features.
[0068] During the inference process, the meta-adaptor updates its parameters online batch by batch with the test samples, continuously reducing the distribution differences between the model and tidal flat images under different shore sections, tide levels, and seasonal phases, effectively alleviating the domain offset problem.
[0069] S540. Calculate the image-text matching degree using the optimized CLIP feature space, output the final classification result, and achieve zero-shot classification of coastal mudflat remote sensing scenes.
[0070] Understandably, the meta-adaptor, in its original design, is for small-sample classification tasks, relying on manually labeled real support sets as visual priors. It cannot run directly in completely unlabeled scenarios. TDA (Transformative Data Acquisition) is applicable to general natural images, aiming to independently complete classification. The positive cache design in this application serves to collaboratively reduce noise, both contributing to the direct output of classification results. When directly transferred to zero-sample remote sensing scenes of coastal mudflats, a neighborhood shift occurs, making high-precision zero-sample mudflat classification impossible when used alone. The positive cache design of TDA effectively filters out high-quality samples, storing high-confidence, low-entropy test sample features plus positive and false labels in the positive cache.
[0071] The method provided in this application fundamentally transforms the functional positioning of TDA, reconstructing it from an independent classification tool into a pseudo-label generation unit. Combined with the Visual Guided Semantic Augmentation (VSAS) mechanism for remote sensing scenes, it reduces domain bias from the text dimension, essentially improving the prediction performance of the CLIP model. Furthermore, it fully utilizes TDA's complete dynamic positive and negative cache filtering mechanism, further using its positive cache to generate higher-quality pseudo-labels as a Meta-adapter support set. The Meta-adapter is then migrated from small-sample labeled scenarios to zero-sample unlabeled scenarios. After online feature correction and optimization, the Meta-adapter further enhances the prediction credibility of the next batch of samples. Thus, the method provided in this application, based on CLIP, through process fusion and optimization design, enables TDA, VSAS, and Meta-adapter to work synergistically across the entire chain, achieving full-link zero-sample complex scene recognition and classification.
[0072] The following describes the test results and findings of the method provided in the embodiments of this application.
[0073] The model obtained by the aforementioned method is used for testing in the embodiments of this application.
[0074] See Figure 4 This shows a sample image of the coastal mudflat remote sensing field dataset used in the embodiments of this application.
[0075] Test method: This embodiment follows a zero-shot classification setting, with no manually labeled training set. The pseudo-labeled samples generated by TDA are only used to construct the visual cache support set required for the Meta-adapter inference stage and do not participate in model parameter training. Final performance is evaluated on an independent real-label test set. Specifically, this embodiment employs a transductive zero-shot classification setting, allowing the model to construct a pseudo-label support set using unlabeled samples from the target domain during the testing phase. However, all samples do not use manual labels, and the final results are still independently evaluated using real labels.
[0076] Table 1
[0077] Note: Test acc. (%) indicates the test accuracy.
[0078] Table 1 shows the test results of the three model algorithms on four independent test sets. CLIP represents the baseline results, and the TDA model is the CLIP model enhanced with TDA inference. The test results demonstrate that the method provided in this application significantly improves the domain shift phenomenon and greatly enhances the classification accuracy of tidal flat features with complex morphology and blurred boundaries.
[0079] Based on the same inventive concept, this embodiment also provides a zero-sample coastal mudflat remote sensing scene classification system that combines pseudo-labels to enhance visual language adaptation, including: The alias construction module is used to generate domain-specific candidate professional aliases for tidal flat remote sensing scenes based on a large language model and fused with prior geoscience knowledge, and to build a category alias candidate pool. The semantic optimization module is used to identify text-visual weak alignment categories by relying on the visually guided semantic enhancement mechanism (VSAS) and combining CLIP confidence scores. It then selects the optimal professional terms through an unsupervised composite scoring function to generate professional text embeddings. The pseudo-label building module is used to filter high-confidence samples from the unlabeled tidal flat image test stream in real time based on optimized text embedding and TDA mechanism, and build a high-quality pseudo-label support set. The online adaptation classification module uses pseudo-labels as visual prior inputs and a lightweight meta-adaptor to optimize the CLIP feature space in real time through cross-attention and residual updates, thereby achieving online domain alignment between the model and the target image distribution and realizing zero-shot tidal flat remote sensing scene classification.
[0080] Based on the same inventive concept, this embodiment also provides a computing device, characterized in that it includes: one or more processors, one or more memories, and one or more programs, the programs being stored in the memory and configured to be executed by the processor, the programs being loaded onto the processor to implement the steps of the zero-shot remote sensing scene classification method combining pseudo-labels to enhance visual language adaptation as described in any of the preceding claims.
[0081] Based on the same inventive concept, this embodiment also provides a storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the steps of zero-shot remote sensing scene classification combining pseudo-labels to enhance visual language adaptation according to any of the preceding claims.
[0082] The zero-sample coastal mudflat scene classification device provided in this application is described below. The zero-sample coastal mudflat scene classification device described below can be referred to in correspondence with the zero-sample coastal mudflat scene classification method described above.
[0083] Figure 5 This is a schematic diagram of the zero-sample coastal mudflat scene classification device provided in this application embodiment, as shown below. Figure 5 As shown, it includes: The acquisition module 51 is used to acquire an image dataset containing multiple types of remote sensing scenes; The first construction module 52 is used to utilize a large language model to integrate prior knowledge of geosciences, generate multiple professional aliases for each type of remote sensing scene image in the image dataset, and construct a category alias candidate pool. The calibration module 53 is used to predict the confidence of samples in the image dataset using a pre-trained visual language model, calculate the average confidence of each category and sort them, select the category and samples with the lowest ranking as the text-visual weak alignment category set, and calibrate the candidate words of the text-visual weak alignment category set through a visually guided semantic enhancement mechanism to obtain the text embedding that fits the current category. The second construction module 54 is used to extract visual features from the images in the image dataset using a pre-trained visual language model; calculate the similarity between the visual features and the corresponding text embeddings, and dynamically cache high-confidence positive samples; and construct a support set by using the categories corresponding to the high-confidence positive samples as pseudo-labels. The output module 55 is used to take the image data of the support set as a visual prior input meta-adaptor, aggregate the text category embeddings of the support set through a cross-attention mechanism, and optimize the feature space of the pre-trained visual language model in real time during the inference stage to achieve the classification of beach tidal flat scene.
[0084] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6 As shown, the electronic device may include a processor 610, a communications interface 620, a memory 630, and a communications bus 640. The processor 610, communications interface 620, and memory 630 communicate with each other via the communications bus 640. The processor 610 can call logical instructions from the memory 630 to execute a zero-sample coastal mudflat scene classification method.
[0085] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, 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 described in 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.
[0086] On the other hand, this application also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is implemented to perform the zero-sample coastal mudflat scene classification method provided by the above methods.
[0087] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0088] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A zero-sample coastal mudflat plot scene classification method, characterized in that, include: Acquire an image dataset containing multiple types of remote sensing scenes; By leveraging a large language model and integrating prior geoscience knowledge, multiple professional aliases are generated for each type of remote sensing scene image in the image dataset, and a candidate pool of category aliases is constructed. The confidence scores of samples in the image dataset are predicted using a pre-trained visual language model. The average confidence score of each category is calculated and sorted. The categories and samples with the lowest ranking are selected as the text-visual weak alignment category set. The candidate words of the text-visual weak alignment category set are calibrated through a visually guided semantic enhancement mechanism to obtain the text embedding that fits the current category. A pre-trained visual language model is used to extract visual features from the images in the image dataset; Calculate the similarity between the visual features and the corresponding text embeddings, and dynamically cache high-confidence positive samples; The categories corresponding to high-confidence positive samples are used as pseudo-labels to construct a support set; The image data of the support set is used as a visual prior input meta-adaptor. The text category embeddings of the support set are aggregated through a cross-attention mechanism, and the feature space of the pre-trained visual language model is optimized in real time during the inference stage to achieve the classification of beach tidal flat scenes.
2. The method according to claim 1, characterized in that, The method of integrating prior geoscience knowledge using a large language model includes: Structured prompts are constructed based on the names of each type of scenario, geoscientific knowledge, and prior geoscientific knowledge. The prompt words are input into a large language model, which guides the model to understand the semantics of the scene by combining the morphological characteristics and spatial distribution patterns of intertidal landforms. A preset number of professional aliases are generated for each type of remote sensing scene, and all aliases are merged into the category alias candidate pool.
3. The method according to claim 1, characterized in that, The formula for calculating the average confidence level is as follows: in, Let i be the average confidence level for category i. The initial prediction is a category. The test sample set, The class probabilities output by CLIP Let j represent the j-th test sample image, where j represents the test sample index.
4. The method according to claim 1, characterized in that, The step of calibrating candidate words in the text-visual weak alignment category set through a visually guided semantic enhancement mechanism to obtain a text embedding that fits the current category includes: The candidate word scores for the corresponding categories in the text-visual weak alignment category set are calculated using a composite scoring function. The composite scoring function is as follows: in, This represents the average confidence level of the samples corresponding to the alias. For the sample size, This is a sample balance penalty term, where 'a' represents an alias. Based on the candidate word scores, the optimal alias is obtained and adapted to the text embedding of the current category; In the formula, As the best alternative name, This represents a set of candidate aliases.
5. The method according to claim 1, characterized in that, The calculation of the similarity between the visual features and the corresponding text embeddings, and the dynamic caching of high-confidence positive samples, includes: Using the Training Independent Dynamic Adapter (TDA) mechanism, the similarity between the visual features and the corresponding text embeddings is calculated, and the predicted probability distributions for each category are obtained after normalization. Based on the predicted probability distribution, the category corresponding to the maximum probability is used as the pseudo-label; A positive sample cache is constructed using key-value pairs with visual features as keys and pseudo-labels as values. The positive sample cache is used to store positive pseudo-label samples with high reliability of prediction results. When the cache reaches the preset limit, the key-value pairs in the cache are dynamically updated based on the predicted entropy. High-reliability positive samples are cached to generate corresponding category pseudo-labels, and a support set is constructed.
6. The method according to claim 1, characterized in that, The process involves using the image data of the support set as a visual prior input meta-adaptor, aggregating the text category embeddings of the support set through a cross-attention mechanism, and optimizing the feature space of the pre-trained visual language model in real time during the inference phase to achieve beach and tidal flat scene classification, including: The sample images and corresponding category labels in the support set are input into the CLIP visual encoder and the CLIP text encoder, respectively; the corresponding visual features are extracted by the CLIP visual encoder, and visual cache features are constructed according to the category labels to provide visual priors of the target remote sensing scene for the meta-adaptation process; the corresponding text category embeddings are generated by the CLIP text encoder. By using the meta-adapter, text category embeddings and visual cached feature information are fused based on the original cross-attention mechanism to obtain a category representation of the fused target remote sensing scene visual features; The gated residual update mechanism in the Meta-adapter is adopted to optimize the fused category representation; The optimized CLIP feature space is used to calculate the image-text matching degree and output the final classification result, thus achieving zero-shot classification of coastal mudflat remote sensing scenes.
7. The method according to claim 6, characterized in that, The method employs a gated residual update mechanism in the Meta-adapter to optimize the fused category representation, including: Based on the information difference between the category representation of the fused target remote sensing scene visual features and the original category text embedding, a life gate weight is used to adaptively adjust the fusion ratio of visual information through a gating function; The weighted visual enhancement representation is fused with the original CLIP text category embedding using a residual connection method to obtain an optimized category embedding representation.
8. A zero-sample coastal mudflat scene classification device, characterized in that, include: The acquisition module is used to acquire image datasets containing multiple types of remote sensing scenes; The first construction module is used to leverage a large language model to integrate prior geoscience knowledge and generate multiple professional aliases for each type of remote sensing scene image in the image dataset, thereby constructing a category alias candidate pool. The calibration module is used to predict the confidence of samples in the image dataset using a pre-trained visual language model, calculate the average confidence of each category and sort them, select the category and samples with the lowest ranking as the text-visual weak alignment category set; and calibrate the candidate words of the text-visual weak alignment category set through a visually guided semantic enhancement mechanism to obtain the text embedding that fits the current category. The second construction module is used to extract visual features from the images in the image dataset using a pre-trained visual language model; Calculate the similarity between the visual features and the corresponding text embeddings, and dynamically cache high-confidence positive samples; The categories corresponding to high-confidence positive samples are used as pseudo-labels to construct a support set; The output module is used to take the image data of the support set as a visual prior input meta-adaptor, aggregate the text category embeddings of the support set through a cross-attention mechanism, and optimize the feature space of the pre-trained visual language model in real time during the inference stage to achieve the classification of beach tidal flat scene.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the zero-sample coastal mudflat scene classification method as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the zero-sample coastal mudflat scene classification method as described in any one of claims 1 to 7.
