Knowledge graph generation device, knowledge graph generation system, knowledge graph generation method, and program
The knowledge graph generation device addresses the limitation of existing technologies by converting words and sentences into vectors and calculating similarities, enabling effective search for ambiguous connections in failure repair cases.
Patent Information
- Application Number
- JP2023033232
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-13
AI Technical Summary
Existing knowledge graph technologies fail to generate connections with ambiguous data such as similar failure repair cases linked by factors like similar causes or treatments, limiting effective search capabilities.
A knowledge graph generation device utilizing a word calculation unit, sentence calculation unit, similarity calculation unit, and knowledge graph construction unit to convert words and sentences into vectors, calculate similarities, and construct a knowledge graph with entities and relationships, enabling search for cases with ambiguous connections.
Enables quantitative calculation of sentence similarities, allowing users to search for cases with ambiguous connections, enhancing search efficiency and accuracy in knowledge graphs.
Smart Images

Figure 2024125113000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a knowledge graph generation device, a knowledge graph generation system, a knowledge graph generation method, and a program. [Background technology]
[0002] In many cases, equipment repairs require the replacement of parts. When the equipment to be repaired is installed in a customer's factory or laboratory, the customer reports the equipment's failure to the call center, and the call center staff often infers the cause of the equipment failure and the replacement parts from the report. Call center staff need to have a high level of product technical knowledge, and with the labor force declining, accumulating and utilizing know-how is a challenge. Case search systems used by call centers are often designed so that anyone can enter a search term and search for similar cases that contain the search term, but these systems are difficult for inexperienced users to use due to variations in the notation of the search term, excesses, and deficiencies. In response to such problems, knowledge graphs have been attracting attention in recent years as a technology that realizes searches that are closer to the user's intentions even without search know-how.
[0003] Patent Document 1 discloses a technology that enhances the presentation effect to users by generating and visualizing data that clearly shows connections between content such as TV dramas and movies, such as the titles, actors, and directors, as a knowledge graph rather than a relational database. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-24698 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the case of fault repair, in addition to data with clear connections, such as multiple fault repair cases being linked to one customer or the same parts being replaced, there is also similar data with ambiguous connections, such as similar phenomena at the time of failure, similar causes, or similar treatments, and the technology described in Patent Document 1 cannot generate these ambiguous connections as a knowledge graph. Therefore, users cannot search for cases with ambiguous connections from a knowledge graph.
[0006] The present disclosure has been made to solve the above-mentioned problems, and aims to enable a user to search for cases with ambiguous connections from a knowledge graph. [Means for solving the problem]
[0007] In order to achieve the above object, a knowledge graph generation device according to the present disclosure includes a word calculation unit, a sentence calculation unit, a similarity calculation unit, and a knowledge graph construction unit. The word calculation unit quantifies words included in documents related to an event and converts them into word vectors. The sentence calculation unit converts sentences representing event cases into sentence vectors using the word vectors. The similarity calculation unit calculates similarities between event cases based on the sentence vectors. The knowledge graph construction unit constructs a knowledge graph of event cases, with event cases as entities and similarities between event cases as relationships. Effect of the Invention
[0008] According to the present disclosure, by quantitatively calculating the similarity of sentences that represent event cases, and constructing a knowledge graph with the event cases as entities and the similarities between the event cases as relationships, it becomes possible for users to search for cases that have ambiguous connections from the knowledge graph. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of a knowledge graph generation system according to a first embodiment. [Diagram 2] FIG. 1 is a diagram showing an example of repair document information according to the first embodiment; [Diagram 3] FIG. 1 is a diagram showing an example of digitization of words included in a repair document according to the first embodiment; [Figure 4] FIG. 1 is a diagram showing an example of a neural network according to a first embodiment; [Diagram 5] FIG. 1 shows an example of a word conversion table according to the first embodiment. [Figure 6] FIG. 1 is a diagram showing an example of repair case information according to the first embodiment; [Figure 7] FIG. 1 is a diagram showing an example of text vector information according to the first embodiment; [Figure 8] FIG. 1 is a diagram showing an example of similarity information according to the first embodiment; [Figure 9] FIG. 1 is a diagram showing an example of a knowledge graph according to the first embodiment; [Figure 10] 1 is a flowchart showing a knowledge graph generation process according to the first embodiment. [Figure 11] 1 is a flowchart showing a knowledge graph search process according to the first embodiment. [Figure 12] FIG. 1 shows an example of the configuration of a knowledge graph generation system according to a second embodiment. [Figure 13] 1 is a flowchart showing a knowledge graph update process according to the second embodiment. [Figure 14] FIG. 1 is a diagram showing an example of a hardware configuration of a knowledge graph generation device according to first and second embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] A knowledge graph generation device, a knowledge graph generation system, a knowledge graph generation method, and a program according to the present embodiment will be described in detail below with reference to the drawings. Note that the same or corresponding parts in the drawings are given the same reference numerals. In the following embodiment, an example of generating a knowledge graph of a fault repair case, which is a case of repairing a fault of a device, will be described.
[0011] (Embodiment 1) The configuration of a knowledge graph generation system 100 according to the first embodiment will be described with reference to Fig. 1. As shown in Fig. 1, the knowledge graph generation system 100 includes a knowledge graph generation device 1 that generates a knowledge graph, and a user terminal 2 used by a user.
[0012] The knowledge graph generation device 1 includes a memory unit 11 that stores various information, a word calculation unit 12 that converts words included in fault repair documents related to equipment fault repair into word vectors, a sentence calculation unit 13 that converts sentences representing fault repair cases into sentence vectors using the word vectors, a similarity calculation unit 14 that calculates similarities between fault repair cases, a knowledge graph construction unit 15 that constructs a knowledge graph of the fault repair cases, and a search unit 16 that searches for fault repair cases that are similar to the characteristics of the fault repair target input by the user from the knowledge graph constructed by the knowledge graph construction unit 15.
[0013] The storage unit 11 includes a fault repair document storage unit 111 for storing fault repair document information indicating a fault repair document, a fault repair case storage unit 112 for storing fault repair case information including a sentence representing a fault repair case, a word numerical value storage unit 113 for storing a word conversion table indicating a word vector obtained by the word calculation unit 12 converting words included in the fault repair document into a numerical value, a sentence numerical value storage unit 114 for storing sentence vector information indicating a sentence vector obtained by converting the fault repair case by the sentence calculation unit 13, a similarity storage unit 115 for storing similarity information indicating the similarity between the fault repair cases calculated by the similarity calculation unit 14, and a knowledge graph storage unit 116 for storing a knowledge graph of the fault repair case constructed by the knowledge graph construction unit 15. The fault repair documents are various technical documents for the equipment to be repaired, such as various operation manuals and quality-related materials.
[0014] The word calculation unit 12 quantifies the words included in the repair document and converts them into word vectors. The word calculation unit 12 first obtains repair document information indicating the repair document from the repair document storage unit 111. The word calculation unit 12 performs a morphological analysis process to divide the sentences of the repair document indicated by the repair document information into morphemes. An example of the repair document information is shown in FIG. 2.
[0015] 2, the troubleshooting document information has items such as a document ID that identifies the troubleshooting document, a classification that indicates the type of troubleshooting document, the model of the device to which the troubleshooting document relates, and a text body that indicates the details of the troubleshooting. For example, a troubleshooting document with a document ID of X00000001 is a call center reception history, the model of the device to which the troubleshooting document relates is AAA, and the content is "The line was replaced because the operation screen would not turn on."
[0016] For example, as shown in Fig. 3, it is assumed that the word calculation unit 12 acquires repair document information including the sentence "For device A, there is a lever in front of the operation screen, so pull it." The word calculation unit 12 performs morphological analysis processing to divide the sentence "For device A, there is a lever in front of the operation screen, so pull it" into words such as "device," "A," "is," "operation screen," "of," "in front," "to," "lever," "is," "there," "so," and "pull." Note that if the sentence contains punctuation marks, the punctuation marks are divided into one word. Also, if there are duplicate words, they are combined into one.
[0017] Next, the word calculation unit 12 extracts a word vector for each word using a neural network. However, since a neural network cannot directly process the text itself, i.e., the words themselves, it is necessary to convert the words to be processed into fixed-length vectors. One method for converting words into fixed-length vectors is to convert a character string into a one-hot vector. A one-hot vector is a vector in which only one of the vector elements is "1" and the rest are all "0". To generate a one-hot vector, a vector with elements equal to the number of morphemes into which the sentence is divided is prepared, and "1" is assigned to a different vector element for each morpheme.
[0018] For example, the divided words "equipment", "A", "is", "operation screen", "of", "in front", "to", "lever", "is", "there", "so", and "pull" have 12 elements. Therefore, the word calculation unit 12 converts each word into a one-hot vector having 12 elements. For example, the first element of "equipment" is set to "1" and the rest are "0". Also, the second element of "A" is set to "1" and the rest are "0". Below, all morphemes are converted into one-hot vectors in order.
[0019] Next, the word calculation unit 12 inputs the generated one-hot vector to the input layer of the neural network. An example of the neural network will be described with reference to FIG. 4. As shown in FIG. 4, when an arbitrary word is input to the input layer of the neural network, the value is multiplied by a weight W1 and input to the hidden layer, and the result is further multiplied by a weight W2 and output from the output layer. The output result of the output layer changes depending on the values of the weights W1 and W2. The neural network used by the word calculation unit 12 learns the probability of surrounding words by so-called supervised learning. The surrounding words are words placed immediately before and after the word. The neural network learns by adjusting the weights W1 and W2 to values that maximize the probability that the surrounding words of the word will appear as a result of inputting a word to the input layer and outputting it from the output layer.
[0020] Words input to the input layer of a neural network are input in the form of a one-hot vector, and more specifically, each element of the one-hot vector is input to each neuron in the input layer. For example, as shown in Figure 4, when "equipment" is input to the input layer, the one-hot vector "100000000000", whose first element is "1" and the rest are "0", is input to each neuron in the input layer.
[0021] If the sentence in the repair document is "Device A has a lever at the front of the operation screen," then the words immediately before and after "Device," i.e., the surrounding words, are "A." Therefore, when "Device" is input to the input layer, the neural network adjusts the weights W1 and W2 to values that maximize the probability that "A" will appear in the output layer.
[0022] The word calculation unit 12 makes the neural network learn the probability of surrounding words for all words included in the text of the repair document. The weights of the hidden layer of the neural network are matrices, and can be used as word vectors for quantifying words. The word calculation unit 12 multiplies the weights of the hidden layer of the neural network by the one-hot vector of each word to extract a word vector corresponding to each word. For example, by multiplying the one-hot vector "100000000000" of the word "equipment" by the weight matrix of the hidden layer of the neural network, it is possible to extract the row of the weight matrix corresponding to the one-hot vector, which is the word vector corresponding to the word "equipment".
[0023] The neural network learns about all words contained in the text of the repair document and calculates the weights W1 of the intermediate layer. Each row of the weights W1 of the intermediate layer becomes the word vector of each morpheme. The word calculation unit 12 generates a word conversion table in which each word is associated with a word vector, and stores the table in the word numerical value storage unit 113. An example of the word conversion table stored in the word numerical value storage unit 113 is shown in FIG. 5.
[0024] 5, the word conversion table has items of a word ID for identifying a word, a word name, and an n-dimensional word vector, that is, numerical value 1, numerical value 2, ..., numerical value n. For example, the word with the word ID W0000001 is "operating panel", with numerical value 1 being 0.03126787, numerical value 2 being 0.39007127, numerical value 3 being 0.42622834, ..., and numerical value n being 0.53359198.
[0025] Returning to Fig. 1, the text calculation unit 13 breaks down the text representing the fault repair case into words, and calculates the text vector of the fault repair case using a word conversion table. The text representing the fault repair case may have multiple items. For example, if the text representing the fault repair case has items such as the state of the device at the time of the failure, the cause of the failure, and the treatment method, the text calculation unit 13 calculates the text vector of each item.
[0026] The text calculation unit 13 first acquires repair case information from the repair case storage unit 112. The repair case storage unit 112 stores repair case information of all models that are maintenance targets among repair cases that occurred in the past. An example of repair case information is shown in FIG. 6.
[0027] In the example of FIG. 6, the breakdown repair case information has the following items: a report ID that identifies the breakdown repair case, a customer ID that identifies the customer who requested the breakdown repair, the model of the device on which the breakdown repair was performed, the work end date indicating the date on which the breakdown repair was completed, a phenomenon that records the phenomenon at the time of the breakdown in natural language, a cause that indicates the cause of the phenomenon, and a procedure that indicates the work required to repair the breakdown. For example, a breakdown repair case with a report ID of R0001 has a customer ID of C000001 for the customer who requested the breakdown repair, a model of the device on which the breakdown repair was performed is AAA, and a work end date of 2022 / 4 / 1. In addition, the phenomenon at the time of the breakdown is "operation screen does not turn on", the cause of the phenomenon is "disconnected display", and the work required to repair is "replaced the wire".
[0028] The text calculation unit 13 converts the text representing the fault repair case into a text vector using the word vector. For example, a method of converting the text representing the fault repair case into a text vector includes dividing the acquired text representing the fault repair case into morphemes, calculating a word vector for each word using a word conversion table stored in the word numerical value storage unit 113, and taking the average of the word vectors as the text vector. The text calculation unit 13 stores text vector information indicating the calculated text vector for each fault repair case in the text numerical value storage unit 114. An example of text vector information stored in the text numerical value storage unit 114 is shown in FIG. 7.
[0029] 7, the text vector information has items such as a report ID that identifies the report, a text type that indicates whether the text is about the phenomenon, cause, or remedy, and a text vector of n-dimension, namely, numerical value 1, numerical value 2, ..., and numerical value n. For example, numerical value 1 of the text vector of the phenomenon of a fault repair case with report ID R0001 is 0.73302134, numerical value 2 is 0.21229233, numerical value 3 is 0.74466248, ..., and numerical value n is 0.72069494.
[0030] Returning to Fig. 1, the similarity calculation unit 14 calculates the similarity between the fault repair cases that are related in the knowledge graph based on the text vector information stored in the text numerical value storage unit 114. Here, cosine similarity is adopted as an example of the similarity between the fault repair cases. The cosine similarity is calculated for two n-dimensional vectors q and d by using the following formula 1.
[0031]
number
[0032] When cosine similarity is adopted, two n-dimensional vectors q and d are the sentence vectors of the fault repair cases to be compared. The similarity between fault repair cases is a real value with a maximum value of 1, and the closer to 1 the value is, the more similar the two fault repair cases are. A fault repair case includes three sentences: phenomenon, cause, and treatment, and the similarity calculation unit 14 calculates the similarity for each sentence. The similarity calculation unit 14 stores similarity information indicating the calculated similarity between the fault repair cases in the similarity storage unit 115. An example of similarity information stored in the similarity storage unit 115 is shown in FIG. 8.
[0033] 8, the similarity information has items of report ID-1 and report ID-2 for identifying the reports of the two fault repair cases to be compared, a sentence type indicating which sentence among the phenomenon, cause, and treatment is similar, and a similarity indicating the similarity between the fault repair cases. For example, the similarity of the cause between the fault repair case with report ID R0001 and the fault repair case with report ID R0002 is 0.74017679.
[0034] Returning to FIG. 1, the knowledge graph construction unit 15 constructs a knowledge graph in which each fault repair case is an entity and the similarity between the fault repair cases is a relationship. The knowledge graph construction unit 15 first acquires fault repair case information from the fault repair case storage unit 112 and acquires similarity information from the similarity storage unit 115. The knowledge graph construction unit 15 defines entities with one fault repair case as one entity based on the fault repair case information acquired from the fault repair case storage unit 112. The knowledge graph construction unit 15 defines relationships connecting each entity based on the similarity information acquired from the similarity storage unit 115. The knowledge graph construction unit 15 defines entities and relationships for all fault repair cases and constructs a knowledge graph. The knowledge graph construction unit 15 stores the constructed knowledge graph in the knowledge graph storage unit 116.
[0035] Here, the knowledge graph will be described with reference to FIG. 9. As shown in FIG. 9, when the knowledge graph construction unit 15 defines entities, each entity is represented by a circular node. In the example of FIG. 9, the report ID of each fault repair case is described in each entity, but in reality, information on all items existing in the fault repair case storage unit 112 is included in each node. When the knowledge graph construction unit 15 defines relationships connecting each entity, lines connecting each entity are constructed. In these relationships, numerical values of similarity between specific fault repair cases are recorded. Since the relationships in the knowledge graph are on the order of the square of the number of entities, not including relationships having similarity below a predetermined threshold in the knowledge graph leads to a reduction in search time in utilizing the knowledge graph, and increases effectiveness.
[0036] In the example of Fig. 9, only the relationships between the fault repair cases with a similarity of 0.8 or more are displayed as similar. For example, the similarity of the cause sentence vectors between the fault repair case with report ID R0003 and the fault repair case with report ID R0004 is 0.8 or more.
[0037] Returning to FIG. 1, the user inputs characteristics of the fault repair target into the user terminal 2. The fault repair target is an example of a search target. The user terminal 2 transmits input information indicating the characteristics of the fault repair target input by the user to the knowledge graph generation device 1. Upon receiving the input information from the user terminal 2, the search unit 16 searches the knowledge graph stored in the knowledge graph storage unit 116 for fault repair cases similar to the characteristics of the fault repair target indicated by the input information. Note that the search unit 16 may accept input of the characteristics of the fault repair target by the user.
[0038] For example, the user is a repair clerk at a call center for an equipment, and the user terminal 2 is a terminal used by the repair clerk at the call center. In this case, in order to search for cases similar to the repair target inquired about by the customer, the user inputs a search word expressing the characteristics of the repair target in response to the customer's inquiry into the user terminal 2. The user terminal 2 transmits input information indicating the search word input by the user to the knowledge graph generation device 1.
[0039] The search unit 16 converts all words included in the word conversion table stored in the word numerical value storage unit 113, among the search words indicated by the input information received from the user terminal 2, into word vectors, and calculates the average thereof as the vector of the entire search words. Next, the search unit 16 identifies the fault repair case that is closest to the vector of the entire search words from among the sentence vectors of each fault repair case indicated by the sentence vector information stored in the sentence numerical value storage unit 114. For example, cosine similarity is used to determine the closeness between the sentence vector of the fault repair case and the vector of the entire search words.
[0040] The search unit 16 creates a query for searching the knowledge graph. The search query created by the search unit 16 may be a simple search query for extracting entities existing within 2 HOPs from a case that is closest to the vector of the entire search word, or may be a search query for extracting entities whose multiplication of similarity of relationships is equal to or greater than a predetermined threshold. The search unit 16 searches the knowledge graph stored in the knowledge graph storage unit 116 using the created search query, and generates search result information indicating the entities extracted as the search result. The search unit 16 transmits the search result information to the user terminal 2. The user terminal 2 outputs the received search result information and presents it to the user. Note that the method of outputting the search result information is not limited to this. For example, when the search unit 16 accepts an input of the characteristics of the target of the fault repair by the user, the search result information may be displayed on a screen.
[0041] Here, the flow of the knowledge graph generation process executed by the knowledge graph generation device 1 will be described with reference to FIG. 10. The knowledge graph generation process shown in FIG. 10 starts when the knowledge graph generation device 1 is powered on or when a knowledge graph generation instruction is input to the knowledge graph generation device 1. The word calculation unit 12 of the knowledge graph generation device 1 acquires the fault repair document information indicating the fault repair document from the fault repair document storage unit 111 (step S11). The word calculation unit 12 divides the sentence of the fault repair document indicated by the fault repair document information into morphemes (step S12). For example, assuming that the word calculation unit 12 acquires the fault repair document information including the sentence "There is a lever in front of the operation screen for device A, so pull it" in step S11, the word calculation unit 12 performs a morpheme analysis process to divide the word into "device", "A", "is", "operation screen", "of", "in front", "to", "lever", "is", "there", "so", and "pull".
[0042] The word calculation unit 12 extracts a word vector for each word using a neural network (step S13). One method of converting a word into a vector of fixed length is to convert a character string into a one-hot vector. For example, the divided words "equipment", "A", "is", "operation screen", "of", "in front", "to", "lever", "is", "is", "so", and "pull" are 12 in number, so each word is converted into a one-hot vector having 12 elements. For example, for "equipment", the first element is set to "1" and the rest are set to "0". The word calculation unit 12 converts each word into a one-hot vector and inputs it into the input layer of the neural network. The word calculation unit 12 makes the neural network learn the probability of surrounding words for all words included in the text of the repair document. The word calculation unit 12 multiplies the weight of the hidden layer of the neural network by the one-hot vector of each word to extract a word vector corresponding to each word.
[0043] The word calculation unit 12 generates a word conversion table in which each word is associated with a word vector (step S14), and stores the table in the word numerical value storage unit 113 (step S15). The text calculation unit 13 acquires the fault repair case information from the fault repair case storage unit 112 (step S16). The text calculation unit 13 divides the sentences representing the fault repair cases included in the fault repair case information into morphemes (step S17). The text calculation unit 13 calculates the word vector for each word using the word conversion table stored in the word numerical value storage unit 113 (step S18). The text calculation unit 13 calculates the average of the word vectors as a text vector (step S19), and stores text vector information indicating the text vector for each fault repair case in the text numerical value storage unit 114 (step S20).
[0044] The similarity calculation unit 14 calculates the similarity between the fault repair cases that are relationships in the knowledge graph based on the sentence vector information stored in the sentence numerical value storage unit 114 (step S21). For example, cosine similarity is used as the similarity between the fault repair cases. In step 21, the similarity calculation unit 14 calculates the similarity for each sentence included in the fault repair case. The similarity calculation unit 14 stores similarity information indicating the calculated similarity between the fault repair cases in the similarity storage unit 115 (step S22).
[0045] The knowledge graph construction unit 15 acquires the fault repair case information from the fault repair case storage unit 112 (step S23), and acquires the similarity information from the similarity storage unit 115. The knowledge graph construction unit 15 defines entities with one fault repair case as one entity based on the fault repair case information acquired from the fault repair case storage unit 112 (step S24). The knowledge graph construction unit 15 defines relationships connecting each entity based on the similarity information acquired from the similarity storage unit 115 (step S25). The knowledge graph construction unit 15 stores the constructed knowledge graph in the knowledge graph storage unit 116 (step S26), and ends the process. If the knowledge graph does not include relationships having a similarity equal to or less than a predetermined threshold, in step S25, the knowledge graph construction unit 15 defines only relationships having a similarity greater than a predetermined threshold.
[0046] Next, the flow of the knowledge graph search process executed by the knowledge graph generation device 1 will be described with reference to Fig. 11. The knowledge graph search process shown in Fig. 11 starts after the knowledge graph generation process shown in Fig. 10 is executed. When the search unit 16 of the knowledge graph generation device 1 does not acquire input information indicating the search word entered by the user from the user terminal 2 (step S31; NO), the process proceeds to step S38.
[0047] When the search unit 16 acquires input information indicating a search word input by a user from the user terminal 2 (step S31; YES), the search unit 16 converts all words included in the word conversion table stored in the word numerical value storage unit 113, among the search words indicated by the input information received from the user terminal 2, into word vectors, and calculates the average as the vector of the entire search word (step S32). Next, the search unit 16 identifies the fault repair case that is closest to the vector of the entire search word from among the sentence vectors of each fault repair case indicated by the sentence vector information stored in the sentence numerical value storage unit 114 (step S33).
[0048] The search unit 16 creates a query for searching the knowledge graph (step S34). In step S34, the search unit 16 creates a simple search query for extracting entities that exist within 2 HOPs from a case that is closest to the vector of the entire search word as a starting point. The search unit 16 searches the knowledge graph stored in the knowledge graph storage unit 116 using the created search query (step S35). The search unit 16 generates search result information indicating the entities extracted as the search results (step S36). The search unit 16 transmits the search result information to the user terminal 2 (step S37). If the power of the knowledge graph generation device 1 is not turned off (step S38; NO), the process returns to step S31, and steps S31 to S38 are repeated. If the power is turned off (step S38; YES), the process ends.
[0049] According to the knowledge graph generation device 1 of embodiment 1, by quantitatively calculating the similarity of sentences that represent event cases and constructing a knowledge graph with the event cases as entities and the similarities between the event cases as relationships, it becomes possible for a user to search for cases that have ambiguous connections from the knowledge graph.
[0050] (Embodiment 2) In the second embodiment, the knowledge graph generation device 1 acquires fault repair cases accumulated daily and updates the knowledge graph. The configuration of a knowledge graph generation system 200 according to the second embodiment will be described with reference to FIG.
[0051] 12, the knowledge graph generation system 200 includes a knowledge graph generation device 1 that generates a knowledge graph, and a fault repair management system 3. The fault repair management system 3 accumulates fault repair case information including sentences that represent fault repair cases that are reported daily.
[0052] The knowledge graph generation device 1 includes a memory unit 11, a word calculation unit 12, a sentence calculation unit, a similarity calculation unit 14, and a knowledge graph construction unit 15, as well as a fault repair case acquisition unit 17 that acquires fault repair case information from the fault repair management system 3.
[0053] The fault repair case acquisition unit 17 stores fault repair case information acquired from the fault repair management system 3 in the fault repair case storage unit 112. When new fault repair case information is stored in the fault repair case storage unit 112, the sentence calculation unit 13 converts a sentence representing the new fault repair case included in the fault repair case information into a sentence vector using a word vector. As an example of a method for converting a sentence representing a fault repair case into a sentence vector, as in the first embodiment, there is a method of dividing the sentence representing the acquired fault repair case into morphemes, calculating a word vector for each word using a word conversion table stored in the word numerical value storage unit 113, and taking the average of the word vectors as the sentence vector. The sentence calculation unit 13 stores sentence vector information indicating the sentence vector of the new fault repair case in the sentence numerical value storage unit 114.
[0054] The similarity calculation unit 14 calculates the similarity between the new fault repair cases and between the new fault repair cases and the existing fault repair cases based on the text vector information indicating the text vector of the new fault repair case stored in the text value storage unit 114 and the text vector information indicating the text vector of the existing fault repair case. When there is one new fault repair case, the similarity calculation unit 14 naturally calculates only the similarity between the new fault repair case and the existing fault repair case. The similarity calculation unit 14 calculates the similarity for each text (for example, phenomenon, cause, and treatment) included in the fault repair case. The similarity calculation unit 14 stores the similarity information indicating the calculated similarity between the new fault repair cases and the similarity information indicating the similarity between the new fault repair case and the existing fault repair case in the similarity storage unit 115.
[0055] The knowledge graph construction unit 15 first acquires fault repair case information including sentences representing new fault repair cases from the fault repair case storage unit 112, and acquires similarity information indicating the similarity between new fault repair cases and similarity information indicating the similarity between the new fault repair cases and existing fault repair cases from the similarity storage unit 115. The knowledge graph construction unit 15 adds entities to the knowledge graph stored in the knowledge graph storage unit 116, with the new fault repair case as one entity, based on the fault repair case information including sentences representing the new fault repair cases acquired from the fault repair case storage unit 112. The knowledge graph construction unit 15 extracts relationships that do not exist in the existing knowledge graph, based on the similarity information indicating the similarity between new fault repair cases acquired from the similarity storage unit 115, and similarity information indicating the similarity between the new fault repair cases and existing fault repair cases, and adds them to the knowledge graph. The knowledge graph construction unit 15 adds entities and relationships to all new fault repair cases, and updates the knowledge graph. The other functions are the same as those in the first embodiment.
[0056] Here, the flow of the knowledge graph update process executed by the knowledge graph generation device 1 will be described with reference to Fig. 13. The knowledge graph update process shown in Fig. 13 is executed after the knowledge graph generation process shown in Fig. 10 is executed. When the fault repair case acquisition unit 17 of the knowledge graph generation device 1 has not acquired fault repair case information from the fault repair management system 3 (step S41; NO), the process proceeds to step S53. When the fault repair case acquisition unit 17 has acquired fault repair case information from the fault repair management system 3 (step S41; YES), the fault repair case acquisition unit 17 stores the acquired fault repair case information in the fault repair case storage unit 112 (step S42).
[0057] When new repair case information is stored in the repair case storage unit 112, the text calculation unit 13 uses the word vector to calculate a text vector by converting a text representing a repair case included in the new repair case information (step S43). The text calculation unit 13 stores text vector information indicating the text vector of the new repair case in the text value storage unit 114 (step S44).
[0058] The similarity calculation unit 14 calculates the similarity between the new fault repair cases and between the new fault repair cases and the existing fault repair cases based on the text vector information indicating the text vector of the new fault repair case stored in the text value storage unit 114 and the text vector information indicating the text vector of the existing fault repair case (step S45). If there is one new fault repair case, in step S45, the similarity calculation unit 14 calculates only the similarity between the new fault repair case and the existing fault repair case. Also, in step S45, the similarity calculation unit 14 calculates the similarity for each text (for example, phenomenon, cause, and treatment) included in the fault repair case. The similarity calculation unit 14 stores the similarity information indicating the calculated similarity between the new fault repair cases and the similarity information indicating the similarity between the new fault repair case and the existing fault repair case in the similarity storage unit 115 (step S46).
[0059] The knowledge graph construction unit 15 first acquires fault repair case information including sentences representing new fault repair cases from the fault repair case storage unit 112 (step S47), and acquires similarity information indicating the similarity between new fault repair cases and similarity information indicating the similarity between the new fault repair cases and existing fault repair cases from the similarity storage unit 115 (step S48). The knowledge graph construction unit 15 adds entities, with the new fault repair case as one entity, to the knowledge graph stored in the knowledge graph storage unit 116 based on the fault repair case information including sentences representing the new fault repair case acquired from the fault repair case storage unit 112 (step S49). The knowledge graph construction unit 15 extracts relationships that do not exist in the existing knowledge graph based on the similarity information indicating the similarity between new fault repair cases acquired from the similarity storage unit 115 and the similarity information indicating the similarity between the new fault repair cases and existing fault repair cases, and adds them to the knowledge graph (step S50). When entities and relationships have been added to all the new fault repair cases (step S51; YES), the knowledge graph construction unit 15 updates the knowledge graph (step S52). When there is a fault repair case to which an entity and relationship has not been added for the new fault repair case (step S51; NO), the process returns to step S49, and steps S49 to S51 are repeated. If the power supply of the knowledge graph generation device 1 is not turned off (step S53; NO), the process returns to step S41, and steps S41 to S53 are repeated. When the power supply is turned off (step S53; YES), the process ends.
[0060] According to the knowledge graph generation device 1 of the second embodiment, by quantitatively calculating the similarity between sentences and constructing a knowledge graph in which the similarity is the relationship, it becomes possible for a user to search for cases having ambiguous connections from the knowledge graph. In addition, by periodically updating the knowledge graph, it is possible to prevent the knowledge graph from becoming outdated.
[0061] The hardware configuration of the knowledge graph generation device 1 will be described with reference to Fig. 14. As shown in Fig. 14, the knowledge graph generation device 1 includes a temporary storage unit 101, a storage unit 102, a calculation unit 103, an input unit 104, a transmission / reception unit 105, and a display unit 106. The temporary storage unit 101, the storage unit 102, the input unit 104, the transmission / reception unit 105, and the display unit 106 are all connected to the calculation unit 103 via a BUS.
[0062] The calculation unit 103 is, for example, a CPU (Central Processing Unit). The calculation unit 103 executes the processes of the word calculation unit 12, the sentence calculation unit 13, the similarity calculation unit 14, the knowledge graph construction unit 15, the search unit 16, and the fault repair case acquisition unit 17 according to the control program stored in the storage unit 102.
[0063] The temporary storage unit 101 is, for example, a random-access memory (RAM). The temporary storage unit 101 loads a control program stored in the storage unit 102 and is used as a working area for the calculation unit 103.
[0064] The storage unit 102 is a non-volatile memory such as a flash memory, a hard disk, a DVD-RAM (Digital Versatile Disc - Random Access Memory), or a DVD-RW (Digital Versatile Disc - ReWritable). The storage unit 102 pre-stores a program for causing the calculation unit 103 to perform the processing of the knowledge graph generation device 1, and also supplies information stored by this program to the calculation unit 103 according to an instruction from the calculation unit 103, and stores the information supplied from the calculation unit 103. The storage unit 11 is configured in the storage unit 102.
[0065] The input unit 104 is an interface device that connects input devices such as a keyboard, a pointing device, and a voice input device to the BUS. Information input by a user is supplied to the calculation unit 103 via the input unit 104. When the search unit 16 accepts an input by a user, the input unit 104 functions as the search unit 16. When the fault repair case acquisition unit 17 accepts an input by a user, the input unit 104 functions as the fault repair case acquisition unit 17.
[0066] The transmitting / receiving unit 105 is a network termination device or a wireless communication device that connects to the network, and a serial interface or a LAN (Local Area Network) interface that connects to them. When the search unit 16 is configured to receive input information from the user terminal 2, or when the search result information is transmitted to the user terminal 2, the transmitting / receiving unit 105 functions as the search unit 16. When the fault repair case acquisition unit 17 is configured to receive fault repair case information from the fault repair management system 3, the transmitting / receiving unit 105 functions as the fault repair case acquisition unit 17.
[0067] The display unit 106 is a display device such as an LCD (Liquid Crystal Display), an organic EL (electroluminescence) display, etc. When the search unit 16 is configured to display the search result information on a screen, the display unit 106 functions as the search unit 16.
[0068] The processing of the memory unit 11, the word calculation unit 12, the sentence calculation unit 13, the similarity calculation unit 14, the knowledge graph construction unit 15, the search unit 16, and the fault repair case acquisition unit 17 of the knowledge graph generation device 1 shown in Figures 1 and 12 is executed by a control program using the temporary memory unit 101, the calculation unit 103, the memory unit 102, the input unit 104, the transmission / reception unit 105, the display unit 106, etc. as resources.
[0069] Additionally, the above hardware configuration and flowchart are merely examples and can be changed or modified as desired.
[0070] Core parts of the knowledge graph generation device 1 that perform the processing, such as the calculation unit 103, the temporary storage unit 101, the storage unit 102, the input unit 104, the transmission / reception unit 105, and the display unit 106, can be realized by using a normal computer system, not a dedicated system. For example, the knowledge graph generation device 1 that performs the processing may be configured by storing and distributing a computer-readable recording medium such as a flexible disk, a CD-ROM (Compact Disc - Read Only Memory), or a DVD-ROM (Digital Versatile Disc - Read Only Memory) and installing the computer program on a computer. Alternatively, the knowledge graph generation device 1 may be configured by storing the computer program in a storage device of a server device on a communication network, such as the Internet, and downloading it by a normal computer system.
[0071] In addition, when the functions of the knowledge graph generation device 1 are realized by sharing the functions between an OS (Operating System) and an application program, or by cooperation between the OS and the application program, only the application program portion may be stored in a recording medium or storage device.
[0072] It is also possible to superimpose a computer program on a carrier wave and provide it via a communication network. For example, the computer program may be posted on a bulletin board system (BBS) on the communication network and provided via the communication network. The computer program may then be started and executed under the control of the OS in the same way as other application programs, thereby enabling the above-mentioned processing to be performed.
[0073] In the above-described first embodiment, the knowledge graph generation device 1 includes the search unit 16, but is not limited to this. The knowledge graph generation device 1 may be configured not to include the search unit 16. In this case, the search unit 16 may be included in the user terminal 2, or may be included in another device or system.
[0074] In the above-mentioned second embodiment, the fault repair case acquisition unit 17 of the knowledge graph generation device 1 acquires the fault repair case information from the fault repair management system 3, but this is not limited to the above. For example, the fault repair case information may be received from a staff terminal used by a person in charge of repairing the fault of the equipment. The staff terminal accepts input of the fault repair case by the person in charge of repairing the fault of the equipment. The staff terminal transmits the fault repair case information indicating the fault repair case to the knowledge graph generation device 1. The staff terminal is not limited to one, and fault repair case information may be collected from multiple staff terminals.
[0075] Although the above-mentioned embodiments 1 and 2 have been described separately, it is also possible to combine the embodiments 1 and 2. In other words, a knowledge graph generation system including the knowledge graph generation device 1, the user terminal 2, and the repair management system 3 may be configured.
[0076] In the above-mentioned first and second embodiments, the knowledge graph generation device 1 generates a knowledge graph of a fault repair case, but the present invention is not limited to this. The knowledge graph generation device 1 can generate a knowledge graph of various phenomena having ambiguous connections.
[0077] In the above first and second embodiments, an example has been described in which the knowledge graph generation device 1 generates a knowledge graph of fault repair cases having ambiguous connections, such as similar phenomena at the time of the fault, similar causes, and similar measures, but this is not limiting. The knowledge graph generation device 1 may generate a knowledge graph including not only ambiguous connections, but also clear connections, such as the same customers who requested the fault repair, or the same models of devices for which the fault repair was performed.
[0078] Although the preferred embodiments have been described in detail above, the present invention is not limited to the above-described embodiments, and various modifications and substitutions can be made to the above-described embodiments without departing from the scope of the claims.
[0079] Various aspects of the present disclosure are summarized below as appendices.
[0080] (Appendix 1) a word calculation unit that converts words included in documents related to an event into numerical values and converts them into word vectors; a sentence calculation unit that converts a sentence representing an instance of the event into a sentence vector using the word vector; a similarity calculation unit that calculates a similarity between the event cases based on the sentence vector; a knowledge graph construction unit that constructs a knowledge graph of the event cases, with the event cases being entities and similarities between the event cases being relationships; A knowledge graph generation device comprising: (Appendix 2) The event is a repair of a malfunction of an equipment, The word operation unit includes: The words contained in the troubleshooting document related to the troubleshooting of the equipment are converted into word vectors by quantifying them. The text calculation unit includes: Using the word vector, a sentence representing a repair example is converted into a sentence vector; The similarity calculation unit is Calculating a similarity between the fault repair cases based on the sentence vector; The knowledge graph construction unit includes: A knowledge graph of the fault repair cases is constructed by treating the fault repair cases as entities and treating the similarities between the fault repair cases as relationships. 2. A knowledge graph generation device according to claim 1. (Appendix 3) a search unit that searches for fault repair cases that are similar to the characteristics of the fault repair target input by the user from the knowledge graph of the fault repair cases and presents the search results to the user; Further comprising: 3. A knowledge graph generation device as recited in claim 2. (Appendix 4) The search unit is converting words in a search word input by the user that indicates characteristics of the target of fault repair into the word vector, calculating an average of the converted word vectors as a vector of the entire search word, identifying a fault repair case that is closest to the vector of the entire search word from among the sentence vectors of the fault repair cases, creating a search query based on the identified fault repair case, searching a knowledge graph of the fault repair case using the created search query, and generating and outputting search result information indicating entities extracted as search results; 4. A knowledge graph generation device as recited in claim 3. (Appendix 5) A repair case acquisition unit acquires repair case information including a sentence representing the repair case, The text calculation unit includes: Using the word vector, a sentence expressing a new fault repair case included in the fault repair case information is converted into a sentence vector; The similarity calculation unit is Calculating a similarity between the new fault repair cases and a similarity between the new fault repair cases and existing fault repair cases based on the sentence vector; The knowledge graph construction unit includes: Add the new fault repair cases as entities, and update a knowledge graph of the fault repair cases using the similarities between the new fault repair cases and the similarities between the new fault repair cases and the existing fault repair cases as relationships; 5. A knowledge graph generation device according to any one of appendix 2 to 4. (Appendix 6) The present invention comprises a knowledge graph generation device that generates a knowledge graph, and a user terminal that is used by a user, the user terminal accepts an input of a feature of a search target from the user, and transmits input information indicating the feature of the search target to the knowledge graph generation device; The knowledge graph generation device includes: a word calculation unit that converts words included in documents related to an event into numerical values and converts them into word vectors; a sentence calculation unit that converts a sentence representing an instance of the event into a sentence vector using the word vector; a similarity calculation unit that calculates a similarity between the event cases based on the sentence vector; a knowledge graph construction unit that constructs a knowledge graph of the event cases, with the event cases being entities and the similarities between the event cases being relationships; and a search unit that searches for an example of the event that is similar to the characteristics of the search target indicated by the input information received from the user terminal from the knowledge graph of the example of the event, and presents search result information indicating the search result to the user; Equipped with The user terminal is a knowledge graph generation system that outputs the search result information received from the knowledge graph generation device. (Appendix 7) The knowledge graph generator executes A step of converting words included in documents related to the event into numerical values and converting them into word vectors; using the word vectors to convert sentences representing instances of the event into sentence vectors; calculating a similarity between the event cases based on the sentence vector; constructing a knowledge graph of the event cases, with the event cases being entities and similarities between the event cases being relationships; A knowledge graph generation method comprising: (Appendix 8) Computer, A word calculation unit that converts words contained in documents related to the event into numerical values and converts them into word vectors; a sentence calculation unit that converts a sentence representing an instance of the event into a sentence vector using the word vector; a similarity calculation unit that calculates a similarity between the event cases based on the sentence vector; and a knowledge graph construction unit that constructs a knowledge graph of the event cases, with the event cases being entities and the similarities between the event cases being relationships; A program that functions as a [Explanation of symbols]
[0081] 1 knowledge graph generation device, 2 user terminal, 3 fault repair management system, 11 memory unit, 12 word calculation unit, 13 sentence calculation unit, 14 similarity calculation unit, 15 knowledge graph construction unit, 16 search unit, 17 fault repair case acquisition unit, 100,200 knowledge graph generation system, 101 temporary memory unit, 102 memory unit, 103 calculation unit, 104 input unit, 105 transmission / reception unit, 106 display unit, 111 fault repair document memory unit, 112 fault repair case memory unit, 113 word numerical value memory unit, 114 sentence numerical value memory unit, 115 similarity memory unit, 116 knowledge graph memory unit.
Claims
1. a word calculation unit that converts words included in documents related to an event into numerical values and converts them into word vectors; a sentence calculation unit that converts a sentence representing an instance of the event into a sentence vector using the word vector; a similarity calculation unit that calculates a similarity between the event cases based on the sentence vector; a knowledge graph construction unit that constructs a knowledge graph of the event cases, with the event cases being entities and similarities between the event cases being relationships; A knowledge graph generation device comprising:
2. The event is a repair of a malfunction of an equipment, The word operation unit includes: The words contained in the troubleshooting document related to the troubleshooting of the equipment are converted into word vectors by quantifying them. The text calculation unit includes: Using the word vector, a sentence representing a repair example is converted into a sentence vector; The similarity calculation unit is Calculating a similarity between the fault repair cases based on the sentence vector; The knowledge graph construction unit includes: A knowledge graph of the fault repair cases is constructed by treating the fault repair cases as entities and treating the similarities between the fault repair cases as relationships. The knowledge graph generation device according to claim 1 .
3. a search unit that searches for fault repair cases that are similar to the characteristics of the fault repair target input by the user from the knowledge graph of the fault repair cases and presents the search results to the user; Further comprising: The knowledge graph generation device according to claim 2 .
4. The search unit is converting words in a search word input by the user that indicates characteristics of the target of fault repair into the word vector, calculating an average of the converted word vectors as a vector of the entire search word, identifying a fault repair case that is closest to the vector of the entire search word from among the sentence vectors of the fault repair cases, creating a search query based on the identified fault repair case, searching a knowledge graph of the fault repair case using the created search query, and generating and outputting search result information indicating entities extracted as search results; The knowledge graph generation device according to claim 3 .
5. A repair case acquisition unit acquires repair case information including a sentence representing the repair case, The text calculation unit includes: Using the word vector, a sentence expressing a new fault repair case included in the fault repair case information is converted into a sentence vector; The similarity calculation unit is Calculating a similarity between the new fault repair cases and a similarity between the new fault repair cases and existing fault repair cases based on the sentence vector; The knowledge graph construction unit includes: Add the new fault repair cases as entities, and update a knowledge graph of the fault repair cases using the similarities between the new fault repair cases and the similarities between the new fault repair cases and the existing fault repair cases as relationships; The knowledge graph generation device according to claim 2 .
6. The present invention comprises a knowledge graph generation device that generates a knowledge graph, and a user terminal that is used by a user, the user terminal accepts an input of a feature of a search target from the user, and transmits input information indicating the feature of the search target to the knowledge graph generation device; The knowledge graph generation device includes: a word calculation unit that converts words included in documents related to an event into numerical values and converts them into word vectors; a sentence calculation unit that converts a sentence representing an instance of the event into a sentence vector using the word vector; a similarity calculation unit that calculates a similarity between the event cases based on the sentence vector; a knowledge graph construction unit that constructs a knowledge graph of the event cases, with the event cases being entities and the similarities between the event cases being relationships; and a search unit that searches for an example of the event that is similar to the characteristics of the search target indicated by the input information received from the user terminal from the knowledge graph of the example of the event, and presents search result information indicating the search result to the user; Equipped with The user terminal is a knowledge graph generation system that outputs the search result information received from the knowledge graph generation device.
7. The knowledge graph generator executes A step of converting words included in documents related to the event into numerical values and converting them into word vectors; using the word vectors to convert sentences representing instances of the event into sentence vectors; calculating a similarity between the event cases based on the sentence vector; constructing a knowledge graph of the event cases, with the event cases being entities and similarities between the event cases being relationships; A knowledge graph generation method comprising:
8. Computer, A word calculation unit that converts words contained in documents related to the event into numerical values and converts them into word vectors; a sentence calculation unit that converts a sentence representing an instance of the event into a sentence vector using the word vector; a similarity calculation unit that calculates a similarity between the event cases based on the sentence vector; and a knowledge graph construction unit that constructs a knowledge graph of the event cases, with the event cases being entities and the similarities between the event cases being relationships; A program that functions as a
Citation Information
Patent Citations
Extraction device, extraction method, and extraction program
JP2019091354A
Ft diagram generation device, flow diagram generation device for trouble shooting, and program
JP2020160867A
Information processing program, information processing method and information processor
JP2021184224A
Generation method, device, apparatus of knowledge graph, and computer-readable storage medium
JP2020024698A
