An unmanned aerial vehicle image positioning method, device, equipment and storage medium

By working collaboratively with cloud-side and edge-side models and utilizing tail-layer and non-tail-layer feature extraction and reordering, the computational pressure and viewpoint differences in UAV image localization are solved, achieving real-time and efficient image localization.

CN123182079APending Publication Date: 2026-11-27PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611470133.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies place a heavy computational burden on UAV image localization, and a single shared encoder cannot effectively handle the differences in perspective and scale between UAV and satellite images, resulting in significant positioning delays and computational and storage pressures.

Method used

By employing a collaborative approach between cloud-side and edge-side models, the edge-side model extracts tail-layer and non-tail-layer features from UAV images, while the cloud-side model combines high computing power for image retrieval and reordering, reducing computational overhead and enabling real-time positioning.

Benefits of technology

It alleviates the computational burden of UAV image localization, ensures real-time performance and accuracy, reduces computational overhead, and is suitable for cross-view localization tasks on resource-constrained platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182079A_ABST
    Figure CN123182079A_ABST
Patent Text Reader

Abstract

The application discloses a UAV image positioning method and device, equipment and storage medium, relates to the technical field of image positioning, and is applied to a cloud side device corresponding to a UAV, and comprises the following steps: obtaining first embedded features and second embedded features corresponding to a to-be-queried image from an end side device corresponding to the UAV; the first embedded features are embedded features extracted through a tail layer of an end side model, and the second embedded features are embedded features extracted through a non-tail layer; a plurality of candidate images are retrieved from a preset image feature library by using the first embedded features; a target image is determined from the plurality of candidate images based on the second embedded features, and a geographical positioning result corresponding to the UAV is determined. Thus, the image positioning of the UAV is cooperatively performed by means of the computing power characteristics provided by the cloud side model and the end side model, the model calculation pressure is relieved, and the real-time performance of the UAV image positioning can be ensured; meanwhile, the target image is determined from the candidate images by combining the features extracted through the non-tail layer, and the calculation cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image positioning technology, and in particular to an image positioning method, apparatus, device, and storage medium for unmanned aerial vehicles (UAVs). Background Technology

[0002] Image geolocation technology is widely used in unmanned systems, remote sensing information processing, and virtual reality. In the field of remote sensing information processing, image geolocation further presents complex challenges involving "cross-platform, cross-viewpoint, and cross-scale" operations. Queries often originate from UAVs / manned aircraft, which have variable flight altitudes, diverse viewpoints, varied attitudes, and significant variations in image resolution and field of view, while also facing limitations in onboard computing power. Databases are mostly acquired from satellites, offering relatively stable imaging resolution and viewpoint, and broad temporal coverage, but exhibiting significant viewpoint and scale differences compared to low-altitude images. Furthermore, remote sensing images are superimposed with inter-domain differences due to seasonality, illumination, weather, ground feature updates (building renovations, road construction), and sensor variations (multispectral / panchromatic / compression strategies). Current mainstream methods mostly rely on transformer-based visual models for feature extraction. Although they have strong discriminative power and generalization ability, their global attention structure leads to severe inference delays in high-resolution images, making them unsuitable for computing-constrained platforms such as drones. At the same time, a single shared encoder cannot fully model the large-scale and perspective differences between drone oblique views and satellite top views. The large-scale local feature matching and geometric verification in the reordering stage also bring significant computational and storage pressure.

[0003] It is evident that how to alleviate the computational burden in the UAV image localization process and improve the UAV image localization effect is a problem to be solved in this field. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for UAV image localization. By leveraging the computational power of both cloud-side and edge-side models to collaboratively perform UAV image localization, the computational burden on the models is alleviated, ensuring real-time UAV image localization. Simultaneously, by combining features extracted from non-tail layers to determine the target image from candidate images, computational overhead can be reduced. The specific solution is as follows: Firstly, this application provides a UAV image localization method, applied to cloud-based equipment corresponding to the UAV, including: The first embedding feature and the second embedding feature corresponding to the query image are obtained from the terminal device corresponding to the UAV; the query image is an image collected by the UAV, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the terminal model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the terminal model. Several candidate images are retrieved from a preset image feature library using the first embedding feature; the preset image feature library includes several reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than that of the edge-side model. The target image is determined from a plurality of candidate images based on the second embedding feature, and the geographical location corresponding to the target image is determined as the geolocation result corresponding to the UAV.

[0005] Optionally, the extraction process of the first embedded feature and the second embedded feature includes: The image to be queried is extracted by the end-side model of the end-side device to obtain the first image feature output by the tail layer of the end-side model, and the features extracted by the non-tail layer of the end-side model are determined as the second image feature. The first image feature and the second image feature are respectively mapped to a preset global feature embedding layer to obtain the corresponding first embedding feature and second embedding feature.

