EfficientNet Enhanced: Boosting Adult Content Detection with Sharpness and Color Optimization

Image Enhancement Effects On Adult Content Classification

2020-08-01
Soner Can Kalkan, Burak Gözütok, Abdullah Al Nahas, Aysenur Kulunk, Hakki Yagiz Erdinc
Summary
Problem
Method
Results
Takeaways
Abstract

This study investigates the impact of various image enhancement techniques on adult content classification using the EfficientNet-B3 architecture and transfer learning. By evaluating Sharpness Enhancement, Colour Vividness, and Histogram Equalization across a custom 5-class dataset, the authors demonstrate that targeted preprocessing can significantly boost classification performance.

TL;DR

Filtering sensitive digital media at scale is a massive challenge for social platforms. This paper demonstrates that by simply applying Sharpness Enhancement as a preprocessing step, a transfer-learned EfficientNet-B3 model can achieve a 6.2% jump in test accuracy, hitting 93.7% and outperforming established open-source alternatives like NudeNet.

Background & Motivation: Scaling the "Moral Filter"

With over 3.8 billion global social media users, human moderation is no longer feasible. While Deep Learning—specifically Convolutional Neural Networks (CNNs)—has become the standard for image classification, the "Adult Content" domain is uniquely difficult. Lighting, skin tone variations, and the fine line between "artistic/neutral drawings" and "pornographic content" require models to have a high sensitivity to specific edges and color distributions. The authors argue that instead of just building deeper models, we should focus on how we prepare the data to make these features "pop" for the algorithm.

Methodology: The Art of Preprocessing

The researchers built a comprehensive dataset of 27,673 images categorized into five classes: Neutral, Drawings, Racy, Pornographic Drawing, and Pornographic Photo. They then tested three specific image processing "levers":

  1. Sharpness Enhancement: Using a convolution-based process to subtract a softened version of the image from the original, leaving only the hard edges. This helps the model distinguish object boundaries (like human forms) from complex backgrounds.
  2. Colour Enhancement: Increasing color vividness to make skin tones more distinctive.
  3. Histogram Equalization: A standard technique to spread color distribution across a wider scale.

Architectural Backbone

The study utilizes EfficientNet-B3. This model was selected because it balances complexity (10.7M parameters) with inference efficiency, utilizing depth-wise and point-wise convolutions to optimize compute.

EfficientNet-B3 Architecture Figure 1: The EfficientNet-B0 base model, which B3 scales up through depth, width, and resolution.

Experimental Results: Sharpness is King

The results from Table II in the paper reveal a surprising truth: More preprocessing isn't always better.

  • The Baseline: Standard EfficientNet-B3 achieved 87.5% test accuracy.
  • Histogram Equalization: Actually lowered accuracy to 86.0%. By equalizing colors, it smoothed out the very differences the model used to distinguish classes.
  • Sharpness Enhancement: The clear winner. Accuracy jumped to 93.7%. Sharpness makes the "region of interest" (ROI) stand out, significantly reducing over-fitting.
  • Combined Methods: Interestingly, combining color and sharpness (90.8%) performed worse than sharpness alone, likely due to feature overlap and noise introduction.
MethodTest AccuracyPrecisionF1 Score (Avg)
Base Model0.8750.8780.91
Sharpness Enhancement0.9370.9430.95
NudeNet (Public)--0.93
Google Cloud Vision--0.98

Performance Comparison Figure 2: Comparison of training and testing accuracies across different enhancement strategies.

Critical Insight & Conclusion

The study highlights a vital lesson in Technical AI: Data quality via feature engineering often yields higher ROI than model architectural tweaks.

For adult content classification, the physical edges of objects are the most discriminative features. Sharpness enhancement essentially provides the CNN with a "high-pass filter" that highlights these boundaries, leading to better generalization. While the model still lags slightly behind Google's proprietary Cloud Vision API, achieving an F1-score of 0.95 with a significantly smaller, bespoke model is a major win for platforms looking for cost-effective, high-performing self-hosted solutions.

Future Work

The authors suggest moving beyond simple sharpness into Edge Enhancement algorithms and exploring how these preprocessing steps impact video frame analysis, where motion blur often degrades classification accuracy.

Find Similar Papers

Try Our Examples

  • Search for recent papers that compare manual image enhancement techniques versus Learned Enhancement (e.g., using a sub-network like a Vision Transformer for preprocessing) in sensitive content classification.
  • Which original research established EfficientNet as a baseline for transfer learning in binary/multi-class image classification, and how does its compound scaling specifically benefit low-resolution edge detection?
  • Explore industrial studies that implement multi-modal adult content filtering (audio-visual) and whether sharpness enhancement techniques are applied to video frames in real-time streaming pipelines.
Contents
EfficientNet Enhanced: Boosting Adult Content Detection with Sharpness and Color Optimization
1. TL;DR
2. Background & Motivation: Scaling the "Moral Filter"
3. Methodology: The Art of Preprocessing
3.1. Architectural Backbone
4. Experimental Results: Sharpness is King
5. Critical Insight & Conclusion
5.1. Future Work