Visually-based obfuscation detection

By converting text into images and applying image recognition models, the method detects visually-based obfuscations at various text levels, enhancing content moderation by accurately identifying abusive text and de-obfuscating or spell-correcting input, overcoming the limitations of prior art solutions.

WO2024188444A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2023/056328
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing methods for detecting obfuscations in written text, particularly visually-based obfuscations like ASCII drawings and Unicode symbols, are inadequate due to their reliance on symbolic or textual analysis, lacking the capability to detect visual features at higher levels such as paragraphs or sentences, and are not effective for non-horizontal text or characters replaced by symbols.

Method used

Converting text into images and using machine learning-based image recognition models to extract visual features at various levels (paragraph, sentence, word) for obfuscation detection, enabling the identification of previously undetectable obfuscations like added, omitted, or swapped characters, and ASCII drawings, with a classifier layer for labeling and a language model decoder for de-obfuscation or spell correction.

Benefits of technology

This approach effectively detects a wide range of visually-based obfuscations, improving content moderation by accurately identifying abusive text and de-obfuscating or spell-correcting input, addressing the limitations of prior art solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2023056328_19092024_PF_FP_ABST
    Figure EP2023056328_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A computer-implemented method and system for obfuscation detection from text input (1), wherein the text input (1) comprising character symbols (2) is transformed into a pixel-based image input (3), and an image patch (5) of the image input (3) corresponding to a visual or semantical grouping of a plurality of characters (2) is fed to a machine-learning based image recognition model (7) for extracting visual features (6) that are analyzed to determine the presence of obfuscated information (8) in the text input (1). The visual features (6) can also be fed to a classifier layer (9) to determine a label output (10), or to a language model decoder (14) to determine a text output (15) such as de-obfuscated text (16) or spell-corrected text (17).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] VISUALLY-BASED OBFUSCATION DETECTION

[0002] TECHNICAL FIELD

[0003] The disclosure relates generally to computer-based systems and methods of pattern recognition for content moderation, and more particularly methods and systems for obfuscation detection in written text.

[0004] BACKGROUND

[0005] Indiscriminate slang, abusive language, and profanity are generated, used, and propagated more quickly on the Internet than in any other area, including schools, companies, and society in general. The increase in the number of smart devices and mobile users means social networking services (SNSs) are now more pervasive than ever. The use of abusive text on such SNSs has become a type of cyber violence. In the past, cyber violence tended to be limited to young people familiar with the Internet, but it now affects all age groups and has become a major problem in society.

[0006] Historically, many media sources have suppressed the appearance of offensive language by removing or replacing the offending text with the help of dictionary-based tools. While such censorship is intended to improve the overall quality of the content, dictionary-based tools are easily defeated by clever writers who exploit the human ability to “read between the lines” and obfuscate offensive words while preserving their intended meaning. Such obfuscations may be visually-based such as adding or omitting characters, swapping letters, replacing characters by numbers or Unicode symbols, merging words, arranging characters in certain human-readable patterns (e.g. vertically or diagonally), or may be even in the form of ASCII drawings that represent words or other obfuscated information. Obfuscations may also be phonetically-based, yet these obfuscations can mostly also be visually interpreted and detected.

[0007] As (automatic) moderation becomes ubiquitous in forums and media platforms, deliberate obfuscations are likely to become much more pervasive and sophisticated as a natural strategic response of toxic users. It has therefore become an important problem to devise a method for detecting and preventing abusive text, especially in an online context. However, the intentional obfuscation of words and phrases makes this task very difficult and challenging, in particular because unlike many other language-related problems, text obfuscation detection is mainly a visual problem to solve. There are several fields within Computer Science, Al, Computer Vision, and Computational Linguistics that exhibit solutions to some extent to this problem.

[0008] Using Optical Character Recognition (OCR) can help recognizing text characters in documents formatted as images with a high efficiency and performance. However, OCR solutions are limited to mapping each (visual) character one-to-one to a symbol and cannot map multiple characters.

[0009] Malware obfuscation detection cannot be applied for the purpose of obfuscation detection because in malware the text is as visually not recognizable as possible on purpose, unlike obfuscating abusive words - the very purpose of which is precisely to be visually recognizable.

[0010] Automatic spelling error correction may be applied but only for limited cases, because obfuscations in abusive text are visually or phonetically motivated whereas spelling errors are often caused by contiguous keyword keys, phonetics, motor-brain error, or the like. Some visually detectable spelling errors are swapping 2 characters, single character mistakes (the rest of the word looks the same), omitted characters, extra characters, and so on.

[0011] Similarly, hashtag segmentation would only be applicable to one of the cases of obfuscation, i.e., merging two words (“aninsult”) and would not cover the majority of obfuscation types (character replace, swap, etc.).

