Region-aware anchor and weighted multi-modal geolocation method and system

By constructing a regional awareness anchor point and a weighted multimodal geolocation method, the problems of insufficient local regional alignment and unstable cross-view representation in multimodal geolocation are solved, achieving more accurate positioning and interpretable results.

CN123160971APending Publication Date: 2026-11-24HUNAN NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611655744.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing multimodal geolocation methods suffer from problems such as insufficient alignment of local areas, inadequate utilization of multi-scale features, unstable cross-view representation, and insufficient interpretability of positioning results when processing complex geographic images such as buildings, roads, parking lots, green belts, and surrounding facilities.

Method used

A multimodal geolocation method based on region-aware anchors and weighted fusion is adopted. By constructing region-aware anchors, semantic conditionalization is performed using local text features, and cross-attention fusion is performed with multi-scale visual features. Adaptive weighted fusion is combined with scale adapter to predict candidate region boxes and their representations. The retrieval scores are calculated through image-text matching and then re-ranked.

Benefits of technology

It improves the accuracy of multimodal geolocation, explicitly establishes the correspondence between natural language descriptions and local land features, alleviates information loss caused by a single visual scale, and enhances the interpretability of the positioning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160971A_ABST
    Figure CN123160971A_ABST
Patent Text Reader

Abstract

This invention discloses a multimodal geolocation method and system based on region-aware anchors and weighted methods, belonging to the fields of computer vision and geographic information processing technology. The method includes extracting global and multi-scale visual features from the geographic image to be located; generating global and local text features from the whole-image text description and local text description, respectively; constructing region-aware anchors and generating text-aware anchors; generating a target region prediction box and its representation based on the text-aware anchors and visual features; and reordering candidate geographic images through image-text matching to obtain the location result output. This invention aims to achieve geolocation combining global candidate retrieval and local region interpretation, solving the problems of insufficient local region alignment, inadequate utilization of multi-scale features, unstable cross-view representation, and insufficient interpretability of location results in existing positioning methods, thereby improving the accuracy of multimodal geolocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer vision and geographic information processing technology, specifically relating to a multimodal geolocation method and system based on regional perception anchor points and weighting. Background Technology

[0002] Natural language-guided multimodal geolocation aims to combine geographic images acquired by UAVs, satellites, street views, or ground platforms with semantic information such as whole-map text descriptions and local feature descriptions to identify target buildings, target areas, or corresponding geographic locations within a candidate image library. It is a key technology in UAV autonomous navigation, urban mapping, and intelligent geographic information analysis. Compared to traditional visual geolocation, this task not only needs to overcome the appearance differences caused by different viewpoints, scales, and imaging platforms, but also needs to establish the correspondence between text descriptions and local image regions. Existing methods mostly rely on whole-map visual features or global image-text features for similarity matching, which can achieve candidate recall, but struggles to accurately characterize the relationship between local text and specific feature regions. When an image simultaneously contains buildings, roads, parking lots, green belts, and surrounding facilities, a single global feature is easily interfered with by background areas and similar features, resulting in inaccurate local target localization. Furthermore, the target scales in geographic images vary significantly; small targets require high-resolution features, while building clusters or street structures rely on high-level semantic features. Using only single-scale features can easily lead to information loss; indiscriminately fusing multi-scale features may introduce irrelevant noise. Therefore, existing technologies still suffer from problems such as insufficient alignment of local areas, inadequate utilization of multi-scale features, unstable cross-view representation, and insufficient interpretability of positioning results. There is an urgent need for a multimodal geolocation method that combines regional perception anchors, local text conditionalization, and multi-scale adaptive fusion. Summary of the Invention

[0003] The technical problem to be solved by this invention is to provide a multimodal geolocation method and system based on regional sensing anchor points and weighting, which addresses the above-mentioned problems of existing technologies. This invention aims to achieve geolocation by combining global candidate retrieval with local regional interpretation, and solve the problems of insufficient local regional alignment, insufficient utilization of multi-scale features, unstable cross-view representation, and insufficient interpretability of positioning results in existing positioning methods, thereby improving the accuracy of multimodal geolocation.

[0004] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: A multimodal geolocation method based on region-aware anchor points and weighting includes the following steps: S101, training a multimodal geolocation model using geographic image samples includes: extracting multi-scale visual features from geographic image samples using a visual encoder; generating global and local text features from the whole-image text description and local text description of the geographic image samples using a text encoder; constructing region-aware anchors and semantically conditionalizing them using local text features to obtain text-aware anchors; performing cross-attention fusion between the text-aware anchors and multi-scale visual features using an attention module to predict candidate region boxes and their region representations at each scale; obtaining weights for each scale from the global text features through a scale adapter, and adaptively weighting and fusing the candidate region boxes and region representations at each scale according to the weights to obtain the target region prediction box and its target region representation; calculating the loss of the multimodal geolocation model based on the target region representation of each target region prediction box, using the loss to update the parameters of the multimodal geolocation model, and finally completing the training of the multimodal geolocation model. S102, using the trained multimodal geolocation model, extract global text features from the text descriptions corresponding to the candidate geographic images that need to be used to build the database, and store the global text features, as well as the candidate geographic images or the geographic locations corresponding to the candidate geographic images, into the database. S103. For the geographic image to be located, the trained multimodal geolocation model is used to extract the global features of the geographic image to be located. The global features of the geographic image to be located are compared and matched with the global text features of the candidate geographic images in the image library to calculate the retrieval score. The candidate geographic images are re-ranked based on the retrieval score. One or more candidate geographic images with the highest retrieval score or the geographic location corresponding to the candidate geographic image are output as the positioning result.

[0005] Optionally, in step S101, the construction of region-aware anchor points includes: S201, divide the normalized image plane into grid cells of a specified size as anchor points; S202, construct the basic region bounding box using the center coordinates and width and height of each grid cell; S203, linearly project the basic region bounding box of each grid unit to obtain the corresponding grid embedding; S204, add the mesh embedding of each mesh unit to the corresponding learnable anchor token to obtain the region-aware anchor, thereby obtaining the region-aware anchor set composed of all region-aware anchors.

[0006] Optionally, In step S101, the semantic conditionalization of region-aware anchors is performed using local text features to obtain text-aware anchors, including: S301, take the set of all region-aware anchor points as the query, local text features as the key and value, and perform multi-head cross attention to obtain the text context C; S302, input the text context C into the language-to-visual gating network to obtain the gating logic value R, and then normalize it through the Sigmoid function to obtain the gating weight G. The language-to-visual gating network consists of a first linear layer, a GELU activation function and a second linear layer. S303, the gating weight G is multiplied element-wise with the text context C, and then added to the set of region-aware anchors. The result of the addition is normalized by the layer to control the intensity of the text context injection, thereby obtaining the text-aware anchors.

