# US 2020/0404373 A1 · System and method for context aware detection of objectionable speech in video

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0404373 A1
- Document ID: US20200404373A1
- Status: Published application
- Kind: A1
- Application number: 17/013,943
- Filed: 2020-09-08
- Published: 2020-12-24
- Earliest claimed: 2018-09-17
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Istvan Rechner; Attila Toth; Andras Balogh; Eszter Kotra
- Web page: https://patentgrep.com/patent/US20200404373A1

## CPC

- H04N 21/454: Content {or additional data} filtering, e.g. blocking advertisements
- G06F 40/242: Dictionaries
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06N 3/08: Learning methods
- G10L 15/26: Speech to text systems (G10L15/08 takes precedence)
- H04N 21/233: Processing of audio elementary streams {(monitoring, identification or recognition of audio in broadcast systems H04H60/58)}
- H04N 21/234336: {by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text}
- H04N 21/4394: {involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams (arrangements characterised by components specially adapted for monitoring, identification or recognition of audio in broadcast systems H04H60/58)}
- H04N 21/4396: {by muting the audio signal}
- H04N 21/440236: {by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text}
- H04N 21/4542: {Blocking scenes or portions of the received content, e.g. censoring scenes}
- G10L 21/00: Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility (G10L19/00 takes precedence)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Embodiments provide a system and method for filtering speech in a video. Speech in video may contain objectionable or profane words that need to be filtered. To ascertain whether a word or phrase is objectionable, the contextual information from surrounding words and the contextual information from detected objects and scenes in the video are used. Unwanted words may be filtered or collected and presented to the user.

## Claims

### Claim 1

A computer implemented method in a data processing system comprising a processor and a memory comprising instructions, which are executed by the processor to cause the processor to implement speech filtration of a video, the method comprising:
converting speech in a scene of the video to text, wherein the text comprises words;
evaluating the text to determine candidate words to filter;
for each identified candidate word:
determining if there is a non-objectionable meaning to the identified candidate word; and
if there are no non-objectionable meanings to the identified candidate word, then filtering the candidate word from the speech;
for each candidate word having at least one non-objectionable meaning:
identifying surrounding words in the scene;
calculating a first context for the candidate word using semantic analysis of the surrounding words;
receiving a list of objects in the scene;
calculating a second context for the candidate word using semantic analysis of the list of objects;
determining if the candidate word is objectionable based on the first and second contexts; and
if the candidate word is objectionable, then filtering the candidate word from the speech.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the step of evaluating the text to determine candidate words to filter comprises:
using a pre-filter to exclude words from being designated as candidate words.

### Claim 3 (depends on 1)

The method as recited in claim 1, further comprising:
removing punctuation from the text.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein the step of evaluating the text to determine candidate words to filter comprises:
determining the language of the text;
selecting a dictionary of objectionable words based on the language of the text; and
comparing each word in the text to the words in the selected dictionary.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein the scene comprises a portion of the video having a start time and a stop time.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein the step of identifying surrounding words in the scene comprises:
identifying a range of words before and after the candidate word that are within the scene.

### Claim 7 (depends on 4)

The method as recited in claim 4, wherein the semantic analysis comprises:
a deep learning analysis.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein the objects in the scene comprise a textual representation of a visual element.

### Claim 9 (depends on 1)

The method as recited in claim 1, wherein filtering comprises:
muting the speech.

### Claim 10 (depends on 4)

The method as recited in claim 4, further comprising:
for each objectionable candidate word, adding the candidate word to the dictionary.

### Claim 11

A computer program product for speech filtration of a video, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
convert speech in a scene of the video to text, wherein the text comprises words;
evaluate the text to determine candidate words to filter;
for each identified candidate word:
determine if there is a non-objectionable meaning to the identified candidate word; and
if there are no non-objectionable meanings to the identified candidate word, then filter the candidate word from the speech;
for each candidate word having at least one non-objectionable meaning:
identify surrounding words in the scene;
calculate a first context for the candidate word using semantic analysis of the surrounding words;
receive a list of objects in the scene;
calculate a second context for the candidate word using semantic analysis of the list of objects;
determine if the candidate word is objectionable based on the first and second contexts; and
if the candidate word is objectionable, then filter the candidate word from the speech.

### Claim 12 (depends on 11)

The computer program product as recited in claim 11, the processor further configured to:
remove punctuation from the text.

### Claim 13 (depends on 11)

The computer program product as recited in claim 11, wherein the program instructions to cause the processor to evaluate the text to determine candidate words to filter further comprise:
determine the language of the text;
select a dictionary of objectionable words based on the language of the text; and
compare each word in the text to the words in the selected dictionary.

### Claim 14 (depends on 11)

The computer program product as recited in claim 11, wherein the scene comprises a portion of the video having a start time and a stop time.

### Claim 15 (depends on 11)

The computer program product as recited in claim 11, wherein the program instructions to cause the processor to identify surrounding words further comprise:
identify seven words before and after the candidate word that are within the scene.

### Claim 16 (depends on 13)

The computer program product as recited in claim 13, wherein the semantic analysis comprises:
a deep learning analysis.

### Claim 17 (depends on 11)

The computer program product as recited in claim 11, wherein the objects in the scene comprise a textual representation of a visual element.

### Claim 18 (depends on 11)

The computer program product as recited in claim 11, wherein the program instructions to cause the processor to filter the candidate word from the speech further comprises:
mute the speech.

### Claim 19 (depends on 13)

The computer program product as recited in claim 13, the processor further configured to:
for each objectionable candidate word, add the candidate word to the dictionary.

### Claim 20

A system for providing speech filtration of a video, comprising a processor configured to:
convert speech in a scene of the video to text, wherein the text comprises words;
evaluate the text to determine candidate words to filter;
for each identified candidate word:
determine if there is a non-objectionable meaning to the identified candidate word; and
if there are no non-objectionable meanings to the identified candidate word, then filter the candidate word from the speech;
for each candidate word having at least one non-objectionable meaning:
identify surrounding words in the scene;
calculate a first context for the candidate word using semantic analysis of the surrounding words;
receive a list of objects in the scene;
calculate a second context for the candidate word using semantic analysis of the list of objects;
determine if the candidate word is objectionable based on the first and second contexts; and
if the candidate word is objectionable, then filter the candidate word from the speech.