[0006] Optionally, the step of retrieving several candidate images from a preset image feature library using the first embedded feature includes: The similarity between the first embedded feature and each third embedded feature in the preset image feature library is calculated to obtain the first similarity calculation result; the third embedded feature is the embedded feature of the reference image extracted through the tail layer of the cloud-side model; Based on the first similarity calculation result, several candidate images are determined from several reference images.

[0007] Optionally, determining the target image from the candidate images based on the second embedding feature includes: The similarity between the second embedding feature and several fourth embedding features corresponding to several candidate images is calculated to obtain the second similarity calculation result; the fourth embedding feature is the embedding feature of the reference image extracted by the non-tail layer of the cloud-side model; The target image is determined from the candidate images based on the second similarity calculation result.

[0008] Optionally, determining the target image from the candidate images based on the second similarity calculation result includes: Based on the second similarity calculation result, several candidate images are reordered to obtain an image sequence in descending order of similarity. The first candidate image in the image sequence is determined as the target image.

[0009] Secondly, this application provides a UAV image localization method, applied to the corresponding end-side device of the UAV, including: The first and second embedded features corresponding to the query image collected by the UAV are sent to the cloud-side device corresponding to the UAV, so that the cloud-side device can use the first embedded features to retrieve a number of candidate images from a preset image feature library, and determine the target image from the number of candidate images based on the second embedded features, and then determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV. Wherein, the first embedding feature is the embedding feature of the query image extracted through the tail layer of the edge model, the second embedding feature is the embedding feature of the query image extracted through the non-tail layer of the edge model, the preset image feature library includes several reference images and the embedding features of the reference images extracted through the tail layer of the cloud model and the embedding features of the reference images extracted through the non-tail layer of the cloud model, and the computing power of the cloud model is greater than that of the edge model.

[0010] Thirdly, this application provides a drone image positioning device, applied to cloud-based equipment corresponding to the drone, including: The feature acquisition module is used to acquire a first embedding feature and a second embedding feature corresponding to the query image from the end-side device corresponding to the UAV; the query image is an image collected by the UAV, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the end-side model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the end-side model. A candidate image retrieval module is used to retrieve a number of candidate images from a preset image feature library using the first embedding feature; the preset image feature library includes a number of reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than that of the edge-side model. The positioning result determination module is used to determine the target image from a plurality of candidate images based on the second embedded feature, and determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV.

[0011] Fourthly, this application provides a drone image positioning device, applied to the corresponding end-side equipment of the drone, including: A feature sending module is used to send a first embedded feature and a second embedded feature corresponding to the query image collected by the UAV to the cloud-side device corresponding to the UAV. The cloud-side device uses the first embedded feature to retrieve a number of candidate images from a preset image feature library, and determines a target image from the candidate images based on the second embedded feature. Then, the geographical location corresponding to the target image is determined as the geolocation result corresponding to the UAV. The first embedded feature is the embedded feature of the query image extracted by the tail layer of the edge model, and the second embedded feature is the embedded feature of the query image extracted by the non-tail layer of the edge model. The preset image feature library includes a number of reference images and the embedded features of the reference images extracted by the tail layer of the cloud-side model and the embedded features of the reference images extracted by the non-tail layer of the cloud-side model. The computing power of the cloud-side model is greater than that of the edge model.

[0012] Fifthly, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute the computer program to implement the UAV image localization method as described above.

[0013] Sixthly, this application provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the UAV image localization method described above.

[0014] Therefore, the technical solution of this application is applied to the cloud side. First, a first embedding feature and a second embedding feature corresponding to the query image are obtained from the terminal device corresponding to the UAV. The query image is an image collected by the UAV. The first embedding feature is the embedding feature of the query image extracted by the tail layer of the terminal model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the terminal model. Then, the first embedding feature is used to retrieve a number of candidate images from a preset image feature library. The preset image feature library includes a number of reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud model and the embedding features of the reference images extracted by the non-tail layer of the cloud model, and the computing power of the cloud model is greater than that of the terminal model. Then, the target image can be determined from the number of candidate images based on the second embedding feature, and the geographical location corresponding to the target image is determined as the geolocation result corresponding to the UAV. In this way, this application leverages the computing power of both cloud-side and edge-side models to perform UAV image localization, alleviating the computational pressure on the UAV image localization process and ensuring the real-time performance of UAV image localization. At the same time, by combining the features extracted from the non-tail layer of the model to reorder the corresponding retrieved candidate images, the dependence on local feature matching can be reduced, thus lowering computational costs and adapting to the needs of real-time positioning and remote sensing information processing. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0016] Figure 1 This is a flowchart of an image localization method for unmanned aerial vehicles (UAVs) disclosed in this application; Figure 2 This is a flowchart of a specific UAV image localization method disclosed in this application; Figure 3 This application discloses an edge-cloud heterogeneous model architecture diagram; Figure 4 This is a schematic diagram of the structure of an unmanned aerial vehicle (UAV) image positioning device disclosed in this application; Figure 5 This is a schematic diagram of another UAV image positioning device disclosed in this application; Figure 6 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] See Figure 1 As shown, this embodiment of the invention discloses a UAV image localization method, applied to cloud-side equipment corresponding to the UAV, including: Step S11: Obtain the first embedding feature and the second embedding feature corresponding to the query image from the terminal device corresponding to the UAV; the query image is an image collected by the UAV, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the terminal model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the terminal model.

