System and method for analyzing trends in categorical dataset using semantic infusion

The system addresses frequency-based bias in trend analysis by injecting metadata anchors and generating word vectors to detect semantic trends, enhancing the accuracy of trend detection in categorical data sets.

JP2024142886APending Publication Date: 2024-10-11ROBERT BOSCH GMBH +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023055271
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Traditional trend analysis techniques are heavily biased towards term frequency-based schemes, leading to poor performance when datasets are not uniformly distributed across time slices, particularly in domain-specific corpora.

Method used

A system and method using semantic injection techniques to detect semantic trends in categorical data sets by injecting metadata anchors into text-based documents, generating word vectors, and extracting top k semantic trends using a pattern generation module.

Benefits of technology

Overcomes frequency-based bias and provides semantically meaningful trend detection, enabling accurate analysis of text-based documents categorized at a given time slice.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024142886000001_ABST
    Figure 2024142886000001_ABST
Patent Text Reader

Abstract

To provide a method and system for detecting semantic trends.SOLUTION: A system 100 includes a processing module 102, a semantic infusion module 104, a pattern generation module 108, and a word vector module 106. The processing module 102 obtains a plurality of text-based documents and performs a basic cleaning of each of the plurality of text-based documents. The semantic infusion module 104 generates an infused sentence in each of the plurality of text-based documents by inserting a word "A_ class (Ci) _time (Tj)" based on a computed infusion frequency value (Ifreq). The pattern generation module 108 generates semantic trends by extracting the trending items from the word vector representation created by the word vector module 106, for each word of each infused sentence of each of the plurality of text-based documents.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present subject matter relates generally to systems and methods for detecting semantic trends using semantic injection techniques, and in particular, for trend analysis for categorical data applications. [Background technology]

[0002] 2. Background of the Invention The text-based documents are used for text analysis activities in which unstructured text-based documents are contextually understood and transformed into meaningful data for further analysis.

[0003] In recent years, businesses such as CRM, KPO, knowledge management, and web monitoring services have been receiving a large influx of structured text streams. This provides an opportunity to use this data to discover “emerging topics” or “trends” and analyze their dynamic characteristics, which can be an aid in the decision-making process. Traditional techniques for emerging trend analysis are the first choice to perform the task, and these techniques can be further categorized as either supervised or unsupervised. Existing solutions in the literature have proposed supervised systems that use local and topical features of words to predict trends. To overcome the need for feature definition, unsupervised systems use volatility measures that capture changes in the meaning of terms by their extensive contextual comparison across different time slices. Existing solutions extensively use Latent Dirichlet Allocation (LDA) and generative probabilistic models to detect trends, either by clustering words around entities or by detecting their evolution over time. In addition, these solutions use association measures such as Positive Pointwise Mutual Information (PPMI) and Pointwise Mutual Information (PMI) as co-occurrence frequency based scores to detect trends by creating word embeddings across different time slices. Furthermore, such solutions attempt to solve the alignment problem in this domain by either mapping embeddings for similar words across time slices or jointly developing embeddings across time slices. In practice, traditional trend analysis techniques are heavily biased towards term frequency based schemes, which perform poorly, especially for domain specific corpora where the dataset is not uniformly distributed across time slices. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Application No. 202041055755 Summary of the Invention [Problem to be solved by the invention]

[0005] Related patent application 202041055755 discloses a method and system for determining and removing noisy sentences from a text-based document for context building.

[0006] Brief Description of the Accompanying Drawings The detailed description is provided with reference to the accompanying figures. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 illustrates a system environment for detecting semantic trends in a category dataset from text-based documents, according to an exemplary embodiment of the present subject matter. [Diagram 2] FIG. 2 depicts a flowchart of a method for detecting semantic trends in a category dataset from text-based documents, according to an exemplary embodiment of the present subject matter. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Detailed Description of the Preferred Embodiments The present subject matter describes exemplary methods and systems for detecting semantic trends in categorical datasets from text-based documents for contextual trend analysis. The exemplary methods and systems described herein overcome the frequency-based bias associated with traditional trend analysis and detect semantically meaningful trends for a plurality of categorized text-based sentences at a given time slice.