[0012] Automatic text-based obfuscation detection using Natural Language Processing (NLP) may offer a possible solution in some cases, however due to the fact that it is not a visually-based solution it has some shortcomings. Most notably, using NLP-based obfuscation detection most obfuscation types, such as ASCII drawings, non-alphabetical symbols, vertical text, and other challenging obfuscation types cannot be detected as they are visually-based. Another shortcoming of such methods is that they are not end-to-end methods but rather based on manual rules and feature-engineering.

[0013] Accordingly, the prior art solutions have the main disadvantages that they visual awareness when detecting obfuscations, and thus lack capability to detect ASCII drawings, non-horizontal text, characters replaced by Unicode or other symbols.

[0014] Another limitation of prior art is that most existing NLP approaches that attempt to model visual information into textual natural language understanding are restricted to Chinese characters since Chinese characters are often visually connected to the meaning that they represent. Solutions that use visual features at the word-, sentence-, paragraph- or higher level to detect obfuscations in the Roman alphabet are missing.

[0015] Therefore, there is still a need for obfuscation detection solutions that can detect most or all visually-based obfuscation types in written text in a sufficiently accurate and efficient manner. Another need is for such a solution to be able to label the detected obfuscation for content moderation or other purposes, and to be able to determine non-obfiiscated or spell-corrected text output from visually obfuscated text input.

[0016] SUMMARY

[0017] The proposed method detects obfuscations and spelling errors by first converting full input texts into images containing pixels and subsequently applying an image recognition machine learning model to decode the image back to the de-obfuscated text, or predicting whether an obfuscation is present or not. The method extracts visual features at every level (paragraph-, sentence-, word-level, etc.), enabling the detection of cases that were not possible to detect by prior art, such as words with added or omitted characters, swapped letters, characters replaced by numbers or Unicode symbols, merged words, characters arranged in certain human-readable patterns (e.g. vertically or diagonally), and even ASCII drawings that represent words or other obfuscated information.

[0018] The foregoing and other objects are achieved by the features of the independent claims. Further implementation forms are apparent from the dependent claims, the description and the figures.

[0019] According to a first aspect, there is provided a computer-implemented obfuscation detection method wherein text input comprising a string of characters is received and converted into an image input comprising a plurality of pixels. Image patches within the image input are selected corresponding to a grouping of a plurality of characters, from which visual features are extracted using a machine-learning based image recognition model. The extracted visual features are then analyzed for determining whether obfuscated information is present in the text input.

[0020] Transforming the whole input text (paragraph, sentence, word) into image pixels (as it is rendered on the screen) enables framing the text obfuscation detection problem into its more natural visual-context, instead of into a symbolic-context as in the prior art malware detection or NUP -based methods. In addition, extracting visual features for the whole input text (paragraph, sentence, word) enables applying a more holistic view (whole > parts) of the text obfuscation detection problem by extracting visual features at every level (paragraph- sentence- , word-level, etc.) instead of only character-level as in the prior art. Detecting obfuscations in the image pixels (transformed from text) directly using an image recognition model further enables detecting visually- motivated obfuscations that were undetectable before (ASCII drawings, vertical text, etc.).

[0021] In a possible implementation form of the first aspect the method further comprises feeding extracted visual features related to the obfuscated information to a classifier layer to determine at least one label output.

[0022] In one embodiment the classifier layer is a layer configured for classification, such as a Sigmoid or Softmax classifier, wherein the label output comprises a multi-label output.

[0023] In a possible implementation form of the first aspect the method further comprises accessing a keyword list comprising a set of predetermined labels corresponding to semantical groupings of characters such as canonical words or phrases; detecting the presence of any of the set of predetermined labels based on the extracted visual features related to the obfuscated information; and determining a multi-label output comprising any detected label from the set of predetermined labels, wherein the output space of the multi-label output corresponds to any subset or superset of the keyword list. This enables specifying a certain set of keywords (such as profane or abusive words, or other censored character strings) and determining whether these keywords are present in an obfuscated text.

[0024] In one embodiment the classifier layer is a layer configured for binary classification, such as a Sigmoid classifier, and the label output comprises a single label output.

[0025] In an embodiment the label output is based on Abusive Text Detection, wherein the output label corresponds to whether the obfuscated information is “abusive” or “not abusive”.

[0026] In an embodiment the label output is based on sentiment analysis, wherein the output label corresponds to a sentiment of the obfuscated information, such as “neutral”, “positive” or “negative”.

[0027] In a possible implementation form of the first aspect the method further comprises determining, based on the extracted visual features related to the obfuscated information, whether the obfuscated information corresponds to a picture or a text; and if the obfuscated information corresponds to a text, feeding extracted visual features to a language model decoder to determine at least one text output. In a possible implementation form of the first aspect the language model decoder is configured for de-obfuscation, and wherein the text output comprises de-obfiiscated text corresponding to the obfuscated information.