[0019] In this embodiment, the cloud-side device first needs to obtain the first and second embedded features corresponding to the image to be queried from the corresponding edge device of the UAV. The image to be queried is a perspective or bottom view image containing a geographical scene, collected in real time by the UAV during flight. The first embedded feature is an embedded feature extracted from the tail layer of the edge model (i.e., a lightweight neural network deployed on the UAV's onboard computing unit) for initial global retrieval; the second embedded feature is a supplementary global embedded feature extracted from a non-tail layer (e.g., the penultimate layer or an intermediate layer) of the same edge model for subsequent reordering. Specifically, the cloud-side device and the edge device can establish a data connection through a wireless communication link (such as a data network or UAV data link). After completing feature extraction, the edge device packages the first and second embedded features and sends them to the cloud-side device, which receives and parses them to obtain the corresponding feature data.

[0020] In one specific embodiment, during the extraction of the first and second embedded features, the UAV's edge device first needs to acquire the image to be queried; for example, by acquiring ground scene images at a fixed frame rate using an onboard visible light camera to obtain the image to be queried. Then, the edge model extracts features from the image to be queried; wherein, the extracted tail layer features are used as the first image features, and the extracted non-tail layer features are used as the second image features. It should be noted that the second image features corresponding to the non-tail layer can be the feature map or feature vector of the penultimate layer of the edge model (i.e., the output of the Transformer block or convolutional block before the last layer). Furthermore, the "non-tail layer" is not limited to the penultimate layer; it can also be the third-to-last layer or other intermediate layers, depending on the model structure, as long as the features extracted therefrom are complementary to the tail layer features. Furthermore, the first and second image features need to be mapped to a unified feature embedding layer (i.e., a pre-defined global feature embedding layer) to obtain the first and second embedded features. This unified feature embedding layer is a learnable neural network module whose function is to map raw features from different sources and with different dimensions to a pre-defined unified embedding space (e.g., a 256-dimensional metric space), allowing each feature to be directly used for distance calculation within this space. Inputting the first image feature into the unified feature embedding layer yields a fixed-dimensional embedding vector, denoted as the first embedded feature. Inputting the second image feature into the unified feature embedding layer yields another embedding vector of the same dimension, denoted as the second embedded feature. Finally, the obtained first and second embedded features are sent to the cloud-side device. Specifically, the calculated first and second embedded features can be packaged together, with timestamps and prior UAV location information added, before being sent to the cloud-side device.

[0021] Step S12: Using the first embedding feature, retrieve a number of candidate images from a preset image feature library; the preset image feature library includes a number of reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than that of the edge-side model.

[0022] In this embodiment, after receiving the first embedded feature from the edge device, the cloud-side device immediately performs a preliminary retrieval operation. This preliminary retrieval operation refers to quickly recalling a batch of reference images most similar to the query image from a pre-defined image feature library based on the similarity metric of the tail-layer global features. These reference images serve as a candidate set for subsequent re-ranking. The pre-defined image feature library is a large-scale geographic image database pre-built and stored on the cloud-side device. This feature library contains reference images and corresponding embedded features; the reference images can be sourced from high-resolution satellite remote sensing images, aerial orthophotos, or ground reference images with precise geographic labels, and each reference image corresponds to a specific geographic location (e.g., latitude and longitude coordinates or grid number). Simultaneously, a third and fourth embedded feature are extracted from each reference image via the cloud-side model; the third embedded feature is obtained by mapping the original features extracted from the tail layer of the cloud-side model through a unified feature embedding layer, and is used for initial retrieval; the fourth embedded feature is obtained by mapping the original features extracted from the non-tail layer (e.g., the penultimate layer) of the cloud-side model through a unified feature embedding layer, and is used for subsequent re-ranking.

[0023] It is important to note that due to hardware limitations in computing power for both edge and cloud devices, the computing power of the cloud-side model should be significantly greater than that of the edge model. For example, the cloud-side model uses DINOv3-SAT (a visual foundation model) based on the ViT-Large architecture, while the edge model uses the lightweight EfficientViT (a memory- and computationally efficient visual Transformer model). The high discriminative power of the cloud-side model ensures the quality and generalization of the reference image features. Furthermore, the third and fourth embedding features are pre-computed offline and stored in the feature library of the cloud-side device along with their corresponding reference images and geographic tags. During actual image retrieval, the cloud-side device only needs to perform rapid distance calculations on the embedding vectors, without needing to run the cloud-side model in real time.

[0024] In a specific embodiment, during the process of cloud-based devices filtering candidate images, the third embedding features (i.e., embedding features extracted through the tail layer of the cloud-side model) corresponding to all reference images in the feature library are first read. These features have the same dimension as the first embedding features and belong to the same unified metric space. Then, similarity is calculated between the first embedding features and each third embedding feature. The similarity metric can be cosine similarity, or it can be Euclidean distance, inner product, or learned Mahalanobis distance. Then, all the calculated similarity values ​​are sorted to generate a similarity list from high to low, which is recorded as the first similarity calculation result. The candidate images are further reordered by combining the second embedding features to further optimize the final localization result.

[0025] Step S13: Determine the target image from the candidate images based on the second embedding feature, and determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV.

[0026] In this embodiment, the first embedding feature can be used to determine several candidate images through the above steps; then the second embedding feature can be combined to reorder the several candidate images; this allows for fine-grained screening to eliminate false positive matches, finally determine the unique target image, and output its corresponding geographical location as the UAV's geolocation result.

[0027] In one specific embodiment, during the process of determining the target image, the fourth embedding feature (i.e., the embedding feature extracted by the non-tail layer of the cloud-side model) corresponding to each candidate image is first determined from a preset image feature library. These fourth embedding features have the same dimension as the second embedding features and belong to the same metric space mapped by a unified feature embedding layer. The similarity between the second embedding features and each fourth embedding feature is calculated to generate a second similarity calculation result. This result is a list of similarity values ​​corresponding one-to-one with the candidate images. Then, based on the second similarity calculation result, several candidate images are reordered to obtain an image sequence in descending order of similarity. It can be understood that the reordering through the second similarity calculation result can replace the coarse sorting obtained in the initial retrieval based on tail layer features with a refined sorting based on non-tail layer features (i.e., mid-layer features). Since non-tail layer features contain more local structural information and mid-layer semantic information, they are more sensitive to differences in image details and can effectively distinguish visually similar but geographically different candidate images. Finally, the candidate image ranked first in the reordered image sequence is taken as the target image. The target image was considered to be most similar to the query image collected by the UAV in terms of semantics and structure, and had a clear geographic label, thus obtaining the geographic location result corresponding to the query image of the UAV.

[0028] In another specific embodiment, each candidate image in the reordered image sequence can simultaneously retain its corresponding first similarity score (from tail-layer feature retrieval) and geographical label; then, the first similarity score and the second similarity score are weighted and fused before being reordered to balance global semantic relevance and local structural consistency. This weighted fusion method can further stabilize the ranking results and avoid misjudgments caused by non-tail-layer features in extreme cases.

[0029] Therefore, this application leverages the computational power of both cloud-based and edge-based models for collaborative UAV image localization. A high-discrimination, large-scale model is deployed on the cloud side to build a high-quality reference feature library offline, while a lightweight model is deployed on the edge side for real-time extraction of UAV image features. This alleviates the computational burden on the model during UAV image localization and ensures real-time localization. Simultaneously, a unified feature embedding layer is introduced to force alignment between edge-based and cloud-based features in a unified metric space. Furthermore, features extracted from the model's non-tail layer are combined to reorder the retrieved candidate images, reducing reliance on local feature matching, lowering computational overhead, and adapting to the needs of real-time positioning and remote sensing information processing. Thus, this application's technical solution achieves triple optimization—real-time edge-based inference, low communication overhead, and lightweight reordering—while maintaining or even improving geolocation accuracy. It is particularly suitable for cross-view positioning tasks on resource-constrained platforms such as UAVs and unmanned vehicles.

[0030] See Figure 2 As shown, this embodiment discloses a UAV image localization method, applied to the corresponding end-side device of the UAV, including: Step S21: Send the first embedding feature and the second embedding feature corresponding to the query image collected by the UAV to the cloud-side device corresponding to the UAV, so that the cloud-side device can use the first embedding feature to retrieve a number of candidate images from a preset image feature library, and determine the target image from the number of candidate images based on the second embedding feature, and then determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV; wherein, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the edge model, the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the edge model, the preset image feature library includes a number of reference images and the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than the computing power of the edge model.

[0031] In this embodiment, the edge device needs to send the first and second embedded features corresponding to the image to be queried to the cloud device. Specifically, the edge device of the UAV needs to extract features from the image to be queried through the edge model; obtain the feature vector output by the tail layer (i.e., the last layer) of the edge model, denoted as the first image feature; this feature encodes the global semantic information of the image, has a high dimension, and is suitable for similarity retrieval in a wide range of scenarios. At the same time, from the non-tail layer of the edge model, preferably extract the feature map or feature vector output by the penultimate layer, denoted as the second image feature; this feature retains more local structural information and mid-level semantic information, is more sensitive to details, and helps to distinguish candidate images that are similar in appearance but different in geographical location. It should be noted that the "non-tail layer" is not limited to the penultimate layer; in other embodiments, the third-to-last layer or other intermediate layers can also be selected, as long as the features extracted therefrom are complementary to the tail layer features. Then, the edge device can send the first and second embedded features corresponding to the image to be queried to the cloud device corresponding to the UAV through a wireless communication link.

[0032] After receiving the first and second embedded features, the cloud-side device first calculates the similarity between the first embedded feature and the third embedded feature (extracted and pre-stored by the tail layer of the cloud-side model) in a preset image feature library to retrieve several candidate images. Then, it calculates the similarity between the second embedded feature and the fourth embedded feature corresponding to the candidate image (extracted and pre-stored by the non-tail layer of the cloud-side model) to reorder the candidate images and determine the target image. Understandably, the geographic label (such as latitude and longitude coordinates) corresponding to the target image can serve as the final geolocation result for the UAV, and this positioning result can be returned to the UAV's end-side device.

[0033] It should be noted that the third and fourth embedded features in the preset image feature library are extracted and stored offline by the cloud-side model, which has a much higher computing power than the edge-side model, ensuring the high discriminative power of the reference features.

[0034] This demonstrates that by uploading only two low-dimensional embedded features (from the tail layer and non-tail layer) to the UAV edge, the amount of communication data with cloud devices can be compressed, significantly reducing wireless bandwidth consumption and transmission power consumption. Simultaneously, computationally intensive retrieval and re-ranking tasks are migrated to the more powerful cloud side, where high-precision positioning is achieved using a pre-stored cloud model dual-layer embedded feature library. The embedded features uploaded by the edge correspond to global semantics and local structural information, ensuring both initial retrieval recall and providing complementary criteria for re-ranking. This achieves efficient collaboration of heterogeneous computing power between the edge and cloud, significantly improving edge real-time performance and communication efficiency while maintaining positioning accuracy. It is particularly suitable for scenarios with limited bandwidth and high response speed requirements, such as UAV swarms and real-time navigation.

[0035] The above embodiments illustrate the specific implementation process of the UAV image localization method. The cloud-side model can determine candidate images by combining the first embedding features of the query image provided by the edge-side model, and then re-rank the candidate images by combining the second embedding features of the query image provided by the edge-side model, achieving accurate image retrieval and judgment, which can alleviate the computational pressure on the model and improve the UAV localization accuracy. Furthermore, the following embodiments will detail the training process of the cloud-side model and the edge-side model; such as... Figure 3 As shown in the figure, this embodiment discloses an edge-cloud heterogeneous model architecture diagram, which specifically includes the following contents.

[0036] In this embodiment, based on the differences in appearance and scale between UAV and satellite images, as well as the differences in computing power and data processing capabilities between the cloud side and the edge side, a heterogeneous dual-branch model architecture is designed to achieve high accuracy while enabling real-time inference capabilities on the edge side. This mainly includes a cloud-side branch and an edge-side branch. The cloud-side model adopts the DINOv3-SAT model based on the ViT-Large (Visual Transformer) architecture. This model, pre-trained with large-scale remote sensing and natural scene data, possesses powerful global feature abstraction and discrimination capabilities. To further adapt to the needs of image geolocation, the cloud-side model can connect a feature extraction layer (i.e., a unified feature embedding layer) based on differentiable optimal transfer to the frozen DINOv3-SAT backbone parameters. This layer establishes an optimal transfer mapping between the output features of the satellite image in the teacher model and the embedding space, enabling adaptive alignment of feature distributions across different domains. The edge model is primarily deployed on computationally limited ARM CPU (Advanced RISC Machines Central Processing Unit) + NPU (Neural Processing Unit) or small GPU (Graphics Processing Unit) platforms, employing the lightweight EfficientViT architecture. This architecture significantly reduces computational complexity while maintaining high expressive power. Its design features include hierarchical convolutional-attention hybrid modules, local window self-attention, and a token aggregation strategy with linear complexity, thereby greatly reducing inference time and memory usage. To ensure semantic consistency between the drone images processed by the edge model and the satellite images processed by the cloud-side model, the edge model is also connected to a unified feature embedding layer based on differentiable optimal transmission.

[0037] Furthermore, before model training, given a batch of paired training samples (drone images and satellite images), ordered numbered labels (e.g., 000001) are generated; unpaired training samples are extended within the existing numbered label space. Let the virtual training sample batch size be B, the number of paired samples be 2, and the number of unpaired samples be M, then the actual training sample batch size loaded in each iteration is... Specifically, for paired sample pairs in the training batch, feature extraction is performed on both the cloud-side model and the edge-side model to obtain feature vectors. For unpaired samples (satellite images), feature extraction is performed on the cloud-side model, and the features are stacked with those of paired samples and their labels through tensor shape reshaping. Specifically, satellite images can be preprocessed using the mean and variance calculated from the SAT-493M dataset (a satellite dataset), and drone images can be preprocessed using the mean and variance calculated from the ImageNet dataset. It should be noted that during the training phase, an adjustable contrastive learning mechanism for difficult samples is introduced. Domain adaptive optimization of the edge-side model is performed using a multi-similarity loss function and a large number of cross-platform samples. The parameters of the cloud-side teacher model are kept frozen, while the edge-side model continuously adjusts its features on difficult samples to enhance its robustness under oblique / top-down views, different scales, and lighting conditions. Based on a joint metric of Euclidean distance and cosine similarity in the feature space, the difficult sample mining module dynamically selects positive and negative sample sets during the mining process from stacked features and labels. The specific process is as follows: cloud-side feature vector with end vector Perform normalization under the L2 norm: ; .

[0038] Furthermore, a similarity matrix combining Euclidean distance and cosine similarity can be constructed: ; in, This represents the similarity between the i-th edge sample and the j-th cloud sample. and For weights.

[0039] For each positive sample pair, a similarity threshold range is defined. Among unpaired samples, the top-K samples closest to the target domain feature space are added to the hard sample pool as negative samples to maintain clear class boundaries. In each iteration, sample weights are adaptively adjusted based on the distribution density of hard samples. Multi-similarity comparison loss promotes the separation of positive and negative samples; through this training method, the model automatically strengthens its ability to distinguish hard samples and weakens its dependence on easily distinguishable samples during training.

[0040] Understandably, the model trained through the above steps can already achieve image geolocation. Further design and re-ranking are then needed to improve system recall. Specifically, consider extracting additional global features from network layers beyond the tail layer. Specifically, extract a second global feature in the non-tail layer (penultimate layer) of both the edge and cloud models, and the aggregation layer design also employs a differentiable transport-based method. During training, a dual hard sample mining space is introduced, namely the tail layer feature space and the non-tail layer feature space. The multi-similarity contrastive loss function is repeatedly used to supervise both feature spaces, resulting in more refined second global feature alignment.

[0041] Therefore, this solution adopts a heterogeneous edge-cloud architecture. A high-discrimination, large model (such as DINOv3-SAT) is deployed on the cloud side for offline construction of a high-quality reference feature library, while a lightweight model (such as EfficientViT) is deployed on the edge side for real-time extraction of UAV image features. Since the edge only needs to run a small model, the single-frame feature extraction time is reduced to milliseconds, and only two low-dimensional embedding vectors need to be uploaded, significantly reducing communication bandwidth and power consumption, thus solving the problems of insufficient real-time performance and wireless transmission bottlenecks on the edge. Furthermore, to address the difficulty of a single shared encoder in handling differences between slanted and overhead viewpoints, this solution introduces a differentiable, optimally transmitted unified feature embedding layer and employs multi-similarity contrastive learning (including hard sample mining) for domain-adaptive training of the edge model. This mechanism forces edge-side and cloud-side features to align in a unified metric space, enabling the lightweight model to learn the cross-domain robustness of the large model and maintain high discriminative power under complex conditions such as seasonality, lighting, and sensor differences. Meanwhile, addressing the high computational cost of traditional re-ranking methods that rely on dense local feature matching, this scheme specifically extracts non-tail (middle) global features as the basis for the second ranking. This avoids the extraction and verification of local features, effectively reducing the re-ranking time. In summary, this scheme achieves triple optimization—real-time edge inference, low communication overhead, and lightweight re-ranking—while maintaining or even improving geolocation accuracy. It is particularly suitable for cross-view positioning tasks on resource-constrained platforms such as UAVs and unmanned vehicles.

[0042] like Figure 4 As shown, this embodiment discloses a drone image positioning device, applied to cloud-side equipment corresponding to the drone, including: The feature acquisition module 11 is used to acquire a first embedding feature and a second embedding feature corresponding to the query image from the end-side device corresponding to the UAV; the query image is an image collected by the UAV, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the end-side model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the end-side model. The candidate image retrieval module 12 is used to retrieve a number of candidate images from a preset image feature library using the first embedding feature; the preset image feature library includes a number of reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than that of the edge-side model. The positioning result determination module 13 is used to determine the target image from a plurality of candidate images based on the second embedded feature, and determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV.

[0043] Therefore, the feature acquisition module 11, candidate image retrieval module 12, and positioning result determination module 13 work together to achieve efficient edge-cloud collaborative geolocation. The feature acquisition module 11 receives two-level embedded features (tail-level global features and non-tail-level mid-level features) uploaded by the UAV, resulting in a small communication data volume and providing low-latency input for subsequent processing. The candidate image retrieval module 12 uses the first embedded feature to quickly search in the large model feature library pre-stored on the cloud side, leveraging the strong discriminative power of the cloud-side model to ensure a high recall rate and high retrieval efficiency. The positioning result determination module 13 uses the second embedded feature to perform lightweight re-ranking of candidate images, outputting accurate geographic coordinates without requiring local feature matching. The cloud side undertakes storage and computation tasks, while the UAV only needs to upload features, leveraging the advantages of the large cloud-side model while reducing the load and communication bandwidth on the edge side, achieving high-precision, low-latency, and low-overhead cross-view positioning.

[0044] In one specific embodiment, the device may include: The feature extraction module is used to extract features from the image to be queried through the end-side model of the end-side device, obtain the first image features output by the tail layer of the end-side model, and determine the features extracted by the non-tail layer of the end-side model as the second image features; The feature mapping module is used to map the first image feature and the second image feature to a preset global feature embedding layer, respectively, to obtain the corresponding first embedding feature and second embedding feature.

[0045] In one specific embodiment, the candidate image retrieval module 12 may include: The first similarity calculation unit is used to calculate the similarity between the first embedded feature and each third embedded feature in the preset image feature library to obtain the first similarity calculation result; the third embedded feature is the embedded feature of the reference image extracted through the tail layer of the cloud-side model; The candidate image determination unit is used to determine a plurality of candidate images from a plurality of reference images based on the first similarity calculation result.

[0046] In one specific embodiment, the positioning result determination module 13 may include: The second similarity calculation unit is used to calculate the similarity between the second embedding feature and several fourth embedding features corresponding to several candidate images to obtain the second similarity calculation result; the fourth embedding feature is the embedding feature of the reference image extracted from the non-tail layer of the cloud-side model; The target image determination submodule is used to determine the target image from the candidate images based on the second similarity calculation result.

[0047] In another specific embodiment, the target image determination submodule may include: The reordering unit is used to reorder several candidate images according to the second similarity calculation result to obtain an image sequence in descending order of similarity. The target image determination unit is used to determine the first candidate image in the image sequence as the target image.

[0048] like Figure 5 As shown, this embodiment discloses a drone image positioning device, applied to the corresponding end-side equipment of the drone, including: The feature sending module 21 is used to send the first embedded feature and the second embedded feature corresponding to the query image collected by the UAV to the cloud-side device corresponding to the UAV, so that the cloud-side device can use the first embedded feature to retrieve a number of candidate images from a preset image feature library, and determine the target image from the number of candidate images based on the second embedded feature, and then determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV; wherein, the first embedded feature is the embedded feature of the query image extracted by the tail layer of the edge model, the second embedded feature is the embedded feature of the query image extracted by the non-tail layer of the edge model, the preset image feature library includes a number of reference images and the embedded features of the reference images extracted by the tail layer of the cloud-side model and the embedded features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than the computing power of the edge model.

[0049] This demonstrates that the UAV only needs to upload two embedded features (from the tail layer and non-tail layer), reducing wireless bandwidth consumption and transmission power consumption. Simultaneously, the computationally intensive retrieval and re-ranking tasks are migrated to the more powerful cloud side, where high-precision positioning is achieved using a pre-stored two-level embedded feature library. The embedded features uploaded by the UAV ensure the recall rate of the initial retrieval and provide complementary criteria for re-ranking. This achieves efficient collaboration of heterogeneous computing power between the edge and cloud, significantly improving edge real-time performance and communication efficiency while maintaining positioning accuracy.

[0050] Furthermore, embodiments of this application also disclose an electronic device, Figure 6 This is a structural diagram of an electronic device 30 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0051] Figure 6 This is a schematic diagram of the structure of an electronic device 30 provided in an embodiment of this application. Specifically, the electronic device 30 may include: at least one processor 31, at least one memory 32, a power supply 33, a communication interface 34, an input / output interface 35, and a communication bus 36. The memory 32 stores a computer program, which is loaded and executed by the processor 31 to implement the relevant steps in the UAV image localization method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 30 in this embodiment may specifically be an electronic computer.

