In this paper, we propose a heterogeneous remote sensing image matching framework named SemGeoFrame. The specific implementation is as follows: First, the SegEarth-OV [
21] model is employed to perform semantic segmentation on both UAVs and satellite images, generating pixel-level semantic soft labels. Then, an interchangeable feature matching module (e.g., LoFTR or SuperGlue) is used to obtain initial point correspondences. The Jensen–Shannon divergence is adopted to quantify the semantic consistency of each candidate match, thereby selecting high-confidence matches. Furthermore, by incorporating a semantic confidence prior, we design an FPS strategy based on semantic confidence to ensure uniform distribution of matches in both spatial and semantic dimensions. Finally, a multi-objective optimization function integrating geometric, semantic, and confidence constraints is constructed to achieve robust homography estimation, significantly improving the accuracy and stability of cross-view image matching for UAV localization. The overall framework is illustrated in
Figure 1.
2.1. Semantic Segmentation
In order to improve the accuracy of heterogeneous image matching, this paper proposes a framework of semantic information fusion. Its goal is to introduce and apply the semantic segmentation results of UAV and satellite remote sensing images. Among them, the semantic extraction task is completed by the zero-shot segmentation model based on SegEarth-OV to achieve high accuracy requirements. This model requires no task-specific fine-tuning and has achieved state-of-the-art performance on 17 public remote sensing benchmarks, providing high-quality semantic priors for our task. The SegEarth-OV model extracts rough semantic features through the CLIP encoder and uses SimFeat-Up to conduct feature upsampling to enhance spatial details so as to significantly improve the accuracy of the segmentation boundary while ensuring semantic understanding and finally strengthen the zero-sample migration ability of the model. The model is pre-trained on the Million-Aid dataset and has excellent zero-sample migration ability. In the experiment, we keep the original training configuration and only adjust the image size adaptively according to the input data scale.
In the process of semantic segmentation of the UAV image and the satellite remote sensing image using the SegEarth-OV algorithm, first, input the image to be segmented
, sample CLIP visual features on SimFeat-Up, and reduce the global deviation to obtain the adjusted high-resolution feature
. At the same time, enter the division category name, format it, and get the text embedding vector
through the clip text encoder, where
represents the category index. Next, calculate the cosine similarity between the pixel feature
(the vector of
at position
) and the text embedded
:
Normalize the similarity of all categories of each pixel position to obtain the probability distribution vector of the pixel belonging to each category:
where
is a
dimensional probability vector that satisfies
.
2.3. Semantic Consistency Filtering Module
For UAV and satellite remote sensing image matching, to evaluate semantic consistency, this paper designs an information theory-based measurement process with the Jensen–Shannon divergence as the core metric. This divergence is symmetric and bounded between 0 and 1, allowing it to quantitatively measure the similarity between two probability distributions, which makes it suitable for comparing the soft labels output by semantic segmentation models.
After matching UAVs and satellite images, we obtain a set of candidate matching point pairs , where represents the number of initial matching point pairs, represents the feature point on the UAV image, and represents the feature point on the satellite remote sensing image.
For each candidate matching point pair
, we extract its probability distribution output in the semantic segmentation model. Specifically, the semantic probability distribution of the UAV image feature point
is expressed as:
where
is the total number of semantic categories, and
is the probability that the point
belongs to category
. Similarly, the semantic probability distribution of
in satellite remote sensing image feature points is expressed as:
In order to quantify the semantic consistency between the two points, we use JS divergence to calculate their semantic similarity. The steps are as follows. Firstly, the average distribution
of the semantic probability distribution of corresponding matching points in cross-source images is constructed:
Then, calculate the KL divergence of the probability distribution
of UAV image points and the probability distribution
of satellite remote sensing image points relative to the average distribution
, which measures the difference between a probability distribution and the reference distribution:
Then, JS divergence is calculated based on the above two KL divergences:
Finally, JS divergence is transformed into semantic similarity:
Among them, the semantic similarity is . When the semantic distribution of two feature points is exactly the same, the similarity is 1; when the two distributions are completely different, the similarity is 0. By setting an appropriate similarity threshold , if the semantic similarity of the matching point pair is lower than the threshold, it will be eliminated. This step can screen out matching point pairs with high semantic consistency and provide high-quality candidate matching sets for subsequent geometric verification.
2.4. Spatial Uniform Sampling Module Based on Semantic Prior
When using UAV images and satellite remote sensing images for matching positioning, the spatial distribution uniformity of matching points has an important impact on the positioning accuracy. The matching points with uniform distribution can provide more comprehensive spatial constraints for geometric estimation, so as to improve the accuracy and robustness of the solution; on the contrary, if the matching points are excessively clustered, it will lead to estimation bias.
Thus, we further propose a differentiated sampling strategy based on semantic prior. After obtaining initial matching points through heterogeneous image matching and semantic consistency screening, we adopt a semantic partition-based FPS method: high-confidence points are prioritized based on the confidence scores of each semantic region, while FPS is used to improve spatial uniformity. Between matching accuracy and matching quantity, the former has a more critical impact on estimation accuracy. Therefore, FPS improves the overall quality of the matching set while reducing the number of matching points.
Specifically, this method dynamically assigns different numbers of sampling points to different semantic regions based on their confidence and geometric importance. For example, areas with relatively stable and significant geometric structures, such as buildings, will be given higher sampling weights, so that matching points with high confidence and a high amount of information will be retained first. This strategy not only helps to optimize the spatial distribution of matching points but also improves the overall quality of the matching set.
Let the semantic category set be , the total point set be , and the semantic label function represent the semantic category of point .
The point set divided by semantic category is defined as , and the FPS algorithm is applied independently to each semantic category for sampling: for each category , is obtained by sampling, where represents the target sampling points of semantic category .
In order to reasonably determine the size of , it is necessary to fully consider the matching reliability differences of different semantic categories. Therefore, we introduce the confidence score for different semantic categories of as its reliability basis.
To determine confidence scores experimentally, we constructed a robust pairing dataset based on multi-temporal satellite remote sensing images to systematically evaluate the matching reliability of different semantic features. The specific process is shown in
Figure 2. Firstly, ORB, SIFT, LoFTR, and other feature matching methods are used to extract the initial matching point pairs and retain all the results not eliminated by the RANSAC algorithm, including false matching, to fully cover all kinds of matching behavior. Then, using the pose information recorded by the high-precision RTK system carried by the UAV, the homography matrix is calculated as the geometric truth value, which is used to determine the correctness of the matching point pair. When the reprojection error of the matching point is less than 3.0 pixels, it is regarded as a correct match. Then, according to the semantic segmentation results, the proportion of correct matching points in different semantic categories is counted, and the original confidence of each category is obtained. Finally, the original confidence of all categories is normalized to obtain the statistical confidence of each semantic category.
To ensure the independence of statistical samples, we constructed a subset by extracting images from the dataset at intervals of 180 frames for the aforementioned statistical modeling. Based on this statistical analysis, a hierarchical scoring method is adopted to determine the confidence score of each semantic category. The category with the highest matching accuracy is assigned a value of 1, the second highest 0.5, and the confidence scores of subsequent categories decrease in a geometric progression with a common ratio of 1/2. We employ a discretized ranking assignment instead of directly using statistical confidence to prevent the overall confidence degradation and insufficient sampling caused by the absence of high-confidence categories (e.g., buildings), thereby ensuring stable sampling across different scenarios.
Table 2 shows the statistical confidence, actual accuracy ranking, and corresponding discretized confidence of each semantic category. Based on the confidence score in
Table 2, we further drew a three-dimensional visualization diagram of semantic confidence (as shown in
Figure 3).
Based on the confidence score of the semantic category, the number of sampling points for each category is calculated as follows, , where represents the original number of matching points for semantic category .
After obtaining the sampling points of each category, FPS sampling is performed for each semantic category . For semantic category , set its point set as , and the sampling process is as follows:
First, randomly select the initial point
and make
to calculate the distance from the initial point to each point in the category:
In the
iteration, select the
point farthest from the point set
:
Next, update the selected point set and distance array:
Repeat the above process until the point set contains points; that is, complete the sampling of semantic category .
Merge the sample point sets of all categories into the total sample point set
:
2.5. Homography Matrix Solution Based on Semantic Information Fusion
When using RANSAC to solve the homography matrix
from the pixel coordinate system of aerial images to the Mercator coordinate system, we hope that each pair of matching points
and
in the point set
meets the projection relationship:
In order to solve , the direct linear transformation (DLT) method can be used to transform it into the problem of solving the system of linear equations . Where is a matrix and is a 9-dimensional vector obtained by expanding in rows.
In order to improve the robustness of the estimation, we define a weighting error for each matching point pair
. This error combines geometric reprojection error
, semantic similarity
, and semantic confidence
:
Finally, by minimizing the sum of squares of weighted errors, the least squares solution
of
is obtained:
The objective function can be solved by the weighted least squares method under the DLT framework, so that the high confidence point pair carries a greater weight in the estimation so as to improve the estimation accuracy and robustness of the homography matrix.