• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Wednesday, December 2, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Technology

Facial Expression Recognition Models Drop Sharply in Cross-Dataset Generalization Tests

by
December 2, 2026
in Technology
Reading Time: 6 mins read
0
Facial Expression Recognition Models Drop Sharply in Cross-Dataset Generalization Tests

Facial Expression Recognition Models Drop Sharply in Cross-Dataset Generalization Tests

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

Deep learning systems trained to classify human facial expressions can achieve over 90 percent accuracy within a single image dataset while collapsing to near-chance performance when tested on images collected under different conditions, according to a comparative empirical study published in Frontiers in Artificial Intelligence. Researchers Saanvi Goel, Piyush Kothari, and Syamasudha Veeragandham at Vellore Institute of Technology in India evaluated two pretrained convolutional neural network pipelines—EfficientNet-B2 and ResNet50—on both a controlled studio dataset and an internet-sourced “in-the-wild” dataset. When their ResNet50 model was trained on one benchmark and tested directly on the other without target-domain fine-tuning, test-time augmentation accuracy plunged from 91.85 percent within-domain on the real-world RAF-DB dataset to 33.39 percent on the studio-based KDEF dataset. In the reverse direction, accuracy fell from 90.41 percent within-domain on KDEF to 12.97 percent on RAF-DB, at or slightly below the 14.3 percent chance rate for seven balanced classes.

Facial expression recognition seeks to identify human emotions from facial appearance across seven standard categories: anger, disgust, fear, happiness, sadness, surprise, and neutrality, a scheme rooted in Ekman and Friesen’s cross-cultural research and Facial Action Coding System with neutrality later added. To examine how acquisition conditions shape model behavior, the authors contrasted two publicly available benchmarks. KDEF is a laboratory dataset containing 4,898 color studio portraits of 70 subjects—35 female and 35 male—posing expressions under fixed lighting and uniform backgrounds across five camera angles from full-left to full-right, divided into 3,358 training, 560 validation, and 980 test images with balanced classes of about 700 images each. By contrast, RAF-DB contains 15,339 internet-sourced images (12,271 training and 3,068 test) capturing spontaneous expressions with unconstrained lighting, head pose, occlusion, age, and ethnicity. RAF-DB is severely skewed, with 4,772 Happy training samples compared with just 281 for Fear, a 17-to-1 imbalance ratio.

Both datasets present resolution challenges relative to modern photography: KDEF portraits measure roughly 562 by 762 pixels from modest sensors, whereas many RAF-DB face crops fall below 100 by 100 pixels. The researchers resized all images to 224 by 224 pixels using bilinear interpolation without super-resolution, and applied no separate face-detection or landmark-alignment software beyond what already existed in the source releases. During training, images underwent random horizontal flips, rotations up to 20 degrees, color jitter, affine and perspective transforms, and random erasing; CutMix was excluded because it obscured critical facial cues around the eyes, eyebrows, and mouth. Rather than proposing a new neural architecture, the team assembled two established transfer-learning pipelines in PyTorch using ImageNet-1K pretrained backbones on a single laptop equipped with an NVIDIA GeForce RTX 3060 GPU offering 6.4 gigabytes of usable video memory and a fixed random seed of 42.

The first pipeline used EfficientNet-B2, totaling roughly 8.43 million parameters, with a custom classifier head trained through two-phase progressive fine-tuning. During a three-epoch warmup, the backbone remained frozen so only 726,023 head parameters updated under an AdamW optimizer and cosine annealing; in the second phase, all 8,427,017 parameters unfroze under differential learning rates, a OneCycleLR schedule, two-step gradient accumulation for an effective batch size of 32, label smoothing, and mixup applied to 30 percent of batches. EfficientNet-B2 also incorporated inverse-frequency class weights on RAF-DB. The second pipeline used ResNet50 in a single-phase strategy, freezing the stem and first two layers while leaving layers three, four, and a three-tier progressive dropout head trainable—23,246,855 of 24,691,783 parameters, or 94.1 percent. ResNet50 trained with unweighted cross-entropy, label smoothing, mixup, gradient clipping, and ReduceLROnPlateau scheduling, followed at inference by 12-pass test-time augmentation averaging softmax probabilities across original, flipped, and stochastic views.