[0007] Optionally, In step S101, the step of cross-attention fusion of text perception anchors with multi-scale visual features through an attention module to predict candidate region boxes and their region representations at each scale includes: S401, for each scale of visual features in the multi-scale visual features, linear projection and normalization of the visual features are performed to obtain the visual token at that scale. S402, for each scale of visual token, multi-head cross-attention is performed using the text-aware anchor point as the query and the visual token at that scale as the key and value. The result of the multi-head cross-attention is added to the text-aware anchor point through a residual connection, and then subjected to layer normalization to obtain the anchor point region representation at that scale: ; in, This represents the anchor point region at scale m. For layer normalization processing, For text-aware anchor points, For multi-head cross-attention, Q, K, and V represent the query, key, and value, respectively. For visual tokens at scale m; S403, for each scale in the multi-scale visual features: input the anchor point region representation at that scale into the bounding box prediction head, the region representation projection head and the target prediction head respectively to obtain the candidate region box, the region representation and the target logical value; S404, normalize the target-oriented logical values ​​within the same scale to obtain the anchor point target-oriented weights; S405, based on the anchor point target weights, performs weighted aggregation of candidate region boxes and region representations to obtain candidate region boxes and region representations at this scale.

[0008] Optionally, In step S404, the function expression for normalizing the target-oriented logical values ​​within the same scale to obtain the anchor point target-oriented weight is as follows: ; in, Let m be the anchor point target weight of the i-th anchor point at scale m. Let be the target-oriented logical value of the i-th anchor point at scale m, N be the number of anchor points, and M be the number of scales; the function expression for weighted aggregation of candidate region boxes and region representations based on anchor point target-oriented weights in step S405 is as follows: ; ; in, and Candidate region bounding boxes and region representations at different scales Let be the candidate region bounding box for the i-th anchor point at scale m. Let B be the region representation of the i-th anchor point at scale m, and B be the batch size.

[0009] Optionally, In step S101, the step of obtaining weights for each scale by applying a scale adapter to the global text features, and then adaptively weighting and fusing the candidate region boxes and region representations at each scale according to the weights to obtain the target region prediction box and its target region representation includes: S501, the global text features are processed by a scale adapter to obtain scale logical values ​​at each scale. The scale adapter consists of a first linear layer, a GELU activation function, and a second linear layer. The scale logical values ​​at each scale are composed of multiple scale logical value components, and each scale logical value component corresponds to a scale. The scale logical value components at each scale are normalized to obtain the weights at each scale. S502, stack the candidate region boxes and region representations at each scale along the scale dimension to obtain the candidate region boxes and region representations after multi-scale stacking; S503, based on the weights, performs soft-weighted fusion of the candidate region boxes and region representations after multi-scale stacking to obtain the final target region prediction box and its target region representation: ; ; in, Predict the bounding box for the target area. The weights at scale m This represents the candidate region bounding box at scale m. Representing the target region, Let B be the region representation at scale m, and B be the batch size.

[0010] Optionally, in step S101, when calculating the loss of the multimodal geolocation model based on the target area representation of each target area prediction box, the functional expression for calculating the loss of the multimodal geolocation model is: ; in, For the loss of the multimodal geolocation model, To compensate for the loss in image-text comparison, For image-text matching loss, and Loss weighting for enhanced regional oversight For the region box loss, This represents a loss of spatial relationships.

[0011] Optionally, the calculation function expression for the image-text comparison loss is: ; ; ; in, For image-to-text contrast loss, For the text-to-image contrast loss, For batch size, Let be the similarity score between the i-th image and its corresponding text. Let be the similarity score between the i-th image and the j-th text. Let be the matching similarity between the j-th text and its corresponding positive image; the calculation function expression for the text-image matching loss is: ; ; ; ; ; ; in, The number of candidate image-text pairs participating in image-text matching training. For sample weights, The matching label for the i-th candidate image-text pair is 1 for positive samples and 0 for negative samples. This represents the category matching probability obtained after normalization using the Sigmoid function. Weights for positive samples from different perspectives within the same building; To assign weights to similar negative samples, It is the exponential normalization function; The logical value of the single-output matching classifier is γ, where γ≥0 is the weight coefficient. For indicator functions, and For the identification of sample pairs a and b, For the weighting coefficients, 0 ≤ β ≤ 1, For the similarity of sample pairs, For similarity function, and Here are the layout histograms for sample pairs a and b; the functional expression for the region box loss is: ; in, For L1 distance loss, For generalized intersection and comparison of losses, Predict the bounding box for the target area. The target bounding box is the actual bounding box; the functional expression for the spatial relationship loss is: ; ; ; in, For cross-entropy loss, Probability distribution for classifying spatial relationships The true category labels for spatial relationships are obtained by encoding horizontal and vertical relationship categories. For normalized exponential functions, This is the relation prediction head, which employs a multilayer perceptron. and They are respectively regions and region The target area is represented by the two regions. and They are respectively regions and region The corresponding predicted or ground truth bounding box of the target region. and These are two different local regions in the same image. and They are respectively regions Relative to region Horizontal relationship category labels and vertical relationship category labels.

[0012] Optionally, step S103 includes: S601, For the geographic image to be located, extract the global features of the geographic image using a trained multimodal geolocation model. ; S602, perform image-text comparison and matching between the global features of the geographic image to be located and the global text features of candidate geographic images in the image library to calculate the retrieval score: ; ; ; ; ; in, To query features, For normalization operations, For linear projection modules, The global image features of the geographic image to be located. For the first in the image library Library features of candidate geographic images For the first in the image library Global textual features of candidate geographic images For query features Image library features similarity, For similarity function, This represents the number of candidate geographic images in the image library. For query features Features of each image library Category matching value, A single-output matching classifier composed of a multilayer sensing mechanism. This indicates that the image-text matching stage performs cross-modal fusion of the text feature sequence corresponding to the query text and the visual feature sequence corresponding to the candidate geographic image. This is the set of the top K candidate geographic images selected based on similarity. For query features Image library features The probability of category matching. It is the exponential normalization function; S603, reorder the top K candidate geographic images in the image library according to the image-text matching probability, and use the image-text matching probability as the first K candidate geographic images in the image library. Retrieval scores for candidate geographic images: ; in, For the first in the image library Retrieval scores of candidate geographic images; S604 outputs the location result as one or more candidate geographic images with the highest retrieval score or the geographic location corresponding to the candidate geographic images.

[0013] Furthermore, the present invention also provides a multimodal geolocation system based on region-aware anchors and weighted methods, including an interconnected microprocessor and a memory, wherein the microprocessor is programmed or configured to execute the multimodal geolocation method based on region-aware anchors and weighted methods.

