{"pub_number":"US12205346B2","doc_number":"12205346","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"System for three-dimensional geometric guided student-teacher feature matching (3DG-STFM)","abstract_text":"A system for three-dimensional geometric guided student-teacher feature matching includes a multi-modal teacher model configured to determine feature matching between a pair of RGB-D images, each RGB-D image being a combination of a RGB image and its corresponding depth image; a mono-modal student model configured to determine feature matching from the pair of RGB images and the teacher model, the teacher model guiding the student model to learn RGB-induced depth information for the feature matching on both coarse and fine levels; a coarse-level knowledge transfer loss function for determining loss of transferring coarse-level matching knowledge from the teacher model to the student model; and a fine-level knowledge transfer loss function for determining loss of transferring fine-level matching knowledge from the teacher model to the student model, wherein the fine-level knowledge transfer loss function guides the student model to learn a fine-level prediction distribution with priority.","claims":[{"number":1,"text":"A system for three-dimensional geometric guided student-teacher feature matching (3DG-STFM), comprising: a multi-modal teacher model configured to determine feature matching between a pair of RGB-D images; wherein each RGB-D image is a combination of a RGB image and its corresponding depth image, wherein the depth image is an image channel in which each pixel relates to a distance between an image plane and a corresponding object in the RGB image; a mono-modal student model configured to determine feature matching from the pair of RGB images and the teacher model, wherein the teacher model guides the student model to learn RGB-induced depth information for the feature matching on both coarse and fine levels; a coarse-level knowledge transfer loss function for determining loss of transferring coarse-level matching knowledge from the teacher model to the student model; and a fine-level knowledge transfer loss function for determining loss of transferring fine-level matching knowledge from the teacher model to the student model, wherein the fine-level knowledge transfer loss function guides the student model to learn a fine-level prediction distribution with priority, wherein each of the teacher model and the student model comprises: a feature pyramid network (FPN) configured to extract coarse-level local features with ⅛ of an original image resolution and fine-level features with ½ of the original image resolution from the pair of images; and a coarse-level local feature transform module configured to flatten maps of the extracted coarse-level features to one-dimensional vectors; perform positional encoding on the flattened one-dimensional vectors to assign each feature entry a unique embedding vector in a sinusoidal format to encode spatial information; and process the encoded local feature vectors by a coarse-level matching transformer comprising self-attention and cross-attention layers to generate a logits layer comprising a correlation matrix.","independent":true},{"number":2,"text":"The system of claim 1, wherein the FPN of the teacher model is designed for 4-channel inputs of RGB-D images, and the FPN of the student model is designed for 3-channel inputs of RGB images, wherein D is depth information.","independent":false,"depends_on":[1]},{"number":3,"text":"The system of claim 1, wherein each of the teacher model and the student model further comprises a coarse-level matching module, and a fine-level matching module.","independent":false,"depends_on":[1]},{"number":4,"text":"The system of claim 1, wherein the self-attention and cross-attention layers are interleaved in the coarse-level matching transformer by L c times.","independent":false,"depends_on":[1]},{"number":5,"text":"The system of claim 3, wherein the coarse-level matching module is configured to generate a confidence score matrix P c by applying a dual softmax operation to the correlation matrix S c on both row and column directions: P c (i,j)=softmax(S c (i, ·) j)*softmax(S c (·, j) i) wherein P c (i, j) is a matching probability at matching position (i, j); and select matching pairs with probability scores higher than a threshold θ c to yield coarse-level matching predictions.","independent":false,"depends_on":[3]},{"number":6,"text":"The system of claim 5, wherein given the ground-truth matrix derived from correspondence labels, cross-entropy loss that measures the performance of the coarse-level local feature transform module and the coarse-level matching module is calculated as: ℒ c = - FL ⁡ (P c (i, j)) ⁢ log ⁡ (P c) FL ⁡ (p) = α ⁡ (1 - p ^) γ, p ˆ = { p 1 - p ⁢ if ⁢ y = 1, otherwise wherein gt is a correspondence set generated by the ground-truth labels, FL with a predicted probability p is a focal loss term for addressing imbalance between matching and unmatching pairs.","independent":false,"depends_on":[5]},{"number":7,"text":"The system of claim 5, wherein the fine-level matching module is configured to project the coarse matching position (i, j) on the fine-level feature map at position (î, ĵ) and extract its features from a neighboring w × w size window as matching candidates; upsample the selected coarse-level features and concatenate the upsampled coarse-level features to the fine-level features; and process the concatenated fine-level features by a fine-level matching transformer to predict correspondences on subpixel-level.","independent":false,"depends_on":[5]},{"number":8,"text":"The system of claim 7, wherein the fine-level matching transformer contains L f self-attention and cross-attention layers to aggregate fine-level local information and generate a heatmap distribution for the location refinement.","independent":false,"depends_on":[7]},{"number":9,"text":"The system of claim 7, wherein the final loss based on the direct supervision is calculated by: ℒ f = 1 σ 2 (ι ^) ⁢  μ ⁡ (ι ^) - J ^ gt  2 2 where (î, ĵ) is the ground-truth position wrapped from an image solution to a fine-level heatmap scale, μ (î) is the prediction associated to a coarse position î, σ 2 (î) is the total variance of the heatmap distribution, and f is the set of fine matches predicted by the module.","independent":false,"depends_on":[7]},{"number":10,"text":"The system of claim 9, wherein the total variance of the similarity distribution is treated as uncertainty to assign a weight to each fine-level match, and wherein the larger total variance indicates it is an uncertain prediction and associates with low weights.","independent":false,"depends_on":[9]},{"number":11,"text":"The system of claim 5, wherein the coarse-level knowledge transfer loss function is adapted to decompose the logits layer to multiple independent query distributions and guides the student model to learn the distributions.","independent":false,"depends_on":[5]},{"number":12,"text":"The system of claim 11, wherein the coarse-level knowledge transfer loss function determines a mutual query divergence (MQD) loss that employs all the mutual query distributions for knowledge transfer: ℒ MQD = - 1 n [- ∑ i = 1 n FL ⁡ (p S (i)) ⁢ p ˆ S (i) ⁢ log ⁡ (p ˆ T (i))] p ˆ S (ι) = exp ⁡ (o S k T) ∑ k = 1 L exp ⁡ (o S k T) p ˆ T (ι) = exp ⁢ (o T k T) ∑ k = 1 L exp ⁡ (o T k T) p S (ι) = exp ⁡ (o S k) ∑ k = 1 L exp ⁡ (o S k) where {circumflex over (p)} S (i) and {circumflex over (p)} T (i) are respectively student's and teacher's query distributions distilled at temperature T, additional focal loss weight FL is added to balance the matching/unmatching ground-truth pairs, p S (i) is the standard confidence score predicted by the student model, and the total MQD loss MQD on the coarse level is the mean of knowledge distillation (KD) loss of all n distributions, wherein n is equal to 2 × hw.","independent":false,"depends_on":[11]},{"number":13,"text":"The system of claim 7, wherein the fine-level knowledge transfer loss function is adapted to assign weights to the prediction of the teacher model, with the prediction with higher certainty is assigned with larger weights.","independent":false,"depends_on":[7]},{"number":14,"text":"The system of claim 13, wherein the heatmaps of the teacher model and the student model are of Gaussian distributions N t (μ t, σ t 2) and N s (μ s, σ s 2), respectively.","independent":false,"depends_on":[13]},{"number":15,"text":"The system of claim 14, wherein the fine-level knowledge transfer loss function determines an attentive loss (att) that is applied to help the student model learn the Gaussian distributions: ℒ att = 1 2 ⁢ σ t (ι ^) 2 ⁢ (μ S (ι ^) - μ t (ι ^)) 2 where the μ s (î) and μ t (î) are the expectations of student's and teacher's output distributions which correspond to match (î, ĵ) in the fine-level correspondence set f.","independent":false,"depends_on":[14]},{"number":16,"text":"The system of claim 15, wherein the attentive loss is treated as a l 2 distance loss that pays more attention to the prediction associated with large attention weight 1 2 ⁢ σ t (ι ^) 2.","independent":false,"depends_on":[15]},{"number":17,"text":"The system of claim 15, wherein the teacher prediction with a small total variance indicates the teacher model is quite certain about the location of the correspondence, wherein the loss is assigned with a large weight to guide the student model to learn the certain predictions from the teacher model in priority.","independent":false,"depends_on":[15]},{"number":18,"text":"The system of claim 15, wherein the final losses for the teacher model and the student model are respectively: teacher = λ 0 c + λ 1 f; and student = λ 0 c + λ 1 f + λ 2 MQD + λ 3 att.","independent":false,"depends_on":[15]}],"claim_stats":{"total":18,"independent":1,"dependent":17},"description":"FIELD OF THE INVENTION\nThe invention relates generally to image processing, and more particularly, to a system for three-dimensional geometric guided student-teacher feature matching (3DG-STFM) for establishing correspondences between overlapped images.\nBACKGROUND OF THE INVENTION\nEstablishing correspondences between overlapped images is critical for many computer vision tasks including structure from motion (SfM), simultaneous localization and mapping (SLAM), visual localization, etc.\nMost existing methods that tackle this problem follow the classical tri-stage pipeline, i.e., feature detection, feature description, and feature matching. To generate robust descriptors that are invulnerable to the illumination or viewpoint variations, both traditional hand-crafted feature descriptors, e.g., SIFT, SURF and BRISK, and deep network representation features are intensively studied. The point-to-point correspondences are produced by matching algorithm based on nearest neighbor search or learnable matching strategies.\nA learning-based matching system, SuperGlue, built a densely connected graph between two sets of keypoints by leveraging a graph neural network (GNN). Geometric correlation of the keypoints and their visual features are integrated and exchanged within the GNN using the self and cross attention mechanism. However, those detector-based local feature matching algorithms only produced sparse keypoints, especially in low-texture regions.\nTherefore, a heretofore unaddressed need exists in the art to address the aforementioned deficiencies and inadequacies.\nSUMMARY OF THE INVENTION\nIn view of the aforementioned deficiencies and inadequacies in the existing methods, one objective of this invention is to provide a framework/architecture using RGB-induced depth information to improve local feature matching performance. Another objective of the invention is to provide a model compression system to train an efficient, light-weight model, so it consumes the less computati","inventors":[{"name":"Runyu Mao","slug":"runyu-mao","city":"Guangdong","country":"CN"},{"name":"Chen Bai","slug":"chen-bai","city":"Guangdong","country":"CN"},{"name":"Yatong An","slug":"yatong-an","city":"Guangdong","country":"CN"},{"name":"Cheng Lu","slug":"cheng-lu","city":"Guangdong","country":"CN"}],"assignees":[{"name":"Guangzhou Xiaopeng Autopilot Technology Co., Ltd.","slug":"guangzhou-xiaopeng-autopilot-technology-co-ltd","country":"CN"}],"examiners":[],"cpc_codes":["G06F 17/18","G06V 10/751","G06V 10/776","G06V 10/778"],"ipc_codes":["G06F 17/18","G06K 9/00","G06V 10/75","G06V 10/776","G06V 10/778"],"filing_date":"2022-03-17","pub_date":"2025-01-21","grant_date":"2025-01-21","expiration_date":"2042-03-17","family_members":[],"citations_made":[{"pub_number":"US20230046088A1","category":"examiner"},{"pub_number":"US20230111306A1","category":"examiner"},{"pub_number":"US20230153943A1","category":"examiner"},{"pub_number":"CN111401406A","category":"examiner"}],"non_patent_literature":[],"drawings_count":6,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":4,"npl_citations":0,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3629373,"pagerank_rank":3629373,"velocity_rank":3629373,"family_citations":0}}