WorksComputer Science
Forehead ROI Localization under Real-World Imaging Degradations via Cross-View Pseudo-Labeling
Abstract
Forehead region-of-interest (ROI) localization is important for forehead-creases biometrics, particularly when the lower face is occluded. However, localization remains challenging under varying image quality, pose, and illumination. We propose Confidence and Consistency Guided Pseudo-Labeling (CCGP), which adapts Grounding DINO using unlabeled facial images filtered by detection confidence and geometric consistency between original and horizontally flipped views, without modifying the detector architecture or loss. We evaluate CCGP on five external datasets and 350 images spanning seven imaging conditions. CCGP achieves the highest mean intersection over union (mIoU) on four of five external datasets, improving from 0.415 to 0.580 on RMFRD compared with supervised Grounding DINO. On the quality-stratified subset, the largest gains occur under blur (0.487 to 0.719) and low contrast (0.615 to 0.710). CCGP also outperforms conventional self-training on RMFRD (0.580 versus 0.551 mIoU). Despite a slight in-domain performance gap (0.861 vs. 0.866 mIoU) and challenges with off-angle poses, CCGP improves cross-dataset localization under challenging imaging conditions.
Introduction
Reliable forehead localization is important for facial analysis applications[14], including forehead-creases biometric recognition[1] [15] [21] [18] [19] [16] [20] and surveillance. The forehead can remain visible when other facial regions, particularly the lower face, are occluded by masks. However, localizing the forehead in unconstrained images remains challenging due to variations in illumination, view-point, image quality, and partial occlusion. These variations can reduce localization accuracy and limit the reliability of subsequent forehead-based analysis. Recent vision-language models, such as Grounding DINO, enable open-set object localization by combining visual features with textual prompts[10]. This capability provides a promising starting point for forehead localization without requiring a detector designed exclusively for this region. Nevertheless, adapting a pretrained detector to a specialized localization task requires reliable annotations. Manually annotating large-scale facial datasets is expensive, while directly using automatically generated pseudo labels[9] [17] can introduce localization errors. Such errors may propagate during fine-tuning and negatively affect the resulting detector. Therefore, effectively exploiting unlabeled facial images requires a strategy that identifies reliable pseudo-labels while filtering potentially inaccurate predictions. This work investigates two questions: (i) how does forehead ROI localization performance vary across real-world imaging conditions and datasets, and (ii) can cross-view consistent pseudo-labeling improve localization when adapting a pretrained detector using unlabeled facial images? We address these questions through cross-dataset evaluation, quality stratified robustness experiments, and a comparison with conventional self-training.
In this work, we propose Confidence and Consistency Guided Pseudo-Labeling (CCGP), a framework for improving forehead localization by leveraging unlabeled facial images. CCGP generates predictions from the original image and its horizontally flipped counterpart, maps both predictions to a common coordinate system, and assesses their geometric consistency alongside detection confidence. Pseudo-labels satisfying predefined confidence and consistency criteria are retained, while unreliable predictions are discarded. The accepted pseudo-labels are then combined with ground-truth annotations from FH-V1 to fine-tune Grounding DINO. Importantly, CCGP does not introduce a new detector architecture or an additional training loss; it improves the fine-tuning data through multi-view pseudo-label selection. We evaluate CCGP against supervised and conventional self-training baselines to examine the effectiveness of confidence and consistency guided pseudo-label selection. We further investigate localization performance under challenging imaging conditions and evaluate generalization across datasets. These experiments assess whether filtering pseudo-labels using confidence and cross-view geometric consistency can improve the use of unlabeled data for forehead localization. The main contributions of this work are summarized as follows:
We propose CCGP, which selects reliable forehead pseudo-labels using detection confidence and cross-view geometric consistency.
We fine-tune Grounding DINO using selected pseudo-labels and manually annotated data, reducing the need for additional manual annotations.
We evaluate CCGP against supervised and self-training baselines in terms of cross-dataset generalization, robustness, and computational efficiency.
Related Work
Facial Region Analysis under Occlusion
Facial analysis in real-world scenarios is challenged by occlusion, head pose, illumination, facial scale, and image quality. The Real-World Masked Face Recognition Dataset (RMFRD) [23] supports research on face recognition under mask-induced occlusion. However, masked-face recognition identifies individuals, whereas forehead ROI localization determines the spatial extent of the forehead. Facial region parsing assigns pixel-level semantic labels to facial components. The LaPa dataset and boundary attention based segmentation methods support research on facial parsing and boundary delineation [11]. However, general face parsing differs from forehead ROI localization, which must identify the forehead while distinguishing it from adjacent regions, including the eyebrows, temples, and hairline. These challenges motivate evaluating forehead localization under variations in pose, scale, illumination, and image quality.
Object Detection and Instance Segmentation
Object detection[22][8] and instance segmentation[5] provide complementary approaches to localizing visual regions. Object detectors predict bounding boxes that specify the approximate spatial extent of a target, whereas instance segmentation methods additionally predict pixel-level masks. Bounding box detectors localize the forehead region, whereas segmentation methods predict pixel-level boundaries. Our method performs bounding-box localization rather than pixel-level segmentation. YOLO’s detectors[22][8] are attractive for applications requiring efficient inference. YOLOv7[22] combines architectural and training optimizations to improve the speed accuracy trade-off in real time object detection [22].
YOLOv8[8] provides a more recent implementation supporting object detection and instance segmentation [8]. These architectures provide useful baselines for investigating the localization accuracy and computational efficiency achievable with single stage approaches. Mask R-CNN[6] extends Fast R-CNN [4] with a parallel mask prediction branch, enabling joint instance localization and pixel level segmentation. However, it is not specifically designed for anatomical facial regions, where forehead boundaries can be affected by hairline visibility, eyebrow proximity, head pose, and image quality. Its performance on forehead-specific annotations must therefore be evaluated.
Open-Vocabulary Detection and Diffusion-Based Segmentation
Open-vocabulary detection offers an alternative to conventional closed-set detectors by allowing target concepts to be specified through natural language expressions. Grounding DINO[10] combines Transformer based object detection with grounded vision language pretraining for open-set object detection [10]. This capability is relevant to forehead localization because a target region can be described using a textual prompt without requiring the detector to be restricted to a fixed set of object categories. However, open-vocabulary detectors such as Grounding DINO [10] predict bounding boxes rather than pixel-level masks. Any masks derived from these boxes require separate evaluation, particularly when compared with instance segmentation models. DiffusionInst [5] uses a denoising process to predict instance masks. Their suitability for forehead ROI extraction remains underexplored, motivating comparison of localization accuracy, mask quality, and computational cost. Semi-supervised detection uses confidence-based pseudo-labeling and cross-view consistency. We adapt these strategies to forehead ROI localization using an open-vocabulary detector.
Research Gap and Motivation
Despite advances in face parsing, object detection, instance segmentation, open-vocabulary localization, and diffusion-based segmentation, dedicated forehead ROI localization remains underexplored. Existing methods target general facial regions or object categories, and their effectiveness under diverse real-world imaging conditions requires systematic evaluation. Forehead localization is challenged by variations in pose, scale, illumination, shadows, blur, low contrast, occlusion, and partial forehead visibility. Moreover, Bounding box localization and pixel-level segmentation differ; we evaluate localization using box derived overlap metrics, robustness, and computational efficiency. To investigate these challenges, we evaluate YOLO-based models [8, 22], Mask R-CNN [6], Grounding DINO[10], and DiffusionInst [5]. Cross-dataset evaluation uses FH-V2 [18], AgeDB [13], LFW [3], CMFD [2], and RMFRD [23]. Robustness is assessed on a balanced subset of 350 images covering seven conditions: blur, scale variation, illumination variation, shadows, low contrast, off-angle pose, and good quality images. We further analyze computational efficiency to characterize the trade-offs between accuracy, robustness, and inference cost.
Proposed Method
We propose Confidence and Consistency Guided Pseudo-Labeling (CCGP), a self-training framework for forehead localization that exploits cross-view prediction consistency to select reliable pseudo-labels from unlabeled facial images. The central motivation is that confidence based pseudo-label selection alone may retain predictions that are locally confident but geometrically unstable under image transformations. CCGP addresses this limitation by jointly considering detection confidence and geometric agreement across multiple views before incorporating automatically generated annotations into the training set.
As illustrated in Figure 1, the proposed framework consists of four stages: (i) supervised detector initialization, (ii) multi-view inference, (iii) confidence and consistency guided pseudo-label selection, and (iv) detector fine-tuning using a combination of ground-truth and pseudo-labeled data. Grounding DINO serves as the underlying detection architecture throughout the pipeline. The proposed method does not introduce a separate teacher student architecture or modify the detector backbone and detection head. Instead, CCGP improves the pseudo-label generation procedure by filtering candidate annotations using confidence and cross-view geometric consistency.