[0014] Compared with existing technologies, the present invention mainly achieves the following beneficial effects: Based on the global matching backbone formed by basic image-text comparison learning and image-text matching re-ranking, the present invention introduces region-aware anchor point enhancement, thereby retaining both global candidate recall and re-ranking capabilities while explicitly establishing the correspondence between natural language descriptions and local geographic areas; the present invention uses a language-to-vision gating mechanism to selectively inject local text semantics into regional queries; the present invention alleviates information loss caused by a single visual scale through multi-scale visual interaction and soft-weighted fusion of scale adapters; and the present invention improves the interpretability of localization results by obtaining the target region prediction box and region representation through anchor point targetness weights. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of the basic process of the method in an embodiment of the present invention.

[0016] Figure 2 This is a schematic diagram illustrating the working principle of the visual encoder in an embodiment of the present invention.

[0017] Figure 3 This is a schematic diagram illustrating the working principle of text-aware anchor points in an embodiment of the present invention. Detailed Implementation

[0018] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions of the present invention will be further described in detail below with reference to the accompanying drawings in the embodiments of the present invention.

[0019] like Figure 1 As shown, this embodiment uses a multimodal geolocation method based on region-aware anchor points and weighted methods, including the following steps: S101, training a multimodal geolocation model using geographic image samples includes: extracting multi-scale visual features from geographic image samples using a visual encoder; generating global and local text features from the whole-image text description and local text description of the geographic image samples using a text encoder; constructing region-aware anchors and semantically conditionalizing them using local text features to obtain text-aware anchors; performing cross-attention fusion between the text-aware anchors and multi-scale visual features using an attention module to predict candidate region boxes and their region representations at each scale; obtaining weights for each scale from the global text features through a scale adapter, and adaptively weighting and fusing the candidate region boxes and region representations at each scale according to the weights to obtain the target region prediction box and its target region representation; calculating the loss of the multimodal geolocation model based on the target region representation of each target region prediction box, using the loss to update the parameters of the multimodal geolocation model, and finally completing the training of the multimodal geolocation model. S102, using the trained multimodal geolocation model, extract global text features from the text descriptions corresponding to the candidate geographic images that need to be used to build the database, and store the global text features, as well as the candidate geographic images or the geographic locations corresponding to the candidate geographic images, into the database. S103. For the geographic image to be located, the trained multimodal geolocation model is used to extract the global features of the geographic image to be located. The global features of the geographic image to be located are compared and matched with the global text features of the candidate geographic images in the image library to calculate the retrieval score. The candidate geographic images are re-ranked based on the retrieval score. One or more candidate geographic images with the highest retrieval score or the geographic location corresponding to the candidate geographic image are output as the positioning result.

[0020] In this embodiment, the geographic image to be located is uniformly scaled to a 3×384×384 input image before being input to the visual encoder. The batch size is denoted as... Therefore, the input image tensor formed by a batch of input images is denoted as The data is then normalized according to a preset mean and standard deviation. In this embodiment, the visual encoder uses a Swing Transformer encoder to obtain global image features. as well as , , Visual features at three scales are used: P2 scale preserves denser spatial details, P3 scale provides medium-granularity regional semantics, and P4 scale provides strong high-level semantics. Global image features, mapped through an image projection layer, and global text features, mapped through a text projection layer, participate in image-text comparison and matching to form a global cross-modal retrieval representation. The P2, P3, and P4 multi-scale visual features are used for region localization and region representation construction in the subsequent region-aware anchor point branch.

[0021] In this embodiment, when generating global and local text features using a text encoder for the overall image text description and local text description respectively, the text encoder uses BERT, and the global text feature is denoted as... Local text features are denoted as ,in The length of the text token must not exceed 50.

[0022] In step S101 of this embodiment, the construction of region-aware anchor points includes: S201, divide the normalized image plane into grid cells of a specified size as anchor points; S202, construct the basic region bounding box using the center coordinates and width and height of each grid cell; S203, linearly project the basic region bounding box of each grid unit to obtain the corresponding grid embedding; S204, add the mesh embedding of each mesh unit to the corresponding learnable anchor token to obtain the region-aware anchor, thereby obtaining the region-aware anchor set composed of all region-aware anchors.

[0023] In step S201, when dividing the normalized image plane into grid cells of a specified size to serve as anchor points, the size and division method of the grid cells can be selected as needed; for example, the normalized image plane can be divided into nine grid cells, and a basic region bounding box can be generated based on the center position and width and height of each grid cell. The nine grid cells are numbered in order from top to bottom and from left to right, so that each anchor point has a clear spatial position during the construction stage. Let the row number and column number of the i-th grid cell be respectively... and ,in Then the row and column numbers and the basic area bounding box can be represented as: ; Where mod stands for modulo operation. This is for rounding down.

[0024] Step S202, which constructs the basic region bounding box using the center coordinates and width and height of each grid cell, can be represented as follows: ; Arrange the base region boxes of the nine grid cells along the anchor point dimension and copy them along the batch dimension B, so that each image in the same batch has the same initial spatial anchor point layout, resulting in the base region box tensor: ; The four components of the basic region bounding box represent the center x-coordinate, center y-coordinate, width, and height, respectively, all using normalized coordinates; therefore Each sample contains nine 4D grid boxes, which can cover different areas of the image, including the top, middle, bottom, left, middle, and right, and provide a fixed spatial reference for the subsequent alignment of local text with the image area.

[0025] In step S203 of this embodiment, when linearly projecting the basic region box of each grid unit, the basic region box is input into the grid projection network, the 4D box coordinates are mapped to 256D grid embedding, and added to the learnable anchor token which is also 256D to obtain the region-aware anchor with spatial prior.

[0026] In step S204 of this embodiment, the learnable anchor token is used to store the trainable semantic prior for region queries, and the mesh projection is used to inject the spatial coordinate prior. The mesh projection network and the learnable anchor token are defined as follows: ; ; Then the sensing anchor point and the set of anchor points for the i-th region can be represented as: ; ; in, The nine anchor points correspond to nine spatial regions in a 3×3 grid, enabling subsequent text conditionalization and visual interaction to function independently of candidate boxes pre-generated by an external object detector. Furthermore, each anchor point can automatically adjust its region representation capability during training based on the localization task. Compared to directly using detection boxes, this approach avoids the loss of candidate regions caused by inconsistencies between the detector category set and the geographic image's feature categories.

