Skip to main content
Library

Now playing · Benchmarks

Announcing Ray Guardian: Visual Safety for Images and Video

Ray Guardian is Ray's unified visual safety system, benchmarked across 13 image-level safety categories and public-labeled video datasets.

Ray TeamAUG 4, 20266 min read

Introducing Ray Guardian

Ray Guardian is Ray's visual safety system for images and video. It reviews visual media for sensitive content and returns category signals Ray can use for playback, creation, moderation, and family settings.

The important part is simple: Ray Guardian is one system. Still images and video clips enter through different media paths, but the product receives one Guardian decision.

For images, Ray Guardian evaluates the full safety taxonomy: nudity, sexual content, violence, gore, weapons, drugs, alcohol, smoking, disturbing content, kissing / intimacy, self-harm, animal cruelty, and medical gore.

For video, Ray Guardian adds time. A single frame can be ambiguous; a clip can show action, intent, and context. The video path combines frame-level safety recognition with clip-level temporal understanding so the final result reflects what appears on screen and what is happening over time.

That is the system we benchmarked.

13-category visual safety benchmark

Ray Guardian reached 100.000% accuracy on the Ray Guardian 13-category held-out image benchmark: 17,435 known labels, 0 errors.

This benchmark is closest to the product taxonomy itself: the same category definitions, held-out examples, and the full set of Ray Guardian visual safety categories.

BenchmarkScopeItemsAccuracyPrecisionRecallF1
Ray Guardian held-out image-level benchmarkAll 13 Ray Guardian categories17,435 labels100.000%100.000%100.000%100.000%

The benchmark includes categories that often overlap in real products: sexual vs nudity, gore vs medical gore, weapons vs violence, and disturbing content vs ordinary unpleasant context.

Public-labeled video benchmark suite

Video benchmarks are measured against the labels each dataset actually provides. A kiss-vs-hug dataset supports kissing / intimacy evidence. A violence dataset supports violence and disturbing-event evidence. A safe-action dataset tests whether ordinary action clips are allowed through cleanly.

That makes the results easier to read and harder to misuse: each row reports Ray Guardian performance on that dataset's native label scope.

DatasetRay Guardian scopeClipsAccuracyPrecisionRecallF1
HMDB51 Kiss vs HugKissing / Intimacy18298.901%99.020%99.020%99.020%
XD-Violence Public LabelsViolence / Disturbing248100.000%100.000%100.000%100.000%
UCF-Crime Mapped LabelsViolence / Disturbing79100.000%100.000%100.000%100.000%
UCF-Crime Broad AnomalyAnomaly / Disturbing109100.000%100.000%100.000%100.000%
UCF101 Safe-Action HoldoutSafe-action guardrail330100.000%n/an/an/a

The UCF101 row is a negative-only guardrail: it measures whether ordinary safe actions are incorrectly blocked. In that test, Ray Guardian correctly allowed all 330 safe-action clips.

What the confusion matrices show

Accuracy is the headline number. A confusion matrix shows the shape of the decisions behind it.

Each matrix separates correct allows, false alarms, missed unsafe clips, and correctly flagged unsafe clips. That matters because a safety system has to protect people without interrupting ordinary media more than necessary.

Independent reference datasets

We also evaluate Ray Guardian on independent public and gated reference datasets. These datasets are useful because their labels were written by other teams, for other goals, and do not always line up perfectly with Ray Guardian categories.

The table below reports each result at the category level the dataset can support. When a dataset tests alcohol objects, we report alcohol behavior. When it tests medical wounds, we report medical gore or disturbing behavior.

Reference datasetRay Guardian scopeItemsAccuracyRecallNotes
HoliSafe-Bench test splitMapped image-safety categories32,248 labels94.266%75.779%Independent gated safety benchmark
UnsafeBench train splitMapped image-safety categories40,545 labels89.893%74.482%Independent gated safety benchmark
SurgWound test splitMedical gore137 images86.861%100.000%Medical wound sensitivity check
SurgWound test splitDisturbing137 images83.942%99.130%Medical wound sensitivity check
Lower Limb and Feet Wound DatasetMedical gore5,443 images65.185%98.958%Wound-domain reference check
HOD Benchmark DatasetAlcohol10,631 images97.667%87.095%Research-use object benchmark
HOD Benchmark DatasetSmoking10,631 images98.222%93.391%Research-use object benchmark
HOD Benchmark DatasetWeapons10,631 images85.053%68.659%Research-use object benchmark
Open Images V7 selected validation subsetWeapons460 rows81.957%87.234%Object-label reference check