Figure 1. Proposed CCGP framework for confident & consistency guided pseudo-labeling generation, model fine-tuning, and forehead detection.
Problem Formulation
Let denote a labeled forehead dataset, where is an input image and is its ground-truth forehead bounding box. Let denote an unlabeled dataset. Our objective is to exploit the unlabeled data to improve forehead localization while limiting the introduction of incorrect pseudo-labels. We first initialize a Grounding DINO detector using the supervised labeled dataset. The initialized detector generates candidate forehead annotations for unlabeled images, which are evaluated using detection confidence and cross-view geometric consistency. The accepted pseudo-labels form a set , which is combined with the labeled data to fine-tune the detector.
Supervised Detector Initialization
We initialize Grounding DINO using a checkpoint trained on the labeled forehead dataset. Given an image and the text prompt , the detector predicts candidate bounding boxes and their associated confidence scores. Let denote the initialized detector, where represents its pretrained parameters. We use this detector to generate pseudo-labels for the unlabeled dataset without requiring manual annotation of every candidate image. Although supervised initialization provides task specific parameters for forehead localization, a single prediction confidence score does not explicitly measure whether the predicted location remains stable under transformations of the input image. CCGP therefore introduces cross-view consistency analysis to provide an additional criterion for assessing pseudo-label reliability.
Multi-View Inference
For each unlabeled image , we construct two views: the original image and its horizontally flipped counterpart. They are defined as , where denotes horizontal flipping. The initialized detector processes both views using the same text prompt and model parameters. The resulting predictions are , where and denote the predicted forehead bounding boxes, and and denote their detection confidence scores. The two views provide complementary predictions of the same forehead region. If a prediction is sensitive to horizontal reflection, the resulting bounding boxes may disagree after coordinate restoration. CCGP uses this disagreement as a proxy for localization uncertainty. Horizontal flipping is selected as a simple, label preserving transformation that enables direct geometric consistency checks after restoring the predicted bounding boxes to the original coordinate system. Other transformations, such as rotation and translation, may also improve robustness; however, their effects are not investigated in this study and are left for future work.
Geometric Consistency Analysis
Predictions obtained from the flipped image are expressed in the flipped-image coordinate system. Therefore, the flipped-view prediction must first be mapped back to the original coordinate system. For an image of width , let a bounding box be . The inverse horizontal-flip transformation is defined as . The restored flipped-view prediction is consequently . We quantify the geometric agreement between the original and restored flipped-view predictions using intersection over union (IoU):
A larger value of indicates stronger spatial agreement between the original and restored flipped-view predictions. In addition to box overlap, CCGP employs a center-disagreement criterion to reject predictions whose estimated locations vary across views. Let denote the normalized center coordinates of the predicted box for view . The center disagreement is computed as
where the variances are computed across the available views. A pseudo-label satisfies the center-consistency criterion only if . The threshold of 0.04 was set as a tolerance for normalized centre displacement between the original and flipped views, allowing minor localization variations while identifying substantial positional disagreement. Cross-view consistency does not guarantee that a prediction matches the unknown ground truth. Instead, it provides an additional reliability criterion that complements the detector’s confidence score.
Confidence & Consistency guided Pseudo-Label Selection
For each unlabeled image, CCGP computes the mean confidence across the original and horizontally flipped views: , where and denote the corresponding confidence scores. A pseudo-label is accepted if its mean confidence and geometric consistency satisfy the following criteria:
where is the indicator function, measures bounding-box consistency, and measures normalized center disagreement across views. The thresholds are , , and .
The final bounding box is obtained by confidence-weighted fusion of the original-view and restored flipped-view predictions:
where, denotes the fused bounding box, while and represent the original-view and restored flip-view predictions, respectively. Among the 15,000 CelebA [12] candidates, 13,375 (89.17%) were accepted, 1,462 rejected, and 163 yielded no detection. All rejected candidates failed the mean confidence threshold of 0.80. Although 107 failed the consistency IoU threshold, 49 exceeded the center disagreement threshold, and 90 had fewer than two valid views, none of these criteria rejected any additional confidence passing candidate. Thus, geometric consistency served as a safeguard rather than an active filter. The minimum per view confidence threshold of 0.25 was never violated. Geometric checks did not reject additional samples; confidence-weighted fusion combined predictions from both views to generate the final pseudo-labels. The accepted pseudo-label set is
where is the confidence-weighted fused bounding box. Only accepted pseudo-labels are retained for subsequent training. Cross-view consistency serves as an uncertainty proxy; it does not guarantee correct localization.
Detector Fine-Tuning
After pseudo-label selection, the accepted annotations are combined with the labeled data: . We initialize a Grounding DINO model from the same supervised checkpoint used for pseudo-label generation and fine-tune it on . Let denote the parameters of the fine-tuned detector. Its training objective is the standard Grounding DINO detection objective: , where denotes the detection loss defined by the underlying Grounding DINO implementation. CCGP does not introduce an additional detection loss or modify the detector architecture. Instead, it changes the composition of the training data by selecting pseudo labels according to detection confidence and cross view geometric consistency. The resulting finetuned detector can exploit additional training examples while limiting the influence of pseudo labels that fail the selection criteria. This hypothesis is evaluated through controlled comparisons with supervised training and conventional confidence based self training.
Experimental Setup
This section presents the datasets, evaluation protocols, and implementation details used to validate the proposed framework. The experiments are designed to evaluate forehead localization across diverse facial appearances and imaging conditions. Multiple masked-face datasets are utilized to simulate realistic scenarios where the lower facial region is occluded, highlighting the importance of the forehead as a reliable biometric region for recognition.
Datasets
We evaluate the proposed framework on multiple facial image datasets comprising masked and unmasked facial images as shown in Figure 2, Table 1. The datasets provide diverse facial appearances and imaging conditions to evaluate the localization of the forehead region. In particular, the inclusion of masked faces is relevant to our setting because facial masks occlude a substantial portion of the lower face, making the visible upper-face region, including the forehead, an important target for reliable localization.
Table 1. Datasets used for evaluation and pseudo-label generation. RWMF, RWSMF, and RWF denote real-world masked-face, simulated masked-face, and real-world face datasets.