[0052] In this embodiment, the power supply 33 is used to provide operating voltage for each hardware device on the electronic device 30; the communication interface 34 can create a data transmission channel between the electronic device 30 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 35 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0053] In addition, the memory 32, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 321, computer program 322, etc., and the storage method can be temporary storage or permanent storage.

[0054] The operating system 321 is used to manage and control the various hardware devices on the electronic device 30 and the computer program 322, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the UAV image localization method executed by the electronic device 30 as disclosed in any of the foregoing embodiments, the computer program 322 may further include a computer program capable of performing other specific tasks.

[0055] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned UAV image localization method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0056] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0057] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0058] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0059] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0060] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only intended to help understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for image localization of unmanned aerial vehicles (UAVs), characterized in that, Cloud-based devices used in drones include: The first embedding feature and the second embedding feature corresponding to the query image are obtained from the terminal device corresponding to the UAV; the query image is an image collected by the UAV, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the terminal model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the terminal model. Several candidate images are retrieved from a preset image feature library using the first embedding feature; the preset image feature library includes several reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than that of the edge-side model. The target image is determined from a plurality of candidate images based on the second embedding feature, and the geographical location corresponding to the target image is determined as the geolocation result corresponding to the UAV.

2. The UAV image localization method according to claim 1, characterized in that, The extraction process of the first embedded feature and the second embedded feature includes: The image to be queried is extracted by the end-side model of the end-side device to obtain the first image feature output by the tail layer of the end-side model, and the features extracted by the non-tail layer of the end-side model are determined as the second image feature. The first image feature and the second image feature are respectively mapped to a preset global feature embedding layer to obtain the corresponding first embedding feature and second embedding feature.

