# US 10,956,670 B2 · System and method for detecting undesirable and potentially harmful online behavior

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

- Number: US 10,956,670 B2
- Document ID: US10956670B2
- Status: Granted
- Kind: B2
- Application number: 16/289,881
- Filed: 2019-03-01
- Published: 2019-09-05
- Granted: 2021-03-23
- Earliest claimed: 2018-03-03
- Assignees: Samurai Labs Sp. Z O.O.
- Applicants: Fido Voice sp. z o.o.
- Inventors: Michal Wroczynski; Gniewosz Leliwa
- Web page: https://patentgrep.com/patent/US10956670B2

## CPC

- G06F 40/253: Grammatical analysis; Style critique
- H04L 51/063: Content adaptation, e.g. replacement of unsuitable content
- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F 40/216: using statistical methods
- G06F 40/279: Recognition of textual entities
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 5/025: Extracting rules from data
- G06N 20/00: Machine learning
- H04L 51/046: Interoperability with other network applications or services
- H04L 51/212: using filtering or selective blocking
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments include computer-implemented methods and systems for detecting undesirable and potentially harmful online behavior. The embodiments described and claimed could also be applied to detecting any other type of online behavior to be detected, but the descriptions focuses on detecting online violence. More particularly, the embodiments disclosed relate to detecting online violence using symbolic methods of natural language processing (NLP) that utilize and govern the usage of: 1) syntactic parser for analyzing grammatical context of the input text data, 2) unsupervised learning methods for improving selected aspects of the system and adjusting the system to new data sources and guidelines, and 3) statistical classifiers for resolving specific well-defined sub-tasks, in which statistical approaches surpass the symbolic methods.

## Claims

### Claim 1

A system for detecting one or more predetermined online behaviors, the system comprising:
an online violence detection system comprising at least one processor configured to receive online data from any sources on the internet and to process the online data to determine whether the online data contains online violence, wherein processing the data comprises,
the at least one processor receiving plain text input;
the at least one processor performing a plurality of functional modules, the plurality of functional modules comprising one or more of a text preparation module, a normalization module, and a correction and transformation module, wherein,
normalization comprises the process of transforming the plain text input into a single predetermined canonical form to generate normalized text;
correction comprises the process of revising the normalized text in order to correct misspellings and any other types of intentional and non-intentional errors to generate corrected text; and
transformation comprises the process of revising the corrected text in order to replace, remove or add specific text fragments to generate transformed text that is optimally phrased for detecting one or more predetermined online behaviors; and
at least one processor performing online violence detection on the normalized text, the corrected text, and transformed text, including,
at least one module for detecting online violence, wherein the at least one module is comprised of a set of contextual models wherein,
each contextual model comprises a detection model for detecting a single well-defined type of online violence;
each contextual model classifies text as containing or not containing a given type of online violence and assigns a set of processing-related information to the text; and
each contextual model comprises one or more of symbolic processing, syntactic parsing, statistical classifiers and unsupervised learning techniques in detecting the one or more predetermined online behaviors, wherein symbolic processing of each contextual model comprises using one or more rules stored in one or more rule libraries, wherein,
each rule performs a binary classification in order to verify if a text input character string contains a sought language or online violence phenomenon;
each rule has access to and can make use of a syntactic parser, dictionaries and statistical classifiers; and
each rule represents one of four functional categories comprising,
detection rules identifying a separated and well-defined subpart of a given online violence phenomenon, defined as a single manner in which a person can use natural language to express the given phenomenon;
component rules related to a specific sub-task for detection of the given online violence phenomenon but not identifying the given online violence phenomenon itself and comprises a building block from which the detection rules can be composed;
contradiction checking rules analyzing a broad context of the input text and identifies the linguistic premises indicating that the text should not be detected as online violence regardless of the detection rules; and
wrapper rules responsible for communication with statistical classifiers, including assigning specific parts of an input text character string, sending them to selected classifier, and getting back the results.

### Claim 2 (depends on 1)

The system of claim 1, wherein the processing-related information comprises:
categories and sub-categories of detected violence;
information allowing identification of a rule responsible for the detection; and
text preparation data.

### Claim 3 (depends on 1)

