Testing Content Moderation version 7 and transforming the API response
Rekognition updated the machine learning model for the image video components of Content Moderation label detection feature from version 6.1 to 7. This update enhanced overall accuracy, and introduced several new categories along with modifying others.
If you are a current video user of version 6.1, we recommend you to take the following actions to seamlessly transition to version 7:
-
Download and use an AWS private SDK (see the AWS SDK and Usage Guide for Content Moderation version 7 ) to call the StartContentModeration API.
-
Review the updated list of labels and confidence scores returned in the API response or console. Adjust your application post-processing logic accordingly if necessary.
-
Your account will remain on version 6.1 until May 13, 2024. If you wish to use version 6.1 beyond May 13, 2024, contact the AWS Support team
by April 30, 2024 to request for an extension. We can extend your account to remain on version 6.1 until June 10, 2024. If we do not hear from you by April 30, 2024, your account will be automatically migrated to version 7.0 starting May 13, 2024.
Label mappings for Versions 6.1 to 7
Content moderation version 7 added new label categories and modified previously existing label names. Reference the taxonomy table found at Label Categories when deciding how to map 6.1 labels to 7 labels.
Some example label mappings are found in the following section. We recommend you review these mappings and the label definitions before making the necessary updates based on your application’s post-processing logic.
L1 Mapping Schema
If you use post-processing logic which filters only on the top-level category
(L1) (such as Explicit Nudity
, Suggestive
,
Violence
etc), refer to the table below to update your
code.
V6.1 L1 | V7 L1 |
---|---|
Explicit Nudity | Explicit |
Suggestive | Non-Explicit Nudity of Intimate parts and Kissing |
Swimwear or Underwear | |
Violence | Violence |
Visually Disturbing | Visually Disturbing |
Rude Gestures | Rude Gestures |
Drugs | Drugs & Tobacco |
Tobacco | Drugs & Tobacco |
Alcohol | Alcohol |
Gambling | Gambling |
Hate Symbols | Hate Symbols |
L2 Mapping Schema
If you use post-processing logic that filters on both L1 and L2 categories (such
as Explicit Nudity / Nudity, Suggestive / Female Swimwear Or Underwear
,
Violence / Weapon Violence
etc.), refer to the table below to
update your code.
V6.1 L1 | V6.1 L2 | V7 L1 | V7 L2 | V7 L3 | V7 ContentTypes |
---|---|---|---|---|---|
Explicit Nudity | Nudity | Explicit | Explicit Nudity | Exposed Female Nipple Exposed Buttocks or Anus |
|
Graphic Male Nudity | Explicit | Explicit Nudity | Exposed Male Genitalia | ||
Graphic Female Nudity | Explicit | Explicit Nudity | Exposed Female Genitalia | ||
Sexual Activity | Explicit | Explicit Sexual Activity | |||
Illustrated Explicit Nudity | Explicit | Explicit Nudity | Map to "Animated" and "Illustrated" | ||
Illustrated Explicit Nudity | Explicit | Explicit Sexual Activity | Map to "Animated" and "Illustrated" | ||
Adult Toys | Explicit | Sex Toys | |||
Suggestive | Female Swimwear Or Underwear | Swimwear or Underwear | Female Swimwear or Underwear | ||
Male Swimwear Or Underwear | Swimwear or Underwear | Male Swimwear or Underwear | |||
Partial Nudity | Non-Explicit Nudity of Intimate parts and Kissing | Non-Explicit Nudity | Implied Nudity | ||
Barechested Male | Non-Explicit Nudity of Intimate parts and Kissing | Non-Explicit Nudity | Exposed Male Nipple | ||
Revealing Clothes | Non-Explicit Nudity of Intimate parts and Kissing | Non-Explicit Nudity | |||
Non-Explicit Nudity of Intimate parts and Kissing | Obstructed Intimate Parts | ||||
Sexual Situations | Non-Explicit Nudity of Intimate parts and Kissing | Kissing on the Lips | |||
Violence | Graphic Violence Or Gore | Violence | Graphic Violence | Blood & Gore | |
Physical Violence | Violence | Graphic Violence | Physical Violence | ||
Weapon Violence | Violence | Graphic Violence | Weapon Violence | ||
Weapons | Violence | Weapons | |||
Self Injury | Violence | Graphic Violence | Self-Harm | ||
Visually Disturbing | Emaciated Bodies | Visually Disturbing | Death and Emaciation | Emaciated Bodies | |
Corpses | Visually Disturbing | Death and Emaciation | Corpses | ||
Hanging | Visually Disturbing | Death and Emaciation | Corpses | ||
Air Crash | Visually Disturbing | Crashes | Air Crash | ||
Explosions And Blasts | Violence | Graphic Violence | Explosions and Blasts | ||
Rude Gestures | Middle Finger | Rude Gestures | Middle Finger | ||
Drugs | Drug Products | Drugs & Tobacco | Products | ||
Drug Use | Drugs & Tobacco | Drugs & Tobacco Paraphernalia & Use | |||
Pills | Drugs & Tobacco | Products | Pills | ||
Drug Paraphernalia | Drugs & Tobacco | Drugs & Tobacco Paraphernalia & Use | |||
Tobacco | Tobacco Products | Drugs & Tobacco | Products | ||
Smoking | Drugs & Tobacco | Drugs & Tobacco Paraphernalia & Use | Smoking | ||
Alcohol | Drinking | Alcohol | Alcohol Use | Drinking | |
Alcoholic Beverages | Alcohol | Alcoholic Beverages | |||
Gambling | Gambling | Gambling | |||
Hate Symbols | Nazi Party | Hate Symbols | Nazi Party | ||
White Supremacy | Hate Symbols | White Supremacy | |||
Extremist | Hate Symbols | Extremist |