Knowledge graph expansion method, device and medium for highway emergency field

Generating a relationship database through Apriori correlation analysis and parallel LDA algorithm, expanding the highway emergency knowledge graph, solving the problem that existing databases cannot integrate and analyze emergency event relationships, realizing data fusion and relationship analysis, and improving emergency resource allocation and response efficiency.

CN117391191BActive Publication Date: 2024-10-15SHANDONG EXPRESSWAY INFORMATION GRP CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202311394504.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2024-10-15
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

The existing highway emergency database cannot effectively integrate and analyze the relationship between various emergency events, resulting in the failure to maximize the value of the data and the inability to effectively improve the speed and efficiency of emergency resource deployment.

Method used

The knowledge graph expansion method is adopted, and the Apriori correlation analysis algorithm and parallel LDA algorithm are used to generate a relationship library between emergency event entities, and similarity analysis is performed to determine strong correlations and the knowledge graph is expanded to achieve data fusion and relationship analysis.

Benefits of technology

Through correlation analysis and topic analysis, we can determine the strong correlation between emergency event entities, expand the knowledge map, improve the efficiency of emergency resource allocation, enhance inter-regional connections, improve data integration and analysis capabilities, and assist emergency response and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117391191B_ABST
    Figure CN117391191B_ABST
Patent Text Reader

Abstract

The present application discloses a knowledge graph expansion method, device and medium for the field of highway emergency, including: obtaining a processed emergency data set; determining the same first emergency keyword between any two emergency event entities, and generating a first relationship library between different emergency event entities based on the first emergency keyword; performing a topic analysis on the emergency event entities based on the emergency event subject document to determine the topic distribution corresponding to each emergency event entity; determining whether there is the same second emergency keyword between any two emergency event entities based on the topic distribution, and generating a second relationship library between different emergency event entities based on the second emergency keyword; determining whether there is a strong correlation between any two emergency event entities; if so, expanding the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph based on the first relationship library and the second relationship library to obtain an expanded emergency event knowledge graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic digital data processing technology, and specifically to a knowledge graph expansion method, device and medium for use in the field of highway emergency. Background Art

[0002] In the current field of highway emergency response, there are various relationships between various operating units at various levels and in various road areas, such as affiliation, regional cooperation and overlapping functions. Sorting out the relationship between emergency events occurring in various road areas can play a key auxiliary role in better exerting the functions of various operating units, strengthen cooperation and communication between regions, improve the speed of emergency resource allocation such as personnel and materials, and greatly improve emergency efficiency. At present, most operating units adopt the method of building highway emergency databases to gather and manage various emergency events. However, the highway emergency database is only a simple integration of emergency data, and it is impossible to integrate and analyze the relationships between various emergency events, and the data value cannot be maximized. Summary of the invention

[0003] In order to solve the above problems, this application proposes a knowledge graph expansion method for the field of highway emergency, including:

[0004] Obtain the required highway emergency text set, cluster the highway emergency text set, obtain highway emergency texts corresponding to each emergency event type, and perform data preprocessing on the highway emergency texts to obtain a processed emergency data set; wherein the emergency data set corresponding to each emergency event type consists of multiple keywords;

[0005] For each emergency event type, the preset Apriori association analysis algorithm is used to filter out the emergency keywords corresponding to each emergency event entity in the emergency event type from the multiple keywords in the corresponding emergency data set, and the first common emergency keyword between any two emergency events is determined. According to the first common emergency keyword, a first relationship library between different emergency event entities is generated;

[0006] Obtaining the emergency event subject document corresponding to each emergency event entity from a preset corpus, and performing a subject analysis on the emergency event entity based on the emergency event subject document based on a preset parallel LDA algorithm to determine the subject distribution corresponding to each emergency event entity; wherein the emergency event subject document includes a plurality of emergency keywords;

[0007] Determine whether there is a same second emergency keyword between any two emergency event entities according to the topic distribution, so as to generate a second relationship library between different emergency event entities according to the second emergency keyword;

[0008] Performing similarity analysis on the first relationship library and the second relationship library corresponding to any two emergency event entities to determine whether there is a strong association relationship between the any two emergency event entities;

[0009] If so, the relationships between the corresponding emergency event entities in the preset emergency event knowledge graph are expanded according to the first relationship library and the second relationship library to obtain the expanded emergency event knowledge graph.