[0027] like Figure 3 As shown, in step S101 of this embodiment, the semantic conditionalization of region-aware anchors using local text features to obtain text-aware anchors includes: S301, take the set of all region-aware anchor points as the query, local text features as the key and value, and perform multi-head cross attention to obtain the text context C; In this embodiment, local text features are projected onto the same 256-dimensional latent space as the region-aware anchor point, and the region-aware anchor point is used as the query execution text attention. Let the local text features be... Text projection network Composed of linear layers, it can be represented as: ; in, and These are the weights and biases of the text projection layer, respectively; specifically, The dimension is , The dimension is This allows the local text token to reside in the same 256-dimensional latent space as the nine region-aware anchors. The projected local text token and text context C can be represented as: ; Where L is the length of the local text token, C is the text context obtained by aggregating the nine anchors, and MHA is the multi-head cross-attention function with its mask parameters. This is an optional parameter used to identify valid text tokens and suppress the influence of padding tokens in subsequent attention calculations. It is the input mask parameter. Perform masked attention during execution, omitting the mask parameter. Maskless attention is performed during the process. Q, K, and V represent query, key, and value, respectively. In this embodiment, the set of region-aware anchor points is denoted as... Let the text context be denoted as C, and its processing can be represented as follows: ; ; ; ; in, This represents the set of region-aware anchor points. , and These represent the linear projection matrices of the query, key, and value, respectively. MHA represents the multi-head cross-attention function, and the mask parameter is optional. This represents the validity mask of the local text token. Specifically, The dimensions of are B×9×256, and the dimensions of C are B×9×256. The nine text contexts correspond to nine spatial anchor points.

[0028] For multiple attention heads, let the u-th attention head be denoted as... Its attention calculation can be written as: ; ; Local text descriptions can be phrases or sentences such as the road on the left side of the building, the edge of the roof, the parking area in front, or the central building entrance; the above attention process enables each region anchor to extract semantic cues that may be related to its own spatial location from the local text, thereby forming different text conditional region queries before entering visual interaction; For the i-th anchor point and the j-th local text token, the attention weight can be expressed as: ; ; in, This represents the attention weight of the i-th anchor point to the j-th local text token. , and These represent the corresponding query, key, and value vectors, respectively. The channel dimension represents a single attention head. For text attention mask The resulting mask item. When the j-th token is a padding token. A sufficiently large negative value is chosen so that the weight of the token in attention normalization approaches 0. Thus, each region-aware anchor can aggregate semantic information related to its spatial location from the local text token; S302, the text context C is input into the language-to-visual gating network to obtain the gating logic value R, which is then normalized by the Sigmoid function to obtain the gating weight G. The language-to-visual gating network consists of a first linear layer, a GELU activation function, and a second linear layer; in this embodiment, the visual gating network is denoted as... , The process of generating the gating weights G can be represented as: ; ; ; in, and These represent the weight matrices of the two linear transformations, respectively. and Let U and R represent the corresponding bias terms, respectively. U represents the intermediate gated feature obtained after passing through the first linear layer and the GELU activation function, R represents the gated logic value output by the second linear layer of the language-to-vision gating network, and G represents the normalized language-to-vision gating weights. Specifically, G has a dimension of B×9×256 and is used to control the injection intensity of local text semantics at each sample, each anchor point, and each channel. In this embodiment, For the hidden layer dimension of the gated network, the input, parameter, and intermediate output dimensions of the gated network satisfy: ; ; S303, the gating weight G is element-wise multiplied with the text context C, and then added to the set of region-aware anchors. The result of the addition is normalized by a layer to control the intensity of the text context injection, thereby obtaining the text-aware anchors. These text-aware anchors are denoted as... The layer normalization function, denoted as LayerNorm, can be expressed as: ; ; in, This represents element-wise multiplication. This represents the text context after being modulated by language to visual perception. This represents the set of text-aware anchor points. Specifically, The dimension is B×9×256. For the i-th anchor point, its update process can be represented as: ; in, This represents the sensing anchor point of the i-th region. This represents the text context obtained by aggregating the i-th anchor point. This represents the gating weight corresponding to the i-th anchor point. Let represent the i-th text-aware anchor point. Through the above residual injection and layer normalization processing, the region-aware anchor point obtains semantic conditional information related to the local text description while preserving the 3×3 spatial prior and learnable anchor point semantics.

[0029] In step S101 of this embodiment, the step of cross-attention fusion of text perception anchors with multi-scale visual features through an attention module to predict candidate region boxes and their region representations at each scale includes: S401, for each scale of visual features in a multi-scale visual feature set, linear projection and normalization are performed on the visual features to obtain the visual token at that scale; such as Figure 2 As shown, in this embodiment, the visual features at three scales, P2, P3, and P4, are projected onto a unified 256-dimensional latent space, making them have the same feature dimension as the text perception anchor point. Let the original visual feature at the m-th scale be F. m The projection function is The scale set is Then we have: ; ; ; Therefore, the three scales P2, P3, and P4 are formed respectively. , and Visual tokens; all three visual tokens (matrix) are associated with text-aware anchors. Maintain the same channel dimensions. Let m be the size of the visual token; S402, for visual tokens at each scale, uses text-aware anchors. Using visual tokens at this scale as keys and values, multi-head cross-attention is performed as a query. The result of multi-head cross-attention is then connected to the text-aware anchor point via a residual connection. The values ​​are added together, and then subjected to layer normalization to obtain the anchor point region representation at this scale: ; in, This represents the anchor point region at scale m. For layer normalization processing, For text-aware anchor points, For multi-head cross-attention output features at scale m: ; in, This is a multi-head cross-attention problem, where Q, K, and V represent the query, key, and value, respectively. This represents a visual token at scale m. Therefore, the anchor region at scale m represents... It includes regional features of nine anchor points at the m-th scale; for the same text perception anchor point, the interaction results at different scales correspond to the visual response under different receptive fields, which facilitates subsequent selection between fine-grained features and large-scale building areas; S403, for each scale in the multi-scale visual features: input the anchor point region representation at that scale into the bounding box prediction head, the region representation projection head and the target prediction head respectively to obtain the candidate region box, the region representation and the target logical value; S404, normalize the target-oriented logical values ​​within the same scale to obtain the anchor point target-oriented weights; S405, based on the anchor point target weights, performs weighted aggregation of candidate region boxes and region representations to obtain candidate region boxes and region representations at this scale.

[0030] In step S403 of this embodiment, a 4D candidate region bounding box, a 256-dimensional region representation, and a 1D target-oriented logical value are predicted for each anchor point region feature. The candidate region bounding box is represented using normalized coordinates, the region representation is used to describe the cross-modal semantics of the corresponding candidate region, and the target-oriented logical value is used to measure the degree of correlation between the anchor point and the local text target. Let the bounding box prediction head, the region representation projection head, and the target-oriented prediction head be denoted as... and The three prediction heads use the anchor point region features at the m-th scale. As a common input, the parameters are computed independently and in parallel. Each prediction head employs a two-layer perceptron structure consisting of a first linear layer, a GELU activation layer, and a second linear layer; let the hidden layer dimension of the prediction head be... The three prediction heads generate their respective intermediate features, and the corresponding second linear layer outputs candidate region boxes, region representations, and target-oriented logical values.