[0028] In a possible implementation form of the first aspect the language model decoder is configured for spell checking and is linked to a vocabulary database, and the text output comprises spell- corrected text corresponding to the obfuscated information.

[0029] In a possible implementation form of the first aspect the image patch corresponds to at least one of a word, a phrase, a sentence, a paragraph, or a larger group of characters semantically or visually linked together within the string of characters.

[0030] In a possible implementation form of the first aspect determining the at least one image patch within the image input comprises analyzing the string of characters in the text input to determine a grouping of a plurality of characters comprised in the string of characters based on semantics; and selecting a portion of the image input corresponding to the grouping of characters.

[0031] In a possible implementation form of the first aspect determining the at least one image patch within the image input comprises analyzing the plurality of pixels in the image input to determine at least one image patch corresponding to a visual grouping of a plurality of characters.

[0032] In a possible implementation form of the first aspect determining the at least one image patch within the image input comprises a selection based on attention-related weight values associated with each image patch. This allows for prioritizing image patches based on predetermined attention patterns.

[0033] In a possible implementation form of the first aspect before converting the text input into an image input, the method comprises converting the text input into a string of character symbols corresponding to a predetermined typeface used for training the image recognition model. This allows for a more robust algorithm wherein the input text is always according to the same typeface, which reduces time needed for training of the algorithm and improves accuracy of the obfuscation detection.

[0034] In some embodiments the image recognition model is one of a convolutional neural network, a Vision Transformer, a support vector machine, or an ensemble learning method such as a random forest algorithm. According to a second aspect, there is provided a computer-implemented Visual Obfuscation Detection, VOD, service, the VOD service being configured for receiving text input comprising a string of characters; and executing a computer program code comprising computer instructions that cause a processor to convert the text input into an image input comprising a plurality of pixels; determine at least one image patch within the image input corresponding to a grouping of a plurality of characters comprised in the string of characters; extract visual features from the at least one image patch using a machine-learning based image recognition model; and determine whether obfuscated information is present in the text input by analyzing the extracted visual features. Integrating the method as a Visual Obfuscation Detection service allows for multiple applications, such as online content moderation, or obfuscation detection in client-server architectures.

[0035] In a possible implementation form of the second aspect the VOD service is further configured to cause the processor to determine at least one of a label output or a text output by performing the steps of a method according to any one of the possible implementation forms of the first aspect.

[0036] According to a third aspect, there is provided a computer-based system for obfuscation detection, the system comprising a processor; a memory configured to store text input comprising a string of characters; and a VOD service configured to determine a label output or a text output; wherein the processor is configured to transfer text input from the memory to the VOD service; and determine a system output based on the label output or text output of the VOD service. Integrating the method as a Visual Obfuscation Detection service allows for multiple applications, such as online content moderation, or obfuscation detection in clientserver architectures.

[0037] In an embodiment the system output is de-obfiiscated text or spell-corrected text based on any detected obfuscated text in the input text.

[0038] In another embodiment the system output is label describing any detected obfuscated picture in the input text.

[0039] In a possible implementation form of the third aspect the system comprises a VOD service; and a core service configured to interact with the VOD service and determine a core output using the output of the VOD service; wherein the system output is a decision based on the core output.

[0040] In an embodiment the core service is configured for Abusive Text Detection, wherein the core output corresponds to whether the obfuscated information is “abusive” or “not abusive”. In a related embodiment the decision is a content moderation decision based on content moderation rules.

[0041] In an embodiment the core service is configured for sentiment analysis, wherein the core output corresponds to a sentiment of the obfuscated information, such as “neutral”, “positive” or “negative”.

[0042] In a related embodiment the decision is a data analysis or business decision based on the sentiment of the obfuscated information.

[0043] In possible embodiments the core service uses one of a supervised-, unsupervised- or reinforcement-learning, or a parametric / non-parametric statistical model.

[0044] In a possible implementation form of the third aspect the VOD service is integrated in the core service, wherein the output of the VOD service is fused with the core service.

[0045] In possible embodiments the VOD service is integrated in the core service using late- or early- fusion.

[0046] In another possible implementation form of the third aspect the VOD service is used as a preprocessing step before the core service; wherein the output of the VOD service is fed as an input to the core service.

[0047] In a possible implementation form of the third aspect the system comprises a server comprising the processor and the memory, the server being configured to run the VOD service; a client in data communication with the server via an online service running on the server, the client being configured to receive text input through an input-output interface and transfer the text input to the server; the server being configured to receive the text input, and in response, determine a system output using the VOD service and transfer the system output back to the client.