[0010] In one implementation of the present application, similarity analysis is performed on the first relationship library and the second relationship library corresponding to any two emergency event entities to determine whether there is a strong association relationship between the any two emergency event entities, specifically including:

[0011] Determine the cosine similarity between each first emergency keyword and each second emergency keyword corresponding to any two emergency event entities, as well as the first frequency of the first emergency keyword in the first relationship library and the second frequency of the second emergency keyword in the second relationship library;

[0012] Determine the similarity between the any two emergency event entities according to the cosine similarity, the first frequency and the second frequency;

[0013] When the similarity is greater than a preset similarity, it is determined that there is a strong correlation between the any two emergency event entities.

[0014] In one implementation of the present application, determining the similarity between the two emergency event entities according to the cosine similarity and the frequency specifically includes:

[0015] For each first emergency keyword, selecting a cosine similarity with the largest value from multiple cosine similarities corresponding to the first emergency keyword as a first target cosine similarity corresponding to the first emergency keyword;

[0016] For each second emergency keyword, selecting a cosine similarity with the largest value from multiple cosine similarities corresponding to the second emergency keyword as a second target cosine similarity corresponding to the second emergency keyword;

[0017] The first frequency is used as the first weight corresponding to the first emergency keyword, and the second frequency is used as the second weight corresponding to the second emergency keyword. According to the first weight and the second weight, a weighted sum is performed on the first target cosine similarity corresponding to each first emergency keyword and the second target cosine similarity corresponding to each second emergency keyword;

[0018] An average value of a sum result corresponding to the first target cosine similarity and a sum result of the second target cosine similarity is calculated, and the average value is used as the similarity between the any two emergency event entities.

[0019] In one implementation of the present application, the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph is expanded according to the first relationship library and the second relationship library, specifically including:

[0020] According to a preset mapping relationship between the similarity and the strong association level, determining the strong association level to which the similarity belongs; wherein the similarity is positively correlated with the strong association level;

[0021] Generate a corresponding target emergency keyword sequence according to the order of cosine similarities corresponding to the first emergency keyword and the second emergency keyword respectively from large to small;

[0022] From the target emergency keyword sequence, a specified number of target emergency keywords matching the strong association level are selected in turn, and the relationship between corresponding emergency event entities in a preset emergency event knowledge graph is expanded according to the target emergency keywords.

[0023] In one implementation of the present application, based on a preset parallel LDA algorithm, according to the emergency event subject document, a topic analysis is performed on the emergency event entity to determine the topic distribution corresponding to each emergency event entity, specifically including:

[0024] Based on a preset parallel LDA algorithm, determine a preset number of topics, and assign corresponding topic numbers to the emergency keywords in the emergency event topic document; wherein the topic number is less than or equal to the number of topics;

[0025] For each emergency keyword, traverse the corpus to update the topic number corresponding to the emergency keyword through a preset sampling formula until the sampling formula achieves sampling convergence;

[0026] When the sampling converges, determine the subject word corresponding to each emergency keyword in the emergency event subject document, and the probability distribution corresponding to each emergency keyword in the subject word;

[0027] The probability distributions corresponding to the subject words are summarized to obtain the subject distributions of the emergency event entities corresponding to the emergency event subject documents.

[0028] In one implementation of the present application, determining whether there is the same second emergency keyword between any two emergency event entities according to the topic distribution, and generating a second relationship library between different emergency event entities according to the second emergency keyword, specifically includes:

[0029] Comparing the topic distributions corresponding to any two emergency event entities, so as to select emergency event entities with the same subject words from the emergency event entities as an emergency event entity association group;

[0030] Determine the same second emergency keyword among the emergency keywords under the same subject word according to the topic distribution corresponding to the emergency event entity association;

[0031] Calculating the probability difference between the second emergency keywords according to the probability distribution corresponding to the second emergency keywords;

[0032] When the probability difference is less than a preset value, a second relationship library between different emergency event entities is generated according to the second emergency keyword.

[0033] In one implementation of the present application, the emergency keyword corresponding to each emergency event in the emergency event type is screened out from the multiple keywords in the corresponding emergency data set through a preset Apriori association analysis algorithm, specifically including:

[0034] By using a preset Apriori association analysis algorithm, the support corresponding to each keyword is calculated according to the ratio between the number of occurrences of each keyword in the emergency data set and the total number of keywords, and according to a preset support threshold, candidate emergency keywords whose corresponding support is not less than the support threshold are screened from the emergency data set;

[0035] The confidence level corresponding to each candidate emergency keyword is determined, and for each emergency event entity, the candidate keyword whose confidence level is not less than a preset confidence level threshold is used as the emergency keyword corresponding to the emergency event entity.

[0036] In an implementation of the present application, after generating a first relationship library between different emergency event entities according to the first emergency keyword, the method further includes:

[0037] Determining the keyword quantity of the first emergency keyword included in the first relationship library;

[0038] The number of keywords is compared with a preset number. If the number of keywords is less than the preset number, the support threshold and the confidence threshold are lowered until the number of filtered keywords is greater than the preset number.

[0039] The embodiment of the present application provides a knowledge graph expansion device for the field of highway emergency, including:

[0040] at least one processor; and,

[0041] a memory communicatively connected to the at least one processor; wherein,

[0042] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the knowledge graph expansion method for the highway emergency field as described in any one of the above items.

[0043] The embodiment of the present application provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0044] A knowledge graph expansion method for highway emergency field as described in any of the above items.

[0045] The knowledge graph expansion method for highway emergency proposed in this application can bring the following beneficial effects:

[0046] By performing association analysis and topic analysis on different emergency event entities, the first relationship library and the second relationship library between different emergency event entities are determined. In this way, through the similarity between the first relationship library and the second relationship library, it can be judged whether the corresponding emergency event entities have a strong association relationship. Expanding the relationship between emergency event entities with strong association relationships can further improve the coverage of the knowledge graph on the basis of associating different emergency events, realizing data fusion and relationship analysis, using emergency data to strengthen the connection between emergency events between regions, and improving emergency efficiency, which is more conducive to integrating and analyzing emergency data and helping relevant departments to respond to and manage emergency events. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0048] Figure 1 A schematic diagram of a flow chart of a knowledge graph expansion method for the field of highway emergency provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of the structure of a knowledge graph expansion device for use in the field of highway emergency provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments and corresponding drawings of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts belong to the scope of protection of this application.

[0051] The following will, with reference to the drawings, elaborate on the technical solutions provided by each embodiment of this application.

[0052] As Figure 1 shown, a method for expanding a knowledge graph in the field of highway emergency provided by an embodiment of this application includes:

[0053] S101: Obtain the required highway emergency text set, cluster the highway emergency text set, respectively obtain the highway emergency texts corresponding to each emergency event type, and perform data preprocessing on the highway emergency texts to obtain the processed emergency data set; wherein, the emergency data set corresponding to each emergency event type consists of multiple keywords.

[0054] Through the knowledge graph in the field of highway emergency, the relationships between emergency events occurring in different road areas can be clarified, thereby assisting each operation unit to improve the allocation speed of emergency resources such as personnel and materials. After an emergency event occurs, the server can obtain the required highway emergency text set through news, relevant websites, online social media channels, etc. Emergency events are divided into multiple emergency event types. For example, vehicle type, equipment type, weather type. After obtaining the highway emergency text set, the server can use the local density clustering method to cluster the highway emergency text set according to different emergency event types to obtain the highway emergency texts corresponding to each emergency event type. According to the highway emergency texts, the relationships between different emergency event entities in the emergency event knowledge graph used to represent the connections between emergency events can be expanded. It should be noted that the highway emergency texts are presented in the form of continuous Chinese character sequences. Therefore, it is necessary to perform data preprocessing on the highway emergency texts to filter out meaningless words in the texts. Segment the highway emergency texts to obtain the corresponding segmentation results, and then delete the function words in the segmentation results, such as "de" (of), "le" (already), etc., and perform stop word filtering on the segmentation results according to the preset stop word list to obtain the emergency data set after deleting stop words. The emergency data set corresponding to each emergency event type consists of multiple keywords.

[0055] S102: For each emergency event type, the preset Apriori association analysis algorithm is used to filter out the emergency keywords corresponding to each emergency event entity in the emergency event type from multiple keywords in its corresponding emergency data set, and determine the first emergency keyword that is the same between any two emergency event entities. Based on the first emergency keyword, a first relationship library between different emergency event entities is generated.