[0031] ; ; ; ; ; ; Wherein, the dimension of the predicted head hidden layer is denoted as The parameters of the three prediction heads are independent of each other. The second linear layer outputs a 4D candidate region box, a 256D region representation, and a 1D target-oriented logistic value, respectively. (Candidate region box) The coordinates are constrained within the normalized image coordinate range by the Sigmoid function.

[0032] In step S404 of this embodiment, the function expression for normalizing the target-oriented logical values ​​within the same scale to obtain the anchor point target-oriented weight is as follows: ; in, Let m be the anchor point target weight of the i-th anchor point at scale m. Let be the target-oriented logical value of the i-th anchor point at scale m, N be the number of anchor points, and M be the number of scales; the function expression for weighted aggregation of candidate region boxes and region representations based on anchor point target-oriented weights in step S405 is as follows: ; ; in, and Candidate region bounding boxes and region representations at different scales Let be the candidate region bounding box for the i-th anchor point at scale m. Let B be the region representation of the i-th anchor point at scale m, and B be the batch size. The target-oriented logical values ​​of the nine anchor points within the same scale are normalized, and the scale region bounding box and scale region representation are obtained by aggregating them according to the anchor point target-oriented weights. If the anchor point target-oriented weights satisfy the condition that the sum of the weights of the nine anchor points within the same scale is 1, then: ; ; ; ; in, This represents the 4D candidate region bounding box predicted by the i-th anchor point at the m-th scale. This represents the corresponding 256-dimensional region. This indicates the target weight of the corresponding anchor point.

[0033] In step S101 of this embodiment, obtaining weights for each scale by applying a scale adapter to the global text features, and then adaptively weighting and fusing the candidate region boxes and region representations at each scale according to the weights to obtain the target region prediction box and its target region representation, includes: S501, the global text features are processed by a scale adapter to obtain scale logical values ​​at each scale. The scale adapter consists of a first linear layer, a GELU activation function, and a second linear layer. The scale logical values ​​at each scale are composed of multiple scale logical value components, and each scale logical value component corresponds to a scale. The scale logical value components at each scale are normalized to obtain the weights at each scale. Since the overall text description reflects whether the query target is biased towards local details or the overall building structure, the scale adapter assigns weights to different visual scales based on this global semantics. The scale adapter consists of a first linear layer, a GELU activation layer, a second linear layer, and a Softmax output layer connected in sequence. The first linear layer transforms the global text features, the GELU activation layer enhances the non-linear expression, the second linear layer outputs the 3D scale logistic values ​​corresponding to P2, P3, and P4, and the Softmax output layer normalizes them into scale weights. Let the global text features be... The scale adapter is ,but: ; ; ; ; ; in, For the hidden layer dimension of the scale adapter, The global text features are of dimension 256; For the parameters of the first linear layer, The parameters for the second linear layer are obtained from the Softmax normalization formula described above. , The weights for the m-th scale are the weights for the three scales together, forming a 3D scale weight vector. And satisfy the non-negative normalization constraint; the scale weights of the three scales P2, P3 and P4 are generated by the global text features through the scale adapter, and the global image features do not participate in the calculation of the scale weights.

[0034] S502, stack the candidate region boxes and region representations at each scale along the scale dimension to obtain the multi-scale stacked candidate region boxes and region representations: ; ; S503, based on the weights, performs soft-weighted fusion of the candidate region boxes and region representations after multi-scale stacking to obtain the final target region prediction box and its target region representation: ; ; in, Predict the bounding box for the target area. The weights at scale m This represents the candidate region bounding box at scale m. Representing the target region, Let be the region representation at scale m, and B be the batch size. In soft-weighted fusion, the scales are not simply averaged, but dynamically controlled by the current text semantics. This makes details such as small targets, road edges, and building entrances rely more on the high-resolution scale, while making complete buildings or large areas rely more on the semantic scale. Specifically, the target region prediction bounding box... The target region representation represents the image region most relevant to the current local text and is used for region box supervision during the training phase. It is used for spatial relationship supervision and local region semantic modeling, and can serve as local interpretation information for the positioning results. The above fusion simultaneously preserves the fine location at the P2 scale, the mid-level shape at the P3 scale, and the high-level semantics at the P4 scale, enabling the final region representation to adapt to geographic targets of different sizes and semantic levels.

[0035] In step S101 of this embodiment, when calculating the loss of the multimodal geolocation model based on the target area representation of each target area prediction box, the functional expression for calculating the loss of the multimodal geolocation model is as follows: ; in, For loss function, For the loss of image-text comparison, For image-text matching loss, and Loss weighting for enhanced regional oversight For the region box loss, This refers to spatial relational losses. The aforementioned losses can be determined using existing, known loss mechanisms as needed.

[0036] In this embodiment, the calculation function expression for the image-text comparison loss is: ; ; ; in, For image-to-text contrast loss, For the text-to-image contrast loss, For batch size, Let be the similarity score between the i-th image and its corresponding text. Let be the similarity score between the i-th image and the j-th text. Let be the matching similarity between the j-th text and its corresponding positive image; the calculation function expression for the text-image matching loss is: ; ; ; ; ; ; in, The number of candidate image-text pairs participating in image-text matching training. For sample weights, The matching label for the i-th candidate image-text pair is 1 for positive samples and 0 for negative samples. This represents the category matching probability obtained after normalization using the Sigmoid function. Weights for positive samples from different perspectives within the same building; To assign weights to similar negative samples, It is the exponential normalization function; The logical value of the single-output matching classifier is γ, where γ≥0 is the weight coefficient. For indicator functions, and For the identification of sample pairs a and b, For the weighting coefficients, 0 ≤ β ≤ 1, For the similarity of sample pairs, For similarity function, and This is a histogram of the layout of sample pairs a and b.

