Initial commit

This commit is contained in:
Andre Neto
2025-05-06 15:41:07 +01:00
commit b138fa0393
148 changed files with 299116 additions and 0 deletions
@@ -0,0 +1,13 @@
\begin{abstract}
A persistent discrepancy exists between standard Image Quality Assessment (IQA) metrics and human perceptual judgments, typically quantified through Mean Opinion Scores (MOS).
This gap poses a critical challenge for tasks where visual quality directly impacts performance, such as facial recognition and visual data transmission.
In particular, assessing the perceptual quality of steganographically distorted facial images remains difficult, especially in the absence of reference images.
To address this, we introduce a hybrid Full-to-No-Reference framework for Face Image Quality Assessment (FIQA), built upon a learning strategy based on pseudo-MOS.\@
A full-reference fusion metric is first trained by regressing multiple classical IQA scores against human MOS on a subset of a facial dataset.
This metric is then applied to the full dataset to generate pseudo-MOS labels.
Using deep features extracted from a ResNet-18 model pretrained on ImageNet, we train a no-reference regressor capable of predicting perceptual quality.
The proposed framework bridges full-reference supervision and no-reference inference, offering a scalable and accurate solution for FIQA in challenging conditions and paving the way for application-specific, data-driven IQA designs.
\keywords{Face IQA \and Steganography \and No-Reference IQA \and Pseudo-MOS \and Full-Reference Fusion \and Deep Regression}
\end{abstract}
@@ -0,0 +1,25 @@
\section{Introduction}
The evaluation of image quality is essential in applications such as biometric authentication, multimedia processing, and medical imaging~\cite{Kim2015, Huang2020}. In the specific domain of Facial Image Quality Assessment (FIQA), the goal is to ensure that images used in face recognition systems meet a quality standard that optimizes recognition performance~\cite{Cavazos2021}. Unlike general Image Quality Assessment (IQA), which considers visual attributes such as contrast, sharpness, and noise, FIQA focuses on assessing image quality in a manner that directly impacts face recognition accuracy~\cite{Terhoerst2020}.
IQA methods are divided into two types: subjective and objective. Subjective IQA relies on human evaluators who assign quality scores based on perceived visual quality—typically aggregated as Mean Opinion Scores (MOS). While considered the gold standard, subjective evaluation is costly, time-consuming, and not scalable. In contrast, objective IQA methods use algorithmic models to predict perceptual quality automatically, often by pixel-wise comparison or learned features.
Objective IQA methods can be further categorized as Full-Reference (FR-IQA) or No-Reference (NR-IQA). FR-IQA requires access to an undistorted reference image and evaluates quality by comparing the distorted image to it. Although often accurate, FR-IQA is only applicable when a pristine reference is available. NR-IQA, on the other hand, estimates image quality without any reference, making it more suitable for real-world scenarios. However, its ability to generalize across content and distortion types remains limited.
Facial Image Quality Assessment (FIQA) falls within the broader IQA domain but is uniquely constrained by biometric applications, where reference images are rarely available. As such, most FIQA methods are inherently no-reference, relying on task-specific priors and learned representations to estimate quality.
A fundamental challenge in IQA lies in the discrepancy between objective quality metrics and human perceptual judgments. While classical metrics such as Peak Signal-to-Noise Ratio (PSNR)~\cite{gonzalez2002digital}, Structural Similarity Index (SSIM)~\cite{wang2004image}, and Visual Information Fidelity (VIF)~\cite{sheikh2006image} provide automated assessments of image quality, their correlation with subjective perception remains inconsistent across datasets~\cite{Babnik2022}. This misalignment is particularly problematic in facial image analysis, where perceptual quality is influenced by both intrinsic distortions and observer-related biases.
A growing body of research highlights the presence of demographic and non-demographic biases in FIQA, whereby factors such as ethnicity, gender, and age influence perceived image quality~\cite{Kabbani2024, 9304865, Cavazos2021, tapia2024beauty}. These biases often stem from dataset imbalances and inter-observer variability. For instance, face recognition accuracy tends to be lower for dark-skinned individuals, and female faces are frequently rated with lower quality scores in FIQA evaluations~\cite{Huang2020}, underscoring the need for inclusive and perceptually aligned quality assessment approaches.
The International Civil Aviation Organization~\cite{icao_2015} (ICAO) and the ISO/IEC 19794--5 standard~\cite{iso_iec29794-5_2010} establish guidelines for image quality in Machine-Readable Travel Documents (MRTDs). These guidelines ensure uniform image conditions (e.g., lighting, focus, and resolution) and consistency across datasets. While these regulations establish a technical baseline, they do not account for perceptual biases and demographic variability in FIQA.\@
The ethical implications of these biases are profound. Political regulations, such as the European Convention on Human Rights (Article 14)~\cite{echr_article14}, the Universal Declaration of Human Rights (Article 7)~\cite{udhr_article7}, the General Data Protection Regulation (Article 22)~\cite{gdpr_article22}, and emerging AI governance frameworks, such as the European Artificial Intelligence Act (2024)~\cite{eu_ai_act_2024} and proposals in the USA~\cite{us_ai_bill_rights_2022}, aim to prevent discriminatory decisions. Despite these efforts, biases persist, often introduced through the human observers who evaluate facial images for FIQA algorithms.
Evidence from neuroscience further supports the complexity of facial image perception. The fusiform face area, a specialized region in the human brain, is selectively activated by face stimuli~\cite{kanwisher2006fusiform, tsao2008mechanisms}. This biological specialization makes FIQA particularly sensitive to both stimulus features (e.g., age, gender, ethnicity, attractiveness) and the demographic background of the observers.
An even greater challenge arises when evaluating the quality of steganographically distorted facial images. Steganography is the practice of concealing information within digital media, typically by subtly modifying pixel values in a way that is imperceptible to human observers~\cite{steganography}. Although visually unobtrusive, these alterations can degrade biometric features and compromise recognition performance. NR-IQA approaches, while not requiring references, are generally not designed to detect such imperceptible, task-relevant distortions.
To address these limitations, we propose a hybrid FIQA framework based on pseudo-Mean Opinion Scores (pseudo-MOS). Beginning with a small subset of facial images labeled with subjective MOS, we train a regression-based fusion model that integrates multiple classical FR-IQA scores into a single, perceptually aligned quality measure. This FR fusion model is then applied to a larger dataset to generate pseudo-MOS labels for images lacking ground-truth annotations. A NR regression model is subsequently trained on deep features extracted from a ResNet-18 pretrained on ImageNet, enabling perceptual quality prediction without the need for reference images.
Our approach bridges the gap between FR supervision and NR inference. It provides a scalable solution for IQA in images subjected to complex, low-visibility distortions such as steganography, and lays the groundwork for adaptable, domain-specific quality assessment models.
@@ -0,0 +1,10 @@
\section{Related Work}
To improve perceptual alignment, several fusion-based IQA methods have been proposed. Liu et al.~\cite{liu2013mmf} introduced a multi-method fusion (MMF) framework in which multiple FR-IQA scores are linearly combined through regression to better approximate human judgments. Similarly, Henniger et al.~\cite{henniger2020biosig} developed a Random Forest model trained on handcrafted image features drawn from ISO face quality standards, improving predictive utility for biometric applications. Fusion models demonstrate that integrating complementary quality cues yields superior MOS correlation compared to standalone metrics~\cite{Robinson2020}.
Beyond full-reference settings, the scarcity of ground-truth subjective scores has prompted the development of weakly supervised approaches based on pseudo-labels. Chen et al.~\cite{chen2021pseudo} proposed generating pseudo-MOS scores by averaging outputs from several FR-IQA metrics. RankIQA~\cite{liu2017rankiqa} employed synthetic degradations and relative ranking supervision to learn ordinal quality relationships. Wu et al.~\cite{wu2020cnn} used cascaded CNN regressors trained on pseudo-MOS to bootstrap NR-IQA learning. These approaches confirm the viability of pseudo-supervision in training deep IQA models when human MOS labels are limited or unavailable.
Recent progress in NR-IQA has been driven by the use of deep features from CNNs pretrained on large datasets. Kang et al.~\cite{kang2014cnn} showed that CNNs can directly regress quality scores from image patches. In the domain of FIQA, techniques such as SER-FIQ~\cite{terhorst2020serfiq} exploit the dropout-based variability of face embeddings as a proxy for image quality, while MagFace~\cite{meng2021magface} learns quality-aware facial representations by correlating embedding norms with recognition utility. QualFace~\cite{tremoco2021qualface} adapts deep face recognition models to conform with ICAO and ISO/IEC document standards, introducing an explicit quality estimation module for ID and travel document verification. These methods mark a shift from handcrafted quality indicators to learned feature-level representations tailored to face recognition tasks.
Other studies emphasize that image quality is inherently task-specific. In FIQA, quality is defined not by visual aesthetics but by its impact on face recognition performance. Standards such as ISO/IEC 19794--5 codify this operational perspective, specifying conditions for acceptable biometric image acquisition. Supervised models like FaceQnet~\cite{hernandez2019faceqnet} learn to predict face utility scores directly from embeddings. Datasets such as PIPAL~\cite{jin2020pipal}, which include generative distortions, further highlight the need for context-specific IQA evaluation. Our work follows this trajectory by targeting steganographically degraded facial images, an emerging use case not addressed in current FIQA literature.
@@ -0,0 +1,62 @@
\section{Methodology}\label{sec:methodology}
\subsection{Dataset}
Our dataset is derived from the publically available Face Research Lab London (FRLL)~\cite{DeBruine2017} set, comprising 102 frontal ICAO-compliant facial images. Each image was encoded using four printer-proof steganographic methods, described ahead, each applied at nine different intensity levels, yielding a total of 3,672 distorted images.
The dataset was partitioned into four subsets, as follows:
\begin{itemize}
\item Labeled Set (15 identities, 540 images): a core set of demographically diverse subjects, shown in Fig.~\ref{fig:subdataset}, annotated with MOS through human evaluation.
\begin{itemize}
\item Training Subset (12 identities, 432 images): used to train the full-reference fusion model, regressing FR-IQA metrics to human MOS.\@
\item Disjoint Test Subset (3 identities, 108 images): held out from the framework and are used solely for final results comparisons, simulating out-of-distribution generalization.
\end{itemize}
\item Unlabeled Set (87 identities, 3,132 images): no subjective scores were collected for these images. Instead, pseudo-MOS labels were generated using the FR fusion model, enabling large-scale weak supervision.
\item No-Reference (NR) Training Pool (99 identities, 3,564 images): Combines the 12 labeled identities and the 87 pseudo-labeled identities, and is used to train the NR regression model on deep features extracted from distorted images.
\end{itemize}
\begin{figure}
\centering
\includegraphics[width=1\linewidth]{images/subdataset.png}
\caption{Labeled set selected from the FRLL dataset.}\label{fig:subdataset}
\end{figure}
The printer-proof steganography methods used were based on Generative Adversarial Networks (GANs)~\cite{gans2018} to encode and decode information, we can obtain various results depending on the method used:
\begin{itemize}
\item StegaStamp~\cite{stegastamp2020}: claims to be the first steganography model capable of decoding data from printed images. The authors show robust results in decoding data under physical transmission by developing novel strategies to add noise in the training process, printer noise simulation, and distortion for the training dataset.
\item CodeFace~\cite{codeface2021}: encoder and decoder networks are trained using end-to-end GANs. It introduces a new security system for encoding and decoding facial images that are printed in common IDs and MRTDs.
\item RiemStega~\cite{cruz2025riemstega}: proposes a new loss function that extends the loss function based on the $L_2$ distance between images to the Riemannian manifold of symmetric and positive definite matrices.
\item StampOne~\cite{stampone2023}: focuses on high-level robust steganography, such as~\cite{codeface2021, stegastamp2020}, striking a balance between high-quality encoded images and decoding accuracy. It mitigates distortion-related issues like JPEG compression, camera sensors and printer's Gaussian noise by incorporating gradient transform, wavelet transform, and Depthwise~\cite{tay2022efficient} to normalize and balance frequencies of the inputs.
\end{itemize}
Each image in our dataset was evaluated approximately 30 times by human observers, providing a robust MOS dataset.
We followed ITU-R BT.500--15~\cite{ITU-R-BT500} recommendation, and adopted the Single Stimulus method. Around 200 different observers were carefully instructed on how to perform the test session, the average duration of the session was 22 minutes, and the rounded number of tests in each session was 70. Resulting in over 14,000 evaluations.
To conduct the sessions we created a webapp in Django, seen in Fig.~\ref{fig:platform}, where the observers were asked to evaluate each image on a scale from 1 to 100 using a slider bar, with no time limit. The rating scale was divided into five categorical levels: scores from 1 to 25 were classified as Bad, 26 to 50 as Poor, 51 to 75 as Fair, 76 to 99 as Good, and a score of 100 as Excellent.
\begin{figure}
\centering
\includegraphics[width=0.4\linewidth]{images/webapp.png}
\caption{Snippet of the custom webapp platform used to access overall image quality.}\label{fig:platform}
\end{figure}
%\subsection{Statistical Bias in Facial Quality Perception}
%Perceptual evaluation of facial image quality is inherently biased by observer characteristics. In facial imagery, these biases are amplified by the brain’s specialized processing of faces, where factors such as familiarity, symmetry, and subtle texture cues heavily influence perceived quality. Our earlier user studies revealed strong inter-observer variability when assessing steganographically distorted faces, highlighting that MOS are not purely determined by signal-level distortions but also by cognitive priors. This makes the design of facial-specific IQA systems particularly challenging.
To address this, we propose a two-stage hybrid pipeline that first builds a full-reference (FR) quality estimator supervised by MOS, and then extends this supervision to a no-reference (NR) model via pseudo-MOS learning.
\subsection{Full-Reference Analysis and Fusion}
We compute 41 FR-IQA scores for each distorted image in the MOS-labeled subset. To identify which metrics align best with human perception, we calculate both the Pearson Linear Correlation Coefficient (PLCC) and the Spearman Rank-Order Correlation Coefficient (SRCC)~\cite{plcc_srcc} between each metric and the human MOS.\@ This analysis serves to rank the metrics and select the top-$k$ most perceptually relevant.
\subsection{Pseudo-MOS Generation via FR-IQA Fusion}
The selected top-$k$ IQA metrics are standardized and used as input features for supervised regression models trained to approximate the human MOS.\@ We evaluate Support Vector Regression~\cite{svr}, Random Forest~\cite{randomforest}, XGBoost~\cite{xgboost}, and LightGBM~\cite{lightgbm} as candidate fusion models. Random Forest consistently achieved the highest PLCC and SRCC on the validation set for $k=5$, and was selected as the fusion model. This trained regressor is then applied to the unlabeled portion of the dataset (3,132 distorted images), generating pseudo-MOS scores that serve as proxy ground-truth labels.
\subsection{NR Regression Model}
To enable NR quality prediction, we extract deep features from each distorted image using a ResNet-18~\cite{resnet} model pretrained on ImageNet. These feature vectors are then used to train a regression model, again using Random Forest, tasked with predicting the pseudo-MOS labels obtained from the FR fusion step. The final model performs quality assessment using only the distorted input image, without requiring access to a reference image, thereby enabling NR-IQA in real-world scenarios.
@@ -0,0 +1,84 @@
\section{Results}
\subsection{Correlation of Individual IQA Metrics with Human Perception}
The correlation analysis between individual FR-IQA metrics and human-rated MOS revealed substantial variability in performance. As shown in Fig.~\ref{fig:mos_vs_iqa}, several metrics exhibit strong linear trends with MOS, while others are poorly aligned or even negatively correlated. To quantify this, we ranked all 41 metrics based on the average of their PLCC and SRCC.\@
Fig.~\ref{fig:ranking} presents this ranking, highlighting that metrics such as PSNR, PSNR-B~\cite{ma2011psnr}, and MS-SSIM~\cite{wang2003multiscale} show the highest alignment with subjective opinion, while others, such as SRSIM~\cite{wang2004image}, diverge significantly.
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{images/mos_vs_iqa_grid.eps}
\caption{Scatter plots illustrating the relationship between Mean Opinion Scores (MOS) and individual Full-Reference IQA metrics.}\label{fig:mos_vs_iqa}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=0.9\linewidth]{images/metrics_bar.png}
\caption{Ranking of FR-IQA metrics by correlation with MOS (PLCC and SRCC).}\label{fig:ranking}
\end{figure}
\subsection{Full-Reference Fusion Performance}
Using the 432 MOS-labeled images and $k = 5$ best metrics, we evaluated six fusion models.
As summarized in Table~\ref{tab:fusion_scores}, the Random Forest regressor achieved the best overall performance across all four evaluation metrics, as seen in Fig.~\ref{fig:randomforest}. Notably, it reached a PLCC of 0.8582 and SRCC of 0.8637, outperforming both linear and gradient boosting approaches.
\begin{figure}
\centering
\includegraphics[width=0.6\linewidth]{images/fusion_plot_RandomForest.eps}
\caption{MOS vs. Predicted fused Random Forest score}\label{fig:randomforest}
\end{figure}
\begin{table}
\caption{Fusion performance on 432 labeled images (MOS ground truth).}
\begin{center}
\begin{tabular}{lcccc}
\toprule
\textbf{Model} & \textbf{PLCC} & \textbf{SRCC} & \textbf{MSE} & \textbf{MAE} \\
\midrule
Linear Regression & 0.8123 & 0.8248 & 108.83 & 7.98 \\
Ridge & 0.8125 & 0.8246 & 108.76 & 7.96 \\
Random Forest & \textbf{0.8582} & \textbf{0.8637} & \textbf{84.48} & \textbf{6.95} \\
SVR & 0.8207 & 0.8207 & 108.44 & 8.08 \\
XGBoost & 0.8560 & 0.8596 & 108.44 & 8.08 \\
LightGBM & 0.8560 & 0.8577 & 85.90 & 7.15 \\
\bottomrule
\end{tabular}\label{tab:fusion_scores}
\end{center}
\end{table}
The trained Random Forest model was then applied to 3,132 unlabeled images, generating pseudo-MOS scores that serve as soft ground truth for the no-reference model.
\subsection{No-Reference Regression Model}
We trained a NR regressor using features extracted from a ResNet-18 pretrained on ImageNet. These features, paired with the pseudo-MOS scores generated from the fusion model, served as training data for a second Random Forest model.
Fig.~\ref{fig:nr_vs_fusion} shows the resulting alignment between the predicted NR quality scores and the fusion-based pseudo-MOS values. A clear linear trend is observed, with the model capturing both low and high quality regimes effectively.
\begin{figure}
\centering
\includegraphics[width=0.6\linewidth]{images/nr_vs_fusion_rf.eps}
\caption{Scatter plot of NR predictions vs.\ pseudo-MOS scores. The dashed line indicates identity; the blue line is the linear trend.}\label{fig:nr_vs_fusion}
\end{figure}
Quantitative results are reported in Table~\ref{tab:nr_scores}. Our proposed model, trained using deep features and pseudo-MOS supervision, achieves a PLCC of 0.8361 and SRCC of 0.8382, with an MSE of 90.48 and MAE of 7.16. In comparison, classical NR metrics such as NIQE and PIQE demonstrate weaker correlations with perceptual quality and substantially higher error. Even task-specific approaches like SER-FIQ and MagFace underperform, highlighting the robustness of our weakly supervised strategy for NR-IQA on steganographically degraded facial images.
\begin{table}
\caption{Performance of our NR IQA model, ResNet18 + Random Forest (RF), compared to standard NR-IQA baselines, using pseudo-MOS as ground truth.}
\begin{center}
\begin{tabular}{lcccc}
\toprule
\textbf{Method} & \textbf{PLCC} & \textbf{SRCC} & \textbf{MSE} & \textbf{MAE} \\
\midrule
Ours (ResNet18 + RF) & \textbf{0.8361} & \textbf{0.8382} & \textbf{90.48} & \textbf{7.16} \\
NIQE & 0.7536 & 0.7431 & 6859.81 & 82.62 \\
PIQE & 0.2993 & 0.3114 & 3297.65 & 57.05 \\
SER-FIQ & -0.1648 & -0.1542 & 123.50 & 9.23 \\
MagFace & -0.6095 & -0.6362 & 4437.91 & 66.24 \\
\bottomrule
\end{tabular}\label{tab:nr_scores}
\end{center}
\end{table}
@@ -0,0 +1,5 @@
\section{Conclusion and Future Work}
We proposed a hybrid full-to-no-reference framework for FIQA that predicts image quality in the absence of reference images by leveraging a pseudo-MOS supervision strategy. Our method first trains a FR fusion model to regress human perceptual judgments on a labeled subset, generating pseudo-MOS labels for a larger unlabeled dataset. These labels are then used to train a deep NR regressor, enabling quality prediction from distorted images alone. This two-stage pipeline effectively bridges the gap between fully supervised FR-IQA and reference-free NR-IQA approaches.
Beyond the development of our ICAO-compliant NR IQA metric, the proposed framework offers a flexible foundation for constructing a variety of task-specific models. By enabling scalable, perceptually grounded supervision with limited ground-truth annotations, our approach can facilitate quality-aware training in applications such as GANs, forensic imaging, and domain-adapted biometric pipelines.