NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

What Did I Just Hear? Detecting Pornographic Sounds in Adult Videos Using Neural Networks

Holy Lovenia, Dessi Puji Lestari, Rita FrieskearXiv 2022 · DOI

TL;DR

This paper explores the under-researched domain of audio-based adult content filtering, demonstrating that neural networks can effectively detect pornographic sounds. By training a Convolutional Neural Network (CNN) on log mel spectrograms of 60-second audio segments and using a novel voting aggregation method, the authors achieve a 92.02% F1-score on audio-level classification. This approach provides a highly efficient, privacy-conscious, and computationally lightweight alternative to traditional vision-based moderation systems.

What Problem Does This Paper Address?

Online content moderation heavily relies on vision-based machine learning models to filter adult content. However, vision-based approaches suffer from several distinct bottlenecks:

  1. High Computational Cost: Processing video frames requires substantial memory and processing power.
  2. Visual Deterioration: Poor lighting, motion blur, and obstructions easily degrade visual classification performance.
  3. False Positives: Vision models frequently misclassify non-pornographic videos containing large amounts of exposed skin (e.g., beach or fitness videos) as explicit.

To address these limitations, the authors look to the acoustic domain. While audio-based classification requires significantly less computational overhead and can exploit distinct spectral characteristics unique to adult videos, it remains underdeveloped. This paper fills the gap by systematically evaluating deep learning architectures and acoustic features specifically for pornographic sound detection.

Figure 1: Log-frequency power spectrograms of non-pornographic and pornographic sound signals.

Methods

The authors design an end-to-end pipeline that evaluates two acoustic features and two neural network architectures across varying segment lengths:

  • Acoustic Features: They compare standard Mel-Frequency Cepstral Coefficients (MFCCs) (12 coefficients) against log mel spectrograms (26 mel bands).
  • Neural Architectures: They benchmark a standard Feedforward Neural Network (FFNN) against a Convolutional Neural Network (CNN). The CNN utilizes 32 filters with a kernel size of 2 to act as a parametric feature extractor.
  • Temporal Segmentation: Audio is sliced into overlapping segments using both 20-second and 60-second windows (with a 1-second hop length).
  • Segment-to-Audio Aggregation: To classify an entire audio file rather than just isolated segments, they propose and compare four aggregation techniques:
  • Standard Threshold: Classifies an audio file as positive if the average segment probability exceeds 0.5.
  • Validation-Dependent Threshold: Dynamically tunes the probability threshold based on validation set performance.
  • Segment Majority: Uses a simple majority vote of segment labels.
  • Voting: A hybrid method that classifies an audio file as pornographic only if both the validation-dependent threshold and segment majority methods agree.

Datasets

The models were trained and evaluated on the Pornography-800 dataset. After filtering out one video that lacked an audio track, the final dataset consisted of 399 pornographic and 400 non-pornographic audio samples.

The pornographic audio data typically contains explicit human sounds (moans, groans, heavy breathing) alongside environmental noises (bed creaking, sheets rustling). The non-pornographic dataset includes background music, conversational speech, and diverse ambient sounds like engine hums, audience cheers, and babies' cries.

Key Insights and Ideas

  • Log Mel Spectrograms Trump MFCCs: While MFCCs are the gold standard for clean speech recognition, log mel spectrograms perform significantly better here. This is because log mel spectrograms retain fine-grained acoustic information and artifacts in extreme high and low frequencies—capturing non-speech sounds like moans or moving bodies that MFCCs tend to smooth away.
  • CNNs are Natural Feature Extractors for Audio: CNNs consistently outperformed FFNNs. The convolutional layers act similarly to parametric feature extractors, allowing the network to identify crucial out-of-speech-range sounds.
  • Context Length Matters: 60-second audio segments consistently yielded higher F1-scores than 20-second segments, indicating that longer temporal context helps the model better differentiate continuous background noise from actual explicit content.

Key Results

The combination of a CNN trained on 60-second log mel spectrograms yielded the best overall performance:

  • Segment-Level: Achieved a top validation F1-score of 95.73% and a test F1-score of 94.89%.
  • Audio-Level: When aggregating segments using either the Validation-Dependent Threshold or the Voting method, the model reached a test F1-score of 92.02%.

The hybrid Voting method proved to be the most robust segment-to-audio transformation technique across the board, mitigating errors from individual thresholding strategies.

Limitations and Future Work

Despite strong performance, the authors identified specific failure modes through manual error analysis:

  • False Negatives: Occurred when explicit sounds were heavily masked by loud background music or continuous environmental noise, or when the adult video simply lacked explicit vocalizations entirely (e.g., featuring ambient sounds like rain instead).
  • False Positives: Occurred when non-pornographic videos contained repetitive rhythmic sounds (like clocks ticking or hand claps) or non-sexual human sounds (sighs, heavy breathing after exercise) that deceptively mimicked pornographic audio signatures.

Future Directions: The authors suggest exploring data augmentation to improve deep learning robustness, testing alternative acoustic features (like STDMFCCs or RCSFs), training directly on raw lossless waveforms, and scaling up to more complex architectures like Transformers.

Summary updated

Abstract

Audio-based pornographic detection enables efficient adult content filtering without sacrificing performance by exploiting distinct spectral characteristics. To improve it, we explore pornographic sound modeling based on different neural architectures and acoustic features. We find that CNN trained on log mel spectrogram achieves the best performance on Pornography-800 dataset. Our experiment results also show that log mel spectrogram allows better representations for the models to recognize pornographic sounds. Finally, to classify whole audio waveforms rather than segments, we employ voting segment-to-audio technique that yields the best audio-level detection results.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Pornography-800 datasetCNN (log-mel-60)Test F1-score (segment-level)94.89%Audio Classification · split: test · model=CNN · features=log-mel · segment-length=60 seconds · evaluation-level=segment
Source quote
L147: log-mel-60 │ 95.38% │ \bfseries{94.89%}
Pornography-800 datasetCNN (mfcc-60)Test F1-score (segment-level)93.92%Audio Classification · split: test · model=CNN · features=MFCC · segment-length=60 seconds · evaluation-level=segment
Source quote
L145: mfcc-60 │ 93.46% │ 93.92%
Pornography-800 datasetFFNN (log-mel-60)Test F1-score (segment-level)93.42%Audio Classification · split: test · model=FFNN · features=log-mel · segment-length=60 seconds · evaluation-level=segment
Source quote
L143: log-mel-60 │ 93.72% │ 93.42%
Pornography-800 datasetVoting segment-to-audio methodMean test F1-score across audio-level results88.37%Audio Classification · split: test · aggregation=voting · evaluation-level=audio · metric-aggregation=mean across configurations
Source quote
L182: \item voting (88.37%),
BibTeX
@misc{lovenia2022what,
  author = {Holy Lovenia and Dessi Puji Lestari and Rita Frieske},
  title = {{What Did I Just Hear? Detecting Pornographic Sounds in Adult Videos Using Neural Networks}},
  year = {2022},
  eprint = {2209.03711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.03711},
}
Figure