CG-HAF: An Interpretable Global-Local Lesion-Burden Fusion Framework for Ordinal Acne Severity Grading in Agentic Skincare Support
Authors: Muhammad Muhtasim Shahriar, Md. Naimur Asif Borno, Saad Aloteibi, Mohammad Ali Moni
Organizations: Department of Computer Science, International Islamic University Chittagong (IIUC), Chittagong, Bangladesh · Department of Mechatronics, Rajshahi University of Engineering and Technology (RUET), Rajshahi, Bangladesh · Department of Computer Science and Engineering, College of Applied Studies, King Saud University, Riyadh, 11437, Saudi Arabia · AI & Digital Health Technology, Rural Health Research Institute, Charles Sturt University, Orange, NSW, 2800, Australia · AI & Digital Health Technology, Artificial Intelligence and Cyber Futures Institute, Charles Sturt University, Bathurst, NSW, 2795, Australia · School of Health and Rehabilitation Sciences, The University of Queensland, St Lucia, Brisbane, QLD, 4072, Australia
Ordinal acne severity grading requires distinguishing visually similar neighboring grades while jointly weighing holistic facial appearance and localized lesion burden - evidence that most existing approaches collapse into a single opaque representation. We introduce CG-HAF, a global-local fusion framework that instead keeps this evidence explicit: averaged holistic severity probabilities from independently trained classifiers are combined with structured lesion-burden descriptors from an object detector (lesion count, detection confidence, lesion area) into a compact representation, from which a lightweight, interpretable classifier produces the final grade. On a widely used benchmark, this fusion yields a clear, statistically supported improvement over global-evidence-only baselines, with the largest gains on the most severe cases. Testing on an independent dataset with a different grading standard shows that strong within-dataset performance does not transfer automatically, and a follow-up diagnostic attributes much of this gap to mismatched grading criteria rather than detection failure alone. These findings support interpretable global-local fusion as an effective strategy for ordinal acne grading while highlighting criterion alignment as key to cross-dataset portability, with a further illustration of how the resulting severity signal can support transparent, non-diagnostic decision-making in skincare applications.
Figures & tables
Study
Dataset / task
Core approach
Evidence / fusion strategy
Distinction from CG-HAF
Zhang and Ma (2022) [ 15 ]
ACNE04; severity, count, localization
Joint classification–localization ensemble
Severity/count prediction with parallel localization outputs
Parallel outputs; detector burden not fused into final grading
Khairani and Kosala (2025) [ 16 ]
Acne detection; 4-class severity
YOLOv11 with count-to-grade mapping
Lesion counts converted to severity via count thresholds
Count-derived grading; no independent global probability stream
Local detection evaluated across skin-color scenarios
Detection fairness study, not final-stage grading fusion
Table 1: Representative acne-severity grading and lesion-aware approaches positioned relative to CG-HAF. Comparisons are methodological; differences in datasets, grading criteria, and evaluation protocols preclude direct ranking of performance.
Split
Mild
Mod.
Sev.
V. Sev.
Images
Boxes
Train
362
457
139
91
1049
13611
Validation
32
59
13
12
116
1616
Test
99
131
36
26
292
3756
Total
493
647
188
129
1457
18983
Table 2: Fixed ACNE04 severity and lesion-annotation composition.
Figure 1: Retained CG-HAF architecture. Three-seed ConvNeXtV2-Large probabilities provide 4-D global severity evidence, while YOLOv12s detections provide 8-D structured lesion-burden evidence. Their concatenation yields the 12-D F4 representation used by a validation-fitted balanced multinomial logistic regression classifier. The auxiliary count head is training-only, and Grad-CAM/YOLO visualizations are post hoc inspection components that do not affect predictions.
Figure 2: Detailed architecture of the global ConvNeXtV2-Large severity-count branch, illustrating the backbone representation learning, four-class ordinal severity head, auxiliary 65-bin lesion-count distribution head, and Teacher-EMA consistency regularization pathway.
Figure 3: Detailed architecture of the local YOLOv12s lesion-evidence branch, illustrating localized multi-scale acne lesion detection, bounding-box prediction, detection-confidence extraction, and count-to-grade severity mapping.
Effect of full training design vs. minimal baseline
A1
Remove skin-region masking
Contribution of masking
A2
Remove LDL
Contribution of ordinal label-distribution supervision
A3
Remove count head/losses
Contribution of count guidance
A4
Remove Teacher-EMA consistency
Contribution of EMA consistency regularization
Table 3: Controlled training and fusion ablation design.
Figure 4: Implemented SkinAgent application example showing input validation, CG-HAF-derived severity and lesion-burden evidence, and downstream safety-grounded routing. This example demonstrates system integration only and is not a quantitative or clinical validation of the complete agentic system.
Figure 5: Confusion matrix of the retained three-seed probability-aggregated F4 CG-HAF on the fixed ACNE04 test split. Integer counts are shown; 36 of 37 errors occurred between adjacent severity grades.
Figure 6: Qualitative comparison of representative ACNE04 test cases using principal internal comparison systems with aligned per-image predictions. Each row shows the input image, ground-truth severity grade, and predictions from the YOLOv12s count-only reference, the historical canonical CG-HAF system, and the retained three-seed probability-aggregated F4 CG-HAF model. The examples illustrate image-level differences among the compared predictors and include a challenging case to avoid presenting only successful final-model predictions.
Predictor
Accuracy
Macro-F1
QWK
Notes
Seed 42
84.93%
0.8221
0.9018
Independent F4 stack
Seed 123
86.30%
0.8441
0.9128
Independent F4 stack
Seed 2026
85.27%
0.8445
0.9064
Independent F4 stack
Seed mean ± SD
85.50% ± 0.71 pp
0.8369 ± 0.0128
0.9070 ± 0.0055
Arithmetic run-level summary
Probability-aggregated F4
87.33%
0.8576
0.9173
Final image-wise probability aggregation
Table 4: Seed-level stability and probability-level aggregation.
Figure 7: Seed-level F4 stacking performance and the distinct probability-aggregated F4 predictor. The seed mean is a descriptive run-level summary; the aggregated predictor has no run-level error bar.
System
Accuracy
Macro-F1
QWK
Grade MAE
ECE
Severe recall
Very Severe recall
Decision
Original-branch F4
87.33%
0.8576
0.9173
0.1301
0.1453
0.8333
0.8846
Retained
Count-conditioned F4
86.99%
0.8557
0.9214
0.1301
0.1363
0.8056
0.8846
Secondary
Frozen 0.625/0.375 dual stack
87.33%
0.8486
0.9255
0.1267
0.1354
0.7500
0.9231
Rejected
Table 5: Safety-constrained comparison of retained and secondary three-seed candidate systems.
Figure 8: Complementary interpretability evidence for CG-HAF. The upper panels show historical qualitative ConvNeXtV2 Grad-CAM and YOLOv12s examples for aligned Severe ( levle3_21 ) and Very Severe ( levle3_16 ) images; they are not three-seed ensemble attributions. The lower panel shows coefficients from the final retained validation-fitted F4 logistic-regression stack. Coefficients are descriptive, scale-dependent, and non-causal.
Model
Acc.
BAcc.
F1
QWK
MAE
Global
35.0
0.3346
0.3301
0.4390
0.770
Local
40.0
0.3532
0.3362
0.4367
0.730
F4
39.0
0.3554
0.3459
0.4651
0.715
Table 6: Frozen subject-level cross-criterion evaluation on PLSBRACNE01.
Method
Acc.
Macro-F1
QWK
MAE
Hayashi rule
43.5
0.3629
0.5344
0.605
TOTAL2 ordinal
58.5
0.5874
0.7312
0.475
TYPE10 multinomial
72.0
0.7227
0.8614
0.290
TYPE10 ordinal
74.0
0.7364
0.8726
0.270
Table 7: Annotation-assisted cross-criterion diagnostic on PLSBRACNE01. Expert lesion evidence is used in this analysis.
Configuration
Dim.
Accuracy
Balanced Acc.
Macro-F1
QWK
Grade MAE
Severe recall
Very Severe recall
Global-only
4
81.16%
0.7747
0.7658
0.8706
0.1952
0.6389
0.7692
Local-only
8
80.48%
0.7906
0.7820
0.8853
0.1952
0.6389
0.8462
Full CG-HAF
12
87.33%
0.8699
0.8576
0.9173
0.1301
0.8333
0.8846
Table 8: Controlled global–local branch ablation on the fixed ACNE04 test partition.
Figure 9: Qualitative analysis of global–local prediction behavior on the ACNE04 test set. Panel A shows five illustrative test images with ground-truth grades and the four-class predictive distributions from the Global-only, Local-only, and Full CG-HAF configurations (cell intensity = class probability; thick outline = predicted class), including complementary single-stream successes, one Full-only-correct case, and a fusion failure case. Panel B reports correctness-pattern frequencies across the full 292-image test set. M/Mo/S/VS: Mild/Moderate/Severe/Very Severe; G/L/F: Global-only/Local-only/Full CG-HAF.
Figure 10: Progressive F0–F4 fusion-feature ablation shown as improvement relative to F0. The confirmatory comparison concerns the complete F4 representation versus F0 (Holm-adjusted exact McNemar p=0.001109 ); intermediate numerical increments are not interpreted as independently significant.
Variant
Feature composition
Dim.
Accuracy
Macro-F1
QWK
Grade MAE
Severe recall
Very Severe recall
RAW_CNN
Direct three-seed mean CNN
4
81.16%
0.7586
0.8689
0.1952
0.6111
0.7308
F0
Averaged global probabilities
4
81.16%
0.7658
0.8706
0.1952
0.6389
0.7692
F1
F0 + count-derived grade
8
85.27%
0.8202
0.9053
0.1507
0.7222
0.8462
F2
F1 + continuous count
9
85.62%
0.8284
0.9068
0.1473
0.7500
0.8462
F3
F2 + confidence evidence
11
85.96%
0.8367
0.9083
0.1438
0.7778
0.8462
F4
F3 + lesion area; complete 12-D
12
87.33%
0.8576
0.9173
0.1301
0.8333
0.8846
Table 9: Progressive decomposition of the CG-HAF detector-to-grading representation.
Configuration
Accuracy
Balanced Acc.
Macro-F1
QWK
Grade MAE
Severe recall
Very Severe recall
Full image branch
81.16%
0.7619
0.7586
0.8689
0.1952
0.6111
0.7308
A0: vanilla CE-only
80.14%
0.7774
0.7792
0.8756
0.1986
0.6667
0.8077
A1: without skin-region masking
81.51%
0.7922
0.7870
0.8884
0.1849
0.6111
0.8846
A2: without LDL
78.42%
0.7241
0.7247
0.8498
0.2226
0.5000
0.7308
A3: without count guidance
80.48%
0.7610
0.7593
0.8643
0.2021
0.5556
0.8077
A4: without Teacher-EMA consistency
79.79%
0.7518
0.7522
0.8583
0.2089
0.6111
0.7308
Table 10: Controlled training-component ablation using three-seed probability-mean global predictions.
Figure 11: Differences between A0–A4 and the Full global image branch at the probability-mean endpoint. The plot is descriptive; paired bootstrap confidence intervals supporting the A2 finding are reported in the text and are not inferred for all variants.
Study
Dataset / task
Reported result
Wu et al. [ 1 ]
ACNE04; 4-grade severity
Acc.: 84.11%
KIEGLFN [ 4 ]
ACNE04 / PLSBRACNE01; grading
Acc.: 84.52% / 59.35%
DED [ 5 ]
ACNE04 / PLSBRACNE01; grading
Acc.: 86.06% / 67.56%
AcneGrader [ 9 ]
ACNE04; severity grading
Acc.: 85.82%
Prior-Knowledge Guided [ 10 ]
ACNE04 / PLSBRACNE01; grading
Acc.: 85.27% / 65.85%
FF-PLL [ 11 ]
ACNE04 / ACNE-ECKH; grading
Acc.: 87.33% / 67.50%
Table 11: Reported performance of representative acne-severity grading and lesion-aware studies, arranged in citation order.
Automated acne severity grading requires both whole-face context and fine-grained lesion evidence. We propose LENS-GRF (Lesion Evidence Network with Set-Transformer and Gated Residual Fusion), an interpretable multi-stage framework for four-class acne severity grading. The method combines Adaptive Facial Skin Segmentation and a global Vision Transformer prior with a permutation-invariant Lesion Set Transformer that encodes localized lesion patches and spatial geometry. Gated Residual Fusion adaptively controls the local residual contribution and reduces to the global prediction when the gate is zero. On ACNE04, fully automated LENS-GRF with YOLOv11s achieved 80.82% accuracy; with ground-truth lesion annotations, it achieved 95.89% +/- 0.59% accuracy and a Quadratic Weighted Kappa of 0.9753. A data-integrity audit identified 15 cross-split duplicate image pairs, including five with conflicting severity labels. In locked zero-shot evaluation on the full PLSBRACNE01 cohort (200 subjects, 600 views), automated LENS-GRF achieved 35.00% accuracy versus 42.50% for the global baseline. On the 148-subject common cohort used for three-dermatologist oracle analysis, ground-truth lesion inputs increased the best oracle accuracy to 47.97%, while the highest oracle QWK was 0.5799. Pairwise oracle agreement ranged from 49.32% to 66.22%, highlighting detector domain shift, annotation variability, and cross-criterion mismatch.
Muhammad Muhtasim Shahriar, M. F. Mridha
Department of Computer Science, International Islamic University Chittagong (IIUC), Chittagong, Bangladesh · Department of Computer Science, American International University-Bangladesh (AIUB), Dhaka, Bangladesh
Acne vulgaris affects most adolescents and many adults. Accurate severity grading guides treatment, monitoring, and clinical trial endpoints, but manual assessment using the Investigator's Global Assessment or Hayashi criteria is limited by inter-rater variability and inconsistent imaging conditions. We developed a four-class acne severity classifier based on the Hayashi criteria using transfer learning with an ImageNet-pretrained EfficientNet-B0 model. The model was fine-tuned on the public ACNE04 dataset of 2,983 labeled images using AdamW optimization, geometric and photometric augmentation, and checkpoint selection based on validation macro-F1. On a held-out stratified 15 percent test set, the classifier achieved 93.5 percent accuracy and 94.4 percent macro-F1, with per-class F1 scores from 0.92 to 0.97. Eighty-three percent of errors occurred between adjacent grades. Quadratic-weighted Cohen's kappa was 0.956, with a 95 percent confidence interval of 0.935 to 0.973. Bootstrap confidence intervals indicated stable performance. Grad-CAM visualizations from the final convolutional block focused on clinically relevant facial regions, including the forehead, cheeks, and chin. The complete pipeline is provided as functionally equivalent open-source implementations in Python using PyTorch and timm, and in MATLAB R2026a. The software includes a clinician-facing inference interface and a fallback backbone option that supports operation without specialized pretrained-weight packages. These results show that lightweight transfer learning can provide accurate, balanced, and interpretable acne severity grading while offering a reproducible cross-platform reference for future prospective and device-stratified clinical validation.
Sophie Zeng, Sean Kalaycioglu, Collin Hong +1
Dr. Robot Inc., Toronto, ON, Canada · Department of Aerospace Engineering, Toronto Metropolitan University, Toronto, ON, Canada · Skinopathy Inc., Toronto, ON, Canada
Acne assessment is crucial for clinical decision-making, yet traditional grading and counting are subjective and fail to account for lesion size. While area-based assessment has emerged as a promising alternative, acne segmentation has continued to rely on general-purpose architectures. To address this gap, we propose VL-AcneSeg, a multimodal framework for acne lesion segmentation that leverages CLIP and region-level text prompts to incorporate spatial priors, enabling lesions to be localized across the whole face. Because region-level prompts indicate which facial areas contain lesions, we report a single global prompt, which requires no such information, as our primary setting. On our internal clinical dataset, VL-AcneSeg achieves a Dice score of 0.5082 and an IoU of 0.3407 under this protocol, the highest among all compared methods, including recent vision-language segmentation methods that are themselves given region-level prompts; region-level prompting raises these to 0.5296 and 0.3602. Moreover, lesion area measurements derived from our segmentation correlate with IGA scores at a level comparable to expert annotations (Pearson r = 0.719 versus 0.658). Notably, our framework maintains consistent performance across external validation datasets, performing reliably even on uncontrolled smartphone images without requiring additional training or fine-tuning. By pairing a protocol that requires no lesion-location information with area-based severity estimation, this work provides a foundation for objective acne assessment outside the clinic. Our implementation is publicly available at: https://github.com/sukjuoh/VL-AcneSeg
Sukju Oh, Soo Ick Cho, Dae Hun Suh +1
Department of Computer Science and Artificial Intelligence, Dongguk University, Seoul 04620, Republic of Korea · InSkin Lab Inc., Seoul 06193, Republic of Korea · Department of Dermatology, Seoul National University College of Medicine, and also with the Department of Dermatology, Seoul National University Hospital, Seoul 03080, Republic of Korea