[0056] The emergency data set includes the processed word segmentation results corresponding to each emergency event. If the emergency event knowledge graph is to be expanded, it is necessary to perform association analysis on any two emergency events under the emergency event type. The embodiment of the present application uses a preset Apriori association analysis algorithm to find frequent item sets in the emergency data set, and then discovers the association relationship between different emergency event entities based on different frequent item sets, thereby generating a first relationship library composed of emergency keywords with association relationships.

[0057] First, the server needs to filter out the emergency keywords corresponding to each emergency event entity from the emergency data set. For example, for the emergency event entity of traffic congestion under the vehicle class, its emergency keywords include traffic jam, honking, accident, congestion, emergency, handling, diversion, rear-end collision, etc. When filtering emergency keywords, it is necessary to first determine the frequent item sets in the emergency data set according to the support. The server needs to calculate the support corresponding to each keyword based on the ratio between the number of occurrences of each keyword in the emergency data set and the total number of keywords, and filter out candidate emergency keywords from the emergency data set according to the preset support threshold, with the corresponding support not less than the support threshold. The candidate emergency keywords are the frequent item sets. After obtaining the candidate emergency keywords, the confidence corresponding to each candidate emergency keyword is determined. For each emergency event entity, the candidate keywords with a confidence not less than the preset confidence threshold are used as the emergency keywords of the emergency event entity.

[0058] After filtering out the different emergency keywords corresponding to each emergency event entity, the association relationship between different emergency event entities can be mined based on the emergency keywords. When the same first emergency keyword exists between any two emergency event entities, a first relationship library between different emergency events can be generated based on the first emergency keyword. Among them, the first emergency keyword contained in the first relationship library can be used as the relationship between different emergency event entities to assist in decision-making on emergency events.

[0059] It should be noted that the confidence and support values ​​range from [0,1], and the specific values ​​can be dynamically adjusted according to the screening results of the association rule set. That is, after obtaining the association rule set, the number of keywords of the first emergency keywords contained in the first relationship library is determined, and the number of keywords is compared with the preset number. If the number of keywords is less than the preset number, it means that the first emergency keywords currently screened are relatively small, and the constructed knowledge graph cannot more comprehensively reflect the relationship between different emergency events. At this time, it is necessary to lower the support threshold and the confidence threshold until the number of screened keywords is greater than the preset number.

[0060] S103: Obtain the emergency event subject document corresponding to each emergency event entity from the preset corpus, and perform topic analysis on the emergency event entity based on the preset parallel LDA algorithm and the emergency event subject document to determine the topic distribution corresponding to each emergency event entity; wherein the emergency event subject document includes multiple emergency keywords.

[0061] Mining the relationship between entities only through the above-mentioned first emergency keyword will lead to the lack of relationship between some emergency events, and the relationship has a certain one-sidedness. Therefore, the server also needs to analyze the connection between the subject words of the entity-related data to obtain the relationship between the entities, and then mine the relationship between different emergency event entities through the relationship library obtained by the topic analysis.

[0062] In one embodiment, the corpus contains emergency event subject documents corresponding to several emergency event entities, and each emergency event subject document includes multiple emergency keywords. After the server obtains the emergency event subject document corresponding to each emergency event entity from the preset corpus, it is necessary to perform topic analysis on the emergency event entity based on the emergency event subject document through a preset parallel latent Dirichlet Allocation (LDA) model algorithm to determine the topic distribution corresponding to each emergency event entity, and then determine the relationship between different emergency event entities through the topic distribution.

[0063] Specifically, the preset number of topics K is determined, and the emergency keywords in the emergency event topic document are assigned corresponding topic numbers k, wherein the topic number is less than or equal to the number of topics. The number of topics K determines the number of paths for subsequent topic sampling.

[0064] Furthermore, for each emergency keyword, the corpus is traversed to update the topic number corresponding to the emergency keyword through a preset sampling formula until the sampling formula achieves sampling convergence. The sampling formula here can be the Gibbs sampling formula, that is, the topic randomly assigned to each emergency keyword is resampled through the following formula to update the corresponding topic number:

[0065] P(word / doc)=P(topic / doc)P(word / topic)

[0066] Among them, P(word / doc) represents the probability of emergency keywords appearing in emergency event subject documents, P(topic / doc) represents the probability of topic words appearing in emergency event subject documents, and P(word / topic) represents the probability of emergency keywords appearing in topic words.