Under each pipeline’s native evaluation protocol, both models reached high within-dataset scores with consistently negative overfitting gaps, indicating strong regularization. EfficientNet-B2 achieved 92.86 percent best validation accuracy on KDEF at epoch 60 and 90.91 percent on RAF-DB near epoch 65, evaluated without test-time augmentation. ResNet50 reached 95.00 percent peak validation accuracy and 90.41 percent test-time augmentation test accuracy on KDEF (886 of 980 images; 95 percent Wilson confidence interval 87.6 to 92.6 percent), and 91.59 percent validation accuracy alongside 91.85 percent test-time augmentation test accuracy on RAF-DB (2,818 of 3,068 images; 95 percent confidence interval 90.7 to 92.9 percent). However, the authors caution that overall micro-averaged accuracy masks minority-class shortfalls on imbalanced data. On RAF-DB, ResNet50’s macro-averaged recall—or balanced accuracy—was 84.91 percent and its macro-F1 score was 85.54 percent, well below its 91.85 percent headline figure, whereas on balanced KDEF macro-recall matched overall accuracy at 90.41 percent.

Error analysis revealed distinct failure modes across controlled and naturalistic environments. Happy was the easiest expression to identify on both benchmarks, reaching 100.00 percent recall (140 of 140) on KDEF and 97.81 percent recall (1,159 of 1,185) on RAF-DB for ResNet50. On KDEF, errors stemmed primarily from visual similarity among expressions: Angry had the lowest recall at 79.29 percent (111 of 140) despite high precision of 96.52 percent, frequently misclassified as Disgust (12 cases) or Fear (12 cases) because those expressions share lowered brows and mouth tension. Measured by F1 score instead of recall, Fear was marginally hardest on KDEF at 82.64 percent versus Angry’s 87.06 percent. On RAF-DB, class scarcity compounded visual overlap: Disgust was hardest by both recall (65.00 percent, 104 of 160) and F1 (70.03 percent), most often confused with Neutral, Sad, and Angry, while scarce Fear reached 74.32 percent recall (55 of 74), often mistaken for Surprise.

Because EfficientNet-B2 was originally evaluated on validation accuracy without test-time augmentation under two-phase training while ResNet50 used held-out test accuracy with 12-pass augmentation under single-phase training, the headline figures were not directly comparable. To separate architecture from training recipe, the researchers retrained both backbones under an identical single-phase protocol with mixup enabled, no class weighting, and 12-pass inference augmentation. Under matched conditions, ResNet50 remained stable at 88.67 percent on KDEF and 92.31 percent on RAF-DB, whereas EfficientNet-B2 collapsed to 37.65 percent on KDEF and 53.59 percent on RAF-DB—roughly 50 and 37 percentage points below its two-phase validation scores. This collapse shows EfficientNet-B2 depended heavily on its two-phase schedule rather than proving ResNet50 is inherently superior. Controlled single-seed ablations further showed mixup boosted ResNet50 on KDEF by 2.15 validation points but offered no benefit on RAF-DB, while test-time augmentation provided modest gains across both datasets.

A separate short-budget ablation comparing two-phase and single-phase training for EfficientNet-B2 over just 20 epochs on KDEF produced the opposite ranking—single-phase scored 82.55 percent versus 78.88 percent for two-phase—an unresolved tension the authors attribute to differing learning-rate settings and the interaction between warmup length and total training budget. To test stability and low-resolution behavior on ResNet50, the team conducted two additional stress tests. Retraining across three random seeds (42, 123, and 2024) produced less than 1.5 percentage points of variation in test-time augmentation accuracy, averaging 89.83 percent (standard deviation 0.59) on KDEF and 91.82 percent (standard deviation 0.31) on RAF-DB. Retraining across four input resolutions—224, 128, 96, and 64 pixels—uncovered stark asymmetry: RAF-DB accuracy declined modestly by 1.37 to 5.38 percentage points, staying at 86.28 percent at 64 pixels, whereas KDEF plunged 24.39 points from 90.31 percent to 65.92 percent.

The researchers interpret this resolution gap as a consequence of training data statistics: naturally low-resolution RAF-DB crops push models toward coarser cues, whereas high-resolution studio portraits in KDEF encourage reliance on fine textures that vanish under aggressive downsampling. Another critical test addressed data leakage in KDEF, whose original class-stratified random split allowed the same individual to appear in training, validation, and test sets. When the team re-split KDEF so every subject appeared in only one partition while preserving the 3,358/560/980 split sizes, ResNet50 test-time augmentation accuracy fell by 3.78 percentage points, from 90.41 percent to 86.63 percent, confirming that subject-identity recognition inflated the original estimate. Similarly, the asymmetric cross-dataset drop—33.39 percent from RAF-DB to KDEF versus 12.97 percent from KDEF to RAF-DB—suggests visually diverse naturalistic data may yield somewhat more transferable features than narrow studio statistics, though the authors note this mechanism remains unconfirmed.