[0048] In a further possible implementation form of the third aspect the system comprises a server comprising the processor and the memory; the server being configured to run the VOD service and the core service; a client in data communication with the server via an online service running on the server, the client being configured to receive text input through an input interface and transfer the text input to the server; the server being configured to receive the text input, and in response, determine a decision using the VOD service and the core service and transfer the decision back to the client.

[0049] In an embodiment the VOD service and the core service are part of a content moderation module interacting and informed by the online service; wherein the core service is configured for Abusive Text Detection, and wherein the decision is a moderation decision wherein if abusive text is detected the text input is either automatically moderated or a notification is sent to the client; or if no abusive text is detected no action is performed.

[0050] These and other aspects will be apparent from and the embodiment s) described below.

[0051] BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In the following detailed portion of the present disclosure, the aspects, embodiments and implementations will be explained in more detail with reference to the example embodiments shown in the drawings, in which:

[0053] Fig. 1 shows a flow diagram of an obfuscation detection method according to an example of the embodiments of the disclosure;

[0054] Fig. 2 shows a flow diagram of determining different possible outputs from extracted visual features according to an example of the embodiments of the disclosure;

[0055] Fig. 3 shows a flow diagram of selecting image pacthes according to an example of the embodiments of the disclosure;

[0056] Fig. 4 shows a flow diagram of determining a multi-label output using an obfuscation detection method according to an example of the embodiments of the disclosure;

[0057] Fig. 5 shows a flow diagram of determining a single label output using an obfuscation detection method according to an example of the embodiments of the disclosure;

[0058] Fig. 6 shows a flow diagram of transforming an input text using a predetermined typeface for enhanced obfuscation detection according to an example of the embodiments of the disclosure;

[0059] Fig. 7 shows a flow diagram of using a language model decoder in an obfuscation detection method for determining de-obfuscated text according to an example of the embodiments of the disclosure;

[0060] Fig. 8 shows a flow diagram of using a language model decoder in an obfuscation detection method for determining spell-corrected text using an obfuscation detection method according to an example of the embodiments of the disclosure;

[0061] Fig. 9 shows a flow diagram of determining labels for an obfuscated picture using an obfuscation detection method according to an example of the embodiments of the disclosure;

[0062] Fig. 10 shows a flow diagram of using a Visual Obfuscation Detection service according to an example of the embodiments of the disclosure; Fig. 11 shows a flow diagram of using a Visual Obfuscation Detection service integrated on a computer according to an example of the embodiments of the disclosure;

[0063] Fig. 12 shows a flow diagram of using a Visual Obfuscation Detection service integrated on a client-server architecture according to another example of the embodiments of the disclosure.

[0064] DETAILED DESCRIPTION

[0065] In the following detailed description, numerous specific details are set forth by way of examples in order to provide a thorough understanding of the relevant disclosure. However, it should be apparent to those skilled in the art that the present disclosure may be practiced without such details. In other instances, well known methods, procedures, systems, components, and / or circuitry have been described at a relatively high-level, without detail, in order to avoid unnecessarily obscuring aspects of the present disclosure.

[0066] Fig. 1 illustrates a computer-implemented obfuscation detection method according to an example of the disclosure. A text input 1 comprising a string of characters 2 is received and converted into an image input 3 comprising a plurality of pixels 4. For converting symbols into pixel-based image data any known method can be used as will be apparent for a skilled person, such as rasterizing tools which are configured to convert vector-based data into data comprising rasters that are made up of grid cells also known as pixels.

[0067] Once the text input 1 is converted into image input 3, one or more image patch 5 from the image input 3 is selected, each image patch 5 corresponding to a grouping of a plurality of characters 2. The image patches 5 may correspond a word, a phrase, a sentence, a paragraph, or a larger group of characters 2 semantically or visually linked together within the string of characters 2 in the text input 1. Determining image patches 5 within the image input 3 may be done by analyzing the string of characters 2 in the text input 1 to determine a grouping of a plurality of characters 2 based on semantics; and then selecting a portion of the image input 3 corresponding to the grouping of characters 2. Alternatively, determining image patches 5 within the image input 3 may be done by analyzing the plurality of pixels 4 in the image input 3 to determine at least one image patch 5 corresponding to a visual grouping 19 of a plurality of characters 2, as shown in Fig. 3.

[0068] The image patches 5 are then fed into a machine-learning based image recognition model 7. The image recognition model 7 can be any model suitable for extracting visual features 6, such as convolutional neural network CNN, a Vision Transformer ViT, a support vector machine SVM, or an ensemble learning method such as a random forest algorithm. The image recognition model 7 is pre-trained on images with converted text data containing obfuscated information 8.