[0067] Repeat the above process. When the sampling converges, the subject word corresponding to each emergency keyword in the emergency event subject document and the probability distribution corresponding to each emergency keyword in the subject word can be determined. For example, the emergency event subject document includes emergency keywords such as machine, damage, congestion, and rear-end collision. Among them, machine, damage, and congestion correspond to the subject word of toll station congestion, and congestion and rear-end collision correspond to the subject word of road congestion. The probability distribution corresponding to each emergency keyword can be determined by the ratio between the number of each emergency keyword in each subject word and the total number of all emergency keywords. After obtaining the probability distribution in each subject word, it is summarized to obtain the subject distribution of the emergency event entity corresponding to the emergency event subject document. If two topics are set, the final subject distribution is: toll station congestion {machine: 0.12, damage: 0.25, ...}, low visibility {fog: 0.33, low speed: 0.22, ...}. Each subject word includes multiple emergency keywords and the corresponding probability of occurrence of emergency keywords.

[0068] S104: Determine whether there is a same second emergency keyword between any two emergency event entities according to the topic distribution, so as to generate a second relationship library between different emergency event entities according to the second emergency keyword.

[0069] After obtaining the topic distributions corresponding to different emergency event entities, a second relationship library between different emergency event entities may be generated according to the topic distributions.

[0070] Specifically, the topic distributions corresponding to any two emergency event entities are compared to select emergency event entities with the same subject words from the emergency event entities as emergency event entity association groups. According to the topic distributions corresponding to the emergency event entity associations, the second emergency keyword among the emergency keywords under the same subject word is determined.

[0071] Furthermore, the probability distribution can reflect the probability of occurrence of a certain emergency keyword in the subject word, and the probability difference of the emergency keywords in different emergency event entities can reflect the degree of difference between the emergency event entities. The smaller the probability difference, the smaller the degree of difference, and the stronger the association relationship between the corresponding emergency event entities. Therefore, according to the probability distribution corresponding to the second emergency keyword, the probability difference between the second emergency keywords is calculated. When the probability difference is less than the preset value, it can be determined that the second emergency keyword is the relationship between the emergency event entity association group. At this time, according to the second emergency keyword, a second relationship library between different emergency event entities can be generated.

[0072] S105: Perform similarity analysis on the first relationship database and the second relationship database corresponding to any two emergency event entities to determine whether there is a strong correlation between any two emergency event entities.

[0073] After obtaining the first relationship library and the second relationship library between any two emergency event entities through different analysis methods, the relationship between the two emergency event entities in the emergency event knowledge graph needs to be expanded accordingly. Since the first relationship library and the second relationship library are obtained through two different analysis methods, keyword analysis and topic analysis, before expanding the relationship, it is necessary to further analyze the association relationship between the first relationship library and the second relationship library, that is, to determine whether there is a strong association relationship between the two emergency event entities by performing a similarity analysis on the two. Only the first relationship library and the second relationship library corresponding to the emergency event entities with a strong association relationship can be included in the knowledge graph as an entity relationship.

[0074] Specifically, the cosine similarity between each first emergency keyword and each second emergency keyword corresponding to any two emergency event entities is determined, as well as the first frequency of the first emergency keyword in the first relationship library and the second frequency of the second emergency keyword in the second relationship library. The similarity between any two emergency event entities is determined based on the cosine similarity, the first frequency and the second frequency. When the similarity is greater than the preset similarity, it can be determined that there is a strong correlation between any two emergency event entities.

[0075] The similarity between emergency event entities can be determined by the following steps:

[0076] For each first emergency keyword, the cosine similarity with the largest value is selected from the multiple cosine similarities corresponding to the first emergency keyword as the first target cosine similarity corresponding to the first emergency keyword. Similarly, for each second emergency keyword, the cosine similarity with the largest value is selected from the multiple cosine similarities corresponding to the second emergency keyword as the second target cosine similarity corresponding to the second emergency keyword. After obtaining the first target cosine similarity and the second target cosine similarity, the first frequency is used as the first weight corresponding to the first emergency keyword, and the second frequency is used as the second weight corresponding to the second emergency keyword. According to the first weight and the second weight, the first target cosine similarity corresponding to each first emergency keyword and the second target cosine similarity corresponding to each second emergency keyword are weighted and summed. At this time, the average value of the sum result corresponding to the first target cosine similarity and the sum result of the second target cosine similarity is calculated, and the above average value can be used as the similarity between any two emergency event entities.