Although ResNet50’s 91.85 percent RAF-DB score numerically exceeded earlier attention-based models such as RAN (86.90 percent), DACL (87.78 percent), SCN (88.14 percent), MA-Net (88.40 percent), and LA-Net (87.00 percent on RAF-DB and 95.52 percent on KDEF), the authors explicitly avoid claiming state-of-the-art performance. Crucially, because the standard RAF-DB release lacks a separate validation split, the study used the RAF-DB test partition for both checkpoint selection and final test-time augmentation evaluation, meaning those metrics draw from overlapping data and may be optimistic; moreover, 12-pass augmentation increases inference latency twelvefold. The authors also emphasize that despite submission to a causal artificial intelligence collection, their pipelines are purely associational classifiers without causal graphs or counterfactual testing. Resolution checks were limited to ResNet50 on non-subject-disjoint splits, Vision Transformers were untested, and RAF-DB lacks demographic metadata for fairness auditing—underscoring that real-world deployment in surveillance, education, or workplace monitoring requires subject-disjoint splits, cross-domain testing, and explicit ethical safeguards.

Subject of Research: Comparative evaluation of EfficientNet-B2 and ResNet50 pipelines for facial expression recognition across controlled and in-the-wild image datasets

Article Title: Facial expression recognition in controlled and in-the-wild settings: a comparative study of EfficientNet-B2 and ResNet50 on various low-resolution image datasets

Article References: Goel, S., Kothari, P., & Veeragandham, S. (2026). Facial expression recognition in controlled and in-the-wild settings: a comparative study of EfficientNet-B2 and ResNet50 on various low-resolution image datasets. Frontiers in Artificial Intelligence, 9, Article 1962956. https://doi.org/10.3389/frai.2026.1962956

Image Credits: AI Generated

DOI: 10.3389/frai.2026.1962956

Keywords: facial expression recognition, EfficientNet-B2, ResNet50, KDEF dataset, RAF-DB dataset, cross-dataset generalization, test-time augmentation, mixup regularization, progressive fine-tuning, resolution sensitivity, subject-disjoint splitting, class imbalance, transfer learning, affective computing, convolutional neural networks, label smoothing, computer vision benchmarks, in-the-wild imagery

News Source: Denise Maddox. (December 2, 2026). Facial Expression Recognition Models Drop Sharply in Cross-Dataset Generalization Tests. Scienmag.

Tags: affective computingclass imbalancecomputer vision benchmarksconvolutional neural networkscross-dataset generalizationEfficientNet-B2facial expression recognitionin-the-wild imageryKDEF datasetlabel smoothingmixup regularizationprogressive fine-tuningRAF-DB datasetResNet50resolution sensitivitysubject-disjoint splittingtest-time augmentationTransfer Learning
Share12Tweet7Share2ShareShareShare1

Related Posts

Graph-Based Multi-Agent Routing Outperforms Alternatives in Experimental Healthcare AI Tests

Graph-Based Multi-Agent Routing Outperforms Alternatives in Experimental Healthcare AI Tests

December 2, 2026
Systematic Review Details How Large Language Models Optimize Microservices Communication

Systematic Review Details How Large Language Models Optimize Microservices Communication

December 2, 2026

Evaporation-Assisted Film Flotation Enriches Microcrystalline Graphite Tenfold from Low-Grade Ore

December 2, 2026

Rice Husk Fibres Alter Mechanical Strength and Biodegradation in PLA Composites

December 2, 2026

POPULAR NEWS

  • Review details how rotavirus NSP1 coordinates degradation of diverse antiviral proteins

    Review details how rotavirus NSP1 coordinates degradation of diverse antiviral proteins

    29 shares
    Share 12 Tweet 7
  • Policy review flags strategic gap in UK chemical sector net-zero plans

    29 shares
    Share 12 Tweet 7
  • Models show top-down feedback can explain visual working memory traces

    29 shares
    Share 12 Tweet 7
  • Plasma Biomarker Panels Distinguish Dementia and Psychiatric Disorders in Older Chinese Cohort

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

Childhood emotional trauma linked to aggression in depressed Chinese adolescents

Narrative Review Places Fast-Jet Pilot Neck Pain Prevalence Near Half

Motor and Visuospatial Domains Anchor Symptom Network in Preschoolers With Autism

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 91 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.