Figure 2. Real World Masked Face (RWMF) and Simulated Masked Face (RWSMF) datasets sample images
Forehead V1 (FH-V1) [1]: The FH-V1[1] dataset comprises 4,964 images collected from 247 subjects, including males, females, and children. The images capture masked and unmasked faces under varying facial expressions, providing diverse conditions for forehead analysis. The dataset supports the evaluation of forehead ROI localization and its suitability for subsequent biometric identification.
CelebA [12]: CelebA contains 202,599 face images from 10,177 identities. We select 15,000 images for CCGP pseudo-label generation, of which 13,375 accepted pseudo-labels are used to augment the manually annotated FH-V1 training data during fine-tuning.
Forehead V2 (FH-V2) [18]: FH-V2 [18] comprises 5890 images forehead images from 295 subjects and is used exclusively for open-set evaluation. Approximately 20 images per subject were acquired across two sessions separated by two months using multiple mobile devices. This dataset is used to evaluate the generalization of forehead ROI localization to previously unseen subjects and across variations in acquisition devices and sessions.
LFW Simulated Masked Face (LFW-SMF) [3]: LFW-SMF is derived from the Labeled Faces in the Wild (LFW) benchmark, which contains 13,130 face images from 5,749 identities collected under unconstrained, real-world conditions. In LFW-SMF, synthetic masks are superimposed on the lower facial region of the original images to simulate facial occlusion caused by mask wearing. We use this benchmark to evaluate forehead ROI localization when the lower facial region is occluded.
AgeDB-30 Simulated Masked Face (AgeDB-30-SMF) [13]: AgeDB-30 is a face verification benchmark containing 16,412 images from 568 identities, with substantial variation in subjects’ age, pose, and appearance. We construct the simulated masked version by introducing artificial masks over the lower facial region. These images are used to assess the robustness of forehead ROI localization under variations in image quality, pose, and other challenging imaging conditions.
MaskedFace-Net – Correctly Masked Face Dataset (CMFD) [2]: MaskedFace-Net is a synthetically generated masked-face dataset derived from Flickr-Faces-HQ (FFHQ). It contains approximately 67,047 masked-face images with automatically generated masks that vary in shape, color, and placement. We use this dataset to evaluate the generalization of forehead ROI localization under diverse mask configurations and appearances.
Real-World Masked Face Recognition Dataset (RMFRD) [23]: RMFRD contains real-world masked-face images representing 2095 images from 426 identities. Unlike synthetically masked benchmarks, it captures naturally occurring variations in mask appearance, facial pose, illumination, and image acquisition conditions. We use this dataset to evaluate the generalization of forehead ROI localization under naturally occurring facial occlusion.
The evaluation assesses forehead ROI localization accuracy and cross-dataset robustness, but not crease preservation or identity discrimination, which require separate segmentation and biometric recognition experiments.
Evaluation Protocols
This section describes the evaluation protocols used to assess localization accuracy, cross-dataset generalization, and robustness under varying image quality conditions.
Subject-Disjoint Evaluation
We adopt a subject-disjoint split of FH-V1 into training, validation, and test subsets to prevent identity overlap. The validation set is used for model selection, while the test set is reserved for final evaluation. For CCGP, the supervised Grounding DINO model is initialized using the 2,508 labeled FH-V1 training images. We additionally select 15,000 unlabeled CelebA images for pseudo-label generation, retaining 13,375 images after confidence and consistency guided pseudo-label selection. The resulting training set contains 15,883 images, combining FH-V1 ground-truth annotations with accepted CelebA pseudo-labels. FH-V1 validation and test images are excluded from pseudo-label generation and training. All methods are evaluated on the same FH-V1 test split using consistent evaluation settings to ensure a fair comparison.
Cross-Dataset Evaluation
To examine the generalization of forehead localization beyond the FH-V1 evaluation setting, we additionally evaluate the trained models on FH-V2, LFW, AgeDB, RMFRD, and CMFD, using the corresponding ground-truth annotations. These datasets are used exclusively for evaluation and are excluded from pseudo-label generation, model training, and checkpoint selection. All models are evaluated using the same images, ground-truth annotations, detection confidence threshold, and evaluation metrics within each dataset. This protocol assesses the generalization of the proposed CCGP framework across datasets with different facial appearance characteristics and image acquisition conditions.
Quality stratified robustness evaluation
To evaluate the robustness of forehead ROI localization under diverse real world imaging conditions, we construct a quality stratified subset of 350 face images from five datasets: FH-V2[18], AgeDB [13], LFW[3], CMFD[2], and RMFRD[23]. The subset comprises seven categories, each containing 50 images: blur, face scale variation, illumination variation, shadow, low contrast, off-angle pose, and good-quality images. Image selection was performed using a rule-based image quality assessment and face-pose estimation pipeline. Face detection and bounding-box measurements were obtained using a Haar Cascade face detector, while head-pose variations were estimated using 6DRepNet[7], which provides pitch, yaw, and roll angles.
Image quality was characterized using Laplacian variance for blur assessment, mean brightness for illumination assessment, intensity contrast for low-contrast detection, and a shadow score for shadow identification. The selection criteria included a blur score below 100, a face-area ratio below 0.08 or above 0.65 for face scale variation, brightness below 55 or above 205 for illumination variation, contrast below 40 for low contrast, and a shadow score above 55 for shadow conditions. Images were categorized as off-angle when the absolute yaw exceeded 20, pitch exceeded 18, or roll exceeded 20. Images with detected faces that did not meet any of these criteria were assigned to the good quality category. All images were manually inspected to verify category suitability, facial visibility, and the presence of the target imaging condition, enabling systematic evaluation of forehead ROI localization under real-world image quality variations. Dataset Composition and Limitation: The quality stratified subset spans five datasets with varying domain characteristics. Since dataset composition may differ across quality categories, observed performance differences may reflect both image quality and dataset specific effects. Thus, the results assess robustness across imaging conditions rather than the isolated effect of image quality.
Evaluation Metrics
We evaluate forehead ROI localization using mean Intersection over Union (mIoU), precision, recall, and F1-score. These metrics assess localization overlap and detection performance from complementary perspectives.
Intersection over Union (IoU): IoU measures the overlap between a predicted bounding box and its ground-truth bounding box :
Mean IoU (mIoU) is calculated by averaging the IoU values across the evaluated images, without applying an IoU threshold to the overlap calculation.
Precision and Recall: Precision and recall quantify detection-level performance at an IoU threshold of . A predicted bounding box is considered a true positive (TP) when it matches a ground-truth box with IoU . Unmatched predictions are counted as false positives (FP), while unmatched ground-truth boxes are counted as false negatives (FN). The metrics are defined as
F1-score: F1-score is the harmonic mean of precision and recall, providing a single measure of their balance:
Unlike mIoU, precision, recall, and F1-score depend on the detection matching threshold. We report 95% confidence intervals (CIs) for mIoU, while precision, recall, and F1-score are reported as point estimates.
Results & Discussion
We evaluate CCGP in terms of localization accuracy, cross-dataset generalization, robustness, and computational efficiency.
Subject-Disjoint Generalization
The proposed CCGP approach maintains competitive performance on the FH-V1 subject-disjoint test set, as shown in Table 2. While DiffusionInst achieves the highest mIoU (0.901), CCGP achieves 0.861 mIoU and an F1-score of 0.946, closely approaching the supervised Grounding DINO baseline (0.866 mIoU and 0.948 F1-score). CCGP also achieves a precision of 0.946 and a recall of 0.947, indicating balanced localization performance. However, the marginal difference in mIoU suggests that pseudo-label filtering does not improve spatial overlap over the supervised baseline in this evaluation. These findings indicate that CCGP preserves competitive localization performance, although its benefits are not reflected in improved spatial overlap on the subject-disjoint test set.
| Method | mIoU | F1-score | Precision | Recall |
| YOLOv7[22] | 0.844 [0.836, 0.852] | 0.923 | 0.931 | 0.915 |
| YOLOv8[8] | 0.846 [0.842, 0.848] | 0.921 | 0.921 | 0.921 |
| Mask R-CNN[6] | 0.855 [0.851, 0.858] | 0.936 | 0.936 | 0.936 |
| DiffusionInst[5] | 0.901 [0.896, 0.906] | 0.938 | 0.937 | 0.938 |
| Grounding DINO[10] | 0.866 [0.863, 0.870] | 0.948 | 0.948 | 0.947 |
| Proposed (Ours) | 0.861 [0.858, 0.865] | 0.946 | 0.946 | 0.947 |
Table 2. Forehead ROI localization performance on the FH-V1 subject-disjoint test set. mIoU is reported with 95% confidence intervals (CIs). Precision, recall, and F1-score are computed using detection matching at an IoU threshold of 0.75.
Cross-Dataset Generalization
Evaluating models trained on FH-V1 without target-dataset fine-tuning reveals substantial differences in cross-dataset generalization. As shown in Table 3, the proposed CCGP detector achieves the highest mIoU on four of five external datasets: LFW (0.763), AgeDB (0.759), CMFD (0.722), and RMFRD (0.580). On FH-V2, it remains competitive with an mIoU of 0.709, although YOLOv8 performs slightly better (0.713). The gains are particularly pronounced on LFW, AgeDB, and RMFRD, where mIoU improves over the supervised Grounding DINO baseline by 0.108, 0.085, and 0.165, respectively. On RMFRD, the F1-score increases from 0.292 to 0.385, while on CMFD, it improves from 0.539 to 0.550. These results suggest that CCGP fine-tuning improves forehead localization across datasets with varying image characteristics. The precision and recall results further support these findings. On RMFRD, the proposed method achieves the highest recall (0.367) and improves precision from 0.378 to 0.405 compared with Grounding DINO. On LFW, it also improves F1-score (0.554 to 0.684), precision (0.592 to 0.688), and recall (0.521 to 0.681). CCGP improves cross-dataset localization, particularly on challenging external datasets, although it does not outperform all baselines across every dataset and metric.
| Method | Test Dataset | mIoU | F1-score | Precision | Recall |
| YOLOv7[22] | FH-V2 | 0.702 [0.698,0.705] | 0.425 | 0.428 | 0.423 |
| YOLOv8[8] | FH-V2 | 0.713 [0.709,0.716] | 0.467 | 0.468 | 0.467 |
| Mask R-CNN[6] | FH-V2 | 0.700 [0.697,0.704] | 0.424 | 0.425 | 0.423 |
| DiffusionInst[5] | FH-V2 | 0.701 [0.697,0.704] | 0.417 | 0.418 | 0.417 |
| Grounding DINO[10] | FH-V2 | 0.702 [0.699,0.706] | 0.422 | 0.422 | 0.422 |
| Proposed (Ours) | FH-V2 | 0.709 [0.705,0.712] | 0.451 | 0.452 | 0.451 |
| YOLOv7[22] | LFW | 0.571 [0.566,0.576] | 0.356 | 0.390 | 0.327 |
| YOLOv8[8] | LFW | 0.548 [0.542,0.554] | 0.497 | 0.583 | 0.433 |
| Mask R-CNN[6] | LFW | 0.647 [0.644,0.650] | 0.257 | 0.265 | 0.249 |
| DiffusionInst[5] | LFW | 0.682 [0.678,0.686] | 0.550 | 0.577 | 0.526 |
| Grounding DINO[10] | LFW | 0.655 [0.650,0.659] | 0.554 | 0.592 | 0.521 |
| Proposed | LFW | 0.763 [0.760,0.766] | 0.684 | 0.688 | 0.681 |
| YOLOv7[22] | AgeDB | 0.433 [0.430,0.440] | 0.186 | 0.217 | 0.162 |
| YOLOv8[8] | AgeDB | 0.517 [0.512,0.522] | 0.310 | 0.367 | 0.269 |
| Mask R-CNN[6] | AgeDB | 0.635 [0.632,0.638] | 0.334 | 0.352 | 0.318 |
| DiffusionInst[5] | AgeDB | 0.537 [0.532,0.542] | 0.403 | 0.475 | 0.350 |
| Grounding DINO[10] | AgeDB | 0.674 [0.670,0.677] | 0.514 | 0.538 | 0.492 |
| Proposed | AgeDB | 0.759 [0.756,0.761] | 0.660 | 0.662 | 0.659 |
| YOLOv7[22] | CMFD | 0.485 [0.482,0.488] | 0.413 | 0.506 | 0.349 |
| YOLOv8[8] | CMFD | 0.515 [0.512,0.518] | 0.422 | 0.503 | 0.364 |
| Mask R-CNN[6] | CMFD | 0.644 [0.642,0.646] | 0.452 | 0.478 | 0.429 |
| DiffusionInst[5] | CMFD | 0.535 [0.532,0.537] | 0.404 | 0.474 | 0.352 |
| Grounding DINO[10] | CMFD | 0.699 [0.698,0.701] | 0.539 | 0.554 | 0.525 |
| Proposed | CMFD | 0.722 [0.720,0.723] | 0.550 | 0.554 | 0.546 |
| YOLOv7[22] | RMFRD | 0.330 [0.315,0.346] | 0.225 | 0.307 | 0.178 |
| YOLOv8[8] | RMFRD | 0.388 [0.372,0.404] | 0.320 | 0.432 | 0.254 |
| Mask R-CNN[6] | RMFRD | 0.391 [0.378,0.405] | 0.112 | 0.137 | 0.095 |
| DiffusionInst[5] | RMFRD | 0.334 [0.318,0.350] | 0.293 | 0.451 | 0.217 |
| Grounding DINO[10] | RMFRD | 0.415 [0.400,0.430] | 0.292 | 0.378 | 0.238 |
| Proposed | RMFRD | 0.580 [0.567,0.592] | 0.385 | 0.405 | 0.367 |
Table 3. Cross-dataset forehead ROI localization performance. mIoU is reported with 95% CIs. Precision, recall, and F1-score are computed using detection matching at an IoU threshold of 0.75.
Qualitative Evaluation: Figure 3 compares forehead ROI localization under blur, low contrast, and off-angle pose. CCGP achieves competitive localization, although failures persist when forehead visibility is severely limited.