[0077] S106: If yes, expand the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph according to the first relationship library and the second relationship library to obtain an expanded emergency event knowledge graph.

[0078] If there is a strong correlation between two emergency event entities, at this time, the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph can be expanded according to the first relationship library and the second relationship library obtained by keyword analysis and topic analysis to obtain the expanded emergency event knowledge graph.

[0079] Since there are a large number of emergency keywords in the first relationship library and the second relationship library, when expanding the knowledge graph, emergency keywords with stronger associations should be selected as expansion relationships and added to the emergency event knowledge graph. In addition, since the levels of strong associations between different emergency event entities are different, for emergency event entities with stronger strong associations, the expanded relationship should also be greater than that of emergency event entities with weaker strong associations.

[0080] Therefore, according to the mapping relationship between the preset similarity and the strong association level, the strong association level to which the similarity belongs is determined. Among them, the similarity is positively correlated with the strong association level, and the greater the similarity, the higher the strong association level. According to the order of the cosine similarities corresponding to the first emergency keyword and the second emergency keyword from large to small, the corresponding target emergency keyword sequence is generated. From the target emergency keyword sequence, a specified number of target emergency keywords that match the strong association level are selected in turn, and according to the target emergency keywords, the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph is expanded.

[0081] It should be noted that, assuming the strong association level is 5, it is necessary to select 5 target emergency keywords from the target emergency keyword sequence and add them to the emergency event knowledge graph as extended relationships. If the target emergency keyword finally selected overlaps with the existing relationship according to the order in the target emergency keyword sequence, it is necessary to remove the target emergency keyword and continue to select the next target emergency keyword in the order of the target emergency keyword sequence to compare with the relationship in the emergency event knowledge graph until the specified number of target keywords that meet the strong association level are selected.

[0082] The expanded knowledge graph can not only reflect the keyword association relationship between different emergency event entities, but also explore the hidden relationships between entities through topic analysis. It can better integrate, analyze and utilize multi-domain data, assist highway emergency departments to more effectively warn, respond and manage emergencies, and improve traffic safety and emergency efficiency.

[0083] The above are embodiments of the method proposed in this application. Based on the same idea, some embodiments of this application also provide devices and non-volatile computer storage media corresponding to the above methods.

[0084] Figure 2 A schematic diagram of the structure of a knowledge graph expansion device for highway emergency response provided in an embodiment of the present application. Figure 2 As shown, including:

[0085] at least one processor; and,

[0086] at least one processor is communicatively connected to a memory; wherein,

[0087] The memory stores instructions executable by at least one processor, the instructions being executed by at least one processor to enable the at least one processor to:

[0088] Obtain the required highway emergency text set, cluster the highway emergency text set, obtain highway emergency texts corresponding to each emergency event type, and perform data preprocessing on the highway emergency texts to obtain a processed emergency data set; wherein the emergency data set corresponding to each emergency event type consists of multiple keywords;

[0089] For each emergency event type, the preset Apriori association analysis algorithm is used to screen out the emergency keywords corresponding to each emergency event entity in the emergency event type from multiple keywords in the corresponding emergency data set, and the first emergency keyword that is the same between any two emergency event entities is determined. Based on the first emergency keyword, a first relationship library between different emergency event entities is generated;

[0090] Obtaining the emergency event subject document corresponding to each emergency event entity from a preset corpus, and performing a subject analysis on the emergency event entity based on the emergency event subject document based on a preset parallel LDA algorithm to determine the subject distribution corresponding to each emergency event entity; wherein the emergency event subject document includes a plurality of emergency keywords;

[0091] Determine whether there is a same second emergency keyword between any two emergency event entities according to the topic distribution, so as to generate a second relationship library between different emergency event entities according to the second emergency keyword;

[0092] Performing similarity analysis on the first relationship library and the second relationship library corresponding to any two emergency event entities to determine whether there is a strong correlation relationship between any two emergency event entities;

[0093] If so, the relationships between the corresponding emergency event entities in the preset emergency event knowledge graph are expanded according to the first relationship library and the second relationship library to obtain an expanded emergency event knowledge graph.