3. The UAV image localization method according to claim 1, characterized in that, The step of retrieving several candidate images from a preset image feature library using the first embedded feature includes: The similarity between the first embedded feature and each third embedded feature in the preset image feature library is calculated to obtain the first similarity calculation result; the third embedded feature is the embedded feature of the reference image extracted through the tail layer of the cloud-side model; Based on the first similarity calculation result, several candidate images are determined from several reference images.

4. The UAV image localization method according to claim 1, characterized in that, Determining the target image from the candidate images based on the second embedding feature includes: The similarity between the second embedding feature and several fourth embedding features corresponding to several candidate images is calculated to obtain the second similarity calculation result; the fourth embedding feature is the embedding feature of the reference image extracted from the non-tail layer of the cloud-side model; The target image is determined from the candidate images based on the second similarity calculation result.

5. The UAV image localization method according to claim 4, characterized in that, The step of determining the target image from the candidate images based on the second similarity calculation result includes: Based on the second similarity calculation result, several candidate images are reordered to obtain an image sequence in descending order of similarity. The first candidate image in the image sequence is determined as the target image.

6. A method for image localization of unmanned aerial vehicles (UAVs), characterized in that, End-side devices used in drones include: The first and second embedded features corresponding to the query image collected by the UAV are sent to the cloud-side device corresponding to the UAV, so that the cloud-side device can use the first embedded features to retrieve a number of candidate images from a preset image feature library, and determine the target image from the number of candidate images based on the second embedded features, and then determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV. Wherein, the first embedding feature is the embedding feature of the query image extracted through the tail layer of the edge model, the second embedding feature is the embedding feature of the query image extracted through the non-tail layer of the edge model, the preset image feature library includes several reference images and the embedding features of the reference images extracted through the tail layer of the cloud model and the embedding features of the reference images extracted through the non-tail layer of the cloud model, and the computing power of the cloud model is greater than that of the edge model.