[0009] The subject matter will be further described with reference to the accompanying drawings. In the drawings and the following description, the same reference numerals are used whenever possible to refer to the same or similar parts. It should be noted that these descriptions and drawings merely illustrate the principles of the subject matter. It is therefore understood that various arrangements may be devised that incorporate the principles of the subject matter, even if not explicitly described or shown herein. Furthermore, all statements herein that recite principles, aspects and examples of the subject matter, as well as specific examples thereof, are intended to encompass their equivalents.

[0010] The manner in which the present methods and systems may be implemented is described in detail with respect to Figures 1-2. Although aspects of the methods and systems described herein may be practiced in any number of different devices, environments, and / or implementations, examples of which are described below in the context of a system. It should be noted that the drawings of the subject matter presented herein are for illustrative purposes and are not necessarily drawn to scale.

[0011] 1 illustrates an environment for a system 100 for detecting semantic trends in a categorical dataset from text-based documents in accordance with an embodiment of the present subject matter. The system 100 may be a computing system found in a wide variety of electronic device types for processing signals and / or conditions representative of a variety of content types for a variety of purposes. Examples of the system 100 may include, but are not limited to, laptops, notebook computers, desktop computers, servers, mobile phones, and personal digital assistants.

[0012] The system 100 may include a processing module 102, which may include a microprocessor, microcomputer, microcontroller, digital signal processor, central processing unit, state machine, logic circuit, and / or any other device that manipulates signals and data based on computer-readable instructions. Additionally, the functionality of the various elements illustrated in the figures, including any functional block labeled "processor," may be provided through the use of dedicated hardware as well as hardware capable of executing computer-readable instructions.

[0013] Additionally, the system 100 may include a semantic injection module 104, a word vector module 106, and a pattern generation module 108 coupled to the processing module 102. These modules 104, 106, and 108 may be implemented as a combination of hardware and programming, e.g., programmable instructions for implementing various functionalities of the modules 104, 106, and 108. In the examples described herein, such a combination of hardware and programming may be implemented in a number of different ways. For example, the programming for the pattern generation module 108 may be executable instructions. Such instructions may be stored on a non-transitory machine-readable storage medium that may be directly or indirectly coupled to the system 100 (e.g., via networked means). In this embodiment, the non-transitory machine-readable storage medium may store instructions for causing the modules 104, 106, and 108 to perform when executed by a processor. In another example, the modules 104, 106, and 108 may be implemented as electronic circuits.

[0014] Modules 104, 106, and 108 include, among other things, routines, programs, objects, components, and data structures that perform particular tasks or implement particular abstract data types. Modules 104, 106, and 108 may also be implemented as signal processors, state machines, logic circuits, and / or any other device or component that manipulates signals based on operational instructions. Furthermore, modules 104, 106, and 108 may be implemented by hardware, by computer readable instructions executed by a processing unit, or by a combination thereof.

[0015] Additionally, the system 100 includes a storage device 110, which may include any non-transitory computer-readable medium, including, for example, volatile memory, such as static random access memory (SRAM) or dynamic random access memory (DRAM), and / or non-volatile memory, such as read-only memory (ROM), erasable programmable ROM, flash memory, hard disks, optical disks, and magnetic tapes. The storage device 110 may store activity data 103. In one example, the activity data 103 may include a plurality of text-based documents.

number

number

number

[0016] In one example, the system 100 includes an interface 112. The interface 112 may include various interfaces, such as an interface 112 for a user. The interface 112 may include a data output device. The interface 112 may facilitate communication with the system 100 and various communications with electronic devices. In one example, the interface 112 may enable wireless communication between the system 100 and one or more other computing devices (not shown), such as a laptop.

[0017] In the following description, it is described how detecting semantic trends in a categorical dataset from text-based documents is performed by the system 100. The processing module 102 obtains a number of text-based documents D (101), where d k Let d denote the kth text-based document among N text-based documents, where N is any positive number. In one example, N=1000. Each text-based document d k are documents that contain text, such as names of vehicle parts, program source code, batch files, etc., and are readable by the processing module 102. In one example, the text-based documents D (101) may be obtained by converting voice notes into text documents. Such conversion may be performed by automatic speech recognition techniques. Each text-based document d k is a sentence dk Includes a set of