[0094] The embodiment of the present application provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0095] Obtain the required highway emergency text set, cluster the highway emergency text set, obtain highway emergency texts corresponding to each emergency event type, and perform data preprocessing on the highway emergency texts to obtain a processed emergency data set; wherein the emergency data set corresponding to each emergency event type consists of multiple keywords;

[0096] For each emergency event type, the preset Apriori association analysis algorithm is used to screen out the emergency keywords corresponding to each emergency event entity in the emergency event type from multiple keywords in the corresponding emergency data set, and the first emergency keyword that is the same between any two emergency event entities is determined. Based on the first emergency keyword, a first relationship library between different emergency event entities is generated;

[0097] Obtaining the emergency event subject document corresponding to each emergency event entity from a preset corpus, and performing a subject analysis on the emergency event entity based on the emergency event subject document based on a preset parallel LDA algorithm to determine the subject distribution corresponding to each emergency event entity; wherein the emergency event subject document includes a plurality of emergency keywords;

[0098] Determine whether there is a same second emergency keyword between any two emergency event entities according to the topic distribution, so as to generate a second relationship library between different emergency event entities according to the second emergency keyword;

[0099] Performing similarity analysis on the first relationship library and the second relationship library corresponding to any two emergency event entities to determine whether there is a strong correlation relationship between any two emergency event entities;

[0100] If so, the relationships between the corresponding emergency event entities in the preset emergency event knowledge graph are expanded according to the first relationship library and the second relationship library to obtain an expanded emergency event knowledge graph.

[0101] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0102] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0103] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A knowledge graph expansion method for highway emergency field, characterized in that: The method comprises: Obtain the required highway emergency text set, cluster the highway emergency text set, obtain highway emergency texts corresponding to each emergency event type, and perform data preprocessing on the highway emergency texts to obtain a processed emergency data set; wherein the emergency data set corresponding to each emergency event type consists of multiple keywords; For each emergency event type, the preset Apriori association analysis algorithm is used to filter out the emergency keywords corresponding to each emergency event entity in the emergency event type from the multiple keywords in the corresponding emergency data set, and the first emergency keyword that is the same between any two emergency event entities is determined. According to the first emergency keyword, a first relationship library between different emergency event entities is generated; Obtaining the emergency event subject document corresponding to each emergency event entity from a preset corpus, and performing a subject analysis on the emergency event entity based on the emergency event subject document based on a preset parallel LDA algorithm to determine the subject distribution corresponding to each emergency event entity; wherein the emergency event subject document includes a plurality of emergency keywords; Determine whether there is a same second emergency keyword between any two emergency event entities according to the topic distribution, so as to generate a second relationship library between different emergency event entities according to the second emergency keyword; Performing similarity analysis on the first relationship library and the second relationship library corresponding to any two emergency event entities to determine whether there is a strong association relationship between the any two emergency event entities; If yes, the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph is expanded according to the first relationship library and the second relationship library to obtain the expanded emergency event knowledge graph; Performing similarity analysis on the first relationship library and the second relationship library corresponding to any two emergency event entities to determine whether there is a strong association relationship between the any two emergency event entities, specifically includes: Determine the cosine similarity between each first emergency keyword and each second emergency keyword corresponding to any two emergency event entities, as well as the first frequency of the first emergency keyword in the first relationship library and the second frequency of the second emergency keyword in the second relationship library; Determine the similarity between the any two emergency event entities according to the cosine similarity, the first frequency and the second frequency; When the similarity is greater than a preset similarity, determining that there is a strong correlation between the any two emergency event entities; Determining the similarity between the two emergency event entities according to the cosine similarity and the frequency specifically includes: For each first emergency keyword, selecting a cosine similarity with the largest value from multiple cosine similarities corresponding to the first emergency keyword as a first target cosine similarity corresponding to the first emergency keyword; For each second emergency keyword, selecting a cosine similarity with the largest value from multiple cosine similarities corresponding to the second emergency keyword as a second target cosine similarity corresponding to the second emergency keyword; The first frequency is used as the first weight corresponding to the first emergency keyword, and the second frequency is used as the second weight corresponding to the second emergency keyword. According to the first weight and the second weight, a weighted sum is performed on the first target cosine similarity corresponding to each first emergency keyword and the second target cosine similarity corresponding to each second emergency keyword; An average value of a sum result corresponding to the first target cosine similarity and a sum result corresponding to the second target cosine similarity is calculated, and the average value is used as the similarity between the any two emergency event entities.