The system of claim 1, wherein symbolic processing of each contextual model:
executes symbolic algorithms, methods, and components, including detection rules, in detecting the one or more predetermined online behaviors; and
governs usage of rules, dictionaries, outputs of a syntactic parser and the statistical classifiers, including requesting supportive system components and gathering data from the supportive system components.

### Claim 4 (depends on 1)

The system of claim 1, wherein symbolic processing of each contextual model comprises:
preliminary filtering;
composition and execution of detection rules;
syntactic parsing;
dedicated classifiers; and
contradiction checking.

### Claim 5 (depends on 1)

The system of claim 1, wherein normalization further comprises:
converting text to a default character encoding;
performing segmentation and entity recognition; and
recognizing at least one of contractions, emoticons, redundant repetitions, whitespaces, tags, markers, and code snippets.

### Claim 6 (depends on 1)

The system of claim 1, wherein correction further comprises:
correcting typos, misspellings, word boundaries, and character replacements;
converting enumerations and listings; and
resolving syntactic errors based on verifying part-of-speech agreements.

### Claim 7 (depends on 6)

The system of claim 6, wherein correction comprises one or more approaches, the approaches comprising:
a dictionary-based approach comprising using a plurality of algorithms for evaluating similarity metrics between misspelled words and correct dictionary entries; and
a context-based approach comprising using the plurality of algorithms for one or more of finding a replacement and preparing a list of candidates for replacements for other modules and methods, based on establishing what element is required or expected within a given context.

### Claim 8 (depends on 1)

The system of claim 1, wherein transformation further comprises execution of the transformation module comprising:
replacing certain expressions and entities with their equivalents recognizable by the system for detecting one or more predetermined online behaviors;
removing irrelevant expressions and entities;
fulfilling omitted expressions and entities; and
recognizing quotations and indirect speech.

### Claim 9 (depends on 1)

The system of claim 1, wherein the at least one processor is further configured as a detection engine in order to perform online violence detection, including at least one functional module for detecting online violence targeted against a second person, wherein the second person is characterizable as an interlocutor.

### Claim 10 (depends on 9)

The system of claim 9, wherein detecting online violence targeted against the second person comprises the use of contextual models for detecting a plurality of types of online violence comprising: personal attacks; threats; blackmail; sexual harassment; persuading harmful behaviors; and sexual and child exploitation.

### Claim 11 (depends on 9)

The system of claim 9, wherein the detection engine further comprises at least one module performing transformations to second person that transforms normalized, corrected, and transformed text so as to enable detecting online violence targeted against the second person to further detect online violence targeted against any other individual or group.

### Claim 12 (depends on 11)

The system of claim 11, wherein performing transformations to second person comprises a plurality of text transformations, comprising replacing third person personal pronouns, named entities that can be objects of online violence, and terms related to minorities and other groups of people, with responding second person references.

### Claim 13 (depends on 9)

The system of claim 9, wherein the detection engine further comprises at least one module for detecting other online violence that cannot be detected with the at least one functional module for detecting online violence targeted against a second person, wherein detecting comprises one or more of performing transformations to second person, and not performing transformations to second person.

### Claim 14 (depends on 13)

The system of claim 13, wherein detecting other online violence comprises using contextual models to detect the plurality of types of online violence comprising: sexting and sex-related content; self-harm declaration; sexism; racism; ageism; ableism; homophobia; and any other hostility to, prejudice against, or discrimination against minorities and any other individuals and groups.

### Claim 15 (depends on 1)

The system of claim 1, wherein each statistical classifier complements the contextual models with text classification that verifies whether an input character string belongs to one or more predefined categories by taking in the string and returning a set of detected categories along with a corresponding confidence score.

### Claim 16 (depends on 1)

The system of claim 1, wherein unsupervised learning techniques utilize unlabeled data or machine-labeled data to improve the contextual models by increasing the number of true positive results detected by the models or decreasing the number of false positive results detected by the models.

### Claim 17 (depends on 16)

The system of claim 16, wherein unsupervised learning techniques utilize existing rules and dictionary entries as seeds in order to generate new rules realizing the same functionality as seed rules and new dictionary entries playing a similar role within similar context as seed dictionary entries.

### Claim 18 (depends on 17)

The system of claim 17, wherein each component utilizing unsupervised learning techniques can be performed with human supervision in order to maximize its efficiency.