number

[0018] Further, a processing module 102 for basic cleansing of a plurality of text-based documents D performs basic cleansing of each document d k The sentence dk At least one symbol, special character, and predefined stop word are removed from each sentence of the set. A symbol can represent an idea, object, or relationship using a mark or sign. A special character is a character that is not an alphabet or a number; for example, punctuation marks are considered to be special characters. A stop word is a word that is not a part of the document d k Each class c i For document d, a list of stop words may be predefined. k Class C i Based on this, a predetermined stop word is added to each document d k The sentence dk In one example, if the plurality of text-based documents D belongs to the English class, articles and prepositions may be considered as pre-defined stop words and can be removed from the plurality of text-based documents D for basic cleansing.

[0019] The processing module 102 calculates a category class (C) to which each of a plurality of text-based documents (101) belongs. i ) and time class (T j ) is configured to distinguish between category classes c i is a text-based document kIn the automotive example, if multiple text-based documents D (101) relate to engine assemblies, then class c i may be identified as “engine assembly”. j ) is a text-based document d k The text may indicate the year, month or date with which it is associated.

[0020] Further, the semantic injection module 104 may further include a semantic injection module for injecting a semantic image of each of the plurality of text-based documents. k For each sentence in , determine the number of words in the respective sentence (L). k Class C i Once identified, the processing module 102 may then incorporate this information into each text-based document d k The semantic injection module 104 sends the cleaned length of each sentence to the semantic injection module 104 to determine the number of words (L) for each sentence in . The determined number of words (L) is an indication of the cleaned length of each sentence.

[0021] Furthermore, the semantic injection module 104 may further include a semantic injection module 105 for each of the plurality of text-based documents D (101). k Based on the number of words (L) determined for each sentence in freq In one example, the injection frequency value (I freq ) is [ceil{(log 2 L) / 2}],

number

number

[0022] In one embodiment, the semantic injection module 104 performs a semantic injection technique, the purpose of which is to inject additional metadata (called anchors) into clean sentences, so that the vector space (as generated by the Word2Vec Gen(W) module 106) can be partitioned into labeled regions. k Length = len, category class C i and time class T j Given a clean sentence, the injection frequency (I freq ) is defined, where I freq ∈R. I freq is expressed by the following formula 1.

number