[0069] The extracted visual features 6 are then used for analysis and determining whether obfuscated information 8 is present in the text input 1.

[0070] The above steps may of course apply to both phases of the image recognition model 7: training (where parameters of image recognition model 7 are learned) and testing (inference).

[0071] Fig. 2 illustrates different outcomes of applying the obfuscation detection method according to different examples of the disclosure. Steps and features that are the same or similar to corresponding steps and features previously described or shown herein are denoted by the same reference numeral as previously used for simplicity.

[0072] As shown in Fig. 2, the method can comprise determining whether the obfuscated information

[0073] 8 corresponds to a picture or a text (based on the extracted visual features 6 related to the obfuscated information 8) and if the obfuscated information 8 corresponds to a text, feeding extracted visual features 6 to a language model decoder 14 to determine at least one text output 15.

[0074] The language model decoder 14 may be configured for de-obfiiscation, in which case the text output 15 is de-obfuscated text 16 corresponding to the obfuscated information 8, as shown in Fig. 7.

[0075] The language model decoder 14 may alternatively be configured for spell checking and may be further linked to a vocabulary database 18, and in which case the text output 15 is spell- corrected text 17 corresponding to the obfuscated information 8, as shown in Fig. 8.

[0076] Alternatively, if the obfuscated information 8 corresponds to a picture, such as ASCII drawings shown in Fig. 9, the extracted visual features 6 related to the obfuscated information 8 may be fed to a classifier layer 9 to determine at least one label output 10. However, this option is not limited to obfuscated information 8 corresponding to a picture, and it can also be applied in the previous case when the obfuscated information 8 corresponds to a text. In both cases, the extracted visual features 6 are fed to a classifier layer 9 to determine a label output 10.

[0077] The expected label output 10 may be a multi-label output 11, in which case the classifier layer

[0078] 9 may be a layer configured for classification, such as a Sigmoid or Softmax classifier. The expected label output 10 may also be a single label output 12, in which case the classifier layer 9 may be a layer configured for binary classification, such as a Sigmoid classifier.

[0079] Fig. 3 illustrates an example of determining an image patch 5 within the image input 3, wherein the obfuscated information 8 may be an insult arranged in a diagonal pattern within a larger portion of text in the text input 1. In this case, as mentioned before, determining the image patch 5 within the image input 3 comprises first analyzing the plurality of pixels 4 in the image input 3 to determine an initial image patch 5 corresponding to a visual grouping 19 of a plurality of characters 2, and then selecting the final image patch 5 based on attention-related weight values 20, wherein higher values correspond to natural patterns according to human visual attention when comprehending text-based information. The extracted final image patch 5 is sent to the image recognition model 7 as explained before.

[0080] Fig. 4 illustrates an example flow of the obfuscation detection method where steps and features that are the same or similar to corresponding steps and features previously described or shown herein are denoted by the same reference numeral as previously used for simplicity. This example corresponds to applying Visual Obfuscation Detection (VOD) in a typical setting of abusive language detection and sentiment analysis, where a keyword list 13 is provided to be accessible by the image recognition model 7, the keyword list 13 comprising a set of predetermined labels corresponding to semantical groupings of characters 2, such as canonical words or phrases from a vocabulary or lexicon. The presence of any of the set of predetermined labels is detected by the image recognition model 7 based on the extracted visual features 6 related to the obfuscated information 8. The expected outcome is a multi-label output 11 comprising any detected label from the set of predetermined labels. The output space of the multi-label output 11 in this case corresponds to any subset or superset of the keyword list 13.

[0081] Fig. 5 illustrates a similar flow to Fig. 4, however in this case the expected outcome is a single label output 12, i.e. the VOD outputs a general class label instead of outputting a (set of) words of a lexicon as labels. The single label output 12 may be based on Abusive Text Detection (ATD), in which case the output label may correspond to a binary label choice on whether the obfuscated information 8 is “abusive” or “not abusive”.

[0082] The label output 10 may also be based on sentiment analysis, in which case the output label may correspond to a non-binary sentiment of the obfuscated information 8, such as “neutral”, “positive” or “negative”, or a scaled value of a sentiment. Fig. 6 illustrates an optional additional step executed before converting the text input 1 into an image input 3. In this example the text input 1 is converted into a string of character symbols corresponding to a predetermined typeface 21 used for training the image recognition model 7. This allows for a more robust algorithm wherein the input text is always according to the same typeface, which reduces time needed for training of the algorithm and also improves accuracy of the obfuscation detection method.