7. A drone image positioning device, characterized in that, Cloud-based devices used in drones include: The feature acquisition module is used to acquire a first embedding feature and a second embedding feature corresponding to the query image from the end-side device corresponding to the UAV; the query image is an image collected by the UAV, the first embedding feature is the embedding feature of the query image extracted by the tail layer of the end-side model, and the second embedding feature is the embedding feature of the query image extracted by the non-tail layer of the end-side model. A candidate image retrieval module is used to retrieve a number of candidate images from a preset image feature library using the first embedding feature; the preset image feature library includes a number of reference images, as well as the embedding features of the reference images extracted by the tail layer of the cloud-side model and the embedding features of the reference images extracted by the non-tail layer of the cloud-side model, and the computing power of the cloud-side model is greater than that of the edge-side model. The positioning result determination module is used to determine the target image from a plurality of candidate images based on the second embedded feature, and determine the geographical location corresponding to the target image as the geolocation result corresponding to the UAV.

8. A drone image positioning device, characterized in that, End-side devices used in drones include: A feature sending module is used to send a first embedded feature and a second embedded feature corresponding to the query image collected by the UAV to the cloud-side device corresponding to the UAV. The cloud-side device uses the first embedded feature to retrieve a number of candidate images from a preset image feature library, and determines a target image from the candidate images based on the second embedded feature. Then, the geographical location corresponding to the target image is determined as the geolocation result corresponding to the UAV. The first embedded feature is the embedded feature of the query image extracted by the tail layer of the edge model, and the second embedded feature is the embedded feature of the query image extracted by the non-tail layer of the edge model. The preset image feature library includes a number of reference images and the embedded features of the reference images extracted by the tail layer of the cloud-side model and the embedded features of the reference images extracted by the non-tail layer of the cloud-side model. The computing power of the cloud-side model is greater than that of the edge model.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the UAV image localization method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements the UAV image localization method as described in any one of claims 1 to 6.