[0023] Furthermore, the semantic injection module 104 generates a discrete random number I from the set [0,(L-1)]. freq In one example, when the value of L is 4, the injection frequency value (I freq ) is [ceil{(log 2 L) / 2}] as 1. Then, one from the set [0,(4-1)], i.e., [0,3] (=I freq A random number (the number of digits) is determined. Using the previous example, the random number is determined as one of 0, 1, 2, and 3. freq If is computed as 2, then two discontinuous random numbers can be determined from the set [0,(L-1)].

[0024] I of discrete random numbers from the set [0,(L-1)] freq Once the number of discrete random numbers is determined, the semantic injection module 104 may then inject the word “A_class(C i )_Time (T j )" where "A_C i T j " In "C i is the categorical class, T j is documented k In one example, the category class C i and time class T j Document d of length len belongs to k About anchor item A_C i T j are injected at random, discrete positions P in the document, where

number

[0025] Furthermore, the word vector module 106 is configured to generate a word vector for each word of each injected sentence of each of the plurality of text-based documents. The word vector module 106 generates a word vector for each word of each injected sentence of each of the plurality of text-based documents D (101). Each word is replaced by a multi-dimensional vector, and the vector size of each word is the same. Thus, the injected sentence after replacing each word by its respective vector is a matrix with each word represented as a row and the dimension of each vector represented as a column. These vectors are selected such that a simple mathematical function (cosine similarity between the vectors) indicates the level of semantic similarity between the words represented by the vectors. In one example, the word vectors may be generated using an unsupervised algorithm. In one example, the unsupervised algorithm may be based on the Word2Vec technique.

[0026] Having generated word vectors for each word of each injected sentence in each of the plurality of text-based documents D (101), the pattern generation module 108 generates semantic trends. The pattern generation module 108 is configured to generate semantic trends by extracting trend terms from the representation of the word vectors created by the word vector module 106. The pattern generation module 108 extracts trend terms from the representation of the word vectors for each of the plurality of text-based documents D in a two-stage process, where c i ∈C and t j ∈T, such that c i t j For each pair of A_c i t j In the second step, A_c i t j The top k words are extracted from the representation of the word vector that is closest to . These words are then classified into the category class C i and time class T j It represents the top k semantic trends for

[0027] In one embodiment, a plurality of domain-specific documents

number

[0028] In one embodiment, the system 100 estimates the time class t by resampling the topic assignments for all documents within a fixed-size sliding window L. j +1. In the resampling process, we achieve periodic updates for new documents in time class t j The models θ and φ in j For the models in +1, they are used as α and β, respectively. The contribution coefficient c, such that c∈[0,1], determines the contribution of the learned parameters to the priority of the new model 1. After all iterations, each time class is assigned a set of topics using θ, and each topic is characterized by a set of words (tendency items) using φ, allowing the text-based document to be understood contextually.

[0029] 2 illustrates a flow chart of a method 200 for detecting semantic trends in a categorical dataset from text-based documents, according to one example. The method 200 may be performed by a processor or device through any suitable hardware, non-transitory machine-readable medium, or combination thereof. Additionally, although the method 200 is described in the context of a system similar to the system 100 described above, other suitable devices or systems may be used to perform the method 200.

[0030] In some examples, the processes involved in method 200 may be performed based on instructions stored on a non-transitory computer-readable medium. The processing module 102 may be communicatively coupled to the non-transitory computer-readable medium to fetch and execute computer-readable instructions from the non-transitory computer-readable medium. The non-transitory computer-readable medium may include, for example, digital memory, magnetic storage media such as magnetic disks and magnetic tapes, hard drives, or optically readable digital data storage media.

[0031] Referring to FIG. 2, in block 202, a plurality of text-based documents are

number

number

[0032] In block 204, the method 200 selects each document d of the plurality of text-based documents for basic cleansing. k The sentence dk The method may include removing at least one symbol, special character, and predetermined stop word from each sentence of the set.

[0033] In block 206, the method 200 continues by the processing module 102 extracting each cleaned text-based document d from the plurality of text-based documents D. k The category class to which it belongs (C i ) and time class (T j For example, if the clean sentence is "vehicle spin-enabled anti-lock brakes with locked right front wheels", class c i may be identified as "service brakes" because this clean sentence refers to brakes.

[0034] In block 208 of the method 200, for each text-based document d, the length of each cleaned sentence is k The number of words (L) for each sentence in is determined by the semantic injection module 104. Further, based on the determined number of words (L), an injection frequency value (I freq ) is calculated. In one example, this injection frequency value (I freq ) is [ceil{(log 2 L) / 2}],

number

[0035] Furthermore, the discrete random number I freq The number of discrete random numbers is determined from the set [0,(L-1)], and the injected sentence is preceded by a word “A_class(C i )_Time (T j )" where "A_C i T j " In "C i is the categorical class, T j is document d k For example, for the clean sentence "vehicle spin-resistant anti-lock brakes with locked right front wheel" in the document, class c i =Service brakes are treated as "Right A_Service brakes front wheels locked vehicle spin A_Service brakes enabled anti-lock brakes".

[0036] At block 210, the method 200 may include generating, by the word vector module 106, a word vector for each word of each injected sentence of each of the plurality of text-based documents D. Thus, each word is replaced by a vector. Each vector is selected such that a simple mathematical function (cosine similarity between the vectors) indicates the level of semantic similarity between the words represented by the vectors, and thus the vector captures the co-occurrence statistics of words, whereby words that typically co-occur or share a similar context are closer to each other in the vector space. In one example, the word vectors may be generated based on the Word2Vec technique.

[0037] At block 212, the method 200 may include generating semantic trends by extracting trend terms from the word vector representations created in step 210 for each word of each injected sentence of each of the plurality of text-based documents by the pattern generation module 108. The pattern generation module 108 extracts trend terms from the word vector representations for each of the plurality of text-based documents D in a two-stage process, where first, i ∈C and t j ∈T, such that c i t j For each pair of A_c i t j In the second step, A_c i t j The top k words are extracted from the representation of the word vector that is closest to . These words are then classified into the category class C i and time class T j It represents the top k semantic trends for

[0038] The subject matter is employed to facilitate seamless text analysis activities by identifying trends in categorical data from input text-based documents using semantic injection techniques. Using this technique, the system 100 overcomes the frequency-based bias associated with traditional trend analysis and detects semantically meaningful trends in a corpus of categorized text-based documents at a given time slice.

[0039] Although aspects of the present disclosure have been described in language specific to structural features and / or methods, it should be understood that the appended claims are not limited to the specific features or methods described herein; rather, the specific features and methods are disclosed as examples of the present disclosure.

Claims

1. A method (200) for detecting semantic trends in a categorical dataset from text-based documents, comprising: A step (202) of obtaining a plurality of text-based documents (101) by a processing module (102); removing (204) at least one symbol, special character, and predetermined stop word from each sentence of each of the plurality of text-based documents (101) by the processing module (102); The processing module (102) determines an associated category class (C) for each of the plurality of text-based documents. i ) and time class (T j ) (206); determining (208) the number of words (L) in each of said sentences by a semantic injection module (104); The semantic injection module (104) generates an injection frequency value (I) based on the number of words (L). freq ) and calculate I from the set [0, (L-1)]. freq determining the number of The semantic injection module (104) precedes the word at the position in the sentence indicated by each of the determined discrete random numbers with "A_class(C i ) _ time (T j generating an injection statement by inserting the words generating (210) a word vector for each word of each injected sentence in each of said plurality of text-based documents (101) by a word vector module (106); In a method comprising: A method (200) comprising a step (212) of generating semantic trends by extracting trend items from the representation of the word vectors created in step (210) for each word of each injected sentence in each of the plurality of text-based documents (101) by a pattern generation module (108).

