Skip to main content
QUICK REVIEW

[Paper Review] Applying deep learning to classify pornographic images and videos

Mohamed Moustafa|arXiv (Cornell University)|Nov 28, 2015
Sexuality, Behavior, and TechnologyPsychology10 references80 citations
TL;DR

This paper proposes a deep learning approach using fine-tuned Convolutional Neural Networks (CNNs)—specifically modified AlexNet and GoogLeNet—for automatic classification of pornographic images and video frames. The method achieves a state-of-the-art accuracy of 94.1% on the NPDI benchmark dataset, outperforming previous hand-crafted feature-based methods like BossaNova.

ABSTRACT

It is no secret that pornographic material is now a one-click-away from everyone, including children and minors. General social media networks are striving to isolate adult images and videos from normal ones. Intelligent image analysis methods can help to automatically detect and isolate questionable images in media. Unfortunately, these methods require vast experience to design the classifier including one or more of the popular computer vision feature descriptors. We propose to build a classifier based on one of the recently flourishing deep learning techniques. Convolutional neural networks contain many layers for both automatic features extraction and classification. The benefit is an easier system to build (no need for hand-crafting features and classifiers). Additionally, our experiments show that it is even more accurate than the state of the art methods on the most recent benchmark dataset.

Motivation & Objective

  • To develop an automated, end-to-end system for detecting pornographic content in images and videos without manual feature engineering.
  • To improve classification accuracy beyond existing methods that rely on hand-crafted features like skin color or SIFT descriptors.
  • To evaluate the performance of deep learning models—particularly fine-tuned CNNs—on the recent NPDI benchmark dataset for pornographic content detection.
  • To compare the effectiveness of individual CNNs (AlexNet and GoogLeNet) versus ensemble fusion strategies in porn classification.
  • To explore the potential of deep learning to surpass traditional machine learning pipelines in detecting adult content.

Proposed method

  • The authors adapt the AlexNet and GoogLeNet architectures by removing the final output layer and replacing it with a two-class softmax layer for classifying images as 'benign' or 'porn'.
  • The networks are fine-tuned using transfer learning on the NPDI dataset, leveraging pre-trained ImageNet weights to improve convergence and performance.
  • An ensemble model, AGNet, is created by averaging the confidence scores from the AlexNet and GoogLeNet classifiers for improved robustness and accuracy.
  • A second ensemble variant, AGbNet, uses the maximum score from either network instead of averaging, to test alternative fusion strategies.
  • Receiver Operating Characteristic (ROC) curves are generated across various classification thresholds to evaluate trade-offs between true positive and false positive rates.
  • Video classification is performed by applying majority voting across all keyframes of a video sequence, with overall accuracy computed across five-fold cross-validation.

Experimental results

Research questions

  • RQ1Can fine-tuned deep convolutional neural networks outperform traditional hand-crafted feature-based methods in classifying pornographic images?
  • RQ2Does the use of transfer learning with pre-trained ImageNet models improve classification accuracy on the NPDI benchmark dataset?
  • RQ3How does ensemble learning—specifically averaging or taking the maximum score from multiple CNNs—affect classification performance?
  • RQ4Is GoogLeNet more effective than AlexNet for pornographic image classification, given its deeper architecture and inception modules?
  • RQ5What is the impact of fine-tuning versus full training on the generalization and accuracy of the CNN models?

Key findings

  • The proposed AGNet ensemble model achieved the highest classification accuracy of 94.1% on the NPDI benchmark dataset, with a standard deviation of ±2%.
  • Fine-tuned models (ANet-FineTune and GNet-FineTune) significantly outperformed their fully trained counterparts, with the latter achieving 87% true positive rate at 10% false positive rate.
  • GoogLeNet-based models (GNet and AGNet) consistently outperformed AlexNet-based models (ANet), with GNet achieving 93.7% accuracy and AGNet reaching 93.8%.
  • The AGbNet variant, using the maximum score from both networks, achieved 94.1% accuracy, indicating that score fusion strategies can enhance performance.
  • All deep learning-based classifiers outperformed the state-of-the-art BossaNova methods (89.5% and 90.9%), demonstrating the superiority of CNNs in this task.
  • The ROC curves showed that the fine-tuned models maintained high true positive rates even at low false positive rates, indicating strong generalization and reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.