These rows show how Ray Guardian behaves beyond the benchmark it was built against.

Why the numbers differ

A lower public reference score is not a contradiction. It means the dataset is asking a different question.

The 13-category Ray Guardian benchmark asks whether the system recognizes the safety categories used in Ray. The independent reference datasets ask what happens when outside labels, outside collection methods, and outside category definitions are mapped into that taxonomy.

Scores can move for straightforward reasons:

  • Different label definitions. A dataset may label an object while Ray Guardian is judging safety meaning. A wine glass, bottle, knife, or clinical wound is not always unsafe by itself.
  • Coarse labels. Some public safety labels combine several concepts into one broad label. Ray Guardian categories are more specific.
  • Context gaps. Some labels depend on caption, audio, surrounding scene, or human intent. These tests measure visible content.
  • Domain shift. External datasets include different crops, resolutions, generated images, surveillance footage, object closeups, and medical imagery.
  • Different task design. Object recognition benchmarks are useful stress tests, but object recognition is not identical to visual safety moderation.

The aligned benchmark shows performance on Ray Guardian's product taxonomy. The reference datasets show how that taxonomy transfers into messier outside data.

How to read the benchmark

Read each number at the level of the labels behind it.

  • The 13-category result measures the full Ray Guardian image-level safety taxonomy.
  • The video rows measure Ray Guardian on the public video labels available in each dataset.
  • The independent reference rows measure transfer to outside label systems, not a replacement for the product taxonomy benchmark.

Ray Guardian is now Ray's unified visual safety layer: one system for images and clips, built to catch sensitive content and keep decisions stable as media moves frame to frame.

Source datasets

The benchmark suite cites dataset sources including HMDB51 via FiftyOne, XD-Violence, UCF-Crime, UCF101 via FiftyOne, HoliSafe-Bench, UnsafeBench, Open Images V7, SurgWound, and HOD Benchmark Dataset.

Subscribe to the Ray newsletter. Product updates, release notes, and customer news.

No spam. Just the Ray newsletter and important product updates.

Ray JournalBenchmarks2026-08-04

Announcing Ray Guardian: Visual Safety for Images and Video

Ray Guardian is Ray's unified visual safety system, benchmarked across 13 image-level safety categories and public-labeled video datasets.

Ray Team2026-08-046 min read

Introducing Ray Guardian

Ray Guardian is Ray's visual safety system for images and video. It reviews visual media for sensitive content and returns category signals Ray can use for playback, creation, moderation, and family settings.

The important part is simple: Ray Guardian is one system. Still images and video clips enter through different media paths, but the product receives one Guardian decision.

For images, Ray Guardian evaluates the full safety taxonomy: nudity, sexual content, violence, gore, weapons, drugs, alcohol, smoking, disturbing content, kissing / intimacy, self-harm, animal cruelty, and medical gore.

For video, Ray Guardian adds time. A single frame can be ambiguous; a clip can show action, intent, and context. The video path combines frame-level safety recognition with clip-level temporal understanding so the final result reflects what appears on screen and what is happening over time.

That is the system we benchmarked.

13-category visual safety benchmark

Ray Guardian reached 100.000% accuracy on the Ray Guardian 13-category held-out image benchmark: 17,435 known labels, 0 errors.

This benchmark is closest to the product taxonomy itself: the same category definitions, held-out examples, and the full set of Ray Guardian visual safety categories.

BenchmarkScopeItemsAccuracyPrecisionRecallF1
Ray Guardian held-out image-level benchmarkAll 13 Ray Guardian categories17,435 labels100.000%100.000%100.000%100.000%

The benchmark includes categories that often overlap in real products: sexual vs nudity, gore vs medical gore, weapons vs violence, and disturbing content vs ordinary unpleasant context.

Public-labeled video benchmark suite

Video benchmarks are measured against the labels each dataset actually provides. A kiss-vs-hug dataset supports kissing / intimacy evidence. A violence dataset supports violence and disturbing-event evidence. A safe-action dataset tests whether ordinary action clips are allowed through cleanly.

That makes the results easier to read and harder to misuse: each row reports Ray Guardian performance on that dataset's native label scope.