[0037] In this embodiment, the functional expression for the region box loss is: ; in, For L1 distance loss, For generalized intersection and comparison of losses, Predict the bounding box for the target area. The target bounding box is the actual bounding box; the functional expression for the spatial relationship loss is: ; ; ; in, For cross-entropy loss, Probability distribution for classifying spatial relationships The true category labels for spatial relationships are obtained by encoding horizontal and vertical relationship categories. For normalized exponential functions, This is the relation prediction head, which employs a multilayer perceptron. and They are respectively regions and region The target area is represented by the two regions. and They are respectively regions and region The corresponding predicted or ground truth bounding box of the target region. and These represent two different local regions in the same image. and Representing regions Relative to region The horizontal and vertical relationship category labels are defined. In this embodiment, the multimodal geolocation model uses a basic global matching backbone and a region-aware anchor auxiliary branch for joint optimization during the training phase. Specifically, this includes constructing training samples and layout features. The training data includes geographic images, full-map text descriptions, local text descriptions, target region boxes, image indexes, building identifiers, and layout features; where the target region box is represented by a B×4 tensor, the target region representation is represented by a B×256 tensor, and the layout features are represented by a 9-dimensional layout histogram. Let the center of the nth valid target box be... The number of valid target boxes is ,but: ; ; in, Let represent the statistical value at the j-th grid position, and 1(·) denote the indicator function. The layout histogram is used to describe the distribution of the target region in a 3×3 spatial grid, which can help distinguish training samples with similar positional relationships but different image indices. A region-enhanced supervision loss is constructed. Let the ground truth bounding box be... If the predicted bounding box is b, then the region box loss consists of a coordinate regression term and a generalized intersection-union (OU) term, which are used to simultaneously constrain the box's position, scale, and overlap quality. ; For images containing multiple local text and multiple target regions, ordered region pairs are constructed to learn their relative orientational relationships. Let two different local regions in the same image be region r and region s, and let the horizontal relationship between region r and region s be numbered as follows: The vertical relationship is numbered as ,and , If ∈{0,1,2}, then the relation label, relation classification probability, and spatial relation loss are respectively: ; ; ; in, and These represent the regions of the two areas respectively. and These are the predicted or ground truth bounding boxes for the two regions, respectively. For relation prediction head, Cross-entropy loss is used. A basic global matching master loss and sample weights are constructed. The basic global matching backbone consists of image-text comparison learning and image-text matching learning; image-text comparison learning is used to learn global image features. and global text features The similarity distribution between them. Let the temperature parameter be a positive number. Then, the similarity between the i-th image and the j-th text within the batch is: ; ; ; ; Image-text matching learning performs binary classification and re-ranking of recalled candidates, while the region enhancement branch supplements local alignment capabilities through bounding box and region relation constraints. For the i-th candidate image-text pair, the matching classifier outputs a single logical value. The matching probability is obtained by the Sigmoid function. Using sample weights The subsequent image-text matching loss is: ; ; in, Based on the main loss of the basic image-text comparison, The main loss is based on text-image matching. and The loss weights are used to enhance supervision of the region. For negative samples with similar layouts but not belonging to the same image index, let the... The layout histograms of each sample pair are as follows: and ,but: ; ; For samples of the same building from different perspectives, let the first... The building identifiers for each sample pair are as follows: and Then the sample weights for the same building are: ; ; Where β is the weighting coefficient for negative samples of the layout and 0≤β≤1, γ is the weighting coefficient for positive samples of the same building and γ≥0; positive and negative samples are respectively... and Forming uniform sample weights This is used for the aforementioned weighted binary cross-entropy loss. During the training phase, the method in this embodiment uses drone images from GeoText-1652. Satellite images Full image text description Local text description And region bounding boxes are used as training samples, and the input images are uniformly converted to The image tensor and the maximum text token length are controlled to be... This is to adapt to the subsequent text encoder. First, a visual encoder is used. The image is encoded, and the input image is divided into... indivual Pixel image blocks are obtained through linear projection, positional encoding, and Transformer encoding. 3D image global features Extract from different levels , , Multi-scale visual features, after channel projection and flattening, are used to form visual tokens. , and At the same time, a text encoder is used. The full-image text description and local text description are encoded, and the sentence-level representation corresponding to the full-image text is obtained through projection. 3D global text features Local text features Text projection network Mapped to The basic global matching backbone is based on... and Using text-image comparison learning as input, the batch-level text-image similarity distribution is obtained, and text-image matching learning is used to perform binary classification and re-ranking of candidate text-image pairs, thereby ensuring that the model has stable global recall capability. In the region enhancement branch, the normalized image plane is divided into... The grid consists of nine basic region boxes, which together form the basic region box tensor. , grid projection network Will Dimensional box coordinates are mapped as 3D mesh embedding, and with nine learnable anchor tokens Adding them together yields the region-aware anchor point. ; then with For query, with Perform text attention for keys and values, combined with a language-to-vision gating network. Obtain text-aware anchor points Next, for the scale set... any scale in anchoring text perception Each with its corresponding visual token Perform cross-attention interaction to predict nine candidate region boxes at each scale. Nine areas represent and anchor point target logic value Then, the target logical values ​​of the nine anchor points within the same scale are normalized and weighted and aggregated to obtain the scale region bounding box. and scale region representation To integrate evidence at different scales, global text features are used. Input scale adapter Obtain the three-dimensional scale weights and to , , The corresponding scale region bounding boxes and scale region representations are adaptively weighted and summed to output the target region prediction box. and target area representation Finally, considering the loss function used during the training of the multimodal geolocation model: ; The multimodal geolocation model is trained via backpropagation, whereby... Used to constrain the consistency between the predicted bounding box of the target region and the labeled bounding box. By constraining the spatial relationships between regions, a well-trained multimodal geolocation model can be obtained.

[0038] In this embodiment, step S103 includes: S601, the global text features are encoded into query features, and the global image features corresponding to each candidate geographic image in the image library are used as image library features. These features are mapped to a unified feature space and normalized. The similarity between the query features and each image library feature is calculated, and the top K candidate geographic images are selected from the image library based on the similarity. ; ; ; ; in, The query features are obtained by encoding and normalizing global text features. For encoder, For global text features, For the first in the image library The image library features are obtained by mapping and normalizing the global image features corresponding to each candidate geographic image through an image projection layer. For query features Library features corresponding to each candidate geographic image j in the library similarity, For similarity function, This represents the number of candidate geographic images in the image library. For query features Library features corresponding to each candidate geographic image j in the library Category matching value, A single-output matching classifier composed of a multilayer sensing mechanism. This indicates that the image-text matching stage involves cross-modal fusion of the text feature sequence corresponding to the query text and the visual feature sequence corresponding to the candidate geographic image. This is the set of the top K candidate geographic images selected based on similarity. For query features Library features corresponding to each candidate geographic image j in the library The probability of category matching. It is the exponential normalization function; S602, reorder the top K candidate geographic images according to the image-text matching probability, and use the image-text matching probability as the final retrieval score of the candidate geographic images: ; in, The final retrieval score for candidate geographic image j; S603, the final retrieval score is used as the matching degree between the query text and the candidate geographic images. The candidate geographic image with the highest final retrieval score is found as the most matching candidate geographic image in the image library. The candidate geographic image or its corresponding geographic location is output as the positioning result, which can be represented as: ; ; in, For the final matching candidate index, This represents the candidate image, candidate building category, or their associated geographic coordinates. When interpretation or manual review is required, the target region prediction bounding box (b) and the target region representation can also be output simultaneously. The anchor point target distribution π and the weights p at each scale.

