Method, device, computer equipment and storage medium for constructing insurance knowledge graph
By receiving and processing data from third-party insurance platforms and official filing platforms, combined with word-of-mouth scoring and ontology models, an insurance knowledge graph is constructed, which solves the data recording and accuracy problems of insurance companies in knowledge graph applications, and realizes insurance product attributes and Comprehensive and accurate recording and display of market reputation.
Patent Information
- Application Number
- CN202011313478.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-11-20
AI Technical Summary
The application of knowledge graph technology by insurance companies is not yet mature, and they lack methods to comprehensively and accurately record insurance product attributes and market reputation from multiple information sources.
By receiving the website information of third-party insurance platforms and official filing platforms, using web crawler programs to obtain data sets, and combining the word-of-mouth scoring model and ontology model, an insurance knowledge graph is constructed, including product sales status and attribute information.
It improves the efficiency and accuracy of building insurance knowledge graphs, ensures the timeliness and authority of information, and completely depicts the life cycle of insurance products.
Smart Images

Figure CN112417167B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of knowledge graph technology, and in particular to a method, device, computer equipment and storage medium for constructing an insurance knowledge graph. Background Art
[0002] The insurance industry has always focused on integrating innovative thinking into traditional business models, and knowledge graphs, a technology with great potential, has long become a hot topic in the insurance industry. However, due to the immaturity of related technologies and the unclear fit between technology and business, most insurance companies or insurance technology start-ups are currently only at a very early stage in the practice of knowledge graph technology. Moreover, there is no complete solution to accurately extract and record the attributes of an insurance product from multiple information sources and record its market reputation from the filing of an insurance product to its discontinuation of sale. Summary of the invention
[0003] In response to the above technical problems, the embodiments of the present invention provide a method, device, computer equipment and storage medium for constructing an insurance knowledge graph. By collecting data from multiple information sources, it not only accurately records insurance products in an all-round way, but also takes into account the timeliness and authority of the information.
[0004] In a first aspect, an embodiment of the present invention provides a method for constructing an insurance knowledge graph, which includes:
[0005] Receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user;
[0006] Based on the website information and a preset web crawler program, a first data set and a second data set for constructing an insurance knowledge graph are acquired from the third-party insurance platform and the official filing platform respectively;
[0007] Obtaining a word-of-mouth score for each insurance product from the first data set according to a preset word-of-mouth score model;
[0008] Capturing data from the first data set and the second data set according to a preset ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph;
[0009] The insurance knowledge graph is constructed according to the sales status information, the product attribute information, and the word-of-mouth score.
[0010] In a second aspect, an embodiment of the present invention provides a device for constructing an insurance knowledge graph, which includes:
[0011] A first receiving unit is used to receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user;
[0012] A first acquisition unit, configured to acquire a first data set and a second data set for constructing an insurance knowledge graph from the third-party insurance platform and the official filing platform respectively based on the website information and a preset web crawler program;
[0013] A second acquisition unit, configured to acquire a word-of-mouth score of each insurance product from the first data set according to a preset word-of-mouth score model;
[0014] a third acquisition unit, configured to capture data from the first data set and the second data set according to a preset ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph;
[0015] A construction unit is used to construct the insurance knowledge graph based on the sales status information, the product attribute information, and the word-of-mouth score.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for constructing an insurance knowledge graph as described in the first aspect above when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method for constructing an insurance knowledge graph described in the first aspect above.
[0018] The embodiment of the present invention provides a method, device, computer equipment and storage medium for constructing an insurance knowledge graph, the method comprising: receiving the website information of a third-party insurance platform and the website information of an official filing platform input by a user; obtaining a first data set and a second data set for constructing an insurance knowledge graph from the third-party insurance platform and the official filing platform respectively based on the website information and a preset web crawler program; obtaining the word-of-mouth score of each insurance product from the first data set according to a preset word-of-mouth score model; crawling data from the first data set and the second data set according to a preset ontology model to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph; constructing the insurance knowledge graph according to the sales status information, the product attribute information and the word-of-mouth score. This method not only improves the efficiency and accuracy of establishing an insurance knowledge graph, but also takes into account the timeliness and authority of the information, while displaying the reputation and sales status of insurance products, and fully depicting the life cycle of an insurance product. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of a process for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a sub-process of a method for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of another sub-process of the method for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of another sub-process of the method for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of another sub-process of the method for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of another sub-process of the method for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0026] Figure 7Another schematic diagram of the process of constructing the insurance knowledge graph provided by the embodiment of the present invention;
[0027] Figure 8 A schematic block diagram of a device for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0028] Fig. 9 A schematic block diagram of subunits of a device for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0029] Fig.10 A schematic block diagram of another subunit of the device for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0030] Fig.11 A schematic block diagram of another subunit of the device for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0031] Fig.12 A schematic block diagram of another subunit of the device for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0032] Fig.13 A schematic block diagram of another subunit of the device for constructing an insurance knowledge graph provided in an embodiment of the present invention;
[0033] Fig.14 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0036] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0037] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0038] See also Figure 1 , Figure 1 A flow chart of a method for constructing an insurance knowledge graph provided in an embodiment of the present invention. The method for constructing an insurance knowledge graph in an embodiment of the present invention is applied to a terminal device, and the method is executed by an application software installed in the terminal device. The terminal device is a terminal device with an Internet access function, such as a desktop computer, a laptop computer, a tablet computer, or a mobile phone.
[0039] The following is a detailed description of the construction method of the insurance knowledge graph. Figure 1 As shown, the method includes the following steps S110 to S150.
[0040] S110. Receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user.
[0041] Receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user. Specifically, the third-party insurance platform refers to a website platform provided by a third party with mature technology for insurance product sales by an insurance company. The third-party insurance platform can be an insurance intermediary and part-time agent industry website, that is, an e-commerce platform built by a third party and an electronic place that provides information and transaction services to multiple buyers and multiple sellers. It can operate the three core processes of information flow, capital flow, and logistics well and build an efficient information exchange platform for enterprises; the official filing platform is the official platform of the China Banking and Insurance Regulatory Commission. Any insurance product sold on the market must be filed with the China Banking and Insurance Regulatory Commission, and the third-party insurance platform usually does not sell insurance products without highlights. Data collection through the third-party insurance platform and the official insurance platform not only takes into account the collection efficiency of the data required for constructing the insurance knowledge graph, but also improves the accuracy of the constructed insurance knowledge graph. In an embodiment of the present invention, the third-party insurance platform is a plurality of insurance intermediary and part-time agent industry websites.
[0042] S120, based on the website information and a preset web crawler program, respectively obtain a first data set and a second data set for constructing an insurance knowledge graph from the third-party insurance platform and the official filing platform.
[0043] Based on the website information and the preset web crawler program, the first data set and the second data set for constructing the insurance knowledge graph are obtained from the third-party insurance platform and the official filing platform respectively. Specifically, the web crawler program is a program that roams a collection of Web documents along links. The web crawler program crawls data on the corresponding web pages through some given URLs using standard protocols such as HTTP. In an embodiment of the present invention, the web crawler program crawls data through the website information of the third-party insurance platform to obtain the first data set for constructing the insurance knowledge graph, the first data set includes text and pictures crawled from the third-party insurance platform, the text in the first data set includes information on user evaluation of the corresponding insurance product, sales status information of the corresponding insurance product and part of the attribute information, and the pictures in the first data set are the attribute information of the third-party insurance platform promoting the corresponding insurance product; the web crawler program crawls data through the website information of the official filing platform to obtain the second data set for constructing the insurance knowledge graph, the second data set includes text data of attribute information of insurance products crawled from the website information of the official filing platform and sales status information.
[0044] S130. Obtain a word-of-mouth score for each insurance product from the first data set according to a preset word-of-mouth score model.
[0045] The word-of-mouth score of each insurance product is obtained from the first data set according to a preset word-of-mouth score model. Specifically, the word-of-mouth score model is a model for scoring the word-of-mouth of all insurance products. The text set of the first data set includes text information of users' evaluations of corresponding insurance products. The text information of each insurance product is obtained from the first data set based on the insurance list, and then the text information of the evaluation is input into the word-of-mouth score model to obtain the word-of-mouth score of the corresponding insurance product in the text information of the evaluation.
[0046] In another embodiment, if Figure 2 As shown, step S130 includes sub-steps S131 and S132.
[0047] S131. Obtain the text of each insurance product in the first data set and classify the text of each insurance product in the first data set according to a preset text classification model to obtain multiple evaluation information of each insurance product in the first data set.
[0048] The text of each insurance product in the first data set is obtained and the text of each insurance product in the first data set is classified according to a preset text classification model to obtain multiple evaluation information of each insurance product in the first data set. Specifically, the evaluation information is the category information of the user's evaluation of the corresponding insurance product, and the category information includes positive evaluation, negative evaluation and neutral evaluation. The text of each insurance product in the first data set records the evaluation of a certain insurance product by multiple users. Since different users have different comments on the same insurance product and it is impossible to form a unified standard, the text classification model is used to classify the evaluation of the insurance product by different users in the text of each insurance product in the first data set, thereby obtaining multiple standardized evaluations of each insurance product in the first data set, that is, the multiple evaluation information. In an embodiment of the present invention, the text classification model is based on the TextCNN text classification algorithm to classify the text of each insurance product in the first data set, thereby obtaining multiple evaluation information of each insurance product in the first data set.
[0049] In another embodiment, if Figure 3 As shown, step S131 includes sub-steps S1311 to S1314.
[0050] S1311. Perform word segmentation processing on the text of each insurance product in the first data set to obtain each word in the text of each insurance product in the first data set.
[0051] The text of each insurance product in the first data set is segmented to obtain each word in the text of each insurance product in the first data set. Specifically, in the process of segmenting the text of each insurance product in the first data set, four major methods based on rules, statistics, semantics or understanding can be used for segmentation. In an embodiment of the present invention, a statistical-based word segmentation method is used to segment the text of each insurance product in the first data set. The main principle of the statistical-based word segmentation method is: the probability of adjacent appearance of words in the text of each insurance product in the first data set is obtained through a preset N-gram model, and then the frequency of the combination of adjacent words in the text of each insurance product in the first data set is counted, and the mutual occurrence information between them is calculated, thereby completing the word segmentation of the text of each insurance product in the first data set to obtain each word in the text of each insurance product in the first data set.
[0052] S1312. Process each word in the text of each insurance product in the first data set according to a preset word embedding model to obtain a word vector for the text of each insurance product in the first data set.
[0053] Each word in the text of each insurance product in the first data set is processed according to a preset word embedding model to obtain a word vector of the text of each insurance product in the first data set. Specifically, the word embedding model is a model for mapping each word in the text of each insurance product in the first data set into a word vector, that is, the word embedding model is used to numerically process each word in the text of each insurance product in the first data set, and the word embedding model vectorizes each word in the text of each insurance product in the first data set, so as to facilitate subsequent convolution processing of each word in the text of each insurance product in the first data set.
[0054] S1313. Perform convolution and pooling processing on the word vectors of the text of each insurance product in the first data set in sequence to obtain a feature vector of the text of each insurance product in the first data set.
[0055] The word vectors of the text of each insurance product in the first data set are sequentially convolved and pooled to obtain a feature vector of the text of each insurance product in the first data set. Specifically, the word vectors of the text of each insurance product in the first data set are subjected to one-dimensional convolution for feature extraction to obtain a shallow feature vector of the text of each insurance product in the first data set, and then the shallow feature vectors are subjected to maximum pooling to finally obtain a feature vector of the text of each insurance product in the first data set.
[0056] S1314. Input the feature vector of the text of each insurance product in the first data set into a classifier for classification processing to obtain multiple evaluation information of each insurance product in the first data set.
[0057] The feature vector of the text of each insurance product in the first data set is input into a classifier for classification processing to obtain multiple evaluation information of each insurance product in the first data set. In an embodiment of the present invention, the feature vector of the text of each insurance product in the first data set is input into a Softmax classifier, and the Softmax classifier is used for classification processing to obtain multiple evaluation information of each insurance product in the first data set.
[0058] S132. Obtain a reputation score for each insurance product in the first data set based on multiple evaluation information of each insurance product in the first data set.
[0059] The word-of-mouth score of each insurance product in the first data set is obtained according to the multiple evaluation information of each insurance product in the first data set. Specifically, after obtaining the multiple evaluation information of each insurance product in the first data set, the multiple evaluation information of the insurance product is counted to obtain the number of positive evaluations, the number of negative evaluations, and the number of neutral evaluations of each insurance product in the first data set, and then the word-of-mouth score of each insurance product in the first data set is obtained by a preset word-of-mouth calculation formula, wherein the word-of-mouth score calculation formula is: word-of-mouth score P = (a1×V1+a2×V2+a3×V3)×100 / (V1+V2+V3), wherein a1, a2, and a3 are preset parameters, V1 is the number of positive evaluations of the insurance product, V2 is the number of negative evaluations of the insurance product, and V3 is the number of neutral evaluations of the insurance product.
[0060] S140. Capture data from the first data set and the second data set according to a preset ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph.
[0061] According to the preset ontology model, data is captured from the first data set and the second data set to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph. Specifically, the ontology model is a model for constructing the structural layer of the insurance knowledge graph. Since the characteristics of insurance products in the insurance field are relatively single and fixed, the ontology of the insurance knowledge graph in the prior art can be directly used. The sales status information and product attribute information of all insurance products in the insurance knowledge graph are the entity layer information for constructing the insurance knowledge graph. The sales status information is the initial time information of the sale of each insurance product in the insurance knowledge graph and whether the sales have been terminated. The product attribute information is the sales company to which each insurance product in the insurance knowledge graph belongs and the attribute introduction information of each insurance product. By capturing data from the first data set and the second data set through the ontology model, the entity layer information for constructing the insurance knowledge graph, that is, the sales status information and product attribute information of all insurance products in the insurance knowledge graph, can be obtained. In an embodiment of the present invention, the concept of the ontology in the ontology model is insurance, and property insurance, life insurance and liability insurance are sub-concepts of the insurance. The marine insurance, fire insurance, transportation insurance, engineering insurance and other insurance types under the property insurance, the life insurance, health insurance, accidental injury insurance and other insurance types under the life insurance, and the employer liability insurance, professional liability insurance, product liability insurance and other insurance types under the liability insurance are respectively used as sub-concepts of the property insurance, the life insurance and the liability insurance.
[0062] In another embodiment, if Figure 4As shown, step S140 includes sub-steps S141 and S142.
[0063] S141. Process the first data set and the second data set respectively according to a preset data processing model to obtain structured data sets.
[0064] The first data set and the second data set are processed respectively according to a preset data processing model to obtain a structured data set. The data processing model is a model for converting the unstructured data in the first data set and the second data set into structured data respectively. Since the data sets crawled by the web crawler program from the third-party insurance platform and the official registered insurance platform are unstructured data and structured data, and the unstructured data is data with an irregular or incomplete data structure, without a predefined data model, and is not convenient to be represented by a two-dimensional logical table of a database, it is necessary to process the unstructured data in the first data set and the second data set so that all the data in the first data set and the second data set are structured data.
[0065] In another embodiment, if Figure 5 As shown, step S141 includes sub-steps S1411 and S1412.
[0066] S1411. Perform text conversion on the unstructured texts in the first data set and the second data set respectively according to a preset text conversion model to obtain structured texts.
[0067] According to the preset text conversion model, the unstructured text in the first data set and the second data set is converted into structured text. Specifically, the text conversion model is a model for converting the unstructured text in the first data set and the second data set into structured text. The specific conversion process is: obtaining the unstructured text in the first data set and the second data set, and then converting the unstructured text into semi-structured text, and finally converting the semi-structured text to obtain the structured text. In an embodiment of the present invention, the semi-structured text is a text in XML format.
[0068] S1412: Perform recognition processing on the images in the first data set based on OCR recognition technology to obtain text information in the images.
[0069] Based on the OCR recognition technology, the images in the first data set are recognized and processed to obtain the text information in the images. Specifically, the OCR (Optical Character Recognition) technology is a technology that uses an optical method to convert the text in a paper document into a black and white dot matrix image file for printed characters, and converts the text in the image into a text format through recognition software for further editing and processing by word processing software. In an embodiment of the present invention, the image is first preprocessed, and then the preprocessed image is input into a pre-trained convolutional neural network model to obtain the text information in the image.
[0070] In another embodiment, if Figure 6 As shown, step S1412 includes sub-steps S14121, S14122 and S14123.
[0071] S14121. Regularize the image according to a nonlinear regularization rule to enlarge or reduce the image.
[0072] The image is regularized according to a nonlinear regularization rule to enlarge or reduce the image. Specifically, the nonlinear regularization rule changes the size of the image while keeping the overall shape of the image unchanged, which can largely keep the characters in the image original with little distortion. The conversion formula is:
[0073]
[0074] Among them, W represents the original width of the character, H represents the original height of the character, W' represents the normalized width of the character, H' represents the normalized height of the character, m represents the conversion ratio of the character width, and n represents the conversion ratio of the character height.
[0075] Assuming that the coordinates of the character point in the image are (x, y), the linear normalization calculation formula corresponding to the point coordinates is:
[0076]
[0077] Among them, (x, y) represents the original point coordinates of the character, (x′, y′) represents the original point coordinates of the character after regularization, m represents the conversion ratio of the character width, and n represents the conversion ratio of the character height.
[0078] S14122. Interpolate the regularized image according to the segmented interpolation processing rule of the character to generate a preprocessed image.
[0079] The regularized image is interpolated according to the segmented interpolation processing rule of the character to generate a preprocessed image. Specifically, the segmented interpolation processing rule of the character performs segmented interpolation processing on the characters in the regularized image according to a specific function. The segmented linear interpolation constructor is used to simulate the trajectory of the character, thereby improving the recognition rate of the text in the image.
[0080] Suppose there is an interval [a, b], and there are points x0, x1, x2, ... x on the interval. n ,, its size is a=x0<x1<x2<…<x n = b, f(x) is a function defined in the interval, and its corresponding function values are y0, y1, y2, ...y n , if the function φ(x) satisfies the following conditions: a. On the interval [a, b], the φ(x) function is a continuous function; b. In each subinterval [x i , x i+1 ](i=0,1,2…,n-1), φ(x) is a polynomial of degree k; then the φ(x) function is a piecewise k-order interpolation polynomial of f(x) on the interval [a,b]. When k=1, it is piecewise linear interpolation, and when k=2, it is piecewise parabolic interpolation.
[0081] Piecewise linear interpolation is also called piecewise linear interpolation. In each subinterval [x i , x i+1 ](i=0,1,2…,n-1), φ(x) is a linear interpolation polynomial, and its formula is:
[0082]
[0083] Among them, x, x i , x i+1 is a point on the interval [a, b], y, y i ,y i+1 is the function f(x) at point x, x i , x i+1 The corresponding function value on , φ(x) is a piecewise linear interpolation polynomial.
[0084] S14123. Input the preprocessed image into a pre-trained convolutional neural network model to obtain text information in the image.
[0085] The preprocessed image is input into a pre-trained convolutional neural network model to obtain the text information in the image. Specifically, the convolutional neural network model is a pre-trained neural network model used to perform text recognition on images containing characters. After the convolutional neural network model performs convolution, pooling, and classification on the preprocessed image, the text information in the image can be obtained.
[0086] S142. Capture data from the structured data set according to the ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph.
[0087] S150. Construct the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score.
[0088] The insurance knowledge graph is constructed based on the sales status information, the product attribute information, and the word-of-mouth score. Specifically, the sales status information and the product attribute information include both data captured from the first data set and data captured from the second data set. Therefore, it is necessary to perform knowledge fusion using entity alignment technology on the sales status information and product attribute information belonging to the first data set and the second data set of the same insurance product, respectively, to obtain the fused sales status information and product attribute information of each insurance product. Finally, the word-of-mouth score of each insurance product, the fused sales status information, and the fused product attribute information are stored in a structured database, thereby obtaining the insurance knowledge graph.
[0089] In another embodiment, if Figure 6 As shown, after step S150, steps S161 and S162 are also included.
[0090] S161: If a query statement input by a user is received, words with entity naming in the query statement are obtained according to a preset named entity recognition model.
[0091] If a query statement input by a user is received, the words with entity naming in the query statement are obtained according to a preset named entity recognition model. Specifically, the named entity recognition model is a model for performing named entity recognition on each word in the query statement. After receiving the query statement input by the second user, the query statement is segmented to obtain a single word in the query statement, and then entity naming recognition is performed to obtain the words with entity naming in the query statement. Among them, named entity recognition (NER) is a type of natural language processing (NLP). For example, when the query statement input by the second user is "I want to know the relevant situation of health insurance", the query statement is segmented to obtain "I", "I want", "I know", "health insurance", "of", "related", "situation", and then "I", "I want", "I know", "health insurance", "of", "related", "situation" seven words are entity named, and the word with entity naming in the query statement is "health insurance".
[0092] S162. Entity linking is performed from the insurance knowledge graph according to the words with entity names in the query statement to obtain query results.
[0093] According to the words with entity names in the query statement, entity linking is performed from the insurance knowledge graph to obtain query results. Specifically, through the words with entity names in the query statement, multiple entities similar to the words with entity names in the query statement can be obtained from the insurance knowledge graph, and then the similarity between the words with entity names in the query statement and multiple entities similar to the words with entity names in the query statement is calculated. The entity with the highest similarity is the one closest to the words with entity names in the query statement, and entity linking is performed to obtain query results matching the query statement from the insurance knowledge graph.
[0094] In the method for constructing the insurance knowledge graph provided in the embodiment of the present invention, the website information of the third-party insurance platform and the website information of the official filing platform input by the user are received; based on the website information and the preset web crawler program, the first data set and the second data set for constructing the insurance knowledge graph are respectively obtained from the third-party insurance platform and the official filing platform; the word-of-mouth score of each insurance product is obtained from the first data set according to the preset word-of-mouth score model; data is crawled from the first data set and the second data set according to the preset ontology model to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph; the insurance knowledge graph is constructed according to the sales status information, the product attribute information, and the word-of-mouth score. This method not only improves the efficiency and accuracy of establishing the insurance knowledge graph, but also takes into account the timeliness and authority of the information, while displaying the reputation and sales status of the insurance product, and fully depicting the life cycle of an insurance product.
[0095] The embodiment of the present invention further provides a device 100 for constructing an insurance knowledge graph, which is used to execute any embodiment of the aforementioned method for constructing an insurance knowledge graph. Figure 8 , Figure 8 It is a schematic block diagram of the insurance knowledge graph construction device 100 provided in an embodiment of the present invention.
[0096] like Figure 8 As shown, the insurance knowledge graph construction device 100 includes a first receiving unit 110, a first acquisition unit 120, a second acquisition unit 130, a third acquisition unit 140 and a construction unit 150.
[0097] The first receiving unit 110 is used to receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user.
[0098] The first acquisition unit 120 is used to acquire a first data set and a second data set for constructing an insurance knowledge graph from the third-party insurance platform and the official filing platform respectively based on the website information and a preset web crawler program.
[0099] The second acquisition unit 130 is used to acquire the word-of-mouth score of each insurance product from the first data set according to a preset word-of-mouth score model.
[0100] In other inventive embodiments, Fig. 9 As shown, the second acquiring unit 130 includes: a first classification unit 131 and a fourth acquiring unit 132 .
[0101] The first classification unit 131 is used to obtain the text of each insurance product in the first data set and classify the text of each insurance product in the first data set according to a preset text classification model to obtain multiple evaluation information of each insurance product in the first data set.
[0102] In other inventive embodiments, Fig.10 As shown, the first classification unit 131 includes: a word segmentation unit 1311, a processing unit 1312, a convolution unit 1313 and a second classification unit 1314.
[0103] The word segmentation unit 1311 is used to perform word segmentation processing on the text of each insurance product in the first data set to obtain each word in the text of each insurance product in the first data set.
[0104] The processing unit 1312 is used to process each word in the text of each insurance product in the first data set according to a preset word embedding model to obtain a word vector of the text of each insurance product in the first data set.
[0105] The convolution unit 1313 is used to perform convolution and pooling processing on the word vectors of the text of each insurance product in the first data set in sequence to obtain a feature vector of the text of each insurance product in the first data set.
[0106] The second classification unit 1314 is used to input the feature vector of the text of each insurance product in the first data set into the classifier for classification processing to obtain multiple evaluation information of each insurance product in the first data set.
[0107] The fourth acquisition unit 132 is used to acquire the reputation score of each insurance product in the first data set according to the multiple evaluation information of each insurance product in the first data set.
[0108] The third acquisition unit 140 is used to capture data from the first data set and the second data set according to a preset ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph.
[0109] In other inventive embodiments, Fig.11 As shown, the third acquisition unit 140 includes: a data processing unit 141 and a data capturing unit 142 .
[0110] The data processing unit 141 is used to process the first data set and the second data set respectively according to a preset data processing model to obtain structured data sets.
[0111] In other inventive embodiments, Fig.12 As shown, the data processing unit 141 includes: a conversion unit 1411 and a first identification unit 1412 .
[0112] The conversion unit 1411 is used to perform text conversion on the unstructured text in the first data set and the second data set according to a preset text conversion model to obtain structured text.
[0113] The first recognition unit 1412 is used to perform recognition processing on the pictures in the first data set based on OCR recognition technology to obtain text information in the pictures.
[0114] In other inventive embodiments, Fig.13 As shown, the first recognition unit 1412 includes: a regularization processing unit 14121 , an interpolation processing unit 14122 and a second recognition unit 14123 .
[0115] The regularization processing unit 14121 is used to regularize the image according to a nonlinear regularization rule to enlarge or reduce the image.
[0116] The interpolation processing unit 14122 is used to interpolate the regularized image according to the segmented interpolation processing rule of the character to generate a pre-processed image.
[0117] The second recognition unit 14123 is used to input the preprocessed image into a pre-trained convolutional neural network model to obtain text information in the image.
[0118] The data capture unit 142 is used to capture data from the structured data set according to the ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph.
[0119] The construction unit 150 is used to construct the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score.
[0120] In other embodiments of the invention, the insurance knowledge graph construction device 100 further includes: a second receiving unit 161 and a fifth acquiring unit 162 .
[0121] The second receiving unit 161 is configured to, upon receiving a query statement input by a user, obtain words with entity naming in the query statement according to a preset named entity recognition model.
[0122] The fifth acquisition unit 162 is used to perform entity linking from the insurance knowledge graph according to the words with entity naming in the query statement to obtain the query result.
[0123] The insurance knowledge graph construction device 100 provided in the embodiment of the present invention is used to execute the above-mentioned process for receiving the URL information of the third-party insurance platform and the URL information of the official filing platform input by the user; based on the URL information and the preset web crawler program, respectively obtain the first data set and the second data set for constructing the insurance knowledge graph from the third-party insurance platform and the official filing platform; obtain the word-of-mouth score of each insurance product from the first data set according to the preset word-of-mouth scoring model; crawl data from the first data set and the second data set according to the preset ontology model to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph; and construct the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score.
[0124] See also Fig.14 , Fig.14 It is a schematic block diagram of a computer device provided by an embodiment of the present invention.
[0125] See also Fig.14 The device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0126] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a method for constructing an insurance knowledge graph.
[0127] The processor 502 is used to provide computing and control capabilities to support the operation of the entire device 500.
[0128] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the method for constructing an insurance knowledge graph.
[0129] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Fig.14 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the device 500 to which the solution of the present invention is applied. The specific device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0130] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to achieve the following functions: receiving the URL information of the third-party insurance platform and the URL information of the official filing platform input by the user; based on the URL information and the preset web crawler program, respectively obtaining the first data set and the second data set for constructing the insurance knowledge graph from the third-party insurance platform and the official filing platform; obtaining the word-of-mouth score of each insurance product from the first data set according to the preset word-of-mouth scoring model; crawling data from the first data set and the second data set according to the preset ontology model to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph; constructing the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score.
[0131] Those skilled in the art will understand that Fig.14 The embodiment of the device 500 shown in the figure does not constitute a limitation on the specific structure of the device 500. In other embodiments, the device 500 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the device 500 may only include a memory and a processor 502. In such an embodiment, the structure and function of the memory and the processor 502 are the same as those of the embodiment of the present invention. Fig.14 The embodiments shown are consistent and will not be described again here.
[0132] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors 502, digital signal processors 502 (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor 502 may be a microprocessor 502 or the processor 502 may also be any conventional processor 502, etc.
[0133] In another embodiment of the present invention, a computer storage medium is provided. The storage medium may be a non-volatile computer-readable storage medium. The storage medium stores a computer program 5032, wherein the computer program 5032 implements the following steps when executed by the processor 502: receiving the website information of the third-party insurance platform and the website information of the official filing platform input by the user; obtaining the first data set and the second data set for constructing the insurance knowledge graph from the third-party insurance platform and the official filing platform respectively based on the website information and the preset web crawler program; obtaining the word-of-mouth score of each insurance product from the first data set according to the preset word-of-mouth score model; crawling data from the first data set and the second data set according to the preset ontology model to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph; constructing the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score.
[0134] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0135] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0137] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a device 500 (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk.
[0139] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for constructing an insurance knowledge graph. It is characterized in that The following steps are involved: Receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user; Based on the website information and a preset web crawler program, a first data set and a second data set for constructing an insurance knowledge graph are acquired from the third-party insurance platform and the official filing platform respectively; Obtaining a word-of-mouth score for each insurance product from the first data set according to a preset word-of-mouth score model; Capturing data from the first data set and the second data set according to a preset ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph; Constructing the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score; The step of obtaining the word-of-mouth score of each insurance product from the first data set according to a preset word-of-mouth score model includes: Obtaining the probability of adjacent appearance of characters in the text of each insurance product in the first data set through a preset N-gram model, counting the frequency of combinations of adjacent characters in the text of each insurance product in the first data set, and calculating the mutual occurrence information between the probability calculation result and the frequency statistics to complete the word segmentation of the text of each insurance product in the first data set, and obtaining each word in the text of each insurance product in the first data set; Processing each word in the text of each insurance product in the first data set according to a preset word embedding model to obtain a word vector for the text of each insurance product in the first data set; Performing convolution and pooling processing on the word vectors of the text of each insurance product in the first data set in sequence to obtain a feature vector of the text of each insurance product in the first data set; Inputting the feature vector of the text of each insurance product in the first data set into a classifier for classification processing to obtain multiple evaluation information of each insurance product in the first data set; A reputation score of each insurance product in the first data set is obtained according to a plurality of evaluation information of each insurance product in the first data set.
2. The method for constructing an insurance knowledge graph according to claim 1, It is characterized in that The data capture from the first data set and the second data set according to the preset ontology model to obtain the sales status information and product attribute information of all insurance products in the insurance knowledge graph includes: Processing the first data set and the second data set respectively according to a preset data processing model to obtain structured data sets; Data is captured from the structured data set according to the ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph.
3. The method for constructing an insurance knowledge graph according to claim 2, It is characterized in that The processing of the first data set and the second data set according to a preset data processing model to obtain a structured data set includes: Performing text conversion on the unstructured texts in the first data set and the second data set according to a preset text conversion model to obtain structured texts; The images in the first data set are recognized based on OCR recognition technology to obtain text information in the images.
4. The method for constructing an insurance knowledge graph according to claim 3, It is characterized in that The images in the first data set are recognized based on the OCR recognition technology to obtain text information in the images, including: Regularizing the image according to a nonlinear regularization rule to enlarge or reduce the image; Interpolating the regularized image according to the segmented interpolation processing rule of the character to generate a preprocessed image; The preprocessed image is input into a pre-trained convolutional neural network model to obtain the text information in the image.
5. The method for constructing an insurance knowledge graph according to claim 1, It is characterized in that After constructing the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score, the method further includes: If a query statement input by a user is received, words with entity naming in the query statement are obtained according to a preset named entity recognition model; Entity links are performed from the insurance knowledge graph based on the words with entity names in the query statement to obtain query results.
6. A device for constructing an insurance knowledge graph, It is characterized in that include: A first receiving unit is used to receive the website information of the third-party insurance platform and the website information of the official filing platform input by the user; A first acquisition unit, configured to acquire a first data set and a second data set for constructing an insurance knowledge graph from the third-party insurance platform and the official filing platform respectively based on the website information and a preset web crawler program; A second acquisition unit, configured to acquire a word-of-mouth score of each insurance product from the first data set according to a preset word-of-mouth score model; a third acquisition unit, configured to capture data from the first data set and the second data set according to a preset ontology model to obtain sales status information and product attribute information of all insurance products in the insurance knowledge graph; A construction unit, configured to construct the insurance knowledge graph according to the sales status information, the product attribute information, and the word-of-mouth score; Wherein, the second acquisition unit includes: A word segmentation unit is used to obtain the probability of adjacent appearance of words in the text of each insurance product in the first data set through a preset N-gram model, count the frequency of the combination of each word that appears adjacently in the text of each insurance product in the first data set, and calculate the mutual occurrence information between the probability calculation result and the frequency statistics to complete the word segmentation of the text of each insurance product in the first data set, and obtain each word in the text of each insurance product in the first data set; a processing unit, configured to process each word in the text of each insurance product in the first data set according to a preset word embedding model to obtain a word vector of the text of each insurance product in the first data set; A convolution unit, used to perform convolution and pooling processing on the word vectors of the text of each insurance product in the first data set in sequence to obtain a feature vector of the text of each insurance product in the first data set; A second classification unit, configured to input a feature vector of the text of each insurance product in the first data set into a classifier for classification processing, and obtain a plurality of evaluation information of each insurance product in the first data set; The fourth acquisition unit is used to acquire the reputation score of each insurance product in the first data set based on multiple evaluation information of each insurance product in the first data set.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, it implements the method for constructing an insurance knowledge graph as described in any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to execute the method for constructing an insurance knowledge graph as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device of combining text classification and picture attribute extraction to perfect knowledge map
CN107679110A
Enterprise information map construction method and device, computer device and storage medium
CN109376273A
House property map construction method and device, computer device and storage medium
CN109376287A
Recommendation method and system based on commodity knowledge graph feature learning
CN111369318A
Investment product recommendation method and related device
CN111581516A