[0083] Fig. 7 shows a flow diagram of using a language model decoder 14 in an obfuscation detection method for determining de-obfuscated text 16, instead of a class label or a (set of) words of a lexicon as labels according to the examples of the method as described before. In this illustrated example the input text 1 comprises the same character symbols, and the arrangement of the group of symbols reads as an insult. This kind of obfuscation is difficult if not impossible to detect using any NPL based or other obfuscation detection method of the prior art, however with this method, by converting the input text 1 into image input 3 and feeding to an image recognition model 7 the insult is easily detected and de-obfuscated text 16 is given as an output.

[0084] Fig. 8 shows a flow diagram of using a language model decoder in an obfuscation detection method for determining spell-corrected text 17. The architecture is identical to the examples before, only the task (and purpose) changes. The language model decoder 14 in this case is configured for spell checking and is linked to a vocabulary database 18. The text output 15 is spell-corrected text 17 corresponding to the obfuscated information 8 in the text input 1.

[0085] Fig. 9 illustrates a flow diagram of determining label output 10 for an obfuscated picture using the obfuscation detection. In this case the obfuscated information 8 corresponds to an ASCII drawing, and the extracted visual features 6 related to the obfuscated information 8 are fed to a classifier layer 9 to determine at least one label output 10. The expected label output 10 may also be a single label output 12, such as whether the obfuscated information 8 is “offensive” or “non-offensive”, in which case the classifier layer 9 may be a layer configured for binary classification, such as a Sigmoid classifier. The expected label output 10 may alternatively or in addition be a multi-label output 11 defining certain visual features detected in the obfuscated picture, in which case the classifier layer 9 may be a layer configured for classification, such as a Sigmoid or Softmax classifier.

[0086] Fig. 10 shows a flow diagram of using a Visual Obfuscation Detection service configured to execute a VOD method as described in the examples before, i.e. for receiving text input 1 comprising a string of characters 2, and for executing a computer program code that cause a processor 27 to convert the text input 1 into an image input 3, determine at least one image patch 5 corresponding to a grouping of a plurality of characters 2, extract visual features 6 from the image patch 5 using a machine-learning based image recognition model 7, and determine whether obfuscated information 8 is present in the text input 1 by analyzing the extracted visual features 6. The VOD service 22 may be alternatively or further configured to cause the processor 27 to determine at least one of a label output 10 or a text output 15 as also described before.

[0087] The system as illustrated may further comprise a core service 23 configured to interact with the VOD service 22 and determine a core output 26 using the output of the VOD service 22. The VOD service 22 may be used as a pre-processing step before the core service 23, as shown with broken lines, wherein the output of the VOD service 22 is fed as an input to the core service 23. The VOD service 22 may also be integrated in the core service 23, wherein the output of the VOD service 22 is fused with the core service 23. The VOD service 22 may be integrated in the core service 23 using late- or early-fusion.

[0088] The system may finally be configured to determine a system output 24 based on a label output 10 or text output 15 of the VOD service 22. The system output 24 may be de-obfiiscated text 16 or spell-corrected text 17 based on any detected obfuscated text in the input text 1; or a label describing any detected obfuscated picture in the input text 1.

[0089] Figs. 11 and 12 show two alternative examples of implementing the VOD service 22 in different data environments based on the task to be executed.

[0090] Fig. 11 shows a flow diagram of using the Visual Obfuscation Detection service 22 integrated on a computer for use in on-device applications, data analysis, predictive analyses in data science, as similar purposes.

[0091] In this example, a company or individual possesses some public or private text data to analyze (e.g., a hedge fund performing sentiment analysis on companies’ news, or a social media company training their auto-moderation models offline, etc.). The VOD service 22 interacts (by informing each other) with the core service 23 (ATD, sentiment analysis, etc.) which can be supervised-, unsupervised- or reinforcement-learning, or simply a parametric / non-parametric statistical model. As mentioned before, the VOD service 22 is either integrated in the core model (e.g., late- or early-fusion) or used as a pre-processing step used to de-obfuscate the data that is fed into their core service 23 afterwards. The core service 23 may be present or not, e.g., in case the whole purpose of the application is purely to de-obfuscate text the VOD service 22 may be the only model present. The output from the VOD service 22 can be either fused with an ATD model, or fed to the ATD model, i.e., using VOD service 22 to pre-process the original text input 1 and de-obfuscate it in order to feed it to the ATD model.

[0092] The system output 24 in this case is a decision 25 based on the core output 26 of the core service 23, or based on the VOD service 22 output if no core service 23 is present.

[0093] The models’ output might be used for any purpose such as data analysis, business decisions, content moderation, and so on.

[0094] Fig. 12 shows a flow diagram of using a Visual Obfuscation Detection service integrated on a client-server architecture according to another example for use in online apps, social media or similar environments.

[0095] In this example, a provider network uses a server 30 comprising a processor 27 and a memory 28, the server 30 being configured to run the VOD service 22 and to host an online service 32 (application, gaming, social media, etc.) offered e.g. as a cloud-based service. A user sends text input 1 to the online service 32 through a client 31 such as a mobile device, laptop, or other device, using an input-output interface 29 of the client 31.