2. The knowledge graph expansion method for highway emergency according to claim 1 is characterized in that: According to the first relationship library and the second relationship library, the relationship between the corresponding emergency event entities in the preset emergency event knowledge graph is expanded, specifically including: According to a preset mapping relationship between the similarity and the strong association level, determining the strong association level to which the similarity belongs; wherein the similarity is positively correlated with the strong association level; Generate a corresponding target emergency keyword sequence according to the order of cosine similarities corresponding to the first emergency keyword and the second emergency keyword respectively from large to small; From the target emergency keyword sequence, a specified number of target emergency keywords matching the strong association level are selected in turn, and the relationships between corresponding emergency event entities in a preset emergency event knowledge graph are expanded based on the target emergency keywords.

3. The knowledge graph expansion method for highway emergency according to claim 1 is characterized in that: Based on the preset parallel LDA algorithm, according to the emergency event subject document, the emergency event entity is subjected to subject analysis to determine the subject distribution corresponding to each emergency event entity, specifically including: Based on a preset parallel LDA algorithm, determine a preset number of topics, and assign corresponding topic numbers to the emergency keywords in the emergency event topic document; wherein the topic number is less than or equal to the number of topics; For each emergency keyword, traverse the corpus to update the topic number corresponding to the emergency keyword through a preset sampling formula until the sampling formula achieves sampling convergence; When the sampling converges, determine the subject word corresponding to each emergency keyword in the emergency event subject document, and the probability distribution corresponding to each emergency keyword in the subject word; The probability distributions corresponding to the subject words are summarized to obtain the subject distributions of the emergency event entities corresponding to the emergency event subject documents.

4. The knowledge graph expansion method for highway emergency according to claim 3 is characterized in that: Determining whether there is a same second emergency keyword between any two emergency event entities according to the topic distribution, so as to generate a second relationship library between different emergency event entities according to the second emergency keyword, specifically comprising: Comparing the topic distributions corresponding to any two emergency event entities, so as to select emergency event entities with the same subject words from the emergency event entities as an emergency event entity association group; Determine the same second emergency keyword among the emergency keywords under the same subject word according to the topic distribution corresponding to the emergency event entity association; Calculating the probability difference between the second emergency keywords according to the probability distribution corresponding to the second emergency keywords; When the probability difference is less than a preset value, a second relationship library between different emergency event entities is generated according to the second emergency keyword.

5. The knowledge graph expansion method for highway emergency according to claim 1 is characterized in that: By using the preset Apriori association analysis algorithm, the emergency keywords corresponding to each emergency event in the emergency event type are screened out from the multiple keywords in the corresponding emergency data set, specifically including: By using a preset Apriori association analysis algorithm, the support corresponding to each keyword is calculated according to the ratio between the number of occurrences of each keyword in the emergency data set and the total number of keywords, and according to a preset support threshold, candidate emergency keywords whose corresponding support is not less than the support threshold are screened from the emergency data set; The confidence level corresponding to each candidate emergency keyword is determined, and for each emergency event entity, the candidate keyword whose confidence level is not less than a preset confidence level threshold is used as the emergency keyword corresponding to the emergency event entity.

6. The knowledge graph expansion method for highway emergency according to claim 5 is characterized in that: After generating a first relationship library between different emergency event entities according to the first emergency keyword, the method further includes: Determining the keyword quantity of the first emergency keyword included in the first relationship library; The number of keywords is compared with a preset number. If the number of keywords is less than the preset number, the support threshold and the confidence threshold are lowered until the number of filtered keywords is greater than the preset number.

7. A knowledge graph expansion device for highway emergency response, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the knowledge graph expansion method for the highway emergency field as described in any one of claims 1-6.

8. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: A knowledge graph expansion method for highway emergency field as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Text information associating and clustering collecting processing method based on domain knowledge model

    CN105677873A

  • Cross-language hierarchy classification system matching method based on topic model

    CN107391565A

  • Patent topic mining method based on LDA (Latent Dirichlet Allocation) and Apriori

    CN111143542A

  • Power grid industry knowledge graph construction method and device, and equipment

    CN111414491A

  • Emergency event auxiliary decision-making method based on TF-IDF and LDA

    CN113887197A