DatasetRay Guardian scopeClipsAccuracyPrecisionRecallF1
HMDB51 Kiss vs HugKissing / Intimacy18298.901%99.020%99.020%99.020%
XD-Violence Public LabelsViolence / Disturbing248100.000%100.000%100.000%100.000%
UCF-Crime Mapped LabelsViolence / Disturbing79100.000%100.000%100.000%100.000%
UCF-Crime Broad AnomalyAnomaly / Disturbing109100.000%100.000%100.000%100.000%
UCF101 Safe-Action HoldoutSafe-action guardrail330100.000%n/an/an/a

The UCF101 row is a negative-only guardrail: it measures whether ordinary safe actions are incorrectly blocked. In that test, Ray Guardian correctly allowed all 330 safe-action clips.

What the confusion matrices show

Accuracy is the headline number. A confusion matrix shows the shape of the decisions behind it.

Each matrix separates correct allows, false alarms, missed unsafe clips, and correctly flagged unsafe clips. That matters because a safety system has to protect people without interrupting ordinary media more than necessary.

Independent reference datasets

We also evaluate Ray Guardian on independent public and gated reference datasets. These datasets are useful because their labels were written by other teams, for other goals, and do not always line up perfectly with Ray Guardian categories.

The table below reports each result at the category level the dataset can support. When a dataset tests alcohol objects, we report alcohol behavior. When it tests medical wounds, we report medical gore or disturbing behavior.

Reference datasetRay Guardian scopeItemsAccuracyRecallNotes
HoliSafe-Bench test splitMapped image-safety categories32,248 labels94.266%75.779%Independent gated safety benchmark
UnsafeBench train splitMapped image-safety categories40,545 labels89.893%74.482%Independent gated safety benchmark
SurgWound test splitMedical gore137 images86.861%100.000%Medical wound sensitivity check
SurgWound test splitDisturbing137 images83.942%99.130%Medical wound sensitivity check
Lower Limb and Feet Wound DatasetMedical gore5,443 images65.185%98.958%Wound-domain reference check
HOD Benchmark DatasetAlcohol10,631 images97.667%87.095%Research-use object benchmark
HOD Benchmark DatasetSmoking10,631 images98.222%93.391%Research-use object benchmark
HOD Benchmark DatasetWeapons10,631 images85.053%68.659%Research-use object benchmark
Open Images V7 selected validation subsetWeapons460 rows81.957%87.234%Object-label reference check

These rows show how Ray Guardian behaves beyond the benchmark it was built against.

Why the numbers differ

A lower public reference score is not a contradiction. It means the dataset is asking a different question.

The 13-category Ray Guardian benchmark asks whether the system recognizes the safety categories used in Ray. The independent reference datasets ask what happens when outside labels, outside collection methods, and outside category definitions are mapped into that taxonomy.

Scores can move for straightforward reasons:

  • Different label definitions. A dataset may label an object while Ray Guardian is judging safety meaning. A wine glass, bottle, knife, or clinical wound is not always unsafe by itself.
  • Coarse labels. Some public safety labels combine several concepts into one broad label. Ray Guardian categories are more specific.
  • Context gaps. Some labels depend on caption, audio, surrounding scene, or human intent. These tests measure visible content.
  • Domain shift. External datasets include different crops, resolutions, generated images, surveillance footage, object closeups, and medical imagery.
  • Different task design. Object recognition benchmarks are useful stress tests, but object recognition is not identical to visual safety moderation.

The aligned benchmark shows performance on Ray Guardian's product taxonomy. The reference datasets show how that taxonomy transfers into messier outside data.

How to read the benchmark

Read each number at the level of the labels behind it.

  • The 13-category result measures the full Ray Guardian image-level safety taxonomy.
  • The video rows measure Ray Guardian on the public video labels available in each dataset.
  • The independent reference rows measure transfer to outside label systems, not a replacement for the product taxonomy benchmark.

Ray Guardian is now Ray's unified visual safety layer: one system for images and clips, built to catch sensitive content and keep decisions stable as media moves frame to frame.

Source datasets

The benchmark suite cites dataset sources including HMDB51 via FiftyOne, XD-Violence, UCF-Crime, UCF101 via FiftyOne, HoliSafe-Bench, UnsafeBench, Open Images V7, SurgWound, and HOD Benchmark Dataset.

Subscribe to the Ray newsletter. Product updates, release notes, and customer news.

No spam. Just the Ray newsletter and important product updates.

Keep reading

Ray ASR Benchmark: 98 Languages, Full Results3 min readWhy Every Subtitle You Download Is a Gamble - And How Ray Fixes It2 min readRay FAQ: Everything You Need to Know2 min read