[0096] The online service 32 feeds the user’s text into a moderation module containing the VOD service 22, which interacts (by informing each other) with the core service 23 (ATD, sentiment analysis, etc.) which can be supervised-, unsupervised- or reinforcement-learning, or simply a parametric / non-parametric statistical model. As before, the VOD service 22 is either integrated in the core model (e.g., late- or early-fusion) or used as a pre-processing step used to de- obfiiscate the data that is fed into their core service 23 afterwards. The core service 23 may be present or not, e.g., in case the whole purpose of the application is purely to de-obfuscate text the VOD service 22 may be the only model present. The output from the VOD service 22 can be either fused with an ATD model, or fed to the ATD model, i.e., using VOD service 22 to pre-process the original text input 1 and de-obfuscate it in order to feed it to the ATD model.

[0097] The server 20 then determines a decision 25 using the VOD service 22 and / or the core service 23 and transfer the decision 25 back to the client 31. In the illustrated example, wherein the core service 23 is configured for Abusive Text Detection ATD, the decision 25 is a moderation decision wherein if abusive text is detected the text input 1 is either automatically moderated or a notification is sent to the client 31; or if no abusive text is detected no action is performed.

[0098] Any module, unit, or block described herein may be implemented as software and / or hardware and may be stored in any type of non-transitory computer-readable medium or other storage device. In some embodiments, a software module / unit / block may be compiled and linked into an executable program. It will be appreciated that software modules can be callable from other modules / units / blocks or from themselves, and / or may be invoked in response to detected events or interrupts. Software modules / units / blocks configured for execution on computing devices may be provided on a computer readable medium, such as a compact disc, a digital video disc, a flash drive, a magnetic disc, or any other tangible medium, or as a digital download (and can be originally stored in a compressed or installable format that needs installation, decompression, or decryption prior to execution). Such software code may be stored, partially or fully, on a storage device of the executing computing device, for execution by the computing device. Software instructions may be embedded in a firmware, such as an EPROM. It will be further appreciated that hardware modules / units / blocks may be included of connected logic components, such as gates and flip-flops, and / or can be included of programmable units, such as programmable gate arrays or processors. The modules / units / blocks or computing device functionality described herein may be implemented as software modules / units / blocks, but may be represented in hardware or firmware. In general, the modules / units / blocks described herein refer to logical modules / units / blocks that may be combined with other modules / units / blocks or divided into sub-modules / sub-units / sub-blocks despite their physical organization or storage.

[0099] It will be understood that when a unit, module or engine is referred to as being “on”, “connected to” or “coupled to” another unit, module, or engine, it may be directly on, connected or coupled to, or communicate with the other unit, module, or engine, or an intervening unit, module, or engine may be present, unless the context clearly indicates otherwise. As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items.

[0100] The various aspects and implementations have been described in conjunction with various embodiments herein. However, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed subject-matter, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measured cannot be used to advantage. A computer program may be stored / distributed on a suitable medium, such as an optical storage medium or a solid-state medium supplied together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems.

[0101] The reference signs used in the claims shall not be construed as limiting the scope.

Claims

CLAIMS1. A computer-implemented obfuscation detection method comprising: receiving text input (1) comprising a string of characters (2); converting the text input (1) into an image input (3) comprising a plurality of pixels (4); determining at least one image patch (5) within the image input (3) corresponding to a grouping of a plurality of characters (2) comprised in the string of characters (2); extracting visual features (6) from at least one image patch (5) using a machine-learning based image recognition model (7); and determining whether obfuscated information (8) is present in the text input (1) by analyzing the extracted visual features (6).

2. The method according to claim 1, wherein the method further comprises: feeding extracted visual features (6) related to the obfuscated information (8) to a classifier layer (9) to determine at least one label output (10).

3. The method according to claim 2, wherein the classifier layer (9) is a layer configured for classification, such as a Sigmoid or Softmax classifier, and wherein the label output (10) comprises a multi-label output (11).

4. The method according to claim 3, wherein the method further comprises: accessing a keyword list (13) comprising a set of predetermined labels corresponding to semantical groupings of characters (2) such as canonical words or phrases; detecting the presence of any of the set of predetermined labels based on the extracted visual features (6) related to the obfuscated information (8); and determining a multi-label output (11) comprising any detected label from the set of predetermined labels, wherein the output space of the multi-label output (11) corresponds to any subset or superset of the keyword list (13).

5. The method according to claim 2, wherein the classifier layer (9) is a layer configured for binary classification, such as a Sigmoid classifier, and wherein the label output (10) comprises a single label output (12).