[0039] To verify the effectiveness and performance of the multimodal geolocation method based on region-aware anchors and weighted methods in this embodiment, training and testing were performed on the GeoText-1652 dataset. The GeoText-1652 dataset is a natural language-guided UAV geolocation benchmark dataset extended from the University-1652 dataset. It covers 1,652 buildings across 72 universities and includes UAV, satellite, and ground-based perspectives. The training and test sets cover 33 and 39 universities respectively, with no university overlap. The dataset includes multimodal annotations such as images, global descriptions, region text, and bounding boxes. On average, each image contains 3 global descriptions and 2.62 bounding box text pairs. It can simultaneously support text-guided UAV navigation, UAV-viewpoint target localization, and bidirectional image-text retrieval tasks. Furthermore, it exhibits significant cross-platform perspective differences and fine-grained spatial relationship variations, effectively testing the model's comprehensive capabilities in local region alignment, cross-scale target representation, and cross-modal semantic matching. This embodiment trains the model using all training pairs in the GeoText-1652 dataset and evaluates it on its official test set. For each image to be located and its corresponding text description, a global semantic representation and a region-level spatial relationship description are constructed, enabling the model to simultaneously learn the correspondence between global image semantics, local text semantics, and region bounding boxes. To comprehensively measure localization accuracy, this embodiment uses Recall@K as the main evaluation metric, where K takes values ​​of 1, 5, and 10, denoted as R@1, R@5, and R@10, respectively. Results are statistically analyzed for both text query and image query directions to evaluate the bidirectional performance of text-guided localization and image-guided retrieval. The experimental results of this embodiment's method and the comparison method on the GeoText-1652 test set are shown in Table 1.

[0040] Table 1 Comparison of experimental results between the method of this embodiment and existing methods

[0041] As shown in Table 1, compared to the GeoText-1652 method, the method in this embodiment improves the R@1 and R@5 metrics for text queries, as well as the R@1, R@5, and R@10 metrics for image queries. Specifically, the R@10 metric for text queries decreases from 31.2% to 30.9%. Overall, the method in this embodiment achieves better results on most metrics, indicating that region-aware anchor points and multi-scale adaptive weighting can enhance cross-modal matching capabilities and geolocation stability in complex scenarios.

[0042] In summary, to address the issues of insufficient local region alignment, loss of information at a single visual scale, and insufficient cross-modal consistency of the same building in cross-view geolocation, this embodiment addresses these problems. Firstly, it establishes explicit connections between text phrases and spatial grid regions through region-aware anchors. Secondly, it preserves complementary information of visual features at different scales through multi-scale adaptive weighting. Simultaneously, it enhances the stability of cross-view geolocation matching through spatial relationship supervision, weighting of positive samples from the same building, and weighting of negative samples from the layout, thereby improving the interpretability and robustness of multimodal geolocation. Therefore, the technical effectiveness of this embodiment does not depend on a single module but rather on the cooperation of multiple modules: region-aware anchors provide local spatial queries, text gating enables semantic conditionalization of queries, multi-scale visual interaction provides visual evidence at different granularities, scale adaptive weighting completes sample-level scale fusion, region boxes and spatial relationship supervision provide locally interpretable constraints, and weighting of the same building and layout improves the relationship between cross-view training samples. The combined effect of these modules in this embodiment enables the model to obtain more stable and interpretable localization results in complex geographical scenes.

[0043] Furthermore, this embodiment also provides a multimodal geolocation system based on region-aware anchors and weighted methods, including a microprocessor and a memory interconnected thereto, wherein the microprocessor is programmed or configured to execute the multimodal geolocation method based on region-aware anchors and weighted methods.

[0044] Those skilled in the art will understand that the technical solutions provided by this invention may take the form of a method, system, or computer program product. Therefore, this invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this invention may take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce an implementation of the flowchart... Figure 1 One or more processes and / or boxes Figure 1The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0045] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A multimodal geolocation method based on region-aware anchor points and weighted methods, characterized in that, Includes the following steps: S101, training a multimodal geolocation model using geographic image samples includes: extracting multi-scale visual features from geographic image samples using a visual encoder; generating global and local text features from the whole-image text description and local text description of the geographic image samples using a text encoder; constructing region-aware anchors and semantically conditionalizing them using local text features to obtain text-aware anchors; performing cross-attention fusion between the text-aware anchors and multi-scale visual features using an attention module to predict candidate region boxes and their region representations at each scale; obtaining weights for each scale from the global text features through a scale adapter, and adaptively weighting and fusing the candidate region boxes and region representations at each scale according to the weights to obtain the target region prediction box and its target region representation; calculating the loss of the multimodal geolocation model based on the target region representation of each target region prediction box, using the loss to update the parameters of the multimodal geolocation model, and finally completing the training of the multimodal geolocation model. S102, using the trained multimodal geolocation model, extract global text features from the text descriptions corresponding to the candidate geographic images that need to be used to build the database, and store the global text features, as well as the candidate geographic images or the geographic locations corresponding to the candidate geographic images, into the database. S103. For the geographic image to be located, the trained multimodal geolocation model is used to extract the global features of the geographic image to be located. The global features of the geographic image to be located are compared and matched with the global text features of the candidate geographic images in the image library to calculate the retrieval score. The candidate geographic images are re-ranked based on the retrieval score. One or more candidate geographic images with the highest retrieval score or the geographic location corresponding to the candidate geographic image are output as the positioning result.

2. The multimodal geolocation method based on region-aware anchor points and weighted averages according to claim 1, characterized in that, In step S101, the construction of region-aware anchor points includes: S201, divide the normalized image plane into grid cells of a specified size as anchor points; S202, construct the basic region bounding box using the center coordinates and width and height of each grid cell; S203, linearly project the basic region bounding box of each grid unit to obtain the corresponding grid embedding; S204, add the mesh embedding of each mesh unit to the corresponding learnable anchor token to obtain the region-aware anchor, thereby obtaining the region-aware anchor set composed of all region-aware anchors.

3. The multimodal geolocation method based on region-aware anchor points and weighted scattering according to claim 1, characterized in that, In step S101, the semantic conditionalization of region-aware anchors is performed using local text features to obtain text-aware anchors, including: S301, take the set of all region-aware anchor points as the query, local text features as the key and value, and perform multi-head cross attention to obtain the text context C; S302, input the text context C into the language-to-visual gating network to obtain the gating logic value R, and then normalize it through the Sigmoid function to obtain the gating weight G. The language-to-visual gating network consists of a first linear layer, a GELU activation function and a second linear layer. S303, the gating weight G is multiplied element-wise with the text context C, and then added to the set of region-aware anchors. The result of the addition is normalized by the layer to control the intensity of the text context injection, thereby obtaining the text-aware anchors.