2. The method (200) of claim 1, wherein the word vectors are generated using Word2Vec techniques.

3. The injection frequency value (I freq ) is [ceil{(log 2 L) / 2}], [Equation 1] 2. The method (200) of claim 1, wherein the y-axis is calculated as one of {ceil(L / 2)} and {ceil(L / 2)}.

4. The category class (C i ) is a text-based document d k 2. The method (200) of claim 1, wherein the text may indicate an associated context.

5. The time class (T j ) is a text-based document d k The method (200) of claim 1, wherein the text may indicate an associated year, month, or date.

6. A system (100) for detecting semantic trends in a categorical dataset from text-based documents, comprising: A processing module (102) configured to obtain a plurality of text-based documents (101) and remove at least one symbol, special character, and predetermined stop word from each sentence of each of the plurality of text-based documents (101), wherein each of the plurality of text-based documents (101) is associated with a category class (C i ) and time class (T j a processing module (102) further configured to identify For each sentence in each of the plurality of text-based documents (101), determining a number of words (L) in the respective sentence, and calculating an injection frequency value (I) based on the number of words (L). freq a semantic injection module (104) configured to compute I ) of discrete random numbers from the set [0, (L-1)]; freq and preceding the word at the position in the sentence indicated by each of the determined discrete random numbers with "A_class (C i ) _ time (T j a semantic injection module (104) further configured to generate the injected sentence by inserting the word "("); a word vector module (106) configured to generate a word vector for each word of each injected sentence of each of the plurality of text-based documents (101); In a system (100) comprising: A system (100) comprising a pattern generation module (108) configured to generate semantic trends by extracting trend items from the word vector representations created by the word vector module (106) for each word of each injected sentence in each of the plurality of text-based documents (101).

7. The system (100) of claim 6, wherein the word vectors are generated using Word2Vec techniques.

8. The injection frequency value (I freq ) is [ceil{(log 2 L) / 2}], [Equation 2] and {ceil(L / 2)}.

Citation Information

Patent Citations

  • JP2020410557B