6. The method according to any of the preceding claims, wherein the method further comprises: determining, based on the extracted visual features (6) related to the obfuscated information (8), whether the obfuscated information (8) corresponds to a picture or a text; and if the obfuscated information (8) corresponds to a text, feeding extracted visual features (6) to a language model decoder (14) to determine at least one text output (15).

7. The method according to claim 6, wherein the language model decoder (14) is configured for de-obfiiscation, and wherein the text output (15) comprises de-obfiiscated text (16) corresponding to the obfuscated information (8).

8. The method according to claim 6, wherein the language model decoder (14) is configured for spell checking and is linked to a vocabulary database (18), and wherein the text output (15) comprises spell-corrected text (17) corresponding to the obfuscated information (8).

9. The method according to any one of the preceding claims, wherein the image patch (5) corresponds to at least one of a word, a phrase, a sentence, a paragraph, or a larger group of characters (2) semantically or visually linked together within the string of characters (2).

10. The method according to claim 9, wherein determining the at least one image patch (5) within the image input (3) comprises analyzing the string of characters (2) in the text input (1) to determine a grouping of a plurality of characters (2) comprised in the string of characters (2) based on semantics; and selecting a portion of the image input (3) corresponding to the grouping of characters (2).

11. The method according to claim 9, wherein determining the at least one image patch (5) within the image input (3) comprises analyzing the plurality of pixels (4) in the image input (3) to determine at least one image patch (5) corresponding to a visual grouping (19) of a plurality of characters (2).

12. The method according to any one of the preceding claims, wherein determining the at least one image patch (5) within the image input (3) comprises a selection based on attention-related weight values (20) associated with each image patch (5).

13. The method according to any one of the preceding claims, wherein the method comprises: before converting the text input (1) into an image input (3), converting the text input (1) into a string of character symbols corresponding to a predetermined typeface (21) used for training the image recognition model (7).

14. A computer-implemented Visual Obfuscation Detection, VOD, service (22), the VOD service (22) being configured for receiving text input (1) comprising a string of characters (2); and executing a computer program code comprising computer instructions that cause a processor (27) to: convert the text input (1) into an image input (3) comprising a plurality of pixels (4); determine at least one image patch (5) within the image input (3) corresponding to a grouping of a plurality of characters (2) comprised in the string of characters (2); extract visual features (6) from the at least one image patch (5) using a machine-learning based image recognition model (7); and determine whether obfuscated information (8) is present in the text input (1) by analyzing the extracted visual features (6).

15. The VOD service (22) according to claim 14, wherein the VOD service (22) is further configured to cause the processor (27) to determine at least one of a label output (10) or a text output (15) by performing the steps of a method according to any one of claims 2 to 13.

16. A computer-based system for obfuscation detection, the system comprising a processor (27); a memory (28) configured to store text input (1) comprising a string of characters (2); and a VOD service (22) according to claim 15 configured to determine a label output (10) or a text output (15); wherein the processor (27) is configured to: transfer text input (1) from the memory (28) to the VOD service (22); and determine a system output (24) based on the label output (10) or text output (15) of the VOD service (22).

17. The system according to claim 16, wherein the system comprises a VOD service (22); and a core service (23) configured to interact with the VOD service (22), and determine a core output (26) using the output of the VOD service (22); wherein the system output (24) is a decision (25) based on the core output (26).

18. The system according to claim 17, wherein the VOD service (22) is integrated in the core service (23), wherein the output of the VOD service (22) is fused with the core service (23).

19. The system according to claim 17, wherein the VOD service (22) is used as a pre-processing step before the core service (23); wherein the output of the VOD service (22) is fed as an input to the core service (23).

20. The system according to claim 16, wherein the system comprises:a server (30) comprising the processor (27) and the memory (28), the server (30) being configured to run the VOD service (22); a client (31) in data communication with the server (30) via an online service (32) running on the server (30), the client (31) being configured to receive text input (1) through an input-output interface (29) and transfer the text input (1) to the server (30); the server (30) being configured to receive the text input (1), and in response, determine a system output (24) using the VOD service (22) and transfer the system output (24) back to the client (31).

21. The system according to any one of claims 17 to 19, wherein the system comprises: a server (30) comprising the processor (27) and the memory (28); the server (30) being configured to run the VOD service (22) and the core service (23); a client (31) in data communication with the server (30) via an online service (32) running on the server (30), the client (31) being configured to receive text input (1) through an input interface and transfer the text input (1) to the server (30); the server (30) being configured to receive the text input (1), and in response, determine a decision (25) using the VOD service (22) and the core service (23) and transfer the decision (25) back to the client (31).

Citation Information

Patent Citations

  • Text de-obfuscation with image recognition of text

    US11227009B1