Figure 3. Qualitative comparison of forehead ROI localization across blur, low contrast, and off-angle cases.
Precision and Recall Analysis Across IoU Thresholds: The precision recall curves as shown in supplementary material reveal dataset dependent localization robustness. CCGP achieves consistently stronger recall on LFW and AgeDB and the highest recall on RMFRD across most IoU thresholds, while maintaining competitive precision. On CMFD, its recall remains competitive with Grounding DINO, whereas FH-V2 shows closely overlapping curves across methods. Precision and recall decline sharply at stricter IoU thresholds, with all methods approaching zero at IoU . CCGP improves localization robustness on challenging external datasets, although its gains vary across datasets and IoU thresholds.
Quality Stratified Robustness Under Real World Condition
Table Table 4 summarizes localization performance across seven imaging conditions. Compared with supervised Grounding DINO, CCGP improves mIoU in every evaluated stratum. The largest improvement occurs under blur, where mIoU increases from 0.487 to 0.719, followed by low contrast, where it increases from 0.615 to 0.710. Improvements are smaller under scale variation, illumination variation, and shadows. For good quality images, mIoU increases from 0.729 to 0.765. Off-angle pose remains challenging, with mIoU increasing from 0.458 to 0.555 but remaining the lowest among the seven conditions for CCGP. CCGP achieves higher mIoU than supervised Grounding DINO across all seven imaging conditions, with the largest gains under blur and low contrast. However, dataset-specific differences may also influence these results.
| Condition | YOLOv7 | YOLOv8 | Mask R-CNN | DiffusionInst | Grounding DINO | Our |
| Normal/Good | 0.611 | 0.650 | 0.687 | 0.608 | 0.729 | 0.765[0.727,0.797] |
| Scale Variation | 0.412 | 0.416 | 0.584 | 0.464 | 0.628 | 0.663[0.606,0.712] |
| Blur | 0.373 | 0.426 | 0.579 | 0.340 | 0.487 | 0.719[0.671,0.762] |
| Illumination | 0.566 | 0.575 | 0.685 | 0.599 | 0.727 | 0.759[0.721,0.792] |
| Shadow | 0.384 | 0.474 | 0.536 | 0.452 | 0.615 | 0.649[0.578,0.712] |
| Low Contrast | 0.477 | 0.444 | 0.640 | 0.529 | 0.615 | 0.710[0.660,0.758] |
| Off-Angle Pose | 0.260 | 0.324 | 0.468 | 0.339 | 0.458 | 0.555[0.491,0.620] |
Table 4. Forehead ROI localization robustness under real-world imaging conditions. mIoU is reported with 95% CI.
Ablation Study
Table Table 5 compares supervised Grounding DINO, conventional self-training, and CCGP on RMFRD (2,095 images). Conventional self-training improves mIoU and F1-score from 0.415/0.292 to 0.551/0.382. CCGP further increases them to 0.580/0.385, with recall rising from 0.351 to 0.367, while precision decreases slightly from 0.419 to 0.405. These results indicate that confidence & consistency guided pseudo-label selection improves localization under cross-dataset shift, with a modest precision recall trade-off. Conventional self-training selects single view Grounding DINO predictions from the same 30,000 image CelebA pool using a confidence threshold of , yielding 24,518 pseudo-labels, whereas CCGP additionally incorporates cross-view consistency; both use identical fine-tuning settings.
| Method | mIoU | F1-score | Precision | Recall |
| Grounding DINO[10] | 0.415[0.400, 0.430] | 0.292 | 0.378 | 0.238 |
| Self-trained Grounding DINO | 0.551[0.538, 0.564] | 0.382 | 0.419 | 0.351 |
| CCGP (Ours) | 0.580[0.567, 0.592] | 0.385 | 0.405 | 0.367 |
Table 5. Ablation study of forehead ROI localization on the RMFRD dataset.
Efficiency Comparison
Table Table 6 compares the computational cost and inference throughput of the evaluated models. YOLOv7 and YOLOv8 achieve the highest throughput at 155.56 and 141.77 FPS, respectively, whereas Mask R-CNN and DiffusionInst incur higher computational costs and lower throughput. CCGP retains the Grounding DINO architecture and adds pseudo-label selection and fine-tuning. CCGP was evaluated on an NVIDIA H200 GPU with batch size 8, while the other models used batch size 1. These differences should be considered when interpreting FPS.
Table 6. Computational characteristics of the evaluated models.
Limitations. CCGP slightly underperforms supervised Grounding DINO in domain. The effects of confidence filtering, geometric consistency, and box fusion remain unisolated. Comparisons with advanced semi-supervised methods and independent pseudo-label quality assessment are also lacking. Robustness evaluation is limited by sample size and dataset composition. Moreover, geometric checks did not further reduce the accepted pseudo-label set at the selected thresholds.
Conclusion
We presented CCGP, a confidence and consistency guided pseudo-labeling framework for forehead localization using Grounding DINO. By combining detection confidence with cross view geometric consistency, CCGP filters pseudo-labels before fine-tuning on a combination of manually annotated and automatically labeled images. Experiments demonstrate improved cross-dataset localization on four of five external datasets, with the largest gains on RMFRD, where mIoU increase from 0.415 to 0.580 respectively. CCGP also improves localization under challenging imaging conditions, particularly blur and low contrast. Despite these gains, performance remains below the supervised baseline in-domain, and low inference throughput limits deployment.
References
- [1]Rohit Bharadwaj, Gaurav Jaswal, Aditya Nigam, and Kamlesh Tiwari. Mobile based human identification using forehead creases: Application and assessment under covid-19 masked face scenarios. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 3693–3701, 2022. 1, 5DOI
- [2]Adrane Cabani, Karim Hammoudi, Halim Benhabiles, and Mahmoud Melkemi. Maskedface-net–a dataset of correctly/incorrectly masked face images in the context of covid-19. Smart Health, 19:100144, 2021. 3, 5, 6
- [3]Muhammed Dalkıran. Lfw simulated masked face dataset. https://www.kaggle.com/datasets/muhammeddalkiran/lfw-simulated-masked-face-dataset, 2021. Kaggle dataset, accessed: 2026-03-10. 3, 5, 6
- [4]Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440–1448, 2015. 2
- [5]Zhangxuan Gu, Haoxing Chen, and Zhuoer Xu. Diffusionist: Diffusion model for instance segmentation. In Icassp 2024-2024 ieee international conference on acoustics, speech and signal processing (icassp), pages 2730–2734. IEEE, 2024. 2, 3, 7, 8arxiv.org/abs/2212.02773
- [6]Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961–2969, 2017. 2, 7, 8
- [7]Thorsten Hempel, Ahmed A Abdelrahman, and Ayoub Al-Hamadi. 6d rotation representation for unconstrained head pose estimation. In 2022 IEEE International Conference on image processing (ICIP), pages 2496–2500. IEEE, 2022. 6
- [8]Glenn Jocher, Ayush Chaurasia, and Jing Qiu. Ultralytics YOLOv8, 2023. 2, 7, 8DOI
- [9]Shijie Li, Junmin Liu, Weilin Shen, Jianyong Sun, and Chengli Tan. Robust teacher: Self-correcting pseudo-label-guided semi-supervised learning for object detection. Computer Vision and Image Understanding, 235:103788, 2023. 1DOI
- [10]Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianyi Yang, Han Su, Jun Zhu, and Lei Zhang. Grounding dino: Marrying dino with grounded pre-training for open-set object detection. In Proceedings of the European Conference on Computer Vision, 2024. 1, 2, 7, 8arxiv.org/abs/2303.05499
- [11]Yinglu Liu, Hailin Shi, Hao Shen, Yue Si, Xiaobo Wang, and Tao Mei. A new dataset and boundary-attention semantic segmentation for face parsing. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 11637–11644, 2020. 2DOI
- [12]Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3730–3738, 2015. 4, 5arxiv.org/abs/1411.7766
- [13]Stylianos Moschoglou, Athanasios Papaioannou, Christos Sagonas, Jiankang Deng, Irene Kotsia, and Stefanos Zafeiriou. Agedb: the first manually collected, in-the-wild age database. In proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 51–59, 2017. 3, 5, 6DOI
- [14]Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815–823, 2015. 1DOI
- [15]Geetanjali Sharma, Gaurav Jaswal, Aditya Nigam, and Raghavendra Ramachandra. Fh-sstnet: Forehead creases based user verification using spatio-spatial temporal network. In 2024 12th International Workshop on Biometrics and Forensics (IWBF), pages 1–6, 2024. 1arxiv.org/abs/2403.16202
- [16]Geetanjali Sharma, Gaurav Jaswal, Aditya Nigam, and Raghavendra Ramachandra. Seeing the lines: Learning discriminative forehead crease patterns via feature fusion. In 29th International Conference on Information Fusion, 2026. 1DOI
- [17]Tahira Shehzadi, Ifza Ifza, Marcus Liwicki, Didier Stricker, and Muhammad Zeshan Afzal. Semi-supervised object detection: A survey on progress from cnn to transformer. Sensors, 26(1):310, 2026. 1DOI
- [18]Abhishek Tandon, Geetanjali Sharma, Gaurav Jaswal, Aditya Nigam, and Raghavendra Ramachandra. Synthetic forehead-creases biometric generation for reliable user verification. In 2024 IEEE International Joint Conference on Biometrics (IJCB), pages 1–9. IEEE, 2024. 1, 3, 5, 6arxiv.org/abs/2408.15693
- [19]Abhishek Tandon, Ashutosh Sharma, Geetanjali Sharma, Gaurav Jaswal, Raghavendra Ramachandra, and Aditya Nigam. Creasgen: Generating realistic forehead-creases via b-splines, reinforcement learning and diffusion modeling. Information Fusion, page 103899, 2025. 1DOI
- [20]Abhishek Tandon, Geetanjali Sharma, Gaurav Jaswal, Aditya Nigam, and Raghavendra Ramachandra. Fc-iqa: Forehead-creases biometric image quality assessment and evaluation. In International Symposium on Visual Computing, pages 141–153. Springer, 2025. 1DOI
- [21]Abhishek Tandon, Geetanjali Sharma, Gaurav Jaswal, Aditya Nigam, and Raghavendra Ramachandra. Generating realistic forehead-creases for user verification via conditioned piecewise polynomial curves. In Proceedings of the Winter Conference on Applications of Computer Vision, pages 1412–1420, 2025. 1
- [22]Chien-Yao Wang, Alexey Bochkovskiy, and Hong-Yuan Mark Liao. Yolov7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In 2023 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 7464–7475. Ieee, 2023. 2, 7, 8
- [23]Zhongyuan Wang, Baojun Huang, Guangcheng Wang, Peng Yi, and Kui Jiang. Masked face recognition dataset and application. IEEE Transactions on Biometrics, Behavior, and Identity Science, 5(2):298–304, 2023. 2, 3, 5, 6arxiv.org/abs/2003.09093