4. The multimodal geolocation method based on region-aware anchor points and weighted averages according to claim 1, characterized in that, In step S101, the step of cross-attention fusion of text perception anchors with multi-scale visual features through an attention module to predict candidate region boxes and their region representations at each scale includes: S401, for each scale of visual features in the multi-scale visual features, linear projection and normalization of the visual features are performed to obtain the visual token at that scale. S402, for each scale of visual token, multi-head cross-attention is performed using the text-aware anchor point as the query and the visual token at that scale as the key and value. The result of the multi-head cross-attention is added to the text-aware anchor point through a residual connection, and then subjected to layer normalization to obtain the anchor point region representation at that scale: ; in, This represents the anchor point region at scale m. For layer normalization processing, For text-aware anchor points, This is a multi-head cross-attention problem, where Q, K, and V represent the query, key, and value, respectively. For visual tokens at scale m; S403, for each scale in the multi-scale visual features: input the anchor point region representation at that scale into the bounding box prediction head, the region representation projection head and the target prediction head respectively to obtain the candidate region box, the region representation and the target logical value; S404, normalize the target-oriented logical values ​​within the same scale to obtain the anchor point target-oriented weights; S405, based on the anchor point target weights, performs weighted aggregation of candidate region boxes and region representations to obtain candidate region boxes and region representations at this scale.

5. The multimodal geolocation method based on region-aware anchor points and weighted averages according to claim 4, characterized in that, In step S404, the function expression for normalizing the target-oriented logical values ​​within the same scale to obtain the anchor point target-oriented weight is as follows: ; in, Let m be the anchor point target weight of the i-th anchor point at scale m. Let be the target-oriented logical value of the i-th anchor point at scale m, N be the number of anchor points, and M be the number of scales; the function expression for weighted aggregation of candidate region boxes and region representations based on anchor point target-oriented weights in step S405 is as follows: ; ; in, and Candidate region bounding boxes and region representations at different scales Let be the candidate region bounding box for the i-th anchor point at scale m. Let B be the region representation of the i-th anchor point at scale m, and B be the batch size.

6. The multimodal geolocation method based on region-aware anchor points and weighted averages according to claim 1, characterized in that, In step S101, the step of obtaining weights for each scale by applying a scale adapter to the global text features, and then adaptively weighting and fusing the candidate region boxes and region representations at each scale according to the weights to obtain the target region prediction box and its target region representation includes: S501, the global text features are processed by a scale adapter to obtain scale logical values ​​at each scale. The scale adapter consists of a first linear layer, a GELU activation function, and a second linear layer. The scale logical values ​​at each scale are composed of multiple scale logical value components, and each scale logical value component corresponds to a scale. The scale logical value components at each scale are normalized to obtain the weights at each scale. S502, stack the candidate region boxes and region representations at each scale along the scale dimension to obtain the candidate region boxes and region representations after multi-scale stacking; S503, based on the weights, performs soft-weighted fusion of the candidate region boxes and region representations after multi-scale stacking to obtain the final target region prediction box and its target region representation: ; ; in, Predict the bounding box for the target area. The weights at scale m This represents the candidate region bounding box at scale m. Representing the target region, Let B be the region representation at scale m, and B be the batch size.

7. The multimodal geolocation method based on region-aware anchor points and weighted scattering according to claim 1, characterized in that, In step S101, when calculating the loss of the multimodal geolocation model based on the target area representation of each target area prediction box, the functional expression for calculating the loss of the multimodal geolocation model is as follows: ; in, For the loss of the multimodal geolocation model, For the loss of image-text comparison, For image-text matching loss, and Loss weighting for enhanced regional oversight For the region box loss, This represents a loss of spatial relationships.

8. The multimodal geolocation method based on region-aware anchor points and weighted averages according to claim 7, characterized in that, The expression for the calculation function of the image-text comparison loss is: ; ; ; in, For image-to-text contrast loss, For the text-to-image contrast loss, For batch size, Let be the similarity score between the i-th image and its corresponding text. Let be the similarity score between the i-th image and the j-th text. Let be the matching similarity between the j-th text and its corresponding positive image; the calculation function expression for the text-image matching loss is: ; ; ; ; ; ; in, The number of candidate image-text pairs participating in image-text matching training. For sample weights, The matching label for the i-th candidate image-text pair is 1 for positive samples and 0 for negative samples. This represents the category matching probability obtained after normalization using the Sigmoid function. Weights for positive samples from different perspectives within the same building; To assign weights to similar negative samples, It is the exponential normalization function; The logical value of the single-output matching classifier is γ, where γ≥0 is the weight coefficient. For indicator functions, and For the identification of sample pairs a and b, For the weighting coefficients, 0 ≤ β ≤ 1, For the similarity of sample pairs, For similarity function, and Here are the layout histograms for sample pairs a and b; the functional expression for the region box loss is: ; in, For L1 distance loss, For generalized intersection and comparison of losses, Predict the bounding box for the target area. The target bounding box is the actual bounding box; the functional expression for the spatial relationship loss is: ; ; ; in, For cross-entropy loss, Probability distribution for classifying spatial relationships The true category labels for spatial relationships are obtained by encoding horizontal and vertical relationship categories. For normalized exponential functions, This is the relation prediction head, which employs a multilayer perceptron. and They are respectively regions and region The target area is represented by the two regions. and They are respectively regions and region The corresponding predicted or ground truth bounding box of the target region. and These are two different local regions in the same image. and They are respectively regions Relative to region Horizontal relationship category labels and vertical relationship category labels.

9. The multimodal geolocation method based on region-aware anchor points and weighted scattering according to claim 1, characterized in that, Step S103 includes: S601, For the geographic image to be located, extract the global features of the geographic image using a trained multimodal geolocation model. ; S602, perform image-text comparison and matching between the global features of the geographic image to be located and the global text features of candidate geographic images in the image library to calculate the retrieval score: ; ; ; ; ; in, To query features, For normalization operations, For linear projection modules, The global image features of the geographic image to be located. For the first in the image library Library features of candidate geographic images For the first in the image library Global textual features of candidate geographic images For query features Image library features similarity, For similarity function, The number of candidate geographic images in the image library. For query features Features of each image library Category matching value, A single-output matching classifier composed of a multilayer sensing mechanism. This indicates that the image-text matching stage performs cross-modal fusion of the text feature sequence corresponding to the query text and the visual feature sequence corresponding to the candidate geographic image. This is the set of the top K candidate geographic images selected based on similarity. For query features Image library features The probability of category matching. It is the exponential normalization function; S603, reorder the top K candidate geographic images in the image library according to the image-text matching probability, and use the image-text matching probability as the first K candidate geographic images in the image library. Retrieval scores for candidate geographic images: ; in, For the first in the image library Retrieval scores of candidate geographic images; S604 outputs the location result as one or more candidate geographic images with the highest retrieval score or the geographic location corresponding to the candidate geographic images.

10. A multimodal geolocation system based on region-aware anchor points and weighting, comprising an interconnected microprocessor and a memory, characterized in that, The microprocessor is programmed or configured to execute the multimodal geolocation method based on region-aware anchors and weighting as described in any one of claims 1 to 9.